re PR lto/50490 (ICE when compiling libglib2.0 with LTO, tree code 'optimization_node...
[gcc.git] / gcc / ChangeLog
1 2012-01-05 Richard Guenther <rguenther@suse.de>
2
3 PR lto/50490
4 * tree-streamer-out.c (write_ts_optimization): New function.
5 (streamer_write_tree_body): Call it.
6 * tree-streamer-in.c (lto_input_ts_optimization): New function.
7 (streamer_read_tree_body): Call it.
8 * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
9
10 2012-01-05 Jakub Jelinek <jakub@redhat.com>
11
12 PR middle-end/51761
13 * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr
14 field.
15 * gimplify.c (gimplify_cleanup_point_expr): Save and set
16 in_cleanup_point_expr before gimplify_stmt call and restore it
17 afterwards.
18 (gimplify_target_expr): Don't add {CLOBBER} cleanup if
19 in_cleanup_point_expr is false.
20
21 2012-01-05 Richard Guenther <rguenther@suse.de>
22
23 PR middle-end/51764
24 * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
25 to c.opt.
26 * toplev.c (process_options): Reject combining mudflap and LTO.
27 * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
28
29 2012-01-05 Richard Guenther <rguenther@suse.de>
30
31 PR tree-optimization/51760
32 * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
33 not VARYING.
34 (bit_value_unop): Handle UNDEFINED operands.
35 (bit_value_binop): Likewise.
36
37 2012-01-05 Georg-Johann Lay <avr@gjlay.de>
38
39 * config/avr/avr.c (avr_replace_prefix): Remove.
40 (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
41 (avr_asm_function_rodata_section): Ditto.
42 (avr_asm_select_section): Ditto.
43
44 2012-01-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
45
46 * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
47 insertion.
48
49 2012-01-05 Jakub Jelinek <jakub@redhat.com>
50
51 PR bootstrap/51648
52 * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
53 calls that have any non-fake successor edges.
54
55 PR debug/51746
56 * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
57
58 2012-01-04 Eric Botcazou <ebotcazou@adacore.com>
59
60 PR tree-optimization/51624
61 * tree-sra.c (build_ref_for_model): When replicating a chain of
62 COMPONENT_REFs, stop as soon as the offset would become negative.
63
64 2012-01-04 Jakub Jelinek <jakub@redhat.com>
65
66 PR debug/51695
67 * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
68 in .debug_loc on the floor.
69
70 2012-01-04 Andrew Pinski <apinski@cavium.com>
71
72 * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
73
74 2012-01-04 Andrew Pinski <apinski@cavium.com>
75 Adam Nemet <anemet@caviumnetworks.com>
76
77 * config/mips/mips.md (size): Add SI and DI.
78 (SIZE): New mode attribute.
79 (U): New code attribute.
80 * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
81 (mips_lbux_<mode>): Delete.
82 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
83 (mips_lhx): Use gen_mips_lhx_extsi.
84 (mips_lhx_<mode>): Delete.
85 (mips_lwx): Delete.
86 (mips_l<size>x): New expand.
87 (mips_lwx_<mode>): Delete.
88 (mips_l<GPR:size>x_<P:mode>): New pattern.
89 (*mips_lw<u>x_<P:mode>_ext): Likewise.
90 * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
91 * config/mips/mips.c (mips_lx_address_p): New function.
92 (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
93 (dsp64): New availability predicate.
94 (mips_builtins): Add an entry for __builtin_mips_ldx.
95 * config/mips/mips.h (ISA_HAS_LBX): New define.
96 (ISA_HAS_LBUX): Likewise.
97 (ISA_HAS_LHX): Likewise.
98 (ISA_HAS_LHUX): Likewise.
99 (ISA_HAS_LWX): Likewise.
100 (ISA_HAS_LWUX): Likewise.
101 (ISA_HAS_LDX): Likewise.
102 * doc/extend.texi (__builtin_mips_ldx): Document.
103
104 2012-01-04 Tristan Gingold <gingold@adacore.com>
105
106 * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
107 when long pointers are used.
108 * config.build (*-*-*vms*): Handle all OpenVMS targets.
109 (alpha64-dec-*vms*, alpha*-dec-*vms*)
110 (ia64-hp-*vms*): Remove.
111 * config/vms/xm-vms64.h: Delete.
112
113 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
114
115 PR middle-end/51472
116 * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
117
118 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
119
120 * opts.c (finish_options): Remove duplicate sorry.
121
122 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
123
124 PR middle-end/51696
125 * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
126 correctly.
127
128 2012-01-04 Richard Guenther <rguenther@suse.de>
129
130 PR middle-end/51750
131 * tree.c (size_low_cst): New function.
132 * tree.h (size_low_cst): Declare.
133 * fold-const.c (fold_comparison): Use it to extract the low
134 part of the POINTER_PLUS_EXPR offset.
135
136 2012-01-04 Georg-Johann Lay <avr@gjlay.de>
137
138 Fix clearing ZERO_REG
139 * config/avr/avr.md (cc): Add alternative "ldi".
140 (movqi_insn): Use it in cc attribute.
141 * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
142 (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
143 (output_reload_insisf): Use ZERO_REG to pre-clear register.
144
145 2012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
146
147 * configure: Regenerate.
148
149 2012-01-04 Richard Guenther <rguenther@suse.de>
150
151 PR tree-optimization/49651
152 * tree-ssa-structalias.c (type_can_have_subvars): New function.
153 (var_can_have_subvars): Use it.
154 (get_constraint_for_1): Only consider subfields if there
155 can be any.
156
157 2012-01-03 Jakub Jelinek <jakub@redhat.com>
158
159 PR bootstrap/51725
160 * cselib.c (new_elt_loc_list): When moving locs from one
161 cselib_val to its new canonical_cselib_val and the
162 cselib_val was in first_containing_mem chain, but
163 the canonical_cselib_val was not, add the latter into the
164 chain.
165 (cselib_invalidate_mem): Compare canonical_cselib_val of
166 addr_list chain elt with v.
167
168 PR pch/51722
169 * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
170 dwarf2out_undef): Allocate e.info using ggc_strdup instead
171 of xstrdup.
172 (output_macinfo_op): Don't ggc_strdup fd->filename.
173 (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
174 then ggc_strdup it. Don't free inc->info or cur->info.
175 (output_macinfo): Don't free ref->info or file->info.
176
177 2012-01-03 Ira Rosen <irar@il.ibm.com>
178
179 PR tree-optimization/51269
180 * tree-vect-loop-manip.c (set_prologue_iterations): Make
181 first_niters a pointer.
182 (slpeel_tree_peel_loop_to_edge): Likewise.
183 (vect_do_peeling_for_loop_bound): Update call to
184 slpeel_tree_peel_loop_to_edge.
185 (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
186 here. Remove it from the parameters list.
187 (vect_do_peeling_for_alignment): Update calls and compute
188 wide_prolog_niters.
189
190 2012-01-03 Richard Guenther <rguenther@suse.de>
191
192 PR tree-optimization/51070
193 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
194 Properly handle calls.
195
196 2012-01-03 Richard Guenther <rguenther@suse.de>
197
198 PR tree-optimization/51692
199 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
200 the LHS of allocation stmts.
201
202 2012-01-03 Olivier Hainque <hainque@adacore.com>
203
204 * system.h: Prior to #define, #undef fopen and freopen unconditionally.
205
206 2012-01-03 Olivier Hainque <hainque@adacore.com>
207
208 * collect2.c (main): In AIX specific computations for vector
209 insertions, use CONST_CAST2 to cast from char ** to const char **.
210
211 2012-01-03 Richard Guenther <rguenther@suse.de>
212
213 PR debug/51650
214 * dwarf2out.c (dwarf2out_finish): Always create a DIE for
215 the context of a limbo DIE when it does not already exist.
216
217 2012-01-03 Jakub Jelinek <jakub@redhat.com>
218
219 PR tree-optimization/51719
220 * value-prof.c (gimple_ic): When indirect call isn't noreturn,
221 but direct call is, clear direct call's lhs and don't add fallthrough
222 edge from dcall_bb to join_bb and PHIs.
223
224 2012-01-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
225
226 * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
227 the instructions emitted by the pattern.
228 ("*TDC_insn_<mode>"): Add comment.
229
230 2012-01-03 Richard Guenther <rguenther@suse.de>
231
232 PR middle-end/51730
233 * fold-const.c (fold_comparison): Properly canonicalize
234 tree offset and HOST_WIDE_INT bit position.
235
236 2012-01-02 Uros Bizjak <ubizjak@gmail.com>
237
238 * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
239 operands for extzv pattern.
240
241 2012-01-02 Jakub Jelinek <jakub@redhat.com>
242
243 PR bootstrap/51725
244 * cselib.c (add_mem_for_addr): Call canonical_cselib_val
245 on mem_elt first.
246
247 2012-01-02 Sandra Loosemore <sandra@codesourcery.com>
248
249 * doc/invoke.texi (-flto and related options): Copy-edit.
250
251 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
252
253 * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
254
255 2012-01-02 Jakub Jelinek <jakub@redhat.com>
256
257 * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
258 New patterns.
259
260 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
261
262 * expr.h (move_by_pieces_ninsns): Declare.
263 * expr.c (move_by_pieces_ninsns): Make external.
264 * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
265 (mips_store_by_pieces_p): Likewise.
266 * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
267 (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
268 * config/mips/mips.c (mips_move_by_pieces_p): New function.
269 (mips_store_by_pieces_p): Likewise.
270
271 2012-01-02 Jakub Jelinek <jakub@redhat.com>
272
273 * passes.c (register_one_dump_file): Free full_name.
274
275 * reload1.c (reload): Don't allocate reg_max_ref_width here.
276 (calculate_elim_costs_all_insns): Free offsets_at and
277 offsets_known_at at the end and clear the pointers.
278
279 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
280
281 * config/avr/avr.opt (-mbranch-cost): Fix double definition of
282 this option introduced in r180739.
283
284 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
285
286 PR target/51345
287 * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
288 (tmake_file target=avr): Add avr/t-multilib.
289
290 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
291 to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
292 * config/avr/genmultilib.awk: New file.
293 * config/avr/t-multilib: New auto-generated file.
294 * config/avr/multilib.h: New auto-generated file.
295 * config/avr/t-avr (AVR_MCUS): New variable.
296 (genopt.sh): Use it.
297 (s-mlib): Depend on t-multilib.
298 (t-multilib, multilib.h): New dependencies.
299 (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
300 (MULTILIB_OPTIONS): Remove.
301 (MULTILIB_MATCHES): Remove.
302 (MULTILIB_DIRNAMES): Remove.
303 (MULTILIB_EXCEPTIONS): Remove:
304 * config/avr/genopt.sh: Don't use hard coded file name;
305 pass AVR_MCUS from t-avr instead.
306
307 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
308
309 * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
310
311 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
312
313 Implement light-weight DImode support.
314 * config/avr/avr-dimode.md: New file.
315 * config/avr/avr.md: Include it.
316 (adjust_len): Add plus64, compare64.
317 (HIDI): Remove code iterator.
318 (code_stdname): New code attribute.
319 (rotx, rotsmode): Remove DI.
320 (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
321 as code iterator.
322 * config/avr/avr-protos.h (avr_have_dimode): New.
323 (avr_out_plus64, avr_out_compare64): New.
324 * config/avr/avr.c (avr_out_compare): Handle DImode.
325 (avr_have_dimode): New variable definition and initialization.
326 (avr_out_compare64, avr_out_plus64): New functions.
327 (avr_out_plus_1): Use simplify_unary_operation to negate xval.
328 (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
329 (avr_compare_pattern): Skip DImode comparisons.
330
331 2012-01-02 Revital Eres <revital.eres@linaro.org>
332
333 * ddg.c (def_has_ccmode_p): New function.
334 (add_cross_iteration_register_deps,
335 create_ddg_dep_from_intra_loop_link): Call it.
336
337 2012-01-02 Richard Guenther <rguenther@suse.de>
338
339 PR other/51679
340 * invoke.texi (fassociative-math): Remove spurious paranthesis.
341
342 2012-01-01 Jakub Jelinek <jakub@redhat.com>
343
344 * gcc.c (process_command): Update copyright notice dates.
345 * gcov.c (print_version): Likewise.
346 * gcov-dump.c (print_version): Likewise.
347 * mips-tfile.c (main): Likewise.
348 * mips-tdump.c (main): Likewise.
349
350 2012-01-01 Ira Rosen <irar@il.ibm.com>
351
352 PR tree-optimization/51704
353 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
354 a use is inside the basic block or loop before accessing its vect info.
355
356 2012-01-01 Jan Hubicka <jhjh@suse.cz>
357
358 PR rtl-optimization/51069
359 * cfgloopmanip.c (remove_path): Removing path making irreducible
360 region unconditional makes BB part of the region.
361
362 2012-01-01 Jakub Jelinek <jakub@redhat.com>
363
364 PR tree-optimization/51683
365 * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
366 calls with side-effects.
367 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
368
369 2011-12-31 Alexandre Oliva <aoliva@redhat.com>
370
371 * cselib.h (cselib_add_permanent_equiv): Declare.
372 (canonical_cselib_val): New.
373 * cselib.c (new_elt_loc_list): Rework to support value
374 equivalences. Adjust all callers.
375 (preserve_only_constants): Retain value equivalences.
376 (references_value_p): Retain preserved values.
377 (rtx_equal_for_cselib_1): Handle value equivalences.
378 (cselib_invalidate_regno): Use canonical value.
379 (cselib_add_permanent_equiv): New.
380 * alias.c (find_base_term): Reset locs lists while recursing.
381 * var-tracking.c (val_bind): New. Don't add equivalences
382 present in cselib table, compared with code moved from...
383 (val_store): ... here.
384 (val_resolve): Use val_bind.
385 (VAL_EXPR_HAS_REVERSE): Drop.
386 (add_uses): Do not create MOps for addresses. Do not mark
387 non-REG non-MEM expressions as requiring resolution.
388 (reverse_op): Record reverse as a cselib equivalence.
389 (add_stores): Use it. Do not create MOps for addresses.
390 Do not require resolution for non-REG non-MEM expressions.
391 Simplify support for reverse operations.
392 (compute_bb_dataflow): Drop reverse support.
393 (emit_notes_in_bb): Likewise.
394 (create_entry_value): Rename to...
395 (record_entry_value): ... this. Use cselib equivalences.
396 (vt_add_function_parameter): Adjust.
397
398 2011-12-30 Michael Meissner <meissner@linux.vnet.ibm.com>
399
400 * config/rs6000/rs6000.c (rs6000_inner_target_options): Fix thinko
401 in setting options via target #pragma or attribute.
402
403 2011-12-30 Anatoly Sokolov <aesok@post.ru>
404
405 * config/bfin/bfin.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
406 * config/bfin/bfin-protos.h (bfin_register_move_cost,
407 bfin_memory_move_cost): Remove.
408 * config/bfin/bfin.c (bfin_register_move_cost,
409 bfin_memory_move_cost): Make static. Change arguments type from
410 enum reg_class to reg_class_t and from int to bool.
411 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
412
413 2011-12-30 Nathan Sidwell <nathan@acm.org>
414
415 * gcov.c (total_lines, total_executed): New global vars.
416 (generate_results): Call executed_summary.
417 (executed_summary): New function, broken out of ...
418 (function_summary): ... here. Call it.
419 * coverage.c (coverage_finish): Also check for local_tick == -1.
420 * gcov-dump (tag_function): Correct labelling typo.
421
422 2011-12-29 Michael Meissner <meissner@linux.vnet.ibm.com>
423
424 PR target/51623
425 * config/rs6000/rs6000.c (rs6000_assemble_integer): Delete check
426 for an initialized pointer being in a text section with
427 -mrelocatable, since it should never happen.
428
429 2011-12-29 Michael Eager <eager@eagercon.com>
430
431 * config/microblaze/microblaze.md: Add expander for simple_return,
432 return, add return_internal and simple_return_internal insns.
433
434 2011-12-29 Oleg Endo <olegendo@gcc.gnu.org>
435
436 * config/sh/sh.h (BRANCH_COST): Use sh_branch_cost variable.
437 * config/sh/sh.c (sh_option_override): Simplify sh_branch_cost
438 expression.
439
440 2011-12-28 Ian Lance Taylor <iant@google.com>
441
442 * dwarf2out.c (gen_compile_unit_die): Use DW_LANG_Go for Go.
443
444 2011-12-28 Michael Meissner <meissner@linux.vnet.ibm.com>
445
446 PR target/51623
447 * config/rs6000/rs6000.c (rs6000_assemble_integer): Don't call
448 unlikely_text_section_p. Instead check for being in a code section.
449
450 2011-12-28 Ira Rosen <irar@il.ibm.com>
451
452 PR tree-optimization/51684
453 * tree-vect-slp.c (vect_schedule_slp_instance): Get gsi of original
454 statement in case of a pattern.
455 (vect_schedule_slp): Likewise.
456
457 2011-12-27 Eric Botcazou <ebotcazou@adacore.com>
458
459 PR rtl-optimization/51667
460 * ree.c (insn_merge_code): Delete.
461 (is_insn_merge_attempted): Likewise.
462 (get_insn_status): Likewise.
463 (set_insn_status): Likewise.
464 (struct ext_cand): Add CODE and MODE fields.
465 (combine_set_extend): Rename to...
466 (combine_set_extension): ...this. Use above fields and tidy up.
467 (transform_ifelse): Likewise.
468 (get_defs): Return the chain of definitions.
469 (is_this_a_cmove): Merge into...
470 (is_cond_copy_insn): ...this. Return bool.
471 (make_defs_and_copies_lists): Adjust calls to get_defs and simplify.
472 (merge_def_and_ext): Adjust call to combine_set_extend.
473 (combine_reaching_defs): Remove calls to {g|s}et_insn_status.
474 (struct extend_info): Rename to...
475 (struct re_info): ...this. Add DEF_MAP field.
476 (add_ext_candidate): Merge into...
477 (add_removable_extension): ...this. Adjust calls to get_defs. Ensure
478 reaching definitions are associated with only one kind of extension.
479 (find_removable_extensions): Create and destroy the definition map.
480 (find_and_remove_re): Return void. Change 'long' variables to 'int'.
481 Do not deal with is_insn_merge_attempted.
482
483 2011-12-25 Jan Hubicka <jh@suse.cz>
484
485 PR middle-end/48641
486 * tree-ssa-threadupdate.c (redirect_edges): Watch for overflow.
487
488 2011-12-26 Oleg Endo <oleg.endo@t-online.de>
489
490 * config/sh/sync.md: Add soft atomics ABI description.
491 (fetchop_name): Use 'or' instead of 'ior'.
492 (fetchop_insn): Remove.
493 (atomic_compare_and_swap<mode>_soft):
494 Don't insert aligning nop after the write-back instruction. Fix
495 multi-line asm output formatting style.
496 (atomic_fetch_<fetchop_name><mode>_soft): Likewise.
497 (atomic_fetch_nand<mode>_soft): Likewise.
498 (atomic_<fetchop_name>_fetch<mode>_soft): Likewise.
499 (atomic_nand_fetch<mode>_soft): Likewise.
500
501 2011-12-23 Richard Henderson <rth@redhat.com>
502
503 * tree.def (VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR): Remove.
504 * cfgexpand.c (expand_debug_expr): Don't handle them.
505 * expr.c (expand_expr_real_2): Likewise.
506 * fold-const.c (fold_binary_loc): Likewise.
507 * gimple-pretty-print.c (dump_binary_rhs): Likewise.
508 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
509 * tree-inline.c (estimate_operator_cost): Likewise.
510 * tree-pretty-print.c (dump_generic_node): Likewise.
511 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
512 * optabs.c (optab_for_tree_code): Likewise.
513 (can_vec_perm_for_code_p): Remove.
514 (expand_binop): Don't try it.
515 (init_optabs): Don't init vec_extract_even/odd_optab.
516 * genopinit.c (optabs): Likewise.
517 * optabs.h (OTI_vec_extract_even, OTI_vec_extract_odd): Remove.
518 (vec_extract_even_optab, vec_extract_odd_optab): Remove.
519 * tree-vect-data-refs.c (vect_strided_store_supported): Tidy code.
520 (vect_permute_store_chain): Use TYPE_VECTOR_SUBPARTS instead of
521 GET_MODE_NUNITS; check vect_gen_perm_mask return value instead of
522 asserting vect_strided_store_supported.
523 (vect_strided_load_supported): Use can_vec_perm_p.
524 (vect_permute_load_chain): Use VEC_PERM_EXPR.
525
526 * doc/generic.texi (VEC_EXTRACT_EVEN_EXPR): Remove.
527 (VEC_EXTRACT_ODD_EXPR): Remove.
528 * doc/md.texi (vec_extract_even, vec_extract_odd): Remove.
529
530 2011-12-23 Anatoly Sokolov <aesok@post.ru>
531
532 * config/score/score.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
533 * config/score/score-protos.h (score_register_move_cost): Remove.
534 * config/score/score.c (TARGET_REGISTER_MOVE_COST): Define.
535 (score_register_move_cost): Make static. Change arguments type from
536 enum reg_class to reg_class_t.
537
538 2011-12-23 Jakub Jelinek <jakub@redhat.com>
539 Richard Henderson <rth@redhat.com>
540
541 * tree.def (VEC_INTERLEAVE_HIGH_EXPR, VEC_INTERLEAVE_LOW_EXPR): Remove.
542 * gimple-pretty-print.c (dump_binary_rhs): Don't handle
543 VEC_INTERLEAVE_HIGH_EXPR and VEC_INTERLEAVE_LOW_EXPR.
544 * expr.c (expand_expr_real_2): Likewise.
545 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
546 * cfgexpand.c (expand_debug_expr): Likewise.
547 * tree-inline.c (estimate_operator_cost): Likewise.
548 * tree-pretty-print.c (dump_generic_node): Likewise.
549 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
550 * fold-const.c (fold_binary_loc): Likewise.
551 * doc/generic.texi (VEC_INTERLEAVE_HIGH_EXPR,
552 VEC_INTERLEAVE_LOW_EXPR): Remove documentation.
553 * optabs.c (optab_for_tree_code): Don't handle
554 VEC_INTERLEAVE_HIGH_EXPR and VEC_INTERLEAVE_LOW_EXPR.
555 (expand_binop, init_optabs): Remove vec_interleave_high_optab
556 and vec_interleave_low_optab.
557 * genopinit.c (optabs): Likewise.
558 * optabs.h (OTI_vec_interleave_high, OTI_vec_interleave_low): Remove.
559 (vec_interleave_high_optab, vec_interleave_low_optab): Remove.
560 * doc/md.texi (vec_interleave_high, vec_interleave_low): Remove
561 documentation.
562 * tree-vect-stmts.c (gen_perm_mask): Renamed to...
563 (vect_gen_perm_mask): ... this. No longer static.
564 (perm_mask_for_reverse, vectorizable_load): Adjust callers.
565 * tree-vectorizer.h (vect_gen_perm_mask): New prototype.
566 * tree-vect-data-refs.c (vect_strided_store_supported): Don't try
567 VEC_INTERLEAVE_*_EXPR, use can_vec_perm_p instead of
568 can_vec_perm_for_code_p.
569 (vect_permute_store_chain): Generate VEC_PERM_EXPR with interleaving
570 masks instead of VEC_INTERLEAVE_HIGH_EXPR and VEC_INTERLEAVE_LOW_EXPR.
571 * config/i386/i386.c (expand_vec_perm_interleave2): If
572 expand_vec_perm_interleave3 would handle it, return false.
573 (expand_vec_perm_broadcast_1): Don't use vec_interleave_*_optab.
574
575 2011-12-23 Richard Henderson <rth@redhat.com>
576
577 * config/mips/loongson.md (UNSPEC_LOONGSON_PINSR_0,
578 UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2,
579 UNSPEC_LOONGSON_PINSR_3): Replace with...
580 (UNSPEC_LOONGSON_PINSRH): ... this.
581 (UNSPEC_LOONGSON_VINIT): New.
582 (UNSPEC_LOONGSON_DSLL, UNSPEC_LOONGSON_DSRL): New.
583 (VWB): New mode iterator.
584 (V_inner): New mode attribute.
585 (loongson_vec_init1_<VHB>): New.
586 (*vec_concatv2si): New.
587 (and<VWHB>3, ior<VWHB>3, xor<VWHB>3, one_cmpl<VWHB>2): New.
588 (*loongson_nor): New.
589 (loongson_pextrh): Un-macro-ify.
590 (loongson_pmaddhw): Likewise.
591 (smaxv4hi3, umaxv8qi3, sminv4hi3, uminv8qi3): Likewise.
592 (loongson_pinsrh_0): Represent with vec_select+vec_concat.
593 (loongson_pinsrh_1, loongson_pinsrh_2, loongson_pinsrh_3): Likewise.
594 (*vec_setv4hi, vec_setv4hi): New.
595 (sdot_prodv4hi): New.
596 (smax<VWB>3, smin<VWB>3): New.
597 (reduc_uplus_v8qi): New.
598 (loongson_pshufh): Remove destination matching input.
599 (ashl<VWH>3, ashr<VWH>3, lshr<VWH>3): Fix type attribute.
600 (vec_interleave_high<VWHB>, vec_interleave_low<VWHB>): Remove.
601 (loongson_punpckhbh, loongson_punpckhhw, loongson_punpckhhw_qi,
602 loongson_punpckhwd, loongson_punpckhwd_qi, loongson_punpckhwd_hi,
603 loongson_punpcklbh, loongson_punpcklhw, loongson_punpcklhw_qi,
604 loongson_punpcklwd, loongson_punpcklwd_qi, loongson_punpcklwd_hi,
605 vec_perm_const<VWHB>, vec_unpacks_lo_<VHB>, vec_unpacks_hi_<VHB>,
606 vec_unpacku_lo_<VHB>, vec_unpacku_hi_<VHB>, vec_shl_<VWHBDI>,
607 vec_shr_<VWHBDI>, reduc_uplus_<VWH>, reduc_splus_<VWHB>,
608 reduc_smax_<VWHB>, reduc_smin_<VWHB>, reduc_umax_<VWHB>,
609 reduc_umin_<VB>): New.
610 * config/mips/mips-ps-3d.md (vec_perm_const_ps): New.
611 (mips_pul_ps, mips_puu_ps, mips_pll_ps, mips_plu_ps): Expand in
612 terms of vec_perm_const_ps.
613 (vec_perm_constv2sf): New.
614 (vec_initv2sf): Use mips_expand_vector_init.
615 (vec_concatv2sf): Rename from vec_initv2sf_internal.
616 (vec_setv2sf): Use vec_perm_const_ps.
617 (reduc_splus_v2sf, reduc_smin_v2sf, reduc_smax_v2sf): New.
618 * config/mips/loongson.h (pshufh_u, pshufh_s): Don't pass dest to
619 the builtin.
620 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V4SF): New modes.
621 * config/mips/mips-protos.h: Update.
622 * config/mips/mips.c (mips_get_arg_info): Match V2SFmode, not all
623 MODE_VECTOR_FLOAT.
624 (mips_return_mode_in_fpr_p): Likewise.
625 (mips_cannot_change_mode_class): Allow 8-byte integral mode changes.
626 (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw,
627 CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh,
628 CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): Remove.
629 (mips_builtins): Remove first operand for loongson pshufh builtins.
630 (MAX_VECT_LEN, struct expand_vec_perm_d): New.
631 (mips_expand_vselect, mips_expand_vselect_vconcat,
632 mips_expand_vpc_loongson_even_odd, mips_expand_vpc_loongson_pshufh,
633 mips_expand_vpc_loongson_bcast, mips_expand_vec_perm_const_1,
634 mips_expand_vec_perm_const, mips_vectorize_vec_perm_const_ok,
635 mips_expand_vec_unpack, mips_constant_elt_p, mips_expand_vi_broadcast,
636 mips_expand_vi_constant, mips_expand_vi_loongson_one_pinsrh,
637 mips_expand_vi_general, mips_expand_vec_reduc, mips_expand_vec_minmax,
638 TARGET_VECTORIZE_VEC_PERM_CONST_OK): New.
639 (mips_expand_vector_init): Rewrite.
640 * config/mips/predicates.md (const_2_or_3_operand): New.
641 (const_0_to_3_operand): New.
642
643 2011-12-23 Dmitry Plotnikov <dplotnikov@ispras.ru>
644
645 * config/arm/neon.md (float<mode><V_cvtto>2): New.
646 (floatuns<mode><V_cvtto>2): New.
647 (fix_trunc<mode><V_cvtto>2): New.
648 (fix_truncuns<mode><V_cvtto>2): New.
649 * config/arm/iterators.md (V_cvtto): New iterator.
650
651 2011-12-23 Richard Guenther <rguenther@suse.de>
652
653 PR rtl-optimization/50396
654 * simplify-rtx.c (simplify_binary_operation_1): Properly
655 guard code that only works for integers.
656
657 2011-12-23 Tristan Gingold <gingold@adacore.com>
658
659 * config/vms/vms-crtlmap.map (log10): Fix typo.
660
661 2011-12-23 Tristan Gingold <gingold@adacore.com>
662
663 * config/ia64/vms.h (SUPPORTS_ONE_ONLY): Define.
664
665 2011-12-22 Bin Cheng <bin.cheng@arm.com>
666 Richard Guenther <rguenther@suse.de>
667
668 PR tree-optimization/43491
669 * tree-ssa-pre.c (eliminate): Don't replace global register
670 variable when it is the RHS of a single assign.
671
672 2011-12-22 Joey Ye <joey.ye@arm.com>
673
674 * toplev.c (process_options): Fix typo.
675
676 2011-12-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
677
678 PR middle-end/51252
679 * config/pa/pa.c (pa_som_tm_clone_table_section): New function.
680 (som_tm_clone_table_section): Declare.
681 (pa_file_start_space): Create $TM_CLONE_TABLE$ subspace.
682 (pa_som_asm_init_sections): Init som_tm_clone_table_section.
683 * config/pa/som.h (TARGET_ASM_TM_CLONE_TABLE_SECTION): Define.
684
685 2011-12-22 Richard Sandiford <rdsandiford@googlemail.com>
686
687 * doc/tm.texi.in (TARGET_PREPARE_PCH_SAVE): New hook.
688 * doc/tm.texi: Regenerate.
689 * target.def (prepare_pch_save): New hook.
690 * c-family/c-pch.c (c_common_write_pch): Call it.
691 * config/mips/mips.c (was_mips16_pch_p): Delete.
692 (mips_set_mips16_mode): Don't refer to was_mips16_pch_p.
693 (mips_prepare_pch_save): New function.
694 (TARGET_PREPARE_PCH_SAVE): Define.
695
696 2011-12-22 Aldy Hernandez <aldyh@redhat.com>
697
698 PR middle-end/51212
699 * opts.c (finish_options): Call sorry on -fgnu-tm and
700 -fnon-call-exceptions combination.
701
702 2011-12-22 Jonathan Wakely <jwakely.gcc@gmail.com>
703
704 * doc/invoke.texi (C++ Dialect Options): Add missing options and
705 move -Wzero-as-null-pointer-constant to ...
706 (Warning Options): ... here.
707
708 2011-12-22 Jonathan Wakely <jwakely.gcc@gmail.com>
709
710 PR target/47643
711 * doc/invoke.texi (i386 and x86-64 Options): Fix description of
712 -mtune without -march.
713
714 2011-12-21 Richard Earnshaw <rearnsha@arm.com>
715
716 PR target/51643
717 * arm.c (arm_function_ok_for_sibcall): Use DECL_WEAK in previous
718 change.
719
720 2011-12-22 Tristan Gingold <gingold@adacore.com>
721
722 * config/ia64/ia64.c (ia64_promote_function_mode): Remove.
723 (TARGET_PROMOTE_FUNCTION_MODE): Remove.
724 (ia64_function_value): Call promote_function_mode instead of
725 ia64_promote_function_mode.
726 * config/ia64/vms.h (PROMOTE_MODE): Define.
727 (TARGET_PROMOTE_FUNCTION_MODE): Define.
728
729 2011-12-22 Uros Bizjak <ubizjak@gmail.com>
730
731 PR target/27468
732 * common/config/alpha/alpha-common.c (alpha_option_optimization_table):
733 Enable flag_ree at -O2 or higher.
734
735 2011-12-22 Richard Guenther <rguenther@suse.de>
736
737 PR lto/51650
738 * lto.c (uniquify_nodes): Register TYPE_DECLs with the
739 debuginfo machinery.
740
741 2011-12-22 Bernd Schmidt <bernds@codesourcery.com>
742
743 * tree-pass.h (pass_reload): Declare.
744 * ira.c (overall_cost_before, saved_flag_ira_share_spill_slots):
745 New global variables, moved out of ira.
746 (do_reload): New static function, split off from the second half
747 of ...
748 (ira): ... here.
749 (gate_ira): Remove.
750 (pass_ira): Use TV_IRA, set gate to NULL, and set flags to
751 TODO_dump_func.
752 (rest_of_handle_reload): New static function.
753 (pass_reload): New.
754
755 2011-12-22 Uros Bizjak <ubizjak@gmail.com>
756
757 * common/config/i386/i386-common.c (ix86_option_optimization_table):
758 Move OPT_free processing from ...
759 * config/i386/i386.c (ix86_option_override_internal): ... here.
760
761 2011-12-21 Richard Earnshaw <rearnsha@arm.com>
762
763 PR target/51643
764 * arm.c (arm_function_ok_for_sibcall): Don't try to tailcall a
765 weak function on bare-metal EABI targets.
766
767 2011-12-21 Jonathan Wakely <jwakely.gcc@gmail.com>
768 Jim Avera <james_avera@yahoo.com>
769
770 * doc/extend.texi (__builtin_expect): Improve example.
771
772 2011-12-21 Uros Bizjak <ubizjak@gmail.com>
773
774 * config/i386/i386.c (ix86_option_override_internal): Enable flag_ree
775 also for 32bit targets.
776
777 2011-12-21 Richard Henderson <rth@redhat.com>
778
779 PR target/51552
780 * dwarf2cfi.c (dwarf2out_frame_debug): Move any_cfis_emitted code...
781 (scan_trace): ... here.
782
783 2011-12-21 Jason Merrill <jason@redhat.com>
784
785 * doc/standards.texi (C++ language): Update for C++11.
786
787 2011-12-21 Jakub Jelinek <jakub@redhat.com>
788
789 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Initialize
790 *op0 and *op1 to NULL_TREE first to avoid warnings.
791 * calls.c (initialize_argument_information): Initialize base to avoid
792 warnings.
793
794 PR middle-end/51644
795 PR middle-end/51647
796 * tree-eh.c (decide_copy_try_finally): At -O0, return true
797 even when ndests is not 1, if there are only gimple_clobber_p
798 (or debug) stmts in the finally sequence.
799 * tree-inline.c (estimate_num_insns): Return 0 for gimple_clobber_p
800 stmts.
801
802 2011-12-21 Aldy Hernandez <aldyh@redhat.com>
803
804 PR middle-end/51472
805 * trans-mem.c (tm_log_add): Use create_tmp_var_reg.
806
807 2011-12-21 Martin Jambor <mjambor@suse.cz>
808
809 * tree-into-ssa.c (rewrite_update_stmt): Do not dump extra newlines.
810 (rewrite_update_enter_block): Likewise.
811 (dump_update_ssa): Likewise.
812 (update_ssa): Likewise but also dump a newline at the beginning.
813
814 2011-12-21 Enkovich Ilya <ilya.enkovich@intel.com>
815
816 PR target/50038
817 * implicit-zee.c: Delete.
818 * ree.c: New file.
819 * Makefile.in: Replace implicit-zee.c with ree.c.
820 * config/i386/i386.c (ix86_option_override_internal): Rename
821 flag_zee to flag_ree.
822 * common.opt (fzee): Ignored.
823 (free): New.
824 * passes.c (init_optimization_passes): Replace pass_implicit_zee
825 with pass_ree.
826 * tree-pass.h (pass_implicit_zee): Delete.
827 (pass_ree): New.
828 * timevar.def (TV_ZEE): Delete.
829 (TV_REE): New.
830 * doc/invoke.texi: Add -free description.
831
832 2011-12-21 Tristan Gingold <gingold@adacore.com>
833
834 * config/vms/vms-protos.h (vms_function_section): New prototype.
835 * config/vms/vms.c (vms_function_section): New function.
836 * config/vms/vms.h (TARGET_ASM_FUNCTION_SECTION): Define.
837
838 2011-12-21 Richard Guenther <rguenther@suse.de>
839
840 PR lto/41159
841 * tree-outof-ssa.c (insert_value_copy_on_edge): Use the
842 mode of the pseudo as destination mode. Only assert that
843 is equal to the promoted mode of the decl if it is a REG.
844
845 2011-12-21 Tristan Gingold <gingold@adacore.com>
846
847 * config/vms/xm-vms.h (STANDARD_EXEC_PREFIX): Remove define.
848
849 2011-12-20 Richard Henderson <rth@redhat.com>
850
851 * config/ia64/ia64.c (MAX_VECT_LEN): New.
852 (struct expand_vec_perm_d): New.
853 (TARGET_VECTORIZE_VEC_PERM_CONST_OK): New.
854 (ia64_unpack_assemble): Use ia64_expand_vec_perm_const_1.
855 (expand_vselect, expand_vselect_vconcat): New.
856 (expand_vec_perm_identity, expand_vec_perm_shrp): New.
857 (expand_vec_perm_1, expand_vec_perm_broadcast): New.
858 (expand_vec_perm_interleave_2, expand_vec_perm_v4hi_5): New.
859 (ia64_expand_vec_perm_const_1, ia64_expand_vec_perm_const): New.
860 (ia64_vectorize_vec_perm_const_ok): New.
861 (ia64_expand_vec_setv2sf, ia64_expand_vec_perm_even_odd): New.
862 * config/ia64/ia64-protos.h: Update.
863 * config/ia64/vect.md (VEC): New mode iterator.
864 (vecint): New mode attribute.
865 (vec_interleave_lowv8qi, vec_interleave_highv8qi): Privatize with '*'.
866 (vec_interleave_lowv4hi, vec_interleave_highv4hi): Likewise.
867 (vec_interleave_lowv2si, vec_interleave_highv2si): Likewise.
868 (vec_interleave_lowv2sf, vec_interleave_highv2sf): Likewise.
869 (mix1_even, mix1_odd, mux1_alt): Likewise.
870 (mux1_brcst_qi): Remove '*' from name.
871 (vec_extract_evenv8qi, vec_extract_oddv8qi): Remove.
872 (vec_extract_evenv4hi, vec_extract_oddv4hi): Remove.
873 (vec_extract_evenv2si, vec_extract_oddv2si): Remove.
874 (vec_extract_evenv2sf, vec_extract_oddv2sf): Remove.
875 (vec_extract_evenodd_helper): Remove.
876 (vec_setv2sf): Use ia64_expand_vec_setv2sf.
877 (vec_pack_trunc_v4hi): Use ia64_expand_vec_perm_even_odd.
878 (vec_pack_trunc_v2si): Likewise.
879 (vec_perm_const<VEC>): New.
880
881 2011-12-20 Richard Henderson <rth@redhat.com>
882
883 * tree-vect-generic.c (expand_vector_operations_1): Correct tests
884 for vector types -- use the type not the mode. Fix optab selection
885 for vector shifts by a scalar. Handle over-large integer modes
886 like BLKmode.
887
888 2011-12-20 Richard Henderson <rth@redhat.com>
889
890 * config/arm/arm.md (*arm_xorsi3): Match iorsi3 and perform
891 post-reload splitting.
892
893 * config/arm/arm.md (*arm_cmpdi_unsigned): Enable for thumb2.
894 * config/arm/arm.c (arm_select_cc_mode): Use it.
895
896 2011-12-20 Richard Sandiford <rdsandiford@googlemail.com>
897
898 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Restrict
899 handling of signedness differences to integer types. Only build
900 a new optype if type1 isn't correct.
901
902 2011-12-20 Vladimir Makarov <vmakarov@redhat.com>
903
904 PR target/49865
905 * ira-costs.c (find_costs_and_classes): Prefer registers even
906 if the memory cost is the same.
907
908 2011-12-20 Joseph Myers <joseph@codesourcery.com>
909
910 * c-decl.c (diagnose_mismatched_decls, grokdeclarator, grokfield)
911 (finish_struct): Refer to C11 in comments. Use flag_isoc11.
912 * c-parser.c (c_parser_static_assert_declaration)
913 (c_parser_static_assert_declaration_no_semi, c_parser_declspecs)
914 (c_parser_alignas_specifier, c_parser_alignof_expression): Refer
915 to C11 in comments. Use flag_isoc11.
916 * c-typeck.c (comptypes_check_different_types): Refer to C11 in
917 comment.
918 * doc/cpp.texi (Overview): Refer to -std=c11 instead of -std=c1x.
919 * doc/cppopts.texi (-std=c11, -std=gnu11): Document in preference
920 to -std=c1x and -std=gnu1x.
921 * doc/extend.texi (Inline, Alternate Keywords, Other Builtins)
922 (__builtin_complex, Unnamed Fields): Refer to -std=c11 and C11
923 instead of -std=c1x and C1X.
924 * doc/invoke.texi (-std=c11, -std=iso9899:2011): Document in
925 preference to -std=c1x.
926 (-std=gnu11): Document in preference to -std=gnu1x.
927 * doc/standards.texi: Document C11 instead of C1X. Document C11
928 as actual standard. Document headers required from freestanding
929 C11 implementations.
930 * ginclude/float.h, ginclude/stddef.h: Test __STDC_VERSION__ >=
931 201112L for C11. Update comments to refer to C11.
932
933 2011-12-20 Andreas Schwab <schwab@linux-m68k.org>
934
935 * configure: Regenerate.
936
937 2011-12-20 Bernd Schmidt <bernds@codesourcery.com>
938
939 PR middle-end/51200
940 * expr.c (store_field): Avoid a direct store if the mode is larger
941 than the size of the bit field.
942 * stor-layout.c (layout_decl): If flag_strict_volatile_bitfields,
943 treat non-volatile bit fields like volatile ones.
944 * toplev.c (process_options): Disallow combination of
945 -fstrict-volatile-bitfields and ABI versions less than 2.
946 * config/arm/arm.c (arm_option_override): Don't enable
947 flag_strict_volatile_bitfields if the ABI version is less than 2.
948 * config/h8300/h8300.c (h8300_option_override): Likewise.
949 * config/rx/rx.c (rx_option_override): Likewise.
950 * config/m32c/m32c.c (m32c_option_override): Likewise.
951 * config/sh/sh.c (sh_option_override): Likewise.
952
953 2011-12-20 Richard Guenther <rguenther@suse.de>
954
955 PR lto/46796
956 * dwarf2out.c (modified_type_die): When the type variant
957 chain is corrupt use the types name, if available, instead
958 of __unknown__.
959
960 2011-12-20 Tristan Gingold <gingold@adacore.com>
961
962 * config/alpha/alpha.c (alpha_start_function): Adjust condition to
963 create VMS trampoline entry point.
964
965 2011-12-19 Richard Sandiford <rdsandiford@googlemail.com>
966
967 PR rtl-optimization/42839
968 * fwprop.c (forward_propagate_subreg): Skip the SIGN/ZERO_EXTEND
969 optimization if the source register is already extended.
970
971 2011-12-19 Richard Sandiford <rdsandiford@googlemail.com>
972
973 * lower-subreg.c (can_decompose_p): Check every word of a hard
974 register.
975
976 2011-12-19 Sandra Loosemore <sandra@codesourcery.com>
977 Tom de Vries <tom@codesourcery.com>
978
979 PR rtl-opt/50380
980 * cse.c (find_comparison_args): Detect fixed point and
981 bail early.
982
983 2011-12-19 Aldy Hernandez <aldyh@redhat.com>
984
985 PR middle-end/51411
986 * trans-mem.c (ipa_tm_create_version): Unset DECL_WEAK.
987
988 2011-12-19 Quentin Neill <quentin.neill@amd.com>
989
990 PR target/48743
991 * config/i386/driver-i386.c (host_detect_local_cpu): Also check
992 family to distinguish PROCESSOR_ATHLON.
993
994 2011-12-19 Richard Guenther <rguenther@suse.de>
995
996 PR lto/51573
997 * streamer-hooks.h (struct streamer_hooks): Add second
998 ref_p parameter to write_tree.
999 (stream_write_tree): Adjust.
1000 (stream_write_tree_shallow_non_ref): New define.
1001 * lto-streamer.h (lto_output_tree): Adjust.
1002 * lto-streamer-out.c (lto_output_tree): Likewise.
1003 * tree-streamer-out.c (streamer_write_chain): Only
1004 force the immediate tree to be streamed as non-reference.
1005
1006 2011-12-19 Martin Jambor <mjambor@suse.cz>
1007
1008 PR tree-optimization/51583
1009 * tree-sra.c (load_assign_lhs_subreplacements): Call
1010 force_gimple_operand_gsi when necessary also in case of no
1011 corresponding replacement on the RHS.
1012
1013 2011-12-19 Jakub Jelinek <jakub@redhat.com>
1014
1015 * gimple.h (gimplify_seq_add_stmt): Rename to...
1016 (gimple_seq_add_stmt_without_update): ... this.
1017 * gimplify.c (gimplify_seq_add_stmt): Rename to...
1018 (gimple_seq_add_stmt_without_update): ... this.
1019 (gimplify_seq_add_stmt): New inline wrapper for it.
1020 * tree-vect-patterns.c (append_pattern_def_seq): Use
1021 gimple_seq_add_stmt_without_update instead of gimplify_seq_add_stmt.
1022
1023 PR tree-optimization/51596
1024 * tree-cfg.c (replace_uses_by): Call gimple_purge_dead_eh_edges
1025 when needed.
1026
1027 PR middle-end/51590
1028 PR tree-optimization/51606
1029 * tree-vect-patterns.c (append_pattern_def_seq, new_pattern_def_seq):
1030 New inline functions.
1031 (vect_recog_over_widening_pattern,
1032 vect_recog_vector_vector_shift_pattern,
1033 vect_recog_sdivmod_pow2_pattern, vect_recog_mixed_size_cond_pattern,
1034 adjust_bool_pattern_cast, vect_recog_bool_pattern): Use them.
1035
1036 2011-12-19 Richard Guenther <rguenther@suse.de>
1037
1038 PR lto/51572
1039 * tree.c (free_lang_data_in_type): Do not unlink TYPE_DECL
1040 from TYPE_FIELDS.
1041 (find_decls_types_r): Walk TYPE_DECLs in TYPE_FIELDS.
1042 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Do
1043 not stream TREE_CHAIN.
1044 (write_ts_type_non_common_tree_pointers): Stream TYPE_FIELDS
1045 using streamer_write_chain.
1046 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
1047 Do not stream TREE_CHAIN.
1048 (lto_input_ts_type_non_common_tree_pointers): Stream TYPE_FIELDS
1049 using streamer_read_chain.
1050 * gimple-streamer-in.c (input_gimple_stmt): Skip non-FIELD_DECLs.
1051 * gimple.c (gimple_canonical_types_compatible_p): Properly
1052 handle trailing non-FIELD_DECLs in TYPE_FIELDS.
1053
1054 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
1055
1056 * configure: Regenerate.
1057
1058 2011-12-19 Bernd Schmidt <bernds@codesourcery.com>
1059
1060 * emit-rtl.c (init_emit_once): Initialize const_tiny_rtx[3] for
1061 partial integer modes.
1062
1063 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
1064
1065 PR target/51532
1066 * config/m68k/m68k.h (FL_CAS, TARGET_CAS): Define.
1067 * config/m68k/m68k.c (FL_FOR_isa_20): Add FL_CAS.
1068 * config/m68k/sync.md: Use TARGET_CAS instead of (TARGET_68020 ||
1069 TARGET_68040).
1070
1071 2011-12-18 Anatoly Sokolov <aesok@post.ru>
1072
1073 * config/ia64/ia64.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
1074 LEGITIMATE_ADDRESS_REG, LEGITIMATE_ADDRESS_DISP,
1075 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
1076 * config/ia64/ia64.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
1077 (ia64_reg_ok_for_base_p, ia64_legitimate_address_reg,
1078 ia64_legitimate_address_disp, ia64_legitimate_address_p): New
1079 functions.
1080
1081 2011-12-17 Tom de Vries <tom@codesourcery.com>
1082
1083 PR tree-optimization/51491
1084 * tree-ssa-ccp.c (insert_clobber_before_stack_restore)
1085 (gsi_prev_dom_bb_nondebug, insert_clobbers_for_var): New function.
1086 (ccp_fold_stmt): Use insert_clobbers_for_var after a successful
1087 fold_builtin_alloca_with_align.
1088 (ccp_visit_stmt): Calculate and free dominator info.
1089
1090 2011-12-16 Eric Botcazou <ebotcazou@adacore.com>
1091
1092 * config/sparc/sparc.md (UNSPEC_FRAME_BLOCKAGE): New constant.
1093 (frame_blockage): New expander.
1094 (frame_blockage<P:mode>): New instruction.
1095 * config/sparc/sparc.c (sparc_expand_prologue): When the sequence of
1096 instructions establishing the frame isn't atomic, emit frame blockage.
1097
1098 2011-12-16 Tristan Gingold <gingold@adacore.com>
1099
1100 * config/alpha/vms.h (USE_TM_CLONE_REGISTRY): Define.
1101
1102 2011-12-16 Tristan Gingold <gingold@adacore.com>
1103
1104 * config/alpha/alpha.c (alpha_use_linkage): Follow transparent alias.
1105 (alpha_write_one_linkage): Use assemble_name to emit linkage name.
1106
1107 2011-12-16 Tristan Gingold <gingold@adacore.com>
1108
1109 * config/vms/t-vms (vms.o, vms-c.o): Force output filename.
1110
1111 2011-12-16 Tristan Gingold <gingold@adacore.com>
1112
1113 * config/vms/vms.c (VMS_CRTL_GLOBAL): Define.
1114 (vms_patch_builtins): Handle.
1115 * config/vms/vms-crtlmap.map: Add an entry for environ.
1116
1117 2011-12-16 Jakub Jelinek <jakub@redhat.com>
1118
1119 PR debug/51557
1120 * sel-sched-ir.c (create_copy_of_insn_rtx): Copy all notes
1121 other than REG_EQUAL, REG_EQUIV and REG_LABEL_OPERAND.
1122
1123 PR tree-optimization/51576
1124 * tree-cfg.c (replace_uses_by): Call maybe_clean_or_replace_eh_stmt
1125 even if fold_stmt didn't change anything.
1126
1127 2011-12-16 Richard Guenther <rguenther@suse.de>
1128
1129 PR lto/51572
1130 * dwarf2out.c (gen_type_die_with_usage): Use the context of
1131 the TYPE_DECL as well if it is file-scope.
1132
1133 2011-12-15 DJ Delorie <dj@redhat.com>
1134
1135 * config/rl78/rl78.md (return): Rename to rl78_return.
1136 * config/rl78/rl78.c (rl78_expand_epilogue): Use new name.
1137 (rl78_expand_eh_epilogue): Use new name.
1138 (rl78_calculate_death_notes): Likewise.
1139
1140 2011-12-15 Jakub Jelinek <jakub@redhat.com>
1141
1142 * tree-vectorizer.h (struct _stmt_vec_info): Remove pattern_def_stmt
1143 field, add pattern_def_seq.
1144 (STMT_VINFO_PATTERN_DEF_STMT): Remove.
1145 (STMT_VINFO_PATTERN_DEF_SEQ): Define.
1146 (NUM_PATTERNS): Bump to 10.
1147 * tree-vect-loop.c (vect_determine_vectorization_factor,
1148 vect_transform_loop): Adjust for pattern def changing from a single
1149 gimple stmt to gimple_seq.
1150 * tree-vect-stmts.c (vect_analyze_stmt, new_stmt_vec_info,
1151 free_stmt_vec_info): Likewise.
1152 * tree-vect-patterns.c (vect_recog_over_widening_pattern,
1153 vect_recog_vector_vector_shift_pattern,
1154 vect_recog_mixed_size_cond_pattern, adjust_bool_pattern_cast,
1155 adjust_bool_pattern, vect_mark_pattern_stmts): Likewise.
1156 (vect_recog_sdivmod_pow2_pattern): New function.
1157 (vect_vect_recog_func_ptrs): Add it.
1158
1159 * config/i386/sse.md (vcond<V_256:mode><VI_256:mode>,
1160 vcond<V_128:mode><VI124_128:mode>, vcond<VI8F_128:mode>v2di):
1161 Use general_operand instead of nonimmediate_operand for
1162 operand 5 and no predicate for operands 1 and 2.
1163 * config/i386/i386.c (ix86_expand_int_vcond): Optimize
1164 x < 0 ? -1 : 0 and x < 0 ? 1 : 0 into vector arithmetic
1165 resp. logical shift.
1166
1167 2011-12-15 Georg-Johann Lay <avr@gjlay.de>
1168
1169 * config/avr/avr-protos.h (print_operand): Remove.
1170 (print_operand_address): Remove.
1171 * config/avr/avr.h (PRINT_OPERAND): Remove.
1172 (PRINT_OPERAND_ADDRESS): Remove.
1173 (PRINT_OPERAND_PUNCT_VALID_P): Remove.
1174 * config/avr/avr.c (TARGET_PRINT_OPERAND): New hook define.
1175 (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
1176 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
1177 (print_operand_address): Rename to...
1178 (avr_print_operand_address): ...this and make static.
1179 (print_operand): Rename to...
1180 (avr_print_operand): ...this and make static.
1181 (avr_print_operand_punct_valid_p): New static function.
1182
1183 2011-12-15 Andreas Tobler <andreast@fgznet.ch>
1184
1185 * config/i386/freebsd.h (TARGET_ASM_FILE_END): Define.
1186
1187 2011-12-15 Jakub Jelinek <jakub@redhat.com>
1188
1189 PR c/51360
1190 * c-parser.c (c_parser_omp_clause_num_threads,
1191 c_parser_omp_clause_schedule): Call mark_exp_read.
1192
1193 2011-12-15 Romain Geissler <romain.geissler@gmail.com>
1194
1195 * builtins.def (BUILT_IN_STPNCPY_CHK): New definition.
1196 * builtins.c (expand_builtin, fold_builtin_4, maybe_emit_chk_warning):
1197 Add BUILT_IN_STPNCPY_CHK case.
1198 * gimple-fold.c (gimple_fold_builtin): Likewise.
1199 * tree-object-size.c (pass_through_call): Likewise.
1200 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
1201 call_may_clobber_ref_p_1): Likewise.
1202 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
1203 find_func_clobbers): Likewise.
1204 * tree.h (fold_builtin_strncpy_chk): Rename to fold_builtin_stxncpy_chk
1205 * builtins.c (fold_builtin_strncpy_chk): Likewise.
1206 Rewrite stpncpy_chk calls to strncpy_chk calls if returned value is
1207 ignored.
1208
1209 2011-12-15 Richard Guenther <rguenther@suse.de>
1210
1211 PR lto/51567
1212 * gimple.c (compare_type_names_p): Also compare the TREE_CODE.
1213 (iterative_hash_name): Also hash the TREE_CODE.
1214 (gimple_types_compatible_p_1): For types with a TYPE_DECL
1215 name and a type DECL_CONTEXT recurse to that type.
1216 (iterative_hash_gimple_type): Likewise.
1217
1218 2011-12-15 Iain Sandoe <iains@gcc.gnu.org>
1219
1220 * config/rs6000/rs6000.c (rs6000_emit_prologue): Move update of
1221 VRSave mask to save_world() when that is in use.
1222
1223 2011-12-15 Richard Guenther <rguenther@suse.de>
1224
1225 * lto-wrapper.c (run_gcc): In non-parallel mode remove
1226 ltrans inputs immediately after processing them. In parallel
1227 mode truncate the ltrans inputs in the make rule that processes
1228 them if temporary files are not to be preserved.
1229
1230 2011-12-15 Anatoly Sokolov <aesok@post.ru>
1231
1232 * config/arm/arm.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
1233 * config/arm/arm.c (arm_memory_move_cost, arm_register_move_cost):
1234 New functions.
1235 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
1236
1237 2011-12-15 Richard Guenther <rguenther@suse.de>
1238
1239 PR lto/51564
1240 * tree.h (REGISTER_DEFS_IN_THIS_STMT, NECESSARY,
1241 STMT_IN_SSA_EDGE_WORKLIST): Remove no longer existing flag
1242 uses documentation.
1243 (TREE_ASM_WRITTEN): Update documentation to mention its use
1244 on TYPE_DECLs from debug info generation.
1245 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
1246 TREE_ASM_WRITTEN as always zero for TYPE_DECLs, similar to
1247 all other types.
1248
1249 2011-12-15 Georg-Johann Lay <avr@gjlay.de>
1250
1251 PR target/51050
1252 * config/avr/avr.c (expand_epilogue): Don't build SUBREG of fp.
1253 (avr_prologue_setup_frame): Ditto.
1254
1255 2011-12-15 Jakub Jelinek <jakub@redhat.com>
1256
1257 PR debug/51517
1258 * tree-ssa-coalesce.c (coalesce_ssa_name): For !optimize, test
1259 !DECL_IGNORED_P instead of !DECL_ARTIFICIAL.
1260
1261 2012-12-15 Richard Guenther <rguenther@suse.de>
1262
1263 Revert
1264 PR lto/48437
1265 * lto-streamer-out.c (tree_is_indexable): Exclude block-local
1266 extern declarations.
1267
1268 PR lto/48508
1269 PR lto/48437
1270 * tree-streamer-out.c (streamer_write_chain): Stream DECL_EXTERNAL
1271 VAR_DECLs and FUNCTION_DECLs locally.
1272
1273 2011-12-14 Richard Henderson <rth@redhat.com>
1274
1275 * config/arm/arm.md (*addsi3_compare0_scratch): Set predicable.
1276 (*compare_negsi_si, *compare_addsi2_op0): Likewise.
1277 (*compare_addsi2_op1, *zeroextractsi_compare0_scratch): Likewise.
1278 (*compareqi_eq0, *arm_cmpsi_insn, *arm_cmpsi_negshiftsi_si): Likewise.
1279
1280 2011-12-14 Richard Guenther <rguenther@suse.de>
1281
1282 * tree-cfg.c (replace_uses_by): Fixup TREE_CONSTANT for
1283 propagating all kinds of constants.
1284
1285 2011-12-14 Richard Guenther <rguenther@suse.de>
1286
1287 PR lto/51497
1288 * lto-streamer-in.c (lto_read_body): Fixup local types
1289 TYPE_CANONICAL and variant chain.
1290
1291 2011-12-14 Richard Guenther <rguenther@suse.de>
1292
1293 * tree.c (free_lang_data_in_type): Do not clear fields
1294 dependent on debuginfo level setting.
1295 (find_decls_types_r): Use TYPE_STUB_DECL rathern than TREE_CHAIN.
1296 * tree.h (TYPE_STUB_DECL): Properly check that we access a type.
1297
1298 2011-12-14 Georg-Johann Lay <avr@gjlay.de>
1299
1300 PR target/50931
1301 * config/avr/avr.md (mulpsi3): New expander.
1302 (*umulqihipsi3, *umulhiqipsi3): New insns.
1303 (*mulsqipsi3.libgcc, *mulpsi3.libgcc): New insns.
1304 (mulsqipsi3, *mulpsi3): New insn-and-splits.
1305 (ashlpsi3): Turn to expander. Move insn code to...
1306 (*ashlpsi3): ...this new insn.
1307
1308 2011-12-14 Richard Guenther <rguenther@suse.de>
1309
1310 * tree-cfg.c (replace_uses_by): Only mark blocks altered
1311 that will make a difference. Only recompute ADDR_EXPR
1312 invariantness if it could possibly have changed. Do so
1313 before folding the statement.
1314
1315 2011-12-13 Eric Botcazou <ebotcazou@adacore.com>
1316
1317 * lto-streamer-out.c (write_symbol): Use proper 64-bit host type.
1318 * lto-cgraph.c (input_cgraph_opt_section): Use 'int' for offsets.
1319 * lto-streamer-in.c (lto_read_body): Likewise.
1320 (lto_input_toplevel_asms): Likewise.
1321 * lto-section-in.c (lto_create_simple_input_block): Likewise.
1322 * ipa-inline-analysis.c (inline_read_section): Likewise.
1323 * ipa-prop.c (ipa_prop_read_section): Likewise.
1324
1325 * df.h (DF_NOTE): Fix typo in comment.
1326
1327 2011-12-13 Aldy Hernandez <aldyh@redhat.com>
1328
1329 * trans-mem.c (ipa_tm_create_version_alias): Set DECL_CONTEXT and
1330 DECL_LANG_SPECIFIC.
1331
1332 2011-12-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1333
1334 * regmove.c (fixup_match_2): Only access call_used_regs with hard regs.
1335
1336 2011-12-13 Andrew Pinski <apinski@cavium.com>
1337 Adam Nemet <anemet@caviumnetworks.com>
1338
1339 * config/mips/mips-cpus.def: Add Octeon2.
1340 * config/mips/mips-tables.opt: Regenerate.
1341 * config/mips/mips.md (define_attr "cpu"): Add Octeon2.
1342 * config/mips/driver-native.c (host_detect_local_cpu): Support Octeon2.
1343 * config/mips/octeon.md (octeon_arith): Add Octeon2.
1344 (octeon_condmove): Likewise.
1345 (octeon_load): Rename to ..
1346 (octeon_load_o1): this.
1347 (octeon_load_o2): New reserve.
1348 (octeon_cop_o2): New reserve.
1349 (octeon_store): Match Octeon2 also.
1350 (octeon_brj): Rename to ..
1351 (octeon_brj_o1): this.
1352 (octeon_brj_o2): New reserve.
1353 (octeon_imul3): Rename to ...
1354 (octeon_imul3_o1): this.
1355 (octeon_imul3_o2): New reserve.
1356 (octeon_imul): Rename to ...
1357 (octeon_imul_o1): this.
1358 (octeon_imul_o2): New reserve.
1359 (octeon_mfhilo): Rename to ...
1360 (octeon_mfhilo_o1): This.
1361 (octeon_mfhilo_o2): New reserve.
1362 (octeon_imadd): Rename to ...
1363 (octeon_imadd_o1): this.
1364 (octeon_imadd_o2): New reserve.
1365 (octeon_idiv): Rename to ..
1366 (octeon_idiv_o1): This.
1367 (octeon_idiv_o2_si): New reserve.
1368 (octeon_idiv_o2_di): Likewise.
1369 (octeon_unknown): Match Octeon2 also.
1370 * config/mips/mips.c (mips_rtx_cost_data): Add Octeon2 cost data.
1371 (mips_issue_rate): Octeon2 can issue 2 at a time.
1372 * config/mips/mips.h (TARGET_OCTEON): Match Octeon2 also.
1373 (TARGET_OCTEON2): New define.
1374 (TUNE_OCTEON): Match Octeon2 also.
1375
1376 2011-12-13 Richard Henderson <rth@redhat.com>
1377
1378 * config/sparc/tso.h: New file.
1379 * config.gcc (sparc-*-linux*, sparc*-*-solaris2*): Use it.
1380 * config/sparc/sparc.c (sparc_option_override): Honor
1381 SUBTARGET_DEFAULT_MEMORY_MODEL.
1382 * config/sparc/sparc.h (SUBTARGET_DEFAULT_MEMORY_MODEL): New.
1383
1384 2011-12-13 Aldy Hernandez <aldyh@redhat.com>
1385
1386 PR middle-end/51443
1387 * trans-mem.c (struct diagnose_tm): Remove saw_unsafe.
1388 (diagnose_tm_1): Same.
1389 (ipa_tm_execute): Do not test tm_may_enter_irr before we set it.
1390 (ipa_tm_scan_irr_function): Return gracefully when no
1391 DECL_STRUCT_FUNCTION.
1392 (ipa_tm_scan_irr_block): Believe the user on TM attributes.
1393
1394 2011-12-13 Martin Jambor <mjambor@suse.cz>
1395
1396 PR middle-end/50628
1397 * tree-sra.c (propagate_subaccesses_across_link): Do not propagate
1398 sub-accesses of scalar accesses.
1399
1400 2011-12-13 Martin Jambor <mjambor@suse.cz>
1401
1402 PR tree-optimization/51362
1403 * ipa-cp.c (estimate_local_effects): When estimated size of a
1404 specialized clone is zero, bump it to one.
1405
1406 2011-12-13 Richard Guenther <rguenther@suse.de>
1407
1408 PR lto/48354
1409 * tree.c (find_decls_types_r): Also walk DECL_ORIGINAL_TYPE.
1410 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
1411 Stream DECL_ORIGINAL_TYPE.
1412 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers):
1413 Likewise.
1414
1415 2011-12-13 Jakub Jelinek <jakub@redhat.com>
1416
1417 Revert
1418 2011-12-12 Jakub Jelinek <jakub@redhat.com>
1419
1420 PR tree-optimization/51481
1421 * gimple-fold.c (gimple_fold_call): Call
1422 maybe_clean_or_replace_eh_stmt. Avoid optimization if stmt has EH
1423 edges, but gimple_fold_builtin result can't throw.
1424
1425 2011-12-13 Jakub Jelinek <jakub@redhat.com>
1426 Michael Matz <matz@suse.de>
1427
1428 PR tree-optimization/51117
1429 * tree-eh.c (sink_clobbers): New function.
1430 (execute_lower_eh_dispatch): Call it for BBs ending with
1431 internally throwing RESX.
1432 * cfgexpand.c (add_scope_conflicts_1): Add all conflicts only
1433 at the first real instruction.
1434
1435 2011-12-13 Tristan Gingold <gingold@adacore.com>
1436
1437 * final.c (final_scan_insn): Guard the call to begin_epilogue
1438 debug hook.
1439
1440 2011-12-13 Tristan Gingold <gingold@adacore.com>
1441
1442 * vmsdbgout.c (vmsdbgout_write_source_line): New function.
1443 (vmsdbgout_end_prologue): Call vmsdbgout_write_source_line.
1444 (vmsdbgout_begin_epilogue): Likewise.
1445 (vmsdbgout_end_epilogue): Likewise.
1446 (vmsdbgout_source_line): Move code to vmsdbgout_write_source_line.
1447
1448 2011-12-13 Richard Guenther <rguenther@suse.de>
1449
1450 PR middle-end/51481
1451 * tree-cfg.c (replace_uses_by): Pass proper arguments to
1452 maybe_clean_or_replace_eh_stmt.
1453
1454 2011-12-13 Richard Guenther <rguenther@suse.de>
1455
1456 PR tree-optimization/51519
1457 * ipa-inline.c (edge_badness): Use edge growth in non-guessed
1458 branch probability case as well.
1459
1460 2011-12-13 Revital Eres <revital.eres@linaro.org>
1461
1462 * modulo-sched.c (mark_loop_unsched): Free bbs.
1463
1464 2011-12-12 Jakub Jelinek <jakub@redhat.com>
1465
1466 PR rtl-optimization/51495
1467 * function.c (thread_prologue_and_epilogue_insns): Don't add
1468 to bb_tail basic blocks that have EDGE_COMPLEX predecessor edges
1469 from basic blocks not needing prologue.
1470
1471 PR tree-optimization/51481
1472 * gimple-fold.c (gimple_fold_call): Call
1473 maybe_clean_or_replace_eh_stmt. Avoid optimization if stmt has EH
1474 edges, but gimple_fold_builtin result can't throw.
1475
1476 2011-12-12 Vladimir Makarov <vmakarov@redhat.com>
1477
1478 PR rtl-optimization/21617
1479 * ira-color.c (bucket_allocno_compare_func): Don't compare
1480 allocno classes. Compare number of hard registers needed.
1481
1482 2011-12-12 Eric Botcazou <ebotcazou@adacore.com>
1483
1484 PR tree-optimization/50569
1485 * tree-sra.c (build_ref_for_model): Replicate a chain of COMPONENT_REFs
1486 in the expression of MODEL instead of just the last one.
1487
1488 2011-12-12 Jakub Jelinek <jakub@redhat.com>
1489
1490 PR middle-end/51510
1491 * calls.c (internal_arg_pointer_based_exp_scan): Don't use
1492 VEC_safe_grow_cleared if idx is smaller than VEC_length.
1493
1494 2011-12-12 Richard Sandiford <richard.sandiford@linaro.org>
1495
1496 PR middle-end/50873
1497 * optabs.c (maybe_legitimize_operand_same_code): Use copy_to_mode_reg
1498 instead of force_reg. Do nothing if the address is already a
1499 non-virtual pseudo register.
1500
1501 2011-12-12 Torvald Riegel <triegel@redhat.com>
1502
1503 * gimplify.c (voidify_wrapper_expr): Add default handling for
1504 outermost wrapper.
1505
1506 2011-12-12 Torvald Riegel <triegel@redhat.com>
1507
1508 * tree-ssa-tail-merge.c (gimple_equal_p): Don't treat transaction
1509 commits as equal.
1510
1511 2011-12-12 Iain Sandoe <iains@gcc.gnu.org>
1512
1513 * config/darwin-sections.def (zobj_const_data_section): Fix over-
1514 length section name.
1515
1516 2011-12-11 Richard Henderson <rth@redhat.com>
1517
1518 * config/rs6000/rs6000.c (rs6000_expand_interleave): Use
1519 BYTES_BIG_ENDIAN, not TARGET_BIG_ENDIAN.
1520
1521 2011-12-11 Jakub Jelinek <jakub@redhat.com>
1522
1523 PR tree-optimization/51485
1524 * tree-vect-data-refs.c (vect_analyze_data_refs): Give up on
1525 DRs in call stmts.
1526
1527 2011-12-11 Patrick Marlier <patrick.marlier@gmail.com>
1528
1529 * trans-mem.c (ipa_tm_transform_calls_redirect): Do not remove edge.
1530
1531 2011-12-10 Richard Henderson <rth@redhat.com>
1532
1533 * config/rs6000/altivec.md (altivec_vmrghb): Rewrite pattern as
1534 vec_select + vec_concat.
1535 (altivec_vmrghh, altivec_vmrghw, altivec_vmrghsf, altivec_vmrglb,
1536 altivec_vmrglh, altivec_vmrglw, altivec_vmrglsf): Likewise.
1537 (vec_perm_constv16qi): New.
1538 (vec_extract_evenv4si, vec_extract_evenv4sf, vpkuhum_nomode,
1539 vpkuwum_nomode, vec_extract_oddv8hi, vec_extract_oddv16qi,
1540 vec_interleave_high<VI>, vec_interleave_low<VI>): Remove.
1541 * config/rs6000/paired.md (paired_merge00): Rewrite pattern as
1542 vec_select + vec_concat.
1543 (paired_merge10, paired_merge01, paired_merge11): Likewise.
1544 (vec_perm_constv2sf): New.
1545 (vec_interleave_highv2sf, vec_interleave_lowv2sf,
1546 vec_extract_evenv2sf, vec_extract_oddv2sf): Remove.
1547 * config/rs6000/spe.md (spe_evmergehi): Rewrite pattern as
1548 vec_select + vec_concat.
1549 (spe_evmergehilo, spe_evmergelo, spe_evmergelohi): New.
1550 (vec_perm_constv2si): New.
1551 * config/rs6000/vector.md (vec_interleave_highv4sf,
1552 vec_interleave_lowv4sf, vec_interleave_high<VEC_64>,
1553 vec_interleave_low<VEC_64>): Remove.
1554 * config/rs6000/vsx.md (VS_double): New mode attribute.
1555 (UNSPEC_VSX_XXPERMDI): Remove.
1556 (vsx_xxpermdi_<VSX_L>_1): Rewrite pattern as vec_select + vec_concat.
1557 (vsx_xxmrghw_<VSX_W>, vsx_xxmrglw_<VSX_W>): Likewise.
1558 (vsx_xxpermdi_<VSX_L>): Change to expander.
1559 (vec_perm_const<VSX_D>): New.
1560 (vsx_mergel_<VSX_D>, vsx_mergeh_<VSX_D>): New.
1561 * config/rs6000/predicates.md (const_0_to_1_operand): New.
1562 (const_2_to_3_operand): New.
1563 * config/rs6000/rs6000.c (TARGET_VECTORIZE_VEC_PERM_CONST_OK): New.
1564 (altivec_expand_vec_perm_const): New.
1565 (rs6000_expand_vec_perm_const_1, rs6000_expand_vec_perm_const): New.
1566 (rs6000_vectorize_vec_perm_const_ok): New.
1567 (rs6000_do_expand_vec_perm): New.
1568 (rs6000_expand_extract_even, rs6000_expand_interleave): New.
1569 * config/rs6000/rs6000-builtin.def (VEC_MERGE*): Update rtx codes.
1570 * config/rs6000/rs6000-modes.def: Add double-wide vector modes.
1571 * config/rs6000/rs6000-protos.h: Update.
1572
1573 2011-12-10 Richard Henderson <rth@redhat.com>
1574
1575 * expr.c (expand_expr_real_2) [VEC_PERM_EXPR]: Avoid passing a
1576 CONST_INT to expand_vec_perm as the selector.
1577 * optabs.c (expand_vec_perm): Assert the selector is of a proper mode.
1578
1579 2011-12-10 Richard Henderson <rth@redhat.com>
1580
1581 * genmodes.c (struct mode_data): Remove wider_2x member.
1582 (blank_mode): Adjust initializer.
1583 (calc_wider_mode): Use XALLOCAVEC.
1584 (emit_move_wider): Select double-width same-element vectors for
1585 2xwider vectors.
1586 * machmode.h (GET_MODE_2XWIDER_MODE): Update documentation.
1587 * config/i386/i386.c (doublesize_vector_mode): Remove.
1588 (expand_vselect_vconcat): Use GET_MODE_2XWIDER_MODE instead.
1589
1590 2011-12-10 Joern Rennecke <joern.rennecke@embecosm.com>
1591
1592 * config/epiphany/epiphany.h (USE_LOAD_POST_INCREMENT): Define.
1593 (USE_LOAD_POST_DECREMENT, USE_STORE_POST_INCREMENT): Likewise.
1594 (USE_STORE_POST_DECREMENT): Likewise.
1595
1596 * config/epiphany/epiphany.h (EPIPHANY_RETURN_REGNO): New macro,
1597 broken out of ..
1598 (INCOMING_RETURN_ADDR_RTX) .. this. Use EPIPHANY_RETURN_REGNO.
1599 (DWARF_FRAME_RETURN_COLUMN): New macro.
1600
1601 * config/epiphany/epiphany-protos.h (epiphany_start_function): Declare.
1602 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
1603 Split "timer" value into "timer0" and "timer1".
1604 Handle page_miss, message and wand. Don't handle static_flag.
1605 Adjust warning text.
1606 (epiphany_start_function): New function.
1607 (epiphany_compute_function_type): Split "timer" value into "timer0"
1608 and "timer1". Handle page_miss, message and wand.
1609 Don't handle static_flag.
1610 (epiphany_expand_epilogue): Don't use frame_insn for status / iret
1611 restore.
1612 * config/epiphany/epiphany.h: ASM_DECLARE_FUNCTION_NAME: Define.
1613 (enum epiphany_function_type):
1614 Split EPIPHANY_FUNCTION_TIMER value into EPIPHANY_FUNCTION_TIMER0
1615 and EPIPHANY_FUNCTION_TIMER1.
1616 Remove EPIPHANY_FUNCTION_ILINK1 and EPIPHANY_FUNCTION_ILINK2 values.
1617 Add EPIPHANY_FUNCTION_PAGE_MISS and EPIPHANY_FUNCTION_MESSAGE values.
1618 Rename EPIPHANY_FUNCTION_STATIC_FLAG to EPIPHANY_FUNCTION_WAND.
1619
1620 2011-12-10 Nathan Sidwell <nathan@acm.org>
1621
1622 PR gcov-profile/51449
1623 * coverage.c (coverage_end_function): Always process the coverage
1624 variables.
1625
1626 2011-12-09 Aldy Hernandez <aldyh@redhat.com>
1627
1628 PR/51291
1629 * tree.c (build_common_builtin_nodes): Do not use TM_PURE
1630 attribute unless language has support for TM.
1631 * config/i386/i386.c (ix86_init_tm_builtins): Exit gracefully in
1632 the absence of TM builtins.
1633
1634 2011-12-09 Eric Botcazou <ebotcazou@adacore.com>
1635
1636 * gimple-fold.c (gimple_fold_stmt_to_constant_1) <GIMPLE_UNARY_RHS>:
1637 Also check the TYPE_MODE to recognize useless pointer conversions.
1638
1639 2011-12-09 Jakub Jelinek <jakub@redhat.com>
1640
1641 PR tree-optimization/51117
1642 * tree-eh.c (optimize_clobbers): Don't remove just one
1643 clobber, but all consecutive clobbers before RESX.
1644 Use gimple_clobber_p predicate.
1645
1646 2011-12-09 Michael Meissner <meissner@linux.vnet.ibm.com>
1647
1648 * config/rs6000/rs6000.c (altivec_expand_builtin): Call
1649 expand_call to return a valid funciton instead of return
1650 cosnt0_rtx/NULL_RTX if there was an error with the builtin.
1651 (altivec_expand_ld_builtin): Ditto.
1652 (rs6000_inner_target_options): If VSX is selected as a target
1653 attribute or pragma, enable ALTIVEC also.
1654 (rs6000_pragma_target_parse): Call rs6000_option_override_internal
1655 to do all of the standard processing when switching options,
1656 including redefining appropriate macros.
1657
1658 PR rtl-optimization/51469
1659 * varasm.c (default_binds_local_p_1): If the symbol is a gnu
1660 indirect function, mark the symbol as non-local.
1661
1662 2011-12-09 H.J. Lu <hongjiu.lu@intel.com>
1663
1664 PR bootstrap/51479
1665 * Makefile.in (errors.o): Restored.
1666
1667 2011-12-09 Richard Guenther <rguenther@suse.de>
1668
1669 PR lto/48042
1670 * tree.c (free_lang_data_in_decl): Remove freeing conditional
1671 on debuginfo level.
1672
1673 2011-12-09 Joern Rennecke <joern.rennecke@embecosm.com>
1674
1675 PR middle-end/40154
1676 * emit-rtl.c (set_dst_reg_note): New function.
1677 * rtl.h (set_dst_reg_note): Declare.
1678 * optabs.c (expand_binop, expand_absneg_bit): Use set_dst_reg_note.
1679 (emit_libcall_block, expand_fix): Likewise.
1680 * function.c (assign_parm_setup_reg, expand_function_start): Likewise.
1681 * expmed.c (expand_mult_const, expand_divmod): Likewise.
1682 * reload1.c (gen_reload): Likewise.
1683
1684 * dse.c (get_stored_val, get_call_args): Use gen_int_mode.
1685 * expmed.c (expand_divmod): Likewise.
1686 * combine.c (simplify_if_then_else): Likewise.
1687
1688 2011-12-09 Kai Tietz <ktietz@redhat.com>
1689
1690 * ira-color.c (print_hard_regs_subforest): Use
1691 HOST_WIDEST_INT_PRINT_DEC instead of %lld.
1692 (allocno_hard_regs): Change type of cost member to HOST_WIDEST_INT.
1693 (add_allocno_hard_regs): Change type of argument cost
1694 to HOST_WIDEST_INT.
1695 * ira-conflict.c (build_conflict_bit_table): Replace use
1696 of long-long by HOST_WIDEST_INT.
1697
1698 2011-12-09 Georg-Johann Lay <avr@gjlay.de>
1699
1700 PR target/51425
1701 * config/avr/avr.md (config/avr/avr.md, *sbix_branch_tmp): Use
1702 zero_extract:QIHI instead of zero_extract:HI.
1703
1704 2011-12-09 Jakub Jelinek <jakub@redhat.com>
1705 Andrew Pinski <apinski@cavium.com>
1706
1707 PR tree-optimization/51117
1708 * tree-eh.c (optimize_clobbers): New function.
1709 (execute_lower_eh_dispatch): Call it.
1710
1711 2011-12-09 Richard Guenther <rguenther@suse.de>
1712
1713 PR tree-optimization/51482
1714 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
1715 Make sure to only create REAL_TYPE and INTEGER_TYPE component vectors.
1716
1717 2011-12-09 Kai Tietz <ktietz@redhat.com>
1718
1719 * implicit-zee.c (num_realized): Change type to long.
1720 (num_ze_opportunities): Likewise.
1721
1722 2011-12-08 Andrew Pinski <apinski@cavium.com>
1723
1724 * config/mips/mips-cpus.def (octeon+): New CPU.
1725 * config/mips/mips-tables.opt: Regenerate.
1726 * config/mips/mips.h (MIPS_CPP_SET_PROCESSOR): Emit '+' as 'P'.
1727
1728 2011-12-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1729
1730 PR middle-end/39976
1731 * tree-ssa-dom.c (enum expr_kind): Add EXPR_PHI.
1732 (struct hashable_expr): Add struct phi field.
1733 (initialize_hash_element): Handle phis; change to use XCNEWVEC.
1734 (hashable_expr_equal_p): Handle phis.
1735 (iterative_hash_hashable_expr): Likewise.
1736 (print_expr_hash_elt): Likewise.
1737 (free_expr_hash_elt): Likewise.
1738 (dom_opt_enter_block): Create equivalences from redundant phis.
1739 (eliminate_redundant_computations): Handle redundant phis.
1740 (lookup_avail_expr): Handle phis.
1741
1742 2011-12-08 Jakub Jelinek <jakub@redhat.com>
1743
1744 PR tree-optimization/51466
1745 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also copy
1746 TREE_SIDE_EFFECTS.
1747
1748 2011-12-08 Richard Guenther <rguenther@suse.de>
1749
1750 * tree-ssa-operands.c (add_stmt_operand): Do not mark stmts
1751 volatile when processing operands of an ADDR_EXPR.
1752 (get_indirect_ref_operands): Likewise.
1753 (get_tmr_operands): Likewise.
1754 (get_expr_operands): Likewise.
1755
1756 2011-12-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1757
1758 PR target/50395
1759 * config/s390/s390.c (s390_mainpool_finish): Emit the jump over
1760 the literal pool as jump insn.
1761
1762 2011-12-08 Richard Guenther <rguenther@suse.de>
1763
1764 PR tree-optimization/49772
1765 * tree-inline.c (optimize_inline_calls): Remove bail out on errors.
1766
1767 2011-12-08 Richard Guenther <rguenther@suse.de>
1768
1769 PR lto/50747
1770 * lto-streamer-out.c (produce_symtab): Remove asserts.
1771
1772 2011-12-08 Richard Guenther <rguenther@suse.de>
1773
1774 PR lto/49945
1775 * lto-streamer-out.c (tree_is_indexable): Localize variably
1776 modified types and their FIELD_DECLs.
1777
1778 2011-12-08 Eric Botcazou <ebotcazou@adacore.com>
1779
1780 PR tree-optimization/51315
1781 * tree.h (get_object_or_type_alignment): Declare.
1782 * expr.c (get_object_or_type_alignment): Move to...
1783 * builtins.c (get_object_or_type_alignment): ...here. Add assertion.
1784 * tree-sra.c (tree_non_mode_aligned_mem_p): Rename to...
1785 (tree_non_aligned_mem_p): ...this. Add ALIGN parameter. Look into
1786 MEM_REFs and use get_object_or_type_alignment for them.
1787 (build_accesses_from_assign): Adjust for above change.
1788 (access_precludes_ipa_sra_p): Likewise.
1789
1790 2011-12-08 Richard Guenther <rguenther@suse.de>
1791
1792 PR lto/48437
1793 * lto-streamer-out.c (tree_is_indexable): Exclude block-local
1794 extern declarations.
1795
1796 2011-12-07 Andrew Pinski <apinski@cavium.com>
1797
1798 PR middle-end/45416
1799 * expr.c (do_store_flag): Rewrite code that looks for BIT_AND_EXPR for
1800 SSA-expand.
1801
1802 2011-12-07 Richard Guenther <rguenther@suse.de>
1803
1804 PR tree-optimization/50823
1805 * ipa-inline.c (edge_badness): Do not account for the number of
1806 remaining calls.
1807
1808 2011-12-07 Martin Jambor <mjambor@suse.cz>
1809
1810 PR tree-optimization/50744
1811 * ipa-cp.c (good_cloning_opportunity_p): Assert size_cost is positive,
1812 compute evaluation in HOST_WIDEST_INT.
1813 (safe_add): New function
1814 (propagate_effects): Use safe_add to accumulate effects.
1815
1816 2011-12-06 Joel Sherrill <joel.sherrill@oarcorp.com>
1817
1818 * config/rs6000/rtems.h: Switch to using global_options_set
1819 in SUBSUBTARGET_OVERRIDE_OPTIONS.
1820
1821 2011-12-06 David S. Miller <davem@davemloft.net>
1822
1823 * config/sparc/visintrin.h: Add appropriate __VIS__ cpp protection.
1824
1825 2011-12-06 Georg-Johann Lay <avr@gjlay.de>
1826
1827 * config/avr/avr.c (avr_file_start): Fix missing ,
1828
1829 2011-12-06 Jakub Jelinek <jakub@redhat.com>
1830
1831 PR target/51354
1832 * config/i386/i386.c (ix86_emit_leave): Call ix86_add_cfa_restore_note
1833 unconditionally.
1834
1835 2011-12-06 Georg-Johann Lay <avr@gjlay.de>
1836
1837 Forward-port from gcc-4_6-branch r181936 2011-12-02.
1838 * config/avr/avr-mcus.def (avr_mcu_types): ATtiny4313 and
1839 AT86RF401 have a 16-bit SP (their manual is bogus).
1840
1841 2011-12-06 Georg-Johann Lay <avr@gjlay.de>
1842
1843 Forward-port from gcc-4_6-branch r181936 2011-12-02.
1844
1845 PR target/51002
1846 * config/avr/avr.md (movhi_sp_r): Set insn condition to
1847 !AVR_HAVE_8BIT_SP.
1848 * config/avr/avr.c (output_movhi): Use "clr%B0" instead of "in
1849 %B0,__SP_H__" if AVR_HAVE_8BIT_SP.
1850 (avr_file_start): Only print "__SP_H__ = 0x3e" if !AVR_HAVE_8BIT_SP.
1851
1852 2011-12-06 Georg-Johann Lay <avr@gjlay.de>
1853
1854 PR target/51409
1855 PR target/49868
1856 * config/avr/avr.h (ADDR_SPACE_PGM, ADDR_SPACE_PGM1,
1857 ADDR_SPACE_PGM2, ADDR_SPACE_PGM3, ADDR_SPACE_PGM4,
1858 ADDR_SPACE_PGM5, ADDR_SPACE_PGMX): Write as enum.
1859 (avr_addrspace_t): New typedef.
1860 (avr_addrspace): New declaration.
1861 * config/avr/avr-c.c (avr_toupper): New static function.
1862 (avr_register_target_pragmas, avr_cpu_cpp_builtins): Use
1863 avr_addrspace to get address space information.
1864 * config/avr/avr.c (avr_addrspace): New variable.
1865 (avr_out_lpm, avr_pgm_check_var_decl, avr_insert_attributes,
1866 avr_asm_named_section, avr_section_type_flags,
1867 avr_asm_select_section, avr_addr_space_address_mode,
1868 avr_addr_space_convert, avr_emit_movmemhi): Use it.
1869 (avr_addr_space_pointer_mode): Forward to avr_addr_space_address_mode.
1870 (avr_pgm_segment): Remove.
1871
1872 2011-12-06 Richard Guenther <rguenther@suse.de>
1873
1874 PR middle-end/50601
1875 * varasm.c (assemble_alias): Move DECL_EXTERNAL implementation
1876 quirk adjustjment ...
1877 * passes.c (rest_of_decl_compilation): ... here.
1878
1879 2011-12-06 Richard Guenther <rguenther@suse.de>
1880
1881 PR middle-end/51436
1882 * gimple-fold.c (gimplify_and_update_call_from_tree): Guard vdef check
1883 for the fact we do not have virtual operands when not optimizing.
1884
1885 2011-12-06 Richard Guenther <rguenther@suse.de>
1886
1887 PR tree-optimization/51245
1888 * tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces):
1889 New function.
1890 (vn_reference_lookup_3): Use it. Properly valueize all refs we create.
1891
1892 2011-12-06 Iain Sandoe <iains@gcc.gnu.org>
1893
1894 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Initialize
1895 rs6000_current_abi.
1896
1897 2011-12-06 Richard Guenther <rguenther@suse.de>
1898
1899 PR tree-optimization/51363
1900 * gimple.c (gimple_rhs_has_side_effects): Remove.
1901 * gimple.h (gimple_rhs_has_side_effects): Likewise.
1902 * tree-ssa-dom.c (optimize_stmt): Simplify conditional.
1903
1904 2011-12-06 Alan Modra <amodra@gmail.com>
1905
1906 PR target/50906
1907 * config/rs6000/rs6000.c (rs6000_emit_prologue <TARGET_SPE_ABI>):
1908 Do not mark r11 setup as frame-related. Pass correct offset to
1909 rs6000_emit_savres_rtx. Correct out-of-line rs6000_frame_related
1910 arguments. Correct sp_offset. Remove "offset" fudge from
1911 in-line rs6000_frame_related call. Rename misleading variable.
1912 Fix comments and whitespace. Tidy some expressions.
1913 (rs6000_emit_epilogue <TARGET_SPE_ABI>): Always set frame_reg_rtx
1914 to r11 in out-of-line case. Correct sp_offset. Pass correct
1915 offset to rs6000_emit_savres_rtx. Rename misleading variable.
1916 Fix comments and whitespace. Tidy some expressions.
1917 (rs6000_emit_epilogue <non-TARGET_SPE_ABI>): Add sp_offset
1918 adjustment when !saving_GPRs_inline. Correct register mode
1919 used in address calcs.
1920 (rs6000_emit_epilogue <non-TARGET_SPE_ABI>): Similarly when
1921 !restoring_GPRs_inline.
1922
1923 2011-12-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1924
1925 * config/arm/vfp.md (*combine_vcvt_f64_<FCVTI32typename>): Fix
1926 formatting character for vmov.f64 case.
1927
1928 2011-12-05 Jakub Jelinek <jakub@redhat.com>
1929
1930 PR tree-optimization/51396
1931 * tree-ssa-math-opts.c (convert_mult_to_fma): Don't optimize
1932 if MUL_RESULT has zero uses.
1933
1934 PR debug/51410
1935 * c-decl.c (pop_scope): Don't add DECL_EXTERNAL decls
1936 for debug info if scope is file_scope.
1937
1938 PR c/51339
1939 * c-decl.c (c_finish_incomplete_decl, finish_decl): Call
1940 relayout_decl instead of layout_decl.
1941
1942 2011-12-05 Richard Sandiford <rdsandiford@googlemail.com>
1943
1944 * resource.c (init_resource_info): Only consider EXIT_IGNORE_STACK
1945 if there is in epilogue.
1946
1947 2011-12-05 Richard Sandiford <rdsandiford@googlemail.com>
1948
1949 * optabs.c (maybe_emit_sync_lock_test_and_set): Pass a null target
1950 to emit_library_call_value.
1951 (expand_atomic_compare_and_swap): Likewise.
1952
1953 2011-12-05 Vladimir Makarov <vmakarov@redhat.com>
1954
1955 PR other/50775
1956 * ira-int.h (struct ira_object): Remove add_data.
1957 (OBJECT_ADD_DATA): Remove.
1958
1959 * ira-build.c (ira_create_object): Remove OBJECT_ADD_DATA
1960 initialization.
1961
1962 * ira-color.c (object_hard_regs_t, object_hard_regs): Rename to
1963 allocno_hard_regs_t, allocno_hard_regs.
1964 (object_hard_regs_node_t, object_hard_regs_node): Rename to
1965 allocno_hard_regs_node_t and allocno_hard_regs_node.
1966 (struct allocno_color_data): Add new member last_process. Move
1967 profitable_hard_regs, hard_regs_node, and hard_regs_subnodes_start
1968 from object_color_data.
1969 (object_color_data_t, object_color_data, OBJECT_COLOR_DATA): Remove.
1970 (curr_allocno_process): New static variable.
1971 (object_hard_regs_eq, object_hard_regs_htab): Rename to
1972 allocno_hard_regs_eq and allocno_hard_regs_htab.
1973 (init_object_hard_regs, finish_object_hard_regs): Rename to
1974 init_allocno_hard_regs and finish_allocno_hard_regs.
1975 (object_hard_regs_compare, object_hard_regs_node_t): Rename to
1976 allocno_hard_regs_compare and allocno_hard_regs_node_t.
1977 (create_new_object_hard_regs_node): Rename to
1978 create_new_allocno_hard_regs_node.
1979 (add_new_object_hard_regs_node_to_forest): Rename to
1980 add_new_allocno_hard_regs_node_to_forest.
1981 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover):
1982 Rename to add_allocno_hard_regs_to_forest and
1983 collect_allocno_hard_regs_cover.
1984 (setup_object_hard_regs_nodes_parent): Rename to
1985 setup_allocno_hard_regs_nodes_parent.
1986 (remove_unused_object_hard_regs_nodes): Rename to
1987 remove_unused_allocno_hard_regs_nodes.
1988 (enumerate_object_hard_regs_nodes, object_hard_regs_nodes_num):
1989 Rename to enumerate_allocno_hard_regs_nodes and
1990 allocno_hard_regs_nodes_num.
1991 (object_hard_regs_nodes, object_hard_regs_subnode_t): Rename to
1992 allocno_hard_regs_nodes and allocno_hard_regs_subnode_t.
1993 (object_hard_regs_subnode, object_hard_regs_subnodes): Rename to
1994 allocno_hard_regs_subnode and allocno_hard_regs_subnodes.
1995 (object_hard_regs_subnode_index): Rename to
1996 allocno_hard_regs_subnode_index.
1997 (setup_object_hard_regs_subnode_index): Rename to
1998 setup_allocno_hard_regs_subnode_index.
1999 (get_object_hard_regs_subnodes_num): Rename to
2000 get_allocno_hard_regs_subnodes_num.
2001 (form_object_hard_regs_nodes_forest): Rename to
2002 form_allocno_hard_regs_nodes_forest.
2003 (finish_object_hard_regs_nodes_tree): Rename to
2004 form_allocno_hard_regs_nodes_forest
2005 (finish_object_hard_regs_nodes_forest): Rename to
2006 finish_allocno_hard_regs_nodes_forest.
2007 (setup_left_conflict_sizes_p): Use allocno data instead of object ones.
2008 Process conflict allocnos once.
2009 (update_left_conflict_sizes_p): Use allocno data instead of object
2010 ones. Change prototype signature.
2011 (empty_profitable_hard_regs): Use allocno data instead of object ones.
2012 (setup_profitable_hard_regs): Ditto.
2013 (get_conflict_profitable_regs): Rename to
2014 get_conflict_and_start_profitable_regs. Use allocno data for
2015 profitable regs calculation.
2016 (check_hard_reg_p): Change prototype signature. Check profitable
2017 regs for allocno not the objects.
2018 (assign_hard_reg): Process conflict allocnos only once for
2019 updating conflict costs.
2020 (setup_allocno_available_regs_num): Use allocno data instead of
2021 object ones. Modify debug output.
2022 (color_pass): Remove initialization and finalization of object
2023 color data.
2024
2025 2011-12-05 Kazu Hirata <kazu@codesourcery.com>
2026
2027 PR target/51408
2028 * config/arm/arm.md (*minmax_arithsi): Always require the else
2029 clause in the MINUS case.
2030
2031 2011-12-05 Richard Guenther <rguenther@suse.de>
2032
2033 PR tree-optimization/50904
2034 * tree-ssa-loop-im.c (struct mem_ref): Remove vops member.
2035 (MEM_ANALYZABLE): New.
2036 (memory_references): Remove clobbered_vops and vop_ref_map
2037 members, add all_refs_stored_in_loop member.
2038 (memref_free): Adjust.
2039 (mem_ref_alloc): Likewise.
2040 (gather_mem_refs_stmt): Do not record clobbers, instead
2041 record refs for unanalyzable stmts.
2042 (gather_mem_refs_in_loops): Do not propagate clobbers.
2043 (struct vop_to_refs_elt, vtoe_hash, vtoe_eq, vtoe_free,
2044 record_vop_access, get_vop_accesses, get_vop_stores,
2045 add_vop_ref_mapping): Remove.
2046 (create_vop_ref_mapping_loop): Adjust to simply record all stores.
2047 (analyze_memory_references): Adjust.
2048 (refs_independent_p): Check for not analyzable refs.
2049 (can_sm_ref_p): Likewise.
2050 (ref_indep_loop_p_1): Simplify.
2051 (tree_ssa_lim_finalize): Adjust.
2052
2053 * tree-ssa-loop-im.c (stmt_cost): Simplify, use LIM_EXPENSIVE
2054 rather than magic constants. Assign zero cost to PAREN_EXPR
2055 and SSA_NAME copies. Assign cost proportional to the vector
2056 size for vector constructors.
2057
2058 2011-12-05 Richard Guenther <rguenther@suse.de>
2059
2060 * tree-ssa-alias.h (struct ao_ref_s): Add volatile_p field.
2061 * tree-ssa-alias.c (ao_ref_init): Initialize it.
2062 (ao_ref_init_from_ptr_and_size): Likewise.
2063 (refs_may_alias_p_1): Two volatile accesses conflict.
2064 (ref_maybe_used_by_call_p_1): Likewise.
2065 (call_may_clobber_ref_p_1): Likewise.
2066 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Initialize
2067 volatile_p field.
2068
2069 2011-12-05 Richard Guenther <rguenther@suse.de>
2070
2071 * tree-ssa.c (verify_ssa): Verify SSA names in the loop over all SSA
2072 names. Remove SSA operand checking, call verify_ssa_operands.
2073 * tree-ssa-operands.h (verify_ssa_operands): Declare.
2074 * tree-ssa-operands.c (verify_ssa_operands): New function.
2075
2076 2011-12-05 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2077
2078 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Define.
2079 * config/arm/arm-protos.h (vfp3_const_double_for_fract_bits): Declare.
2080 * config/arm/constraints.md ("Dt"): New constraint.
2081 * config/arm/predicates.md
2082 (const_double_vcvt_power_of_two_reciprocal): New.
2083 * config/arm/vfp.md (FCVTI32typename): New.
2084 (FCVT): New iterator.
2085 (*combine_vcvt_f32_<FCVTI32typename>): New.
2086 (*combine_vcvt_f64_<FCVTI32typename>): New.
2087
2088 2011-12-05 Richard Guenther <rguenther@suse.de>
2089
2090 * cgraph.c (cgraph_create_edge_1): Initialize
2091 call_stmt_cannot_inline_p from the stmt if possible.
2092 (cgraph_make_edge_direct): Likewise.
2093 * gimple-streamer-in.c (input_gimple_stmt): Do not
2094 call gimple_call_set_cannot_inline.
2095 * gimple.h (enum gf_mask): Remove GF_CALL_CANNOT_INLINE, shift values.
2096 (gimple_call_set_cannot_inline): Remove.
2097 (gimple_call_cannot_inline_p): Likewise.
2098 * ipa-inline-analysis.c (initialize_inline_failed): Look
2099 at the edge call_stmt_cannot_inline_p flag.
2100 * ipa-inline.c (can_inline_edge_p): Likewise.
2101 (early_inliner): Only update the edge flag.
2102 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
2103 (ipa_modify_call_arguments): Do not call gimple_call_set_cannot_inline.
2104 * cgraphunit.c (assemble_thunk): Likewise.
2105 * gimple-fold.c (gimple_fold_call): Likewise.
2106
2107 * tree.h (CALL_CANNOT_INLINE_P): Remove.
2108 * tree-mudflap.c (mf_xform_statements): Do not modify alloca calls.
2109 * builtins.c (expand_builtin_alloca): With -fmudflap do not expand
2110 alloca calls inline.
2111 * cfgexpand.c (expand_call_stmt): Do not set CALL_CANNOT_INLINE_P.
2112 * gimple.c (gimple_build_call_from_tree): Do not read
2113 CALL_CANNOT_INLINE_P.
2114 * gimplify.c (gimplify_call_expr): Do not copy CALL_CANNOT_INLINE_P.
2115
2116 2011-12-05 Jakub Jelinek <jakub@redhat.com>
2117 Eric Botcazou <ebotcazou@adacore.com>
2118
2119 PR middle-end/51323
2120 PR middle-end/50074
2121 * calls.c (internal_arg_pointer_exp_state): New variable.
2122 (internal_arg_pointer_based_exp_1,
2123 internal_arg_pointer_exp_scan): New functions.
2124 (internal_arg_pointer_based_exp): New function.
2125 (mem_overlaps_already_clobbered_arg_p): Use it.
2126 (expand_call): Free internal_arg_pointer_exp_state.cache vector
2127 and clear internal_arg_pointer_exp_state.scan_start.
2128
2129 2011-12-04 Kaz Kojima <kkojima@gcc.gnu.org>
2130
2131 * config/sh/linux.h (TARGET_DEFAULT): Add MASK_SOFT_ATOMIC.
2132 * config/sh/sync.md: New file.
2133 * config/sh/sh.md: Include sync.md.
2134 * config/sh/sh.opt (msoft-atomic): New option.
2135 * doc/invoke.texi (SH Options): Document it.
2136
2137 2011-12-04 Nathan Sidwell <nathan@acm.org>
2138
2139 * gcov-io.h (struct gcov_info): Replace trailing array with
2140 pointer to array.
2141 * profile.c (branch_prob): Only call renamed
2142 coverage_begin_function once.
2143 * coverage.h (coverage_begin_output): Rename to ...
2144 (coverage_begin_function): ... here.
2145 * coverage.c (struct function_list): Rename to ...
2146 (struct coverage_data): ... this. Update all uses.
2147 (gcov_info_var, gcov_fn_info_type, gcov_fn_info_ptr_type): New globals.
2148 (bbg_file_opened, bbg_function_announced): Remove.
2149 (get_coverage_counts): Adjust message.
2150 (coverage_begin_ouput): Rename to ...
2151 (coverage_begin_function): ... here. Move file opening to
2152 coverage_init. Adjust for being called only once.
2153 (coverage_end_function): Remove bbg file and inhibit further
2154 output here on error.
2155 (build_info_type): Adjust for change to pointer to array.
2156 (build_info): Receive array of function pointers and adjust.
2157 (create_coverage): Break into ...
2158 (coverage_obj_init, coverage_obj_fn, coverage_obj_finish):
2159 ... these, and adjust.
2160 (coverage_init): Open the notes file here. Tidy.
2161 (coverage_finish): Call coverage_obj_init etc.
2162
2163 2011-12-04 Ira Rosen <ira.rosen@linaro.org>
2164
2165 PR middle-end/51285
2166 * tree-vect-loop.c (vect_create_epilog_for_reduction): Create exit
2167 phi nodes for outer loop in case of double reduction.
2168
2169 2011-12-04 Jérémie Detrey <Jeremie.Detrey@loria.fr>
2170
2171 PR target/51393
2172 * config/i386/avxintrin.h (_mm256_insert_epi64): Declare second
2173 parameter as long long.
2174
2175 2011-12-04 Richard Sandiford <rdsandiford@googlemail.com>
2176
2177 PR middle-end/51351
2178 * optabs.c (init_sync_libfuncs): Use "or" rather than "ior"
2179 in the external names.
2180
2181 2011-12-03 Jack Howarth <howarth@bromo.med.uc.edu>
2182
2183 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Pass -no_pie for
2184 non-PIC code when targeting 10.7 or later.
2185
2186 2011-12-03 Iain Sandoe <iains@gcc.gnu.org>
2187
2188 * config/darwin.h (STARTFILE_SPEC): Do not use -lbundle1.o when
2189 Darwin >= 10.
2190 (DARWIN_DYLIB1_SPEC): Do not use -ldylib1.10.5.o when Darwin >= 10.
2191 (DARWIN_CRT1_SPEC): Use -lcrt1.10.6.o when Darwin >= 10.
2192
2193 2011-12-03 Jakub Jelinek <jakub@redhat.com>
2194
2195 * fold-const.c (fold_unary_loc): Fold VEC_UNPACK_LO_EXPR,
2196 VEC_UNPACK_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR and
2197 VEC_UNPACK_FLOAT_HI_EXPR with VECTOR_CST argument.
2198 (fold_binary_loc): Fold VEC_PACK_TRUNC_EXPR,
2199 VEC_PACK_FIX_TRUNC_EXPR, VEC_WIDEN_MULT_LO_EXPR
2200 and VEC_WIDEN_MULT_HI_EXPR with VECTOR_CST arguments.
2201
2202 PR debug/50317
2203 * tree-ssa.c (target_for_debug_bind): Also allow is_gimple_reg_type
2204 vars that aren't referenced.
2205 (tree-ssa-live.c (remove_unused_locals): Don't clear TREE_ADDRESSABLE
2206 of unreferenced local vars.
2207 * cfgexpand.c (expand_debug_expr): For DEBUG_IMPLICIT_PTR allow also
2208 TREE_ADDRESSABLE vars that satisfy target_for_debug_bind.
2209
2210 2011-12-03 Anatoly Sokolov <aesok@post.ru>
2211
2212 * config/arm/arm.h (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove.
2213 * config/arm/arm-protos.h (aapcs_libcall_value): Remove.
2214 * config/arm/arm.c (TARGET_FUNCTION_VALUE_REGNO_P): Define.
2215 (arm_libcall_value_1, arm_function_value_regno_p): New function.
2216 (arm_function_value, arm_libcall_value): Use arm_libcall_value_1.
2217 (aapcs_libcall_value): Make static.
2218 (arm_libcall_value): Add static qualifier.
2219
2220 2011-12-02 Jakub Jelinek <jakub@redhat.com>
2221
2222 PR target/51387
2223 * config/i386/sse.md (mul<mode>3 with VI1_AVX2 iterator): For
2224 V32QImode use { 0,2,..,14,32,34,..,46,16,18,..,30,48,50,..,62 }
2225 permutation instead of extract even permutation.
2226
2227 2011-12-02 Nathan Sidwell <nathan@acm.org>
2228
2229 * gcov.c (struct arc_info): Add is_throw field.
2230 (struct (block_info): Add exceptional field, reduce flags size to
2231 account for it.
2232 (struct function_info): Add has_catch field.
2233 (struct line_info): Add unexceptional field.
2234 (process_file): Call find_exception_blocks if necessary.
2235 (read_graph_file): Adjust. Note if an exceptional edge is seen.
2236 (find_exception_blocks): New.
2237 (add_line_counts): Set line's unexceptional flag if not exceptional.
2238 (output_branch_count): Note exceptional arcs, lines and blocks.
2239 * gcov-dump.c (tag_arcs): Decode arc flags.
2240 * doc/gcov.texi: Document '=====' lines.
2241
2242 2011-12-02 Anatoly Sokolov <aesok@post.ru>
2243
2244 * config/ia64/ia64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2245 PRINT_OPERAND_PUNCT_VALID_P): Remove macros.
2246 * config/ia64/ia64-protos.h (ia64_print_operand,
2247 ia64_print_operand_address): Remove.
2248 * config/ia64/ia64.c (TARGET_PRINT_OPERAND,
2249 TARGET_PRINT_OPERAND_ADDRESS, TARGET_PRINT_OPERAND_PUNCT_VALID_P):
2250 Define.
2251 (ia64_print_operand_punct_valid_p): New function.
2252 (ia64_print_operand, ia64_print_operand_address): Make static.
2253
2254 2011-12-02 Michael Meissner <meissner@linux.vnet.ibm.com>
2255
2256 PR target/51390
2257 * config/rs6000/rs6000.c (def_builtin): Use the correct field to
2258 figure out the function's attributes.
2259 (struct builtin_description): Mark mask field as const since we no
2260 longer need to modify it for SPE and PAIRED builtins.
2261
2262 2011-12-02 Joseph Myers <joseph@codesourcery.com>
2263
2264 Revert:
2265
2266 2008-09-18 Andrew Pinski <andrew_pinski@playstation.sony.com>
2267
2268 PR rtl-opt/37451
2269 * loop-doloop.c (doloop_modify): New argument zero_extend_p and
2270 zero extend count after the correction to it is done.
2271 (doloop_optimize): Update call to doloop_modify, don't zero extend
2272 count before call.
2273
2274 2008-11-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
2275
2276 PR rtl-opt/37782
2277 * loop-doloop.c (doloop_modify): Add from_mode argument that says what
2278 mode count is in.
2279 (doloop_optimize): Update call to doloop_modify.
2280
2281 2011-12-02 Richard Guenther <rguenther@suse.de>
2282
2283 PR lto/47259
2284 * ipa.c (varpool_externally_visible_p): Register variables
2285 are always externally visible.
2286
2287 2011-12-02 Sameera Deshpande <sameera.deshpande@arm.com>
2288
2289 * gimple-pretty-print.c (dump_gimple_call): Dereference fn only if
2290 non-NULL.
2291
2292 2011-12-02 Martin Jambor <mjambor@suse.cz>
2293
2294 PR tree-optimization/50622
2295 * tree-sra.c (load_assign_lhs_subreplacements): Force gimple operand
2296 if both lacc and racc are grp_partial_lhs.
2297
2298 2011-12-01 Kaz Kojima <kkojima@gcc.gnu.org>
2299
2300 PR target/50814.
2301 * config/sh/sh.c (expand_ashiftrt): Handle TARGET_SH2A same as
2302 TARGET_SH3.
2303 (shl_sext_kind): Likewise.
2304 * config/sh/sh.h (SH_DYNAMIC_SHIFT_COST): Likewise.
2305 * config/sh/sh.md (ashlsi3_sh2a, ashrsi3_sh2a, lshrsi3_sh2a): Remove.
2306 (ashlsi3_std): Handle TARGET_SH2A same as TARGET_SH3.
2307 (ashlsi3): Likewise.
2308 (ashrsi3_d): Likewise.
2309 (lshrsi3_d): Likewise.
2310 (lshrsi3): Likewise.
2311
2312 2011-12-01 Diego Novillo <dnovillo@google.com>
2313
2314 PR bootstrap/51346
2315 * ipa-inline.c (can_inline_edge_p): If the edge E has a statement,
2316 use the statement's inline indicator instead of E's.
2317 Remove consistency check.
2318
2319 2011-12-01 Diego Novillo <dnovillo@google.com>
2320
2321 PR bootstrap/51346
2322 Revert
2323
2324 2011-11-29 Diego Novillo <dnovillo@google.com>
2325
2326 * gimple.c (gimple_call_set_cannot_inline): Move from gimple.h.
2327 Update field call_stmt_cannot_inline_p from call
2328 graph edge, if needed.
2329 * gimple.h (gimple_call_set_cannot_inline): Move to gimple.c.
2330
2331 2011-12-01 Nathan Sidwell <nathan@acm.org>
2332
2333 PR gcov-profile/51113
2334 * coverage.c (build_var): Keep coverage variables static.
2335
2336 2011-12-01 Jakub Jelinek <jakub@redhat.com>
2337
2338 PR tree-optimization/51356
2339 * tree-vect-patterns.c (vect_recog_bool_pattern): Give up if
2340 vectype doesn't have VECTOR_MODE_P.
2341
2342 PR debug/50317
2343 * tree-ssa-dce.c (remove_dead_stmt): Add a debug stmt when removing
2344 as unnecessary a store to a variable with gimple reg type.
2345 * tree-ssa-live.c (remove_unused_locals): Clear TREE_ADDRESSABLE bit
2346 on local unreferenced variables.
2347 * cfgexpand.c (expand_gimple_basic_block): Don't emit DEBUG_INSNs
2348 for !target_for_debug_bind variables.
2349
2350 2011-12-01 Patrick Marlier <patrick.marlier@gmail.com>
2351
2352 PR middle-end/51273
2353 * cgraph.h (cgraph_call_node_duplication_hooks): Declare.
2354 * cgraph.c (cgraph_call_node_duplication_hooks): Make global.
2355 * cgraphunit.c (cgraph_copy_node_for_versioning): Call it.
2356
2357 2011-12-01 Andrew Pinski <apinski@cavium.com>
2358
2359 PR lto/51198
2360 * tree.c (free_lang_data_in_decl): Clear FIELD_DECL's
2361 DECL_INITIAL also.
2362
2363 2011-12-01 Jakub Jelinek <jakub@redhat.com>
2364
2365 PR tree-optimization/51246
2366 * tree-predcom.c (replace_ref_with): Handle also clobber on the rhs.
2367
2368 PR rtl-optimization/51014
2369 * loop-unroll.c (apply_opt_in_copies): Ignore label DEBUG_INSNs
2370 both from bb and orig_bb.
2371
2372 2011-12-01 Joern Rennecke <joern.rennecke@embecosm.com>
2373
2374 PR tree-optimization/50802
2375 * tree-vrp.c (simplify_conversion_using_ranges): Rewrite test
2376 considering what happens to ranges during sign changes and/or
2377 intermediate narrowing conversions.
2378
2379 2011-11-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2380
2381 PR middle-end/50283
2382 * config/pa/pa.md (in_branch_delay): Disallow frame related insns.
2383 (in_nullified_branch_delay): Likewise.
2384 (in_call_delay): Likewise.
2385
2386 2011-11-30 Richard Henderson <rth@redhat.com>
2387
2388 * predict.c (expr_expected_value_1): Assume compare-and-swap builtin
2389 boolean return is true.
2390
2391 2011-11-30 Jakub Jelinek <jakub@redhat.com>
2392
2393 PR rtl-optimization/51044
2394 * dse.c (emit_inc_dec_insn_before): Ensure new_insn is an instruction
2395 rather than just insn body.
2396
2397 PR target/50725
2398 * function.c (thread_prologue_and_epilogue_insns): If
2399 stack_realign_drap, add drap_reg to SET_UP_BY_PROLOGUE
2400 regset.
2401
2402 PR middle-end/51089
2403 * tree-eh.c (cleanup_empty_eh_merge_phis): Add check to
2404 avoid creating duplicate edges here.
2405 (cleanup_empty_eh_unsplit): And remove it in the caller.
2406
2407 2011-11-30 Andrew Pinski <apinski@cavium.com>
2408
2409 PR c/51321
2410 * c-parser.c (c_parser_postfix_expression): Check groktypename results
2411 before looking at the main variant.
2412
2413 2011-11-30 Jakub Jelinek <jakub@redhat.com>
2414
2415 PR rtl-optimization/48721
2416 * sched-deps.c (sched_analyze_insn): For SIBLING_CALL_P set
2417 reg_pending_barrier to TRUE_BARRIER.
2418
2419 PR rtl-optimization/48721
2420 * sched-ebb.c (begin_move_insn): Insert empty unreachable
2421 block after BARRIER if insn is followed by it.
2422
2423 2011-11-30 Richard Henderson <rth@redhat.com>
2424
2425 * config/sparc/sparc-opts.h (enum sparc_memory_model_type): New.
2426 * config/sparc/sparc.opt (mmemory-model=): New option.
2427 * doc/invoke.texi (Sparc Options): Document it.
2428 * config/sparc/sparc.c (sparc_option_override): Provide default
2429 for sparc_memory_model.
2430 (sparc_emit_membar_for_model): Omit barrier combinations that are
2431 implied by the memory model.
2432
2433 2011-11-30 Richard Henderson <rth@redhat.com>
2434
2435 * config/sparc/sync.md (I124MODE): New mode iterator.
2436 (memory_barrier): Remove.
2437 (atomic_exchangesi): New.
2438 (swapsi): Rename from *swapsi.
2439 (atomic_test_and_set<I124MODE>): New.
2440 (ldstubqi): Rename from *ldstubqi, merge with expander.
2441 (ldstub<I24MODE>): Rename from *ldstub<I24MODE>, merge with expander.
2442 (sync_lock_test_and_setsi): Remove.
2443 (sync_lock_test_and_set<I12MODE>): Remove.
2444
2445 2011-11-30 Richard Henderson <rth@redhat.com>
2446
2447 * config/sparc/constraints.md ("w"): New.
2448 * config/sparc/predicates.md (mem_noofs_operand): New.
2449 * config/sparc/sparc.c (sparc_expand_compare_and_swap_12): Make static.
2450 Generate the boolean result of the atomic_compare_exchange.
2451 (sparc_expand_compare_and_swap): New.
2452 * config/sparc/sync.md (atomic_compare_and_swap<I>): New.
2453 (atomic_compare_and_swap<I48MODE>_1): Rename from
2454 *sync_compare_and_swap<I48MODE>, use mem_noofs_operand.
2455 (*atomic_compare_and_swapdi_v8plus): Rename from
2456 *sync_compare_and_swapdi_v8plus, use mem_noofs_operand.
2457 (sync_compare_and_swap<I12MODE>): Remove.
2458 (sync_compare_and_swap<I48MODE>): Remove.
2459
2460 2011-11-30 Richard Henderson <rth@redhat.com>
2461
2462 * config/sparc/predicates.md (register_or_v9_zero_operand): New.
2463 * config/sparc/sparc.md (UNSPEC_ATOMIC): New.
2464 * config/sparc/sync.md (atomic_load<I>): New.
2465 (atomic_loaddi_1, atomic_store<I>, atomic_storedi_1): New.
2466
2467 2011-11-30 Richard Henderson <rth@redhat.com>
2468
2469 * config/sparc/predicates.md (zero_or_v7_operand): New.
2470 * config/sparc/sparc.c (sparc_emit_membar_for_model): New.
2471 * config/sparc/sparc-protos.h: Update.
2472 * config/sparc/sync.md (mem_thread_fence): New.
2473 (memory_barrier): Use sparc_emit_membar_for_model.
2474 (membar, *membar_empty, *membar_storestore, *membar_storeload): New.
2475 (*membar_v8): Accept and ignore the membar mask.
2476 (*membar): Accept and print the membar mask.
2477
2478 2011-11-30 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2479
2480 * config/arm/arm.c (arm_issue_rate): Cortex-A15 can triple issue.
2481 * config/arm/arm.md (mul64): New attribute.
2482 (generic_sched): Cortex-A15 is not scheduled generically.
2483 (cortex-a15.md): Include.
2484 * config/arm/cortex-a15.md: New machine description.
2485 * config/arm/t-arm (MD_INCLUDES): Add cortex-a15.md.
2486
2487 2011-11-30 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2488
2489 * config/arm/t-arm (MD_INCLUDES): Ensure all md files are listed.
2490
2491 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
2492
2493 * doc/tm.texi.in (NEXT_OBJC_RUNTIME): Update macro description.
2494 * doc/tm.texi: Regenerate.
2495 * flags.h (flag_next_runtime): Remove references.
2496 * toplev.c: Likewise.
2497 * defaults.h (NEXT_OBJC_RUNTIME): Provide default.
2498 * gccspec.c (lang_specific_driver): Adjust use of NEXT_OBJC_RUNTIME.
2499 * config/darwin.c (darwin_override_options): Provide default
2500 Objective-C abi settings and target conflict checks.
2501 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): Remove unused
2502 code. Adjust indenting.
2503
2504 2011-11-29 Joseph Myers <joseph@codesourcery.com>
2505
2506 * config/sh/sh.h (enum reg_class, REG_CLASS_NAMES)
2507 (REG_CLASS_CONTENTS): Add NON_SP_REGS.
2508 (REGCLASS_HAS_GENERAL_REG): Handle NON_SP_REGS.
2509 * config/sh/constraints.md (u): New constraint.
2510
2511 2011-11-29 Oleg Endo <oleg.endo@t-online.de>
2512
2513 PR target/51337
2514 * config/sh/sh.c (sh_secondary_reload): Add case when FPUL
2515 register is being loaded from a pseudo in memory.
2516
2517 2011-11-29 DJ Delorie <dj@redhat.com>
2518
2519 * config.gcc (rl78-*-elf): New case.
2520 * doc/extend.texi: Add RL78 documentation.
2521 * doc/invoke.texi: Likewise.
2522 * doc/md.texi: Likewise.
2523 * doc/contrib.texi: Add RL78.
2524 * doc/install.texi: Add rl78-*-elf.
2525 * config/rl78: New directory for the Renesas RL78.
2526
2527 2011-11-29 Jakub Jelinek <jakub@redhat.com>
2528
2529 PR tree-optimization/51247
2530 * tree-vrp.c (extract_range_from_assert): For signed 1-bit precision
2531 types instead of adding 1 subtract -1 and instead of subtracting 1
2532 add -1 to avoid overflows.
2533
2534 2011-11-29 Andrew MacLeod <amacleod@redhat.com>
2535
2536 PR target/50123
2537 * optabs.c (maybe_optimize_fetch_op): New. Look for more optimal
2538 instructions for a FECTH_OP or OP_FECTH sequence.
2539 (expand_atomic_fetch_op): Call maybe_optimize_fetch_op.
2540
2541 2011-11-29 Uros Bizjak <ubizjak@gmail.com>
2542
2543 * config/i386/sync.md (UNSPEC_LDA, UNSPEC_STA): New unspecs.
2544 (movdi_via_fpu): Remove.
2545 (loaddi_via_fpu): New insn pattern.
2546 (storedi_via_fpu): Ditto.
2547 (atomic_loaddi_fpu): Use loaddi_via_fpu and storedi_via_fpu.
2548 (atomic_storedi_fpu): Ditto.
2549 * reg-stack.c (get_true_reg): Handle UNSPEC_LDA.
2550 (subst_stack_regs_pat): Handle UNSPEC_STA.
2551
2552 2011-11-29 Uros Bizjak <ubizjak@gmail.com>
2553
2554 * config/i386/i386.md (*floathi<mode>2_i387_with_temp): Do not
2555 allocate scratch memory for alternative 0.
2556
2557 2011-11-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2558
2559 * config/rs6000/rs6000-builtins.def: Completely rewrite builtin
2560 handling to centralize more of the builtins in this file. Change
2561 some builtin enumerations to be more consistant. Use a new mask
2562 to hold the current builtins, including SPE and PAIRED builtins
2563 which no longer are set via target_flags masks. Add
2564 -mdebug=builtin debug support. For power machines, define all
2565 Altivec and VSX buitins when the compiler starts, but don't allow
2566 the use of a builtin unless the appropriate switch is used, or
2567 #pragma GCC target is used to change the options. If the user
2568 uses #pragma GCC target, update the appropriate hardware macros.
2569 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Ditto.
2570 * config/rs6000/rs6000.opt (rs6000_builtin_mask): Ditto.
2571 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Ditto.
2572 (rs6000_define_or_undefine_macro): Ditto.
2573 (rs6000_target_modify_macros): Ditto.
2574 (rs6000_cpu_cpp_builtins): Ditto.
2575 (altivec_overloaded_builtins): Ditto.
2576 (altivec_build_resolved_builtin): Ditto.
2577 * config/rs6000/rs6000.c (rs6000_target_modify_macros_ptr): Ditto.
2578 (rs6000_builtin_info): Ditto.
2579 (def_builtin): Ditto.
2580 (enable_mask_for_builtins): Ditto.
2581 (DEBUG_FMT_X): Ditto.
2582 (rs6000_debug_reg_global): Ditto.
2583 (rs6000_builtin_mask_calculate): Ditto.
2584 (rs6000_option_override_internal): Ditto.
2585 (rs6000_builtin_conversion): Ditto.
2586 (rs6000_builtin_vectorized_function): Ditto.
2587 (bdesc_3arg): Ditto.
2588 (bdesc_dst): Ditto.
2589 (bdesc_2arg): Ditto.
2590 (builtin_description_predicates): Ditto.
2591 (bdesc_altivec_preds): Ditto.
2592 (bdesc_spe_predicates): Ditto.
2593 (bdesc_spe_evsel): Ditto.
2594 (bdesc_paired_preds): Ditto.
2595 (bdesc_abs): Ditto.
2596 (bdesc_1arg): Ditto.
2597 (rs6000_overloaded_builtin_p): Ditto.
2598 (rs6000_expand_unop_builtin): Ditto.
2599 (bdesc_2arg_spe): Ditto.
2600 (spe_expand_builtin): Ditto.
2601 (rs6000_invalid_builtin): Ditto.
2602 (rs6000_expand_builtin): Ditto.
2603 (rs6000_init_builtins): Ditto.
2604 (spe_init_builtins): Ditto.
2605 (paired_init_builtins): Ditto.
2606 (altivec_init_builtins): Ditto.
2607 (builtin_function_type): Ditto.
2608 (rs6000_common_init_builtins): Ditto.
2609 (rs6000_builtin_reciprocal): Ditto.
2610 (rs6000_builtin_mask_names): Ditto.
2611 (rs6000_pragma_target_parse): Ditto.
2612 (rs6000_function_specific_print): Ditto.
2613 * config/rs6000/rs6000.h (MASK_DEBUG_BUILTIN): Ditto.
2614 (MASK_DEBUG_ALL): Ditto.
2615 (TARGET_DEBUG_BUILTIN): Ditto.
2616 (TARGET_EXTRA_BUILTINS): Ditto.
2617 (REGISTER_TARGET_PRAGMAS): Ditto.
2618 (enum rs6000_btc): Ditto.
2619 (RS6000_BTC_*): Ditto.
2620 (RS6000_BTM_*): Ditto.
2621 (enum rs6000_builtins): Ditto.
2622 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_p): Ditto.
2623 (rs6000_target_modify_macros): Ditto.
2624 (rs6000_target_modify_macros_ptr): Ditto.
2625
2626 * config/rs6000/vector.md (unsfloat<VEC_int><mode>2): Use the
2627 standard name for converting vector unsigned values to floating
2628 point. Delete the TARGET_VECTORIZE_BUILTIN_CONVERSION hook, which
2629 is handled by machine independent code.
2630 * config/rs6000/rs6000.c (TARGET_VECTORIZE_BUILTIN_CONVERSION): Ditto.
2631 (rs6000_builtin_conversion): Ditto.
2632
2633 2011-11-29 Dodji Seketeli <dodji@redhat.com>
2634
2635 * tree-diagnostic (struct loc_t): Rename into struct loc_map_pair.
2636 (maybe_unwind_expanded_macro_loc): Adjust.
2637
2638 2011-11-29 David Edelsohn <dje.gcc@gmail.com>
2639 Aldy Hernandez <aldyh@redhat.com>
2640
2641 * trans-mem.c (ipa_tm_create_version_alias): Mangle new_decl
2642 if DECL_ONE_ONLY.
2643 (ipa_tm_create_version): Same.
2644
2645 2011-11-29 Bernd Schmidt <bernds@codesourcery.com>
2646
2647 * haifa-sched.c (recompute_todo_spec): Simplify and correct the
2648 code checking for a clobber of a condition register when deciding
2649 whether to predicate.
2650
2651 2011-11-29 Diego Novillo <dnovillo@google.com>
2652
2653 * gimple.c (gimple_call_set_cannot_inline): Move from gimple.h.
2654 Update field call_stmt_cannot_inline_p from call graph edge, if needed.
2655 * gimple.h (gimple_call_set_cannot_inline): Move to gimple.c.
2656
2657 2011-11-29 Sameera Deshpande <sameera.deshpande@arm.com>
2658
2659 * config/arm/arm.md (arm_movdi): Update NEG_POOL_RANGE.
2660 (movdf_soft_insn): Likewise.
2661 * config/arm/fpa.md (thumb2_movdf_fpa): Likewise.
2662 * config/arm/neon.md (neon_mov<mode>): Likewise.
2663 * config/arm/vfp.md (movdi_vfp): Likewise.
2664 (movdi_vfp_cortexa8): Likewise.
2665 (movdf_vfp): Likewise.
2666
2667 2011-11-29 Jakub Jelinek <jakub@redhat.com>
2668
2669 PR middle-end/50074
2670 * expr.c (expand_expr_addr_expr_1): Don't call force_operand for
2671 EXPAND_SUM modifier.
2672
2673 2011-11-29 Ira Rosen <ira.rosen@linaro.org>
2674
2675 PR tree-optimization/51301
2676 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check that
2677 the last statement doesn't convert to a bigger type than the original
2678 type of the computation.
2679
2680 2011-11-28 Richard Henderson <rth@redhat.com>
2681
2682 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
2683 Handle overlap between retval and oldval. Always compute boolval
2684 from CR0 EQ value.
2685
2686 2011-11-28 Jakub Jelinek <jakub@redhat.com>
2687
2688 PR debug/50317
2689 * tree-ssa.c (execute_update_addresses_taken): Remove
2690 var ={v} {CLOBBER} stmts instead of rewriting them into
2691 var_N ={v} {CLOBBER}.
2692
2693 PR middle-end/50907
2694 * function.c (convert_jumps_to_returns): When redirecting an edge
2695 succ to EXIT_BLOCK_PTR, clear EDGE_CROSSING flag.
2696
2697 PR tree-optimization/50078
2698 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Copy over
2699 TREE_THIS_VOLATILE also from the old to new lhs resp. rhs.
2700
2701 PR tree-optimization/50682
2702 * tree-eh.c (maybe_remove_unreachable_handlers): New function.
2703 * tree-flow.h (maybe_remove_unreachable_handlers): New prototype.
2704 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Call it.
2705
2706 2011-11-28 Georg-Johann Lay <avr@gjlay.de>
2707
2708 * doc/extend.texi (AVR Built-in Functions): Add documentation for
2709 __builtin_avr_map8 and __builtin_avr_map16.
2710
2711 * config/avr/avr.md: Document new %t and %T asm output codes.
2712 (define_c_enum "unspec"): Add UNSPEC_MAP_BITS.
2713 (adjust_len): Add map_bits.
2714 (map_bitsqi, map_bitshi): New insns.
2715 * config/avr/avr-protos.h (avr_out_map_bits): New.
2716 * config/avr/avr-protos.c (print_operand): Implement %t and %T.
2717 (adjust_insn_length): Handle ADJUST_LEN_MAP_BITS.
2718 (avr_double_int_push_digit): New function.
2719 (avr_map, avr_revert_map, avr_swap_map, avr_id_map): New functions.
2720 (avr_sig_map, avr_map_hamming_byte): New functions.
2721 (avr_out_swap_bits, avr_out_revert_bits, avr_move_bits,
2722 avr_out_map_bits): New functions.
2723 (enum avr_builtin_id): Add AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
2724 (avr_init_builtins): Populate __builtin_avr_map8, __builtin_avr_map16.
2725 (bdesc_2arg): Add __builtin_avr_map8, __builtin_avr_map16 ...
2726 (avr_expand_builtin): ...and expand them.
2727 * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
2728 __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
2729
2730 2011-11-27 Richard Sandiford <rdsandiford@googlemail.com>
2731
2732 PR target/51278
2733 * config/mips/mips.c (mips_rtx_costs): Handle baddu.
2734
2735 2011-11-27 Richard Sandiford <rdsandiford@googlemail.com>
2736
2737 * config/mips/mips.c (mips16_unextended_reference_p): Test for BLKmode.
2738
2739 2011-11-27 Richard Sandiford <rdsandiford@googlemail.com>
2740
2741 * config/mips/mips-protos.h (mips_emit_binary): Declare.
2742 * config/mips/mips.c (mips_emit_binary): Make global.
2743 (mips_set_mips16_mode): Turn off -mfix-r4000 in MIPS16 mode.
2744 (mips_conditional_register_usage): Don't treat LO and HI as
2745 register operands in MIPS16 mode.
2746 (mips_mulsidi3_gen_fn): Use {u,}mulsidi3_{32,64}bit_mips16
2747 for MIPS16 code.
2748 * config/mips/predicates.md (muldiv_target_operand): New predicate.
2749 (move_operand): Allow hilo_operand.
2750 * config/mips/mips.md (mul<mode>3): Explicitly specify LO as the
2751 target of MIPS16 multiplies, then move it into the target register.
2752 (mul<mode>3_internal, *macc2, *msac2): Use muldiv_target_operand.
2753 (<u>mulsidi3_32bit_mips16): New expander.
2754 (<u>mulsidi3_32bit): Use muldiv_target_operand.
2755 (<u>mulsidi3_32bit_r4000): Disable for ISA_HAS_DSP.
2756 (<u>mulsidi3_64bit): Require !TARGET_MIPS16. Split into
2757 <u>mulsidi3_64bit_split.
2758 (<u>mulsidi3_64bit_mips16): New expander.
2759 (<u>mulsidi3_64bit_split): Likewise, using expansions from
2760 two previous define_splits.
2761 (<u>mulsidi3_64bit_hilo, *muls<u>_di, <u>msubsidi4): Use
2762 muldiv_target_operand.
2763 (<su>mulsi3_highpart): Use <su>mulsi3_highpart_split for MIPS16 code.
2764 (<su>mulsi3_highpart_internal): Require !TARGET_MIPS16.
2765 Split into <su>mulsi3_highpart_split.
2766 (<su>mulsi3_highpart_split): New expander.
2767 (<su>muldi3_highpart): Turn into a define_expand.
2768 Use <su>muldi3_highpart_split for MIPS16 code.
2769 (<su>muldi3_highpart_internal): Renamed from <su>muldi3_highpart.
2770 Require !TARGET_MIPS16. Split into <su>muldi3_highpart_split.
2771 (<su>muldi3_highpart_split): New expander.
2772 (<u>mulditi3): Explicitly specify LO as the target of MIPS16
2773 multiplies, then move it into the target register.
2774 (<u>mulditi3_internal, <u>maddsidi4): Use muldiv_target_operand.
2775 (divmod<mode>4, udivmod<mode>4): Turn into define_expands.
2776 Use <u>divmod<mode>4_split for MIPS16 code, then explicitly
2777 move LO into operand 0.
2778 (divmod<mode>4_internal, udivmod<mode>4_internal): Renamed
2779 from <u>divmod<mode>4. Use muldiv_target_operand.
2780 Require !TARGET_MIPS16. Split into <u>divmod<mode>4_split.
2781 (<u>divmod<mode>4_split): New expander.
2782 (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): Use muldiv_target_operand.
2783 (mfhi<GPR:mode>_<HILO:mode>): Use hilo_operand.
2784
2785 2011-11-27 Richard Sandiford <rdsandiford@googlemail.com>
2786
2787 * hard-reg-set.h (target_hard_regs): Add x_accessible_reg_set
2788 and x_operand_reg_set.
2789 (accessible_reg_set, operand_reg_set): New macros.
2790 * reginfo.c (init_reg_sets): Initialize accessible_reg_set and
2791 operand_reg_set.
2792 (saved_accessible_reg_set, saved_operand_reg_set): New variables.
2793 (save_register_info): Save them.
2794 (restore_register_info): Restore them.
2795 (init_reg_sets_1): Limit operand_reg_set to accessible_reg_set.
2796 Remove NO_REGS registers from operand_reg_set. Treat members
2797 of operand_reg_set as fixed.
2798 * recog.c (general_operand): Check operand_reg_set rather than NO_REGS.
2799 (register_operand, nonmemory_operand): Likewise.
2800 * varasm.c (make_decl_rtl): Always use DECL_MODE as the mode of
2801 register variables. Check accessible_reg_set and operand_reg_set.
2802 * config/mips/mips.c (mips_conditional_register_usage): Remove
2803 inaccessible register from accessible_reg_set, rather than just
2804 making them fixed.
2805
2806 2011-11-27 Gerald Pfeifer <gerald@pfeifer.com>
2807
2808 * config/pa/pa-linux.h (TARGET_GAS): Remove comment.
2809
2810 2011-11-26 Richard Henderson <rth@redhat.com>
2811
2812 * config/arm/arm.c (arm_init_libfuncs): Call init_sync_libfuncs
2813 for Linux.
2814
2815 2011-11-26 Richard Henderson <rth@redhat.com>
2816
2817 * optabs.c (expand_atomic_fetch_op): Always return result.
2818
2819 * optabs.c (init_sync_libfuncs_1): Include max in iteration.
2820
2821 * omp-low.c (expand_omp_atomic): Assume anything aligned to
2822 BIGGEST_ALIGNMENT is aligned.
2823
2824 2011-11-26 Richard Henderson <rth@redhat.com>
2825
2826 * config/m68k/m68k.md (UNSPECV_CAS_1, UNSPECV_CAS_2): New.
2827 (UNSPECV_TAS_1, UNSPECV_TAS_2): New.
2828 (I): New mode iterator.
2829 (xz): New mode attribute.
2830 * config/m68k/sync.md: New file.
2831
2832 * config/m68k/linux.h (TARGET_INIT_LIBFUNCS): New.
2833 * config/m68k/m68k.c (m68k_init_sync_libfuncs): New.
2834
2835 2011-11-26 Nathan Sidwell <nathan@acm.org>
2836
2837 PR gcov-profile/51297
2838 * gcov.c (main): Allocate initial names and sources arrays.
2839 (find_source): Don't check for null name or source arrays here.
2840
2841 2011-11-26 Jakub Jelinek <jakub@redhat.com>
2842
2843 PR rtl-optimization/49912
2844 * cfgrtl.c (rtl_verify_flow_info_1): Ignore also EDGE_PRESERVE bit
2845 when counting n_branch.
2846
2847 2011-11-26 Uros Bizjak <ubizjak@gmail.com>
2848
2849 * config/i386/sync.md (movdi_via_fpu): Add %Z insn suffixes.
2850
2851 2011-11-26 Joern Rennecke <joern.rennecke@embecosm.com>
2852
2853 PR middle-end/50074
2854 * calls.c (mem_overlaps_already_clobbered_arg_p):
2855 Return false if no outgoing arguments have been stored so far.
2856
2857 2011-11-25 Georg-Johann Lay <avr@gjlay.de>
2858
2859 * config/avr/avr.c (print_operand): Support code = 'i' for CONST_INT.
2860
2861 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
2862
2863 PR other/51011
2864 * tree.h (is_builtin_name): No longer external.
2865 * builtins.c (is_builtin_name): Make static.
2866 * varasm.c (incorporeal_function_p): __sync and __atomic external calls
2867 are not incorporeal and may need asm label processing.
2868
2869 2011-11-25 Georg-Johann Lay <avr@gjlay.de>
2870
2871 PR target/50566
2872 * config/avr/avr-protos.h (avr_log_t): Add field .builtin.
2873 * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
2874 Don't bypass TARGET_ALL_DEBUG. Print self-info with ?.
2875 (avr_log_vadump): Support %D and %X to print double_int.
2876 (avr_double_int_pop_digit): New static function.
2877 (avr_dump_double_int_hex): New static function.
2878
2879 2011-11-24 Enkovich Ilya <ilya.enkovich@intel.com>
2880
2881 PR target/51287
2882 * config/i386/i386.c (distance_non_agu_define_in_bb): Fix insn
2883 attr check.
2884
2885 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
2886
2887 * optab.c (maybe_emit_atomic_exchange): New. Try to emit an
2888 atomic_exchange pattern.
2889 (maybe_emit_sync_lock_test_and_set): New. Try to emit an exchange
2890 using __sync_lock_test_and_set.
2891 (maybe_emit_compare_and_swap_exchange_loop): New. Try to emit an
2892 exchange using a compare_and_swap loop.
2893 (expand_sync_lock_test_and_set): New. Expand sync_lock_test_and_set.
2894 (expand_atomic_test_and_set): New. Expand test_and_set operation.
2895 (expand_atomic_exchange): Use new maybe_emit_* functions.
2896 (expand_atomic_store): Use new maybe_emit_* functions.
2897 * builtins.c (expand_builtin_sync_lock_test_and_set): Call
2898 expand_sync_lock_test_and_set routine.
2899 (expand_builtin_atomic_exchange): Remove parameter from call.
2900 (expand_builtin_atomic_clear): Use atomic_clear pattern if present.
2901 (expand_builtin_atomic_test_and_set): Add target and simply call
2902 expand_atomic_test_and_set.
2903 (expand_builtin): Add target to expand_builtin_atomic_test_and_set.
2904 * expr.h (expand_atomic_exchange): Add parameter.
2905 (expand_sync_lock_test_and_set): New prototype.
2906 (expand_atomic_test_and_set, expand_atomic_clear): New prototypes.
2907
2908 2011-11-24 H.J. Lu <hongjiu.lu@intel.com>
2909
2910 PR target/51134
2911 * config/i386/i386.h (processor_costs): Revert revision 181357.
2912 * config/i386/i386.c (cost models): Likewise.
2913 (core_cost): Likewise.
2914 (promote_duplicated_reg): Likewise.
2915 (promote_duplicated_reg_to_size): Likewise.
2916 (processor_target): Likewise.
2917 (expand_set_or_movmem_via_loop_with_iter): Likewise.
2918 (expand_set_or_movmem_via_loop): Likewise.
2919 (emit_strset): Likewise.
2920 (expand_movmem_epilogue): Likewise.
2921 (expand_setmem_epilogue): Likewise.
2922 (expand_movmem_prologue): Likewise.
2923 (expand_setmem_prologue): Likewise.
2924 (expand_constant_movmem_prologue): Likewise.
2925 (expand_constant_setmem_prologue): Likewise.
2926 (decide_alg): Likewise.
2927 (decide_alignment): Likewise.
2928 (ix86_expand_movmem): Likewise.
2929 (ix86_expand_setmem): Likewise.
2930 (ix86_slow_unaligned_access): Likewise.
2931 * config/i386/i386.md (strset): Likewise.
2932 * config/i386/sse.md (vec_dupv4si): Likewise.
2933 (vec_dupv2di): Likewise.
2934
2935 2011-11-24 Georg-Johann Lay <avr@gjlay.de>
2936
2937 * config/avr/avr.md (*rotlhi2.15): Set length to 4.
2938
2939 2011-11-24 Razya Ladelsky <razya@il.ibm.com>
2940
2941 * tree-data-ref.c (initialize_data_dependence_relation): Update
2942 comment for the self dependence case.
2943 (compute_self_dependence): Remove.
2944 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove call to
2945 compute_self_dependenc.
2946
2947 2011-11-24 Alan Modra <amodra@gmail.com>
2948
2949 * c-decl.c (warn_if_shadowing): Don't warn if shadowed
2950 identifier is from system header.
2951
2952 2011-11-23 Jakub Jelinek <jakub@redhat.com>
2953
2954 PR target/51261
2955 * config/i386/i386.c (decide_alg): Initialize *dynamic_check
2956 even if !optimize.
2957
2958 2011-11-23 Vladimir Makarov <vmakarov@redhat.com>
2959
2960 PR rtl-optimization/48455
2961 * doc/invoke.texi (-fira-region): Document default values.
2962
2963 * flags-types.h (enum ira_region): Add new value
2964 IRA_REGION_AUTODETECT.
2965
2966 * common.opt (fira-region): Set up initial value to
2967 IRA_REGION_AUTODETECT.
2968
2969 * toplev.c (process_options): Set up flag_ira_region depending on
2970 -O options.
2971
2972 * ira.c (ira.c): Remove optimize guard for ira_build.
2973
2974 2011-11-23 Chung-Lin Tang <cltang@codesourcery.com>
2975
2976 PR rtl-optimization/50496
2977 * jump.c (redirect_jump): Assert fail on nlabel == NULL_RTX
2978 only after epilogue is created. Add comments.
2979
2980 2011-11-22 Richard Henderson <rth@redhat.com>
2981
2982 * config/ia64/ia64.c (ia64_expand_atomic_op): Add model parameter.
2983 Generate the barrier required for the memory model.
2984 (rtx_needs_barrier): Handle UNSPEC_FETCHADD_REL, UNSPEC_CMPXCHG_REL.
2985 * config/ia64/ia64-protos.h: Update.
2986 * config/ia64/ia64.md (UNSPEC_FETCHADD_REL): New.
2987 (UNSPEC_CMPXCHG_REL): New.
2988 * config/ia64/sync.md (mem_thread_fence): New.
2989 (atomic_load<IMODE>, atomic_store<IMODE>): New.
2990 (atomic_compare_and_swap<IMODE>): New.
2991 (cmpxchg_acq_<I124MODE>, cmpxchg_acq_di): New.
2992 (atomic_exchange<IMODE>): New.
2993 (xchg_acq_<IMODE>): Rename from sync_lock_test_and_set<IMODE>.
2994 (atomic_<FETCHOP><IMODE>, atomic_nand<IMODE>): New.
2995 (atomic_fetch_<FETCHOP><IMODE>, atomic_fetch_nand<IMODE>): New.
2996 (atomic_<FETCHOP>_fetch<IMODE>, atomic_nand_fetch<IMODE>): New.
2997 (fetchadd_rel_<I48MODE>): New.
2998 (sync_<FETCHOP><IMODE>, sync_nand<IMODE>): Remove.
2999 (sync_old_<FETCHOP><IMODE>, sync_old_nand<IMODE>): Remove.
3000 (sync_new_<FETCHOP><IMODE>, sync_new_nand<IMODE>): Remove.
3001 (sync_compare_and_swap<IMODE>): Remove.
3002 (sync_lock_release<IMODE>): Remove.
3003
3004 * config/ia64/ia64.md: Use define_c_enum for UNSPEC_*
3005 and UNSPECV_* constants.
3006
3007 2011-11-22 Tom de Vries <tom@codesourcery.com>
3008
3009 PR rtl-optimization/50764
3010 * sched-deps.c (sched_analyze_insn): Make sure frame-related insns are
3011 not moved past preceding jump.
3012
3013 2011-11-22 Jeff Law <law@redhat.com>
3014
3015 * doc/contrib.texi: Add entry for David Binderman.
3016
3017 2011-11-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3018
3019 * postreload.c (reload_combine): Mark reg_state as invalid at
3020 volatile insns if there has been a use already.
3021
3022 2011-11-21 Aldy Hernandez <aldyh@redhat.com>
3023
3024 * opts.c (finish_options): Do not fail for -fgnu-tm.
3025 * gimple-streamer-out.c (output_gimple_stmt): Handle
3026 GIMPLE_TRANSACTION.
3027 * gimple-streamer-in.c (input_gimple_stmt): Same.
3028 * lto-cgraph.c (input_overwrite_node): Read tm_clone bit.
3029 (lto_output_node): Write tm_clone bit.
3030
3031 2011-11-22 Ian Lance Taylor <iant@google.com>
3032
3033 * doc/install.texi (Configuration): Correct doc of
3034 --enable-build-poststage1-with-cxx: it is not experimental.
3035
3036 2011-11-22 Jakub Jelinek <jakub@redhat.com>
3037
3038 PR tree-optimization/51074
3039 * fold-const.c (fold_binary_loc): Fix up VEC_INTERLEAVE_*_EXPR
3040 handling for BYTES_BIG_ENDIAN.
3041 * optabs.c (can_vec_perm_for_code_p): Likewise.
3042
3043 2011-11-22 Michael Matz <matz@suse.de>
3044
3045 PR other/51125
3046 * trans-mem.c (expand_block_tm): Ignore clobbers.
3047
3048 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
3049
3050 * config/darwin.h (ENDFILE_SPEC): New.
3051 (DARWIN_CRT1_SPEC): Add crttms.o.
3052 (STARTFILE_SPEC): Likewise for dynamic libs and bundles.
3053 * config/i386.h (ENDFILE_SPEC): Amend to include crttme.o.
3054
3055 2011-11-22 Michael Matz <matz@suse.de>
3056
3057 PR c++/51264
3058 * tree.c (iterative_hash_expr): Remove break after return.
3059
3060 2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
3061
3062 * target.def (tm_clone_table_section): New hook.
3063 * doc/tm.texi.in (TARGET_ASM_TM_CLONE_TABLE_SECTION): Define.
3064 * doc/tm.texi: Regenerate.
3065 * varasm.c (dump_tm_clone_pairs): Use target tm_clone_table_section.
3066 * output.h (default_clone_table_section): New prototype.
3067 * config/darwin.h (TARGET_ASM_TM_CLONE_TABLE_SECTION): New.
3068 * config/darwin-protos.h (darwin_tm_clone_table_section): New prototype.
3069 * config/darwin.c (darwin_tm_clone_table_section): New.
3070
3071 2011-11-21 Torvald Riegel <triegel@redhat.com>
3072
3073 * trans-mem.c (diagnose_tm_1): Print an expression instead of a
3074 declaration in error messages for indirect calls.
3075
3076 2011-11-21 David S. Miller <davem@davemloft.net>
3077
3078 * config/sparc/sparc.c (sparc_regmode_natural_size): New function
3079 implementing REGMODE_NATURAL_SIZE taking into consideration vector
3080 modes.
3081 (sparc_modes_tieable_p): Similarly for MODES_TIEABLE_P.
3082 * config/sparc/sparc-protos.h (sparc_regmode_natural_size,
3083 sparc_modes_tieable_p): Declare.
3084 * gcc/config/sparc/sparc.h (REGMODE_NATURAL_SIZE,
3085 MODES_TIEABLE_P): Use new helper functions.
3086
3087 Revert
3088 2011-11-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3089
3090 PR middle-end/50325
3091 * expmed.c (store_bit_field_1): Use extract_bit_field on big
3092 endian targets if the source cannot be exactly covered by word
3093 mode chunks.
3094
3095 2011-11-21 Jakub Jelinek <jakub@redhat.com>
3096
3097 PR debug/50827
3098 * var-tracking.c (loc_cmp): For ENTRY_VALUEs use ENTRY_VALUE_EXP
3099 macro instead of XEXP.
3100
3101 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
3102
3103 * configure: Regenerate.
3104
3105 2011-11-21 Georg-Johann Lay <avr@gjlay.de>
3106
3107 * config/avr/avr.c (output_reload_in_const): Loading a byte with 0
3108 must not affect cc0.
3109 * config/avr/avr.md (*movhi, *movpsi, *movsi, *movsf): Zero to any
3110 register does not change cc0. Same for any constant to ld-register.
3111
3112 2011-11-21 Uros Bizjak <ubizjak@gmail.com>
3113
3114 * config/i386/mmx.md (unspec) <UNSPEC_MOVNTQ, UNSPEC_PFRCP,
3115 UNSPEC_PFRCPIT1, UNSPEC_PFRCPIT2, UNSPEC_PFRSQRT, UNSPEC_PFRSQIT1>:
3116 Move from config/i386/i386.md
3117 (unspecv) <UNSPECV_EMMS, UNSPECV_FEMMS>: Ditto.
3118 * config/i386/sse.md (unspec) <UNSPEC_MOVNT,UNSPEC_MOVU, UNSPEC_LDDQU,
3119 UNSPEC_PSHUFB, UNSPEC_PSIGN, UNSPEC_PALIGNR, UNSPEC_EXTRQI,
3120 UNSPEC_EXTRQ, UNSPEC_INSERTQI, UNSPEC_INSERTQ, UNSPEC_BLENDV,
3121 UNSPEC_INSERTPS, UNSPEC_DP, UNSPEC_MOVNTDQA, UNSPEC_MPSADBW,
3122 UNSPEC_PHMINPOSUW, UNSPEC_PTEST, UNSPEC_PCMPESTR, UNSPEC_PCMPISTR,
3123 UNSPEC_FMADDSUB, UNSPEC_XOP_UNSIGNED_CMP, UNSPEC_XOP_TRUEFALSE,
3124 UNSPEC_XOP_PERMUTE, UNSPEC_FRCZ, UNSPEC_AESENC, UNSPEC_AESENCLAST,
3125 UNSPEC_AESDEC, UNSPEC_AESDECLAST, UNSPEC_AESIMC,
3126 UNSPEC_AESKEYGENASSIST, UNSPEC_PCLMUL, UNSPEC_PCMP, UNSPEC_VPERMIL,
3127 UNSPEC_VPERMIL2, UNSPEC_VPERMIL2F128, UNSPEC_CAST, UNSPEC_VTESTP,
3128 UNSPEC_VCVTPH2PS, UNSPEC_VCVTPS2PH, UNSPEC_VPERMSI, UNSPEC_VPERMDF,
3129 UNSPEC_VPERMSF, UNSPEC_VPERMTI, UNSPEC_GATHER, UNSPEC_VSIBADDR>: Ditto.
3130 (unspecv) <UNSPECV_LDMXCSR, UNSPECV_STMXCSR, UNSPECV_CLFLUSH,
3131 UNSPECV_MONITOR, UNSPECV_MWAIT, UNSPECV_VZEROALL, UNSPECV_VZEROUPPER>:
3132 Ditto.
3133 * config/i386/sync.md (unspec) <UNSPEC_LFENCE, UNSPEC_SFENCE,
3134 UNSPEC_MFENCE, UNSPEC_MOVA>: Ditto.
3135 (unspecv) <UNSPECV_CMPXCHG_1, UNSPECV_CMPXCHG_2, UNSPECV_CMPXCHG_3,
3136 UNSPECV_CMPXCHG_4, UNSPECV_XCHG, UNSPECV_LOCK>: Ditto.
3137 (sse2_lfence): Move from config/i386/sse.md.
3138 (*sse2_lfence): Ditto.
3139 (sse_sfence): Ditto.
3140 (*sse_sfence): Ditto.
3141 (sse2_mfence): Ditto.
3142 (mfence_sse2): Ditto. Rename from *sse2_mfence. Enable also
3143 for TARGET_64BIT.
3144 (mem_thread_fence): Use mfence_sse2.
3145
3146 2011-11-21 Georg-Johann Lay <avr@gjlay.de>
3147
3148 * config/avr/avr.h (struct base_arch_s): Add field sfr_offset.
3149 * config/avr/avr-devices.c: Ditto. And initialize it.
3150 * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in define
3151 __AVR_SFR_OFFSET__.
3152 * config/avr/avr-protos.h (out_movqi_r_mr, out_movqi_mr_r): Remove.
3153 (out_movhi_r_mr, out_movhi_mr_r): Remove.
3154 (out_movsi_r_mr, out_movsi_mr_r): Remove.
3155 * config/avr/avr.md (*cbi, *sbi): Use %i instead of %m-0x20.
3156 (*insv.io, *insv.not.io): Ditto.
3157 * config/avr/avr.c (out_movsi_r_mr, out_movsi_mr_r): Make static.
3158 (print_operand): Implement "%i" to print address as I/O address.
3159 (output_movqi): Clean up call of out_movqi_mr_r.
3160 (output_movhi): Clean up call of out_movhi_mr_r.
3161 (avr_file_start): Use avr_current_arch->sfr_offset instead of
3162 magic -0x20. Use TMP_REGNO, ZERO_REGNO instead of 0, 1.
3163 (avr_out_sbxx_branch): Use %i instead of %m-0x20.
3164 (out_movqi_r_mr, out_movqi_mr_r): Ditto. And make static.
3165 (out_movhi_r_mr, out_movhi_mr_r): Ditto. And use avr_asm_len.
3166 (out_shift_with_cnt): Clean up code: Use avr_asm_len.
3167 (output_movsisf): Use output_reload_insisf for all CONSTANT_P sources.
3168 (avr_out_movpsi): USE avr_out_reload_inpsi for all CONSTANT_P sources.
3169 Clean up call of avr_out_store_psi.
3170 (output_reload_in_const): Don't cut symbols longer than 2 bytes.
3171 (output_reload_insisf): Filter CONST_INT_P or CONST_DOUBLE_P to
3172 try if setting pre-cleared register is advantageous.
3173 (avr_out_plus_1): Use gen_int_mode instead of GEN_INT.
3174
3175 2011-11-20 Joey Ye <joey.ye@arm.com>
3176
3177 * expr.c (expand_expr_real_1): Correctly handle strict volatile
3178 bitfield loads smaller than mode size.
3179
3180 2011-11-20 Richard Henderson <rth@redhat.com>
3181
3182 * config/mips/mips.c (mips_init_libfuncs): Call init_sync_libfuncs.
3183
3184 2011-11-20 Uros Bizjak <ubizjak@gmail.com>
3185
3186 PR target/51235
3187 * config/i386/i386.c (ix86_expand_vcond): Generate TARGET_XOP
3188 patterns for supported mode only.
3189
3190 PR target/51236
3191 * config/i386/i386.c (ix86_expand_builtin)
3192 <IX86_BUILTIN_GATHERALTSIV4DI>: Use CODE_FOR_avx2_gathersiv4di.
3193
3194 2011-11-20 Uros Bizjak <ubizjak@gmail.com>
3195
3196 * config/i386/i386.md (UNSPEC_MOVNTI): Remove.
3197 (UNSPEC_MOVNTQ): New unspec.
3198 * config/i386/mmx.md (sse_movntq): Rename from sse_movntdi.
3199 Use UNSPEC_MOVNTQ instead of UNSPEC_MOVNT.
3200 * config/i386/sse.md (sse2_movnti<mode>): Use UNSPEC_MOVNT instead of
3201 UNSPEC_MOVNTI.
3202 (STORENT_MODE): Add DI and V4DI modes.
3203
3204 2011-11-20 Nathan Sidwell <nathan@acm.org>
3205
3206 PR gcov-profile/51113
3207 * coverage.c (build_var): Propagate visibility for public
3208 decls. Use make_decl_one_only for PIC correctness.
3209
3210 testsuite/
3211 * gcc.misc-tests/gcov-13.c: Check gcovpart-13b coverage
3212 * gcc.misc-tests/gcov-16.c: New.
3213 * gcc.misc-tests/gcov-17.c: New.
3214 * g++.dg/gcov/gcov-8.C: New.
3215 * g++.dg/gcov/gcov-9.C: New.
3216 * g++.dg/gcov/gcov-10.C: New.
3217
3218 2011-11-19 Eric Botcazou <ebotcazou@adacore.com>
3219
3220 PR rtl-optimization/51187
3221 * reorg.c (relax_delay_slots): Do not consider a jump useless if there
3222 is a barrier between the jump and its target label.
3223
3224 2011-11-19 Patrick Marlier <patrick.marlier@gmail.com>
3225
3226 PR middle-end/51211
3227 * tracer.c (ignore_bb_p): Don't copy GIMPLE_TRANSACTION.
3228
3229 2011-11-19 Eric Botcazou <ebotcazou@adacore.com>
3230
3231 * expmed.c (store_bit_field_1): Revert bogus formatting change.
3232
3233 2011-11-19 Richard Earnshaw <rearnsha@arm.com>
3234
3235 PR target/50493
3236 * config/arm/arm.c (neon_disambiguate_copy): Correctly handle partial
3237 overlap of src and dest operands.
3238
3239 2011-11-19 Iain Sandoe <iains@gcc.gnu.org>
3240
3241 * config/darwin.h (ASM_DEBUG_SPEC): New.
3242 * config/darwin9.h (ASM_DEBUG_SPEC): New.
3243
3244 2011-11-18 Jan Hubicka <jh@suse.cz>
3245
3246 * config/i386/i386.c (atom_cost): Disable SSE loop until alignment
3247 issues are fixed.
3248
3249 2011-11-18 Anatoly Sokolov <aesok@post.ru>
3250
3251 * config/cris/cris.c (cris_function_value_regno_p): Make static.
3252 (TARGET_FUNCTION_VALUE_REGNO_P): Define.
3253 * config/cris/cris.h (FUNCTION_VALUE_REGNO_P): Remove.
3254 * config/cris/cris-protos.h (cris_function_value_regno_p): Remove.
3255
3256 2011-11-18 H.J. Lu <hongjiu.lu@intel.com>
3257
3258 PR target/33944
3259 * doc/extend.texi: Document __builtin_ia32_movnti64.
3260
3261 * config/i386/emmintrin.h (_mm_stream_si64): New.
3262
3263 * config/i386/i386-builtin-types.def: Add VOID_FTYPE_PLONGLONG_LONGLONG.
3264
3265 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTI64.
3266 (bdesc_special_args): Update __builtin_ia32_movnti. Add
3267 __builtin_ia32_movnti64.
3268 (ix86_expand_special_args_builtin): Handle
3269 VOID_FTYPE_PLONGLONG_LONGLONG.
3270
3271 * config/i386/i386.md (UNSPEC_MOVNTI): New.
3272
3273 * config/i386/sse.md (sse2_movntsi): Renamed to ...
3274 (sse2_movnti<mode>): This.
3275
3276 2011-11-18 Georg-Johann Lay <avr@gjlay.de>
3277
3278 PR target/49868
3279 * config/avr/avr.h (base_arch_s): Add field n_segments.
3280 (ADDR_SPACE_PGM1, ADDR_SPACE_PGM2, ADDR_SPACE_PGM3,
3281 ADDR_SPACE_PGM4, ADDR_SPACE_PGM5, ADDR_SPACE_PGMX): New address spaces.
3282 (AVR_HAVE_ELPM, AVR_HAVE_ELPMX): New defines.
3283 (INIT_EXPANDERS): New define.
3284 * config/avr/avr-protos.h (avr_mem_pgmx_p): New.
3285 (avr_init_expanders): New.
3286 (avr_emit_movmemhi, avr_out_movmem): New.
3287 (avr_xload_libgcc_p): New.
3288 * config/avr/avr-c.c (avr_register_target_pragmas): Register
3289 address spaces __pgm1, __pgm2, __pgm3, __pgm4 __pgm5, __pgmx.
3290 (avr_cpu_cpp_builtins): Add built-in defines __PGM1,
3291 __PGM2, __PGM3, __PGM4, __PGM5, __PGMX.
3292 * config/avr/avr-devices.c (avr_arch_types): Set field n_segments.
3293
3294 * config/avr/avr.c (AVR_SECTION_PROGMEM): Change define to cover
3295 3 bits instead of just 1.
3296 (xstring_empty, xstring_e, rampz_rtx): New static GTYed variables.
3297 (progmem_section): Change from section to array of sections.
3298 (progmem_section_prefix): New static variable.
3299 (avr_file_start): Print set for __RAMPZ__
3300 (avr_option_override): Move initialization of RTXes from here...
3301 (avr_init_expanders): ...to this new function.
3302 (avr_pgm_segment): New static function.
3303 (avr_decl_pgm_p): Handle error_mark_node.
3304 (avr_mem_pgmx_p, avr_decl_pgmx_p): New static functions.
3305 (avr_out_xload, avr_find_unused_d_reg): New static functions.
3306 (expand_prologue, expand_epilogue): Use rampz_rtx.
3307 (print_operand): Hande CONST_STRING.
3308 (avr_xload_libgcc_p): New static function.
3309 (avr_out_lpm_no_lpmx, avr_out_lpm): Handle ELPM.
3310 (avr_progmem_p): Return 2 for 24-bit flash address space.
3311 (avr_out_sbxx_branch): Clean-up code from ASn macros.
3312 (out_movqi_r_mr, out_movqi_mr_r): Ditto. And recognize RAMPZ's
3313 address and print symbolically.
3314 (avr_asm_named_section, avr_section_type_flags,
3315 avr_encode_section_info, avr_asm_select_section,
3316 avr_addr_space_address_mode, avr_addr_space_pointer_mode,
3317 avr_addr_space_legitimate_address_p, avr_addr_space_convert,
3318 avr_addr_space_legitimize_address): Handle new address spaces.
3319 (avr_output_progmem_section_asm_op): New static function.
3320 (avr_asm_init_sections): Initialize progmem_section[].
3321 (adjust_insn_length): Handle ADJUST_LEN_XLOAD, ADJUST_LEN_MOVMEM.
3322 (avr_const_address_lo16): New static function.
3323 (avr_assemble_integer): Use it to handle 3-byte integers.
3324 (avr_emit_movmemhi, avr_out_movmem): New functions.
3325
3326 * config/avr/predicates.md (nox_general_operand): Handle new
3327 address spaces.
3328 * config/avr/avr.md (unspec): Add UNSPEC_MOVMEM.
3329 (adjust_len): Add xload, movmem.
3330 (SP_ADDR): New define_constants.
3331 (isa): Add "lpm", "lpmx", "elpm", "elpmx".
3332 (enabled): Handle them.
3333 (load<mode>_libgcc): New expander.
3334 (*load.<mode>.libgcc): Rename to load_<mode>_libgcc.
3335 (xload8_A, xload<mode>_A): New insn-and-splits.
3336 (xload_8, xload_<mode>_libgcc, xload_<mode>, loadmem_elpm): New insns.
3337 (mov<mode>): Handle new address spaces.
3338 (movmemhi): Rewrite using avr_emit_movmemhi.
3339 (MOVMEM_r_d): New mode attribute.
3340 (movmem_<mode>, movmem_qi_elpm): New insns.
3341 (setmemhi, *clrmemqi, *clrmemhi, strlenhi, *strlenhi): Unquote
3342 C-code. Use label instead of hard-coded instrunction lengths.
3343
3344 2011-11-18 Martin Jambor <mjambor@suse.cz>
3345
3346 PR tree-optimization/50605
3347 * gimple.c (is_gimple_ip_invariant_address): Also handle MEM_REFs
3348 of IPA invariant decls.
3349
3350 2011-11-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3351
3352 * tree-outof-ssa.c (insert_back_edge_copies): Add call to
3353 mark_dfs_back_edges.
3354
3355 2011-11-18 Iain Sandoe <iains@gcc.gnu.org>
3356
3357 PR target/49992
3358 * configure.ac: Remove ranlib special-casing for Darwin.
3359 * configure: Regenerate.
3360
3361 2011-11-18 Uros Bizjak <ubizjak@gmail.com>
3362
3363 PR tree-optimization/51118
3364 * fold-const.c (fold_checksum_tree): Check for TS_TYPED structure
3365 before using TREE_TYPE accessor on expr.
3366
3367 2011-11-17 Jan Hubicka <jh@suse.cz>
3368
3369 PR bootstrap/51134
3370 * i386.c (atom_cost): Fix 32bit memset description.
3371 (expand_set_or_movmem_via_loop_with_iter): Output proper bounds check
3372 for epilogue loops.
3373 (expand_movmem_epilogue): Handle epilogues up to size 15 w/o producing
3374 byte loop.
3375 (decide_alg): sse_loop is not useable wthen SSE2 is disabled;
3376 when not optimizing always use rep movsb or lincall; do not produce
3377 word sized loops when optimizing memset for size (to avoid need
3378 for large constants).
3379 (ix86_expand_movmem): Get into sync with ix86_expand_setmem;
3380 choose unroll factors better; always do 128bit moves when producing
3381 SSE loops; do not produce loopy epilogue when size is too small.
3382 (promote_duplicated_reg_to_size): Do not look into desired alignments
3383 when doing vector expansion.
3384 (ix86_expand_setmem): Track better when promoted value is available;
3385 choose unroll factors more sanely. Output loopy epilogue only
3386 when needed.
3387
3388 2011-11-17 Steve Ellcey <sje@cup.hp.com>
3389
3390 PR middle-end/51144
3391 * output.h (fprint_w): Remove.
3392 * final.c (fprint_w): Remove.
3393 (output_addr_const): Change fprint_w back to fprintf.
3394
3395 2011-11-17 Andrew Pinski <apinski@cavium.com>
3396
3397 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for MIPS.
3398
3399 2011-11-17 Andrew MacLeod <amacleod@redhat.com>
3400
3401 * builtins.c (expand_builtin): Remove 4th parameter representing
3402 weak/strong mode when __atomic_compare_exchange becomes a library call.
3403
3404 2011-11-17 Richard Henderson <rth@redhat.com>
3405
3406 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap): Get
3407 new pseudo for target after convert_modes.
3408 (rs6000_expand_atomic_exchange, rs6000_expand_atomic_op): Likewise.
3409
3410 2011-11-17 Richard Henderson <rth@redhat.com>
3411
3412 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap): Get
3413 new pseudo for target after convert_modes.
3414 (rs6000_expand_atomic_exchange, rs6000_expand_atomic_op): Likewise.
3415
3416 2011-11-17 Richard Henderson <rth@redhat.com>
3417
3418 * builtins.c (expand_builtin_mem_thread_fence): Remove.
3419 (expand_builtin_mem_signal_fence): Remove.
3420 (expand_builtin_atomic_thread_fence): Use expand_mem_thread_fence.
3421 (expand_builtin_sync_synchronize): Likewise.
3422 (expand_builtin_atomic_signal_fence): Use expand_mem_signal_fence.
3423 * optabs.c (expand_asm_memory_barrier): Split out from
3424 expand_builtin_mem_signal_fence.
3425 (expand_mem_thread_fence): New, a combination of code from
3426 expand_builtin_mem_thread_fence and expand_builtin_sync_synchronize.
3427 (expand_mem_signal_fence): Moved and renamed from
3428 expand_builtin_mem_signal_fence.
3429 (expand_atomic_exchange): Use expand_mem_thread_fence.
3430 (expand_atomic_load, expand_atomic_store): Likewise.
3431 * expr.h, optabs.h: Update decls.
3432
3433 2011-11-17 Bin Cheng <bin.cheng@arm.com>
3434
3435 PR rtl-optimization/50663
3436 * cprop.c (implicit_set_indexes): New global variable.
3437 (insert_set_in_table): Add additional parameter and record implicit
3438 set information.
3439 (hash_scan_set): Add additional parameter and pass it to above.
3440 (hash_scan_insn): Pass false to hash_scan_set.
3441 (compute_hash_table_work): Pass true to hash_scan_set.
3442 (compute_cprop_data): Add implicit set to AVIN of block which the
3443 implicit set is recorded for.
3444 (one_cprop_pass): Handle implicit_set_indexes array.
3445
3446 2011-11-17 Michael Matz <matz@suse.de>
3447
3448 PR middle-end/50644
3449 PR middle-end/50741
3450 * tree-ssa-live.c (mark_all_vars_used_1): Recurse only for decls of
3451 current function.
3452 (remove_unused_locals): Ditto.
3453
3454 2011-11-16 Richard Henderson <rth@redhat.com>
3455
3456 * config/alpha/alpha.c (alpha_split_compare_and_swap_12): Copy
3457 ALIAS_SET_MEMORY_BARRIER when creating a new memory.
3458 (alpha_split_atomic_exchange_12): Likewise.
3459 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Likewise.
3460
3461 2011-11-16 Joseph Myers <joseph@codesourcery.com>
3462
3463 * config/i386/i386elf.h (PREFERRED_DEBUGGING_TYPE): Remove.
3464
3465 2011-11-16 David Edelsohn <dje.gcc@gmail.com>
3466
3467 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags):
3468 Default to minimum alignment if decl is NULL.
3469
3470 2011-11-16 Uros Bizjak <ubizjak@gmail.com>
3471
3472 * config/i386/sse.md (round<mode>2_vec_pack_sfix): Optimize V2DFmode
3473 sequence for AVX.
3474 (<sse4_1>_round<ssemodesuffix>_vec_pack_sfix<avxsizesuffix>): Ditto.
3475
3476 2011-11-16 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3477
3478 * doc/invoke.texi: Document AMD bdver1 and btver1.
3479
3480 2011-11-16 Richard Earnshaw <rearnsha@arm.com>
3481 Bernd Schmidt <bernds@coudesourcery.com>
3482 Sebastian Huber <sebastian.huber@embedded-brains.de>
3483
3484 PR target/49641
3485 * config/arm/arm.c (store_multiple_sequence): Avoid cases where
3486 the base reg is stored iff compiling for Thumb1.
3487
3488 2011-11-16 Razya Ladelsky <razya@il.ibm.com>
3489
3490 PR tree-optimization/49960
3491 * tree-data-ref.c (initialize_data_dependence_relation): Add
3492 initializations.
3493 Remove call to compute_self_dependence.
3494 (compute_affine_dependence): Remove the !DDR_SELF_REFERENCE condition.
3495 (compute_self_dependence): Remove old code. Add call to
3496 compute_affine_dependence.
3497 (compute_all_dependences): Remove call to compute_self_dependence.
3498 Add call to compute_affine_dependence.
3499
3500 2011-11-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3501
3502 PR middle-end/50325
3503 * expmed.c (store_bit_field_1): Use extract_bit_field on big
3504 endian targets if the source cannot be exactly covered by word
3505 mode chunks.
3506
3507 2011-11-15 Joseph Myers <joseph@codesourcery.com>
3508
3509 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Change STRING_LIMIT to
3510 ELF_STRING_LIMIT.
3511
3512 2011-11-15 Richard Henderson <rth@redhat.com>
3513
3514 * config/alpha/alpha.c (alpha_pre_atomic_barrier): New.
3515 (alpha_post_atomic_barrier): New.
3516 (alpha_split_atomic_op): New memmodel argument; honor it.
3517 (alpha_split_compare_and_swap): Take array of operands. Honor
3518 memmodel; always set bool output
3519 (alpha_expand_compare_and_swap_12): Similarly.
3520 (alpha_split_compare_and_swap_12): Similarly.
3521 (alpha_split_atomic_exchange): Similarly. Rename from
3522 alpha_split_lock_test_and_set.
3523 (alpha_expand_atomic_exchange_12): Similarly. Rename from
3524 alpha_expand_lock_test_and_set_12.
3525 (alpha_split_atomic_exchange_12): Similarly. Rename from
3526 alpha_split_lock_test_and_set_12.
3527 * config/alpha/alpha-protos.h: Update.
3528 * config/alpha/alpha.md (UNSPECV_CMPXCHG): New.
3529 * config/alpha/constraints.md ("w"): New.
3530 * config/alpha/predicates.md (mem_noofs_operand): New.
3531 * config/alpha/sync.md (atomic_compare_and_swap<mode>): Rename from
3532 sync_compare_and_swap<mode>; add the new parameters.
3533 (atomic_exchange<mode>): Update from sync_test_and_set<mode>.
3534 (atomic_fetch_<op><mode>): Update from sync_old_<op><mode>.
3535 (atomic_<op>_fetch<mode>): Update from sync_new_<op><mode>.
3536 (atomic_<op><mode>): Update from sync_<op><mode>.
3537
3538 2011-11-16 Tom de Vries <tom@codesourcery.com>
3539
3540 * tree-ssa-tail-merge.c (replace_block_by): Add frequency of bb2 to bb1.
3541
3542 2011-11-16 Alan Modra <amodra@gmail.com>
3543
3544 PR rtl-optimization/51051
3545 PR bootstrap/51086
3546 * function.c (thread_prologue_and_epilogue_insns): Guard
3547 emitting return with single_succ_p test.
3548
3549 2011-11-15 Joern Rennecke <joern.rennecke@embecosm.com>
3550
3551 * config/epiphany/epiphany.md (mov<mode>cc): Fix code to
3552 get mode from CMP_OP1 if CMP_OP0 is VOIDmode.
3553
3554 2011-11-15 Uros Bizjak <ubizjak@gmail.com>
3555
3556 * config/i386/sse.md (vec_pack_trunc_v2df): Optimize sequence for AVX.
3557 (vec_pack_sfix_trunc_v2df): Ditto.
3558 (vec_pack_sfix_v2df): Ditto.
3559 (vec_pack_sfix_trunc_v4df): Generate fix_truncv4dfv4si2 and
3560 avx_vec_concatv8si patterns.
3561 (vec_pack_sfix_v4df): Generate avx_cvtpd2dq256 and
3562 avx_vec_concatv8si patterns.
3563
3564 2011-11-15 Torvald Riegel <triegel@redhat.com>
3565
3566 * c-parser.c (c_parser_transaction_expression): Require parentheses
3567 when parsing transaction expressions.
3568
3569 2011-11-15 Tristan Gingold <gingold@adacore.com>
3570
3571 * incpath.c (get_added_cpp_dirs): New function.
3572 * incpath.h (get_added_cpp_dirs): Declare.
3573 * config/vms/vms-c.c (vms_c_register_includes): New function.
3574 (vms_std_modules): New variable.
3575 * config/vms/vms.h (TARGET_EXTRA_INCLUDES): Define.
3576 (vms_c_register_includes): Declare.
3577
3578 2011-11-15 Tristan Gingold <gingold@adacore.com>
3579
3580 * c-family/c-pragma.h (pragma_extern_prefix): Declare.
3581 * c-family/c-pragma.c (pragma_extern_prefix): Make it public.
3582 * config/vms/vms-c.c (saved_extern_prefix): New variable.
3583 (vms_pragma_extern_prefix): New function.
3584 (vms_c_register_pragma): Register vms_pragma_extern_prefix.
3585
3586 2011-11-15 Georg-Johann Lay <avr@gjlay.de>
3587
3588 PR target/49868
3589 * config/avr/avr.h (ADDR_SPACE_PGM): New address spaces.
3590 (REGISTER_TARGET_PRAGMAS): New define.
3591 * config/avr/avr-protos.h (avr_mem_pgm_p): New.
3592 (avr_load_libgcc_p): New.
3593 (avr_register_target_pragmas): New.
3594 (asm_output_external_libcall): Remove.
3595 (avr_log_t): Add field "progmem". Order alphabetically.
3596 * config/avr/avr-log.c (avr_log_set_avr_log): Set avr_log.progmem.
3597 * config/avr/avr-c.c (langhooks.h): New include.
3598 (avr_register_target_pragmas): New function. Register address
3599 space __pgm.
3600 (avr_cpu_cpp_builtins): Add built-in define __PGM.
3601
3602 * config/avr/avr.c: Include "c-family/c-common.h".
3603 (TARGET_LEGITIMATE_ADDRESS_P): Remove define.
3604 (TARGET_LEGITIMIZE_ADDRESS): Remove define.
3605 (TARGET_ADDR_SPACE_SUBSET_P): Define to...
3606 (avr_addr_space_subset_p): ...this new static function.
3607 (TARGET_ADDR_SPACE_CONVERT): Define to...
3608 (avr_addr_space_convert): ...this new static function.
3609 (TARGET_ADDR_SPACE_ADDRESS_MODE): Define to...
3610 (avr_addr_space_address_mode): ...this new static function.
3611 (TARGET_ADDR_SPACE_POINTER_MODE): Define to...
3612 (avr_addr_space_pointer_mode): ...this new static function.
3613 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define to...
3614 (avr_addr_space_legitimate_address_p): ...this new static function.
3615 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Define to...
3616 (avr_addr_space_legitimize_address): ...this new static function.
3617 (avr_mode_code_base_reg_class): Handle address spaces.
3618 (avr_regno_mode_code_ok_for_base_p): Ditto.
3619 (lpm_addr_reg_rtx, lpm_reg_rtx, all_regs_rtx): New static variables.
3620 (avr_option_override): Initialize them.
3621 (output_reload_in_const): Use all_regs_rtx. Fix signedness of loop
3622 variables.
3623 (avr_pgm_segment): New static function.
3624 (avr_decl_pgm_p, avr_mem_pgm_p): New static functions.
3625 (avr_out_lpm, avr_out_lpm_no_lpmx): New static functions.
3626 (output_movqi, output_movhi, output_movsisf, avr_out_movpsi): Call
3627 avr_out_lpm to handle loads from progmem.
3628 (avr_load_libgcc_p): New static function.
3629 (avr_progmem_p): Test if decl is in flash.
3630 (avr_pgm_pointer_const_p): New static function.
3631 (avr_nonconst_pointer_addrspace): New static function.
3632 (avr_pgm_check_var_decl): New static function.
3633 (avr_insert_attributes): Use it. Change error message to report
3634 cause (progmem or address space) when code wants to write to flash.
3635 (avr_section_type_flags): Unset section flag SECTION_BSS for
3636 data in progmem.
3637
3638 * config/avr/predicates.md (nop_general_operand): New predicate.
3639 (nox_general_operand): New predicate.
3640 * config/avr/avr.md (LPM_REGNO): New define_constant.
3641 (load<mode>_libgcc): New expander.
3642 (*load.<mode>.libgcc): New insn.
3643 (mov<mode>): Handle loads from non-generic AS.
3644 (movmemhi): Ditto. Propagate address space information to newly
3645 created MEM.
3646 (movqi_insn, *movhi, *movpsi, *movsi, *movsf): Change predicate #1
3647 to nox_general_operand.
3648 (ashrqi3, ashrhi3, ashrsi3): Change predicate #1 to
3649 nop_general_operand.
3650 (ashlqi3, *ashlqi3, ashlhi3, ashlsi3): Ditto.
3651 (lshrqi3, *lshrqi3, lshrhi3, lshrsi3): Ditto.
3652 (split-lpmx): New split.
3653 (*ashlhi3_const, *ashlsi3_const, *ashrhi3_const, *ashrsi3_const,
3654 *lshrhi3_const, *lshrsi3_const): Indent, unquote C.
3655
3656 2011-11-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3657
3658 * ipa-cp.c (ipa_value_from_jfunc): Make global.
3659 (ipa_cst_from_jfunc): Remove, use ipa_value_from_jfunc instead.
3660 (get_indirect_edge_target): Rename, make global.
3661 (devirtualization_time_bonus, estimate_local_effects,)
3662 (ipcp_discover_new_direct_edges): Update.
3663 * ipa-inline-analysis.c (evaluate_conditions_for_edge):
3664 Generalize to also handle types. Rename to ...
3665 (evaluate_properties_for_edge): Use instead of
3666 evaluate_conditions_for_edge.
3667 (estimate_edge_devirt_benefit): New function.
3668 (estimate_calls_size_and_time): Use it.
3669 (estimate_node_size_and_time, estimate_ipcp_clone_size_and_time,)
3670 (inline_merge_summary): Update.
3671 (do_estimate_edge_time, do_estimate_edge_growth): Update. Calculate
3672 parameter information at the call site and pass it on to subroutines.
3673 * tree-inline.c (estimate_num_insns): Distinguish between direct and
3674 indirect calls.
3675 (init_inline_once): Set size and time costs or indirect calls.
3676 * tree-inline.h (eni_weights): Add indirect_call_cost.
3677
3678 2011-11-15 Tom de Vries <tom@codesourcery.com>
3679
3680 PR tree-optimization/51005
3681 * tree-ssa-tail-merge.c (delete_basic_block_same_succ): Rename to
3682 mark_basic_block_deleted.
3683 (update_worklist): Inline purge_bbs.
3684 (purge_bbs, unlink_virtual_phi, update_vuses, vop_at_entry)
3685 (delete_block_update_dominator_info): Remove.
3686 (replace_block_by): Remove update_vops parameter. Partially evaluate
3687 for update_vops == false.
3688 (apply_clusters): Remove update_vops parameter. Remove update_vops
3689 argument in replace_block_by call.
3690 (update_debug_stmts): Remove MAY_HAVE_DEBUG_STMTS test.
3691 (tail_merge_optimize): Remove update_vops argument to apply_clusters.
3692 Remove call to purge_bbs. Add calls to calculate_dominance_info and
3693 free_dominance_info. Add MAY_HAVE_DEBUG_STMTS before calling
3694 update_debug_stmts. Mark vop var for renaming, if necessary.
3695
3696 2011-11-15 Bernd Schmidt <bernds@codesourcery.com>
3697
3698 PR rtl-optimization/51051
3699 * cfgrtl.c (cfg_layout_can_merge_blocks_p): Return FALSE if the
3700 move would cause fallthrough into the exit block.
3701
3702 2011-11-14 Richard Henderson <rth@redhat.com>
3703
3704 * config/rs6000/rs6000.c (emit_load_locked): Assert the mode is
3705 handled.
3706 (emit_store_conditional): Likewise.
3707 (rs6000_pre_atomic_barrier, rs6000_post_atomic_barrier): New.
3708 (rs6000_adjust_atomic_subword): New.
3709 (rs6000_mask_atomic_subword, rs6000_finish_atomic_subword): New.
3710 (rs6000_expand_atomic_op): Rename from rs6000_emit_sync; rewrite
3711 for pre-reload expansion.
3712 (rs6000_split_compare_and_swap, rs6000_split_compare_and_swapqhi,
3713 rs6000_expand_compare_and_swapqhi): Merge into ...
3714 (rs6000_expand_atomic_compare_and_swap): ... here. New function.
3715 rs6000_split_lock_test_and_set; expand immediately. Handle
3716 QImode and HImode.
3717 * config/rs6000/rs6000.md (UNSPEC_LWSYNC): Move and rename
3718 from UNSPECV_LWSYNC.
3719 * config/rs6000/sync.md (fetchopsi_constr, fetchopdi_constr): Remove.
3720 (mem_thread_fence): New.
3721 (hwsync): Rename from memory_barrier.
3722 (*hwsync): Rename from *sync_internal.
3723 (lwsync, *lwsync): Mirror hwsync implementation.
3724 (isync): Don't reference memory.
3725 (loadsync): New.
3726 (atomic_load<INT>, atomic_store<INT>): New.
3727 (ATOMIC): New mode iterator.
3728 (load_locked<ATOMIC>): Rename from load_locked_<GPR>.
3729 (store_conditional<ATOMIC>): Rename from store_conditional_<GPR>.
3730 (sync_compare_and_swap<GPR>): Remove.
3731 (sync_compare_and_swaphi, sync_compare_and_swapqi): Remove.
3732 (sync_compare_and_swapqhi_internal): Remove.
3733 (sync_lock_test_and_set<GPR>): Remove.
3734 (sync_<FETCHOP><INT1>): Remove.
3735 (*sync_<FETCHOP>si_internal, *sync_<FETCHOP>di_internal): Remove.
3736 (sync_nand<INT1>, *sync_nand<GPR>_internal): Remove.
3737 (sync_old_<FETCHOP><GPR>): Remove.
3738 (*sync_old_<FETCHOP>si_internal): Remove.
3739 (*sync_old_<FETCHOP>di_internal): Remove.
3740 (sync_old_nand<INT1>): Remove.
3741 (*sync_old_nand<GPR>_internal): Remove.
3742 (sync_new_<FETCHOP><GPR>): Remove.
3743 (*sync_new_<FETCHOP>si_internal): Remove.
3744 (*sync_new_<FETCHOP>di_internal): Remove.
3745 (sync_new_nand<INT1>): Remove.
3746 (*sync_new_nand<GPR>_internal): Remove.
3747 (*atomic_andsi, *atomic_anddi): Remove.
3748 (*sync_addshort_internal, *sync_subshort_internal): Remove.
3749 (*sync_andsi_internal, *sync_boolsi_internal): Remove.
3750 (*sync_boolcshort_internal): Remove.
3751 (sync_lock_release<INT1>): Remove.
3752 (atomic_compare_and_swap<INT1>): New.
3753 (atomic_exchange<INT1>): New.
3754 (atomic_<FETCHOP><INT1>, atomic_nand<INT1>): New.
3755 (atomic_fetch_<FETCHOP><INT1>, atomic_fetch_nand<INT1>): New.
3756 (atomic_<FETCHOP>_fetch<INT1>, atomic_nand_fetch<INT1>): New.
3757
3758 2011-11-14 Uros Bizjak <ubizjak@gmail.com>
3759
3760 * config/i386/sse.md (round<mode>2): Use register_operand for
3761 operand 1 predicate.
3762 (round<mode>2_sfix): Ditto.
3763 (round<mode>2_vec_pack_sfix): Ditto for operand 1 and operand 2.
3764
3765 2011-11-14 Nathan Sidwell <nathan@acm.org>
3766
3767 * gcov.c (canonicalize_name): Protect use of S_ISLNK.
3768
3769 2011-11-14 Jan Hubicka <jh@suse.cz>
3770
3771 PR target/51126
3772 * config/i386/i386.c (core cost model): Correct pasto.
3773
3774 2011-11-14 Uros Bizjak <ubizjak@gmail.com>
3775
3776 * config/i386/sse.md (round<mode>2_sfix): New expander.
3777 (round<mode>2_vec_pack_sfix): Ditto.
3778 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
3779 (<sse4_1>_round<ssemodesuffix>_vec_pack_sfix<avxsizesuffix>): Ditto.
3780 * config/i386/builtin-types.def (V4SI_FTYPE_V4SF_ROUND,
3781 V8SI_FTYPE_V8SF_ROUND, V4SI_FTYPE_V2DF_V2DF_ROUND,
3782 V8SI_FTYPE_V4DF_V4DF_ROUND): New builtin types.
3783 * config/i386/i386.c (ix86_builtins): Add
3784 IX86_BUILTIN_{FLOORPD,CEILPD,ROUNDPD_AZ}_VEC_PACK_SFIX{,256} and
3785 IX86_BUILTIN_{FLOORPS,CEILPS,ROUNDPS_AZ}_SFIX{,256} defines.
3786 (bdesc_args): Add __builtin_ia32_{floorpd,ceilpd}_vec_pack_sfix{,256},
3787 __builtin_ia32_roundpd_az_vec_pack_sfix{,256},
3788 __builtin_ia32_{floorps,ceilps}_sfix{,256}and
3789 __builtin_ia32_roundps_az_sfix{,256} descriptions.
3790 (ix86_expand_sse_round_vec_pack_sfix): New.
3791 (ix86_expand_args_builtin): Handle V4SI_FTYPE_V4SF_ROUND,
3792 V8SI_FTYPE_V8SF_ROUND, V4SI_FTYPE_V2DF_V2DF_ROUND and
3793 V8SI_FTYPE_V4DF_V4DF_ROUND types. Check last argument of
3794 CODE_FOR_sse4_1_roundpd_vec_pack_sfix, CODE_FOR_sse4_1_roundps_sfix,
3795 CODE_FOR_avx_roundpd_vec_pack_sfix256 and CODE_FOR_avx_roundps_sfix256.
3796 (ix86_builtin_vectorized_function): Handle
3797 BUILT_IN_{I,L,LL}FLOOR{,F}, BUILT_IN_{I,L,LL}CEIL{,F} and
3798 BUILT_IN_{I,L,LL}ROUND{,F}
3799
3800 2011-11-14 Jan Hubicka <jh@suse.cz>
3801
3802 PR middle-end/50598
3803 * cgraph.h (varpool_externally_visible_p): Declare.
3804 (varpool_add_new_variable): Declare.
3805 * tree-emultls.c (get_emutls_init_templ_addr,
3806 new_emutls_decl): Use varpool_add_new_variable.
3807 * ipa.c (varpool_externally_visible_p): Export.
3808 * varpool.c (varpool_add_new_variable): New function.
3809
3810 2011-11-14 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
3811 Jan Hubicka <jh@suse.cz>
3812
3813 * config/i386/i386.h (processor_costs): Add second dimension to
3814 stringop_algs array.
3815 * config/i386/i386.c (cost models): Initialize second dimension of
3816 stringop_algs arrays.
3817 (core_cost): New costs based on generic64 costs with updated stringop
3818 values.
3819 (promote_duplicated_reg): Add support for vector modes, add
3820 declaration.
3821 (promote_duplicated_reg_to_size): Likewise.
3822 (processor_target): Set core costs for core variants.
3823 (expand_set_or_movmem_via_loop_with_iter): New function.
3824 (expand_set_or_movmem_via_loop): Enable reuse of the same iters in
3825 different loops, produced by this function.
3826 (emit_strset): New function.
3827 (expand_movmem_epilogue): Add epilogue generation for bigger sizes,
3828 use SSE-moves where possible.
3829 (expand_setmem_epilogue): Likewise.
3830 (expand_movmem_prologue): Likewise for prologue.
3831 (expand_setmem_prologue): Likewise.
3832 (expand_constant_movmem_prologue): Likewise.
3833 (expand_constant_setmem_prologue): Likewise.
3834 (decide_alg): Add new argument align_unknown. Fix algorithm of
3835 strategy selection if TARGET_INLINE_ALL_STRINGOPS is set; Skip sse_loop
3836 (decide_alignment): Update desired alignment according to chosen move
3837 mode.
3838 (ix86_expand_movmem): Change unrolled_loop strategy to use SSE-moves.
3839 (ix86_expand_setmem): Likewise.
3840 (ix86_slow_unaligned_access): Implementation of new hook
3841 slow_unaligned_access.
3842 * config/i386/i386.md (strset): Enable half-SSE moves.
3843 * config/i386/sse.md (vec_dupv4si): Add expand for vec_dupv4si.
3844 (vec_dupv2di): Add expand for vec_dupv2di.
3845
3846 2011-11-14 Dimitrios Apostolou <jimis@gmx.net>
3847
3848 PR bootstrap/51094
3849 PR middle-end/51116
3850 * config/elfos.h (TARGET_ASM_INTERNAL_LABEL): Remove.
3851 * varasm.c (default_elf_internal_label): Remove.
3852
3853 2011-11-14 Kai Tietz <ktietz@redhat.com>
3854
3855 * gcov.c (generate_results): Add missing semicolon and correct indent.
3856
3857 2011-11-14 Ira Rosen <ira.rosen@linaro.org>
3858
3859 PR bootstrap/51112
3860 * tree-vect-stmts.c (vectorizable_condition): Initialize comp_vectype.
3861
3862 2011-11-14 Mingjie Xing <mingjie.xing@gmail.com>
3863
3864 * doc/invoke.texi (Wunused-result): Change @pxref{Variable Attributes}
3865 to @pxref{Function Attributes}.
3866
3867 2011-11-13 Oleg Endo <oleg.endo@t-online.de>
3868
3869 PR target/50694
3870 * config/sh/sh.h (IS_LITTLE_ENDIAN_OPTION, UNSUPPORTED_SH2A):
3871 New macros.
3872 (DRIVER_SELF_SPECS): Use new macros to filter out unsupported options
3873 taking the default configuration into account.
3874
3875 2011-11-13 Jonathan Wakely <jwakely.gcc@gmail.com>
3876
3877 * doc/install.texi (Specific): Fix anchor for
3878 x86_64-*-solaris2.1[0-9]*.
3879
3880 2011-11-13 Nathan Sidwell <nathan@acm.org>
3881
3882 * gcov.c (source_prefix, source_length): New globals.
3883 (flag_relative_only): Likewise.
3884 (print_usage, options, process_args): Update.
3885 (generate_results): Use coverage.name, check
3886 flag_relative_only. Adjust messages.
3887 (find_source): Check source_prefix.
3888 (output_lines): Use coverage.name, adjust messages.
3889 * doc/gcov.texi (Invoking Gcov): Document new options.
3890
3891 2011-11-12 Jason Merrill <jason@redhat.com>
3892
3893 PR c++/51060
3894 * gimplify.c (gimplify_target_expr): Add a clobber to the cleanup.
3895 (gimplify_modify_expr): Don't try to simplify it.
3896
3897 2011-11-12 Dimitrios Apostolou <jimis@gmx.net>
3898
3899 PR bootstrap/51094
3900 * config/elfos.h (STRING_ASM_OP): Define.
3901 * varasm.c (default_elf_asm_output_limited_string): Use it.
3902
3903 PR bootstrap/51094
3904 * gcc/configure.ac: Check for stpcpy declaration.
3905 * system.h: Declare it if not.
3906 * config.in, configure: Regenerate.
3907
3908 2011-11-12 Richard Henderson <rth@redhat.com>
3909
3910 * config/rs6000/rs6000.md (fix_trunc<SFDF>si2_stfiwx): Use
3911 nonimmediate_operand for the destination.
3912 (fixuns_trunc<SFDF>si2_stfiwx): Likewise.
3913
3914 * builtins.c (expand_builtin_compare_and_swap): If target is const0,
3915 don't pass the target to expand_atomic_compare_and_swap.
3916 (expand_builtin_atomic_compare_exchange): Likewise.
3917
3918 * config/sh/linux.h (TARGET_INIT_LIBFUNCS): New.
3919 * config/sh/sh.c (sh_init_sync_libfuncs): New.
3920
3921 * config/pa/pa-linux.h (TARGET_SYNC_LIBCALL): New.
3922 * config/pa/pa.h (TARGET_SYNC_LIBCALL): New default.
3923 * config/pa/pa.c (pa_init_libfuncs): Use init_sync_libfuncs.
3924
3925 2011-11-12 Iain Sandoe <iains@gcc.gnu.org>
3926
3927 PR target/45233
3928 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
3929 Only expand a symbol ref. into an access when the entity is defined
3930 in the TU.
3931
3932 2011-11-12 Jan Hubicka <jh@suse.cz>
3933
3934 PR bootstrap/50822
3935 * cgraphunit.c (output_weakrefs): Output really only weakrefs.
3936
3937 2011-11-12 Nathan Sidwell <nathan@acm.org>
3938
3939 * gcov.c (struct name_map): New.
3940 (names, n_names, a_names): New global vars.
3941 (print_usage): Adjust usage.
3942 (generate_results): Canonicalize main file name.
3943 (release_structures): Adjust.
3944 (name_search, name_sort): New callbacks.
3945 (find_source): Look for and create a canonical name.
3946 (canonicalize_name): New.
3947 (make_gcov_file_name): Reimplement and fix mangling.
3948 (mangle_name): New.
3949 * doc/gcov.texi: Update documentation about path preservation.
3950
3951 2011-11-11 David S. Miller <davem@davemloft.net>
3952
3953 * config/sparc/linux.h (ASM_GENERATE_INTERNAL_LABEL): Delete.
3954 * config/sparc/linux64.h (ASM_GENERATE_INTERNAL_LABEL): Delete.
3955
3956 2011-11-11 Jakub Jelinek <jakub@redhat.com>
3957
3958 * config/i386/i386-protos.h (ix86_maybe_emit_epilogue_vzeroupper):
3959 New prototype.
3960 * config/i386/i386.c (ix86_maybe_emit_epilogue_vzeroupper): New
3961 function.
3962 (ix86_expand_epilogue): Use it.
3963 * config/i386/i386.md (return, simple_return): Call it in the
3964 expanders.
3965
3966 PR tree-optimization/51091
3967 * tree-stdarg.c (execute_optimize_stdarg): Ignore TREE_CLOBBER_P
3968 rhs also in the va_list_simple_ptr case.
3969
3970 PR tree-optimization/51058
3971 * tree-vect-slp.c (vect_remove_slp_scalar_calls): New function.
3972 (vect_schedule_slp): Call it.
3973 * tree-vect-stmts.c (vectorizable_call): If slp_node != NULL,
3974 don't replace scalar calls with setting of their lhs to zero here.
3975
3976 PR tree-optimization/51074
3977 * fold-const.c (vec_cst_ctor_to_array, fold_vec_perm): New functions.
3978 (fold_binary_loc): Handle VEC_EXTRACT_EVEN_EXPR,
3979 VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR and
3980 VEC_INTERLEAVE_LOW_EXPR with VECTOR_CST or CONSTRUCTOR operands.
3981 (fold_ternary_loc): Handle VEC_PERM_EXPR with VECTOR_CST or
3982 CONSTRUCTOR operands.
3983 * tree-ssa-propagate.c (valid_gimple_rhs_p): Handle ternary
3984 expressions.
3985 * tree-vect-generic.c (lower_vec_perm): Mask sel_int elements
3986 to 0 .. 2 * elements - 1.
3987
3988 2011-11-11 Richard Henderson <rth@redhat.com>
3989
3990 * gimple-pretty-print.c (dump_gimple_omp_atomic_load): Dump needed.
3991 (dump_gimple_omp_atomic_store): Likewise.
3992 * optabs.c (can_atomic_exchange_p): New.
3993 * optabs.h (can_atomic_exchange_p): Declare.
3994 * omp-low.c (expand_omp_atomic_load): Implement.
3995 (expand_omp_atomic_store): Likewise.
3996 (expand_omp_atomic): Update for new arguments to load/store.
3997
3998 2011-11-11 Eric Botcazou <ebotcazou@adacore.com>
3999
4000 * cprop.c: Adjust outdated comments throughout.
4001 (hash_scan_set): Rename PAT parameter into SET.
4002 (cprop_pavloc): Rename into...
4003 (cprop_avloc): ...this.
4004 (cprop_absaltered): Rename into...
4005 (cprop_kill): ...this.
4006 (alloc_cprop_mem): Adjust for above renaming.
4007 (free_cprop_mem): Likewise.
4008 (compute_cprop_data): Likewise.
4009 (compute_local_properties): Rename TRANSP parameter into KILL and
4010 adjust throughout. Rework comments.
4011 (try_replace_reg): Fix long line.
4012 (cprop_jump): Likewise.
4013 (constprop_register): Fix prototype and take INSN last.
4014 (cprop_insn): Adjust calls to above function. Fix long lines.
4015 (bypass_block): Likewise.
4016 (one_cprop_pass): Likewise.
4017
4018 2011-11-11 Uros Bizjak <ubizjak@gmail.com>
4019
4020 * config/alpha/elf.h (ELF_ASCII_ESCAPES): Rename from ESCAPES.
4021 (ELF_STRING_LIMIT): Rename from STRING_LIMIT.
4022
4023 2011-11-11 Jason Merrill <jason@redhat.com>
4024
4025 * varasm.c (default_elf_asm_output_limited_string): #ifdef
4026 ELF_ASCII_ESCAPES.
4027 (default_elf_asm_output_ascii): Likewise.
4028
4029 2011-11-11 Uros Bizjak <ubizjak@gmail.com>
4030
4031 PR target/50762
4032 * config/i386/constraints.md (j): New address constraint.
4033 * config/i386/predicates.md (lea_address_operand): Redefine as
4034 special predicate.
4035 * config/i386/i386.md (*lea_3_zext): Use "j" constraint for operand 1.
4036 (*lea_4_zext): Ditto.
4037
4038 2011-11-11 David S. Miller <davem@davemloft.net>
4039
4040 Revert
4041 2011-11-05 David S. Miller <davem@davemloft.net>
4042
4043 * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): New unspec.
4044 (zero-extend_v8qi_vis, zero_extend_v4hi_vis): New expanders.
4045 (*zero_extend_v8qi_<P:mode>_insn,
4046 *zero_extend_v4hi_<P:mode>_insn): New insns.
4047 * config/sparc/sparc.c (vector_init_move_words,
4048 vector_init_prepare_elts, sparc_expand_vector_init_vis2,
4049 sparc_expand_vector_init_vis1): New functions.
4050 (vector_init_bshuffle): Rewrite to handle more cases and make use
4051 of locs[] array prepared by vector_init_prepare_elts.
4052 (vector_init_fpmerge, vector_init_faligndata): Delete.
4053 (sparc_expand_vector_init): Rewrite using new infrastructure.
4054
4055 2011-11-11 Jakub Jelinek <jakub@redhat.com>
4056
4057 * opts-common.c (generate_canonical_option): Free opt_text
4058 it it has been allocated here and not stored anywhere.
4059
4060 * tree-vect-slp.c (vect_free_slp_tree): Also free SLP_TREE_CHILDREN
4061 vector.
4062 (vect_create_new_slp_node): Don't allocate node before checking stmt
4063 type.
4064 (vect_free_oprnd_info): Remove FREE_DEF_STMTS argument, always
4065 free def_stmts vectors and additionally free oprnd_info.
4066 (vect_build_slp_tree): Adjust callers. Call it even if
4067 stop_recursion. If vect_create_new_slp_node or
4068 vect_build_slp_tree fails, properly handle freeing memory.
4069 If it succeeded, clear def_stmts in oprnd_info.
4070
4071 2011-11-11 Dimitrios Apostolou <jimis@gmx.net>
4072
4073 * defaults.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Expand on
4074 multiple lines for readability.
4075 * output.h (fprint_whex, fprint_w, fprint_ul, sprint_ul): Declare.
4076 (ASM_OUTPUT_LABELREF): Call fputs instead of asm_fprintf.
4077 * dwarf2asm.c (dw2_assemble_integer, dw2_asm_output_data,
4078 dw2_asm_data_uleb128, dw2_asm_delta_uleb128,
4079 dw2_asm_delta_sleb128): Convert fprintf calls to the new functions.
4080 * dwarf2out.c (dwarf2out_source_line): Call fprint_ul instead of
4081 fprintf.
4082 * final.c (fprint_whex, fprint_w, fprint_ul, sprint_ul): New functions
4083 serving as fast replacements for fprintf integer to string conversions.
4084 (sprint_ul_rev): Internal helper for the above.
4085 (output_addr_const) <CONST_INT>: Don't use fprintf.
4086 * varasm.c: Fix some whitespace inconsistencies.
4087 (default_elf_asm_output_limited_string): New.
4088 (default_elf_asm_output_ascii): Likewise.
4089 (default_elf_internal_label): Likewise.
4090 * config/elfos.h (ASM_GENERATE_INTERNAL_LABEL): Use sprint_ul and
4091 stpcpy instead of sprintf.
4092 (TARGET_ASM_INTERNAL_LABEL): Define as default_elf_internal_label.
4093 (ELF_ASCII_ESCAPES, ELF_STRING_LIMIT): Rename from old ESCAPES and
4094 STRING_LIMIT macros.
4095 (ASM_OUTPUT_LIMITED_STRING, ASM_OUTPUT_ASCII): Call functions that
4096 provide the same functionality.
4097 * config/i386/i386.c (print_reg): Call fprint_ul instead of fprintf.
4098
4099 2011-11-10 Andrew MacLeod <amacleod@redhat.com>
4100
4101 * doc/extend.texi: Document __atomic_test_and_set and __atomic_clear.
4102
4103 2011-11-10 Andrew MacLeod <amacleod@redhat.com>
4104
4105 PR middle-end/51038
4106 * builtins.c (expand_builtin_atomic_clear): New. Expand atomic_clear.
4107 (expand_builtin_atomic_test_and_set): New. Expand atomic test_and_set.
4108 (expand_builtin): Add cases for test_and_set and clear.
4109 * sync-builtins.def (BUILT_IN_ATOMIC_TEST_AND_SET): New.
4110 (BUILT_IN_ATOMIC_CLEAR): New.
4111
4112 2011-11-10 Roberto Agostino Vitillo <ravitillo@lbl.gov>
4113
4114 PR debug/50983
4115 * dwarf2out.c (set_cur_line_info_table): Restore the last is_stmt
4116 value in the current line table.
4117
4118 2011-11-10 Nathan Sidwell <nathan@acm.org>
4119
4120 * gcov.c (struct function_info): Make src an index, not a pointer.
4121 (struct source_info): Remove index and next source fields.
4122 (fn_end): New static var.
4123 (sources_index): Remove.
4124 (sources): Now a pointer to an array, not a list.
4125 (n_sources, a_sources): New.
4126 (process_file): Adjust for changes to read_graph_file. Insert
4127 functions into source lists and check line numbers here.
4128 (generate_results): Only allocate lines for sources with
4129 contents. Adjust for source array.
4130 (release_structures): Likewise.
4131 (find_source): Return source index, adjust for source array.
4132 (read_graph_file): Return function list. Don't insert into source
4133 lists here.
4134 (read_count_file): Take list of functions.
4135 (solve_flow_graph): Reverse the arc lists here.
4136 (add_line_counts): Adjust for source array.
4137
4138 2011-11-10 Jakub Jelinek <jakub@redhat.com>
4139
4140 PR middle-end/51077
4141 * tree-object-size.c (addr_object_size): Check TREE_CODE of
4142 MEM_REF's operand rather than code of the MEM_REF itself.
4143
4144 2011-11-10 Andrew MacLeod <amacleod@redhat.com>
4145
4146 PR rtl-optimization/51040
4147 * optabs.c (expand_atomic_fetch_op): Patchup code for NAND should
4148 be AND followed by NOT.
4149 * builtins.c (expand_builtin_atomic_fetch_op): Patchup code for NAND
4150 should be AND followed by NOT.
4151
4152 2011-11-10 Jakub Jelinek <jakub@redhat.com>
4153
4154 * vec.h (VEC_BASE): If base is at offset 0 in the structure,
4155 use &(P)->base even if P is NULL.
4156
4157 PR rtl-optimization/51023
4158 * combine.c (simplify_comparison) <case SIGN_EXTEND>: Don't use
4159 val_signbit_known_clear_p for signed comparison narrowing
4160 optimization. Don't check for non-VOIDmode, use
4161 HWI_COMPUTABLE_MODE_P macro.
4162 <case ZERO_EXTEND>: Don't check for non-VOIDmode.
4163 Optimize even when const_op is equal to GET_MODE_MASK (mode),
4164 don't optimize if const_op is negative.
4165
4166 2011-11-10 Richard Guenther <rguenther@suse.de>
4167
4168 PR tree-optimization/51042
4169 * tree-ssa-pre.c (phi_translate_1): Avoid recursing on
4170 self-referential expressions. Refactor code to avoid duplication.
4171
4172 2011-11-10 Richard Guenther <rguenther@suse.de>
4173
4174 PR tree-optimization/51070
4175 * tree-loop-distribution.c (generate_builtin): Do not replace
4176 the loop with a builtin if the partition contains statements which
4177 results are used outside of the loop.
4178 (pass_loop_distribution): Verify and collect.
4179
4180 2011-11-10 Richard Guenther <rguenther@suse.de>
4181
4182 PR tree-optimization/51030
4183 * tree-ssa-phiopt.c (jump_function_from_stmt): New function.
4184 (value_replacement): Use it to handle trivial non-empty
4185 intermediate blocks.
4186
4187 2011-11-10 Richard Guenther <rguenther@suse.de>
4188
4189 PR middle-end/51071
4190 * gimple.c (gimple_has_side_effects): Remove checking code
4191 that doesn't belong here.
4192
4193 2011-11-10 Ira Rosen <ira.rosen@linaro.org>
4194
4195 PR tree-optimization/51058
4196 * tree-vect-slp.c (vect_get_constant_vectors): Handle CALL_EXPR.
4197
4198 2011-11-10 Jakub Jelinek <jakub@redhat.com>
4199
4200 PR tree-optimization/51000
4201 * tree-vect-patterns.c (vect_recog_bool_pattern): If adding
4202 a pattern stmt for a bool store, adjust DR_STMT too.
4203 Don't handle bool conversions to single bit precision lhs.
4204 * tree-vect-stmts.c (vect_remove_stores): If next is a pattern
4205 stmt, remove its related stmt and free its stmt_vinfo.
4206 (free_stmt_vec_info): Free also pattern stmt's vinfo and
4207 pattern def stmt's vinfo.
4208 * tree-vect-loop.c (destroy_loop_vec_info): Don't try to
4209 free pattern stmt's vinfo here.
4210 (vect_transform_loop): When calling vect_remove_stores,
4211 do gsi_next first and don't call gsi_remove. If not strided
4212 store, free stmt vinfo for gsi_stmt (si) rather than stmt.
4213
4214 2011-11-09 Jakub Jelinek <jakub@redhat.com>
4215
4216 PR target/50911
4217 * config/i386/i386.c (expand_vec_perm_interleave2): If d->vmode is
4218 V4SImode, !TARGET_SSE2 and punpck[lh]* is needed, change dremap.vmode
4219 to V4SFmode.
4220
4221 * function.h (requires_stack_frame_p): New prototype.
4222 * function.c (requires_stack_frame_p): No longer static.
4223 * config/i386/i386.c (ix86_finalize_stack_realign_flags): If
4224 stack_realign_fp was just a conservative guess for a function
4225 which doesn't use sp/fp/argp at all, clear frame_pointer_needed
4226 and stack realignment.
4227
4228 2011-11-09 Paolo Carlini <paolo.carlini@oracle.com>
4229
4230 PR preprocessor/51061
4231 * incpath.c (merge_include_chains): Make sure to not pass null
4232 pointers to free_path.
4233
4234 2011-11-09 Paolo Carlini <paolo.carlini@oracle.com>
4235
4236 * doc/invoke.texi ([Option Summary, C++ Language Options]):
4237 Add -Wzero-as-null-pointer-constant.
4238
4239 2011-11-07 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4240
4241 * config/arm/arm-cores.def: Add -mcpu=cortex-a7.
4242 * config/arm/arm-tables.opt: Regenerate.
4243 * config/arm/arm-tune.md: Likewise.
4244 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex A-7.
4245 * doc/invoke.texi: Document -mcpu=cortex-a7.
4246
4247 2011-11-09 Richard Guenther <rguenther@suse.de>
4248
4249 Revert
4250 2011-11-09 Richard Guenther <rguenther@suse.de>
4251
4252 * tree-cfg.c (verify_gimple_call): Verify that
4253 gimple_call_cannot_inline_p is returning a conservative
4254 correct result according to gimple_check_call_matching_types.
4255
4256 2011-11-09 Richard Guenther <rguenther@suse.de>
4257
4258 PR tree-optimization/51039
4259 * tree-cfg.c (verify_gimple_call): Verify that
4260 gimple_call_cannot_inline_p is returning a conservative
4261 correct result according to gimple_check_call_matching_types.
4262 * ipa-inline-analysis.c (estimate_function_body_sizes): Remove
4263 code dealing with un-inlinablility.
4264 * gimple-streamer-in.c (input_gimple_stmt): Update the
4265 non-inlinable flag.
4266
4267 2011-11-09 Richard Guenther <rguenther@suse.de>
4268
4269 PR tree-optimization/51039
4270 * tree-inline.c (setup_one_parameter): Always perform a
4271 valid gimple type change.
4272 (declare_return_variable): Likewise.
4273
4274 2011-11-09 Jakub Jelinek <jakub@redhat.com>
4275
4276 * config/rs6000/vector.md (vcondv4sfv4si, vcondv4siv4sf,
4277 vconduv4sfv4si): New patterns.
4278 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Handle
4279 different dest_mode from comparison mode.
4280
4281 2011-11-09 Richard Guenther <rguenther@suse.de>
4282
4283 * gimple-fold.c (canonicalize_constructor_val): Mark
4284 address-taken variables addressable.
4285
4286 2011-11-09 Ira Rosen <ira.rosen@linaro.org>
4287
4288 PR tree-optimization/51015
4289 * tree-vect-loop.c (vect_determine_vectorization_factor): Expect
4290 vectype to be set for pattern def stmts.
4291
4292 2011-11-09 Alan Modra <amodra@gmail.com>
4293
4294 * function.c (bb_active_p): Delete.
4295 (dup_block_and_redirect, active_insn_between): New functions.
4296 (convert_jumps_to_returns, emit_return_for_exit): New functions,
4297 split out from..
4298 (thread_prologue_and_epilogue_insns): ..here. Delete
4299 shadowing variables. Don't do prologue register clobber tests
4300 when shrink wrapping already failed. Delete all last_bb_active
4301 code. Instead compute tail block candidates for duplicating
4302 exit path. Remove these from antic set. Duplicate tails when
4303 reached from both blocks needing a prologue/epilogue and
4304 blocks not needing such.
4305 * ifcvt.c (dead_or_predicable): Test both flag_shrink_wrap and
4306 HAVE_simple_return.
4307 * bb-reorder.c (get_uncond_jump_length): Make global.
4308 * bb-reorder.h (get_uncond_jump_length): Declare.
4309 * cfgrtl.c (rtl_create_basic_block): Comment typo fix.
4310 (rtl_split_edge): Likewise. Warning fix.
4311 (rtl_duplicate_bb): New function.
4312 (rtl_cfg_hooks): Enable can_duplicate_block_p and duplicate_block.
4313 * Makefile.in (function.o): Update dependencies.
4314
4315 2011-11-08 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4316 Georg-Johann Lay <avr@gjlay.de>
4317
4318 * doc/tm.texi.in (MODE_CODE_BASE_REG_CLASS): Add address space
4319 argument.
4320 (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
4321 * doc/tm.texi: Regenerate.
4322
4323 * config/cris/cris.h (MODE_CODE_BASE_REG_CLASS): Add address
4324 space argument.
4325 (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
4326 * config/bfin/bfin.h (MODE_CODE_BASE_REG_CLASS): Likewise.
4327 (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
4328 * config/avr/avr.h (MODE_CODE_BASE_REG_CLASS): Add address space
4329 argument.
4330 (REGNO_MODE_CODE_OK_FOR_BASE_P): Ditto.
4331 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
4332 (avr_regno_mode_code_ok_for_base_p): Ditto.
4333 * config/avr/avr.c (avr_mode_code_base_reg_class): Ditto.
4334 (avr_regno_mode_code_ok_for_base_p): Ditto.
4335 (avr_reg_ok_for_addr_p): Pass AS down to
4336 avr_regno_mode_code_ok_for_base_p.
4337
4338 * addresses.h (base_reg_class): Add address space argument.
4339 Pass to MODE_CODE_BASE_REG_CLASS.
4340 (ok_for_base_p_1): Add address space argument. Pass to
4341 REGNO_MODE_CODE_OK_FOR_BASE_P.
4342 (regno_ok_for_base_p): Add address space argument. Pass to
4343 ok_for_base_p_1.
4344
4345 * regrename.c (scan_rtx_address): Add address space argument.
4346 Pass address space to regno_ok_for_base_p and base_reg_class.
4347 Update recursive calls.
4348 (scan_rtx): Pass address space to scan_rtx_address.
4349 (build_def_use): Likewise.
4350 * regcprop.c (replace_oldest_value_addr): Add address space
4351 argument. Pass to regno_ok_for_base_p and base_reg_class.
4352 Update recursive calls.
4353 (replace_oldest_value_mem): Pass address space to
4354 replace_oldest_value_addr.
4355 (copyprop_hardreg_forward_1): Likewise.
4356
4357 * reload.c (find_reloads_address_1): Add address space argument.
4358 Pass address space to base_reg_class and regno_ok_for_base_p.
4359 Update recursive calls.
4360 (find_reloads_address): Pass address space to base_reg_class,
4361 regno_ok_for_base_p, and find_reloads_address_1.
4362 (find_reloads): Pass address space to base_reg_class.
4363 (find_reloads_subreg_address): Likewise.
4364
4365 * ira-costs.c (record_reg_classes): Update calls to base_reg_class.
4366 (ok_for_base_p_nonstrict): Add address space argument. Pass to
4367 ok_for_base_p_1.
4368 (record_address_regs): Add address space argument. Pass to
4369 base_reg_class and ok_for_base_p_nonstrict. Update recursive calls.
4370 (record_operand_costs): Pass address space to record_address_regs.
4371 (scan_one_insn): Likewise.
4372
4373 * caller-save.c (init_caller_save): Update call to base_reg_class.
4374 * ira-conflicts.c (ira_build_conflicts): Likewise.
4375 * reload1.c (maybe_fix_stack_asms): Likewise.
4376
4377 2011-11-08 Michael Matz <matz@suse.de>
4378
4379 * gengtype.c (write_field_root): Avoid out-of-scope access of newv.
4380
4381 * tree-stdarg.c (execute_optimize_stdarg): Accept clobbers.
4382
4383 * tree.h (TREE_CLOBBER_P): New macro.
4384 * gimple.h (gimple_clobber_p): New inline function.
4385 * gimplify.c (gimplify_bind_expr): Add clobbers for all variables
4386 that go out of scope and live in memory.
4387 * tree-ssa-operands.c (get_expr_operands): Transfer volatility also
4388 for constructors.
4389 * cfgexpand.c (decl_to_stack_part): New static variable.
4390 (add_stack_var): Allocate it, and remember mapping.
4391 (fini_vars_expansion): Deallocate it.
4392 (stack_var_conflict_p): Add early outs.
4393 (visit_op, visit_conflict, add_scope_conflicts_1,
4394 add_scope_conflicts): New static functions.
4395 (expand_used_vars_for_block): Don't call add_stack_var_conflict, tidy.
4396 (expand_used_vars): Add scope conflicts.
4397 (expand_gimple_stmt_1): Expand clobbers to nothing.
4398 (expand_debug_expr): Ditto.
4399
4400 * tree-pretty-print.c (dump_generic_node): Dump clobbers nicely.
4401 * tree-ssa-live.c (remove_unused_locals): Remove clobbers that
4402 refer to otherwise unused locals.
4403 * tree-sra.c (build_accesses_from_assign): Ignore clobbers.
4404 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Clobbers of
4405 SSA names aren't necessary.
4406 (propagate_necessity): Accept and ignore constructors on the rhs, tidy.
4407 * gimple.c (walk_gimple_op): Accept constructors like mem_rhs.
4408 * tree-ssa-structalias.c (find_func_aliases): Clobbers don't store
4409 any known value.
4410 * tree-ssa-sccvn.c (vn_reference_lookup_3): Ditto, in particular they
4411 don't zero-initialize something.
4412 * tree-ssa-phiopt.c (cond_if_else_store_replacement_1): Ignore
4413 clobber RHS, we don't want PHI nodes with those.
4414
4415 2011-11-08 Jakub Jelinek <jakub@redhat.com>
4416
4417 * config/i386/i386.c (ix86_preferred_simd_mode): Even for TARGET_AVX
4418 if not TARGET_PREFER_AVX128 return 32-byte integer vectors.
4419
4420 2011-11-08 Richard Guenther <rguenther@suse.de>
4421
4422 PR tree-optimization/51012
4423 * ipa-prop.c (update_indirect_edges_after_inlining): Fixup
4424 non-inlinable state.
4425 * cgraph.c (cgraph_make_edge_direct): Likewise.
4426
4427 2011-11-08 Eric Botcazou <ebotcazou@adacore.com>
4428
4429 PR rtl-optimization/47698
4430 * ifcvt.c (noce_operand_ok): Move around comment.
4431
4432 2011-11-08 Richard Guenther <rguenther@suse.de>
4433
4434 PR lto/50999
4435 * lto-opts.c (append_to_collect_gcc_options): Split out from...
4436 (lto_write_options): ... here. Prepend frontend specific flags.
4437
4438 2011-11-08 Jakub Jelinek <jakub@redhat.com>
4439
4440 * config/i386/sse.md (*avx_vperm2f128<mode>3_nozero): Emit mask
4441 0x12 and 0x20 as vinsert[fi]128 instead of vperm2[fi]128.
4442
4443 * tree-vect-stmts.c (vectorizable_call): Add SLP_NODE argument.
4444 Handle vectorization of SLP calls.
4445 (vect_analyze_stmt): Adjust caller, add call to it for SLP too.
4446 (vect_transform_stmt): Adjust vectorizable_call caller, remove
4447 assertion.
4448 * tree-vect-slp.c (vect_get_and_check_slp_defs): For calls start
4449 with op_idx 3.
4450 (vect_build_slp_tree): Allow CALL_EXPR.
4451
4452 2011-11-08 Richard Guenther <rguenther@suse.de>
4453
4454 * gimple-fold.c (canonicalize_constructor_val): Make sure
4455 we have referenced vars setup before adding to them.
4456
4457 2011-11-07 Richard Henderson <rth@redhat.com>
4458 Aldy Hernandez <aldyh@redhat.com>
4459 Andrew MacLeod <amacleod@redhat.com>
4460 Torvald Riegel <triegel@redhat.com>
4461
4462 Merged from transactional-memory.
4463
4464 * gtm-builtins.def: New file.
4465 * trans-mem.c: New file.
4466 * trans-mem.h: New file.
4467
4468 * opts.c (finish_options): Error out when using -flto and -fgnu-tm.
4469
4470 * config/i386/i386.c: Define TARGET_VECTORIZE* transactional variants.
4471 (ix86_handle_tm_regparm_attribute, struct bdesc_tm,
4472 ix86_builtin_tm_load, ix86_builtin_tm_store,
4473 ix86_init_tm_builtins): New.
4474 (ix86_init_builtins): Initialize TM builtins.
4475 (struct ix86_attribute_table): Add "*tm regparm".
4476 * config/i386/i386-builtin-types.def (PV2SI): Define.
4477 (PCV2SI): Define.
4478 Define V2SI_FTYPE_PCV2SI.
4479 Define V4SF_FTYPE_PCV4SF.
4480 Define V8SF_FTYPE_PCV8SF.
4481 Define VOID_PV2SI_V2SI.
4482
4483 * doc/invoke.texi (C Dialect Options): Document -fgnu-tm and
4484 tm-max-aggregate-size.
4485 * doc/tm.texi.in: Add TARGET_VECTORIZE_BUILTIN_TM_LOAD and
4486 TARGET_VECTORIZE_BUILTIN_TM_STORE hooks.
4487 * doc/tm.texi: Regenerate.
4488
4489 * attribs.c (apply_tm_attr): New.
4490 (init_attributes): Allow '*' prefix for overrides.
4491 (register_attribute): Likewise.
4492 * builtin-attrs.def (ATTR_TM_TMPURE, ATTR_TM_REGPARM): New.
4493 (ATTR_TM_NOTHROW_LIST, ATTR_TM_TMPURE_NOTHROW_LIST,
4494 ATTR_TM_PURE_TMPURE_NOTHROW_LIST, ATTR_TM_NORETURN_NOTHROW_LIST,
4495 ATTR_TM_CONST_NOTHROW_LIST, ATTR_TMPURE_MALLOC_NOTHROW_LIST,
4496 ATTR_TMPURE_NOTHROW_LIST): New.
4497 * builtin-types.def (BT_FN_I[1248]_VPTR, BT_FN_FLOAT_VPTR,
4498 BT_FN_DOUBLE_VPTR, BT_FN_LDOUBLE_VPTR, BT_FN_VOID_VPTR_I[1248],
4499 BT_FN_VOID_VPTR_FLOAT, BT_FN_VOID_VPTR_DOUBLE,
4500 BT_FN_VOID_VPTR_LDOUBLE, BT_FN_VOID_VPTR_SIZE): New.
4501 * builtins.def: Include gtm-builtins.def. Add comments regarding
4502 transactional memory synchronization.
4503 (DEF_TM_BUILTIN): New.
4504 * c-parser.c (struct c_parser): Add in_transaction.
4505 (c_parser_transaction, c_parser_transaction_expression,
4506 c_parser_transaction_cancel, c_parser_transaction_attributes): New.
4507 (c_parser_attribute_any_word): Split out from c_parser_attributes.
4508 (c_parser_statement_after_labels): Handle RID_TRANSACTION*.
4509 (c_parser_unary_expression): Same.
4510 * c-tree.h (c_finish_transaction): Declare.
4511 * c-typeck.c (c_finish_transaction): New.
4512 (build_function_call_vec): Call tm_malloc_replacement.
4513 * calls.c (is_tm_builtin): New.
4514 (flags_from_decl_or_type): Add ECF_TM_BUILTIN and ECF_TM_PURE.
4515 * cfgbuild.c (make_edges): Add edges for REG_TM notes.
4516 * cfgexpand.c (expand_call_stmt): Call
4517 mark_transaction_restart_calls.
4518 (gimple_expand_cfg): Free the tm_restart map.
4519 (mark_transaction_restart_calls): New.
4520 * cfgrtl.c (purge_dead_edges): Look for REG_TM notes.
4521 * cgraph.c (dump_cgraph_node): Handle tm_clone.
4522 * cgraph.h (struct cgraph_node): Add tm_clone field.
4523 (decl_is_tm_clone): New.
4524 (struct cgraph_local_info): Add tm_may_enter_irr.
4525 (cgraph_copy_node_for_versioning): Declare.
4526 * cgraphunit.c (cgraph_copy_node_for_versioning): Export;
4527 copy analyzed from old version.
4528 * combine.c (distribute_notes): Handle REG_TM notes.
4529 * common.opt: Add -fgnu-tm.
4530 * crtstuff.c (__TMC_LIST__, __TMC_END__): New.
4531 (__do_global_dtors_aux): Deregister clone table.
4532 (frame_dummy): Register clone table.
4533 * emit-rtl.c (try_split): Handle REG_TM. Early return if no function
4534 body.
4535 * gimple-low.c (lower_stmt): Handle GIMPLE_EH_ELSE and
4536 GIMPLE_TRANSACTION.
4537 (gimple_stmt_may_fallthru): Handle GIMPLE_EH_ELSE.
4538 * gimple-pretty-print.c: Include trans-mem.h.
4539 (dump_gimple_fmt): Add %x.
4540 (dump_gimple_call): Dump arguments for calls to _ITM_beginTransaction.
4541 (dump_gimple_eh_else, dump_gimple_transaction): New.
4542 (dump_gimple_stmt): Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
4543 * gimple.c (gimple_build_eh_else, gimple_build_transaction): New.
4544 (walk_gimple_seq): Honor removed_stmt. Document usage of removed_stmt
4545 field.
4546 (walk_gimple_op): Handle GIMPLE_TRANSACTION.
4547 (walk_gimple_stmt): Initialize and honor removed_stmt.
4548 Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
4549 (gimple_copy): Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
4550 * gimple.def (GIMPLE_TRANSACTION, GIMPLE_EH_ELSE): New.
4551 * gimple.h (struct gimple_statement_eh_else,
4552 gimple_statement_transaction, GTMA_*): New.
4553 (gimple_statement_d): Add gimple_statement_eh_else and
4554 gimple_transaction.
4555 (gimple_build_eh_else, gimple_build_transaction,
4556 gimple_fold_call, diagnose_tm_safe_errors): Declare.
4557 (get_call_expr_in): Remove prototype.
4558 (gimple_has_substatements): Add GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
4559 (gimple_eh_else_n_body, gimple_eh_else_e_body,
4560 gimple_eh_else_set_n_body, gimple_eh_else_set_e_body,
4561 gimple_transaction_body, gimple_transaction_label,
4562 gimple_transaction_label_ptr, gimple_transaction_subcode,
4563 gimple_transaction_set_body, gimple_transaction_set_label,
4564 gimple_transaction_set_subcode): New.
4565 (struct walk_stmt_info): Use BOOL_BITFIELD; add removed_stmt.
4566 * gimplify.c (create_tmp_var_name): Use clean_symbol_name.
4567 (voidify_wrapper_expr): Handle TRANSACTION_EXPR.
4568 (gimplify_transaction): New.
4569 (gimplify_expr): Handle TRANSACTION_EXPR.
4570 * gsstruct.def (GSS_EH_ELSE, GSS_TRANSACTION): New.
4571 * ipa-inline.c (can_inline_edge_p): Do not inline TM safe calling
4572 TM pure functions.
4573 * Makefile.in: Add trans-mem.o and dependencies.
4574 (BUILTINS_DEF): Add gtm-builtins.def.
4575 (gimple-pretty-print.o): Depend on TRANS_MEM_H.
4576 (GTFILES): Add trans-mem.c.
4577 * omp-low.c (WALK_SUBSTMTS): Add GIMPLE_TRANSACTION.
4578 * output.h (record_tm_clone_pair, finish_tm_clone_pairs,
4579 get_tm_clone_pair): Declare.
4580 * params.def (PARAM_TM_MAX_AGGREGATE_SIZE): New.
4581 * passes.c (init_optimization_passes): Place transactional memory
4582 passes.
4583 * print-tree.c (print_node): Dump tm-clone.
4584 * recog.c (peep2_attempt): Handle REG_TM.
4585 * reg-notes.def (TM): New.
4586 * rtlanal.c (alloc_reg_note): Handle REG_TM.
4587 * target.def (builtin_tm_load, builtin_tm_store): New.
4588 * targhooks.c (default_builtin_tm_load_store): New.
4589 * targhooks.h (default_builtin_tm_load_store): Declare.
4590 * timevar.def (TV_TRANS_MEM): New.
4591 * toplev.c (compile_file): Call finish_tm_clone_pairs.
4592 * tree-cfg.c (make_edges): Handle GIMPLE_TRANSACTION.
4593 (cleanup_dead_labels): Handle GIMPLE_TRANSACTION. Avoid unnecessary
4594 writes into the statements to update labels.
4595 (is_ctrl_altering_stmt): Add TM ending statements. Handle
4596 GIMPLE_TRANSACTION.
4597 (verify_gimple_transaction): New.
4598 (verify_gimple_stmt): Handle GIMPLE_TRANSACTION.
4599 (verify_gimple_in_seq_2): Handle GIMPLE_EH_ELSE and GIMPLE_TRANSACTION.
4600 (gimple_redirect_edge_and_branch): Handle TM_TRANSACTION.
4601 (dump_function_to_file): Display [tm-clone] if applicable.
4602 * tree-eh.c (struct_ptr_eq): Make inline and move to tree.h.
4603 (struct_ptr_hash): Same.
4604 (collect_finally_tree): Handle GIMPLE_EH_ELSE.
4605 (replace_goto_queue_1): Likewise.
4606 (get_eh_else): New.
4607 (honor_protect_cleanup_actions): Handle GIMPLE_EH_ELSE.
4608 (lower_try_finally_nofallthru): Likewise.
4609 (lower_try_finally_onedest): Likewise.
4610 (lower_try_finally_copy): Likewise.
4611 (lower_try_finally_switch): Likewise.
4612 (lower_try_finally): Likewise.
4613 (decide_copy_try_finally): Likewise.
4614 (lower_eh_constructs_2): Likewise.
4615 (refactor_eh_r): Likewise.
4616 * tree-flow.h (struct gimple_df): Add tm_restart field.
4617 Define tm_restart_node.
4618 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_TRANSACTION.
4619 (estimate_num_insns): Likewise.
4620 (init_inline_once): Init tm_cost.
4621 * tree-inline.h (struct eni_weights_d): Add tm_cost.
4622 * tree-pass.h (pass_diagnose_tm_blocks, pass_lower_tm, pass_tm_init,
4623 pass_tm_mark, pass_tm_memopt, pass_tm_edges, pass_ipa_tm): Declare.
4624 * tree-pretty-print.c (dump_generic_node): Handle TRANSACTION_EXPR.
4625 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4626 BUILT_IN_TM_MEMSET, BUILT_IN_TM_MEMCPY, BUILT_IN_TM_MEMMOVE.
4627 Add support for TM vector loads. Add support for TM logging builtins.
4628 (call_may_clobber_ref_p_1): Add support for vector stores.
4629 * tree-ssa-structalias.c (find_func_aliases): Add support for TM
4630 vector stores and loads. Handle BUILT_IN_TM_MEMSET,
4631 BUILT_IN_TM_MEMCPY, BUILT_IN_TM_MEMMOVE.
4632 * tree.c (strip_invariant_refs): Moved from gimple.c to here.
4633 (local_define_builtin): Handle ECF_TM_PURE.
4634 (build_common_builtin_nodes): Set __builtin_eh_pointer to ECF_TM_PURE.
4635 * tree.def (TRANSACTION_EXPR): New.
4636 * tree.h (strip_invariant_refs): Moved from gimple.h to here.
4637 (TRANSACTION_EXPR_BODY, TRANSACTION_EXPR_CHECK,
4638 TRANSACTION_EXPR_OUTER, TRANSACTION_EXPR_RELAXED,
4639 BUILTIN_TM_LOAD_STORE_P, BUILTIN_TM_LOAD_P, BUILTIN_TM_STORE_P,
4640 CASE_BUILT_IN_TM_LOAD, CASE_BUILT_IN_TM_STORE): New.
4641 (ECF_TM_PURE, ECF_TM_BUILTIN): New.
4642 (struct tree_function_decl): Add tm_clone_flag.
4643 (struct_ptr_eq, struct_ptr_hash): New.
4644 (apply_tm_attr): Declare.
4645 (is_tm_safe_or_pure): New.
4646 (build_tm_abort_call, is_tm_safe, is_tm_pure,
4647 is_tm_may_cancel_outer, is_tm_ending_fndecl, record_tm_replacement,
4648 tm_malloc_replacement): Declare.
4649 * varasm.c (tm_clone_hash): New.
4650 (record_tm_clone_pair, finish_tm_clone_pairs, get_tm_clone_pair,
4651 dump_tm_clone_to_vec, dump_tm_clone_pairs, tm_alias_pair_cmp): New.
4652 (struct tm_alias_pair): New. Declare VEC types for object.
4653
4654 2011-11-07 Richard Henderson <rth@redhat.com>
4655
4656 * optabs.h (OTI_sync_compare_and_swap, OTI_sync_lock_test_and_set,
4657 OTI_sync_old_add, OTI_sync_old_sub, OTI_sync_old_ior,
4658 OTI_sync_old_and, OTI_sync_old_xor, OTI_sync_old_nand,
4659 OTI_sync_new_add, OTI_sync_new_sub, OTI_sync_new_ior,
4660 OTI_sync_new_and, OTI_sync_new_xor, OTI_sync_new_nand): Move and
4661 rename from the direct_optab_index enum.
4662 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab,
4663 sync_old_add_optab, sync_old_sub_optab, sync_old_ior_optab,
4664 sync_old_and_optab, sync_old_xor_optab, sync_old_nand_optab,
4665 sync_new_add_optab, sync_new_sub_optab, sync_new_ior_optab,
4666 sync_new_and_optab, sync_new_xor_optab, sync_new_nand_optab): Read
4667 from the optab_table, not the direct_optab_table.
4668 (init_sync_libfuncs): Declare.
4669 (can_compare_and_swap_p): Update parameters.
4670 * optabs.c (init_sync_libfuncs_1, init_sync_libfuncs): New.
4671 (can_compare_and_swap_p): Add allow_libcall parameter; if true,
4672 test for the legacy compare-and-swap libcall.
4673 (expand_atomic_exchange): Use the legacy test-and-set libcall.
4674 (expand_atomic_compare_and_swap): Use the legacy CAS libcall.
4675 (struct atomic_op_functions): Update for optab type changes.
4676 (maybe_emit_op): Likewise.
4677 (expand_atomic_fetch_op): Use the legacy fetch-op libcalls.
4678 * builtins.c (fold_builtin_atomic_always_lock_free): Update call
4679 to can_compare_and_swap_p.
4680 * omp-low.c (expand_omp_atomic_fetch_op): Likewise.
4681 (expand_omp_atomic_pipeline): Likewise.
4682 * genopinit.c (optabs): Make sync_old_*_optab, sync_new_*_optab,
4683 sync_compare_and_swap_optab, sync_lock_test_and_set_optab regular
4684 optabs.
4685 * doc/md.texi (sync_compare_and_swap): Update docs for libcalls.
4686
4687 2011-11-07 Jakub Jelinek <jakub@redhat.com>
4688
4689 * config/i386/i386-bultin-types.def (V8SI_FTYPE_V4DF_V4DF): Add.
4690 * config/i386/i386.c (enum ix86_builtins): Add
4691 IX86_BUILTIN_VEC_PACK_SFIX256.
4692 (bdesc_args): Add __builtin_ia32_vec_pack_sfix256.
4693 (ix86_expand_args_builtin): Handle V8SI_FTYPE_V4DF_V4DF.
4694 (ix86_builtin_vectorized_function): Also vectorize lrint using
4695 256-bit vectors for -mavx.
4696
4697 2011-11-07 Anatoly Sokolov <aesok@post.ru>
4698
4699 * config/cris/constraints.md: New file.
4700 * config/cris/cris.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
4701 CRIS_CONST_OK_FOR_LETTER_P, CONST_OK_FOR_CONSTRAINT_P,
4702 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_MEMORY_CONSTRAINT,
4703 EXTRA_CONSTRAINT, EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_R,
4704 EXTRA_CONSTRAINT_T, EXTRA_CONSTRAINT_S, EXTRA_CONSTRAINT_U): Remove.
4705 * config/cris/cris.c: Incule "tm-constrs.h".
4706 (cris_print_operand): Use satisfies_constraint_O.
4707 (cris_normal_notice_update_cc, cris_rtx_costs): Use
4708 satisfies_constraint_I.
4709 (cris_address_cost): Use satisfies_constraint_L.
4710 * config/cris/cris.md: Include "constraints.md".
4711 (*mov_side<mode>, *mov_sidesisf, *mov_side<mode>_mem,
4712 *mov_sidesisf_mem, *clear_side<mode>, *ext_sideqihi,
4713 *ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>,
4714 *extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side,
4715 *extop<mode>si_swap_side): Use satisfies_constraint_N and
4716 satisfies_constraint_J.
4717 (moversideqi movemsideqi mover2side peephole2): Use
4718 satisfies_constraint_N and satisfies_constraint_J.
4719 (andu peephole2): Use satisfies_constraint_I and
4720 satisfies_constraint_O.
4721
4722 2011-11-07 Uros Bizjak <ubizjak@gmail.com>
4723
4724 * config/i386/i386.c (ix86_builtin_vectorized_function): Handle
4725 BUILT_IN_IRINT, BUILT_IN_IRINTF, BUILT_IN_LLRINT and BUILT_IN_LLRINTF.
4726
4727 2011-11-07 Andrew MacLeod <amacleod@redhat.com>
4728
4729 * optabs.c (get_atomic_op_for_code): Fill in optab table at runtime so
4730 SWITCHABLE_TARGET can change the values during compilation.
4731 (expand_atomic_fetch_op): Handle parameter change ripples for
4732 get_atomic_op_for_code call.
4733
4734 2011-11-07 Andrew MacLeod <amacleod@redhat.com>
4735
4736 * doc/extend.texi: Docuemnt behaviour change for __atomic_exchange and
4737 __atomic_store.
4738 * optabs.c (expand_atomic_exchange): Expand to __sync_lock_test_and_set
4739 only when originated from that builtin.
4740 (expand_atomic_store): Expand to __sync_lock_release when originated
4741 from that builtin.
4742 * builtins.c (expand_builtin_sync_lock_test_and_set): Add flag that
4743 expand_atomic_exchange call originated from here.
4744 (expand_builtin_sync_lock_release): Add flag that expand_atomic_store
4745 call originated from here.
4746 (expand_builtin_atomic_exchange): Add origination flag.
4747 (expand_builtin_atomic_store): Add origination flag.
4748 * expr.h (expand_atomic_exchange, expand_atomic_store): Add boolean
4749 parameters to indicate implementation fall back options.
4750
4751 2011-11-07 Georg-Johann Lay <avr@gjlay.de>
4752
4753 * config/avr/avr.c (output_reload_in_const): Can handle CONSTANT_P
4754 now, not only CONST_INT and CONST_DOUBLE.
4755 (output_movqi): Use output_reload_in_const.
4756 (output_reload_inhi): Ditto.
4757 (output_reload_insisf): Move assertion to output_reload_in_const.
4758 (avr_out_reload_inpsi): Ditto.
4759
4760 2011-11-07 Nathan Sidwell <nathan@acm.org>
4761
4762 * gcov.c (object_summary): Replace with ...
4763 (object_runs): ... this.
4764 (process_file): Remove functions with no data.
4765 (generate_results): Ignore files with no lines.
4766 (release_function): New helper, broken out of ...
4767 (release_structures): ... here. Use it.
4768 (read_count_file): Adjust for new data file format.
4769 (output_lines): Use object_runs.
4770 * gcov-io.h (GCOV_TAG_OBJECT_SUMMARY): Obsolete.
4771 (struct gcov_ctr_info): Move definition.
4772 (struct gcov_fn_info): Add key field, use gcov_ctr_info for
4773 trailing array.
4774 (struct gcov_info): Add merge function array, remove mask and
4775 counts. Trailing array is array of pointers to function info.
4776 * coverage.c (struct function_list): Replace counter numbers with
4777 counter arrays. Add fndecl field. GTYify.
4778 (counts_entry): Remove chain workspace.
4779 (functions_head): GTYify.
4780 (prg_n_ctrs): Remove.
4781 (fn_v_ctrs): New.
4782 (tree_ctr_tables): Remove.
4783 (read_counts_file): Cope with blank entries and expect program
4784 summaries before functions. Don't warn on missing entries.
4785 (coverage_counter_alloc): Allocate individual function arrays.
4786 (tree_coverage_counter_ref, tree_coverage_counter_addr): Adjust
4787 for individual function arrays.
4788 (coverage_end_function): GTYify function list object. Finalize
4789 function's counter arrays.
4790 (build_var): New. Create a counter-related variable with
4791 appropriate linkage.
4792 (build_fn_info_type): Adjust for new runtime structure.
4793 (build_fn_info_value): Rename to ...
4794 (build_fn_info): ... here. Build new format data.
4795 (build_ctr_info_type, build_ctr_info_value): Remove.
4796 (build_info_type): New. Build new format data structure.
4797 (build_info): Adjust for new format data.
4798 (create_coverage): Likewise.
4799 * gcov-dump.c (tag_function): Recognize placeholders.
4800
4801 2011-11-07 Georg-Johann Lay <avr@gjlay.de>
4802
4803 * config/avr/constraints.md (Cm2): New constraint for int -2.
4804 * config/avr/avr.md (addqi3): Use it. New alternatives for +/-2.
4805 (*negqihi2): New insn.
4806
4807 2011-11-07 H.J. Lu <hongjiu.lu@intel.com>
4808
4809 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Check
4810 HARD_FRAME_POINTER_REGNUM instead of hard_frame_pointer_rtx in Rule 18.
4811
4812 2011-11-07 Jakub Jelinek <jakub@redhat.com>
4813
4814 * config/i386/i386.c (ix86_expand_builtin): If gather mask
4815 argument is known to have all high bits set, pass pc_rtx as
4816 second argument to the expander instead of op0.
4817 * config/i386/sse.md (*avx2_gathersi<mode>_2,
4818 *avx2_gatherdi<mode>_2): New patterns.
4819 * config/i386/avx2intrin.h (_mm256_i32gather_pd,
4820 _mm256_i64gather_pd, _mm256_i32gather_ps): Set mask using
4821 _mm256_cmp_pd with zero vector arguments and _CMP_EQ_OQ instead of
4822 _mm256_set1_pd.
4823
4824 PR tree-optimization/50789
4825 * tree-vect-stmts.c (process_use): Add force argument, avoid
4826 exist_non_indexing_operands_for_use_p check if true.
4827 (vect_mark_stmts_to_be_vectorized): Adjust callers. Handle
4828 STMT_VINFO_GATHER_P.
4829 (gen_perm_mask): New function.
4830 (perm_mask_for_reverse): Use it.
4831 (reverse_vec_element): Rename to...
4832 (permute_vec_elements): ... this. Add Y and MASK_VEC arguments,
4833 generalize for any permutations.
4834 (vectorizable_load): Adjust caller. Handle STMT_VINFO_GATHER_P.
4835 * target.def (TARGET_VECTORIZE_BUILTIN_GATHER): New hook.
4836 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_GATHER): Document it.
4837 * doc/tm.texi: Regenerate.
4838 * tree-data-ref.c (initialize_data_dependence_relation,
4839 compute_self_dependence): No longer static.
4840 * tree-data-ref.h (initialize_data_dependence_relation,
4841 compute_self_dependence): New prototypes.
4842 * tree-vect-data-refs.c (vect_check_gather): New function.
4843 (vect_analyze_data_refs): Detect possible gather load data refs.
4844 * tree-vectorizer.h (struct _stmt_vec_info): Add gather_p field.
4845 (STMT_VINFO_GATHER_P): Define.
4846 (vect_check_gather): New prototype.
4847 * config/i386/i386-builtin-types.def: Add types for alternate
4848 gather builtins.
4849 * config/i386/sse.md (AVXMODE48P_DI): Remove.
4850 (VEC_GATHER_MODE): Rename mode_attr to...
4851 (VEC_GATHER_IDXSI): ... this.
4852 (VEC_GATHER_IDXDI, VEC_GATHER_SRCDI): New mode_attrs.
4853 (avx2_gathersi<mode>, *avx2_gathersi<mode>): Use <VEC_GATHER_IDXSI>
4854 instead of <VEC_GATHER_MODE>.
4855 (avx2_gatherdi<mode>): Use <VEC_GATHER_IDXDI> instead of
4856 <AVXMODE48P_DI> and <VEC_GATHER_SRCDI> instead of VEC_GATHER_MODE
4857 on src and mask operands.
4858 (*avx2_gatherdi<mode>): Likewise. Use VEC_GATHER_MODE iterator
4859 instead of AVXMODE48P_DI.
4860 (avx2_gatherdi<mode>256, *avx2_gatherdi<mode>256): Removed.
4861 * config/i386/i386.c (enum ix86_builtins): Add
4862 IX86_BUILTIN_GATHERALTSIV4DF, IX86_BUILTIN_GATHERALTDIV8SF,
4863 IX86_BUILTIN_GATHERALTSIV4DI and IX86_BUILTIN_GATHERALTDIV8SI.
4864 (ix86_init_mmx_sse_builtins): Create those builtins.
4865 (ix86_expand_builtin): Handle those builtins and adjust expansions
4866 of other gather builtins.
4867 (ix86_vectorize_builtin_gather): New function.
4868 (TARGET_VECTORIZE_BUILTIN_GATHER): Define.
4869
4870 2011-11-07 Uros Bizjak <ubizjak@gmail.com>
4871
4872 * config/i386/f16cintrin.h: Remove extra _X86INTRIN_H_INCLUDED check.
4873
4874 2011-11-07 Tristan Gingold <gingold@adacore.com>
4875
4876 * config.gcc (*-*-*vms*): Set c_target_objs, cxx_target_objs.
4877 * config/vms/t-vms: Add vms-c.o rule.
4878 * config/vms/vms-c.c: New file.
4879 * config/vms/vms-protos.h (vms_c_register_pragma): New prototype.
4880 * config/vms/vms.h (REGISTER_TARGET_PRAGMAS): Define.
4881
4882 2011-11-07 Tristan Gingold <gingold@adacore.com>
4883
4884 * config/alpha/vms.h (TARGET_OBJECT_SUFFIX,
4885 TARGET_EXECUTABLE_SUFFIX, TARGET_OS_CPP_BUILTINS,
4886 TARGET_ABI_OPEN_VMS, LONG_TYPE_SIZE, ADA_LONG_TYPE_SIZE,
4887 POINTER_SIZE, POINTERS_EXTEND_UNSIGNED): Move to config/vms/vms.h
4888 (SUBTARGET_OS_CPP_BUILTINS): Define.
4889 (TARGET_DEFAULT): Tune according to POINTER_SIZE.
4890 (MASK_RETURN_ADDR): Define in 64 bit mode.
4891 * config/ia64/vms.h: Likewise.
4892 * config/vms/vms.h: New file.
4893 * config/vms/vms64.h: New file.
4894 * config/alpha/vms64.h: Removed.
4895 * config/ia64/vms64.h: Removed.
4896 * config.gcc (alpha64-dec-*vms*, alpha*-dec-*vms*, ia64-hp-*vms*):
4897 Adjust for above change.
4898
4899 2011-11-07 Enkovich Ilya <ilya.enkovich@intel.com>
4900
4901 PR target/50962
4902 * config/i386/i386-protos.h (ix86_use_lea_for_mov): New.
4903 * config/i386/i386.c (ix86_use_lea_for_mov): Likewise.
4904 * config/i386/i386.md (movsi_internal): Emit lea if profitable.
4905 (movdi_internal_rex64): Likewise.
4906
4907 2011-11-07 Sergey Ostanevich <sergos.gnu@gmail.com>
4908
4909 PR rtl-optimization/47698
4910 * ifcvt.c (noce_operand_ok): Return false for mems with side effects.
4911
4912 2011-11-07 Tristan Gingold <gingold@adacore.com>
4913
4914 * common/config/alpha/alpha-common.c (alpha_option_init_struct):
4915 New function.
4916 (TARGET_OPTION_INIT_STRUCT): Define.
4917 * config/alpha/alpha.c (TARGET_MIN_ANCHOR_OFFSET)
4918 (TARGET_MAX_ANCHOR_OFFSET)
4919 (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Redefine.
4920
4921 2011-11-06 Quentin Neill <quentin.neill@amd.com>
4922
4923 Fix r180999, update ChangeLog
4924 * config.gcc: Add f16cintrin.h.
4925 * config/i386/f16cintrin.h: Add missing endif.
4926
4927 2011-11-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
4928
4929 * config.gcc (arm*-*-rtemseabi*): New target.
4930 * config/arm/rtems-eabi.h: New.
4931 * config/arm/t-rtems-eabi: New.
4932
4933 2011-11-06 David S. Miller <davem@davemloft.net>
4934
4935 * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): Delete.
4936 (zero_extend_v8qi_vis, zero_extend_v4hi_vis,
4937 *zero_extend_v8qi_<P:mode>_insn,
4938 *zero_extend_v4hi_<P:mode>_insn): Express using vec_merge
4939 and vec_duplicate instead of using an UNSPEC.
4940
4941 2011-11-07 Alan Modra <amodra@gmail.com>
4942
4943 PR target/30282
4944 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Always emit
4945 blockage for ABI_V4.
4946
4947 2011-11-06 Dave Korn <dave.korn.cygwin@gmail.com>
4948
4949 * config/i386/cygwin.h (LIBGCJ_SONAME): Updated to match recent
4950 libgcj version bump.
4951 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
4952
4953 2011-11-06 Eric Botcazou <ebotcazou@adacore.com>
4954
4955 * gcse.c: Adjust outdated comments throughout.
4956 (struct mem_conflict_info): New structure.
4957 (mems_conflict_for_gcse_p): Use it to communicate with caller.
4958 (load_killed_in_block_p): Pass it to note_stores.
4959 (hash_expr): Remove superfluous line break.
4960 (hash_scan_set): Rename PAT parameter into SET.
4961 (hash_scan_insn): Reorder cases.
4962 (canon_list_insert): Fix long line.
4963 (edge_list): Delete.
4964 (prune_expressions): Rename E local variable into EXPR.
4965 (compute_pre_data): Return struct edge_list * object.
4966 (pre_expr_reaches_here_p_work): Fix formatting.
4967 (process_insert_insn): Move around comment.
4968 (pre_edge_insert): Fix long line.
4969 (pre_insert_copies): Likewise.
4970 (gcse_emit_move_after): Swap SRC and DEST parameters.
4971 (pre_delete): Adjust call to gcse_emit_move_after.
4972 (pre_gcse): Take struct edge_list * parameter. Fix long line.
4973 (one_pre_gcse_pass): Use flag_gcse_lm condition for all routines.
4974 Use a local list of edges.
4975 (hoist_code): Fix long line. Adjust call to gcse_emit_move_after.
4976 (pre_ldst_expr_hash): Fix long line.
4977 (free_ldst_mems): Rename into...
4978 (free_ld_motion_mems): ...this.
4979 (first_ls_expr): Delete.
4980 (next_ls_expr): Likewise.
4981 (print_ldst_list): Do not use above two functions.
4982 (simple_mem): Adjust interface.
4983 (compute_ld_motion_mems): Fix formatting.
4984 (update_ld_motion_stores): Reuse local variable.
4985
4986 2011-11-06 Joseph Myers <joseph@codesourcery.com>
4987
4988 * c-decl.c (shadow_tag_warned, grokdeclarator): Handle _Alignas
4989 specifiers.
4990 (build_null_declspecs): Initialize align_log and alignas_p fields.
4991 (declspecs_add_alignas): New.
4992 * c-parser.c (c_token_starts_declspecs): Handle RID_ALIGNAS.
4993 (c_parser_declspecs): Handle _Alignas specifiers.
4994 (c_parser_alignas_specifier): New.
4995 (c_parser_alignof_expression): Diagnose alignof use for non-C1X.
4996 Diagnose _Alignof (expression).
4997 * c-tree.h (struct c_declspecs): Add align_log and alignas_p fields.
4998 (declspecs_add_alignas): Declare.
4999 * ginclude/stddef.h (max_align_t): Define for C1X and C++11.
5000 * ginclude/stdalign.h: New.
5001 * Makefile.in (USER_H): Add stdalign.h.
5002
5003 2011-11-06 Joern Rennecke <joern.rennecke@embecosm.com>
5004
5005 * regset.h (fixed_reg_set_regset): Declare.
5006 * dse.c: Include regset.h .
5007 (struct insn_info): Add member fixed_regs_live.
5008 (note_add_store_info): New typedef.
5009 (note_add_store): New function.
5010 (emit_inc_dec_insn_before): Expect arg to be of type insn_info_t.
5011 Use gen_add3_insn / gen_move_insn.
5012 Check new insn for unwanted clobbers before emitting it.
5013 (check_for_inc_dec): Rename to...
5014 (check_for_inc_dec_1:) ... this. Return bool. Take insn_info
5015 parameter. Changed all callers in file.
5016 (check_for_inc_dec, copy_fixed_regs): New functions.
5017 (scan_insn): Set fixed_regs_live field of insn_info.
5018 * rtl.h (check_for_inc_dec): Update prototype.
5019 * postreload.c (reload_cse_simplify): Take new signature of
5020 check_ind_dec into account.
5021 * reginfo.c (fixed_reg_set_regset): New variable.
5022 (init_reg_sets_1): Initialize it.
5023
5024 2011-11-06 Jakub Jelinek <jakub@redhat.com>
5025
5026 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0 don't remove
5027 any user labels.
5028
5029 2011-11-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5030
5031 * config/pa/pa.c (pa_hpux_init_libfuncs): Rename to pa_init_libfuncs.
5032 Remove dependence of declaration and target define on definition of
5033 HPUX_LONG_DOUBLE_LIBRARY. Update implementation.
5034
5035 2011-11-06 Andrew Macleod <amacleod@redhat.com>
5036 Richard Henderson <rth@redhat.com>
5037 Aldy Hernandez <aldyh@redhat.com>
5038
5039 Merged from cxx-mem-model.
5040
5041 * cppbuiltin.c (define__GNUC__): Define __ATOMIC memory models
5042 * coretypes.h (enum memmodel): New. enumerated memory model type.
5043 * Makefile.in (cppbuiltin.o) Add missing dependency on $(TREE_H)
5044 * genopinit,c (optabs): Add atomic direct optab handlers.
5045 * sync-builtins.def (BUILT_IN_ATOMIC_*): New builtins.
5046 * builtin-types.def (BT_CONST_VOLATILE_PTR,
5047 BT_FN_I{1,2,4,8,16}_CONST_VPTR_INT, BT_FN_VOID_VPTR_INT,
5048 BT_FN_BOOL_VPTR_INT, BT_FN_BOOL_SIZE_CONST_VPTR,
5049 BT_FN_I{1,2,4,8,16}_VPTR_I{1,2,4,8,16}_INT,
5050 BT_FN_VOID_VPTR_I{1,2,4,8,16}_INT, BT_FN_VOID_SIZE_VPTR_PTR_INT,
5051 BT_FN_VOID_SIZE_CONST_VPTR_PTR_INT, BT_FN_VOID_SIZE_VPTR_PTR_PTR_INT,
5052 BT_FN_BOOL_VPTR_PTR_I{1,2,4,8,16}_BOOL_INT_INT): New builtin types.
5053 * expr.h (expand_atomic_*): Add prototypes.
5054 (expand_{bool,val}_compare_and_swap): Remove prototypes.
5055 * c-typeck.c (build_function_call_vec): Don't reprocess __atomic
5056 parameters.
5057 * common.opt (Winvalid-memory-model): New warning flag.
5058 (finline-atomics): New. Flag to disable atomic inlining.
5059 * params.h (ALLOW_LOAD_DATA_RACES): New.
5060 (ALLOW_PACKED_LOAD_DATA_RACES): New.
5061 (ALLOW_PACKED_STORE_DATA_RACES): New.
5062 * params.def (PARAM_ALLOW_LOAD_DATA_RACES): New.
5063 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES): New.
5064 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): New.
5065 * builtins.c (is_builtin_name): Handle __atomic.
5066 (get_memmodel): New. Extract memory model.
5067 (expand_expr_force_mode): New. Factor out common code for ensuring an
5068 integer argument is in the proper mode.
5069 (expand_builtin_sync_operation): Remove ignore param. Always call
5070 expand_atomic_fetch_op instead of the old expanders.
5071 (expand_builtin_compare_and_swap,
5072 expand_builtin_sync_lock_test_and_set): Use expand_expr_force_mode,
5073 call atomic expanders instead of sync expanders.
5074 (expand_builtin_sync_lock_release): Call atomic_store expander.
5075 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
5076 expand_builtin_atomic_store, expand_builtin_atomic_fetch_op): New.
5077 (expand_builtin_atomic_exchange): New.
5078 (fold_builtin_atomic_always_lock_free,
5079 expand_builtin_atomic_always_lock_free,
5080 fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
5081 New.
5082 (expand_builtin_mem_thread_fence, expand_builtin_atomic_thread_fence,
5083 expand_builtin_atomic_signal_fence): New.
5084 (expand_builtin_mem_signal_fence): New.
5085 (expand_builtin): Add cases for BUILT_IN_ATOMIC_*.
5086 (fold_builtin_2): Add cases for BUILT_IN_ATOMIC_{IS,ALWAYS}_LOCK_FREE.
5087 * optabs.h (DOI_atomic_*): Define new atomics.
5088 (atomic_*_optab): Define.
5089 (can_compare_and_swap_p, expand_atomic_compare_and_swap): New
5090 prototypes.
5091 * optabs.c (expand_sync_operation, expand_sync_fetch_operation): Remove.
5092 (expand_sync_lock_test_and_set): Remove.
5093 (expand_atomic_load, expand_atomic_store): New.
5094 (expand_atomic_exchange): New.
5095 (expand_atomic_compare_and_swap): New. Implements
5096 atomic_compare_exchange via compare and swap.
5097 (struct atomic_op_functions): Opcode table struct for fetch ops.
5098 (get_atomic_op_for_code): New. Return an opcode table entry.
5099 (maybe_emit_op): New. Try to emit a fetch op.
5100 (expand_atomic_fetch_op): New.
5101 (expand_val_compare_and_swap_1): Remove.
5102 (expand_val_compare_and_swap, expand_bool_compare_and_swap): Remove.
5103 (expand_atomic_compare_and_swap): Rename from
5104 expand_atomic_compare_exchange. Rewrite to return both success and
5105 oldval return values; expand via both atomic and sync optabs.
5106 (can_compare_and_swap_p): New.
5107 (expand_compare_and_swap_loop): Use expand_atomic_compare_and_swap.
5108 (maybe_gen_insn): Handle 7 and 8 operands.
5109 * omp-low.c (expand_omp_atomic_fetch_op): Don't test individual
5110 fetch_op optabs, only test can_compare_and_swap_p. Use __atomic
5111 builtins instead of __sync builtins.
5112 (expand_omp_atomic_pipeline): Use can_compare_and_swap_p.
5113 * doc/extend.texi: Document __atomic built-in functions.
5114 * doc/invoke.texi: Document data race parameters.
5115 * doc/md.texi: Document atomic patterns.
5116 * config/i386/i386.md (UNSPEC_MOVA): New.
5117 (UNSPECV_CMPXCHG): Split into ...
5118 (UNSPECV_CMPXCHG_1, UNSPECV_CMPXCHG_2,
5119 UNSPECV_CMPXCHG_3, UNSPECV_CMPXCHG_4): New.
5120 * config/i386/sync.md (ATOMIC): New mode iterator.
5121 (atomic_load<ATOMIC>, atomic_store<ATOMIC>): New.
5122 (atomic_loaddi_fpu, atomic_storedi_fpu, movdi_via_fpu): New.
5123 (mem_thread_fence): Rename from memory_barrier.
5124 Handle the added memory model parameter.
5125 (mfence_nosse): Rename from memory_barrier_nosse.
5126 (sync_compare_and_swap<CASMODE>): Split into ...
5127 (atomic_compare_and_swap<SWI124>): this and ...
5128 (atomic_compare_and_swap<CASMODE>): this. Handle the new parameters.
5129 (atomic_compare_and_swap_single<SWI>): Rename from
5130 sync_compare_and_swap<SWI>; rewrite to use split unspecs.
5131 (atomic_compare_and_swap_double<DCASMODE>): Rename from
5132 sync_double_compare_and_swap<DCASMODE>; rewrite to use split unspecs.
5133 (*atomic_compare_and_swap_doubledi_pic): Rename from
5134 sync_double_compare_and_swapdi_pic; rewrite to use split unspecs.
5135 (atomic_fetch_add<SWI>): Rename from sync_old_add<SWI>; add memory
5136 model parameter.
5137 (*atomic_fetch_add_cmp<SWI>): Similarly.
5138 (atomic_add<SWI>, atomic<any_logic><SWI>): Similarly.
5139 (atomic_sub<SWI>): Similarly. Use x86_maybe_negate_const_int.
5140 (sync_lock_test_and_set<SWI>): Merge with ...
5141 (atomic_exchange<SWI>): ... this.
5142
5143 2011-11-6 Richard Guenther <rguenther@suse.de>
5144
5145 * ipa-prop.c (ipa_modify_call_arguments): Re-compute inlinable flag.
5146
5147 2011-11-06 Ira Rosen <ira.rosen@linaro.org>
5148
5149 * tree-vectorizer.h (vectorizable_condition): Add argument.
5150 * tree-vect-loop.c (vectorizable_reduction): Fail for condition
5151 in SLP. Update calls to vectorizable_condition.
5152 * tree-vect-stmts.c (vect_is_simple_cond): Add basic block info to
5153 the arguments. Pass it to vect_is_simple_use_1.
5154 (vectorizable_condition): Add slp_node to the arguments. Support
5155 vectorization of basic blocks. Fail for reduction in SLP. Update
5156 calls to vect_is_simple_cond and vect_is_simple_use. Support SLP:
5157 call vect_get_slp_defs to get vector operands.
5158 (vect_analyze_stmt): Update calls to vectorizable_condition.
5159 (vect_transform_stmt): Likewise.
5160 * tree-vect-slp.c (vect_create_new_slp_node): Handle COND_EXPR.
5161 (vect_get_and_check_slp_defs): Handle COND_EXPR. Allow pattern
5162 def stmts.
5163 (vect_build_slp_tree): Handle COND_EXPR.
5164 (vect_analyze_slp_instance): Push pattern statements to root node.
5165 (vect_get_constant_vectors): Fix comments. Handle COND_EXPR.
5166
5167 2011-11-05 David S. Miller <davem@davemloft.net>
5168
5169 * config/sparc/sparc.md (UNSPEC_SHORT_LOAD): New unspec.
5170 (zero-extend_v8qi_vis, zero_extend_v4hi_vis): New expanders.
5171 (*zero_extend_v8qi_<P:mode>_insn,
5172 *zero_extend_v4hi_<P:mode>_insn): New insns.
5173 * config/sparc/sparc.c (vector_init_move_words,
5174 vector_init_prepare_elts, sparc_expand_vector_init_vis2,
5175 sparc_expand_vector_init_vis1): New functions.
5176 (vector_init_bshuffle): Rewrite to handle more cases and make use
5177 of locs[] array prepared by vector_init_prepare_elts.
5178 (vector_init_fpmerge, vector_init_faligndata): Delete.
5179 (sparc_expand_vector_init): Rewrite using new infrastructure.
5180
5181 2011-11-05 Joern Rennecke <joern.rennecke@embecosm.com>
5182
5183 * config.gcc (epiphany-*-*): New architecture.
5184 (epiphany-*-elf): New configuration.
5185 * config/epiphany, common/config/epiphany : New directories.
5186 * doc/extend.texi (disinterrupt attribute): Add Epiphany.
5187 (interrupt attribute): Add Epiphany.
5188 (long_call, short_call attribute): Add Epiphany.
5189 * doc/invoke.texi (Options): Add Epiphany options.
5190 * doc/md.texi (Machine Constraints): Add Epiphany constraints.
5191 * doc/install.texi (Options specification):
5192 Add --with-stack-offset=@var{num} description.
5193 (host/target specific issues): Add epiphany-*-elf.
5194 * doc/contrib.texi (Contributors): Mention Epiphany port.
5195
5196 2011-11-05 Jakub Jelinek <jakub@redhat.com>
5197
5198 PR tree-optimization/50693
5199 * tree-cfg.c (gimple_can_merge_blocks_p): Allow merging with
5200 non-forced user labels.
5201 (gimple_merge_blocks): Turn non-forced user labels into
5202 debug bind stmt with the label as first operand and reset value.
5203 (gimple_duplicate_bb): Don't duplicate label debug stmts.
5204 * dwarf2out.c (gen_label_die): Handle NOTE_INSN_DELETED_DEBUG_LABEL.
5205 * final.c (final_scan_insn): Likewise.
5206 (rest_of_clean_state): Don't dump NOTE_INSN_DELETED_DEBUG_LABEL.
5207 * var-tracking.c (debug_label_num): New variable.
5208 (delete_debug_insns): Don't delete DEBUG_INSNs for LABEL_DECLs,
5209 instead turn them into NOTE_INSN_DELETED_DEBUG_LABEL notes.
5210 * cfglayout.c (skip_insns_after_block, duplicate_insn_chain): Handle
5211 NOTE_INSN_DELETED_DEBUG_LABEL.
5212 (duplicate_insn_chain): Don't duplicate LABEL_DECL DEBUG_INSNs.
5213 * insn-notes.def (DELETED_DEBUG_LABEL): New note kind.
5214 * print-rtl.c (print_rtx): Handle NOTE_INSN_DELETED_DEBUG_LABEL.
5215 * gengtype.c (adjust_field_rtx_def): Likewise.
5216 * config/i386/i386.c (ix86_output_function_epilogue): For MachO
5217 clear CODE_LABEL_NUMBER of NOTE_INSN_DELETED_DEBUG_LABEL
5218 if their are at the end of function and nop hasn't been emitted.
5219 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Likewise.
5220
5221 2011-11-05 Georg-Johann Lay <avr@gjlay.de>
5222
5223 PR rtl-optimization/50448
5224 * cprop.c (try_replace_reg): Also try to replace uses of FROM that
5225 appear in SET_DEST.
5226
5227 2011-11-05 Peter Dufault <dufault@hda.com>,
5228 Sebastian Huber <sebastian.huber@embedded-brains.de>
5229
5230 * config/rs6000/rtems.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
5231 Extend rs6000_spe handling.
5232
5233 2011-11-05 Ralf Corsépius <ralf.corsepius@rtems.org>
5234
5235 * config/rs6000/t-rtems: Add -mcpu=8540/-mfloat-gprs=double multilib.
5236 Remove -mcpu=601 multilib.
5237 Remove -Dmpc8260 multilib.
5238 * config/rs6000/rtems.h: Allow --float-gprs=... to override grps
5239 on E500 targets.
5240
5241 2011-11-05 Quentin Neill <quentin.neill@amd.com>
5242
5243 Piledriver f16cintrin.h fix.
5244 * config/i386/f16cintrin.h: Contents moved from immintrin.h.
5245 * config/i386/immintrin.h: Include f16cintrin.h.
5246 * config.gcc (i[34567]86-*-*, x86_64-*-*): Add f16cintrin.h.
5247
5248
5249 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
5250
5251 PR c++/50608
5252 * c-parser.c (c_parser_postfix_expression) <RID_OFFSETOF>: Adjust call
5253 to fold_offsetof.
5254 * c-typeck.c (build_unary_op) <ADDR_EXPR>: Call fold_offsetof_1.
5255
5256 2011-11-04 Alan Modra <amodra@gmail.com>
5257
5258 * reload1.c (gen_reload): Don't use REGNO on SUBREGs.
5259 * print-rtl.c (print_rtx): Don't segfault on negative regno.
5260
5261 2011-11-04 David S. Miller <davem@davemloft.net>
5262
5263 PR target/49965
5264 * config/sparc/sparc.c (sparc_expand_conditional_move): Handle the
5265 fact that sparc_emit_float_lib_cmp modifies the comparison in
5266 operands[1].
5267
5268 2011-11-04 Ralf Corsépius <ralf.corsepius@rtems.org>
5269
5270 * config/lm32/t-rtems: New.
5271 * config.gcc (lm32-*-rtems*): Add t-rtems.
5272
5273 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
5274
5275 PR target/50979
5276 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=v8.
5277
5278 2011-11-04 Jiangning Liu <jiangning.liu@arm.com>
5279
5280 PR rtl-optimization/38644
5281 * config/arm/arm.c (thumb1_expand_epilogue): Add memory barrier
5282 for epilogue having stack adjustment.
5283
5284 2011-11-04 Georg-Johann Lay <avr@gjlay.de>
5285
5286 PR target/50931
5287 * config/avr/avr-modes.def: New file defining PSImode.
5288 * config/avr/avr-c.c (__INT24_MAX__, __INT24_MIN__,
5289 __UINT24_MAX__): New built-in defines.
5290 * config/avr/avr.md (adjust_len): Add tstpsi, mov24, reload_in24,
5291 ashlpsi, ashrpsi, lshrpsi.
5292 (QISI, QIDI, HISI, HIDI, MPUSH, rotx, rotsmode): Add PSI.
5293 (MOVMODE): New mode iterator.
5294 (movpsi): New expander.
5295 (movqi, movhi, movsi, movsf, movpsi): Write as one using MOVMODE.
5296 (*reload_inpsi, *movpsi): New insns.
5297 (*reload_inpsi): New RTL peephole.
5298 (addpsi3, *addpsi3_zero_extend.qi, *addpsi3_zero_extend.hi,
5299 *addpsi3_sign_extend.hi): New insns.
5300 (subpsi3, *subpsi3_zero_extend.qi, *subpsi3_zero_extend.hi,
5301 *subpsi3_sign_extend.hi): New insns.
5302 (divmodpsi4, udivmodpsi4): New define insn-and-split.
5303 (*divmodpsi4_call, *udivmodpsi4_call): New insns.
5304 (andpsi3, iorpsi3, xorpsi3): New insns.
5305 (*rotlpsi2.1, *rotlpsi2.23): New insns.
5306 (*rotw<mode>): Insn condition only allow even-sized modes.
5307 (*rotb<mode>): Insn condition allows odd-sized modes.
5308 (ashlpsi3, ashrpsi3, lshrpsi3, *addpsi3.lt0): New insns.
5309 (negpsi2, one_cmplpsi2): New insns.
5310 (extendqipsi2, extendhipsi2, extendpsisi2): New insns.
5311 (zero_extendqipsi2, zero_extendhipsi2, zero_extendpsisi2): New
5312 insn-and-splits.
5313 (*cmppsi, *negated_tstpsi, *reversed_tstpsi): New insns.
5314 (cbranchpsi4): New expander.
5315 * config/avr/constraints.md (Ca3, Co3, Cx3): New constraints.
5316 * config/avr/avr-protos.h (avr_out_tstpsi, avr_out_movpsi,
5317 avr_out_ashlpsi3, avr_out_ashrpsi3, avr_out_lshrpsi3,
5318 avr_out_reload_inpsi): New prototypes.
5319
5320 * config/avr/avr.c (TARGET_SCALAR_MODE_SUPPORTED_P): Define to...
5321 (avr_scalar_mode_supported_p): ...this new static function.
5322 (avr_asm_len): Always return "".
5323 (avr_out_load_psi, avr_out_store_psi): New static functions.
5324 (avr_out_movpsi, avr_out_reload_inpsi): New functions.
5325 (avr_out_tstpsi): New function.
5326 (avr_out_ashlpsi3, avr_out_ashrpsi3, avr_out_lshrpsi3): New functions.
5327 (avr_out_plus_1, output_reload_in_const): Handle 3-byte types.
5328 (avr_simplify_comparison_p): Ditto.
5329 (adjust_insn_length): Handle ADJUST_LEN_RELOAD_IN24,
5330 ADJUST_LEN_MOV24, ADJUST_LEN_TSTPSI, ADJUST_LEN_ASHLPSI,
5331 ADJUST_LEN_ASHRPSI, ADJUST_LEN_LSHRPSI.
5332 (avr_rtx_costs_1): Report PSI costs.
5333 (avr_libcall_value): Handle odd-sized parameters.
5334 (avr_init_builtin_int24): New static function to define built-in
5335 24-bit types __int24 and __uint24.
5336 (avr_init_builtins): Use it.
5337
5338 2011-11-04 Thomas Doerfler <thomas.doerfler@embedded-brains.de>
5339
5340 PR target/50989
5341 * config/arm/rtems-elf.h, config/arm/t-rtems: Add optional
5342 support for VFP floating point model.
5343
5344 2011-11-04 Tristan Gingold <gingold@adacore.com>
5345
5346 * config/alpha/vms.h (ASM_OUTPUT_DEF): Do not switch section.
5347
5348 2011-11-04 Ira Rosen <ira.rosen@linaro.org>
5349
5350 Unrevert:
5351 2011-10-24 Ira Rosen <ira.rosen@linaro.org>
5352
5353 PR tree-optimization/50730
5354 * tree-vect-data-refs.c (vect_analyze_data_refs): Stop basic block
5355 analysis if encountered unsupported data-ref.
5356
5357 2011-11-04 Jakub Jelinek <jakub@redhat.com>
5358
5359 * config/i386/i386.c (ix86_expand_vector_convert_uns_vsivsf): New
5360 function.
5361 * config/i386/i386-protos.h (ix86_expand_vector_convert_uns_vsivsf):
5362 New prototype.
5363 * config/i386/sse.md (floatuns<sseintvecmodelower><mode>2): Use it.
5364 For floatunsv8siv8sf2 require TARGET_AVX2.
5365
5366 * config/i386/i386.c (ix86_expand_adjust_ufix_to_sfix_si): Add
5367 XORP argument. Subtract 0x1p31 instead of 0x1p32. Use normal
5368 signalling comparison instead of non-signalling. Store into
5369 *XORP pseudo holding 0x80000000 integers if 0x1p31 has been
5370 subtracted and 0 otherwise.
5371 * config/i386/i386-protos.h (ix86_expand_adjust_ufix_to_sfix_si):
5372 Adjust prototype.
5373 * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): Enable
5374 already for TARGET_SSE2. Xor in vector initialized by
5375 ix86_expand_adjust_ufix_to_sfix_si at the end.
5376 (vec_pack_ufix_trunc_<mode>): Likewise.
5377
5378 * tree-vect-stmts.c (vectorizable_conversion): Rewritten to handle
5379 not just FLOAT_EXPR and FIX_TRUNC_EXPR, but also CONVERT_EXPR_CODE_P,
5380 WIDEN_MULT_EXPR and WIDEN_LSHIFT_EXPR to handle what
5381 vectorizable_type_demotion and vectorizable_type_promotion did.
5382 Additionally handle FLOAT_EXPR and FIX_TRUNC_EXPR where the integer
5383 is {,un}signed {char,short}.
5384 (vect_create_vectorized_demotion_stmts): Fix comment typo. For
5385 recursive calls unconditionally use VEC_PACK_TRUNC_EXPR.
5386 Push vec_dest back to the vec_dsts vector at the end.
5387 (vect_create_vectorized_promotion_stmts): Don't recurse, do just
5388 one step. Removed multi_step_cvt, vec_dsts, slp_node and
5389 prev_stmt_info arguments, add vec_dest argument. Push always
5390 into vec_tmp, not just when multi_step_cvt != 0, replace *vec_oprdn0
5391 with vec_tmp at the end after freeing old *vec_oprnd0 vector.
5392 (vectorizable_type_demotion, vectorizable_type_promotion): Removed.
5393 (vect_analyze_stmt): Don't call vectorizable_type_demotion and
5394 vectorizable_type_promotion. Call vectorizable_conversion even
5395 for SLP bb vectorization.
5396 (vect_transform_stmt): Call vectorizable_conversion instead of
5397 vectorizable_type_demotion and vectorizable_type_promotion.
5398 (supportable_widening_operation): Clear *multi_step_cvt first,
5399 simplify c1/c2 computation, free *interm_types vector on failure.
5400 (supportable_narrowing_operation): Clear *multi_step_cvt first,
5401 free *interm_types vector on failure, handle multi-step
5402 FIX_TRUNC_EXPR.
5403
5404 2011-11-04 Tristan Gingold <gingold@adacore.com>
5405
5406 * config/alpha/alpha.c (alpha_write_linkage): Remove fundecl
5407 argument. Conditionally generate crash debug info. Adjust
5408 for alpha_funcs_tree removal.
5409 (machine_function): Add links field.
5410 (alpha_start_function): Conditionally generate crash debug info.
5411 (alpha_end_function): Adjust call to alpha_write_linkage.
5412 (alpha_funcs): Remove.
5413 (links_kind): Remove.
5414 (alpha_links): Remove num, target and lkind field. Add func field.
5415 (alpha_links_tree): Remove.
5416 (alpha_funcs_tree): Remove.
5417 (alpha_need_linkage): Remove.
5418 (alpha_use_linkage): Change prototype. Adjust.
5419 (alpha_write_one_linkage): Use ASM_OUTPUT_INTERNAL_LABEL.
5420 Use SYMBOL_REF_EXTERNAL_P and SYMBOL_REF_LOCAL_P macro.
5421 * config/alpha/alpha-protos.h (alpha_use_linkage): Update.
5422 (alpha_need_linkage): Remove.
5423 * config/alpha/alpha.md: Update calls to alpha_use_linkage.
5424 Adjust calls to alpha_need_linkage.
5425
5426 2011-11-03 Uros Bizjak <ubizjak@gmail.com>
5427
5428 * sched-vis.c (print_value): Handle STRICT_LOW_PART.
5429
5430 2011-11-03 Uros Bizjak <ubizjak@gmail.com>
5431
5432 * config/i386/i386.md (lround<X87MODEF:mode><SWI248x:mode>2,
5433 rint<mode>2, floor<mode>2, lfloor<MODEF:mode><SWI48:mode>2,
5434 btrunc<mode>2, lwp_lwpval<mode>3): Use operands[N] instead of operandN.
5435
5436 2011-11-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5437
5438 PR target/50978
5439 * config/arm/t-bpabi: New file.
5440 * config.gcc (arm*-*-linux*): Add arm/t-bpabi to tmake_file for
5441 arm*-*-linux-*eabi.
5442 (arm*-*-uclinux*): Add arm/t-bpabi to tmake_file for
5443 arm*-*-uclinux*eabi.
5444 (arm*-*-eabi*, arm*-*-symbianelf*): Add arm/t-bpabi to tmake_file
5445 for arm*-*-eabi*.
5446
5447 2011-11-03 Michael Matz <matz@suse.de>
5448
5449 PR bootstrap/50857
5450 * configure.ac: Check for -fno-exceptions -fno-rtti.
5451 * configure: Regenerate.
5452 * Makefile.in (NOEXCEPTION_FLAGS): New flag.
5453 (ALL_CXXFLAGS): Use it.
5454
5455 2011-11-03 Uros Bizjak <ubizjak@gmail.com>
5456
5457 * config/i386/i386.md: Use {} for multi-line preparation statements.
5458
5459 2011-11-03 Eric Botcazou <ebotcazou@adacore.com>
5460
5461 * config/sparc/sparc.md (movtf_insn_sp32_no_fpu): Consolidate into...
5462 (movtf_insn_sp32): ...this.
5463 (movtf_insn_sp64_no_fpu): Consolidate into...
5464 (movtf_insn_sp64): ...this.
5465 (movtf_insn_sp64_hq): Do not test TARGET_FPU.
5466 * config/sparc/sparc.c (sparc_legitimate_address_p): Likewise.
5467
5468 2011-11-03 Tristan Gingold <gingold@adacore.com>
5469
5470 * config/vms/vms.c (vms_patch_builtins): Fix typo.
5471
5472 2011-11-03 Richard Guenther <rguenther@suse.de>
5473
5474 PR lto/44965
5475 * lto-opts.c: Re-implement.
5476 * lto-streamer.h (lto_register_user_option): Remove.
5477 (lto_read_file_options): Likewise.
5478 (lto_reissue_options): Likewise.
5479 (lto_clear_user_options): Likewise.
5480 (lto_clear_file_options): Likewise.
5481 * opts-global.c (post_handling_callback): Remove.
5482 (set_default_handlers): Do not set post_handling_callback.
5483 (decode_options): Remove LTO specific code.
5484 * lto-wrapper.c (merge_and_complain): New function.
5485 (run_gcc): Read all input file options and
5486 prepend a merged set before the linker driver options.
5487 * gcc.c (driver_post_handling_callback): Remove.
5488 (set_option_handlers): Do not set post_handling_callback.
5489 * opts-common.c (handle_option): Do not call post_handling_callback.
5490 * opts.h (struct cl_option_handlers): Remove post_handling_callback.
5491
5492 2011-11-03 Richard Guenther <rguenther@suse.de>
5493
5494 * collect2.c (main): Guard object_nbr variable with TARGET_AIX_VERSION.
5495
5496 2011-11-03 Martin Jambor <mjambor@suse.cz>
5497
5498 * ipa-prop.c (type_change_info): New fields offset, object,
5499 known_current_type and multiple_types_encountered.
5500 (extr_type_from_vtbl_ptr_store): New function.
5501 (check_stmt_for_type_change): Use it, set multiple_types_encountered if
5502 the result is different from the previous one.
5503 (detect_type_change): Renamed to detect_type_change_1. New parameter
5504 comp_type. Set up new fields in tci, build known type jump
5505 functions if the new type can be identified.
5506 (detect_type_change): New function.
5507 * tree.h (DECL_CONTEXT): Comment new use.
5508
5509 2011-11-03 Richard Guenther <rguenther@suse.de>
5510
5511 PR lto/48217
5512 * lto-wrapper.c (get_options_from_collect_gcc_options): Properly
5513 decode an encoded literal '.
5514
5515 2011-11-03 Tristan Gingold <gingold@adacore.com>
5516
5517 * collect2.c (main): Add support of -f (response file) on AIX.
5518
5519 2011-11-03 Ira Rosen <ira.rosen@linaro.org>
5520
5521 PR tree-optimization/50912
5522 * tree-vectorizer.h (slp_void_p): New.
5523 (struct _slp_tree): Replace left and right with children. Update
5524 documentation.
5525 (struct _slp_oprnd_info): New.
5526 (vect_get_vec_defs): Declare.
5527 (vect_get_slp_defs): Update arguments.
5528 * tree-vect-loop.c (vect_create_epilog_for_reduction): Call
5529 vect_get_vec_defs instead of vect_get_slp_defs.
5530 (vectorizable_reduction): Likewise.
5531 * tree-vect-stmts.c (vect_get_vec_defs): Remove static, add argument.
5532 Update call to vect_get_slp_defs.
5533 (vectorizable_conversion): Update call to vect_get_vec_defs.
5534 (vectorizable_assignment, vectorizable_shift,
5535 vectorizable_operation): Likewise.
5536 (vectorizable_type_demotion): Call vect_get_vec_defs instead of
5537 vect_get_slp_defs.
5538 (vectorizable_type_promotion, vectorizable_store): Likewise.
5539 (vect_analyze_stmt): Fix typo.
5540 * tree-vect-slp.c (vect_free_slp_tree): Update SLP tree traversal.
5541 (vect_print_slp_tree, vect_mark_slp_stmts,
5542 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
5543 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
5544 vect_schedule_slp_instance): Likewise.
5545 (vect_create_new_slp_node): New.
5546 (vect_create_oprnd_info, vect_free_oprnd_info): Likewise.
5547 (vect_get_and_check_slp_defs): Pass information about defs using
5548 oprnds_info, allow any number of operands.
5549 (vect_build_slp_tree): Likewise. Update calls to
5550 vect_get_and_check_slp_defs. Fix comments.
5551 (vect_analyze_slp_instance): Move node creation to
5552 vect_create_new_slp_node.
5553 (vect_get_slp_defs): Allow any number of operands.
5554
5555 2011-11-02 Peter Bergner <bergner@vnet.ibm.com>
5556 Iain Sandoe <iains@gcc.gnu.org>
5557
5558 * config/rs6000/rs6000.c (USE_HIDDEN_LINKONCE): New define.
5559 (get_ppc476_thunk_name): Use it.
5560 (rs6000_code_end): Likewise.
5561 (macho_branch_islands): Fix typo.
5562
5563 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
5564 Jason Merrill <jason@redhat.com>
5565
5566 PR c++/50810
5567 * configure.ac: Add -Wno-narrowing to warning options.
5568 * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
5569
5570 2011-11-02 Eric Botcazou <ebotcazou@adacore.com>
5571
5572 PR target/50945
5573 * config/sparc/sparc.md (movsf_insn): Reindent constraints.
5574 (movdf_insn_sp32): Likewise. Remove redundant G constraint.
5575 (movdf_insn_sp64): Likewise.
5576 (DFmode splitter): Do not test TARGET_FPU.
5577 (movtf_insn_sp32): Reindent constraints.
5578 (movtf_insn_sp32_no_fpu): Likewise.
5579 (movtf_insn_sp64): Likewise.
5580 (movtf_insn_sp64_hq): Likewise.
5581 (movtf_insn_sp64_no_fpu): Likewise.
5582
5583 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
5584
5585 PR c++/50956
5586 * builtins.c (fold_builtin_memchr): Fix cast.
5587
5588 2011-11-02 Teresa Johnson <tejohnson@google.com>
5589
5590 * config/i386/predicates.md (promotable_binary_operator): Add minus
5591 to the list of promotable operators.
5592
5593 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5594
5595 * gthr-single.h, gthr.h: Move to ../libgcc.
5596 * gthr-aix.h: Move to ../libgcc/config/rs6000.
5597 * gthr-dce.h: Move to ../libgcc/config/pa.
5598 * gthr-lynx.h: Move to ../libgcc/config.
5599 * gthr-mipssde.h: Move to ../libgcc/config/mips.
5600 * gthr-posix.h: Move to ../libgcc/config.
5601 * gthr-rtems.h: Likewise.
5602 * gthr-tpf.h: Move to ../libgcc/config/s390.
5603 * gthr-vxworks.h: Move to ../libgcc/config.
5604 * gthr-win32.h: Move to ../libgcc/config/i386.
5605 * configure.ac (gthread_flags): Remove
5606 (gthr-default.h): Don't create.
5607 (thread_file): Don't substitute.
5608 * configure: Regenerate.
5609 * Makefile.in (GCC_THREAD_FILE): Remove.
5610 (GTHREAD_FLAGS): Remove.
5611 (libgcc.mvars): Remove GTHREAD_FLAGS.
5612 * config/t-vxworks (EXTRA_HEADERS): Remove.
5613
5614 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5615 Paolo Bonzini <bonzini@gnu.org>
5616
5617 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Remove.
5618 * configure: Regenerate.
5619 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list): Remove.
5620 (TM_H): Remove libgcc_tm.h, $(libgcc_tm_file_list).
5621 (libgcc_tm.h, cs-libgcc_tm.h): Remove.
5622 (clean): Remove libgcc_tm.h
5623 * mkconfig.sh: Don't include libgcc_tm.h in tm.h.
5624 * config.gcc (libgcc_tm_file): Remove.
5625 (arm*-*-linux*): Remove libgcc_tm_file for arm*-*-linux-*eabi.
5626 (arm*-*-uclinux*): Remove libgcc_tm_file for arm*-*-uclinux*eabi.
5627 (arm*-*-eabi*, arm*-*-symbianelf*): Remove libgcc_tm_file.
5628 (avr-*-rtems*): Likewise.
5629 (avr-*-*): Likewise.
5630 (frv-*-elf): Likewise.
5631 (frv-*-*linux*): Likewise.
5632 (h8300-*-rtems*): Likewise.
5633 (h8300-*-elf*): Likewise.
5634 (i[34567]86-*-darwin*): Likewise.
5635 (x86_64-*-darwin*): Likewise.
5636 (rx-*-elf*): Likewise.
5637 (tic6x-*-elf): Likewise.
5638 (tic6x-*-uclinux): Likewise.
5639 (i[34567]86-*-linux*, x86_64-*-linux*): Likewise.
5640
5641 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5642
5643 * Makefile.in (LIBGCC2_DEBUG_CFLAGS LIBGCC2_CFLAGS)
5644 (LIBGCC2_INCLUDES, TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXTRA)
5645 (LIB2FUNCS_STATIC_EXTRA, LIB2FUNCS_EXCLUDE, T, T_TARGET)
5646 (INCLUDES_FOR_TARGET): Remove.
5647 (LIBGCC2_CFLAGS): Don't export.
5648 (LIB2FUNCS_ST, LIB2_DIVMOD_FUNCS, LIB2ADD, LIB2ADD_ST, srcdirify):
5649 Remove.
5650 (libgcc-support): Remove $(LIB2ADD), $(LIB2ADD_ST) dependencies.
5651 (libgcc.mvars): Likewise.
5652 Don't emit LIB2FUNCS_ST, LIB2FUNCS_EXCLUDE, LIB2ADD, LIB2ADD_ST,
5653 LIB2_SIDITI_CONV_FUNCS, LIB2_DIVMOD_FUNCS, LIBGCC2_CFLAGS,
5654 TARGET_LIBGCC2_CFLAGS.
5655 Emit GTHREAD_FLAGS.
5656 * libgcc2.c, libgcc2.h, gbl-ctors.h, longlong.h: Move to ../libgcc.
5657 * config/darwin-64.c: Move to ../libgcc/config.
5658 * config/divmod.c, config/floatunsidf.c, config/floatunsisf.c,
5659 config/floatunsitf.c, config/floatunsixf.c, config/udivmod.c,
5660 config/udivmodsi4.c: Move to ../libgcc/config.
5661 * config/gthr-posix.c: Move to ../libgcc/config/alpha.
5662 * config/memcmp.c, config/memcpy.c, config/memmove.c,
5663 config/memset.c: Move to ../libgcc/config.
5664 * config/t-darwin (TARGET_LIBGCC2_CFLAGS): Remove.
5665 * config/t-freebsd: Remove.
5666 * config/t-freebsd-thread: Move to ../libgcc/config.
5667 * config/t-libgcc-pic: Move to ../libgcc/config.
5668 * config/t-libunwind (TARGET_LIBGCC2_CFLAGS): Remove.
5669 * config/t-linux: Remove.
5670 * config/t-lynx (TARGET_LIBGCC2_CFLAGS, LIBGCC, INSTALL_LIBGCC):
5671 Remove.
5672 * config/t-openbsd-thread: Move to ../libgcc/config.
5673 * config/t-rtems (LIBGCC2_INCLUDES): Remove.
5674 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Remove.
5675 * config/t-svr4: Remove.
5676 * config/t-vxworks (LIBGCC, INSTALL_LIBGCC, TARGET_LIBGCC2_CFLAGS)
5677 (LIBGCC2_DEBUG_CFLAGS, LIB2FUNCS_EXTRA, LIBGCC2_INCLUDES): Remove.
5678 * config/vxlib.c, config/vxlib-tls.c: Move to ../libgcc/config.
5679 * config/alpha/qrnnd.asm: Move to ../libgcc/config/alpha/qrnnd.S.
5680 * config/alpha/t-alpha, config/alpha/t-ieee: Remove.
5681 * config/alpha/t-vms (LIB2FUNCS_EXTRA, LIBGCC, INSTALL_LIBGCC): Remove.
5682 * config/alpha/vms-gcc_shell_handler.c: Move to ../libgcc/config/alpha.
5683 * config/arm/bpabi.c, config/arm/unaligned-funcs.c,
5684 config/arm/fp16.c, config/arm/linux-atomic.c,
5685 config/arm/linux-atomic-64bit.c: Move to ../libgcc/config/arm.
5686 * config/arm/t-arm-elf (LIBGCC, INSTALL_LIBGCC)
5687 (TARGET_LIBGCC2_CFLAGS): Remove.
5688 * config/arm/t-bpabi, config/arm/t-linux: Remove.
5689 * config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS)
5690 (LIB2FUNCS_STATIC_EXTRA): Remove.
5691 * config/arm/t-netbsd: Remove.
5692 * config/arm/t-strongarm-elf (LIBGCC, INSTALL_LIBGCC)
5693 (TARGET_LIBGCC2_CFLAGS): Remove.
5694 * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Remove.
5695 * config/arm/t-wince-pe (LIBGCC, INSTALL_LIBGCC)
5696 (TARGET_LIBGCC2_CFLAGS): Remove.
5697 * config/avr/t-avr (LIB2FUNCS_EXCLUDE, TARGET_LIBGCC2_CFLAGS)
5698 (LIBGCC, INSTALL_LIBGCC): Remove.
5699 * config/bfin/t-bfin-elf (TARGET_LIBGCC2_CFLAGS): Remove.
5700 * config/bfin/t-bfin-linux: Likewise.
5701 * config/bfin/t-bfin-uclinux: Likewise.
5702 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
5703 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
5704 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
5705 config/c6x/ltf.c: Move to ../libgcc/config/c6x.
5706 * config/c6x/t-c6x-elf (LIB2FUNCS_EXCLUDE, LIB2FUNCS_EXTRA): Remove.
5707 * config/c6x/t-c6x-uclinux (TARGET_LIBGCC2_CFLAGS): Remove.
5708 * config/cris/arit.c: Move to ../libgcc/config/cris.
5709 * config/cris/cris_abi_symbol.c: Remove.
5710 * config/cris/cris.h: Remove obsolete comment.
5711 * config/cris/mulsi3.asm: Move to ../libgcc/config/cris/mulsi3.S.
5712 * config/cris/t-cris (LIB2FUNCS_EXTRA, CRIS_LIB1CSRC)
5713 ($(LIB2FUNCS_EXTRA)): Remove.
5714 * config/cris/t-elfmulti (LIB2FUNCS_STATIC_EXTRA, INSTALL_LIBGCC)
5715 (LIBGCC): Remove.
5716 * config/cris/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
5717 * config/fr30/t-fr30: Remove.
5718 * config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
5719 config/frv/modi.c, config/frv/uitod.c, config/frv/uitof.c,
5720 config/frv/ulltod.c, config/frv/ulltof.c, config/frv/umodi.c: Move
5721 to ../libgcc/config/frv.
5722 * config/frv/t-frv (LIB2FUNCS_EXTRA, TARGET_LIBGCC2_CFLAGS)
5723 (cmovh.c, cmovw.c, cmovd.c, modi.c, umodi.c, uitof.c, uitod.c)
5724 (ulltof.c, LIBGCC, INSTALL_LIBGCC): Remove.
5725 * config/frv/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
5726 * config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
5727 config/h8300/fixunssfsi.c, config/h8300/parityhi2.c,
5728 config/h8300/popcounthi2.c: Move to ../libgcc/config/h8300.
5729 * config/h8300/t-h8300 (LIB2FUNCS_EXTRA, TARGET_LIBGCC2_CFLAGS)
5730 (LIBGCC, INSTALL_LIBGCC): Remove.
5731 * config/i386/gthr-win32.c: Move to ../libgcc/config/i386.
5732 * config/i386/t-cygming (LIBGCC2_INCLUDES): Remove.
5733 * config/i386/t-cygwin: Remove.
5734 * config/i386/t-darwin (LIB2_SIDITI_CONV_FUNCS, LIB2FUNCS_EXTRA)
5735 (LIB2FUNCS_EXCLUDE): Remove.
5736 * config/i386/t-darwin64 (LIB2_SIDITI_CONV_FUNCS, LIB2FUNCS_EXTRA)
5737 (LIBGCC, INSTALL_LIBGCC): Remove.
5738 * config/i386/t-gthr-win32: Move to ../libgcc/config/i386.
5739 * config/i386/t-linux64 (LIBGCC, INSTALL_LIBGCC): Remove.
5740 * config/i386/t-mingw-w32: Likewise.
5741 * config/i386/t-mingw-w64: Likewise.
5742 * config/i386/t-openbsd: Likewise.
5743 * config/i386/t-nto: Remove.
5744 * config/ia64/quadlib.c: Move to ../libgcc/config/ia64.
5745 * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, LIB2FUNCS_EXTRA)
5746 (quadlib.c): Remove.
5747 * config/ia64/t-ia64: Remove comment.
5748 * config/iq2000/lib2extra-funcs.c: Move to
5749 ../libgcc/config/iq2000/lib2funcs.c.
5750 * config/iq2000/t-iq2000: Remove.
5751 * config/m32c/m32c-lib2.c: Move to ../libgcc/config/m32c/lib2funcs.c.
5752 * config/m32c/m32c-lib2-trapv.c: Move to ../libgcc/config/m32c/trapv.c.
5753 * config/m32r/t-linux (TARGET_LIBGCC2_CFLAGS): Remove.
5754 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Remove.
5755 * config/m32r/t-m32r (TARGET_LIBGCC2_CFLAGS, LIBGCC)
5756 (INSTALL_LIBGCC): Remove.
5757 * config/m68k/fpgnulib.c: Move to ../libgcc/config/m68k.
5758 * config/m68k/t-floatlib: Remove.
5759 * config/m68k/t-mlibs (LIBGCC, INSTALL_LIBGCC): Remove.
5760 * config/mcore/t-mcore (TARGET_LIBGCC2_CFLAGS): Remove.
5761 Fix typo.
5762 (LIBGCC, INSTALL_LIBGCC): Remove.
5763 * config/mep/mep-lib2.c: Move to ../libgcc/config/mep/lib2funcs.c.
5764 * config/mep/mep-tramp.c: Move to ../libgcc/config/mep/tramp.c.
5765 * config/mep/t-mep (LIB2FUNCS_EXTRA): Remove.
5766 * config/mips/t-elf (TARGET_LIBGCC2_CFLAGS, LIBGCC)
5767 (INSTALL_LIBGCC): Remove.
5768 * config/mips/t-isa3264: Likewise.
5769 * config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS): Remove.
5770 * config/mips/t-r3900 (TARGET_LIBGCC2_CFLAGS, LIBGCC)
5771 (INSTALL_LIBGCC): Remove.
5772 * config/mips/t-sde (LIBGCC, INSTALL_LIBGCC): Remove.
5773 * config/mips/t-sr71k (TARGET_LIBGCC2_CFLAGS, LIBGCC)
5774 (INSTALL_LIBGCC): Remove.
5775 * config/mips/t-vr (TARGET_LIBGCC2_CFLAGS)
5776 (LIB2FUNCS_STATIC_EXTRA): Remove.
5777 * config/mips/vr4120-div.S: Move to ../libgcc/config/mips.
5778 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Remove.
5779 * config/mn10300/t-mn10300 (LIBGCC, INSTALL_LIBGCC): Remove.
5780 * config/pa/fptr.c, config/pa/linux-atomic.c: Move to
5781 ../libgcc/config/pa.
5782 * config/pa/lib2funcs.asm: Move to ../libgcc/config/pa/lib2funcs.S.
5783 * config/pa/quadlib.c: Move to ../libgcc/config/pa.
5784 * config/pa/t-dce-thr (LIBGCC, INSTALL_LIBGCC): Remove.
5785 * config/pa/t-linux, config/pa/t-linux64: Remove.
5786 * config/pa/t-pa-hpux, config/pa/t-pa-hpux10,
5787 config/pa/t-pa-hpux11, config/pa/t-pa64: Remove.
5788 * config/pdp11/t-pdp11 (TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXTRA):
5789 Remove.
5790 * config/picochip/libgccExtras: Move to ../libgcc/config/picochip.
5791 * config/picochip/t-picochip (LIB2FUNCS_EXTRA, RANLIB_FOR_TARGET)
5792 (TARGET_LIBGCC2_CFLAGS, LIBGCC2_DEBUG_CFLAGS): Remove.
5793 * config/rs6000/crtresfpr.asm: Move to
5794 ../libgcc/config/rs6000/crtresfpr.S.
5795 * config/rs6000/crtresgpr.asm: Move to
5796 ../libgcc/config/rs6000/crtresgpr.S.
5797 * config/rs6000/crtresxfpr.asm: Move to
5798 ../libgcc/config/rs6000/crtresxfpr.S.
5799 * config/rs6000/crtresxgpr.asm: Move to
5800 ../libgcc/config/rs6000/crtresxgpr.S.
5801 * config/rs6000/crtsavfpr.asm: Move to
5802 ../libgcc/config/rs6000/crtsavfpr.S.
5803 * config/rs6000/crtsavgpr.asm: Move to
5804 ../libgcc/config/rs6000/crtsavgpr.S.
5805 * config/rs6000/darwin-asm.h: Move to ../libgcc/config/rs6000.
5806 * config/rs6000/darwin-fpsave.asm: Move to
5807 ../libgcc/config/rs6000/darwin-fpsave.S.
5808 * config/rs6000/darwin-gpsave.asm: Move to
5809 ../libgcc/config/rs6000/darwin-gpsave.S.
5810 * config/rs6000/darwin-tramp.asm: Move to
5811 ../libgcc/config/rs6000/darwin-tramp.S.
5812 * config/rs6000/darwin-vecsave.asm: Move to
5813 ../libgcc/config/rs6000/darwin-vecsave.S.
5814 * config/rs6000/darwin-world.asm: Move to
5815 ../libgcc/config/rs6000/darwin-world.S.
5816 * config/rs6000/e500crtres32gpr.asm: Move to
5817 ../libgcc/config/rs6000/e500crtres32gpr.S.
5818 * config/rs6000/e500crtres64gpr.asm: Move to
5819 ../libgcc/config/rs6000/e500crtres64gpr.S.
5820 * config/rs6000/e500crtres64gprctr.asm: Move to
5821 ../libgcc/config/rs6000/e500crtres64gprctr.S.
5822 * config/rs6000/e500crtrest32gpr.asm: Move to
5823 ../libgcc/config/rs6000/e500crtrest32gpr.S.
5824 * config/rs6000/e500crtrest64gpr.asm: Move to
5825 ../libgcc/config/rs6000/e500crtrest64gpr.S.
5826 * config/rs6000/e500crtresx32gpr.asm: Move to
5827 ../libgcc/config/rs6000/e500crtresx32gpr.S.
5828 * config/rs6000/e500crtresx64gpr.asm: Move to
5829 ../libgcc/config/rs6000/e500crtresx64gpr.S.
5830 * config/rs6000/e500crtsav32gpr.asm: Move to
5831 ../libgcc/config/rs6000/e500crtsav32gpr.S.
5832 * config/rs6000/e500crtsav64gpr.asm: Move to
5833 ../libgcc/config/rs6000/e500crtsav64gpr.S.
5834 * config/rs6000/e500crtsav64gprctr.asm: Move to
5835 ../libgcc/config/rs6000/e500crtsav64gprctr.S.
5836 * config/rs6000/e500crtsavg32gpr.asm: Move to
5837 ../libgcc/config/rs6000/e500crtsavg32gpr.S.
5838 * config/rs6000/e500crtsavg64gpr.asm: Move to
5839 ../libgcc/config/rs6000/e500crtsavg64gpr.S.
5840 * config/rs6000/e500crtsavg64gprctr.asm: Move to
5841 ../libgcc/config/rs6000/e500crtsavg64gprctr.S.
5842 * config/rs6000/eabi.asm: Move to ../libgcc/config/rs6000/eabi.S.
5843 * config/rs6000/t-aix43 (LIBGCC, INSTALL_LIBGCC, LIB2FUNCS_EXTRA)
5844 (TARGET_LIBGCC2_CFLAGS): Remove.
5845 * config/rs6000/t-aix52: Likewise.
5846 * config/rs6000/t-darwin: Remove.
5847 * config/rs6000/t-darwin64 (LIB2_SIDITI_CONV_FUNCS)
5848 (LIB2FUNCS_EXTRA): Remove.
5849 * config/rs6000/t-fprules (LIBGCC, INSTALL_LIBGCC): Remove.
5850 * config/rs6000/t-linux64 (TARGET_LIBGCC2_CFLAGS): Remove.
5851 * config/rs6000/t-lynx (LIB2FUNCS_EXTRA, tramp.S, LIBGCC)
5852 (INSTALL_LIBGCC): Remove.
5853 * config/rs6000/t-netbsd (LIB2FUNCS_EXTRA)
5854 (LIB2FUNCS_STATIC_EXTRA, tramp.S, crtsavfpr.S, crtresfpr.S)
5855 (crtsavgpr.S, crtresgpr.S, crtresxfpr.S, crtresxgpr.S, LIBGCC)
5856 (INSTALL_LIBGCC, $(T)crtsavfpr$(objext), $(T)crtresfpr$(objext))
5857 ($(T)crtsavgpr$(objext), $(T)crtresgpr$(objext))
5858 ($(T)crtresxfpr$(objext), $(T)crtresxgpr$(objext)): Remove.
5859 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA)
5860 (LIB2FUNCS_STATIC_EXTRA, eabi.S, tramp.S): Remove.
5861 * config/rs6000/t-spe (LIBGCC, INSTALL_LIBGCC): Remove.
5862 * config/rs6000/t-vxworks: Remove comment.
5863 * config/rs6000/tramp.asm: Move to ../libgcc/config/rs6000/tramp.S.
5864 * config/rx/t-rx (LIBGCC, INSTALL_LIBGCC): Remove.
5865 * config/sh/linux-atomic.asm: Move to
5866 ../libgcc/config/sh/linux-atomic.S.
5867 * config/sh/t-linux (LIB2FUNCS_EXTRA): Remove.
5868 * config/sh/t-netbsd: Remove.
5869 * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS, LIBGCC, INSTALL_LIBGCC):
5870 Remove.
5871 * config/sparc/t-elf (LIBGCC, INSTALL_LIBGCC): Remove.
5872 * config/sparc/t-leon: Likewise.
5873 * config/sparc/t-leon3: Likewise.
5874 * config/sparc/t-linux64: Likewise.
5875 * config/sparc/t-netbsd64: Fix typo.
5876 Remove comment.
5877 * config/spu/divmodti4.c, config/spu/divv2df3.c,
5878 config/spu/float_disf.c, config/spu/float_unsdidf.c,
5879 config/spu/float_unsdisf.c, config/spu/float_unssidf.c,
5880 config/spu/mfc_multi_tag_release.c,
5881 config/spu/mfc_multi_tag_reserve.c, config/spu/mfc_tag_release.c,
5882 config/spu/mfc_tag_reserve.c, config/spu/mfc_tag_table.c,
5883 config/spu/multi3.c: Move to ../libgcc/config/spu.
5884 * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS, LIB2FUNCS_EXCLUDE)
5885 (LIB2FUNCS_STATIC_EXTRA, LIB2_SIDITI_CONV_FUNCS, LIBGCC)
5886 (INSTALL_LIBGCC): Remove.
5887 * config/stormy16/stormy16-lib2.c: Move to
5888 ../libgcc/config/stormy16/lib2.c.
5889 * config/stormy16/stormy16-lib2-ashlsi3.c: Move to
5890 ../libgcc/config/stormy16/ashlsi3.c.
5891 * config/stormy16/stormy16-lib2-ashrsi3.c: Move to
5892 ../libgcc/config/stormy16/ashrsi3.c.
5893 * config/stormy16/stormy16-lib2-clzhi2.c: Move to
5894 ../libgcc/config/stormy16/clzhi2.c.
5895 * config/stormy16/stormy16-lib2-cmpsi2.c: Move to
5896 ../libgcc/config/stormy16/cmpsi2.c.
5897 * config/stormy16/stormy16-lib2-ctzhi2.c: Move to
5898 ../libgcc/config/stormy16/ctzhi2.c.
5899 * config/stormy16/stormy16-lib2-divsi3.c: Move to
5900 ../libgcc/config/stormy16/divsi3.c.
5901 * config/stormy16/stormy16-lib2-ffshi2.c: Move to
5902 ../libgcc/config/stormy16/ffshi2.c.
5903 * config/stormy16/stormy16-lib2-lshrsi3.c: Move to
5904 ../libgcc/config/stormy16/lshrsi3.c.
5905 * config/stormy16/stormy16-lib2-modsi3.c: Move to
5906 ../libgcc/config/stormy16/modsi3.c.
5907 * config/stormy16/stormy16-lib2-parityhi2.c: Move to
5908 ../libgcc/config/stormy16/parityhi2.c.
5909 * config/stormy16/stormy16-lib2-popcounthi2.c: Move to
5910 ../libgcc/config/stormy16/popcounthi2.c.
5911 * config/stormy16/stormy16-lib2-ucmpsi2.c: Move to
5912 ../libgcc/config/stormy16/ucmpsi2.c.
5913 * config/stormy16/stormy16-lib2-udivmodsi4.c: Move to
5914 ../libgcc/config/stormy16/udivmodsi4.c.
5915 * config/stormy16/stormy16-lib2-udivsi3.c: Move to
5916 ../libgcc/config/stormy16/udivsi3.c.
5917 * config/stormy16/stormy16-lib2-umodsi3.c: Move to
5918 ../libgcc/config/stormy16/umodsi3.c.
5919 * config/stormy16/t-stormy16: Move to ../libgcc/config/t-stormy16.
5920 * config/v850/t-v850 (INSTALL_LIBGCC): Remove.
5921 * config/xtensa/lib2funcs.S: Move to ../libgcc/config/xtensa.
5922 * config/xtensa/t-elf: Remove.
5923 * config/xtensa/t-xtensa (LIB2FUNCS_EXTRA): Remove.
5924 * config.gcc (*-*-freebsd*): Remove t-freebsd, t-freebsd-thread
5925 from tmake_file.
5926 (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu, *-*-knetbsd*-gnu,
5927 *-*-gnu*, *-*-kopensolaris*-gnu): Remove t-linux from tmake_file.
5928 (*-*-netbsd*): Remove t-libgcc-pic from tmake_file.
5929 (*-*-openbsd*): Likewise.
5930 Remove t-openbsd-thread for posix threads.
5931 (alpha*-*-linux*): Remove alpha/t-alpha, alpha/t-ieee from tmake_file.
5932 (alpha*-*-freebsd*): Likewise.
5933 (alpha*-*-netbsd*): Likewise.
5934 (alpha*-*-openbsd*): Likewise.
5935 (alpha64-dec-*vms*): Likewise.
5936 (alpha*-dec-*vms*): Likewise.
5937 (arm*-*-netbsdelf*): Remove arm/t-netbsd from tmake_file.
5938 (arm*-*-linux*): Remove t-linux from tmake_file.
5939 Remove arm/t-bpabi from tmake_file for arm*-*-linux-*eabi.
5940 (arm*-*-uclinux*): Remove arm/t-bpabi from tmake_file for
5941 arm*-*-uclinux*eabi.
5942 (arm*-*-eabi*, arm*-*-symbianelf* ): Remove arm/t-bpabi from
5943 tmake_file for arm*-*-eabi*.
5944 (fr30-*-elf): Remove tmake_file.
5945 (hppa*64*-*-linux*): Remove tmake_file.
5946 (hppa*-*-linux*): Likewise.
5947 (hppa[12]*-*-hpux10*): Remove pa/t-pa-hpux10, pa/t-pa-hpux from
5948 tmake_file.
5949 (hppa*64*-*-hpux11*): Remove pa/t-pa64, pa/t-pa-hpux from tmake_file.
5950 (hppa[12]*-*-hpux11*): Remove pa/t-pa-hpux11, pa/t-pa-hpux from
5951 tmake_file.
5952 (i[34567]86-*-elf*): Remove tmake_file.
5953 (x86_64-*-elf*): Likewise.
5954 (i[34567]86-*-nto-qnx*): Likewise.
5955 (i[34567]86-*-cygwin*): Remove i386/t-cygwin from tmake_file.
5956 (i[34567]86-*-mingw*, x86_64-*-mingw*): Remove i386/t-gthr-win32
5957 from tmake_file if using win32 threads.
5958 (iq2000*-*-elf*): Remove tmake-file.
5959 (microblaze*-linux*): Likewise.
5960 (sh-*-elf*, sh[12346l]*-*-elf*, sh-*-linux*)
5961 (sh[2346lbe]*-*-linux*, sh-*-netbsdelf*, shl*-*-netbsdelf*)
5962 (sh5-*-netbsd*, sh5l*-*-netbsd*, sh64-*-netbsd*)
5963 (sh64l*-*-netbsd*): Remove sh/t-netbsd from tmake_file for
5964 sh5*-*-netbsd*, sh64*-netbsd*, *-*-netbsd.
5965 (xtensa*-*-elf*): Remove tmake_file.
5966
5967 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5968
5969 * Makefile.in (LIB1ASMSRC): Don't export.
5970 (libgcc.mvars): Don't emit LIB1ASMFUNCS, LIB1ASMSRC.
5971 * config/arm/arm.c: Update lib1funcs.asm filename.
5972 * config/arm/linux-eabi.h: Likewise.
5973 * config/arm/bpabi-v6m.S, config/arm/bpabi.S,
5974 config/arm/ieee754-df.S, config/arm/ieee754-sf.S: Move to
5975 ../libgcc/config/arm.
5976 * config/arm/lib1funcs.asm: Move to ../libgcc/config/arm/lib1funcs.S.
5977 * config/arm/t-arm (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
5978 * config/arm/t-arm-elf (LIB1ASMFUNCS): Remove.
5979 * config/arm/t-bpabi: Likewise.
5980 * config/arm/t-linux (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
5981 * config/arm/t-linux-eabi (LIB1ASMFUNCS): Remove.
5982 * config/arm/t-strongarm-elf: Likewise.
5983 * config/arm/t-symbian: Likewise.
5984 * config/arm/t-vxworks: Likewise.
5985 * config/arm/t-wince-pe: Likewise.
5986 * config/avr/libgcc.S: Move to ../libgcc/config/avr.
5987 * config/avr/t-avr (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
5988 * config/bfin/lib1funcs.asm: Move to ../libgcc/config/bfin/lib1funcs.S.
5989 * config/bfin/t-bfin: Remove.
5990 * config/bfin/t-bfin-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
5991 * config/bfin/t-bfin-linux: Likewise.
5992 * config/bfin/t-bfin-uclinux: Likewise.
5993 * config/c6x/lib1funcs.asm: Move to ../libgcc/config/c6x/lib1funcs.S.
5994 * config/c6x/t-c6x-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
5995 * config/fr30/lib1funcs.asm: Move to ../libgcc/config/fr30/lib1funcs.S.
5996 * config/fr30/t-fr30 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
5997 * config/frv/lib1funcs.asm: Move to ../libgcc/config/frv/lib1funcs.S.
5998 * config/frv/t-frv (CROSS_LIBGCC1, LIB1ASMSRC, LIB1ASMFUNCS): Remove.
5999 * config/h8300/fixunssfsi.c: Update lib1funcs.asm filename.
6000 * config/h8300/lib1funcs.asm: Move to
6001 ../libgcc/config/h8300/lib1funcs.S.
6002 * config/h8300/t-h8300 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
6003 * config/i386/cygwin.asm: Move to ../libgcc/config/i386/cygwin.S.
6004 * config/i386/t-cygming (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
6005 * config/i386/t-interix: Likewise.
6006 * config/ia64/lib1funcs.asm: Move to ../libgcc/config/ia64/lib1funcs.S.
6007 * config/ia64/t-hpux (LIB1ASMFUNCS, LIBGCC1_TEST): Remove.
6008 * config/ia64/t-ia64 (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
6009 * config/iq2000/t-iq2000 (LIBGCC1, CROSS_LIBGCC1): Remove.
6010 * config/m32c/m32c.c: Update m32c-lib1.S filename.
6011 * config/m32c/m32c-lib1.S: Move to ../libgcc/config/m32c/lib1funcs.S.
6012 * config/m32c/t-m32c (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
6013 * config/m32r/t-linux (CROSS_LIBGCC1, LIBGCC1, LIBGCC1_TEST): Remove.
6014 * config/m68k/lb1sf68.asm: Move to ../libgcc/config/m68k/lb1sf68.S.
6015 * config/m68k/t-floatlib (LIB1ASMSRC, LIB1ASMFUNCS): New file.
6016 * config/mcore/lib1.asm: Move to ../libgcc/config/mcore/lib1funcs.S.
6017 * config/mcore/t-mcore (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
6018 * config/mep/mep-lib1.asm: Move to ../libgcc/config/mep/lib1funcs.S.
6019 * config/mep/t-mep (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
6020 * config/mips/mips16.S: Move to ../libgcc/config/mips.
6021 * config/mips/t-libgcc-mips16: Remove.
6022 * config/mips/t-sr71k (LIBGCC1, CROSS_LIBGCC1): Remove.
6023 * config/pa/milli64.S: Move to ../libgcc/config/pa.
6024 * config/pa/t-linux (LIB1ASMFUNCS, LIB1ASMSRC): Remove.
6025 * config/pa/t-linux64: Likewise.
6026 * config/picochip/libgccExtras/fake_libgcc.asm: Move to
6027 ../libgcc/config/picochip/lib1funcs.S.
6028 * config/picochip/t-picochip (LIB1ASMFUNCS, LIB1ASMSRC): Remove.
6029 * config/sh/lib1funcs.asm: Move to ../libgcc/config/sh/lib1funcs.S.
6030 * config/sh/lib1funcs.h: Move to ../libgcc/config/sh.
6031 * config/sh/sh.h: Update lib1funcs.asm filename.
6032 * config/sh/t-linux (LIB1ASMFUNCS_CACHE): Remove.
6033 * config/sh/t-netbsd: Likewise.
6034 * config/sh/t-sh (LIB1ASMSRC, LIB1ASMFUNCS, LIB1ASMFUNCS_CACHE):
6035 Remove.
6036 * config/sh/t-sh64 (LIB1ASMFUNCS): Remove.
6037 * config/sparc/lb1spc.asm: Move to ../libgcc/config/sparc/lb1spc.S.
6038 * config/sparc/lb1spl.asm: Remove.
6039 * config/sparc/t-elf (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
6040 * config/sparc/t-leon: Likewise.
6041 * config/spu/t-spu-elf (LIBGCC1, CROSS_LIBGCC1): Remove.
6042 * config/v850/lib1funcs.asm: Move to ../libgcc/config/v850/lib1funcs.S.
6043 * config/v850/t-v850 (LIB1ASMSRC, LIB1ASMFUNCS): Remove
6044 * config/vax/lib1funcs.asm: Move to ../libgcc/config/vax/lib1funcs.S.
6045 * config/vax/t-linux: Remove.
6046 * config/xtensa/ieee754-df.S, config/xtensa/ieee754-sf.S: Move to
6047 ../libgcc/config/xtensa.
6048 * config/xtensa/lib1funcs.asm: Move to
6049 ../libgcc/config/xtensa/lib1funcs.S.
6050 * config/xtensa/t-xtensa (LIB1ASMSRC, LIB1ASMFUNCS): Remove.
6051 * config.gcc (bfin*-rtems*): Remove bfin/t-bfin from tmake_file.
6052 (bfin*-*): Likewise.
6053 (mips64*-*-linux*, mipsisa64*-*-linux*): Remove
6054 mips/t-libgcc-mips16 from tmake_file.
6055 (mips*-*-linux*): Likewise.
6056 (mips*-sde-elf*): Likewise.
6057 (mipsisa32-*-elf*, mipsisa32el-*-elf*, mipsisa32r2-*-elf*)
6058 (mipsisa32r2el-*-elf*, mipsisa64-*-elf*, mipsisa64el-*-elf*)
6059 (mipsisa64r2-*-elf*, mipsisa64r2el-*-elf*): Likewise.
6060 (mipsisa64sb1-*-elf*, mipsisa64sb1el-*-elf*): Likewise.
6061 (mips-*-elf*, mipsel-*-elf*): Likewise.
6062 (mips64-*-elf*, mips64el-*-elf*): Likewise.
6063 (mips64orion-*-elf*, mips64orionel-*-elf*): Likewise.
6064 (mips*-*-rtems*): Likewise.
6065 (mipstx39-*-elf*, mipstx39el-*-elf*): Likewise.
6066 (vax-*-linux*): Remove vax/t-linux from tmake_file.
6067
6068 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6069
6070 * config.gcc (extra_parts): Remove.
6071 (*-*-freebsd*): Remove extra_parts.
6072 (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu, *-*-knetbsd*-gnu,
6073 *-*-gnu*, *-*-kopensolaris*-gnu): Likewise.
6074 (*-*-netbsd*): Remove t-libc-ok, t-netbsd from tmake_file.
6075 Remove extra_parts for *-*-netbsd*1.[7-9]*, *-*-netbsd[2-9]*,
6076 *-*-netbsdelf[2-9]*.
6077 (*-*-openbsd*): Remove t-libc-ok from tmake_file.
6078 (alpha*-*-linux*): Remove extra_parts.
6079 (alpha*-*-freebsd*): Likewise.
6080 (bfin*-linux-uclibc*): Likewise.
6081 (fr30-*-elf): Likewise.
6082 (moxie-*-elf): Likewise.
6083 (moxie-*-uclinux*): Likewise.
6084 (h8300-*-rtems*): Remove h8300/t-elf from tmake_file.
6085 (h8300-*-elf*): Likewise.
6086 (hppa*64*-*-hpux11*): Remove extra_parts.
6087 (i[34567]86-*-elf*): Remove i386/t-i386elf, i386/t-crtstuff from
6088 tmake_file.
6089 (x86_64-*-elf*): Likewise.
6090 (i[34567]86-*-freebsd*): Remove tmake_file.
6091 (x86_64-*-freebsd*): Likewise.
6092 (x86_64-*-netbsd*): Likewise.
6093 (i[34567]86-*-openbsd2.*, i[34567]86-*openbsd3.[0123]): Remove
6094 t-libc-ok from tmake_file.
6095 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
6096 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
6097 i[34567]86-*-kopensolaris*-gnu): Remove i386/t-crtstuff from
6098 tmake_file.
6099 Remove extra_parts.
6100 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
6101 Remove i386/t-crtstuff from tmake_file.
6102 (i[34567]86-*-lynxos*): Likewise.
6103 Remove extra_parts.
6104 (ia64*-*-elf*): Remove extra_parts.
6105 (ia64*-*-freebsd*): Likewise.
6106 (ia64*-*-linux*): Likewise.
6107 (ia64-hp-*vms*): Remove ia64/t-vms from tmake_file.
6108 (m32r-*-elf*): Remove extra_parts.
6109 (m32rle-*-elf*): Likewise.
6110 (m32r-*-rtems*): Likewise.
6111 (m68k-*-elf*, fido-*-elf*): Likewise.
6112 (m68k*-*-openbsd*): Remove t-libc-ok from tmake_file.
6113 (m68k-*-rtems*): Remove extra_parts.
6114 (mep-*-*): Likewise.
6115 (microblaze*-linux*): Likewise.
6116 (mips64*-*-linux*, mipsisa64*-*-linux*): Likewise.
6117 (mips*-*-linux*): Likewise.
6118 (powerpc-*-lynxos*): Likewise.
6119 (s390x-ibm-tpf*): Likewise.
6120 (score-*-elf): Likewise.
6121 Remove tmake_file.
6122 (sh-*-elf*, sh[12346l]*-*-elf*, sh-*-linux*, sh[2346lbe]*-*-linux*,
6123 sh-*-netbsdelf*, shl*-*-netbsdelf*, sh5-*-netbsd*, sh5l*-*-netbsd*,
6124 sh64-*-netbsd*, sh64l*-*-netbsd*): Remove sh/t-elf from tmake_file.
6125 Remove sh/t-superh from tmake_file for sh*-superh-elf.
6126 Remove sh/t-linux64 from tmake_file for sh64*-*-linux*.
6127 (sh-*-rtems*): Remove sh/t-elf from tmake_file.
6128 (sh-wrs-vxworks): Likewise.
6129 (sparc-*-linux*): Remove extra_parts.
6130 (sparc64-*-linux*): Likewise.
6131 (sparc64-*-freebsd*, ultrasparc-*-freebsd*): Likewise.
6132 (xstormy16-*-elf): Likewise.
6133 (xtensa*-*-linux*): Remove xtensa/t-linux from tmake_file.
6134 (am33_2.0-*-linux*): Remove extra_parts.
6135 * configure.ac (extra_parts): Don't substitute.
6136 * configure: Regenerate.
6137 * crtstuff.c: Move to ../libgcc.
6138 * Makefile.in (CRTSTUFF_CFLAGS): Remove.
6139 (EXTRA_PARTS): Remove.
6140 (CRTSTUFF_T_CFLAGS): Remove.
6141 (MOSTLYCLEANFILES): Remove $(EXTRA_PARTS).
6142 (GCC_EXTRA_PARTS): Remove.
6143 (libgcc.mvars): Remove GCC_EXTRA_PARTS, CRTSTUFF_CFLAGS,
6144 CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S.
6145 Emit GCC_CFLAGS, INHIBIT_LIBC_CFLAGS.
6146 ($(T)crtbegin.o, $(T)crtend.o, $(T)crtbeginS.o, $(T)crtendS.o)
6147 ($(T)crtbeginT.o): Remove.
6148 * config/alpha/t-vms (EXTRA_PARTS): Remove.
6149 ($(T)vms-dwarf2.o, $(T)vms-dwarf2eh.o): Remove.
6150 * config/alpha/vms-dwarf2.asm: Move to
6151 ../libgcc/config/alpha/vms-dwarf2.S.
6152 * config/alpha/vms-dwarf2eh.asm: Move to
6153 ../libgcc/config/alpha/vms-dwarf2eh.S.
6154 * config/arm/crti.asm: Move to ../libgcc/config/arm/crti.S.
6155 * config/arm/crtn.asm: Move to ../libgcc/config/arm/crtn.S.
6156 * config/arm/t-arm-elf (EXTRA_MULTILIB_PARTS): Remove.
6157 ($(T)crti.o, $(T)crtn.o): Remove.
6158 * config/arm/t-linux: Remove comment.
6159 * config/arm/t-linux-eabi (EXTRA_MULTILIB_PARTS): Remove.
6160 * config/arm/t-strongarm-elf (EXTRA_MULTILIB_PARTS): Remove.
6161 ($(T)crti.o, $(T)crtn.o): Remove.
6162 * config/arm/t-symbian (EXTRA_MULTILIB_PARTS): Remove.
6163 * config/bfin/crti.s: Move to ../libgcc/config/bfin/crti.S.
6164 * config/bfin/crtn.s: Move to ../libgcc/config/bfin/crtn.S.
6165 * config/bfin/crtlibid.s: Move to ../libgcc/config/bfin/crtlibid.S.
6166 * config/bfin/t-bfin (EXTRA_PARTS): Remove.
6167 ($(T)crti.o, $(T)crtn.o): Remove.
6168 * config/bfin/t-bfin-elf (CRTSTUFF_T_CFLAGS): Remove.
6169 ($(T)crti.o, $(T)crtn.o, $(T)crtlibid.o): Remove
6170 (EXTRA_MULTILIB_PARTS): Remove.
6171 * config/bfin/t-bfin-linux (CRTSTUFF_T_CFLAGS,
6172 EXTRA_MULTILIB_PARTS): Remove.
6173 * config/bfin/t-bfin-uclinux (CRTSTUFF_T_CFLAGS): Remove.
6174 ($(T)crtlibid.o): Remove.
6175 (EXTRA_MULTILIB_PARTS): Remove.
6176 * config/c6x/crti.s: Move to ../libgcc/config/c6x/crti.S.
6177 * config/c6x/crtn.s: Move to ../libgcc/config/c6x/crtn.S.
6178 * config/c6x/t-c6x-elf ($(T)crti.o, $(T)crtn.o): Remove.
6179 (EXTRA_MULTILIB_PARTS): Remove.
6180 (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
6181 * config/c6x/t-c6x-uclinux (CRTSTUFF_T_CFLAGS,
6182 CRTSTUFF_T_CFLAGS_S): Remove.
6183 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Remove.
6184 * config/cris/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
6185 * config/fr30/crti.asm: Move to ../libgcc/config/fr30/crti.S.
6186 * config/fr30/crtn.asm: Move to ../libgcc/config/fr30/crtn.S.
6187 * config/fr30/t-fr30 ($(T)crti.o, $(T)crtn.o): Remove.
6188 * config/frv/frvbegin.c, config/frv/frvend.c: Move to
6189 ../libgcc/config/frv.
6190 * config/frv/t-frv (EXTRA_MULTILIB_PARTS): Remove.
6191 (FRVSTUFF_CFLAGS, $(T)frvbegin$(objext), $(T)frvend$(objext)): Remove.
6192 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove.
6193 (CRTSTUFF_T_CFLAGS): Remove.
6194 * config/h8300/crti.asm: Move to ../libgcc/config/h8300/crti.S.
6195 * config/h8300/crtn.asm: Move to ../libgcc/config/h8300/crtn.S.
6196 * config/h8300/t-elf: Remove.
6197 * config/i386/cygming-crtbegin.c, config/i386/cygming-crtend.c:
6198 Move to ../libgcc/config/i386.
6199 * config/i386/t-crtstuff: Remove.
6200 * config/i386/t-i386elf: Remove.
6201 * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Remove.
6202 * config/i386/t-nto (CRTSTUFF_T_CFLAGS, EXTRA_PARTS): Remove.
6203 * config/ia64/crtbegin.asm: Move to ../libgcc/config/ia64/crtbegin.S.
6204 * config/ia64/crtend.asm: Move to ../libgcc/config/ia64/crtend.S.
6205 * config/ia64/crti.asm: Move to ../libgcc/config/ia64/crti.S.
6206 * config/ia64/crtn.asm: Move to ../libgcc/config/ia64/crtn.S.
6207 * config/ia64/t-vms: Remove.
6208 * config/ia64/vms-crtinit.asm: Move to
6209 ../libgcc/config/ia64/vms-crtinit.S.
6210 * config/m32c/t-m32c (EXTRA_MULTILIB_PARTS): Remove.
6211 * config/m32r/initfini.c: Move to ../libgcc/config/m32r.
6212 * config/m32r/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
6213 * config/m32r/t-m32r (CRTSTUFF_T_CFLAGS): Remove.
6214 ($(T)crtinit.o, $(T)crtfini.o): Remove.
6215 (m32rx, m32r2): Remove.
6216 (EXTRA_MULTILIB_PARTS): Remove.
6217 * config/m68k/crti.s: Move to ../libgcc/config/m68k/crti.S.
6218 * config/m68k/crtn.s: Move to ../libgcc/config/m68k/crtn.S.
6219 * config/m68k/t-crtstuff: Remove.
6220 * config/m68k/t-linux (EXTRA_MULTILIB_PARTS): Remove.
6221 * config/m68k/t-m68kelf: Remove.
6222 * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Remove.
6223 * config/mcore/crti.asm: Move to ../libgcc/config/mcore/crti.S.
6224 * config/mcore/crtn.asm: Move to ../libgcc/config/mcore/crtn.S.
6225 * config/mcore/t-mcore ($(T)crti.o, $(T)crtn.o): Remove.
6226 (EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Remove.
6227 * config/mep/t-mep (CRTSTUFF_CFLAGS): Remove.
6228 (EXTRA_MULTILIB_PARTS): Remove.
6229 * config/microblaze/crti.s: Move to ../libgcc/config/microblaze/crti.S.
6230 * config/microblaze/crtn.s: Move to ../libgcc/config/microblaze/crtn.S.
6231 * config/microblaze/t-microblaze (EXTRA_MULTILIB_PARTS,
6232 EXTRA_PARTS): Remove.
6233 ($(T)crti$(objext), $(T)crtn$(objext)): Remove.
6234 * config/mips/crti.asm: Move to ../libgcc/config/mips/crti.S.
6235 * config/mips/crtn.asm: Move to ../libgcc/config/mips/crtn.S.
6236 * config/mips/t-elf (CRTSTUFF_T_CFLAGS): Remove.
6237 ($(T)crti.o, $(T)crtn.o): Remove.
6238 (EXTRA_MULTILIB_PARTS): Remove.
6239 * config/mips/t-isa3264: Likewise.
6240 * config/mips/t-linux64 (EXTRA_MULTILIB_PARTS): Remove.
6241 * config/mips/t-r3900 (EXTRA_MULTILIB_PARTS): Remove.
6242 (CRTSTUFF_T_CFLAGS): Remove.
6243 * config/mips/t-sde (CRTSTUFF_T_CFLAGS): Remove.
6244 ($(T)crti.o, $(T)crtn.o): Remove.
6245 (EXTRA_MULTILIB_PARTS): Remove.
6246 * config/mips/t-sr71k (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS):
6247 Remove.
6248 ($(T)crti.o, $(T)crtn.o): Remove.
6249 * config/mips/t-st (EXTRA_MULTILIB_PARTS): Remove.
6250 * config/mips/t-vr (CRTSTUFF_T_CFLAGS): Remove.
6251 (EXTRA_MULTILIB_PARTS): Remove.
6252 ($(T)crti.o, $(T)crtn.o): Remove.
6253 * config/mmix/crti.asm: Move to ../libgcc/config/crti.S.
6254 * config/mmix/crtn.asm: Move to ../libgcc/config/crtn.S.
6255 * config/mmix/t-mmix (CRTSTUFF_T_CFLAGS): Remove.
6256 * config/moxie/crti.asm, config/moxie/crtn.asm: Remove.
6257 * config/pa/stublib.c: Move to libgcc/config/pa.
6258 * config/pa/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
6259 * config/pa/t-linux64 (CRTSTUFF_T_CFLAGS_S): Remove.
6260 * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS, stublib.c): Remove.
6261 (pthread_default_stacksize_np-stub.o, pthread_mutex_lock-stub.o)
6262 (pthread_mutex_unlock-stub.o, pthread_once-stub.o)
6263 ($(T)libgcc_stub.a): Remove.
6264 * config/pa/t-pa64 (LIBGCCSTUB_OBJS, stublib.c): Remove.
6265 (rfi-stub.o, dfi-stub.o, cxaf-stub.o, jvrc-stub.o)
6266 (pthread_default_stacksize_np-stub.o, pthread_mutex_lock-stub.o)
6267 (pthread_mutex_unlock-stub.o, pthread_once-stub.o)
6268 ($(T)libgcc_stub.a): Remove.
6269 * config/rs6000/eabi-cn.asm: Move to
6270 ../../../libgcc/config/rs6000/eabi-cn.S.
6271 * config/rs6000/eabi-ci.asm: Move to
6272 ../../../libgcc/config/rs6000/eabi-ci.S.
6273 * config/rs6000/sol-ci.asm: Move to
6274 ../../../libgcc/config/rs6000/sol-ci.S.
6275 * config/rs6000/sol-cn.asm: Move to
6276 ../../../libgcc/config/rs6000/sol-cn.S.
6277 * config/rs6000/t-lynx (EXTRA_MULTILIB_PARTS): Remove.
6278 (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
6279 * config/rs6000/t-netbsd (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S):
6280 Remove.
6281 (EXTRA_MULTILIB_PARTS): Remove.
6282 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Remove.
6283 (ecrti.S, ecrtn.S, ncrti.S, ncrtn.S): Remove.
6284 ($(T)ecrti$(objext), $(T)ecrtn$(objext), $(T)ncrti$(objext),
6285 ($(T)ncrtn$(objext)): Remove.
6286 (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
6287 * config/rs6000/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
6288 * config/rx/t-rx (EXTRA_MULTILIB_PARTS): Remove.
6289 * config/score/crti.asm: Move to ../libgcc/config/score/crti.S.
6290 * config/score/crtn.asm: Move to ../libgcc/config/score/crtn.S.
6291 * config/score/t-score-elf: Remove.
6292 * config/sh/crt1.asm: Move to ../libgcc/config/sh/crt1.S.
6293 * config/sh/crti.asm: Move to ../libgcc/config/sh/crti.S.
6294 * config/sh/crtn.asm: Move to ../libgcc/config/sh/crtn.S.
6295 * config/sh/lib1funcs-4-300.asm: Move to
6296 ../../../libgcc/config/sh/lib1funcs-4-300.S.
6297 * config/sh/lib1funcs-Os-4-200.asm: Move to
6298 ../libgcc/config/sh/lib1funcs-Os-4-200.S.
6299 * config/sh/t-elf: Remove.
6300 * config/sh/t-linux (EXTRA_MULTILIB_PARTS): Remove.
6301 * config/sh/t-linux64: Remove.
6302 * config/sh/t-netbsd (EXTRA_MULTILIB_PARTS): Remove.
6303 * config/sh/t-sh ($(T)crt1.o, $(T)crti.o, $(T)crtn.o): Remove.
6304 (IC_EXTRA_PARTS, OPT_EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Remove.
6305 ($(T)ic_invalidate_array_4-100.o)
6306 ($(T)libic_invalidate_array_4-100.a)
6307 ($(T)ic_invalidate_array_4-200.o)
6308 ($(T)libic_invalidate_array_4-200.a, $(T)ic_invalidate_array_4a.o)
6309 ($(T)libic_invalidate_array_4a.a, $(T)sdivsi3_i4i-Os-4-200.o)
6310 ($(T)udivsi3_i4i-Os-4-200.o, $(T)unwind-dw2-Os-4-200.o)
6311 ($(T)libgcc-Os-4-200.a, $(T)div_table-4-300.o)
6312 ($(T)libgcc-4-300.a): Remove.
6313 * config/sh/t-superh: Remove.
6314 * config/sh/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
6315 * config/sparc/t-linux64 (CRTSTUFF_T_CFLAGS): Remove.
6316 * config/spu/cache.S: Move to ../libgcc/config/spu.
6317 * config/spu/cachemgr.c: Move to ../libgcc/config/spu.
6318 * config/spu/t-spu-elf (CRTSTUFF_T_CFLAGS): Remove.
6319 (EXTRA_MULTILIB_PARTS): Remove.
6320 ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o, $(T)libgcc_%.a): Remove.
6321 ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache32k.o)
6322 ($(T)cache64k.o, $(T)cache128k.o): Remove.
6323 * config/t-freebsd (CRTSTUFF_T_CFLAGS_S): Remove.
6324 * config/t-libc-ok: Remove.
6325 * config/t-linux (CRTSTUFF_T_CFLAGS_S): Remove.
6326 * config/t-lynx (CRTSTUFF_T_CFLAGS_S): Remove.
6327 * config/t-netbsd: Remove.
6328 * config/t-svr4 (CRTSTUFF_T_CFLAGS_S): Remove.
6329 * config/t-vxworks (EXTRA_MULTILIB_PARTS): Remove.
6330 * config/vms/t-vms (VMS_EXTRA_PARTS): Remove.
6331 ($(T)vcrt0.o, $(T)pcrt0.o): Remove.
6332 * config/vms/vms-ucrt0.c: Move to ../libgcc/config/vms.
6333 * config/xtensa/crti.asm: Move to ../libgcc/config/xtensa/crti.S.
6334 * config/xtensa/crtn.asm: Move to ../libgcc/config/xtensa/crtn.S.
6335 * config/xtensa/t-elf (CRTSTUFF_T_CFLAGS, CRTSTUFF_T_CFLAGS_S): Remove.
6336 (EXTRA_MULTILIB_PARTS): Remove.
6337 * config/xtensa/t-linux: Remove.
6338 * config/xtensa/t-xtensa ($(T)crti.o, $(T)crtn.o): Remove.
6339
6340 2011-11-02 Uros Bizjak <ubizjak@gmail.com>
6341
6342 * config/i386/i386.c (bdesc_args) [IX86_BUILTIN_CVTTPD2DQ256]: Use
6343 CODE_FOR_fix_truncv4dfv4si2, not CODE_FOR_fix_truncv4sfv4si2.
6344
6345 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6346
6347 PR translation/45116
6348 * Makefile.in (slibdir): Remove, don't export.
6349 (SHLIB_NM_FLAGS): Remove.
6350 (libgcc.mvars): Don't emit SHLIB_LINK, SHLIB_INSTALL,
6351 SHLIB_DLLDIR, SHLIB_EXT, SHLIB_MKMAP, SHLIB_MKMAP_OPTS,
6352 SHLIB_MAPFILES, SHLIB_NM_FLAGS.
6353 (DRIVER_DEFINES): Test SHLIB instead of SHLIB_LINK.
6354 (gcc.o): Pass SHLIB instead of SHLIB_LINK.
6355 (gccspec.o): Likewise.
6356 (installdirs): Don't create $(DESTDIR)$(slibdir).
6357 * configure.ac (slibdir): Remove.
6358 * configure: Regenerate.
6359 * libgcc-libsystem.ver: Move to ../libgcc/config.
6360 * mkmap-flat.awk, mkmap-symver.awk: Move to ../libgcc.
6361 * config/libgcc-glibc.ver: Move to ../libgcc/config.
6362 * config/t-libunwind (SHLIB_LC): Remove.
6363 * config/t-linux (SHLIB_MAPFILES): Remove.
6364 * config/t-slibgcc-dummy: Rename to config/t-slibgcc.
6365 * config/t-slibgcc-elf-ver: Remove.
6366 * config/t-slibgcc-libgcc, config/t-slibgcc-nolc-override: Move to
6367 ../libgcc/config.
6368 * config/alpha/libgcc-alpha-ldbl.ver, config/alpha/t-linux: Move
6369 to ../libgcc/config/alpha.
6370 * config/alpha/t-vms (shlib_version, SHLIB_EXT, SHLIB_OBJS,
6371 SHLIB_NAME, SHLIB_MULTILIB, SHLIB_INSTALL, SHLIB_SYMVEC,
6372 SHLIB_SYMVECX2, SHLIB_LINK): Remove.
6373 * config/arm/libgcc-bpabi.ver: Move to ../libgcc/config/arm.
6374 * config/arm/t-bpabi (SHLIB_MAPFILES): Remove.
6375 * config/arm/t-netbsd (SHLIB_EXT, SHLIB_NAME, SHLIB_SONAME,
6376 SHLIB_OBJS, SHLIB_LINK, SHLIB_INSTALL): Remove.
6377 * config/arm/t-symbian (SHLIB_LC): Remove.
6378 * config/bfin/libgcc-bfin.ver: Move to
6379 ../libgcc/config/bfin/libgcc-glibc.ver.
6380 * config/bfin/t-bfin-linux (SHLIB_MAPFILES): Remove.
6381 * config/c6x/libgcc-c6xeabi.ver: Move to
6382 ../libgcc/config/c6x/libgcc-eabi.ver.
6383 * config/c6x/t-c6x-elf (SHLIB_MAPFILES): Remove.
6384 * config/cris/libgcc.ver: Move to
6385 ../libgcc/config/cris/libgcc-glibc.ver.
6386 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
6387 * config/frv/libgcc-frv.ver: Move to ../libgcc/config/frv.
6388 * config/frv/t-linux (SHLIB_MAPFILES): Remove.
6389 * config/i386/darwin-libgcc.10.4.ver: Move to
6390 ../libgcc/config/i386/libgcc-darwin.10.4.ver.
6391 * config/i386/darwin-libgcc.10.5.ver: Move to
6392 ../libgcc/config/i386/libgcc-darwin.10.5.ver.
6393 * config/i386/libgcc-glibc.ver: Move to ../libgcc/config/i386.
6394 * config/i386/t-cygming (SHLIB_EXT, SHLIB_IMPLIB, SHLIB_SOVERSION,
6395 SHLIB_SONAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_DIR, SHLIB_SLIBDIR_QUAL)
6396 SHLIB_PTHREAD_CFLAG, SHLIB_PTHREAD_LDFLAG, SHLIB_LINK,
6397 SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MKMAP_OPTS, SHLIB_MAPFILES): Remove.
6398 * config/i386/t-cygwin (SHLIB_LC, SHLIB_EH_EXTENSION,
6399 SHLIB_IMPLIB, SHLIB_SONAME, SHLIB_MKMAP_OPTS): Remove.
6400 * config/i386/t-dlldir, config/i386/t-dlldir-x: Move to
6401 ../libgcc/config/i386.
6402 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Move to
6403 ../libgcc/config/i386.
6404 * config/i386/t-linux: Move to ../libgcc/config/i386.
6405 * config/i386/t-mingw-pthread: Move to ../libgcc/config/i386.
6406 * config/i386/t-mingw-w32 (SHLIB_LC): Remove.
6407 * config/i386/t-mingw-w64: Likewise.
6408 * config/i386/t-mingw32: Remove.
6409 * config/ia64/libgcc-glibc.ver, config/ia64/libgcc-ia64.ver: Move
6410 to ../libgcc/config/ia64.
6411 * config/ia64/t-glibc: Remove.
6412 * config/ia64/t-hpux (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL): Remove.
6413 * config/ia64/t-ia64 (SHLIB_MAPFILES): Remove.
6414 * config/ia64/t-vms (shlib_version, SHLIB_EXT, SHLIB_OBJS,
6415 SHLIB_NAME, SHLIB_MULTILIB, SHLIB_INSTALL, SHLIB_LINK): Remove.
6416 * config/ia64/vms_symvec_libgcc_s.opt: Remove.
6417 * config/m32r/libgcc-glibc.ver: Move to ../libgcc/config/m32r.
6418 * config/m32r/t-linux (SHLIB_MAPFILES): Remove.
6419 * config/m68k/t-slibgcc-elf-ver: Move to ../libgcc/config/m68k.
6420 * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Remove.
6421 * config/pa/t-hpux-shlib: Move to ../libgcc/config/pa/t-slibgcc-hpux.
6422 * config/pa/t-slibgcc-dwarf-ver, config/pa/t-slibgcc-sjsj-ver:
6423 Move to ../libgcc/config/pa.
6424 * config/rs6000/darwin-libgcc.10.4.ver: Move to
6425 ../libgcc/config/rs6000/libgcc-darwin.10.4.ver.
6426 * config/rs6000/darwin-libgcc.10.5.ver: Move to
6427 ../libgcc/config/rs6000/libgcc-darwin.10.5.ver.
6428 * config/rs6000/t-aix43 (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL,
6429 SHLIB_LIBS, SHLIB_MKMAP, SHLIB_NM_FLAGS, AR_FLAGS_FOR_TARGET): Remove.
6430 * config/rs6000/t-aix52: Likewise.
6431 * config/sh/libgcc-excl.ver, config/sh/libgcc-glibc.ver: Move to
6432 ../libgcc/config/sh.
6433 * config/sparc/libgcc-sparc-glibc.ver: Move to
6434 ../libgcc/config/sparc/libgcc-glibc.ver.
6435 * config/sparc/t-linux: Move to ../libgcc/config/sparc.
6436 * config/xtensa/t-linux (SHLIB_MAPFILES): Remove.
6437 * config/xtensa/libgcc-xtensa.ver: Move to
6438 ../libgcc/config/xtensa/libgcc-glibc.ver.
6439 * config.gcc (*-*-freebsd*): Replace t-slibgcc-elf-ver with
6440 t-slibgcc in tmake_file.
6441 Remove t-slibgcc-nolc-override for *-*-freebsd[34],
6442 *-*-freebsd[34].* with pthreads.
6443 (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu,
6444 *-*-knetbsd*-gnu, *-*-gnu*, *-*-kopensolaris*-gnu): Replace
6445 t-slibgcc-elf-ver with t-slibgcc in tmake_file.
6446 (*-*-netbsd*): Likewise.
6447 (*-*-solaris2*): Replace t-slibgcc-dummy with t-slibgcc in tmake_file.
6448 (*-*-*vms*): Add t-slibgcc to tmake_file.
6449 (alpha*-*-linux*): Remove alpha/t-linux from tmake_file.
6450 (alpha*-dec-osf5.1*): Replace t-slibgcc-dummy with t-slibgcc in
6451 tmake_file.
6452 (arm*-*-linux*): Remove t-slibgcc-libgcc from tmake_file for
6453 arm*-*-linux-*eabi.
6454 (bfin*-linux-uclibc*): Replace t-slibgcc-dummy with t-slibgcc in
6455 tmake_file.
6456 (crisv32-*-linux*, cris-*-linux*): Likewise.
6457 (hppa*-*-linux*): Remove t-slibgcc-libgcc, pa/t-slibgcc-sjlj-ver,
6458 pa/t-slibgcc-dwarf-ver from tmake_file.
6459 (hppa[12]*-*-hpux10*): Replace pa/t-hpux-shlib with t-slibgcc in
6460 tmake_file.
6461 Remove pa/t-slibgcc-sjlj-ver, pa/t-slibgcc-dwarf-ver from tmake_file.
6462 (hppa*64*-*-hpux11*): Likewise.
6463 (hppa[12]*-*-hpux11*): Likewise.
6464 (i[34567]86-*-darwin*): Replace t-slibgcc-dummy in t-slibgcc in
6465 tmake_file.
6466 (x86_64-*-darwin*): Likewise.
6467 (i[34567]86-*-cygwin*): Remove tmake_eh_file, tmake_dlldir_file.
6468 Add t-slibgcc to tmake_file.
6469 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
6470 Remove i386/t-mingw32 from tmake_file unless x86_64-w64-*,
6471 i[34567]86-w64-*.
6472 Remove i386/t-mingw-pthread from tmake_file.
6473 (ia64*-*-linux*): Remove ia64/t-glibc from tmake_file.
6474 (ia64*-*-hpux*): Add t-slibgcc to tmake_file.
6475 (ia64-hp-*vms*): Likewise.
6476 (m32r-*-linux*): Replace t-slibgcc-elf-ver with t-slibgcc in
6477 tmake_file.
6478 (m32rle-*-linux*): Likewise.
6479 (m68k-*-linux*): Remove m68k/t-slibgcc-elf-ver from tmake_file.
6480 (microblaze*-linux*): Remove t-slibgcc-elf-ver,
6481 t-slibgcc-nolc-override from tmake_file.
6482 (mips-sgi-irix6.5*): Replace t-slibgcc-dummy with t-slibgcc in
6483 tmake_file.
6484 (powerpc-*-darwin*): Likewise.
6485 (powerpc64-*-darwin*): Likewise.
6486 (powerpc-*-freebsd*): Remove t-slibgcc-libgcc from tmake_file.
6487 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
6488 (rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*): Add
6489 t-slibgcc to tmake_file.
6490 (rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*): Likewise.
6491 (rs6000-ibm-aix5.2.*, powerpc-ibm-aix5.2.*): Likewise.
6492 (rs6000-ibm-aix5.3.*, powerpc-ibm-aix5.3.*): Likewise.
6493 (rs6000-ibm-aix[6789].*, powerpc-ibm-aix[6789].*): Likewise.
6494 (sparc-*-linux*): Remove sparc/t-linux from tmake_file.
6495 (sparc64-*-linux*): Likewise.
6496 (tic6x-*-uclinux): Replace t-slibgcc-elf-ver with t-slibgcc in
6497 tmake_file.
6498 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu,
6499 x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Remove i386/t-linux
6500 from tmake_file.
6501
6502 2011-11-02 Richard Guenther <rguenther@suse.de>
6503
6504 PR tree-optimization/50902
6505 * tree-vect-stmts.c (vectorizable_load): Properly convert
6506 an invariant initializer element.
6507
6508 2010-11-02 Richard Guenther <rguenther@suse.de>
6509
6510 PR tree-optimization/50890
6511 * gimple.h (gimple_fold_call): Remove.
6512 * gimple-fold.c (fold_stmt_1): Move all call related code to ...
6513 (gimple_fold_call): ... here. Make static. Update the
6514 cannot-inline flag on direct calls.
6515 * ipa-inline.c (early_inliner): Copy the cannot-inline flag
6516 from the statements to the edges.
6517
6518 2011-11-01 Ian Lance Taylor <iant@google.com>
6519
6520 * godump.c (struct macro_hash_value): Define.
6521 (macro_hash_hashval): New static function.
6522 (macro_hash_eq, macro_hash_del): New static functions.
6523 (go_define): Use macro_hash_value to store values in macro_hash.
6524 Replace an old value on a redefinition. Don't print anything to
6525 go_dump_file.
6526 (go_undef): Delete the entry from the hash table.
6527 (go_output_typedef): For an enum, use macro_hash_value, and don't
6528 print anything to go_dump_file.
6529 (go_print_macro): New static function.
6530 (go_finish): Traverse macro_hash with go_print_macro.
6531 (dump_go_spec_init): Update macro_hash creation for macro_hash_value.
6532
6533 2011-11-02 Alan Modra <amodra@gmail.com>
6534
6535 * config/rs6000/rs6000.c (rs6000_code_end): Declare ATTRIBUTE_UNUSED.
6536
6537 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
6538
6539 PR c++/44277
6540 * doc/invoke.texi: Document -Wzero-as-null-pointer-constant.
6541
6542 2011-11-01 Andrew Stubbs <ams@codesourcery.com>
6543
6544 * config/arm/bpabi.h (BE8_LINK_SPEC): Recognize generic-armv7 tuning.
6545
6546 2011-11-01 Uros Bizjak <ubizjak@gmail.com>
6547
6548 * config/i386/i386.md (splitters for int-float conversion): Use
6549 SUBREG_REG on SUBREGs in splitter constraints.
6550
6551 2011-11-01 Jakub Jelinek <jakub@redhat.com>
6552
6553 * config/i386/i386-protos.h (ix86_expand_adjust_ufix_to_sfix_si): New
6554 prototype.
6555 * config/i386/i386.c (ix86_expand_adjust_ufix_to_sfix_si): New
6556 function.
6557 * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): Use it.
6558 (ssepackfltmode): New mode attr.
6559 (vec_pack_ufix_trunc_<mode>): New expander.
6560
6561 2011-11-01 Uros Bizjak <ubizjak@gmail.com>
6562
6563 PR target/50940
6564 * config/i386/i386.md (floatsi<mode>2_vector_sse_with_temp splitter):
6565 Compare <ssevecmode>mode to V4SFmode, not V4SImode.
6566
6567 2011-11-01 Peter Bergner <bergner@vnet.ibm.com>
6568
6569 * config.gcc (powerpc*-*-linux*): Add powerpc*-*-linux*ppc476* variant.
6570 * config/rs6000/476.h: New file.
6571 * config/rs6000/476.opt: Likewise.
6572 * config/rs6000/rs6000.h (TARGET_LINK_STACK): New define.
6573 (SET_TARGET_LINK_STACK): Likewise.
6574 (TARGET_ASM_CODE_END): Define.
6575 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
6576 TARGET_LINK_STACK for -mtune=476 and -mtune=476fp.
6577 (rs6000_legitimize_tls_address): Emit the link stack preserving GOT
6578 code if TARGET_LINK_STACK.
6579 (rs6000_emit_load_toc_table): Likewise.
6580 (output_function_profiler): Likewise
6581 (macho_branch_islands): Likewise
6582 (machopic_output_stub): Likewise
6583 (get_ppc476_thunk_name): New function.
6584 (rs6000_code_end): Likewise.
6585 * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
6586 Convert to a define_expand.
6587 (load_toc_v4_PIC_1_normal): New define_insn.
6588 (load_toc_v4_PIC_1_476): Likewise.
6589 (load_toc_v4_PIC_1b_normal): Likewise.
6590 (load_toc_v4_PIC_1b_476): Likewise.
6591
6592 2011-11-01 Georg-Johann Lay <avr@gjlay.de>
6593
6594 PR target/50910
6595 * config/avr/avr.opt (-mbranch-cost=): New option.
6596 * config/avr/avr.h (BRANCH_COST): Define to avr_branch_cost.
6597 * config/avr/avr.c (avr_rtx_costs_1): Adjust [U]DIV/[U]MOD costs.
6598 * config/avr/avr.md (*addqi3.lt0, *addhi3.lt0, *addsi3.lt0): New insns.
6599 (*addhi3_zero_extend1): Remove % in constraint of operand 1.
6600 (*addhi3.sign_extend1, *subhi3.sign_extend2): New insns.
6601
6602 2011-11-01 Tom de Vries <tom@codesourcery.com>
6603
6604 PR tree-optimization/50908
6605 * tree-ssa-tail-merge.c (update_vuses): Now that edges are removed
6606 before update_vuses, test for 1 predecessor rather than two.
6607 (delete_block_update_dominator_info): New function, part of it factored
6608 out of ...
6609 (replace_block_by): Use delete_block_update_dominator_info. Call
6610 update_vuses after deleting bb1 and updating dominator info, instead of
6611 before.
6612
6613 2011-11-01 David S. Miller <davem@davemloft.net>
6614
6615 * config/sparc/sparc.c (vector_init_faligndata): New function.
6616 (sparc_expand_vector_init): Use it for V4HImode on VIS1.
6617
6618 * config/sparc/sparc.c (sparc_expand_vcond): New function.
6619 * config/sparc/sparc-protos.h (sparc_expand_vcond): Declare it.
6620 * config/sparc/sparc.md (vcond<mode><mode>): New VIS3 expander.
6621 (vconduv8qiv8qi): Likewise.
6622
6623 2011-11-01 Alexandre Oliva <aoliva@redhat.com>
6624
6625 PR debug/50869
6626 * cselib.c (cfa_base_preserved_regno): Initialize.
6627 (cselib_expand_value_rtx_1): Don't expand it.
6628 * var-tracking.c (vt_expand_var_loc_chain): Initialize depth.
6629 Check it's only zero if result is NULL.
6630
6631 2011-11-01 Jakub Jelinek <jakub@redhat.com>
6632
6633 * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): New
6634 expander.
6635
6636 * config/i386/sse.md (sseintvecmode): Remove duplicate modes.
6637 (sseintvecmodelower): New mode iterator.
6638 (floatv8siv8sf2, floatunsv4siv4sf2): Macroize into...
6639 (float<sseintvecmodelower><mode>2): ... this using VF1 iterator.
6640 (floatunsv4siv4sf2): Macroize into...
6641 (floatuns<sseintvecmodelower><mode>2): ... this using VF1 iterator.
6642
6643 2011-10-31 David S. Miller <davem@davemloft.net>
6644
6645 * config/sparc/sparc.md (cmask patterns): Allow zero operand.
6646
6647 * dwarf2out.c (cached_next_real_insn): New.
6648 (dwarf2out_end_epilogue): Set it to NULL_RTX.
6649 (dwarf2out_var_location): Remove cached_next_real_insn local static.
6650
6651 2011-10-31 Richard Henderson <rth@redhat.com>
6652
6653 * config/i386/sse.md (floatv8siv8sf2): Rename from avx_cvtdq2ps256.
6654 (floatv4siv4sf2): Rename from sse2_cvtdq2ps.
6655 (floatunsv4siv4sf2): Rename from sse2_cvtudq2ps.
6656 (fix_truncv8sfv8si2): Rename from avx_cvttps2dq256.
6657 (fix_truncv4sfv4si2): Rename from sse2_cvttps2dq.
6658 (floatv4siv4df2): Rename from avx_cvtdq2pd256.
6659 (fix_truncv4dfv4si2): Rename from avx_cvttpd2dq256.
6660 (vec_unpacku_float_hi_v8si): Update for insn pattern name changes.
6661 * config/i386/i386.md (splitters for int-float conversion): Likewise.
6662 * config/i386/i386.c (ix86_split_convert_uns_si_sse): Likewise.
6663 (bdesc_args): Likewise.
6664 (enum ix86_builtins) [IX86_BUILTIN_CVTUDQ2PS]: Remove.
6665 (ix86_vectorize_builtin_conversion): Remove.
6666 (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
6667
6668 2011-10-31 Martin Jambor <mjambor@suse.cz>
6669
6670 * ipa-prop.c (mark_modified): Moved up in the file.
6671 (is_parm_modified_before_call): Renamed to
6672 is_parm_modified_before_stmt, moved up in the file.
6673 (load_from_unmodified_param): New function.
6674 (compute_complex_assign_jump_func): Also attempt to create pass
6675 through jump functions for values loaded from (addressable)
6676 parameters.
6677
6678 2011-10-31 Jakub Jelinek <jakub@redhat.com>
6679
6680 * tree-vect-stmts.c (vectorizable_shift): If op1 is vect_external_def
6681 in a loop and has different type from op0, cast it to op0's type
6682 before the loop first. For slp give up. Don't crash if op1_vectype
6683 is NULL.
6684
6685 2011-10-31 Paul Brook <paul@codesourcery.com>
6686
6687 * cgraphunit.c: Don't mark clones as static constructors.
6688
6689 2011-10-31 David Edelsohn <dje.gcc@gmail.com>
6690
6691 * gcc-ar: Do not include stdio.h.
6692
6693 2011-10-31 Diego Novillo <dnovillo@google.com>
6694
6695 * tree-streamer-out.c (pack_ts_base_value_fields): Emit
6696 TYPE_ADDR_SPACE.
6697 * tree-streamer-in.c (unpack_ts_base_value_fields): Read
6698 TYPE_ADDR_SPACE.
6699
6700 2011-10-30 David S. Miller <davem@davemloft.net>
6701
6702 * config/sparc/sparc.c (vector_init_bshuffle): New function.
6703 (vector_init_fpmerge): New function.
6704 (sparc_expand_vector_init): Use them to improve non-const cases.
6705
6706 * dwarf2out.c (dwarf2out_var_location): When processing several
6707 consecutive location notes, cache the result of next_real_insn().
6708
6709 2011-10-30 Uros Bizjak <ubizjak@gmail.com>
6710
6711 * config/i386/i386.md (avx2_vec_dup<mode>): Macroize insn from
6712 avx2_vec_dup{v8sf,v4sf} using VF1 mode iterator.
6713 (vec_dupv4sf): Remove expander.
6714 (vec_dupv4sf): Merge from *vec_dupv4sf and *vec_dupv4sf_avx.
6715 (vec_dupv2df): Remove expander.
6716 (vec_dupv2df): Merge from *vec_dupv2df and *vec_dupv2df_sse3.
6717 (*vec_concatv2df): Merge *vec_concatv2df_sse3.
6718 (*vec_dupv4si): Merge *vec_dupv4si_avx.
6719 (*vec_dupv2di): Merge *vec_dupv2di_sse3.
6720
6721 2011-10-30 Dmitry Plotnikov <dplotnikov@ispras.ru>
6722
6723 * tree-cfg.c (verify_gimple_assign_unary): Allow vector conversions.
6724 * optabs.c (supportable_convert_operation): New function.
6725 * optabs.h (supportable_convert_operation): New prototype.
6726 * tree-vect-stmts.c (vectorizable_conversion): Change condition and
6727 behavior for NONE modifier case.
6728 * tree.h (VECTOR_INTEGER_TYPE_P): New macro.
6729
6730 2011-10-30 Jakub Jelinek <jakub@redhat.com>
6731
6732 * tree-vectorizer.h (NUM_PATTERNS): Bump to 9.
6733 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): New
6734 function.
6735 (vect_vect_recog_func_ptrs): Add it.
6736
6737 2011-10-30 David S. Miller <davem@davemloft.net>
6738
6739 * reorg.c (label_before_next_insn): New function.
6740 (relax_delay_slots): Use it instead of prev_label.
6741 * rtl.h (prev_label): Delete declaration.
6742 * emit-rtl.c (prev_label): Remove.
6743
6744 2011-10-30 Revital Eres <revital.eres@linaro.org>
6745
6746 * modulo-sched.c (generate_prolog_epilog): Mark prolog and epilog
6747 as BB_DISABLE_SCHEDULE.
6748 (mark_loop_unsched): New function.
6749 (sms_schedule): Call it.
6750
6751 2011-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6752
6753 PR target/50617
6754 * config/pa/protos.h (attr_length_save_restore_dltp): Delete.
6755 (cmpib_comparison_operator): Likewise.
6756 (following_cal, output_and, output_ior, output_move_double,
6757 output_fp_move_double, output_block_move, output_block_clear,
6758 output_cbranch, output_lbranch, output_bb, output_bvb, output_dbra,
6759 output_movb, output_parallel_movb, output_parallel_addb, output_call,
6760 output_indirect_call, output_millicode_call, output_mul_insn,
6761 output_div_insn, output_mod_insn, singlemove_string,
6762 output_arg_descriptor, output_global_address, print_operand,
6763 legitimize_pic_address, hppa_encode_label, symbolic_expression_p,
6764 fmpyaddoperands, fmpysuboperands, emit_bcond_fp, emit_move_sequence,
6765 emit_hpdiv_const, is_function_label_plus_const, jump_in_call_delay,
6766 hppa_fpstore_bypass_p, attr_length_millicode_call, attr_length_call,
6767 attr_length_indirect_call, return_addr_rtx, function_arg_padding,
6768 insn_refs_are_delayed, get_deferred_plabel, ldil_cint_p, zdepi_cint_p,
6769 output_ascii, compute_frame_size, and_mask_p, cint_ok_for_move,
6770 hppa_expand_prologue, hppa_expand_epilogue, ior_mask_p,
6771 compute_zdepdi_operands, output_64bit_and, output_64bit_ior,
6772 reloc_needed, magic_milli, shadd_constant_p): Consistently prefix
6773 exported functions and variables with "pa_".
6774 * config/pa/predicates.md: Likewise.
6775 * config/pa/pa64-hpux.h: likewise.
6776 * config/pa/som.h: Likewise.
6777 * config/pa/elf.h: Likewise.
6778 * config/pa/pa64-linux.h: Likewise.
6779 * config/pa/pa.md: Likewise.
6780 * config/pa/pa.c: Likewise.
6781 * config/pa/pa-linux.h: Likewise.
6782 * config/pa/pa.h: Likewise.
6783 * config/pa/constraints.md: Likewise.
6784
6785 2011-10-29 Uros Bizjak <ubizjak@gmail.com>
6786
6787 * config/i386/i386.md (xop_sha<mode>3): Rename from xop_ashl<mode>3.
6788 Update all uses.
6789 (xop_shl<mode>3): Rename from xop_lshl<mode>3. Update all uses.
6790 * config/i386/i386.c: Update all uses.
6791
6792 2011-10-29 Uros Bizjak <ubizjak@gmail.com>
6793
6794 * config/i386/i386.md (lshlv16qi3): Remove expander.
6795 (lshrv16qi3): New expander.
6796 (<shift_insn>v16qi3): Macroize expander from ashrv16qi3 and lshrv16qi3
6797 using any_shiftrt code iterator. Cleanup.
6798 (ashlv16qi3): Cleanup.
6799 (ashrv2di3): Ditto.
6800
6801 2011-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6802
6803 PR target/50691
6804 * config/pa/pa.c (emit_move_sequence): Legitimize TLS symbol
6805 references.
6806 (pa_legitimate_constant_p): Return false for TLS_MODEL_GLOBAL_DYNAMIC
6807 and TLS_MODEL_LOCAL_DYNAMIC symbol references.
6808
6809 2011-10-29 Georg-Johann Lay <avr@gjlay.de>
6810
6811 PR target/50887
6812 * config/avr/avr.opt (-maccumulate-args): New option.
6813 * config/avr/avr.h (STARTING_FRAME_OFFSET): Redefine to
6814 avr_starting_frame_offset.
6815 (ACCUMULATE_OUTGOING_ARGS): Define to avr_accumulate_outgoing_args.
6816 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): Remove.
6817 (UNSPECV_WRITE_SP_IRQ_OFF): Remove.
6818 (UNSPECV_WRITE_SP): New constant.
6819 (*addhi3_sp_R): Rewrite to...
6820 (*addhi3_sp): ...this new insn.
6821 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): Combine to...
6822 (movhi_sp_r): ...this new insn.
6823 * config/avr/avr-protos.h (avr_accumulate_outgoing_args): New.
6824 (avr_starting_frame_offset): New.
6825 * config/avr/avr.c (avr_accumulate_outgoing_args): New function.
6826 (avr_starting_frame_offset): New function.
6827 (avr_outgoing_args_size): New static function.
6828 (avr_initial_elimination_offset): Use it.
6829 (avr_simple_epilogue): Use it.
6830 (avr_asm_function_end_prologue): Use it.
6831 (expand_epilogue): Use it.
6832 (expand_prologue): Use it. Break out code to...
6833 (avr_prologue_setup_frame): ...this new static function.
6834 (avr_can_eliminate): Allow eliminating to frame pointer if there
6835 is one.
6836 (avr_frame_pointer_required_p): Use frame pointer if target has a
6837 nonlocal label.
6838 * config/avr/constraints.md (R): Remove.
6839 (Csp): New constraint.
6840 * config/avr/predicates.md (avr_sp_immediate_operand): Use it.
6841
6842 2011-10-29 Andi Kleen <ak@linux.intel.com>
6843
6844 * gcc-ar.c (target_machine): Add.
6845
6846 2011-10-29 Anatoly Sokolov <aesok@post.ru>
6847
6848 * config/cris/cris.c (reg_ok_for_base_p, reg_ok_for_index_p,
6849 cris_constant_index_p, cris_base_p, cris_index_p,
6850 cris_base_or_autoincr_p, cris_bdap_index_p, cris_biap_index_p,
6851 cris_legitimate_address_p): New functions.
6852 (TARGET_LEGITIMATE_ADDRESS_P): Define.
6853 (cris_pic_symbol_type, cris_valid_pic_const): Change arguments type
6854 from rtx to const_rtx.
6855 (cris_print_operand_address, cris_address_cost,
6856 cris_side_effect_mode_ok): Use
6857 cris_constant_index_p, cris_base_p, cris_base_or_autoincr_p,
6858 cris_biap_index_p and cris_bdap_index_p.
6859 * config/cris/cris.h (CONSTANT_INDEX_P, BASE_P, BASE_OR_AUTOINCR_P,
6860 BDAP_INDEX_P, BIAP_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
6861 REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
6862 (EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_R, EXTRA_CONSTRAINT_T): Use
6863 cris_constant_index_p, cris_base_p, cris_base_or_autoincr_p,
6864 cris_biap_index_p and cris_bdap_index_p.
6865 * config/cris/cris.md (moversideqi movemsideqi peephole2): Use
6866 cris_base_p.
6867 * config/cris/cris-protos.h (cris_constant_index_p, cris_base_p,
6868 cris_base_or_autoincr_p, cris_bdap_index_p, cris_biap_index_p): New
6869 prototype.
6870 (cris_pic_symbol_type, cris_valid_pic_const): Update prototype.
6871
6872 2011-10-21 Andi Kleen <ak@linux.intel.com>
6873
6874 * ggc-page (PAGE_ALIGN): Add.
6875 (alloc_page, ggc_pch_total_size, ggc_pch_this_base, ggc_pch_read):
6876 Replace ROUND_UP with PAGE_ALIGN.
6877
6878 2011-10-20 Andi Kleen <ak@linux.intel.com>
6879
6880 * ggc-page (alloc_anon): Add check argument.
6881 (alloc_page): Add fallback to 1 page allocation.
6882 Adjust alloc_anon calls to new argument.
6883
6884 2011-10-18 Andi Kleen <ak@linux.intel.com>
6885
6886 * ggc-page (release_pages): First free large continuous
6887 chunks in the madvise path.
6888
6889 2011-10-18 Andi Kleen <ak@linux.intel.com>
6890
6891 * ggc-page.c (alloc_pages): Always round up entry_size.
6892
6893 2011-10-19 Andi Kleen <ak@linux.intel.com>
6894
6895 * Makefile.in (MOSTLYCLEANFILES): Add gcc-ar/nm/ranlib.
6896 (native): Add gcc-ar, gcc-nm, gcc-ranlib.
6897 (AR_LIBS, gcc-ar, gcc-ar.o, gcc-ranlib, gcc-ranlib.o,
6898 gcc-nm, gcc-nm.o, gcc-ranlib.c, gcc-nm.c): Add.
6899 (install): Depend on install-gcc-ar.
6900 (install-gcc-ar): Add.
6901 (uninstall): Uninstall gcc-ar, gcc-nm, gcc-ranlib.
6902 * gcc-ar.c: Add new file.
6903
6904 2011-10-28 Pat Haugen <pthaugen@us.ibm.com>
6905
6906 * config/rs6000/rs6000.md (define_attr "type"): Add vecdouble.
6907 * config/rs6000/vsx.md (VStype_simple, VStype_mul): Use vecdouble
6908 type for V2DF.
6909 (VStype_div): Use vector types for V2DF/V4SF.
6910 (VStype_sqrt): Use *sqrt types.
6911 (VS_spdp_type): Change type to vecdouble.
6912 (*vsx_fmav2df4, *vsx_nfmsv2df4, vsx_xvcvdpsxws, vsx_xvcvdpuxws,
6913 vsx_xvcvuxdsp, vsx_xvcvsxwdp, vsx_xvcvuxwdp, vsx_xvcvspsxds,
6914 vsx_xvcvspuxds): Likewise.
6915 (*vsx_fms<mode>4): Set type via <VStype_mul>.
6916 (*vsx_eq_<mode>_p, *vsx_gt_<mode>_p, *vsx_ge_<mode>_p): Set type via
6917 <VStype_simple>.
6918 * config/rs6000/power7.md (power7-vecstore): Correct VSU pipe.
6919 (power7-fpcompare, power7-sdiv, power7-ddiv, power7-sqrt,
6920 power7-dsqrt): Correct insn latency.
6921 (power7-vecsimple): Add veccmp type and correct dispatch/VSU values.
6922 (power7-veccmp): Delete.
6923 (power7-vecfloat): Correct latency/dispatch/VSU values.
6924 (define_bypass "power7-vecfloat"): Correct latency and types.
6925 (power7-veccomplex, power7-vecperm): Correct dispatch/VSU values.
6926 (power7-vecdouble, power7-vecfdiv, power7-vecdiv): New.
6927
6928 2011-10-28 Uros Bizjak <ubizjak@gmail.com>
6929
6930 * config/i386/i386.md (shift_insn): Rename code attribute from
6931 shiftrt_insn. Also handle ashift RTX.
6932 (shift): Rename code attribute from shiftrt. Also handle ashift RTX.
6933 (vshift): New code attribute.
6934 (<shift_insn>*): Rename from <shiftrt_insn>*. Update asm templates.
6935 (any_lshift): Move and rename code iterator from ...
6936 * config/i386/sse.md (lshift): ... here.
6937 (lshift_insn): Remove code attribute.
6938 (lshift): Remove code attribute.
6939 (vlshr<mode>3): Use lshiftrt RTX.
6940 (vashr<mode>3, ashrv16qi3, ashrv2di3): Use ashiftrt RTX.
6941 (vashl<mode>3, ashlv16qi3): Use ashift RTX.
6942 (avx2_<lshift>v<mode>): Rename from avx2_<shift_insn>v<mode>. Use
6943 any_lshift code iterator. Update asm template.
6944 (<shift_insn><mode>3): Macroize insn from lshr<mode>3 and ashl<mode>3
6945 usign any_lshift code iterator.
6946 * config/i386/mmx.md (mmx_<shift_insn><mode>3): Macroize insn from
6947 mmx_lshr<mode>3 and mmx_ashl<mode>3 usign any_lshift code iterator.
6948 * config/i386/i386.c (bdesc_args) <__builtin_ia32_psll>: Update.
6949
6950 2011-10-28 Georg-Johann Lay <avr@gjlay.de>
6951
6952 PR target/49313
6953 * config/avr/avr.md (parityhi2): Expand allowing pseudos.
6954 (*parityhi2): New pre-reload insn-and-split to map 16-bit parity
6955 to the libgcc insn.
6956 (*parityqihi2): Same for 8-bit parity.
6957
6958 2011-10-28 Julian Brown <julian@codesourcery.com>
6959
6960 PR rtl-optimization/47918
6961 * reload1.c (set_initial_label_offsets): Use initial offsets
6962 for labels on the nonlocal_goto_handler_labels chain.
6963
6964 2011-10-28 Iain Sandoe <iains@gcc.gnu.org>
6965
6966 * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
6967 Move darwin-fpsave.asm from here to ... LIB2FUNCS_EXTRA.
6968 (LIB2FUNCS_EXTRA): Add darwin-gpsave.asm.
6969 (TARGET_LIBGCC2_CFLAGS): Ensure that fPIC and -pipe are inherited from
6970 config/t-darwin.
6971 * config/rs6000/darwin.h (FP_SAVE_INLINE): Adjust to enable.
6972 (GP_SAVE_INLINE): Likewise.
6973 (SAVE_FP_PREFIX, SAVE_FP_SUFFIX, RESTORE_FP_PREFIX,
6974 RESTORE_FP_SUFFIX): Set to empty strings.
6975 * config/rs6000/rs6000.c (rs6000_savres_strategy): Implement for Darwin.
6976 (debug_stack_info): Print savres_strategy.
6977 (rs6000_savres_routine_name): Implement for Darwin.
6978 (rs6000_make_savres_rtx): Adjust used register for Darwin.
6979 (rs6000_emit_prologue): Implement out-of-line saves for Darwin.
6980 (rs6000_output_function_prologue): Don't emit .extern for Mach-O.
6981 (rs6000_emit_epilogue): Implement out-of-line saves for Darwin.
6982 * config/rs6000/darwin-gpsave.asm: New file.
6983
6984 2011-10-28 Jakub Jelinek <jakub@redhat.com>
6985
6986 * config/i386/sse.md (VI4SD_AVX2): Removed.
6987 (VI48_AVX2, VI128_128, VI48_128, VI48_256): New mode iterators.
6988 (vashl<mode>3): Use VI12_128 iterator instead of VI124_128.
6989 Add another expander using VI48_128 iterator for
6990 TARGET_AVX2 || TARGET_XOP and another using VI48_256 iterator
6991 for TARGET_AVX2.
6992 (vlshr<mode>3): Likewise. Change register_operand predicate to
6993 nonimmediate_operand on last operand in the VI12_128 expander.
6994 (vashr<mode>3): Use VI128_128 iterator instead of VI124_128.
6995 (vashrv4si3, vashrv8si3): New expanders.
6996 (avx2_ashrvv8si, avx2_ashrvv4si, avx2_<lshift>vv8si,
6997 avx2_<lshift>vv2di): Removed.
6998 (avx2_ashrv<mode>): New insn with VI4_AVX2 iterator.
6999 (avx2_<lshift>v<mode>): Macroize using VI48_AVX2
7000 iterator. Simplify pattern.
7001
7002 2010-10-28 Richard Guenther <rguenther@suse.de>
7003
7004 PR driver/50876
7005 * lto-wrapper.c (get_options_from_collect_gcc_options):
7006 Properly count arguments.
7007 (run_gcc): Use an obstack to collect argv, properly separate
7008 switches and their arguments.
7009
7010 2011-10-28 Jakub Jelinek <jakub@redhat.com>
7011
7012 * tree-vect-stmts.c (vectorizable_shift): Give up if op1 has different
7013 vector mode from vectype's mode.
7014
7015 2011-10-28 Chung-Lin Tang <cltang@codesourcery.com>
7016
7017 PR rtl-optimization/49720
7018 * simplify-rtx.c (simplify_relational_operation_1): Detect
7019 infinite recursion condition in "(eq/ne (plus x cst1) cst2)
7020 simplifies to (eq/ne x (cst2 - cst1))" case.
7021
7022 2011-10-27 David S. Miller <davem@davemloft.net>
7023
7024 * config/sparc/sparc.md (snedi_special): Only match when not VIS3.
7025 (*snedi_zero): Likewise.
7026 (*snedi_zero_trunc): Likewise.
7027 (snedi_special_vis3): New expander.
7028 (*snedi_zero_vis3): New insn.
7029 (*snedi_zero_trunc_vis3): Likewise.
7030 (*sltu_insn_vis3): Likewise.
7031 (*sltu_insn_vis3_trunc): Likewise.
7032 (addxc): Likewise.
7033 (*addxc_trunc_sp64_vis3): Likewise.
7034 * config/sparc/sparc.c (emit_scc_insn): When VIS3 use the
7035 gen_snedi_special_vis3 expander, and try GTU/LTU addx based
7036 sequences on DImode values.
7037
7038 * config/sparc/sparc.md (64-bit vector moves): Use 'e' not 'f'
7039 constraint.
7040
7041 * regcprop.c (copyprop_hardreg_forward_1): Reject the
7042 transformation when we narrow the mode on big endian.
7043
7044 2011-10-27 Jakub Jelinek <jakub@redhat.com>
7045
7046 * config/i386/sse.md (avx_cvtpd2dq256_2, avx_cvttpd2dq256_2,
7047 vec_pack_sfix_trunc_v4df, vec_pack_sfix_v4df): New expanders.
7048 (*avx_cvtpd2dq256_2, *avx_cvttpd2dq256_2): New insns.
7049
7050 * config/i386/i386.c (ix86_print_operand): Handle 'q' and 'x'
7051 overrides for -masm=intel memory.
7052 * config/i386/sse.md (sse2_cvtdq2pd, sse2_cvtps2pd,
7053 sse4_1_<code>v8qiv8hi2, avx2_<code>v8qiv8si2,
7054 sse4_1_<code>v4hiv4si2, avx2_<code>v4hiv4di2,
7055 sse4_1_<code>v2siv2di2): Use %q1 instead of %1 for -masm=intel.
7056 (sse4_1_<code>v4qiv4si2, avx2_<code>v4qiv4di2,
7057 sse4_1_<code>v2hiv2di2): Use %k1 instead of %1 for -masm=intel.
7058 (sse4_1_<code>v2qiv2di2): Use %w1 instead of %1 for -masm=intel.
7059
7060 2011-10-27 Martin Jambor <mjambor@suse.cz>
7061
7062 * ipa-prop.c (compute_pass_through_member_ptrs): Rename parm_info
7063 to parm_ainfo.
7064 (ipa_compute_jump_functions_for_edge): Likewise.
7065 (ipa_compute_jump_functions): Likewise.
7066 (ipa_analyze_indirect_call_uses): Likewise.
7067 (ipa_analyze_call_uses): Likewise.
7068 (ipa_analyze_params_uses): Likewise.
7069 (ipa_analyze_node): Likewise.
7070
7071 2011-10-27 Uros Bizjak <ubizjak@gmail.com>
7072
7073 PR target/50875
7074 * config/i386/sse.md (*avx_unpcklpd256): Remove extra insn
7075 constraints. Change alternative 1 to "x,m,1".
7076
7077 2011-10-27 Jakub Jelinek <jakub@redhat.com>
7078
7079 * Makefile.in (build/gencheck.o): Depend on tree.def and
7080 c-family/c-common.def.
7081
7082 * tree-ssa-strlen.c: Include expr.h.
7083 (get_stridx): Don't use c_strlen, instead use string_constant
7084 and compute string length from it.
7085 * Makefile.in (tree-ssa-strlen.o): Depend on $(EXPR_H).
7086
7087 2011-10-27 Eric Botcazou <ebotcazou@adacore.com>
7088
7089 PR rtl-optimization/46603
7090 PR bootstrap/50879
7091 * reload.c (push_reload): In the out case, restore previous behavior
7092 for subregs that don't have word mode.
7093
7094 2011-10-27 Ian Lance Taylor <iant@google.com>
7095
7096 * cppdefault.c: Undef NATIVE_SYSTEM_HEADER_DIR if
7097 CROSS_DIRECTORY_STRUCTURE is defined and TARGET_SYSTEM_ROOT is not.
7098 (cpp_include_defaults): Only use NATIVE_SYSTEM_HEADER_DIR if it is
7099 defined.
7100
7101 2011-10-27 Richard Henderson <rth@redhat.com>
7102
7103 * optabs.c (expand_vec_perm): Use the correct mode for scaling the
7104 selector. Save the qimode constant selector for later use by the
7105 qimode vec_perm pattern.
7106
7107 2011-10-27 Bernd Schmidt <bernds@codesourcery.com>
7108
7109 * config/c6x/c6x.c (unit_req_imbalance, res_mii): Cast the first arg
7110 to unit_req_factor to the right enum type.
7111 (get_unit_operand_masks, reshuffle_units, try_rename_operands,
7112 hwloop_optimize): Remove unused variables.
7113
7114 2010-10-27 Richard Guenther <rguenther@suse.de>
7115
7116 PR middle-end/50731
7117 * tree-vect-generic.c (do_binop): Handle scalar operands.
7118
7119 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
7120
7121 PR target/37191
7122 * config/i386/sse.md (*vec_extract_v4sf_mem): Avoid combining registers
7123 from different units in a single alternative.
7124
7125 2011-10-26 David S. Miller <davem@davemloft.net>
7126
7127 * config/sparc/sparc.c (emit_scc_insn): Force attempt of v9 sequences
7128 if we're comparing DImode and comparison is other than EQ or NE.
7129
7130 * config/sparc/sparc.c (emit_scc_insn): Do not try v9 sequences until
7131 LEU/LTU/GEU/GTU is attempted.
7132 * config/sparc/sparc.md (*neg_snesi_sign_extend): New 64-bit insn
7133 and split.
7134 (*neg_seqsi_sign_extend): Likewise.
7135 (*sltu_extend_sp64, *neg_sltu_extend_sp64, *sgeu_extend_sp64,
7136 *neg_sgeu_extend_sp64): New insns.
7137
7138 * config/sparc/sparc-protos.h (sparc_expand_conditional_move): Declare.
7139 * config/sparc/sparc.md (mov<I:mode>cc, mov<F:mode>cc): Call it.
7140 (*mov<I:mode>_cc_v9): Normalize to expect operand 0 always in operand 4.
7141 (*mov<I:mode>_cc_reg_sp64): Likewise.
7142 (*movsf_cc_v9): Likewise.
7143 (*movsf_cc_reg_sp64): Likewise.
7144 (*movdf_cc_v9): Likewise.
7145 (*movdf_cc_reg_sp64): Likewise.
7146 (*movtf_cc_hq_v9): Likewise.
7147 (*movtf_cc_reg_hq_sp64): Likewise.
7148 (*movtf_cc_v9): Likewise.
7149 (*movtf_cc_reg_sp64): Likewise.
7150 * config/sparc/sparc.c (sparc_expand_conditional_move): New function.
7151 (sparc_print_operand): Delete 'c' and 'd' handling, no longer used.
7152
7153 2011-10-26 Eric Botcazou <ebotcazou@adacore.com>
7154
7155 * reload.c (reload_inner_reg_of_subreg): Change type of return value
7156 and type of OUTPUT parameter to bool and adjust. Document MODE and
7157 OUTPUT parameters. Use HARD_REGISTER_P. Reorder final condition
7158 and improve associated comment.
7159 (push_reload): Clarify and update comments about reloading of subregs.
7160 Adjust calls to reload_inner_reg_of_subreg. Compute the class upfront
7161 for the reloading of subregs in the out case as well.
7162
7163 2011-10-26 Alexandre Oliva <aoliva@redhat.com>
7164
7165 PR debug/50826
7166 * var-tracking.c (rtx_debug_expr_p): New.
7167 (use_type): Don't use debug exprs to track non-VTA variables.
7168
7169 2011-10-26 Jeff Law <law@redhat.com>
7170
7171 * doc/invoke.texi (sink-frequency-threshold): Document.
7172 * tree-ssa-sink.c: Include params.h.
7173 (select_best_block): New function.
7174 (statement_sink_location): Use it.
7175 * params.def (SINK_FREQUENCY_THRESHOLD): New PARAM.
7176
7177 2011-10-26 Iain Sandoe <iains@gcc.gnu.org>
7178
7179 PR target/48108
7180 * config/darwin.c (top level): Amend comments concerning LTO output.
7181 (lto_section_num): New variable. (darwin_lto_section_e): New GTY.
7182 (LTO_SECTS_SECTION, LTO_INDEX_SECTION): New.
7183 (LTO_NAMES_SECTION): Rename.
7184 (darwin_asm_named_section): Record LTO section counts and switches
7185 in a vec of darwin_lto_section_e.
7186 (darwin_file_start): Remove unused code.
7187 (darwin_file_end): Put an LTO section termination label. Handle
7188 output of the wrapped LTO sections, index and names table.
7189
7190 2011-10-26 Alan Modra <amodra@gmail.com>
7191
7192 * config/rs6000/rs6000.c (rs6000_make_savres_rtx): Delete unneeded
7193 declaration.
7194 (rs6000_emit_stack_reset): Only return insn emitted when it adjusts sp.
7195 (rs6000_make_savres_rtx): Rename to rs6000_emit_savres_rtx. Use
7196 simple_return in pattern, emit instruction, and set jump_label.
7197 (rs6000_emit_prologue): Update for rs6000_emit_savres_rtx. Use
7198 simple_return rather than return.
7199 (emit_cfa_restores): New function.
7200 (rs6000_emit_epilogue): Emit cfa_restores when flag_shrink_wrap.
7201 Add missing cfa_restores for SAVE_WORLD. Add missing LR cfa_restore
7202 when using out-of-line gpr restore. Add missing LR and FP regs
7203 cfa_restores for out-of-line fpr restore. Consolidate code setting
7204 up cfa_restores. Formatting. Use LR_REGNO define.
7205 (rs6000_output_mi_thunk): Use simple_return rather than return.
7206 * config/rs6000/rs6000.md (sibcall*, sibcall_value*): Likewise.
7207 (return_internal*): Likewise.
7208 (any_return, return_pred, return_str): New iterators.
7209 (return, conditional return insns): Provide both return and
7210 simple_return variants.
7211 * config/rs6000/rs6000.h (EARLY_R12, LATE_R12): Define.
7212 (REG_ALLOC_ORDER): Move r12 before call-saved regs when FIXED_R13.
7213 Move r11 and r0 later to suit shrink-wrapping.
7214
7215 2011-10-26 Richard Guenther <rguenther@suse.de>
7216
7217 * lto-wrapper.c (run_gcc): Properly init/free obstack.
7218
7219 2011-10-26 Jakub Jelinek <jakub@redhat.com>
7220
7221 * config/i386/i386.md (UNSPEC_VSIBADDR): New.
7222 * config/i386/predicates.md (vsib_address_operand,
7223 vsib_mem_operator): New predicates.
7224 * config/i386/i386.c (ix86_print_operand_address): Handle
7225 UNSPEC_VSIBADDR addresses.
7226 * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>,
7227 avx2_gatherdi<mode>256): Adjust expanders to use MEM with
7228 UNSPEC_VSIBADDR address.
7229 (*avx2_gathersi<mode>, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>256):
7230 Adjust insns to use MEM with UNSPEC_VSIBADDR address.
7231
7232 2011-10-26 Tom de Vries <tom@codesourcery.com>
7233
7234 PR tree-optimization/50763
7235 * tree-ssa-tail-merge.c (replace_block_by): Update vops if phi_vuse1 or
7236 phi_vuse2 is NULL_TREE only if bb1 dominates or is dominated by bb2.
7237
7238 2011-10-26 Richard Guenther <rguenther@suse.de>
7239
7240 PR lto/41844
7241 * Makefile.in (lto-wrapper): Depend on and link against opts-common.o.
7242 (lto-wrapper.o): Depend on $(OPTS_H) and $(OPTIONS_H).
7243 * lto-wrapper.c (get_options_from_collect_gcc_options): New function.
7244 (run_gcc): Use it. Filter out language specific options.
7245
7246 2011-10-26 Andreas Tobler <andreast@fgznet.ch>
7247
7248 * config/i386/freebsd64.h (LINK_SPEC): Emit the same warning as the
7249 32-bit target does.
7250
7251 2011-10-25 Paolo Carlini <paolo.carlini@oracle.com>
7252
7253 PR driver/46617
7254 * gcc.c (main): Fix fatal_error string for translation.
7255
7256 2011-10-25 Ian Lance Taylor <iant@google.com>
7257
7258 * tree-eh.c (do_return_redirection): Remove return_value_p
7259 parameter. Change all callers.
7260 (lower_try_finally_nofallthru): Remove local return_val.
7261 (lower_try_finally_onedest): Likewise.
7262 (lower_try_finally_copy): Likewise.
7263 (lower_try_finally_switch): Likewise.
7264
7265 2011-10-25 H.J. Lu <hongjiu.lu@intel.com>
7266
7267 * config/i386/mmx.md (*mmx_maskmovq): Replace :SI with :P and
7268 remove "&& !TARGET_64BIT"
7269 (*mmx_maskmovq_rex): Removed.
7270
7271 2011-10-25 Eric Botcazou <ebotcazou@adacore.com>
7272
7273 PR rtl-optimization/46603
7274 * reload.c (push_reload): In the out case, reload the subreg as well
7275 as the reg if it has word mode.
7276
7277 2011-10-25 Eric Botcazou <ebotcazou@adacore.com>
7278
7279 * dwarf2out.c (add_gnat_descriptive_type_attribute): Temporarily
7280 suppress debug info for the parent type.
7281
7282 2011-10-25 Eric Botcazou <ebotcazou@adacore.com>
7283
7284 * config/ia64/ia64.c (ia64_profile_hook): Fix thinko.
7285
7286 2011-10-25 Richard Henderson <rth@redhat.com>
7287
7288 * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Remove.
7289 (vec_extract_even<mode>, vec_extract_odd<mode>): Remove.
7290
7291 * config/rs6000/altivec.md (vec_extract_evenv8hi,
7292 vec_extract_evenv16qi, vec_extract_oddv4si,
7293 vec_extract_oddv4sf): Remove.
7294
7295 * config/spu/spu.md (vec_extract_evenv4si, vec_extract_evenv4sf,
7296 vec_extract_evenv8hi, vec_extract_evenv16qi, vec_extract_oddv4si,
7297 vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
7298 vec_interleave_highv4sf, vec_interleave_lowv4sf,
7299 vec_interleave_highv4si, vec_interleave_lowv4si,
7300 vec_interleave_highv8hi, vec_interleave_lowv8hi,
7301 vec_interleave_highv16qi, vec_interleave_lowv16qi): Remove.
7302
7303 * expr.c (expand_expr_real_2) [VEC_EXTRACT_EVEN_EXPR]: Use binop.
7304 [VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR]: Likewise.
7305 [VEC_INTERLEAVE_LOW_EXPR]: Likewise.
7306 * optabs.c (expand_binop): Implement vec_interleave_high_optab,
7307 vec_interleave_low_optab, vec_extract_even_optab,
7308 vec_extract_odd_optab with expand_vec_perm.
7309 (can_vec_perm_for_code_p): New.
7310 * optabs.h: Update.
7311 * tree-vect-data-refs.c (vect_strided_store_supported): Allow for
7312 fallback via can_vec_perm_for_code_p.
7313 (vect_strided_load_supported): Likewise.
7314 * tree-vect-generic.c (expand_vector_operations_1): Never lower
7315 VEC_INTERLEAVE_HIGH_EXPR, VEC_INTERLEAVE_LOW_EXPR,
7316 VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR.
7317
7318 * target.def (vec_perm_const_ok): Change parameters to mode and
7319 array of indicies.
7320 * doc/tm.texi: Rebuild.
7321 * config/i386/i386.c (ix86_vectorize_vec_perm_const_ok): Change
7322 parameters to mode and array of indicies.
7323 * expr.c (expand_expr_real_2) [VEC_PERM_EXPR]: Expand operands here.
7324 * optabs.c (can_vec_perm_p): Rename from can_vec_perm_expr_p.
7325 Change parameters to mode and array of indicies.
7326 (expand_vec_perm_1): Rename from expand_vec_perm_expr_1.
7327 (expand_vec_perm): Rename from expand_vec_perm_expr. Change
7328 parameters to mode and rtx inputs. Try lowering to QImode
7329 vec_perm_const before trying fully variable permutation.
7330 * optabs.h: Update decls.
7331 * tree-vect-generic.c (lower_vec_perm): Extract array of indices from
7332 VECTOR_CST to pass to can_vec_perm_p.
7333 * tree-vect-slp.c (vect_get_mask_element): Change mask parameter type
7334 from int pointer to unsigned char pointer.
7335 (vect_transform_slp_perm_load): Update for change to can_vec_perm_p.
7336 * tree-vect-stmts.c (perm_mask_for_reverse): Likewise.
7337
7338 * tree.def (VEC_EXTRACT_EVEN_EXPR): Fix typo in text name.
7339 (VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
7340 VEC_INTERLEAVE_LOW_EXPR): Likewise.
7341
7342 2011-10-25 Mike Stump <mikestump@comcast.net>
7343
7344 * reload.c (regno_clobbered_p): Fix typo.
7345
7346 2011-10-25 Dodji Seketeli <dodji@redhat.com>
7347
7348 * input.c (expand_location): Rewrite using linemap_resolve_location
7349 and linemap_expand_location. Add a comment.
7350
7351 2011-10-25 Jakub Jelinek <jakub@redhat.com>
7352
7353 PR tree-optimization/50596
7354 * tree-vect-stmts.c (vect_mark_relevant): Only use
7355 FOR_EACH_IMM_USE_FAST if lhs is SSA_NAME.
7356 (vectorizable_store): If is_pattern_stmt_p look through
7357 VIEW_CONVERT_EXPR on lhs.
7358 * tree-vect-patterns.c (check_bool_pattern, adjust_bool_pattern):
7359 Use unsigned type instead of signed.
7360 (vect_recog_bool_pattern): Optimize also stores into bool memory in
7361 addition to casts from bool to integral types.
7362 (vect_mark_pattern_stmts): If pattern_stmt already has vinfo
7363 created, don't create it again.
7364
7365 2011-10-25 Kai Tietz <ktietz@redhat.com>
7366
7367 * config/i386/i386.c (ix86_frame_pointer_required): Require
7368 frame-pointer, if setjmp is used for 32-bit ms-abi.
7369
7370 2011-10-24 Michael Meissner <meissner@linux.vnet.ibm.com>
7371
7372 * builtins.c (set_builtin_user_assembler_name): Remove extra
7373 newline added in October 11th, 2011 change.
7374
7375 2011-10-24 David S. Miller <davem@davemloft.net>
7376
7377 * config/sparc/little-endian.opt: Delete.
7378 * config.gcc: Remove references to config/sparc/little-endian.opt
7379 * doc/invoke.texi: Remove documentation of -mlittl-endian on sparc.
7380 * config/sparc/linux64.h: Delete references to -mlittle-endian.
7381 * config/sparc/netbsd-elf.h: Likewise.
7382 * config/sparc/openbsd64.h: Likewise.
7383 * config/sparc/sparc.h: Likewise.
7384 * config/sparc/sp64-elf.h: Likewise and delete overrides for
7385 BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
7386 * config/sparc/sparc.c (dump_target_flag_bits): Remove reference
7387 to MASK_LITTLE_ENDIAN.
7388 * config/sparc/sparc.opt (Mask(LITTLE_ENDIAN)): Delete.
7389
7390 * config/sparc/sparc.md: Only use F, G, and C constraints in FP insns.
7391 Only use D, Y, and Z constraints in vector insns.
7392
7393 * config/sparc/sparc.md (cpu_feature, enabled): New attributes.
7394 (*movsi_insn_novis3, *movsi_insn_vis3): Consolidate into one pattern
7395 called *movsi_insn.
7396 (*movdi_insn_sp32_v9_novis3, *movdi_insn_sp32_v9_vis3): Consolidate
7397 into *movdi_insn_sp32.
7398 (*movdi_insn_sp64_novis3, *movdi_insn_sp64_vis3): Consolidate into
7399 one pattern called *movdi_insn_sp64.
7400 (*movsf_insn_novis3, *movsf_insn_vis3, *movsf_insn_no_fpu):
7401 Consolidate into one pattern called *movsf_insn.
7402 (*movdf_insn_sp32_no_fpu, *movdf_insn_sp32_v9_novis3,
7403 *movdf_insn_sp32_v9_vis3, *movdf_insn_sp32_v9_no_fpu): Consolidate
7404 into *movdf_insn_sp32.
7405 (*movdf_insn_sp64_novis3, *movdf_insn_sp64_vis3,
7406 *movdf_insn_sp64_no_fpu): Consolidate into one pattern called
7407 *movdf_insn_sp64.
7408 (*zero_extendsidi2_insn_sp64_novis3,
7409 *zero_extendsidi2_insn_sp64_vis3): Consolidate into one pattern
7410 called *zero_extendsidi2_insn_sp64.
7411 (*sign_extendsidi2_insn_novis3, *sign_extendsidi2_insn_vis3):
7412 Consolidate into one pattern named *sign_extendsidi2_insn.
7413 (*mov<VM32:mode>_insn_novis3, *mov<VM32:mode>_insn_vis3):
7414 Consolidate into one pattern named *mov<VM32:mode>_insn.
7415 (*mov<VM64:mode>_insn_sp64_novis3,
7416 *mov<VM64:mode>_insn_sp64_novis3): Consolidate into one pattern
7417 named *mov<VM64:mode>_insn_sp64.
7418 (*mov<VM64:mode>_insn_sp32_novis3,
7419 *mov<VM64:mode>_insn_sp32_vis3): Consolidate into one pattern
7420 named *mov<VM64:mode>_insn_sp32.
7421
7422 2011-10-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7423
7424 * tree-ssa-strlen.c (get_string_length): Change assertion to STPCPY.
7425 (zero_length_string): Change assertion to accept strinfo without
7426 length but with stmt instead.
7427 Set the endptr pointer also if starting a new chain.
7428 (adjust_related_strinfos): Ignore strinfos marked for delayed
7429 length computation.
7430 (handle_builtin_strcpy): Mark earlier strinfo elements also for
7431 delayed length computation.
7432
7433 2011-10-24 Georg-Johann Lay <avr@gjlay.de>
7434
7435 PR target/50820
7436 Port from 4.6 branch r180379
7437 * doc/invoke.texi (AVR Options): New subsubsection to explain EIND
7438 handling and indirect jump/calls on devices > 128k.
7439
7440 2011-10-24 Anatoly Sokolov <aesok@post.ru>
7441 Georg-Johann Lay <avr@gjlay.de>
7442
7443 PR target/49824
7444 * doc/extend.texi (Declaring Attributes of Functions):
7445 Document OS_main and OS_task attributes.
7446 (Specifying Attributes of Variables): Move up
7447 subsection "AVR Variable Attributes" as of alphabetical order.
7448
7449 2011-10-24 Richard Guenther <rguenther@suse.de>
7450
7451 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Convert constants
7452 to vector element type.
7453 (vectorizable_assignment): Bail out for non-mode-precision operations.
7454 (vectorizable_shift): Likewise.
7455 (vectorizable_operation): Likewise.
7456 (vectorizable_type_demotion): Likewise.
7457 (vectorizable_type_promotion): Likewise.
7458 (vectorizable_store): Handle non-mode-precision stores.
7459 (vectorizable_load): Handle non-mode-precision loads.
7460 (get_vectype_for_scalar_type_and_size): Return a vector type
7461 for non-mode-precision integers.
7462 * tree-vect-loop.c (vectorizable_reduction): Bail out for
7463 non-mode-precision reductions.
7464
7465 2011-10-24 Julian Brown <julian@codesourcery.com>
7466
7467 * config/m68k/m68k.c (notice_update_cc): Tighten condition for
7468 setting CC_REVERSED for FP comparisons.
7469
7470 2011-10-24 Richard Guenther <rguenther@suse.de>
7471
7472 PR tree-optimization/50838
7473 * tree-data-ref.c (dr_analyze_indices): Properly canonicalize
7474 a MEM_REF base if we change it.
7475
7476 2011-10-24 Bernd Schmidt <bernds@codesourcery.com>
7477
7478 PR bootstrap/50836
7479 * rtlanal.c: Swap includes of "hard-reg-set.h" and "rtl.h".
7480
7481 PR rtl-optimization/50833
7482 * function.c (thread_prologue_and_epilogue_insns): Expect the
7483 return insn optimization only if optimize.
7484
7485 2011-10-24 Georg-Johann Lay <avr@gjlay.de>
7486
7487 * config/avr/avr.c: Break long lines.
7488 Define target hooks on the fly if applicable.
7489 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove first definition
7490 overridden later.
7491 (targetm): Move definition to end of file.
7492 (avr_can_eliminate): Make static on the fly.
7493 (avr_frame_pointer_required_p): Ditto.
7494 (avr_hard_regno_scratch_ok): Ditto.
7495 (avr_builtin_setjmp_frame_value): Make static on the fly.
7496 Indent according to coding rules.
7497 (avr_case_values_threshold): Ditto.
7498 (avr_attribute_table): Move down.
7499
7500 2011-10-24 Ira Rosen <ira.rosen@linaro.org>
7501
7502 PR tree-optimization/50730
7503 * tree-vect-data-refs.c (vect_analyze_data_refs): Stop basic block
7504 analysis if encountered unsupported data-ref.
7505
7506 2011-10-23 David S. Miller <davem@davemloft.net>
7507
7508 * config/sparc/sparc.c (sparc_option_override): Remove -mv8plus
7509 cpu adjustment.
7510 * config/sparc/linux64.h (CC1_SPEC): When defaulting to 64-bit,
7511 append -mcpu=v9 when -mv8plus is given.
7512
7513 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): We can move
7514 between float and non-float regs when VIS3.
7515 * config/sparc/sparc.c (eligible_for_restore_insn): We can't
7516 use a restore when the source is a float register.
7517 (sparc_split_regreg_legitimate): When VIS3 allow moves between
7518 float and integer regs.
7519 (sparc_register_move_cost): Adjust to account for VIS3 moves.
7520 (sparc_preferred_reload_class): On 32-bit with VIS3 when moving an
7521 integer reg to a class containing EXTRA_FP_REGS, constrain to FP_REGS.
7522 (sparc_secondary_reload): On 32-bit with VIS3 when moving between
7523 float and integer regs we sometimes need a FP_REGS class
7524 intermediate move to satisfy the reload. When this happens
7525 specify an extra cost of 2.
7526 (*movsi_insn): Rename to have "_novis3" suffix and add !VIS3 guard.
7527 (*movdi_insn_sp32_v9): Likewise.
7528 (*movdi_insn_sp64): Likewise.
7529 (*movsf_insn): Likewise.
7530 (*movdf_insn_sp32_v9): Likewise.
7531 (*movdf_insn_sp64): Likewise.
7532 (*zero_extendsidi2_insn_sp64): Likewise.
7533 (*sign_extendsidi2_insn): Likewise.
7534 (*movsi_insn_vis3): New insn.
7535 (*movdi_insn_sp32_v9_vis3): New insn.
7536 (*movdi_insn_sp64_vis3): New insn.
7537 (*movsf_insn_vis3): New insn.
7538 (*movdf_insn_sp32_v9_vis3): New insn.
7539 (*movdf_insn_sp64_vis3): New insn.
7540 (*zero_extendsidi2_insn_sp64_vis3): New insn.
7541 (*sign_extendsidi2_insn_vis3): New insn.
7542 (TFmode reg/reg split): Make sure both REG operands are float.
7543 (*mov<VM32:mode>_insn): Add "_novis3" suffix and !VIS3 guard. Remove
7544 easy constant to integer reg alternatives.
7545 (*mov<VM64:mode>_insn_sp64): Likewise.
7546 (*mov<VM64:mode>_insn_sp32_novis3): Likewise.
7547 (*mov<VM32:mode>_insn_vis3): New insn.
7548 (*mov<VM64:mode>_insn_sp64_vis3): New insn.
7549 (*mov<VM64:mode>_insn_sp32_vis3): New insn.
7550 (VM64 reg<-->reg split): New splitter for 32-bit.
7551
7552 * config/sparc/sparc.c (sparc_split_regreg_legitimate): New function.
7553 * config/sparc/sparc-protos.h (sparc_split_regreg_legitimate):
7554 Declare it.
7555 * config/sparc/sparc.md (DImode reg/reg split): Use it.
7556 (DFmode reg/reg split): Likewise.
7557
7558 * config/sparc/sparc.md (*movdi_insn_sp32_v9): Add alternatives for
7559 generating fzero and fone instructions.
7560 (DImode const_int --> reg splitter): Only trigger for integer regs.
7561
7562 * config/sparc/predicates.md (input_operand): Disallow vector
7563 constants other than 0 and -1.
7564 * config/sparc/sparc.c (sparc_preferred_reload_class): Return
7565 NO_REGS for vector constants other than 0 and -1.
7566
7567 * config/sparc/sparc.h (SPARC_FIRST_INT_REG, SPARC_LAST_INT_REG,
7568 SPARC_INT_REG_P): Define.
7569 (HARD_REGNO_NREGS): Use SPARC_INT_REG_P.
7570 (REGNO_OK_FOR_INDEX_P): Likewise.
7571 * config/sparc/sparc.c (gen_df_reg): Likewise.
7572 (eligible_for_return_delay): Likewise.
7573 (eligible_for_sibcall_delay): Likewise.
7574 (sparc_legitimate_address_p): Likewise.
7575 (emit_save_or_restore_regs): Likewise.
7576 (registers_ok_for_ldd_peep): Likewise.
7577 * config/spac/sparc.md (DI mode splitters): Likewise.
7578 (SF mode const splitters): Likewise.
7579 (DF mode splitters): Likewise.
7580 (32-bit DI mode logical op splitters): Likewise.
7581
7582 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
7583
7584 PR c++/50841
7585 Revert:
7586 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
7587
7588 PR c++/50810
7589 * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
7590
7591 2011-10-23 Uros Bizjak <ubizjak@gmail.com>
7592
7593 * config/i386/sse.md (avx2_lshl<mode>3): Remove insn pattern.
7594 (VI248_256): Remove mode iterator.
7595 * config/i386/i386.c (ix86_expand_vec_perm): Use gen_ashlv4di3
7596 instead of gen_avx2_lshlv4di3.
7597 (bdesc_args): Use CODE_FOR_ashl{v16hi,v8si,v4di}3 instead of
7598 CODE_FOR_avx2_lshl{v16hi,v8si,v4di}3.
7599
7600 2011-10-23 Uros Bizjak <ubizjak@gmail.com>
7601
7602 * config/i386/sse.md (sseintprefix): Rename from gthrfirstp.
7603 (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>): Delete expander.
7604 (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>) Merge insn
7605 pattern from *avx2_maskload<ssemodesuffix><avxsizesuffix> and
7606 *avx_maskload<ssemodesuffix><avxsizesuffix> using V48_AVX mode
7607 iterator. Use sseintprefix mode attribute.
7608 (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>): Delete expander.
7609 (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>) Merge insn
7610 pattern from *avx2_maskstore<ssemodesuffix><avxsizesuffix> and
7611 *avx_maskstore<ssemodesuffix><avxsizesuffix> using V48_AVX mode
7612 iterator. Use sseintprefix mode attribute.
7613 (*avx2_gathersi<mode>) Use sseintprefix and ssemodesuffix mode
7614 attributes.
7615 (*avx2_gatherdi<mode>): Ditto.
7616 (*avx2_gatherdi<mode>256): Ditto.
7617 (VI48_AVX2): Remove mode iterator.
7618 (gthrlastfp): Remove mode attribute.
7619
7620 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
7621
7622 PR c++/50810
7623 * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
7624
7625 2011-10-23 Tom de Vries <tom@codesourcery.com>
7626
7627 PR tree-optimization/50763
7628 * tree-ssa-tail-merge.c (same_succ_flush_bb): New function, factored
7629 out of ...
7630 (same_succ_flush_bbs): Use same_succ_flush_bb.
7631 (purge_bbs): Remove argument. Remove calls to same_succ_flush_bbs,
7632 release_last_vdef and delete_basic_block.
7633 (unlink_virtual_phi): New function.
7634 (update_vuses): Add and use vuse1_phi_args argument. Set var to
7635 SSA_NAME_VAR of vuse1 or vuse2, and use var. Handle case that
7636 def_stmt2 is NULL. Use phi result as phi arg in case vuse1 or vuse2
7637 is NULL_TREE. Replace uses of vuse1 if vuse2 is NULL_TREE. Fix code
7638 to limit replacement of uses. Propagate phi argument for phis with a
7639 single argument.
7640 (replace_block_by): Update vops if phi_vuse1 or phi_vuse2 is NULL_TREE.
7641 Set vuse1_phi_args if vuse1 is a phi defined in bb1. Add
7642 vuse1_phi_args as argument to call to update_vuses. Call
7643 release_last_vdef, same_succ_flush_bb, delete_basic_block. Update
7644 CDI_DOMINATORS info.
7645 (tail_merge_optimize): Remove argument in call to purge_bbs. Remove
7646 call to free_dominance_info. Only call calculate_dominance_info once.
7647
7648 2011-10-23 Eric Botcazou <ebotcazou@adacore.com>
7649
7650 * fold-const.c (invert_tree_comparison): Always invert EQ_EXPR/NE_EXPR.
7651
7652 PR tree-optimization/44683
7653 * tree-ssa-dom.c (record_edge_info): Record simple equivalences only if
7654 we can be sure that there are no signed zeros involved.
7655
7656 2011-10-23 Jan Hubicka <jh@suse.cz>
7657
7658 * ipa-inline.c (estimate_badness): Scale up and handle overflows.
7659
7660 2011-10-23 Uros Bizjak <ubizjak@gmail.com>
7661
7662 PR target/50788
7663 * config/i386/sse.md (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>):
7664 Remove (match_dup 0).
7665 (*avx2_maskload<ssemodesuffix><avxsizesuffix>): New insn pattern.
7666 (*avx_maskload<ssemodesuffix><avxsizesuffix>): Ditto.
7667 (*avx2_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
7668 (*avx_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
7669 (*avx2_maskmov<ssemodesuffix><avxsizesuffix>): Remove insn pattern.
7670 (*avx_maskmov<ssemodesuffix><avxsizesuffix>): Ditto.
7671
7672 2011-10-23 Ira Rosen <ira.rosen@linaro.org>
7673
7674 PR tree-optimization/50819
7675 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Remove
7676 the last argument.
7677 * tree-vect-loop.c (vect_analyze_loop_2): Update call to
7678 vect_analyze_data_ref_dependences.
7679 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Remove
7680 the last argument. Check load-after-store dependence for unknown
7681 dependencies in basic blocks.
7682 (vect_analyze_data_ref_dependences): Update call to
7683 vect_analyze_data_ref_dependences.
7684 * tree-vect-patterns.c (vect_recog_widen_shift_pattern): Fix typo.
7685 * tree-vect-slp.c (vect_bb_vectorizable_with_dependencies): Remove.
7686 (vect_slp_analyze_bb_1): Update call to
7687 vect_analyze_data_ref_dependences. Don't call
7688 vect_bb_vectorizable_with_dependencies.
7689
7690 2011-10-22 David S. Miller <davem@davemloft.net>
7691
7692 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS,
7693 SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
7694 * config/sparc/sparc.c (TARGET_SECONDARY_RELOAD): Redefine.
7695 (sparc_secondary_reload): New function.
7696
7697 * config/sparc/sparc.h (sparc_costs): Remove extern decl.
7698 (struct processor_costs): Move from here..
7699 * config/sparc/sparc.c (struct processor_costs): To here.
7700 (sparc_costs): Mark static.
7701
7702 * config/sparc/sparc.c (short_branch, reg_unused_after): Delete.
7703 * config/sparc/sparc-protos.h (short_branch, reg_unused_after):
7704 Get rid of declarations.
7705
7706 2011-10-21 Paul Brook <paul@codesourcery.com>
7707
7708 * config/c6x/c6x.c (c6x_asm_emit_except_personality,
7709 c6x_asm_init_sections): New functions.
7710 (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): Define.
7711
7712 2011-10-21 Jakub Jelinek <jakub@redhat.com>
7713
7714 PR target/50813
7715 * config/i386/i386.c (expand_vec_perm_even_odd_1): Handle
7716 V4DImode and V8SImode for !TARGET_AVX2.
7717
7718 2011-10-21 Bernd Schmidt <bernds@codesourcery.com>
7719
7720 PR bootstrap/50825
7721 * sched-deps.c (add_dependence): If not doing predication, promote
7722 REG_DEP_CONTROL to REG_DEP_ANTI.
7723
7724 2011-10-21 Georg-Johann Lay <avr@gjlay.de>
7725
7726 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Pass address of X
7727 instead of X to avr_legitimize_reload_address.
7728 * config/avr/avr-protos.h (avr_legitimize_reload_address): Change
7729 first argument's type from rtx to rtx*.
7730 * config/avr/avr.c (avr_legitimize_reload_address): Ditto.
7731 Pass PX to push_reload instead of &X. Change log messages for
7732 better distinction.
7733
7734 2011-10-21 Roland Stigge <stigge@antcom.de>
7735
7736 PR translation/47064
7737 * params.def: Fix typo "compilatoin" -> "compilation".
7738
7739 2011-10-21 H.J. Lu <hongjiu.lu@intel.com>
7740 Kirill Yukhin <kirill.yukhin@intel.com>
7741
7742 PR target/50740
7743 * config/i386/driver-i386.c (host_detect_local_cpu): Do cpuid 7 only
7744 if max_level allows that.
7745
7746 2011-10-21 Bernd Schmidt <bernds@codesourcery.com>
7747
7748 * reg-notes.def (DEP_CONTROL): New.
7749 * sched-ebb.c (add_deps_for_risky_insns): Add a REG_DEP_CONTROL when
7750 not doing speculation.
7751 * rtlanal.c (record_hard_reg_sets, find_all_hard_reg_sets,
7752 record_hard_reg_uses_1, record_hard_reg_uses): New functions.
7753 * function.c (record_hard_reg_sets, record_hard_reg_uses,
7754 record_hard_reg_uses_1): Remove; move to rtlanal.c.
7755 * lists.c (copy_INSN_LIST, concat_INSN_LIST): New functions.
7756 * haifa-sched.c: Swap includes of "rtl.h" and "hard-reg-set.h".
7757 (MUST_RECOMPUTE_SPEC_P): New macro.
7758 (real_insn_for_shadow): New function.
7759 (cond_clobbered_p, recompute_todo_spec, check_clobbered_conditions,
7760 toggle_cancelled_flags): New static functions.
7761 (schedule_insn): Relax an assert to only check for empty hard back
7762 dependencies. Skip cancelled dependencies. Call
7763 check_clobbered_conditions.
7764 (copy_insn_list): Remove function, renamed moved to lists.c.
7765 (save_backtrack_point): Use new spelling copy_INSN_LIST.
7766 (unschedule_insns_until): Ensure TODO_SPEC is reset properly.
7767 (restore_last_backtrack_point): Likewise. Call toggle_cancelled_flags.
7768 (estimate_insn_tick): Ignore cancelled dependencies.
7769 (haifa_speculate_insn): Move declaration.
7770 (try_ready): Move code into recompute_todo_spec and call it. Tweak
7771 some asserts. Ensure predicated patterns are restored if necessary.
7772 Dump DEP_CONTROL flag.
7773 (haifa_change_pattern): Merge with sched_change_pattern.
7774 (sched_change_pattern): Remove function.
7775 * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP): Remove. All
7776 uses changed to simply not test NON_FLUSH_JUMP_P.
7777 (ds_to_dk, dk_to_ds, dump_dep, ds_to_dt, dump_ds, check_dep): Handle
7778 REG_DEP_CONTROL.
7779 (dep_spec_p): If DO_PREDICATION, REG_DEP_CONTROL is speculative.
7780 (reg_pending_control_uses, control_dependency_cache): New static
7781 variables.
7782 (sched_get_reverse_condition_uncached): New function.
7783 (sd_find_dep_between): Remove pointless assert. Look in
7784 control_dependency_cache.
7785 (ask_dependency_caches, set_dependency_caches, sd_delete_dep,
7786 extend_dependency_caches, sched_deps_finish): Handle REG_DEP_CONTROL
7787 and control_dependency_cache.
7788 (sd_unresolve_dep): Use dep_spec_p.
7789 (add_dependence): Now a wrapper around add_dependence_1, handling
7790 REG_DEP_CONTROL specially.
7791 (flush_pending_lists): Clear pending_jump_insns.
7792 (sched_analyze_1): Handle pending_jump_insns like a memory flush.
7793 (sched_analyze_2): Unconditionally add to pending memory flushes,
7794 keep previous behaviour but apply it to pending_jump_insns instead.
7795 (sched_analyze_insn): Defer adding jump reg dependencies using
7796 reg_pending_control_uses; add them to the control_uses list. Handle
7797 pending_jump_insns and control_uses when adding dependence lists.
7798 (deps_analyze_insn): Update INSN_COND_DEPS.
7799 (deps_analyze_insn): Add jumps to pending_jump_insns rather than
7800 last_pending_memory_flush.
7801 (init_deps): Initialize pending_jump_insns.
7802 (free_deps): Free control_uses.
7803 (remove_from_deps): Remove from pending_jump_insns.
7804 (init_deps_global): Allocate reg_pending_control_uses).
7805 (finish_deps_global): Free it.
7806 (add_dependence_1): Renamed from add_dependence. Handle
7807 REG_DEP_CONTROL.
7808 * rtl.h (record_hard_reg_uses, find_all_hard_reg_sets): Declare.
7809 (copy_INSN_LIST, concat_INSN_LIST): Declare.
7810 * sched-int.h (struct deps_reg): Add control_uses.
7811 (struct deps_desc): Add pending_jump_insns.
7812 (struct _haifa_deps_insn_data): Add cond_deps.
7813 (struct _haifa_insn_data): Add must_recompute_spec and predicated_pat.
7814 (INSN_COND_DEPS, PREDICATED_PAT): New macros.
7815 (BITS_PER_DEP_WEAK): Adjust for two extra bits in the word.
7816 (DEP_CONTROL): New macro.
7817 (DEP_TYPES): Include it.
7818 (HARD_DEP): Adjust definition.
7819 (DEP_CANCELLED): New macro.
7820 (enum SCHED_FLAGS): Add DO_PREDICATION.
7821 (sched_get_reverse_condition_uncached, real_insn_for_shadow): Declare.
7822 * sched-rgn.c (concat_INSN_LIST): Remove function.
7823 (deps_join): Handle pending_jump_insns.
7824 (free_pending_lists): Likewise.
7825 * config/c6x/c6x.c (c6x_set_sched_flags): Set DO_PREDICATION for final
7826 schedule.
7827
7828 2011-10-21 Georg-Johann Lay <avr@gjlay.de>
7829
7830 PR target/50820
7831 * config/avr/libgcc.S (__EIND__): New define to 0x3C.
7832 (__tablejump__): Consistently use EIND for indirect jump/call.
7833 (__tablejump_elpm__): Ditto.
7834
7835 2011-10-21 Bernd Schmidt <bernds@codesourcery.com>
7836
7837 * config/c6x/c6x.md (attr "op_pattern"): New.
7838 (load_sdata_pic, mov<mode>_insn for QIHIM and SISFVM): Set it.
7839 * config/c6x/c6x-mult.md.in (mulhi3_VARIANT_, mulhisi3_insn_VARIANT_):
7840 Likewise.
7841 * config/c6x/c6x-mult.md: Regenerate.
7842 * config/c6x/c6x.c: Include "regrename.h".
7843 (unit_req_table): New typedef.
7844 (unit_reqs): Use it for the declaration.
7845 (unit_req_factor, get_unit_reqs, merge_unit_reqs, unit_req_imbalance,
7846 get_unit_operand_masks, try_rename_operands, reshuffle_units): New
7847 static functions.
7848 (count_unit_reqs): New arg reqs. All callers changed. Use
7849 get_unit_reqs, and don't merge here.
7850 (res_mii): New arg reqs. All callers changed. Rewrite to use a loop
7851 using unit_req_factor.
7852 (hwloop_optimize): Call reshuffle_units. Call merge_unit_reqs after
7853 count_unit_reqs.
7854 (c6x_reorg): Add reg notes problem, and call df_analyze.
7855 * Makefile.in ($(out_object_file)): Depend on regrename.h.
7856
7857 2011-10-21 Kai Tietz <ktietz@redhat.com>
7858
7859 * fold-const.c (simple_operand_p_2): Handle integral
7860 casts from boolean-operands.
7861
7862 2011-10-21 Jan Hubicka <jh@suse.cz>
7863
7864 * cgraph.c (dump_cgraph_node): Dump alias flag.
7865 * cgraphunit.c (handle_alias_pairs): Handle weakrefs with
7866 no destination.
7867 (get_alias_symbol): New function.
7868 (output_weakrefs): Output also weakrefs with no destinatoin.
7869 (lto_output_node): Output weakref alias flag when at function boundary.
7870
7871 2011-10-21 Andrew Stubbs <ams@codesourcery.com>
7872
7873 PR target/50809
7874 * config/arm/driver-arm.c (vendors): Make static.
7875
7876 2011-10-21 Uros Bizjak <ubizjak@gmail.com>
7877
7878 * config/i386/i386.c (ix86_emit_swdivsf): Force b into register.
7879 (ix86_emit_swsqrtsf): Force a into register.
7880
7881 2011-10-20 Mike Stump <mikestump@comcast.net>
7882
7883 * regcprop.c (copyprop_hardreg_forward_1): Update recog_data
7884 after validate_change wipes it out.
7885
7886 2011-10-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7887
7888 * config/spu/spu.md ("vec_permv16qi"): Reduce selector modulo 32
7889 before using the shufb instruction.
7890
7891 2011-10-20 Kirill Yukhin <kirill.yukhin@intel.com>
7892
7893 PR target/50766
7894 * config/i386/i386.md (bmi_bextr_<mode>): Update register/
7895 memory operand order.
7896 (bmi2_bzhi_<mode>3): Ditto.
7897 (bmi2_pdep_<mode>3): Ditto.
7898 (bmi2_pext_<mode>3): Ditto.
7899
7900 2011-10-20 Richard Henderson <rth@redhat.com>
7901
7902 * target.def (vec_perm_const_ok): Rename from builtin_vec_perm_ok.
7903 * optabs.c (can_vec_perm_expr_p): Update to match.
7904 (expand_vec_perm_expr): Likewise.
7905 * config/i386/i386.c (TARGET_VECTORIZE_VEC_PERM_CONST_OK): Rename
7906 from TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK.
7907 * doc/tm.texi.in: Likewise.
7908
7909 2011-10-20 Sergey Ostanevich <sergos.gnu@gmail.com>
7910
7911 PR target/50572
7912 * config/i386/i386.c (processor_target_table): Change Atom
7913 align_loops_max_skip to 15.
7914
7915 2011-10-20 Richard Henderson <rth@redhat.com>
7916
7917 * target.def (builtin_vec_perm): Remove.
7918 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
7919
7920 * config/i386/i386.c (ix86_expand_vec_perm_builtin): Remove.
7921 (IX86_BUILTIN_VEC_PERM_*): Remove.
7922 (bdesc_args): Remove vec_perm builtins
7923 (ix86_expand_builtin): Likewise.
7924 (ix86_expand_vec_perm_const_1): Rename from
7925 ix86_expand_vec_perm_builtin_1.
7926 (extract_vec_perm_cst): Merge into...
7927 (ix86_vectorize_vec_perm_const_ok): ... here. Rename from
7928 ix86_vectorize_builtin_vec_perm_ok.
7929 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
7930
7931 * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): Remove.
7932 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
7933
7934 * config/spu/spu.c (spu_builtin_vec_perm): Remove.
7935 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
7936
7937 2011-10-20 Uros Bizjak <ubizjak@gmail.com>
7938
7939 PR target/47989
7940 * config/i386/i386.h (RECIP_MASK_DEFAULT): New define.
7941 * config/i386/i386.op (recip_mask): Initialize with RECIP_MASK_DEFAULT.
7942 * doc/invoke.texi (ix86 Options, -mrecip): Document that GCC
7943 implements vectorized single float division and vectorized sqrtf(x)
7944 with reciprocal sequence with additional Newton-Raphson step with
7945 -ffast-math.
7946
7947 2011-10-20 Dodji Seketeli <dodji@redhat.com>
7948
7949 * ggc-zone.c (ggc_internal_alloc_zone_stat): Rename
7950 ggc_alloced_size_order_for_request into ggc_round_alloc_size like
7951 it was done in ggc-page.c.
7952
7953 PR other/50659
7954 * doc/cppopts.texi: Use @smallexample/@end smallexample in
7955 documentation for -fdebug-cpp instead of @quotation/@end quotation
7956 that is not supported by contrib/texi2pod.pl.
7957
7958 2011-10-19 Jan Hubicka <jh@suse.cz>
7959
7960 * ipa-inline.c (inline_small_functions): Always update all calles after
7961 inlining.
7962
7963 2011-10-19 Jan Hubicka <jh@suse.cz>
7964
7965 PR bootstrap/50709
7966 * ipa-inline.c (inline_small_functions): Fix checking code to not make
7967 effect on fibheap stability.
7968
7969 2011-10-20 Maxim Kuvyrkov <maxim@codesourcery.com>
7970
7971 * config/m68k/t-linux (M68K_MLIB_CPU): Add ColdFire CPUs.
7972
7973 2011-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7974
7975 PR target/50106
7976 * config/arm/arm.c (thumb_unexpanded_epilogue): Handle return
7977 reg size from 1-3.
7978
7979 2011-10-20 Richard Guenther <rguenther@suse.de>
7980
7981 * tree-ssa-loop-im.c (stmt_cost): Add WIDEN_*, FMA_EXPR
7982 and rotates to the set of expensive operations.
7983
7984 2011-10-19 David S. Miller <davem@davemloft.net>
7985
7986 * config/sparc/sparc.c (sparc_expand_move): Use can_create_pseudo_p.
7987 (sparc_emit_set_const32): Likewise.
7988 (sparc_emit_set_const64_longway): Likewise.
7989 (sparc_emit_set_const64): Likewise.
7990 (sparc_legitimize_pic_address): Likewise.
7991 (memory_ok_for_ldd): Likewise.
7992
7993 2011-10-20 Dehao Chen <dehao@google.com>
7994
7995 * profile.c (compute_branch_probabilities): Compute and dump the
7996 overlap between the static estimation and the instrumentation profile.
7997 (OVERLAP_BASE): New macro.
7998 (compute_frequency_overlap): New function
7999
8000 2011-10-19 Jakub Jelinek <jakub@redhat.com>
8001
8002 * config/i386/i386.c (expand_vec_perm_vpshufb2_vpermq_even_odd): Use
8003 d->op1 instead of d->op0 for the second vpshufb.
8004 (expand_vec_perm_even_odd_1): For V8SImode fix vpshufd immediates.
8005 (ix86_expand_vec_perm_const): If mask indicates two operands are
8006 needed, but both are the same and expanding them as d.op0 == d.op1
8007 failed, retry with d.op0 != d.op1.
8008 (ix86_expand_vec_perm_builtin): Likewise. Handle sorry printing
8009 also for d.nelt == 32.
8010
8011 PR middle-end/50754
8012 * cfgexpand.c (expand_debug_expr): Handle WIDEN_LSHIFT_EXPR, ignore
8013 VEC_PERM_EXPR.
8014
8015 2011-10-19 Bernd Schmidt <bernds@codesourcery.com>
8016
8017 * regrename.h: New file.
8018 * regrename.c: Include it. Also include "emit-rtl.h".
8019 (struct du_head, struct du_chain, du_head_p DEF_VEC and
8020 DEF_VEC_ALLOC_P): Move to regrename.h.
8021 (do_replace): Remove declaration.
8022 (insn_rr): New variable.
8023 (cur_operand): New static variable.
8024 (regrename_chain_from_id): Renamed from chain_from_id and no longer
8025 static. All callers changed.
8026 (record_operand_use): New static function.
8027 (scan_rtx_reg): Use it.
8028 (find_best_rename_reg): New function, broken out of rename_chains.
8029 (rename_chains): Use it. Don't update chain regno and nregs here, ...
8030 (regrename_do_replace): ... do it here instead. Renamed from
8031 do_replace, and no longer static. All callers changed.
8032 (regrename_analyze): No longer static. New arg bb_mask.
8033 All callers changed. If bb_mask is nonzero, use it to limit the
8034 number of basic blocks we analyze. If we failed to analyze a block,
8035 clear insn operand data.
8036 (record_out_operands): New arg insn_info. Update cur_operand if it is
8037 nonnull.
8038 (build_def_use): If insn_rr is nonnull, pass an insn_info to
8039 record_out_operands, and update cur_operand here as well.
8040 (regrename_init, regrename_finish): New functions.
8041 (regrename_optimize): Use them.
8042 * Makefile.in (regrename.o): Adjust dependencies.
8043
8044 2011-10-19 Tom de Vries <tom@codesourcery.com>
8045
8046 PR tree-optimization/50769
8047 * tree-ssa-tail-merge.c (replace_block_by): Calculate phi_vuse2
8048 unconditionally. Handle case that phi_vuse2 is not an SSA_NAME. Add
8049 dummy argument .MEM to phi when increasing number of arguments of phi by
8050 redirecting edges to the block with phi.
8051
8052 2011-10-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8053
8054 PR bootstrap/50777
8055 * configure.ac: Save and restore CXXFLAGS around
8056 gcc_AC_CHECK_DECLS uses.
8057 Check for madvise() declaration with g++ if --enable-build-with-cxx.
8058 * configure: Regenerate.
8059 * config.in: Regenerate.
8060 * ggc-page.c (USING_MADVISE): Also check HAVE_DECL_MADVISE.
8061
8062 2011-10-19 Alexandre Oliva <aoliva@redhat.com>
8063
8064 PR debug/49310
8065 * var-tracking.c (loc_exp_dep, onepart_aux): New structs.
8066 (variable_part): Replace offset with union.
8067 (enum onepart_enum, onepart_enum_t): New.
8068 (variable_def): Drop cur_loc_changed, add onepart.
8069 (value_chain_def, const_value_chain): Remove.
8070 (VAR_PART_OFFSET, VAR_LOC_1PAUX): New macros, with checking.
8071 (VAR_LOC_DEP_LST, VAR_LOC_DEP_LSTP): New macros.
8072 (VAR_LOC_FROM, VAR_LOC_DEPTH, VAR_LOC_DEP_VEC): Likewise.
8073 (value_chain_pool, value_chains): Remove.
8074 (dropped_values): New.
8075 (struct parm_reg): Only if HAVE_window_save.
8076 (vt_stack_adjustments): Don't record register arguments.
8077 (dv_as_rtx): New.
8078 (dv_onepart_p): Return a onepart_enum_t.
8079 (onepart_pool): New.
8080 (dv_pool): Remove.
8081 (dv_from_rtx): New.
8082 (variable_htab_free): Release onepart aux data. Reset flags.
8083 (value_chain_htab_hash, value_chain_htab_eq): Remove.
8084 (unshare_variable): Use onepart field. Propagate onepart aux
8085 data or offset. Drop cur_loc_changed.
8086 (val_store): Cope with NULL insn. Rephrase dump output. Check
8087 for unsuitable locs. Add FIXME on using cselib locs.
8088 (val_reset): Remove FIXME of unfounded concerns.
8089 (val_resolve): Check for unsuitable locs. Add FIXME on using
8090 cselib locs.
8091 (variable_union): Use onepart field, adjust access to offset.
8092 (NO_LOC_P): New.
8093 (VALUE_CHANGED, DECL_CHANGED): Update doc.
8094 (set_dv_changed): Clear NO_LOC_P when changed.
8095 (find_loc_in_1pdv): Use onepart field.
8096 (intersect_loc_chains): Likewise.
8097 (unsuitable_loc): New.
8098 (loc_cmp): Keep ENTRY_VALUEs at the end of the loc list.
8099 (add_value_chain, add_value_chains): Remove.
8100 (add_cselib_value_chains, remove_value_chain): Likewise.
8101 (remove_value_chains, remove_cselib_value_chains): Likewise.
8102 (canonicalize_loc_order_check): Use onepart. Drop cur_loc_changed.
8103 (canonicalize_values_star, canonicalize_vars_star): Use onepart.
8104 (variable_merge_over_cur): Likewise. Adjust access to offset.
8105 Drop cur_loc_changed.
8106 (variable_merge_over_src): Use onepart field.
8107 (remove_duplicate_values): Likewise.
8108 (variable_post_merge_new_vals): Likewise.
8109 (find_mem_expr_in_1pdv): Likewise.
8110 (dataflow_set_preserve_mem_locs): Likewise. Drop cur_loc_changed
8111 and value chains.
8112 (dataflow_set_remove_mem_locs): Likewise. Use VAR_LOC_FROM.
8113 (variable_different_p): Use onepart field. Move onepart test out
8114 of the loop.
8115 (argument_reg_set): Drop.
8116 (add_uses, add_stores): Preserve but do not record in dynamic
8117 tables equivalences for ENTRY_VALUEs and CFA_based addresses.
8118 Avoid unsuitable address expressions.
8119 (EXPR_DEPTH): Unlimit.
8120 (EXPR_USE_DEPTH): Repurpose PARAM_MAX_VARTRACK_EXPR_DEPTH.
8121 (prepare_call_arguments): Use DECL_RTL_IF_SET.
8122 (dump_var): Adjust access to offset.
8123 (variable_from_dropped, recover_dropped_1paux): New.
8124 (variable_was_changed): Drop cur_loc_changed. Use onepart.
8125 Preserve onepart aux in empty_var. Recover empty_var and onepart
8126 aux from dropped_values.
8127 (find_variable_location_part): Special-case onepart. Adjust
8128 access to offset.
8129 (set_slot_part): Use onepart. Drop cur_loc_changed. Adjust
8130 access to offset. Initialize onepaux. Drop value chains.
8131 (delete_slot_part): Drop value chains. Use VAR_LOC_FROM.
8132 (VEC (variable, heap), VEC (rtx, stack)): Define.
8133 (expand_loc_callback_data): Drop dummy, cur_loc_changed,
8134 ignore_cur_loc. Add expanding, pending, depth.
8135 (loc_exp_dep_alloc, loc_exp_dep_clear): New.
8136 (loc_exp_dep_insert, loc_exp_dep_set): New.
8137 (notify_dependents_of_resolved_value): New.
8138 (update_depth, vt_expand_var_loc_chain): New.
8139 (vt_expand_loc_callback): Revamped.
8140 (resolve_expansions_pending_recursion): New.
8141 (INIT_ELCD, FINI_ELCD): New.
8142 (vt_expand_loc): Use the new macros above. Drop ignore_cur_loc
8143 parameter, adjust all callers.
8144 (vt_expand_loc_dummy): Drop.
8145 (vt_expand_1pvar): New.
8146 (emit_note_insn_var_location): Operate on non-debug decls only.
8147 Revamp multi-part cur_loc recomputation and one-part expansion.
8148 Drop cur_loc_changed. Adjust access to offset.
8149 (VEC (variable, heap)): Drop.
8150 (changed_variables_stack, changed_values_stack): Drop.
8151 (check_changed_vars_0, check_changed_vars_1): Remove.
8152 (check_changed_vars_2, check_changed_vars_3): Remove.
8153 (values_to_stack, remove_value_from_changed_variables): New.
8154 (notify_dependents_of_changed_value, process_changed_values): New.
8155 (emit_notes_for_changes): Revamp onepart updates.
8156 (emit_notes_for_differences_1): Use onepart. Drop cur_loc_changed
8157 and value chains. Propagate onepaux. Recover empty_var and onepaux
8158 from dropped_values.
8159 (emit_notes_for_differences_2): Drop value chains.
8160 (emit_notes_in_bb): Adjust.
8161 (vt_emit_notes): Drop value chains, changed_variables_stack.
8162 Initialize and release dropped_values.
8163 (create_entry_value): Revamp.
8164 (vt_add_function_parameter): Use new interface.
8165 (note_register_arguments): Remove.
8166 (vt_initialize): Drop value chains and register arguments.
8167 (vt_finalize): Drop value chains. Release windowed_parm_regs only
8168 if HAVE_window_save.
8169 * rtl.h: Document various pass-local uses of RTL flags.
8170 * tree.h (DECL_RTL_KNOWN_SET): New.
8171 * doc/invoke.texi (param max-vartrack-expr-depth): Update
8172 description and default.
8173
8174 2011-10-19 Georg-Johann Lay <avr@gjlay.de>
8175
8176 PR target/50447
8177 * config/avr/avr.md (cc): New alternative out_plus_noclobber.
8178 (adjust_len): Ditto.
8179 (addhi3): Don't pipe through short; use gen_int_mode instead.
8180 Prior to reload, expand to gen_addhi3_clobber.
8181 (*addhi3): Use avr_out_plus_noclobber if applicable, use
8182 out_plus_noclobber in cc and adjust_len attribute.
8183 (addhi3_clobber): 2 new RTL peepholes.
8184 (addhi3_clobber): New insn.
8185 * config/avr/avr-protos.h: (avr_out_plus_noclobber): New prototype.
8186 * config/avr/avr.c (avr_out_plus_noclobber): New function.
8187 (notice_update_cc): Handle CC_OUT_PLUS_NOCLOBBER.
8188 (avr_out_plus_1): Tweak if only MSB is +/-1 and other bytes are 0.
8189 Set cc0 to set_zn for adiw on 16-bit values.
8190 (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS_NOCLOBBER.
8191 (expand_epilogue): No need to add 0 to frame_pointer_rtx.
8192
8193 2011-10-19 Richard Guenther <rguenther@suse.de>
8194
8195 PR middle-end/50780
8196 * tree-ssa-forwprop.c (forward_propagate_into_cond): Verify
8197 the condition is properly gimple before using it.
8198 * tree-eh (stmt_could_throw_1_p): Properly extract the
8199 operation type from comparisons.
8200
8201 2011-10-19 Roland Stigge <stigge@antcom.de>
8202
8203 PR translation/48638
8204 * plugin.c (add_new_plugin): Fix typo in fatal_error message.
8205
8206 2011-10-19 Roland Stigge <stigge@antcom.de>
8207
8208 PR translation/49517
8209 * config/rx/rx.c (rx_print_operand): Fix typo in warning message.
8210
8211 2011-10-19 Richard Guenther <rguenther@suse.de>
8212
8213 PR middle-end/50768
8214 * gimple-fold.c (gimplify_and_update_call_from_tree): Rewrite.
8215
8216 2011-10-19 Andrey Belevantsev <abel@ispras.ru>
8217
8218 PR rtl-optimization/50340
8219 * sel-sched-ir.c (update_target_availability): LHS register
8220 availability is not known if the unavailable LHS of the other
8221 expression is a different register.
8222
8223 2011-10-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8224
8225 PR target/50310
8226 * config/spu/spu.c (spu_emit_vector_compare): Support unordered
8227 floating-point comparisons.
8228
8229 2011-10-19 Jan Hubicka <jh@suse.cz>
8230
8231 * cgraphunit.c (handle_alias_pairs): Also handle wekref with
8232 destination declared.
8233 (output_weakrefs): New function.
8234 * varpool.c (varpool_create_variable_alias): Handle external aliases.
8235
8236 2011-10-19 Jakub Jelinek <jakub@redhat.com>
8237
8238 * dwarf2out.c (loc_descriptor): For SUBREG pass SUBREG_REG's mode as
8239 second argument instead of mode.
8240
8241 2011-10-18 Jakub Jelinek <jakub@redhat.com>
8242
8243 * config/i386/i386.c (ix86_expand_vec_perm): In merge_two use
8244 mode SUBREG of operands[0] as target.
8245 (valid_perm_using_mode_p): Don't ignore higher bits of d->perm.
8246 (expand_vec_pshufb): For V8SImode vmode emit avx2_permvarv8si.
8247 (expand_vec_perm_1): Handle identity and some broadcast
8248 permutations.
8249 (expand_vec_perm_interleave2): Handle also 32-byte modes, using
8250 vperm2[fi]128 or vpunpck[lh]* followed by single insn permutation.
8251 For d->testing_p return true earlier to avoid creating more GC
8252 garbage.
8253 (expand_vec_perm_vpermq_perm_1): New function.
8254 (expand_vec_perm_vpshufb2_vpermq): For d->testing_p return true
8255 earlier to avoid creating more GC garbage. Fix handling of
8256 V16HImode. Avoid some SUBREGs in SET_DEST.
8257 (expand_vec_perm_broadcast_1): Return false for 32-byte integer
8258 vector modes.
8259 (expand_vec_perm_vpshufb4_vpermq2): New function.
8260 (ix86_expand_vec_perm_builtin_1): Call expand_vec_perm_vpermq_perm_1
8261 and expand_vec_perm_vpshufb4_vpermq2.
8262
8263 2011-10-18 Andrew Stubbs <ams@codesourcery.com>
8264
8265 * config/arm/driver-arm.c (host_detect_local_cpu): Close the file
8266 before exiting.
8267
8268 2011-10-18 Andrew Stubbs <ams@codesourcery.com>
8269
8270 PR tree-optimization/50717
8271 * tree-ssa-math-opts.c (is_widening_mult_p): Remove the 'type'
8272 parameter. Calculate 'type' from stmt.
8273 (convert_mult_to_widen): Update call the is_widening_mult_p.
8274 (convert_plusminus_to_widen): Likewise.
8275
8276 2011-10-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8277
8278 * config/spu/spu.c (struct machine_function): New data structure.
8279 (spu_init_machine_status): New function.
8280 (spu_option_override): Install it.
8281 (get_pic_reg): Set and use cfun->machine->pic_reg.
8282 (spu_split_immediate): Do not set crtl->uses_pic_offset_table.
8283 (need_to_save_reg): Use cfun->machine->pic_reg instead of
8284 checking crtl->uses_pic_offset_table.
8285 (spu_expand_prologue): Likewise.
8286
8287 2011-10-18 Jakub Jelinek <jakub@redhat.com>
8288
8289 PR tree-optimization/50735
8290 * function.c (gimplify_parameters): Use create_tmp_var instead of
8291 create_tmp_reg. If parm is not TREE_ADDRESSABLE and type is complex
8292 or vector type, set DECL_GIMPLE_REG_P.
8293
8294 2011-10-18 Andrew Stubbs <ams@codesourcery.com>
8295
8296 * config.host (arm*-*-linux*): Add driver-arm.o and x-arm.
8297 * config/arm/arm.opt: Add 'native' processor_type and
8298 arm_arch enum values.
8299 * config/arm/arm.h (host_detect_local_cpu): New prototype.
8300 (EXTRA_SPEC_FUNCTIONS): New define.
8301 (MCPU_MTUNE_NATIVE_SPECS): New define.
8302 (DRIVER_SELF_SPECS): New define.
8303 * config/arm/driver-arm.c: New file.
8304 * config/arm/x-arm: New file.
8305 * doc/invoke.texi (ARM Options): Document -mcpu=native,
8306 -mtune=native and -march=native.
8307
8308 2011-10-18 Alexander Monakov <amonakov@ispras.ru>
8309
8310 PR rtl-optimization/50205
8311 * sel-sched.c (count_occurrences_1): Simplify on the assumption that
8312 p->x is a register. Forbid substitution when the same register is
8313 found in a different mode.
8314 (count_occurrences_equiv): Assert that 'what' is a register.
8315
8316 2011-10-18 Richard Guenther <rguenther@suse.de>
8317
8318 PR tree-optimization/50767
8319 * tree-ssa-pre.c (create_expression_by_pieces): Update the
8320 folded statement.
8321
8322 2011-10-18 Julian Brown <julian@codesourcery.com>
8323
8324 * config/arm/arm.c (arm_block_move_unaligned_straight)
8325 (arm_adjust_block_mem, arm_block_move_unaligned_loop)
8326 (arm_movmemqi_unaligned): New.
8327 (arm_gen_movmemqi): Support unaligned block copies.
8328
8329 2011-10-18 Ira Rosen <ira.rosen@linaro.org>
8330
8331 * doc/md.texi (vec_widen_ushiftl_hi, vec_widen_ushiftl_lo,
8332 vec_widen_sshiftl_hi, vec_widen_sshiftl_lo): Document.
8333 * tree-pretty-print.c (dump_generic_node): Handle WIDEN_LSHIFT_EXPR,
8334 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
8335 (op_code_prio): Likewise.
8336 (op_symbol_code): Handle WIDEN_LSHIFT_EXPR.
8337 * optabs.c (optab_for_tree_code): Handle
8338 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
8339 (init-optabs): Initialize optab codes for vec_widen_u/sshiftl_hi/lo.
8340 * optabs.h (enum optab_index): Add OTI_vec_widen_u/sshiftl_hi/lo.
8341 * genopinit.c (optabs): Initialize the new optabs.
8342 * expr.c (expand_expr_real_2): Handle
8343 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
8344 * gimple-pretty-print.c (dump_binary_rhs): Likewise.
8345 * tree-vectorizer.h (NUM_PATTERNS): Increase to 8.
8346 * tree.def (WIDEN_LSHIFT_EXPR, VEC_WIDEN_LSHIFT_HI_EXPR,
8347 VEC_WIDEN_LSHIFT_LO_EXPR): New.
8348 * cfgexpand.c (expand_debug_expr): Handle new tree codes.
8349 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
8350 vect_recog_widen_shift_pattern.
8351 (vect_handle_widen_mult_by_const): Rename...
8352 (vect_handle_widen_op_by_const): ...to this. Handle shifts.
8353 Add a new argument, update documentation.
8354 (vect_recog_widen_mult_pattern): Assume that only second
8355 operand can be constant. Update call to
8356 vect_handle_widen_op_by_const.
8357 (vect_recog_over_widening_pattern): Fix typo.
8358 (vect_recog_widen_shift_pattern): New.
8359 * tree-vect-stmts.c (vectorizable_type_promotion): Handle
8360 widening shifts.
8361 (supportable_widening_operation): Likewise.
8362 * tree-inline.c (estimate_operator_cost): Handle new tree codes.
8363 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
8364 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
8365 * config/arm/neon.md (neon_vec_<US>shiftl_<mode>): New.
8366 (vec_widen_<US>shiftl_lo_<mode>, neon_vec_<US>shiftl_hi_<mode>,
8367 vec_widen_<US>shiftl_hi_<mode>, neon_vec_<US>shift_left_<mode>):
8368 Likewise.
8369 * config/arm/predicates.md (const_neon_scalar_shift_amount_operand):
8370 New.
8371 * config/arm/iterators.md (V_innermode): New.
8372 * tree-vect-slp.c (vect_build_slp_tree): Require same shift operand
8373 for widening shift.
8374
8375 2011-10-18 Richard Guenther <rguenther@suse.de>
8376
8377 * tree-ssa-alias.h (struct pt_solution): Remove
8378 vars_contains_restrict member.
8379 (pt_solutions_same_restrict_base): Remove.
8380 (pt_solution_set): Adjust.
8381 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Remove
8382 vars_contains_restrict handling.
8383 (dump_points_to_solution): Likewise.
8384 (ptr_derefs_may_alias_p): Do not call pt_solutions_same_restrict_base.
8385 * tree-ssa-structalias.c (struct variable_info): Remove is_restrict_var
8386 field.
8387 (new_var_info): Do not initialize it.
8388 (ipa_escaped_pt): Adjust.
8389 (make_constraint_from_restrict): Make the tag global.
8390 (make_constraint_from_global_restrict): New function.
8391 (make_constraint_from_heapvar): Remove.
8392 (create_variable_info_for): Do not make restrict vars point
8393 to NONLOCAL.
8394 (intra_create_variable_infos): Likewise.
8395 (find_what_var_points_to): Remove vars_contains_restrict handling.
8396 (pt_solution_set): Adjust.
8397 (pt_solution_ior_into): Likewise.
8398 (pt_solutions_same_restrict_base): Remove.
8399 (compute_points_to_sets): Do not test is_restrict_var.
8400 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
8401 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
8402
8403 2011-10-18 Tom de Vries <tom@codesourcery.com>
8404
8405 PR tree-optimization/50672
8406 * tree-ssa-dce.c (mark_virtual_operand_for_renaming): New function,
8407 factored out of ...
8408 (mark_virtual_phi_result_for_renaming): Use
8409 mark_virtual_operand_for_renaming.
8410 * tree-flow.h (mark_virtual_operand_for_renaming): Declare.
8411 * tree-ssa-tail-merge.c (release_last_vdef): New function.
8412 (purge_bbs): Add update_vops parameter. Call release_last_vdef for each
8413 deleted basic block.
8414 (tail_merge_optimize): Add argument to call to purge_bbs.
8415
8416 2011-10-18 Richard Guenther <rguenther@suse.de>
8417
8418 PR middle-end/50716
8419 * expr.c (get_object_or_type_alignment): New function.
8420 (expand_assignment): Use it.
8421 (expand_expr_real_1): Likewise.
8422
8423 2011-10-18 Dodji Seketeli <dodji@redhat.com>
8424
8425 PR bootstrap/50760
8426 * input.c (dump_line_table_statistics): Use long, not size_t.
8427
8428 2011-10-17 Eric Botcazou <ebotcazou@adacore.com>
8429
8430 * config/sparc/sparc.md (in_call_delay): Fix formatting issues.
8431
8432 2011-10-17 Simon Baldwin <simonb@google.com>
8433 Ian Lance Taylor <iant@google.com>
8434
8435 * configure.ac: Add --with-native-system-header-dir. Set and
8436 substitute NATIVE_SYSTEM_HEADER_DIR. Use native_system_header
8437 when setting target_header_dir.
8438 * config.gcc: Always set native_system_header_dir.
8439 (*-*-gnu*): Set native_system_header_dir. Don't use t-gnu.
8440 (i[34567]86-pc-msdosdjgpp*): Set native_system_header_dir. Don't
8441 use i386/t-djgpp.
8442 (i[34567]86-*-mingw* | x86_64-*-mingw*): Set
8443 native_system_header_dir.
8444 (spu-*-elf*): Set native_system_header_dir.
8445 * Makefile.in (NATIVE_SYSTEM_HEADER_DIR): Set to
8446 @NATIVE_SYSTEM_HEADER_DIR@.
8447 (PREPROCESSOR_DEFINES): Define NATIVE_SYSTEM_HEADER_DIR.
8448 * cppdefault.c (STANDARD_INCLUDE_DIR): Don't define.
8449 (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
8450 STANDARD_INCLUDE_COMPONENT.
8451 (cpp_include_defaults): Don't use SYSTEM_INCLUDE_DIR. Rename
8452 STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
8453 * system.h: Poison SYSTEM_INCLUDE_DIR, STANDARD_INCLUDE_DIR, and
8454 STANDARD_INCLUDE_COMPONENT.
8455 * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Remove.
8456 * config/i386/t-mingw-w32: Likewise.
8457 * config/i386/t-mingw-w64: Likewise.
8458 * config/spu/t-spu-elf: Likewise.
8459 * config/i386/t-djgpp: Remove.
8460 * config/t-gnu: Remove.
8461 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Don't define.
8462 (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
8463 STANDARD_INCLUDE_COMPONENT.
8464 * config/i386/djgpp.h (STANDARD_INCLUDE_DIR): Don't define.
8465 * config/spu/spu-elf.h: Likewise.
8466 * config/vms/xm-vms.h: Likewise.
8467 * config/gnu.h: Likewise.
8468 * config/openbsd.h (INCLUDE_DEFAULTS): Change STANDARD_INCLUDE_DIR
8469 and STANDARD_INCLUDE_COMPONENT to NATIVE_SYSTEM_HEADER_DIR and
8470 NATIVE_SYSTME_HEADER_COMPONENT.
8471 * doc/install.texi (Configuration): Document
8472 --with-native-system-header-dir. Mention it in the documentation
8473 for --with-sysroot and --with-build-sysroot.
8474 * doc/tm.texi.in (Driver): Don't document SYSTEM_INCLUDE_DIR or
8475 STANDARD_INCLUDE_DIR. Rename STANDARD_INCLUDE_COMPONENT to
8476 NATIVE_SYSTEM_HEADER_COMPONENT. Rename uses of
8477 STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
8478 * doc/fragments.texi (Target Fragment): Don't document
8479 NATIVE_SYSTEM_HEADER_DIR.
8480 * configure, doc/tm.texi: Rebuild.
8481
8482 2011-10-17 Richard Henderson <rth@redhat.com>
8483
8484 * config/sparc/sparc.md: Use register_or_zero_operand where rJ
8485 is the constraint.
8486
8487 * config/sparc/sparc.md (vec_perm_constv8qi, vec_perm<mode>): New
8488 patterns.
8489 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): New function.
8490 * config/sparc/sparc-protos.h (sparc_expand_vec_perm_bmask): Declare.
8491
8492 2011-10-17 David S. Miller <davem@davemloft.net>
8493
8494 * config/sparc/sparc-modes.def: Add single entry vector modes for
8495 DImode and SImode.
8496 * config/sparc/sparc.md (V32, V32I, V64, V64I, V64N8): Delete
8497 mode iterators.
8498 (mov<V32:mode>): Revert back to plain SFmode pattern.
8499 (*movsf_insn): Likewise.
8500 (mov<V64:mode>): Revert back to plain DFmode pattern.
8501 (*movdf_insn_sp32): Likewise.
8502 (*movdf_insn_sp32_v9): Likewise.
8503 (*movdf_insn_sp64): Likewise.
8504 (V64 mode splitters) Likewise.
8505 (addsi3): Remove VIS alternatives.
8506 (subsi3): Likewise.
8507 (and<V64I:mode>3): Revert to DImode only pattern.
8508 (and<V64I:mode>3_sp32): Likewise.
8509 (*and<V64I:mode>3_sp64): Likewise.
8510 (and<V32I:mode>3): Likewise.
8511 (*and_not_<V64I:mode>_sp32): Likewise.
8512 (*and_not_<V64I:mode>_sp64): Likewise.
8513 (*and_not_<V32I:mode>): Likewise.
8514 (ior<V64I:mode>3): Likewise.
8515 (*ior<V64I:mode>3_sp32): Likewise.
8516 (*ior<V64I:mode>3_sp64): Likewise.
8517 (ior<V32I:mode>3): Likewise.
8518 (*or_not_<V64I:mode>_sp32): Likewise.
8519 (*or_not_<V64I:mode>_sp64): Likewise.
8520 (*or_not_<V32I:mode>): Likewise.
8521 (xor<V64I:mode>3): Likewise.
8522 (*xor<V64I:mode>3_sp32): Likewise.
8523 (*xor<V64I:mode>3_sp64): Likewise.
8524 (xor<V32I:mode>3): Likewise.
8525 (V64I mode splitters): Likewise.
8526 (*xor_not_<V64I:mode>_sp32): Likewise.
8527 (*xor_not_<V64I:mode>_sp64): Likewise.
8528 (*xor_not_<V32I:mode>): Likewise.
8529 (one_cmpl<V64I:mode>2): Likewise.
8530 (*one_cmpl<V64I:mode>2_sp32): Likewise.
8531 (*one_cmpl<V64I:mode>2_sp64): Likewise.
8532 (one_cmpl<V32I:mode>2): Likewise.
8533 (VM32, VM64, VMALL): New mode iterators.
8534 (vbits, vconstr, vfptype): New mode attributes.
8535 (mov<VMALL:mode>): New expander.
8536 (*mov<VM32:mode>_insn): New insn.
8537 (*mov<VM64:mode>_insn_sp64): New insn.
8538 (*mov<VM64:mode>_insn_sp32): New insn, and associated splitter
8539 specifically for the register to memory case.
8540 (vec_init<mode>): New expander.
8541 (VADDSUB): New mode iterator.
8542 (<plusminus_insn>v2si3, <plusminus_insn>v2hi3): Remove and replace
8543 with...
8544 (<plusminus_insn><mode>3): New consolidated pattern.
8545 (VL): New mode iterator for logical operations.
8546 (vlsuf): New more attribute.
8547 (vlop): New code iterator.
8548 (vlinsn, vlninsn): New code attributes.
8549 (<code><mode>3): New insn to non-negated vector logical ops.
8550 (*not_<code><mode>3): Likewise for negated variants.
8551 (*nand<mode>_vis): New insn.
8552 (vlnotop): New code iterator.
8553 (*<code>_not1<mode>_vis, *<code>_not2<mode>_vis): New insns.
8554 (one_cmpl<mode>2): New insn.
8555 (faligndata<V64I:mode>_vis): Rewrite to use VM64 iterator.
8556 (bshuffle<VM64:mode>_vis): Likewise.
8557 (v<vis3_shift_patname><mode>3): Use GCM mode iterator.
8558 (fp<plusminus_insn>64_vis): Use V1DI mode.
8559 (VASS mode iterator): Use V1SI not SI mode.
8560 * config/sparc/sparc.c (sparc_vis_init_builtins): Account for
8561 single-entry vector mode changes.
8562 (sparc_expand_builtin): Likewise.
8563 (sparc_expand_vector_init): New function.
8564 * config/sparc/sparc-protos.h (sparc_expand_vector_init): Declare.
8565
8566 2011-10-17 Kai Tietz <ktietz@redhat.com>
8567
8568 * fold-const.c (simple_operand_p_2): New function.
8569 (fold_truthop): Rename to
8570 (fold_truth_andor_1): function name.
8571 Additionally remove branching creation for logical and/or.
8572 (fold_truth_andor): Handle branching creation for logical and/or here.
8573
8574 2011-10-17 Andi Kleen <ak@linux.intel.com>
8575
8576 * ggc-page.c (USING_MADVISE): Adjust ifdef to check for USING_MMAP.
8577
8578 2011-10-17 Georg-Johann Lay <avr@gjlay.de>
8579
8580 * config/avr/avr.h (ASSEMBLER_DIALECT): Remove.
8581 * config/avr/avr.md (mcu_have_movw, mcu_mega): Remove attributes.
8582 (adjust_len): Add alternative "call".
8583 (isa, enabled): New insn attributes.
8584 (length): Use match_test with AVR_HAVE_JMP_CALL instead of
8585 mcu_mega attribute.
8586 (*sbrx_branch<mode>): Ditto.
8587 (*sbrx_and_branch<mode>): Ditto.
8588 (*sbix_branch): Ditto.
8589 (*sbix_branch_bit7): Ditto.
8590 (*sbix_branch_tmp): Ditto.
8591 (*sbix_branch_tmp_bit7): Ditto.
8592 (jump): Ditto.
8593 (negsi2): Use attribute "isa" instead of assembler dialect.
8594 (extendhisi2): Ditto.
8595 (call_insn, call_value_insn): Set adjust_len attribute.
8596 (indirect_jump): Indent to coding rules.
8597 (call_prologue_saves): Use isa attribute instead of mcu_mega.
8598 (epilogue_restores): Ditto. Fix setting of SP as described in the
8599 RTX pattern.
8600 (*indirect_jump): Fusion of *jcindirect_jump, *njcindirect_jump
8601 and *indirect_jump_avr6.
8602 (*tablejump): Fusion of *tablejump_rjmp and *tablejump_lib.
8603 (*jcindirect_jump, *njcindirect_jump, *indirect_jump_avr6): Remove.
8604 (*tablejump_rjmp, *tablejump_lib): Remove.
8605 * config/avr/avr.c (adjust_insn_length): Handle ADJUST_LEN_CALL.
8606
8607 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
8608
8609 PR c++/50757
8610 * doc/invoke.texi ([Wnonnull]): Update.
8611
8612 2011-10-17 Richard Henderson <rth@redhat.com>
8613
8614 PR 50746
8615 * optabs.c (expand_vec_perm_expr): Fix indexing error.
8616
8617 2011-10-17 Sergio Durigan Junior <sergiodj@redhat.com>
8618
8619 * configure.ac: Display `yes' if the SystemTap header has been found.
8620 * configure: Regenerate.
8621
8622 2011-10-08 Andi Kleen <ak@linux.intel.com>
8623
8624 PR other/50636
8625 * config.in, configure: Regenerate.
8626 * configure.ac (madvise): Add to AC_CHECK_FUNCS.
8627 * ggc-page.c (USING_MADVISE): Add.
8628 (page_entry): Add discarded field.
8629 (alloc_page): Check for discarded pages.
8630 (release_pages): Add USING_MADVISE branch.
8631
8632 2011-10-17 Richard Guenther <rguenther@suse.de>
8633
8634 PR tree-optimization/50729
8635 * tree-vrp.c (extract_range_from_unary_expr_1): Remove redundant test.
8636 (simplify_conversion_using_ranges): Properly test the
8637 intermediate result.
8638
8639 2011-10-15 Tom Tromey <tromey@redhat.com>
8640 Dodji Seketeli <dodji@redhat.com>
8641
8642 * ggc.h (ggc_round_alloc_size): Declare new public entry point.
8643 * ggc-none.c (ggc_round_alloc_size): New public stub function.
8644 * ggc-page.c (ggc_alloced_size_order_for_request): New static
8645 function. Factorized from ggc_internal_alloc_stat.
8646 (ggc_round_alloc_size): New public function. Uses
8647 ggc_alloced_size_order_for_request.
8648 (ggc_internal_alloc_stat): Use ggc_alloced_size_order_for_request.
8649 * ggc-zone.c (ggc_round_alloc_size): New public function extracted
8650 from ggc_internal_alloc_zone_stat.
8651 (ggc_internal_alloc_zone_stat): Use ggc_round_alloc_size.
8652 * toplev.c (general_init): Initialize
8653 line_table->alloced_size_for_request.
8654
8655 2011-10-15 Tom Tromey <tromey@redhat.com>
8656 Dodji Seketeli <dodji@redhat.com>
8657
8658 * input.c (ONE_K, ONE_M, SCALE, STAT_LABEL, FORMAT_AMOUNT): New macros.
8659 (num_expanded_macros_counter, num_macro_tokens_counter): Declare
8660 new counters.
8661 (dump_line_table_statistics): Define new function.
8662 * input.h (dump_line_table_statistics): Declare new function.
8663 * toplev.c (dump_memory_report): Call dump_line_table_statistics.
8664
8665 2011-10-15 Tom Tromey <tromey@redhat.com>
8666 Dodji Seketeli <dodji@redhat.com>
8667
8668 * doc/cppopts.texi: Document -fdebug-cpp.
8669 * doc/invoke.texi: Add -fdebug-cpp to the list of preprocessor options.
8670
8671 2011-10-15 Tom Tromey <tromey@redhat.com>
8672 Dodji Seketeli <dodji@redhat.com>
8673
8674 * gcc/diagnostic.h (diagnostic_report_current_module): Add a
8675 location parameter.
8676 * diagnostic.c (diagnostic_report_current_module): Add a location
8677 parameter to the function definition. Use it instead of
8678 input_location. Resolve the virtual location rather than just
8679 looking up its map and risking to touch a resulting macro map.
8680 (default_diagnostic_starter): Pass the relevant diagnostic
8681 location to diagnostic_report_current_module.
8682 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): New.
8683 (virt_loc_aware_diagnostic_finalizer): Likewise.
8684 (diagnostic_report_current_function): Pass the
8685 relevant location to diagnostic_report_current_module.
8686 * tree-diagnostic.h (virt_loc_aware_diagnostic_finalizer): Declare
8687 new function.
8688 * toplev.c (general_init): By default, use the new
8689 virt_loc_aware_diagnostic_finalizer as diagnostic finalizer.
8690 * Makefile.in: Add vec.h dependency to tree-diagnostic.c.
8691
8692 2011-10-15 Tom Tromey <tromey@redhat.com>
8693 Dodji Seketeli <dodji@redhat.com>
8694
8695 * doc/cppopts.texi (-ftrack-macro-expansion): Document new option.
8696 * doc/invoke.texi (-ftrack-macro-expansion): Add this to the list of
8697 preprocessor related options.
8698
8699 2011-10-15 Tom Tromey <tromey@redhat>
8700 Dodji Seketeli <dodji@redhat.com>
8701
8702 * input.h (struct expanded_location): Move to libcpp/line-map.h.
8703 (LOCATION_COLUMN): New accessor
8704 (in_system_header_at): Use linemap_location_in_system_header_p.
8705 * diagnostic.c (diagnostic_report_current_module): Adjust to avoid
8706 touching the internals of struct line_map. Use the public API instead.
8707 (diagnostic_report_diagnostic): Don't use relational operator '<'
8708 on virtual locations. Use linemap_location_before_p instead.
8709 * input.c (expand_location): Adjust to expand to the tokens'
8710 spelling location when macro location tracking is on.
8711
8712
8713 2011-10-08 Andi Kleen <ak@linux.intel.com>
8714
8715 * ggc-page.c (GGC_QUIRE_SIZE): Increase to 512
8716
8717 2011-10-13 Andi Kleen <ak@linux.intel.com>
8718
8719 * toplev.c (compile_file): Rename __gnu_slim_lto to __gnu_lto_slim.
8720
8721 2011-10-16 Ira Rosen <ira.rosen@linaro.org>
8722
8723 PR tree-optimization/50727
8724 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Add
8725 DEF_STMT to the list of statements to be replaced by the
8726 pattern statements.
8727
8728 2011-10-16 Eric Botcazou <ebotcazou@adacore.com>
8729
8730 PR rtl-optimization/50615
8731 * combine.c (distribute_notes) <REG_ARGS_SIZE>: Skip if I3 is a no-op.
8732
8733 2011-10-16 Jakub Jelinek <jakub@redhat.com>
8734
8735 PR tree-optimization/50596
8736 * tree-vectorizer.h (NUM_PATTERNS): Increase to 7.
8737 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
8738 vect_recog_bool_pattern.
8739 (check_bool_pattern, adjust_bool_pattern_cast,
8740 adjust_bool_pattern, vect_recog_bool_pattern): New functions.
8741
8742 2011-10-16 Ira Rosen <ira.rosen@linaro.org>
8743
8744 * tree-vect-stmts.c (vectorizable_load): For SLP without permutation
8745 treat the first load of the node as the first element in its
8746 interleaving chain.
8747 * tree-vect-slp.c (vect_get_and_check_slp_defs): Swap the operands if
8748 necessary and possible.
8749 (vect_build_slp_tree): Add new argument. Allow load groups of any size
8750 in basic blocks. Keep all the loads for further permutation check.
8751 Use the new argument to determine if there is a permutation. Update
8752 the recursive calls.
8753 (vect_supported_load_permutation_p): Allow subchains of interleaving
8754 chains in basic block vectorization.
8755 (vect_analyze_slp_instance): Update the call to vect_build_slp_tree.
8756 Check load permutation based on the new parameter.
8757 (vect_schedule_slp_instance): Don't start from the first element in
8758 interleaving chain unless the loads are permuted.
8759
8760 2011-10-15 Jan Hubicka <jh@suse.cz>
8761
8762 PR target/48668
8763 PR target/50689
8764 * cgraphunit.c (cgraph_expand_function): Expand thunks and alises
8765 after function body.
8766
8767 2011-10-15 Richard Henderson <rth@redhat.com>
8768
8769 * tree-vect-slp.c: Include langhooks.h.
8770 (vect_create_mask_and_perm): Emit VEC_PERM_EXPR, not a builtin.
8771 (vect_transform_slp_perm_load): Use can_vec_perm_expr_p. Simplify
8772 mask creation for VEC_PERM_EXPR.
8773 * tree-vect-stmts.c (perm_mask_for_reverse): Return the mask,
8774 not the builtin.
8775 (reverse_vec_elements): Emit VEC_PERM_EXPR not a builtin.
8776 * Makefile.in (tree-vect-slp.o): Update dependency.
8777 * optabs.c (can_vec_perm_expr_p): Allow NULL as unknown constant.
8778
8779 2011-10-15 Alan Modra <amodra@gmail.com>
8780
8781 PR bootstrap/50738
8782 * ifcvt.c (dead_or_predicable): Revert accidental commit with
8783 HAVE_simple_return test.
8784
8785 2011-10-15 Alan Modra <amodra@gmail.com>
8786
8787 * ifcvt.c (dead_or_predicable): Disable if-conversion when
8788 doing so is likely to kill a shrink-wrapping opportunity.
8789
8790 PR rtl-optimization/49941
8791 * jump.c (mark_jump_label_1): Set JUMP_LABEL for simple_return jumps.
8792
8793 * rtl.h (set_return_jump_label): Declare.
8794 * function.c (set_return_jump_label): New function, extracted..
8795 (thread_prologue_and_epilogue_insns): ..from here. Use it in
8796 another instance to set return jump_label.
8797 * cfgrtl.c (force_nonfallthru_and_redirect): Use set_return_jump_label.
8798 * reorg.c (find_end_label): Likewise.
8799
8800 2011-10-14 David S. Miller <davem@davemloft.net>
8801
8802 * config/sparc/sol2.h: Protect -m{cpu,tune}=native handling
8803 with a more complete cpp test.
8804 * config/sparc/linux64.h: Likewise.
8805 * config/sparc/linux.h: Likewise.
8806 * config/sparc/sparc.opt (sparc_debug): New target variable.
8807 (mdebug): New target option.
8808 * config/sparc/sparc.h (MASK_DEBUG_OPTIONS, MASK_DEBUG_ALL,
8809 TARGET_DEBUG_OPTIONS): New defines.
8810 * config/sparc/sparc.c (debug_target_flag_bits,
8811 debug_target_flags): New functions.
8812 (sparc_option_override): Add name strings back to cpu_table[].
8813 Parse -mdebug string. When TARGET_DEBUG_OPTIONS is true, print
8814 out the target flags before and after override processing as well
8815 as the selected cpu. If MASK_V8PLUS, make sure that the selected
8816 cpu is at least v9.
8817
8818 2011-10-15 Oleg Endo <oleg.endo@t-online.de>
8819
8820 PR target/49263
8821 * config/sh/sh.h (ZERO_EXTRACT_ANDMASK): New macro.
8822 * config/sh/sh.c (sh_rtx_costs): Add test instruction case.
8823 * config/sh/sh.md (tstsi_t): Name existing insn. Make inner
8824 and instruction commutative.
8825 (tsthi_t, tstqi_t, tstqi_t_zero, tstsi_t_and_not,
8826 tstsi_t_zero_extract_eq, tstsi_t_zero_extract_xor,
8827 tstsi_t_zero_extract_subreg_xor_little,
8828 tstsi_t_zero_extract_subreg_xor_big): New insns.
8829 (*movsicc_t_false, *movsicc_t_true): Replace space with tab in
8830 asm output.
8831 (*andsi_compact): Reorder alternatives so that K08 is considered first.
8832
8833 2011-10-14 Eric Botcazou <ebotcazou@adacore.com>
8834
8835 PR target/50354
8836 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if the default
8837 processor is at least V9 and TARGET_64BIT_DEFAULT is defined.
8838
8839 2011-10-14 Gerald Pfeifer <gerald@pfeifer.com>
8840
8841 * invoke.texi (AVR Options): Avoid \leq{}.
8842
8843 2011-10-14 Kai Tietz <ktietz@redhat.com>
8844
8845 * gimplify.c (gimplify_expr): Take care that for bitwise-binary
8846 transformation the operands have compatible types.
8847
8848 2011-10-14 Jakub Jelinek <jakub@redhat.com>
8849
8850 * config/i386/sse.md (vec_widen_smult_hi_v8hi,
8851 vec_widen_smult_lo_v8hi, vec_widen_umult_hi_v8hi,
8852 vec_widen_umult_lo_v8hi): Macroize using VI2_AVX2
8853 mode iterator and any_extend code iterator.
8854 (vec_widen_<s>mult_hi_v8si, vec_widen_<s>mult_lo_v8si): New expanders.
8855 (vec_widen_smult_hi_v4si, vec_widen_smult_lo_v4si): Enable
8856 also for TARGET_SSE4_1 using pmuldq insn.
8857 (sdot_prodv8hi): Macroize using VI2_AVX2 iterator.
8858 (sse2_sse4_1): New code attr.
8859 (udot_prodv4si): Macroize using any_extend code iterator.
8860 (<s>dot_prodv8si): New expander.
8861
8862 2011-10-14 Yakovlev Vladimir <vladimir.b.yakovlev@intel.com>
8863
8864 * config/i386/i386.c (atom_cost): Changed cost for loading
8865 QImode using movzbl.
8866
8867 2011-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8868
8869 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo in my
8870 change on October 11th, 2011.
8871
8872 2011-10-14 Jakub Jelinek <jakub@redhat.com>
8873
8874 * config/i386/sse.md (vec_interleave_high<mode>,
8875 vec_interleave_low<mode>): Add AVX2 expanders for VI_256 modes.
8876 * config/i386/i386.c (expand_vec_perm_interleave3): New function.
8877 (ix86_expand_vec_perm_builtin_1): Call it.
8878
8879 2011-10-14 Georg-Johann Lay <avr@gjlay.de>
8880
8881 Fix thinko from r179765
8882 * config/avr/avr.c (avr_option_override): Don't override
8883 flag_omit_frame_pointer if not actually needed.
8884
8885 2011-10-14 Georg-Johann Lay <avr@gjlay.de>
8886
8887 PR target/46278
8888 * doc/invoke.texi (AVR Options): Document -mstrict-X.
8889
8890 * config/avr/avr.opt (-mstrict-X): New option.
8891 (avr_strict_X): New variable reflecting -mstrict-X.
8892 * config/avr/avr.c (avr_reg_ok_for_addr_p): Add parameter
8893 outer_code and pass it down to avr_regno_mode_code_ok_for_base_p.
8894 (avr_legitimate_address_p): Pass outer_code to
8895 avr_reg_ok_for_addr_p and use that function in case PLUS.
8896 (avr_mode_code_base_reg_class): Depend on avr_strict_X.
8897 (avr_regno_mode_code_ok_for_base_p): Ditto, and depend on outer_code.
8898 (avr_option_override): Disable -fcaller-saves if -mstrict-X is on.
8899
8900 2011-10-14 Jakub Jelinek <jakub@redhat.com>
8901
8902 * config/i386/sse.md (neg<mode>2): Use VI_AVX2 iterator instead
8903 of VI_128.
8904
8905 * config/i386/sse.md (mulv2di3): Macroize using VI8_AVX2 iterator.
8906 (ashl<mode>3): Use VI248_AVX2 iterator instead of VI248_128.
8907 Use <sseinsnmode> instead of TI in mode attr.
8908
8909 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
8910
8911 * config/arm/linux-atomic-64bit.c: New (based on linux-atomic.c).
8912 * config/arm/linux-atomic.c: Change comment to point to 64bit version.
8913 (SYNC_LOCK_RELEASE): Instantiate 64bit version.
8914 * config/arm/t-linux-eabi: Pull in linux-atomic-64bit.c.
8915
8916 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
8917
8918 * config/arm/arm.c (arm_output_ldrex): Support ldrexd.
8919 (arm_output_strex): Support strexd.
8920 (arm_output_it): New helper to output it in Thumb2 mode only.
8921 (arm_output_sync_loop): Support DI mode. Change comment to
8922 not support const_int.
8923 (arm_expand_sync): Support DI mode.
8924 * config/arm/arm.h (TARGET_HAVE_LDREXBHD): Split into LDREXBH
8925 and LDREXD.
8926 * config/arm/iterators.md (NARROW): move from sync.md.
8927 (QHSD): New iterator for all current ARM integer modes.
8928 (SIDI): New iterator for SI and DI modes only.
8929 * config/arm/sync.md (sync_predtab): New mode_attr.
8930 (sync_compare_and_swapsi): Fold into sync_compare_and_swap<mode>.
8931 (sync_lock_test_and_setsi): Fold into sync_lock_test_and_setsi<mode>.
8932 (sync_<sync_optab>si): Fold into sync_<sync_optab><mode>.
8933 (sync_nandsi): Fold into sync_nand<mode>.
8934 (sync_new_<sync_optab>si): Fold into sync_new_<sync_optab><mode>.
8935 (sync_new_nandsi): Fold into sync_new_nand<mode>.
8936 (sync_old_<sync_optab>si): Fold into sync_old_<sync_optab><mode>.
8937 (sync_old_nandsi): Fold into sync_old_nand<mode>.
8938 (sync_compare_and_swap<mode>): Support SI & DI.
8939 (sync_lock_test_and_set<mode>): Likewise.
8940 (sync_<sync_optab><mode>): Likewise.
8941 (sync_nand<mode>): Likewise.
8942 (sync_new_<sync_optab><mode>): Likewise.
8943 (sync_new_nand<mode>): Likewise.
8944 (sync_old_<sync_optab><mode>): Likewise.
8945 (sync_old_nand<mode>): Likewise.
8946 (arm_sync_compare_and_swapsi): Turn into iterator on SI & DI.
8947 (arm_sync_lock_test_and_setsi): Likewise.
8948 (arm_sync_new_<sync_optab>si): Likewise.
8949 (arm_sync_new_nandsi): Likewise.
8950 (arm_sync_old_<sync_optab>si): Likewise.
8951 (arm_sync_old_nandsi): Likewise.
8952 (arm_sync_compare_and_swap<mode> NARROW): use sync_predtab, fix indent.
8953 (arm_sync_lock_test_and_setsi<mode> NARROW): Likewise.
8954 (arm_sync_new_<sync_optab><mode> NARROW): Likewise.
8955 (arm_sync_new_nand<mode> NARROW): Likewise.
8956 (arm_sync_old_<sync_optab><mode> NARROW): Likewise.
8957 (arm_sync_old_nand<mode> NARROW): Likewise.
8958
8959 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
8960
8961 PR target/48126
8962 * config/arm/arm.c (arm_output_sync_loop): Move label before barrier.
8963
8964 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
8965
8966 * config/arm/arm.h (TARGET_HAVE_DMB_MCR): MCR Not available in Thumb1.
8967
8968 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
8969
8970 * doc/invoke.texi ([Wformat-zero-length]): Tidy.
8971
8972 2011-10-14 Jakub Jelinek <jakub@redhat.com>
8973
8974 * gimple.c (walk_stmt_load_store_addr_ops): Call visit_addr also
8975 on COND_EXPR/VEC_COND_EXPR comparison operands if they are ADDR_EXPRs.
8976
8977 2011-10-14 Richard Guenther <rguenther@suse.de>
8978
8979 PR tree-optimization/50723
8980 * ipa-split.c (split_function): Use GSI_CONTINUE_LINKING.
8981
8982 2011-10-14 Nicola Pero <nicola.pero@meta-innovation.com>
8983
8984 * gengtype.c (files_rules): Added rules for objc/objc-map.h and
8985 objc/objc-map.c.
8986
8987 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
8988
8989 PR c++/17212
8990 * doc/invoke.texi ([Wformat-zero-length]): Update.
8991
8992 2011-10-14 Iain Sandoe <iains@gcc.gnu.org>
8993
8994 PR bootstrap/50699
8995 * config/darwin.c (darwin_patch_builtin): Adjust argument type. Only
8996 build for powerpc targets. (darwin_patch_builtins): Only build for
8997 powerpc targets.
8998
8999 2011-10-14 Jakub Jelinek <jakub@redhat.com>
9000
9001 * config/i386/sse.md (*avx_cvtdq2pd256_2): Rename to...
9002 (avx_cvtdq2pd256_2): ... this.
9003 (sseunpackfltmode): New mode attr.
9004 (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi,
9005 vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): Macroize
9006 using VI2_AVX2 iterator.
9007 (vec_unpacku_float_hi_v8si, vec_unpacku_float_lo_v8si): New expanders.
9008
9009 2011-10-13 David S. Miller <davem@davemloft.net>
9010
9011 * config/sparc/sparc.md (plusminus): New code iterator.
9012 (plusminus_insn): New code attr.
9013 (addv2si3, subv2si3, addv4hi3, subv4hi3, addv2hi3, subv2hi3): Merge
9014 using plusminus and plusminus_insn.
9015 (fpadd64_vis, fpsub64_vis): Likewise.
9016
9017 2011-10-13 Richard Henderson <rth@redhat.com>
9018
9019 * doc/md.texi (vec_perm): Document fallback to byte permutation.
9020 * genopinit.c (optabs): Add vec_perm_const.
9021 * optabs.c (can_vec_perm_expr_p): Rename from expand_vec_perm_expr_p.
9022 Reject non-vector modes. Allow fallback to byte permutation.
9023 (expand_vec_perm_expr_1): Split out from ...
9024 (expand_vec_perm_expr): ... here. Allow fallback to byte permutation.
9025 * optabs.h (DOI_vec_perm_const, vec_perm_const_optab): New.
9026 * tree-vect-generic.c (lower_vec_perm): Update for name change.
9027
9028 2011-10-13 Richard Henderson <rth@redhat.com>
9029
9030 * config/rs6000/altivec.md (vec_permv16qi): New pattern.
9031
9032 * config/rs6000/spu.md (vec_permv16qi): New pattern.
9033
9034 * config/i386/i386.c (ix86_expand_vec_perm_const): New.
9035 * config/i386/i386-protos.h: Update.
9036 * config/i386/sse.md (VEC_PERM_CONST): New mode iterator.
9037 (vec_perm_const<VEC_PERM_CONST>): New expander.
9038
9039 * optabs.c (expand_vector_broadcast): New.
9040 (expand_binop): Expand scalar shifts of vectors to vector shifts
9041 of vectors, if the former isn't supported.
9042 * tree-vect-generic.c (expand_vector_operations_1): Don't do that
9043 here; always simplify to scalar shift of vector if possible.
9044
9045 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix mode
9046 test for vector splat.
9047
9048 2011-10-13 Jakub Jelinek <jakub@redhat.com>
9049
9050 * config/i386/sse.md (vec_set<mode>): Change V_128 iterator mode to V.
9051
9052 2011-10-13 Jakub Jelinek <jakub@redhat.com>
9053 Richard Guenther <rguenther@suse.de>
9054
9055 * tree-ssa.c (maybe_optimize_var): Drop TREE_ADDRESSABLE from vector
9056 or complex vars even if their DECL_UID is in not_reg_needs bitmap.
9057
9058 2011-10-13 Jakub Jelinek <jakub@redhat.com>
9059
9060 * config/i386/sse.md (reduc_umin_v8hi): New pattern.
9061 * config/i386/i386.c (ix86_build_const_vector): Handle
9062 also V32QI, V16QI, V16HI and V8HI modes.
9063 (emit_reduc_half): New function.
9064 (ix86_expand_reduc): Use phminposuw insn for V8HImode UMIN.
9065 Use emit_reduc_half helper function.
9066
9067 2011-10-13 Lawrence Crowl <crowl@google.com>
9068 Diego Novillo <dnovillo@google.com>
9069
9070 * lto-streamer-in.c (input_struct_function_base): Factor out of ...
9071 (input_function): ... here.
9072 * lto-streamer-out.c (output_struct_function_base): Factor out of ...
9073 (output_function): ... here.
9074
9075 2011-10-13 Gabriel Charette <gchare@google.com>
9076 Diego Novillo <dnovillo@google.com>
9077
9078 * streamer-hooks.h (struct streamer_hooks): Add hooks
9079 input_location and output_location.
9080 * lto-streamer-in.c (lto_input_location): Use
9081 streamer_hooks.input_location, if set.
9082 * lto-streamer-out.c (lto_output_location): Use
9083 streamer_hooks.output_location, if set.
9084
9085 2011-10-13 Eric Botcazou <ebotcazou@adacore.com>
9086
9087 * doc/invoke.texi (SPARC options): Document -mfix-at697f.
9088 * config/sparc/sparc.opt (mfix-at697f): New option.
9089 * config/sparc/sparc.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
9090 (sparc_reorg): New function.
9091
9092 2011-10-13 Richard Guenther <rguenther@suse.de>
9093
9094 PR tree-optimization/50712
9095 * ipa-split.c (split_function): Always re-gimplify parameters
9096 when they are not gimple vals before passing them. Properly
9097 check for type compatibility.
9098
9099 2011-10-13 Tom de Vries <tom@codesourcery.com>
9100
9101 * function.c (gimplify_parameters): Set number of arguments of call to
9102 BUILT_IN_ALLOCA_WITH_ALIGN to 2.
9103
9104 2011-10-13 Tom de Vries <tom@codesourcery.com>
9105
9106 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_READONLY_P
9107 for static const strings.
9108 * varasm.c (build_constant_desc): Generate the memory location of the
9109 constant using gen_const_mem.
9110
9111 2011-10-13 Richard Guenther <rguenther@suse.de>
9112
9113 PR tree-optimization/50698
9114 * tree-data-ref.c (split_constant_offset_1): Also process
9115 offsets of &MEM.
9116
9117 2011-10-12 David S. Miller <davem@davemloft.net>
9118
9119 * config/sparc/sparc.md (UNSPEC_FPMERGE): Delete.
9120 (UNSPEC_MUL16AU, UNSPEC_MUL8, UNSPEC_MUL8SU, UNSPEC_MULDSU): New
9121 unspecs.
9122 (fpmerge_vis): Remove inaccurate comment, represent using vec_select
9123 of a vec_concat.
9124 (vec_interleave_lowv8qi, vec_interleave_highv8qi): New insns.
9125 (fmul8x16_vis, fmul8x16au_vis, fmul8sux16_vis, fmuld8sux16_vis):
9126 Reimplement as unspecs and remove inaccurate comments.
9127 (vis3_shift_patname): New code attr.
9128 (<vis3_shift_insn><vbits>_vis): Rename to
9129 "v<vis3_shift_patname><mode>3".
9130 (vis3_addsub_ss_patname): New code attr.
9131 (<vis3_addsub_ss_insn><vbits>_vis): Rename to
9132 "<vis3_addsub_ss_patname><mode>3".
9133 * config/sparc/sparc.c (sparc_vis_init_builtins): Update to
9134 accommodate pattern name changes.
9135
9136 * config/sparc/sparc.h: Do not force TARGET_VIS3 and TARGET_FMAF
9137 to zero when assembler lacks support for such instructions.
9138 * config/sparc/sparc.c (sparc_option_override): Clear MASK_VIS3
9139 and MASK_FMAF in defaults when assembler lacks necessary support.
9140
9141 2011-10-12 Jakub Jelinek <jakub@redhat.com>
9142
9143 * config/i386/sse.md (vec_unpacks_lo_<mode>,
9144 vec_unpacks_hi_<mode>, vec_unpacku_lo_<mode>,
9145 vec_unpacku_hi_<mode>): Change VI124_128 mode to VI124_AVX2.
9146 * config/i386/i386.c (ix86_expand_sse_unpack): Handle
9147 V32QImode, V16HImode and V8SImode for TARGET_AVX2.
9148
9149 * config/i386/sse.md (vec_avx2): New mode_attr.
9150 (mulv16qi3): Macroize to cover also mulv32qi3 for TARGET_AVX2 into ...
9151 (mul<mode>3): ... this.
9152
9153 * config/i386/i386.md (UNSPEC_VPERMDI): Remove.
9154 * config/i386/i386.c (ix86_expand_vec_perm): Handle
9155 V16QImode and V32QImode for TARGET_AVX2.
9156 (MAX_VECT_LEN): Increase to 32.
9157 (expand_vec_perm_blend): Add support for 32-byte integer
9158 vectors with TARGET_AVX2.
9159 (valid_perm_using_mode_p): New function.
9160 (expand_vec_perm_pshufb): Add support for 32-byte integer
9161 vectors with TARGET_AVX2.
9162 (expand_vec_perm_vpshufb2_vpermq): New function.
9163 (expand_vec_perm_vpshufb2_vpermq_even_odd): New function.
9164 (expand_vec_perm_even_odd_1): Handle 32-byte integer vectors
9165 with TARGET_AVX2.
9166 (ix86_expand_vec_perm_builtin_1): Try expand_vec_perm_vpshufb2_vpermq
9167 and expand_vec_perm_vpshufb2_vpermq_even_odd.
9168 * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Add for TARGET_AVX2
9169 32-byte integer vector modes.
9170 (vec_pack_trunc_<mode>): Use VI248_AVX2 instead of VI248_128.
9171 (avx2_interleave_highv32qi, avx2_interleave_lowv32qi): Remove pasto.
9172 (avx2_pshufdv3, avx2_pshuflwv3, avx2_pshufhwv3): Generate
9173 4 new operands.
9174 (avx2_pshufd_1, avx2_pshuflw_1, avx2_pshufhw_1): Don't use
9175 match_dup, instead add 4 new operands and require they have
9176 right cross-lane values.
9177 (avx2_permv4di): Change into define_expand.
9178 (avx2_permv4di_1): New instruction.
9179 (avx2_permv2ti): Use nonimmediate_operand instead of register_operand
9180 for "xm" constrained operand.
9181 (VEC_PERM_AVX2): Add V32QI and V16QI for TARGET_AVX2.
9182
9183 * config/i386/sse.md (avx2_gathersi<mode>,
9184 avx2_gatherdi<mode>, avx2_gatherdi<mode>256): Add clobber of
9185 match_scratch, change memory_operand to register_operand,
9186 add (mem:BLK (scratch)) use.
9187 (*avx2_gathersi<mode>, *avx2_gatherdi<mode>,
9188 *avx2_gatherdi<mode>256): Add clobber of match_scratch,
9189 add earlyclobber to the output operand and match_scratch,
9190 add (mem:BLK (scratch)) use, change the other mem to match_operand.
9191 Use %p6 instead of %c6 in the pattern.
9192 * config/i386/i386.c (ix86_expand_builtin): Adjust for
9193 operand 2 being a Pmode register_operand instead of memory_operand.
9194
9195 2011-10-12 Kai Tietz <ktietz@redhat.com>
9196
9197 * config/i386/i386.md (simple_return): Disable if TARGET_SEH is active.
9198
9199 2011-10-12 Steve Ellcey <sje@cup.hp.com>
9200
9201 * config/ia64/ia64.c (ia64_init_builtins): Fix unbalanced parentheses.
9202
9203 2011-10-12 Richard Guenther <rguenther@suse.de>
9204
9205 * tree-ssa-alias.c (maybe_skip_until): Cache also at the point
9206 of the first store we visit in a basic-block.
9207 (get_continuation_for_phi): Search for a candidate VUSE that
9208 might dominates all others. Do pairwise disambiguation against
9209 that candidate.
9210
9211 2011-10-12 Paul Koning <pkoning@gcc.gnu.org>
9212
9213 PR tree-optimization/50189
9214 * tree-vrp.c (extract_range_from_assert): Use the type of
9215 the variable, not the limit.
9216
9217 2011-10-12 Richard Guenther <rguenther@suse.de>
9218
9219 PR tree-optimization/50700
9220 * tree-object-size.c (addr_object_size): Simplify and treat
9221 MEM_REF bases consistently.
9222
9223 2011-10-12 Bernd Schmidt <bernds@codesourcery.com>
9224
9225 * function.c (prepare_shrink_wrap, bb_active_p): New function.
9226 (thread_prologue_and_epilogue_insns): Use bb_active_p. Call
9227 prepare_shrink_wrap, then recompute bb_active_p for the last block.
9228
9229 2011-10-12 Joseph Myers <joseph@codesourcery.com>
9230
9231 PR c/50565
9232 * convert.c (convert_to_integer): Do not narrow operands of
9233 pointer subtraction.
9234
9235 2011-10-12 Nick Clifton <nickc@redhat.com>
9236
9237 * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): New macro. Used to
9238 emit a .eabi_attribute assembler directive, possibly with a
9239 comment attached.
9240 * config/arm/arm.c (arm_file_start): Use the new macro.
9241 * config/arm/arm-c.c (arm_output_c_attributes): Likewise.
9242
9243 2011-10-12 Georg-Johann Lay <avr@gjlay.de>
9244
9245 PR target/49939
9246 * config/avr/avr.md (*movqi): Rename to movqi_insn.
9247 (*call_insn): Rename to call_insn.
9248 (*call_value_insn): Rename to call_value_insn.
9249 * config/avr/avr.c (avr_2word_insn_p): New static function.
9250 (jump_over_one_insn_p): Use it.
9251
9252 2011-10-12 Richard Sandiford <richard.sandiford@linaro.org>
9253
9254 PR middle-end/48660
9255 * expr.h (copy_blkmode_to_reg): Declare.
9256 * expr.c (copy_blkmode_to_reg): New function.
9257 (expand_assignment): Don't expand register RESULT_DECLs before
9258 the lhs. Use copy_blkmode_to_reg to copy BLKmode values into a
9259 RESULT_DECL register.
9260 (expand_expr_real_1): Handle BLKmode decls when looking for promotion.
9261 * stmt.c (expand_return): Move BLKmode-to-register code into
9262 copy_blkmode_to_reg.
9263
9264 2011-10-11 Eric Botcazou <ebotcazou@adacore.com>
9265
9266 PR target/49965
9267 * config/sparc/sparc.md (mov<I:mode>cc): Do not save comparison code.
9268 (mov<F:mode>cc): Likewise.
9269
9270 2011-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9271
9272 * tree-ssa-address.c (copy_ref_info): Remove copy of TREE_THIS_NOTRAP.
9273
9274 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
9275
9276 * tree.h (built_in_decls): Delete old interface with two parallel
9277 arrays to hold standard builtin declarations, and replace it with
9278 a function based interface that can support creating builtins on
9279 the fly in the future. Change all uses, and poison the old
9280 names. Make sure 0 is not a legitimate builtin index.
9281 (implicit_built_in_decls): Ditto.
9282 (built_in_info): Ditto.
9283 (BUILTIN_VALID_P): Ditto.
9284 (builtin_decl_explicit): Ditto.
9285 (builtin_decl_implicit): Ditto.
9286 (set_builtin_decl): Ditto.
9287 (set_builtin_decl_implicit_p): Ditto.
9288 (builtin_decl_explicit_p): Ditto.
9289 (builtin_decl_implicit_p): Ditto.
9290 * tree-complex.c (expand_complex_libcall): Ditto.
9291 * tree-loop-distribution.c (generate_memset_zero): Ditto.
9292 * tree-ssa-strlen.c (get_string_length): Ditto.
9293 (handle_builtin_strcpy): Ditto.
9294 (handle_builtin_strcat): Ditto.
9295 * tree.c (iterative_hash_expr): Ditto.
9296 (local_define_builtin): Ditto.
9297 (build_common_builtin_nodes): Ditto.
9298 * builtins.c (built_in_decls): Ditto.
9299 (implicit_built_in_decls): Ditto.
9300 (built_in_info): Ditto
9301 (expand_builtin_classify_type): Ditto.
9302 (mathfn_built_in_1): Ditto.
9303 (expand_builtin_cexpi): Ditto.
9304 (expand_builtin_mempcpy_args): Ditto.
9305 (expand_builtin_stpcpy): Ditto.
9306 (gimplify_va_arg_expr): Ditto.
9307 (expand_builtin_sync_operation): Ditto.
9308 (build_builtin_expect_predicate): Ditto.
9309 (fold_builtin_memory_op): Ditto.
9310 (fold_builtin_strcpy): Ditto.
9311 (fold_builtin_stpcpy): Ditto.
9312 (fold_builtin_strncpy): Ditto.
9313 (fold_builtin_interclass_mathfn): Ditto.
9314 (fold_builtin_classify): Ditto.
9315 (fold_builtin_2): Ditto.
9316 (fold_builtin_strstr): Ditto.
9317 (fold_builtin_strrchr): Ditto.
9318 (fold_builtin_strpbrk): Ditto.
9319 (fold_builtin_strcat): Ditto.
9320 (fold_builtin_strncat): Ditto.
9321 (fold_builtin_strcspn): Ditto.
9322 (fold_builtin_fputs): Ditto.
9323 (fold_builtin_sprintf): Ditto.
9324 (fold_builtin_snprintf): Ditto.
9325 (expand_builtin_memory_chk): Ditto.
9326 (fold_builtin_memory_chk): Ditto.
9327 (fold_builtin_stxcpy_chk): Ditto.
9328 (fold_builtin_strncpy_chk): Ditto.
9329 (fold_builtin_strcat_chk): Ditto.
9330 (fold_builtin_strncat_chk): Ditto.
9331 (fold_builtin_sprintf_chk_1): Ditto.
9332 (fold_builtin_snprintf_chk_1): Ditto.
9333 (fold_builtin_printf): Ditto.
9334 (fold_builtin_fprintf): Ditto.
9335 (fold_call_stmt): Ditto.
9336 (set_builtin_user_assembler_name): Ditto.
9337 * tree-emutls.c (emutls_common_1): Ditto.
9338 * omp-low.c (scan_omp): Ditto.
9339 (lower_rec_input_clauses): Ditto.
9340 (lower_reduction_clauses): Ditto.
9341 (expand_parallel_call): Ditto.
9342 (expand_task_call): Ditto.
9343 (maybe_catch_exception): Ditto.
9344 (optimize_omp_library_calls): Ditto.
9345 (expand_omp_for_generic): Ditto.
9346 (expand_omp_for_static_nochunk): Ditto.
9347 (expand_omp_for_static_chunk): Ditto.
9348 (expand_omp_sections): Ditto.
9349 (expand_omp_atomic_fetch_op): Ditto.
9350 (expand_omp_atomic_pipeline): Ditto.
9351 (expand_omp_atomic_mutex): Ditto.
9352 (lower_omp_single_simple): Ditto.
9353 (lower_omp_single_copy): Ditto.
9354 (lower_omp_master): Ditto.
9355 (lower_omp_ordered): Ditto.
9356 (lower_omp_critical): Ditto.
9357 * tree-ssa-ccp.c (optimize_stdarg_builtin): Ditto.
9358 * builtins.c (DEF_BUILTIN_STUB): Ditto.
9359 (BUILT_IN_NONE): Ditto.
9360 * tree-ssa-math-opts.c (execute_optimize_bswap): Ditto.
9361 * gimple-low.c (lower_function_body): Ditto.
9362 (lower_builtin_setjmp): Ditto.
9363 * c-decl.c (merge_decls): Ditto.
9364 * tree-eh.c (lower_resx): Ditto.
9365 (lower_resx): Ditto.
9366 (lower_eh_dispatch): Ditto.
9367 * function (gimplify_parameters): Ditto.
9368 * c-typeck.c (build_function_call_vec): Ditto.
9369 * gimplify.c (build_stack_save_restore): Ditto.
9370 (gimplify_vla_decl): Ditto.
9371 (gimplify_modify_expr_to_memcpy): Ditto.
9372 (gimplify_modify_expr_to_memset): Ditto.
9373 (gimplify_variable_sized_compare): Ditto.
9374 (gimplify_function_tree): Ditto.
9375 * calls.c (emit_call_1): Ditto.
9376 * tree-ssa-forprop.c (simplify_builtin_call): Ditto.
9377 * tree-nested.c (convert_nl_goto_reference): Ditto.
9378 (convert_tramp_reference_op): Ditto.
9379 (finalize_nesting_tree_1): Ditto.
9380 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
9381 (tree_ssa_prefetch_arrays): Ditto.
9382 * tree-streamer-in.c (streamer_get_builtin_tree): Ditto.
9383 * system.h (built_in_decls): Ditto.
9384 (implicit_built_in_decls): Ditto.
9385 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
9386 * config/sparc/sparc.c (sparc_gimplify_va_arg): Ditto.
9387 * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
9388 (ix86_veclibabi_svml): Ditto.
9389 (ix86_veclibabi_acml): Ditto.
9390 * config/vms/vms.c (vms_patch_builtins): Ditto.
9391 * config/ia64/ia64.c (ia64_init_builtins): Ditto.
9392 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Ditto.
9393 (rs6000_builtin_vectorized_libmass): Ditto.
9394 (rs6000_init_builtins): Ditto.
9395 * config/darwin.c (darwin_override_options): Ditto.
9396 (darwin_patch_builtin): Ditto.
9397 (darwin_rename_builtins): Ditto.
9398 * config/pa/pa.c (pa_init_builtins): Ditto.
9399
9400 2011-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9401
9402 * tree.h (copy_ref_info): Expose existing function.
9403 * tree-ssa-loop-ivopts.c (copy_ref_info): Move function to...
9404 * tree-ssa-address.c (copy_ref_info): ...here, and remove static token.
9405
9406 2011-10-11 Georg-Johann Lay <avr@gjlay.de>
9407
9408 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): New
9409 prototype.
9410 (avr_regno_mode_code_ok_for_base_p): New prototype.
9411 * config/avr/avr.h (BASE_REG_CLASS): Remove.
9412 (REGNO_OK_FOR_BASE_P): Remove.
9413 (REG_OK_FOR_BASE_NOSTRICT_P): Remove.
9414 (REG_OK_FOR_BASE_STRICT_P): Remove.
9415 (MODE_CODE_BASE_REG_CLASS): New define.
9416 (REGNO_MODE_CODE_OK_FOR_BASE_P): New define.
9417 * config/avr/avr.c (avr_mode_code_base_reg_class): New function.
9418 (avr_regno_mode_code_ok_for_base_p): New function.
9419 (avr_reg_ok_for_addr_p): New static function.
9420 (avr_legitimate_address_p): Use it. Beautify.
9421
9422 2011-10-11 Georg-Johann Lay <avr@gjlay.de>
9423
9424 PR target/50447
9425 * config/avr/avr.md (cc): Add out_plus attribute alternative.
9426 (addsi3): Use it. Adapt avr_out_plus to new prototype. Use
9427 avr_out_plus for all CONST_INT addends.
9428 * config/avr/avr-protos.h (avr_out_plus): Change prototype.
9429 * config/avr/avr.c (notice_update_cc): Call avr_out_plus on
9430 CC_OUT_PLUS.
9431 (avr_out_plus_1): Change prototype and report effect on cc0.
9432 (avr_out_plus): Ditto.
9433 (adjust_insn_length): Adapt call to avr_out_plus to new prototype.
9434
9435 2011-10-11 H.J. Lu <hongjiu.lu@intel.com>
9436
9437 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove
9438 the extra break.
9439
9440 2011-10-11 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
9441
9442 * doc/invoke.texi: Document new warning.
9443 * common.opt (Wvector-operation-performance): Define new warning.
9444 * tree-vect-generic.c (expand_vector_piecewise): Warn about expanded
9445 vector operation.
9446 (exapnd_vector_parallel): Warn about expanded vector operation.
9447 (lower_vec_shuffle): Warn about expanded vector operation.
9448 * c-typeck.c (c_build_vec_perm_expr): Store correct location
9449 when creating VEC_PERM_EXPR.
9450
9451 2011-10-11 Richard Guenther <rguenther@suse.de>
9452
9453 PR tree-optimization/50204
9454 * tree-ssa-alias.c (get_continuation_for_phi_1): Split out
9455 two argument handling from ...
9456 (get_continuation_for_phi): ... here. Handle arbitrary number
9457 of PHI args.
9458
9459 2011-10-11 Richard Sandiford <richard.sandiford@linaro.org>
9460
9461 * modulo-sched.c: Fix comment typo. Mention the possibility
9462 of using scheduling windows of II+1 cycles.
9463
9464 2011-10-11 Tristan Gingold <gingold@adacore.com>
9465
9466 * doc/invoke.texi (C Dialect Options): Document
9467 -fallow-parameterless-variadic-functions.
9468 * c-parser.c (c_parser_parms_list_declarator): Handle it.
9469
9470 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
9471
9472 * config/avr/avr.c (avr_option_override): Set flag_omit_frame_pointer
9473 to 0 if frame pointer is needed for unwinding.
9474
9475 2011-10-10 Uros Bizjak <ubizjak@gmail.com>
9476
9477 PR bootstrap/50665
9478 * optabs.h (DOI_vec_perm): Rename from OTI_vec_perm. Move from enum
9479 optab_index to enum direct_optab_index.
9480 (vec_perm_optab): Update.
9481
9482 2011-10-10 Anatoly Sokolov <aesok@post.ru>
9483
9484 * config/cris/cris.c (cris_preferred_reload_class): New function.
9485 (TARGET_PREFERRED_RELOAD_CLASS): Define.
9486 * config/cris/cris.h (PREFERRED_RELOAD_CLASS): Remove.
9487
9488 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
9489
9490 * config/avr/avr.md (*tablejump_rjmp): Change insn condition to
9491 !AVR_HAVE_JMP_CALL.
9492 (*tablejump_lib): Change insn condition to AVR_HAVE_JMP_CALL.
9493 (*tablejump_enh, *tablejump): Remove insns.
9494 * config/avr/libgcc.S (__tablejump__): Use RET instead of EIND +
9495 EIJMP for indirect jump. Use LPM Z+ where available.
9496
9497 2011-10-10 Richard Henderson <rth@redhat.com>
9498
9499 * doc/md.texi (vec_perm_const): Fix typo in cindex.
9500
9501 2011-10-10 Kirill Yukhin <kirill.yukhin@intel.com>
9502 Yakovlev Vladimir <vladimir.b.yakovlev@intel.com>
9503
9504 * config/i386/sse.md (fma_fnmsub_<mode>): Fix a typo.
9505
9506 2011-10-10 Richard Guenther <rguenther@suse.de>
9507
9508 PR middle-end/50389
9509 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
9510 mark symbols for renaming. Append the VUSE to all statements
9511 that possibly can have one.
9512
9513 2011-10-10 Richard Guenther <rguenther@suse.de>
9514
9515 * ipa-split.c (pass_split_functions): Add verification TODOs.
9516 (pass_feedback_split_functions): Likewise.
9517
9518 2011-10-10 Richard Guenther <rguenther@suse.de>
9519
9520 PR middle-end/50195
9521 * fold-const.c (fold_binary_loc): Canonicalize x*x to pow (x, 2)
9522 only when optimizing.
9523
9524 2011-10-10 Nick Clifton <nickc@redhat.com>
9525
9526 PR middle-end/49801
9527 * compare-elim.c (find_comparisons_in_bb): Use df_get_live_in and
9528 df_get_live_out instead of accessing the bitmaps directly.
9529 (execute_compare_elim_after_reload): Remove calls to df_set_flags,
9530 df_live_add_problem and df_analyze.
9531
9532 2011-10-10 Michael Matz <matz@suse.de>
9533
9534 PR middle-end/50638
9535 * tree-emutls.c (gen_emutls_addr): Call add_referenced_var.
9536
9537 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
9538
9539 * modulo-sched.c (ps_reg_move_info): Add num_consecutive_stages.
9540 (SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES): Delete.
9541 (node_sched_params): Remove first_reg_move and nreg_moves.
9542 (ps_num_consecutive_stages, extend_node_sched_params): New functions.
9543 (update_node_sched_params): Move up file.
9544 (print_node_sched_params): Print the stage. Don't dump info related
9545 to first_reg_move and nreg_moves.
9546 (set_columns_for_row): New function.
9547 (set_columns_for_ps): Move up file and use set_columns_for_row.
9548 (schedule_reg_move): New function.
9549 (schedule_reg_moves): Call extend_node_sched_params and
9550 schedule_reg_move. Extend size of uses bitmap. Initialize
9551 num_consecutive_stages. Return false if a move could not be
9552 scheduled.
9553 (apply_reg_moves): Don't emit moves here.
9554 (permute_partial_schedule): Handle register moves.
9555 (duplicate_insns_of_cycles): Remove for_prolog. Emit moves according
9556 to the same stage-count test as ddg nodes.
9557 (generate_prolog_epilog): Update calls accordingly.
9558 (sms_schedule): Allow move-scheduling to add a new first stage.
9559
9560 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
9561
9562 * modulo-sched.c (ps_insn): Adjust comment.
9563 (ps_reg_move_info): New structure.
9564 (partial_schedule): Add reg_moves field.
9565 (SCHED_PARAMS): Use node_sched_param_vec instead of node_sched_params.
9566 (node_sched_params): Turn first_reg_move into an identifier.
9567 (ps_reg_move): New function.
9568 (ps_rtl_insn): Cope with register moves.
9569 (ps_first_note): Adjust comment and assert that the instruction
9570 isn't a register move.
9571 (node_sched_params): Replace with...
9572 (node_sched_param_vec): ...this vector.
9573 (set_node_sched_params): Adjust accordingly.
9574 (print_node_sched_params): Take a partial schedule instead of a ddg.
9575 Use ps_rtl_insn and ps_reg_move.
9576 (generate_reg_moves): Rename to...
9577 (schedule_reg_moves): ...this. Remove rescan parameter. Record each
9578 move in the partial schedule, but don't emit it here. Don't perform
9579 register substitutions here either.
9580 (apply_reg_moves): New function.
9581 (duplicate_insns_of_cycles): Use register indices directly,
9582 rather than finding instructions using PREV_INSN. Use ps_reg_move.
9583 (sms_schedule): Call schedule_reg_moves before committing to
9584 a partial schedule. Try the next ii if the schedule fails.
9585 Use apply_reg_moves instead of generate_reg_moves. Adjust
9586 call to print_node_sched_params. Free node_sched_param_vec
9587 instead of node_sched_params.
9588 (create_partial_schedule): Initialize reg_moves.
9589 (free_partial_schedule): Free reg_moves.
9590
9591 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
9592
9593 * modulo-sched.c (ps_insn): Replace node field with an identifier.
9594 (SCHED_ASAP): Replace with..
9595 (NODE_ASAP): ...this macro.
9596 (SCHED_PARAMS): New macro.
9597 (SCHED_TIME, SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES, SCHED_ROW)
9598 (SCHED_STAGE, SCHED_COLUMN): Redefine using SCHED_PARAMS.
9599 (node_sched_params): Remove asap.
9600 (ps_rtl_insn, ps_first_note): New functions.
9601 (set_node_sched_params): Use XCNEWVEC. Don't copy across the
9602 asap values.
9603 (print_node_sched_params): Use SCHED_PARAMS and NODE_ASAP.
9604 (generate_reg_moves): Pass ids to the SCHED_* macros.
9605 (update_node_sched_params): Take a ps insn identifier rather than
9606 a node as parameter. Use ps_rtl_insn.
9607 (set_columns_for_ps): Update for above field and SCHED_* macro changes.
9608 (permute_partial_schedule): Use ps_rtl_insn and ps_first_note.
9609 (optimize_sc): Update for above field and SCHED_* macro changes.
9610 Update calls to try_scheduling_node_in_cycle and
9611 update_node_sched_params.
9612 (duplicate_insns_of_cycles): Adjust for above field and SCHED_*
9613 macro changes. Use ps_rtl_insn and ps_first_note.
9614 (sms_schedule): Pass ids to the SCHED_* macros.
9615 (get_sched_window): Adjust for above field and SCHED_* macro changes.
9616 Use NODE_ASAP instead of SCHED_ASAP.
9617 (try_scheduling_node_in_cycle): Remove node parameter. Update
9618 call to ps_add_node_check_conflicts. Pass ids to the SCHED_* macros.
9619 (sms_schedule_by_order): Update call to try_scheduling_node_in_cycle.
9620 (ps_insert_empty_row): Adjust for above field changes.
9621 (compute_split_row): Use ids rather than nodes.
9622 (verify_partial_schedule): Adjust for above field changes.
9623 (print_partial_schedule): Use ps_rtl_insn.
9624 (create_ps_insn): Take an id rather than a node.
9625 (ps_insn_find_column): Adjust for above field changes.
9626 Use ps_rtl_insn.
9627 (ps_insn_advance_column): Adjust for above field changes.
9628 (add_node_to_ps): Remove node parameter. Update call to
9629 create_ps_insn.
9630 (ps_has_conflicts): Use ps_rtl_insn.
9631 (ps_add_node_check_conflicts): Replace node parameter than an id.
9632
9633 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
9634
9635 * modulo-sched.c (undo_replace_buff_elem): Delete.
9636 (generate_reg_moves): Don't build and return an undo list.
9637 (free_undo_replace_buff): Delete.
9638 (sms_schedule): Adjust call to generate_reg_moves.
9639 Don't call free_undo_replace_buff.
9640
9641 2011-10-10 Matthias Klose <doko@ubuntu.com>
9642
9643 * common/config/m32c: Remove empty directory.
9644
9645 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
9646
9647 * config/avr/avr.md (*mulhi3_enh): Treat squaring smarter.
9648
9649 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
9650
9651 PR target/50652
9652 * config/avr/avr-mcus.def (AVR_MCU): Set .data_section_start of
9653 atmega164a to 0x100.
9654
9655 2011-10-09 Eric Botcazou <ebotcazou@adacore.com>
9656
9657 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Do not make
9658 the replacement if the conversion to the LHS type is not useless.
9659
9660 2011-10-09 Ira Rosen <ira.rosen@linaro.org>
9661
9662 PR tree-optimization/50635
9663 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add
9664 DEF_STMT to the list of statements to be replaced by the
9665 pattern statements.
9666 (vect_handle_widen_mult_by_const): Don't check TYPE_OUT.
9667
9668 2011-10-09 Anatoly Sokolov <aesok@post.ru>
9669
9670 * system.h: Commit forgotten hunk in previous patch.
9671 (OUTPUT_ADDR_CONST_EXTRA): Poison.
9672
9673 2011-10-08 Nicola Pero <nicola.pero@meta-innovation.com>
9674
9675 PR libobjc/50428
9676 * doc/objc.texi (Garbage Collection): Updated example to protect
9677 +initialize against execution in subclasses.
9678
9679 2011-10-07 Richard Henderson <rth@redhat.com>
9680
9681 * doc/extend.texi (__builtin_shuffle): Improve the description to
9682 include the modulus of the selector. Mention OpenCL.
9683 * doc/md.texi (vec_perm, vec_perm_const): Document named patterns.
9684
9685 * tree.def (VEC_PERM_EXPR): Rename from VEC_SHUFFLE_EXPR.
9686 * genopinit.c (optabs): Rename vshuffle to vec_perm.
9687 * c-typeck.c (c_build_vec_perm_expr): Rename from
9688 c_build_vec_shuffle_expr. Update for name changes.
9689 * optabs.c (expand_vec_perm_expr_p): Rename from
9690 expand_vec_shuffle_expr_p.
9691 (expand_vec_perm_expr): Rename from expand_vec_shuffle_expr.
9692 * optabs.h (OTI_vec_perm): Rename from DOI_vshuffle.
9693 (vec_perm_optab): Rename from vshuffle_optab.
9694 * expr.c, gimple-pretty-print.c, gimple.c, gimplify.c,
9695 c-tree.h, c-parser.c, tree-cfg.c, tree-inline.c, tree-pretty-print.c,
9696 tree-ssa-operands.c, tree-vect-generic.c: Update for name changes.
9697
9698 * config/i386/i386.c (ix86_expand_vec_perm): Rename from
9699 ix86_expand_vshuffle.
9700 * config/i386/i386-protos.h: Update.
9701 * config/i386/sse.md (VEC_PERM_AVX2): Rename from VSHUFFLE_AVX2.
9702 (vec_perm<VEC_PERM_AVX2>): Rename from vshuffle<VSHUFFLE_AVX2>.
9703
9704 2011-10-07 Richard Henderson <rth@redhat.com>
9705
9706 * config/i386/predicates.md (avx2_pblendw_operand): New.
9707 * config/i386/sse.md (sse4_1_pblendw): Un-macroize.
9708 (avx2_pblendw, *avx2_pblendw): New expander and insn.
9709
9710 2011-10-07 Richard Henderson <rth@redhat.com>
9711
9712 * config/i386/i386.c (bdesc_args): Update code for
9713 __builtin_ia32_palignr256. Change type of __builtin_ia32_pslldqi256,
9714 and __builtin_ia32_psrldqi256 to V4DI_FTYPE_V4DI_INT_CONVERT.
9715 (ix86_expand_args_builtin): Handle V4DI_FTYPE_V4DI_INT_CONVERT.
9716 * config/i386/sse.md (mode iterator V16): Add V2TI.
9717 (mode iterator SSESCALARMODE): Use V2TI not V4DI.
9718 (mode attr ssse3_avx2): Add V2TI.
9719 (avx2_lshrqv4di3, avx2_lshlqv4di3): Remove.
9720
9721 2011-10-07 David S. Miller <davem@davemloft.net>
9722
9723 PR 50655
9724 * configure.ac: Add .register directives to VIS3 test.
9725 * configure: Regenerate.
9726
9727 2011-10-07 Richard Henderson <rth@redhat.com>
9728
9729 * config.gcc (x86_64-*): Add core-avx-i, core-avx2 for with_cpu.
9730
9731 2011-10-07 Richard Henderson <rth@redhat.com>
9732
9733 PR 49752
9734 * fold-const.c (fold_checksum_tree): Remove out-of-date assert.
9735
9736 2011-10-07 Andrew Stubbs <ams@codesourcery.com>
9737
9738 * config/arm/predicates.md (shift_amount_operand): Remove constant
9739 range check.
9740 (shift_operator): Check range of constants for all shift operators.
9741
9742 2011-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9743
9744 * config/s390/s390.c (s390_emit_tls_call_insn): Remove assertion.
9745 Load GOT pointer for non-pic builds.
9746 (s390_load_got): Replace pic_offset_table_rtx with hardcoded r12.
9747 (s390_emit_call): Likewise.
9748
9749 2011-10-07 Tom de Vries <tom@codesourcery.com>
9750
9751 PR middle-end/50527
9752 * tree.c (build_common_builtin_nodes): Add local_define_builtin for
9753 BUILT_IN_ALLOCA_WITH_ALIGN. Mark that BUILT_IN_ALLOCA_WITH_ALIGN can
9754 throw.
9755 * builtins.c (expand_builtin_alloca): Handle BUILT_IN_ALLOCA_WITH_ALIGN
9756 arglist. Set align for BUILT_IN_ALLOCA_WITH_ALIGN.
9757 (expand_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
9758 (is_inexpensive_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
9759 * tree-ssa-ccp.c (evaluate_stmt): Set align for
9760 BUILT_IN_ALLOCA_WITH_ALIGN.
9761 (fold_builtin_alloca_for_var): Rename to ...
9762 (fold_builtin_alloca_with_align): Set DECL_ALIGN from 2nd
9763 BUILT_IN_ALLOCA_WITH_ALIGN argument.
9764 (ccp_fold_stmt): Try folding BUILT_IN_ALLOCA_WITH_ALIGN using
9765 fold_builtin_alloca_with_align.
9766 (optimize_stack_restore): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
9767 * builtins.def (BUILT_IN_ALLOCA_WITH_ALIGN): Declare using
9768 DEF_BUILTIN_STUB.
9769 * ipa-pure-const.c (special_builtin_state): Handle
9770 BUILT_IN_ALLOCA_WITH_ALIGN.
9771 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1)
9772 (call_may_clobber_ref_p_1): Same.
9773 * function.c (gimplify_parameters): Lower vla to
9774 BUILT_IN_ALLOCA_WITH_ALIGN.
9775 * gimplify.c (gimplify_vla_decl): Same.
9776 * cfgexpand.c (expand_call_stmt): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
9777 * tree-mudflap.c (mf_xform_statements): Same.
9778 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
9779 (mark_all_reaching_defs_necessary_1, propagate_necessity): Same.
9780 * varasm.c (incorporeal_function_p): Same.
9781 * tree-object-size.c (alloc_object_size): Same.
9782 * gimple.c (gimple_build_call_from_tree): Same.
9783
9784 2011-10-07 Bernd Schmidt <bernds@codesourcery.com>
9785
9786 * function.c (frame_required_for_rtx): Remove function.
9787 (requires_stack_frame_p): New arg set_up_by_prologue. All callers
9788 changed. Compute a set of mentioned registers and compare against
9789 the new arg rather than calling frame_required_for_rtx.
9790 (thread_prologue_and_epilogue_insns): Compute the set_up_by_prologue
9791 reg set. Convert the unconverted_simple_returns mechanism to store
9792 jump insns rather than their basic blocks. Also check the
9793 orig_entry_edge destination for new blocks.
9794
9795 2011-10-07 Jakub Jelinek <jakub@redhat.com>
9796
9797 PR tree-optimization/50650
9798 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Don't
9799 call vect_is_simple_cond here, instead fail if cond_expr isn't
9800 COMPARISON_CLASS_P or if get_vectype_for_scalar_type returns NULL
9801 for cond_expr's first operand.
9802 * tree-vect-stmts.c (vect_is_simple_cond): Static again.
9803 * tree-vectorizer.h (vect_is_simple_cond): Remove prototype.
9804
9805 2011-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9806
9807 * config/s390/s390.md (DWH, dwh): New mode macros.
9808 ("umulsidi3"): Extend to support "umulditi3" as well.
9809
9810 2011-10-07 Uros Bizjak <ubizjak@gmail.com>
9811 H.J. Lu <hongjiu.lu@intel.com>
9812
9813 PR target/50603
9814 * config/i386/i386.c (ix86_fixup_binary_operands): Force src2 of
9815 integer PLUS RTX to a register to improve address combine.
9816
9817 2011-10-06 Richard Henderson <rth@redhat.com>
9818
9819 * combine-stack-adjust.c (maybe_move_args_size_note): Add after
9820 parameter; use it to decide whether to merge two notes.
9821 (combine_stack_adjustments_for_block): Use maybe_move_args_size_note
9822 for the deallocation case as well.
9823
9824 2011-10-06 Anatoly Sokolov <aesok@post.ru>
9825
9826 * system.h (OUTPUT_ADDR_CONST_EXTRA): Poison.
9827 * doc/tm.texi.in (OUTPUT_ADDR_CONST_EXTRA): Remove documentation.
9828 * doc/tm.texi: Regenerate.
9829 * target.def (output_addr_const_extra): Use
9830 hook_bool_FILEptr_rtx_false.
9831 * targhooks.c (default_asm_output_addr_const_extra): Remove.
9832 * targhooks.h (default_asm_output_addr_const_extra): Remove.
9833 * hooks.c (hook_bool_FILEptr_rtx_false): New functions.
9834 * hooks.h (hook_bool_FILEptr_rtx_false): Declare.
9835
9836 2011-10-06 David S. Miller <davem@davemloft.net>
9837
9838 * config/sparc/sparc.md (popcount<mode>2, clz<mode>2): Split up into...
9839 (popcountdi2, popcountsi2, clzdi2, clzsi2): Explicit expanders, in the
9840 SI mode 64-bit code gen case explicitly zero-extend and truncate.
9841 (*popcount<mode>_sp64): Split up into...
9842 (*popcountdi_sp64, *popcountsi_64): Explicit instantiations, and in the
9843 SImode case use truncate.
9844 (*clzsi_sp64): Rewrite to use truncate, and let the expander emit the
9845 subtract so the compiler can optimize it.
9846 (SIDI): Remove unused mode iterator.
9847
9848 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
9849
9850 * function.c (thread_prologue_and_epilogue_insns): Emit split prologue
9851 on the orig_entry_edge. Don't account for it in prologue_clobbered.
9852
9853 2011-10-06 Jakub Jelinek <jakub@redhat.com>
9854
9855 PR tree-optimization/50596
9856 * tree-vectorizer.h (vect_is_simple_cond): New prototype.
9857 (NUM_PATTERNS): Change to 6.
9858 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): New
9859 function.
9860 (vect_vect_recog_func_ptrs): Add vect_recog_mixed_size_cond_pattern.
9861 (vect_mark_pattern_stmts): Don't create stmt_vinfo for def_stmt
9862 if it already has one, and don't set STMT_VINFO_VECTYPE in it
9863 if it is already set.
9864 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Handle
9865 COND_EXPR in pattern stmts.
9866 (vect_is_simple_cond): No longer static.
9867
9868 2001-10-06 Richard Henderson <rth@redhat.com>
9869
9870 * config/i386/i386.c (ix86_expand_vshuffle): Add AVX2 support.
9871 * config/i386/sse.md (sseshuffint): Remove.
9872 (sseintvecmode): Support V16HI, V8HI, V32QI, V16QI.
9873 (VSHUFFLE_AVX2): New mode iterator.
9874 (vshuffle<mode>): Use it.
9875 (avx_vec_concat<V_256>): Rename from *vec_concat<V_256>_avx.
9876
9877 * config/i386/i386.c (ix86_expand_sse_movcc): Use correct mode
9878 for vector_all_ones_operand.
9879 (ix86_expand_int_vcond): Distinguish between comparison mode
9880 and data mode. Allow them to differ.
9881 (ix86_expand_vshuffle): Don't force data mode to match maskmode.
9882
9883 2001-10-06 Richard Henderson <rth@redhat.com>
9884
9885 * optabs.c (expand_vec_shuffle_expr): Use the proper mode for the
9886 mask operand. Tidy the code.
9887
9888 2011-10-06 Jakub Jelinek <jakub@redhat.com>
9889
9890 * tree-vect-patterns.c (vect_pattern_recog_1): Use
9891 vect_recog_func_ptr typedef for the first argument.
9892 (vect_pattern_recog): Rename vect_recog_func_ptr variable
9893 to vect_recog_func, use vect_recog_func_ptr typedef for it.
9894
9895 PR tree-optimization/49279
9896 * tree-ssa-structalias.c (find_func_aliases): Don't handle
9897 CAST_RESTRICT.
9898 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Allow
9899 restrict propagation.
9900 * tree-ssa.c (useless_type_conversion_p): Don't return false
9901 if TYPE_RESTRICT differs.
9902
9903 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
9904
9905 * function.c (thread_prologue_and_epilogue_insns): Build a vector
9906 of unconverted simple return blocks rather than trying to
9907 recompute them later based on bb_flags bitmap tests.
9908
9909 2011-10-06 Michael Matz <matz@suse.de>
9910
9911 * tree-flow.h (get_var_ann): Don't declare.
9912 * tree-flow-inline.h (get_var_ann): Remove.
9913 (set_is_used): Use var_ann, not get_var_ann.
9914 * tree-dfa.c (add_referenced_var): Inline body of get_var_ann.
9915 * tree-profile.c (gimple_gen_edge_profiler): Call
9916 find_referenced_var_in.
9917 (gimple_gen_interval_profiler): Ditto.
9918 (gimple_gen_pow2_profiler): Ditto.
9919 (gimple_gen_one_value_profiler): Ditto.
9920 (gimple_gen_average_profiler): Ditto.
9921 (gimple_gen_ior_profiler): Ditto.
9922 (gimple_gen_ic_profiler): Ditto plus call add_referenced_var.
9923 (gimple_gen_ic_func_profiler): Call add_referenced_var.
9924 * tree-mudflap.c (execute_mudflap_function_ops): Call
9925 add_referenced_var.
9926
9927 2011-10-06 Jakub Jelinek <jakub@redhat.com>
9928
9929 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): For lhs
9930 don't set SSA_NAME_DEF_STMT that has been already set by
9931 gimple_build_assign_with_ops.
9932 (vect_recog_pow_pattern, vect_recog_widen_sum_pattern,
9933 vect_operation_fits_smaller_type, vect_recog_over_widening_pattern):
9934 Likewise.
9935
9936 * tree.h (avoid_folding_inline_builtin): New prototype.
9937 * builtins.c (avoid_folding_inline_builtin): No longer static.
9938 * gimple-fold.c (gimple_fold_builtin): Give up if
9939 avoid_folding_inline_builtin returns true.
9940
9941 2011-10-06 Richard Guenther <rguenther@suse.de>
9942
9943 * tree-vect-generic.c (vector_element): Look at previous
9944 generated results.
9945
9946 2011-10-06 David Edelsohn <dje.gcc@gmail.com>
9947
9948 PR target/39950
9949 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define
9950 __powerpc__, __PPC__, __unix__.
9951
9952 2011-10-06 Michael Matz <matz@suse.de>
9953
9954 * i386/i386.opt (recip_mask, recip_mask_explicit,
9955 x_recip_mask_explicit): New variables and cl_target member.
9956 (mrecip=): New option.
9957 * i386/i386.h (RECIP_MASK_DIV, RECIP_MASK_SQRT, RECIP_MASK_VEC_DIV,
9958 RECIP_MASK_VEC_SQRT, RECIP_MASK_ALL, RECIP_MASK_NONE): New bitmasks.
9959 (TARGET_RECIP_DIV, TARGET_RECIP_SQRT, TARGET_RECIP_VEC_DIV,
9960 TARGET_RECIP_VEC_SQRT): New tests.
9961 * i386/i386.md (divsf3): Check TARGET_RECIP_DIV.
9962 (sqrt<mode>2): Check TARGET_RECIP_SQRT.
9963 * i386/sse.md (div<mode>3): Check TARGET_RECIP_VEC_DIV.
9964 (sqrt<mode>2): Check TARGET_RECIP_VEC_SQRT.
9965 * i386/i386.c (ix86_option_override_internal): Set recip_mask
9966 for -mrecip and -mrecip=options.
9967 (ix86_function_specific_save): Save recip_mask_explicit.
9968 (ix86_function_specific_restore): Restore recip_mask_explicit.
9969
9970 * doc/invoke.texi (ix86 Options): Document the new option.
9971
9972 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
9973
9974 PR target/49049
9975 * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
9976
9977 2011-10-06 Ulrich Weigand <ulrich.weigand@linaro.org>
9978
9979 PR target/50305
9980 * config/arm/arm.c (arm_legitimize_reload_address): Recognize
9981 output of a previous pass through legitimize_reload_address.
9982 Do not attempt to optimize addresses if the base register is
9983 equivalent to a constant.
9984
9985 2011-10-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9986
9987 * function.c (thread_prologue_and_epilogue_insns): Mark
9988 last_bb_active as possibly unused. It is unused for targets which
9989 do neither have "return" nor "simple_return" expanders.
9990
9991 2011-10-06 Richard Guenther <rguenther@suse.de>
9992
9993 * fold-const.c (fold_ternary_loc): Also fold non-constant
9994 vector CONSTRUCTORs. Make more efficient.
9995 * tree-ssa-dom.c (cprop_operand): Don't handle virtual operands.
9996 (cprop_into_stmt): Don't propagate into virtual operands.
9997 (optimize_stmt): Really dump original statement.
9998
9999 2011-10-06 Nick Clifton <nickc@redhat.com>
10000
10001 * config/rx/rx.md (smin3): Revert previous delta.
10002
10003 2011-10-06 Richard Guenther <rguenther@suse.de>
10004
10005 PR tree-optimization/38884
10006 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial
10007 reads from aggregate SSA names.
10008
10009 2011-10-05 Jakub Jelinek <jakub@redhat.com>
10010
10011 * tree-vect-patterns.c (vect_pattern_recog_1): Add stmts_to_replace
10012 argument, truncate it at the beginning instead of allocating there
10013 and freeing at the end.
10014 (vect_pattern_recog): Allocate stmts_to_replace here and free at end,
10015 pass its address to vect_pattern_recog_1.
10016
10017 2011-10-05 David S. Miller <davem@davemloft.net>
10018
10019 * config/sparc/sparc.opt (POPC): New option.
10020 * doc/invoke.texi: Document it.
10021 * config/sparc/sparc.c (sparc_option_override): Enable MASK_POPC by
10022 default on Niagara-2 and later.
10023 * config/sparc/sparc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
10024 * config/sparc/sparc.md (SIDI): New mode iterator.
10025 (ffsdi2): Delete commented out pattern and comments.
10026 (popcount<mode>2, clz<mode>2): New expanders.
10027 (*popcount<mode>_sp64, popcountsi_v8plus, popcountdi_v8plus,
10028 *clzdi_sp64, clzdi_v8plus, *clzsi_sp64, clzsi_v8plus): New insns.
10029
10030 2011-10-06 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
10031
10032 PR middle-end/50607
10033 * c-tree.h (c_expr_t): New typedef for struct c_expr.
10034 (C_EXPR_APPEND): New macro.
10035 * c-parser.c (c_parser_get_builtin_args): Preserve
10036 original_tree_code of c_expr structure.
10037 (c_parser_postfix_expression): Adjust to the new function.
10038
10039 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
10040
10041 * function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
10042 if profiling after the prologue.
10043
10044 2011-10-05 Jakub Jelinek <jakub@redhat.com>
10045
10046 PR tree-optimization/50613
10047 * tree-ssa-strlen.c (find_equal_ptrs): If CASE_CONVERT
10048 operand is ADDR_EXPR, fallthru into ADDR_EXPR handling,
10049 and if it is neither that not SSA_NAME, give up.
10050
10051 2011-10-05 Richard Henderson <rth@redhat.com>
10052
10053 * tree-vect-generic.c (vector_element): Never fail. Use
10054 build_zero_cst. Tidy up type references.
10055 (lower_vec_shuffle): Never fail. Mask shuffle indicies. Reduce
10056 code duplication. Do update_stmt here ...
10057 (expand_vector_operations_1): ... not here.
10058
10059 * config/i386/i386.c (ix86_expand_vshuffle): Never fail. Handle
10060 TARGET_XOP. Fix pshufb constant vector creation. Reduce code
10061 duplication. Handle V2DI without SSE4.1.
10062 * config/i386/i386-protos.h (ix86_expand_vshuffle): Update decl.
10063 * config/i386/i386.md (vshuffle<V_128>): Remove assert for ok.
10064
10065 2011-10-05 Uros Bizjak <ubizjak@gmail.com>
10066
10067 * config/i386/i386.c (distance_non_agu_define): Simplify calculation
10068 of "found". Simplify return value calculation.
10069 (distance_agu_use): Ditto.
10070
10071 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
10072
10073 PR bootstrap/50621
10074 * config/i386/i386.c (ix86_add_cfa_restore_note): Omit notes only
10075 if the function was not shrink-wrapped.
10076 (ix86_expand_epilogue): Ensure queued cfa_adjust notes are attached
10077 to an insn.
10078 * function.c (thread_prologue_and_epilogue_insns): Make sure the
10079 shrink_wrapped flag is set even if there is no dump file.
10080
10081 2011-10-05 DJ Delorie <dj@redhat.com>
10082 Nick Clifton <nickc@redhat.com>
10083
10084 * config/rx/rx.opt (mpid): Define.
10085 * config/rx/t-rx (MULTILIB_OPTIONS): Add -mpid
10086 (MULTILIB_DIRNAMES): Add pid.
10087 * config/rx/rx.c (rx_gp_base_regnum_val, rx_pid_base_regnum_val)
10088 (rx_num_interrupt_regs): New variable.
10089 (rx_gp_base_regnum): New function. Returns the number of the
10090 small data area register.
10091 (rx_pid_base_regnum): New function. Returns the number of the pid
10092 base register.
10093 (rx_decl_for_addr): New function. Returns the symbolic part of a MEM.
10094 (rx_pid_data_operand): New function. Returns whether an object is
10095 in the position independent data area.
10096 (rx_legitimize_address): New function. Puts undecided PID
10097 objects in the PID data area.
10098 (rx_is_legitimate_address): Add support for PID operands.
10099 (rx_print_operand_address): Likewise.
10100 (rx_print_operand): Likewise.
10101 (rx_maybe_pidify_operand): New function. Determine if an operand
10102 is suitable for PID addressing.
10103 (rx_gen_move_template): Add PID support.
10104 (rx_conditional_register_usage): Likewise.
10105 (rx_option_override): Initialise rx_num_interrupt_regs.
10106 (rx_is_legitimate_constant): Add support for PID constants.
10107 (TARGET_LEGITIMIZE_ADDRESS): Define.
10108 * config/rx/constraints.md (Rpid): Define.
10109 (Rpda): Define.
10110 * config/rx/rx.md (UNSPEC_PID_ADDR): Define.
10111 (tablejump): Add PID support.
10112 (mov<>): Likewise.
10113 (mov<>_internal): Likewise.
10114 (addsi3): Convert to an expander. Add PID support.
10115 (pid_addr): New pattern.
10116 * config/rx/rx.h (CPP_SPEC): Define.
10117 (ASM_SPEC): Pass -mpid and -mint-register on to assembler.
10118 (CASE_VECTOR_PC_RELATIVE): Define.
10119 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PID mode.
10120 * config/rx/rx-protos.h (rx_maybe_pidify_operand): Prototype.
10121 * doc/invoke.texi (RX Options): Document -mpid command line option.
10122
10123 2011-10-05 Richard Guenther <rguenther@suse.de>
10124
10125 PR tree-optimization/38885
10126 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial reads
10127 from constants.
10128
10129 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
10130
10131 * doc/invoke.texi (-fshrink-wrap): Document.
10132 * opts.c (default_options_table): Add it.
10133 * common.opt (fshrink-wrap): Add.
10134 * function.c (emit_return_into_block): Remove useless declaration.
10135 (record_hard_reg_uses_1, record_hard_reg_uses, frame_required_for_rtx,
10136 requires_stack_frame_p, gen_return_pattern): New static functions.
10137 (emit_return_into_block): New arg simple_p. All callers changed.
10138 Use gen_return_pattern.
10139 (thread_prologue_and_epilogue_insns): Implement shrink-wrapping.
10140 * config/i386/i386.md (return): Expand into a simple_return.
10141 (simple_return): New expander):
10142 (simple_return_internal, simple_return_internal_long,
10143 simple_return_pop_internal_long, simple_return_indirect_internal):
10144 Renamed from return_internal, return_internal_long,
10145 return_pop_internal_long and return_indirect_internal; changed to use
10146 simple_return.
10147 * config/i386/i386.c (ix86_expand_epilogue): Adjust to expand
10148 simple returns.
10149 (ix86_pad_returns): Likewise.
10150 * function.h (struct rtl_data): Add member shrink_wrapped.
10151 * cfgcleanup.c (outgoing_edges_match): If shrink-wrapped, edges that
10152 are not jumps or sibcalls can't be compared.
10153
10154 2011-10-05 Richard Guenther <rguenther@suse.de>
10155
10156 * tree-ssa-sccvn.c (vn_get_expr_for): Handle CONSTRUCTOR of
10157 vector type.
10158 (simplify_unary_expression): Handle BIT_FIELD_REFs.
10159 (try_to_simplify): Handle BIT_FIELD_REFs.
10160
10161 2011-10-05 Georg-Johann Lay <avr@gjlay.de>
10162
10163 * config/avr/avr-protos.h (avr_out_addto_sp): New prototype.
10164 * config/avr/avr.c (avr_out_addto_sp): New function.
10165 (adjust_insn_length): Handle ADJUST_LEN_ADDTO_SP.
10166 * config/avr/avr.md (adjust_len): Add "addto_sp".
10167 (*movhi_sp): Remove insn.
10168 (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): Merge to *addhi3_sp_R.
10169
10170 2011-10-05 Richard Guenther <rguenther@suse.de>
10171
10172 * gimple-fold.c (gimple_fold_stmt_to_constant_1): For ternary ops
10173 with an embedded expression valueize and fold that as well.
10174 * tree-ssa-sccvn.c (try_to_simplify): Also allow SSA name
10175 results from gimple_fold_stmt_to_constant_1.
10176
10177 2011-10-05 Nick Clifton <nickc@redhat.com>
10178
10179 * config/rx/rx.md (tablejump): Add missing label.
10180 (adddi3_internal): Mark operand 0 as early-clobbered.
10181 (smaxsi3): Revert previous delta.
10182 (adc_internal): Fix whitespace in generated asm.
10183 (adc_flags): Likewise.
10184
10185 2011-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10186
10187 * expmed.c (expand_mult_highpart_optab): Replace optab_handler
10188 with the new widening_optab_handler.
10189
10190 2011-10-05 Richard Guenther <rguenther@suse.de>
10191
10192 PR tree-optimization/50609
10193 * gimple-fold.c (fold_array_ctor_reference): Also handle
10194 vector typed constructors.
10195 (fold_ctor_reference): Dispatch to fold_array_ctor_reference
10196 for vector typed constructors.
10197
10198 2011-10-05 Uros Bizjak <ubizjak@gmail.com>
10199
10200 * config/i386/i386.c (ix86_emit_binop): New static function.
10201 (ix86_split_lea_for_addr): Use ix86_emit_binop to emit add and shl
10202 instructions.
10203 (x86_output_mi_thunk): Use ix86_emit_binop to emit add instructions.
10204
10205 2011-10-04 David S. Miller <davem@davemloft.net>
10206
10207 * config/sparc/sparc.md (UNSPEC_FHADD, UNSPEC_FHSUB,
10208 UNSPEC_XMUL): New unspecs.
10209 (muldi3_v8plus): Use output_v8plus_mult.
10210 (*naddsf3, *nadddf3, *nmulsf3, *nmuldf3, *nmuldf3_extend):
10211 New VIS 3.0 combiner patterns.
10212 (fhaddsf_vis, fhadddf_vis, fhsubsf_vis, fhsubdf_vis,
10213 fnhaddsf_vis, fnhaddf_vis, umulxhi_vis, *umulxhi_sp64,
10214 umulxhi_v8plus, xmulx_vis, *xmulx_sp64, xmulx_v8plus,
10215 xmulxhi_vis, *xmulxhi_sp64, xmulxhi_v8plus): New VIS 3.0
10216 builtins patterns.
10217 * config/sparc/sparc.c (sparc_vis_init_builtins): Emit new builtins.
10218 (output_v8plus_mult): New function.
10219 * config/sparc/sparc-protos.h: Declare it.
10220 * config/sparc/visintrin.h (__vis_fhadds, __vis_fhaddd,
10221 __vis_fhsubs, __vis_fhsubd, __vis_fnhadds, __vis_fnhaddd,
10222 __vis_umulxhi, __vis_xmulx, __vis_xmulxhi): New intrinsics.
10223 * doc/extend.texi: Document new builtins.
10224
10225 2011-10-04 Richard Henderson <rth@redhat.com>
10226
10227 * c-typeck.c (c_build_vec_shuffle_expr): Fix uninitialized variable.
10228 Avoid save_expr unless two_arguments.
10229
10230 2011-10-04 Ozkan Sezer <sezeroz@gmail.com>
10231
10232 * config/i386/mingw-w64.h (CPP_SPEC): Rename _REENTRANCE to _REENTRANT.
10233 * config/i386/mingw32.h (CPP_SPEC): Likewise.
10234
10235 2011-10-04 David S. Miller <davem@davemloft.net>
10236
10237 * config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
10238 under Linux.
10239
10240 2011-10-04 Jakub Jelinek <jakub@redhat.com>
10241
10242 PR tree-optimization/50604
10243 * builtins.c (fold_builtin_strcpy, fold_builtin_stpcpy,
10244 fold_builtin_strncpy, fold_builtin_stxcpy_chk): Ensure
10245 last argument to memcpy has size_type_node type instead of ssizetype.
10246 * tree-ssa-strlen.c (handle_builtin_memcpy): Use size_type_node
10247 instead of TREE_TYPE (len) as type for newlen.
10248
10249 PR tree-optimization/50522
10250 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Don't test
10251 TYPE_RESTRICT.
10252 (ptr_derefs_may_alias_p): Call pt_solutions_same_restrict_base
10253 unconditionally.
10254
10255 * fold-const.c (fold_unary_loc): Don't optimize
10256 POINTER_PLUS_EXPR casted to TYPE_RESTRICT pointer by
10257 casting the inner pointer if it isn't TYPE_RESTRICT.
10258 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't through
10259 casts from non-TYPE_RESTRICT pointer to TYPE_RESTRICT pointer.
10260
10261 2011-10-04 Joseph Myers <joseph@codesourcery.com>
10262
10263 * config.gcc (i[34567]86-*-elf*, x86_64-*-elf*): Use i386/t-crtstuff.
10264
10265 2011-10-04 Jan Hubicka <jh@suse.cz>
10266
10267 * lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter.
10268 * lto-streamer-in.c (lto_input_toplevel_asms): Stream in order.
10269 * lto-streamer-out.c (lto_output_toplevel_asms): Stream out order.
10270 * lto-cgraph.c (order_base): New static var.
10271 (lto_output_node): Stream in order.
10272 (lto_output_varpool_node): Stream out order.
10273 (input_node): Stream in order.
10274 (input_varpool_node): Stream out order.
10275 (input_cgraph_1): Initialize order base; update call of
10276 lto_input_toplevel_asms.
10277
10278 2011-10-04 Georg-Johann Lay <avr@gjlay.de>
10279
10280 PR target/50566
10281 * config/avr/avr-protos.h (avr_legitimize_reload_address): New
10282 prototype.
10283 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
10284 from here...
10285 * config/avr/avr.c (avr_legitimize_reload_address) ...to this new
10286 function. Log if avr_log.legitimize_reload_address.
10287
10288 2011-10-04 Eric Botcazou <ebotcazou@adacore.com>
10289
10290 * config/sparc/sparc.c (sparc_fold_builtin): Use a sequence of tests.
10291
10292 2011-10-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10293
10294 * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
10295 variables. Fix second operand of DR. Swap inputs for sdiv_qrnnd.
10296
10297 2011-10-03 David S. Miller <davem@davemloft.net>
10298
10299 * config/sparc/sparc.md (fpack16_vis, fpackfix_vis, fpack32_vis): Make
10300 GSR_REG an input operand to UNSPEC instead of a parallel USE.
10301 (faligndata<V64I:mode>_vis): Likewise and use DI mode.
10302 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, alignaddrldi_vis):
10303 Reference GSR_REG in DI mode, simplify convoluted expressions by using
10304 zero_extract.
10305 (bshuffle<V64I:mode>_vis): Reference GSR_REG in DI mode.
10306
10307 2011-10-03 Maxim Kuvyrkov <maxim@codesourcery.com>
10308
10309 * tree-eh.c (remove_unreachable_handlers): Obvious cleanup.
10310
10311 2011-10-03 Jakub Jelinek <jakub@redhat.com>
10312 Ian Lance Taylor <iant@google.com>
10313
10314 * godump.c (go_output_typedef): Support printing enum values that
10315 don't fit in a signed HOST_WIDE_INT.
10316
10317 2011-10-03 Anatoly Sokolov <aesok@post.ru>
10318
10319 * config/cris/cris.c (cris_output_addr_const_extra): Make static.
10320 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10321 * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10322 * config/cris/cris-protos.h (cris_output_addr_const_extra): Remove.
10323
10324 2011-10-03 Anatoly Sokolov <aesok@post.ru>
10325
10326 * config/m68k/m68k.c (m68k_output_addr_const_extra): Make static.
10327 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10328 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10329 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Remove.
10330
10331 2011-10-03 Steve Ellcey <sje@cup.hp.com>
10332
10333 PR target/49967
10334 * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
10335 (gcc_cv_ld_static_option): Ditto.
10336 (gcc_cv_ld_dynamic_option): Ditto.
10337 * configure: Regenerate.
10338
10339 2011-10-03 David S. Miller <davem@davemloft.net>
10340
10341 * config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
10342 and 'si' patterns which describe the GSR changes explicitly in the
10343 RTL using zero_extract.
10344 (bshuffle<V64I:mode>_vis): Put the GSR use inside of the unspec.
10345
10346 * config/sparc/sparc.md (bshuffle<V64I:mode>_vis): Don't wrap
10347 GSR_REG in a USE, since it's now a true arg to the UNSPEC.
10348
10349 2011-10-03 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
10350
10351 * optabs.c (expand_vec_shuffle_expr_p): New function. Checks
10352 if given expression can be expanded by the target.
10353 (expand_vec_shuffle_expr): New function. Expand VEC_SHUFFLE_EXPR
10354 using target vector instructions.
10355 * optabs.h: New optab vshuffle.
10356 (expand_vec_shuffle_expr_p): New prototype.
10357 (expand_vec_shuffle_expr): New prototype.
10358 (vshuffle_optab): New optab.
10359 * genopinit.c: Adjust to support vecshuffle.
10360 * c-tree.h (c_build_vec_shuffle_expr): New prototype.
10361 * expr.c (expand_expr_real_2): Adjust.
10362 * c-typeck.c: (c_build_vec_shuffle_expr): Build a VEC_SHUFFLE_EXPR
10363 recognizing the cases of two and three arguments.
10364 (convert_arguments) (build_binary_op)
10365 (scalar_to_vector) (build_array_ref): Spurious whitespace.
10366 * gimplify.c (gimplify_exp): Adjusted to support VEC_SHUFFLE_EXPR.
10367 * tree.def: New tree code VEC_SHUFFLE_EXPR.
10368 * tree-inline.c (estimate_operator_cost): Recognize VEC_SHUFFLE_EXPR.
10369 * tree-vect-generic.c (vector_element): New function. Returns an
10370 element of the vector at the given position.
10371 (lower_vec_shuffle): Checks if VEC_SHUFLLE_EXPR is supported
10372 by the backend or expand an expression piecewise.
10373 (expand_vector_operations_1): Adjusted.
10374 (gate_expand_vector_operations_noop): New gate function.
10375 * Makefile.in (tree-vect-generic.o): New include.
10376 * gimple.c (get_gimple_rhs_num_ops): Adjust.
10377 * tree-cfg.c (verify_gimple_assign_trenary): Verify VEC_SHUFFLE_EXPR.
10378 * passes.c: Move veclower down.
10379 * tree-pretty-print.c (dump_generic_node): Recognize
10380 VEC_SHUFFLE_EXPR as valid expression.
10381 * c-parser.c (c_parser_get_builtin_args): Helper function for the
10382 builtins with variable number of arguments.
10383 (c_parser_postfix_expression): Use a new helper function for
10384 RID_CHOOSE_EXPR, RID_BUILTIN_COMPLEX and RID_BUILTIN_SHUFFLE.
10385 * tree-ssa-operands: Adjust.
10386 * c-family/c-common.c: New __builtin_shuffle keyword.
10387 * c-family/c-common.h: New __builtin_shuffle keyword.
10388 * gcc/doc/extend.texi: Adjust.
10389
10390 * gcc/config/i386/sse.md: (sseshuffint) New mode_attr. Correspondence
10391 between the vector and the type of the mask when shuffling.
10392 (vecshuffle<mode>): New expansion.
10393 * gcc/config/i386/i386-protos.h (ix86_expand_vshuffle): New prototype.
10394 * gcc/config/i386/i386.c (ix86_expand_vshuffle): New function.
10395 (ix86_vectorize_builtin_vec_perm_ok): Adjust.
10396
10397 2011-10-03 Jakub Jelinek <jakub@redhat.com>
10398
10399 PR tree-optimization/50587
10400 * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
10401 arg0 is not a SSA_NAME.
10402
10403 2011-10-03 Richard Sandiford <rdsandiford@googlemail.com>
10404
10405 * ipa-inline-analysis.c (MAX_TIME): Update comment.
10406
10407 2011-10-02 Richard Henderson <rth@redhat.com>
10408 David S. Miller <davem@davemloft.net>
10409
10410 * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
10411 conditional insn type setting, we always emit a shift.
10412 (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
10413 (*lshrsi3_extend): Rename to *lshrsi3_extend1.
10414 * config/sparc/predicates.md (const_one_operand): Delete.
10415
10416 2011-10-02 Gerald Pfeifer <gerald@pfeifer.com>
10417
10418 * invoke.texi (SPARC Options): Refer to GNU/Linux.
10419
10420 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
10421
10422 * config/mips/mips.c (mips_frame_barrier): New function.
10423 (mips_expand_prologue): Call it after allocating stack space.
10424 (mips_deallocate_stack): New function.
10425 (mips_expand_epilogue): Call mips_frame_barrier and
10426 mips_deallocate_stack.
10427
10428 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
10429
10430 PR target/49696
10431 * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
10432 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
10433 (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
10434
10435 2011-10-02 Jan Hubicka <jh@suse.cz>
10436
10437 * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
10438
10439 * cgraphunit.c (ipa_passes): Remove unrechable nodes.
10440 * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
10441 * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
10442 functions are reachable when address is taken.
10443 * tree-sra.c (modify_function): Free dominance info.
10444
10445 2011-10-02 Jan Hubicka <jh@suse.cz>
10446
10447 * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
10448
10449 * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
10450 (reset_inline_summary): New function.
10451 (compute_inline_parameters, inline_node_removal_hook,
10452 inline_edge_removal_hook): Use it.
10453 (inline_free_summary): Reset holders correctly.
10454 (inline_generate_summary): Free summary before computing it.
10455
10456 2011-10-02 Paolo Carlini <paolo.carlini@oracle.com>
10457
10458 PR preprocessor/36819
10459 * incpath.c (merge_include_chains): Call free_path on
10460 heads[QUOTE] and tails[QUOTE].
10461
10462 2011-10-02 Jan Hubicka <jh@suse.cz>
10463
10464 PR lto/47247
10465 * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
10466 when resolution is already availbale from plugin.
10467 (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
10468 * cgraph.c (ld_plugin_symbol_resolution): Add
10469 prevailing_def_ironly_exp.
10470 * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
10471 * ipa.c (varpool_externally_visible_p): IRONLY variables are never
10472 externally visible.
10473 * varasm.c (resolution_to_local_definition_p): Add
10474 LDPR_PREVAILING_DEF_IRONLY_EXP.
10475 (resolution_local_p): Likewise.
10476
10477 2011-10-01 David S. Miller <davem@davemloft.net>
10478
10479 * config/sparc/sparc.opt (VIS3): New option.
10480 * doc/invoke.texi: Document it.
10481 * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
10482 not capable of such instructions.
10483 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
10484 to 0x300 when TARGET_VIS3.
10485 * config/sparc/sparc-modes.def: Create 16-byte vector modes.
10486 * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
10487 UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
10488 (V64N8, VASS): New mode iterators.
10489 (vis3_shift, vis3_addsub_ss): New code iterators.
10490 (vbits, vconstr): New mode attributes.
10491 (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
10492 (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
10493 fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
10494 fmean16_vis, fpadd64_vis, fpsub64_vis,
10495 <vis3_addsub_ss_insn><vbits>_vis, fucmp<code>8<P:mode>_vis): New
10496 VIS 3.0 instruction patterns.
10497 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
10498 default when targetting capable cpus. TARGET_VIS3 implies
10499 TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is disabled.
10500 (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
10501 (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
10502 is ignored.
10503 * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
10504 __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
10505 __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
10506 __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
10507 __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
10508 __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
10509 __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
10510 __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
10511 * doc/extend.texi: Document new VIS 3.0 builtins.
10512
10513 2011-10-01 Eric Botcazou <ebotcazou@adacore.com>
10514
10515 * ira-color.c (assign_hard_reg): Fix typo.
10516
10517 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
10518
10519 * doc/extend.texi: Add missing ','.
10520
10521 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
10522
10523 * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
10524 Enable -fmodulo-sched at -O2 and above.
10525 * config/c6x/c6x.md (doloop_end): New expander.
10526 (mvilc, sploop, spkernel, loop_end): New patterns.
10527 (loop_end with memory destination splitter): New.
10528 * config/c6x/c6x.c: Include "hw-doloop.h".
10529 (enum unitreqs): New.
10530 (unit_req_table): New typedef.
10531 (unit_reqs): New static variable.
10532 (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
10533 res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
10534 hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
10535 hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
10536 (struct c6x_sched_context): New member last_scheduled_iter0.
10537 (init_sched_state): Initialize it.
10538 (c6x_variable_issue): Update it.
10539 (sploop_max_uid_iter0): New static variable.
10540 (c6x_sched_reorder_1): Be careful about issuing sploop.
10541 (c6x_reorg): Call c6x_hwlooops before the final schedule.
10542
10543 2011-09-30 Georg-Johann Lay <avr@gjlay.de>
10544
10545 PR target/50566
10546 * config/avr/avr-protos.h (avr_log_t): New field address_cost.
10547 * config/avr/avr.c (avr_address_cost): Use it.
10548 * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
10549 (avr_log_vadump): Unknown %-codes finish printing.
10550
10551 2011-09-30 Jakub Jelinek <jakub@redhat.com>
10552
10553 PR inline-asm/50571
10554 * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
10555 input constraints allow mem and not reg, pass true instead of
10556 false as second argument to maybe_fold_reference.
10557
10558 PR tree-optimization/46309
10559 * fold-const.c (make_range, merge_ranges): Remove prototypes.
10560 (make_range_step): New function.
10561 (make_range): Use it.
10562 * tree.h (make_range_step): New prototypes.
10563 * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
10564 * tree-ssa-reassoc.c: Include diagnostic-core.h.
10565 (struct range_entry): New type.
10566 (init_range_entry, range_entry_cmp, update_range_test,
10567 optimize_range_tests): New functions.
10568 (reassociate_bb): Call optimize_range_tests.
10569
10570 2011-09-30 Jakub Jelinek <jakub@redhat.com>
10571 Richard Guenther <rguenther@suse.de>
10572
10573 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
10574 BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
10575 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise. Fix
10576 handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
10577 (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
10578 BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
10579
10580 2011-09-30 Jan Beulich <jbeulich@suse.com>
10581
10582 * lto-cgraph.c (output_cgraph): Remove processing of
10583 'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
10584 (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
10585 lto_input_toplevel_asms() instead.
10586 * lto-section-in.c (lto_section_name): Add "asm" entry.
10587 * lto-streamer-in.c (lto_input_toplevel_asms): New.
10588 * lto-streamer-out.c (lto_output_toplevel_asms): New.
10589 * lto-streamer.h (LTO_minor_version): Bump.
10590 (enum lto_section_type): Add LTO_section_asm.
10591 (struct lto_asm_header): New.
10592 (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
10593 * tree-streamer.h (streamer_write_string_cst): Declare.
10594 * tree-streamer-out.c (write_string_cst): Rename to
10595 streamer_write_string_cst and make global. Handle incoming string
10596 being NULL.
10597 (streamer_write_tree_header): Adjust call to renamed function.
10598
10599 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
10600
10601 * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
10602 modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
10603 modulo_last_stage): New static variables.
10604 (set_modulo_params, discard_delay_pairs_above): New functions.
10605 (struct delay_pair): New member stages.
10606 (htab_i2_traverse, htab_i1_traverse): New static functions.
10607 (record_delay_slot_pair): New arg stages. All callers changed.
10608 Record it.
10609 (pair_delay): Take stages into account.
10610 (add_delay_dependencies): Don't do so for stage pairs.
10611 (struct sched_block_state): New member modulo_epilogue.
10612 (save_backtrack_point): Don't set SHADOW_P for stage pairs.
10613 (unschedule_insns_until): Decrease modulo_insns_scheduled.
10614 Set HARD_DEP without using or.
10615 (resolve_dependencies): New static function.
10616 (prune_ready_list): New arg modulo_epilogue_p. All callers changed.
10617 If it is true, allow only insns with INSN_EXACT_TICK set.
10618 (schedule_block): Return bool, always true for normal scheduling,
10619 true or false depending on modulo scheduling success otherwise.
10620 Add bookkeeping for modulo scheduling, and call resolve_dependencies
10621 on everything left over after a modulo schedule.
10622 (haifa_sched_init): Remove check_cfg call. Clear modulo_ii.
10623 * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
10624 declarations.
10625 (set_modulo_params, discard_delay_pairs_above): Declare.
10626 * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
10627 * doc/invoke.texi (--param): Document it.
10628
10629 * sched-ebb.c (schedule_ebb): No longer static. Remove declaration.
10630 New arg modulo_scheduling. All callers changed. Move note handling
10631 code here from schedule_ebbs.
10632 (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
10633 out of schedule_ebbs.
10634 (schedule_ebbs): Call them. Remove note handling code moved to
10635 schedule_ebb.
10636 * sched-int.h (schedule_ebb, schedule_ebbs_init,
10637 schedule_ebbs_finish): Declare.
10638
10639 2011-09-30 Richard Guenther <rguenther@suse.de>
10640
10641 PR middle-end/50574
10642 * tree-cfg.c (verify_gimple_comparison): Compare component
10643 mode sizes for vector comparisons.
10644
10645 2011-09-30 Revital Eres <revital.eres@linaro.org>
10646
10647 * ddg.c (autoinc_var_is_used_p): New function.
10648 (create_ddg_dep_from_intra_loop_link,
10649 add_cross_iteration_register_deps): Call it.
10650 * ddg.h (autoinc_var_is_used_p): Declare.
10651 * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
10652 (sms_schedule): Handle instructions with REG_INC.
10653
10654 2011-09-30 Revital Eres <revital.eres@linaro.org>
10655
10656 * modulo-sched.c (generate_reg_moves): Skip instructions that
10657 do not set a register and verify no regmoves are created for
10658 !single_set instructions.
10659
10660 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
10661
10662 * hw-doloop.c (scan_loop): Compute register usage only for non-debug
10663 insns.
10664
10665 2011-09-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10666
10667 PR target/50099
10668 * config/arm/iterators.md (qhs_zextenddi_cstr): New.
10669 (qhs_zextenddi_op): New.
10670 * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
10671 * config/arm/predicates.md ("arm_extendqisi_mem_op"):
10672 Distinguish between ARM and Thumb2 states.
10673
10674 2011-09-30 David S. Miller <davem@davemloft.net>
10675
10676 * config/sparc/sparc.opt (VIS2): New option.
10677 * doc/invoke.texi: Document it.
10678 * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
10679 UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
10680 UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
10681 (define_attr type): New insn type 'edgen'.
10682 (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
10683 edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
10684 edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
10685 patterns.
10686 * niagara.md: Handle edgen.
10687 * niagara2.md: Likewise.
10688 * ultra1_2.md: Likewise.
10689 * ultra3.md: Likewise.
10690 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
10691 to 0x200 when TARGET_VIS2.
10692 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
10693 default when targetting capable cpus. TARGET_VIS2 implies
10694 TARGET_VIS, clear and it when TARGET_FPU is disabled.
10695 (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
10696 (sparc_expand_builtin): Fix predicate indexing when builtin returns
10697 void.
10698 (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
10699 * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
10700 __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
10701 __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
10702 __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
10703 * doc/extend.texi: Document new VIS 2.0 builtins.
10704
10705 2011-09-29 Nick Clifton <nickc@redhat.com>
10706 Bernd Schmidt <bernds@codesourcery.com>
10707
10708 * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header file.
10709 * config/frv/frvend.c: Likewise.
10710 * config/frv/frv.c (frv_function_prologue): Move misplaced
10711 CALL_ARG_LOCATION notes back to their proper locations.
10712
10713 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
10714
10715 PR target/50566
10716 * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
10717 * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
10718 from avr_rtx_costs.
10719 (avr_legitimate_address_p): Use avr_edump to print log information
10720 filtered by avr_log.
10721 (extra_constraint_Q): Ditto.
10722 (avr_legitimize_address): Ditto.
10723 (avr_rtx_costs): Ditto. Rewrite as wrapper for avr_rtx_costs_1.
10724 (final_prescan_insn): Use avr_log.rtx_costs as filter.
10725
10726 2011-09-29 Richard Sandiford <richard.sandiford@linaro.org>
10727
10728 * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
10729 * config/arm/arm.h (MODES_TIEABLE_P): Use it.
10730 * config/arm/arm.c (arm_modes_tieable_p): New function. Allow
10731 NEON vector and structure modes to be tied.
10732
10733 2011-09-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10734
10735 * graphite-scop-detection.c (make_close_phi_nodes_unique): New
10736 forward declaration.
10737 (remove_duplicate_close_phi): Detect and repair creation of
10738 duplicate close-phis for a containing loop.
10739
10740 2011-09-27 Andi Kleen <ak@linux.intel.com>
10741
10742 * gcc.c (get_local_tick). Rename to get_random_number. Read from
10743 /dev/urandom. Add getpid call.
10744 (compare_debug_dump_opt_spec_function): Drop getpid call.
10745
10746 2011-09-26 Andi Kleen <ak@linux.intel.com>
10747
10748 * toplev.c (init_local_tick): Try reading random seed
10749 from /dev/urandom.
10750
10751 2011-09-26 Andi Kleen <ak@linux.intel.com>
10752
10753 * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
10754 * lto-streamer.c (lto_get_section_name): Remove crc32_string.
10755 Handle numerical random seed.
10756 * lto-streamer.h (lto_file_decl_data): Change id to
10757 unsigned HOST_WIDE_INT.
10758 * toplev.c (random_seed): Add.
10759 (init_random_seed): Change for numerical random seed.
10760 (get_random_seed): Return as HOST_WIDE_INT.
10761 (set_random_seed): Crc32 existing string.
10762 * toplev.h (get_random_seed): Change to numercal return.
10763 * tree.c (get_file_function_name): Remove CRC. Handle
10764 numerical random seed.
10765
10766 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
10767
10768 PR target/50566
10769 * config.gcc (extra_objs): Add avr-log.o for $target in:
10770 avr-*-rtems*, avr-*-*.
10771 * config/avr/t-avr (avr-log.o): New rule to compile...
10772 * config/avr/avr-log.c: ...this new file.
10773 * config/avr/avr.opt (mlog=): New option.
10774 * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
10775 (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
10776 (avr_log_set_avr_log): New prototype.
10777 (avr_log_t): New typedef.
10778 (avr_log): New declaration.
10779 * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
10780
10781 2011-09-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
10782
10783 * expr.c (do_store_flag): Expand vector comparison by
10784 building an appropriate VEC_COND_EXPR.
10785 * c-typeck.c (build_binary_op): Typecheck vector comparisons.
10786 (c_objc_common_truthvalue_conversion): Adjust.
10787 * tree-vect-generic.c (do_compare): Helper function.
10788 (expand_vector_comparison): Check if hardware supports
10789 vector comparison of the given type or expand vector piecewise.
10790 (expand_vector_operation): Treat comparison as binary
10791 operation of vector type.
10792 (expand_vector_operations_1): Adjust.
10793
10794 2011-09-29 Richard Guenther <rguenther@suse.de>
10795
10796 * tree.c (build_opaque_vector_type): Make opaque vectors
10797 variant types of the corresponding non-opaque type. Make
10798 sure to share opaque vector types properly.
10799
10800 2011-09-29 David S. Miller <davem@davemloft.net>
10801
10802 * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
10803 UNSPEC_ARRAY32): New unspec.
10804 (define_attr type): New type 'array'.
10805 (array{8,16,32}<P:mode>_vis): New patterns.
10806 * config/sparc/ultra1_2.md: Add reservations for 'array'.
10807 * config/sparc/ultra3.md: Likewise.
10808 * config/sparc/niagara.md: Likewise.
10809 * config/sparc/niagara2.md: Likewise.
10810 * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
10811 array builtins.
10812 * config/sparc/visintrin.h (__vis_array8, __vis_array16,
10813 __vis_array32): New.
10814 * doc/extend.texi: Document new VIS builtins.
10815
10816 * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
10817 (VIS pixel-compare insn): Just use <gcond:name>.
10818
10819 * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
10820 code iterator used, so just use <code>. There are two mode iterators
10821 so explicitly use <GCM:gcm_name>.
10822
10823 2011-09-29 Iain Sandoe <iains@gcc.gnu.org>
10824
10825 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
10826 Darwin >= 9.
10827
10828 2011-09-28 David S. Miller <davem@davemloft.net>
10829
10830 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
10831 UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
10832 (UNSPEC_FCMP): New unspec.
10833 (gcond): New code iterator.
10834 (gcond_name): New code attr.
10835 (GCM): New mode iterator.
10836 (gcm_name): New mode attr.
10837 (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
10838
10839 2011-09-28 Oleg Endo <oleg.endo@t-online.de>
10840
10841 PR target/49486
10842 * config/sh/sh.md (negdi2): Move expansion into split to
10843 allow more combination options. Add T_REG clobber.
10844 (abssi2): New expander.
10845 (*negdi2, *abssi2, *negabssi2): New insns.
10846 (cneg): Change from insn to insn_and_split. Rename to
10847 negsi_cond. Add alternative for non-SH4.
10848
10849 2011-09-28 Richard Sandiford <richard.sandiford@linaro.org>
10850
10851 * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
10852 (neon_move_hi_quad_<mode>): Likewise.
10853 (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
10854
10855 2011-09-28 Nick Clifton <nickc@redhat.com>
10856
10857 * config/rx/predicates.md (rx_minmax_operand): New predicate.
10858 Accepts immediates and a restricted subset of MEMs.
10859 * config/rx/rx.md (int_modes): New iterator.
10860 (smaxsi3, sminsi3): Delete and replace with...
10861 (smax<int_mode>3, smin<int_mode>3): New patterns.
10862 (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
10863
10864 2011-09-28 Richard Guenther <rguenther@suse.de>
10865
10866 PR middle-end/50460
10867 * fold-const.c (try_move_mult_to_index): Handle &a.array the
10868 same as &a.array[0].
10869
10870 2011-09-28 Kai Tietz <ktietz@redhat.com>
10871
10872 * configure.ac: Add test for new section attribute
10873 specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
10874 * config.in: Regenerated.
10875 * configure: Regenerated.
10876 * config/i386/winnt.c (i386_pe_asm_named_section): Emit
10877 new section flag "e" for excluded sections, if supported.
10878 Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
10879
10880 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
10881
10882 * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
10883 throughout file.
10884
10885 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
10886
10887 * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
10888 throughout file.
10889
10890 2011-09-27 Sriraman Tallam <tmsriram@google.com>
10891
10892 * output.h (SECTION_EXCLUDE): New macro.
10893 * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
10894
10895 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
10896
10897 * fwprop.c (forward_propagate_and_simplify): After checking
10898 reg/subreg combinations, check whether the modes are the same.
10899
10900 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
10901 Richard Sandiford <rdsandiford@googlemail.com>
10902
10903 * config/mips/mips.c (mips_add_cfa_restore): New function.
10904 (mips16e_save_restore_reg): Use it.
10905 (mips_restore_reg): Likewise. Split double FPRs for
10906 REG_CFA_RESTORE notes.
10907
10908 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
10909
10910 PR middle-end/50386
10911 PR middle-end/50326
10912 * tree-sra.c (build_ref_for_model): Use the type of the field as
10913 the type of the COMPONENT_REF.
10914
10915 2011-09-27 Jeff Law <law@redhat.com>
10916
10917 * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument. Scale
10918 non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
10919 (find_if_case_1): Use the probability of the THEN clause when
10920 determining if speculation is profitable.
10921 (find_if_case_2): Similarly for the ELSE clause.
10922
10923 2011-09-27 Jakub Jelinek <jakub@redhat.com>
10924
10925 * common.opt: Add -foptimize-strlen option.
10926 * Makefile.in (OBJS): Add tree-ssa-strlen.o.
10927 (tree-sssa-strlen.o): Add dependencies.
10928 * opts.c (default_options_table): Enable -foptimize-strlen
10929 by default at -O2 if not -Os.
10930 * passes.c (init_optimization_passes): Add pass_strlen
10931 after pass_object_sizes.
10932 * timevar.def (TV_TREE_STRLEN): New timevar.
10933 * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
10934 * tree-pass.h (pass_strlen): Declare.
10935 * tree-ssa-strlen.c: New file.
10936 * c-decl.c (merge_decls): If compatible stpcpy prototype
10937 is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
10938
10939 2011-09-27 Tom de Vries <tom@codesourcery.com>
10940
10941 PR middle-end/43864
10942 * tree-ssa-tail-merge.c: New file.
10943 (struct same_succ_def): Define.
10944 (same_succ, const_same_succ): New typedef.
10945 (struct bb_cluster_def): Define.
10946 (bb_cluster, const_bb_cluster): New typedef.
10947 (struct aux_bb_info): Define.
10948 (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
10949 (gvn_uses_equal): New function.
10950 (same_succ_print, same_succ_print_traverse, update_dep_bb)
10951 (stmt_update_dep_bb, local_def, same_succ_hash)
10952 (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
10953 (same_succ_reset): New function.
10954 (same_succ_htab, same_succ_edge_flags)
10955 (deleted_bbs, deleted_bb_preds): New var.
10956 (debug_same_succ): New function.
10957 (worklist): New var.
10958 (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
10959 (init_worklist, delete_worklist, delete_basic_block_same_succ)
10960 (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
10961 (print_cluster, debug_cluster, update_rep_bb)
10962 (add_bb_to_cluster, new_cluster, delete_cluster): New function.
10963 (all_clusters): New var.
10964 (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
10965 (merge_clusters, set_cluster): New function.
10966 (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
10967 (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
10968 (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
10969 (find_clusters_1, find_clusters): New function.
10970 (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
10971 (update_bbs): New var.
10972 (apply_clusters): New function.
10973 (update_debug_stmt, update_debug_stmts): New function.
10974 (tail_merge_optimize): New function.
10975 tree-pass.h (tail_merge_optimize): Declare.
10976 * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
10977 * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
10978 (tree-ssa-tail-merge.o): New rule.
10979 * opts.c (default_options_table): Set OPT_ftree_tail_merge by
10980 default at OPT_LEVELS_2_PLUS.
10981 * tree-ssa-sccvn.c (vn_valueize): Move to ...
10982 * tree-ssa-sccvn.h (vn_valueize): Here.
10983 * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
10984 * common.opt (ftree-tail-merge): New switch.
10985 * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
10986 (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
10987 * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
10988 (-ftree-tail-merge, max-tail-merge-comparisons)
10989 (max-tail-merge-iterations): New item.
10990
10991 2011-09-27 Jan Hubicka <jh@suse.cz>
10992
10993 * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
10994
10995 2011-09-27 Jan Hubicka <jh@suse.cz>
10996
10997 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
10998 parameters passed by reference; handle loads from non-SSA scalars
10999 and update comments.
11000
11001 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
11002
11003 PR rtl-optimization/50249
11004 * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
11005 instead of opnum and type. All callers changed. Remove useless
11006 declaration.
11007 Search forward for other reloads of the same type for the same operand
11008 using the same register; if any are found, return false.
11009 (reload_regs_reach_end_p): Same argument changes; all callers changed.
11010
11011 2011-09-27 Andi Kleen <ak@linux.intel.com>
11012 Jan Hubicka <jh@suse.cz>
11013
11014 * doc/invoke.texi (ffat-lto-objects): Document.
11015 * toplev.c (compile_file): Do not output assembly when doing slim lto;
11016 Output __gnu_slim_lto when doing slim lto.
11017 * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
11018 (cgraph_optimize): Return early when doing slim lto.
11019 * opts.c (finish_options): Complain about lack of linker plugin
11020 when doing slim lto.
11021 * common.opt (ffat-lto-objects): New.
11022
11023 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
11024
11025 * ipa-inline-analysis.c (predicate_probability): Avoid comparison
11026 between signed and unsigned.
11027
11028 2011-09-27 Ira Rosen <ira.rosen@linaro.org>
11029
11030 * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
11031 vectorization.
11032 (vectorizable_type_promotion): Likewise.
11033 (vect_analyze_stmt): Call vectorizable_type_demotion and
11034 vectorizable_type_promotion for basic blocks.
11035 (supportable_widening_operation): Don't assume loop vectorization.
11036 * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
11037 basic blocks. Update vectorization factor for basic block
11038 vectorization.
11039 (vect_analyze_slp_instance): Allow multiple types for basic block
11040 vectorization. Recheck unrolling factor after construction of SLP
11041 instance.
11042
11043 2011-09-27 Richard Guenther <rguenther@suse.de>
11044
11045 * tree-object-size.c (compute_object_sizes): Fix dumping of
11046 folded statement.
11047
11048 2011-09-27 Richard Guenther <rguenther@suse.de>
11049
11050 PR tree-optimization/50363
11051 * tree-ssa-pre.c (create_expression_by_pieces): Handle
11052 pointer conversions in POINTER_PLUS_EXPRs properly.
11053
11054 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
11055
11056 * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
11057 (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
11058 (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
11059 (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
11060 that produce subreg moves. Define using VQX iterators.
11061
11062 2011-09-27 Georg-Johann Lay <avr@gjlay.de>
11063
11064 * config/avr/avr.md (ashrqi3): Split alternative "n"
11065 into its remaining parts C03, C04, C05, C06, C07 and describe
11066 impact in CC by attribute "cc" appropriately.
11067 * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
11068 by digging RTX.
11069
11070 2011-09-27 Jakub Jelinek <jakub@redhat.com>
11071
11072 * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
11073 from 3 x MAX_MACHINE_MODE.
11074 (CONSTM1_RTX): Define.
11075 * emit-rtl.c (const_tiny_rtx): Change into array of
11076 4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
11077 (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
11078 CONSTM1_RTX.
11079 (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
11080 MODE_VECTOR_INT modes.
11081 * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
11082 Optimize if one operand is CONSTM1_RTX.
11083 * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
11084 into mask | x.
11085
11086 2011-09-26 David S. Miller <davem@davemloft.net>
11087
11088 * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
11089 (fcmp{le,ne,gt,eq}{16,32}): Likewise.
11090 * config/sparc/visintrin.h: Update edge and pixel-compare
11091 intrinsics to return 'long' instead of 'int'.
11092 * doc/extend.texi: Update documentation to match.
11093 * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
11094 flat, allow any instruction. Otherwise, when V9 allow parallels
11095 which consist only of sets to registers outside of %o0 to %o5.
11096 (sparc_vis_init_builtins): Update VIS builtin types for edge
11097 and pixel-compare.
11098
11099 * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
11100 is enabled, mark %gsr as global.
11101 * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
11102 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
11103
11104 * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
11105 which will now define __VIS and __VIS__ when -mvis is enabled.
11106 * config/sparc/t-sparc: Likewise.
11107 * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
11108 and add t-sparc to tmake_file for all sparc targets.
11109 * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
11110 * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
11111
11112 * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
11113 builtins for VIS vector addition and subtraction.
11114 * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
11115 __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
11116 __vis_fpsub32, __vis_fpsub32s): New.
11117 * doc/extend.texi: Document new VIS intrinsics.
11118
11119 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
11120
11121 * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
11122 * config/avr/avr.c (avr_out_compare): Print shorter sequence for
11123 EQ/NE comparisons against +/-1 in the case of unused-after,
11124 non-ld-regs target.
11125
11126 2011-09-26 Jakub Jelinek <jakub@redhat.com>
11127
11128 * gimple-fold.c (gimplify_and_update_call_from_tree): Set
11129 gctx.into_ssa after push_gimplify_context.
11130
11131 * gimple.c (gimple_build_call_valist): New function.
11132 * gimple.h (gimple_build_call_valist): New prototype.
11133 * tree-ssa-propagate.c (finish_update_gimple_call): New function.
11134 (update_gimple_call): Likewise.
11135 (update_call_from_tree): Use finish_update_gimple_call.
11136 * tree-ssa-propagate.h (update_gimple_call): New prototype.
11137
11138 2011-09-26 Richard Guenther <rguenther@suse.de>
11139
11140 PR tree-optimization/50472
11141 * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
11142 volatile references.
11143
11144 2011-09-26 Bingfeng Mei <bmei@broadcom.com>
11145
11146 * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
11147 * target.def: (addr_space_subset_p): Likewise.
11148
11149 2011-09-26 Tom de Vries <tom@codesourcery.com>
11150
11151 * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
11152 * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
11153 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
11154 of new var.
11155
11156 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
11157
11158 PR target/50465
11159 * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
11160 * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
11161 output_reload_insisf.
11162 (adjust_len): Set default to "no".
11163 Remove alternative "yes". Add alternatives: "mov8", "mov16",
11164 "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
11165 "lshrhi", "ashlsi, "ashrsi", "lshrsi".
11166 (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
11167 *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
11168 *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
11169 *lshrsi3_const): Set attribute "adjust_len".
11170 * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
11171 (output_movsisf): Don't pass insn to output_reload_insisf.
11172 (adjust_insn_length): Handle new alternatives to adjust_len.
11173 Remove handling of ADJUST_LEN_YES. Clean-up code.
11174
11175 2011-09-26 Eric Botcazou <ebotcazou@adacore.com>
11176
11177 * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
11178 may_trap_p to detect loads that may trap of fault.
11179
11180 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
11181
11182 * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
11183 * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
11184 (*reload_inhi): Use it. Adapt call to output_reload_inhi to new
11185 prototype.
11186 (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
11187 * config/avr/avr.c: Rename output_reload_insisf_1 to
11188 output_reload_in_const.
11189 (avr_popcount_each_byte): Handle SFmode, too.
11190 (output_reload_in_const): Change so it can handle HI loads, too.
11191 Use avr_popcount_each_byte to work out if scratch register must be
11192 created on the fly.
11193 (output_reload_inhi): Rewrite using output_reload_in_const and...
11194 (output_movhi): ...use it to print constants' loads.
11195 (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
11196
11197 2011-09-25 David S. Miller <davem@davemloft.net>
11198
11199 * config/sparc/constraints.md (C, P, Z): New constraints for
11200 const_doube, const_int, and const_vector "all ones" values.
11201 Make unused constraint letters comment match reality.
11202 * config/sparc/predicates.md (const_all_ones_operand,
11203 register_or_zero_or_all_ones_operand): New predicates.
11204 * config/sparc/sparc.c (sparc_expand_move): Allow all ones
11205 as well as zero constants when VIS.
11206 (sparc_legitimate_constant_p): Likewise.
11207 * config/sparc/sparc.md (movsi_insn): Add fones alternative.
11208 (movsf_insn): Likewise
11209 (movdi_insn_sp64): Add fone alternative.
11210 (movdf_insn_sp32_v9): Likewise.
11211 (movdf_insn_sp64): Likewise.
11212
11213 * configure.ac: Add feature check to make sure the assembler
11214 supports the FMAF, HPC, and VIS 3.0 instructions found on
11215 Niagara-3 and later cpus.
11216 * configure: Rebuild.
11217 * config.in: Likewise.
11218 * config/sparc/sparc.opt: New option '-mfmaf'.
11219 * config/sparc/sparc.md: Add float fused multiply-add patterns.
11220 * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
11221 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
11222 * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
11223 ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
11224 * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
11225 by default for Niagara-3 and later. Turn it off if TARGET_FPU is
11226 disabled.
11227 (sparc_rtx_costs): Handle 'FMA'.
11228 * doc/invoke.texi: Document -mfmaf.
11229
11230 2011-09-25 Jakub Jelinek <jakub@redhat.com>
11231
11232 * tree-ssa-structalias.c (intra_create_variable_infos): Treat
11233 TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
11234 DECL_BY_REFERENCE parameters.
11235
11236 2011-09-25 Eric Botcazou <ebotcazou@adacore.com>
11237
11238 * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
11239 if there is no outgoing edge.
11240
11241 * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
11242 integral types.
11243
11244 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
11245
11246 * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
11247 of vect_analyze_bb here.
11248 (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
11249
11250 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
11251
11252 * tree-data-ref.c (dr_analyze_innermost): Add new argument.
11253 Allow not simple iv if analyzing basic block.
11254 (create_data_ref): Update call to dr_analyze_innermost.
11255 (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
11256 * tree-loop-distribution.c (generate_memset_zero): Likewise.
11257 * tree-predcom.c (find_looparound_phi): Likewise.
11258 * tree-data-ref.h (dr_analyze_innermost): Add new argument.
11259
11260 2011-09-24 David S. Miller <davem@davemloft.net>
11261
11262 * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
11263 (SPARC_GSR_REG): Define.
11264 (FIXED_REGISTERS): Mark GSR as fixed.
11265 (CALL_USED_REGISTERS): Mark GSR as call used.
11266 (HARD_REGNO_NREGS): GSR is always 1 register.
11267 (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
11268 (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
11269 (REGISTER_NAMES): Add "%gsr".
11270 * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
11271 (UNSPEC_WRGSR): New unspec.
11272 (GSR_REG): New constant.
11273 (type): Add new insn type 'gsr'.
11274 (fpack16_vis, fpackfix_vis, fpack32_vis,
11275 faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
11276 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
11277 rdgsr_v8plus): New expanders and insns.
11278 (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
11279 using patterns which show that this is a plus in addition to a
11280 modification of GSR_REG, instead of an unspec.
11281 * config/sparc/ultra1_2.md: Handle 'gsr'.
11282 * config/sparc/ultra3.md: Likewise.
11283 * config/sparc/niagara.md: Likewise.
11284 * config/sparc/niagara2.md: Likewise.
11285 * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
11286 end of table.
11287 (sparc_option_override): Make -mvis imply -mv8plus.
11288 (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
11289 for %gsr.
11290 (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
11291 __builtin_vis_read_gsr.
11292 (sparc_expand_buildin): Handle builtins that take one argument and
11293 return void.
11294 (sparc_fold_builtin): Never fold writes to %gsr.
11295 * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
11296 * doc/extend.texi: Document new VIS intrinsics.
11297
11298 2011-09-23 Jan Hubicka <jh@suse.cz>
11299
11300 * ipa-inline-transform.c (inline_call): Add comment.
11301 * ipa-inline.h (inline_param_summary): New structure and vector.
11302 (struct inline_edge_summary): Add param field.
11303 * ipa-inline-analysis.c (CHANGED): New constant.
11304 (add_clause): Handle CHANGED and NOT_CONSTANT.
11305 (predicate_probability): New function.
11306 (dump_condition): Dump CHANGED predicate.
11307 (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
11308 of unknown function wide invariant.
11309 (evaluate_conditions_for_edge): Handle change probabilities.
11310 (inline_edge_duplication_hook): Copy param summaries.
11311 (inline_edge_removal_hook): Free param summaries.
11312 (dump_inline_edge_summary): Fix dumping of indirect edges and callee
11313 sizes; dump param summaries.
11314 (will_be_nonconstant_predicate): Use CHANGED predicate.
11315 (record_modified_bb_info): New structure.
11316 (record_modified): New function.
11317 (param_change_prob): New function.
11318 (estimate_function_body_sizes): Compute param summaries.
11319 (estimate_edge_size_and_time): Add probability argument.
11320 (estimate_node_size_and_time): Add inline_param_summary argument;
11321 handle predicate probabilities.
11322 (remap_predicate): Fix formating.
11323 (remap_edge_change_prob): New function.
11324 (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
11325 (remap_edge_predicates): ... this one.
11326 (inline_merge_summary): Remap edge summaries; handle predicate
11327 probabilities; remove param summaries after we are done.
11328 (do_estimate_edge_time): Update.
11329 (do_estimate_edge_growth): Update.
11330 (read_inline_edge_summary): Read param info.
11331 (inline_read_summary): Fix formating.
11332 (write_inline_edge_summary): Write param summaries.
11333
11334 2011-09-23 Jakub Jelinek <jakub@redhat.com>
11335
11336 * config/i386/i386.c (ix86_print_operand): Handle %~.
11337 (ix86_print_operand_punct_valid_p): Return true also for '~'.
11338 * config/i386/sse.md (i128): New mode_attr.
11339 (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
11340 avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
11341 *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
11342 vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
11343 patterns, use "<sseinsnmode>" for "mode" attribute.
11344 (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
11345 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
11346 %~128 in the patterns, use "OI" for "mode" attribute.
11347
11348 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
11349
11350 PR target/50447
11351 * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
11352 "tstsi", "compare".
11353 (*cmpqi_sign_extend): Use s8_operand.
11354 (*cmphi, *cmpsi): Rewrite using avr_out_compare.
11355 * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
11356 prototypes.
11357 (out_tsthi, out_tstsi): Remove prototypes.
11358 (avr_out_tsthi, avr_out_tstsi): New prototypes.
11359 * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
11360 (avr_asm_len): Negative length now sets *plen to -length.
11361 (compare_sign_p): Return bool instead of int.
11362 (compare_diff_p, compare_eq_p): Ditto and make static.
11363 (avr_out_tsthi): New function.
11364 (avr_out_tstsi): New function.
11365 (avr_out_compare): New function.
11366 (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
11367 ADJUST_LEN_COMPARE.
11368
11369 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
11370
11371 PR target/50447
11372 * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
11373 (addsi3): Rewrite using QI scratch register. Adjust text
11374 peepholes using plus:SI.
11375 (*addsi3_zero_extend.hi): New insn.
11376 (*subsi3_zero_extend.hi): New insn.
11377 (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
11378 (*subsi3_zero_extend): Ditto.
11379 (subsi3): Change predicate #2 to register_operand.
11380 * config/avr/avr-protos.h (avr_out_plus): New prototype.
11381 (avr_out_plus_1): New static function.
11382 (avr_out_plus): New function.
11383 (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
11384
11385 2011-09-23 Jakub Jelinek <jakub@redhat.com>
11386
11387 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
11388 GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
11389
11390 2011-09-23 Ian Lance Taylor <iant@google.com>
11391
11392 * godump.c (go_define): Treat a single character in single quotes,
11393 or a string, as an operand.
11394
11395 2011-09-23 Martin Jambor <mjambor@suse.cz>
11396
11397 * ipa-prop.h (jump_func_type): Updated comments.
11398 (ipa_known_type_data): New type.
11399 (ipa_jump_func): Use it to describe known type jump functions.
11400 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
11401 reflect the new known type jump function contents.
11402 (compute_known_type_jump_func): Likewise.
11403 (combine_known_type_and_ancestor_jfs): Likewise.
11404 (try_make_edge_direct_virtual_call): Likewise.
11405 (ipa_write_jump_function): Likewise.
11406 (ipa_read_jump_function): Likewise.
11407 * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
11408 (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
11409 (propagate_accross_jump_function): Likewise.
11410
11411 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
11412
11413 PR target/50446
11414 * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
11415 (rotlqi3_4): Turn insn into expander.
11416 (*rotlqi3): New insn.
11417 (rotlhi3, rotlsi3): Support rotate left/right by 1.
11418 (*rotlhi2.1, *rotlhi2.15): New insns.
11419 (*rotlsi2.1, *rotlsi2.31): New insns.
11420 * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
11421
11422 2011-09-23 Bin Cheng <bin.cheng@arm.com>
11423
11424 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
11425
11426 2011-09-22 Maxim Kuvyrkov <maxim@codesourcery.com>
11427
11428 * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
11429
11430 2011-09-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11431
11432 * reload.c (find_reloads): Set operand_mode to Pmode for address
11433 operands consisting of just a CONST_INT.
11434
11435 2011-09-22 Uros Bizjak <ubizjak@gmail.com>
11436
11437 PR target/50482
11438 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
11439 blendv, force op_true to register if it doesn't satisfy
11440 nonimmediate_operand predicate.
11441
11442 2011-09-22 Richard Sandiford <rdsandiford@googlemail.com>
11443
11444 PR middle-end/50113
11445 PR middle-end/50061
11446 * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
11447 get the locate.where_pad value for register-only arguments.
11448 * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
11449 (arm_pad_reg_upward): Handle null types.
11450
11451 2011-09-22 Jan Hubicka <jh@suse.cz>
11452
11453 * ipa-inline-analysis.c: Fix overly long lines.
11454
11455 2011-09-22 Jan Hubicka <jh@suse.cz>
11456
11457 * ipa-inline-transform.c (inline_call): Always update jump functions
11458 after inlining.
11459 * ipa-inline.c (ipa_inline): Likewise; do not call
11460 ipa_create_all_structures_for_iinln.
11461 (ipa_inline): Always free jump functions.
11462 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
11463 (remap_edge_predicates): Fix pasto.
11464 (inline_merge_summary): Remove nlined edge predicate; remove hack.
11465 (inline_analyze_function): Always initialize jump functions.
11466 (inline_generate_summary): Likewise.
11467 (inline_write_summary): Always write jump functions when ipa-cp
11468 is not doing that.
11469 (inline_read_summary): Always read jump functions when ipa-cp
11470 is not doing that.
11471 * ipa-prop.c (iinlining_processed_edges): Remove.
11472 (update_indirect_edges_after_inlining): Do not use
11473 iinlining_processed_edges; instead set param_index to -1.
11474 (propagate_info_to_inlined_callees): Only try to indirect inlining
11475 when asked to do so; update jump functions of indirect calls, too;
11476 remove jump functions of the inlined edge.
11477 (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
11478 (ipa_create_all_structures_for_iinln): Remove.
11479 (ipa_free_all_structures_after_iinln): Do not free
11480 iinlining_processed_edges.
11481 * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
11482
11483 2011-09-22 Richard Sandiford <richard.sandiford@linaro.org>
11484
11485 * config/arm/predicates.md (expandable_comparison_operator): New
11486 predicate, extracted from...
11487 (arm_comparison_operator): ...here.
11488 * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
11489 (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
11490 (movdfcc): Use expandable_comparison_operator.
11491
11492 2011-09-22 Georg-Johann Lay <avr@gjlay.de>
11493
11494 PR target/50447
11495 PR target/50465
11496 * config/avr/avr-protos.h (avr_out_bitop): New prototype.
11497 (avr_popcount_each_byte): New prototype.
11498 * config/avr/avr.c (avr_popcount): New static function.
11499 (avr_popcount_each_byte): New function.
11500 (avr_out_bitop): New function.
11501 (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
11502 avr_out_bitop. Cleanup code.
11503 * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
11504 (Ca4, Co4, Cx4): New constraints.
11505 * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
11506 alternative.
11507 (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
11508 (andsi3, iorsi3, xorsi3): Ditto.
11509 (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
11510
11511 2011-09-22 Ira Rosen <ira.rosen@linaro.org>
11512
11513 PR tree-optimization/50451
11514 * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
11515 constant operands in reduction.
11516 (vect_get_slp_defs): Don't create vector operand for NULL scalar
11517 operand.
11518
11519 2011-09-22 David S. Miller <davem@davemloft.net>
11520
11521 * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
11522 fpack16, fpack32, fpackfix as const.
11523
11524 * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
11525 I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
11526 constants. Use them everywhere.
11527
11528 2011-09-22 Oleg Endo <oleg.endo@t-online.de>
11529
11530 * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
11531 Added AND special case. Adapted comments.
11532 (sh_rtx_costs): Added XOR and IOR case.
11533
11534 2011-09-21 Jan Hubicka <jh@suse.cz>
11535
11536 * ipa-inline-analsis.c (compute_inline_parameters): Set
11537 cfun and current_function_decl.
11538
11539 2011-09-21 Jan Hubicka <jh@suse.cz>
11540
11541 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
11542 handled components in parameter of builtin_constant_p.
11543 (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
11544
11545 2011-09-21 Jan Hubicka <jh@suse.cz>
11546
11547 * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
11548 * ipa-inline.h (estimate_edge_time): Fix pasto.
11549 * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
11550
11551 2011-09-21 Jakub Jelinek <jakub@redhat.com>
11552
11553 * config/i386/i386.c (ix86_expand_sse_movcc): Use
11554 blendvps, blendvpd and pblendvb if possible.
11555
11556 2011-09-21 Uros Bizjak <ubizjak@gmail.com>
11557
11558 PR target/50464
11559 * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
11560 operand 1 predicate to register_operand and operand 2 predicate
11561 to nonimmediate_operand.
11562 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
11563 xop_pcmov, force op_true to register. Also, force op_false to
11564 register if it doesn't satisfy nonimmediate_operand predicate.
11565
11566 2011-09-21 Kirill Yukhin <kirill.yukhin@intel.com>
11567
11568 * config/i386/bmi2intrin.h (_mulx_u64): New.
11569 (_mulx_u32): Ditto.
11570
11571 2011-09-21 Jan Hubicka <jh@suse.cz>
11572
11573 PR tree-optimization/50433
11574 * ipa-inline-analysis.c (eliminated_by_inlining_prob):
11575 Use get_base_address.
11576
11577 2011-09-21 Jakub Jelinek <jakub@redhat.com>
11578
11579 * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
11580 nonimmediate_operand instead of register_operand predicate for operands
11581 1 and 2, force them into registers if expanding them as comparison.
11582 (<code><mode>3 umaxmin:VI124_128 expander): Similarly. For UMAX
11583 V8HImode force into register just operand 1.
11584
11585 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
11586
11587 PR target/45099
11588 * config/avr/avr.c (avr_function_arg_advance): Change error to
11589 warning if a fixed register is needed as function argument.
11590
11591 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
11592
11593 PR target/50449
11594 PR target/50465
11595 * config/avr/avr.md (adjust_len): New insn attribute.
11596 (*reload_insi, *reload_insf): Use it.
11597 (*movsi, *movsf): Use new interface of output_movsisf.
11598 * config/avr/avr-protos.h (output_movsisf): Change prototype.
11599 * config/avr/avr.c (output_movsisf): Ditto.
11600 (adjust_insn_length): Use insn attribute "adjust_len" to adjust
11601 lengths of insns *reload_insi, *reload_insf.
11602 (output_reload_insisf_1): New static function.
11603 (output_reload_insisf): Use it.
11604
11605 2011-09-21 David S. Miller <davem@davemloft.net>
11606
11607 * config/sparc/sparc.c (def_builtin): Change from macro into function.
11608 (def_builtin_const): New.
11609 (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
11610 other than alignaddr and falignaddr.
11611
11612 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
11613 UNSPEC_FCMPEQ): New unspec codes.
11614 (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
11615 fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
11616 * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
11617 new pixel compare VIS patterns.
11618 * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
11619 __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
11620 __vis_fcmpeq16, __vis_fcmpeq32): New.
11621 * doc/extend.texi: Document new pixel compare VIS intrinsics.
11622
11623 2011-09-21 Tom de Vries <tom@codesourcery.com>
11624
11625 * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
11626
11627 2011-09-20 David S. Miller <davem@davemloft.net>
11628
11629 * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
11630 (aligneddrl<P:mode>_vis): New pattern.
11631 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
11632 edge32l_vis): Adjust to take Pmode arguments, and return SImode.
11633 * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
11634 alignaddrl insn, and adjust edge operations for updated types.
11635 * config/sparc/visintrin.h: Likewise.
11636 * doc/extend.texi: Make typing in VIS documentation match reality.
11637
11638 2011-09-20 Terry Guo <terry.guo@arm.com>
11639
11640 * config/arm/arm-arches.def: Add armv6s-m.
11641 * config/arm/arm-tables.opt: Regenerate.
11642
11643 2011-09-20 Wei Guozhi <carrot@google.com>
11644
11645 PR rtl-optimization/49452
11646 * postreload.c (reload_combine): Invalidate use information when across
11647 volatile insn.
11648
11649 2011-09-19 Maxim Kuvyrkov <maxim@codesourcery.com>
11650
11651 * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
11652 Remove maintenance overhead.
11653 (haifa_sched_init, sched_finish): Update.
11654
11655 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
11656
11657 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
11658 to calculate unit, prefix_rep and prefix_data16 attributes.
11659 (*mov<mode>_internal): Ditto for unit attribute.
11660 (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
11661 (*movv2sf_internal): Ditto.
11662 * config/i386/sse.md (VI1248_256): Remove mode iterator.
11663 (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
11664 (*avx2_eq<mode>3): Ditto.
11665 (avx2_gt<mode>3): Ditto.
11666
11667 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
11668
11669 * config/i386/i386.md (maxmin): New code iterator.
11670 * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
11671 from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
11672 code iterator.
11673 (*avx2_<maxmin:code><mode>3): Macroize isn from
11674 *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
11675 maxmin code iterator.
11676 (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
11677 (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
11678 <umaxmin:code>v16qi3.
11679
11680 2011-09-19 Alan Modra <amodra@gmail.com>
11681 Michael Meissner <meissner@linux.vnet.ibm.com>
11682
11683 PR target/50341
11684 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
11685 split the load of the indirect function's TOC from the call to
11686 prevent the compiler from moving the load of the new TOC above
11687 code that references the current function's TOC.
11688 (call_indirect_aix<ptrsize>_internal): Ditto.
11689 (call_indirect_aix<ptrsize>_nor11): Ditto.
11690 (call_indirect_aix<ptrsize>_internal2): Ditto.
11691 (call_value_indirect_aix<ptrsize>): Ditto.
11692 (call_value_indirect_aix<ptrsize>_internal): Ditto.
11693 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
11694 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
11695
11696 2011-09-19 Jakub Jelinek <jakub@redhat.com>
11697
11698 * config/i386/sse.md (*sse4_1_extractps): Change into
11699 define_insn_and_split, add =x 0 n and =x x n alternatives
11700 and split them after reload.
11701
11702 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
11703
11704 * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
11705
11706 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
11707
11708 * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
11709
11710 2011-09-19 Ira Rosen <ira.rosen@linaro.org>
11711
11712 PR tree-optimization/50413
11713 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
11714 a basic block if one of its data-refs can't be analyzed.
11715
11716 2011-09-19 Paul Brook <paul@codesourcery.com>
11717
11718 * config/arm/predicates.md (shift_amount_operand): Check constant
11719 shift count is in range.
11720 (const_shift_operand): Remove.
11721
11722 2011-09-18 Eric Botcazou <ebotcazou@adacore.com>
11723 Iain Sandoe <developer@sandoe-acoustics.co.uk>
11724
11725 PR target/50091
11726 * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
11727 * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
11728
11729 2011-09-18 H.J. Lu <hongjiu.lu@intel.com>
11730
11731 * config/i386/bmiintrin.h: Remove tmp.
11732 * config/i386/tbmintrin.h: Likewise.
11733
11734 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
11735
11736 PR tree-optimization/50414
11737 * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
11738 MIN_EXPR.
11739
11740 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
11741
11742 PR tree-optimization/50412
11743 * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
11744 acceses that require epilogue loop if vectorizing outer loop.
11745
11746 2011-09-17 David S. Miller <davem@davemloft.net>
11747
11748 * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
11749 UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
11750 New unspecs.
11751 (define_attr type): New type 'edge'.
11752 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
11753 edge32l_vis): New patterns.
11754 * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
11755 * config/sparc/ultra3.md: Likewise.
11756 * config/sparc/niagara.md: Likewise.
11757 * config/sparc/niagara2.md: Likewise.
11758 * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
11759 builtins for VIS edge instructions.
11760 * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
11761 (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
11762 intrinsics.
11763 (__v8qi, __v4qi): Make unsigned.
11764 (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
11765 __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
11766 __vis_fpack32): Fix types.
11767 * doc/extend.texi: Document new 'edge' VIS intrinsics.
11768
11769 * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
11770 divide costs.
11771 (niagara3_costs): New.
11772 (sparc_option_override): Use it.
11773 * gcc/config/sparc/niagara2.md: Adjust with more accurate
11774 Niagara-3 reservations.
11775
11776 2011-09-17 Jakub Jelinek <jakub@redhat.com>
11777
11778 * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
11779 (sse2_avx, sseinsnmode): Add V2TI.
11780 (REDUC_SMINMAX_MODE): New mode iterator.
11781 (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
11782 reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
11783 (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
11784 (sse2_lshrv1ti3): Rename to...
11785 (<sse2_avx2>_lshr<mode>3): ... this. Use VIMAX_AVX2 mode
11786 iterator. Move before umaxmin expanders.
11787 * config/i386/i386.h (VALID_AVX256_REG_MODE,
11788 SSE_REG_MODE_P): Accept V2TImode.
11789 * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
11790 V16HImode, V8SImode and V4DImode.
11791
11792 * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
11793 and V4DImode.
11794 (ix86_build_signbit_mask): Likewise.
11795 (ix86_expand_int_vcond): Likewise. Handle V16HImode and V32QImode.
11796 (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
11797 instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
11798 * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
11799 (<code><mode>3) ... this.
11800 (avx2_<code><mode>3 smaxmin expand): Rename to...
11801 (<code><mode>3) ... this.
11802 (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
11803 (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
11804 VI8_AVX2 mode iterator.
11805 (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
11806 VI8_AVX2 mode iterator.
11807 (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
11808 New expanders.
11809
11810 2011-09-17 Richard Sandiford <rdsandiford@googlemail.com>
11811
11812 * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
11813 throughout file.
11814
11815 2011-09-16 David S. Miller <davem@davemloft.net>
11816
11817 * config/sparc/visintrin.h: New file.
11818 * config.gcc: Add it to extra_headers on sparc.
11819
11820 2011-09-16 Jakub Jelinek <jakub@redhat.com>
11821
11822 * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
11823 (ix86_expand_reduc): ... this. Handle also V8SFmode and V4DFmode.
11824 * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
11825 reduc_smin_v4sf): Adjust callers.
11826 (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
11827 New expanders.
11828
11829 * config/i386/sse.md (vec_extract_hi_<mode>,
11830 vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
11831 vextracti128 instead of vextractf128 for -mavx2 and
11832 integer vectors. For V4DFmode fix up mode attribute.
11833 (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
11834 (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
11835 instead of V8SF mode attribute.
11836 (avx2_extracti128): Change into define_expand.
11837 * config/i386/i386.c (ix86_expand_vector_extract): Handle
11838 32-byte vector modes if TARGET_AVX.
11839
11840 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
11841
11842 * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
11843 (umulqi3_highpart, smulqi3_highpart): Ditto.
11844 (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
11845 (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
11846 (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
11847
11848 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
11849
11850 PR target/50358
11851 * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
11852 (*maddqi4, *maddqi4.const): New insns.
11853 (*msubqi4, *msubqi4.const): New insns.
11854 * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
11855 PLUS:QI and MINUS:QI. Increase costs of multiply-add/-sub for
11856 HImode by 1 in the case of multiplying with a CONST_INT.
11857 Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
11858
11859 2011-09-15 Jan Hubicka <jh@suse.cz>
11860
11861 PR lto/50430
11862 * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
11863 error_mark_node in the DECL_INITIAL of vtable.
11864
11865 2011-09-15 Diego Novillo <dnovillo@google.com>
11866
11867 * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
11868 @SYSROOT_CFLAGS_FOR_TARGET@.
11869 * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
11870 * configure: Regenerate.
11871 (site.exp): Add definition of TEST_ALWAYS_FLAGS.
11872 Remove setting of GCC_UNDER_TEST.
11873
11874 2011-09-15 Uros Bizjak <ubizjak@gmail.com>
11875
11876 * config/i386/i386.c (output_fp_compare): Return %v prefixed
11877 instruction mnemonics for TARGET_AVX.
11878
11879 * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
11880 "type" attribute calculation.
11881 (*movdf_internal): Ditto.
11882 (*movsf_internal): Ditto.
11883
11884 2011-09-15 James Greenhalgh <james.greenhalgh@arm.com>
11885
11886 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
11887
11888 2011-09-15 Jason Merrill <jason@redhat.com>
11889
11890 PR c++/50361
11891 * expr.c (count_type_elements): Handle NULLPTR_TYPE.
11892
11893 2011-09-15 Jan Hubicka <jh@suse.cz>
11894
11895 * ipa-inline-analysis.c (add_condition): Add conditions parameter;
11896 simplify obviously true clauses.
11897 (and_predicates, or_predicates): Add conditions parameter.
11898 (inline_duplication_hoook): Update.
11899 (mark_modified): New function.
11900 (unmodified_parm): New function.
11901 (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
11902 set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
11903 Use unmodified_parm.
11904 (estimate_function_body_sizes): Update.
11905 (remap_predicate): Update.
11906
11907 2011-09-15 Ira Rosen <ira.rosen@linaro.org>
11908
11909 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
11910 read-after-read dependencies in basic block SLP.
11911
11912 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
11913
11914 * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
11915 throughout file.
11916
11917 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
11918
11919 * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
11920 throughout file.
11921
11922 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
11923
11924 * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
11925 throughout file.
11926
11927 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
11928
11929 * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
11930 throughout file.
11931 * config/rs6000/constraints.md: Likewise.
11932
11933 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
11934
11935 * config/microblaze/microblaze.md: Use match_test rather than
11936 eq/ne symbol_ref throughout file.
11937
11938 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
11939
11940 * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
11941 throughout file.
11942
11943 2011-09-14 Tom de Vries <tom@codesourcery.com>
11944
11945 PR middle-end/50251
11946 * explow.c (emit_stack_restore): Set crtl->need_drap if
11947 stack_restore is emitted.
11948
11949 2011-09-14 Julian Brown <julian@codesourcery.com>
11950
11951 * config/arm/arm.c (arm_override_options): Add unaligned_access
11952 support.
11953 (arm_file_start): Emit attribute for unaligned access as appropriate.
11954 * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
11955 (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
11956 (insv, extzv): Add unaligned-access support.
11957 (extv): Change to expander. Likewise.
11958 (extzv_t1, extv_regsi): Add helpers.
11959 (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
11960 (unaligned_storesi, unaligned_storehi): New.
11961 (*extv_reg): New (previous extv implementation).
11962 * config/arm/arm.opt (munaligned_access): Add option.
11963 * config/arm/constraints.md (Uw): New constraint.
11964 * expmed.c (store_bit_field_1): Adjust bitfield numbering according
11965 to size of access, not size of unit, when BITS_BIG_ENDIAN !=
11966 BYTES_BIG_ENDIAN. Don't use bitfield accesses for
11967 volatile accesses when -fstrict-volatile-bitfields is in effect.
11968 (extract_bit_field_1): Likewise.
11969
11970 2011-09-14 Richard Sandiford <richard.sandiford@linaro.org>
11971
11972 * simplify-rtx.c (simplify_subreg): Check that the inner mode is
11973 a scalar integer before applying integer-only optimisations to
11974 inner arithmetic.
11975
11976 2011-09-14 Bernd Schmidt <bernds@codesourcery.com>
11977
11978 * config/mips/mips.c (mips_expand_epilogue): Generate a
11979 simple_return only if the return address is in r31.
11980
11981 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
11982
11983 * cfgcleanup.c (try_head_merge_bb): If get_condition returns
11984 NULL for a jump that is a cc0 insn, pick the previous insn for
11985 move_before.
11986
11987 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
11988
11989 * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
11990 throughout file.
11991
11992 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
11993
11994 * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
11995 throughout file.
11996
11997 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
11998
11999 * config/mn10300/mn10300.md: Use match_test rather than eq/ne
12000 symbol_ref throughout file.
12001
12002 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
12003
12004 * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
12005 throughout file.
12006
12007 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
12008
12009 * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
12010 throughout file.
12011
12012 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
12013
12014 * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
12015 throughout file.
12016 * config/arm/neon.md: Likewise.
12017 * config/arm/vfp.md: Likewise.
12018 * config/arm/thumb2.md: Likewise.
12019 * config/arm/cortex-m4.md: Likewise.
12020
12021 2011-09-13 Sevak Sargsyan <sevak.sargsyan@ispras.ru>
12022
12023 * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
12024 define_insn patterns for combine.
12025
12026 2011-09-13 Giuseppe Scrivano <gscrivano@gnu.org>
12027
12028 * reorg.c: Always define make_return_insns.
12029
12030 2011-09-13 Jan Hubicka <jh@suse.cz>
12031
12032 PR other/49533
12033 * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
12034
12035 2011-09-13 Jan Hubicka <jh@suse.cz>
12036
12037 PR other/49533
12038 * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
12039
12040 2011-09-13 Paul Brook <paul@codesourcery.com>
12041
12042 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
12043 (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
12044 * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
12045 * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
12046 * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
12047 * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
12048 * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
12049 * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
12050 enabling unwind tables.
12051 (c6x_debug_unwind_info): New function.
12052 (TARGET_ARM_EABI_UNWINDER): Define.
12053 (TARGET_DEBUG_UNWIND_INFO): Define.
12054 * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
12055 (TARGET_EXTRA_CFI_SECTION): Remove.
12056 * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
12057 * ginclude/unwind-arm-common.h: New file.
12058
12059 2011-09-13 Georg-Johann Lay <avr@gjlay.de>
12060
12061 PR target/50358
12062 * config/avr/predicates.md (const_1_to_6_operand): New predicate.
12063 * config/avr/avr.md: (extend_s): New code attribute.
12064 (mul_r_d): New code attribute.
12065 (*maddqihi4, *umaddqihi4): New insns.
12066 (*msubqihi4, *umsubqihi4): New insns.
12067 (*usmaddqihi4, *sumaddqihi4): New insns.
12068 (*usmsubqihi4, *susubdqihi4): New insns.
12069 (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
12070 (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
12071 (*umsubqihi4.uconst.ashift): New insn-and-split.
12072 (*msubqihi4.sconst.ashift): New insn-and-split.
12073 (*sumaddqihi4.uconst): New insn-and-split.
12074 (*sumsubqihi4.uconst): New insn-and-split.
12075 * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
12076 PLUS:HI and MINUS:HI.
12077
12078 2011-09-13 Revital Eres <revital.eres@linaro.org>
12079
12080 modulo-sched.c (remove_node_from_ps): Return void instead of bool.
12081 (optimize_sc): Adjust call to remove_node_from_ps.
12082 (sms_schedule): Add print info.
12083
12084 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
12085
12086 * rtl.c (copy_rtx): Do not handle frame_related, jump or call
12087 flags specially.
12088
12089 2011-09-12 Jakub Jelinek <jakub@redhat.com>
12090
12091 PR bootstrap/50010
12092 * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
12093 NOTE_INSN_CFI notes, with the exception of
12094 NOTE_INSN_SWITCH_TEXT_SECTIONS.
12095
12096 2011-09-12 Bernd Schmidt <bernds@codesourcery.com>
12097 Richard Sandiford <rdsandiford@googlemail.com>
12098
12099 * config/mips/mips.c (mips_epilogue): New structure.
12100 (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
12101 restoring registers.
12102 (mips_epilogue_emit_cfa_restores): New function.
12103 (mips_epilogue_set_cfa): Likewise.
12104 (mips_restore_reg): Queue REG_CFA_RESTORE notes. When restoring
12105 the current CFA register from the stack, redefine the CFA in terms
12106 of the stack pointer.
12107 (mips_expand_epilogue): Set up mips_epilogue. Attach CFA information
12108 to the epilogue instructions.
12109
12110 2011-09-12 Richard Sandiford <rdsandiford@googlemail.com>
12111
12112 * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
12113 argument.
12114 (mips16e_build_save_restore): Update accordingly.
12115
12116 2011-09-12 Jakub Jelinek <jakub@redhat.com>
12117
12118 PR rtl-optimization/50212
12119 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
12120 Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
12121
12122 PR debug/50299
12123 * calls.c (load_register_parameters): Use use_reg_mode instead
12124 of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
12125 entry.
12126 (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
12127 for stack CALL_INSN_FUNCTION_USAGE uses.
12128 * expr.h (use_reg_mode): New prototype.
12129 (use_reg): Changed into inline around use_reg_mode.
12130 * expr.c (use_reg): Renamed to...
12131 (use_reg_mode): ... this. Added MODE argument, set EXPR_LIST
12132 mode to that mode instead of VOIDmode.
12133 * var-tracking.c (prepare_call_arguments): Don't track parameters
12134 whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
12135 to it using lowpart_subreg. Convert VALUE and REG/MEM to the
12136 EXPR_LIST mode.
12137
12138 2011-09-12 Georg-Johann Lay <avr@gjlay.de>
12139
12140 PR target/43746
12141 * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
12142 (progmem_section): New Variable.
12143 (avr_asm_init_sections): Initialize it.
12144 (TARGET_ASM_SELECT_SECTION): Define to...
12145 (avr_asm_select_section): ... this new Function.
12146 (avr_replace_prefix): New Function.
12147 (avr_asm_function_rodata_section): Use it.
12148 (avr_insert_attributes): Don't add section attribute for PROGMEM.
12149 (avr_section_type_flags): Use avr_progmem_p instead of section
12150 name to detect if object is in PROGMEM.
12151 (avr_asm_named_section): Set section name prefix for objects in
12152 PROGMEM.
12153
12154 2011-09-12 Jakub Jelinek <jakub@redhat.com>
12155
12156 PR bootstrap/50352
12157 * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
12158 sprintf format string.
12159
12160 2011-09-12 Richard Guenther <rguenther@suse.de>
12161
12162 PR tree-optimization/50343
12163 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
12164 that the reduction is over an SSA name before checking its definition.
12165
12166 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
12167
12168 * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
12169 throughout file.
12170
12171 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
12172
12173 * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
12174 throughout file.
12175 * config/mips/sb1.md: Likewise.
12176 * config/mips/predicates.md: Replace (match_test "!...")
12177 with (not (match_test "..."))
12178 * config/mips/constraints.md: Likewise.
12179
12180 2011-09-09 Andrew Stubbs <ams@codesourcery.com>
12181
12182 * config/arm/arm-cores.def (generic-armv7-a): New architecture.
12183 * config/arm/arm-tables.opt: Regenerate.
12184 * config/arm/arm-tune.md: Regenerate.
12185 * config/arm/arm.c (arm_file_start): Output .arch directive when
12186 user passes -mcpu=generic-*.
12187 (arm_issue_rate): Add genericv7a support.
12188 * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
12189 (ASM_CPU_SPEC): New define.
12190 * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
12191 * config/arm/semi.h (ASM_SPEC): Likewise.
12192 * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
12193 and -mtune=generic-*.
12194
12195 2011-09-09 Richard Guenther <rguenther@suse.de>
12196
12197 PR tree-optimization/50328
12198 * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
12199 constant or default-def operand.
12200
12201 2011-09-09 Richard Guenther <rguenther@suse.de>
12202
12203 * tree-ssa-pre.c (create_expression_by_pieces): Fold the
12204 last statement.
12205
12206 2011-09-09 Richard Guenther <rguenther@suse.de>
12207
12208 * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
12209 instead of a statement.
12210 * gimple-fold.c (fold_stmt_inplace): Likewise.
12211 * sese.c (graphite_copy_stmts_from_block): Adjust.
12212 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
12213 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
12214 fold_stmt.
12215 (forward_propagate_addr_into_variable_array_index): Likewise.
12216 (forward_propagate_addr_expr_1): adjust.
12217 (associate_plusminus): Likewise.
12218 (ssa_forward_propagate_and_combine): Likewise.
12219 * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
12220 (execute_cse_reciprocals): Likewise.
12221 * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
12222
12223 2011-09-09 Nick Clifton <nickc@redhat.com>
12224
12225 * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
12226 Return a positive value to indicate that the bits at the
12227 bottom of the register should be cleared.
12228
12229 2011-09-09 Richard Guenther <rguenther@suse.de>
12230
12231 * tree-ssa-operands.c (swap_tree_operands): Always adjust
12232 existing operand positions.
12233
12234 2011-09-09 Richard Guenther <rguenther@suse.de>
12235
12236 PR middle-end/50333
12237 * tree-data-ref.c (split_constant_offset): Do not try to handle
12238 ternary ops.
12239
12240 2011-09-08 Andrew Stubbs <ams@codesourcery.com>
12241
12242 PR tree-optimization/50318
12243 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
12244 typo in use of mult_rhs1 and mult_rhs2.
12245
12246 2011-09-08 Uros Bizjak <ubizjak@gmail.com>
12247
12248 * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
12249 (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
12250
12251 2011-09-08 Bernd Schmidt <bernds@codesourcery.com>
12252
12253 * config/arm/arm.md (push_multi): Emit predicates.
12254 (push_fp_multi): Likewise.
12255 * config/arm/arm.c (vfp_output_fstmd): Likewise.
12256
12257 2011-09-08 Dodji Seketeli <dodji@redhat.com>
12258
12259 PR c++/33255 - Support -Wunused-local-typedefs warning
12260 * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
12261 (pushdecl): Use the new record_locally_defined_typedef.
12262 (store_parm_decls): Allocate cfun->language.
12263 (finish_function): Use the new maybe_warn_unused_local_typedefs,
12264 and free cfun->language.
12265 (c_push_function_context): Allocate cfun->language here only if needed.
12266 (c_pop_function_context): Likewise, mark cfun->language
12267 for collection only when it should be done.
12268 * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
12269 * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
12270 maybe_record_local_typedef_use.
12271 * doc/invoke.texi: Update documentation for
12272 -Wunused-local-typedefs.
12273
12274 2011-09-08 Enkovich Ilya <ilya.enkovich@intel.com>
12275
12276 * config/i386/i386-protos.h (ix86_lea_outperforms): New.
12277 (ix86_avoid_lea_for_add): Likewise.
12278 (ix86_avoid_lea_for_addr): Likewise.
12279 (ix86_split_lea_for_addr): Likewise.
12280
12281 * config/i386/i386.c (LEA_MAX_STALL): New.
12282 (increase_distance): Likewise.
12283 (insn_defines_reg): Likewise.
12284 (insn_uses_reg_mem): Likewise.
12285 (distance_non_agu_define_in_bb): Likewise.
12286 (distance_agu_use_in_bb): Likewise.
12287 (ix86_lea_outperforms): Likewise.
12288 (ix86_ok_to_clobber_flags): Likewise.
12289 (ix86_avoid_lea_for_add): Likewise.
12290 (ix86_avoid_lea_for_addr): Likewise.
12291 (ix86_split_lea_for_addr): Likewise.
12292 (distance_non_agu_define): Search in pred BBs added.
12293 (distance_agu_use): Search in succ BBs added.
12294 (IX86_LEA_PRIORITY): Value changed from 2 to 0.
12295 (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
12296 (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
12297
12298 * config/i386/i386.md: Split added to transform non destructive
12299 add into move and add.
12300 (lea_1): transformed into insn_and_split to avoid AGU stalls.
12301 (lea<mode>_2): Likewise.
12302
12303 2011-09-08 Martin Jambor <mjambor@suse.cz>
12304
12305 PR tree-optimization/50287
12306 * ipa-split.c (split_function): Do not create SSA names for
12307 non-gimple-registers.
12308
12309 2011-09-08 Richard Guenther <rguenther@suse.de>
12310
12311 PR tree-optimization/19831
12312 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
12313 skip builtins with vdefs that do not really store something.
12314 (propagate_necessity): For calls to free that we can associate
12315 with an allocation function do not mark the freed pointer
12316 definition necessary.
12317 (eliminate_unnecessary_stmts): Remove a call to free if
12318 the associated call to an allocation function is not necessary.
12319
12320 2011-09-08 Richard Guenther <rguenther@suse.de>
12321
12322 PR tree-optimization/19831
12323 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
12324 allocation functions as necessary.
12325
12326 2011-09-08 Iain Sandoe <iains@gcc.gnu.org>
12327
12328 * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
12329 cut from ...
12330 (darwin_default_min_version): Amended to provide defaults
12331 for the cross directory case.
12332 (darwin_driver_init): call darwin_default_min_version unconditionally.
12333 * config/darwin.h (DEF_MIN_OSX_VERSION): New.
12334 * config/darwin9.h: Likewise.
12335 * config/darwin10.h: Likewise.
12336 * config/rs6000/darwin7.h: Likewise.
12337
12338 2011-09-08 Jakub Jelinek <jakub@redhat.com>
12339
12340 PR target/50310
12341 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
12342 code early if TARGET_AVX.
12343 (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
12344
12345 2011-09-07 Jakub Jelinek <jakub@redhat.com>
12346
12347 * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
12348 duplicates.
12349
12350 PR target/50310
12351 * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
12352 "mode" attribute computation.
12353
12354 2011-09-07 Bernd Schmidt <bernds@codesourcery.com>
12355
12356 * regrename.c (struct du_head): Make nregs signed.
12357 (closed_chains): Remove.
12358 (create_new_chain): Return the new chain.
12359 (chain_from_id): New static function.
12360 (dump_def_use_chain): Change argument to be an int, indicating
12361 the first ID to print. All callers changed.
12362 (merge_overlapping_regs): Use chain_from_id. Assert that
12363 chains don't conflict with themselves.
12364 (rename_chains): Take no argument. Iterate over id_to_chain
12365 rather to find chains to rename. Clear tick before the main loop.
12366 (struct incoming_reg_info): New struct.
12367 (struct bb_rename_info): New struct.
12368 (init_rename_info, set_incoming_from_chain, merge_chains): New
12369 static functions.
12370 (regrename_analyze): New static function, broken out of
12371 regrename_optimize. Record and make use of open chain information
12372 at basic block boundaries, and merge chains where possible.
12373 (scan_rtx_reg): Make this_nregs signed. Don't update
12374 closed_chains.
12375 (build_def_use): Return a bool to indicate success. All callers
12376 changed. Don't initialize global data here.
12377 (regrename_optimize): Move most code out of here into
12378 regrename_analyze.
12379 * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
12380 range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
12381 static inline functions.
12382 * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
12383
12384 * bb-reorder.c (insert_section_boundary_note): Don't check
12385 optimize_function_for_speed_p.
12386 (gate_handle_partition_blocks): Do it here instead.
12387 (gate_handle_reorder_blocks): Move preliminary checks here ...
12388 (rest_of_handle_reorder_blocks): ... from here.
12389
12390 2011-09-07 Martin Jambor <mjambor@suse.cz>
12391
12392 PR middle-end/50301
12393 * ipa-cp.c (find_more_values_for_callers_subset): Check jump
12394 function index bounds.
12395 (perhaps_add_new_callers): Likewise.
12396
12397 2011-09-07 Martin Jambor <mjambor@suse.cz>
12398
12399 PR tree-optimization/49911
12400 * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
12401 enumerations to the corresponding plain integer type.
12402
12403 2011-09-07 Richard Guenther <rguenther@suse.de>
12404
12405 PR tree-optimization/50319
12406 * tree-if-conv.c (set_bb_predicate): Assert we only set
12407 canonical predicates.
12408 (add_to_predicate_list): Simplify. Allow TRUTH_NOT_EXPR
12409 around canonical predicates.
12410 (predicate_bbs): Do not re-gimplify already canonical
12411 predicates. Properly unshare them though.
12412 (find_phi_replacement_condition): Simplify.
12413
12414 2011-09-07 Richard Sandiford <richard.sandiford@linaro.org>
12415
12416 PR target/49030
12417 * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
12418 * config/arm/arm.c (maybe_get_arm_condition_code): New function,
12419 reusing the old code from get_arm_condition_code. Return ARM_NV
12420 for invalid comparison codes.
12421 (get_arm_condition_code): Redefine in terms of
12422 maybe_get_arm_condition_code.
12423 * config/arm/predicates.md (arm_comparison_operator): Use
12424 maybe_get_arm_condition_code.
12425
12426 2011-09-07 Richard Guenther <rguenther@suse.de>
12427
12428 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
12429 Canonicalize negated predicates by swapping edges.
12430 (forward_propagate_into_cond): Likewise.
12431
12432 2011-09-07 Richard Guenther <rguenther@suse.de>
12433
12434 PR tree-optimization/50213
12435 * tree-flow.h (simple_iv_increment_p): Declare.
12436 * tree-ssa-dom.c (simple_iv_increment_p): Export. Also handle
12437 POINTER_PLUS_EXPR.
12438 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
12439 not propagate simple IV counter increments.
12440
12441 2011-09-07 Eric Botcazou <ebotcazou@adacore.com>
12442 Iain Sandoe <iains@gcc.gnu.org>
12443
12444 * config/rs6000/rs6000.c (compute_save_world_info): Test
12445 cfun->has_nonlocal_label to determine if the out-of-line save
12446 world call may be used.
12447
12448 2011-09-07 Nick Clifton <nickc@redhat.com>
12449
12450 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
12451 label on the parallel part of the insn.
12452
12453 2011-09-07 Jakub Jelinek <jakub@redhat.com>
12454
12455 PR debug/50191
12456 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
12457 avoid_constant_pool_reference first instead of last.
12458
12459 2011-09-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12460
12461 * doc/configfiles.texi (Configuration Files): Update documentation
12462 about tm_p.h and remove FIXME comment.
12463
12464 2011-09-06 Uros Bizjak <ubizjak@gmail.com>
12465
12466 * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
12467 (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
12468
12469 2011-09-06 Iain Sandoe <iains@gcc.gnu.org>
12470
12471 * config/darwin10.h Remove duplicate LIB_SPEC.
12472
12473 2011-09-06 Enkovich Ilya <ilya.enkovich@intel.com>
12474
12475 PR middle-end/44382
12476 * target.def (reassociation_width): New hook.
12477
12478 * doc/tm.texi.in (reassociation_width): Likewise.
12479
12480 * doc/tm.texi (reassociation_width): Likewise.
12481
12482 * doc/invoke.texi (tree-reassoc-width): New param documented.
12483
12484 * hooks.h (hook_int_uint_mode_1): New default hook.
12485
12486 * hooks.c (hook_int_uint_mode_1): Likewise.
12487
12488 * config/i386/i386.h (ix86_tune_indices): Add
12489 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
12490
12491 (TARGET_REASSOC_INT_TO_PARALLEL): New.
12492 (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
12493
12494 * config/i386/i386.c (initial_ix86_tune_features): Add
12495 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
12496
12497 (ix86_reassociation_width): New function.
12498
12499 * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
12500
12501 * tree-ssa-reassoc.c (get_required_cycles): New function.
12502 (get_reassociation_width): Likewise.
12503 (swap_ops_for_binary_stmt): Likewise.
12504 (rewrite_expr_tree_parallel): Likewise.
12505
12506 (rewrite_expr_tree): Refactored. Part of code moved into
12507 swap_ops_for_binary_stmt.
12508
12509 (reassociate_bb): Now checks reassociation width to be used and
12510 call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
12511
12512 2011-09-06 Richard Guenther <rguenther@suse.de>
12513
12514 PR tree-optimization/47025
12515 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
12516 uses nothing.
12517 (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
12518 BUILT_IN_FREE.
12519 (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
12520 definitely points to.
12521 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
12522 BUILT_IN_VA_START doesn't let its va_list argument escape.
12523 * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
12524 not make any previous stores necessary.
12525
12526 2011-09-06 Martin Jambor <mjambor@suse.cz>
12527
12528 * ipa-inline.h (struct inline_summary): Move versionable flag...
12529 * cgraph.h (struct cgraph_local_info): ...here
12530 * ipa-cp.c (determine_versionability): Use the new versionable flag.
12531 (determine_versionability): Likewise.
12532 (ipcp_versionable_function_p): Likewise.
12533 (ipcp_generate_summary): Likewise.
12534 * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
12535 versionable flag.
12536 (compute_inline_parameters): Do not clear the versionable flag.
12537 (inline_read_section): Do not stream the versionable flag.
12538 (inline_write_summary): Likewise.
12539 * lto-cgraph.c (lto_output_node): Stream the versionable flag.
12540 (input_overwrite_node): Likewise.
12541
12542 2011-09-06 Richard Guenther <rguenther@suse.de>
12543
12544 PR tree-optimization/48149
12545 * tree-ssa-sccvn.c (vn_get_expr_for): Simplify. Fix tuplification bug.
12546 (vn_valueize): Move earlier.
12547 (valueize_expr): Use vn_valueize.
12548 (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
12549 operands.
12550 (simplify_unary_expression): Simplify.
12551
12552 2011-09-06 Richard Guenther <rguenther@suse.de>
12553
12554 PR tree-optimization/48317
12555 * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
12556 trailing array.
12557 (sizeof_vn_nary_op): New inline function.
12558 (vn_nary_op_lookup_pieces): Adjust.
12559 (vn_nary_op_insert_pieces): Likewise.
12560 * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
12561 (init_vn_nary_op_from_pieces): Adjust signature. Deal with
12562 any number of operands.
12563 (vn_nary_length_from_stmt): New function.
12564 (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
12565 (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
12566 sized temporary.
12567 (vn_nary_op_lookup): Likewise.
12568 (vn_nary_op_lookup_stmt): Likewise.
12569 (vn_nary_op_insert_into): Likewise.
12570 (vn_nary_op_insert_stmt): Likewise.
12571 (visit_use): Handle CONSTRUCTOR as nary.
12572 * tree-ssa-pre.c (phi_translate_1): Adjust.
12573 (create_expression_by_pieces): Likewise.
12574 (compute_avail): Likewise.
12575
12576 2011-09-06 Ira Rosen <ira.rosen@linaro.org>
12577
12578 * config/arm/arm.c (arm_preferred_simd_mode): Check
12579 TARGET_NEON_VECTORIZE_DOUBLE instead of
12580 TARGET_NEON_VECTORIZE_QUAD.
12581 (arm_autovectorize_vector_sizes): Likewise.
12582 * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
12583 mask of mvectorize-with-neon-double. Add RejectNegative.
12584 (mvectorize-with-neon-double): New.
12585
12586 2011-09-06 Richard Guenther <rguenther@suse.de>
12587
12588 * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
12589
12590 2011-09-06 Tom de Vries <tom@codesourcery.com>
12591
12592 * recog.c (asm_labels_ok): New function.
12593 (check_asm_operands): Use asm_labels_ok.
12594
12595 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
12596
12597 PR target/49606
12598 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
12599 (PMODE_INSN): New macro.
12600 * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
12601 (mips_got_load, mips_expand_synci_loop): Likewise.
12602 (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
12603 cprestore patterns.
12604 (mips_emit_loadgp): Use PMODE_INSN. Handle SImode and DImode
12605 copygp_mips16 patterns.
12606 (mips_expand_prologue): Handle SImode and DImode potential_cprestore
12607 and use_cprestore patterns.
12608 (mips_override_options): Check for incompatible -mabi and -mlong
12609 combinations.
12610 * config/mips/mips.md (unspec_got<mode>): Rename to...
12611 (unspec_got_<mode>): ...this.
12612 (copygp_mips16): Use the Pmode iterator.
12613 (potential_cprestore, cprestore, use_cprestore): Likewise.
12614 (clear_cache, indirect_jump): Use PMODE_INSN.
12615 (indirect_jump<mode>): Rename to...
12616 (indirect_jump_<mode>): ...this.
12617 (tablejump): Use PMODE_INSN.
12618 (tablejump<mode>): Rename to...
12619 (tablejump_<mode>): ...this.
12620 (exception_receiver): Handle restore_gp_si and restore_gp_di.
12621 (restore_gp): Use the Pmode iterator.
12622 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
12623 PMODE_INSN.
12624
12625 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
12626
12627 * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
12628 Fix the type of the BIT_AND_EXPR.
12629
12630 2011-09-05 David S. Miller <davem@davemloft.net>
12631
12632 * config.host: Add driver-sparc.o and sparc/x-sparc on
12633 native sparc*-*-linux* builds.
12634 * config/sparc/driver-sparc.c: Correct Linux strings.
12635 * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
12636 * config/sparc/linux64.h: Likewise.
12637 * doc/invoke.texi: Document that Linux also supports
12638 -mcpu=native and -mtune=native on sparc.
12639
12640 * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
12641 PROCESSOR_NIAGARA4): New.
12642 * config/sparc/sparc.opt: Handle new processor types.
12643 * config/sparc/sparc.md: Add to "cpu" attribute.
12644 * config/sparc/sparc.h (TARGET_CPU_niagara3,
12645 TARGET_CPU_niagara4): New, treat as niagara2.
12646 * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
12647 * config/sparc/sol2.h: Likewise.
12648 * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
12649 * config/sparc/sparc.c (sparc_option_override): Add
12650 niagara3 and niagara4 handling.
12651 (sparc32_initialize_trampoline): Likewise.
12652 (sparc64_initialize_trampoline): Likewise.
12653 (sparc_use_sched_lookahead): Likewise.
12654 (sparc_issue_rate): Likewise.
12655 (sparc_register_move_cost): Likewise.
12656 * config/sparc/driver-sparc.c (cpu_names): Use niagara3
12657 and niagara4 as appropriate.
12658 * doc/invoke.texi: Document new processor types.
12659 * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
12660 and --with-tune options.
12661
12662 * config/sparc/sol2-64.h: Move ...
12663 * config/sparc/default-64.h: ... to here. Update comment.
12664 * config.gcc: Update Solaris sparc to use default-64.h, also
12665 prefix this header into the list on sparc64-*-linux.
12666 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
12667 TARGET_64BIT_DEFAULT is defined. Remove commented out reference
12668 to MASK_HARD_QUAD.
12669
12670 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
12671
12672 PR target/50289
12673 * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
12674 that contain global register variable.
12675
12676 2011-09-05 Richard Guenther <rguenther@suse.de>
12677
12678 * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
12679
12680 2011-09-05 Richard Guenther <rguenther@suse.de>
12681
12682 * stor-layout.c (layout_type): Use size_binop for array size
12683 calculations.
12684
12685 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
12686
12687 * config/avr/avr.h (progmem_section): Remove Declaration.
12688 * config/avr/avr.c (progmem_section): Make static and rename to
12689 progmem_swtable_section.
12690 (avr_output_addr_vec_elt): No need to switch sections.
12691 (avr_asm_init_sections): Use output_section_asm_op as section
12692 callback for progmem_swtable_section.
12693 (avr_output_progmem_section_asm_op): Remove Function.
12694 (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
12695 (avr_asm_function_rodata_section): New static Function.
12696 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
12697 alignment 2**1 for jump tables.
12698
12699 2011-09-04 Jan Hubicka <jh@suse.cz>
12700
12701 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
12702 parameter is SSA name.
12703
12704 2011-09-04 Richard Guenther <rguenther@suse.de>
12705
12706 Revert
12707 2011-08-31 Richard Guenther <rguenther@suse.de>
12708
12709 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
12710 special-casing.
12711
12712 2011-09-04 Iain Sandoe <iains@gcc.gnu.org>
12713
12714 PR debug/49901
12715 * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
12716
12717 2011-09-04 Jakub Jelinek <jakub@redhat.com>
12718 Ira Rosen <ira.rosen@linaro.org>
12719
12720 PR tree-optimization/50208
12721 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
12722 argument. Check that def_stmt is inside the loop.
12723 (vect_recog_widen_mult_pattern): Update calls to
12724 vect_handle_widen_mult_by_cons.
12725 (vect_operation_fits_smaller_type): Check that def_stmt is
12726 inside the loop.
12727
12728 2011-09-04 Ira Rosen <ira.rosen@linaro.org>
12729
12730 * tree-vectorizer.c (vect_print_dump_info): Print line
12731 number when dumping to a file.
12732 (vectorize_loops): Add new messages to dump file.
12733
12734 2011-09-03 Martin Jambor <mjambor@suse.cz>
12735
12736 * ipa-prop.h (ipa_jump_func_t): New typedef.
12737 (struct ipa_edge_args): Removed field argument_count, field
12738 jump_functions turned into a vector.
12739 (ipa_set_cs_argument_count): Removed.
12740 (ipa_get_cs_argument_count): Updated to work on vectors.
12741 (ipa_get_ith_jump_func): Likewise.
12742 * ipa-prop.c (ipa_count_arguments): Removed.
12743 (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
12744 jump functions. Update caller.
12745 (compute_pass_through_member_ptrs): Likewise.
12746 (compute_cst_member_ptr_arguments): Likewise.
12747 (ipa_compute_jump_functions_for_edge): Get number of arguments from
12748 the statement, allocate vector.
12749 (ipa_compute_jump_functions): Do not call ipa_count_arguments.
12750 (duplicate_ipa_jump_func_array): Removed.
12751 (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
12752 (ipa_read_node_info): Allocate vector.
12753
12754 2011-09-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12755
12756 PR middle-end/50232
12757 * config/pa/pa.md (return): Define "return" insn pattern.
12758 (epilogue): Use it when no epilogue is needed.
12759 * config/pa/pa.c (pa_can_use_return_insn): New function.
12760 * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
12761
12762 2011-09-03 Eric Botcazou <ebotcazou@adacore.com>
12763
12764 * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
12765 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
12766 Force at least BITS_PER_UNIT alignment on the new variable.
12767
12768 2011-09-02 Gary Funck <gary@intrepid.com>
12769
12770 * opts.c (print_specific_help): Fix off-by-one compare in
12771 assertion check.
12772 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
12773 CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
12774 Increase by +5 to allow for more languages.
12775 * optc-gen.awk: Generate #if that ensures that the number of
12776 languages is within the implementation-defined limit.
12777
12778 2011-09-02 Michael Matz <matz@suse.de>
12779
12780 PR middle-end/50260
12781 * ipa-split.c (split_function): Call add_referenced_var.
12782
12783 * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
12784 (cond_if_else_store_replacement_1): Ditto.
12785 * tree-ssa-pre.c (get_representative_for): Ditto.
12786 (create_expression_by_pieces): Ditto.
12787 (insert_into_preds_of_block): Ditto.
12788 * tree-sra.c (create_access_replacement): Ditto.
12789 (get_replaced_param_substitute): Ditto.
12790
12791 2011-09-02 Bernd Schmidt <bernds@codesourcery.com>
12792
12793 * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
12794 automata_options.
12795 (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
12796 (l1w, s1w, l2w, s2w): Define in the main automaton.
12797 (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
12798 units.
12799 * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
12800 (c6x_unit_names): Add the new units.
12801 (c6x_unit_codes): New static array.
12802 (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
12803 UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
12804 UNIT_QID_SIDE_OFFSET): New macros.
12805 (RESERVATION_S2): Adjust value.
12806 (c6x_option_override): Compute c6x_unit_codes.
12807 (assign_reservations): Take the unit_mask of the last instruction
12808 into account. Detect floating point reservations by looking for
12809 the new units. Don't assign reservations if the field is already
12810 nonzero.
12811 (struct c6x_sched_context): Add member prev_cycle_state_ctx.
12812 (init_sched_state): Initialize it.
12813 (c6x_clear_sched_context): Free it.
12814 (insn_set_clock): Clear reservation.
12815 (prev_cycle_state): New static variable.
12816 (c6x_init_sched_context): Save it.
12817 (c6x_sched_init): Allocate space for it and clear it.
12818 (c6x_sched_dfa_pre_cycle_insn): New static function.
12819 (c6x_dfa_new_cycle): Save state at the start of a new cycle.
12820 (c6x_variable_issue): Only record units in the unit_mask that
12821 were not set at the start of the cycle.
12822 (c6x_variable_issue): Compute and store the unit_mask from the
12823 current state.
12824 (reorg_split_calls): Ensure the new information remains correct.
12825 (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
12826 TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
12827 * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
12828 * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
12829 Add special reservations.
12830 * config/c6x/c6x-sched.md: Regenerate.
12831
12832 2011-09-02 Martin Jambor <mjambor@suse.cz>
12833
12834 * ipa-prop.h (ipa_node_params): Removed fields
12835 called_with_var_arguments and node_versionable.
12836 (ipa_set_called_with_variable_arg): Removed.
12837 (ipa_is_called_with_var_arguments): Likewise.
12838 * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
12839 (determine_versionability): Do not check for type attributes and va
12840 builtins. Record versionability into inline summary.
12841 (initialize_node_lattices): Do not check
12842 ipa_is_called_with_var_arguments.
12843 (propagate_constants_accross_call): Likewise, ignore arguments we do
12844 not have PARM_DECLs for, set variable flag for parameters that were
12845 not passed a value.
12846 (create_specialized_node): Dump info that we cannot change signature.
12847 * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
12848 number of arguments.
12849 (ipa_make_edge_direct_to_target): Likewise.
12850 (ipa_update_after_lto_read): Likewise.
12851 (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
12852 * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
12853 they were remapped.
12854
12855 2011-09-02 Richard Guenther <rguenther@suse.de>
12856
12857 PR tree-optimization/27460
12858 PR middle-end/29269
12859 * doc/md.texi (vcond): Document.
12860 * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
12861 optab with two modes.
12862 * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
12863 (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
12864 (vcond_optab): Adjust.
12865 (vcondu_optab): Likewise.
12866 (expand_vec_cond_expr_p): Adjust prototype.
12867 * optabs.c (get_vcond_icode): Adjust.
12868 (expand_vec_cond_expr_p): Likewise.
12869 (expand_vec_cond_expr): Likewise.
12870 * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
12871 vector type.
12872 (vectorizable_condition): Allow differing types for comparison
12873 and result.
12874 * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
12875 for the comparison.
12876 * config/i386/sse.md (vcond<mode>): Split to
12877 vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
12878 vcond<V_128:mode><VI124_128:mode> and
12879 vcondu<V_128:mode><VI124_128:mode>.
12880 (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
12881 (vconduv2di): Likewise.
12882 * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
12883 (vcondu<mode>): Likewise.
12884 * config/ia64/vect.md (vcond<mode>): Likewise.
12885 (vcondu<mode>): Likewise.
12886 (vcondv2sf): Likewise.
12887 * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
12888 * config/rs6000/paired.md (vcondv2sf): Likewise.
12889 * config/rs6000/vector.md (vcond<mode>): Likewise.
12890 (vcondu<mode>): Likewise.
12891 * config/spu/spu.md (vcond<mode>): Likewise.
12892 (vcondu<mode>): Likewise.
12893
12894 2011-09-02 Richard Guenther <rguenther@suse.de>
12895
12896 * pretty-print.h (pp_unsigned_wide_integer): New.
12897 * tree-pretty-print.c (dump_generic_node): Print unsigned
12898 host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
12899
12900 2011-09-02 Richard Sandiford <richard.sandiford@linaro.org>
12901
12902 PR target/49987
12903 * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
12904 valid CONST_VECTOR operands.
12905 (rs6000_expand_vector_init): Likewise.
12906
12907 2011-09-02 Martin Jambor <mjambor@suse.cz>
12908
12909 * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
12910 * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
12911 BINFO_VTABLE. Parameter delta removed, all callers updated.
12912 * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
12913 BINFO_VTABLE.
12914 * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
12915 all calls.
12916 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
12917 handling of thunk_delta.
12918 * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
12919 (devirtualization_time_bonus): Do not handle thunk deltas.
12920 (ipcp_discover_new_direct_edges): Likewise.
12921 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
12922 (try_make_edge_direct_simple_call): Likewise.
12923 (try_make_edge_direct_virtual_call): Likewise.
12924 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
12925 parameter set as unused.
12926 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
12927 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
12928 parameter set as unused.
12929 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
12930 (input_edge_opt_summary): Likewise.
12931 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
12932 BINFO_VIRTUALS at all.
12933 * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
12934
12935 2011-09-02 Richard Guenther <rguenther@suse.de>
12936
12937 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
12938 (ccp_fold_stmt): Continue replacing args when folding alloca fails.
12939
12940 2011-08-31 Richard Guenther <rguenther@suse.de>
12941
12942 * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
12943 handling here, from ...
12944 (expand_expr_real_1): ... here.
12945 * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
12946 and VEC_COND_EXPR.
12947 * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
12948 a GIMPLE_TERNARY_RHS.
12949 * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
12950 and VEC_COND_EXPR here ...
12951 (verify_gimple_assign_single): ... not here.
12952 * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
12953 * tree-object-size.c (cond_expr_object_size): Adjust.
12954 (collect_object_sizes_for): Likewise.
12955 * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
12956 * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
12957 (ssa_forward_propagate_and_combine): Adjust.
12958 * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
12959 as ternary.
12960 * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
12961 * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
12962 * tree-vect-stmt.c (vectorizable_condition): Likewise.
12963 * tree-vrp.c (extract_range_from_cond_expr): Likewise.
12964 (extract_range_from_assignment): Likewise.
12965
12966 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
12967
12968 * config/i386/i386.md: Use (match_test ...) for attribute tests.
12969 * config/i386/mmx.md: Likewise.
12970 * config/i386/sse.md: Likewise.
12971 * config/i386/predicates.md (call_insn_operand): Use
12972 (not (match_test "...")) instead of (match_test "!...")
12973 * config/i386/constraints.md (w): Likewise.
12974
12975 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
12976
12977 * doc/md.texi: Describe the use of match_tests in attribute tests.
12978 * rtl.def (MATCH_TEST): Update commentary.
12979 * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
12980 (write_test_expr, walk_attr_value): Handle MATCH_TEST.
12981
12982 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
12983
12984 * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
12985 (attr_string): Use copy_md_ptr_loc.
12986
12987 2011-08-31 Martin Jambor <mjambor@suse.cz>
12988
12989 PR middle-end/49886
12990 * ipa-inline-analysis.c (compute_inline_parameters): Set
12991 can_change_signature of noes with typde attributes.
12992 * ipa-split.c (split_function): Do not skip any arguments if
12993 can_change_signature is set.
12994
12995 2011-08-31 Martin Jambor <mjambor@suse.cz>
12996
12997 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
12998 check removed.
12999
13000 2011-08-31 Richard Guenther <rguenther@suse.de>
13001
13002 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
13003 special-casing.
13004
13005 2011-08-31 Marc Glisse <marc.glisse@inria.fr>
13006
13007 * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
13008
13009 2011-08-31 Tom de Vries <tom@codesourcery.com>
13010
13011 PR middle-end/43513
13012 * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
13013 * tree-ssa-ccp.c (params.h): Include.
13014 (fold_builtin_alloca_for_var): New function.
13015 (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
13016
13017 2011-08-30 Uros Bizjak <ubizjak@gmail.com>
13018
13019 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
13020 Handle FMA option.
13021
13022 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
13023
13024 * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
13025 b3 and b4 unsigned.
13026
13027 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
13028
13029 * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
13030 when code is SET.
13031
13032 2011-08-30 Richard Guenther <rguenther@suse.de>
13033
13034 PR middle-end/48571
13035 * gimple.h (maybe_fold_offset_to_address): Remove.
13036 (maybe_fold_offset_to_reference): Likewise.
13037 (maybe_fold_stmt_addition): Likewise.
13038 (may_propagate_address_into_dereference): Likewise.
13039 * tree-inline.c (remap_gimple_op_r): Do not reconstruct
13040 array references.
13041 * gimple-fold.c (canonicalize_constructor_val): Likewise.
13042 Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
13043 addresses instead.
13044 (may_propagate_address_into_dereference): Remove.
13045 (maybe_fold_offset_to_array_ref): Likewise.
13046 (maybe_fold_offset_to_reference): Likewise.
13047 (maybe_fold_offset_to_address): Likewise.
13048 (maybe_fold_stmt_addition): Likewise.
13049 (fold_gimple_assign): Do not reconstruct array references but
13050 instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
13051 MEM_REF addresses.
13052 (gimple_fold_stmt_to_constant_1): Likewise.
13053 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
13054 * gimplify.c (gimplify_conversion): Likewise.
13055 (gimplify_expr): Likewise.
13056
13057 2011-08-30 Ilya Tocar <ilya.tocar@intel.com>
13058
13059 * config/i386/fmaintrin.h: New.
13060 * config.gcc: Add fmaintrin.h.
13061 * config/i386/i386.c
13062 (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
13063 <IX86_BUILTIN_VFMADDSD3>: Likewise.
13064 * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
13065 (*fmai_fmadd_<mode>): Likewise.
13066 (*fmai_fmsub_<mode>): Likewise.
13067 (*fmai_fnmadd_<mode>): Likewise.
13068 (*fmai_fnmsub_<mode>): Likewise.
13069 * config/i386/immintrin.h: Add fmaintrin.h.
13070
13071 2011-08-30 Bernd Schmidt <bernds@codesourcery.com>
13072
13073 * genautomata.c (NO_COMB_OPTION): New macro.
13074 (no_comb_flag): New static variable.
13075 (gen_automata_option): Handle NO_COMB_OPTION.
13076 (comb_vect_p): False if no_comb_flag.
13077 (add_vect): Move computation of min/max values. Return early if
13078 no_comb_flag.
13079 * doc/md.texi (automata_option): Document no-comb-vect.
13080
13081 * config/i386/i386.c (get_pc_thunk_name): Change prefix to
13082 "__x86.get_pc_thunk".
13083
13084 * bb-reorder.c (insert_section_boundary_note): Only do it if
13085 we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
13086
13087 2011-08-30 Christian Bruel <christian.bruel@st.com>
13088
13089 * coverage.c (coverage_init): Check flag_branch_probabilities instead of
13090 flag_profile_use.
13091
13092 2011-08-29 Michael Meissner <meissner@linux.vnet.ibm.com>
13093
13094 * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
13095 to off. Document switch.
13096 * doc/invoke.texi (-msave-toc-indirect): Ditto.
13097
13098 2011-08-29 Jakub Jelinek <jakub@redhat.com>
13099
13100 * gthr-posix.h (__gthread_active_p): Do not use preprocessor
13101 conditionals and comments inside macro arguments.
13102
13103 2011-08-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
13104 Richard Guenther <rguenther@suse.de>
13105
13106 * tree.h (constant_boolean_node): Adjust prototype.
13107 * fold-const.c (fold_convert_loc): Move aggregate conversion
13108 leeway down.
13109 (constant_boolean_node): Make value parameter boolean, add
13110 vector type handling.
13111 (fold_unary_loc): Use constant_boolean_node.
13112 (fold_binary_loc): Preserve types properly when folding
13113 COMPLEX_EXPR <__real x, __imag x>.
13114 * gimplify.c (gimplify_expr): Handle vector comparison.
13115 * tree.def (EQ_EXPR, ...): Document behavior on vector typed
13116 comparison.
13117 * tree-cfg.c (verify_gimple_comparison): Verify vector typed
13118 comparisons.
13119
13120 2011-08-29 Jakub Jelinek <jakub@redhat.com>
13121
13122 PR middle-end/48722
13123 * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
13124 reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
13125 (verify_rtl_sharing): Likewise and verify_rtx_sharing
13126 in there too.
13127 (unshare_all_rtl_in_chain): For CALL_INSNs
13128 copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
13129
13130 2011-08-29 Richard Guenther <rguenther@suse.de>
13131
13132 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
13133 on the built ADDR_EXPR.
13134
13135 2011-08-29 Jakub Jelinek <jakub@redhat.com>
13136
13137 PR debug/50215
13138 * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
13139 before adding ENTRY_VALUE to val->locs.
13140
13141 2011-08-28 Mikael Pettersson <mikpe@it.uu.se>
13142
13143 PR bootstrap/50218
13144 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
13145 comp.
13146
13147 2011-08-27 Bernd Schmidt <bernds@codesourcery.com>
13148
13149 * doc/rtl.texi (simple_return): Document.
13150 (parallel, PATTERN): Here too.
13151 * doc/md.texi (return): Mention it's allowed to expand to simple_return
13152 in some cases.
13153 (simple_return): Document standard pattern.
13154 * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
13155 * final.c (final_scan_insn): Use ANY_RETURN_P on body.
13156 * reorg.c (function_return_label, function_simple_return_label):
13157 New static variables, replacing...
13158 (end_of_function_label): ... this.
13159 (simplejump_or_return_p): New static function.
13160 (optimize_skip, steal_delay_list_from_fallthrough,
13161 fill_slots_from_thread): Use it.
13162 (relax_delay_slots): Likewise. Use ANY_RETURN_P on body.
13163 (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
13164 (find_end_label): Take a new arg which is one of the two return
13165 rtxs. Depending on which, set either function_return_label or
13166 function_simple_return_label. All callers changed.
13167 (make_return_insns): Make both kinds.
13168 (dbr_schedule): Adjust for two kinds of end labels.
13169 * function.c (emit_return_into_block): Set JUMP_LABEL properly.
13170 * genemit.c (gen_exp): Handle SIMPLE_RETURN.
13171 (gen_expand, gen_split): Use ANY_RETURN_P.
13172 * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
13173 * rtl.def (SIMPLE_RETURN): New code.
13174 * ifcvt.c (find_if_case_1): Be more careful about
13175 redirecting jumps to the EXIT_BLOCK.
13176 * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
13177 returnjump_p_1): Handle SIMPLE_RETURNs.
13178 * print-rtl.c (print_rtx): Likewise.
13179 * rtl.c (copy_rtx): Likewise.
13180 * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
13181 * combine.c (simplify_set): Likewise.
13182 * resource.c (find_dead_or_set_registers, mark_set_resources):
13183 Likewise.
13184 * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
13185 copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
13186 (init_emit_regs): Initialize simple_return_rtx.
13187 * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
13188 force_nonfallthru_and_redirect.
13189 * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
13190 (GR_SIMPLE_RETURN): New enum value.
13191 (simple_return_rtx): New macro.
13192 * basic-block.h (force_nonfallthru_and_redirect): Adjust
13193 declaration.
13194 * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
13195 argument. All callers changed. Be careful about what kinds of
13196 returnjumps to generate.
13197 * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
13198 ix86_pad_short_function): Likewise.
13199 * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
13200 of return.
13201 * config/mips/mips.md (any_return): New code_iterator.
13202 (optab): Add cases for return and simple_return.
13203 (return): Expand to a simple_return.
13204 (simple_return): New pattern.
13205 (*<optab>, *<optab>_internal for any_return): New patterns.
13206 (return_internal): Remove.
13207 * config/mips/mips.c (mips_expand_epilogue): Make the last insn
13208 a simple_return_internal.
13209
13210 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
13211
13212 * config/i386/sse.md (*absneg<mode>2): Fix split condition.
13213 (vec_extract_lo_<mode>): Prevent both operands in memory.
13214 (vec_extract_lo_v16hi): Ditto.
13215 (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
13216
13217 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
13218
13219 * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
13220 (*sse2_mulv4si3): Ditto.
13221 (mulv2di3): Ditto.
13222 * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
13223 notes to REG_EQUAL.
13224
13225 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
13226
13227 PR target/50202
13228 * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
13229 when all outputs are unused.
13230 (sse4_2_pcmpistr): Ditto.
13231
13232 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
13233
13234 * config/i386/i386.md (round<mode>2): New expander.
13235 * config/i386/i386.c (enum ix86_builtins): Add
13236 IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
13237 (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
13238 descriptions.
13239 (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
13240 (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
13241
13242 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
13243
13244 PR middle-end/50083
13245 * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
13246 only when TARGET_C99_FUNCTIONS.
13247 <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
13248 <BUILT_IN_RINT{,F,L}>: Ditto.
13249
13250 2011-08-26 Michael Matz <matz@suse.de>
13251 Jakub Jelinek <jakub@redhat.com>
13252
13253 PR lto/50165
13254 * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
13255 don't call strlen twice, use memcpy.
13256
13257 2011-08-26 H.J. Lu <hongjiu.lu@intel.com>
13258
13259 * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
13260 * config/i386/bmiintrin.h: Likewise.
13261 * config/i386/lzcntintrin.h: Likewise.
13262
13263 * config/i386/immintrin.h: Include <lzcntintrin.h>,
13264 <bmiintrin.h> and <bmi2intrin.h>.
13265
13266 2011-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13267
13268 PR target/50166
13269 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
13270 * configure: Regenerate.
13271
13272 2011-08-26 Jakub Jelinek <jakub@redhat.com>
13273
13274 PR c/50179
13275 * c-typeck.c (c_process_expr_stmt): Skip over nops and
13276 call mark_exp_read even if exprv is ADDR_EXPR.
13277
13278 2011-08-26 Richard Sandiford <richard.sandiford@linaro.org>
13279
13280 * df-problems.c (df_note_bb_compute): Pass uses rather than defs
13281 to df_set_dead_notes_for_mw.
13282
13283 2011-08-26 Richard Guenther <rguenther@suse.de>
13284
13285 * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
13286
13287 2011-08-26 Zdenek Dvorak <ook@ucw.cz>
13288 Tom de Vries <tom@codesourcery.com>
13289
13290 * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
13291 (struct ivopts_data): Add loop_single_exit_p field.
13292 (niter_for_exit): Change parameter desc_p into return value. Return
13293 desc if desc->may_be_zero. Free desc if unused.
13294 (niter_for_single_dom_exit): Change return type.
13295 (find_induction_variables): Handle changed return type of
13296 niter_for_single_dom_exit. Dump may_be_zero.
13297 (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
13298 (set_use_iv_cost): Add and handle comp parameter.
13299 (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
13300 comp argument to set_use_iv_cost.
13301 (strip_wrap_conserving_type_conversions, expr_equal_p)
13302 (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
13303 (may_eliminate_iv): Add comp parameter. Handle new return type of
13304 niter_for_exit. Use loop_single_exit_p. Use iv_elimination_compare_lt.
13305 (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
13306 and may_eliminate_iv.
13307 (rewrite_use_compare): Move call to iv_elimination_compare to ...
13308 (may_eliminate_iv): Here.
13309 (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
13310
13311 2011-08-26 Tom de Vries <tom@codesourcery.com>
13312
13313 * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
13314 accessing TREE_TYPE.
13315
13316 2011-08-26 Jiangning Liu <jiangning.liu@arm.com>
13317
13318 * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
13319 (*ior_scc_scc_cmp): Likewise
13320 (*and_scc_scc): Likewise.
13321 (*and_scc_scc_cmp): Likewise.
13322 (*and_scc_scc_nodom): Likewise.
13323 (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
13324
13325 2011-08-26 Jakub Jelinek <jakub@redhat.com>
13326
13327 * rtlanal.c (nonzero_bits1): Handle CLRSB.
13328
13329 2011-08-26 Richard Guenther <rguenther@suse.de>
13330
13331 * expr.c (string_constant): Handle &MEM_REF.
13332
13333 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
13334
13335 * config/arm/arm.c (struct four_ints): New type.
13336 (count_insns_for_constant): Delete function.
13337 (find_best_start): Delete function.
13338 (optimal_immediate_sequence): New function.
13339 (optimal_immediate_sequence_1): New function.
13340 (arm_gen_constant): Move constant splitting code to
13341 optimal_immediate_sequence.
13342 Rewrite constant negation/invertion code.
13343
13344 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
13345
13346 * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
13347 * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
13348 Remove prototype. Remove static function type.
13349 * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
13350 Add arch attribute.
13351 * config/arm/constraints.md (Pj, PJ): New constraints.
13352
13353 2011-08-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13354
13355 * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
13356 ("cortex_a9_multiply_long"): New and use above. Handle all
13357 long multiply cases.
13358 ("cortex_a9_multiply"): Handle smmul and smmulr.
13359 ("cortex_a9_mac"): Handle smmla.
13360
13361 2011-08-25 Richard Henderson <rth@redhat.com>
13362
13363 PR 50132
13364 PR 49864
13365 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
13366 non-constant stack adjutment.
13367 * expr.c (find_args_size_adjust): Break out from ...
13368 (fixup_args_size_notes): ... here.
13369 * rtl.h (find_args_size_adjust): Declare.
13370
13371 2011-08-25 Uros Bizjak <ubizjak@gmail.com>
13372
13373 * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
13374 sse4 and sse4_noavx.
13375 (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
13376 (*pushdf_rex64): Change Y2 register constraint to x.
13377 (*movdf_internal_rex64): Ditto.
13378 (*zero_extendsidi2_rex64): Ditto.
13379 (*movdi_internal): Change Y2 register constraint to x
13380 and update "isa" attribute.
13381 (*pushdf): Ditto.
13382 (*movdf internal): Ditto.
13383 (zero_extendsidi2_1): Ditto.
13384 (*truncdfdf_mixed): Ditto.
13385 (*truncxfdf2_mixed): Ditto.
13386 * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
13387 register constraint to x.
13388 (*movv2sf_internal_rex64): Ditto.
13389 (*mov<mode>_internal): Change Y2 register constraint to x
13390 and add "isa" attribute.
13391 (*movv2sf_internal): Ditto.
13392 (*vec_extractv2si_1): Ditto.
13393 * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
13394 constraints to x and update "isa" attribute.
13395 (*vec_interleave_highv2df): Change Y3 registerconstraint
13396 to x and update "isa" attribute.
13397 (*vec_interleave_lowv2df): Ditto.
13398 (*vec_concatv2df): Change Y2 register constraint to x and
13399 update "isa" attribute.
13400 (sse2_loadld): Ditto.
13401 (*vec_extractv2di_1): Ditto.
13402 (*vec_dupv4si): Ditto.
13403 (*vec_dupv2di): Ditto.
13404 (*vec_concatv4si): Ditto.
13405 (vec_concatv2di): Ditto.
13406 * config/i386/constraints.md (Y2): Remove.
13407 (Y3): Ditto.
13408 (Y4): Ditto.
13409
13410 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
13411
13412 * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
13413 dump_def_use_chain): Don't declare.
13414 (mark_conflict, create_new_chain): Move before users.
13415 (regrename_optimize): Move to near end of file.
13416
13417 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
13418
13419 * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
13420 (secondary_input_reload_class): Remove Prototype.
13421 * config/avr/avr.c (byte_immediate_operand): Remove Function.
13422 * config/avr/avr.md (setmemhi): Use u8_operand.
13423 (strlenhi): Use const0_rtx for comparison.
13424 * config/avr/avr.h (avr_reg_order): Remove Declaration.
13425
13426 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
13427
13428 * config/avr/avr.c (reg_class_tab): Make local to
13429 avr_regno_reg_class. Return smallest register class available.
13430
13431 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
13432
13433 * config/avr/avr.c (STR_PREFIX_P): New Define.
13434 (avr_asm_declare_function_name): Use it.
13435 (avr_asm_named_section): Use it.
13436 (avr_section_type_flags): Use it.
13437
13438 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
13439
13440 * doc/md.texi (automata_option): Document collapse-ndfa.
13441 * genautomata.c (COLLAPSE_OPTION): New macro.
13442 (collapse_flag): New static variable.
13443 (struct description): New member normal_decls_num.
13444 (struct automaton): New members advance_ainsn and collapse_ainsn.
13445 (gen_automata_option): Check for COLLAPSE_OPTION.
13446 (collapse_ndfa_insn_decl): New static variable.
13447 (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
13448 (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
13449 (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
13450 necessary. Use normal_decls_num rather than decls_num, remove
13451 test for special decls.
13452 (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
13453 (make_automaton); Likewise. Use the new advance_cycle_insn member
13454 of struct automaton.
13455 (create_composed_state): Disallow advance-cycle arcs if collapse_flag
13456 is set.
13457 (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
13458 transition. Create the necessary transitions for it.
13459 (create_ainsns): Return void. Take an automaton_t argument, and
13460 update its ainsn_list, advance_ainsn and collapse_ainsn members. All
13461 callers changed.
13462 (COLLAPSE_NDFA_VALUE_NAME): New macro.
13463 (output_tables): Output code to define it.
13464 (output_internal_insn_code_evaluation): Output code to accept
13465 const0_rtx as collapse-ndfa transition.
13466 (output_default_latencies, output_print_reservation_func,
13467 output_print_description): Reorganize loops to use normal_decls_num
13468 as loop bound; remove special case for advance_cycle_insn_decl.
13469 (initiate_automaton_gen): Handle COLLAPSE_OPTION.
13470 (check_automata_insn_issues): Check for collapse_ainsn.
13471 (expand_automate): Allocate sufficient space. Initialize
13472 normal_decls_num.
13473
13474 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
13475
13476 * config/avr/avr.md: Fix indentation from r177991.
13477
13478 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
13479
13480 * regrename.c (struct du_head): Remove member terminated.
13481 (create_new_chain): Don't initialize it.
13482 (scan_rtx_reg): Don't set or test it, test the open_chains_set
13483 bitmap instead.
13484 (tick, this_tick): New global variables, moved out of
13485 regrename_optimize.
13486 (current_id, open_chains, closed_chains, open_chains_set,
13487 live_in_chains, live_hard_regs): Reorder declarations.
13488 (dump_def_use_chain): Move function earlier in the file.
13489 (rename_chains): New static function, broken out of
13490 regrename_optimize.
13491 (regrename_optimize): Use it. Remove #if 0'ed code.
13492
13493 2011-08-25 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13494
13495 * varasm.c: (default_binds_local_p_1): Commentary typo fix.
13496
13497 2011-08-24 H.J. Lu <hongjiu.lu@intel.com>
13498
13499 PR target/50172
13500 * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
13501
13502 2011-08-24 Richard Guenther <rguenther@suse.de>
13503
13504 * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
13505 ref in the basic-block case. Move stripping array-refs
13506 to the place we create an access-function for it. Remove
13507 bogus stripping down a MEM_REF to its base.
13508
13509 2011-08-24 Richard Guenther <rguenther@suse.de>
13510
13511 * fold-const.c (fold_comparison): Fold &a < &a + 4 even
13512 with -fno-strict-overflow.
13513
13514 2011-08-24 Richard Guenther <rguenther@suse.de>
13515
13516 * tree-vectorizer.c (vect_print_dump_info): Avoid the
13517 file and location clutter when dumping to dump files.
13518
13519 2011-08-24 Simon Baldwin <simonb@google.com>
13520
13521 * gengtype-state.c (write_state): Remove timestamped header line.
13522
13523 2011-08-24 Joseph Myers <joseph@codesourcery.com>
13524
13525 * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
13526 (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
13527 (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
13528 (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
13529 (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
13530 (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
13531 (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
13532 rules.
13533 (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
13534
13535 2011-08-24 Joseph Myers <joseph@codesourcery.com>
13536
13537 * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
13538
13539 2011-08-24 Richard Guenther <rguenther@suse.de>
13540
13541 PR tree-optimization/50067
13542 * tree-data-ref.c (dr_analyze_indices): Do not add an access
13543 function for a MEM_REF base that has no evolution in the loop
13544 nest or that is not analyzable.
13545
13546 2011-08-23 Vladimir Makarov <vmakarov@redhat.com>
13547
13548 * ira.c (ira_init_register_move_cost): Check small subclasses
13549 through ira_reg_class_max_nregs and ira_available_class_regs.
13550
13551 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
13552
13553 * config/i386/constraints.md (Yp): New register constraint.
13554 * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
13555 Yp register constraint.
13556 (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
13557 (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
13558 (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
13559
13560 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
13561
13562 * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
13563
13564 2011-08-23 Mark Heffernan <meheff@google.com>
13565
13566 PR middle-end/38509
13567 * common.opt (Wfree-nonheap-object): New option.
13568 * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
13569 * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
13570 to warning.
13571 (expand_builtin): Make warning conditional.
13572
13573 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
13574
13575 * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
13576 (length_immediate): Handle imulx, ishiftx and rotatex.
13577 (imm_disp): Ditto.
13578 (isa): Add bmi2.
13579 (enabled): Handle bmi2.
13580 (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
13581 (*umul<mode><dwi>3): Ditto. Add imulx BMI2 alternative.
13582 (*bmi2_umulditi3_1): New insn pattern.
13583 (*bmi2_umulsidi3_1): Ditto.
13584 (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
13585 (*bmi2_ashl<mode>3_1): New insn pattern.
13586 (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
13587 (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
13588 (*bmi2_ashlsi3_1_zext): New insn pattern.
13589 (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
13590 (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
13591 (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
13592 (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
13593 (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
13594 flags dependency.
13595 (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
13596 (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
13597 (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
13598 flags dependency.
13599 (*bmi2_rorx<mode>3_1): New insn pattern.
13600 (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
13601 (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
13602 (*rotatert<mode>3_1 splitter): Ditto.
13603 (*bmi2_rorxsi3_1_zext): New insn pattern.
13604 (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
13605 (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
13606 (*rotatertsi3_1_zext splitter): Ditto.
13607
13608 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
13609
13610 * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
13611 (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
13612 (ix86_handle_option): Handle OPT_mbmi2 case.
13613 * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
13614 (x86_64-*-*): Likewise.
13615 * config/i386/bmi2intrin.h: New file.
13616 * config/i386/cpuid.h (bit_BMI2): New.
13617 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
13618 BMI2 feature.
13619 * config/i386/i386-c.c (ix86_target_macros_internal):
13620 Conditionally define __BMI2__.
13621 * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
13622 Handle BMI2 option.
13623 (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
13624 (print_reg): New code.
13625 (ix86_print_operand): Likewise.
13626 (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
13627 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
13628 IX86_BUILTIN_PEXT64.
13629 (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
13630 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
13631 IX86_BUILTIN_PEXT64.
13632 * config/i386/i386.h (TARGET_BMI2): New.
13633 * config/i386/i386.md (UNSPEC_PDEP): New.
13634 (UNSPEC_PEXT): Likewise.
13635 (*bmi2_bzhi_<mode>3): Likewise.
13636 (*bmi2_pdep_<mode>3): Likewise.
13637 (*bmi2_pext_<mode>3): Likewise.
13638 * config/i386/i386.opt (mbmi2): New.
13639 * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
13640 is defined.
13641 * doc/extend.texi: Document BMI2 built-in functions.
13642 * doc/invoke.texi: Document -mbmi2.
13643
13644 2011-08-23 Jakub Jelinek <jakub@redhat.com>
13645
13646 PR middle-end/50161
13647 * simplify-rtx.c (simplify_const_unary_operation): If
13648 op is CONST_INT, don't look at op_mode, but use instead mode.
13649 * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
13650 CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
13651 operation and TRUNCATE/ZERO_EXTEND if needed.
13652 * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
13653 Document that operand mode must be same as operation mode,
13654 or VOIDmode.
13655 * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
13656 *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
13657 *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
13658 *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
13659 use the mode of operand for the operation and add truncate
13660 or zero_extend around if needed.
13661 * config/c6x/c6x.md (ctzdi2): Likewise.
13662 * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
13663
13664 2011-08-12 Michael Matz <matz@suse.de>
13665
13666 * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
13667 (gimple_expand_cfg): Merge alignment info for coalesced pointer
13668 SSA names.
13669
13670 2011-08-23 Richard Guenther <rguenther@suse.de>
13671
13672 * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
13673 * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
13674 * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
13675 from ...
13676 * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
13677 (mem_refs_may_alias_p): Adjust.
13678 * tree-data-ref.h (dr_may_alias_p): Adjust.
13679 * tree-data-ref.c: Include tree-affine.h.
13680 (dr_analyze_indices): Do nothing for the non-loop case.
13681 (dr_may_alias_p): Distinguish loop and non-loop case. Disambiguate
13682 more cases in the non-loop case.
13683 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
13684 calls to dr_may_alias_p.
13685 (write_alias_graph_to_ascii_ecc): Likewise.
13686 (write_alias_graph_to_ascii_dot): Likewise.
13687 (build_alias_set_optimal_p): Likewise.
13688
13689 2011-08-23 Richard Guenther <rguenther@suse.de>
13690
13691 PR tree-optimization/50162
13692 * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
13693
13694 2011-08-23 Richard Guenther <rguenther@suse.de>
13695
13696 * tree-data-ref.c (dr_analyze_indices): Add comments, handle
13697 REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
13698 (create_data_ref): Also dump access functions for the created data-ref.
13699
13700 2011-08-22 Uros Bizjak <ubizjak@gmail.com>
13701 Kirill Yukhin <kirill.yukhin@intel.com>
13702
13703 PR target/50155
13704 * config/i386/sse.md (VI_AVX2): New.
13705 (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
13706 (*<plusminus_insn><mode>3): Ditto.
13707 (<sse2_avx2>_andnot<mode>3): Ditto.
13708 (*andnot<mode>3): Fix order of cond operands.
13709 Add asserts for correct TARGET_xxx.
13710 (*<any_logic:code><mode>3): Ditto.
13711
13712 2011-08-22 Anatoly Sokolov <aesok@post.ru>
13713
13714 * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
13715 * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
13716 * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
13717 regclass argument type to reg_class_t. Change 'max' and 'v' vars
13718 and return types to unsigned char. Use reg_class_contents instead
13719 of class_contents.
13720 (TARGET_CLASS_MAX_NREGS): Define.
13721
13722 2011-08-22 Bernd Schmidt <bernds@codesourcery.com>
13723
13724 * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
13725 to make computed_jump_p return true.
13726
13727 2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13728
13729 * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
13730 (PICFLAG_FOR_TARGET): Substitute.
13731 * aclocal.m4: Regenerate.
13732 * configure: Regenerate.
13733
13734 2011-08-22 Dodji Seketeli <dodji@redhat.com>
13735
13736 * c-family/c-pch.c (c_common_read_pch): Re-set line table right
13737 after reading in the pch.
13738
13739 2011-08-22 H.J. Lu <hongjiu.lu@intel.com>
13740
13741 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
13742 * configure: Regenerated.
13743
13744 2011-08-22 Jakub Jelinek <jakub@redhat.com>
13745
13746 PR tree-optimization/50133
13747 * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
13748 from stmt instead of some statement around gsi.
13749
13750 PR middle-end/50141
13751 * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
13752 innerdecl is a VAR_DECL.
13753
13754 2011-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
13755
13756 * config/i386/avx2intrin.h: New file.
13757 * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
13758 PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
13759 V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
13760 V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
13761 V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
13762 V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
13763 V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
13764 V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
13765 V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
13766 V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
13767 V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
13768 V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
13769 V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
13770 V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
13771 V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
13772 V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
13773 V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
13774 V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
13775 VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
13776 VOID_FTYPE_PV8SI_V8SI_V8SI,
13777 V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
13778 V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
13779 V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
13780 V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
13781 V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
13782 V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
13783 V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
13784 V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
13785 V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
13786 V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
13787 V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
13788 V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
13789 V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
13790 V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
13791 V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
13792 V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
13793 V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
13794 V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
13795 V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
13796 V4DI_FTYPE_V4DI_INT_CONVERT,
13797 V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
13798 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
13799 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
13800 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
13801 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
13802 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
13803 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
13804 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
13805 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
13806 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
13807 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
13808 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
13809 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
13810 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
13811 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
13812 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
13813 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
13814 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
13815 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
13816 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
13817 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
13818 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
13819 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
13820 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
13821 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
13822 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
13823 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
13824 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
13825 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
13826 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
13827 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
13828 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
13829 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
13830 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
13831 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
13832 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
13833 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
13834 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
13835 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
13836 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
13837 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
13838 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
13839 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
13840 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
13841 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
13842 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
13843 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
13844 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
13845 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
13846 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
13847 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
13848 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
13849 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
13850 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
13851 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
13852 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
13853 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
13854 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
13855 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
13856 IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
13857 IX86_BUILTIN_VBROADCASTSS_PS256,
13858 IX86_BUILTIN_VBROADCASTSD_PD256,
13859 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
13860 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
13861 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
13862 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
13863 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
13864 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
13865 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
13866 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
13867 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
13868 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
13869 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
13870 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
13871 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
13872 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
13873 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
13874 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
13875 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
13876 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
13877 IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
13878 IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
13879 IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
13880 IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
13881 IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
13882 IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
13883 IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
13884 IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
13885 (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
13886 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
13887 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
13888 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
13889 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
13890 (bdesc_args): Add IX86_BUILTIN_MPSADBW256,
13891 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
13892 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
13893 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
13894 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
13895 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
13896 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
13897 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
13898 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
13899 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
13900 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
13901 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
13902 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
13903 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
13904 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
13905 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
13906 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
13907 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
13908 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
13909 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
13910 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
13911 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
13912 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
13913 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
13914 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
13915 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
13916 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
13917 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
13918 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
13919 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
13920 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
13921 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
13922 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
13923 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
13924 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
13925 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
13926 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
13927 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
13928 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
13929 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
13930 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
13931 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
13932 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
13933 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
13934 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
13935 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
13936 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
13937 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
13938 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
13939 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
13940 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
13941 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
13942 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
13943 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
13944 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
13945 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
13946 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
13947 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
13948 IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
13949 IX86_BUILTIN_VBROADCASTSD_PD256,
13950 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
13951 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
13952 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
13953 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
13954 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
13955 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
13956 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
13957 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
13958 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
13959 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
13960 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
13961 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
13962 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
13963 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
13964 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
13965 IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
13966 IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
13967 IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
13968 IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
13969 IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
13970 IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
13971 IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
13972 IX86_BUILTIN_GATHERDIV8SI.
13973 (ix86_preferred_simd_mode): Support AVX2 modes.
13974 (ix86_expand_args_builtin): Support AVX2 builtins.
13975 (ix86_expand_special_args_builtin): Likewise.
13976 (ix86_expand_builtin): Likewise.
13977 * config/i386/i386.md (UNSPEC_VPERMSI): New.
13978 (UNSPEC_VPERMDF): Likewise.
13979 (UNSPEC_VPERMSF): Likewise.
13980 (UNSPEC_VPERMDI): Likewise.
13981 (UNSPEC_VPERMTI): Likewise.
13982 (UNSPEC_GATHER): Likewise.
13983 (ssemodesuffix): Extend.
13984 * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
13985 is defined.
13986 * config/i386/predicates.md (const1248_operand): New.
13987 * config/i386/sse.md (VI1_AVX2): New mode iterator.
13988 (VI2_AVX2): Likewise.
13989 (VI4_AVX2): Likewise.
13990 (VI8_AVX2): Likewise.
13991 (VIMAX_AVX2): Likewise.
13992 (SSESCALARMODE): Likewise.
13993 (VI12_AVX2): Likewise.
13994 (VI24_AVX2): Likewise.
13995 (VI124_AVX2): Likewise.
13996 (VI248_AVX2): Likewise.
13997 (VI48_AVX2): Likewise.
13998 (VI4SD_AVX2): Likewise.
13999 (V48_AVX2): Likewise.
14000 (AVX256MODE2P): Likewise.
14001 (AVXMODE48P_DI): Likewise.
14002 (sse2_avx2): New mode attribute.
14003 (ssse3_avx2): Likewise.
14004 (sse4_1_avx2): Likewise.
14005 (avx_avx2): Likewise.
14006 (ssebytemode): Likewise.
14007 (AVXTOSSEMODE): Likewise.
14008 (AVXMODE48P_DI): Likewise.
14009 (gthrfirstp): Likewise.
14010 (gthrlastp): Likewise.
14011 (lshift): New code_iterator
14012 (lshift): New code attribute.
14013 (lshift): Likewise.
14014 (ssescalarmodesuffix): Update.
14015 (sseunpackmode): Likewise.
14016 (ssepackmode): Likewise.
14017 (avx2_vec_dupv4sf): New insn pattern.
14018 (avx2_vec_dupv8sf): Likewise.
14019 (avx2_interleave_highv4di): Likewise.
14020 (avx2_interleave_lowv4di): Likewise.
14021 (avx2_umulv4siv4di3): Likewise
14022 (*avx2_umulv4siv4di3): Likewise
14023 (avx2_pmaddwd): Likewise.
14024 (*avx2_pmaddwd): Likewise.
14025 (avx2_lshrqv4di3): Likewise.
14026 (avx2_lshlqv4di3): Likewise.
14027 (avx2_lshl<mode>3): Likewise.
14028 (avx2_<umaxmin:code><mode>3): Likewise.
14029 (*avx2_<umaxmin:code><mode>3): Likewise.
14030 (avx2_<smaxmin:code><mode>3): Likewise.
14031 (*avx2_<smaxmin:code><mode>3): Likewise.
14032 (avx2_eq<mode>3): Likewise.
14033 (*avx2_eq<mode>3): Likewise.
14034 (avx2_gt<mode>3): Likewise.
14035 (avx2_interleave_highv32qi): New.
14036 (avx2_interleave_lowv32qi): Likewise.
14037 (avx2_interleave_highv16hi): Likewise.
14038 (avx2_interleave_lowv16hi): Likewise.
14039 (avx2_interleave_highv8si): Likewise.
14040 (avx2_interleave_lowv8si): Likewise.
14041 (avx2_pshufd): Likewise.
14042 (avx2_pshufd_1): Likewise.
14043 (avx2_pshuflwv3): Likewise.
14044 (avx2_pshuflw_1): Likewise.
14045 (avx2_pshufhwv3): Likewise.
14046 (avx2_pshufhw_1): Likewise.
14047 (avx2_uavgv32qi3): Likewise.
14048 (*avx2_uavgv32qi3): Likewise.
14049 (avx2_uavgv16hi3): Likewise.
14050 (*avx2_uavgv16hi3): Likewise.
14051 (avx2_pmovmskb): Likewise.
14052 (avx2_phaddwv16hi3): Likewise.
14053 (avx2_phadddv8si3): Likewise.
14054 (avx2_phaddswv16hi3): Likewise.
14055 (avx2_phsubwv16hi3): Likewise.
14056 (avx2_phsubdv8si3): Likewise.
14057 (avx2_phsubswv16hi3): Likewise.
14058 (avx2_pmaddubsw256): Likewise.
14059 (avx2_umulhrswv16hi3): Likewise.
14060 (*avx2_umulhrswv16hi3): Likewise.
14061 (avx2_packusdw): Likewise.
14062 (avx2_pblendd<mode>): Likewise.
14063 (avx2_<code>v16qiv16hi2): Likewise.
14064 (avx2_<code>v8qiv8si2): Likewise.
14065 (avx2_<code>v8hiv8si2): Likewise.
14066 (avx2_<code>v4qiv4di2): Likewise.
14067 (avx2_<code>v4hiv4di2): Likewise.
14068 (avx2_<code>v4siv4di2): Likewise.
14069 (avx2_pbroadcast<mode>): Likewise.
14070 (avx2_permvarv8si): Likewise.
14071 (avx2_permv4df): Likewise.
14072 (avx2_permvarv8sf): Likewise.
14073 (avx2_permv4di): Likewise.
14074 (avx2_permv2ti): Likewise.
14075 (avx2_vec_dupv4df): Likewise.
14076 (avx2_vbroadcasti128_<mode>): Likewise.
14077 (avx2_vec_set_lo_v4di): Likewise.
14078 (avx2_vec_set_hi_v4di): Likewise.
14079 (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
14080 (avx2_extracti128): Likewise.
14081 (avx2_inserti128): Likewise.
14082 (avx2_ashrvv8si): Likewise.
14083 (avx2_ashrvv4si): Likewise.
14084 (avx2_<lshift>vv8si): Likewise.
14085 (avx2_<lshift>v<mode>): Likewise.
14086 (avx2_<lshift>vv2di): Likewise.
14087 (avx2_gathersi<mode>): Likewise.
14088 (*avx2_gathersi<mode>): Likewise.
14089 (avx2_gatherdi<mode>): Likewise.
14090 (*avx2_gatherdi<mode>): Likewise.
14091 (avx2_gatherdi<mode>256): Likewise.
14092 (*avx2_gatherdi<mode>256): Likewise.
14093 (<plusminus_insn><mode>3): Use VI mode iterator.
14094 (*<plusminus_insn><mode>3): Use VI mode iterator.
14095 (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
14096 sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
14097 (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
14098 *sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
14099 (mul<mode>3): Rename from mulv8hi3. Use VI2_AVX2 mode iterator.
14100 (*mul<mode>3): Rename from *mulv8hi3. Use VI2_AVX2 mode iterator.
14101 (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
14102 Use VI2_AVX2 mode iterator.
14103 (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
14104 Use VI2_AVX2 mode iterator.
14105 (mul<mode>3): Rename from mulv4si3. Use VI4_AVX2 mode iterator.
14106 (*mul<mode>3): Rename from *mulv4si3. Use VI4_AVX2 mode iterator.
14107 (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
14108 Use VI4_AVX2 mode iterator.
14109 (ashr<mode>3): Use VI24_AVX2 mode iterator.
14110 (lshr<mode>3): Use VI248_AVX2 mode iterator.
14111 (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
14112 Use VIMAX_AVX2 mode iterator.
14113 (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
14114 Use VI mode iterator.
14115 (*andnot<mode>3): Update for AVX2.
14116 (*<any_logic:code><mode>3): Likewise.
14117 (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
14118 Use VI1_AVX mode iterator.
14119 (<sse2_avx2>_packssdw): Rename from sse2_packssdw.
14120 Use VI2_AVX mode iterator.
14121 (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
14122 Use VI1_AVX mode iterator.
14123 (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
14124 Use VI8_AVX2 mode iterator.
14125 (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
14126 Use VI1_AVX2 mode iterator.
14127 (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
14128 Use VI124_AVX2 mode iterator.
14129 (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
14130 Use SSESCALARMODE mode iterator.
14131 (abs<mode>2): Use VI124_AVX2 mode iterator.
14132 (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
14133 Use VI8_AVX2 mode iterator.
14134 (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
14135 Use VI1_AVX2 mode iterator.
14136 (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
14137 Use VI1_AVX2 mode iterator.
14138 (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
14139 Use VI2_AVX2 mode iterator.
14140 (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
14141 avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
14142 (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
14143 avx_maskstore<ssemodesuffix><avxsizesuffix>.
14144 Use V48_AVX2 mode iterator.
14145 * doc/extend.texi: Document AVX2 built-in functions.
14146 * doc/invoke.texi: Document -mavx2.
14147
14148 2011-08-22 Matthias Klose <doko@debian.org>
14149
14150 Revert:
14151 2011-07-11 Arthur Loiret <aloiret@debian.org>
14152 Matthias Klose <doko@debian.org>
14153 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
14154 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
14155 convention.
14156 * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
14157
14158 2011-08-22 Mikael Pettersson <mikpe@it.uu.se>
14159
14160 PR bootstrap/50146
14161 * ira-color.c (assign_hard_reg): Move saved_nregs declaration
14162 to #ifndef HONOR_REG_ALLOC_ORDER block.
14163
14164 2011-08-21 Richard Henderson <rth@redhat.com>
14165
14166 * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
14167 * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
14168 * resource.c (next_insn_no_annul): Likewise.
14169 (mark_set_resources): Likewise.
14170 * reorg.c (delete_from_delay_slot): Likewise.
14171 (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
14172 (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
14173
14174 2011-08-21 Uros Bizjak <ubizjak@gmail.com>
14175
14176 * config/i386/i386.md (any_div): Remove.
14177 (sgnprefix): Update for removal.
14178 (u): Ditto.
14179
14180 2011-08-20 Vladimir Makarov <vmakarov@redhat.com>
14181
14182 * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
14183 for ira_reg_class_max_nregs. Increase pressure by 1.
14184 (mark_pseudo_regno_subword_dead): Use allocno class
14185 for ira_reg_class_max_nregs.
14186
14187 2011-08-20 Richard Henderson <rth@redhat.com>
14188
14189 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
14190 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
14191 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
14192 config/c6x/ltf.c: Adjust include path for soft-fp.
14193
14194 2011-08-20 H.J. Lu <hongjiu.lu@intel.com>
14195
14196 PR other/46770
14197 * config.gcc (tm_file): Add initfini-array.h if
14198 .init_arrary/.fini_array are supported.
14199
14200 * crtstuff.c: Don't generate .ctors nor .dtors sections if
14201 USE_INITFINI_ARRAY is defined.
14202
14203 * output.h (default_elf_init_array_asm_out_constructor): New.
14204 (default_elf_fini_array_asm_out_destructor): Likewise.
14205 * varasm.c (elf_init_array_section): Likewise.
14206 (elf_fini_array_section): Likewise.
14207 (get_elf_initfini_array_priority_section): Likewise.
14208 (default_elf_init_array_asm_out_constructor): Likewise.
14209 (default_elf_fini_array_asm_out_destructor): Likewise.
14210
14211 * config/initfini-array.h: New.
14212
14213 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
14214
14215 * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
14216 OK for ST_REGS and FP_REGS before taking those classes into account.
14217
14218 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
14219
14220 * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
14221 before checking for annulled branches.
14222
14223 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
14224
14225 * config/i386/i386.c (ix86_binary_operator_ok): Use
14226 satisfies_constraint_L.
14227
14228 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
14229 Michael Matz <matz@suse.de>
14230
14231 * config/i386/i386.c (ix86_expand_round_sse4): Expand as
14232 trunc (a + copysign (nextafter (0.5, 0.0), a)).
14233
14234 2011-08-20 Anatoly Sokolov <aesok@post.ru>
14235
14236 * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
14237 * doc/tm.texi: Regenerate.
14238 * targhooks.c (default_preferred_output_reload_class): Don't use
14239 PREFERRED_OUTPUT_RELOAD_CLASS macro.
14240 * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
14241
14242 2011-08-20 Jakub Jelinek <jakub@redhat.com>
14243
14244 PR tree-optimization/48739
14245 * tree-ssa.c: Include cfgloop.h.
14246 (execute_update_addresses_taken): When updating ssa, if in loop closed
14247 SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
14248 * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
14249
14250 2011-08-19 Vladimir Makarov <vmakarov@redhat.com>
14251
14252 PR rtl-optimization/49936
14253 * ira.c (ira_init_register_move_cost): Ignore too small subclasses
14254 for calculation of max register move costs.
14255
14256 2011-08-19 Joseph Myers <joseph@codesourcery.com>
14257
14258 * c-parser.c (c_parser_postfix_expression): Convert operands of
14259 __builtin_complex to their semantic types.
14260
14261 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
14262
14263 PR middle-end/49721
14264 * explow.c (convert_memory_address_addr_space): Also permute the
14265 conversion and addition of constant for zero-extend.
14266
14267 2011-08-19 Joseph Myers <joseph@codesourcery.com>
14268
14269 * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
14270 * doc/extend.texi (__builtin_complex): Document.
14271
14272 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
14273
14274 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
14275 beyond conversions.
14276 (convert_mult_to_widen): Convert constant inputs to the right type.
14277 (convert_plusminus_to_widen): Don't automatically reject inputs that
14278 are not an SSA_NAME.
14279 Convert constant inputs to the right type.
14280
14281 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
14282
14283 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
14284 to the correct type.
14285
14286 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
14287
14288 * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
14289 unsigned inputs of different modes.
14290 (convert_plusminus_to_widen): Likewise.
14291
14292 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
14293
14294 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
14295 'type'.
14296 Use 'type' from caller, not inferred from 'rhs'.
14297 Don't reject non-conversion statements. Do return lhs in this case.
14298 (is_widening_mult_p): Add new argument 'type'.
14299 Use 'type' from caller, not inferred from 'stmt'.
14300 Pass type to is_widening_mult_rhs_p.
14301 (convert_mult_to_widen): Pass type to is_widening_mult_p.
14302 (convert_plusminus_to_widen): Likewise.
14303
14304 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
14305
14306 * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
14307 Ensure the the larger type is the first operand.
14308
14309 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
14310
14311 * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
14312 unsupported unsigned multiplies to signed.
14313 (convert_plusminus_to_widen): Likewise.
14314
14315 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
14316
14317 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
14318 conversion statement separating multiply-and-accumulate.
14319
14320 2011-08-19 Richard Guenther <rguenther@suse.de>
14321
14322 PR tree-optimization/50067
14323 * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
14324 offset only if we accounted for it.
14325
14326 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
14327
14328 * config/arm/arm.md (maddhidi4): Remove '*' from name.
14329 * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
14330 * optabs.c (find_widening_optab_handler_and_mode): New function.
14331 (expand_widen_pattern_expr): Use find_widening_optab_handler.
14332 (expand_binop_directly): Likewise.
14333 (expand_binop): Likewise.
14334 * optabs.h (find_widening_optab_handler): New macro define.
14335 (find_widening_optab_handler_and_mode): New prototype.
14336 * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
14337 type precision rules.
14338 (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
14339 * tree-ssa-math-opts.c (build_and_insert_cast): New function.
14340 (is_widening_mult_rhs_p): Allow widening by more than one mode.
14341 Explicitly disallow mis-matched input types.
14342 (convert_mult_to_widen): Use find_widening_optab_handler, and cast
14343 input types to fit the new handler.
14344 (convert_plusminus_to_widen): Likewise.
14345
14346 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
14347
14348 * expr.c (expand_expr_real_2): Use widening_optab_handler.
14349 * genopinit.c (optabs): Use set_widening_optab_handler for $N.
14350 (gen_insn): $N now means $a must be wider than $b, not consecutive.
14351 * optabs.c (widened_mode): New function.
14352 (expand_widen_pattern_expr): Use widening_optab_handler.
14353 (expand_binop_directly): Likewise.
14354 (expand_binop): Likewise.
14355 * optabs.h (widening_optab_handlers): New struct.
14356 (optab_d): New member, 'widening'.
14357 (widening_optab_handler): New function.
14358 (set_widening_optab_handler): New function.
14359 * tree-ssa-math-opts.c (convert_mult_to_widen): Use
14360 widening_optab_handler.
14361 (convert_plusminus_to_widen): Likewise.
14362
14363 2011-08-19 Joseph Myers <joseph@codesourcery.com>
14364
14365 * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
14366 pedantic.
14367 * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
14368 * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
14369
14370 2011-08-19 Joseph Myers <joseph@codesourcery.com>
14371
14372 * opth-gen.awk: Do not declare target save/restore structures and
14373 functions if IN_RTS defined.
14374
14375 2011-08-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
14376
14377 PR target/49437
14378 * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
14379 when stack was realigned in interrupt handler prologue.
14380
14381 2011-08-18 Joseph Myers <joseph@codesourcery.com>
14382
14383 * c-decl.c (shadow_tag_warned): Check for _Noreturn.
14384 (quals_from_declspecs): Assert _Noreturn not present.
14385 (grokdeclarator): Handle _Noreturn.
14386 (build_null_declspecs): Initialize noreturn_p.
14387 (declspecs_add_scspec): Handle RID_NORETURN.
14388 * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
14389 (c_parser_attributes): Handle RID_NORETURN.
14390 * c-tree.h (struct c_declspecs): Add noreturn_p.
14391 * ginclude/stdnoreturn.h: New.
14392 * Makefile.in (USER_H): Add stdnoreturn.h.
14393
14394 2011-08-18 Kirill Yukhin <kirill.yukhin@intel.com>
14395
14396 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
14397 (OPTION_MASK_ISA_AVX_UNSET): Update.
14398 (OPTION_MASK_ISA_AVX2_UNSET): New.
14399 (ix86_handle_option): Handle OPT_mavx2 case.
14400 * config/i386/cpuid.h (bit_AVX2): New.
14401 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
14402 AVX2 feature.
14403 * config/i386/i386-c.c (ix86_target_macros_internal):
14404 Conditionally define __AVX2__.
14405 * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
14406 Define "core-avx2" processor alias. Handle avx2 option.
14407 (ix86_valid_target_attribute_inner_p): Handle avx2 option.
14408 * config/i386/i386.h (TARGET_AVX2): New.
14409 * config/i386/i386.opt (mavx2): New.
14410 * doc/invoke.texi: Document -mavx2.
14411
14412 2011-08-18 Vladimir Makarov <vmakarov@redhat.com>
14413
14414 PR rtl-optimization/49890
14415 * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
14416 subclasses of class which is superset of a pressure class.
14417
14418 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
14419 Igor Zamyatin <igor.zamyatin@intel.com>
14420
14421 * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
14422 with HOST_WIDE_INT for isa_flag.
14423 (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
14424 isa variables.
14425
14426 * config/i386/i386.c (ix86_target_string): Replace int with
14427 HOST_WIDE_INT for isa. Use HOST_WIDE_INT_PRINT to print isa.
14428 (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
14429 (pta_flags): Removed.
14430 (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
14431 (pta): Use HOST_WIDE_INT on flags.
14432 (builtin_isa): Use HOST_WIDE_INT on isa.
14433 (ix86_add_new_builtins): Likewise.
14434 (def_builtin): Use HOST_WIDE_INT on mask.
14435 (def_builtin_const): Likewise.
14436 (builtin_description): Likewise.
14437
14438 * config/i386/i386.opt (ix86_isa_flags): Replace int with
14439 HOST_WIDE_INT.
14440 (ix86_isa_flags_explicit): Likewise.
14441 (x_ix86_isa_flags_explicit): Likewise.
14442
14443 2011-08-17 Vladimir Makarov <vmakarov@redhat.com>
14444
14445 PR rtl-optimization/50107
14446 * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
14447 (ira_hard_reg_in_set_p): New.
14448
14449 * ira-color.c (calculate_saved_nregs): New.
14450 (assign_hard_reg): Use it. Set up allocated_hard_reg_p for all
14451 hard regs.
14452 (allocno_reload_assign, fast_allocation): Use
14453 ira_hard_reg_set_intersection_p instead of
14454 ira_hard_reg_not_in_set_p.
14455
14456 * ira.c (setup_reg_renumber): Use
14457 ira_hard_reg_set_intersection_p instead of
14458 ira_hard_reg_not_in_set_p.
14459 (setup_allocno_assignment_flags, calculate_allocation_cost): Use
14460 ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
14461
14462 * ira-costs.c (ira_tune_allocno_costs): Use
14463 ira_hard_reg_set_intersection_p instead of
14464 ira_hard_reg_not_in_set_p.
14465
14466 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
14467 Igor Zamyatin <igor.zamyatin@intel.com>
14468
14469 * hwint.h (HOST_WIDE_INT_1): New.
14470
14471 * opt-functions.awk (switch_bit_fields): Initialize the
14472 host_wide_int field.
14473 (host_wide_int_var_name): New.
14474 (var_type_struct): Check and return HOST_WIDE_INT.
14475
14476 * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
14477
14478 * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
14479
14480 * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT. Properly
14481 check masks for HOST_WIDE_INT.
14482
14483 * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
14484 (option_enabled): Likewise.
14485 (get_option_state): Likewise.
14486
14487 * opts.h (cl_option): Add cl_host_wide_int. Change var_value
14488 to HOST_WIDE_INT.
14489
14490 2011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14491 Marc Glisse <marc.glisse@normalesup.org>
14492
14493 PR libstdc++-v3/1773
14494 * target.def (decl_mangling_context): New C++ hook.
14495 * doc/tm.texi: Regenerate.
14496 * config/sol2-cxx.c, config/sol2-stubs.c: New files.
14497 * config/sol2-protos.h: Group by source file.
14498 (solaris_cxx_decl_mangling_context): Declare.
14499 * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
14500 * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
14501 Use $<.
14502 * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
14503 Add sol2-stubs.o to extra_objs.
14504
14505 2011-08-18 Jakub Jelinek <jakub@redhat.com>
14506
14507 PR target/50009
14508 * stor-layout.c (update_alignment_for_field): Don't ICE on
14509 packed flexible array members if ms_bitfield_layout_p.
14510
14511 PR target/50092
14512 * config/i386/i386.c (assign_386_stack_local): Call validize_mem
14513 on the result before returning it.
14514
14515 PR debug/50017
14516 * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
14517 is a debug stmt, use location of the first non-debug stmt after it.
14518
14519 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
14520
14521 * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
14522 (arm_size_rtx_costs): Likewise.
14523
14524 2011-08-18 Richard Guenther <rguenther@suse.de>
14525
14526 * tree.h (tree_int_cst_msb): Remove.
14527 * tree.c (tree_int_cst_msb): Likewise.
14528 (tree_int_cst_sign_bit): Move from ...
14529 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
14530
14531 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
14532
14533 * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
14534 * doc/tm.texi: Regenerate.
14535 * target.def (rtx_costs): Add an opno parameter.
14536 * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
14537 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
14538 * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
14539 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
14540 * cse.c (COST_IN): Add an opno parameter.
14541 (notreg_cost): Likewise. Update call to rtx_cost.
14542 (COST, fold_rtx): Update accordingly.
14543 * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
14544 * expmed.c (emit_store_flag): Likewise.
14545 * optabs.c (avoid_expensive_constant): Add an opno parameter.
14546 Update call to rtx_cost.
14547 (expand_binop_directly, expand_binop): Likewise.
14548 (expand_twoval_binop, prepare_cmp_insn): Likewise.
14549 * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
14550 (set_src_cost, get_full_set_src_cost): Update accordingly.
14551 * rtlanal.c (rtx_cost): Add an opno parameter. Update call
14552 to target hook.
14553 (get_full_rtx_cost): Add an opno paramter. Update calls to rtx_cost.
14554 (default_adress_cost): Update calls to rtx_cost.
14555
14556 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
14557 (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
14558 (arm_rtx_costs): Add an opno parameter.
14559 * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
14560 adjust any recursive rtx-cost calls.
14561 * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
14562 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
14563 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
14564 * config/cris/cris.c (cris_rtx_costs): Likewise.
14565 * config/frv/frv.c (frv_rtx_costs): Likewise.
14566 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
14567 * config/i386/i386.c (ix86_rtx_costs): Likewise.
14568 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
14569 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
14570 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
14571 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
14572 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
14573 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
14574 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
14575 * config/mep/mep.c (mep_rtx_cost): Likewise.
14576 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
14577 * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
14578 (mips_zero_extend_cost): Add an opno parameter.
14579 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
14580 * config/mn10300/mn10300.c (mn10300_address_cost): Update call
14581 to rtx_cost.
14582 (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
14583 rtx-cost calls.
14584 * config/pa/pa.c (hppa_rtx_costs): Likewise.
14585 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
14586 * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
14587 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
14588 (rs6000_debug_rtx_costs): Likewise.
14589 * config/s390/s390.c (s390_rtx_costs): Likewise.
14590 * config/score/score-protos.h (score_rtx_costs): Likewise.
14591 * config/score/score.c (score_rtx_costs): Likewise.
14592 * config/sh/sh.c (andcosts): Update call to rtx_cost.
14593 (sh_rtx_costs): Add an opno parameter.
14594 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
14595 * config/spu/spu.c (spu_rtx_costs): Likewise.
14596 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
14597 * config/v850/v850.c (v850_rtx_costs): Likewise.
14598 * config/vax/vax.c (vax_rtx_costs): Likewise.
14599 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
14600
14601 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
14602
14603 * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
14604 * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
14605 rtx_cost.
14606 * calls.c (precompute_register_parameters): Likewise.
14607 * combine.c (expand_compound_operation, make_extraction): Likewise.
14608 (force_to_mode, distribute_and_simplify_rtx): Likewise.
14609 * dse.c (find_shift_sequence): Likewise.
14610 * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
14611 * expr.c (compress_float_constant): Likewise.
14612 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
14613 * gcse.c (want_to_gcse_p): Likewise.
14614 * ifcvt.c (noce_try_sign_mask): Likewise.
14615 * loop-doloop.c (doloop_optimize): Likewise.
14616 * loop-invariant.c (create_new_invariant): Likewise.
14617 * optabs.c (avoid_expensive_constant): Likewise.
14618 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
14619 (try_replace_in_use, reload_cse_move2add): Likewise.
14620 * reload1.c (calculate_elim_costs_all_insns): Likewise.
14621 (note_reg_elim_costly): Likewise.
14622 * rtlanal.c (insn_rtx_cost): Likewise.
14623 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
14624 * stmt.c (lshift_cheap_p): Likewise.
14625 * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
14626 * config/avr/avr.c (final_prescan_insn): Likewise.
14627 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
14628 * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
14629
14630 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
14631
14632 * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
14633 * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
14634 * cfgloopanal.c (seq_cost): Likewise.
14635 * loop-invariant.c (create_new_invariant): Likewise.
14636 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
14637 (reload_cse_move2add): Use get_full_set_rtx_cost.
14638
14639 2011-08-18 Richard Guenther <rguenther@suse.de>
14640
14641 * expr.c (get_inner_reference): Fix typo in last change.
14642
14643 2011-08-18 Paolo Carlini <paolo.carlini@oracle.com>
14644 Joseph Myers <joseph@codesourcery.com>
14645
14646 PR tree-optimization/49963
14647 * hwint.c (absu_hwi): Define.
14648 * hwint.h (absu_hwi): Declare.
14649 * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
14650 of abs_hwi.
14651 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
14652 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
14653
14654 2011-08-18 Richard Guenther <rguenther@suse.de>
14655
14656 * expr.c (get_inner_reference): Sign-extend the constant
14657 twos-complement offset before doing arbitrary precision
14658 arithmetic on it.
14659 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
14660 (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
14661 to get_constraint_for_ptr_offset.
14662
14663 2011-08-17 Kaz Kojima <kkojima@gcc.gnu.org>
14664
14665 PR target/50068
14666 * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
14667
14668 2011-08-17 Richard Guenther <rguenther@suse.de>
14669
14670 * tree.h (convert_to_ptrofftype_loc): New function.
14671 (convert_to_ptrofftype): Define.
14672 * builtins.c (expand_builtin_bzero): Use size_type_node.
14673 (fold_builtin_bzero): Likewise.
14674 (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
14675 * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
14676 * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
14677 (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
14678 * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
14679 * fold-const.c (build_range_check): Negate using the original type.
14680 (fold_unary_loc): Use fold_build_pointer_plus_loc.
14681 * gimple-fold.c (gimple_adjust_this_by_delta): Use
14682 convert_to_ptrofftype.
14683 * gimplify.c (gimplify_self_mod_expr): Likewise.
14684 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
14685 (graphite_create_new_loop_guard): Likewise.
14686 * graphite-sese-to-poly.c (my_long_long): Remove.
14687 (scop_ivs_can_be_represented): Adjust.
14688 * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
14689 * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
14690 * tree-loop-distribution.c (build_size_arg_loc): Use
14691 size_type_node.
14692 (generate_memset_zero): Simplify.
14693 * tree-mudflap.c: Use fold_convert, not convert.
14694 * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
14695 its own type.
14696 (determine_offset): Likewise for DR_STEP.
14697 (valid_initializer_p): Likewise.
14698 * tree-profile.c (prepare_instrumented_value): Convert the pointer
14699 to an integer type of same size.
14700 * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
14701 to sizetype without need.
14702 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
14703 * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
14704 * tree-ssa-loop-manip.c (create_iv): Likewise.
14705 (determine_exit_conditions): Adjust comment.
14706 * tree-ssa-pre.c (create_expression_by_pieces): Use
14707 convert_to_ptrofftype.
14708 * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
14709 * varasm.c (array_size_for_constructor): Compute using double_ints.
14710
14711 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14712
14713 * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
14714 when generating an integer result where possible. Short-cut
14715 comparison against 0 also for QImode.
14716
14717 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14718
14719 * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
14720 * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
14721 prototype.
14722 * config/spu/spu.c (spu_legitimize_reload_address): New function.
14723 (spu_legitimate_address_p): Do not check displacement if the base
14724 is an eliminable stack register.
14725
14726 2011-08-16 Anatoly Sokolov <aesok@post.ru>
14727
14728 * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
14729 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
14730 * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
14731 m32c_preferred_output_reload_class): Remove.
14732 * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
14733 Change rclass argument and return types to reg_class_t. Use
14734 reg_class_subset_p instead of class_sizes.
14735 (m32c_preferred_output_reload_class): Make static. Change rclass
14736 argument and return types to reg_class_t.
14737 (TARGET_PREFERRED_RELOAD_CLASS,
14738 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
14739
14740 2011-08-16 Kai Tietz <ktietz@redhat.com>
14741
14742 * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
14743
14744 2011-08-16 Richard GUenther <rguenther@suse.de>
14745
14746 PR tree-optimization/50082
14747 * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
14748 warnings here, instead of ...
14749 (ssa_forward_propagate_and_combine): ... here.
14750 (forward_propagate_into_comparison_1): Adjust.
14751 (forward_propagate_into_comparison): Likewise.
14752 (forward_propagate_into_gimple_cond): Likewise.
14753 (forward_propagate_into_cond): Likewise.
14754
14755 2011-08-16 Andreas Schwab <schwab@redhat.com>
14756
14757 * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
14758 instead of ggc_alloc_zone_vec_rtvec_def.
14759
14760 2011-08-16 Richard Guenther <rguenther@suse.de>
14761
14762 * tree.h (ptrofftype_p): New helper function.
14763 * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
14764 offset verification.
14765 (verify_gimple_assign_binary): Likewise.
14766 * tree.c (build2_stat): Likewise.
14767 * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
14768 (reset_evolution_in_loop): Likewise.
14769 * tree-chrec.h (build_polynomial_chrec): Likewise.
14770
14771 2011-08-16 Liang Wang <lwang1@marvell.com>
14772
14773 * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
14774 ggc_alloc_zone_vec_rtvec_def.
14775
14776 2011-08-16 Richard Guenther <rguenther@suse.de>
14777
14778 * tree-vrp.c (extract_range_from_multiplicative_op_1): New
14779 helper factored out from ...
14780 (extract_range_from_binary_expr_1): ... here. Re-structure
14781 to not glob handling too different tree codes.
14782
14783 2011-08-15 Richard Henderson <rth@redhat.com>
14784
14785 PR middle-end/50006
14786 * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
14787 setting out to include allocate_stack named pattern as well.
14788 * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
14789 * stmt.c (expand_stack_restore): Likewise.
14790
14791 2011-08-15 Richard Guenther <rguenther@suse.de>
14792
14793 PR middle-end/50082
14794 * fold-const.c (maybe_canonicalize_comparison_1): Properly
14795 convert the modified operand to the other operand type.
14796 (fold_comparison): Call maybe_canonicalize_comparison_1 with
14797 useless conversions stripped from comparison operands.
14798
14799 2011-08-15 Richard Guenther <rguenther@suse.de>
14800
14801 * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
14802 (extract_range_from_unary_expr_1): Restructure.
14803
14804 2011-08-15 Richard Guenther <rguenther@suse.de>
14805
14806 PR tree-optimization/50058
14807 * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
14808 copy matching.
14809
14810 2011-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14811
14812 PR target/50022
14813 * config/arm/arm.c (output_move_double): Add 2 parameters
14814 to count the number of insns emitted and whether to emit or not.
14815 Use the flag to decide when to emit and count number of instructions
14816 that will be emitted.
14817 Handle case where output_move_double might be called for calculating
14818 lengths with an invalid constant.
14819 (arm_count_output_move_double_insns): Define.
14820 * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
14821 (output_move_double): Adjust prototype.
14822 * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
14823 output_move_double.
14824 ("*movdi_vfp_cortexa8"): Likewise and add attribute
14825 for ce_count.
14826 * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
14827 ("*movdf_soft_insn"): Likewise.
14828 * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
14829 ("*cirrus_thumb2_movdi"): Likewise.
14830 ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
14831 ("*cirrus_movdf_hard_insn"): Likewise.
14832 * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
14833 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
14834 ("mov<mode>_internal VMMX"): Likewise.
14835 * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
14836
14837 2011-08-14 Uros Bizjak <ubizjak@gmail.com>
14838
14839 * config/i386/i386.c (ix86_expand_round_sse4): New function.
14840 * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
14841 * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
14842 for TARGET_ROUND.
14843
14844 (rint<mode>2): Simplify TARGET_ROUND check.
14845 (floor<mode>2): Ditto.
14846 (ceil<mode>2): Ditto.
14847 (btrunc<mode>2): Ditto.
14848
14849 2011-08-14 Anatoly Sokolov <aesok@post.ru>
14850
14851 * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
14852 as mmix_preferred_output_reload_class.
14853
14854 2011-08-14 Georg-Johann Lay <avr@gjlay.de>
14855
14856 * PR target/49903
14857 * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
14858 (branch_unspec): New insn.
14859 (branch): Beauty farm.
14860 * config/avr/avr.c (compare_condition): Use JUMP_P. Test SET_SRC
14861 to be IF_THEN_ELSE.
14862 (avr_compare_pattern, avr_reorg_remove_redundant_compare):
14863 New static functions.
14864 (avr_reorg): Use them. Use next_real_insn instead of NEXT_INSN.
14865 Use CONST_INT_P. Beauty.
14866
14867 2011-08-12 Richard Henderson <rth@redhat.com>
14868
14869 PR rtl-opt/49994
14870 * sched-init.h (struct deps_desc): Add sched_before_next_jump.
14871 * sched-deps.c (init_deps): Clear it.
14872 (deps_analyze_insn): Consume it.
14873 (sched_analyze_insn): Fill it.
14874
14875 2011-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14876
14877 PR target/48328
14878 * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
14879 for tbh instructions.
14880
14881 2011-08-12 Diego Novillo <dnovillo@google.com>
14882
14883 * data-streamer.h (streamer_write_zero): Rename from output_zero.
14884 (streamer_write_uhwi): Rename from lto_output_uleb128.
14885 (streamer_write_hwi): Rename from output_sleb128.
14886 (streamer_write_string): Rename from lto_output_string.
14887 (streamer_string_index): Rename from lto_string_index.
14888 (streamer_write_string_with_length): Rename from
14889 lto_output_string_with_length.
14890 (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
14891 (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
14892 (streamer_read_string): Rename from lto_input_string.
14893 (streamer_read_indexed_string): Rename from input_string_internal.
14894 (streamer_read_uhwi): Rename from lto_input_uleb128.
14895 (streamer_read_hwi): Rename from lto_input_sleb128.
14896 (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
14897 (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
14898 (streamer_write_enum): Rename from lto_output_enum.
14899 (streamer_read_enum): Rename from lto_input_enum.
14900 (streamer_write_record_start): Rename from output_record_start.
14901 (streamer_read_record_start): Rename from input_record_start.
14902 (streamer_write_bitpack): Rename from lto_output_bitpack.
14903 (streamer_read_bitpack): Rename from lto_input_bitpack.
14904 (streamer_write_char_stream): Rename from lto_output_1_stream.
14905 (streamer_read_uchar): Rename from lto_input_1_unsigned.
14906 * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
14907 (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
14908 (streamer_read_string_cst): Rename from input_string_cst.
14909 (streamer_read_chain): Rename from lto_input_chain.
14910 (streamer_alloc_tree): Rename from lto_materialize_tree.
14911 (streamer_read_tree_body): Rename from lto_input_tree_pointers.
14912 (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
14913 (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
14914 (streamer_read_integer_cst): Rename from lto_input_integer_cst.
14915 (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
14916 (streamer_write_chain): Rename from lto_output_chain.
14917 (streamer_write_tree_header): Rename from lto_output_tree_header.
14918 (streamer_pack_tree_bitfields): Rename from pack_value_fields.
14919 (streamer_write_tree_body): Rename from lto_output_tree_pointers.
14920 (streamer_write_integer_cst): Rename from lto_output_integer_cst.
14921 (streamer_write_builtin): Rename from lto_output_builtin_tree.
14922 (streamer_check_handled_ts_structures): Rename from
14923 check_handled_ts_structures.
14924 (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
14925 (streamer_tree_cache_insert_at): Rename from
14926 lto_streamer_cache_insert_at.
14927 (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
14928 (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
14929 (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
14930 (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
14931 (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
14932 * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
14933 (write_identifier): Rename from output_identifier.
14934 (write_ts_common_tree_pointers): Rename from
14935 lto_output_ts_common_tree_pointers.
14936 (write_ts_vector_tree_pointers): Rename from
14937 lto_output_ts_vector_tree_pointers.
14938 (write_ts_complex_tree_pointers): Rename from
14939 lto_output_ts_complex_tree_pointers.
14940 (write_ts_decl_minimal_tree_pointers): Rename from
14941 lto_output_ts_decl_minimal_tree_pointers.
14942 (write_ts_decl_common_tree_pointers): Rename from
14943 lto_output_ts_decl_common_tree_pointers.
14944 (write_ts_decl_non_common_tree_pointers): Rename from
14945 lto_output_ts_decl_non_common_tree_pointers.
14946 (write_ts_decl_with_vis_tree_pointers): Rename from
14947 lto_output_ts_decl_with_vis_tree_pointers.
14948 (write_ts_field_decl_tree_pointers): Rename from
14949 lto_output_ts_field_decl_tree_pointers.
14950 (write_ts_function_decl_tree_pointers): Rename from
14951 lto_output_ts_function_decl_tree_pointers.
14952 (write_ts_type_common_tree_pointers): Rename from
14953 lto_output_ts_type_common_tree_pointers.
14954 (write_ts_type_non_common_tree_pointers): Rename from
14955 lto_output_ts_type_non_common_tree_pointers.
14956 (write_ts_list_tree_pointers): Rename from
14957 lto_output_ts_list_tree_pointers.
14958 (write_ts_vec_tree_pointers): Rename from
14959 lto_output_ts_vec_tree_pointers.
14960 (write_ts_exp_tree_pointers): Rename from
14961 lto_output_ts_exp_tree_pointers.
14962 (write_ts_block_tree_pointers): Rename from
14963 lto_output_ts_block_tree_pointers.
14964 (write_ts_binfo_tree_pointers): Rename from
14965 lto_output_ts_binfo_tree_pointers.
14966 (write_ts_constructor_tree_pointers): Rename from
14967 lto_output_ts_constructor_tree_pointers.
14968 (write_ts_target_option): Rename from lto_output_ts_target_option.
14969 (write_ts_translation_unit_decl_tree_pointers): Rename from
14970 lto_output_ts_translation_unit_decl_tree_pointers.
14971 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
14972 Rename from lto_streamer_cache_add_to_node_array.
14973 (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
14974 (record_common_node): Rename from lto_record_common_node.
14975
14976 * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
14977 declarations.
14978 * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
14979 function.
14980 * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
14981 unused function.
14982 * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
14983 (ipa-reference.o): Likewise.
14984 * lto-section-out.c: Include data-streamer.h.
14985 * ipa-reference.c: Include data-streamer.h.
14986
14987 2011-08-12 Nick Clifton <nickc@redhat.com>
14988
14989 * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
14990 * doc/md.texi (cmpstrn): Note that the comparison stops if both
14991 fetched bytes are zero.
14992 (cmpstr): Likewise.
14993 (cmpmem): Note that the comparison does not stop if both of the
14994 fetched bytes are zero.
14995
14996 2011-08-12 Uros Bizjak <ubizjak@gmail.com>
14997
14998 * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
14999 BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
15000 * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
15001 BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
15002 to integer_type_node.
15003 * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
15004 BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
15005 * builtins.c (expand_builtin_in): Ditto.
15006 (mathfn_built_in_1): Ditto.
15007 (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
15008 BUILT_IN_IFLOOR.
15009 (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
15010 BUILT_IN_IROUND.
15011 (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
15012 BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
15013 BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
15014
15015 2011-08-12 Richard Guenther <rguenther@suse.de>
15016
15017 * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
15018
15019 2011-08-12 Romain Geissler <romain.geissler@gmail.com>
15020
15021 * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
15022
15023 2011-08-12 Richard Sandiford <rdsandiford@googlemail.com>
15024
15025 * config/arm/arm.c (get_label_padding): New function.
15026 (create_fix_barrier, arm_reorg): Use it.
15027
15028 2011-08-11 Uros Bizjak <ubizjak@gmail.com>
15029
15030 PR target/49781
15031 * config/i386/i386.md (*lea_5_zext): New.
15032 (*lea_6_zext): Ditto.
15033 * config/i386/predicates.md (const_32bit_mask): New predicate.
15034 (lea_address_operand): Reject AND.
15035 * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
15036 const_32bit_mask immediate.
15037 (ix86_print_operand_address): Handle AND.
15038 (memory_address_length): Ditto.
15039
15040 2011-08-11 Romain Geissler <romain.geissler@gmail.com>
15041 Brian Hackett <bhackett1024@gmail.com>
15042
15043 * plugin.def: Add event for finish_decl.
15044 * plugin.c (register_callback, invoke_plugin_callbacks): Same.
15045 * c-decl.c (finish_decl): Invoke callbacks on above event.
15046 * doc/plugins.texi: Document above event.
15047
15048 2011-08-11 Richard Guenther <rguenther@suse.de>
15049
15050 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
15051 lookups, make looking through aggregate copies stronger.
15052
15053 2011-08-11 Richard Henderson <rth@redhat.com>
15054
15055 PR bootstrap/50018
15056 * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
15057
15058 2011-08-11 Richard Guenther <rguenther@suse.de>
15059
15060 * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
15061 * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
15062 (vrp_visit_stmt): Likewise.
15063
15064 2011-08-11 Richard Guenther <rguenther@suse.de>
15065
15066 PR middle-end/50040
15067 * gimplify.c (gimplify_modify_expr_complex_part): Mark the
15068 load of the other piece with TREE_NO_WARNING.
15069 * tree-flow.h (warn_uninit): Adjust prototype.
15070 * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
15071 the base variable and the expression that is used separately.
15072 Properly query all TREE_NO_WARNING flags.
15073 (struct walk_data): Remove.
15074 (warn_uninitialized_var): Likewise.
15075 (warn_uninitialized_vars): Do not walk gimple pieces but simply
15076 look at all SSA uses of the statement. Handle unused memory
15077 separately.
15078 * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
15079
15080 2011-08-11 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
15081
15082 * config/rx/rx.md (movsicc): Allow register to register transfers.
15083 (*movsicc): Likewise.
15084 (*stcc): Restrict this pattern to EQ and NE compares.
15085 (*stcc_reg): New pattern. Works for any comparison but only for
15086 register transfers.
15087
15088 2011-08-11 Diego Novillo <dnovillo@google.com>
15089
15090 * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
15091 Call stream_write_tree instead of output_record_start.
15092 (lto_output_ts_binfo_tree_pointers): Likewise.
15093
15094 * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
15095 Convert it to a macro.
15096 (stream_read_tree): Likewise.
15097
15098 * lto-streamer.h (lto_stream_as_builtin_p): Move ...
15099 * tree-streamer.h (lto_stream_as_builtin_p): ... here.
15100
15101 * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
15102 and tree_read_bitfields.
15103 * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
15104 (lto_write_tree): Call it.
15105 * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
15106 * streamer-hooks.h (struct streamer_hooks): Remove fields
15107 name, is_streamable and alloc_tree. Update all users.
15108 * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
15109 (lto_materialize_tree): ... here.
15110 Handle CALL_EXPR codes.
15111 Remove call to lto_streamer_cache_append.
15112 * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
15113 * tree-streamer.h (tree_read_bitfields): Declare.
15114
15115 * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
15116 (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
15117 * tree-streamer.h (stream_read_tree): New. Replace all calls
15118 to lto_input_tree with it.
15119 (stream_write_tree): New. Replace all calls to lto_output_tree,
15120 lto_output_tree_ref and lto_output_tree_or_ref with it.
15121 * lto-streamer-in.c (lto_read_tree): Inline code from
15122 lto_streamer_read_tree.
15123 (lto_input_tree): Move from tree-streamer-in.c.
15124 * lto-streamer-out.c (lto_output_tree_ref): Make static.
15125 Remove handling of NULL values for EXPR.
15126 Do not handle EXPRs that are not indexable.
15127 (lto_write_tree): Move from tree-streamer-out.c.
15128 Inline lto_streamer_write_tree.
15129 (lto_output_tree): Move from tree-streamer-out.c.
15130 If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
15131 * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
15132 (lto_preload_common_nodes): Likewise.
15133 Remove assertions and adjustments for nodes
15134 main_identifier_node, ptrdiff_type_node and fileptr_type_node.
15135 (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
15136 lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
15137 * lto-streamer.h (lto_input_tree): Declare.
15138 (lto_output_tree_ref): Remove.
15139 * streamer-hooks.h (struct streamer_hooks): Remove fields
15140 preload_common_nodes, indexable_with_decls_p,
15141 pack_value_fields, unpack_value_fields and output_tree_header.
15142 Update all users.
15143 * tree-streamer-in.c (lto_materialize_tree): Make extern.
15144 (lto_input_tree_pointers): Likewise.
15145 (lto_read_tree): Move to lto-streamer-in.c.
15146 (lto_input_integer_cst): Make extern.
15147 (lto_get_pickled_tree): Likewise.
15148 (lto_get_builtin_tree): Likewise.
15149 (lto_input_tree): Move to lto-streamer-in.c.
15150 * tree-streamer-out.c (pack_value_fields): Make extern.
15151 (lto_output_tree_or_ref): Remove. Replace all callers with
15152 calls to stream_write_tree.
15153 (lto_output_builtin_tree): Make extern.
15154 (lto_streamer_write_tree): Inline into lto_write_tree.
15155 (lto_output_tree_pointers): Make extern.
15156 (lto_output_tree_header): Likewise.
15157 (lto_output_integer_cst): Likewise.
15158 (lto_write_tree): Move to lto-streamer-out.c.
15159 (lto_output_tree): Likewise.
15160 * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
15161 (preload_common_nodes): Likewise.
15162 (lto_streamer_cache_create): Call it.
15163 * tree-streamer.h: Include streamer-hooks.h.
15164 (stream_write_tree): New.
15165 (stream_read_tree): New.
15166 (lto_input_tree): Remove.
15167 (lto_materialize_tree): Declare.
15168 (lto_input_tree_pointers): Declare.
15169 (lto_get_pickled_tree): Declare.
15170 (lto_get_builtin_tree): Declare.
15171 (lto_input_integer_cst): Declare.
15172 (lto_output_tree_header): Declare.
15173 (pack_value_fields): Declare.
15174 (lto_output_tree_pointers): Declare.
15175 (lto_output_integer_cst): Declare.
15176 (lto_output_builtin_tree): Declare.
15177
15178 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
15179
15180 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
15181 only if producer writes to the register given by regno.
15182
15183 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
15184 Alexander Monakov <amonakov@ispras.ru>
15185
15186 * sched-deps.c (sched_get_condition_with_rev): Rename to ...
15187 (sched_get_condition_with_rev_uncached): ... this. Factor out
15188 condition caching logic into ...
15189 (sched_get_condition_with_rev): ... this. Reimplement. Do not
15190 attempt to use cache for instructions with zero luid.
15191 (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
15192 * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
15193
15194 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
15195
15196 * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
15197 get_seqno_for_a_jump. Update the caller.
15198 (get_seqno_by_succs): New. Use it ...
15199 (get_seqno_for_a_jump): ... here to find a seqno if looking at
15200 predecessors was not sufficient.
15201 (get_seqno_by_preds): Include head in iteration range, exclude insn.
15202
15203 2011-08-11 Dmitry Melnik <dm@ispras.ru>
15204
15205 * sel-sched-ir.c (invalidate_av_set): Remove the assert.
15206
15207 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
15208
15209 * sel-sched-ir.h (register_unavailable_p): Declare.
15210 * sel-sched-ir.c (register_unavailable_p): New. Use it...
15211 (set_unavailable_target_for_expr): ... here to properly test
15212 availability of a register.
15213 (speculate_expr): Ditto.
15214 * sel-sched.c (substitute_reg_in_expr): Ditto.
15215 (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
15216
15217 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
15218
15219 * sel-sched.c (verify_target_availability): Fix usage of
15220 hard_regno_nregs.
15221
15222 2011-08-11 Dmitry Melnik <dm@ispras.ru>
15223
15224 * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
15225 recognized by cannot_copy_insn_p hook and volatile instructions.
15226
15227 2011-08-11 Dmitry Melnik <dm@ispras.ru>
15228
15229 * sel-sched-ir.c (merge_expr_data): Take maximum spec.
15230
15231 2011-08-11 Richard Sandiford <richard.sandiford@linaro.org>
15232
15233 * doc/md.texi (define_bypass): Say that the instruction names can
15234 be filename-style globs.
15235 * Makefile.in (FNMATCH_H): Define.
15236 (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
15237 * genattrtab.c: Include fnmatch.h.
15238 (bypass_list): Change field name from "insn" to "pattern".
15239 (gen_bypass_1): Update accordingly.
15240 (process_bypasses): Use fnmatch to check for matches between
15241 insn reservations and define_bypasses.
15242 * genautomata.c: Include fnmatch.h.
15243 (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
15244 and out_pattern respectively.
15245 (gen_bypass, insert_bypass): Update accordingly.
15246 (for_each_matching_insn, process_bypass_2, process_bypass_1)
15247 (process_bypass): New functions.
15248 (process_decls): Use process_bypass. Update after field name changes.
15249
15250 2011-08-11 Georg-Johann Lay <avr@gjlay.de>
15251
15252 PR target/49687
15253 * config/avr/avr.md (smulqi3_highpart): New insn.
15254 (umulqi3_highpart): New insn.
15255 (*subqi3.ashiftrt7): New insn.
15256 (smulhi3_highpart): New expander.
15257 (umulhi3_highpart): Nex expander.
15258 (*smulhi3_highpart_call): New insn.
15259 (*umulhi3_highpart_call): New insn.
15260 (extend_u): New code attribute.
15261 (extend_prefix): Rename code attribute to extend_su.
15262 * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
15263 widening QI/HI multiply.
15264
15265 2011-08-11 Ira Rosen <ira.rosen@linaro.org>
15266
15267 PR tree-optimization/50039
15268 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
15269 that DEF_STMT has a stmt_vec_info.
15270
15271 2011-08-10 Richard Guenther <rguenther@suse.de>
15272
15273 * tree.h (can_trust_pointer_alignment): Remove.
15274 * builtins.c (can_trust_pointer_alignment): Remove.
15275
15276 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
15277
15278 * c-typeck.c (scalar_to_vector): New function. Try scalar to
15279 vector conversion.
15280 (stv_conv): New enum for scalar_to_vector return type.
15281 (build_binary_op): Adjust.
15282 * doc/extend.texi: Description of scalar to vector expansion.
15283
15284 2011-08-10 Richard Guenther <rguenther@suse.de>
15285
15286 * tree.h (get_pointer_alignment): Remove max-align argument.
15287 (get_object_alignment): Likewise.
15288 * builtins.c (get_object_alignment_1): Adjust.
15289 (get_object_alignment): Remove max-align argument.
15290 (get_pointer_alignment): Likewise.
15291 (expand_builtin_strlen): Adjust.
15292 (expand_builtin_memcpy): Likewise.
15293 (expand_builtin_mempcpy_args): Likewise.
15294 (expand_builtin_strncpy): Likewise.
15295 (expand_builtin_memset_args): Likewise.
15296 (expand_builtin_memcmp): Likewise.
15297 (expand_builtin_strcmp): Likewise.
15298 (expand_builtin_strncmp): Likewise.
15299 (get_builtin_sync_mem): Likewise.
15300 (fold_builtin_memset): Likewise.
15301 (fold_builtin_memory_op): Likewise.
15302 (expand_builtin_memory_chk): Likewise.
15303 * emit-rtl.c (get_mem_align_offset): Likewise.
15304 (set_mem_attributes_minus_bitpos): Likewise.
15305 * expr.c (expand_assignment): Likewise.
15306 (expand_expr_real_1): Likewise.
15307 * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
15308 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
15309 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
15310 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
15311 * value-prof.c (gimple_stringops_transform): Likewise.
15312
15313 2011-08-10 Paulo J. Matos <paulo.matos@csr.com>
15314
15315 * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
15316 * doc/tm.texi: Regenerate.
15317
15318 2011-08-10 Georg-Johann Lay <avr@gjlay.de>
15319
15320 PR target/29560
15321 * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
15322 (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
15323 (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
15324 Add peephole2 to map ashlhi3 to ashlqi3 if high part of
15325 shift target is unused.
15326
15327 2011-08-10 Richard Guenther <rguenther@suse.de>
15328
15329 PR tree-optimization/49937
15330 * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
15331 using get_object_alignment_1.
15332
15333 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
15334
15335 * config/i386/i386.c (ix86_emit_i387_round): New function.
15336 * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
15337 * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
15338 Use ix86_emit_i387_round to expand round function for i387 math.
15339 (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
15340 Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
15341
15342 2011-08-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15343
15344 * config/sync.c: Move to ../libgcc.
15345 * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
15346 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
15347 Remove.
15348
15349 2011-08-09 Anatoly Sokolov <aesok@post.ru>
15350
15351 * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
15352 * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
15353 * config/mmix/mmix.c (mmix_register_move_cost): Make static.
15354 Change 'from' and 'to' arguments type to reg_class_t.
15355 (TARGET_REGISTER_MOVE_COST): Define.
15356
15357 2011-08-09 Vladimir Makarov <vmakarov@redhat.com>
15358
15359 PR target/50026
15360 Revert:
15361 PR rtl-optimization/49990
15362 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
15363 ignore classes which can not change mode.
15364 (find_costs_and_classes): Ditto.
15365
15366 2011-08-09 Richard Guenther <rguenther@suse.de>
15367
15368 * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
15369 information for ranges with only negative values.
15370 (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
15371 BIT_AND_EXPR handling to handle ranges with negative values.
15372
15373 2011-08-09 Kirill Yukhin <kirill.yukhin@intel.com>
15374
15375 * config/i386/i386.c: Remove traling spaces.
15376 * config/i386/sse.md: Likewise.
15377 (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
15378 (*fma_fmsub_<mode>): Likewise.
15379 (*fma_fnmadd_<mode>): Likewise.
15380 (*fma_fnmsub_<mode>): Likewise.
15381
15382 2011-08-09 Nick Clifton <nickc@redhat.com>
15383
15384 * config/rx/rx.md: Disable extender peepholes at -O3.
15385
15386 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
15387
15388 PR target/49781
15389 * config/i386/i386.md (reload_noff_load): New.
15390 (reload_noff_store): Ditto.
15391 * config/i386/i386.c (ix86_secondary_reload): Use
15392 CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
15393 double-word moves from/to non-offsetable addresses instead of
15394 generating XMM temporary.
15395
15396 2011-08-09 Anatoly Sokolov <aesok@post.ru>
15397
15398 * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
15399
15400 2011-08-09 Ira Rosen <ira.rosen@linaro.org>
15401
15402 PR tree-optimization/50014
15403 * tree-vect-loop.c (vectorizable_reduction): Get def type before
15404 calling vect_get_vec_def_for_stmt_copy ().
15405
15406 2011-08-08 Vladimir Makarov <vmakarov@redhat.com>
15407
15408 PR rtl-optimization/49990
15409 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
15410 ignore classes which can not change mode.
15411 (find_costs_and_classes): Ditto.
15412
15413 2011-08-08 Richard Henderson <rth@redhat.com>
15414
15415 PR middle-end/49990
15416 * config/i386/i386.c (ix86_expand_prologue): Call
15417 for SEH target gen_prologue_use instead of gen_blockage
15418 at prologue's end.
15419
15420 2011-08-08 Martin Jambor <mjambor@suse.cz>
15421
15422 PR middle-end/49923
15423 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
15424 memory alignment.
15425
15426 2011-08-08 Diego Novillo <dnovillo@google.com>
15427
15428 * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
15429 (DATA_STREAMER_H): New.
15430 (GIMPLE_STREAMER_H): New.
15431 (TREE_STREAMER_H): New.
15432 (STREAMER_HOOKS_H): New.
15433 (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
15434 gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
15435 tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
15436 (data-streamer.o): New.
15437 (data-streamer-in.o): New.
15438 (data-streamer-out.o): New.
15439 (gimple-streamer-in.o): New.
15440 (gimple-streamer-out.o): New.
15441 (streamer-hooks.o): New.
15442 (tree-streamer.o): New.
15443 (tree-streamer-in.o): New.
15444 (tree-streamer-out.o): New.
15445 (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
15446 (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
15447 GIMPLE_STREAMER_H and TREE_STREAMER_H.
15448 (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
15449 GIMPLE_STREAMER_H and TREE_STREAMER_H.
15450 (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
15451 (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
15452 (ipa-inline-analysis.o): Likewise.
15453 (ipa-pure-const.o): Likewise.
15454 * data-streamer-in.c: New.
15455 * data-streamer-out.c: New.
15456 * data-streamer.c: New.
15457 * data-streamer.h: New.
15458 * gimple-streamer-in.c: New.
15459 * gimple-streamer-out.c: New.
15460 * gimple-streamer.h: New.
15461 * ipa-inline-analysis.c: Include data-streamer.h.
15462 * ipa-prop.c: Include data-streamer.h.
15463 * ipa-pure-const.c: Include data-streamer.h.
15464 * lto-cgraph.c: Include data-streamer.h.
15465 * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
15466 (lto_input_widest_uint_uleb128): Likewise.
15467 (lto_input_sleb128): Likewise.
15468 (bp_unpack_var_len_unsigned): Likewise.
15469 (bp_unpack_var_len_int): Likewise.
15470 * lto-section-out.c (lto_output_uleb128_stream): Move to
15471 data-streamer-out.c.
15472 (lto_output_widest_uint_uleb128_stream): Likewise.
15473 (lto_output_sleb128_stream): Likewise.
15474 (bp_pack_var_len_unsigned): Likewise.
15475 (bp_pack_var_len_int): Likewise.
15476 * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
15477 (struct string_slot): Remove. Update all users.
15478 (lto_tag_check_set): Make extern.
15479 (lto_tag_check_range): Move to lto-streamer.h.
15480 (lto_tag_check): Likewise.
15481 (hash_string_slot_node): Remove. Update all users.
15482 (eq_string_slot_node): Remove. Update all users.
15483 (string_for_index): Move to data-streamer-in.c
15484 (input_string_internal): Likewise.
15485 (input_string_cst): Move to tree-streamer-in.c.
15486 (input_identifier): Likewise.
15487 (lto_input_string): Move to data-streamer-in.c
15488 (input_record_start): Move to data-streamer.h
15489 (canon_file_name): Use new definition of struct string_slot
15490 from data-streamer.h. Set S_SLOT.LEN.
15491 (lto_input_location): Make extern.
15492 (lto_input_chain): Move to tree-streamer-in.c.
15493 (lto_init_eh): Make extern.
15494 (input_phi): Move to gimple-streamer-in.c.
15495 (input_gimple_stmt): Likewise.
15496 (input_bb): Likewise.
15497 (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
15498 (unpack_ts_real_cst_value_fields): Likewise.
15499 (unpack_ts_fixed_cst_value_fields): Likewise.
15500 (unpack_ts_decl_common_value_fields): Likewise.
15501 (unpack_ts_decl_wrtl_value_fields): Likewise.
15502 (unpack_ts_decl_with_vis_value_fields): Likewise.
15503 (unpack_ts_function_decl_value_fields): Likewise.
15504 (unpack_ts_type_common_value_fields): Likewise.
15505 (unpack_ts_block_value_fields): Likewise.
15506 (unpack_ts_translation_unit_decl_value_fields): Likewise.
15507 (unpack_value_fields): Likewise.
15508 (lto_materialize_tree): Likewise.
15509 (lto_input_ts_common_tree_pointers): Likewise.
15510 (lto_input_ts_vector_tree_pointers): Likewise.
15511 (lto_input_ts_complex_tree_pointers): Likewise.
15512 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
15513 (lto_input_ts_decl_common_tree_pointers): Likewise.
15514 (lto_input_ts_decl_non_common_tree_pointers): Likewise.
15515 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
15516 (lto_input_ts_field_decl_tree_pointers): Likewise.
15517 (lto_input_ts_function_decl_tree_pointers): Likewise.
15518 (lto_input_ts_type_common_tree_pointers): Likewise.
15519 (lto_input_ts_type_non_common_tree_pointers): Likewise.
15520 (lto_input_ts_list_tree_pointers): Likewise.
15521 (lto_input_ts_vec_tree_pointers): Likewise.
15522 (lto_input_ts_exp_tree_pointers): Likewise.
15523 (lto_input_ts_block_tree_pointers): Likewise.
15524 (lto_input_ts_binfo_tree_pointers): Likewise.
15525 (lto_input_ts_constructor_tree_pointers): Likewise.
15526 (lto_input_ts_target_option): Likewise.
15527 (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
15528 (lto_input_tree_pointers): Likewise.
15529 (lto_get_pickled_tree): Likewise.
15530 (lto_get_builtin_tree): Likewise.
15531 (lto_read_tree): Likewise.
15532 (lto_input_integer_cst): Likewise.
15533 (lto_input_tree): Likewise.
15534 * lto-streamer-out.c: Include data-streamer.h,
15535 gimple-streamer.h and streamer-hooks.h.
15536 (struct string_slot): Move to data-streamer.h.
15537 (hash_string_slot_node): Likewise.
15538 (eq_string_slot_node): Likewise.
15539 (lto_string_index): Move to data-streamer-out.c.
15540 (lto_output_string_with_length): Likewise.
15541 (lto_output_string): Likewise.
15542 (output_string_cst): Move to tree-streamer-out.c.
15543 (output_identifier): Likewise.
15544 (output_zero): Move to data-streamer-out.c
15545 (output_uleb128): Likewise.
15546 (output_sleb128): Likewise.
15547 (output_record_start): Move to data-streamer.h
15548 (pack_ts_base_value_fields): Move to tree-streamer-out.c.
15549 (pack_ts_real_cst_value_fields): Likewise.
15550 (pack_ts_fixed_cst_value_fields): Likewise.
15551 (pack_ts_decl_common_value_fields): Likewise.
15552 (pack_ts_decl_wrtl_value_fields): Likewise.
15553 (pack_ts_decl_with_vis_value_fields): Likewise.
15554 (pack_ts_function_decl_value_fields): Likewise.
15555 (pack_ts_type_common_value_fields): Likewise.
15556 (pack_ts_block_value_fields): Likewise.
15557 (pack_ts_translation_unit_decl_value_fields): Likewise.
15558 (pack_value_fields): Likewise.
15559 (lto_output_chain): Likewise.
15560 (lto_output_ts_common_tree_pointers): Likewise.
15561 (lto_output_ts_vector_tree_pointers): Likewise.
15562 (lto_output_ts_complex_tree_pointers): Likewise.
15563 (lto_output_ts_decl_minimal_tree_pointers): Likewise.
15564 (lto_output_ts_decl_common_tree_pointers): Likewise.
15565 (lto_output_ts_decl_non_common_tree_pointers): Likewise.
15566 (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
15567 (lto_output_ts_field_decl_tree_pointers): Likewise.
15568 (lto_output_ts_function_decl_tree_pointers): Likewise.
15569 (lto_output_ts_type_common_tree_pointers): Likewise.
15570 (lto_output_ts_type_non_common_tree_pointers): Likewise.
15571 (lto_output_ts_list_tree_pointers): Likewise.
15572 (lto_output_ts_vec_tree_pointers): Likewise.
15573 (lto_output_ts_exp_tree_pointers): Likewise.
15574 (lto_output_ts_block_tree_pointers): Likewise.
15575 (lto_output_ts_binfo_tree_pointers): Likewise.
15576 (lto_output_ts_constructor_tree_pointers): Likewise.
15577 (lto_output_ts_target_option): Likewise.
15578 (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
15579 (lto_output_tree_pointers): Likewise.
15580 (lto_output_tree_header): Likewise.
15581 (lto_output_builtin_tree): Likewise.
15582 (lto_write_tree): Likewise.
15583 (lto_output_integer_cst): Likewise.
15584 (lto_output_tree): Likewise.
15585 (output_phi): Move to gimple-streamer-out.c.
15586 (output_gimple_stmt): Likewise.
15587 (output_bb): Likewise.
15588 * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
15589 (streamer_hooks): Move to streamer-hooks.c.
15590 (check_handled_ts_structures): Move to tree-streamer.c
15591 (lto_streamer_cache_add_to_node_array): Likewise.
15592 (lto_streamer_cache_insert_1): Likewise.
15593 (lto_streamer_cache_insert): Likewise.
15594 (lto_streamer_cache_insert_at): Likewise.
15595 (lto_streamer_cache_append): Likewise.
15596 (lto_streamer_cache_lookup): Likewise.
15597 (lto_streamer_cache_get): Likewise.
15598 (lto_record_common_node): Likewise.
15599 (lto_preload_common_nodes): Likewise.
15600 (lto_streamer_cache_create): Likewise.
15601 (lto_streamer_cache_delete): Likewise.
15602 (streamer_hooks_init): Move to streamer-hooks.c.
15603 * lto-streamer.h: Include diagnostic.h
15604 (struct output_block, struct lto_input_block,
15605 struct data_in, struct bitpack_d): Remove forward declarations.
15606 (struct bitpack_d): Move to data-streamer.h.
15607 (struct lto_streamer_cache_d): Move to tree-streamer.h.
15608 (struct streamer_hooks): Move to streamer-hooks.h.
15609 (bp_pack_var_len_unsigned): Move to data-streamer.h.
15610 (bp_pack_var_len_int): Likewise.
15611 (bp_unpack_var_len_unsigned): Likewise.
15612 (bp_unpack_var_len_int): Likewise.
15613 (lto_input_location): Declare.
15614 (lto_tag_check_set): Declare.
15615 (lto_init_eh): Declare.
15616 (lto_output_tree_ref): Declare.
15617 (lto_output_location): Declare.
15618 (bitpack_create): Move to data-streamer.h.
15619 (bp_pack_value): Likewise.
15620 (lto_output_bitpack): Likewise.
15621 (lto_input_bitpack): Likewise.
15622 (bp_unpack_value): Likewise.
15623 (lto_output_1_stream): Likewise.
15624 (lto_input_1_unsigned): Likewise.
15625 (lto_output_int_in_range): Likewise.
15626 (lto_input_int_in_range): Likewise.
15627 (bp_pack_int_in_range): Likewise.
15628 (bp_unpack_int_in_range): Likewise.
15629 (lto_output_enum): Likewise.
15630 (lto_input_enum): Likewise.
15631 (bp_pack_enum): Likewise.
15632 (bp_unpack_enum): Likewise.
15633 * streamer-hooks.c: New.
15634 * streamer-hooks.h: New.
15635 * tree-streamer-in.c: New.
15636 * tree-streamer-out.c: New.
15637 * tree-streamer.c: New.
15638 * tree-streamer.h: New.
15639
15640 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15641
15642 * gthr-posix95.h: Remove.
15643 * gthr.h [_PTHREADS95]: Remove.
15644 * configure.ac (enable_threads): Remove posix95.
15645 * configure: Regenerate.
15646 * doc/install.texi (Configuration, --enable-threads): Remove posix95.
15647
15648 2011-08-08 Uros Bizjak <ubizjak@gmail.com>
15649
15650 PR target/49781
15651 * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
15652 SImode addresses.
15653 (ix86_print_operand_address): Handle zero-extended addresses.
15654 (memory_address_length): Add length of addr32 prefix for
15655 zero-extended addresses.
15656 (ix86_secondary_reload): Handle moves to/from double-word general
15657 registers from/to zero-extended addresses.
15658 * config/i386/predicates.md (lea_address_operand): Reject
15659 zero-extended operands.
15660
15661 2011-08-08 H.J. Lu <hongjiu.lu@intel.com>
15662
15663 PR other/48007
15664 * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
15665
15666 * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
15667 (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
15668
15669 * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
15670 (_Unwind_Context_Reg_Val): Likewise.
15671 (_Unwind_Get_Unwind_Word): Likewise.
15672 (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
15673 (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
15674 (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
15675 for EXTENDED_CONTEXT_BIT.
15676 (__frame_state_for): Likewise.
15677 (uw_init_context_1): Likewise.
15678 (_Unwind_GetGR): Updated.
15679 (_Unwind_SetGR): Likewise.
15680 (_Unwind_GetGRPtr): Likewise.
15681 (_Unwind_SetGRPtr): Likewise.
15682 (_Unwind_SetGRValue): Likewise.
15683 (_Unwind_GRByValue): Likewise.
15684 (uw_install_context_1): Likewise.
15685
15686 * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
15687 ASSUME_EXTENDED_UNWIND_CONTEXT.
15688 * doc/tm.texi: Regenerated.
15689
15690 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15691
15692 * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
15693
15694 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15695
15696 * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
15697 Linux/GNU-specific.
15698 (DEC Alpha Options, -mtune): Likewise.
15699 (MIPS Options, -march): native is supported on IRIX.
15700
15701 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15702
15703 * config/sparc/driver-sparc.c: New file.
15704 * config/sparc/x-sparc: New file.
15705 * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
15706 * config/sparc/sparc.opt (native): New value for enum processor_type.
15707 * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
15708 * config/sparc/sparc.c (sparc_option_override): Abort if
15709 PROCESSOR_NATIVE gets here.
15710 * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
15711 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
15712 DRIVER_SELF_SPECS): Define.
15713 * doc/invoke.texi (SPARC Options, -mcpu): Document native.
15714 (SPARC Options, -mtune): Likewise.
15715 * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
15716 Substitute result.
15717 * configure: Regenerate.
15718 * Makefile.in (EXTRA_GCC_LIBS): Set.
15719 (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
15720 (cpp$(exeext)): Likewise.
15721
15722 2011-08-08 Richard Guenther <rguenther@suse.de>
15723
15724 * tree-vrp.c (extract_range_from_unary_expr_1): New function,
15725 split out from ...
15726 (extract_range_from_unary_expr): ... here. Handle BIT_NOT_EXPR
15727 by composition.
15728
15729 2011-08-08 Mikael Pettersson <mikpe@it.uu.se>
15730
15731 PR tree-optimization/50005
15732 * ipa-inline-analysis (remap_predicate): Add cast to
15733 silence signed/unsigned comparison warning.
15734
15735 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
15736
15737 * modulo-sched.c (get_sched_window): Use a table for the debug output.
15738 Print the current ii.
15739 (sms_schedule_by_order): Reduce whitespace in dump line.
15740
15741 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
15742
15743 * modulo-sched.c (get_sched_window): Use just one loop for predecessors
15744 and one loop for successors. Fix upper bound of memory range.
15745
15746 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
15747
15748 PR target/50001
15749 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
15750 (TARGET_INSTANTIATE_DECLS): New define.
15751
15752 2011-08-06 Paolo Bonzini <bonzini@gnu.org>
15753 Mikael Morin <mikael.morin@sfr.fr>
15754
15755 * Makefile.in (INCLUDES_FOR_TARGET): New.
15756 (LIBGCC2_CFLAGS): Use it.
15757 (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
15758
15759 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
15760
15761 * config/i386/i386.c (ix86_compute_frame_layout): Simplify
15762 frame->save_regs_using_mov calculation.
15763
15764 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
15765
15766 * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
15767 * config/i386/sse.md (castmode): New mode attribute.
15768 (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
15769 avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
15770
15771 2011-08-05 Jan Hubicka <jh@suse.cz>
15772
15773 PR middle-end/49494
15774 * ipa-inline-analysis.c (remap_predicate): Add bounds check.
15775
15776 2011-08-05 Jan Hubicka <jh@suse.cz>
15777
15778 PR middle-end/49500
15779 * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
15780 handle aliases.
15781 (create_emultls_var):New function.
15782 (ipa_lower_emutls): Handle aliases correctly.
15783
15784 2011-08-05 Jan Hubicka <jh@suse.cz>
15785
15786 PR middle-end/49735
15787 * ipa-inline.c (recursive_inlining): Look through aliases.
15788
15789 2011-08-05 Jason Merrill <jason@redhat.com>
15790
15791 * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
15792 declarations to beginning of function.
15793
15794 2011-08-05 Bernd Schmidt <bernds@codesourcery.com>
15795
15796 PR rtl-optimization/49900
15797 * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
15798 ensure basic blocks stay in the same order.
15799
15800 2011-08-05 Aldy Hernandez <aldyh@redhat.com>
15801
15802 * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
15803 store_bit_field.
15804 (s390_expand_atomic): Same.
15805
15806 2011-08-05 Richard Henderson <rth@redhat.com>
15807
15808 PR rtl-opt/49977
15809 * dwarf2cfi.c (scan_insn_after): Split out of ...
15810 (scan_trace): ... here. Correctly place notes wrt sequences.
15811
15812 2011-08-05 Kaz Kojima <kkojima@gcc.gnu.org>
15813 Richard Henderson <rth@redhat.com>
15814
15815 PR rtl-opt/49982
15816 * expr.c (fixup_args_size_notes): Look through no-op moves.
15817
15818 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
15819
15820 * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
15821 of "m" for operand 0. Add type and mode attribute.
15822 (*pushxf_nointeger"): Use "<" constraint for operand 0.
15823 (*pushdf_rex64): New pattern, split out of *pushdf. Use "m"
15824 constraint instead of "o" for opreand 1.
15825 (*pushdf): Disable for TARGET_64BIT. Correct mode attribute.
15826 (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
15827 operand 0, alternative 4.
15828 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
15829
15830 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
15831
15832 * config/i386/predicates.md (lea_address_operand): Rename from
15833 no_seg_address_operand.
15834 * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
15835 (*lea_1_zext): Ditto.
15836 (*lea_2): Ditto.
15837 (*lea_2_zext): Ditto.
15838
15839 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
15840
15841 * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
15842 parts.base and parts.index.
15843 * config/i386/predicates.md (aligned_operand): Ditto.
15844 (cmpxchg8b_pic_memory_operand): Ditto.
15845
15846 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15847
15848 * config/soft-fp: Move to ../libgcc.
15849 * Makefile.in (SFP_MACHINE): Remove.
15850 (libgcc-support): Remove $(SFP_MACHINE) dependency.
15851 * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
15852 * config/arm/t-arm-softfp: Move to
15853 ../libgcc/config/arm/t-softfp.
15854 * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
15855 * config/c6x/t-c6x-softfp: Remove.
15856 * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
15857 * config/i386/t-fprules-softfp: Move to
15858 ../libgcc/config/t-softfp-tf.
15859 * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
15860 * config/ia64/t-fprules-softfp: Remove.
15861 * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
15862 * config/lm32/t-fprules-softfp: Remove.
15863 * config/moxie/sfp-machine.h: Remove.
15864 * config/moxie/t-moxie-softfp: Remove.
15865 * config/rs6000/darwin-ldouble-format: Move to
15866 ../libgcc/config/rs6000/ibm-ldouble-format.
15867 * config/rs6000/darwin-ldouble.c: Move to
15868 ../libgcc/config/rs6000/ibm-ldouble.c
15869 * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
15870 * config/rs6000/libgcc-ppc64.ver: Likewise.
15871 * config/rs6000/sfp-machine.h: Likewise.
15872 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
15873 $(srcdir)/config/rs6000/libgcc-ppc64.ver.
15874 (LIB2FUNCS_EXTRA): Remove.
15875 (TARGET_LIBGCC2_CFLAGS): Remove.
15876 * config/rs6000/t-aix52: Likewise
15877 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
15878 $(srcdir)/config/rs6000/darwin-ldouble.c.
15879 (SHLIB_MAPFILES): Remove.
15880 * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
15881 $(srcdir)/config/rs6000/darwin-ldouble.c.
15882 * config/rs6000/t-fprules-softfp: Move to
15883 ../libgcc/config/t-softfp-sfdf.
15884 * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
15885 * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
15886 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
15887 $(srcdir)/config/rs6000/darwin-ldouble.c.
15888 * config/score/sfp-machine.h: Move to ../libgcc/config/score.
15889 * config/score/t-score-softfp: Remove.
15890 * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
15891 soft-fp/t-softfp from tmake_file.
15892 (arm*-*-uclinux*): Likewise.
15893 (arm*-*-ecos-elf): Likewise.
15894 (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
15895 (arm*-*-rtems*): Likewise.
15896 (arm*-*-elf): Likewise.
15897 (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
15898 tmake_file.
15899 (moxie-*-uclinux*): Likewise.
15900 (moxie-*-rtems*): Likewise.
15901 (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
15902 tmake_file.
15903 (lm32-*-rtems*): Likewise.
15904 (lm32-*-uclinux*): Likewise.
15905 (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
15906 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
15907 (powerpc-*-linux*, powerpc64-*-linux*): Remove
15908 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
15909 (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
15910 tmake_file.
15911 (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
15912 tmake_file.
15913 (tic6x-*-uclinux): Likewise.
15914 (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
15915 soft-fp/t-softfp from tmake_file.
15916 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
15917 (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
15918 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
15919 (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
15920 (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
15921
15922 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15923
15924 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
15925 (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
15926 (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
15927 TPBIT, TPBIT_FUNCS.
15928 * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
15929 * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
15930 Remove.
15931 * config/arm/t-vxworks: Likewise.
15932 * config/arm/t-wince-pe: Likewise.
15933 * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
15934 * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
15935 * config/bfin/t-bfin-elf: Likewise.
15936 * config/bfin/t-bfin-linux: Likewise.
15937 * config/bfin/t-bfin-uclinux: Likewise.
15938 * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
15939 Remove.
15940 * config/fr30/t-fr30: Likewise.
15941 * config/frv/t-frv: Likewise.
15942 * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
15943 * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
15944 * config/m32c/t-m32c: Likewise.
15945 * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
15946 * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
15947 * config/mcore/t-mcore: Likewise.
15948 * config/mep/t-mep: Likewise.
15949 * config/microblaze/t-microblaze: Likewise.
15950 * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
15951 * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
15952 * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
15953 * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
15954 * config/mn10300/t-linux: Remove.
15955 * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
15956 * config/pdp11/t-pdp11: Likewise.
15957 * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
15958 * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
15959 * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
15960 (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
15961 * config/rs6000/t-aix52: Likewise.
15962 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
15963 $(srcdir)/config/rs6000/ppc64-fp.c.
15964 * config/rs6000/t-fprules-fpbit: Remove.
15965 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
15966 * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
15967 * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
15968 * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
15969 * config/sparc/t-elf: Likewise.
15970 * config/sparc/t-leon: Likewise.
15971 * config/sparc/t-leon3: Likewise.
15972 * config/spu/t-spu-elf: Likewise.
15973 (DPBIT_FUNCS): Remove.
15974 * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
15975 * config/v850/t-v850: Likewise.
15976 * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
15977 (avr-*-*): Likewise.
15978 (h8300-*-rtems*): Set libgcc_tm_file.
15979 (h8300-*-elf*): Likewise.
15980 (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
15981 tmake_file.
15982 (powerpc-*-eabisim*): Likewise.
15983 (powerpc-*-elf*): Likewise.
15984 (powerpc-*-eabialtivec*): Likewise.
15985 (powerpc-xilinx-eabi*): Likewise.
15986 (powerpc-*-eabi*): Likewise.
15987 (powerpc-*-rtems*): Likewise.
15988 (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
15989 (powerpcle-*-elf*): Likewise.
15990 (powerpcle-*-eabisim*): Likewise.
15991 (powerpcle-*-eabi*): Likewise.
15992 (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
15993 (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
15994 * doc/fragments.texi (Target Fragment, Floating Point Emulation):
15995 Remove.
15996
15997 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15998
15999 * Makefile.in (UNWIND_H): Remove.
16000 (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
16001 ../libgcc/Makefile.in.
16002 (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
16003 (LIBUNWINDDEP): Remove.
16004 (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
16005 (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
16006 LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
16007 (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
16008 Don't copy $(UNWIND_H).
16009 * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
16010 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
16011 * aclocal.m4: Regenerate.
16012 * configure: Regenerate.
16013 * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
16014 unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
16015 unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
16016 unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
16017 * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
16018 * config/arm/libunwind.S, config/arm/pr-support.c,
16019 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
16020 ../libgcc/config/arm.
16021 * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
16022 * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
16023 * config/frv/t-frv ($(T)frvbegin$(objext)): Use
16024 $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
16025 ($(T)frvend$(objext)): Likewise.
16026 * config/ia64/t-glibc (LIB2ADDEH): Remove.
16027 * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
16028 * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
16029 config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
16030 ../libgcc/config/ia64.
16031 * config/ia64/t-hpux (LIB2ADDEH): Remove.
16032 * config/ia64/t-ia64 (LIB2ADDEH): Remove.
16033 * config/ia64/t-vms (LIB2ADDEH): Remove.
16034 * config/ia64/vms.h (UNW_IVMS_MODE,
16035 MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
16036 * config/picochip/t-picochip (LIB2ADDEH): Remove.
16037 * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
16038 * config/rs6000/t-darwin (LIB2ADDEH): Remove.
16039 * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
16040 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
16041 $(srcdir)/../libgcc to refer to unwinder sources.
16042 * config/spu/t-spu-elf (LIB2ADDEH): Remove.
16043 * config/t-darwin (LIB2ADDEH): Remove.
16044 * config/t-freebsd (LIB2ADDEH): Remove.
16045 * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
16046 * config/t-libunwind-elf: Move to ../libgcc/config.
16047 * config/t-linux (LIB2ADDEH): Remove.
16048 * config/t-sol2 (LIB2ADDEH): Remove.
16049 * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
16050 * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
16051
16052 2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
16053
16054 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
16055
16056 * doc/invoke.texi: Document core-avx-i.
16057
16058 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16059
16060 * tsystem.h (CONST_CAST2, CONST_CAST): Define.
16061
16062 2011-08-05 Ira Rosen <ira.rosen@linaro.org>
16063
16064 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
16065 result of multiple results reduction when extracting the final
16066 value using scalar code.
16067
16068 2011-08-05 Richard Guenther <rguenther@suse.de>
16069
16070 PR tree-optimization/49984
16071 * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
16072
16073 2011-08-05 Richard Guenther <rguenther@suse.de>
16074
16075 * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
16076 return true for constant integer ranges.
16077 (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
16078 BIT_IOR_EXPR handling.
16079
16080 2011-08-04 Kai Tietz <ktietz@redhat.com>
16081
16082 * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
16083 ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
16084
16085 2011-08-04 Ira Rosen <ira.rosen@linaro.org>
16086
16087 * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
16088 pattern def statement, and its access macro.
16089 (NUM_PATTERNS): Set to 5.
16090 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
16091 pattern def statement.
16092 (vect_transform_loop): Likewise.
16093 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
16094 function vect_recog_over_widening_pattern ().
16095 (vect_operation_fits_smaller_type): New function.
16096 (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
16097 Likewise.
16098 (vect_pattern_recog_1): Move the code that marks pattern
16099 statements to vect_mark_pattern_stmts (), and call it. Update
16100 documentation.
16101 * tree-vect-stmts.c (vect_supportable_shift): New function.
16102 (vect_analyze_stmt): Handle pattern def statement.
16103 (new_stmt_vec_info): Initialize pattern def statement.
16104
16105 2011-08-04 Richard Henderson <rth@redhat.com>
16106
16107 PR target/49964
16108 * config/i386/i386.c (ix86_expand_call): Don't create nested
16109 PARALLELs for TARGET_VZEROUPPER.
16110 (ix86_split_call_vzeroupper): Fix extraction of the original call.
16111 * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
16112 recognize nested PARALLELs.
16113 (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
16114 *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
16115 *sibcall_value_pop_vzeroupper): Likewise.
16116
16117 2011-08-04 Richard Henderson <rth@redhat.com>
16118
16119 PR middle-end/49968
16120 * calls.c (expand_call): Use fixup_args_size_notes for
16121 emit_stack_restore.
16122 * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
16123 in non-standard modes.
16124
16125 2011-08-04 Jakub Jelinek <jakub@redhat.com>
16126
16127 * gcc.c (self_spec): New variable.
16128 (static_specs): Add self_spec.
16129 (main): Call do_self_spec on "self_spec" specs after reading
16130 user specs files. Move compare_debug handling right after that.
16131
16132 2011-08-04 Richard Guenther <rguenther@suse.de>
16133
16134 * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
16135 (value_range_nonnegative_p): New function.
16136 (ssa_name_nonnegative_p): Use it.
16137 (value_range_constant_singleton): New function.
16138 (op_with_constant_singleton_value_range): Use it.
16139 (extract_range_from_binary_expr_1): New function, split out from ...
16140 (extract_range_from_binary_expr): ... this. Remove fallback
16141 constant folding done here.
16142
16143 2011-08-04 Richard Guenther <rguenther@suse.de>
16144
16145 PR tree-optimization/49806
16146 * tree-vrp.c (op_with_boolean_value_range_p): New function.
16147 (simplify_truth_ops_using_ranges): Simplify. Allow inserting
16148 a new statement for a final conversion to bool.
16149
16150 2011-08-04 Romain Geissler <romain.geissler@gmail.com>
16151
16152 * gengtype-state.c: Include "bconfig.h" if
16153 GENERATOR_FILE is defined, "config.h" otherwise.
16154 * gengtype.c: Likewise.
16155 * gengtype-lex.l: Likewise.
16156 * gengtype-parse.c: Likewise.
16157 * Makefile.in (gengtype-lex.o-warn): New variable.
16158 (plugin_resourcesdir): Likewise.
16159 (plugin_bindir): Likewise.
16160 (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
16161 (MOSTLYCLEANFILES): Add gengtype$(exeext).
16162 (native): Depend on gengtype$(exeext) is $enable_plugin
16163 is set to "yes".
16164 (gtype.state): Depend on s-gtype. Use temporary file.
16165 (gengtype-lex.o): New rule.
16166 (gengtype-parse.o): Likewise.
16167 (gengtype-state.o): Likewise.
16168 (gengtype$(exeext)): Likewise.
16169 (install-gengtype): Likewise.
16170 (gengtype.o): Likewise.
16171 (build/gengtype.o): Depend on version.h.
16172 (build/gengtype-state): Depend on double-int.h, version.h,
16173 $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
16174 (install-plugin): Depend on install-gengtype.
16175
16176 2011-08-04 Jakub Jelinek <jakub@redhat.com>
16177
16178 PR middle-end/49905
16179 * tree.h (init_attributes): New prototype.
16180 * attribs.c (init_attributes): No longer static.
16181
16182 2011-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16183
16184 * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
16185 maybe_suffix.
16186
16187 2011-08-03 David Li <davidxl@google.com>
16188
16189 * tree-optimize.c (execute_fixup_cfg): Fix up entry
16190 outgoing edge counts after inlining.
16191
16192 2011-08-03 David Li <davidxl@google.com>
16193
16194 * profile.c (compute_branch_probabilities): Compute
16195 function frequency after profile annotation.
16196
16197 2011-08-04 Alan Modra <amodra@gmail.com>
16198
16199 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
16200 use_backchain_to_restore_sp initialisation.
16201 (rs6000_legitimate_offset_address_p): Simplify offset test.
16202
16203 2011-08-03 Richard Henderson <rth@redhat.com>
16204
16205 * config/spu/spu.md: Use define_c_enum instead of define_constants.
16206 (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
16207 (UNSPECV_NOP): New.
16208
16209 2011-08-03 Richard Henderson <rth@redhat.com>
16210
16211 PR target/34888
16212 * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
16213
16214 2011-08-03 Jakub Jelinek <jakub@redhat.com>
16215
16216 PR tree-optimization/49948
16217 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
16218
16219 2011-08-03 Anatoly Sokolov <aesok@post.ru>
16220
16221 * config/m32c/m32c.c (class_sizes): Remove.
16222 (reduce_class): Change arguments and return type to reg_class_t.
16223 Change type cc var to HARD_REG_SET. Change type best var to
16224 reg_class_t. Change type best_size var to unsigned int. Remove
16225 initialization class_sizes var. Use reg_class_size array instead
16226 of class_sizes. Use reg_class_contents array instead
16227 of class_contents.
16228
16229 2011-08-03 Richard Guenther <rguenther@suse.de>
16230
16231 PR middle-end/49958
16232 * fold-const.c (fold_binary_loc): Only associate
16233 (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
16234 overflow wraps.
16235
16236 2011-08-03 Alan Modra <amodra@gmail.com>
16237
16238 PR rtl-optimization/49941
16239 * jump.c (mark_jump_label): Comment.
16240 (mark_jump_label_1): Set JUMP_LABEL for return jumps.
16241 * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
16242 (mark_used_flags): Don't mark RETURN.
16243
16244 2011-08-03 Richard Guenther <rguenther@suse.de>
16245
16246 PR tree-optimization/49938
16247 * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
16248 deal with a POLYNOMIAL_CHREC.
16249
16250 2011-08-03 Revital Eres <revital.eres@linaro.org>
16251
16252 * modulo-sched.c (calculate_stage_count,
16253 calculate_must_precede_follow, get_sched_window,
16254 try_scheduling_node_in_cycle, remove_node_from_ps): Add
16255 declaration.
16256 (update_node_sched_params, set_must_precede_follow, optimize_sc):
16257 New functions.
16258 (reset_sched_times): Call update_node_sched_params.
16259 (sms_schedule): Call optimize_sc.
16260 (get_sched_window): Change function arguments.
16261 (sms_schedule_by_order): Update call to get_sched_window.
16262 Call set_must_precede_follow.
16263 (calculate_stage_count): Add function argument.
16264
16265 2011-08-02 Richard Henderson <rth@redhat.com>
16266
16267 PR target/49864
16268 PR target/49879
16269 * reg-notes.def (REG_ARGS_SIZE): New.
16270 * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
16271 (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
16272 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
16273 different stack levels.
16274 * combine-stack-adj.c (adjust_frame_related_expr): Remove.
16275 (maybe_move_args_size_note): New.
16276 (combine_stack_adjustments_for_block): Use it.
16277 * combine.c (distribute_notes): Place REG_ARGS_SIZE.
16278 * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
16279 (dw_trace_info): Add beg_true_args_size, end_true_args_size,
16280 beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
16281 (cur_cfa): New.
16282 (queued_args_size): Remove.
16283 (add_cfi_args_size): Assert size is non-negative.
16284 (stack_adjust_offset, dwarf2out_args_size): Remove.
16285 (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
16286 (notice_args_size, notice_eh_throw): New.
16287 (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
16288 (dwarf2out_frame_debug_adjust_cfa): Likewise.
16289 (dwarf2out_frame_debug_cfa_offset): Likewise.
16290 (dwarf2out_frame_debug_expr): Likewise. Don't stack_adjust_offset.
16291 (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
16292 (change_cfi_row): Don't emit args_size.
16293 (maybe_record_trace_start_abnormal): Split out from ...
16294 (maybe_record_trace_start): Here. Set args_size_undefined.
16295 (create_trace_edges): Update to match.
16296 (scan_trace): Handle REG_ARGS_SIZE.
16297 (connect_traces): Connect args_size between EH insns.
16298 * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
16299 * explow.c (suppress_reg_args_size): New.
16300 (adjust_stack_1): Split out from ...
16301 (adjust_stack): ... here.
16302 (anti_adjust_stack): Use it.
16303 (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
16304 * expr.c (mem_autoinc_base): New.
16305 (fixup_args_size_notes): New.
16306 (emit_single_push_insn_1): Rename from emit_single_push_insn.
16307 (emit_single_push_insn): New. Generate REG_ARGS_SIZE.
16308 * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
16309 * reload1.c (reload_as_needed): Likewise.
16310 * rtl.h (fixup_args_size_notes): Declare.
16311
16312 2011-08-02 Paolo Carlini <paolo.carlini@oracle.com>
16313
16314 PR bootstrap/49914
16315 * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
16316 of abs.
16317 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
16318 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
16319
16320 2011-08-02 Richard Henderson <rth@redhat.com>
16321
16322 * config/h8300/h8300.c (push, pop): Return the insn.
16323 (h8300_swap_into_er6): Generate correct unwind info.
16324 (h8300_swap_out_of_er6): Likewise.
16325 * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
16326 complex cfa expression.
16327 (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
16328
16329 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
16330
16331 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
16332
16333 2011-08-02 Richard Henderson <rth@redhat.com>
16334
16335 PR target/49878
16336 * config/h8300/h8300.c (h8300_move_ok): New.
16337 * config/h8300/h8300-protos.h: Declare it.
16338 * config/h8300/h8300.md (P): New mode iterator.
16339 (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
16340 (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
16341 (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
16342 (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
16343 (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
16344 and pushqi1_h8300hs_normal; use PRE_MODIFY and
16345 register_no_sp_elim_operand.
16346 (*pushhi1_h8300hs_<P>): Similarly.
16347 (pushqi1, pushhi1, pushhi1_h8300): Remove.
16348 * config/h8300/predicates.md (register_no_sp_elim_operand): New.
16349
16350 2011-08-02 Richard Henderson <rth@redhat.com>
16351
16352 PR target/49881
16353 * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
16354
16355 2011-08-02 Jakub Jelinek <jakub@redhat.com>
16356
16357 * c-parser.c (enum c_parser_prec): New enum, moved from within
16358 c_parser_binary_expression.
16359 (c_parser_binary_expression): Add PREC argument. Stop parsing
16360 if operator has lower or equal precedence than PREC.
16361 (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
16362 callers.
16363 (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
16364 Adjust c_finish_omp_atomic caller.
16365 (c_parser_omp_taskyield): New function.
16366 (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
16367 (c_parser_omp_clause_name): Handle final and mergeable clauses.
16368 (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
16369 functions.
16370 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
16371 and PRAGMA_OMP_CLAUSE_MERGEABLE.
16372 (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
16373 (c_parser_omp_clause_reduction): Handle min and max.
16374 * c-typeck.c (c_finish_omp_clauses): Don't complain about
16375 const qualified predetermined vars in firstprivate clause.
16376 andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
16377 Handle MIN_EXPR and MAX_EXPR.
16378 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
16379 and OMP_CLAUSE_MERGEABLE.
16380 (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
16381 and OMP_ATOMIC_CAPTURE_NEW.
16382 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
16383 OMP_CLAUSE_MERGEABLE.
16384 (omp_clause_code_name): Likewise.
16385 (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
16386 * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
16387 and OMP_CLAUSE_MERGEABLE.
16388 (OMP_CLAUSE_FINAL_EXPR): Define.
16389 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
16390 OMP_CLAUSE_MERGEABLE.
16391 (expand_task_call): Likewise.
16392 (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
16393 (expand_omp_atomic_fetch_op): Handle cases where old or new
16394 value is needed afterwards.
16395 (expand_omp_atomic): Call expand_omp_atomic_load resp.
16396 expand_omp_atomic_store.
16397 * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
16398 OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
16399 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
16400 OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
16401 * tree-nested.c (convert_nonlocal_omp_clauses,
16402 convert_local_omp_clauses): Likewise.
16403 * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
16404 OMP_ATOMIC_CAPTURE_NEW): New.
16405 * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
16406 (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
16407 New inlines.
16408 * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
16409 * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
16410 OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
16411
16412 2011-08-02 Kai Tietz <ktietz@redhat.com>
16413
16414 * gimple.c (canonicalize_cond_expr_cond): Handle cast from
16415 boolean-type.
16416 (ssa_forward_propagate_and_combine): Interprete result of
16417 forward_propagate_comparison.
16418 * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
16419 boolean-typed operands for comparisons.
16420
16421 2011-08-02 Georg-Johann Lay <avr@gjlay.de>
16422
16423 * config/avr/libgcc.S: Gather related function in the
16424 same input section.
16425 (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
16426 __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
16427 references.
16428 (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
16429 __udivmodsi4, __divmodsi4, __prologue_saves__,
16430 __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
16431 __do_copy_data, __do_clear_bss, __do_global_ctors,
16432 __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
16433
16434 2011-08-02 Uros Bizjak <ubizjak@gmail.com>
16435
16436 PR target/47766
16437 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
16438 (stack_protect_test): The pattern compares ptr_mode value.
16439
16440 2011-08-02 Alan Modra <amodra@gmail.com>
16441
16442 * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
16443 note for save_LR_around_toc_setup sequence.
16444
16445 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
16446
16447 * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
16448
16449 2011-08-01 Sebastian Pop <sebastian.pop@amd.com>
16450 Joseph Myers <joseph@codesourcery.com>
16451
16452 * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
16453 * hwint.c: Include diagnostic-core.h.
16454 (abs_hwi): New.
16455 (gcd): Moved here...
16456 (pos_mul_hwi): New.
16457 (mul_hwi): New.
16458 (least_common_multiple): Moved here...
16459 * hwint.h (gcd): ... from here.
16460 (least_common_multiple): ... from here.
16461 (HOST_WIDE_INT_MIN): New.
16462 (HOST_WIDE_INT_MAX): New.
16463 (abs_hwi): Declared.
16464 (gcd): Declared.
16465 (pos_mul_hwi): Declared.
16466 (mul_hwi): Declared.
16467 (least_common_multiple): Declared.
16468 * omega.c (check_pos_mul): Removed.
16469 (check_mul): Removed.
16470 (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
16471 mul_hwi instead of check_mul.
16472
16473 2011-08-01 Richard Henderson <rth@redhat.com>
16474
16475 PR target/49881
16476 * config/avr/avr.h (PUSH_ROUNDING): New.
16477 * config/avr/avr.md (pushqi1): Rename from *pushqi.
16478 (*pushhi, *pushsi, *pushsf): Remove.
16479 (MPUSH): New mode iterator.
16480 (push<MPUSH>1): New expander.
16481
16482 2011-08-01 Anatoly Sokolov <aesok@post.ru>
16483
16484 * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
16485 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
16486 * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
16487 mmix_preferred_output_reload_class): Remove.
16488 * config/mmix/mmix.c (mmix_preferred_reload_class,
16489 mmix_preferred_output_reload_class): Make static. Change rclass
16490 argument and return type to reg_class_t.
16491 (TARGET_PREFERRED_RELOAD_CLASS,
16492 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
16493
16494 2011-08-01 Joern Rennecke <joern.rennecke@embecosm.com>
16495
16496 * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
16497 handling.
16498
16499 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
16500
16501 PR target/47766
16502 * config/i386/i386.md (PTR): New.
16503 (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
16504 (stack_protect_test): Likewise.
16505 (stack_protect_set_<mode>): Replace ":P" with ":PTR".
16506 (stack_tls_protect_set_<mode>): Likewise.
16507 (stack_tls_protect_test_<mode>): Likewise.
16508
16509 2011-08-01 Uros Bizjak <ubizjak@gmail.com>
16510
16511 PR target/49927
16512 * config/i386/i386.c (ix86_address_subreg_operand): New.
16513 (ix86_decompose_address): Use ix86_address_subreg_operand.
16514 (ix86_legitimate_address_p): Do not assert that subregs satisfy
16515 register_no_elim_operand in DImode.
16516
16517 2011-08-01 Ira Rosen <ira.rosen@linaro.org>
16518
16519 PR tree-optimization/49926
16520 * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
16521 in a chain doesn't have uses both inside and outside the loop.
16522
16523 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
16524
16525 * config/avr/avr.h (mcu_type_s): Add errata_skip field.
16526 * config/avr/avr-devices.c (avr_mcu_types): Use it.
16527 * config/avr/avr-mcus.def (AVR_MCU): Use it.
16528 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
16529 define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
16530 * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
16531 Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
16532 to detect if XJMP must not be skipped.
16533
16534 2011-08-02 Alan Modra <amodra@gmail.com>
16535
16536 * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
16537 Delete.
16538 * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
16539 (rs6000_emit_prologue): Don't prematurely return when
16540 TARGET_SINGLE_PIC_BASE. Don't emit eh_frame info in
16541 save_toc_in_prologue case.
16542 (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
16543 calls_alloca.
16544
16545 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
16546
16547 * config/avr/avr-devices.c: Delete SVN property svn:executable.
16548 * config/avr/predicates.md: Ditto.
16549 * config/avr/driver-avr.c: Ditto.
16550 * config/avr/genopt.sh: Set SVN property svn:executable to *.
16551
16552 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
16553
16554 * calls.c (emit_library_call_value_1): Declare size only if
16555 BLOCK_REG_PADDING is defined.
16556
16557 2011-08-01 Kirill Yukhin <kirill.yukhin@intel.com>
16558
16559 PR target/49547
16560 * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
16561 (x86_64-*-*): Likewise.
16562 * config/i386/i386.opt (mlzcnt): New.
16563 * config/i386/abmintrin.h: File removed.
16564 (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
16565 * config/i386/lzcntintrin.h: ... here. New file.
16566 (__lzcnt): Rename to ...
16567 (__lzcnt32): ... this.
16568 * config/i386/bmiintrin.h (head): Update copyright year.
16569 (__lzcnt_u16): Removed.
16570 (__lzcnt_u32): Likewise.
16571 (__lzcnt_u64): Likewise.
16572 * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
16573 is defined, remove abmintrin.h.
16574 * config/i386/cpuid.h (bit_LZCNT): New.
16575 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
16576 LZCNT feature.
16577 * config/i386/i386-c.c (ix86_target_macros_internal): Define
16578 __LZCNT__ if needed.
16579 * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
16580 (ix86_option_override_internal): Handle LZCNT option.
16581 (ix86_valid_target_attribute_inner_p): Likewise.
16582 (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
16583 * config/i386/i386.h (TARGET_LZCNT): New.
16584 (CLZ_DEFINED_VALUE_AT_ZERO): Update.
16585 * config/i386/i386.md (clz<mode>2): Update insn constraint.
16586 (clz<mode>2_lzcnt): Likewise.
16587 * doc/invoke.texi: Mention -mlzcnt option.
16588 * doc/extend.texi: Likewise.
16589
16590 2011-08-01 Julian Brown <julian@codesourcery.com>
16591
16592 * configure.ac (fixed-point): Add ARM support.
16593 * configure: Regenerate.
16594 * config/arm/arm.c (arm_fixed_mode_set): New struct.
16595 (arm_set_fixed_optab_libfunc): New.
16596 (arm_set_fixed_conv_libfunc): New.
16597 (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
16598 ARM-specific names.
16599 (aapcs_libcall_value): Return sub-word-size fixed-point libcall
16600 return values in SImode.
16601 (arm_return_in_msb): Return fixed-point types in the msb.
16602 (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
16603 upwards.
16604 (arm_scalar_mode_supported_p): Support fixed-point modes.
16605 (arm_vector_mode_supported_p): Support vector fixed-point modes.
16606 * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
16607 (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
16608 (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
16609 (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
16610 * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
16611 New mode iterators.
16612 (qaddsub_suf): New mode attribute.
16613 * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
16614 vector modes.
16615 * config/arm/predicates.md (sat_shift_operator): New predicate.
16616 * config/arm/arm-fixed.md: New.
16617 * config/arm/arm.md: Include arm-fixed.md.
16618 * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
16619
16620 2011-08-01 Julian Brown <julian@codesourcery.com>
16621
16622 * calls.c (emit_library_call_value_1): Support padding for libcall
16623 arguments and return values.
16624 * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
16625 downwards in big-endian mode.
16626
16627 2011-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16628
16629 PR debug/49887
16630 * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
16631 * config/sol2-protos.h: Likewise.
16632 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
16633 solaris_code_end.
16634 * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
16635 * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
16636 solaris_file_end.
16637 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
16638
16639 2011-08-01 Julian Brown <julian@codesourcery.com>
16640
16641 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
16642
16643 2011-08-01 Julian Brown <julian@codesourcery.com>
16644
16645 * final.c (output_addr_const): Print fixed-point constants as
16646 decimal not hex.
16647
16648 2011-08-01 Richard Guenther <rguenther@suse.de>
16649
16650 * stor-layout.c (initialize_sizetypes): Properly sign-extend
16651 bitsiztype TYPE_MAX_VALUE.
16652
16653 2011-08-01 Julian Brown <julian@codesourcery.com>
16654
16655 * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
16656 comparison helpers.
16657
16658 2011-07-31 Richard Henderson <rth@redhat.com>
16659
16660 * config/h8300/crti.asm: Add flags to .section directive.
16661 * config/h8300/crtn.asm: Likewise.
16662
16663 2011-07-31 Richard Henderson <rth@redhat.com>
16664
16665 * stor-layout.c (initialize_sizetypes): Handle unsigned short.
16666 * tree.c (build_common_tree_nodes): Likewise.
16667
16668 2011-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
16669
16670 PR target/49880
16671 * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
16672 (divsi3_i1): Likewise.
16673
16674 2011-07-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16675
16676 PR tree-optimization/49749
16677 * tree-ssa-reassoc.c (get_rank): New forward declaration.
16678 (PHI_LOOP_BIAS): New macro.
16679 (phi_rank): New function.
16680 (loop_carried_phi): Likewise.
16681 (propagate_rank): Likewise.
16682 (get_rank): Add calls to phi_rank and propagate_rank.
16683
16684 2011-07-31 H.J. Lu <hongjiu.lu@intel.com>
16685
16686 * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
16687 of TARGET_64BIT.
16688 (PTRDIFF_TYPE): Likewise.
16689
16690 2011-07-31 Uros Bizjak <ubizjak@gmail.com>
16691
16692 PR target/49920
16693 * config/i386/i386.md (strset): Do not expand strset_singleop
16694 when %eax or $edi are fixed.
16695 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
16696 (*strsetsi_1): Ditto.
16697 (*strsethi_1): Ditto.
16698 (*strsetqi_1): Ditto.
16699 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
16700 (*rep_stossi): Ditto.
16701 (*rep_stosqi): Ditto.
16702 (*strlenqi_1): Ditto.
16703 (cmpstrnsi): Also fail when %ecx is fixed.
16704 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
16705 (*cmpstrnqi_1): Ditto.
16706 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
16707 (*strmovsi_1): Ditto.
16708 (*strmovhi_1): Ditto.
16709 (*strmovqi_1): Ditto.
16710 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
16711 (*rep_movsi): Ditto.
16712 (*rep_movqi): Ditto.
16713
16714 2011-07-31 Mikael Pettersson <mikpe@it.uu.se>
16715
16716 PR target/47908
16717 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
16718 Disable instruction scheduling for non-ColdFire targets.
16719 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
16720
16721 2011-07-31 Revital Eres <revital.eres@linaro.org>
16722
16723 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
16724 of anti-dep edge from a branch.
16725 (add_cross_iteration_register_deps): Create anti-dep edge from
16726 a branch.
16727
16728 2011-07-31 Revital Eres <revital.eres@linaro.org>
16729
16730 * modulo-sched.c: Change comment.
16731 (reset_sched_times): Fix print message.
16732 (print_partial_schedule): Add print info.
16733
16734 2011-07-31 Tom de Vries <tom@codesourcery.com>
16735
16736 PR middle-end/43513
16737 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
16738 get_object_alignment and TYPE_ALIGN.
16739
16740 2011-07-30 Tom de Vries <tom@codesourcery.com>
16741
16742 PR middle-end/43513
16743 * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
16744 (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
16745
16746 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16747
16748 * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
16749 <sys/sbd.h>.
16750 (cpu_types): New array.
16751 (cputype): New function.
16752 (host_detect_local_cpu): Only define buf, f if !__sgi__.
16753 Use scaninvent instead of /proc/cpuinfo if __sgi__.
16754 * config.host: Also use driver-native.o, mips/x-native on
16755 mips-sgi-irix*.
16756 * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
16757 (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
16758 (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
16759
16760 2011-07-29 Jakub Jelinek <jakub@redhat.com>
16761
16762 PR middle-end/49897
16763 PR middle-end/49898
16764 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
16765 in nested parallel and outer is a gimple_reg, mark it as addressable
16766 and set its bit in task_shared_vars bitmap too.
16767
16768 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
16769
16770 * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
16771
16772 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16773
16774 * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
16775 IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
16776 (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
16777 AMASK_LOCKPFTCHOK): Define.
16778 (host_detect_local_cpu): Remove buf, f, cpu_names.
16779 Define cpu_types, implver, amask.
16780 Use __builtin_alpha_implver, __builtin_alpha_amask to determine
16781 native CPU.
16782 * config.host: Also use driver-alpha.o, alpha/x-alpha on
16783 alpha*-dec-osf*.
16784 * config/alpha/osf5.h [__alpha__ || __alpha]
16785 (host_detect_local_cpu): Declare.
16786 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
16787 (DRIVER_SELF_SPECS): Define.
16788
16789 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
16790
16791 PR target/47715
16792 * config/i386/i386.md (*load_tp_x32): New.
16793 (*load_tp_x32_zext): Ditto.
16794 (*add_tp_x32): Ditto.
16795 (*add_tp_x32_zext): Ditto.
16796 (*load_tp_<mode>): Disable for TARGET_X32 targets.
16797 (*add_tp_<mode>): Ditto.
16798 * config/i386/i386.c (get_thread_pointer): Load thread pointer in
16799 ptr_mode and convert to Pmode if needed.
16800
16801 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
16802
16803 PR target/49687
16804 * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
16805 muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
16806 *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
16807 Add X to register footprint: Clobber r26/r27.
16808
16809 2011-07-29 Richard Guenther <rguenther@suse.de>
16810
16811 * builtins.c (fold_builtin_signbit): Build the comparison
16812 with a proper type.
16813
16814 2011-07-29 Richard Guenther <rguenther@suse.de>
16815
16816 PR tree-optimization/49893
16817 * tree-predcom.c (suitable_reference_p): Volatile references
16818 are not suitable.
16819
16820 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
16821
16822 PR target/49313
16823 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
16824 (__ctzsi2): Result for 0 may be undefined.
16825 (__ctzhi2): Result for 0 may be undefined.
16826 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
16827 (__popcountsi2): Ditto. And don't clobber r26.
16828 (__popcountdi2): Ditto. And don't clobber r27.
16829 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
16830 (parityhi2): New expand.
16831 (paritysi2): New expand.
16832 (popcounthi2): New expand.
16833 (popcountsi2): New expand.
16834 (clzhi2): New expand.
16835 (clzsi2): New expand.
16836 (ctzhi2): New expand.
16837 (ctzsi2): New expand.
16838 (ffshi2): New expand.
16839 (ffssi2): New expand.
16840 (copysignsf3): New insn.
16841 (bswapsi2): New expand.
16842 (*parityhi2.libgcc): New insn.
16843 (*parityqihi2.libgcc): New insn.
16844 (*paritysihi2.libgcc): New insn.
16845 (*popcounthi2.libgcc): New insn.
16846 (*popcountsi2.libgcc): New insn.
16847 (*popcountqi2.libgcc): New insn.
16848 (*popcountqihi2.libgcc): New insn-and-split.
16849 (*clzhi2.libgcc): New insn.
16850 (*clzsihi2.libgcc): New insn.
16851 (*ctzhi2.libgcc): New insn.
16852 (*ctzsihi2.libgcc): New insn.
16853 (*ffshi2.libgcc): New insn.
16854 (*ffssihi2.libgcc): New insn.
16855 (*bswapsi2.libgcc): New insn.
16856
16857 2011-07-29 Richard Guenther <rguenther@suse.de>
16858
16859 * tree-vrp.c (get_value_range): Only set parameter default
16860 definitions to varying, leave others at undefined.
16861 (extract_range_from_binary_expr): Fix undefined handling.
16862 (vrp_visit_phi_node): Handle merged undefined state.
16863
16864 2011-07-29 Wei Guozhi <carrot@google.com>
16865
16866 PR rtl-optimization/49799
16867 * combine.c (make_compound_operation): Check if the bit field is valid
16868 before change it to bit field extraction.
16869
16870 2011-07-29 Bernd Schmidt <bernds@codesourcery.com>
16871
16872 PR rtl-optimization/49891
16873 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
16874 newly created returnjumps.
16875
16876 2011-07-28 DJ Delorie <dj@redhat.com>
16877
16878 * expr.c (expand_expr_addr_expr_1): Detect a user request for a
16879 local frame in a naked function, and produce a suitable error for
16880 that specific case.
16881
16882 * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
16883 registers to be reloaded in HI classes when the target is HI.
16884
16885 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
16886
16887 * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
16888 bound_one, bound_two.
16889
16890 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
16891
16892 PR middle-end/48648
16893 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
16894 CLAST assignments.
16895 (translate_clast): Same.
16896 (translate_clast_assignment): New.
16897
16898 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
16899
16900 PR tree-optimization/49876
16901 * sese.c (rename_uses): Do not return false on gloog_error: set
16902 the new_expr to integer_zero_node and continue code generation.
16903 (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
16904
16905 2011-07-28 Jakub Jelinek <jakub@redhat.com>
16906
16907 PR debug/49846
16908 * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
16909 arguments also check if they aren't initialized with a MODE_INT
16910 mode of the same size.
16911
16912 2011-07-28 Aldy Hernandez <aldyh@redhat.com>
16913
16914 * expr.c (get_bit_range): Handle *MEM_REF's.
16915
16916 2011-07-28 Bernd Schmidt <bernds@codesourcery.com>
16917
16918 * rtlanal.c (tablejump_p): False for returns.
16919 * reorg.c (first_active_target_insn): New static function.
16920 (find_end_label): Set JUMP_LABEL for a new returnjump.
16921 (optimize_skip, get_jump_flags, rare_destination,
16922 mostly_true_jump, get_branch_condition,
16923 steal_delay_list_from_target, own_thread_p,
16924 fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
16925 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
16926 dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
16927 * jump.c (delete_related_insns): Likewise.
16928 (jump_to_label_p): New function.
16929 (redirect_target): New static function.
16930 (redirect_exp_1): Use it. Adjust to handle ret_rtx in JUMP_LABELS.
16931 (redirect_jump_1): Assert that the new label is nonnull.
16932 (redirect_jump): Likewise.
16933 (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
16934 * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
16935 exit block.
16936 (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE. All callers
16937 changed. Ensure that the right label is passed to redirect_jump.
16938 * function.c (emit_return_into_block,
16939 thread_prologue_and_epilogue_insns): Ensure new returnjumps have
16940 ret_rtx in their JUMP_LABEL.
16941 * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
16942 * emit-rtl.c (skip_consecutive_labels): Allow the caller to
16943 pass ret_rtx as label.
16944 * cfglayout.c (fixup_reorder_chain): Use
16945 force_nonfallthru_and_redirect rather than force_nonfallthru.
16946 (duplicate_insn_chain): Copy JUMP_LABELs for returns.
16947 * rtl.h (ANY_RETURN_P): New macro.
16948 (jump_to_label_p): Declare.
16949 * resource.c (find_dead_or_set_registers): Handle ret_rtx in
16950 JUMP_LABELs.
16951 (mark_target_live_regs): Likewise.
16952 * basic-block.h (force_nonfallthru_and_redirect): Declare.
16953 * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
16954 * config/alpha/alpha.c (alpha_tablejump_addr_vec,
16955 alpha_tablejump_best_label): Remove functions.
16956 * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
16957 alpha_tablejump_best_label): Remove declarations.
16958 * config/sh/sh.c (barrier_align, split_branches): Adjust for
16959 ret_rtx in JUMP_LABELs.
16960 * config/arm/arm.c (is_jump_table): Likewise.
16961
16962 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
16963
16964 * config/i386/predicates.md (pic_32bit_opreand): Do not define as
16965 special predicate. Remove explicit mode checks.
16966
16967 2011-07-28 Jakub Jelinek <jakub@redhat.com>
16968
16969 * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
16970 DW_AT_data_member_location containing just DW_OP_plus_uconst.
16971
16972 PR debug/49871
16973 * dwarf2out.c (size_of_die, value_format, output_die): Use
16974 DW_FORM_udata instead of DW_FORM_data[48] for
16975 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
16976
16977 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
16978
16979 * config/i386/i386.md (*tls_global_dynamic_64): Update
16980 length attribute.
16981
16982 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
16983
16984 PR target/47715
16985 * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
16986 tls_symbolic_operand check. Update code sequence for TARGET_X32.
16987 (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
16988 (tls_dynamic_gnu2_64): Ditto.
16989 (*tls_dynamic_gnu2_lea_64): Ditto.
16990 (*tls_dynamic_gnu2_call_64): Ditto.
16991 (*tls_dynamic_gnu2_combine_64): Ditto.
16992
16993 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
16994
16995 * config.gcc: Set need_64bit_hwint to yes for x86 targets.
16996
16997 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
16998
16999 PR target/47364
17000 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
17001
17002 2011-07-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17003
17004 * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
17005 before the core constraints. Adjust attributes.
17006 ("*thumb2_movdf_vfp"): Likewise.
17007
17008 2011-07-28 Kai Tietz <ktietz@redhat.com>
17009
17010 * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
17011 (simplify_truth_ops_using_ranges): Likewise.
17012 (build_assert_expr_for): Likewise.
17013 (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
17014 and handle BIT_NOT_EXPR for truth-operation.
17015
17016 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
17017
17018 PR target/49313
17019 Undo r176835 from trunk
17020 2011-07-27 Georg-Johann Lay
17021
17022 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
17023
17024 PR target/49687
17025 * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
17026 Add _muluhisi3, _mulshisi3, _usmulhisi3.
17027 * config/avr/libgcc.S (__mulsi3): Rewrite.
17028 (__mulhisi3): Rewrite.
17029 (__umulhisi3): Rewrite.
17030 (__usmulhisi3): New.
17031 (__muluhisi3): New.
17032 (__mulshisi3): New.
17033 (__mulohisi3): New.
17034 (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
17035 declare.
17036 * config/avr/predicates.md (pseudo_register_operand): Rewrite.
17037 (pseudo_register_or_const_int_operand): New.
17038 (combine_pseudo_register_operand): New.
17039 (u16_operand): New.
17040 (s16_operand): New.
17041 (o16_operand): New.
17042 * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
17043 * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
17044 (any_extend, any_extend2): New code iterators.
17045 (extend_prefix): New code attribute.
17046 (mulsi3): Rewrite. Turn insn to expander.
17047 (mulhisi3): Ditto.
17048 (umulhisi3): Ditto.
17049 (usmulhisi3): New expander.
17050 (*mulsi3): New insn-and-split.
17051 (mulu<mode>si3): New insn-and-split.
17052 (muls<mode>si3): New insn-and-split.
17053 (mulohisi3): New insn-and-split.
17054 (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
17055 *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
17056 *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
17057 *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
17058 insn-and-split.
17059 (*mulsi3_call): Rewrite.
17060 (*mulhisi3_call): Rewrite.
17061 (*umulhisi3_call): Rewrite.
17062 (*usmulhisi3_call): New insn.
17063 (*muluhisi3_call): New insn.
17064 (*mulshisi3_call): New insn.
17065 (*mulohisi3_call): New insn.
17066 (extendqihi2): Use combine_pseudo_register_operand as predicate
17067 for operand 1.
17068 (extendqisi2): Ditto.
17069 (zero_extendqihi2): Ditto.
17070 (zero_extendqisi2): Ditto.
17071 (zero_extendhisi2): Ditto.
17072 (extendhisi2): Ditto. Don't early-clobber operand 0.
17073
17074 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
17075
17076 * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
17077
17078 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
17079
17080 PR tree-optimization/49471
17081 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
17082 iv only when the largest type is unsigned. Do not call
17083 lang_hooks.types.type_for_size.
17084
17085 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
17086
17087 PR middle-end/45450
17088 * graphite-poly.c (apply_poly_transforms): Disable legality check
17089 after an openscop read.
17090
17091 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
17092
17093 PR middle-end/47691
17094 * graphite-clast-to-gimple.c (translate_clast_user): Update use of
17095 copy_bb_and_scalar_dependences.
17096 * sese.c (rename_uses): Do not call gcc_assert. Set gloog_error.
17097 (graphite_copy_stmts_from_block): Update call to rename_uses.
17098 (copy_bb_and_scalar_dependences): Update call to
17099 graphite_copy_stmts_from_block.
17100 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
17101
17102 2011-07-27 Georg-Johann Lay <avr@gjlay.de>
17103
17104 PR target/49313
17105 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
17106 (__ctzsi2): Result for 0 may be undefined.
17107 (__ctzhi2): Result for 0 may be undefined.
17108 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
17109 (__popcountsi2): Ditto. And don't clobber r26.
17110 (__popcountdi2): Ditto. And don't clobber r27.
17111 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
17112 (parityhi2): New expand.
17113 (paritysi2): New expand.
17114 (popcounthi2): New expand.
17115 (popcountsi2): New expand.
17116 (clzhi2): New expand.
17117 (clzsi2): New expand.
17118 (ctzhi2): New expand.
17119 (ctzsi2): New expand.
17120 (ffshi2): New expand.
17121 (ffssi2): New expand.
17122 (copysignsf3): New insn.
17123 (bswapsi2): New expand.
17124 (*parityhi2.libgcc): New insn.
17125 (*parityqihi2.libgcc): New insn.
17126 (*paritysihi2.libgcc): New insn.
17127 (*popcounthi2.libgcc): New insn.
17128 (*popcountsi2.libgcc): New insn.
17129 (*popcountqi2.libgcc): New insn.
17130 (*popcountqihi2.libgcc): New insn-and-split.
17131 (*clzhi2.libgcc): New insn.
17132 (*clzsihi2.libgcc): New insn.
17133 (*ctzhi2.libgcc): New insn.
17134 (*ctzsihi2.libgcc): New insn.
17135 (*ffshi2.libgcc): New insn.
17136 (*ffssihi2.libgcc): New insn.
17137 (*bswapsi2.libgcc): New insn.
17138
17139 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
17140
17141 * config/i386/i386.c (ix86_expand_move): Do not explicitly check
17142 the mode of symbolic_opreand RTXes.
17143
17144 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
17145
17146 * config/i386/predicates.md (x86_64_movabs_operand): Return false
17147 for pic_32bit_operand RTXes.
17148 * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
17149 in DImode.
17150
17151 2011-07-27 Kai Tietz <ktietz@redhat.com>
17152
17153 * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
17154 for 32-bit, too.
17155 (ix86_handle_abi_attribute): Allow function attributes
17156 ms_abi/sysv_abi in 32-bit mode, too.
17157 * doc/extend.texi: Adjust attribute documentation.
17158
17159 * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
17160 expression handling.
17161 (and_var_with_comparison_1): Likewise.
17162
17163 2011-07-27 Aldy Hernandez <aldyh@redhat.com>
17164
17165 * params.h (ALLOW_STORE_DATA_RACES): New.
17166 * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
17167 * Makefile.in (expr.o): Depend on PARAMS_H.
17168 * machmode.h (get_best_mode): Add argument.
17169 * fold-const.c (optimize_bit_field_compare): Add argument to
17170 get_best_mode.
17171 (fold_truthop): Same.
17172 * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
17173 * expr.c (emit_group_store): Same.
17174 (copy_blkmode_from_reg): Same.
17175 (write_complex_part): Same.
17176 (optimize_bitfield_assignment_op): Add argument.
17177 Add argument to get_best_mode.
17178 (get_bit_range): New.
17179 (expand_assignment): Calculate maxbits and pass it down accordingly.
17180 (store_field): New argument.
17181 (expand_expr_real_2): New argument to store_field. Include params.h.
17182 * expr.h (store_bit_field): New argument.
17183 * stor-layout.c (get_best_mode): Restrict mode expansion by taking
17184 into account maxbits.
17185 * calls.c (store_unaligned_arguments_into_pseudos): New argument
17186 to store_bit_field.
17187 * expmed.c (store_bit_field_1): New argument. Use it.
17188 (store_bit_field): Same.
17189 (store_fixed_bit_field): Same.
17190 (store_split_bit_field): Same.
17191 (extract_bit_field_1): Pass new argument to get_best_mode.
17192 (extract_bit_field): Same.
17193 * stmt.c (store_bit_field): Pass new argument to store_bit_field.
17194 * doc/invoke.texi: Document parameter allow-store-data-races.
17195
17196 2011-07-27 Jakub Jelinek <jakub@redhat.com>
17197
17198 * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
17199
17200 2011-07-27 Kai Tietz <ktietz@redhat.com>
17201
17202 * tree-vrp.c (extract_range_from_binary_expr): Remove
17203 TRUTH-binary cases and add new bitwise-cases.
17204 (extract_range_from_assignment): Likewise.
17205 (register_edge_assert_for_1): Likeiwise.
17206 (register_edge_assert_for): Likewise.
17207 (simplify_truth_ops_using_ranges): Likewise.
17208 (simplify_stmt_using_ranges): Likewise.
17209
17210 2011-07-26 H.J. Lu <hongjiu.lu@intel.com>
17211
17212 PR target/47372
17213 * config/i386/i386.c (ix86_delegitimize_address): Call
17214 simplify_gen_subreg for PIC with mode of x only if modes of
17215 x and orig_x are different.
17216
17217 2011-07-26 Jakub Jelinek <jakub@redhat.com>
17218
17219 * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
17220 to GC allocated copy of the string.
17221 (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
17222 before .debug_line, not after it.
17223
17224 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
17225
17226 PR middle-end/47046
17227 * tree-chrec.h (evolution_function_is_affine_p): Recursively call
17228 evolution_function_is_affine_p on CHREC_RIGHT.
17229
17230 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
17231
17232 * tree-data-ref.c (max_stmt_executions_tree): Do not call
17233 lang_hooks.types.type_for_size.
17234
17235 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
17236
17237 PR middle-end/47653
17238 * graphite-scop-detection.c (graphite_can_represent_loop): Discard
17239 loops using wrapping semantics.
17240
17241 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
17242
17243 PR middle-end/48805
17244 * tree-scalar-evolution.c (instantiate_scev_r): Return
17245 chrec_dont_know for ADDR_EXPR.
17246
17247 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
17248 H.J. Lu <hongjiu.lu@intel.com>
17249
17250 PR target/47369
17251 PR target/49853
17252 * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
17253 if legitimize_tls_address returned operand in wrong mode. Allow
17254 SImode and DImode symbolic operand for PIC. Call convert_to_mode
17255 if legitimize_pic_address returned operand in wrong mode.
17256
17257 2011-07-26 Martin Jambor <mjambor@suse.cz>
17258
17259 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
17260 return false for invariants.
17261
17262 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
17263
17264 * config/i386/i386.md (add->lea splitter): Implement using SWI
17265 mode iterator. Change operand 2 predicate to <nonmemory_operand>.
17266 (add->lea zext splitter): Change operand 2 predicate to
17267 x86_64_nonmemory_operand.
17268
17269 2011-07-26 Richard Guenther <rguenther@suse.de>
17270
17271 * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
17272 frequency makes everything hot.
17273
17274 2011-07-26 Richard Guenther <rguenther@suse.de>
17275
17276 PR tree-optimization/49840
17277 * tree-vrp.c (range_fits_type_p): Properly handle full
17278 double-int precision.
17279
17280 2011-07-26 Martin Jambor <mjambor@suse.cz>
17281
17282 PR bootstrap/49786
17283 * ipa-cp.c (update_profiling_info): Avoid overflow when updating
17284 counts.
17285 (update_specialized_profile): Likewise.
17286
17287 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
17288 H.J. Lu <hongjiu.lu@intel.com>
17289
17290 PR target/47381
17291 PR target/49832
17292 PR target/49833
17293 * config/i386/i386.md (i): Change SImode attribute to "e".
17294 (g): Change SImode attribute to "rme".
17295 (di): Change SImode attribute to "nF".
17296 (general_operand): Change SImode attribute to x86_64_general_operand.
17297 (general_szext_operand): Change SImode attribute to
17298 x86_64_szext_general_operand.
17299 (immediate_operand): Change SImode attribute to
17300 x86_64_immediate_operand.
17301 (nonmemory_operand): Change SImode attribute to
17302 x86_64_nonmemory_operand.
17303 (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
17304 (*movsi_internal): Ditto. Use "e" constraint in alternative 2.
17305 (*lea_1): Use SWI48 mode iterator.
17306 (*lea_1_zext): New insn pattern.
17307 (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
17308 (*bt<mode>): Ditto.
17309 (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
17310 Update operand constraints.
17311 (addsi_1_zext): Ditto.
17312 (*add<mode>2): Ditto.
17313 (*addsi_3_zext): Ditto.
17314 (*subsi_1_zext): Ditto.
17315 (*subsi_2_zext): Ditto.
17316 (*subsi_3_zext): Ditto.
17317 (*addsi3_carry_zext): Ditto.
17318 (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
17319 (*mulsi3_1_zext): Ditto.
17320 (*andsi_1): Ditto.
17321 (*andsi_1_zext): Ditto.
17322 (*andsi_2_zext): Ditto.
17323 (*<any_or:code>si_1_zext): Ditto.
17324 (*<any_or:code>si_2_zext): Ditto.
17325 (*test<mode>_1): Use <general_operand> predicate for operand 1.
17326 (*and<mode>_2): Ditto.
17327 (mov<mode>cc): Use <general_operand> predicate for operands 1 and 2.
17328 (add->lea splitter): Check operand modes in insn constraint. Extend
17329 operands less than SImode wide to SImode.
17330 (add->lea zext splitter): Do not extend input operands to DImode.
17331 (*lea_general_1): Handle only QImode and HImode operands.
17332 (*lea_general_2): Ditto.
17333 (*lea_general_3): Ditto.
17334 (*lea_general_1_zext): Remove.
17335 (*lea_general_2_zext): Ditto.
17336 (*lea_general_3_zext): Ditto.
17337 (*lea_general_4): Check operand modes in insn constraint. Extend
17338 operands less than SImode wide to SImode.
17339 (ashift->lea splitter): Ditto.
17340 * config/i386/i386.c (ix86_print_operand_address): Print address
17341 registers with 'q' modifier on 64bit targets.
17342 * config/i386/predicates.md (pic_32bit_opreand): Define as special
17343 predicate. Reject non-SI and non-DI modes.
17344
17345 2011-07-25 Andrew Pinski <apinski@cavium.com>
17346
17347 PR tree-opt/49671
17348 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
17349 TREE_THIS_NOTRAP into the inner most MEM_REF.
17350 Always copy TREE_THIS_VOLATILE.
17351 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
17352 arguments are not volatile references.
17353
17354 2011-07-25 Richard Henderson <rth@redhat.com>
17355
17356 * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
17357 * final.c (final_scan_insn): Don't test for it.
17358 (rest_of_clean_state): Likewise.
17359
17360 2011-07-25 Richard Henderson <rth@redhat.com>
17361
17362 PR debug/49841
17363 * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
17364 (emit_frame_save): Likewise.
17365 (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
17366 insn onto a dummy blockage insn after the join label.
17367
17368 2011-07-25 Richard Henderson <rth@redhat.com>
17369
17370 * dwarf2cfi.c (dw_trace_info): Add ID member.
17371 (get_trace_index): Remove. Change users to use ID member.
17372 (before_next_cfi_note): New.
17373 (connect_traces): Remove unreachable traces before the main loop.
17374 Look across one trace and generate remember/restore_state if needed.
17375
17376 2011-07-25 Richard Henderson <rth@redhat.com>
17377
17378 * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
17379
17380 2011-07-25 Joern Rennecke <joern.rennecke@embecosm.com>
17381
17382 * genattr.c (write_upcase, gen_attr <enum definition writing>):
17383 Move to ...
17384 * genattr-common.c ... here.
17385 (main): Call gen_attr.
17386 * optc-gen.awk: Make generated program include insn-attr-common.h .
17387 * Makefile.in (oprions.o): Depend on insn-attr-common.h
17388
17389 2011-07-25 Anatoly Sokolov <aesok@post.ru>
17390
17391 * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
17392 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
17393 * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
17394 m32c_print_operand, m32c_print_operand_address): Remove.
17395 * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
17396 Change return type to bool. Change argument type to bool.
17397 (m32c_print_operand, m32c_print_operand_address): Make static.
17398 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
17399 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
17400
17401 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17402
17403 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
17404 attributes): Document mmap.
17405
17406 2011-07-25 Anatoly Sokolov <aesok@post.ru>
17407
17408 * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
17409 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
17410 * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
17411 mmix_print_operand, mmix_print_operand_address): Remove.
17412 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
17413 Change return type to bool. Change argument type to bool.
17414 (mmix_print_operand, mmix_print_operand_address): Make static.
17415 (mmix_intval, mmix_output_condition): Change 'x' argument type
17416 to const_rtx.
17417 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
17418 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
17419
17420 2011-07-25 Georg-Johann Lay <avr@gjlay.de>
17421
17422 PR target/39386
17423 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
17424 shift counter for x << x and x >> x shifts.
17425
17426 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17427
17428 PR target/47124
17429 * config.gcc: Reject *-*-solaris2 configuration.
17430
17431 2011-07-25 Richard Sandiford <richard.sandiford@linaro.org>
17432
17433 PR tree-optimization/49809
17434 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
17435 gimple_get_lhs instead of gimple_assign_lhs.
17436
17437 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17438
17439 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
17440
17441 2011-07-25 Richard Guenther <rguenther@suse.de>
17442
17443 PR tree-optimization/49822
17444 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
17445 more. Make sure to preserve stmts with side-effects. Properly
17446 handle virtual defs, follow a longer def chain.
17447
17448 2011-07-22 Romain Geissler <romain.geissler@gmail.com>
17449
17450 PR plugins/45348
17451 PR plugins/48425
17452 PR plugins/46577
17453 * Makefile.in: Do not flatten c-family directory when installing
17454 plugin headers.
17455
17456 2011-07-25 Eric Botcazou <ebotcazou@adacore.com>
17457
17458 * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
17459 original nodes if we are dealing with virtual clones.
17460
17461 2011-07-25 Bernd Schmidt <bernds@codesourcery.com>
17462
17463 * common/config/c6x/c6x-common.c: New file.
17464
17465 2011-07-25 Roman Zhuykov <zhroma@ispras.ru>
17466
17467 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
17468
17469 2011-07-25 Richard Guenther <rguenther@suse.de>
17470
17471 PR tree-optimization/49715
17472 * tree-vrp.c: Include expr.h and optabs.h.
17473 (range_fits_type_): New function.
17474 (simplify_float_conversion_using_ranges): Likewise.
17475 (simplify_stmt_using_ranges): Call it.
17476 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
17477 * optabs.c (can_float_p): Export.
17478 * optabs.h (can_float_p): Declare.
17479
17480 2011-07-25 Richard Guenther <rguenther@suse.de>
17481
17482 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
17483 (get_value_range): For out-of-range SSA names or names created
17484 after propagation return a read-only varying range.
17485 (dump_all_value_ranges): Adjust.
17486 (vrp_initialize): Likewise.
17487 (vrp_finalize): Likewise.
17488
17489 2011-07-24 Richard Henderson <rth@redhat.com>
17490
17491 PR debug/49831
17492 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
17493 them entirely.
17494
17495 2011-07-24 Richard Henderson <rth@redhat.com>
17496
17497 PR debug/49825
17498 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
17499 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
17500
17501 2011-07-24 Richard Henderson <rth@redhat.com>
17502
17503 PR debug/49827
17504 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
17505
17506 2011-07-24 Richard Henderson <rth@redhat.com>
17507
17508 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
17509 Zero args_size for abnormal edges. Adjust all callers.
17510
17511 2011-07-24 Richard Henderson <rth@redhat.com>
17512
17513 PR debug/49825
17514 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
17515
17516 2011-07-24 H.J. Lu <hongjiu.lu@intel.com>
17517
17518 PR bootstrap/49835
17519 * collect2.c (demangle_flag): Removed.
17520
17521 2011-07-24 Sandra Loosemore <sandra@codesourcery.com>
17522
17523 * configure.ac (demangler_in_ld): Default to yes.
17524 * configure: Regenerated.
17525 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
17526 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
17527 --no-demangle options straight through to ld. When
17528 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
17529 way that has the intended effect on Windows.
17530
17531 2011-07-23 Richard Henderson <rth@redhat.com>
17532
17533 * dwarf2cfi.c: Include basic-block.h.
17534 (dw_label_info): Remove.
17535 (trace_work_list, trace_index): New.
17536 (remember_row, emit_cfa_remember): Remove.
17537 (dw_trace_info_hash, dw_trace_info_eq): New.
17538 (get_trace_index, get_trace_info): New.
17539 (save_point_p): New.
17540 (free_cfi_row): Remove.
17541 (add_cfi): Do not emit DW_CFA_remember_state.
17542 (cfa_row_equal_p): New.
17543 (barrier_args_size): Remove.
17544 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
17545 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
17546 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
17547 (dwarf2out_cfi_begin_epilogue): Remove.
17548 (dwarf2out_frame_debug_restore_state): Remove.
17549 (connect_traces, create_pseudo_cfg): New.
17550 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
17551 * Makefile.in (dwarf2cfi.o): Update.
17552
17553 2011-07-23 Richard Henderson <rth@redhat.com>
17554
17555 * dwarf2cfi.c (dw_trace_info): New.
17556 (dw_label_info): New.
17557 (cie_return_save): New.
17558 (cur_trace): New.
17559 (queued_args_size): Rename from args_size. Update all users.
17560 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
17561 (def_cfa_1): Use cur_trace instead of cfa_*.
17562 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
17563 (clobbers_queued_reg_save, reg_saved_in): Likewise.
17564 (dwarf2out_frame_debug_expr): Likewise.
17565 (create_cie_data): Split out from ...
17566 (execute_dwarf2_frame): ... here. Initialize cur_trace.
17567
17568 2011-07-23 Richard Henderson <rth@redhat.com>
17569
17570 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
17571 Update all users to match.
17572 (execute_dwarf2_frame): Free reg_saved_in_data.
17573
17574 2011-07-23 Richard Henderson <rth@redhat.com>
17575
17576 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
17577 (queued_reg_saves): Don't GTY. Change to a VEC.
17578 (queue_reg_save): Update to match.
17579 (dwarf2out_flush_queued_reg_saves): Likewise.
17580 (clobbers_queued_reg_save): Likewise.
17581 (reg_saved_in): Likewise.
17582 (execute_dwarf2_frame): Free queued_reg_saves.
17583
17584 2011-07-23 Richard Henderson <rth@redhat.com>
17585
17586 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
17587
17588 2011-07-23 Richard Henderson <rth@redhat.com>
17589
17590 * dwarf2cfi.c (add_cfi_args_size): Split out from...
17591 (dwarf2out_args_size): ... here.
17592 (add_cfi_restore): Split out from ...
17593 (dwarf2out_frame_debug_cfa_restore): ... here.
17594 (def_cfa_0): Split out from ...
17595 (def_cfa_1): ... here.
17596 (cfi_oprnd_equal_p, cfi_equal_p): New.
17597 (change_cfi_row): New.
17598 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
17599 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
17600 (output_cfis): Remove.
17601 * dwarf2out.c (output_fde): Simplify output_cfi loop.
17602 (dwarf2out_switch_text_section): Don't call output_cfis.
17603 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
17604 * dwarf2out.h: Update decls.
17605 (enum dw_val_class): Add dw_val_class_none.
17606
17607 2011-07-23 Richard Henderson <rth@redhat.com>
17608
17609 * dwarf2cfi.c (update_row_reg_save): New.
17610 (dwarf2out_frame_debug_cfa_expression): Use it.
17611 (dwarf2out_frame_debug_cfa_restore): Likewise.
17612 (reg_save): Likewise. Do not emit DW_CFA_same_value.
17613
17614 2011-07-23 Richard Henderson <rth@redhat.com>
17615
17616 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
17617
17618 2011-07-23 Richard Henderson <rth@redhat.com>
17619
17620 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
17621 (cie_cfi_row): New.
17622 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
17623 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
17624 (cur_row, remember_row): New.
17625 (def_cfa_1): Use cur_row instead of the old_* variables.
17626 (dwarf2out_frame_debug_restore_state): Similarly.
17627 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
17628 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
17629 (dwarf2out_frame_debug_adjust_cfa): Likewise.
17630 (dwarf2out_frame_debug_cfa_offset): Likewise.
17631 (dwarf2out_frame_debug_expr): Likewise.
17632 (execute_dwarf2_frame): Set up cur_row.
17633 * dwarf2out.h (struct cfa_loc): Mark for GTY.
17634
17635 2011-07-23 Richard Henderson <rth@redhat.com>
17636
17637 * basic-block.h (EDGE_PRESERVE): New.
17638 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
17639 * bb-reorder.c: Include except.h.
17640 (fix_up_crossing_landing_pad): New.
17641 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
17642 landing pads in the right partition. Duplicate as necessary.
17643 (partition_hot_cold_basic_blocks): Fix up DF info after
17644 duplicating landing pads.
17645 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
17646 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
17647 is set properly. Validate that EH edges are not CROSSING.
17648 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
17649 (dw2_build_landing_pads): ... here.
17650 (convert_to_eh_region_ranges): Remove code to fixup crossing
17651 landing pads.
17652 * except.h (expand_dw2_landing_pad_for_region): Declare.
17653 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
17654
17655 2011-07-23 Richard Earnshaw <rearnsha@arm.com>
17656
17657 PR target/49816
17658 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
17659
17660 2011-07-22 Jason Merrill <jason@redhat.com>
17661
17662 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
17663
17664 2011-07-22 Richard Henderson <rth@redhat.com>
17665
17666 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
17667
17668 2011-07-22 Richard Henderson <rth@redhat.com>
17669
17670 * jump.c (maybe_propagate_label_ref): Split out of...
17671 (mark_all_labels): ... here. Do not attempt label_ref
17672 propagation while in cfglayout mode.
17673
17674 2011-07-22 Jakub Jelinek <jakub@redhat.com>
17675
17676 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
17677 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
17678 (dwarf_attr_name): Handle DW_AT_GNU_macros.
17679 (dwarf2out_define): If the vector is empty and
17680 lineno is 0, emit a dummy entry first.
17681 (dwarf2out_undef): Likewise. Remove redundant semicolon.
17682 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
17683 optimize_macinfo_range): New functions.
17684 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
17685 mergeable, optimize longer strings using
17686 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
17687 optimize longer sequences of define/undef ops from headers
17688 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
17689 emit a section headers.
17690 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
17691 and macinfo_section_label to DEBUG_MACRO_SECTION
17692 resp. DEBUG_MACRO_SECTION_LABEL.
17693 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
17694 instead of DW_AT_macro_info.
17695
17696 PR other/32998
17697 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
17698 options.
17699 * dwarf2out.c: Include opts.h.
17700 (dchar_p): New typedef. Define heap VEC for it.
17701 (producer_string): New variable.
17702 (gen_producer_string): New function.
17703 (gen_compile_unit_die): Use it.
17704 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
17705 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
17706 * doc/invoke.texi: Document -grecord-gcc-switches and
17707 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
17708 to -frecord-gcc-switches description.
17709
17710 2011-07-22 Jason Merrill <jason@redhat.com>
17711
17712 PR c++/30112
17713 * c-decl.c (c_linkage_bindings): Define.
17714
17715 2011-07-22 Eric Botcazou <ebotcazou@adacore.com>
17716
17717 PR debug/49815
17718 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
17719
17720 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
17721
17722 * config/i386/i386.c (ix86_option_override_internal): Disallow
17723 MS ABI in x32 mode.
17724 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
17725 only for TARGET_LP64.
17726 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
17727
17728 2011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
17729
17730 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
17731 avoid warnings when GCC is built with a C++ compiler.
17732
17733 2011-07-22 Martin Jambor <mjambor@suse.cz>
17734
17735 PR lto/49796
17736 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
17737 if decl node is in another partition, call cgraph_get_node only once.
17738
17739 2011-07-22 Uros Bizjak <ubizjak@gmail.com>
17740
17741 * config.gcc (x86_64-*-linux*): Set
17742 default_gnu_indirect_function to yes.
17743
17744 2011-07-22 Richard Guenther <rguenther@suse.de>
17745
17746 PR tree-optimization/45819
17747 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
17748 preserve volatile and notrap flags.
17749
17750 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17751 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17752
17753 PR bootstrap/49794
17754 * configure.ac: Test AM_ICONV with CXX.
17755 * configure: Regenerate.
17756 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
17757
17758 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17759
17760 PR bootstrap/49797
17761 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
17762 (set_cloog_options): Use it.
17763
17764 2011-07-22 Jakub Jelinek <jakub@redhat.com>
17765
17766 PR c++/49756
17767 * gcc.c (main): Call stack_limit_increase (64MB).
17768 * toplev.c (toplev_main): Likewise.
17769
17770 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
17771
17772 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
17773 instead of force_reg.
17774
17775 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
17776
17777 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
17778 needed and use force_reg after convert.
17779 (ix86_expand_call): Likewise.
17780 (ix86_expand_special_args_builtin): Likewise.
17781 (ix86_expand_builtin): Likewise.
17782
17783 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
17784
17785 PR middle-end/47654
17786 PR middle-end/49649
17787 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
17788 in parameter. Initialize v1 and v2 based on the values returned
17789 by clast_name_to_lb_ub.
17790 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
17791 values.
17792 (type_for_clast_bin): Same.
17793 (type_for_clast_expr): Same.
17794 (type_for_clast_eq): Update calls to type_for_clast_expr.
17795 (type_for_clast_for): Same.
17796 (build_iv_mapping): Same.
17797 * graphite-ppl.h (value_min): New.
17798
17799 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
17800
17801 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
17802 types whenever possible.
17803
17804 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
17805
17806 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
17807 and ub fields.
17808 (new_clast_name_index): Add lb and ub parameters.
17809 (free_clast_name_index): New.
17810 (clast_name_to_lb_ub): New.
17811 (save_clast_name_index): Add lb and ub parameters.
17812 (compute_bounds_for_param): New.
17813 (type_for_level): Removed.
17814 (type_for_clast_for): Removed level parameter. Do not call
17815 type_for_level.
17816 (graphite_create_new_loop): Store the lb and ub for the clast_name
17817 of the iterator of the loop that has been generated.
17818 (graphite_create_new_loop_guard): Remove parameter level.
17819 (create_params_index): Store the lb and ub of each parameter.
17820 (gloog): Use free_clast_name_index. Pass to create_params_index
17821 the current scop.
17822
17823 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
17824
17825 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
17826 (max_precision_type): Inline max_signed_precision_type.
17827 (type_for_clast_red): Use max_precision_type.
17828 (type_for_clast_bin): Same.
17829 (type_for_clast_for): Same.
17830
17831 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
17832
17833 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
17834 type_for_interval.
17835 (gcc_type_for_value): Renamed type_for_value.
17836 (gcc_type_for_clast_term): Renamed type_for_clast_term.
17837 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
17838 (gcc_type_for_clast_red): Renamed type_for_clast_red.
17839 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
17840 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
17841 (graphite_translate_clast_equation): Update calls.
17842 (compute_type_for_level): Renamed type_for_level.
17843 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
17844 (build_iv_mapping): Update calls.
17845 (graphite_create_new_loop_guard): Same.
17846
17847 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
17848
17849 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
17850 comment.
17851
17852 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
17853
17854 * graphite-clast-to-gimple.c (struct ivs_params): New.
17855 (clast_name_to_gcc): Use ivs_params to pass around parameters.
17856 (clast_to_gcc_expression): Same.
17857 (clast_to_gcc_expression_red): Same.
17858 (gcc_type_for_clast_term): Same.
17859 (gcc_type_for_clast_expr): Same.
17860 (gcc_type_for_clast_red): Same.
17861 (gcc_type_for_clast_bin): Same.
17862 (gcc_type_for_clast_eq): Same.
17863 (graphite_translate_clast_equation): Same.
17864 (graphite_create_guard_cond_expr): Same.
17865 (graphite_create_new_guard): Same.
17866 (graphite_create_new_loop): Same.
17867 (build_iv_mapping): Same.
17868 (translate_clast_user): Same.
17869 (graphite_create_new_loop_guard): Same.
17870 (translate_clast): Same.
17871 (translate_clast_for_loop): Same.
17872 (translate_clast_for): Same.
17873 (translate_clast_guard): Same.
17874 (initialize_cloog_names): Fix typo.
17875 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
17876
17877 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
17878
17879 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
17880 (new_clast_name_index): Add level parameter.
17881 (clast_name_to_level): New.
17882 (save_clast_name_index): Add level parameter.
17883 (newivs_to_depth_to_newiv): Removed.
17884 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
17885 (graphite_create_new_loop): Add level parameter. Pass level to
17886 save_clast_name_index.
17887 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
17888 (create_params_index): Pass level to save_clast_name_index.
17889
17890 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
17891
17892 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
17893 recompute type, lb, and ub. Get them from...
17894 (graphite_create_new_loop_guard): ...here. Pass in parameter
17895 pointers to type, lb, and ub.
17896 (translate_clast_for_loop): Update function calls.
17897 (translate_clast_for): Same.
17898
17899 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
17900
17901 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
17902 psct_dynamic_dim.
17903 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
17904 (gcc_type_for_iv_of_clast_loop): Update use of level.
17905 (gloog): Start counting nesting level from 0.
17906 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
17907 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
17908 psct_dynamic_dim on level.
17909
17910 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
17911
17912 * config/i386/i386.c (ix86_legitimize_address): Convert to
17913 Pmode if needed.
17914
17915 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
17916
17917 * config/i386/i386.c (function_value_64): Always return pointers
17918 in Pmode.
17919 (ix86_promote_function_mode): New.
17920 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
17921
17922 2011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17923
17924 PR tree-optimization/49749
17925 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
17926 remove no-longer-used maxrank variable.
17927
17928 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
17929
17930 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
17931
17932 2011-07-21 Jason Merrill <jason@redhat.com>
17933
17934 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
17935 * recog.h (struct insn_data_d): Check it instead of
17936 HAVE_DESIGNATED_INITIALIZERS.
17937 * genoutput.c (output_insn_data): Likewise.
17938
17939 2011-07-21 Richard Guenther <rguenther@suse.de>
17940
17941 PR tree-optimization/49770
17942 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
17943 valueized any operand. Renamed from ...
17944 (valueize_refs): ... this. New wrapper around valueize_refs_1.
17945 (valueize_shared_reference_ops_from_ref): Return whether we
17946 valueized any operand.
17947 (vn_reference_lookup): Only when we valueized any operand
17948 use the valueized reference for alias analysis. Do not preserve
17949 the original reference tree in this case.
17950
17951 2011-07-21 Uros Bizjak <ubizjak@gmail.com>
17952
17953 * config/i386/i386.c (ix86_decompose_address): Reject all but
17954 register operands and subregs of DImode hard registers in index.
17955
17956 2011-07-21 Kai Tietz <ktietz@redhat.com>
17957
17958 * fold-const.c (fold_unary_loc): Preserve indirect
17959 comparison cast to none-boolean type.
17960 * tree-ssa.c (useless_type_conversion_p): Preserve cast
17961 from/to boolean-type.
17962 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
17963 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
17964 * tree-cfg.c (verify_gimple_comparison): Check result
17965 type of comparison expression.
17966 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
17967 of condition result and disallow type-cast sinking into comparison.
17968
17969 2011-07-21 Richard Guenther <rguenther@suse.de>
17970
17971 * tree-ssa-forwprop.c (combine_conversions): Return whether
17972 we have to run cfg-cleanup. Properly remove dead stmts.
17973 (ssa_forward_propagate_and_combine): Adjust.
17974
17975 2011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
17976
17977 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
17978
17979 2011-07-21 Kai Tietz <ktietz@redhat.com>
17980
17981 * tree-ssa-propagate.c (substitute_and_fold): Use
17982 do_dce flag to deside, if BB's statements are scanned
17983 in last to first, or first to last order.
17984
17985 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
17986
17987 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
17988
17989 2011-07-20 H.J. Lu <hongjiu.lu@intel.com>
17990 Uros Bizjak <ubizjak@gmail.com>
17991 Richard Henderson <rth@redhat.com>
17992
17993 * config/i386/constraints.md (w): New.
17994
17995 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
17996 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
17997
17998 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
17999 instead of TARGET_64BIT.
18000
18001 * config/i386/i386.md (indirect_jump): Replace
18002 nonimmediate_operand with indirect_branch_operand.
18003 (*indirect_jump): Likewise. Replace constraint "m" with "w".
18004 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
18005 Convert operand 0 to Pmode for x32 if not PIC.
18006 (*tablejump_1): Replace nonimmediate_operand with
18007 indirect_branch_operand. Replace constraint "m" with "w".
18008 (*call_vzeroupper): Replace constraint "m" with "w".
18009 (*call): Likewise.
18010 (*call_rex64_ms_sysv_vzeroupper): Likewise.
18011 (*call_rex64_ms_sysv): Likewise.
18012 (*call_value_vzeroupper): Likewise.
18013 (*call_value): Likewise.
18014 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
18015 (*call_value_rex64_ms_sysv): Likewise.
18016 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
18017
18018 * config/i386/predicates.md (indirect_branch_operand): New.
18019 (call_insn_operand): Support x32.
18020
18021 2011-07-20 Michael Eager <eager@eagercon.com>
18022
18023 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
18024
18025 2011-07-20 Richard Henderson <rth@redhat.com>
18026
18027 * cfg.c (dump_bb_info): Dump basic_block->flags.
18028 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
18029
18030 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
18031
18032 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
18033 of DImode hard registers in index.
18034 (ix86_legitimate_address_p): Allow subregs of base and index to span
18035 more than a word. Assert that subregs of base and index satisfy
18036 register_no_elim_operand predicates. Reject addresses where
18037 base and index have different modes.
18038
18039 2011-07-20 Robert Millan <rmh@gnu.org>
18040
18041 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
18042
18043 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18044
18045 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
18046 removing now-unnecessary assignment.
18047
18048 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18049
18050 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
18051 memory address space to the type's address space.
18052
18053 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
18054
18055 PR target/36467
18056 PR target/49687
18057 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
18058 and expand appropriately if there is a CONST_INT in operand2.
18059 (usmulqihi3): New insn.
18060 (*sumulqihi3): New insn.
18061 (*osmulqihi3): New insn.
18062 (*oumulqihi3): New insn.
18063 (*muluqihi3.uconst): New insn_and_split.
18064 (*muluqihi3.sconst): New insn_and_split.
18065 (*mulsqihi3.sconst): New insn_and_split.
18066 (*mulsqihi3.uconst): New insn_and_split.
18067 (*mulsqihi3.oconst): New insn_and_split.
18068 (*ashifthi3.signx.const): New insn_and_split.
18069 (*ashifthi3.signx.const7): New insn_and_split.
18070 (*ashifthi3.zerox.const): New insn_and_split.
18071 (mulsqihi3): New insn.
18072 (muluqihi3): New insn.
18073 (muloqihi3): New insn.
18074 * config/avr/predicates.md (const_2_to_7_operand): New.
18075 (const_2_to_6_operand): New.
18076 (u8_operand): New.
18077 (s8_operand): New.
18078 (o8_operand): New.
18079 (s9_operand): New.
18080 (register_or_s9_operand): New.
18081
18082 2011-07-20 Kai Tietz <ktietz@redhat.com>
18083
18084 * builtins.c (fold_builtin_expect): See through the cast
18085 from truthvalue_type_node to long.
18086
18087 2011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
18088
18089 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
18090 where we can use them from the standard and altivec instruction
18091 sets, instead of always using the 3 operand VSX forms that require
18092 the destination to overlap one of the inputs.
18093 (vsx_fms*): Ditto.
18094 (vsx_fnma*): Ditto.
18095 (vsx_fnms*): Ditto.
18096
18097 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
18098 for DF types.
18099 (fmsdf4_fpr): Ditto.
18100 (nfmadf4_fpr): Ditto.
18101 (nfmsdf4_fpr): Ditto.
18102
18103 2011-07-20 Sandra Loosemore <sandra@codesourcery.com>
18104
18105 * genrecog.c (make_insn_sequence): Correct position numbering
18106 when filtering out match_scratch and match_dup.
18107
18108 2011-07-20 Richard Guenther <rguenther@suse.de>
18109
18110 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
18111 against already removed statements.
18112 (forward_propagate_into_comparison): Remove dead defining stmts.
18113 (forward_propagate_into_gimple_cond): Likewise.
18114 (forward_propagate_into_cond): Simplify.
18115 (ssa_forward_propagate_and_combine): Handle changed cfg from
18116 forward_propagate_into_comparison.
18117 * tree-ssa-phiopt.c (conditional_replacement): Use proper
18118 locations for newly built statements.
18119
18120 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
18121
18122 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
18123
18124 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18125
18126 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
18127 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
18128
18129 2011-07-20 Richard Guenther <rguenther@suse.de>
18130
18131 PR middle-end/18908
18132 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
18133 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
18134 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
18135
18136 2011-07-20 Vladimir Makarov <vmakarov@redhat.com>
18137
18138 * config/frv/frv.c (frv_register_move_cost): Define explicitly
18139 costs for subclasses of GR_REGS.
18140
18141 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
18142
18143 PR target/49780
18144 * config/i386/predicates.md (no_seg_addres_operand): No more special.
18145 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
18146 of DImode hard registers in base.
18147 (ix86_legitimate_address_p): Allow SImode and DImode base and index
18148 registers.
18149
18150 2011-07-20 Richard Guenther <rguenther@suse.de>
18151
18152 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
18153 (unify_nodes): Deal with that.
18154 (solve_graph): Likewise.
18155
18156 2011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
18157
18158 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
18159 canonicalize left operand from ZERO_EXTEND to AND.
18160
18161 2011-07-20 Anatoly Sokolov <aesok@post.ru>
18162
18163 * target.def (class_max_nregs): New hook.
18164 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
18165 * doc/tm.texi: Regenerate.
18166 * targhooks.c (default_class_max_nregs): New function.
18167 * targhooks.h (default_class_max_nregs): Declare.
18168 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
18169 x_ira_reg_class_min_nregs arrays to unsigned char.
18170 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
18171 hook instead of CLASS_MAX_NREGS macro.
18172 * reginfo.c (restore_register_info): Ditto.
18173 * ira-conflicts.c (process_regs_for_copy): Use
18174 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
18175 Change type rclass and aclass vars to reg_class_t.
18176 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
18177 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
18178 reg_class_t.
18179 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
18180 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
18181
18182 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
18183 * config/i386/i386.c (ix86_class_max_nregs): New function.
18184 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
18185 instead of CLASS_MAX_NREGS macro.
18186 (TARGET_CLASS_MAX_NREGS): Define.
18187 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
18188 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
18189 * config/avr/avr.c (class_max_nregs): Remove function.
18190 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
18191 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
18192 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
18193 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
18194 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
18195 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
18196 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
18197 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
18198 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
18199 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
18200 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
18201 * config/score/score.h (CLASS_MAX_NREGS): Remove.
18202 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
18203 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
18204 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
18205
18206 2011-07-19 Eric Botcazou <ebotcazou@adacore.com>
18207
18208 * cif-code.def (OVERWRITABLE): Fix typo and move around.
18209 (TARGET_OPTIMIZATION_MISMATCH): Delete.
18210 (EH_PERSONALITY): Fix typo.
18211 (NON_CALL_EXCEPTIONS): Fix message.
18212 (OPTIMIZATION_MISMATCH): Adjust message.
18213 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
18214
18215 2011-07-19 Ian Lance Taylor <iant@google.com>
18216
18217 * doc/install.texi (Configuration): Document
18218 --enable-build-poststage1-with-cxx.
18219
18220 2011-07-19 Robert Millan <rmh@gnu.org>
18221
18222 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
18223 (GLIBC_DYNAMIC_LINKER): Remove.
18224
18225 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
18226 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
18227 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
18228 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
18229 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
18230 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
18231
18232 * config/mips/linux.h: Remove everything except for ...
18233 (GLIBC_DYNAMIC_LINKER): ... this macro.
18234
18235 * config/mips/linux64.h: Remove everything except for ...
18236 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
18237 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
18238 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
18239 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
18240 (GNU_USER_LINK_EMULATIONN32): New macros.
18241
18242 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
18243 Use the new headers.
18244
18245 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
18246
18247 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
18248 Add offset_known_p and size_known_p fields.
18249 (MEM_OFFSET_KNOWN_P): Update accordingly.
18250 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
18251 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
18252 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
18253 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
18254 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
18255 (init_emit_regs): Likewise.
18256
18257 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
18258
18259 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
18260 (MEM_OFFSET): Change from returning an rtx to returning a
18261 HOST_WIDE_INT.
18262 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
18263 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
18264 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
18265 (clear_mem_offset): Declare.
18266 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
18267 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
18268 MEM_OFFSET to get a HOST_WIDE_INT offset.
18269 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
18270 (adjust_offset_for_component_ref): Take a bool "known_p"
18271 parameter and a HOST_WIDE_INT "offset" parameter.
18272 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
18273 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
18274 than an rtx. Use clear_mem_offset to clear the offset.
18275 * cfgcleanup.c (merge_memattrs): Likewise.
18276 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
18277 * function.c (assign_parm_find_stack_rtl): Likewise.
18278 (assign_parm_setup_stack): Likewise.
18279 * print-rtl.c (print_rtx): Likewise.
18280 * reload.c (find_reloads_subreg_address): Likewise.
18281 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
18282 * var-tracking.c (INT_MEM_OFFSET): Likewise.
18283 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
18284 (get_mem_align_offset): Likewise.
18285 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
18286 (clear_mem_offset): New function.
18287 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
18288 offset rather than an rtx. Assume both the expressio and offset
18289 are available.
18290 (r10k_needs_protection_p_1): Update accordingly, checking the
18291 expression and offset availability here instead.
18292
18293 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
18294
18295 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
18296 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
18297 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
18298 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
18299 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
18300 (clear_mem_size): Declare.
18301 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
18302 (clear_mem_size): New function.
18303 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
18304 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
18305 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
18306 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
18307 to clear the size.
18308 (nonoverlapping_memrefs_p): Likewise.
18309 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
18310 (expand_builtin_init_trampoline): Likewise.
18311 * calls.c (compute_argument_addresses): Likewise.
18312 * cfgcleanup.c (merge_memattrs): Likewise.
18313 * dce.c (find_call_stack_args): Likewise.
18314 * dse.c (record_store, scan_insn): Likewise.
18315 * dwarf2out.c (dw_sra_loc_expr): Likewise.
18316 * expr.c (emit_block_move_hints): Likewise.
18317 * function.c (assign_parm_find_stack_rtl): Likewise.
18318 * print-rtl.c (print_rtx): Likewise.
18319 * reload.c (find_reloads_subreg_address): Likewise.
18320 * rtlanal.c (may_trap_p_1): Likewise.
18321 * var-tracking.c (track_expr_p): Likewise.
18322 * varasm.c (assemble_trampoline_template): Likewise.
18323 * config/arm/arm.c (arm_print_operand): Likewise.
18324 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
18325 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
18326 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
18327 (expand_constant_setmem_prologue): Likewise.
18328 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
18329 * config/rs6000/rs6000.c (expand_block_move): Likewise.
18330 (adjacent_mem_locations): Likewise.
18331 * config/s390/s390.c (s390_expand_setmem): Likewise.
18332 (s390_expand_insv): Likewise.
18333 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
18334 (*extendqi<mode>2_short_displ): Likewise.
18335 * config/sh/sh.c (expand_block_move): Likewise.
18336 * config/sh/sh.md (extv, extzv): Likewise.
18337
18338 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
18339
18340 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
18341 (mem_attrs_htab_eq): ...here.
18342 (find_mem_attrs): Replace with...
18343 (set_mem_attrs): ...this function. Take a mem_attrs structure
18344 rather than individual fields.
18345 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
18346 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
18347 (set_mem_size, change_address, adjust_address_1, offset_address)
18348 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
18349 Update accordingly.
18350
18351 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
18352
18353 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
18354 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
18355 Provide a dummy definition of MEM_ADDR_SPACE for generators.
18356 (target_rtl): Add x_mode_mem_attrs.
18357 (mode_mem_attrs): New macro.
18358 (get_mem_attrs): New function.
18359 * emit-rtl.c (get_mem_attrs): Rename to...
18360 (find_mem_attrs): ...this.
18361 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
18362 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
18363 (set_mem_size, change_address, adjust_address_1, offset_address)
18364 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
18365 Update accordingly.
18366 (init_emit_regs): Initialize mode_mem_attrs.
18367
18368 2011-07-19 Richard Guenther <rguenther@suse.de>
18369
18370 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
18371 TRUTH_*_EXPR handling.
18372 * tree-ssa-operands.c (get_expr_operands): Likewise.
18373 * tree-ssa-pre.c (fully_constant_expression): Likewise.
18374 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
18375 Likewise.
18376 (is_and_or_or): Likewise.
18377 (is_norm_cond_subset_of): Likewise.
18378
18379 2011-07-19 Richard Guenther <rguenther@suse.de>
18380
18381 * tree.h (fold_build_pointer_plus_loc): New helper function.
18382 (fold_build_pointer_plus_hwi_loc): Likewise.
18383 (fold_build_pointer_plus): Define.
18384 (fold_build_pointer_plus_hwi): Likewise.
18385 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
18386 (fold_builtin_memory_op): Likewise.
18387 (fold_builtin_stpcpy): Likewise.
18388 (fold_builtin_memchr): Likewise.
18389 (fold_builtin_strstr): Likewise.
18390 (fold_builtin_strchr): Likewise.
18391 (fold_builtin_strrchr): Likewise.
18392 (fold_builtin_strpbrk): Likewise.
18393 (fold_builtin_strcat): Likewise.
18394 (expand_builtin_memory_chk): Likewise.
18395 (fold_builtin_memory_chk): Likewise.
18396 * c-typeck.c (build_unary_op): Likewise.
18397 * cgraphunit.c (thunk_adjust): Likewise.
18398 * fold-const.c (build_range_check): Likewise.
18399 (fold_binary_loc): Likewise.
18400 * omp-low.c (extract_omp_for_data): Likewise.
18401 (expand_omp_for_generic): Likewise.
18402 (expand_omp_for_static_nochunk): Likewise.
18403 (expand_omp_for_static_chunk): Likewise.
18404 * tree-affine.c (add_elt_to_tree): Likewise.
18405 * tree-data-ref.c (split_constant_offset_1): Likewise.
18406 * tree-loop-distribution.c (generate_memset_zero): Likewise.
18407 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
18408 * tree-predcom.c (ref_at_iteration): Likewise.
18409 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
18410 (add_to_parts): Likewise.
18411 (create_mem_ref): Likewise.
18412 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
18413 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
18414 (number_of_iterations_le): Likewise.
18415 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
18416 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
18417 (vect_create_addr_base_for_vector_ref): Likewise.
18418 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
18419 (vect_create_cond_for_alias_checks): Likewise.
18420 * tree-vrp.c (extract_range_from_assert): Likewise.
18421 * config/alpha/alpha.c (alpha_va_start): Likewise.
18422 (alpha_gimplify_va_arg_1): Likewise.
18423 * config/i386/i386.c (ix86_va_start): Likewise.
18424 (ix86_gimplify_va_arg): Likewise.
18425 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
18426 * config/mep/mep.c (mep_expand_va_start): Likewise.
18427 (mep_gimplify_va_arg_expr): Likewise.
18428 * config/mips/mips.c (mips_va_start): Likewise.
18429 (mips_gimplify_va_arg_expr): Likewise.
18430 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
18431 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
18432 (rs6000_gimplify_va_arg): Likewise.
18433 * config/s390/s390.c (s390_va_start): Likewise.
18434 (s390_gimplify_va_arg): Likewise.
18435 * config/sh/sh.c (sh_va_start): Likewise.
18436 (sh_gimplify_va_arg_expr): Likewise.
18437 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
18438 * config/spu/spu.c (spu_va_start): Likewise.
18439 (spu_gimplify_va_arg_expr): Likewise.
18440 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
18441 Likewise.
18442 (xstormy16_gimplify_va_arg_expr): Likewise.
18443 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
18444 (xtensa_gimplify_va_arg_expr): Likewise.
18445
18446 2011-07-19 Richard Guenther <rguenther@suse.de>
18447
18448 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
18449 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
18450 handling.
18451
18452 PR middle-end/18908
18453 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
18454 result of BIT_*_EXPR to bitfield precision.
18455
18456 2011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
18457
18458 PR tree-optimization/49742
18459 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
18460 as a potential write.
18461
18462 2011-07-19 Richard Guenther <rguenther@suse.de>
18463
18464 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
18465 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
18466 (forward_propagate_comparison): Simplify, remove obsolete code.
18467
18468 2011-07-19 Richard Guenther <rguenther@suse.de>
18469
18470 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
18471 BIT_XOR_EXPR, same as the RTL expander does.
18472 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
18473 (verify_gimple_assign_unary): Likewise.
18474 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
18475 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
18476 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
18477
18478 2011-07-19 Jakub Jelinek <jakub@redhat.com>
18479
18480 PR tree-optimization/49768
18481 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
18482 if offset is smaller than bitoffset, but offset+size is bigger
18483 than bitoffset.
18484
18485 2011-07-19 Ira Rosen <ira.rosen@linaro.org>
18486
18487 PR tree-optimization/49771
18488 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
18489 zero step, set segment length to the size of the data-ref's type.
18490
18491 2011-07-18 Martin Jambor <mjambor@suse.cz>
18492
18493 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
18494 comments.
18495 (ipcp_values_pool): Declare.
18496 (ipcp_sources_pool): Likewise.
18497 (ipcp_lattice): Changed to forward declaration.
18498 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
18499 cannot_devirtualize.
18500 (ipa_node_params): New fields descriptors, lattices, known_vals,
18501 clone_for_all_contexts and node dead, removed fields params and
18502 count_scale.
18503 (ipa_set_param_count): Removed.
18504 (ipa_get_param_count): Made to work with descriptors vector.
18505 (ipa_get_param): Updated.
18506 (ipa_param_cannot_devirtualize_p): Removed.
18507 (ipa_param_types_vec_empty): Likewise.
18508 (ipa_set_param_used): New function.
18509 (ipa_get_param_used): Updated to use descriptors vector.
18510 (ipa_func_list): Removed.
18511 (ipa_init_func_list): Removed declaration.
18512 (ipa_push_func_to_list_1): Likewise.
18513 (ipa_pop_func_from_list): Likewise.
18514 (ipa_push_func_to_list): Removed.
18515 (ipa_lattice_from_jfunc): Remove declaration.
18516 (ipa_get_jf_pass_through_result): Declare.
18517 (ipa_get_jf_ancestor_result): Likewise.
18518 (ipa_value_from_jfunc): Likewise.
18519 (ipa_get_lattice): Update.
18520 (ipa_lat_is_single_const): New function.
18521 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
18522 (ipa_init_func_list): Likewise.
18523 (ipa_pop_func_from_list): Likewise.
18524 (ipa_get_param_decl_index): Fix coding style.
18525 (count_formal_params): Removed.
18526 (count_formal_params_1): Renamed to count_formal_params.
18527 (ipa_populate_param_decls): Update to use descriptors vector.
18528 (ipa_initialize_node_params): Likewise.
18529 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
18530 (ipa_analyze_params_uses): Likewise.
18531 (ipa_free_node_params_substructures): Likewise and free also lattices
18532 and known values.
18533 (duplicate_array): Removed.
18534 (ipa_edge_duplication_hook): Add the new edge to the list of edge
18535 clones.
18536 (ipa_node_duplication_hook): Update to use new lattices.
18537 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
18538 (ipa_free_all_structures_after_iinln): Likewise.
18539 (ipa_write_node_info): Update to use new lattices.
18540 (ipa_read_node_info): Likewise.
18541 (ipa_get_jf_pass_through_result): New function.
18542 (ipa_get_jf_ancestor_result): Likewise.
18543 (ipa_value_from_jfunc): Likewise.
18544 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
18545 * ipa-cp.c: Reimplemented.
18546 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
18547 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
18548 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
18549 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
18550 * doc/invoke.texi (devirt-type-list-size): Removed description.
18551 (ipa-cp-value-list-size): Added description.
18552
18553 2011-07-18 Richard Henderson <rth@redhat.com>
18554
18555 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
18556 before calling create_basic_block.
18557
18558 2011-07-18 Jakub Jelinek <jakub@redhat.com>
18559
18560 PR middle-end/49675
18561 * tree.c (build_common_builtin_nodes): Register
18562 __builtin_return_address, __cyg_profile_func_enter
18563 and __cyg_profile_func_exit.
18564
18565 2011-07-18 Richard Henderson <rth@redhat.com>
18566
18567 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
18568 (add_labels_and_missing_jumps): ... here.
18569 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
18570
18571 2011-07-18 Uros Bizjak <ubizjak@gmail.com>
18572
18573 PR target/47744
18574 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
18575 of DImode hard registers in PLUS address chains.
18576
18577 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18578
18579 PR bootstrap/49769
18580 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
18581 (alpha*-*-freebsd*): Likewise.
18582 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
18583 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
18584 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
18585 crtprec80.o, crtfastmath.o to extra_parts for all targets.
18586 (ia64*-*-elf*): Remove extra_parts.
18587 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
18588 (sparc64-*-linux*): Likewise.
18589 (sparc64-*-freebsd*): Likewise.
18590
18591 Revert:
18592 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
18593 (ia64*-*-linux*): Likewise.
18594 (mips64*-*-linux*): Likewise.
18595 (mips*-*-linux*): Likewise.
18596
18597 2011-07-18 David Edelsohn <dje.gcc@gmail.com>
18598
18599 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
18600
18601 2011-07-18 Richard Guenther <rguenther@suse.de>
18602
18603 * gimplify.c (gimplify_expr): Use input_location, not saved_location
18604 when building new trees.
18605
18606 2011-07-18 Richard Guenther <rguenther@suse.de>
18607
18608 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
18609 expansion result to bitfield precision if required.
18610
18611 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18612
18613 * config.gcc (i[3456x]86-*-netware*): Remove.
18614
18615 * gthr-nks.h: Remove.
18616 * configure.ac (enable_threads): Remove nks.
18617 * configure: Regenerate.
18618
18619 * config/i386/i386.c (ix86_encode_section_info): Remove netware
18620 reference.
18621 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
18622 <netware.h> reference.
18623
18624 * config/i386/netware-libgcc.c,
18625 gcc/config/i386/netware-libgcc.def,
18626 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
18627 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
18628 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
18629 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
18630
18631 * doc/extend.texi (Function Attributes,
18632 callee_pop_aggregate_return): Remove i?86-netware reference.
18633 * doc/install.texi (Configuration, --enable-threads): Remove nks.
18634
18635 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18636
18637 PR target/49746
18638 Revert:
18639 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18640
18641 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
18642 patterns.
18643
18644 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
18645
18646 PR middle-end/49732
18647 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
18648
18649 2011-07-16 Matthias Klose <doko@ubuntu.com>
18650
18651 * doc/install.texi: Document --enable-static-libjava.
18652
18653 2011-07-15 Richard Henderson <rth@redhat.com>
18654
18655 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
18656 Replace all three arguments by returning a VEC of edges.
18657 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
18658 pointers and counts.
18659 (fix_edges_for_rarely_executed_code): Merge ...
18660 (rest_of_handle_partition_blocks): ... into...
18661 (partition_hot_cold_basic_blocks): ... here. Return todo items if
18662 any work was performed.
18663 (pass_partition_blocks): Clear todo_flags_finish.
18664
18665 2011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
18666 Jakub Jelinek <jakub@redhat.com>
18667 Jonathan Wakely <jwakely.gcc@gmail.com>
18668
18669 PR libstdc++/49745
18670 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
18671 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
18672
18673 2011-07-15 Jason Merrill <jason@redhat.com>
18674
18675 PR testsuite/49741
18676 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
18677 rather than --tool_opts.
18678
18679 2011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
18680
18681 * doc/plugins.texi (Building GCC plugins): gengtype needs its
18682 corresponding gtype.state.
18683
18684 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18685
18686 PR target/49723
18687 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
18688
18689 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
18690
18691 PR target/48220
18692 * doc/md.texi (Standard Names): Document window_save.
18693 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
18694 expand_debug_expr and expand_debug_source_expr. If the target has
18695 a window_save instruction, adjust the ENTRY_VALUE_EXP.
18696 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
18697 SSA_NAME_VAR is a parameter.
18698 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
18699 * var-tracking.c (parm_reg_t): New type and associated vector type.
18700 (windowed_parm_regs): New variable.
18701 (adjust_insn): If the target has a window_save instruction and this
18702 is the instruction, make its effect on parameter registers explicit.
18703 (next_non_note_insn_var_location): New function.
18704 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
18705 (vt_add_function_parameter): If the target has a window_save insn,
18706 adjust the incoming RTL and record that in windowed_parm_regs.
18707 (vt_finalize): Free windowed_parm_regs.
18708
18709 2011-07-15 Bernd Schmidt <bernds@codesourcery.com>
18710
18711 * doc/invoke.texi (C6X Options): New section.
18712 * doc/md.texi (TI C6X family): New section.
18713 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
18714 tic6x-*-uclinux.
18715 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
18716 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
18717 Provide C6X definitions.
18718 * config/c6x/c6x.md: New file.
18719 * config/c6x/constraints.md: New file.
18720 * config/c6x/predicates.md: New file.
18721 * config/c6x/c6x-sched.md.in: New file.
18722 * config/c6x/c6x-sched.md: New file.
18723 * config/c6x/gensched.sh: New file.
18724 * config/c6x/c6x-mult.md.in: New file.
18725 * config/c6x/genmult.sh: New file.
18726 * config/c6x/c6x-mult.md: New file.
18727 * config/c6x/sync.md: New file.
18728 * config/c6x/c6x-protos.h: New file.
18729 * config/c6x/sfp-machine.h: New file.
18730 * config/c6x/c6x.c: New file.
18731 * config/c6x/c6x.h: New file.
18732 * config/c6x/crti.s: New file.
18733 * config/c6x/crtn.s: New file.
18734 * config/c6x/lib1funcs.asm: New file.
18735 * config/c6x/c6x-modes.def: New file.
18736 * config/c6x/genopt.sh: New file.
18737 * config/c6x/c6x.opt: New file.
18738 * config/c6x/c6x-tables.opt: New file.
18739 * config/c6x/c6x-opts.h: New file.
18740 * config/c6x/c6x-isas.def: New file.
18741 * config/c6x/elf.h: New file.
18742 * config/c6x/elf-common.h: New file.
18743 * config/c6x/uclinux-elf.h: New file.
18744 * config/c6x/t-c6x: New file.
18745 * config/c6x/t-c6x-elf: New file.
18746 * config/c6x/t-c6x-uclinux: New file.
18747 * config/c6x/t-c6x-softfp: New file.
18748 * config/c6x/gtd.c: New file.
18749 * config/c6x/gtf.c: New file.
18750 * config/c6x/ltd.c: New file.
18751 * config/c6x/ltf.c: New file.
18752 * config/c6x/ged.c: New file.
18753 * config/c6x/gef.c: New file.
18754 * config/c6x/led.c: New file.
18755 * config/c6x/lef.c: New file.
18756 * config/c6x/eqd.c: New file.
18757 * config/c6x/eqf.c: New file.
18758 * config/c6x/libgcc-c6xeabi.ver: New file.
18759
18760 Revert
18761 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
18762 PR rtl-optimization/11320
18763 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
18764 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
18765 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
18766 current_sched_info->compute_jump_reg_dependencies. Record which
18767 registers are used and which registers are set by the jump.
18768 Clear deps->reg_conditional_sets after a barrier.
18769 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
18770 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
18771 (init_deps): Initialize reg_conditional_sets.
18772 (free_deps): Clear reg_conditional_sets.
18773 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
18774 Mark registers live on entry of the fallthrough block and conditionally
18775 set as set by the jump. Mark registers live on entry of non-fallthrough
18776 blocks as used by the jump.
18777 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
18778 Mark new parameters as unused.
18779
18780 2011-07-14 Andrew Pinski <pinskia@gmail.com>
18781
18782 PR tree-opt/49309
18783 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
18784 Use fold_build2_loc instead of build2.
18785 Use the correct type for the new tree.
18786
18787 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
18788
18789 PR rtl-optimization/11320
18790 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
18791 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
18792
18793 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
18794
18795 PR target/49487
18796 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
18797 of REG.
18798 (*rotw<mode>): Use const_int_operand for operand2.
18799 Use match_scatch for operand3.
18800 (*rotb<mode>): Ditto
18801 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
18802
18803 2011-07-14 Richard Guenther <rguenther@suse.de>
18804
18805 PR tree-optimization/49651
18806 * tree-ssa-structalias.c (get_constraint_for_1): Properly
18807 handle dereferences with subvariables.
18808
18809 2011-07-14 Richard Guenther <rguenther@suse.de>
18810
18811 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
18812 (fold_stmt_1): Do it here directly on gimple and as a first thing.
18813
18814 2011-07-14 Richard Guenther <rguenther@suse.de>
18815
18816 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
18817 not bool_var when folding bool_var != 1 or bool_var == 0.
18818
18819 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
18820
18821 * haifa-sched.c (schedule_insns): Remove outdated comment.
18822 (schedule_block): When computing a known value for TODO_SPEC,
18823 just set it rather than using logical operations.
18824 (try_ready): Likewise. Use a local variable rather than a
18825 pointer to TODO_SPEC. Reorder an if statement to move the
18826 easy case to the then block.
18827 * sched-deps.c (dep_spec_p): New static function.
18828 (update_dep): Use it to decide whether to call
18829 change_spec_dep_to_hard.
18830 (get_back_and_forw_lists): Use it.
18831 (sd_resolve_dep): Likewise.
18832 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
18833 (haifa_note_mem_dep): Likewise.
18834 (check_dep): Likewise.
18835 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
18836 (sched_free_deps): Free in two passes.
18837
18838 2011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
18839
18840 PR middle-end/49736
18841 * expr.c (all_zeros_p): Undo bogus part of last change.
18842
18843 2011-07-14 Matthias Klose <doko@ubuntu.com>
18844
18845 * doc/extend.texi (optimize attribute): Fix typo.
18846
18847 2011-07-14 Richard Guenther <rguenther@suse.de>
18848
18849 * gimplify.c (gimplify_expr): Only do required conversions.
18850
18851 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
18852
18853 PR target/43746
18854 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
18855 i.e. use default_elf_select_section.
18856 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
18857 (READONLY_DATA_SECTION_ASM_OP): Remove.
18858 (TARGET_ASM_NAMED_SECTION): Move from here...
18859 * config/avr/avr.c: ...to here.
18860 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
18861 (avr_asm_named_section): Make static.
18862
18863 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18864
18865 PR bootstrap/49739
18866 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
18867 and crtfastmath.o for Linux/x86.
18868
18869 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
18870
18871 * haifa-sched.c: Include "hashtab.h"
18872 (sched_no_dce): New global variable.
18873 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
18874 SHADOW_P): New macros.
18875 (last_clock_var, cycle_issued_insns): Move declarations.
18876 (must_backtrack): New static variable.
18877 (struct delay_pair): New structure.
18878 (delay_htab, delay_htab_i2): New static variables.
18879 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
18880 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
18881 functions.
18882 (dep_cost_1): If delay pairs exist, try to look up the insns and
18883 use the correct pair delay if we find them.
18884 (rank-for_schedule): Tweak priority for insns that must be scheduled
18885 soon to avoid backtracking.
18886 (queue_insn): Detect conditions which force backtracking.
18887 (ready_add): Likewise.
18888 (struct sched_block_state): Add member shadows_only_p.
18889 (struct haifa_save_data): New structure.
18890 (backtrack_queue): New static variable.
18891 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
18892 unschedule_insns_until, restore_last_backtrack_point,
18893 free_topmost_backtrack_point, free_backtrack_queue,
18894 estimate_insn_tick, estimate_shadow_tick): New functions.
18895 (prune_ready_list): New arg shadows_only_p. All callers changed.
18896 If true, remove everything that isn't SHADOW_P. Look up delay
18897 pairs and estimate ticks to avoid scheduling the first insn too early.
18898 (verify_shadows): New function.
18899 (schedule_block): Add machinery to enable backtracking.
18900 (sched_init): Take sched_no_dce into account when setting
18901 DF_LR_RUN_DCE.
18902 (free_delay_pairs): New function.
18903 (init_h_i_d): Initialize INSN_EXACT_TICK.
18904 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
18905 * sched-deps.c (sd_unresolve_dep): New function.
18906 * sched-int. (struct haifa_sched_info): New fields save_state
18907 and restore_state.
18908 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
18909 feeds_backtrack_insn and shadow_p.
18910 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
18911 (sched_no_dce): Declare variable.
18912 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
18913 sd_unresolve_dep): Declare functions.
18914 * modulo-sched.c (sms_sched_info): Clear the two new fields.
18915 * sched-rgn.c (rgn_const_sched_info): Likewise.
18916 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
18917 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
18918 (ebb_sched_info): Add them for the two new fields.
18919 (add_deps_for_risky_insns): Call add_delay_dependencies.
18920
18921 2011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
18922
18923 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
18924 Rename -mr11.
18925 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
18926 (rs6000_call_indirect_aix): Ditto.
18927 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
18928 (call_indirect_aix<ptrsize>_internal): Ditto.
18929 (call_indirect_aix<ptrsize>_nor11): Ditto.
18930 (call_indirect_aix<ptrsize>_internal2): Ditto.
18931 (call_value_indirect_aix<ptrsize>): Ditto.
18932 (call_value_indirect_aix<ptrsize>_internal): Ditto.
18933 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
18934 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
18935 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
18936
18937 2011-07-13 Jason Merrill <jason@redhat.com>
18938
18939 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
18940
18941 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18942
18943 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
18944 * config/spu/spu.md ("clrsb<mode>2"): New expander.
18945
18946 2011-07-13 Thomas Schwinge <thomas@schwinge.name>
18947
18948 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
18949 * configure: Regenerate.
18950
18951 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18952
18953 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
18954 (asm_file_start): Remove.
18955 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
18956 free_bb_for_insn around code that modifies insns before
18957 restarting df analysis.
18958
18959 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18960
18961 PR target/49541
18962 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
18963 (LINK_SPEC): ... here.
18964
18965 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
18966
18967 * haifa-sched.c (struct sched_block_state): New.
18968 (schedule_block): Move some local variables into such a structure.
18969
18970 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18971
18972 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
18973 * config/i386/t-crtpc: Remove.
18974 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
18975 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
18976 tmake_file.
18977 (x86_64-*-darwin*): Likewise.
18978 (i[34567]86-*-linux*): Likewise.
18979 (x86_64-*-linux*): Likewise.
18980
18981 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
18982 Handle -mpc32, -mpc64, -mpc80.
18983
18984 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18985
18986 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
18987 * config/alpha/t-crtfm: Remove.
18988 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
18989 * config/i386/t-crtfm: Remove.
18990 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
18991 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
18992 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
18993 * config/sparc/t-crtfm: Remove.
18994
18995 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
18996 (alpha*-*-freebsd*): Likewise.
18997 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
18998 (x86_64-*-darwin*): Likewise.
18999 (i[34567]86-*-linux*): Likewise.
19000 (x86_64-*-linux*): Likewise.
19001 (x86_64-*-mingw*): Likewise.
19002 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
19003 (ia64*-*-freebsd*): Likewise.
19004 (ia64*-*-linux*): Likewise.
19005 (mips64*-*-linux*): Likewise.
19006 (mips*-*-linux*): Likewise.
19007 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
19008 (sparc64-*-linux*): Likewise.
19009 (sparc64-*-freebsd*): Likewise.
19010
19011 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19012
19013 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
19014 * config/darwin-crt3.c: Move to ../libgcc/config.
19015 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
19016 ($(T)crt3$(objext)): Remove.
19017 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
19018 ($(T)crt2$(objext)): Remove.
19019 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
19020 (powerpc64-*-darwin*): Likewise.
19021
19022 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
19023
19024 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
19025
19026 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
19027 (addsi_1_zext): This.
19028
19029 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
19030
19031 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
19032 * doc/tm.texi: Regenerate.
19033 * target.def (mergeable_rodata_prefix): New defhookpod.
19034 * varasm.c (mergeable_string_section, mergeable_constant_section):
19035 Use it. Allocate name with alloca.
19036
19037 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
19038
19039 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
19040
19041 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
19042
19043 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
19044 overlap check.
19045
19046 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
19047
19048 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
19049 (count_type_elements): Delete.
19050 (complete_ctor_at_level_p): Declare.
19051 * expr.c (flexible_array_member_p): New function, split out from...
19052 (count_type_elements): ...here. Make static. Replace allow_flexarr
19053 parameter with for_ctor_p. When for_ctor_p is true, return the
19054 number of elements that should appear in the top-level constructor,
19055 otherwise return an estimate of the number of scalars.
19056 (categorize_ctor_elements): Replace p_must_clear with p_complete.
19057 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
19058 (complete_ctor_at_level_p): New function, borrowing union logic
19059 from old categorize_ctor_elements_1.
19060 (mostly_zeros_p): Return true if the constructor is not complete.
19061 (all_zeros_p): Update call to categorize_ctor_elements.
19062 * gimplify.c (gimplify_init_constructor): Update call to
19063 categorize_ctor_elements. Don't call count_type_elements.
19064 Unconditionally prevent clearing for variable-sized types,
19065 otherwise rely on categorize_ctor_elements to detect
19066 incomplete initializers.
19067
19068 2011-07-13 Richard Guenther <rguenther@suse.de>
19069
19070 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
19071 the final type is integral.
19072
19073 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
19074
19075 * sched-int.h (struct _dep): Add member cost.
19076 (DEP_COST, UNKNOWN_DEP_COST): New macros.
19077 * sched-deps.c (init_dep_1): Initialize DEP_COST.
19078 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
19079 (sched_change_pattern): Reset it for dependent insns.
19080
19081 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19082
19083 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
19084 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
19085 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
19086 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
19087 (CRT0_S, MCRT0_S): Remove.
19088 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
19089 Remove.
19090 (s-crt0): Remove.
19091 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
19092
19093 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
19094
19095 * cse.c (insert_with_costs): Put semi-colon after empty loop body
19096 on the next line.
19097 * emit-rtl.c (push_to_sequence): Likewise.
19098 * haifa-sched.c (max_issue): Likewise.
19099 * matrix-reorg.c (add_allocation_site): Likewise.
19100 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
19101 * reload.c (alternative_allows_const_pool_ref): Likewise.
19102 * sched-rgn.c (rgn_add_block): Likewise.
19103 (rgn_fix_recovery_cfg): Likewise.
19104 * tree.c (attribute_list_contained): Likewise.
19105
19106 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
19107
19108 * config/i386/i386.c: Tidy processor feature bitmasks.
19109 (m_P4_NOCONA): New.
19110
19111 2011-07-12 Andrew Pinski <pinskia@gmail.com>
19112
19113 PR rtl-opt/49474
19114 * cprop.c (find_implicit_sets): Correct the condition.
19115
19116 2011-07-12 Richard Henderson <rth@redhat.com>
19117
19118 PR target/49713
19119 * dwarf2out.h (dwarf_frame_regnum): Remove.
19120 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
19121 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
19122 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
19123 (execute_dwarf2_frame): Initialize them.
19124 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
19125 users of the macros with the variables.
19126 (expand_builtin_dwarf_sp_column): Revert last change.
19127 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
19128 result of DWARF_FRAME_REGNUM into a local variable.
19129
19130 2011-07-12 Richard Henderson <rth@redhat.com>
19131
19132 PR target/49714
19133 * config/i386/i386.c (x86_output_mi_thunk): Use
19134 machopic_indirect_call_target instead of machopic_indirection_name
19135 directly.
19136
19137 2011-07-12 Laurent GUERBY <laurent@guerby.net>
19138 Eric Botcazou <ebotcazou@adacore.com>
19139
19140 * prefix.h: Wrap up in extern "C" block.
19141
19142 2011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
19143
19144 AMD bdver2 Enablement
19145 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
19146 (case ${target}): Add bdver2.
19147 * config/i386/driver-i386.c (host_detect_local_cpu): Let
19148 -march=native recognize bdver2 processors.
19149 * config/i386/i386-c.c (ix86_target_macros_internal): Add
19150 bdver2 def_and_undef
19151 * config/i386/i386.c (struct processor_costs bdver2_cost): New
19152 bdver2 cost table.
19153 (m_BDVER2): New definition.
19154 (m_AMD_MULTIPLE): Includes m_BDVER2.
19155 (initial_ix86_tune_features): Add bdver2 tuning.
19156 (processor_target_table): Add bdver2 entry.
19157 (static const char *const cpu_names): Add bdver2 entry.
19158 (ix86_option_override_internal): Add bdver2 instruction sets.
19159 (ix86_issue_rate): Add bdver2.
19160 (ix86_adjust_cost): Add bdver2.
19161 (has_dispatch): Add bdver2.
19162 * config/i386/i386.h (TARGET_BDVER2): New definition.
19163 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
19164 (enum processor_type): Add PROCESSOR_BDVER2.
19165 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
19166 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
19167 description.
19168
19169 2011-07-12 Richard Henderson <rth@redhat.com>
19170
19171 PR target/49714
19172 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
19173 destination address in memory on some paths.
19174
19175 2011-07-12 Bernd Schmidt <bernds@codesourcery.com>
19176
19177 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
19178 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
19179 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
19180 * function.c (locate_and_pad_parm): Take it into account.
19181 * target.def (function_arg_round_boundary): New hook.
19182 * targhooks.c (default_function_arg_round_boundary): New function.
19183 * targhooks.h (default_function_arg_round_boundary): Declare.
19184 * doc/tm.texi: Regenerate.
19185
19186 2011-07-12 Richard Guenther <rguenther@suse.de>
19187
19188 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
19189 Do not perform no-op changes.
19190
19191 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
19192
19193 * config/arm/predicates.md (neon_struct_operand): Make a normal
19194 predicate.
19195 (neon_struct_or_register_operand): New predicate.
19196 * config/arm/neon.md (movmisalign<mode>): Replace predicates
19197 with neon_struct_or_register_operand.
19198 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
19199 neon_struct_operand instead of memory_operand.
19200
19201 2011-07-12 Martin Jambor <mjambor@suse.cz>
19202
19203 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
19204 * cgraph.c (cgraph_get_node_or_alias): Removed.
19205 (change_decl_assembler_name): Changed all calls to
19206 cgraph_get_node_or_alias to a call to cgraph_get_node.
19207 (cgraph_make_decl_local): Likewise.
19208 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
19209 * varasm.c (default_binds_local_p_1): Likewise.
19210 (decl_binds_to_current_def_p): Likewise.
19211
19212 2011-07-12 Jakub Jelinek <jakub@redhat.com>
19213
19214 PR tree-optimization/49712
19215 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
19216
19217 2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
19218
19219 * genautomata.c (add_arc): Return void. All callers changed.
19220 (make_automaton): Remove dead code.
19221
19222 2011-07-11 Richard Henderson <rth@redhat.com>
19223
19224 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
19225 (DW_FRAME_POINTER_REGNUM): New.
19226 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
19227 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
19228 (dwf_regno): New.
19229 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
19230 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
19231 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
19232 Use it.
19233 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
19234 * dwarf2out.h (dwarf_frame_regnum): New.
19235 (struct cfa_loc): Document the domain of the reg member.
19236
19237 2011-07-11 Uros Bizjak <ubizjak@gmail.com>
19238
19239 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
19240 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
19241
19242 2011-07-11 Jakub Jelinek <jakub@redhat.com>
19243
19244 PR debug/49676
19245 * dwarf2out.c (int_shift_loc_descriptor): New function.
19246 (int_loc_descriptor): If shorter, emit i as
19247 (i >> shift), shift, DW_OP_shl for suitable shift value.
19248 Similarly, try to optimize large negative values using
19249 DW_OP_neg of a positive value if shorter.
19250 (size_of_int_shift_loc_descriptor): New function.
19251 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
19252 changes.
19253 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
19254 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
19255 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
19256 is shorter.
19257 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
19258 addend as added DW_OP_plus if it is shorter.
19259
19260 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19261
19262 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
19263 (DTORS_SECTION_ASM_OP): Define.
19264
19265 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19266
19267 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
19268 * config/t-dfprules: Move to ../libgcc/config.
19269 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
19270 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
19271 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
19272 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
19273 Likewise.
19274 (i[34567]86-*-cygwin*): Likewise.
19275 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
19276 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
19277 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
19278 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
19279 D64PBIT_FUNCS, D128PBIT_FUNCS.
19280
19281 2011-07-11 Richard Guenther <rguenther@suse.de>
19282
19283 * tree-vrp.c (simplify_conversion_using_ranges): Manually
19284 translate the source value-range through the conversion chain.
19285
19286 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
19287
19288 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
19289
19290 2011-07-11 Arthur Loiret <aloiret@debian.org>
19291
19292 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
19293 a bi-arch compiler defaulting to 31-bit. In this case:
19294 (tmake_file): Add s390/t-linux64.
19295 * doc/install.texi: Add s390-linux to the list of targets supporting
19296 --enable-targets=all.
19297
19298 2011-07-11 Arthur Loiret <aloiret@debian.org>
19299 Matthias Klose <doko@debian.org>
19300
19301 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
19302 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
19303 (tm_file): Add mips/linux64.h.
19304 (tmake_file): Add mips/t-linux64.
19305 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
19306 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
19307 instead of hardcoded mabi=n32.
19308 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
19309 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
19310 convention.
19311
19312 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19313
19314 * passes.c (init_optimization_passes): Add invariant motion pass
19315 after induction variable optimization.
19316
19317 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
19318
19319 PR target/39633
19320 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
19321 offsets 1..5 set cc0 in a usable way.
19322
19323 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
19324
19325 * tree.h (call_expr_arg): Remove.
19326 (call_expr_argp): Likewise.
19327
19328 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
19329
19330 * config/sparc/sparc.md (save_register_window_1): Rename to...
19331 (window_save): ...this.
19332 * config/sparc/sparc.c (emit_save_register_window): Rename to...
19333 (emit_window_save): ...this.
19334 (sparc_expand_prologue): Adjust to above renaming.
19335
19336 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
19337
19338 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
19339 of movabs for x32.
19340
19341 2011-07-10 Richard Henderson <rth@redhat.com>
19342
19343 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
19344 run final, instead of emitting text directly.
19345
19346 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
19347
19348 * config/i386/i386.c (ix86_option_override_internal): Turn on
19349 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
19350 small PIC models for TARGET_X32.
19351
19352 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
19353
19354 PR target/49684
19355 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
19356 $(LIBGCC2_CFLAGS).
19357
19358 PR bootstrap/49680
19359 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
19360 stray notes and debug insns by using prev_nonnote_nondebug_insn
19361 instead of PREV_INSN.
19362
19363 2011-07-09 Richard Henderson <rth@redhat.com>
19364
19365 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
19366 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
19367 * dwarf2out.c: ... here.
19368 (output_all_cfis): Remove.
19369 (dwarf2out_switch_text_section): Use output_cfis directly.
19370 (size_of_locs): Export.
19371 (output_loc_sequence, output_loc_sequence_raw): Export.
19372 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
19373 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
19374 output_cfa_loc_raw): Move to ...
19375 * dwarfcfi.c: ... here.
19376 * dwarf2out.h: Update decls.
19377
19378 2011-07-09 Richard Henderson <rth@redhat.com>
19379
19380 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
19381 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
19382 * dwarf2cfi.c: ... here.
19383 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
19384 (DWARF_ROUND, DWARF_CIE_ID): Remove.
19385 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
19386 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
19387 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
19388
19389 2011-07-09 Richard Henderson <rth@redhat.com>
19390
19391 * dwarf2cfi.c (cie_return_save): New.
19392 (queue_reg_save): Use compare_reg_or_pc.
19393 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
19394 (dwarf2out_frame_debug_expr): Likewise.
19395 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
19396 (initial_return_save): Likewise.
19397 (execute_dwarf2_frame): Save and restore initial return save from
19398 the cie to the fde.
19399 * config/mips/mips.c (mips_frame_set): Remove special case for
19400 DWARF_FRAME_RETURN_COLUMN.
19401
19402 2011-07-09 Richard Henderson <rth@redhat.com>
19403
19404 * dwarf2cfi.c (lookup_cfa): Remove.
19405 (execute_dwarf2_frame): Assert queues are empty on entry.
19406 Setup initial cfa directly, not via lookup_cfa.
19407 Don't clear args_size state here.
19408
19409 2011-07-09 Richard Henderson <rth@redhat.com>
19410
19411 * dwarf2cfi.c (add_cfi_vec): New.
19412 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
19413 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
19414 (execute_dwarf2_frame): Set add_cfi_vec.
19415
19416 2011-07-09 Richard Henderson <rth@redhat.com>
19417
19418 * defaults.h (ASM_COMMENT_START): Move here...
19419 * dwarf2asm.c: ... from here.
19420 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
19421 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
19422 * varasm.c: Likewise.
19423
19424 2011-07-09 Richard Henderson <rth@redhat.com>
19425
19426 PR debug/49686
19427 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
19428 (create_cfi_notes): ... do it here instead.
19429
19430 2011-07-09 Jakub Jelinek <jakub@redhat.com>
19431
19432 PR debug/49676
19433 * dwarf2out.c (size_of_int_loc_descriptor): New function.
19434 (address_of_int_loc_descriptor): Use it.
19435 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
19436
19437 2011-07-09 Richard Henderson <rth@redhat.com>
19438
19439 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
19440 (prologue, epilogue): New.
19441 (return, *rts): New.
19442 (blockage, setd, seti): New.
19443 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
19444 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
19445 (pdp11_saved_regno): New.
19446 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
19447 generate rtl instead of text.
19448 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
19449 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
19450 * config/pdp11/pdp11-protos.h: Update.
19451
19452 2011-07-09 Richard Henderson <rth@redhat.com>
19453
19454 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
19455 try to insert an rtl prologue here.
19456 (rs6000_output_function_epilogue): Similarly.
19457 * config/rs6000/rs6000.md (prologue): Emit a barrier to
19458 satisfy !TARGET_SCHED_PROLOG.
19459 (epilogue, sibcall_epilogue): Likewise.
19460
19461 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
19462
19463 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
19464 (FP_REG_P): Delete.
19465 (IN_OR_GLOBAL_P): Likewise.
19466
19467 2011-07-08 Jason Merrill <jason@redhat.com>
19468
19469 PR c++/45437
19470 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
19471 compound assignment.
19472
19473 * cgraph.c (cgraph_add_to_same_comdat_group): New.
19474 * cgraph.h: Declare it.
19475 * ipa.c (function_and_variable_visibility): Make sure thunks
19476 have the right visibility.
19477
19478 2011-07-08 Richard Henderson <rth@redhat.com>
19479
19480 PR bootstrap/49680
19481 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
19482 any tablejump vector.
19483
19484 PR bootstrap/49680
19485 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
19486 end of the prologue.
19487
19488 2011-07-08 Jakub Jelinek <jakub@redhat.com>
19489
19490 PR target/49621
19491 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
19492 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
19493 * config/rs6000/vector.md (vector_select_<mode>,
19494 vector_select_<mode>_uns): Change second operand of NE to
19495 CONST0_RTX (<MODE>mode) instead of const0_rtx.
19496 * config/rs6000/altivec.md (*altivec_vsel<mode>,
19497 *altivec_vsel<mode>_uns): Expect second operand of NE to be
19498 zero_constant of the corresponding vector mode.
19499 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
19500 Likewise.
19501
19502 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
19503
19504 * graphite-dependences.c (build_alias_set_powerset): Remove
19505 continue from loop, add one more assert.
19506
19507 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
19508
19509 PR target/46779
19510 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
19511 In particular, allow 8-bit values in r28 and r29.
19512 (avr_hard_regno_scratch_ok): Disallow any register that might be
19513 part of the frame pointer.
19514 (avr_hard_regno_rename_ok): Same.
19515 (avr_legitimate_address_p): Don't allow SUBREGs.
19516
19517 2011-07-08 Julian Brown <julian@codesourcery.com>
19518
19519 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
19520 big-endian mode.
19521 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
19522 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
19523 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
19524 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
19525 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
19526 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
19527 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
19528 registers in big-endian mode.
19529
19530 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
19531
19532 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
19533 in terms of another.
19534 (write_attr_value): Write a cast if necessary.
19535
19536 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
19537 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
19538 (REG_WORDS_BIG_ENDIAN): Document.
19539 * doc/tm.texi: Regenerate.
19540 * reload.c (operands_match_p): Take it into account.
19541 (reload_adjust_reg_for_mode): Likewise.
19542 * rtlanal.c (subreg_get_info): Likewise.
19543
19544 2011-07-08 Richard Guenther <rguenther@suse.de>
19545
19546 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
19547 folding.
19548
19549 2011-07-08 Kai Tietz <ktietz@redhat.com>
19550
19551 * fold-const.c (fold_truth_andor): Factored out truth_andor
19552 label from fold_binary as function.
19553 (fold_binary_loc): Replace truth_andor lable
19554 by function fold_truth_andor.
19555
19556 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
19557
19558 PR middle-end/49519
19559 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
19560 check if address is stored in register. If so - give up.
19561 (check_sibcall_argument_overlap_1): Do not perform check of
19562 overlapping when it is call to address.
19563
19564 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
19565
19566 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
19567 of magic '31'.
19568
19569 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
19570
19571 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
19572 GET_MODE_BITSIZE where appropriate.
19573 (widen_leading, expand_parity, expand_ctz, expand_ffs,
19574 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
19575 expand_float, expand_fix): Likewise.
19576 * expr.c (convert_move, convert_modes, expand_expr_real_2,
19577 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
19578 * stor-layout.c (get_mode_bounds): Likewise.
19579 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
19580 Likewise.
19581 * convert.c (convert_to_integer): Likewise.
19582 * expmed.c (expand_shift_1): Likewise.
19583
19584 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
19585 a bitsize.
19586
19587 * optabs.c (expand_binop): Tighten conditions for doubleword
19588 expansions.
19589 (widen_bswap): Assert that mode bitsize and precision are the same.
19590 * stor-layout.c (get_best_mode): Skip modes that have lower
19591 precision than bitsize.
19592 * recog.c (simplify_while_replacing): Assert that bitsize and
19593 precision are the same.
19594
19595 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19596
19597 * Makefile.in (LIBGCOV): Remove.
19598 (libgcc.mvars): Remove LIBGCOV.
19599 * libgov.c: Move to ../libgcc.
19600
19601 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19602
19603 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
19604
19605 2011-07-08 Martin Jambor <mjambor@suse.cz>
19606
19607 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
19608 is too big for total scalarization.
19609
19610 2011-07-07 Richard Henderson <rth@redhat.com>
19611
19612 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
19613 (DBX_DEBUGGING_INFO): Undef.
19614
19615 2011-07-07 Richard Henderson <rth@redhat.com>
19616
19617 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
19618 Handle some opcodes specially for debugging.
19619 * print-rtl.c: Include dwarf2out.h
19620 (print_rtx): Handle NOTE_INSN_CFI.
19621 * Makefile.in (print-rtl.o): Update.
19622
19623 2011-07-07 Richard Henderson <rth@redhat.com>
19624
19625 * tree-pass.h (pass_dwarf2_frame): Declare.
19626 * passes.c (init_optimization_passes): Add it.
19627 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
19628 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
19629 make static, do not call add_cfis_to_fde.
19630 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
19631 dwarf2out_frame_init): Merge into...
19632 (execute_dwarf2_frame): ... here. New function.
19633 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
19634 saved_do_cfi_asm to a tri-state variable.
19635 (gate_dwarf2_frame, pass_dwarf2_frame): New.
19636 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
19637 if it has yet to be done. Don't call dwarf2cfi_function_init.
19638 * dwarf2out.h, debug.h: Update decls.
19639 * final.c (final_start_function): Don't call
19640 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
19641 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
19642 * toplev.c (lang_dependent_init): Likewise.
19643
19644 2011-07-07 Richard Henderson <rth@redhat.com>
19645
19646 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
19647 FDE_TABLE_INCREMENT): Replace with...
19648 (fde_vec): ... this, a new vector.
19649 (current_fde): Remove. Replace all users with cfun->fde.
19650 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
19651 (size_of_aranges, dwarf2out_finish): Likewise.
19652 (dwarf2out_alloc_current_fde): Break out from ...
19653 (dwarf2out_begin_prologue): ... here.
19654 (dwarf2out_frame_init): Remove.
19655 * dwarf2cfi.c: Update all users of current_fde.
19656 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
19657 * dwarf2out.h: Update decls.
19658 (dw_fde_node): Add fde_index member.
19659 * function.h (struct function): Add fde member.
19660
19661 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
19662 Richard Henderson <rth@redhat.com>
19663
19664 * dwarf2cfi.c (add_cfi): Remove.
19665 (dwarf2out_cfi_label): Remove force argument. Only generate the
19666 label name.
19667 (add_fde_cfi): Simplify the different code paths.
19668 (add_cie_cfi): New.
19669 (old_cfa, old_cfa_remember): New.
19670 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
19671 (last_reg_save_label): Remove.
19672 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
19673 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
19674 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
19675 dwarf2out_frame_debug_cfa_expression,
19676 dwarf2out_frame_debug_cfa_restore,
19677 dwarf2out_frame_debug_cfa_window_save,
19678 dwarf2out_frame_debug_expr): Remove label parameter.
19679 (cfi_label_required_p, add_cfis_to_fde): New.
19680 (dwarf2out_frame_debug_after_prologue): New.
19681 (dwarf2cfi_frame_init): Initialize old_cfa.
19682 (dwarf2out_frame_debug_restore_state): Likewise.
19683 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
19684 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
19685 * final.c (final_start_function): Call
19686 dwarf2out_frame_debug_after_prologue.
19687
19688 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
19689 Richard Henderson <rth@redhat.com>
19690
19691 * dwarf2cfi.c (cfi_insn): New.
19692 (dwarf2out_cfi_label): Don't emit cfi label here.
19693 (add_fde_cfi): Create a NOTE_INSN_CFI.
19694 (dwarf2out_frame_debug): Setup cfi_insn.
19695 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
19696 (dwarf2out_cfi_begin_epilogue): Make static.
19697 (dwarf2out_frame_debug_restore_state): Make static.
19698 * dwarf2out.c (output_cfi_directive): Make static.
19699 (dwarf2out_emit_cfi): New.
19700 * dwarf2out.h: Update.
19701 * final.c (final): Remove CFI notes.
19702 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
19703 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
19704 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
19705 * insn-notes.def (NOTE_INSN_CFI): New.
19706 (NOTE_INSN_CFI_LABEL): New.
19707 * rtl.h (union rtunion_def): Add rt_cfi member.
19708 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
19709
19710 2011-07-07 Richard Henderson <rth@redhat.com>
19711
19712 * dwarf2cfi.c: New file.
19713 * Makefile.in (OBJS): Add it.
19714 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
19715 * gengtype.c (open_base_files): Include dwarf2out.h.
19716 * coretypes.h (enum var_init_status): Move from ...
19717 * rtl.h: ... here.
19718 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
19719 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
19720 expand_builtin_dwarf_sp_column, init_return_column_size,
19721 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
19722 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
19723 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
19724 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
19725 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
19726 compute_barrier_args_size, dwarf2out_args_size,
19727 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
19728 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
19729 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
19730 queue_reg_save, dwarf2out_flush_queued_reg_saves,
19731 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
19732 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
19733 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
19734 dwarf2out_frame_debug_cfa_expression,
19735 dwarf2out_frame_debug_cfa_restore,
19736 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
19737 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
19738 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
19739 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
19740 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
19741 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
19742 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
19743 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
19744 dw_loc_descr_node): Move to dwarf2out.h.
19745 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
19746 mem_loc_descriptor): Export.
19747 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
19748 (dwarf2out_frame_init): Extract CIE generation code to
19749 dwarf2cfi_frame_init.
19750
19751 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
19752
19753 PR target/49660
19754 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
19755 MASK_V8PLUS, remove commented out flag and reorder.
19756
19757 2011-07-07 Jakub Jelinek <jakub@redhat.com>
19758
19759 PR c/49644
19760 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
19761 one non-complex and one complex argument, call c_save_expr on both
19762 operands.
19763
19764 2011-07-07 Martin Jambor <mjambor@suse.cz>
19765
19766 PR middle-end/49495
19767 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
19768 (verify_cgraph_node): Some functinality moved to
19769 verify_edge_corresponds_to_fndecl, call it.
19770
19771 2011-07-07 Joseph Myers <joseph@codesourcery.com>
19772
19773 * config.gcc (*local*): Remove.
19774 * doc/install-old.texi: Don't mention local configurations.
19775
19776 2011-07-07 Jakub Jelinek <jakub@redhat.com>
19777
19778 PR debug/49522
19779 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
19780 referencing debug insns that have been reset.
19781 (dead_debug_insert_before): Don't assert reg is non-NULL,
19782 instead return immediately if it is NULL.
19783
19784 2011-07-07 Joseph Myers <joseph@codesourcery.com>
19785
19786 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
19787
19788 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
19789
19790 * hw-doloop.c: New file.
19791 * hw-doloop.h: New file.
19792 * Makefile.in (OBJS): Add hw-doloop.o.
19793 (hw-doloop.o): New rule.
19794 ($(obj_out_file)): Add hw-doloop.h dependency.
19795 * config/bfin/bfin.c: Include "hw-doloop.h".
19796 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
19797 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
19798 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
19799 type changed to hwloop_info. Return bool, true if the loop was
19800 successfully optimized. Remove code that was moved to
19801 hw-doloop.c, and adjust other parts.
19802 (hwloop_fail): New static function, containing parts that used
19803 to be in bfin_optimize_loop.
19804 (bfin_discover_loop, bfin_discover_loops, free_loops,
19805 bfin_reorder_loops): Remove.
19806 (hwloop_pattern_reg): New static function.
19807 (bfin_doloop_hooks): New variable.
19808 (bfin_reorg_loops): Remove most code, call reorg_loops.
19809 * config/bfin/bfin.md (doloop_end splitter): Also enable if
19810 loop counter is a memory_operand.
19811
19812 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
19813
19814 * config.gcc: Support --with-multilib-list for x86 Linux targets.
19815
19816 * configure.ac: Mention x86-64 for --with-multilib-list.
19817 * configure: Regenerated.
19818
19819 * config/i386/gnu-user64.h (SPEC_64): Support x32.
19820 (SPEC_32): Likewise.
19821 (ASM_SPEC): Likewise.
19822 (LINK_SPEC): Likewise.
19823 (TARGET_THREAD_SSP_OFFSET): Likewise.
19824 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
19825 (SPEC_X32): New.
19826
19827 * config/i386/i386.h (TARGET_X32): New.
19828 (TARGET_LP64): New.
19829 (LONG_TYPE_SIZE): Likewise.
19830 (POINTER_SIZE): Likewise.
19831 (POINTERS_EXTEND_UNSIGNED): Likewise.
19832 (OPT_ARCH64): Support x32.
19833 (OPT_ARCH32): Likewise.
19834
19835 * config/i386/i386.opt (mx32): New.
19836
19837 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
19838 (GLIBC_DYNAMIC_LINKERX32): Likewise.
19839 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
19840 (GLIBC_DYNAMIC_LINKERX32): Likewise.
19841
19842 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
19843 (BIONIC_DYNAMIC_LINKERX32): Likewise.
19844 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
19845
19846 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
19847
19848 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
19849
19850 * doc/invoke.texi: Document -mx32.
19851
19852 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
19853
19854 * doc/invoke.texi (mwords-little-endian): Deprecate.
19855 * config/arm/arm.opt (mwords-little-endian): Likewise.
19856 * config/arm/arm.c (arm_option_override): Warn about the deprecation
19857 of -mwords-little-endian.
19858
19859 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
19860
19861 * reload1.c (choose_reload_regs): Use mode sizes to check whether
19862 an old reload register completely defines the required value.
19863
19864 2011-07-07 Richard Guenther <rguenther@suse.de>
19865
19866 * fold-const.c (fold_unary_loc): Do not strip sign-changes
19867 for NEGATE_EXPR.
19868
19869 2011-07-07 Richard Guenther <rguenther@suse.de>
19870
19871 * tree-vrp.c (simplify_conversion_using_ranges): New function.
19872 (simplify_stmt_using_ranges): Call it.
19873
19874 2011-07-07 Kai Tietz <ktietz@redhat.com>
19875
19876 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
19877 (lookup_logical_inverted_value): Likewise.
19878 (simplify_bitwise_binary_1): Likewise.
19879 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
19880
19881 2011-07-07 Joseph Myers <joseph@codesourcery.com>
19882
19883 * gcc.c (%[Spec]): Don't document.
19884 (struct spec_list): Update comment.
19885 (do_spec_1): Don't handle %[Spec].
19886 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
19887
19888 2011-07-07 Joseph Myers <joseph@codesourcery.com>
19889
19890 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
19891 default based on TARGET_ASM_NAMED_SECTION.
19892 * common/common-target.def (have_named_sections): Default to true.
19893 * common/config/default-common.c: Don't include tm.h.
19894 * common/config/picochip/picochip-common.c
19895 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
19896 * common/config/m32c/m32c-common.c: Remove.
19897 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
19898 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
19899 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
19900 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
19901 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
19902 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
19903 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
19904
19905 2011-07-07 Jakub Jelinek <jakub@redhat.com>
19906
19907 PR middle-end/49640
19908 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
19909 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
19910
19911 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19912
19913 PR libmudflap/49550
19914 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
19915
19916 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19917
19918 PR target/39150
19919 * configure.ac (gcc_cv_as_hidden): Also accept
19920 x86_64-*-solaris2.1[0-9]*.
19921 (gcc_cv_as_cfi_directive): Likewise.
19922 (gcc_cv_as_comdat_group_group): Likewise.
19923 (set_have_as_tls): Likewise.
19924 * configure: Regenerate.
19925 * config.gcc (i[34567]86-*-solaris2*): Also handle
19926 x86_64-*-solaris2.1[0-9]*.
19927 * config.host (i[34567]86-*-solaris2*): Likewise.
19928 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
19929 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
19930 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
19931 (TARGET_LD_EMULATION): Use it.
19932 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
19933 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
19934 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
19935 (ASM_CPU64_DEFAULT_SPEC): Define.
19936 (ASM_CPU_SPEC): Use %(asm_cpu_default).
19937 (ASM_SPEC): Redefine.
19938 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
19939 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
19940 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
19941 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
19942 configuration.
19943 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
19944
19945 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19946
19947 * config/sol2.h (ASM_SPEC): Split into ...
19948 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
19949 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
19950 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
19951 (ASM_SPEC): Use ASM_SPEC_BASE.
19952 * config/sparc/sol2.h (ASM_SPEC): Redefine.
19953
19954 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
19955
19956 * config/avr/avr.md (*reload_insi): Change predicate #1 to
19957 const_int_operand. Ditto for peep2 producing this insn.
19958 Add argument to output_reload_insisf call.
19959 (*movsi,*movsf): Add argument to output_movsisf call.
19960 (*reload_insf): New insn and new peep2 to produce it.
19961 * config/avr/avr-protos.h (output_movsisf): Change prototype.
19962 (output_reload_insisf): Change prototype.
19963 * config/avr/avr.c (avr_asm_len): New function.
19964 (output_reload_insisf): Rewrite.
19965 (output_movsisf): Change prototype. output_reload_insisf for
19966 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
19967 (adjust_insn_length): Add argument to output_movsisf and
19968 output_reload_insisf call.
19969
19970 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
19971
19972 * emit-rtl.c (paradoxical_subreg_p): New function.
19973 * rtl.h (paradoxical_subreg_p): Declare.
19974 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
19975 apply_distributive_law, simplify_comparison, simplify_set): Use it.
19976 * cse.c (record_jump_cond, cse_insn): Likewise.
19977 * expr.c (force_operand): Likewise.
19978 * rtlanal.c (num_sign_bit_copies1): Likewise.
19979 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
19980 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
19981 (push_reload): Use precision to check for paradoxical subregs.
19982 * expmed.c (extract_bit_field_1): Likewise.
19983
19984 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
19985 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
19986 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
19987 simplify_set, simplify_logical, expand_compound_operation,
19988 make_extraction, force_to_mode, if_then_else_cond, extended_count,
19989 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
19990 record_value_for_reg): Likewise.
19991 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
19992 * simplify-rtx. c (simplify_unary_operation_1,
19993 simplify_binary_operation_1, simplify_const_relational_operation):
19994 Likewise.
19995
19996 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
19997 instead of GET_MODE_BITSIZE where appropriate.
19998 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
19999 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
20000 init_num_sign_bit_copies_in_rep): Likewise.
20001 * cse.c (fold_rtx, cse_insn): Likewise.
20002 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
20003 * simplify-rtx.c (simplify_unary_operation_1,
20004 simplify_const_unary_operation, simplify_binary_operation_1,
20005 simplify_const_binary_operation, simplify_ternary_operation,
20006 simplify_const_relational_operation, simplify_subreg): Likewise.
20007 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
20008 simplify_if_then_else, simplify_set, expand_compound_operation,
20009 expand_field_assignment, make_extraction, if_then_else_cond,
20010 make_compound_operation, force_to_mode, make_field_assignment,
20011 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
20012 extended_count, try_widen_shift_mode, simplify_shift_const_1,
20013 simplify_comparison, record_promoted_value, simplify_compare_const,
20014 record_dead_and_set_regs_1): Likewise.
20015
20016 Revert:
20017 * simplify-rtx.c (simplify_const_binary_operation): Use the
20018 shift_truncation_mask hook instead of performing modulo by width.
20019 Compare against mode precision, not bitsize.
20020 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
20021 Use shift_truncation_mask instead of constructing the value manually.
20022
20023 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
20024
20025 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
20026 declaration.
20027 (rs6000_save_toc_in_prologue_p): Ditto.
20028
20029 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
20030 up the static chain (r11) during indirect function calls.
20031 (-msave-toc-indirect): New undocumented debug switch.
20032
20033 * config/rs6000/rs6000.c (struct machine_function): Add
20034 save_toc_in_prologue field to note whether the prologue needs to
20035 save the TOC value in the reserved stack location.
20036 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
20037 to save the TOC in the prologue, do so.
20038 (rs6000_trampoline_init): Don't allow creating AIX style
20039 trampolines if -mno-r11 is in effect.
20040 (rs6000_call_indirect_aix): New function to create AIX style
20041 indirect calls, adding support for -mno-r11 to suppress loading
20042 the static chain, and saving the TOC in the prologue instead of
20043 the call body.
20044 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
20045 TOC in the prologue.
20046
20047 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
20048 register numbers.
20049 (TOC_REGNUM): Ditto.
20050 (STATIC_CHAIN_REGNUM): Ditto.
20051 (ARG_POINTER_REGNUM): Ditto.
20052 (SFP_REGNO): Delete, unused.
20053 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
20054 function descriptor offsets.
20055 (TOC_SAVE_OFFSET_64BIT): Ditto.
20056 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
20057 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
20058 (AIX_FUNC_DESC_SC_32BIT): Ditto.
20059 (AIX_FUNC_DESC_SC_64BIT): Ditto.
20060 (ptrload): New mode attribute for the appropriate load of a pointer.
20061 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
20062 (call_indirect_aix64): Ditto.
20063 (call_value_indirect_aix32): Ditto.
20064 (call_value_indirect_aix64): Ditto.
20065 (call_indirect_nonlocal_aix32_internal): Ditto.
20066 (call_indirect_nonlocal_aix32): Ditto.
20067 (call_indirect_nonlocal_aix64_internal): Ditto.
20068 (call_indirect_nonlocal_aix64): Ditto.
20069 (call): Rewrite AIX indirect function calls. Add support for
20070 eliminating the static chain, and for moving the save of the TOC
20071 to the function prologue.
20072 (call_value): Ditto.
20073 (call_indirect_aix<ptrsize>): Ditto.
20074 (call_indirect_aix<ptrsize>_internal): Ditto.
20075 (call_indirect_aix<ptrsize>_internal2): Ditto.
20076 (call_indirect_aix<ptrsize>_nor11): Ditto.
20077 (call_value_indirect_aix<ptrsize>): Ditto.
20078 (call_value_indirect_aix<ptrsize>_internal): Ditto.
20079 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
20080 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
20081 (call_nonlocal_aix32): Relocate in the rs6000.md file.
20082 (call_nonlocal_aix64): Ditto.
20083
20084 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
20085 -mno-r11 documentation.
20086
20087 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
20088
20089 PR other/49658
20090 * doc/extend.texi (Compound Literals): Fix typo.
20091
20092 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
20093
20094 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
20095
20096 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
20097
20098 * configure.ac (plugin-version.h): Generate
20099 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
20100 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
20101 macros.
20102
20103 * configure: Regenerate.
20104
20105 * doc/plugins.texi (Building GCC plugins): Mention
20106 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
20107
20108 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
20109
20110 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
20111 * combine.c (make_extraction, gen_lowpart_or_truncate,
20112 apply_distributive_law, simplify_comparison,
20113 reg_truncated_to_mode, record_truncated_value): Use it.
20114 * cse.c (notreg_cost): Likewise.
20115 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
20116 * expr.c (convert_move, convert_modes): Likewise.
20117 * optabs.c (expand_binop, expand_unop): Likewise.
20118 * postreload.c (move2add_last_label): Likewise.
20119 * regmove.c (optimize_reg_copy_3): Likewise.
20120 * rtlhooks.c (gen_lowpart_general): Likewise.
20121 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
20122
20123 2011-07-06 Joseph Myers <joseph@codesourcery.com>
20124
20125 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
20126
20127 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
20128
20129 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
20130 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
20131 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
20132 (simplify_const_unary_operation, simplify_binary_operation_1,
20133 simplify_const_binary_operation, simplify_const_relational_operation):
20134 Use them. Use GET_MODE_MASK for masking and sign-extensions.
20135 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
20136 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
20137 simplify_shift_const_1, simplify_comparison): Likewise.
20138 * expr.c (convert_modes): Likewise.
20139 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
20140 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
20141 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
20142
20143 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
20144
20145 2011-07-06 Richard Guenther <rguenther@suse.de>
20146
20147 PR tree-optimization/49645
20148 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
20149 register variables.
20150 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
20151 in type qualification here ...
20152 (copy_reference_ops_from_ref): ... not here.
20153 (vn_reference_lookup_3): ... or here.
20154 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
20155 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
20156
20157 2011-07-06 Ian Lance Taylor <iant@google.com>
20158
20159 * doc/install.texi (Configuration): It's
20160 --enable-gnu-indirect-function, not --enable-indirect-function.
20161
20162 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
20163
20164 * simplify-rtx.c (simplify_const_binary_operation): Use the
20165 shift_truncation_mask hook instead of performing modulo by width.
20166 Compare against mode precision, not bitsize.
20167 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
20168 Use shift_truncation_mask instead of constructing the value manually.
20169
20170 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
20171
20172 PR middle-end/47383
20173 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
20174 address computation and convert to address_mode if needed.
20175
20176 2011-07-06 Richard Guenther <rguenther@suse.de>
20177
20178 * tree.c (build_common_tree_nodes_2): Merge with
20179 build_common_tree_nodes.
20180 * tree.h (build_common_tree_nodes): Adjust prototype.
20181 (build_common_tree_nodes_2): Remove.
20182 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
20183 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
20184
20185 2011-07-05 Jakub Jelinek <jakub@redhat.com>
20186
20187 PR tree-optimization/49618
20188 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
20189 t recurse on the decl.
20190 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
20191 return true if expr isn't known to be defined in current
20192 TU or some other LTO partition.
20193
20194 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
20195
20196 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
20197 override CASE_VALUES_THRESHOLD.
20198
20199 * stmt.c (toplevel): Include params.h.
20200 (case_values_threshold): Use the --param case-values-threshold
20201 value if non-zero, otherwise use machine dependent value.
20202 (expand_case): Use case_values_threshold.
20203
20204 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
20205
20206 * doc/invoke.texi (--param case-values-threshold): Document.
20207
20208 2011-07-05 Richard Henderson <rth@redhat.com>
20209
20210 * dwarf2out.c (dwarf2out_cfi_label): Make static.
20211 (dwarf2out_flush_queued_reg_saves): Make static.
20212 (dwarf2out_reg_save): Remove.
20213 (dwarf2out_return_save): Remove.
20214 (dwarf2out_return_reg): Remove.
20215 (dwarf2out_reg_save_reg): Remove.
20216 (dwarf2out_def_cfa): Merge into ...
20217 (dwarf2out_frame_init): ... here.
20218 * dwarf2out.h, tree.h: Remove declarations as necessary.
20219
20220 2011-07-05 Richard Henderson <rth@redhat.com>
20221
20222 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
20223 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
20224 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
20225 the alloc insn.
20226
20227 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
20228 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
20229 (process_epilogue): Don't call dwarf2out_def_cfa.
20230
20231 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
20232 indicate the return address save.
20233 (process_cfa_register): Likewise.
20234
20235 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
20236 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
20237
20238 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
20239 for ar.pfs save at alloc insn.
20240
20241 2011-07-05 Richard Henderson <rth@redhat.com>
20242
20243 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
20244 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
20245 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
20246 stack pointer save.
20247 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
20248 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
20249 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
20250 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
20251
20252 2011-07-05 Richard Henderson <rth@redhat.com>
20253
20254 * config/vax/vax.md (define_c_enum unspecv): New. Define the
20255 VUNSPEC_* constants here instead of via define_constants.
20256 (VUNSPEC_PEM): New constant.
20257 (procedure_entry_mask): New insn.
20258 (prologue): New expander.
20259 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
20260 (vax_expand_prologue): Rename from vax_output_function_prologue;
20261 emit rtl instead of text.
20262 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
20263 (print_operand): Add 'x' prefix.
20264
20265 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
20266
20267 PR middle-end/47715
20268 * calls.c (precompute_register_parameters): Promote the function
20269 argument before checking non-legitimate constant.
20270
20271 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
20272
20273 PR tree-optimization/47654
20274 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
20275 (lst_do_strip_mine_loop): Return an int.
20276 (lst_do_strip_mine): Same.
20277 (scop_do_strip_mine): Same.
20278 (scop_do_block): Loop blocking should strip-mine at least two loops.
20279 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
20280 (scop_do_interchange): Same.
20281 * graphite-poly.h (scop_do_interchange): Update declaration.
20282 (scop_do_strip_mine): Same.
20283
20284 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
20285
20286 * graphite-clast-to-gimple.c (precision_for_value): Removed.
20287 (precision_for_interval): Removed.
20288 (gcc_type_for_interval): Use mpz_sizeinbase.
20289
20290 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
20291
20292 * graphite-ppl.h (value_max): Correct computation of max.
20293
20294 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
20295
20296 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
20297
20298 2011-07-05 Richard Guenther <rguenther@suse.de>
20299
20300 * c-decl.c (c_init_decl_processing): Defer building common
20301 tree nodes to c_common_nodes_and_builtins.
20302
20303 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
20304
20305 PR tree-optimization/49580
20306 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
20307 the loop's number of iterations.
20308 * tree-parloops.c (transform_to_exit_first_loop): Add the
20309 handling of the loop's number of iterations before the call
20310 to gimple_duplicate_sese_tail.
20311 Insert the stmt caclculating the new rhs of the loop's
20312 condition stmt to the preheader instead of iters_bb.
20313
20314 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
20315
20316 PR rtl-optimization/47449
20317 * fwprop.c (forward_propagate_subreg): Don't propagate hard
20318 register nor zero/sign extended hard register.
20319
20320 2011-07-05 Richard Guenther <rguenther@suse.de>
20321
20322 PR tree-optimization/49518
20323 PR tree-optimization/49628
20324 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
20325 irrelevant and invariant data-references.
20326 (vect_analyze_data_ref_access): For invariant loads clear the
20327 group association.
20328
20329 2011-07-04 Jakub Jelinek <jakub@redhat.com>
20330
20331 PR rtl-optimization/49619
20332 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
20333 pass VOIDmode as op0_mode to recursive call, and return temp even
20334 when different from tor, just if it is not IOR of the original
20335 PLUS arguments.
20336
20337 PR rtl-optimization/49472
20338 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
20339 negating MULT, negate the second operand instead of first.
20340 (simplify_binary_operation_1) <case MULT>: If one operand is
20341 a NEG and the other is MULT, don't attempt to optimize by negation
20342 of the MULT operand if it only moves the NEG operation around.
20343
20344 PR debug/49602
20345 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
20346 get_current_def return value if it can't be trusted to be
20347 the current value of the variable in the current bb.
20348
20349 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
20350
20351 PR target/49600
20352 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
20353 general register to memory for !TARGET_INTER_UNIT_MOVES.
20354
20355 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
20356
20357 PR target/44643
20358 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
20359 instead of TREE_READONLY.
20360
20361 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
20362
20363 * doc/extend.texi (AVR Built-in Functions): Update documentation
20364 of __builtin_avr_fmul*.
20365 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
20366 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
20367 * config/avr/avr.md (fmul): Rename to fmul_insn.
20368 (fmuls): Rename to fmuls_insn.
20369 (fmulsu): Rename to fmulsu_insn.
20370 (fmul,fmuls,fmulsu): New expander.
20371 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
20372 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
20373 * config/avr/libgcc.S (__fmul): New function.
20374 (__fmuls): New function.
20375 (__fmulsu,__fmulsu_exit): New function.
20376
20377 2011-07-04 Richard Guenther <rguenther@suse.de>
20378
20379 PR tree-optimization/49615
20380 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
20381 basic-block index check.
20382
20383 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
20384
20385 * longlong.h (count_leading_zeros, count_trailing_zeros,
20386 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
20387 resp. 64.
20388
20389 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
20390
20391 PR tree-optimization/49610
20392 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
20393 a basic block.
20394
20395 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
20396 Olivier Hainque <hainque@adacore.com>
20397 Nicolas Setton <setton@adacore.com>
20398
20399 * tree.h (TYPE_ARTIFICIAL): New flag.
20400 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
20401 the DIE of the type if it is artificial.
20402 (gen_array_type_die): Likewise.
20403 (gen_enumeration_type_die): Likewise.
20404 (gen_struct_or_union_type_die): Likewise.
20405 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
20406 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
20407
20408 2011-07-01 Jakub Jelinek <jakub@redhat.com>
20409
20410 * tree-object-size.c (pass_through_call): Handle
20411 BUILT_IN_ASSUME_ALIGNED.
20412
20413 2011-07-01 Martin Jambor <mjambor@suse.cz>
20414
20415 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
20416
20417 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
20418
20419 PR middle-end/48016
20420 * explow.c (update_nonlocal_goto_save_area): Use proper mode
20421 for stack save area.
20422 * function.c (expand_function_start): Likewise.
20423
20424 2011-07-01 Richard Guenther <rguenther@suse.de>
20425
20426 PR middle-end/49596
20427 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
20428 may have unknown refs.
20429
20430 2011-07-01 Kai Tietz <ktietz@redhat.com>
20431
20432 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
20433
20434 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20435
20436 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
20437 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
20438 (Specific, mips-sgi-irix6): Likewise.
20439
20440 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20441
20442 PR libmudflap/49549
20443 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
20444
20445 2011-07-01 Jakub Jelinek <jakub@redhat.com>
20446
20447 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
20448 [idx]= and [idx1 ... idx2]= before initializers if needed for
20449 array initializers.
20450
20451 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
20452
20453 * config.gcc (score-*-elf): Remove score7.o.
20454 * config/score/t-score-elf: Likewise.
20455 * config/score/score.c: Merge score7 to score.c and
20456 remove forwarding functions.
20457 * config/score/score7.c: Deleted.
20458 * config/score/score7.h: Deleted.
20459
20460 2011-07-01 Richard Guenther <rguenther@suse.de>
20461
20462 PR tree-optimization/49603
20463 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
20464
20465 2011-06-30 Martin Jambor <mjambor@suse.cz>
20466
20467 * tree-sra.c (struct access): Rename total_scalarization to
20468 grp_total_scalarization
20469 (completely_scalarize_var): New function.
20470 (sort_and_splice_var_accesses): Set total_scalarization in the
20471 representative access.
20472 (analyze_access_subtree): Propagate total scalarization accross the
20473 tree, no holes in totally scalarized trees, simplify coverage
20474 computation.
20475 (analyze_all_variable_accesses): Call completely_scalarize_var instead
20476 of completely_scalarize_record.
20477
20478 2011-06-30 Richard Henderson <rth@redhat.com>
20479
20480 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
20481 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
20482 * config/i386/i386.c: Don't include dwarf2out.h.
20483 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
20484 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
20485 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
20486 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
20487 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
20488
20489 2011-06-30 Richard Henderson <rth@redhat.com>
20490
20491 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
20492 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
20493 * final.c (final_scan_insn): Look for it, and invoke
20494 dwarf2out_frame_debug before the insn if found.
20495
20496 2011-06-30 Richard Henderson <rth@redhat.com>
20497
20498 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
20499 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
20500
20501 2011-06-30 Richard Henderson <rth@redhat.com>
20502
20503 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
20504 Define a vector of this type.
20505 (regs_saved_in_regs): Use a VEC.
20506 (num_regs_saved_in_regs): Remove.
20507 (compare_reg_or_pc): New.
20508 (record_reg_saved_in_reg): Split out from...
20509 (dwarf2out_flush_queued_reg_saves): ... here.
20510 (clobbers_queued_reg_save): Update for VEC.
20511 (reg_saved_in): Likewise.
20512 (dwarf2out_frame_debug_init): Likewise.
20513 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
20514 (dwarf2out_frame_debug_cfa_register): Likewise.
20515
20516 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
20517
20518 PR tree-optimization/49572
20519 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
20520 type of the RHS instead of that of the LHS for the expression type.
20521
20522 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
20523
20524 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
20525 unconditionally.
20526
20527 2011-06-30 Richard Guenther <rguenther@suse.de>
20528
20529 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
20530 * tree-ssa-structalias.c (create_variable_info_for): Do not
20531 add initial constraints for non-var-decls. Properly handle
20532 globals in other ltrans partitions.
20533 (intra_create_variable_infos): Manually create constraints for
20534 the fake no-alias parameter.
20535 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
20536 and assert there are no clones.
20537
20538 2011-06-30 Richard Guenther <rguenther@suse.de>
20539
20540 PR tree-optimization/46787
20541 * tree-data-ref.c (dr_address_invariant_p): Remove.
20542 (find_data_references_in_stmt): Invariant accesses are ok now.
20543 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
20544 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
20545 invariant loads.
20546
20547 2011-06-30 Martin Jambor <mjambor@suse.cz>
20548
20549 PR tree-optimization/49094
20550 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
20551 (build_accesses_from_assign): Use it.
20552
20553 2011-06-30 Jakub Jelinek <jakub@redhat.com>
20554
20555 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
20556 handling of BUILT_IN_ASSUME_ALIGNED.
20557
20558 PR debug/49364
20559 * dwarf2out.c (output_abbrev_section): Don't return early
20560 if abbrev_die_table_in_use is 1.
20561 (dwarf2out_finish): Instead don't call output_abbrev_section
20562 nor emit abbrev_section_label in that case.
20563
20564 2011-06-30 Nick Clifton <nickc@redhat.com>
20565
20566 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
20567 for the V850E.
20568
20569 2011-06-30 Jakub Jelinek <jakub@redhat.com>
20570
20571 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
20572 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
20573
20574 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
20575
20576 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
20577 both pattern and original statements if necessary.
20578 (vect_transform_loop): Likewise.
20579 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
20580 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
20581 Mark the pattern statement only if the original statement doesn't
20582 have its own uses.
20583 (process_use): Call vect_mark_relevant with additional parameter.
20584 (vect_mark_stmts_to_be_vectorized): Likewise.
20585 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
20586 (vect_analyze_stmt): Handle both pattern and original statements
20587 if necessary.
20588 (vect_transform_stmt): Don't store vectorized pattern statement
20589 in the original statement.
20590 (vect_is_simple_use_1): Use related pattern statement only if the
20591 original statement is irrelevant.
20592 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
20593
20594 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
20595
20596 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
20597 option.
20598 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
20599 entry.
20600 (TARGET_AVX128_OPTIMAL): New definition.
20601 * config/i386/i386.c (initial_ix86_tune_features): Initialize
20602 X86_TUNE_AVX128_OPTIMAL entry.
20603 (ix86_option_override_internal): Enable the generation
20604 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
20605 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
20606 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
20607
20608 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
20609
20610 PR tree-optimization/49539
20611 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
20612 names by means of stmt_references_abnormal_ssa_name.
20613 (associate_plusminus): Call can_propagate_from before propagating
20614 from definition statements.
20615 (ssa_forward_propagate_and_combine): Remove superfluous newline.
20616
20617 2011-06-29 Richard Guenther <rguenther@suse.de>
20618
20619 * doc/invoke.texi: Document -scev dump modifier.
20620 * tree-pass.h (TDF_SCEV): New dump flag.
20621 * tree-dump.c (dump_option_value_in): Add scev.
20622 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
20623 * tree-scalar-evolution.c: Likewise.
20624
20625 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
20626
20627 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
20628 (cxa_type_match): Correct declaration.
20629 (__gnu_unwind_pr_common): Reconstruct additional indirection
20630 when __cxa_type_match returns succeeded_with_ptr_to_base.
20631
20632 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20633
20634 PR rtl-optimization/49114
20635 * reload.c (struct replacement): Remove SUBREG_LOC member.
20636 (push_reload): Do not set it.
20637 (push_replacement): Likewise.
20638 (subst_reload): Remove dead code.
20639 (copy_replacements): Remove assertion.
20640 (copy_replacements_1): Do not handle SUBREG_LOC.
20641 (move_replacements): Likewise.
20642 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
20643 Detect subregs via recursive descent instead of via SUBREG_LOC.
20644
20645 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
20646
20647 * config/avr/avr.c (avr_encode_section_info): Dispatch to
20648 default_encode_section_info.
20649
20650 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
20651
20652 PR tree-optimization/49545
20653 * builtins.c (get_object_alignment_1): Update function comment.
20654 Do not use DECL_ALIGN for functions, but test
20655 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
20656 * fold-const.c (get_pointer_modulus_and_residue): Don't check
20657 for functions here.
20658 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
20659
20660 2011-06-29 Jakub Jelinek <jakub@redhat.com>
20661
20662 PR debug/49567
20663 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
20664 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
20665
20666 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
20667
20668 PR target/34734
20669 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
20670 about uninitialized data attributed 'progmem' from here...
20671 (avr_encode_section_info): ...to this new function.
20672 (TARGET_ENCODE_SECTION_INFO): New define.
20673 (avr_section_type_flags): For data in ".progmem.data", remove
20674 section flag SECTION_WRITE.
20675
20676 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
20677
20678 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
20679 _xmulhisi3_exit.
20680 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
20681 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
20682 (__umulhisi3): Ditto.
20683 * config/avr/avr.md (mulhisi3): New insn expender.
20684 (umulhisi3): New insn expender.
20685 (*mulhisi3_call): New insn.
20686 (*umulhisi3_call): New insn.
20687
20688 2011-06-28 Joseph Myers <joseph@codesourcery.com>
20689
20690 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
20691
20692 2011-06-28 Richard Henderson <rth@redhat.com>
20693
20694 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
20695 all code and arguments that handled pushes. Update all callers.
20696
20697 2011-06-28 Richard Henderson <rth@redhat.com>
20698
20699 * config/arm/arm.c (arm_output_function_prologue): Don't call
20700 thumb1_output_function_prologue.
20701 (arm_expand_prologue): Avoid dead store.
20702 (number_of_first_bit_set): Use ctz_hwi.
20703 (thumb1_emit_multi_reg_push): New.
20704 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
20705 to emit the entire prologue as rtl.
20706 (thumb1_output_interwork): Split out from
20707 thumb1_output_function_prologue.
20708 (thumb1_output_function_prologue): Remove.
20709 (arm_attr_length_push_multi): Handle thumb1.
20710 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
20711 (prologue_thumb1_interwork): New.
20712 (*push_multi): Allow thumb1; use push_mult_memory_operand.
20713 * config/arm/predicates.md (push_mult_memory_operand): New.
20714
20715 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
20716
20717 * config/sparc/sync.md (*stbar): Delete.
20718 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
20719
20720 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
20721
20722 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
20723
20724 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20725
20726 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
20727 (TARGET_64BIT_DEFAULT): Define.
20728 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
20729 of tm_file.
20730 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
20731
20732 2011-06-28 Joseph Myers <joseph@codesourcery.com>
20733
20734 * common.opt (in_lto_p): New Variable entry.
20735 * flags.h (in_lto_p): Move to common.opt.
20736 * gcc.c: Include params.h.
20737 (set_option_handlers): Also use common_handle_option and
20738 target_handle_option.
20739 (main): Call global_init_params, finish_params and init_options_struct.
20740 * opts.c (debug_type_names): Move from toplev.c.
20741 (print_filtered_help): Access quiet_flag through opts pointer.
20742 (common_handle_option): Return early in the driver for some options.
20743 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
20744 opts pointer.
20745 * toplev.c (in_lto_p): Move to common.opt.
20746 (debug_type_names): Move to opts.c.
20747 * Makefile.in (OBJS): Remove opts.o.
20748 (OBJS-libcommon-target): Add opts.o.
20749 (gcc.o): Update dependencies.
20750
20751 2011-06-28 Kai Tietz <ktietz@redhat.com>
20752
20753 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
20754
20755 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
20756
20757 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
20758 with '=' constraint modifier.
20759 (*divdf3_vfp): Likewise.
20760 ("*mulsf3_vfp"): Likewise.
20761 ("*muldf3_vfp"): Likewise.
20762 ("*mulsf3negsf_vfp"): Likewise.
20763 ("*muldf3negdf_vfp"): Likewise.
20764
20765 2011-06-28 Nick Clifton <nickc@redhat.com>
20766
20767 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
20768 relaxation when performing an incremental link.
20769
20770 2011-06-28 Kai Tietz <ktietz@redhat.com>
20771
20772 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
20773 within BB from last to first.
20774
20775 2011-06-28 Joseph Myers <joseph@codesourcery.com>
20776
20777 * genattr-common.c: New. Based on genattr.c.
20778 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
20779 (MOSTLYCLEANFILES): Add insn-attr-common.h.
20780 (opts.o): Update dependencies.
20781 (.PRECIOUS): Add insn-attr-common.h.
20782 (simple_rtl_generated_h): Add insn-attr-common.h.
20783 (build/genattr-common.o): New.
20784 (genprogrtl): Add attr-common.
20785 * genattr.c (main): Include insn-attr-common.h. Don't generate
20786 definitions of DELAY_SLOTS or INSN_SCHEDULING.
20787 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
20788
20789 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
20790
20791 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
20792 avr-*-* and avr-*-rtems* targets.
20793
20794 * config/avr/elf.h: New file.
20795 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
20796 (TARGET_ASM_SELECT_SECTION): Define.
20797 (INIT_SECTION_ASM_OP): Undefine.
20798 (FINI_SECTION_ASM_OP): Undefine.
20799 (READONLY_DATA_SECTION_ASM_OP): Undefine.
20800 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
20801 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
20802 * config/avr/avr.h:
20803 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
20804 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
20805 (MAX_OFILE_ALIGNMENT): Move to elf.h.
20806 (STRING_LIMIT): Move to elf.h.
20807 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
20808 (ASM_DECLARE_OBJECT_NAME): Remove.
20809 (ESCAPES): Remove.
20810 (ASM_OUTPUT_SKIP): Remove.
20811 (DWARF2_DEBUGGING_INFO): Remove.
20812 (OBJECT_FORMAT_ELF): Remove.
20813 (USER_LABEL_PREFIX): Remove.
20814 (ASM_OUTPUT_EXTERNAL): Remove.
20815 (ASM_OUTPUT_ASCII): Remove.
20816 (TYPE_ASM_OP): Remove.
20817 (SIZE_ASM_OP): Remove.
20818 (WEAK_ASM_OP): Remove.
20819 (STRING_ASM_OP): Remove.
20820 (SET_ASM_OP): Remove.
20821 (ASM_WEAKEN_LABEL): Remove.
20822 (TYPE_OPERAND_FMT): Remove.
20823 (ASM_DECLARE_FUNCTION_SIZE): Remove.
20824 (ASM_FINISH_DECLARE_OBJECT): Remove.
20825 (NO_DOLLAR_IN_LABEL): Remove.
20826 (ASM_GENERATE_INTERNAL_LABEL): Remove.
20827 (ASM_OUTPUT_CASE_LABEL): Remove.
20828 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
20829 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
20830 (gas_output_ascii): Remove.
20831 (gas_output_limited_string): Remove.
20832 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
20833 * config/avr/avr-protos.h
20834 (gas_output_ascii): Remove prototye.
20835 (gas_output_limited_string): Remove prototype.
20836
20837 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
20838
20839 PR target/48637
20840 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
20841 asm operands.
20842
20843 2011-06-27 Jan Hubicka <jh@suse.cz>
20844
20845 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
20846 node instead of references in node.
20847
20848 2011-06-27 Richard Henderson <rth@redhat.com>
20849
20850 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
20851 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
20852 inside ifdef.
20853
20854 2011-06-27 Jakub Jelinek <jakub@redhat.com>
20855
20856 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
20857
20858 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
20859 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
20860 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
20861 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
20862 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
20863 (evaluate_stmt, execute_fold_all_builtins): Handle
20864 BUILT_IN_ASSUME_ALIGNED.
20865 * tree-ssa-dce.c (propagate_necessity): Likewise.
20866 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
20867 call_may_clobber_ref_p_1): Likewise.
20868 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
20869 (expand_builtin_assume_aligned): New function.
20870 * doc/extend.texi (__builtin_assume_aligned): Document.
20871
20872 PR debug/49544
20873 * cselib.c (promote_debug_loc): If cselib_preserve_constants
20874 and l has two DEBUG_INSN owned locs instead of just one, adjust
20875 the second location's setting_insn too.
20876
20877 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20878
20879 PR libmudflap/38738
20880 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
20881
20882 2011-06-27 Nick Clifton <nickc@redhat.com>
20883
20884 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
20885 bit position of highest bit set into a count of the high zero bits.
20886
20887 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
20888
20889 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
20890
20891 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
20892
20893 PR lto/48492
20894 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
20895 to a NULL parent.
20896
20897 2011-06-27 Richard Guenther <rguenther@suse.de>
20898
20899 PR tree-optimization/49394
20900 * passes.c (execute_one_pass): Restore current_pass after
20901 applying IPA transforms.
20902
20903 2011-06-27 Kai Tietz <ktietz@redhat.com>
20904
20905 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
20906 out of type precision after operation.
20907 (find_bswap): Take for limit value the integer auto-promotion
20908 into account.
20909
20910 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
20911
20912 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
20913 forward scan as well.
20914
20915 2011-06-27 Tristan Gingold <gingold@adacore.com>
20916
20917 PR target/44241
20918 * config/vms/vms-protos.h: New file.
20919 * config/vms/vms-crtlmap.map: New file.
20920 * config/vms/vms.c: New file.
20921 * config/vms/make-crtlmap.awk: New file.
20922 * config/vms/vms-crtl.h: File removed.
20923 * config/vms/vms-crtl-64.h: File removed.
20924 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
20925 * config/alpha/vms64.h: Do not include vms-crtl-64.h
20926 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
20927 clear some builtins on VMS. Calls vms_patch_builtins.
20928 (avms_asm_output_external): Remove.
20929 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
20930 (struct crtl_name_spec): Remove
20931 (DO_CTRL_NAMES): Remove.
20932 * config/ia64/vms.h (struct crtl_name_spec): Remove
20933 (DO_CTRL_NAMES): Remove.
20934 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
20935 clear some builtins on VMS. Calls vms_patch_builtins.
20936 (ia64_asm_output_external): Remove DO_CRTL_NAME.
20937 * config/ia64/vms64.h: Do not include vms-crtl-64.h
20938 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
20939
20940 2011-06-27 Tristan Gingold <gingold@adacore.com>
20941
20942 * config/alpha/alpha.c (alpha_end_function): Always generate .end
20943 directive on VMS.
20944
20945 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
20946
20947 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
20948 the function receives nonlocal gotos.
20949
20950 2011-06-27 Richard Guenther <rguenther@suse.de>
20951
20952 PR tree-optimization/49536
20953 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
20954 For non-scalar inner types use a scalar type according to
20955 the scalar inner mode.
20956
20957 2011-06-27 Richard Guenther <rguenther@suse.de>
20958
20959 PR tree-optimization/49365
20960 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
20961
20962 2011-06-27 Richard Guenther <rguenther@suse.de>
20963
20964 PR tree-optimization/49169
20965 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
20966 the alignment of function decls.
20967
20968 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
20969
20970 PR target/47997
20971 * config/darwin.c (darwin_mergeable_string_section): Place string
20972 constants in '.cstring' rather than '.const' when CF/NSStrings are
20973 active.
20974
20975 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
20976
20977 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
20978 (emit_save_register_window): Likewise.
20979 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
20980 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
20981 Swap back %o7/%i7 in register naming.
20982
20983 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
20984
20985 PR driver/49371
20986 * config/darwin.c (darwin_override_options): Improve warning when
20987 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
20988 is given with fpie/fPIE.
20989 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
20990 * config/darwin9.h (PIE_SPEC): New.
20991
20992 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
20993
20994 * timevar.c (timevar_print): Increase width for display of timevar
20995 name.
20996
20997 2011-06-24 Jakub Jelinek <jakub@redhat.com>
20998
20999 PR c++/46400
21000 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
21001 instead of TYPE_CHAIN for chain_next for types.
21002
21003 2011-06-24 Richard Henderson <rth@redhat.com>
21004
21005 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
21006 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
21007 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
21008 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
21009 (sparc_flat_expand_prologue): Emit individual instructions
21010 instead of one of the above.
21011
21012 2011-06-24 Easwaran Raman <eraman@google.com>
21013
21014 PR rtl-optimization/49429
21015 PR target/49454
21016 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
21017 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
21018 used to copy y into x.
21019 * calls.c (initialize_argument_information): Mark
21020 an argument addressable if it is passed by invisible reference.
21021 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
21022 if it is passed by reference.
21023
21024 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
21025
21026 PR rtl-optimization/49504
21027 * rtlanal.c (nonzero_bits1): Properly handle addition or
21028 subtraction of a pointer in Pmode if pointers extend unsigned.
21029 (num_sign_bit_copies1): Likewise.
21030
21031 2011-06-24 Martin Jambor <mjambor@suse.cz>
21032
21033 PR tree-optimizations/49516
21034 * tree-sra.c (sra_modify_assign): Choose the safe path for
21035 aggregate copies if we also did scalar replacements.
21036
21037 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
21038
21039 PR target/49335
21040 * config/arm/predicates.md (add_operator): New.
21041 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
21042
21043 2011-06-24 Andi Kleen <ak@linux.intel.com>
21044
21045 * tree-sra.c (type_internals_preclude_sra_p): Add msg
21046 parameter. Split up ifs and report reason in *msg.
21047 (reject): Add.
21048 (find_var_candiate): Add msg variable.
21049 Split up ifs and report reason to reject.
21050 (find_param_candidates): Add msg variable.
21051 Pass msg to type_internals_preclude_sra_p.
21052
21053 2011-06-23 Jeff Law <law@redhat.com>
21054
21055 PR middle-end/48770
21056 * reload.h (reload): Change to return a bool.
21057 * ira.c (ira): If requested by reload, run a fast DCE pass after
21058 reload has completed. Fix comment typo.
21059 * reload1.c (need_dce): New file scoped static.
21060 (reload): Set reload_completed here. Return whether or not a DCE
21061 pass after reload is needed.
21062 (delete_dead_insn): Set need_dce as needed.
21063
21064 PR middle-end/49465
21065 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
21066 to detect threading through joiner block. If there was already
21067 an edge to the new target, then do not change the PHI nodes.
21068
21069 2011-06-23 Jakub Jelinek <jakub@redhat.com>
21070
21071 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
21072 get_pointer_alignment to see if base isn't sufficiently aligned.
21073
21074 2011-06-23 Jan Hubicka <jh@suse.cz>
21075
21076 PR tree-optimize/49373
21077 * tree-pass.h (all_late_ipa_passes): Declare.
21078 * cgraphunit.c (init_lowered_empty_function): Fix properties.
21079 (cgraph_optimize): Execute late passes; remove unreachable funcions
21080 after materialization.
21081 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
21082 LTOing.
21083 * passes.c (all_late_ipa_passes): Declare.
21084 (dump_passes, register_pass): Handle late ipa passes.
21085 (init_optimization_passes): Move ipa_pta to late passes; schedule
21086 fixup_cfg at beggining of all_passes.
21087 (apply_ipa_transforms): New function.
21088 (execute_one_pass): When doing simple ipa pass, apply all transforms.
21089
21090 2011-06-23 Joseph Myers <joseph@codesourcery.com>
21091
21092 * params.c: Include common/common-target.h. Don't include tm.h.
21093 (lang_independent_params): Move from toplev.c.
21094 (global_init_params): New.
21095 * params.h (global_init_params): Declare.
21096 * target.def (default_params): Move to common-target.def.
21097 * toplev.c (lang_independent_options): Remove.
21098 (lang_independent_params): Move to params.c.
21099 (general_init): Use global_init_params.
21100 * common/common-target.def (option_default_params): Move from
21101 target.def.
21102 * common/config/ia64/ia64-common.c: Include params.h.
21103 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
21104 from ia64.c.
21105 * common/config/rs6000/rs6000-common.c: Include params.h.
21106 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
21107 from rs6000.c.
21108 * common/config/sh/sh-common.c: Include params.h.
21109 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
21110 from sh.c.
21111 * common/config/spu/spu-common.c: Include params.h.
21112 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
21113 from spu.c.
21114 * config/ia64/ia64.c (ia64_option_default_params,
21115 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
21116 * config/rs6000/rs6000.c (rs6000_option_default_params,
21117 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
21118 * config/sh/sh.c (sh_option_default_params,
21119 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
21120 * config/spu/spu.c (spu_option_default_params,
21121 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
21122 * Makefile.in (OBJS): Remove params.o.
21123 (OBJS-libcommon-target): Add params.o.
21124 (params.o, $(common_out_object_file)): Update dependencies.
21125 * doc/tm.texi: Regenerate.
21126
21127 2011-06-23 Alan Modra <amodra@gmail.com>
21128
21129 PR bootstrap/49383
21130 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
21131 invocation for 2011-06-09 changes.
21132
21133 2011-06-22 Jakub Jelinek <jakub@redhat.com>
21134
21135 PR libgomp/49490
21136 * omp-low.c (expand_omp_for_static_nochunk): Only
21137 use n ceil/ nthreads size for the first n % nthreads threads in the
21138 team instead of all threads except for the last few ones which
21139 get less work or none at all.
21140
21141 PR debug/49496
21142 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
21143 uses.
21144
21145 2011-06-22 Richard Guenther <rguenther@suse.de>
21146
21147 PR tree-optimization/49493
21148 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
21149 Refer to the alias target of variables.
21150 (associate_varinfo_to_alias_1): Remove.
21151 (ipa_pta_execute): Do not associate aliases with anything.
21152 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
21153 (cgraph_function_node): Likewise.
21154 (cgraph_function_or_thunk_node): Likewise.
21155 (varpool_variable_node): Likewise.
21156
21157 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
21158
21159 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
21160 * config.gcc (arm*-*-linux*): Default to gnu tls.
21161 (arm*-*-*): Add --with-tls option.
21162 (all_defaults): Add 'tls'.
21163
21164 2011-06-22 Richard Henderson <rth@redhat.com>
21165
21166 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
21167 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
21168 (dwarf2out_frame_debug_cfa_window_save): Rename from
21169 dwarf2out_window_save; make static.
21170 * tree.h (dwarf2out_window_save): Don't declare.
21171
21172 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
21173 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
21174 (emit_save_register_window): Rename from gen_save_register_window;
21175 emit the insn and add REG_CFA_* notes.
21176 (sparc_expand_prologue): Update to match.
21177 * config/sparc/sparc.md (save_register_window_1): Simplify from
21178 save_register_window<P:mode>.
21179
21180 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
21181
21182 PR target/49497
21183 * config/i386/i386.md (*lea_general_2): Always allow SImode.
21184 (*lea_general_2_zext): Likewise.
21185 (imul to lea peepholes): Use const359_operand and check
21186 TARGET_PARTIAL_REG_STALL.
21187
21188 * config/i386/predicates.md (const359_operand): New.
21189
21190 2011-06-22 Michael Matz <matz@suse.de>
21191
21192 * cgraphunit.c (assemble_thunk): Use correct return type.
21193
21194 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
21195 Dmitry Melnik <dm@ispras.ru>
21196
21197 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
21198 (neon_output_shift_immediate): Ditto.
21199 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
21200 prototype.
21201 (neon_output_shift_immediate): Ditto.
21202 * config/arm/neon.md (vashl<mode>3): Modified constraint.
21203 (vashr<mode>3_imm): New insn pattern.
21204 (vlshr<mode>3_imm): Ditto.
21205 (vashr<mode>3): Modified constraint.
21206 (vlshr<mode>3): Ditto.
21207 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
21208 predicate.
21209 (imm_for_neon_rshift_operand): Ditto.
21210 (imm_lshift_or_reg_neon): Ditto.
21211 (imm_rshift_or_reg_neon): Ditto.
21212
21213 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
21214
21215 2011-06-22 Jakub Jelinek <jakub@redhat.com>
21216
21217 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
21218 builtin calls even if likelyvalue is not CONSTANT.
21219 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
21220 Return get_value_for_expr of first operand
21221 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
21222 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
21223 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
21224 their non-checking counterparts.
21225 (call_may_clobber_ref_p_1): Likewise.
21226 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
21227 like their non-checking counterparts.
21228 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
21229 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
21230 like their non-checking counterparts.
21231 (find_func_clobbers): Likewise.
21232 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
21233 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
21234
21235 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
21236 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
21237 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
21238 of base type reference as argument.
21239 (resolve_addr_in_expr): Likewise. Fix keep computation.
21240 (convert_descriptor_to_signed): Renamed to...
21241 (convert_descriptor_to_mode): ... this. For wider types convert to
21242 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
21243 (typed_binop): New function.
21244 (scompare_loc_descriptor, ucompare_loc_descriptor,
21245 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
21246 default to unsigned type instead of signed.
21247
21248 PR debug/47858
21249 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
21250 (gimple_build_debug_source_bind_stat): New prototype.
21251 (gimple_build_debug_source_bind): Define.
21252 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
21253 gimple_debug_source_bind_get_value,
21254 gimple_debug_source_bind_get_value_ptr,
21255 gimple_debug_source_bind_set_var,
21256 gimple_debug_source_bind_set_value): New inlines.
21257 * gimple.c (gimple_build_debug_source_bind_stat): New function.
21258 * gimple-pretty-print.c (dump_gimple_debug): Handle
21259 GIMPLE_DEBUG_SOURCE_BIND.
21260 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
21261 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
21262 * tree-parloops.c (eliminate_local_variables,
21263 separate_decls_in_region): Likewise.
21264 (separate_decls_in_region_debug): Renamed from
21265 separate_decls_in_region_debug_bind. Handle
21266 gimple_debug_source_bind_p.
21267 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
21268 prototypes.
21269 (DECL_HAS_DEBUG_ARGS_P): Define.
21270 (struct tree_function_decl): Add has_debug_args_flag field.
21271 * tree.c (debug_args_for_decl): New variable.
21272 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
21273 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
21274 (rewrite_debug_stmt_uses): New function.
21275 (rewrite_stmt): Use it to rewrite debug stmt uses.
21276 * rtl.def (DEBUG_PARAMETER_REF): New.
21277 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
21278 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
21279 DEBUG_PARAMETER_REF.
21280 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
21281 * print-rtl.c (print_rtx): Likewise.
21282 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
21283 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
21284 debug stmts in the first bb.
21285 * tree-inline.c (remap_ssa_name): If remapping default def
21286 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
21287 a source bind debug stmt.
21288 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
21289 (maybe_move_debug_stmts_to_successors): Likewise.
21290 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
21291 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
21292 debug args vector from old_decl to new_decl.
21293 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
21294 or modified parameters, add debug bind stmts before call
21295 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
21296 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
21297 on DECL_DEBUG_EXPRs from debug args vector.
21298 (expand_debug_source_expr): New function.
21299 (expand_debug_locations): Use it for source bind insns.
21300 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
21301 * var-tracking.c (prepare_call_arguments): Add debug args
21302 to call_arguments if any.
21303 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
21304 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
21305 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
21306 (get_ref_die_offset, parameter_ref_descriptor): New functions.
21307 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
21308 (gen_subprogram_die): Handle parameters identified by
21309 DEBUG_PARAMETER_REF.
21310
21311 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
21312
21313 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
21314 * doc/install.texi (Configuration): Document --with-tls.
21315 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
21316 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
21317 (arm_tls_descseq_addr): New.
21318 (legitimize_tls_address): Add tlsdesc support.
21319 (arm_cannot_copy_insn_p): Check for tlscall.
21320 (arm_emit_tls_decoration): Likewise.
21321 * config/arm/arm.h (TARGET_GNU2_TLS): New.
21322 (OPTION_DEFAULT_SPECS): Add with-tls support.
21323 * config/arm/arm.md (R1_REGNUM): Define.
21324 (tlscall): New.
21325 * config/arm/arm.opt (tls_type): New enumeration type and values.
21326 (mtls-dialect): New switch.
21327 * config/arm/arm-opts.h (enum tls_type): New.
21328
21329 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
21330
21331 * attribs.c (register_attribute): Added assert to check that all
21332 attribute specs are registered with a name that is not empty and
21333 does not start with '_'.
21334 (decl_attributes): Avoid the lookup of the "naked" attribute spec
21335 if the function has no attributes.
21336 * tree.c (is_attribute_with_length_p): Removed.
21337 (is_attribute_p): Removed.
21338 (private_is_attribute_p): New.
21339 (private_lookup_attribute): New.
21340 (lookup_attribute): Removed.
21341 (lookup_ident_attribute): New.
21342 (remove_attribute): Require the first argument to be in the form
21343 'text', not '__text__'. Updated asserts.
21344 (merge_attributes): Use lookup_ident_attributes instead of
21345 lookup_attribute.
21346 (merge_dllimport_decl_attributes): Use remove_attribute.
21347 (attribute_list_contained): Likewise.
21348 (attribute_list_equal): Immediately return 1 if the arguments are
21349 identical pointers.
21350 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
21351 'int'. Require the first argument to be in the form 'text', not
21352 '__text__'. Require the second argument to be an identifier.
21353 (lookup_attribute): Made inline. Require the first argument to be
21354 in the form 'text', not '__text__'.
21355 (private_is_attribute_p, private_lookup_attribute): New.
21356 Updated comments.
21357
21358 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
21359
21360 * builtins.c: Add sync_ or SYNC__ to builtin names.
21361 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
21362 * omp-low.c: Add sync_ or SYNC__ to builtin names.
21363
21364 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
21365
21366 PR target/33049
21367 * config/avr/avr.md (extzv): New expander.
21368 (*extzv): New insn.
21369 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
21370 * config/avr/constraints.md (C04): New constraint.
21371 * doc/md.texi (Machine Constraints): Document it.
21372
21373 2011-06-21 Jakub Jelinek <jakub@redhat.com>
21374
21375 PR middle-end/49489
21376 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
21377 unsignedp argument instead of 1 for clrsb_optab.
21378 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
21379 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
21380 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
21381 * optabs.c (widen_leading): Call widen_operand and expand_unop
21382 with 0 as unsignedp argument instead of 1 for clrsb_optab.
21383 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
21384
21385 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
21386
21387 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
21388
21389 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
21390
21391 * gensupport.c (add_define_attr): New static function.
21392 (is_predicable): Allow multi-alternative lists for the "predicable"
21393 attribute.
21394 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
21395 (process_one_cond_exec): Call alter_attrs_for_insn.
21396 * doc/md.texi (Defining Attributes): Mention some standard names.
21397 (Conditional Execution): Update documentation for "predicable".
21398
21399 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
21400 __builtin_clrsbll): Document.
21401 * doc/rtl.texi (clrsb): New entry.
21402 * optabs.c (widen_leading): Renamed from widen_clz. New argument
21403 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
21404 (expand_unop): Handle clrsb_optab.
21405 (init_optabs): Initialize it.
21406 * optabs.h (enum optab_index): New entry OTI_clrsb.
21407 (clrsb_optab): Define.
21408 * genopinit.c (optabs): Add an entry for it.
21409 * builtins.c (expand_builtin): Handle clrsb builtin functions.
21410 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
21411 BUILT_IN_CLRSBLL): New.
21412 * rtl.def (CLRSB): New code.
21413 * dwarf2out.c (mem_loc_descriptor): Handle it.
21414 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
21415 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
21416 and popcount.
21417 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
21418 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
21419 (__ctzDI2): Move declaration.
21420 * config/bfin/bfin.md (clrsbsi2): New expander.
21421 (signbitssi2): Use the CLRSB rtx.
21422 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
21423 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
21424
21425 2011-06-21 Richard Guenther <rguenther@suse.de>
21426
21427 * ipa-inline-transform.c (inline_transform): Fix previous change.
21428
21429 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
21430
21431 PR tree-optimization/49478
21432 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
21433 with constant operand.
21434
21435 2011-06-21 Richard Guenther <rguenther@suse.de>
21436
21437 * ipa-inline-transform.c (inline_transform): Fix typo.
21438
21439 2011-06-21 Richard Guenther <rguenther@suse.de>
21440
21441 PR tree-optimization/49483
21442 * tree-vect-stmts.c (vectorizable_assignment): Also handle
21443 VIEW_CONVERT_EXPR conversions.
21444
21445 2011-06-21 Joseph Myers <joseph@codesourcery.com>
21446
21447 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
21448 * config/avr/avr-tables.opt: New file (generated).
21449 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
21450 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
21451 avr-mcus.def.
21452 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
21453 (avr_option_override): Don't process -mmcu= argument here. Set
21454 avr_current_device using avr_mcu_index.
21455 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
21456 * config/avr/avr.opt (mmcu=): Use Enum.
21457 * config/avr/t-avr (avr-devices.o): Update dependencies.
21458 ($(srcdir)/config/avr/avr-tables.opt): New.
21459 * target.def (help): Remove.
21460 * doc/tm.texi.in (TARGET_HELP): Remove.
21461 * doc/tm.texi: Regenerate.
21462 * opts.c: Don't include target.h.
21463 (common_handle_option): Don't call targetm.help.
21464 * system.h (TARGET_HELP): Poison.
21465 * Makefile.in (opts.o): Update dependencies.
21466
21467 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21468
21469 * config/usegld.h: New file.
21470 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
21471 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
21472 (LIB_SPEC): Likewise. Search /lib.
21473 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
21474 (RDYNAMIC_SPEC): Handle GNU ld.
21475 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
21476 Define.
21477 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
21478 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
21479 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
21480 (STACK_CHECK_STATIC_BUILTIN): Define.
21481 * config/sol2.opt (compat-bsd): Remove.
21482 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
21483 * config/sol2-bi.h: New file.
21484 * config/sol2-gld.h: Remove.
21485 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
21486 (NO_DBX_BNSYM_ENSYM): Remove.
21487 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
21488 (STACK_CHECK_STATIC_BUILTIN): Remove.
21489 Test USE_GLD instead of TARGET_GNU_LD.
21490 * config/i386/sol2-10.h: Rename to ...
21491 * config/i386/sol2-bi.h .. this.
21492 (SUBTARGET_EXTRA_SPECS): Redefine.
21493 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
21494 (MULTILIB_DEFAULTS): Remove.
21495 (DEFAULT_ARCH32_P): Define.
21496 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
21497 (ARCH64_SUBDIR): Define.
21498 Test USE_GLD instead of TARGET_GNU_LD.
21499 (I386_EMULATION): Rename to ...
21500 (ARCH32_EMULATION): ... this.
21501 (X86_64_EMULATION): Rename to ...
21502 (ARCH64_EMULATION): ... this.
21503 (TARGET_LD_EMULATION): Remove.
21504 (LINK_ARCH_SPEC): Remove.
21505 * config/i386/sol2-gas.h: Remove.
21506 * config/i386/t-sol2-10: Rename to ...
21507 * config/i386/t-sol2-64: ... this.
21508 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
21509 (AS_SPARC64_FLAG): Define.
21510 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
21511 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
21512 depending on TARGET_CPU_DEFAULT.
21513 (CPP_CPU_SPEC): Redefine.
21514 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
21515 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
21516 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
21517 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
21518 ASM_ARCH_DEFAULT_SPEC): Redefine.
21519 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
21520 LINK_ARCH_DEFAULT_SPEC.
21521 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
21522 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
21523 (ARCH64_SUBDIR): Define.
21524 (LINK_ARCH64_SPEC): Redefine.
21525 (CC1_SPEC): Redefine.
21526 (OPTION_DEFAULT_SPECS): Redefine.
21527 (MULTILIB_DEFAULTS): Define.
21528 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
21529 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
21530 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
21531 (NO_DBX_BNSYM_ENSYM): Remove.
21532 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
21533 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
21534 (TARGET_ASM_NAMED_SECTION): Likewise.
21535 (STACK_CHECK_STATIC_BUILTIN): Remove.
21536 * config/sparc/sol2-bi.h: Remove.
21537 * config/sparc/sol2-gas-bi.h: Remove.
21538 * config/sparc/sol2-gas.h: Remove.
21539 * config/sparc/sol2-gld-bi.h: Remove.
21540 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
21541 common parts ...
21542 (*-*-solaris2*): ... here.
21543
21544 2011-06-21 Christian Bruel <christian.bruel@st.com>
21545
21546 PR other/43564
21547 * ipa-inline.c (can_inline_edge_p): Check
21548 !DECL_DISREGARD_INLINE_LIMITS.
21549
21550 2011-06-21 Christian Bruel <christian.bruel@st.com>
21551
21552 PR middle-end/49139
21553 * cgraphunit.c (process_function_and_variable_attributes): warn when
21554 always_inline functions that are not inline.
21555 * ipa-inline-transform.c (inline_transform): Always call
21556 optimize_inline.
21557 * tree-inline.c (tree_inlinable_function_p): Use error instead
21558 of sorry.
21559 (expand_call_inline): Likewise.
21560
21561 2011-06-21 Jakub Jelinek <jakub@redhat.com>
21562
21563 * Makefile.in (dg_target_exps): Set.
21564 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
21565 instead of 7, try to divide it more evenly.
21566
21567 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
21568
21569 PR target/49089
21570 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
21571 (avx256_split_unaligned_store): New definition.
21572 (ix86_option_override_internal): Enable avx256 unaligned load/store
21573 splitting only when avx256_split_unaligned_load/store is set.
21574
21575 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
21576
21577 * regrename.c (scan_rtx_reg): Handle the case where we write to an
21578 open chain in a smaller mode without failing the entire block.
21579
21580 2011-06-21 Alan Modra <amodra@gmail.com>
21581
21582 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
21583 CONST high part large-toc address.
21584 (rs6000_tls_referenced_p): Make static.
21585 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
21586
21587 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
21588
21589 PR target/49385
21590 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
21591 one of the operands is a register.
21592
21593 2011-06-20 Kai Tietz <ktietz@redhat.com>
21594
21595 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
21596 operations in combination with binary and.
21597
21598 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
21599
21600 * regrename.c (do_replace): Don't update notes.
21601
21602 2011-06-20 Alan Modra <amodra@gmail.com>
21603
21604 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
21605 of toc-relative address in CONST.
21606 (rs6000_delegitimize_address): Recognize changed address.
21607 (rs6000_legitimize_reload_address): Likewise.
21608 (rs6000_emit_move): Don't force these constants to memory.
21609 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
21610 toc-relative address in CONST.
21611 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
21612 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
21613
21614 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
21615
21616 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
21617 (count_trailing_zeros): Likewise.
21618
21619 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
21620
21621 PR other/49325
21622 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
21623 .init_array can be used with .ctors on targets.
21624 * configure: Regenerated.
21625
21626 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
21627
21628 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
21629 if the element type is volatile.
21630
21631 2011-06-18 Jan Hubicka <jh@suse.cz>
21632
21633 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
21634 extra name aliases.
21635 (lto_symtab_resolve_can_prevail_p): Likewise.
21636 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
21637 * cgraphbuild.c (record_reference): Remove extra body alias code.
21638 (mark_load): Likewise.
21639 (mark_store): Likewise.
21640 * cgraph.h (varpool_node): Remove extra_name filed;
21641 add alias_of and extraname_alias.
21642 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
21643 (varpool_alias_aliased_node): New inline function.
21644 (varpool_variable_node): New function.
21645 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
21646 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
21647 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
21648 (input_varpool_node): Likewise.
21649 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
21650 (varpool_externally_visible_p): Remove extra body alias code.
21651 (function_and_variable_visibility): Likewise.
21652 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
21653 (ipa_pta_execute): Use it.
21654 * varpool.c (varpool_remove_node): Remove extra name alias code.
21655 (varpool_mark_needed_node): Likewise.
21656 (varpool_analyze_pending_decls): Analyze aliases.
21657 (assemble_aliases): New functoin.
21658 (varpool_assemble_decl): Use it.
21659 (varpool_create_variable_alias): New function.
21660 (varpool_extra_name_alias): Rewrite.
21661 (varpool_for_node_and_aliases): New function.
21662
21663 2011-06-18 Jakub Jelinek <jakub@redhat.com>
21664
21665 PR target/49411
21666 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
21667 last_arg_constant and last argument doesn't match its predicate,
21668 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
21669 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
21670 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
21671 spelling of error message.
21672 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
21673 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
21674 const_0_to_255_operand instead of const_int_operand.
21675
21676 Revert:
21677 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
21678
21679 * config/i386/sse.md (blendbits): Remove mode attribute.
21680 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
21681 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
21682 Check integer value of operand 3 in insn constraint.
21683
21684 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
21685
21686 PR rtl-optimization/48542
21687 * reload.c (find_equiv_reg): Stop looking when finding a
21688 setjmp-type call.
21689 * reload1.c (reload_as_needed): Invalidate all reload
21690 registers when crossing a setjmp-type call.
21691
21692 2011-06-16 Jeff Law <law@redhat.com>
21693
21694 * tree-ssa-threadupdate.c (struct redirection_data): New field
21695 intermediate_edge.
21696 (THREAD_TARGET2): Define.
21697 (redirection_data_eq): Also check that the intermediate edge is equal.
21698 (lookup_redirection_data): Drop useless argument. Extract the
21699 outgoing_edge and intermediate edge from E. Callers updated.
21700 (copy_phi_args, update_destination_phis): New functions.
21701 (fix_duplicate_block_edges): Likewise.
21702 (create_edge_and_update_destination_phis): Duplicate all the edges
21703 hung off e->aux. Use copy_phi_args.
21704 (create_duplicates): Use fix_duplicate_block_edges.
21705 (fixup_template_block): Likewise.
21706 (redirect_edges): If necessary, redirect the joiner block's incoming
21707 edge to the duplicate of the joiner block.
21708 (thread_block): Don't muck up loops when threading through a joiner
21709 block.
21710 (thread_through_loop_header): Handle threading through a joiner block.
21711 (mark_threaded_blocks, register_jump_thread): Likewise.
21712 * tree-flow.h (register_jump_thread): Add new argument. Callers
21713 updated.
21714 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
21715 (thread_across_edge): Handle threading through a joiner block.
21716
21717 2011-06-16 Martin Jambor <mjambor@suse.cz>
21718
21719 PR tree-optimization/49343
21720 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
21721 calculate offset, provide 2nd operand for the new COMPONENT_REF.
21722
21723 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
21724
21725 * config/darwin-protos.h (machopic_select_rtx_section): Move to
21726 inside RTX_CODE ifdef.
21727
21728 2011-06-16 Tom de Vries <tom@codesourcery.com>
21729
21730 PR target/45098
21731 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
21732 Disallow NULL pointer for pointer arithmetic.
21733
21734 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
21735
21736 PR target/49398
21737 Revert.
21738 2011-06-10 Wei Guozhi <carrot@google.com>
21739
21740 PR target/45335
21741 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
21742 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
21743 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
21744 related peephole2.
21745 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
21746 related peephole2.
21747 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
21748 (arm_legitimate_ldrd_p): New prototype.
21749 (arm_output_ldrd): New prototype.
21750 * config/arm/arm.c (arm_check_ldrd_operands): New function.
21751 (arm_legitimate_ldrd_p): New function.
21752 (arm_output_ldrd): New function.
21753
21754 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
21755
21756 PR middle-end/46500
21757 * doc/tm.texi.in: Update Copyright date.
21758 * doc/tm.texi: Regenerate.
21759 * targhooks.c (default_setup_incoming_varargs): Replace
21760 CUMULATIVE_ARGS* argument type with cumulative_args_t.
21761 (default_pretend_outgoing_varargs_named): Likewise.
21762 (hook_pass_by_reference_must_pass_in_stack): Likewise.
21763 (hook_callee_copies_named): Likewise.
21764 (default_function_arg_advance): Likewise.
21765 (default_function_arg): Likewise.
21766 (default_function_incoming_arg): Likewise.
21767 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
21768 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
21769 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
21770 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
21771 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
21772 * targhooks.h (default_setup_incoming_varargs): Likewise.
21773 (default_pretend_outgoing_varargs_named): Likewise.
21774 (hook_pass_by_reference_must_pass_in_stack): Likewise.
21775 (hook_callee_copies_named): Likewise.
21776 (default_function_arg_advance): Likewise.
21777 (default_function_arg): Likewise.
21778 (default_function_incoming_arg): Likewise.
21779 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
21780 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
21781 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
21782 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
21783 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
21784 * target.def (pass_by_reference): Likewise.
21785 (setup_incoming_varargs, strict_argument_naming): Likewise.
21786 (pretend_outgoing_varargs_named, callee_copies): Likewise.
21787 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
21788 (function_incoming_arg): Likewise.
21789 * target.h: Don't include "tm.h" .
21790 (cumulative_args_t): New typedef.
21791 [GCC_TM_H] (get_cumulative_args): New static inline function.
21792 [GCC_TM_H] (pack_cumulative_args): Likewise.
21793 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
21794 argument type with cumulative_args_t.
21795 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
21796 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
21797 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
21798 (frv_arg_partial_bytes, frv_function_arg): Likewise.
21799 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
21800 (frv_function_arg_1): Likewise.
21801 * config/s390/s390.c (s390_pass_by_reference): Likewise.
21802 (s390_function_arg_advance, s390_function_arg): Likewise.
21803 * config/m32c/m32c.c (m32c_function_arg): Likewise.
21804 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
21805 (m32c_strict_argument_naming): Likewise.
21806 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
21807 (spu_function_arg_advance): Likewise.
21808 (spu_setup_incoming_varargs): Likewise. Make static.
21809 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
21810 Remove prototype.
21811 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
21812 CUMULATIVE_ARGS* argument type with cumulative_args_t.
21813 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
21814 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
21815 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
21816 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
21817 (mep_pass_by_reference, mep_function_arg): Likewise.
21818 (mep_function_arg_advance): Likewise.
21819 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
21820 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
21821 (m32r_function_arg, m32r_function_arg_advance): Likewise.
21822 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
21823 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
21824 (ix86_function_arg, ix86_pass_by_reference): Likewise.
21825 (ix86_setup_incoming_varargs): Likewise.
21826 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
21827 (sh_strict_argument_naming): Likewise.
21828 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
21829 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
21830 (sh_function_arg_advance, sh_function_arg): Likewise.
21831 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
21832 (pdp11_function_arg_advance): Likewise.
21833 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
21834 Likewise.
21835 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
21836 * config/avr/avr.c (avr_function_arg): Likewise.
21837 (avr_function_arg_advance): Likewise.
21838 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
21839 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
21840 (xtensa_function_arg_1): Likewise.
21841 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
21842 Likewise.
21843 (xstormy16_function_arg): Likewise.
21844 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
21845 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
21846 (fr30_function_arg_advance): Likewise.
21847 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
21848 (lm32_function_arg, lm32_function_arg_advance): Likewise.
21849 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
21850 (moxie_function_arg, moxie_function_arg_advance): Likewise.
21851 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
21852 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
21853 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
21854 (cris_function_arg, cris_function_incoming_arg): Likewise.
21855 (cris_function_arg_advance, cris_function_arg_1): Likewise.
21856 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
21857 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
21858 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
21859 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
21860 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
21861 (mn10300_arg_partial_bytes): Likewise.
21862 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
21863 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
21864 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
21865 (ia64_function_arg_1): Likewise.
21866 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
21867 (m68k_function_arg): Likewise.
21868 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
21869 (rs6000_function_arg, setup_incoming_varargs): Likewise.
21870 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
21871 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
21872 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
21873 (picochip_arg_advance): Likewise.
21874 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
21875 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
21876 (mcore_function_arg_advance): Likewise.
21877 * config/score/score.c (score_pass_by_reference): Likewise.
21878 (score_function_arg_advance): Likewise.
21879 (score_arg_partial_bytes): Likewise. Make static.
21880 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
21881 * config/arm/arm.c (arm_arg_partial_bytes): Replace
21882 CUMULATIVE_ARGS* argument type with cumulative_args_t.
21883 (arm_function_arg, arm_function_arg_advance): Likewise.
21884 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
21885 * config/pa/pa.c (pa_pass_by_reference): Likewise.
21886 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
21887 (pa_function_arg): Likewise.
21888 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
21889 (mips_function_arg, mips_function_arg_advance): Likewise.
21890 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
21891 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
21892 * config/vax/vax.c (vax_function_arg): Likewise.
21893 (vax_function_arg_advance): Likewise.
21894 * config/h8300/h8300.c (h8300_function_arg): Likewise.
21895 (h8300_function_arg_advance): Likewise.
21896 * config/v850/v850.c (v850_pass_by_reference): Likewise.
21897 (v850_strict_argument_naming, v850_function_arg): Likewise.
21898 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
21899 (v850_setup_incoming_varargs): Likewise.
21900 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
21901 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
21902 (mmix_function_arg, mmix_pass_by_reference): Likewise.
21903 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
21904 with const void *.
21905 * config/bfin/bfin.c (setup_incoming_varargs): Replace
21906 CUMULATIVE_ARGS* argument type with cumulative_args_t.
21907 (bfin_function_arg_advance, bfin_function_arg): Likewise.
21908 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
21909 * calls.c (emit_call_1): Change type of args_so_far to
21910 cumulative_args_t. Changed all callers.
21911 (initialize_argument_information): Likewise.
21912 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
21913 * dse.c (get_call_args): Likewise.
21914 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
21915 * function.c (pass_by_reference, reference_callee_copied): Likewise.
21916 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
21917 New member args_so_far_v. Changed all users.
21918 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
21919 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
21920 * config/mips/mips.c (mips_output_args_xfer): Likewise.
21921 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
21922 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
21923 * config/microblaze/microblaze.c (microblaze_expand_prologue):
21924 Likewise.
21925 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
21926 m32r_pass_by_reference.
21927
21928 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
21929
21930 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
21931 argument to be a VEC of statements.
21932 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
21933 assert that pattern statements have to have their vector type set.
21934 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
21935 Change the first argument to be a VEC of statements. Update
21936 documentation.
21937 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
21938 (vect_handle_widen_mult_by_const): New function.
21939 (vect_recog_widen_mult_pattern): Change the first argument to be a
21940 VEC of statements. Update documentation. Check that the constant is
21941 INTEGER_CST. Support multiplication by a constant that fits an
21942 intermediate type - call vect_handle_widen_mult_by_const.
21943 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
21944 call. Handle additional pattern statements if necessary.
21945
21946 2011-06-16 Nick Clifton <nickc@redhat.com>
21947
21948 PR target/49427
21949 * config.gcc: Set cpu_type to v850 for any V850 architecture.
21950 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
21951 md_file, extra_modes, out_file and extra_options are these are all
21952 deduced from cpu_type.
21953
21954 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
21955
21956 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
21957 truncation mask to 63.
21958
21959 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
21960
21961 PR target/49313
21962 PR target/29524
21963 * longlong.h: Add AVR support:
21964 (count_leading_zeros): New macro.
21965 (count_trailing_zeros): New macro.
21966 (COUNT_LEADING_ZEROS_0): New macro.
21967 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
21968 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
21969 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
21970 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
21971 (LIB2FUNCS_EXCLUDE): Add _clz.
21972 * config/avr/libgcc.S (XCALL): Move up in file.
21973 (XJMP): New C Macro.
21974 (DEFUN): New asm macro.
21975 (ENDF): New asm macro.
21976 (__ffssi2): New function.
21977 (__ffshi2): New function.
21978 (__loop_ffsqi2): New function.
21979 (__ctzsi2): New function.
21980 (__ctzhi2): New function.
21981 (__clzdi2): New function.
21982 (__clzsi2): New function.
21983 (__clzhi2): New function.
21984 (__paritydi2): New function.
21985 (__paritysi2): New function.
21986 (__parityhi2): New function.
21987 (__parityqi2): New function.
21988 (__popcounthi2): New function.
21989 (__popcountsi2): New function.
21990 (__popcountdi2): New function.
21991 (__popcountqi2): New function.
21992 (__bswapsi2): New function.
21993 (__bswapdi2): New function.
21994 (__ashldi3): New function.
21995 (__ashrdi3): New function.
21996 (__lshrdi3): New function.
21997 Fix suspicous lines.
21998
21999 2011-06-16 Richard Guenther <rguenther@suse.de>
22000
22001 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
22002 the same as x != 0.
22003 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
22004 to (bool) X & 1.
22005 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
22006 equality compares against zero for the lower bit.
22007
22008 2011-06-16 Jakub Jelinek <jakub@redhat.com>
22009
22010 PR tree-optimization/49419
22011 * tree-vrp.c (execute_vrp): Call init_range_assertions
22012 before estimate_numbers_of_iterations, call
22013 free_number_of_iterations_estimates before calling
22014 remove_range_assertions.
22015
22016 2011-06-16 Revital Eres <revital.eres@linaro.org>
22017
22018 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
22019 (struct partial_schedule): Add rows_length field.
22020 (verify_partial_schedule): Check rows_length.
22021 (ps_insert_empty_row): Handle rows_length.
22022 (create_partial_schedule): Likewise.
22023 (free_partial_schedule): Likewise.
22024 (reset_partial_schedule): Likewise.
22025 (create_ps_insn): Remove rest_count argument.
22026 (remove_node_from_ps): Update rows_length.
22027 (add_node_to_ps): Update rows_length and call create_ps_insn
22028 without passing row_rest_count.
22029 (rotate_partial_schedule): Update rows_length.
22030
22031 2011-06-16 Revital Eres <revital.eres@linaro.org>
22032
22033 * ddg.c (add_intra_loop_mem_dep): New function.
22034 (build_intra_loop_deps): Call it.
22035
22036 2011-06-13 Jeff Law <law@redhat.com>
22037
22038 * df-problems.c (df_lr_local_compute): Manually CSE
22039 PIC_OFFSET_TABLE_REGNUM.
22040 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
22041 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
22042
22043 2011-06-13 Jan Hubicka <jh@suse.cz>
22044
22045 * cgraphunit.c (handle_alias_pairs): New function.
22046 (cgraph_finalize_compilation_unit): Use it.
22047 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
22048 as externally visible.
22049
22050 2011-06-15 Richard Guenther <rguenther@suse.de>
22051
22052 * expr.c (expand_expr_real_2): Reduce all integral types to
22053 bitfield precision.
22054 (expand_expr_real_1): Likewise.
22055
22056 2011-06-15 Martin Jambor <mjambor@suse.cz>
22057
22058 PR tree-optimization/48613
22059 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
22060 ipa_node_params_vector is NULL.
22061
22062 2011-06-15 Jakub Jelinek <jakub@redhat.com>
22063
22064 PR debug/49382
22065 * dwarf2out.c (dw_loc_list_node): Add force field.
22066 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
22067 location in the list, even if it is modified before first real insn.
22068 (output_loc_list): Emit empty ranges with force flag set.
22069 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
22070
22071 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
22072
22073 PR target/49349
22074 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
22075 (fence_to_rewind). Use it to notice when bookkeeping will be placed
22076 above a fence. Update comments.
22077 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
22078 placed just above it. Do not allow NULL place_to_insert.
22079
22080 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
22081
22082 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
22083 (slpeel_tree_peel_loop_to_edge): Don't call
22084 remove_dead_stmts_from_loop.
22085 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
22086 remove irrelevant pattern statements. For irrelevant statements
22087 check if it is the last statement of a detected pattern, use
22088 corresponding pattern statement instead.
22089 (destroy_loop_vec_info): No need to remove pattern statements,
22090 only free stmt_vec_info.
22091 (vect_transform_loop): For irrelevant statements check if it is
22092 the last statement of a detected pattern, use corresponding
22093 pattern statement instead.
22094 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
22095 pattern statements. Set basic block for the new statement.
22096 (vect_pattern_recog): Update documentation.
22097 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
22098 operands of pattern statements.
22099 (vectorizable_call): Fix printing. In case of a pattern statement
22100 use the lhs of the original statement when creating a dummy
22101 statement to replace the original call.
22102 (vect_analyze_stmt): For irrelevant statements check if it is
22103 the last statement of a detected pattern, use corresponding
22104 pattern statement instead.
22105 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
22106 statements use gsi of the original statement.
22107
22108 2011-06-14 Joseph Myers <joseph@codesourcery.com>
22109
22110 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
22111 common/common-target-def.h.
22112 * target.def (default_target_flags, handle_option,
22113 supports_split_stack, optimization_table, init_struct,
22114 except_unwind_info, unwind_tables_default, have_named_sections):
22115 Move to common/common-target.def.
22116 * target.h (enum opt_levels, struct default_options): Move to
22117 common/common-target.h.
22118 * targhooks.c (default_except_unwind_info,
22119 dwarf2_except_unwind_info, sjlj_except_unwind_info,
22120 default_target_handle_option, empty_optimization_table): Move to
22121 common/common-targhooks.c.
22122 * targhooks.h (default_except_unwind_info,
22123 dwarf2_except_unwind_info, sjlj_except_unwind_info,
22124 default_target_handle_option, empty_optimization_table): Move to
22125 common/common-targhooks.h.
22126 * common/common-target-def.h: Include common/common-targhooks.h.
22127 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
22128 defined.
22129 * common/common-target.def (handle_option, option_init_struct,
22130 option_optimization_table, default_target_flags,
22131 except_unwind_info, supports_split_stack, unwind_tables_default,
22132 have_named_sections): Move from target.def.
22133 (HOOK_PREFIX): Undefine at end of file.
22134 * common/common-target.h: Include input.h.
22135 (enum opt_levels, struct default_options): Move from target.h.
22136 * common/common-targhooks.c, common/common-targhooks.h: New.
22137 * config.gcc (target_has_targetm_common): Default to yes.
22138 (moxie*): Set target_has_targetm_common=no.
22139 (hppa*-*-*): Don't set target_has_targetm_common=yes.
22140 * doc/tm.texi: Regenerate.
22141 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
22142 (C_TARGET_DEF_H): Add common/common-targhooks.h.
22143 (GCC_OBJS): Remove vec.o.
22144 (OBJS): Remove hooks.o and vec.o.
22145 (OBJS-libcommon-target): Add vec.o, hooks.o and
22146 common/common-targhooks.o.
22147 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
22148 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
22149 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
22150 cfglayout.o, $(out_object_file), $(common_out_object_file)):
22151 Update dependencies.
22152 (common/common-targhooks.o): New.
22153 * common/config/default-common.c: Include tm.h. Add FIXME comment.
22154 * common/config/pa/pa-common.c: Include more headers. Take
22155 copyright dates from pa.c.
22156 (pa_option_optimization_table, pa_handle_option,
22157 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
22158 TARGET_HANDLE_OPTION): Move from pa.c.
22159 * common/config/alpha/alpha-common.c,
22160 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
22161 common/config/bfin/bfin-common.c,
22162 common/config/cris/cris-common.c,
22163 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
22164 common/config/h8300/h8300-common.c,
22165 common/config/i386/i386-common.c,
22166 common/config/ia64/ia64-common.c,
22167 common/config/iq2000/iq2000-common.c,
22168 common/config/lm32/lm32-common.c,
22169 common/config/m32c/m32c-common.c,
22170 common/config/m32r/m32r-common.c,
22171 common/config/m68k/m68k-common.c,
22172 common/config/mcore/mcore-common.c,
22173 common/config/mep/mep-common.c,
22174 common/config/microblaze/microblaze-common.c,
22175 common/config/mips/mips-common.c,
22176 common/config/mmix/mmix-common.c,
22177 common/config/mn10300/mn10300-common.c,
22178 common/config/pdp11/pdp11-common.c,
22179 common/config/picochip/picochip-common.c,
22180 common/config/rs6000/rs6000-common.c,
22181 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
22182 common/config/score/score-common.c, common/config/sh/sh-common.c,
22183 common/config/sparc/sparc-common.c,
22184 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
22185 common/config/vax/vax-common.c,
22186 common/config/xstormy16/xstormy16-common.c,
22187 common/config/xtensa/xtensa-common.c: New.
22188 * config/alpha/alpha.c: Include common/common-target.h.
22189 (alpha_option_optimization_table, alpha_handle_option,
22190 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
22191 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
22192 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
22193 * config/arm/arm.c (arm_option_optimization_table,
22194 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
22195 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
22196 arm-common.c.
22197 * config/avr/avr.c (avr_option_optimization_table,
22198 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
22199 to avr-common.c.
22200 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
22201 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
22202 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
22203 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
22204 * config/cris/cris.c (cris_option_optimization_table,
22205 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
22206 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
22207 cris-common.c.
22208 * config/fr30/fr30.c (fr30_option_optimization_table,
22209 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
22210 to fr30-common.c.
22211 * config/frv/frv.c (frv_option_optimization_table,
22212 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
22213 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
22214 * config/h8300/h8300.c (h8300_option_optimization_table,
22215 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
22216 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
22217 * config/i386/i386-protos.h (ix86_handle_option): Declare.
22218 * config/i386/i386.c: Include common/common-target.h.
22219 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
22220 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
22221 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
22222 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
22223 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
22224 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
22225 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
22226 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
22227 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
22228 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
22229 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
22230 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
22231 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
22232 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
22233 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
22234 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
22235 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
22236 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
22237 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
22238 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
22239 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
22240 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
22241 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
22242 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
22243 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
22244 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
22245 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
22246 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
22247 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
22248 ix86_option_optimization_table, ix86_option_init_struct,
22249 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
22250 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
22251 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
22252 i386-common.c.
22253 * config/i386/t-i386 (i386.o): Update dependencies.
22254 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
22255 * config/ia64/ia64.c (ia64_option_optimization_table,
22256 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
22257 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
22258 ia64_handle_option): Move to ia64-common.c.
22259 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
22260 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
22261 * config/lm32/lm32.c (lm32_option_optimization_table,
22262 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
22263 to lm32-common.c.
22264 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
22265 m32c-common.c.
22266 * config/m32r/m32r.c (m32r_option_optimization_table,
22267 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
22268 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
22269 m32r_handle_option): Move to m32r-common.c.
22270 (m32r_memory_move_cost): Remove comment referring to
22271 TARGET_HANDLE_OPTION.
22272 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
22273 Move to m68k-common.c.
22274 * config/mcore/mcore.c (mcore_option_optimization_table,
22275 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
22276 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
22277 * config/mep/mep.c (mep_option_optimization_table,
22278 mep_handle_option, TARGET_HANDLE_OPTION,
22279 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
22280 Move to mep-common.c.
22281 * config/microblaze/microblaze.c
22282 (microblaze_option_optimization_table,
22283 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
22284 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
22285 * config/mips/mips.c (mips_handle_option,
22286 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
22287 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
22288 mips-common.c.
22289 * config/mmix/mmix.c (mmix_option_optimization_table,
22290 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
22291 Move to mmix-common.c.
22292 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
22293 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
22294 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
22295 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
22296 * config/pa/pa.c: Include common/common-target.h.
22297 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
22298 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
22299 pa_handle_option): Move to pa-common.c.
22300 (pa_option_override): Use targetm_common.except_unwind_info.
22301 (pa_asm_output_mi_thunk, pa_function_section): Use
22302 targetm_common.have_named_sections.
22303 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
22304 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
22305 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
22306 pdp11_handle_option, pdp11_option_init_struct): Move to
22307 pdp11-common.c.
22308 * config/picochip/picochip.c (picochip_option_optimization_table,
22309 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
22310 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
22311 * config/rs6000/rs6000.c: Include common/common-target.h.
22312 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
22313 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
22314 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
22315 rs6000_handle_option): Move to rs6000-common.c.
22316 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
22317 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
22318 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
22319 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
22320 * config/s390/s390.c (processor_flags_table,
22321 s390_option_optimization_table, s390_option_init_struct,
22322 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
22323 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
22324 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
22325 * config/s390/s390.h (processor_flags_table): Declare.
22326 * config/score/score.c (score_option_optimization_table,
22327 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
22328 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
22329 score_handle_option): Move to score-common.c.
22330 * config/sh/sh.c (sh_option_optimization_table,
22331 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
22332 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
22333 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
22334 * config/sparc/sparc.c: Include common/common-target.h.
22335 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
22336 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
22337 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
22338 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
22339 spu_option_init_struct): Move to spu-common.c.
22340 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
22341 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
22342 * config/v850/v850.c (small_memory_physical_max,
22343 v850_handle_memory_optionn v850_handle_option,
22344 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
22345 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
22346 v850-common.c.
22347 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
22348 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
22349 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
22350 Move to xtensa-common.c.
22351 * cfglayout.c: Include common/common-target.h.
22352 (fixup_reorder_chain): Use targetm_common.have_named_sections.
22353 * cfgrtl.c: Include common/common-target.h.
22354 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
22355 targetm_common.have_named_sections.
22356 * dbxout.c: Include common/common-target.h.
22357 (dbxout_function_end): Use targetm_common.have_named_sections.
22358 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
22359 targetm_common.except_unwind_info.
22360 * dwarf2out.c: Include common/common-target.h.
22361 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
22362 dwarf2out_begin_prologue, dwarf2out_frame_init,
22363 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
22364 targetm_common.except_unwind_info.
22365 * except.c: Include common/common-target.h.
22366 (init_eh, finish_eh_generation,
22367 output_one_function_exception_table): Use
22368 targetm_common.except_unwind_info.
22369 (switch_to_exception_section): Use targetm_common.have_named_sections.
22370 * explow.c: Include common/common-target.h.
22371 * expr.c: Include common/common-target.h.
22372 (build_personality_function): Use targetm_common.except_unwind_info.
22373 * function.c: Include common/common-target.h.
22374 (expand_function_end): Use targetm_common.except_unwind_info.
22375 * haifa-sched.c: Include common/common-target.h.
22376 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
22377 * lto-opts.c: Include common/common-target.h instead of target.h.
22378 (lto_reissue_options): Use targetm_common.handle_option.
22379 * opts.c: Include common/common-target.h.
22380 (target_handle_option): Use targetm_common.handle_option.
22381 (init_options_struct): Update comment referring to
22382 targetm.target_option.optimization. Use
22383 targetm_common.default_target_flags,
22384 targetm_common.unwind_tables_default and
22385 targetm_common.option_init_struct.
22386 (default_options_optimization): Use
22387 targetm_common.option_optimization_table.
22388 (finish_options): Use targetm_common.except_unwind_info,
22389 targetm_common.unwind_tables_default,
22390 targetm_common.have_named_sections and
22391 targetm_common.supports_split_stack.
22392 * toplev.c: Include common/common-target.h.
22393 (process_options): Use targetm_common.have_named_sections.
22394 * tree-tailcall.c: Include common/common-target.h.
22395 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
22396 * tree.c: Include common/common-target.h.
22397 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
22398 * varasm.c: Include common/common-target.h.
22399 (resolve_unique_section, hot_function_section,
22400 default_function_section): Use targetm_common.have_named_sections.
22401
22402 2011-06-14 Easwaran Raman <eraman@google.com>
22403
22404 PR rtl-optimization/44194
22405 * dse.c: Include tree-flow.h
22406 (insn_info): Add new field non_frame_wild_read.
22407 (group_info): Add new fields escaped_n and escaped_p.
22408 (kill_on_calls): New variable.
22409 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
22410 (dse_step0): Initialize kill_on_calls.
22411 (can_escape): New function.
22412 (set_usage_bits): Add additional parameter; record information
22413 about escaped locations.
22414 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
22415 (dse_step2_nospill): Set kill_on_calls based on
22416 group->escaped_n and group->escaped_n.
22417 (add_wild_read): Refactor into...
22418 (reset_active_stores): ... New function, and
22419 (free_read_records): ... New function.
22420 (add_non_frame_wild_read): New function.
22421 (scan_insn): Call add_non_frame_wild_read on non-const calls.
22422 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
22423 (dse_step5_nospill): Call scan_reads_nospill for instructions
22424 marked as non_frame_wild_read.
22425 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
22426
22427 2011-06-14 Joseph Myers <joseph@codesourcery.com>
22428
22429 * common/common-target-def.h, common/common-target.def,
22430 common/common-target.h, common/config/default-common.c,
22431 common/config/pa/pa-common.c: New files.
22432 * Makefile.in (common_out_file, common_out_object_file,
22433 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
22434 (OBJS-libcommon-target): Include $(common_out_object_file).
22435 (prefix.o): Update dependencies.
22436 ($(common_out_object_file), common/common-target-hooks-def.h,
22437 s-common-target-hooks-def-h): New.
22438 (s-tm-texi): Also check timestamp on common-target.def.
22439 (build/genhooks.o): Update dependencies.
22440 * config.gcc (common_out_file, target_has_targetm_common): Define.
22441 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
22442 TARGET_ALWAYS_STRIP_DOTDOT.
22443 * configure.ac (common_out_object_file): Define.
22444 (common_out_file, common_out_object_file): Substitute.
22445 (common): Create directory.
22446 * configure: Regenerate.
22447 * doc/tm.texi.in (targetm_common): Document.
22448 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
22449 * doc/tm.texi: Regenerate.
22450 * genhooks.c (hook_array): Also include common/common-target.def.
22451 * prefix.c (tm.h): Don't include.
22452 (common/common-target.h): Include.
22453 (ALWAYS_STRIP_DOTDOT): Don't define.
22454 (update_path): Use targetm_common.always_strip_dotdot instead of
22455 ALWAYS_STRIP_DOTDOT.
22456 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
22457
22458 2011-06-14 David Li <davidxl@google.com>
22459
22460 * passes.c (execute_function_todo): Remove TODO_dump_func.
22461 (execute_one_pass): Remove TODO_dump_func.
22462 (execute_function_dump): New function.
22463 * tree-vrp.c: Remove TODO_dump_func.
22464 * regrename.c: Remove TODO_dump_func.
22465 * fwprop.c: Remove TODO_dump_func.
22466 * tree-into-ssa.c: Remove TODO_dump_func.
22467 * tree-complex.c: Remove TODO_dump_func.
22468 * tracer.c: Remove TODO_dump_func.
22469 * tree-loop-distribution.c: Remove TODO_dump_func.
22470 * postreload-gcse.c: Remove TODO_dump_func.
22471 * postreload.c: Remove TODO_dump_func.
22472 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
22473 * tree-tailcall.c: Remove TODO_dump_func.
22474 * ipa-cp.c: Remove TODO_dump_func.
22475 * final.c: Remove TODO_dump_func.
22476 * tree-emutls.c: Remove TODO_dump_func.
22477 * omp-low.c: Remove TODO_dump_func.
22478 * tree-ssa-dse.c: Remove TODO_dump_func.
22479 * tree-ssa-uncprop.c: Remove TODO_dump_func.
22480 * auto-inc-dec.c: Remove TODO_dump_func.
22481 * reorg.c: Remove TODO_dump_func.
22482 * tree-ssa-copyrename.c: Remove TODO_dump_func.
22483 * tree-ssa-ccp.c: Remove TODO_dump_func.
22484 * compare-elim.c: Remove TODO_dump_func.
22485 * mode-switching.c: Remove TODO_dump_func.
22486 * modulo-sched.c: Remove TODO_dump_func.
22487 * tree-call-cdce.c: Remove TODO_dump_func.
22488 * cse.c: Remove TODO_dump_func.
22489 * web.c: Remove TODO_dump_func.
22490 * tree-stdarg.c: Remove TODO_dump_func.
22491 * lto-streamer-out.c: Remove TODO_dump_func.
22492 * tree-ssa-math-opts.c: Remove TODO_dump_func.
22493 * tree-ssa-dom.c: Remove TODO_dump_func.
22494 * tree-nrv.c: Remove TODO_dump_func.
22495 * loop-init.c: Remove TODO_dump_func.
22496 * gimple-low.c: Remove TODO_dump_func.
22497 * ipa-inline.c: Remove TODO_dump_func.
22498 * tree-ssa-sink.c: Remove TODO_dump_func.
22499 * jump.c: Remove TODO_dump_func.
22500 * ifcvt.c: Remove TODO_dump_func.
22501 * tree-ssa-loop.c: Remove TODO_dump_func.
22502 * recog.c: Remove TODO_dump_func.
22503 * dse.c: Remove TODO_dump_func.
22504 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
22505 * matrix-reorg.c: Remove TODO_dump_func.
22506 * tree-eh.c: Remove TODO_dump_func.
22507 * regmove.c: Remove TODO_dump_func.
22508 * function.c: Remove TODO_dump_func.
22509 * tree-vectorizer.c: Remove TODO_dump_func.
22510 * ipa-split.c: Remove TODO_dump_func.
22511 * gcse.c: Remove TODO_dump_func.
22512 * tree-if-conv.c: Remove TODO_dump_func.
22513 * init-regs.c: Remove TODO_dump_func.
22514 * tree-ssa-phiopt.c: Remove TODO_dump_func.
22515 * implicit-zee.c: Remove TODO_dump_func.
22516 * lower-subreg.c: Remove TODO_dump_func.
22517 * bt-load.c: Remove TODO_dump_func.
22518 * tree-dfa.c: Remove TODO_dump_func.
22519 * except.c: Remove TODO_dump_func.
22520 * emit-rtl.c: Remove TODO_dump_func.
22521 * store-motion.c: Remove TODO_dump_func.
22522 * cfgexpand.c: Remove TODO_dump_func.
22523 * tree-cfgcleanup.c: Remove TODO_dump_func.
22524 * cfgcleanup.c: Remove TODO_dump_func.
22525 * tree-ssa-pre.c: Remove TODO_dump_func.
22526 * tree-sra.c: Remove TODO_dump_func.
22527 * tree-mudflap.c: Remove TODO_dump_func.
22528 * tree-ssa-copy.c: Remove TODO_dump_func.
22529 * cfglayout.c: Remove TODO_dump_func.
22530 * tree-ssa-forwprop.c: Remove TODO_dump_func.
22531 * tree-ssa-dce.c: Remove TODO_dump_func.
22532 * ira.c: Remove TODO_dump_func.
22533 * tree-ssa.c: Remove TODO_dump_func.
22534 * integrate.c: Remove TODO_dump_func.
22535 * tree-optimize.c: Remove TODO_dump_func.
22536 * tree-ssa-phiprop.c: Remove TODO_dump_func.
22537 * tree-object-size.c: Remove TODO_dump_func.
22538 * combine.c: Remove TODO_dump_func.
22539 * bb-reorder.c: Remove TODO_dump_func.
22540 * cprop.c: Remove TODO_dump_func.
22541 * var-tracking.c: Remove TODO_dump_func.
22542 * tree-profile.c: Remove TODO_dump_func.
22543 * tree-vect-generic.c: Remove TODO_dump_func.
22544 * reg-stack.c: Remove TODO_dump_func.
22545 * sched-rgn.c: Remove TODO_dump_func.
22546 * tree-ssa-structalias.c: Remove TODO_dump_func.
22547 * tree-switch-conversion.c: Remove TODO_dump_func.
22548 * tree-cfg.c: Remove TODO_dump_func.
22549 * tree-ssa-reassoc.c: Remove TODO_dump_func.
22550 * combine-stack-adj.c: Remove TODO_dump_func.
22551 * dce.c: Remove TODO_dump_func.
22552 * tree-ssanames.c: Remove TODO_dump_func.
22553 * regcprop.c: Remove TODO_dump_func.
22554
22555 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
22556
22557 PR middle-end/47364
22558 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
22559 and properly handle result not in Pmode.
22560
22561 2011-06-14 Robert Millan <rmh@gnu.org>
22562
22563 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
22564 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
22565 `config/linux.h'.
22566
22567 * config/i386/kfreebsd-gnu64.h: New file.
22568 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
22569 with `i386/kfreebsd-gnu64.h'.
22570
22571 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
22572 (GNU_USER_LINK_EMULATION64): New macros.
22573 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
22574 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
22575 of hardcoding `elf_i386' and `elf_x86_64'.
22576
22577 2011-06-14 Nick Clifton <nickc@redhat.com>
22578
22579 PR target/49403
22580 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
22581
22582 PR target/49402
22583 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
22584
22585 2011-06-14 Jakub Jelinek <jakub@redhat.com>
22586
22587 PR fortran/49103
22588 * tree.h (DECL_NONSHAREABLE): Define.
22589 (struct tree_decl_common): Change decl_common_unused to
22590 decl_nonshareable_flag.
22591 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
22592 Ignore vars with DECL_NONSHAREABLE bit set.
22593 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
22594 on stores to automatic aggregate vars.
22595
22596 PR rtl-optimization/49390
22597 Revert:
22598 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
22599
22600 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
22601 MEM_ALIAS_SET.
22602
22603 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
22604 Tom de Vries <tom@codesourcery.com>
22605
22606 PR target/45098
22607 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
22608 Document changed semantics.
22609 (max_stmt_executions, max_stmt_executions_int): Declare.
22610 * tree-data-ref.c (estimated_loop_iterations)
22611 (estimated_loop_iterations_int): Move functions...
22612 * tree-ssa-loop-niter.c (estimated_loop_iterations)
22613 (estimated_loop_iterations_int): here.
22614 (record_estimate): Change nb_iterations_upper_bound and
22615 nb_iterations_estimate semantics.
22616 (max_stmt_executions, max_stmt_executions_int): New function.
22617 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
22618 (max_stmt_executions_tree): this.
22619 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
22620 estimated_loop_iterations_tree.
22621 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
22622 max_stmt_executions_int instead of estimated_loop_iterations_int.
22623 * predict.c (predict_loops): Idem.
22624 * tree-parloops.c (parallelize_loops): Idem.
22625 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
22626 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
22627 (init_omega_for_ddr_1): Idem.
22628 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
22629 (loop_prefetch_arrays): Idem
22630 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
22631 max_stmt_executions instead of estimated_loop_iterations.
22632 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
22633 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
22634 instead of nb_iterations_upper_bound.
22635
22636 2011-06-13 Jan Hubicka <jh@suse.cz>
22637
22638 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
22639
22640 2011-06-14 Richard Henderson <rth@redhat.com>
22641
22642 PR debug/48459
22643 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
22644 (based_loc_descr): Assert it's true.
22645 (compute_frame_pointer_to_fb_displacement): Set it, rather than
22646 aborting immediately.
22647
22648 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
22649 Mingfeng Wu <mingfeng@faraday-tech.com>
22650
22651 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
22652
22653 2011-06-13 Jan Hubicka <jh@suse.cz>
22654
22655 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
22656
22657 2011-06-13 Jan Hubicka <jh@suse.cz>
22658
22659 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
22660 similarly to DECL_COMDAT.
22661 * cgraphunit.c (cgraph_analyze_function): Likewise.
22662 * ipa.c (function_and_variable_visibility): Likewise.
22663
22664 2011-06-13 Jan Hubicka <jh@suse.cz>
22665
22666 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
22667 BINFO_VIRTUALS when streaming for ltrans unit.
22668
22669 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
22670
22671 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
22672 (movdi_internal64): Same.
22673
22674 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
22675
22676 PR target/44618
22677 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
22678 a set of similar patterns, where the MATCH_OPERAND for the function
22679 argument is replaced with individual references to hardware registers.
22680 (save_fpregs_<mode>): Ditto
22681 (restore_gpregs_<mode>): Ditto
22682 (return_and_restore_gpregs_<mode>): Ditto
22683 (return_and_restore_fpregs_<mode>): Ditto
22684 (return_and_restore_fpregs_aix_<mode>): Ditto
22685
22686 2011-06-13 Jan Hubicka <jh@suse.cz>
22687
22688 * ipa-utils.c (postorder_stack): New structure.
22689 (ipa_reverse_postorder): Handle aliases.
22690
22691 2011-06-13 Jan Hubicka <jh@suse.cz>
22692
22693 * ipa-inline.c (reset_edge_caches): Walk aliases.
22694 (update_caller_keys): Do not test inlinability of aliases.
22695 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
22696 (do_estimate_growth): Fix typo.
22697
22698 2011-06-13 Jan Hubicka <jh@suse.cz>
22699
22700 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
22701 (can_remove_node_now_p): ... here; handle same comdat groups.
22702 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
22703 (inline_call): Update use of can_remove_node_now_p.
22704
22705 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
22706
22707 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
22708 condition to disallow non-identical memory locations.
22709 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
22710 preference to bit manipulation instructions.
22711
22712 2011-06-13 Jan Hubicka <jh@suse.cz>
22713
22714 * cgraph.c (cgraph_for_node_thunks_and_aliases,
22715 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
22716 (nonremovable_p): New function.
22717 (cgraph_can_remove_if_no_direct_calls_p): New function.
22718 (used_from_object_file_p): New functoin.
22719 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
22720 references from aliases.
22721 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
22722 * ipa-inline.c (check_caller_edge): New function.
22723 (want_inline_function_called_once_p): Use it; accept aliases called
22724 once, too.
22725 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
22726
22727 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
22728
22729 PR target/48454
22730 * config/arm/neon.md (vec_pack_trunc): Set the lengths
22731 correctly for the case with Quad vectors.
22732
22733 2011-06-13 Jakub Jelinek <jakub@redhat.com>
22734 Ira Rosen <ira.rosen@linaro.org>
22735
22736 PR tree-optimization/49352
22737 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
22738 all, make sure loop_use_stmt after the loop is a def stmt of a used
22739 SSA_NAME that is the only one defined inside of the loop. Don't
22740 check for COND_EXPR and GIMPLE_BINARY_RHS.
22741 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
22742 check_reduction is true.
22743
22744 2011-06-11 Jan Hubicka <jh@suse.cz>
22745
22746 PR middle-end/49373
22747 * ipa.c (cgraph_externally_visible_p): Check resolution info.
22748
22749 2011-06-11 Jan Hubicka <jh@suse.cz>
22750
22751 PR middle-end/48836
22752 * ipa-inline-transform.c: Include tree-pass.h
22753 (inline_transform): Set TODO_update_ssa_only_virtuals.
22754 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
22755
22756 2011-06-11 Jan Hubicka <jh@suse.cz>
22757
22758 PR middle-end/49378
22759 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
22760 aliases and thunks.
22761
22762 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
22763
22764 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
22765 Take number of iterations to peel into account for equally frequent
22766 misalignment values.
22767
22768 2011-06-11 Jan Hubicka <jh@suse.cz>
22769
22770 * lto-streamer-out.c (produce_symtab): Stream out the newly
22771 represented aliases.
22772
22773 2011-06-11 Jan Hubicka <jh@suse.cz>
22774
22775 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
22776 varying args.
22777 (ipa_update_after_lto_read): Likewise.
22778 (ipa_write_node_info): Do not sream call_with_var_arguments.
22779 (ipa_read_node_info): Likewise.
22780
22781 2011-06-11 Jan Hubicka <jh@suse.cz>
22782
22783 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
22784
22785 2011-06-11 Jan Hubicka <jh@suse.cz>
22786
22787 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
22788 (lto_symtab_resolve_can_prevail_p): Likewise.
22789 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
22790 * cgraph.c (same_body_aliases_done): New global var.
22791 (cgraph_same_body_alias_1): Rename to ...
22792 (cgraph_create_function_alias): ... this one; reorg to new
22793 representation.
22794 (cgraph_same_body_alias): Use cgraph_create_function_alias;
22795 record references when asked to.
22796 (cgraph_add_thunk): Fix formating.
22797 (cgraph_get_node): Kill same body alias code.
22798 (cgraph_node_for_asm): Likewise.
22799 (cgraph_remove_same_body_alias): Remove.
22800 (cgraph_remove_node): Kill same body alias code.
22801 (cgraph_mark_address_taken_node): Mark also the aliased function
22802 as having address taken.
22803 (dump_cgraph_node): Dump same body aliases.
22804 (cgraph_for_node_thunks_and_aliases): Update for new alias
22805 representation.
22806 (cgraph_for_node_and_aliases): Likewise.
22807 * cgraph.h (same_body): Kll pointer.
22808 (same_body_alias): Update comment.
22809 (same_body_aliases_done): Declare.
22810 (cgraph_remove_same_body_alias): Remove declaration.
22811 (cgraph_create_function_alias): Declare.
22812 (cgraph_process_same_body_aliases): Declare.
22813 (cgraph_function_with_gimple_body_p): Check for alias.
22814 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
22815 (cgraph_alias_aliased_node): New function.
22816 (cgraph_function_node): Update for new aliases.
22817 (cgraph_function_or_thunk_node): Likewise.
22818 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
22819 (inline_call): Remove dead aliases.
22820 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
22821 name hack for same body aliases.
22822 (clone_of_p): Look through aliases.
22823 (verify_cgraph_node): Verify aliases.
22824 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
22825 (cgraph_process_same_body_aliases): New function.
22826 (process_function_and_variable_attributes): Disable weakref warning on
22827 alias.
22828 (cgraph_analyze_functions): Handle aliases.
22829 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
22830 (assemble_thunks): Rename to ...
22831 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
22832 (cgraph_expand_function): Remove alias output code.
22833 (cgraph_output_in_order): Skip aliases.
22834 (cgraph_preserve_function_body_p): Aliases don't need preserving.
22835 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
22836 (ipa_record_reference): Do not assert on alias references.
22837 (ipa_ref_has_aliases_p): New function.
22838 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
22839 (ipa_ref_has_aliases_p): Declare.
22840 * lto-cgraph.c (lto_output_node): Handle aliases.
22841 (input_node): Likewise.
22842 * lto-streamer-out.c (lto_output): Skip aliases.
22843 (produce_symtab): Kill same_body_alias code.
22844 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
22845 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
22846 * ipa-inline.c (update_caller_keys): Walk aliases.
22847 (inline_small_functions): Fix thinko in previous patch.
22848 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
22849 (function_and_variable_visibility): Do not walk same body aliases.
22850 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
22851 (ipa_pta_execute): Use it.
22852
22853 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
22854
22855 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
22856 (*vec_dupv2df): Rename from vec_dupv2df.
22857 (vec_dupv2df): New expander.
22858
22859 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
22860
22861 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
22862
22863 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
22864
22865 * config/i386/i386.md: Use default value in "isa" attribute.
22866 * config/i386/sse.md: Ditto.
22867 * config/i386/mmx.md: Ditto.
22868
22869 2011-06-10 Wei Guozhi <carrot@google.com>
22870
22871 PR target/45335
22872 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
22873 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
22874 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
22875 related peephole2.
22876 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
22877 related peephole2.
22878 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
22879 (arm_legitimate_ldrd_p): New prototype.
22880 (arm_output_ldrd): New prototype.
22881 * config/arm/arm.c (arm_check_ldrd_operands): New function.
22882 (arm_legitimate_ldrd_p): New function.
22883 (arm_output_ldrd): New function.
22884
22885 2011-06-10 David Li <davidxl@google.com>
22886
22887 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
22888 * passes.c (passr_eq): New function.
22889 (create_pass_tab): New function.
22890 (pass_traverse): New function.
22891 (dump_one_pass): New function.
22892 (dump_pass_list): New function.
22893 (dump_passes): New function.
22894
22895 2011-06-10 Jan Hubicka <jh@suse.cz>
22896
22897 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
22898 setting the nothrow flag.
22899 * ipa-reference.c (propagate): Skip aliases.
22900 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
22901 (propagate_nothrow): Skip aliases; do not update cgraph.
22902 (local_pure_const): Do not update cgraph.
22903 * tree-profile.c (tree_profiling): Do fixup_cfg.
22904
22905 2011-06-10 Jan Hubicka <jh@suse.cz>
22906
22907 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
22908 (cgraph_local_node_p): ... here; handle aliases.
22909 (has_addr_references_p): Break out from ...;
22910 (cgraph_remove_unreachable_nodes) ... here.
22911
22912 2011-06-10 Jan Hubicka <jh@suse.cz>
22913
22914 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
22915 * common.opt (flag_inline_functions_called_once): Do not
22916 initialize to 1.
22917
22918 2011-06-10 Jan Hubicka <jh@suse.cz>
22919
22920 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
22921 (ipcp_initialize_node_lattices): Do not deal with aliases;
22922 Do not try to propagate through thunks.
22923 (ipcp_change_tops_to_bottom): Do not deal with aliases.
22924
22925 2011-06-10 Jan Hubicka <jh@suse.cz>
22926
22927 * ipa-prop.c (ipa_write_node_info): Stream jump functions
22928 for indirect calls.
22929 (ipa_read_node_info): Likewise.
22930
22931 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22932
22933 PR lto/49302
22934 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
22935 (build_and_insert_call): Likewise.
22936 (build_and_insert_ref): New.
22937 (gimple_expand_builtin_pow): Minor cleanup.
22938 (gimple_expand_builtin_cabs): New.
22939 (execute_cse_sincos): Add case for BUILT_IN_CABS.
22940
22941 2011-06-10 Jan Hubicka <jh@suse.cz>
22942
22943 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
22944 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
22945 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
22946 (ipcp_propagate_stage): Skip aliases when propagating.
22947 (ipcp_need_redirect_p): Skip aliases.
22948 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
22949 collect_callers_of_node.
22950 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
22951 for aliases.
22952 (ipa_compute_jump_functions): Look through aliases.
22953
22954 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22955
22956 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
22957
22958 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
22959
22960 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
22961 Adjust comments.
22962 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
22963
22964 2011-06-10 Jan Hubicka <jh@suse.cz>
22965
22966 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
22967 Update call of gimple_get_virt_method_for_binfo.
22968 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
22969 refuse_thunks parameter.
22970 (gimple_fold_call): Update.
22971 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
22972
22973 2011-06-10 Jan Hubicka <jh@suse.cz>
22974
22975 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
22976 (not_all_callers_have_enough_arguments_p): ... this one; turn into
22977 worker for cgraph_for_node_and_aliases.
22978 (convert_callers_for_node): Break out from ...
22979 (convert_callers): ... here.
22980 (modify_function): Use collect_callers_of_node.
22981 (ipa_early_sra): Use cgraph_for_node_and_aliases.
22982
22983 2011-06-10 Richard Guenther <rguenther@suse.de>
22984
22985 PR tree-optimization/49361
22986 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
22987 when not already in gimple form.
22988
22989 2011-06-10 Richard Guenther <rguenther@suse.de>
22990
22991 PR bootstrap/49344
22992 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
22993 FOR_EACH_PHI_OR_STMT_USE.
22994
22995 2011-06-10 Jan Hubicka <jh@suse.cz>
22996
22997 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
22998 (clone_inlined_nodes): ... here.
22999 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
23000 to real destination prior inlining.
23001 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
23002 can_early_inline_edge_p, want_early_inline_function_p,
23003 want_early_inline_function_p, want_inline_small_function_p,
23004 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
23005 edge_badness, update_all_callee_keys, lookup_recursive_calls,
23006 add_new_edges_to_heap, inline_small_functions, flatten_function,
23007 inline_always_inline_functions, early_inline_small_functions): Use
23008 cgraph_function_or_thunk_node.
23009 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
23010 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
23011 (do_estimate_edge_growth_1): Break out from ...
23012 (do_estimate_growth) ... here; walk aliases.
23013 (inline_generate_summary): Skip aliases.
23014
23015 2011-06-10 Richard Guenther <rguenther@suse.de>
23016
23017 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
23018 forward when combining, visit inserted stmts when a stmt was changed.
23019
23020 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
23021
23022 * tree.h (error_operand_p): Add.
23023 * dbxout.c (dbxout_type_fields): Use the latter.
23024 * c-decl.c (add_stmt): Likewise.
23025 * gimplify.c (omp_add_variable, omp_notice_variable,
23026 gimplify_scan_omp_clauses): Likewise.
23027
23028 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
23029
23030 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
23031 when a value is actually passed in regs.
23032
23033 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
23034 Laurent Rougé <laurent.rouge@menta.fr>
23035
23036 * doc/invoke.texi (SPARC options): Add -mflat.
23037 * config/sparc/sparc.opt: Likewise.
23038 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
23039 (sparc_flat_expand_prologue): Declare.
23040 (sparc_flat_expand_epilogue): Likewise.
23041 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
23042 (CPP_ENDIAN_SPEC): Replace with...
23043 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
23044 (CPP_SPEC): Adjust to above change.
23045 (EXTRA_SPECS): Likewise.
23046 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
23047 (INCOMING_REGNO): Likewise.
23048 (OUTGOING_REGNO): Likewise.
23049 (LOCAL_REGNO): Likewise.
23050 (SETUP_FRAME_ADDRESSES): Likewise.
23051 (FIXED_REGISTERS): Set 0 for %fp.
23052 (CALL_USED_REGISTERS): Likewise.
23053 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
23054 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
23055 (RETURN_ADDR_REGNUM): Define.
23056 (RETURN_ADDR_RTX): Use it.
23057 (INCOMING_RETURN_ADDR_REGNUM): Define.
23058 (INCOMING_RETURN_ADDR_RTX): Use it.
23059 (DWARF_FRAME_RETURN_COLUMN): Likewise.
23060 (EH_RETURN_REGNUM): Define.
23061 (EH_RETURN_STACKADJ_RTX): Use it.
23062 (EH_RETURN_HANDLER_RTX): Delete.
23063 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
23064 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
23065 Delete.
23066 (struct machine_function): Add frame_size, apparent_frame_size,
23067 frame_base_reg, frame_base_offset, n_global_fp_regs and
23068 save_local_in_regs_p fields.
23069 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
23070 sparc_frame_base_offset, sparc_n_global_fp_regs,
23071 sparc_save_local_in_regs_p): New macros.
23072 (sparc_option_override): Error out if -fcall-saved-REG is specified
23073 for Out registers.
23074 (eligible_for_restore_insn): Fix formatting.
23075 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
23076 (eligible_for_sibcall_delay): Likewise.
23077 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
23078 (sparc_legitimate_address_p): Adjust to above change.
23079 (save_global_or_fp_reg_p): New predicate.
23080 (return_addr_reg_needed_p): Likewise.
23081 (save_local_or_in_reg_p): Likewise.
23082 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
23083 (SORR_SAVE, SORR_RESTORE): Delete.
23084 (sorr_pred_t): New typedef.
23085 (sorr_act_t): New enum.
23086 (save_or_restore_regs): Rename to...
23087 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
23088 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
23089 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
23090 mechanism. Add CFI information for double-word saves in 32-bit mode.
23091 (emit_adjust_base_to_offset): New function extracted from...
23092 (emit_save_or_restore_regs): ...this. Rename the rest to...
23093 (emit_save_or_restore_regs_global_fp_regs): ...this.
23094 (emit_save_or_restore_regs_local_in_regs): New function.
23095 (gen_create_flat_frame_[123]): New functions.
23096 (sparc_expand_prologue): Use SIZE local variable. Adjust.
23097 (sparc_flat_expand_prologue): New function.
23098 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
23099 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
23100 (sparc_flat_expand_epilogue): New function.
23101 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
23102 (output_return): Likewise.
23103 (output_sibcall): Likewise.
23104 (sparc_output_mi_thunk): Likewise.
23105 (sparc_frame_pointer_required): Likewise.
23106 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
23107 function optimization.
23108 * config/sparc/sparc.md (flat): New attribute.
23109 (prologue): Add TARGET_FLAT handling.
23110 (save_register_window): Disable if TARGET_FLAT.
23111 (create_flat_frame_[123]): New patterns.
23112 (epilogue): Add TARGET_FLAT handling.
23113 (sibcall_epilogue): Likewise.
23114 (eh_return): New expander.
23115 (eh_return_internal): New insn and splitter.
23116 (return_internal): Add TARGET_FLAT handling.
23117 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
23118 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
23119 (nonlocal_goto): Add TARGET_FLAT handling.
23120 * config/sparc/t-elf: Add -mflat multilib.
23121 * config/sparc/t-leon: Likewise.
23122
23123 2011-06-10 Jan Hubicka <jh@suse.cz>
23124
23125 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
23126 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
23127 (self_recursive_p): Use cgraph_function_node.
23128 (propagate_pure_const): Likewise.
23129 (propagate_nothrow): Likewise.
23130 * ipa-reference.c (ipa_reference_get_not_read_global): Use
23131 cgraph_function_node.
23132 (propagate_bits): Likewise.
23133 (propagate): Likewise.
23134
23135 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
23136 Richard Earnshaw <rearnsha@arm.com>
23137
23138 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
23139 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
23140 (*thumb2_movdi_vfp): Delete.
23141 (*arm_movdi_vfp_cortexa8): Delete.
23142 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
23143 (*movdi_vfp_cortexa8): Likewise.
23144
23145 2011-06-10 Richard Guenther <rguenther@suse.de>
23146
23147 * stor-layout.c (initialize_sizetypes): Give names to all
23148 sizetype kinds.
23149
23150 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
23151
23152 PR tree-optimization/49318
23153 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
23154 irrelevant pattern statements.
23155
23156 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
23157
23158 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
23159
23160 PR bootstrap/49354
23161 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
23162 to last assignment.
23163
23164 2011-06-09 Jan Hubicka <jh@suse.cz>
23165
23166 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
23167 do not recompute reachable flag.
23168 (cgraph_finalize_function, cgraph_analyze_functions): Set
23169 redefined_extern_inline here.
23170
23171 2011-06-09 Jan Hubicka <jh@suse.cz>
23172
23173 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
23174 (cgraph_only_called_directly_p): ... this one; bring offline.
23175 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
23176 varpool_used_from_object_file_p): Drop names from the declaratoin.
23177 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
23178 collect_callers_of_node): New.
23179 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
23180 (cgraph_edge_recursive_p): Use cgraph_function_node.
23181 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
23182 (cgraph_node_cannot_be_local_p_1): Break out from ...
23183 (cgraph_node_can_be_local_p): ... here; walk aliases.
23184 (cgraph_for_node_thunks_and_aliases): New function.
23185 (cgraph_for_node_and_aliases): New function.
23186 (cgraph_make_node_local_1): Break out from ...
23187 (cgraph_make_node_local) ... here; use
23188 cgraph_for_node_thunks_and_aliases.
23189 (cgraph_set_nothrow_flag_1): Break out from ...
23190 (cgraph_set_nothrow_flag) ... here;
23191 use cgraph_for_node_thunks_and_aliases.
23192 (cgraph_set_const_flag_1): Break out from ...
23193 (cgraph_set_const_flag) ... here;
23194 use cgraph_for_node_thunks_and_aliases.
23195 (cgraph_set_pure_flag_1): Break out from ...
23196 (cgraph_set_pure_flag) ... here;
23197 use cgraph_for_node_thunks_and_aliases.
23198 (cgraph_propagate_frequency_1): Break out from ...
23199 (cgraph_propagate_frequency) ... here; use
23200 cgraph_for_node_thunks_and_aliases.
23201 (cgraph_used_from_object_file_p): Do not care about aliases.
23202 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
23203 New functions.
23204 (collect_callers_of_node_1, collect_callers_of_node): New functions.
23205
23206 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
23207
23208 PR rtl-optimization/49154
23209 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
23210 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
23211 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
23212 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
23213 * config/cris/cris.h (cris_register_move_cost): Remove
23214 !TARGET_V32 code. Tweak comments.
23215
23216 2011-06-09 Jan Hubicka <jh@suse.cz>
23217
23218 * cgraphbuild.c (record_eh_tables): Mark personality function as having
23219 address taken.
23220
23221 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
23222
23223 PR rtl-optimization/49154
23224 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
23225 is a matching slot in the hashtable, assign it to classes_ptr.
23226
23227 PR rtl-optimization/49154
23228 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
23229 register classes.
23230 * doc/tm.texi: Regenerate.
23231
23232 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
23233
23234 PR target/49307
23235 * config/sh/sh.md (UNSPEC_CHKADD): New.
23236 (chk_guard_add): New define_insn_and_split.
23237 (symGOT_load): Use chk_guard_add instead of blockage.
23238
23239 2011-06-09 Kai Tietz <ktietz@redhat.com>
23240
23241 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
23242
23243 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
23244
23245 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
23246
23247 2011-06-09 Wei Guozhi <carrot@google.com>
23248
23249 PR target/46975
23250 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
23251 (peephole2 for conditional move): Generate 16 bit instructions.
23252
23253 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
23254
23255 * config/i386/i386.md (*movdi_internal_rex64): Merge
23256 alternatives 6 and 8.
23257
23258 2011-06-09 David Li <davidxl@google.com>
23259
23260 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
23261 * passes.c (passr_eq): New function.
23262 (create_pass_tab): New function.
23263 (pass_traverse): New function.
23264 (dump_one_pass): New function.
23265 (dump_pass_list): New function.
23266 (dump_passes): New function.
23267
23268 2011-06-09 David Li <davidxl@google.com>
23269
23270 * tree-complex.c (tree_lower_complex): Gate cleanup.
23271 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
23272 (execute_optimize_stdarg): Ditto.
23273 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
23274 (execute_cleanup_eh_1): Ditto.
23275 (execute_cleanup_eh): Ditto.
23276 * gcse.c (gate_rtl_pre): Ditto.
23277 (execute_rtl_pre): Ditto.
23278 * except.c (finish_eh_generation): Ditto.
23279 (convert_to_eh_region_ranges): Ditto.
23280 * cprop.c (one_cprop_pass): Ditto.
23281
23282 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
23283
23284 PR target/48673
23285 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
23286 in all basic blocks.
23287
23288 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23289
23290 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
23291 (HAVE_ENABLE_EXECUTE_STACK): Define.
23292 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
23293 (HAVE_ENABLE_EXECUTE_STACK): Define.
23294 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
23295 (HAVE_ENABLE_EXECUTE_STACK): Define.
23296 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
23297 (ENABLE_EXECUTE_STACK): Remove.
23298 (HAVE_ENABLE_EXECUTE_STACK): Define.
23299 [IN_LIBGCC2]: Don't include <windows.h>.
23300 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
23301 (HAVE_ENABLE_EXECUTE_STACK): Define.
23302 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
23303 (HAVE_ENABLE_EXECUTE_STACK): Define.
23304 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
23305 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
23306 (HAVE_ENABLE_EXECUTE_STACK): Define.
23307 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
23308 (HAVE_ENABLE_EXECUTE_STACK): Define.
23309 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
23310 (HAVE_ENABLE_EXECUTE_STACK): Define.
23311 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
23312 (HAVE_ENABLE_EXECUTE_STACK): Define.
23313 * config/alpha/alpha.c (alpha_trampoline_init): Test
23314 HAVE_ENABLE_EXECUTE_STACK.
23315 * config/i386/i386.c (ix86_trampoline_init): Likewise.
23316 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
23317 (sparc64_initialize_trampoline): Likewise.
23318 * libgcc2.c [L_enable_execute_stack]: Remove.
23319 * system.h (ENABLE_EXECUTE_STACK): Poison.
23320 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
23321 * doc/tm.texi: Regenerate.
23322 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
23323
23324 2011-06-09 Jakub Jelinek <jakub@redhat.com>
23325
23326 PR middle-end/49308
23327 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
23328 variable. After resetting and rescanning insn continue with previous
23329 statement.
23330
23331 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23332
23333 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
23334 (gcc_cv_ld_hidden): Likewise.
23335 * configure: Regenerate.
23336 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
23337 (ix86_stack_protect_fail): Mark unused.
23338 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
23339 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
23340 [TARGET_MACHO]: Don't define.
23341 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
23342 (TARGET_STACK_PROTECT_FAIL): Likewise.
23343 (rs6000_stack_protect_fail): Mark unused.
23344 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
23345 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
23346
23347 2011-06-08 Andi Kleen <ak@linux.intel.com>
23348
23349 * varasm.c (get_section): Print location of other conflict
23350 for section conflicts.
23351
23352 2011-06-08 Andi Kleen <ak@linux.intel.com>
23353
23354 * config/i386/driver-i386.c (host_detect_local_cpu):
23355 Add model 0x2d Intel CPU.
23356
23357 2011-06-08 Andi Kleen <ak@linux.intel.com>
23358
23359 * reginfo.c (global_regs_decl): Add.
23360 (globalize_reg): Add decl parameter. Compute location. Pass location
23361 to warnings and add inform. Store decl in global_regs_decl.
23362 * rtl.h (globalize_reg): Update prototype.
23363 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
23364
23365 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
23366
23367 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
23368
23369 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
23370
23371 PR target/49305
23372 * config/sh/predicates.md (general_movsrc_operand): Check
23373 mode for memory with indexed address for QI and HImode.
23374 (general_movdst_operand): Likewise.
23375
23376 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
23377
23378 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
23379
23380 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
23381
23382 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
23383 (num_ssa_operands): Likewise.
23384 (op_iter_init_phiuse): Forward-declare.
23385 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
23386
23387 2011-06-08 Nick Clifton <nickc@redhat.com>
23388
23389 * doc/invoke.texi (ARM Options): Update description of
23390 -mthumb-interwork.
23391
23392 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
23393
23394 * config/i386/driver-i386.c (host_detect_local_cpu): Support
23395 unknown Intel family 0x6 CPUs.
23396
23397 2011-06-08 Martin Jambor <mjambor@suse.cz>
23398
23399 * tree-sra.c (mark_rw_status): Removed.
23400 (analyze_access_subtree): New parameter parent instead of
23401 mark_read and mark_write, propagate from that.
23402
23403 2011-06-08 Julian Brown <julian@codesourcery.com>
23404
23405 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
23406 for double-precision helper functions in hard-float mode if only
23407 single-precision arithmetic is supported in hardware.
23408
23409 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
23410
23411 PR rtl-optimization/49303
23412 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
23413 code_motion_path_driver returned 0 or 1.
23414 (sel_region_finish): Clear h_d_i_d.
23415
23416 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
23417
23418 * config/sh/sh.c (prepare_move_operands): Set pic register
23419 appropriately for global and local dynamic tls models even
23420 if flag_pic is unset.
23421
23422 2011-06-07 Jason Merrill <jason@redhat.com>
23423
23424 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
23425
23426 2011-06-07 Xinliang David Li <davidxl@google.com>
23427 * passes.c (enable_disable_pass): Handle assembler name.
23428 (is_pass_explicitly_enabled_or_disabled): Ditto.
23429
23430 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23431
23432 PR tree-optimization/48497
23433 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
23434
23435 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23436
23437 PR tree-optimization/46728
23438 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
23439 to use gimple_val_nonnegative_real_p.
23440 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
23441 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
23442
23443 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
23444
23445 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
23446
23447 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
23448
23449 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
23450 constant vectors.
23451
23452 2011-06-07 Richard Guenther <rguenther@suse.de>
23453
23454 * stor-layout.c (initialize_sizetypes): Initialize all
23455 sizetypes based on target definitions.
23456 (set_sizetype): Remove.
23457 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
23458 * tree.h (set_sizetype): Remove.
23459
23460 2011-06-07 Nick Clifton <nickc@redhat.com>
23461
23462 * config.gcc: Unify V850 architecture options and add support for
23463 newer V850 architectures.
23464 * config/v850/t-v850e: Delete.
23465
23466 2011-06-07 Richard Guenther <rguenther@suse.de>
23467
23468 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
23469 Call set_sizetype from here.
23470
23471 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
23472
23473 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
23474 (*maddhisi4tb, *maddhisi4tt): New define_insns.
23475
23476 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
23477 Andrew Stubbs <ams@codesourcery.com>
23478
23479 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
23480 multiplies.
23481 * doc/md.texi (Canonicalization of Instructions): Document widening
23482 multiply canonicalization.
23483
23484 2011-06-07 Jakub Jelinek <jakub@redhat.com>
23485
23486 PR gcov-profile/49299
23487 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
23488
23489 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
23490
23491 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
23492 a pointer.
23493 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
23494 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
23495 vect_recog_pow_pattern): Likewise.
23496 (vect_pattern_recog_1): Remove declaration.
23497 (widened_name_p): Remove declaration. Add new argument to specify
23498 whether to check that both types are either signed or unsigned.
23499 (vect_recog_widen_mult_pattern): Update documentation. Handle
23500 unsigned patterns and multiplication by constants.
23501 (vect_pattern_recog_1): Update vect_recog_func references. Use
23502 statement information from the statement returned from pattern
23503 detection functions.
23504 (vect_pattern_recog): Update vect_recog_func reference.
23505 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
23506 multiplication by a constant use the type of the other operand.
23507
23508 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
23509
23510 PR rtl-optimization/49145
23511 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
23512
23513 2011-06-06 Jakub Jelinek <jakub@redhat.com>
23514
23515 PR debug/49262
23516 * dwarf2out.c (native_encode_initializer): Decrement count in each
23517 iteration.
23518
23519 PR debug/49294
23520 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
23521 non-MODE_INT modes.
23522
23523 PR c++/49264
23524 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
23525 if stmt folded into nothing.
23526 * tree-inline.c (fold_marked_statements): If a builtin at the end of
23527 a bb folded into nothing, just update cgraph edges and move to next bb.
23528 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
23529 to be NULL. Don't compute count and frequency if new_call is NULL.
23530
23531 2011-06-04 Diego Novillo <dnovillo@google.com>
23532
23533 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
23534 (cgraph.o): Likewise.
23535 (cgraphunit.o): Likewise.
23536 * cgraphunit.c: Include lto-streamer.h
23537 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
23538 if LTO is enabled.
23539 * lto-streamer-in.c (unpack_value_fields): Call
23540 streamer_hooks.unpack_value_fields if set.
23541 (lto_materialize_tree): For unhandled nodes, first try to
23542 call lto_streamer_hooks.alloc_tree, if it exists.
23543 (lto_input_ts_decl_common_tree_pointers): Move reading of
23544 DECL_INITIAL to lto_streamer_read_tree.
23545 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
23546 (lto_streamer_read_tree): New.
23547 (lto_reader_init): Rename from lto_init_reader.
23548 Move initialization code to lto/lto.c.
23549 * lto-streamer-out.c (pack_value_fields): Call
23550 streamer_hooks.pack_value_fields if set.
23551 (lto_output_tree_ref): For tree nodes that are not normally indexable,
23552 call streamer_hooks.indexable_with_decls_p before giving up.
23553 (lto_output_ts_decl_common_tree_pointers): Move handling
23554 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
23555 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
23556 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
23557 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
23558 (lto_streamer_write_tree): New.
23559 (lto_output): Call lto_streamer_init directly.
23560 (lto_writer_init): Remove.
23561 * lto-streamer.c (streamer_hooks): New.
23562 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
23563 instead of lto_preload_common_nodes.
23564 (lto_is_streamable): Move from lto-streamer.h
23565 (lto_streamer_hooks_init): New.
23566 (streamer_hooks): New.
23567 (streamer_hooks_init): New.
23568 * lto-streamer.h (struct output_block): Forward declare.
23569 (struct lto_input_block): Likewise.
23570 (struct data_in): Likewise.
23571 (struct bitpack_d): Likewise.
23572 (struct streamer_hooks): Declare.
23573 (streamer_hooks): Declare.
23574 (lto_streamer_hooks_init): Declare.
23575 (lto_streamer_write_tree): Declare.
23576 (lto_streamer_read_tree): Declare.
23577 (streamer_hooks_init): Declare.
23578 (lto_is_streamable): Move to lto-streamer.c
23579
23580 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23581
23582 * longlong.h (smul_ppmm): The resulting register pair contains the
23583 higher order word first.
23584
23585 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23586
23587 PR tree-optimization/46728
23588 * builtins.c (powi_table): Remove.
23589 (powi_lookup_cost): Remove.
23590 (powi_cost): Remove.
23591 (expand_powi_1): Remove.
23592 (expand_powi): Remove.
23593 (expand_builtin_pow_root): Remove.
23594 (expand_builtin_pow): Remove.
23595 (expand_builtin_powi): Eliminate handling of constant exponent.
23596 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
23597
23598 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
23599
23600 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
23601
23602 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
23603
23604 * dce.c (reset_unmarked_insns_debug_uses): New.
23605 (delete_unmarked_insns): Skip debug insns.
23606 (prescan_insns_for_dce): Likewise.
23607 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
23608 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
23609 active reg can be found.
23610 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
23611 (convert_regs_1): Use it.
23612
23613 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
23614
23615 * tree-pretty-print.c (dump_function_header): Add flags.
23616 Don't dump decl_uid with nouid.
23617 * tree-pretty-print.h (dump_function_header): Adjust.
23618 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
23619 * passes.c (pass_init_dump_file): Pass dump_flags on.
23620 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
23621
23622 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
23623
23624 PR bootstrap/49270
23625 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
23626
23627 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
23628
23629 PR tree-optimization/49243
23630 * calls.c (setjmp_call_p): Also check if fndecl has the
23631 returns_twice attribute.
23632
23633 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23634
23635 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
23636 -ffast-math etc.
23637
23638 2011-06-06 Richard Henderson <rth@redhat.com>
23639 Georg-Johann Lay <avr@gjlay.de>
23640
23641 PR target/42210
23642 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
23643 New predicates.
23644 * config/avr/avr.md ("insv"): New insn expander.
23645 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
23646 "*insv.not.io", "*insv.reg"): New insns.
23647
23648 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
23649
23650 PR target/49285
23651 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
23652 to nonimmediate_operand from memory_operand for the operand that is to
23653 be forced to memory by the expander. Lose the constraints.
23654
23655 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
23656
23657 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
23658 EH return when delayed branches are disabled.
23659
23660 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
23661
23662 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
23663 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
23664 calculation.
23665 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
23666 Simplify MODE_V1DF and MODE_V2SF handling.
23667 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
23668 Simplify MODE_SF handling.
23669
23670 2011-06-04 Jan Hubicka <jh@suse.cz>
23671
23672 PR tree-optimization/48893
23673 PR tree-optimization/49091
23674 PR tree-optimization/49179
23675 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
23676 Bounds check.
23677
23678 2011-06-04 Jan Hubicka <jh@suse.cz>
23679
23680 PR lto/48954
23681 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
23682 bitmaps.
23683
23684 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
23685
23686 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
23687
23688 2011-06-04 Jakub Jelinek <jakub@redhat.com>
23689
23690 PR target/49281
23691 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
23692 to be strictly smaller than 1 << shiftcount.
23693
23694 2011-06-04 Jan Hubicka <jh@suse.cz>
23695
23696 PR tree-optimize/48929
23697 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
23698 of empty predicate.
23699
23700 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
23701
23702 PR debug/48333
23703 * calls.c (emit_call_1): Prefer the __builtin declaration of
23704 builtin functions.
23705
23706 2011-06-03 Diego Novillo <dnovillo@google.com>
23707
23708 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
23709 (lto_input_tree_pointers): Likewise.
23710 * lto-streamer-out.c (pack_value_fields): Likewise.
23711 (lto_output_tree_pointers): Likewise.
23712 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
23713 and OPTIMIZATION_NODE.
23714
23715 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23716
23717 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
23718 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
23719 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
23720 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
23721 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
23722 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
23723 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
23724 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
23725 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
23726 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
23727 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
23728 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
23729 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
23730 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
23731 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
23732 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
23733 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
23734 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
23735 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
23736 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
23737 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
23738 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
23739 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
23740 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
23741 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
23742 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
23743 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
23744 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
23745 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
23746 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
23747 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
23748 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
23749 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
23750 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
23751 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
23752 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
23753 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
23754 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
23755 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
23756 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
23757 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
23758 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
23759 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
23760 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
23761 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
23762 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
23763 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
23764 * system.h (MD_UNWIND_SUPPORT): Poison.
23765 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
23766 * doc/tm.texi: Regenerate.
23767 * unwind-dw2.c: Include md-unwind-support.h instead of
23768 MD_UNWIND_SUPPORT.
23769 * config/ia64/unwind-ia64.c: Likewise.
23770 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
23771
23772 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
23773
23774 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
23775
23776 2011-06-03 Richard Henderson <rth@redhat.com>
23777 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23778
23779 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
23780 (sigill_hdlr): Correct insn, insn size.
23781 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
23782
23783 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23784
23785 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
23786 t-slibgcc-dummy.
23787 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
23788 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
23789 * config/mips/t-iris: Remove.
23790 * config/mips/t-irix6: New file.
23791 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
23792
23793 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23794
23795 * Makefile.in (LIB2ADDEHDEP): Remove.
23796 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
23797 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
23798 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
23799 * config/t-darwin (LIB2ADDEHDEP): Remove.
23800 * config/t-freebsd (LIB2ADDEHDEP): Remove.
23801 * config/t-linux (LIB2ADDEHDEP): Remove.
23802
23803 2011-06-03 Diego Novillo <dnovillo@google.com>
23804
23805 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
23806 (lto_register_var_decl_in_symtab): Likewise.
23807 (lto_register_function_decl_in_symtab): Likewise.
23808 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
23809 logic to uniquify_nodes.
23810
23811 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23812
23813 * config/alpha/t-osf5: Remove.
23814 * config/alpha/t-osf-pthread: Remove.
23815 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
23816 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
23817
23818 2011-06-03 Julian Brown <julian@codesourcery.com>
23819
23820 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
23821 (strongarm1110): Use strongarm tuning.
23822 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
23823 * config/arm/arm.c (arm_strongarm_tune): New.
23824 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
23825 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
23826 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
23827 setting, using previous defaults or 1 for Cortex-A5.
23828 (arm_option_override): Set max_insns_skipped from current tuning.
23829
23830 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
23831
23832 * doc/install.texi (Options specification): Document --with-specs.
23833
23834 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
23835
23836 * config/arm/neon.md (orndi3_neon): Actually split it.
23837
23838 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
23839
23840 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
23841 * var-tracking.c (reverse_op): Limite recurse depth to 5.
23842
23843 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
23844
23845 PR debug/47590
23846 * target.def (delay_sched2, delay_vartrack): New.
23847 * doc/tm.texi.in: Update.
23848 * doc/tm.texi: Rebuild.
23849 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
23850 * var-tracking.c (gate_handle_var_tracking): Likewise.
23851 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
23852 (bfin_flag_var_tracking): Drop.
23853 (output_file_start): Don't save and override flag_var_tracking.
23854 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
23855 (bfin_reorg): Test original variables.
23856 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
23857 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
23858 (ia64_flag_var_tracking): Drop.
23859 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
23860 (ia64_file_start): Don't save and override flag_var_tracking.
23861 (ia64_override_options_after_change): Ditto
23862 flag_schedule_insns_after_reload.
23863 (ia64_reorg): Test original variables.
23864 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
23865 (picochip_flag_var_tracking): Drop.
23866 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
23867 (picochip_option_override): Don't save and override
23868 flag_schedule_insns_after_reload.
23869 (picochip_asm_file_start): Ditto flag_var_tracking.
23870 (picochip_reorg): Test original variables.
23871 * config/spu/spu.c (spu_flag_var_tracking): Drop.
23872 (TARGET_DELAY_VARTRACK): Define.
23873 (spu_var_tracking): New.
23874 (spu_machine_dependent_reorg): Call it.
23875 (asm_file_start): Don't save and override flag_var_tracking.
23876
23877 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
23878
23879 PR target/49163
23880 * config/sh/predicates.md (general_movsrc_operand): Return 0
23881 for memory and memory subreg of which address is an invalid
23882 indexed address for QI and HImode.
23883 (general_movdst_operand): Likewise.
23884
23885 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
23886
23887 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
23888 edges only, when there is a non-local label in the function.
23889 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
23890
23891 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
23892
23893 * config/i386/constraints.md (Y3): New register constraint.
23894 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
23895 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
23896 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
23897 *sse2_interleave_lowv2df.
23898
23899 2011-06-02 Julian Brown <julian@codesourcery.com>
23900
23901 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
23902 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
23903 (arm_cortex_a5_tune): New.
23904
23905 2011-06-02 Julian Brown <julian@codesourcery.com>
23906
23907 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
23908 * config/arm/arm.c (arm_default_branch_cost): New.
23909 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
23910 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
23911 (arm_fa726_tune): Set branch_cost field using
23912 arm_default_branch_cost.
23913 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
23914 current_tune structure.
23915 * dojump.c (tm_p.h): Include file.
23916
23917 2011-06-02 Julian Brown <julian@codesourcery.com>
23918
23919 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
23920 tuning.
23921 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
23922 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
23923 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
23924 field.
23925 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
23926 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
23927 (arm_fa726te_tune): Add prefer_constant_pool setting.
23928 (arm_v6t2_tune, arm_cortex_tune): New.
23929 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
23930 prefer_constant_pool setting.
23931
23932 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
23933
23934 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
23935 switch statement.
23936 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
23937 (*movdf_internal) <case 6,7,8>: Ditto.
23938
23939 * config/i386/constraints.md (Y4): New register constraint.
23940 * config/i386/sse.md (vec_set<mode>_0): Merge with
23941 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
23942 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
23943 *vec_extractv2di_1_sse.
23944 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
23945 and *vec_concatv2di_rex64_sse.
23946
23947 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
23948
23949 PR target/48807
23950 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
23951 of cgraph_local_info for null before attempting to use it.
23952
23953 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
23954
23955 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
23956 (current_function_dynamic_alloc_count): Delete.
23957 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
23958 (expand_builtin_nonlocal_goto): Remove obsolete comment.
23959 (expand_builtin_update_setjmp_buf): Remove dead code.
23960 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
23961 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
23962 support.
23963 * function.c (instantiate_virtual_regs): Likewise.
23964 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
23965 for a block with a single abnormal incoming edge.
23966 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
23967 (SETJMP_VIA_SAVE_AREA): Delete.
23968 * config/sparc/sparc-protos.h (load_got_register): Declare.
23969 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
23970 (load_got_register): Make global.
23971 (sparc_frame_pointer_required): Add 'static'.
23972 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
23973 (sparc_builtin_setjmp_frame_value): New function.
23974 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
23975 (save_stack_nonlocal): New expander.
23976 (restore_stack_nonlocal): Likewise.
23977 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
23978 (nonlocal_goto_internal): New insn.
23979 (goto_handler_and_restore): Delete.
23980 (builtin_setjmp_setup): Likewise.
23981 (do_builtin_setjmp_setup): Likewise.
23982 (setjmp): Likewise.
23983 (builtin_setjmp_receiver): New expander.
23984
23985 2011-06-01 David Li <davidxl@google.com>
23986
23987 PR middle-end/49261
23988 * tree-pretty-print.c (dump_function_header): Format cleanup.
23989
23990 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
23991
23992 PR target/49238
23993 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
23994 needed when original operands are used for msw_skip comparison.
23995
23996 2011-06-01 Jakub Jelinek <jakub@redhat.com>
23997
23998 PR debug/49250
23999 * var-tracking.c (add_uses, add_stores): Don't call
24000 cselib_subst_to_values on ENTRY_VALUE.
24001
24002 2011-06-01 Diego Novillo <dnovillo@google.com>
24003
24004 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
24005 output_record_start with LTO_null instead of output_zero.
24006 (lto_output_ts_binfo_tree_pointers): Likewise.
24007 (lto_output_tree): Likewise.
24008 (output_eh_try_list): Likewise.
24009 (output_eh_region): Likewise.
24010 (output_eh_lp): Likewise.
24011 (output_eh_regions): Likewise.
24012 (output_bb): Likewise.
24013 (output_function): Likewise.
24014 (output_unreferenced_globals): Likewise.
24015 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
24016 instead of NUM_TREE_CODES.
24017 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
24018 (lto_output_int_in_range): Change << to >> when shifting VAL.
24019
24020 2011-06-01 Diego Novillo <dnovillo@google.com>
24021
24022 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
24023 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
24024
24025 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
24026
24027 PR target/45074
24028 * optabs.h (valid_multiword_target_p): Declare.
24029 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
24030 doing multi-word operations.
24031 * optabs.c (expand_binop): Likewise.
24032 (expand_doubleword_bswap): Likewise.
24033 (expand_absneg_bit): Likewise.
24034 (expand_unop): Likewise.
24035 (expand_copysign_bit): Likewise.
24036 (multiword_target_p): New function.
24037
24038 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
24039
24040 PR rtl-optimization/48830
24041 PR rtl-optimization/48808
24042 PR rtl-optimization/48792
24043 * reload.c (push_reload): Check contains_reg_of_mode.
24044 * reload1.c (strip_paradoxical_subreg): New function.
24045 (gen_reload_chain_without_interm_reg_p): Use it to handle
24046 paradoxical subregs.
24047 (emit_output_reload_insns, gen_reload): Likewise.
24048
24049 2011-06-01 David Li <davidxl@google.com>
24050
24051 * predict.c : Change pass name
24052 * ipa.c: Ditto.
24053 * dce.c: Ditto.
24054 * tree-profile.c: Ditto.
24055 * except.c: Ditto.
24056
24057 2011-06-01 David Li <davidxl@google.com>
24058
24059 * tree-pretty-print.c (dump_function_header): New function.
24060 * final.c (rest_of_clean_state): Use header dumper.
24061 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
24062 * passes.c (pass_init_dump_file): Use header dumper.
24063
24064 2011-06-01 Jakub Jelinek <jakub@redhat.com>
24065
24066 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
24067 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
24068 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
24069 New functions.
24070 (mem_loc_descriptor): Use them.
24071
24072 * var-tracking.c (create_entry_value): New function.
24073 (vt_add_function_parameter): Use it.
24074
24075 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24076
24077 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
24078 Include <signal.h>, <ucontext.h>.
24079 (sigill_caught): Define.
24080 (sigill_hdlr): New function.
24081 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
24082 insns can be executed.
24083 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
24084 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
24085
24086 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24087
24088 * config/t-slibgcc-darwin: Move to ...
24089 * config/t-slibgcc-dummy: ... this. Clarify comments.
24090 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
24091 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
24092 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
24093 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
24094 Remove i386/t-crtstuff from tmake_file.
24095 (i[34567]86-*-solaris2*): Remove t-svr4,
24096 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
24097 t-slibgcc-dummy.
24098 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
24099 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
24100 sparc/t-crtfm from tmake_file.
24101 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
24102 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
24103 Remove extra_parts.
24104 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
24105 * config/i386/t-nwld (SHLIB_LINK): Remove.
24106 * config/i386/t-rtems-i386: Rename to ...
24107 * config/i386/t-rtems: ... this.
24108 ($(T)crti.o, $(T)crtn.o): Remove.
24109 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
24110 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
24111 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
24112 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
24113 EXTRA_MULTILIB_PARTS): Remove.
24114 * config/sparc/t-sol2-64: Likewise.
24115 * config/sparc/t-sol2: Remove.
24116 * config/sparc/t-crtin: Remove.
24117 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
24118 * config/i386/gmon-sol2.c: Remove.
24119 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
24120 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
24121 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
24122 * config/i386/sol2-gc1.asm: Remove.
24123 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
24124 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
24125 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
24126 * config/t-slibgcc-sld: Remove.
24127
24128 2011-06-01 Jakub Jelinek <jakub@redhat.com>
24129
24130 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
24131 base_type_for_mode with op_mode instead of mode.
24132
24133 2011-06-01 Paul Brook <paul@cpodesourcery.com>
24134
24135 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
24136 Cortex-A15.
24137 * config/arm/arm-tune.md: Regenerate.
24138 * config/arm/arm-tables.opt: Regenerate.
24139 * config/arm/arm.c (FL_DIV): Rename...
24140 (FL_THUMB_DIV): ... to this.
24141 (FL_ARM_DIV): Define.
24142 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
24143 (arm_arch_hwdiv): Remove.
24144 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
24145 (arm_issue_rate): Add cortexr5.
24146 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
24147 __ARM_ARCH_EXT_IDIV__.
24148 (TARGET_IDIV): Define.
24149 (arm_arch_hwdiv): Remove.
24150 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
24151 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
24152 (divsi3, udivsi3): New patterns.
24153 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
24154 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
24155
24156 2011-06-01 Martin Jambor <mjambor@suse.cz>
24157
24158 * ipa-utils.c (ipa_dfs_info): New field scc_no.
24159 * ipa-utils.c (searchc): Set scc_no.
24160
24161 2011-06-01 Martin Jambor <mjambor@suse.cz>
24162
24163 * ipa-utils.c (searchc_env): New field allow_overwritable.
24164 (searchc): do not ignore edges to overwritable nodes if indicated
24165 by env->allow_overwritable.
24166 (ipa_reduced_postorder): Set env.allow_overwritable.
24167
24168 2011-06-01 Richard Guenther <rguenther@suse.de>
24169
24170 * tree.c (free_lang_data): Do not reset boolean_type_node nor
24171 char_type_node.
24172 * lto-streamer.c (lto_record_common_node): Take node pointer,
24173 do not register types.
24174 (lto_preload_common_nodes): Explicitly skip preloading nodes
24175 that differ between frontends.
24176
24177 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
24178
24179 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
24180 NON_FLOAT_REGS.
24181
24182 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
24183
24184 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
24185 parameter value for dump. Dump cost on outermost call only.
24186 (rs6000_memory_move_cost): Dump cost on outermost call only.
24187
24188 2011-05-31 Jakub Jelinek <jakub@redhat.com>
24189
24190 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
24191 DW_OP_GNU_convert ops.
24192
24193 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
24194 cselib_preserve_constants.
24195 (cselib_lookup_1): If cselib_preserve_constants,
24196 a new VALUE is being created for REG and there is a VALUE for the
24197 same register in wider mode, add another loc with lowpart SUBREG of
24198 the wider VALUE.
24199 (cselib_subst_to_values): Handle ENTRY_VALUE.
24200 * var-tracking.c (replace_expr_with_values): Return NULL for
24201 ENTRY_VALUE too.
24202 * dwarf2out.c (convert_descriptor_to_signed): New function.
24203 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
24204 instead of two shifts.
24205 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
24206 the right mode if needed.
24207 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
24208 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
24209 convert_descriptor_to_signed.
24210 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
24211 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
24212
24213 PR target/48688
24214 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
24215
24216 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
24217
24218 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
24219 of X87MODEI12 and SWI48x instead of SSEMODEI24.
24220 (SWI248x): New mode iterator, rename from X87MODEI.
24221 (X87MODEI): Remove mode iterator.
24222 (X87MODEI12): Ditto.
24223 (SSEMODEI24): Ditto.
24224
24225 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
24226
24227 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
24228 * doc/invoke.texi: Document max-vartrack-expr-depth.
24229 * var-tracking.c (EXPR_DEPTH): New.
24230 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
24231
24232 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
24233
24234 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
24235 * config/i386/sse.md: Add n to negated FMA pattern names.
24236
24237 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
24238
24239 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
24240
24241 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
24242
24243 * gengtype-state.c (read_state_params_structs): Initialize previous.
24244
24245 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
24246
24247 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
24248 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
24249
24250 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
24251
24252 * config/i386/i386.md (*movtf_internal): Avoid allocating general
24253 registers. Penalize F*r->o alternative to prevent partial memory
24254 stalls. Slightly penalize *roF->*r alternative. Generate SSE
24255 CONST_DOUBLE immediates when optimizing function for size. Do not move
24256 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
24257 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
24258 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
24259 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
24260 alternatives.
24261 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
24262
24263 (fp_register_operand splitters): Use fp_register_operand
24264 constraint. Do not use FP_REG_P in insn condition.
24265 (any_fp_register_operand splitters): Use any_fp_register_operand
24266 constraint. Do not use ANY_FP_REG_P in insn condition.
24267
24268 2011-05-31 Jan Hubicka <jh@suse.cz>
24269
24270 * cgraph.h (cgraph_inline_failed_t): Give enum a name
24271 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
24272 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
24273 (lto_output_edge): Use output_enum and var_len_unsigned.
24274 (lto_output_varpool_node): Likewise.
24275 (input_overwrite_node): Do not take resolution parameter;
24276 extract it from a bitpack.
24277 (input_node): Do not read resolution; use input_enum and
24278 var_len_unsigned.
24279 (input_varpool_node): Likewise.
24280 (input_edge): Likewise.
24281 (input_cgraph_1): Likewise.
24282
24283 2011-05-31 Richard Guenther <rguenther@suse.de>
24284
24285 * gimple.c (gimple_register_canonical_type): Do not register
24286 any types via gimple_register_type.
24287
24288 2011-05-31 Jan Hubicka <jh@suse.cz>
24289
24290 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
24291 of thunks.
24292
24293 2011-05-31 Jakub Jelinek <jakub@redhat.com>
24294
24295 PR rtl-optimization/49235
24296 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
24297 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
24298
24299 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
24300
24301 PR tree-optimization/49093
24302 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
24303 data references.
24304
24305 2011-05-31 Dodji Seketeli <dodji@redhat.com>
24306
24307 PR debug/49047
24308 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
24309 for concrete functions containing the code of cloned functions.
24310
24311 2011-05-31 Richard Guenther <rguenther@suse.de>
24312
24313 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
24314 to ...
24315 (forward_propagate_into_comparison_1): ... this.
24316 (forward_propagate_comparison): Rename to ...
24317 (forward_propagate_into_comparison): ... this. Split out
24318 real forward propagation code to ...
24319 (forward_propagate_comparison): ... this.
24320 (forward_propagate_into_gimple_cond): Remove looping.
24321 (forward_propagate_into_cond): Likewise.
24322 (simplify_not_neg_expr): Return whether we have done something.
24323 (simplify_gimple_switch): Likewise.
24324 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
24325 (ssa_forward_propagate_and_combine): ... this. Re-structure
24326 to do a forward forward-propagation walk on BBs and a backward
24327 stmt combining walk on BBs. Consistently re-scan changed statements.
24328 (pass_forwprop): Adjust.
24329
24330 2011-05-30 Ian Lance Taylor <iant@google.com>
24331
24332 * godump.c (go_format_type): Correct length of name added to
24333 obstack for anonymous field.
24334
24335 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
24336
24337 PR target/49186
24338 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
24339 part of the second operand is 0.
24340
24341 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
24342
24343 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
24344 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
24345 to memory for !TARGET_MEMORY_MISMATCH_STALL.
24346 (*movdf_internal_rex64): Do not penalize F->r alternative.
24347 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
24348 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
24349 when optimizing function for size. Do not move CONST_DOUBLEs
24350 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
24351 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
24352 SUBREGs. Do not check for MEM_P operands in the insn condition,
24353 check for ANY_FP_REGNO_P instead.
24354 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
24355 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
24356 function for speed.
24357 * config/i386/i386.c (ix86_option_override_internal): Do not
24358 set TARGET_INTEGER_DFMODE_MOVES here.
24359
24360 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
24361
24362 PR target/49168
24363 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
24364
24365 2011-05-30 Jakub Jelinek <jakub@redhat.com>
24366
24367 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
24368 DW_TAG_rvalue_reference_type even for
24369 -gdwarf-4 -fno-debug-types-section.
24370
24371 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24372
24373 PR tree-optimization/46728
24374 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
24375 (build_and_insert_binop): New.
24376 (gimple_expand_builtin_pow): Reorder args for
24377 build_and_insert_call; use build_and_insert_binop; add more
24378 optimizations for fractional exponents.
24379
24380 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
24381
24382 PR bootstrap/49190
24383
24384 Revert:
24385 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
24386
24387 * tree.h (struct tree_identifier): Inherit from tree_typed, not
24388 tree_common.
24389 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
24390 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
24391 TS_BASE instead of TS_COMMON.
24392 * varasm.c (assemble_name): Remove assert.
24393
24394 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
24395
24396 * config.gcc: Keep obselete list sorted.
24397
24398 2011-05-30 Jakub Jelinek <jakub@redhat.com>
24399 Eric Botcazou <ebotcazou@adacore.com>
24400
24401 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
24402 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
24403 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
24404 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
24405 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
24406
24407 2011-05-30 Richard Guenther <rguenther@suse.de>
24408
24409 * gimple.c (gimple_types_compatible_p_1): Compare record
24410 and union type members properly.
24411
24412 2011-05-30 Richard Guenther <rguenther@suse.de>
24413
24414 PR tree-optimization/49210
24415 * ipa-split.c (split_function): Care for the case where the call
24416 result is not trivially convertible to the result holding variable.
24417
24418 2011-05-30 Richard Guenther <rguenther@suse.de>
24419
24420 PR tree-optimization/49218
24421 * tree-vrp.c (adjust_range_with_scev): Properly check whether
24422 overflow occured.
24423
24424 2011-05-30 Richard Guenther <rguenther@suse.de>
24425
24426 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
24427 New function split out from ...
24428 (forward_propagate_into_gimple_cond): ... here. Adjust.
24429 (forward_propagate_into_cond): Likewise.
24430 (forward_propagate_comparison): Also propagate into
24431 comparisons on assignment RHS. Change return value to
24432 behave similar to forward_propagate_into_cond.
24433 (tree_ssa_forward_propagate_single_use_vars): Handle
24434 strict-overflow warnings properly for forward_propagate_comparison.
24435
24436 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24437
24438 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
24439 from plugin linker.
24440 * configure: Regenerate.
24441
24442 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
24443
24444 PR tree-optimization/49199
24445 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
24446 non-reduction operands are either defined in the loop or by induction.
24447
24448 2011-05-29 Xinliang David Li <davidxl@google.com>
24449
24450 * opts-global.c (handle_common_deferred_options): Handle new options.
24451 * passes.c (register_one_dump_file): Call register_pass_name.
24452 (execute_one_pass): Check explicit enable/disable flag.
24453 (passr_hash): New function.
24454 (passr_eq): Ditto.
24455 (register_pass_name): Ditto.
24456 (get_pass_by_name): Ditto.
24457 (pass_hash): Ditto.
24458 (pass_eq): Ditto.
24459 (enable_pass): Ditto.
24460 (disable_pass): Ditto.
24461 (is_pass_explicitly_enabled_or_disabled): Ditto.
24462
24463 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
24464
24465 * config/i386/i386.md (*movoi_internal_avx): Use
24466 standard_sse_constant_opcode for alternative 0.
24467 (*movti_internal_sse): Ditto.
24468 (*movti_internal_rex64): Use standard_sse_constant_opcode for
24469 alternative 2.
24470 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
24471 sselog1 type moves.
24472 (*movsi_internal): Ditto.
24473 (*movdi_internal): Ditto. Add ssecvt type moves.
24474
24475 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
24476
24477 PR target/48830
24478 * rtlanal.c (simplify_subreg_regno): Adjust comment.
24479
24480 2011-05-29 Jakub Jelinek <jakub@redhat.com>
24481
24482 PR rtl-optimization/49095
24483 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
24484 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
24485
24486 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
24487
24488 PR target/43995
24489 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
24490 recurse_p argument. Only follow register copies if it is set,
24491 and prevent mips_find_pic_call_symbol from recursing.
24492 (mips_find_pic_call_symbol): Add a recurse_p argument.
24493 Pass it to mips_pic_call_symbol_from_set.
24494 (mips_annotate_pic_calls): Update accordingly.
24495
24496 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
24497
24498 * emit-rtl.c (try_split): Use a loop to search for
24499 NOTE_INSN_CALL_ARG_LOCATIONs.
24500
24501 2011-05-29 Richard Guenther <rguenther@suse.de>
24502
24503 PR tree-optimization/49217
24504 * ipa-pure-const.c (propagate_pure_const): Fix typos.
24505
24506 2011-05-28 Jan Hubicka <jh@suse.cz>
24507
24508 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
24509 length.
24510 (string_slot_free): Remove
24511 (create_output_block): Initialize obstack.
24512 (destroy_output_block): Free obstack.
24513 (lto_string_index): Add PERSISTENT parameter; do not duplicate
24514 the string unless it needs to be added into the hash.
24515 (lto_output_string_with_length): Add persistent attribute;
24516 handle NULL strings.
24517 (lto_output_string): Add PERSISTENT parameter.
24518 (output_string_cst, output_identifier): Simplify.
24519 (lto_output_location_bitpack): Update.
24520 (lto_output_builtin_tree): Update.
24521 * lto-streamer.h (struct output_block): Add obstack.
24522 (lto_output_string, lto_output_string_with_length): Remove
24523 declarations; functions are static now.
24524
24525 2011-05-28 Jan Hubicka <jh@suse.cz>
24526
24527 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
24528 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
24529 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
24530 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
24531 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
24532 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
24533 unpack_ts_decl_with_vis_value_fields,
24534 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
24535 lto_get_builtin_tree): Use enum and variable length i/o.
24536 * basic-block.h (profile_status_d): Add PROFILE_LAST.
24537 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
24538 New functions.
24539 (bp_pack_enum, bp_unpack_enum): New macros.
24540
24541 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
24542
24543 * genrecog.c: Remove redundant forward declarations.
24544
24545 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
24546
24547 * config.gcc: Deprecate mips*-*-openbsd*.
24548
24549 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
24550
24551 PR bootstrap/49195
24552 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
24553 for match_op_dup.
24554
24555 2011-05-27 Andrew Pinski <pinskia@gmail.com>
24556
24557 PR middle-end/48981
24558 * gengtype.c (vec_prefix_type): New function.
24559 (note_def_vec): Use vec_prefix_type and change the length
24560 attribute to be based on the prefix.
24561 * vec.c: Include coretypes.h before vec.h.
24562 (struct vec_prefix): Remove.
24563 (vec_gc_p_reserve): Change the offsetof to sizeof.
24564 (vec_gc_p_reserve_exact): Likewise.
24565 (vec_heap_p_reserve): Likewise.
24566 (vec_heap_p_reserve_exact): Likewise.
24567 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
24568 (vec_stack_p_reserve): Change the offsetof to sizeof.
24569 (vec_stack_p_reserve_exact): Likewise.
24570 * vec.h (struct vec_prefix): New struct definition.
24571 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
24572 (VEC_T_GTY(T,B)): Likewise.
24573 (DEF_VEC_FUNC_P(T)): Use prefix field.
24574 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
24575 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
24576
24577 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24578
24579 PR tree-optimization/46728
24580 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
24581 (powi_as_mults): Add gimple_set_location.
24582 (build_and_insert_call): New.
24583 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
24584 0.5, 0.25, 0.75, 1./3., or 1./6.
24585
24586 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
24587
24588 * doc/contrib.texi: Update copyright years.
24589 (Contributors): Add Zdenek Sojka.
24590
24591 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
24592
24593 * c-decl.c (c_push_function_context): Copy the current statement
24594 list stack.
24595 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
24596 (finish_struct): Call building_stmt_list_p instead of checking
24597 cur_stmt_list.
24598 * c-parser.c (c_parser_postfix_expression): Likewise.
24599 * c-typeck.c (c_end_compound_stmt): Likewise.
24600 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
24601 * tree-iterator.c (stmt_list_cache): Change to a VEC.
24602 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
24603 (free_stmt_list): Likewise.
24604 * tree.h (struct tree_statement_list): Include typed_tree instead
24605 of tree_common.
24606 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
24607 as TS_TYPED instead of TS_COMMON.
24608
24609 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24610 Uros Bizjak <ubizjak@gmail.com>
24611
24612 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
24613 (HAVE_AS_IX86_TLSGDPTL): Define.
24614 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
24615 (HAVE_AS_IX86_TLSLDMPLT): Define.
24616 * configure: Regenerate.
24617 * config.in: Regenerate.
24618 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
24619 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
24620 TARGET_SUN_TLS, use @tlsgdplt or @plt.
24621 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
24622 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
24623 @tlsldmplt or @plt.
24624 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
24625
24626 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
24627
24628 * sched-int.h (struct _haifa_deps_insn_data): New members cond
24629 and reverse_cond.
24630 (INSN_COND, INSN_REVERSE_COND): New macros.
24631 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
24632 once.
24633 (sched_get_condition_with_rev): Cache the results, and look them up
24634 if possible.
24635 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
24636 are clobbered by the current insn.
24637 * target.def (exposed_pipline): New sched data hook.
24638 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
24639 * doc/tm.texi: Regenerate.
24640
24641 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24642
24643 PR tree-optimization/49170
24644 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
24645 sincos or cexp.
24646
24647 2011-05-27 Richard Guenther <rguenther@suse.de>
24648
24649 PR middle-end/49189
24650 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
24651 of comparisons.
24652
24653 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
24654
24655 * haifa-sched.c (sched_scan_info): Remove.
24656 (schedule_block): Call sched_extend_luids rather than sched_init_luids
24657 with NULL args.
24658 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
24659 Remove functions.
24660 (sched_scan): Remove.
24661 (sched_extend_luids): Renamed from luids_extend_insn and no longer
24662 static. All callers changed.
24663 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
24664 static. All callers changed.
24665 (sched_init_luids): Remove all arguments except the first. All
24666 callers changed. Don't use sched_scan.
24667 (haifa_init_h_i_d): Likewise.
24668 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
24669 manually rather than using sched_init_luids. Likewise with
24670 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
24671 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
24672 rather than sched_init_luids with NULL args.
24673 * sel-sched-ir.c (new_insns): Remove variable.
24674 (sched_scan): New static function, previously in haifa-sched.c. Remove
24675 all arguments but the first two; all callers changed.
24676 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
24677 rather than sched_init_luids.
24678 (sel_init_bbs): Remove second argument. All callers changed.
24679 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
24680 with NULL arguments.
24681 (create_insn_rtx_from_pattern): Likewise.
24682 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
24683 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
24684 (sched_init_insn_luid, sched_extend_luids): Declare.
24685 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
24686 declarations.
24687
24688 2011-05-27 Richard Guenther <rguenther@suse.de>
24689
24690 PR middle-end/49177
24691 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
24692 A CMP B ? (T) true : (T) false for non-integral types T again.
24693
24694 2011-05-27 Jan Hubicka <jh@suse.cz>
24695
24696 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
24697 so 0 means NULL string.
24698 (lto_output_string_with_length): ... here.
24699 (lto_output_string, output_string_cst, output_identifier): Update
24700 handling of NULL strings.
24701 (lto_output_location_bitpack): New function.
24702 (lto_output_location): Use it.
24703 (lto_output_tree_ref): Use output_record_start.
24704 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
24705 len values.
24706 * lto-streamer-in.c (string_for_index): Break out from ...; offset
24707 values by 1.
24708 (input_string_internal): ... here;
24709 (input_string_cst, input_identifier, lto_input_string): Update handling
24710 of NULL strings.
24711 (lto_input_location_bitpack): New function
24712 (lto_input_location): Use it.
24713 (unpack_ts_type_common_value_fields): Pack align & alias in var len
24714 values.
24715 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
24716 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
24717 (bp_pack_value): Sanity check the value range.
24718 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
24719 New functions.
24720 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
24721 New functions.
24722
24723 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
24724
24725 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
24726 call_arg_location instructions down the floor.
24727
24728 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
24729
24730 PR rtl-optimization/49154
24731 * ira.c (setup_pressure_classes): Process class without sublcasses
24732 as a candidate for pressure classes.
24733
24734 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
24735
24736 PR rtl-optimization/48575
24737 * genrecog.c (position_type): New enum.
24738 (position): New structure.
24739 (decision): Use position structure instead of a string.
24740 (root_pos, peep2_insn_pos_list): New variables.
24741 (next_position, compare_positions): New functions.
24742 (new_decision): Use position structures instead of strings.
24743 (maybe_both_true): Likewise.
24744 (change_state): Likewise.
24745 (write_tree): Likewise.
24746 (make_insn_sequence): Likewise.
24747
24748 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
24749
24750 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
24751 TS_BASE instead of TS_COMMON.
24752 (find_decls_types_r): Check for TS_TYPED structure before looking at
24753 TREE_TYPE.
24754 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
24755 Add chain field.
24756 (BLOCK_CHAIN): Use new chain field.
24757
24758 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
24759
24760 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
24761 moves expensive on Power7 also.
24762
24763 2011-05-26 Richard Guenther <rguenther@suse.de>
24764
24765 * fold-const.c (fold_unary_loc): Remove bogus code.
24766
24767 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
24768
24769 * tree.h (struct tree_identifier): Inherit from tree_typed, not
24770 tree_common.
24771 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
24772 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
24773 TS_BASE instead of TS_COMMON.
24774 * varasm.c (assemble_name): Remove assert.
24775
24776 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
24777
24778 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
24779 substituted first.
24780 * libgcc-std.ver: Delete file.
24781
24782 2011-05-26 Richard Guenther <rguenther@suse.de>
24783
24784 PR tree-optimization/48702
24785 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
24786 only when we know the base address is within bounds.
24787 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
24788 assume the base address of TARGET_MEM_REFs is in bounds.
24789
24790 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24791
24792 PR target/49099
24793 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
24794 declaration in TARGET_SOLARIS.
24795
24796 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
24797
24798 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
24799 The instruction is then expanded explicitly.
24800 (supported_compare): Callable instruction.
24801 (compare): Likewise.
24802
24803 2011-05-26 Jakub Jelinek <jakub@redhat.com>
24804
24805 PR c++/49165
24806 * gimplify.c (shortcut_cond_r): Don't special case
24807 COND_EXPRs if they have void type on one of their arms.
24808
24809 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
24810
24811 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
24812 to reduce duplication, and to achieve a slightly more logical order
24813 of operations.
24814
24815 2011-05-26 Jakub Jelinek <jakub@redhat.com>
24816
24817 PR tree-optimization/49161
24818 * tree-vrp.c (struct case_info): New type.
24819 (compare_case_labels): Sort case_info structs instead of
24820 trees, and not primarily by CASE_LABEL uids but by
24821 label_for_block indexes.
24822 (find_switch_asserts): Put case labels into struct case_info
24823 array instead of TREE_VEC, adjust sorting, compare label_for_block
24824 values instead of CASE_LABELs.
24825
24826 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
24827
24828 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
24829 ("orndi3_neon"): Likewise.
24830 ("bic<mode>3_neon"): Likewise.
24831
24832 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
24833
24834 PR tree-optimization/49038
24835 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
24836 Ensure at least one epilogue iteration if required by data
24837 accesses with gaps.
24838 * tree-vectorizer.h (struct _loop_vec_info): Add new field
24839 to mark loops that require peeling for gaps.
24840 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
24841 (vect_get_known_peeling_cost): Take peeling for gaps into
24842 account.
24843 (vect_transform_loop): Generate epilogue if required by data
24844 access with gaps.
24845 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
24846 loop as requiring an epilogue if there are gaps in the end of
24847 the strided group.
24848
24849 2011-05-25 Ian Lance Taylor <iant@google.com>
24850
24851 * godump.c (go_format_type): Output the first field with a usable
24852 Go type, if any.
24853
24854 2011-05-25 Ian Lance Taylor <iant@google.com>
24855
24856 * godump.c (go_format_type): Check for invalid type names, pointer
24857 target types, and struct field types.
24858
24859 2011-05-25 Jason Merrill <jason@redhat.com>
24860
24861 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
24862
24863 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
24864
24865 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
24866
24867 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
24868
24869 * config/i386/i386.md (*movqi_extv_1)): Put back
24870 "register_operand" check in "type" calculation.
24871 (*movqi_extzv_2): Likewise.
24872
24873 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
24874
24875 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
24876
24877 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
24878
24879 PR bootstrap/49160
24880 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
24881 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
24882 __divxc3, __divtc3): Wrap definitions in #ifndef.
24883
24884 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
24885
24886 PR target/49142
24887 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
24888 "register_operand" check and replace q_regs_operand with
24889 QIreg_operand in "type" calculation.
24890 (*movqi_extv_1): Likewise.
24891 (*movqi_extzv_2_rex64): Likewise.
24892 (*movqi_extzv_2): Likewise.
24893
24894 * config/i386/predicates.md (QIreg_operand): New.
24895
24896 2011-05-25 Richard Guenther <rguenther@suse.de>
24897
24898 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
24899 type-based offset disambiguation, streamline MEM_REF and
24900 TARGET_MEM_REF handling.
24901
24902 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
24903
24904 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
24905 (bdesc_special_args): Add pause intrinsic.
24906
24907 * config/i386/i386.md (UNSPEC_PAUSE): New.
24908 (pause): Likewise.
24909 (*pause): Likewise.
24910 * config/i386/ia32intrin.h (__pause): Likewise.
24911
24912 * doc/extend.texi (X86 Built-in Functions): Add documentation for
24913 pause intrinsic.
24914
24915 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24916
24917 PR tree-optimization/46728
24918 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
24919 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
24920
24921 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
24922
24923 * tree.h (struct tree_exp): Inherit from struct tree_typed.
24924 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
24925 instead of TS_COMMON.
24926
24927 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
24928
24929 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
24930 LIBGCC2_GNU_PREFIX is defined.
24931 (__N): New macro.
24932 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
24933 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
24934 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
24935 __clz_tab): Define using __N.
24936 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
24937 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
24938 * target.def (libfunc_gnu_prefix): New hook.
24939 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
24940 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
24941 * doc/tm.texi: Regenerate.
24942 * system.h (LIBGCC2_GNU_PREFIX): Poison.
24943 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
24944 account.
24945 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
24946 (init_optabs): Likewise for the bswap libfuncs.
24947 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
24948 and divide.
24949 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
24950 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
24951 * libgcc-std.ver: Remove.
24952 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
24953 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
24954 libgcc-std.ver.
24955 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
24956 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
24957 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
24958 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
24959 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
24960 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
24961 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
24962 * config/fixed-bit.h (FIXED_OP): Define differently depending on
24963 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
24964 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
24965
24966 2011-05-25 Jan Hubicka <jh@suse.cz>
24967
24968 * lto-streamer-out.c (output_record_start): Use lto_output_enum
24969 (lto_output_tree): Use output_record_start.
24970 * lto-streamer-in.c (input_record_start): Use lto_input_enum
24971 (lto_get_pickled_tree): Use input_record_start.
24972 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
24973 (lto_value_range_error): New function.
24974 * lto-streamer.h (lto_value_range_error): Declare.
24975 (lto_output_int_in_range, lto_input_int_in_range): New functions.
24976 (lto_output_enum, lto_input_enum): New macros.
24977
24978 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
24979
24980 * common.opt (flag_stack_usage_info): New variable.
24981 (-Wstack-usage): New option.
24982 * doc/invoke.texi (Warning options): Document -Wstack-usage.
24983 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
24984 <OPT_fstack_usage>: Likewise.
24985 * toplev.c (output_stack_usage): Handle -Wstack-usage.
24986 * calls.c (expand_call): Test flag_stack_usage_info variable instead
24987 of flag_stack_usage.
24988 (emit_library_call_value_1): Likewise.
24989 * explow.c (allocate_dynamic_stack_space): Likewise.
24990 * function.c (instantiate_virtual_regs ): Likewise.
24991 (prepare_function_start): Likewise.
24992 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
24993 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
24994 * config/arm/arm.c (arm_expand_prologue): Likewise.
24995 (thumb1_expand_prologue): Likewise.
24996 * config/avr/avr.c (expand_prologue): Likewise.
24997 * config/i386/i386.c (ix86_expand_prologue): Likewise.
24998 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
24999 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
25000 * config/mips/mips.c (mips_expand_prologue): Likewise.
25001 * config/pa/pa.c (hppa_expand_prologue): Likewise.
25002 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
25003 * config/s390/s390.c (s390_emit_prologue): Likewise.
25004 * config/sh/sh.c (sh_expand_prologue): Likewise.
25005 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
25006 * config/spu/spu.c (spu_expand_prologue): Likewise.
25007
25008 2011-05-25 Richard Guenther <rguenther@suse.de>
25009
25010 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
25011 (gimple_canonical_types_compatible_p): Likewise.
25012
25013 2011-05-25 Jan Hubicka <jh@suse.cz>
25014
25015 PR middle-end/49062
25016 * ipa.c (function_and_variable_visibility): Only add to same
25017 comdat group list if DECL_ONE_ONLY.
25018
25019 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
25020
25021 PR rtl-optimization/49014
25022 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
25023
25024 2011-05-25 Jakub Jelinek <jakub@redhat.com>
25025
25026 PR target/49128
25027 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
25028
25029 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
25030
25031 PR rtl-optimization/48757
25032 * ira-build.c (loop_with_eh_edge_p): Rename to
25033 loop_with_complex_edge_p, check edges on complexity, make function
25034 conditional.
25035 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
25036 conditional.
25037
25038 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
25039
25040 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
25041 force flag_ira_share_save_slots to 0.
25042
25043 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
25044
25045 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
25046 (vt_initialize): Set PROLOGUE_BB unconditionally.
25047 Add block comment about CFA_BASE_RTX machinery.
25048 Reset FP_CFA_OFFSET to -1 on all invalid paths.
25049 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
25050
25051 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
25052
25053 PR objc/48187
25054 * c-parser.c (c_parser_objc_class_instance_variables): More robust
25055 parsing of syntax error in ObjC instance variable lists. In
25056 particular, avoid an infinite loop if there is a stray ']'.
25057 Updated error message.
25058
25059 2011-05-24 Ian Lance Taylor <iant@google.com>
25060
25061 * godump.c (go_define): Don't accept a string immediately after
25062 another operand.
25063
25064 2011-05-24 Ian Lance Taylor <iant@google.com>
25065
25066 * godump.c (struct godump_container): Add invalid_hash field.
25067 (go_format_type): Return false if type is found in invalid_hash.
25068 (go_output_typedef): Add invalid type to invalid_hash.
25069 (go_finish): Create and delete invalid_hash.
25070
25071 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25072
25073 PR tree-optimization/46728
25074 * tree-ssa-math-opts.c (powi_table): New.
25075 (powi_lookup_cost): New.
25076 (powi_cost): New.
25077 (powi_as_mults_1): New.
25078 (powi_as_mults): New.
25079 (gimple_expand_builtin_powi): New.
25080 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
25081 (gate_cse_sincos): Remove sincos/cexp restriction.
25082
25083 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25084
25085 PR target/3746
25086 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
25087 mips-tdump native.
25088 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
25089 * mips-tdump.c: Likewise.
25090
25091 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
25092
25093 PR target/49128
25094 * config/i386/driver-i386.c (host_detect_local_cpu): Always
25095 add -mno-XXX. Handle FMA.
25096
25097 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
25098
25099 PR rtl-optimization/48633
25100 * ira-build.c (loop_with_eh_edge_p): New function.
25101 (mark_loops_for_removal): Use it.
25102
25103 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
25104
25105 PR rtl-optimization/48971
25106 * ira.c (setup_pressure_classes): Don't check register move cost
25107 for classes with one registers. Don't add pressure class if there
25108 is a pressure class with the same available hard registers.
25109 Check contains_reg_of_mode. Fix a typo in collecting
25110 temp_hard_regset. Ignore hard registers not belonging to a class.
25111
25112 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
25113
25114 PR target/49133
25115 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
25116
25117 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
25118 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25119
25120 PR gcov-profile/48845
25121 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
25122
25123 2011-05-24 Richard Guenther <rguenther@suse.de>
25124
25125 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
25126 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
25127 (gimple_types_compatible_p_1): Adjust.
25128 (iterative_hash_canonical_type): Do not bother about complete vs.
25129 incomplete types.
25130 (gimple_canonical_types_compatible_p): Likewise.
25131
25132 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25133
25134 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
25135
25136 2011-05-24 Richard Guenther <rguenther@suse.de>
25137
25138 PR bootstrap/49078
25139 * gimple.c (gimple_register_canonical_type): Revert
25140 previous change.
25141 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
25142 does not for a tree for the case where it matters. Cache
25143 pointer-type alias-sets.
25144
25145 2011-05-24 Joseph Myers <joseph@codesourcery.com>
25146
25147 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
25148 (OBJS): Remove options.o, opts-common.o and prefix.o.
25149 (OBJS-libcommon-target): New.
25150 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
25151 (BACKEND): Include libcommon-target.a.
25152 (MOSTLYCLEANFILES): Include libcommon-target.a.
25153 (libcommon-target.a): New.
25154 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
25155 prefix.o.
25156
25157 2011-05-23 Joseph Myers <joseph@codesourcery.com>
25158
25159 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
25160 parts of output shared with the driver.
25161 * optc-gen.awk: Don't generate parts of output not shared with the
25162 driver.
25163 * opth-gen.awk: Remove GCC_DRIVER conditionals.
25164 * doc/options.texi (SourcerInclude): Mention options-save.c.
25165 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
25166 (OBJS): Add options-save.o.
25167 (options-save.c, options-save.o): New.
25168 (options.o): Update dependencies.
25169 (gcc-options.o): Remove.
25170 (mostlyclean): Remove options-save.c.
25171
25172 2011-05-23 Jakub Jelinek <jakub@redhat.com>
25173
25174 PR debug/49032
25175 * dbxout.c: Include cgraph.h.
25176 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
25177 and without value expr, return NULL if no varpool node exists for
25178 it or if it is not needed.
25179 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
25180
25181 PR c/49120
25182 * c-decl.c (start_decl): Convert expr to void_type_node.
25183
25184 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
25185
25186 PR rtl-optimization/48826
25187 * emit-rtl.c (try_split): When splitting a call that is followed
25188 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
25189
25190 2011-05-23 Jakub Jelinek <jakub@redhat.com>
25191
25192 * cfgexpand.c (expand_debug_expr): For unused non-addressable
25193 parameters passed in memory prefer using DECL_INCOMING_RTL over
25194 the pseudos it will be copied into.
25195
25196 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
25197
25198 PR target/47315
25199 * config/i386/i386.c (ix86_option_override_internal): Save the
25200 initial options after checking vzeroupper.
25201
25202 2011-05-23 David Li <davidxl@google.com>
25203
25204 PR tree-optimization/48988
25205 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
25206 Initialize has_valid_pred for each pred chain.
25207
25208 2011-05-23 Richard Guenther <rguenther@suse.de>
25209
25210 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
25211 (iterative_hash_gimple_type): Always hash type names.
25212
25213 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
25214
25215 * c-typeck.c (build_function_call_vec): Tweak call to
25216 check_function_arguments.
25217
25218 2011-05-23 Richard Guenther <rguenther@suse.de>
25219
25220 PR tree-optimization/49115
25221 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
25222 is not necessarily carried out, do not claim it kills the ref.
25223 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
25224
25225 2011-05-23 Richard Guenther <rguenther@suse.de>
25226
25227 PR middle-end/15419
25228 * builtins.c (fold_builtin_memory_op): Be less restrictive about
25229 what pointer types we accept for folding.
25230
25231 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25232
25233 * gthr-gnat.c: Remove.
25234 * gthr-gnat.h: Remove.
25235 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
25236 * config/t-freebsd (LIB2ADDEH): Likewise.
25237 * config/t-linux (LIB2ADDEH): Likewise.
25238 * config/t-sol2 (LIB2ADDEH): Likewise.
25239 * config/ia64/t-vms (LIB2ADDEH): Likewise.
25240 * configure.ac (target_thread_file): Remove gnat handling.
25241 * configure: Regenerate.
25242 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
25243
25244 2011-05-23 Tristan Gingold <gingold@adacore.com>
25245 Eric Botcazou <ebotcazou@adacore.com>
25246
25247 * gcov.c (create_file_names): If no object directory is specified,
25248 keep the directory of the file.
25249
25250 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25251
25252 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
25253 * configure: Regenerate.
25254
25255 2011-05-23 Jakub Jelinek <jakub@redhat.com>
25256
25257 PR middle-end/48973
25258 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
25259 failed and the comparison has a single bit signed type, use
25260 constm1_rtx instead of const1_rtx for true value.
25261 (do_store_flag): If ops->type is single bit signed type, disable
25262 signel bit test optimization and pass -1 instead of 1 as last
25263 parameter to emit_store_flag_force.
25264
25265 2011-05-23 Tom de Vries <tom@codesourcery.com>
25266
25267 PR target/45098
25268 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
25269 function.
25270 (infer_loop_bounds_from_undefined): Use new function.
25271
25272 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
25273
25274 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
25275 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
25276 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
25277 and -O0 otherwise.
25278 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
25279
25280 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
25281
25282 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
25283 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
25284 returns true.
25285
25286 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
25287
25288 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
25289
25290 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
25291
25292 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
25293 UNSPEC_MOVE_PIC pattern.
25294
25295 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
25296
25297 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
25298 (sparc-*-rtems*): Likewise.
25299 (sparc64-*-elf*): Likewise.
25300 (sparc64-*-rtems*): Likewise.
25301 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
25302 * config/sparc/t-crtin: New file.
25303 * config/sparc/t-sol2 (crti.o): Delete rule.
25304 (crtn.o): Likewise.
25305 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
25306 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
25307 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
25308 (ENDFILE_SPEC): Add crtn.o.
25309
25310 2011-05-22 Tom de Vries <tom@codesourcery.com>
25311
25312 PR middle-end/48689
25313 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
25314 CODE_CONTAINS_STRUCT (TS_COMMON).
25315
25316 2011-05-22 Jakub Jelinek <jakub@redhat.com>
25317
25318 PR middle-end/49029
25319 * expmed.c (extract_fixed_bit_field): Test whether target can be used
25320 only after deciding which mode to use.
25321
25322 2011-05-22 Tom de Vries <tom@codesourcery.com>
25323
25324 PR target/45098
25325 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
25326 for call to get_shiftadd_cost.
25327
25328 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
25329
25330 PR target/49104
25331 * config/i386/cpuid.h (bit_MMXEXT): New define.
25332
25333 2011-05-22 Nick Clifton <nickc@redhat.com>
25334
25335 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
25336 initialisation of non-existant args[2] element. Use args[] array
25337 not arg[] array to pass arguments to build_function_type_list.
25338
25339 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
25340
25341 PR tree-optimization/49087
25342 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
25343
25344 2011-05-21 Jason Merrill <jason@redhat.com>
25345
25346 PR c++/49092
25347 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
25348 static storage duration.
25349
25350 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
25351
25352 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
25353 frame pointer.
25354
25355 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
25356
25357 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
25358 false if there are call-saved registers here...
25359 (sparc_can_use_return_insn_p): ...but here instead.
25360 (save_or_restore_regs): Fix thinko.
25361 (sparc_expand_prologue): Use current_function_is_leaf.
25362 (sparc_frame_pointer_required): Likewise.
25363
25364 2011-05-21 Nick Clifton <nickc@redhat.com>
25365
25366 PR target/49098
25367 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
25368
25369 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
25370
25371 * gengtype.c (walk_type): Implemented "atomic" GTY option.
25372 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
25373
25374 2011-05-21 Joseph Myers <joseph@codesourcery.com>
25375
25376 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
25377 * optc-gen.awk: Move common code to opt-read.awk.
25378 * opth-gen.awk: Likewise.
25379 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
25380
25381 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
25382
25383 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
25384
25385 2011-05-20 Tom de Vries <tom@codesourcery.com>
25386
25387 PR target/45098
25388 * tree-ssa-loop-ivopts.c: Include expmed.h.
25389 (get_shiftadd_cost): New function.
25390 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
25391
25392 2011-05-20 Jakub Jelinek <jakub@redhat.com>
25393
25394 PR bootstrap/49086
25395 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
25396 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
25397
25398 2011-05-20 Joseph Myers <joseph@codesourcery.com>
25399
25400 * Makefile.in: Update comment referring to $(OBJS-common).
25401
25402 2011-05-20 Ian Lance Taylor <iant@google.com>
25403
25404 * godump.c (go_output_typedef): Put enum constants in the macro
25405 hash table to avoid duplicate Go const definitions.
25406
25407 2011-05-20 Joseph Myers <joseph@codesourcery.com>
25408
25409 * Makefile.in (LIBDEPS): Add libcommon.a.
25410 (LIBS): Likewise.
25411 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
25412 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
25413 pretty-print.o and version.o.
25414 (OBJS-libcommon): New.
25415 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
25416 (BACKEND): Add libcommon.a.
25417 (MOSTLYCLEANFILES): Likewise.
25418 (libcommon.a): New.
25419 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
25420 (cpp$(exeext)): Likewise.
25421 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
25422 pretty-print.o and input.o.
25423 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
25424 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
25425 (errors.o): Remove.
25426 (mips-tfile): Don't explicitly use version.o.
25427 (mips-tdump): Likewise.
25428 (gcov.o): Depend on $(DIAGNOSTIC_H).
25429 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
25430 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
25431 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
25432 * gcov-dump.c: Include intl.h and diagnostic.h.
25433 (main): Initialize diagnostics.
25434 * gcov.c: Include diagnostic.h.
25435 (fnotice): Remove.
25436 (main): Initialize diagnostics.
25437 * lto-wrapper.c: Include diagnostic.h.
25438 (main): Initialize diagnostics.
25439
25440 2011-05-20 Michael Matz <matz@suse.de>
25441
25442 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
25443
25444 2011-05-20 Michael Matz <matz@suse.de>
25445 Richard Guenther <rguenther@suse.de>
25446
25447 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
25448 use lto_streamer_cache_append directly instead of returning a VEC.
25449 (preload_common_node): Remove.
25450 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
25451 track seen nodes.
25452 (lto_streamer_cache_create): Call lto_preload_common_nodes.
25453
25454 2011-05-20 Richard Guenther <rguenther@suse.de>
25455
25456 PR tree-optimization/49079
25457 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
25458 MEM_REFs correctly for the trailing array access detection.
25459 Special case constants the same way as decls for overall size
25460 constraining.
25461
25462 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
25463
25464 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
25465 argument expansion.
25466
25467 2011-05-20 Jakub Jelinek <jakub@redhat.com>
25468
25469 PR tree-optimization/49073
25470 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
25471 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
25472 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
25473
25474 2011-05-20 Richard Guenther <rguenther@suse.de>
25475
25476 PR middle-end/48849
25477 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
25478 of pointer types the same way the middle-end does.
25479
25480 2011-05-20 Richard Guenther <rguenther@suse.de>
25481
25482 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
25483 or pointer-to chains. Delay all fixup to uniquify_nodes.
25484
25485 2011-05-19 Quentin Neill <quentin.neill@amd.com>
25486
25487 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
25488 (fma4_fmaddsub): Likewise
25489
25490 2011-05-19 Jan Hubicka <jh@suse.cz>
25491
25492 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
25493 (GIMPLE_TYPE_PAIR_SIZE): New macro.
25494 (type_pair_cache): New static var.
25495 (lookup_type_pair): Use fixed sized custom hash; make inline.
25496 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
25497 calls of lookup_type_pair.
25498 (print_gimple_types_stats): Remove cache stats.
25499 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
25500 and gtc_ob.
25501
25502 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
25503
25504 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
25505 when TARGET_RDRND is active.
25506 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
25507 Generate dummy SImode target register when target is NULL.
25508
25509 2011-05-19 Joseph Myers <joseph@codesourcery.com>
25510
25511 * config/arm/arm-fpus.def: New.
25512 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
25513 arm-fpus.def.
25514 * config/arm/arm-tables.opt: Regenerate.
25515 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
25516 (arm_option_override): Don't decode FPU name to string here.
25517 * config/arm/arm.opt (mfpu=): Use Enum.
25518 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
25519 Update dependencies.
25520
25521 2011-05-19 Joseph Myers <joseph@codesourcery.com>
25522
25523 * collect2.c: Include diagnostic.h.
25524 (fatal_perror, fatal, error, fancy_abort): Remove.
25525 (main): Set progname. Call xmalloc_set_program_name and
25526 diagnostic_initialize.
25527 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
25528 scan_libraries, resolve_lib_name): Call fatal_error instead of
25529 fatal and fatal_perror.
25530 * collect2.h (error, fatal, fatal_perror): Don't declare.
25531 * tlink.c: Include diagnostic-core.h.
25532 (recompile_files): Call fatal_error instead of fatal_perror.
25533 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
25534 pretty-print.o and input.o.
25535 (collect2.o, tlink.o): Update dependencies.
25536
25537 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25538
25539 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
25540
25541 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25542
25543 PR target/40483
25544 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
25545 COMDAT group syntax, both SPARC and x86 variants.
25546 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
25547 * configure: Regenerate.
25548 * config/sol2.h (TARGET_SOLARIS): Define.
25549 (PUSHSECTION_FORMAT): Remove.
25550 (SECTION_NAME_FORMAT): Define.
25551 * config/sol2.c: Include hashtab.h.
25552 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
25553 expansion, using SECTION_NAME_FORMAT.
25554 (solaris_comdat_htab): New variable.
25555 (struct comdat_entry): Define.
25556 (comdat_hash): New function.
25557 (comdat_eq): New function.
25558 (solaris_elf_asm_comdat_section): New function.
25559 (solaris_define_comdat_signature): New function.
25560 (solaris_code_end): New function.
25561 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
25562 (solaris_code_end): Declare.
25563 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
25564 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
25565 solaris_code_end.
25566 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
25567 Remove ATTRIBUTE_UNUSED.
25568 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
25569 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
25570 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
25571 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
25572 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
25573 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
25574 (PUSHSECTION_FORMAT): Remove.
25575 (SECTION_NAME_FORMAT): Redefine.
25576
25577 2011-05-19 Kai Tietz <ktietz@redhat.com>
25578
25579 * tree-cfg.c (verify_gimple_assign_binary): Barf on
25580 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
25581 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
25582
25583 2011-05-19 Anatoly Sokolov <aesok@post.ru>
25584 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25585
25586 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
25587
25588 2011-05-19 Richard Guenther <rguenther@suse.de>
25589
25590 PR middle-end/48985
25591 * tree-object-size.c (addr_object_size): If the pointed-to
25592 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
25593
25594 2011-05-19 Richard Guenther <rguenther@suse.de>
25595
25596 * gimple.c (gimple_types_compatible_p_1): Compare names of
25597 the types themselves.
25598 (iterative_hash_gimple_type): And hash them that way.
25599 (gimple_register_type_1): If we register a main variant properly
25600 initialize the leader to ourselves.
25601
25602 2011-05-19 Tom de Vries <tom@codesourcery.com>
25603
25604 PR target/45098
25605 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
25606 get_loop_invariant_expr_id.
25607 (get_loop_invariant_expr_id): Use get_expr_id.
25608 (parm_decl_cost): New function.
25609 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
25610 Improve bound cost estimation. Use different inv_expr_id for elim and
25611 express cases.
25612
25613 2011-05-19 Tom de Vries <tom@codesourcery.com>
25614
25615 PR target/45098
25616 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
25617 cost_base.cost == 0.
25618
25619 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
25620
25621 PR target/49002
25622 * config/i386/sse.md
25623 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
25624 load cast.
25625
25626 2011-05-18 Jakub Jelinek <jakub@redhat.com>
25627
25628 PR tree-optimization/49039
25629 * tree-vrp.c (extract_range_from_binary_expr): For
25630 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
25631 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
25632
25633 2011-05-18 Tom de Vries <tom@codesourcery.com>
25634
25635 PR target/45098
25636 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
25637
25638 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
25639
25640 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
25641 (*tls_global_dynamic_64): Ditto.
25642 (*tls_local_dynamic_base_32_gnu): Ditto.
25643 (*tls_local_dynamic_base_64): Ditto.
25644 (tls_initial_exec_64_sun): Ditto.
25645
25646 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
25647
25648 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
25649 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
25650 bf592-none.
25651 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
25652 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
25653 * config/bfin/bfin.c (bfin_cpus): Add bf592.
25654 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
25655 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
25656 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
25657 * config/bfin/elf.h (LIB_SPEC): Add bf592.
25658
25659 2011-05-18 Joseph Myers <joseph@codesourcery.com>
25660
25661 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
25662 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
25663 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
25664 target_thread_pointer, arm_structure_size_boundary, struct
25665 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
25666 struct abi_name, arm_all_abis): Remove.
25667 (arm_option_override) Don't process most enumerated option values here.
25668 Don't process target_fpe_name here. Work with integer not string for
25669 structure size boundary; use separate diagnostics for each case.
25670 * config/arm/arm.h (enum float_abi_type, enum
25671 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
25672 to arm-opts.h.
25673 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
25674 arm_structure_size_boundary): Remove.
25675 * config/arm/arm.opt (mabi=): Use Enum and Init.
25676 (arm_abi_type): New Enum and EnumValue entries.
25677 (mfloat-abi=): Use Enum and Init.
25678 (float_abi_type): New Enum and EnumValue entries.
25679 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
25680 (mfp16-format=): Use Enum and Init.
25681 (arm_fp16_format_type): New Enum and EnumValue entries.
25682 (mstructure-size-boundary=): Use UInteger and Init.
25683 (mtp=): Use Enum and Init.
25684 (arm_tp_type): New Enum and EnumValue entries.
25685
25686 2011-05-18 Richard Guenther <rguenther@suse.de>
25687
25688 PR tree-optimization/49018
25689 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
25690 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
25691 gimple_has_side_effects.
25692
25693 2011-05-18 Richard Guenther <rguenther@suse.de>
25694
25695 * gimple.c (gimple_register_type_1): New function, split out from ...
25696 (gimple_register_type): ... here. Avoid infinite recursion.
25697
25698 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
25699
25700 PR tree-optimization/41881
25701 * tree-vectorizer.h (struct _loop_vec_info): Add new field
25702 reduction_chains along with a macro for its access.
25703 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
25704 (destroy_loop_vec_info): Free reduction chains.
25705 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
25706 (vect_is_slp_reduction): New function.
25707 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
25708 (vect_create_epilog_for_reduction): Support SLP reduction chains.
25709 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
25710 definition types for reduction chains.
25711 (vect_supported_load_permutation_p): Don't allow permutations for
25712 reduction chains.
25713 (vect_analyze_slp_instance): Support reduction chains.
25714 (vect_analyze_slp): Try to build SLP instance from reduction chains.
25715 (vect_get_constant_vectors): Handle reduction chains.
25716 (vect_schedule_slp_instance): Mark the first statement of the
25717 reduction chain as reduction.
25718
25719 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
25720
25721 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
25722 names for group elements access.
25723 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
25724 reduction chains as well. Remove data reference and interleaving
25725 related words from the fields names.
25726 * tree-vect-loop.c (vect_transform_loop): Use new names for group
25727 elements access.
25728 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
25729 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
25730 vect_update_interleaving_chain, vect_same_range_drs,
25731 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
25732 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
25733 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
25734 vect_analyze_group_access, vect_analyze_data_ref_access,
25735 vect_create_data_ref_ptr, vect_transform_strided_load,
25736 vect_record_strided_load_vectors): Likewise.
25737 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
25738 vect_model_load_cost, vectorizable_store, vectorizable_load,
25739 vect_remove_stores, new_stmt_vec_info): Likewise.
25740 * tree-vect-slp.c (vect_build_slp_tree,
25741 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
25742
25743 2011-05-18 Richard Guenther <rguenther@suse.de>
25744
25745 PR middle-end/48989
25746 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
25747 operand verification.
25748 (verify_gimple_assign_binary): Likewise.
25749 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
25750 to non-1-precision BOOLEAN_TYPEs.
25751
25752 2011-05-18 Tom de Vries <tom@codesourcery.com>
25753
25754 PR target/45098
25755 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
25756
25757 2011-05-18 Jakub Jelinek <jakub@redhat.com>
25758
25759 PR tree-optimization/49000
25760 * tree-ssa.c (execute_update_addresses_taken): Call
25761 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
25762 be rewritten and decl has been marked for renaming, reset
25763 the debug stmt.
25764
25765 2011-05-17 Joseph Myers <joseph@codesourcery.com>
25766
25767 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
25768 enum_opts_set when testing if attributes have set -mfpmath=.
25769
25770 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
25771
25772 * config/mips/mips.c (mips_handle_option): Remove unused variable.
25773
25774 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
25775
25776 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
25777 info->entry with 0
25778 * tree-inline.c (maybe_inline_call_in_expr): Initialize
25779 id.transform_lang_insert_block with NULL.
25780
25781 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
25782
25783 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
25784 (output_fp_compare): Change args 3 and 4 to bool.
25785 (ix86_expand_call): Change arg 6 to bool.
25786 (ix86_attr_length_immediate_default): Change arg 2 to bool.
25787 (ix86_attr_length_vex_default): Change arg 3 to bool.
25788 * config/i386/i386.md: Update all uses.
25789 * config/i386/i386.c: Ditto.
25790 (ix86_flags_dependent): Change return type to bool.
25791
25792 2011-05-17 Richard Guenther <rguenther@suse.de>
25793
25794 * gimple.c (type_hash_pair_compare): Fix comparison.
25795
25796 2011-05-17 Richard Guenther <rguenther@suse.de>
25797
25798 * gimple.c (iterative_hash_gimple_type): Simplify singleton
25799 case some more, fix final hash value of the non-singleton case.
25800
25801 2011-05-17 Richard Guenther <rguenther@suse.de>
25802
25803 PR bootstrap/49013
25804 Revert
25805 2011-05-16 Richard Guenther <rguenther@suse.de>
25806
25807 * gimple.c (gimple_types_compatible_p_1): Use names of the
25808 type itself, not its main variant.
25809 (iterative_hash_gimple_type): Likewise.
25810
25811 2011-05-17 Richard Guenther <rguenther@suse.de>
25812
25813 * gimple.c (gimple_register_canonical_type): Use the main-variant
25814 leader for computing the canonical type.
25815
25816 2011-05-17 Nick Clifton <nickc@redhat.com>
25817
25818 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
25819 moves.
25820
25821 * config/rx/rx.md: Add peephole to remove redundant extensions
25822 after loads.
25823 (bitset_in_memory): Use rx_restricted_mem_operand.
25824 (bitinvert_in_memory): Likewise.
25825 (bitclr_in_memory): Likewise.
25826
25827 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
25828 Nick Clifton <nickc@redhat.com>
25829
25830 * config/rx/rx.md: Add peepholes to match a register move followed
25831 by a comparison of the moved register. Replace these with an
25832 addition of zero that does both actions in one instruction.
25833
25834 2011-05-17 Jakub Jelinek <jakub@redhat.com>
25835
25836 PR target/48986
25837 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
25838 predicate to allow CONST_INT.
25839 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
25840
25841 2011-05-16 Joseph Myers <joseph@codesourcery.com>
25842
25843 * opts-common.c (opt_enum_arg_to_value): New.
25844 * opts.h (opt_enum_arg_to_value): Declare.
25845 * config/i386/i386.opt (fpmath): Remove.
25846 (mfpmath=): Use Enum, Init and Save.
25847 (fpmath_unit): New Enum and EnumValue entries.
25848 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
25849 name for function fpmath state.
25850 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
25851 * config/i386/i386.c: Include diagnostic.h.
25852 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
25853 (ix86_target_string): Take enum fpmath_unit value instead of string.
25854 (ix86_debug_options): Update call to ix86_target_string.
25855 (ix86_option_override_internal): Don't process fpmath strings here.
25856 (x86_function_specific_save, ix86_function_specific_restore):
25857 Don't handle fpmath state specially.
25858 (ix86_function_specific_print): Pass fpmath state to
25859 ix86_target_string instead of printing in this function.
25860 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
25861 Handle enum attributes.
25862 (IX86_ATTR_ENUM, ix86_opt_enum): New.
25863 (ix86_valid_target_attribute_tree): Update option_strings
25864 handling. Handle fpmath as enum option.
25865 (ix86_can_inline_p): Update field names for function fpmath state.
25866 (ix86_expand_builtin): Update call to ix86_target_string.
25867 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
25868 (ix86_fpmath): Remove.
25869 * config/i386/t-i386 (i386.o): Update dependencies.
25870
25871 2011-05-16 Joseph Myers <joseph@codesourcery.com>
25872
25873 PR preprocessor/48677
25874 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
25875 from decoded_options[0], not from itself.
25876
25877 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
25878
25879 * config/i386/constraints.md (z): New constraint.
25880 * config/i386/i386.c (c): New mode attribute.
25881 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
25882 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
25883 constraint for operand 0.
25884 (*call_vzeroupper): Ditto.
25885 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
25886 (*call_rex64_ms_sysv_vzeroupper): Ditto.
25887 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
25888 Use "lzm" constraint for operand 0.
25889 (*call_pop_vzeroupper): Ditto.
25890 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
25891 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
25892 constraint for operand 0.
25893 (*sibcall_vzeroupper): Ditto.
25894 (*sibcall_rex64_ms_sysv): Ditto.
25895 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
25896 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
25897 *sibcall_pop_1. Use "Uz" constraint for operand 0.
25898 (*sibcall_pop_vzeroupper): Ditto.
25899 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
25900 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
25901 mode iterator. Use "<c>zm" constraint for operand 1.
25902 (*call_value_vzeroupper): Ditto.
25903 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
25904 for operand 1.
25905 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
25906 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
25907 *call_value_pop_1. Use "lzm" constraint for operand 1.
25908 (*call_value_pop_vzeroupper): Ditto.
25909 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
25910 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
25911 mode iterator. Use "Uz" constraint for operand 1.
25912 (*sibcall_value_vzeroupper): Ditto.
25913 (*sibcall_value_rex64_ms_sysv): Ditto.
25914 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
25915 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
25916 constraint for operand 1.
25917 (*sibcall_value_pop_vzeroupper): Ditto.
25918 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
25919 and "z" constraint for operand 2.
25920 (*tls_global_dynamic_32_gnu): Ditto.
25921 (*tls_local_dynamic_base_32_gnu): Ditto.
25922 (*tls_local_dynamic_base_64): Ditto.
25923 (*tls_local_dynamic_32_once): Ditto.
25924 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
25925 Update all callers.
25926 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
25927
25928 2011-05-16 Richard Guenther <rguenther@suse.de>
25929
25930 * gimple.c (gimple_types_compatible_p_1): Use names of the
25931 type itself, not its main variant.
25932 (iterative_hash_gimple_type): Likewise.
25933
25934 2011-05-16 Richard Guenther <rguenther@suse.de>
25935
25936 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
25937 always visit pointer target and function result and argument types.
25938
25939 2011-05-16 Jason Merrill <jason@redhat.com>
25940
25941 PR c++/48999
25942 * tree-inline.c (copy_statement_list): Put back recursion.
25943
25944 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
25945
25946 PR target/27663
25947 PR target/41076
25948 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
25949 * config/avr/avr.md ("*ior<mode>qi.byte0",
25950 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
25951
25952 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
25953
25954 PR target/45099
25955 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
25956 register is needed for a function argument.
25957
25958 2011-05-16 Richard Guenther <rguenther@suse.de>
25959
25960 * gimple.c (struct type_hash_pair): New type.
25961 (type_hash_pair_compare): New function.
25962 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
25963
25964 2011-05-16 Revital Eres <revital.eres@linaro.org>
25965
25966 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
25967
25968 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
25969
25970 * config/i386/i386.md (floating point move splitters): Fix
25971 usage of standard_80387_constant_p.
25972 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
25973
25974 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
25975
25976 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
25977
25978 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
25979
25980 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
25981 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
25982 (tree_ssa_lim_finalize): Likewise.
25983
25984 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
25985
25986 * config/i386/constraint.md (Yd, Yx): New register constraints.
25987 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
25988 Yd conditional register constraint.
25989 (*movtf_internal): Use standard_sse_constant_opcode.
25990 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
25991 Yx conditional register constraint.
25992 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
25993 Yd conditional register constraint. Use standard_sse_constant_p to
25994 check for valid SSE constants and call standard_sse_constant_opcode to
25995 output SSE insn.
25996 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
25997 constants and call standard_sse_constant_opcode to output SSE insn.
25998 * config/i386/i386.c (ix86_option_ovverride_internal): Set
25999 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
26000 optimize_size is set.
26001 (standard_sse_constant_opcode): Output conditional AVX insn templates.
26002
26003 2011-05-14 Tobias Burnus <burnus@net-b.de>
26004
26005 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
26006
26007 2011-05-13 Martin Jambor <mjambor@suse.cz>
26008
26009 * ipa-prop.c (ipa_cst_from_jfunc): New function.
26010 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
26011 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
26012 (evaluate_conditions_for_ipcp_clone): Removed.
26013 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
26014 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
26015 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
26016
26017 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
26018
26019 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
26020 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
26021 lieu of MAY_HAVE_DEBUG_STMTS.
26022 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
26023 debug statements if !MAY_HAVE_DEBUG_STMTS.
26024
26025 2011-05-13 Martin Thuresson <martint@google.com>
26026
26027 PR gcov-profile/47793
26028 * libgcov.c (gcov_exit): Support relative profile paths.
26029 * doc/invoke.texi (-fprofile-dir): Update for above change.
26030
26031 2011-05-13 Richard Guenther <rguenther@suse.de>
26032
26033 * gimple.c (gimple_canonical_types_compatible_p): Do not use
26034 type-pair caching, do not compare hashes.
26035
26036 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
26037
26038 PR middle-end/48965
26039 * tree-cfg.c (edge_to_cases_cleanup): Return true.
26040 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
26041
26042 2011-05-13 Kai Tietz <ktietz@redhat.com>
26043
26044 * gimplify.c (gimplify_expr): Make sure operand is boolified.
26045 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
26046 compatible type for TRUTH_NOT_EXPR.
26047
26048 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
26049
26050 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
26051 (ix86_hard_regno_mode_ok): Change return value to bool. Use
26052 can_create_pseudo_p ().
26053
26054 2011-05-13 Richard Guenther <rguenther@suse.de>
26055
26056 PR lto/48978
26057 * gimple.c (iterative_hash_gimple_type): Revert change in
26058 pointer target and function result and argument hashing.
26059
26060 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
26061
26062 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
26063 (*movxf_internal_nointeger): Ditto.
26064 (*movdf_internal_rex64): Ditto.
26065 (*movdf_internal): Ditto.
26066 (*movdf_internal_nointeger): Ditto.
26067 (*movsf_internal): Ditto.
26068 (sincos splitters): Use can_create_pseudo ().
26069
26070 2011-05-13 Joseph Myers <joseph@codesourcery.com>
26071
26072 * config/i386/i386-opts.h: New.
26073 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
26074 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
26075 ix86_section_threshold): Remove.
26076 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
26077 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
26078 OPT_mbranch_cost_.
26079 (ix86_option_override_internal): Don't decode strings for options
26080 other than -march=, -mtune= and -mfpmath=. Don't allow for
26081 __attribute__ uses in remaining diagnostics for options with
26082 string arguments. Don't check for integer arguments being negative.
26083 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
26084 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
26085 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
26086 ix86_branch_cost, ix86_section_threshold): Remove.
26087 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
26088 HeaderInclude.
26089 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
26090 but not Var.
26091 (masm=): Use Enum and Init.
26092 (asm_dialect): New Enum and EnumValue entries.
26093 (mbranch-cost=): Use UInteger.
26094 (mlarge-data-threshold=): Use UInteger and Init.
26095 (mcmodel=): Use Enum and Init.
26096 (cmodel): New Enum and EnumValue entries.
26097 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
26098 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
26099 mregparm=): Use UInteger.
26100 (mstringop-strategy=): Use Enum and Init.
26101 (stringop_alg): New Enum and EnumValue entries.
26102 (mtls-dialect=): Use Enum and Init.
26103 (tls_dialect): New Enum and EnumValue entries.
26104 (mabi=): Use Enum and Init.
26105 (calling_abi): New Enum and EnumValue entries.
26106 (mveclibabi=): Use Enum and Init.
26107 (ix86_veclibabi): New Enum and EnumValue entries.
26108
26109 2011-05-13 Nick Clifton <nickc@redhat.com>
26110
26111 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
26112 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
26113
26114 2011-05-13 Kai Tietz <ktietz@redhat.com>
26115
26116 PR middle-end/48984
26117 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
26118 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
26119 (gimple_boolify): Check for cast for boolean_type_node instead for
26120 BOOLEAN_TYPE.
26121
26122 2011-05-13 Richard Guenther <rguenther@suse.de>
26123
26124 PR tree-optimization/48172
26125 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
26126 multiplying by number of iterations for equal step.
26127 (vect_create_cond_for_alias_checks): Likewise.
26128
26129 2011-05-13 Andreas Schwab <schwab@redhat.com>
26130
26131 * configure.ac: Use AS_HELP_STRING throughout.
26132 * configure: Regenerate.
26133
26134 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
26135
26136 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
26137 (ix86_emit_restore_regs_using_mov): Likewise.
26138 (ix86_emit_restore_sse_regs_using_mov): Likewise.
26139
26140 2011-05-12 Anatoly Sokolov <aesok@post.ru>
26141
26142 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
26143 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
26144 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
26145 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
26146 RTX_OK_FOR_OLO10_P): ...here.
26147 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
26148 SYMBOLIC_CONST.
26149
26150 2011-05-12 Kai Tietz <ktietz@redhat.com>
26151
26152 * gimplify.c (gimple_boolify): Re-boolify expression
26153 arguments even if expression type is of kind BOOLEAN_TYPE.
26154 (gimplify_boolean_expr): Removed.
26155 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
26156 and XOR. Additional take care that we keep expression's type.
26157 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
26158 of TRUTH_AND|OR|XOR_EXPR.
26159
26160 2011-05-12 Jakub Jelinek <jakub@redhat.com>
26161
26162 PR tree-optimization/48975
26163 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
26164 on all bbs here and free and clear ifc_bbs at the end.
26165
26166 2011-05-12 Richard Guenther <rguenther@suse.de>
26167
26168 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
26169 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
26170 until after simple checks.
26171 (gimple_types_compatible_p): Likewise.
26172 (iterative_hash_gimple_type): Always hash pointer targets
26173 and function return and argument types.
26174 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
26175 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
26176 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
26177 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
26178 completely in the simple compare section.
26179 (gimple_register_canonical_type): Query the cache again after
26180 registering.
26181
26182 2011-05-12 Richard Guenther <rguenther@suse.de>
26183
26184 PR tree-optimization/48172
26185 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
26186 the number of iterations from the segment size calculation.
26187 (vect_create_cond_for_alias_checks): Adjust.
26188
26189 2011-05-12 Jakub Jelinek <jakub@redhat.com>
26190
26191 PR debug/48967
26192 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
26193 if validate_subreg fails.
26194
26195 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
26196
26197 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
26198 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
26199 early.
26200
26201 2011-05-12 DJ Delorie <dj@redhat.com>
26202
26203 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
26204 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
26205 created builtin into rx_builtins array.
26206 (rx_builtin_decl): New function.
26207 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
26208
26209 2011-05-12 DJ Delorie <dj@redhat.com>
26210 Nick Clifton <nickc@redhat.com>
26211
26212 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
26213 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
26214 (rx_is_legitimate_address): Add pre-decrement and post-increment
26215 addressing in HImode and QImode. Fix test for out of range
26216 REG+INT addressing.
26217 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
26218 (rx_align_for_label): Test label before extracting its usage count.
26219 (rx_adjust_insn_lengths): Fix selection of insn codes.
26220 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
26221
26222 2011-05-11 Jason Merrill <jason@redhat.com>
26223
26224 * tree.c (type_hash_canon): Use struct tree_type_non_common.
26225
26226 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
26227
26228 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
26229 reindent the subsequent block.
26230
26231 2011-05-11 Satoru Takabayashi <satorux@google.com>
26232 Paul Pluzhnikov <ppluzhnikov@google.com>
26233
26234 * doc/install.texi (Configuration): Document --with-linker-hash-style.
26235 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
26236 * config.in: Add LINKER_HASH_STYLE.
26237 * configure.ac: Add --with-linker-hash-style.
26238 * configure: Regenerate.
26239
26240 2011-05-11 Richard Guenther <rguenther@suse.de>
26241
26242 PR middle-end/48964
26243 * gimple.c (iterative_hash_canonical_type): Fix typo.
26244
26245 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
26246
26247 * config/i386/i386.c (legitimize_tls_address)
26248 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
26249 expanders directly for TARGET_GNU2_TLS. Determine pic and
26250 __tls_get_addr symbol reference here. Update call to
26251 gen_tls_global_dynamic_{32,64} for added arguments.
26252 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
26253 expanders directly for TARGET_GNU2_TLS. Determine
26254 __tls_get_addr symbol reference here. Update call to
26255 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
26256 unique UNSPEC REG_EQUIV to libcall block.
26257 (ix86_tls_get_addr): Declare static.
26258 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
26259 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
26260 Do not determine pic and __tls_get_addr symbol reference here. Do not
26261 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
26262 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
26263 (tls_global_dynamic_64): Add operand 2. Do not determine
26264 __tls_get_addr symbol reference here. Do not call
26265 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
26266 (tls_local_dynamic_base64): Ditto for operand 1.
26267
26268 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
26269
26270 * function.c (expand_function_start): Initialize stack_check_probe_note
26271 only if the generic stack checking mechanism is used.
26272
26273 2011-05-11 Richard Guenther <rguenther@suse.de>
26274
26275 PR tree-optimization/15256
26276 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
26277 (A & B) | C, combine (A op CST1) op CST2.
26278 (tree_ssa_forward_propagate_single_use_vars): Only bother to
26279 visit assigns that have uses.
26280
26281 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
26282
26283 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
26284 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
26285 (unpack_ts_type_common_value_fields): ...this. Update comment.
26286 (unpack_value_fields): Adjust for renaming.
26287 (lto_input_ts_type_tree_pointers): Split into...
26288 (lto_input_ts_type_common_tree_pointer): ...this and...
26289 (lto_input_ts_type_non_common_tree_pointers): ...this.
26290 (lto_input_tree_pointers): Adjust for above split.
26291 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
26292 (pack_ts_type_common_value_fields): ...this. Update comment.
26293 (lto_output_ts_type_tree_pointers): Split into...
26294 (lto_output_ts_type_common_tree_pointers): ...this and...
26295 (lto_output_ts_type_non_common_tree_pointers): ...this.
26296 (lto_output_tree_pointers): Adjust for above split.
26297 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
26298 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
26299 * stor-layout.c (vector_type_mode): Adjust location of mode field.
26300 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
26301 Define.
26302 (struct tree_type): Split into...
26303 (struct tree_type_common: ...this and...
26304 (struct tree_type_with_lang_specific): ...this and...
26305 (struct tree_type_non_common): ...this. Adjust accessor macros
26306 accordingly.
26307 (TYPE_VALUES_RAW): Define.
26308 (union tree_node): Update for above changes.
26309 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
26310 TS_TYPE_NON_COMMON.
26311 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
26312 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
26313 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
26314 * treestructu.def (TS_TYPE): Remove.
26315 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
26316 Define.
26317
26318 2011-05-11 Jakub Jelinek <jakub@redhat.com>
26319
26320 PR debug/48159
26321 * tree-ssa.c (reset_debug_uses): New function.
26322 * tree-flow.h (reset_debug_uses): New prototype.
26323 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
26324 * tree-loop-distribution.c (generate_loops_for_partition): Call
26325 reset_debug_uses on the stmts that will be removed. Keep around
26326 all debug stmts, don't count them as bits in partition bitmap.
26327 (generate_builtin): Don't count debug stmts or labels as bits in
26328 partition bitmap.
26329
26330 2011-05-11 Richard Guenther <rguenther@suse.de>
26331
26332 * gimple.c (gimple_type_hash_1): Merge with ...
26333 (gimple_type_hash): ... this.
26334 (gtc_visit): Remove mode parameter and simplify accordingly.
26335 (gimple_types_compatible_p_1): Likewise.
26336 (gimple_types_compatible_p): Likewise.
26337 (iterative_hash_gimple_type): Likewise.
26338 (visit): Likewise.
26339 (gimple_type_eq): Adjust.
26340
26341 2011-05-11 Revital Eres <revital.eres@linaro.org>
26342
26343 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
26344 enters the branch create an anti edge in the opposite direction
26345 to prevent the creation of reg-moves.
26346 * modulo-sched.c: Adjust comment to reflect the fact we are
26347 scheduling closing branch.
26348 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
26349 (stage_count): New field in struct partial_schedule.
26350 (calculate_stage_count): New function.
26351 (normalize_sched_times): Rename to reset_sched_times and handle
26352 incrementing the sched time of the nodes by a constant value
26353 passed as parameter.
26354 (duplicate_insns_of_cycles): Skip closing branch.
26355 (sms_schedule_by_order): Schedule closing branch.
26356 (ps_insn_find_column): Handle closing branch.
26357 (sms_schedule): Call reset_sched_times and adjust the code to
26358 support scheduling of the closing branch.
26359 (ps_insert_empty_row): Update calls to normalize_sched_times
26360 and rotate_partial_schedule functions.
26361
26362 2011-05-11 Richard Guenther <rguenther@suse.de>
26363
26364 PR middle-end/48953
26365 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
26366
26367 2011-05-11 Joseph Myers <joseph@codesourcery.com>
26368
26369 * opts.c (finish_options): Move warning settings from process_options.
26370 * toplev.c (process_options): Move warning settings to finish_options.
26371
26372 2011-05-11 Richard Guenther <rguenther@suse.de>
26373
26374 PR tree-optimization/18041
26375 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
26376 (simplify_bitwise_binary): ... this. Handle operand conversions
26377 by applying them to the result instead.
26378 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
26379
26380 2011-05-11 Richard Guenther <rguenther@suse.de>
26381
26382 * gimple.c (gimple_canonical_types_compatible_p): Split out
26383 from gimple_types_compatible_p and friends. Do not recurse
26384 to pointed-to types.
26385 (gimple_canonical_type_eq): Use it.
26386 (iterative_hash_canonical_type): Split out from
26387 iterative_hash_gimple_type and friends. Do not recurse
26388 to pointed-to types.
26389 (gimple_canonical_type_hash): Use it, allocate the hash here.
26390
26391 2011-05-11 Revital Eres <revital.eres@linaro.org>
26392
26393 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
26394 recognizing doloop.
26395
26396 2011-05-11 Revital Eres <revital.eres@linaro.org>
26397
26398 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
26399 instead of PREV_INSN.
26400
26401 2011-05-11 Revital Eres <revital.eres@linaro.org>
26402
26403 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
26404 * loop-doloop.c (doloop_condition_get): Likewise.
26405 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
26406 (doloop_end): New.
26407 * config/arm/arm.md (*addsi3_compare0): Remove "*".
26408
26409 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
26410
26411 * tree.def (CASE_LABEL_EXPR): Add an operand.
26412 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
26413
26414 2011-05-10 Joseph Myers <joseph@codesourcery.com>
26415
26416 * c-decl.c (c_override_global_bindings_to_false): Remove.
26417 (global_bindings_p): Don't check
26418 c_override_global_bindings_to_false.
26419 * c-tree.h (c_override_global_bindings_to_false): Remove.
26420 * c-typeck.c (composite_type): Don't set
26421 c_override_global_bindings_to_false.
26422
26423 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
26424
26425 PR target/48857, 48495
26426 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
26427 (VSX_MODE): Ditto.
26428 (VSX_MOVE_MODE): Ditto.
26429 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
26430 VSX vector types. Add V2DImode.
26431 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
26432 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
26433 (MODES_TIEABLE_P): Ditto.
26434
26435 * config/rs6000/rs6000.c (rs6000_emit_move): Use
26436 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
26437 VSX_VECTOR_MODE.
26438 (init_cumulative_args): Ditto.
26439 (rs6000_function_arg_boundary): Ditto.
26440 (rs6000_function_arg_advance_1): Ditto.
26441 (rs6000_function_arg): Ditto.
26442 (rs6000_function_ok_for_sibcall): Ditto.
26443 (emit_frame_save): Ditto.
26444 (rs6000_function_value): Ditto.
26445 (rs6000_libcall_value): Ditto.
26446
26447 2011-05-10 Joseph Myers <joseph@codesourcery.com>
26448
26449 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
26450 i386/darwin-lib.h to $libgcc_tm_file.
26451 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
26452
26453 2011-05-10 Joseph Myers <joseph@codesourcery.com>
26454
26455 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
26456
26457 2011-05-10 Joseph Myers <joseph@codesourcery.com>
26458
26459 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
26460 * config/rs6000/rs6000-tables.opt: New file (generated).
26461 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
26462 rs6000/rs6000-tables.opt to extra_options.
26463 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
26464 * config/rs6000/rs6000.c (rs6000_select): Remove.
26465 (processor_target_table): Move contents to rs6000-cpus.def.
26466 (darwin_rs6000_override_options): Check
26467 global_options_set.x_rs6000_cpu_index instead of
26468 rs6000_select[1].string.
26469 (rs6000_option_override_internal): Likewise.
26470 (rs6000_handle_option): Don't assert that global structures are in
26471 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
26472 (rs6000_default_cpu): New variable.
26473 (rs6000_file_start): Set it instead of local default_cpu. Check
26474 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
26475 global_options_set.x_rs6000_tune_index instead of rs6000_select.
26476 (rs6000_darwin_file_start): Check rs6000_default_cpu and
26477 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
26478 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
26479 rs6000_select): Remove.
26480 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
26481 Remove.
26482 (mcpu=, mtune=): Use Var, Init, Enum and Save.
26483 * config/rs6000/t-rs6000
26484 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
26485 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
26486 global_options_set.x_rs6000_cpu_index instead of
26487 rs6000_select[1].string.
26488 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
26489 global_options_set.x_rs6000_cpu_index instead of
26490 rs6000_select[1].string.
26491
26492 2011-05-10 Joseph Myers <joseph@codesourcery.com>
26493
26494 * config.gcc (libgcc_tm_file): Define instead of including files
26495 from ../../libgcc/config/ in tm_file.
26496 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
26497 * configure: Regenerate.
26498 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
26499 libgcc_tm.h, cs-libgcc_tm.h): New.
26500 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
26501 (clean): Remove libgcc_tm.h.
26502 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
26503 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
26504 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
26505
26506 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
26507
26508 PR target/48896
26509 * config/avr/avr.c (avr_ret_register): Return unsigned int
26510 instead of int.
26511 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
26512 it to avr_libcall_value.
26513 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
26514 expand_expr.
26515 (avr_expand_binop_builtin): Ditto.
26516 (avr_expand_unop_builtin): Ditto.
26517
26518 2011-05-10 DJ Delorie <dj@redhat.com>
26519
26520 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
26521 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
26522 * config/rx/rx.c (rx_align_for_label): Add label and
26523 uses_threshold parameters. Do not align when the label is not
26524 used enough.
26525 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
26526
26527 2011-05-10 Richard Guenther <rguenther@suse.de>
26528
26529 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
26530 a series of conversions and apply foldings similar to what
26531 fold-const does.
26532 (tree_ssa_forward_propagate_single_use_vars): Call it.
26533
26534 2011-05-10 Jakub Jelinek <jakub@redhat.com>
26535
26536 PR tree-optimization/48611
26537 PR tree-optimization/48794
26538 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
26539 referenced from RESX or EH_DISPATCH arguments.
26540
26541 PR debug/48928
26542 * dfp.c (decimal_to_decnumber): Handle conversion from
26543 dconst{1,2,m1,half}.
26544
26545 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
26546
26547 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
26548 for !flag_prefer_avx128.
26549 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
26550
26551 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
26552
26553 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
26554 (fold_ternary_loc): Use expr_location_or.
26555
26556 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
26557
26558 PR debug/48853
26559 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
26560 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
26561 Pmode and mem_mode is not VOIDmode.
26562
26563 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
26564
26565 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
26566 TYPE_QUAL_RESTRICT): Convert to enum.
26567
26568 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
26569
26570 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
26571 (const_pow2_1_to_8_operand): Ditto.
26572 (const_pow2_1_to_128_operand): Ditto.
26573 (const_pow2_1_to_32768_operand): Ditto.
26574 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
26575 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
26576 in insn constraint to check integer value of operand 3.
26577 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
26578
26579 (PINSR_MODE): New mode iterator.
26580 (sse2p4_1): New mode attribute.
26581 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
26582 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
26583 iterator. Use const_int_operand instead of
26584 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
26585 exact_log2 in insn constraint to check integer value of operand 3.
26586
26587 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
26588
26589 * config/i386/sse.md (blendbits): Remove mode attribute.
26590 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
26591 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
26592 Check integer value of operand 3 in insn constraint.
26593
26594 2011-05-09 Richard Guenther <rguenther@suse.de>
26595
26596 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
26597 for diagnostics.
26598 (lto_symtab_merge): Likewise. Do not register types here.
26599 (lto_symtab_merge_decls_2): Likewise.
26600 (lto_symtab_merge_decls_1): Likewise.
26601 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
26602 * gimple.c (enum gtc_mode): Declare.
26603 (gimple_types_compatible_p): Make static.
26604
26605 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26606
26607 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
26608 temporary register to match Pmode.
26609
26610 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
26611
26612 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
26613 and *vec_concatv4si_1_avx.
26614
26615 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
26616
26617 PR rtl-optimization/48927
26618 * ira-conflicts.c (commutative_constraint_p): Use
26619 recog_data.alternative_enabled_p to disable alternatives where
26620 "enabled" attribute is false.
26621 (get_dup_num): Ditto.
26622 * ira-lives.c (single_reg_class): Ditto.
26623 (ira_implicitly_set_insn_hard_regs): Ditto.
26624
26625 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
26626
26627 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
26628 (dataflow_set_preserve_mem_locs): Likewise.
26629
26630 2011-05-09 Philipp Thomas <pth@suse.de>
26631
26632 * config/mep/mep.c (mep_validate_vliw): Syntax description
26633 should not be translated.
26634
26635 2011-05-09 Joseph Myers <joseph@codesourcery.com>
26636
26637 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
26638 * config/mips/mips-tables.opt: New file (generated).
26639 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
26640 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
26641 MIPS_ARCH_OPTION_NATIVE): Define.
26642 * config/mips/mips.c (mips_cpu_info_table): Move contents to
26643 mips-cpus.def.
26644 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
26645 mips_parse_cpu): Remove.
26646 (mips_cpu_info_from_opt, mips_default_arch): New.
26647 (mips_handle_option): Don't assert that global structures are in
26648 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
26649 (mips_option_override): Use new variables and functions to set
26650 state of these options. Use strcmp to check for individual CPU names.
26651 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
26652 definition.
26653 * config/mips/mips.opt (march=): Use ToLower and Enum.
26654 (mips): Use ToLower, Enum and Var.
26655 (mtune=): Use ToLower and Enum.
26656 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
26657
26658 2011-05-08 Jan Hubicka <jh@suse.cz>
26659
26660 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
26661 Arrange type pairs to be UID ordered.
26662 (gimple_lookup_type_leader): Make inline.
26663
26664 2011-05-09 Nick Clifton <nickc@redhat.com>
26665
26666 PR target/48899
26667 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
26668 PROCESSOR_DEFAULT.
26669
26670 PR target/48897
26671 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
26672 variable 's'.
26673
26674 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
26675
26676 * combine.c (simplify_comparison): Abstract out parts into...
26677 (simplify_compare_const): ... new function.
26678 (try_combine): Generalize parallel arithmetic/compare combining
26679 to call simplify_compare_const() and CANONICALIZE_COMPARE().
26680
26681 2011-05-08 Jan Hubicka <jh@suse.cz>
26682
26683 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
26684 (cgraph_create_virtual_clone): Call hooks once virtual clone
26685 is finished.
26686 * cgraph.h (cgraph_clone_node): Update prototype.
26687 * ipa-cp.c (ipcp_estimate_growth): Use
26688 estimate_ipcp_clone_size_and_time.
26689 * ipa-inline-transform.c (clone_inlined_nodes): Update.
26690 * lto-cgraph.c (input_node): Update.
26691 * ipa-inline.c (recursive_inlining): Update.
26692 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
26693 (evaluate_conditions_for_known_args): Break out from ...
26694 (evaluate_conditions_for_edge): ... here.
26695 (evaluate_conditions_for_ipcp_clone): New function.
26696 (inline_node_duplication_hook): Update clone summary based
26697 on parameter map.
26698 (estimate_callee_size_and_time): Rename to ...
26699 (estimate_node_size_and_time): take NODE instead of EDGE;
26700 take POSSIBLE_TRUTHS as argument.
26701 (estimate_callee_size_and_time): Update.
26702 (estimate_ipcp_clone_size_and_time): New function.
26703 (do_estimate_edge_time): Update.
26704
26705 2011-05-08 Richard Guenther <rguenther@suse.de>
26706
26707 PR middle-end/48908
26708 PR middle-end/48905
26709 * expmed.c (expand_shift_1): Compute adjusted constant shift
26710 amount manually.
26711
26712 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
26713
26714 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
26715
26716 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
26717
26718 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
26719
26720 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
26721
26722 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
26723
26724 2011-05-07 Jan Hubicka <jh@suse.cz>
26725
26726 * ipa-inline-transform.c (inline_call): Account when program size
26727 decreases.
26728 * ipa-inline.c (relative_time_benefit): New function.
26729 (edge_badness): Reorganize to be power 2 based; fix thinko when
26730 computing badness for negative growth; update comments to match
26731 reality; better dumps.
26732
26733 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
26734
26735 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
26736 type to bool and adjust comment.
26737 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
26738 (fold_mathfn_compare): Remove calls to global_bindings_p.
26739 (fold_inf_compare): Likewise.
26740 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
26741 * c-tree.h (global_bindings_p): Adjust prototype.
26742 * c-decl.c (global_bindings_p): Return bool and simplify.
26743
26744 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
26745
26746 PR tree-optimization/48837
26747 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
26748 when accumulator transformation is performed.
26749
26750 2011-05-06 Jan Hubicka <jh@suse.cz>
26751
26752 * i386.h (ix86_tune_indices): Add
26753 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
26754 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
26755 * i386.c (initial_ix86_tune_features): Add
26756 X86_SOFTARE_PREFETCHING_BENEFICIAL.
26757 (software_prefetching_beneficial_p): Remove predicate.
26758 (ix86_option_override_internal): Use new macro.
26759
26760 2011-05-06 Jan Hubicka <jh@suse.cz>
26761
26762 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
26763
26764 2011-05-06 Jan Hubicka <jh@suse.cz>
26765
26766 * cgraph.c (cgraph_add_thunk): Create real function node instead
26767 of alias node; finalize it and mark needed/reachale; arrange visibility
26768 to be right and add it into the corresponding same comdat group list.
26769 (dump_cgraph_node): Dump thunks.
26770 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
26771 cgraph_function_with_gimple_body_p,
26772 cgraph_first_function_with_gimple_body,
26773 cgraph_next_function_with_gimple_body): New functions.
26774 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
26775 New macros.
26776 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
26777 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
26778 * cgraphunit.c (cgraph_finalize_function): Only look into possible
26779 devirtualization when optimizing.
26780 (verify_cgraph_node): Verify thunks.
26781 (cgraph_analyze_function): Analyze thunks.
26782 (cgraph_mark_functions_to_output): Output thunks only in combination
26783 with function they are assigned to.
26784 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
26785 alias into normal node.
26786 (assemble_thunks): New functoin.
26787 (cgraph_expand_function): Use it.
26788 * lto-cgraph.c (lto_output_node): Stream thunks.
26789 (input_overwrite_node): Stream in thunks.
26790 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
26791 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
26792 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
26793 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
26794 (inline_analyze_function): Do not care about thunk jump functions.
26795 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
26796 * ipa-prop.c (ipa_prop_write_jump_functions): Use
26797 cgraph_function_with_gimple_body_p.
26798 * passes.c (do_per_function_toporder): Use
26799 cgraph_function_with_gimple_body_p.
26800 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
26801 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
26802 (function_called_by_processed_nodes_p): Likewise.
26803
26804 2011-05-06 Joseph Myers <joseph@codesourcery.com>
26805
26806 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
26807 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
26808 entries.
26809 (mabi=): Replace with separate entries for mabi=altivec,
26810 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
26811 mabi=ieeelongdouble and mabi=ibmlongdouble.
26812 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
26813 check for -mabi=spe without SPE ABI support here.
26814 (rs6000_handle_option): Replace OPT_mabi_ handling with
26815 OPT_mabi_altivec and OPT_mabi_spe handling.
26816
26817 2011-05-06 Cary Coutant <ccoutant@google.com>
26818
26819 * dwarf2out.c (contains_subprogram_definition): New function.
26820 (should_move_die_to_comdat): Call it.
26821
26822 2011-05-06 Jeff Law <law@redhat.com>
26823
26824 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
26825 remove_ctrl_stmt_and_useless_edges.
26826 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
26827 (fixup_template_block, thread_single_edge): Likewise.
26828 (mark_threaded_blocks): Use THREAD_TARGET.
26829
26830 2011-05-06 Alan Modra <amodra@gmail.com>
26831
26832 PR target/48900
26833 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
26834 const0_rtx as the arg to the dummy __tls_get_addr libcall.
26835
26836 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
26837
26838 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
26839 constraint modifier to "r".
26840
26841 2011-05-06 Joseph Myers <joseph@codesourcery.com>
26842
26843 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
26844 fall through for OPT_mcmodel_.
26845
26846 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26847
26848 * config/s390/s390.c (s390_asm_trampoline_template): Comment
26849 instruction sizes.
26850 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
26851
26852 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
26853
26854 PR target/47930
26855 * config/arm/arm.opt (marm): Document it.
26856 (mthumb): Reject negative variant.
26857
26858 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
26859
26860 PR target/48898
26861 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
26862 Fix typo in "ccvt" variable name.
26863
26864 2011-05-06 Tristan Gingold <gingold@adacore.com>
26865
26866 PR target/48895
26867 * config/vms/vms-ar.c (main): Remove cwd variable.
26868
26869 2011-05-06 Jakub Jelinek <jakub@redhat.com>
26870
26871 PR debug/48902
26872 * var-tracking.c (prepare_call_arguments): Move else before #endif.
26873
26874 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
26875
26876 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
26877 * gimplify.c (gimplify_switch_expr): Likewise.
26878 * omp-low.c (expand_omp_sections): Likewise.
26879 * tree-eh.c (lower_try_finally_switch): Likewise.
26880 (lower_eh_dispatch): Likewise.
26881 * tree.h (build_case_label): Declare.
26882 * tree.c (build_case_label): Define.
26883
26884 2011-05-05 Jason Merrill <jason@redhat.com>
26885
26886 PR c++/40975
26887 * tree-inline.c (copy_tree_r): Use copy_statement_list.
26888 (copy_statement_list): Don't recurse.
26889 * stor-layout.c (copy_self_referential_tree_r): Don't allow
26890 STATEMENT_LIST.
26891
26892 2011-05-05 Joseph Myers <joseph@codesourcery.com>
26893
26894 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
26895 through from -mfpu= handling.
26896 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
26897
26898 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
26899
26900 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
26901 POST_MODIFY.
26902
26903 2011-05-05 Steve Ellcey <sje@cup.hp.com>
26904
26905 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
26906 for 11.31.
26907 (hppa[12]*-*-hpux11*): Ditto.
26908 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
26909 * config/ia64/hpux-unix2003.h: New.
26910 * config/pa/pa-hpux1131.opt: New.
26911 * config/pa/pa-hpux1131.h: New.
26912 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
26913 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
26914 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
26915
26916 2011-05-05 Jakub Jelinek <jakub@redhat.com>
26917
26918 PR debug/48853
26919 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
26920 instead of mode as 3rd argument to recursive call.
26921 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
26922 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
26923 VOIDmode.
26924 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
26925 don't give up if mode is Pmode and mem_mode is not VOIDmode.
26926 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
26927 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
26928
26929 2011-05-05 Julian Brown <julian@codesourcery.com>
26930
26931 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
26932 parenthesis in D-register case.
26933
26934 2011-05-05 Joseph Myers <joseph@codesourcery.com>
26935
26936 * opt-functions.awk (var_type_struct): Handle Enum options.
26937 * optc-gen.awk: Don't check range of variables of character type.
26938 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
26939 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
26940 rs6000_sdata_name, rs6000_explicit_options): Remove.
26941 (rs6000_option_override_internal): Check for -malign-power here.
26942 Use global_options_set instead of rs6000_explicit_options.
26943 (rs6000_parse_fpu_option): Remove.
26944 (rs6000_handle_option): Access variables via opts and opts_set
26945 pointers. Use error_at and warning_at. Add fall-through
26946 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
26947 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
26948 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
26949 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
26950 here. Don't use rs6000_parse_fpu_option.
26951 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
26952 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
26953 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
26954 (mrecip=): Use Var.
26955 (mspe): Use Var and Save.
26956 (mtraceback=): Use Enum and Var.
26957 (rs6000_traceback_type): New Enum and EnumValue entries.
26958 (mfloat-gprs=): Use Enum, Var and Save.
26959 (rs6000_float_gprs): New Enum and EnumValue entries.
26960 (mlong-double-): use Var and Save.
26961 (msched-costly-dep=, minsert-sched-nops=): Use Var.
26962 (malign-): Use Enum and Var.
26963 (rs6000_alignment_flags): New Enum and EnumValue entries.
26964 (mfpu=): Use Enum.
26965 (fpu_type_t): New Enum and EnumValue entries.
26966 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
26967 global_options_set instead of rs6000_explicit_options.
26968 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
26969 global_options_set instead of rs6000_explicit_options.
26970 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
26971 global_options_set instead of rs6000_explicit_options.
26972 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
26973 global_options_set instead of rs6000_explicit_options.
26974 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
26975 global_options_set instead of rs6000_explicit_options.
26976 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
26977 global_options_set instead of rs6000_explicit_options.
26978 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
26979 definition.
26980 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
26981 global_options_set instead of rs6000_explicit_options.
26982 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
26983 (rs6000_cmodel): New Enum and EnumValue entries.
26984 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
26985 global_options_set instead of rs6000_explicit_options.
26986 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
26987 (mtls-size=): Use Enum and Var.
26988 (rs6000_tls_size): New Enum and EnumValue entries.
26989
26990 2011-05-05 Michael Matz <matz@suse.de>
26991
26992 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
26993 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
26994 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
26995 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
26996 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
26997 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
26998 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
26999 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
27000 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
27001 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
27002 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
27003 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
27004 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
27005 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
27006 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
27007 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
27008
27009 2011-05-05 Richard Guenther <rguenther@suse.de>
27010
27011 * expmed.c (expand_variable_shift): Rename to ...
27012 (expand_shift_1): ... this. Take an expanded shift amount.
27013 For rotates recurse directly not building trees for the shift amount.
27014 (expand_variable_shift): Wrap around expand_shift_1.
27015 (expand_shift): Adjust.
27016
27017 2011-05-05 Jakub Jelinek <jakub@redhat.com>
27018
27019 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
27020
27021 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
27022
27023 * tree.h (get_pending_sizes): Remove prototype.
27024 (put_pending_size): Likewise.
27025 (put_pending_sizes): Likewise.
27026 * stor-layout.c (pending_sizes): Delete.
27027 (get_pending_sizes): Likewise.
27028 (put_pending_size): Likewise.
27029 (put_pending_sizes): Likewise.
27030 (variable_size): Do not call put_pending_size and tidy up.
27031 * function.h (struct function): Remove dont_save_pending_sizes_p.
27032 * lto-streamer-in.c (input_function): Do not stream it.
27033 * lto-streamer-out.c (output_function): Likewise.
27034 * tree-inline.c (initialize_cfun): Do not copy it.
27035 * c-decl.c (store_parm_decls): Do not set it.
27036 * omp-low.c (create_task_copyfn): Likewise.
27037 * tree-optimize.c (tree_rest_of_compilation): Likewise.
27038
27039 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
27040
27041 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
27042 conditions.
27043 (*movdf_internal): Ditto.
27044 (*movdf_internal_nointeger): Ditto.
27045 (*movsf_internal): Ditto.
27046
27047 2011-05-05 Joseph Myers <joseph@codesourcery.com>
27048
27049 * c-decl.c (finish_decl): Don't call get_pending_sizes.
27050 (grokparm): Add parameter expr. Pass it to grokdeclarator.
27051 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
27052 (c_variable_size): Remove.
27053 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
27054 call put_pending_sizes.
27055 (get_parm_info): Add parameter expr. Use it to set
27056 arg_info->pending_sizes.
27057 (store_parm_decls): Use arg_info->pending_sizes instead or calling
27058 get_pending_sizes.
27059 * c-parser.c (c_parser_parms_declarator): Update call to
27060 c_parser_parms_list_declarator.
27061 (c_parser_parms_list_declarator): Take parameter expr. Update
27062 call to push_parm_decl. Update recursive call. Don't call
27063 get_pending_sizes. Update calls to get_parm_info.
27064 (c_parser_objc_method_definition): Update calls to
27065 c_parser_objc_method_decl and objc_start_method_definition.
27066 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
27067 (c_parser_objc_method_decl): Add parameter expr. Update call to
27068 grokparm.
27069 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
27070 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
27071 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
27072
27073 2011-05-05 Michael Hope <michael.hope@linaro.org>
27074
27075 PR pch/45979
27076 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
27077 __ARM_EABI__ hosts.
27078
27079 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27080
27081 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
27082 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
27083 (spu_output_mi_thunk): New function.
27084
27085 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27086
27087 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
27088 targetm.asm_out.print_operand.
27089 * config/sol2.c: Include target.h.
27090
27091 2011-05-04 Jan Hubicka <jh@suse.cz>
27092
27093 * ipa-inline.c (reset_edge_caches): New function.
27094 (update_caller_keys): Add check_inlinablity_for; do not
27095 reset edge caches; remove now unnecesary loop.
27096 (update_callee_keys): Add comments; reset node_growth_cache of callee.
27097 (update_all_callee_keys): Likewise.
27098 (inline_small_functions): Sanity check cache; update code
27099 recomputing it.
27100
27101 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
27102
27103 PR rtl-optimization/47612
27104 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
27105 as the last insn of the sequence to be moved.
27106
27107 2011-05-04 Tobias Burnus <burnus@net-b.de>
27108
27109 PR fortran/48864
27110 * doc/invoke.texi (Ofast): Document that it
27111 enables Fortran's -fno-protect-parens.
27112
27113 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
27114
27115 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
27116
27117 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
27118
27119 * stor-layout.c (variable_size): Do not issue errors.
27120
27121 2011-05-04 Richard Guenther <rguenther@suse.de>
27122
27123 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
27124 for array-ref indices.
27125 (tree_coverage_counter_addr): Likewise.
27126 (build_fn_info_type): Use size_int for index types.
27127 (build_gcov_info): Likewise.
27128
27129 2011-05-04 Richard Guenther <rguenther@suse.de>
27130
27131 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
27132 to build_int_cst.
27133 * c-typeck.c (really_start_incremental_init): Use bitsize_int
27134 for constructor indices.
27135 (push_init_level): Likewise.
27136
27137 2011-05-04 Richard Guenther <rguenther@suse.de>
27138
27139 * explow.c (promote_mode): Move variable declarations before code.
27140
27141 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
27142
27143 * tree.h (build_function_type_array): Declare.
27144 (build_varargs_function_type_array): Declare.
27145 (build_function_type_vec, build_varargs_function_type_vec): Define.
27146 * tree.c (build_function_type_array_1): New function.
27147 (build_function_type_array): New function.
27148 (build_varargs_function_type_array): New function.
27149
27150 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
27151
27152 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
27153 before setting STMT_VINFO_TYPE.
27154
27155 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27156
27157 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
27158 instead of spu_pass_by_reference.
27159
27160 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27161
27162 * calls.c (emit_library_call_value_1): Invoke
27163 promote_function_mode hook on libcall arguments.
27164 * explow.c (promote_function_mode, promote_mode): Handle TYPE
27165 argument being NULL.
27166 * targhooks.c (default_promote_function_mode): Lisewise.
27167 * config/s390/s390.c (s390_promote_function_mode): Likewise.
27168 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
27169
27170 * doc/tm.texi: Document that TYPE argument might be NULL.
27171
27172 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
27173
27174 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
27175
27176 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
27177
27178 From Bernd Schmidt
27179 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
27180
27181 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27182
27183 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
27184 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
27185 Move ...
27186 * mips-tfile.c: ... here.
27187 Don't include coretypes.h, tm.h, filenames.h.
27188 (saber_stop): Remove definition and all calls.
27189 [__SABER__]: Remove.
27190 (__LINE__): Remove default.
27191 (Size_t, Ptrdiff_t): Remove definitions.
27192 Replace by size_t, ptrdiff_t.
27193 [!MIPS_DEBUGGING_INFO]: Remove.
27194 (SHASH_SIZE, THASH_SIZE): Remove defaults.
27195 (progname): Add const.
27196 (STATIC): Remove.
27197 Replace all uses by static.
27198 (ALIGN_SYMTABLE_OFFSET): Remove default.
27199 * mips-tdump.c: Don't include coretypes.h, tm.h.
27200 Remove !MIPS_IS_STAB guard.
27201 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
27202 $(TM_H), filenames.h dependencies.
27203 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
27204
27205 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
27206
27207 From Jie Zhang
27208 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
27209 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
27210
27211 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
27212
27213 From Bernd Schmidt
27214 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
27215 account and save/restore RETS.
27216 (PROFILE_BEFORE_PROLOGUE): Define.
27217 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
27218 the push insn to use predecrement.
27219
27220 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
27221
27222 From Jie Zhang
27223 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
27224
27225 2011-05-04 Nick Clifton <nickc@redhat.com>
27226
27227 * config/mn10300/mn10300.c: Include cfgloop.h.
27228 (DUMP): New macro.
27229 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
27230 Lcc or a FLcc insn into the instruction stream.
27231 (mn10300_block_contains_call): New function. Returns true if the
27232 given basic block contains a CALL insn.
27233 (mn10300_loop_contains_call_insn): New function. Returns true if
27234 the given loop contains a CALL insn.
27235 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
27236 to use the SETLB and Lcc or FLcc insns.
27237 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
27238 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
27239 * config/mn10300/mn10300.opt (msetlb): New option. Used to
27240 disable the SETLB optimization.
27241 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
27242 __SETLB__ or __NO_SETLB__.
27243 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
27244 (movsf_internal): Handle MDR register.
27245 (cmpsi): Make visible.
27246 (setlb): New pattern.
27247 (Lcc): New pattern.
27248 (FLcc): New pattern.
27249
27250 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
27251
27252 PR target/48860
27253 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
27254 for reg<->xmm moves.
27255 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
27256 (vec_concatv2di_rex64_sse): Ditto.
27257 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
27258 (*vec_extractv2di_1_rex64): Ditto.
27259
27260 Revert:
27261 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
27262
27263 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
27264 reg<->xmm moves.
27265 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
27266
27267 2011-05-04 Richard Guenther <rguenther@suse.de>
27268
27269 * tree.h (int_const_binop): Remove notrunc argument.
27270 * fold-const.c (int_const_binop): Remove notrunc argument. Always
27271 create integer constants that are properly truncated.
27272 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
27273 (const_binop): Remove zero notrunc argument to int_const_binop.
27274 (size_binop_loc): Likewise.
27275 (fold_div_compare): Likewise.
27276 (maybe_canonicalize_comparison_1): Likewise.
27277 (fold_comparison): Likewise.
27278 (fold_binary_loc): Likewise.
27279 (multiple_of_p): Likewise.
27280 * expr.c (store_constructor): Likewise.
27281 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
27282 (maybe_fold_stmt_addition): Likewise.
27283 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
27284 * stor-layout.c (layout_type): Likewise.
27285 * tree-data-ref.c (tree_fold_divides_p): Likewise.
27286 * tree-sra.c (build_ref_for_offset): Likewise.
27287 (build_user_friendly_ref_for_offset): Likewise.
27288 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
27289 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
27290 * tree-ssa-loop-niter.c (inverse): Likewise.
27291 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
27292 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
27293 * tree-switch-conversion.c (check_range): Likewise.
27294 (build_constructors): Likewise.
27295 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
27296 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
27297 (extract_range_from_assert): Likewise.
27298 (vrp_int_const_binop): Likewise.
27299 (extract_range_from_binary_expr): Likewise.
27300 (extract_range_from_unary_expr): Likewise.
27301 (check_array_ref): Likewise.
27302 (find_case_label_range): Likewise.
27303 (simplify_div_or_mod_using_ranges): Likewise.
27304 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
27305 comparing case labels for merging.
27306
27307 2011-05-03 Mark Wielaard <mjw@redhat.com>
27308
27309 * dwarf2out.c (debug_str_hash_forced): Removed.
27310 (gen_label_for_indirect_string): Removed.
27311 (get_debug_string_label): Removed.
27312 (AT_string_form): Generate label directly.
27313 (output_indirect_string): Test indirect_string_node for
27314 DW_FORM_strp instead of checking label and refcount.
27315 (prune_indirect_string): Removed.
27316 (prune_unused_types): Don't check debug_str_hash_forced or
27317 call prune_indirect_string.
27318
27319 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
27320
27321 PR other/48093
27322 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
27323
27324 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
27325
27326 PR debug/47994
27327 PR debug/47919
27328 * combine.c (try_combine): Skip debug insns at m_split tests.
27329
27330 2011-04-26 Mark Wielaard <mjw@redhat.com>
27331
27332 PR42288
27333 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
27334 when info_section_emitted.
27335
27336 2011-05-03 Joseph Myers <joseph@codesourcery.com>
27337
27338 * config/mips/mips-opts.h: New.
27339 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
27340 to mips-opts.h.
27341 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
27342 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
27343 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
27344 via opts pointer.
27345 * config/mips/mips.h (enum mips_code_readable_setting): Move to
27346 mips-opts.h.
27347 (mips_abi, mips_code_readable): Don't declare.
27348 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
27349 (mabi=): Use Enum and Var.
27350 (mips_abi): New Enum and EnumValue entries.
27351 (mcode-readable=): Use Enum and Var.
27352 (mips_code_readable_setting): New Enum and EnumValue entries.
27353 (mr10k-cache-barrier=): Use Enum and Var.
27354 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
27355
27356 2011-05-03 Jan Hubicka <jh@suse.cz>
27357
27358 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
27359 replace hash by pointer map.
27360 (cgraph_node_set_element_def, cgraph_node_set_element,
27361 const_cgraph_node_set_element, varpool_node_set_element_def,
27362 varpool_node_set_element, const_varpool_node_set_element): Remove.
27363 (free_cgraph_node_set, free_varpool_node_set): New function.
27364 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
27365 * tree-emutls.c: Free varpool node set.
27366 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
27367 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
27368 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
27369 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
27370 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
27371 Move here from ipa.c; implement using pointer_map
27372 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
27373 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
27374 debug_cgraph_node_set, varpool_node_set_new,
27375 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
27376 dump_varpool_node_set, debug_varpool_node_set):
27377 Move to ipa-uitls.c.
27378 * passes.c (ipa_write_summaries): Update.
27379
27380 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
27381
27382 From Mike Frysinger:
27383 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
27384 bf542/bf544/bf547/bf548/bf549.
27385
27386 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
27387
27388 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
27389
27390 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
27391
27392 From Bernd Schmidt:
27393 * config/bfin/bfin.md (MOVCC): New mode_macro.
27394 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
27395 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
27396 comments from generated assembly.
27397
27398 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
27399
27400 From Bernd Schmidt
27401 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
27402 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
27403 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
27404 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
27405 * config/bfin/lib1funcs.asm (___muldi3): New function.
27406
27407 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
27408
27409 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
27410 build_function_type_list instead of build_function_type.
27411 Rearrange initialization of `args' to do so.
27412
27413 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
27414
27415 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
27416 instead of build_function_type.
27417
27418 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
27419
27420 * config/rs6000/rs6000.c (spe_init_builtins): Call
27421 build_function_type_list instead of build_function_type.
27422 (paired_init_builtins, altivec_init_builtins): Likewise.
27423 (builtin_function_type): Likewise.
27424
27425 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
27426
27427 * config/sh/sh.c (sh_media_init_builtins): Call
27428 build_function_type_list instead of build_function_type.
27429
27430 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
27431
27432 * config/sparc/sparc.c (sparc_file_end): Call
27433 build_function_type_list instead of build_function_type.
27434
27435 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
27436
27437 * config/alpha/alpha.c (alpha_init_builtins): Call
27438 build_function_type_list instead of build_function_type.
27439
27440 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
27441
27442 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
27443 build_function_type_list instead of build_function_type.
27444
27445 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
27446
27447 * config/iq2000/i2000.c (iq2000_init_builtins): Call
27448 build_function_type_list instead of build_function_type.
27449 Delete `endlink' variable.
27450
27451 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
27452
27453 * config/avr/avr.c (avr_init_builtins): Call
27454 build_function_type_list instead of build_function_type.
27455
27456 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
27457
27458 * config/picochip/picochip.c (picochip_init_builtins): Call
27459 build_function_type_list instead of build_function_type.
27460 Delete `endlink' variable.
27461
27462 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
27463
27464 * config/bfin/bfin.c (bfin_init_builtins): Call
27465 build_function_type_list instead of build_function_type.
27466
27467 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
27468
27469 From Bernd Schmidt
27470 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
27471 that's not CONST_INT. Seemingly redundant check is due to PR39768.
27472
27473 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
27474
27475 From Jie Zhang:
27476 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
27477 libbffastfp overrides libgcc when -mfast-fp.
27478
27479 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
27480
27481 Originally from Bernd Schmidt
27482 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
27483 * config/bfin/bfin.c (override_options): Test it and error if
27484 TARGET_FDPIC.
27485
27486 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
27487
27488 Originally From Bernd Schmidt
27489 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
27490 FD-PIC.
27491
27492 2011-05-03 Jeff Law <law@redhat.com>
27493
27494 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
27495 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
27496 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
27497 than accessing AUX field directly. Free the AUX field before
27498 clearing it.
27499 (thread_block, thread_through_loop_header): Likewise.
27500 (thread_single_edge, mark_threaded_blocks): Likewise.
27501 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
27502 (register_jump_thread): Do not attempt to thread to a NULL edge.
27503
27504 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
27505
27506 * function.c (init_function_start): Call decide_function_section.
27507 * varasm.c (decide_function_section): New function.
27508 (assemble_start_function): When not using
27509 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
27510 or first_function_block_is_cold.
27511 * rtl.h (decide_function_section): Declare.
27512
27513 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
27514 Jakub Jelinek <jakub@redhat.com>
27515
27516 PR target/48774
27517 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
27518 only succeed if req_mode is the same as set_mode.
27519
27520 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
27521
27522 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
27523 * genemit.c (gen_exp): Handle RETURN.
27524 * emit-rtl.c (verify_rtx_sharing): Likewise.
27525 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
27526 * rtl.c (copy_rtx): RETURN is shared.
27527 * rtl.h (enum global_rtl_index): Add GR_RETURN.
27528 (ret_rtx): New.
27529 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
27530 * config/s390/s390.c (s390_emit_epilogue): Likewise.
27531 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
27532 * config/cris/cris.c (cris_expand_return): Likewise.
27533 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
27534 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
27535 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
27536 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
27537 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
27538 Likewise.
27539 * config/v850/v850.c (expand_epilogue): Likewise.
27540 * config/bfin/bfin.c (bfin_expand_call): Likewise.
27541 * config/arm/arm.md (epilogue): Likewise.
27542 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
27543 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
27544 variable to ret_reg.
27545
27546 2011-05-03 Richard Guenther <rguenther@suse.de>
27547
27548 PR lto/48846
27549 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
27550 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
27551 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
27552
27553 2011-05-03 Richard Guenther <rguenther@suse.de>
27554
27555 * c-decl.c (grokdeclarator): Instead of looking at
27556 TREE_OVERFLOW check if the constant fits in the index type.
27557
27558 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
27559
27560 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
27561 (vec_store_lanes<mode><mode>): Likewise.
27562
27563 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
27564
27565 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
27566 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
27567 convert_optab_index values.
27568 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
27569 * genopinit.c (optabs): Initialize the new optabs.
27570 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
27571 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
27572 (expand_STORE_LANES): New functions.
27573 * tree.h (build_array_type_nelts): Declare.
27574 * tree.c (build_array_type_nelts): New function.
27575 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
27576 (vect_model_load_cost): Likewise.
27577 (vect_store_lanes_supported, vect_load_lanes_supported)
27578 (vect_record_strided_load_vectors): Declare.
27579 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
27580 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
27581 (vect_transform_strided_load): Split out statement recording into...
27582 (vect_record_strided_load_vectors): ...this new function.
27583 * tree-vect-stmts.c (create_vector_array, read_vector_array)
27584 (write_vector_array, create_array_ref): New functions.
27585 (vect_model_store_cost): Add store_lanes_p argument.
27586 (vect_model_load_cost): Add load_lanes_p argument.
27587 (vectorizable_store): Try to use store-lanes functions for
27588 interleaved stores.
27589 (vectorizable_load): Likewise load-lanes and loads.
27590 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
27591 to vect_model_store_cost.
27592 (vect_build_slp_tree): Likewise vect_model_load_cost.
27593
27594 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
27595
27596 * hooks.h (hook_bool_mode_uhwi_false): Declare.
27597 * hooks.c (hook_bool_mode_uhwi_false): New function.
27598 * target.def (array_mode_supported_p): New hook.
27599 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
27600 * doc/tm.texi: Regenerate.
27601 * stor-layout.c (mode_for_array): New function.
27602 (layout_type): Use it.
27603 * config/arm/arm.c (arm_array_mode_supported_p): New function.
27604 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
27605
27606 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
27607
27608 PR target/48723
27609 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
27610 for -fstack-check if the size to allocate is negative.
27611
27612 2011-05-02 Lawrence Crowl <crowl@google.com>
27613
27614 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
27615 (timevar_cond_start): New for starting a timer only when it is not
27616 already running.
27617 (timevar_cond_stop): New for stopping a timer when it was not already
27618 running.
27619
27620 * timevar.c (timevar_stop): Enable start/stop timers to start again.
27621 (timevar_cond_start): New as above.
27622 (timevar_cond_stop): New as above.
27623
27624 * timevar.def: Add start/stop timers for compiler phases,
27625 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
27626 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
27627 and TV_PHASE_FINALIZE.
27628 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
27629 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
27630 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
27631 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
27632 Make unused TV_OVERLOAD into a start/stop timer.
27633
27634 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
27635 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
27636 to indicate that they are start/stop timers.
27637
27638 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
27639 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
27640 Move initialization to do_compile.
27641 (do_compile): Add initialization from above.
27642 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
27643
27644 * c-decl.c (c_write_global_declarations): Add start/stop of
27645 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
27646
27647 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
27648 or TV_PARSE_INLINE, as appropriate.
27649 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
27650 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
27651
27652 2011-05-02 Jason Merrill <jason@redhat.com>
27653
27654 PR c++/40975
27655 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
27656
27657 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
27658
27659 PR c/35445
27660 * c-decl.c (finish_decl): Only create a composite if the types are
27661 compatible.
27662
27663 2011-05-02 Joseph Myers <joseph@codesourcery.com>
27664
27665 * config/fr30/fr30-protos.h (Mmode): Don't define.
27666 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
27667 definition where used.
27668 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
27669 define. Expand definitions where used.
27670 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
27671 Expand definitions where used.
27672 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
27673 rx_function_arg, rx_function_arg_advance,
27674 rx_function_arg_boundary): Expand definitions of those macros.
27675 * config/v850/v850-protos.h (Mmode): Don't define. Expand
27676 definition where used.
27677
27678 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
27679
27680 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
27681 reg<->xmm moves.
27682 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
27683 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
27684 with *movv2sf_internal_rex64_avx.
27685 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
27686 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
27687 Use %v prefix in insn mnemonic to handle TARGET_AVX.
27688 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
27689 "vex" in "prefix" attribute calculation.
27690 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
27691
27692 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
27693
27694 PR target/47951
27695 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
27696 inputs match the output.
27697
27698 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
27699
27700 PR target/47955
27701 * config/m68k/m68k.c (m68k_expand_prologue): Set
27702 current_function_static_stack_size.
27703
27704 2011-05-02 Jan Hubicka <jh@suse.cz>
27705
27706 * lto-streamer.c (lto_streamer_cache_insert_1,
27707 lto_streamer_cache_lookup, lto_streamer_cache_create,
27708 lto_streamer_cache_delete): Use pointer map instead of hashtable.
27709 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
27710
27711 2011-05-02 Joseph Myers <joseph@codesourcery.com>
27712
27713 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
27714 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
27715 config/m68k/t-opts: New files.
27716 * config/m68k/m68k-tables.opt: New file (generated).
27717 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
27718 extra_options and m68k/t-opts to tmake_file.
27719 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
27720 (all_isas): Initialize using m68k-isas.def.
27721 (all_microarchs): Initialize using m68k-microarchs.def.
27722 (m68k_find_selection): Remove.
27723 (m68k_handle_option): Don't assert that global structures are in
27724 use. Use error_at. Access variables via opts pointer. Don't
27725 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
27726 directly for -m68020-40 and -m68020-60.
27727 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
27728 m68k_tune_entry here.
27729 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
27730 to m68k-opts.h.
27731 (m68k_library_id_string): Remove declaration.
27732 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
27733 (m68k_library_id_string): New Variable.
27734 (march=, mcpu=, mtune=): Use Enum and Var.
27735
27736 2011-05-02 Richard Guenther <rguenther@suse.de>
27737
27738 * varasm.c (output_constructor_regular_field): Compute zero-based
27739 index with double-ints. Make sure to ICE instead of producing
27740 wrong code.
27741 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
27742 in asserts. Properly use a signed type.
27743
27744 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
27745
27746 * config/i386/sse.md (V): New mode iterator.
27747 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
27748 TARGET_SSE2.
27749 (V_256): Rename from AVX256MODE.
27750 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
27751 condition to all users.
27752 (VF1): Ditto.
27753 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
27754 condition to all users.
27755 (VF_128): Make V4SF mode unconditional.
27756 (VF_256): Rename from AVX256MODEF2P.
27757 (VI4F_128): Rename from SSEMODE4S.
27758 (VI8F_128): Rename from SSEMODE2D.
27759 (VI4F_256): Rename from AVX256MODE8P.
27760 (VI8F_256): Rename from AVX256MODE4P.
27761 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
27762 (ssescalarmodesuffix): Remove SF and DF modes.
27763 (SSEMODE124): Remove.
27764 (SSEMODE1248): Ditto.
27765 (SSEMODEF2P): Ditto.
27766 (AVXMODEF2P): Ditto.
27767 (AVXMODEFDP): Ditto.
27768 (AVXMODEFSP): Ditto.
27769 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
27770 unconditional.
27771 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
27772 unconditional.
27773 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
27774 xop_pcmov_<mode>256. Use V mode iterator.
27775
27776 Adjust RTX patterns globally for renamed mode attributes.
27777
27778 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27779
27780 * haifa-sched.c (sched_emit_insn): Emit insn before first
27781 non-scheduled insn. Inform back-end about new insn. Add
27782 new insn to scheduled_insns list.
27783
27784 2011-05-02 Richard Guenther <rguenther@suse.de>
27785
27786 PR tree-optimization/48822
27787 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
27788 (process_scc): Indicate which iteration we start.
27789
27790 2011-05-02 Jan Hubicka <jh@suse.cz>
27791
27792 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
27793 (lto_section_overrun): New.
27794 * lto-section-out.c (append_block): Rename to ...
27795 (lto_append_block): ... this one; export.
27796 (lto_output_1_stream): Move lto lto-streamer.h
27797 (lto_output_data_stream): Update.
27798 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
27799 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
27800 functions.
27801
27802 2011-05-02 Richard Guenther <rguenther@suse.de>
27803
27804 * tree.c (tree_code_counts): New global array.
27805 (record_node_allocation_statistics): Count individual tree codes.
27806 (dump_tree_statistics): Dump individual code stats.
27807
27808 2011-05-01 Jan Hubicka <jh@suse.cz>
27809
27810 * ipa-inline.c (caller_growth_limits): Fix thinko when
27811 looking for largest stack frame.
27812 * ipa-inline.h (dump_inline_summary): Declare.
27813 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
27814 on stack usage.
27815 (dump_inline_summary): Export.
27816 (debug_inline_summary): Declare as DEBUG_FUNCTION.
27817
27818 2011-05-01 Anatoly Sokolov <aesok@post.ru>
27819
27820 * reginfo.c (memory_move_cost): Change rclass argument type form
27821 'enum reg_class' to reg_class_t.
27822 * reload.h (memory_move_cost): Update prototype.
27823 * postreload.c reload_cse_simplify_set): Change type dclass var to
27824 reg_class_t.
27825 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
27826 Update prototype.
27827 (ira_allocate_and_set_costs): Change aclass argument type form
27828 'enum reg_class' to reg_class_t.
27829 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
27830 Change aclass argument type to reg_class_t.
27831 (update_conflict_hard_reg_costs): Change type aclass and pref vars
27832 to reg_class_t.
27833 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
27834 memory_move_cost call.
27835
27836 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
27837 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
27838 Change type tmp var to reg_class_t.
27839
27840 2011-04-30 Jan Hubicka <jh@suse.cz>
27841
27842 * ipa-inline.c (can_inline_edge_p): Disregard limits when
27843 inlining into function with flatten attribute.
27844 (want_inline_small_function_p): Be more realistic about inlining
27845 cold calls where callee size grows.
27846
27847 2011-04-30 Jan Hubicka <jh@suse.cz>
27848
27849 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
27850 flags.
27851
27852 2011-04-30 Anatoly Sokolov <aesok@post.ru>
27853
27854 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
27855 PRINT_OPERAND_PUNCT_VALID_P): Remove.
27856 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
27857 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
27858 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
27859 (print_operand): Rename to...
27860 (sparc_print_operand): ...this. Make static. Adjust
27861 sparc_print_operand function call.
27862 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
27863 functions.
27864
27865 2011-04-30 Jan Hubicka <jh@suse.cz>
27866
27867 PR middle-end/48752
27868 * ipa-inline.c (early_inliner): Disable when doing late
27869 addition of function.
27870
27871 2011-04-30 Jakub Jelinek <jakub@redhat.com>
27872
27873 * dwarf2out.c (get_address_mode): New inline.
27874 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
27875 if not dwarf_strict emit
27876 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
27877 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
27878 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
27879 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
27880 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
27881 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
27882 mem_loc_descriptor callers.
27883 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
27884 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
27885 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
27886 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
27887 (base_types): New variable.
27888 (get_base_type_offset, calc_base_type_die_sizes,
27889 base_type_for_mode, mark_base_types, base_type_cmp,
27890 move_marked_base_types): New functions.
27891 (calc_die_sizes): Assert that die_offset is 0 or equal to
27892 next_die_offset.
27893 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
27894 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
27895 callers. If not dwarf_strict, call mem_loc_descriptor even for
27896 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
27897 (gen_subprogram_die): Don't give up on call site parameters
27898 with non-integral or large integral modes. Adjust
27899 mem_loc_descriptor callers.
27900 (prune_unused_types): Call prune_unused_types_mark on base_types
27901 vector entries.
27902 (resolve_addr): Call mark_base_types.
27903 (dwarf2out_finish): Call move_marked_base_types.
27904
27905 PR tree-optimization/48809
27906 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
27907 type.
27908 (gen_inbound_check): Don't compute index_expr - range_min in utype
27909 again, instead reuse SSA_NAME initialized in build_arrays.
27910 Remove two useless gsi_for_stmt calls.
27911
27912 2011-04-29 Jeff Law <law@redhat.com>
27913
27914 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
27915
27916 2011-04-29 Martin Jambor <mjambor@suse.cz>
27917
27918 * cgraph.h (cgraph_postorder): Remove declaration.
27919 * ipa-utils.h (ipa_free_postorder_info): Declare.
27920 (ipa_reverse_postorder): Likewise.
27921 * cgraphunit.c: Include ipa-utils.h.
27922 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
27923 * ipa-inline.c: Include ipa-utils.h.
27924 (ipa_inline): Update call to ipa_reverse_postorder.
27925 * ipa-pure-const.c (propagate_pure_const): Update call to
27926 ipa_reduced_postorder and ipa_print_order. Call
27927 ipa_free_postorder_info to clean up.
27928 (propagate_nothrow): Likewise.
27929 * ipa-reference.c (propagate): Removed a useless call to
27930 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
27931 and ipa_print_order. Call ipa_free_postorder_info to clean up.
27932 * ipa.c: Include ipa-utils.h.
27933 (ipa_profile): Update call to ipa_reverse_postorder.
27934 (cgraph_postorder): Moved to...
27935 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
27936 (ipa_utils_print_order): Renamed to ipa_print_order.
27937 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
27938 comments.
27939 (ipa_free_postorder_info): New function.
27940 * passes.c: Include ipa-utils.h.
27941 (do_per_function_toporder): Update call to ipa_reverse_postorder.
27942 (ipa_write_summaries): Likewise.
27943 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
27944 (cgraphunit.o): Likewise.
27945 (ipa.o): Likewise.
27946 (ipa-inline.o): Likewise.
27947
27948 2011-04-29 Jan Hubicka <jh@suse.cz>
27949
27950 * ipa-inline.h (clause_t): Turn into unsigned int.
27951 * ipa-inline-analysis.c (add_clause): Do more simplification.
27952 (and_predicates): Shortcut more cases.
27953 (predicates_equal_p): Move forward; check that clauses are properly
27954 ordered.
27955 (or_predicates): Shortcut more cases.
27956 (edge_execution_predicate): Rewrite as...
27957 (set_cond_stmt_execution_predicate): ... this function; handle
27958 __builtin_constant_p.
27959 (set_switch_stmt_execution_predicate): New .
27960 (compute_bb_predicates): New.
27961 (will_be_nonconstant_predicate): Update TODO.
27962 (estimate_function_body_sizes): Use compute_bb_predicates
27963 and free them later, always try to estimate if stmt is constant.
27964 (estimate_time_after_inlining, estimate_size_after_inlining):
27965 Gracefully handle optimized out edges.
27966 (read_predicate): Fix off by one error.
27967
27968 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
27969
27970 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
27971
27972 2011-04-27 Xinliang David Li <davidxl@google.com>
27973
27974 * tree-profile.c (init_ic_make_global_vars): Set
27975 tls attribute on ic vars.
27976 * coverage.c (coverage_end_function): Initialize
27977 function_list with zero.
27978
27979 2011-04-29 Richard Guenther <rguenther@suse.de>
27980
27981 * builtins.c (fold_builtin_classify_type): Use integer_type_node
27982 for the type of the result.
27983 (fold_builtin_isascii): Likewise.
27984 (fold_builtin_toascii): Use integer_type_node where appropriate.
27985 (fold_builtin_logb): Likewise.
27986 (fold_builtin_frexp): Likewise.
27987 (fold_builtin_strstr): Likewise.
27988 (fold_builtin_strpbrk): Likewise.
27989 (fold_builtin_fputs): Likewise.
27990 (fold_builtin_sprintf): Likewise.
27991 (fold_builtin_snprintf): Likewise.
27992 (fold_builtin_printf): Likewise.
27993 (do_mpfr_remquo): Use a proper type for the assigned constant.
27994 (do_mpfr_lgamma_r): Likewise.
27995 * dwarf2out.c (resolve_one_addr): Use size_int.
27996 * except.c (init_eh): Likewise.
27997 (assign_filter_values): Use integer_type_node for filter values.
27998 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
27999 indices.
28000 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
28001 for EH region numbers.
28002 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
28003 for the shift amount.
28004
28005 2011-04-29 Richard Guenther <rguenther@suse.de>
28006
28007 * expr.h (expand_shift): Rename to ...
28008 (expand_variable_shift): ... this.
28009 (expand_shift): Take a constant shift amount.
28010 * expmed.c (expand_shift): Rename to ...
28011 (expand_variable_shift): ... this.
28012 (expand_shift): New wrapper around expand_variable_shift.
28013 * expr.c (convert_move, emit_group_load_1, emit_group_store,
28014 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
28015 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
28016 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
28017 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
28018 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
28019 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
28020 emit_store_flag_1, emit_store_flag): Likewise.
28021 * builtins.c (expand_builtin_signbit): Likewise.
28022 * calls.c (load_register_parameters): Likewise.
28023 * function.c (assign_parm_setup_block): Likewise.
28024 * lower-subreg.c (resolve_shift_zext): Likewise.
28025 * optabs.c (widen_bswap, expand_abs_nojump,
28026 expand_one_cmpl_abs_nojump, expand_float): Likewise.
28027 * spu/spu.c (spu_expand_extv): Likewise.
28028 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
28029
28030 2011-04-29 Richard Guenther <rguenther@suse.de>
28031
28032 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
28033 for the remapped region number.
28034 * predict.c (build_predict_expr): Use integer_type_node for the
28035 predict kind.
28036 * fold-const.c (fold_binary_loc): Use integer_type_node for
28037 the shift amount. Use a proper type for the PLUS_EXPR operand.
28038
28039 2011-04-29 Michael Matz <matz@suse.de>
28040
28041 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
28042 other trees that just builtins.
28043 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
28044
28045 2011-04-29 Richard Guenther <rguenther@suse.de>
28046
28047 * tree-nested.c (get_trampoline_type): Use size_int.
28048 (get_nl_goto_field): Likewise.
28049 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
28050 for all indexes.
28051 (lower_eh_constructs_2): Likewise.
28052 (lower_resx): Likewise.
28053 (lower_eh_dispatch): Likewise.
28054 * tree-mudflap.c (mf_build_string): Use size_int.
28055 (mudflap_register_call): Use integer_type_node for the flag.
28056 (mudflap_enqueue_constant): Use size_int.
28057 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
28058 instead of rebuilding it.
28059
28060 2011-04-29 Richard Guenther <rguenther@suse.de>
28061
28062 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
28063 Handle OBJ_TYPE_REF.
28064 (find_func_aliases_for_call): Use it more consistently.
28065
28066 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
28067
28068 * haifa-sched.c (last_nondebug_scheduled_insn): New.
28069 (rank_for_schedule): Use it.
28070 (schedule_block): Set it.
28071
28072 2011-04-28 David Li <davidxl@google.com>
28073
28074 * tree.c (crc32_string): Use crc32_byte.
28075 (crc32_byte): New function.
28076 * tree.h (crc32_byte): New function.
28077 * gcov.c (read_graph_file): Handle new cfg_cksum.
28078 (read_count_file): Ditto.
28079 * profile.c (instrument_values): Ditto.
28080 (get_exec_counts): Ditto.
28081 (read_profile_edge_counts): Ditto.
28082 (compute_branch_probabilities): Ditto.
28083 (compute_value_histograms): Ditto.
28084 (branch_prob): Ditto.
28085 (end_branch_prob): Ditto.
28086 * coverage.c (read_counts_file): Ditto.
28087 (get_coverage_counts): Ditto.
28088 (tree_coverage_counter_addr): Ditto.
28089 (coverage_checksum_string): Ditto.
28090 (coverage_begin_output): Ditto.
28091 (coverage_end_function): Ditto.
28092 (build_fn_info_type): Ditto.
28093 (build_fn_info_value): Ditto.
28094 * libgcov.c (gcov_exit): Ditto.
28095 * gcov-dump.c (tag_function): Ditto.
28096 (compute_checksum): Remove.
28097
28098 2011-04-29 Alan Modra <amodra@gmail.com>
28099
28100 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
28101 unspec plus offset. Tidy macho code.
28102
28103 2011-04-29 Martin Jambor <mjambor@suse.cz>
28104
28105 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
28106 node instead of a decl. Update all callers.
28107 * cgraph.h: Update declaration.
28108
28109 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
28110
28111 PR tree-optimization/48765
28112 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
28113 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
28114 to indicate if loop aware SLP is being used. Scan the statements
28115 and update the vectorization factor according to the type of
28116 vectorization before statement analysis.
28117 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
28118 pass it to vect_analyze_loop_operations.
28119 (vectorizable_reduction): Set number of copies to 1 in case of pure
28120 SLP statement.
28121 * tree-vect-stmts.c (vectorizable_conversion,
28122 vectorizable_assignment, vectorizable_shift,
28123 vectorizable_operation, vectorizable_type_demotion,
28124 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
28125 Likewise.
28126 (vectorizable_condition): Move the check that it is not SLP
28127 vectorization before the number of copies check.
28128 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
28129 to vectorize the loop using SLP.
28130
28131 2011-04-28 Jakub Jelinek <jakub@redhat.com>
28132
28133 PR middle-end/48597
28134 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
28135 inline asm.
28136
28137 2011-04-28 Joseph Myers <joseph@codesourcery.com>
28138
28139 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
28140 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
28141 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
28142 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
28143 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
28144 linux*.h headers.
28145 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
28146 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
28147 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
28148 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
28149 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
28150 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
28151 REG_NAME.
28152 * config/i386/linux.h (REG_NAME): Don't define.
28153 * config/i386/linux64.h (REG_NAME): Don't define.
28154 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
28155 Undefine before defining.
28156
28157 2011-04-28 Jan Hubicka <jh@suse.cz>
28158
28159 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
28160 nonconstant_names array.
28161 (estimate_function_body_sizes): Build nonconstant_names array; handle
28162 BUILT_IN_CONSTANT_P.
28163
28164 2011-04-28 Richard Guenther <rguenther@suse.de>
28165
28166 PR bootstrap/48804
28167 Revert
28168 2011-04-28 Richard Guenther <rguenther@suse.de>
28169
28170 * tree-ssa-structalias.c (solve_constraints): Build succ graph
28171 as late as possible.
28172
28173 2011-04-28 Richard Guenther <rguenther@suse.de>
28174
28175 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
28176 (debug_constraint): Do it here.
28177 (dump_constraints): And here.
28178 (rewrite_constraints): And here.
28179 (dump_constraint_edge): Remove.
28180 (dump_constraint_graph): Rewrite to produce DOT output.
28181 (solve_constraints): Build succ graph as late as possible.
28182 Dump constraint graphs before and after solving.
28183
28184 2011-04-28 Richard Guenther <rguenther@suse.de>
28185
28186 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
28187 New function split out from ...
28188 (find_func_aliases): ... here. Call it.
28189 (find_func_aliases_for_call): Likewise.
28190
28191 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
28192
28193 * internal-fn.h (internal_fn_name_array): Declare.
28194 (internal_fn_flags_array): Likewise.
28195
28196 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
28197
28198 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
28199 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
28200 Move from sse.md.
28201 (ssemodefsuffix): Remove.
28202 (ssevecmodesuffix): New mode attribute.
28203 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
28204 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
28205 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
28206 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
28207 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
28208 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
28209 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
28210 ssemodesuffix mode attribute.
28211 (float splitters): Use ssevecmodesuffix mode attribute.
28212 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
28213 (sseinsmode): Rename from avxvecmode.
28214 (avxsizesuffix): Rename from avxmodesuffix.
28215 (sseintvecmode): Rename from avxpermvecmode.
28216 (ssedoublevecmode): Rename from ssedoublesizemode.
28217 (ssehalfvecmode): Rename from avxhalfvecmode.
28218 (ssescalarmode): Rename from avxscalarmode.
28219 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
28220 templates for ssemodesuffix mode attribute.
28221 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
28222 mode attribute.
28223
28224 Adjust RTX patterns globally for renamed mode attributes.
28225
28226 2011-04-27 Jan Hubcika <jh@suse.cz>
28227
28228 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
28229 * ipa-inline-analysis.c: Include alloc-pool.h.
28230 (edge_predicate_pool): New.
28231 (trye_predicate_p): New function
28232 (false_predicate_p): New function.
28233 (add_clause): Sanity check that false clauses are "optimized";
28234 never add clauses to predicate that is already known to be false.
28235 (and_predicate): Use flase_predicate_p.
28236 (evaulate_predicate): Rename to ...
28237 (evaluate_predicate): ... this one; update all callers; assert
28238 that false is not listed among possible truths.
28239 (dump_predicate): Use true_predicate_p.
28240 (account_size_time): Use false_predicate_p.
28241 (evaulate_conditions_for_edge): Rename to ...
28242 (evaluate_conditions_for_edge) ... this one.
28243 (edge_set_predicate): New function.
28244 (inline_edge_duplication_hook): Duplicate edge predicates.
28245 (inline_edge_removal_hook): Free edge predicates.
28246 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
28247 (dump_inline_summary): Update.
28248 (estimate_function_body_sizes): Set edge predicates.
28249 (estimate_calls_size_and_time): Handle predicates.
28250 (estimate_callee_size_and_time): Update.
28251 (remap_predicate): Add toplev_predicate; update comment.
28252 (remap_edge_predicates): New function.
28253 (inline_merge_summary): Compute toplev predicate; update.
28254 (read_predicate): New function.
28255 (read_inline_edge_summary): Use it.
28256 (inline_read_section): Likewise.
28257 (write_predicate): New function.
28258 (write_inline_edge_summary): Use it.
28259 (inline_write_summary): Likewise.
28260 (inline_free_summary): Free alloc pool and edge summary vec.
28261
28262 2011-04-27 Richard Guenther <rguenther@suse.de>
28263
28264 * tree-ssa-structalias.c (changed_count): Remove.
28265 (changed): Use a bitmap.
28266 (unify_nodes): Adjust.
28267 (do_sd_constraint): Likewise.
28268 (do_ds_constraint): Likewise.
28269 (do_complex_constraint): Likewise.
28270 (solve_graph): Likewise.
28271
28272 2011-04-27 Jan Hubicka <jh@suse.cz>
28273
28274 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
28275
28276 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
28277
28278 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
28279 (avx_vperm2f128_*_operand): Ditto.
28280 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
28281 Use avx_vpermilp_parallel in insn condition.
28282 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
28283 Use avx_vperm2f128_parallel in insn condition.
28284
28285 2011-04-27 Richard Guenther <rguenther@suse.de>
28286
28287 * Makefile.in (tree-ssa-structalias.o): Remove
28288 gt-tree-ssa-structalias.h dependency.
28289 (GTFILES): Remove tree-ssa-structalias.c.
28290 * tree.c (allocate_decl_uid): New function.
28291 (make_node_stat): Use it.
28292 (copy_node_stat): Likewise.
28293 * tree.h (allocate_decl_uid): Declare.
28294 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
28295 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
28296 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
28297 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
28298 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
28299 (struct heapvar_map): Likewise.
28300 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
28301 heapvar_insert): Likewise.
28302 (make_heapvar_for): Rename to ...
28303 (make_heapvar): ... this. Simplify.
28304 (fake_var_decl_obstack): New global var.
28305 (build_fake_var_decl): New function.
28306 (make_constraint_from_heapvar): Adjust.
28307 (handle_lhs_call): Likewise.
28308 (create_function_info_for): Likewise.
28309 (intra_create_variable_infos): Likewise.
28310 (init_alias_vars): Allocate fake_var_decl_obstack.
28311 (init_alias_heapvars, delete_alias_heapvars): Remove.
28312 (compute_points_to_sets): Do not call init_alias_heapvars.
28313 (ipa_pta_execute): Likewise.
28314 (delete_points_to_sets): Free fake_var_decl_obstack.
28315
28316 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28317
28318 * config/spu/divmovti4.c (union qword_UTItype): New data type.
28319 (si_from_UTItype, si_to_UTItype): New functions.
28320 (__udivmodti4): Use them to implement type-punning.
28321 * config/spu/multi3.c (union qword_TItype): New data type.
28322 (si_from_TItype, si_to_TItype): New functions.
28323 (__multi3): Use them to implement type-punning.
28324
28325 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28326
28327 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
28328
28329 2011-04-27 Jan Hubicka <jh@suse.cz>
28330
28331 * ipa-prop.c (function_insertion_hook_holder): New holder.
28332 (ipa_add_new_function): New function.
28333 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
28334 Register/deregister holder.
28335
28336 2011-04-27 Richard Guenther <rguenther@suse.de>
28337
28338 PR tree-optimization/48772
28339 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
28340
28341 2011-04-27 Richard Guenther <rguenther@suse.de>
28342
28343 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
28344 TARGET_MEM_REF handling.
28345
28346 2011-04-27 Nick Clifton <nickc@redhat.com>
28347
28348 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
28349 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
28350 (REG_CLASS_NAMES): Likewise.
28351 (REG_CLASS_CONTENTS): Likewise.
28352 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
28353 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
28354 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
28355 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
28356 (EVEN_REGS): New macro. Alias for QUAD_REGS.
28357 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
28358 duplicate register classes.
28359 (frv_class_likely_spilled_p): Likewise.
28360 (frv_register_move_cost): Likewise.
28361
28362 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
28363 end of the regno_reg_class array.
28364
28365 2011-04-27 Jakub Jelinek <jakub@redhat.com>
28366
28367 PR c/48742
28368 * c-typeck.c (build_binary_op): Don't wrap arguments if
28369 int_operands is true.
28370
28371 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
28372
28373 PR target/48767
28374 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
28375 targetm.calls.must_pass_in_stack for void type.
28376
28377 2011-04-26 Jan Hubicka <jh@suse.cz>
28378
28379 * cgraphbuild.c (build_cgraph_edges): Update call
28380 of cgraph_create_edge and cgraph_create_indirect_edge.
28381 * cgraph.c (cgraph_create_edge_including_clones,
28382 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
28383 cgraph_update_edges_for_call_stmt_node): Do not take nest
28384 argument; do not initialize call_stmt_size/time.
28385 (dump_cgraph_node): Do not dump nest.
28386 (cgraph_clone_edge): Do not take loop_nest argument;
28387 do not propagate it; do not clone call_stmt_size/time.
28388 (cgraph_clone_node): Likewise.
28389 (cgraph_create_virtual_clone): Update.
28390 * cgraph.h (struct cgraph_edge): Remove
28391 call_stmt_size/call_stmt_time/loop_nest.
28392 (cgraph_create_edge, cgraph_create_indirect_edge,
28393 cgraph_create_edge_including_clones, cgraph_clone_node): Update
28394 prototype.
28395 * tree-emutls.c (gen_emutls_addr): Update.
28396 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
28397 loop_nest; handle indirect calls, too.
28398 (clone_inlined_nodes): Do not care about updating inline summaries.
28399 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
28400 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
28401 stream call_stmt_size/call_stmt_time/loop_nest.
28402 * ipa-inline.c (edge_badness): Update.
28403 (ipa_inline): dump summaries after inlining.
28404 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
28405 New.
28406 (inline_edge_summary): New function.
28407 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
28408 (inline_edge_removal_hook): Handle edge summaries.
28409 (inline_edge_duplication_hook): New hook.
28410 (inline_summary_alloc): Alloc hooks.
28411 (initialize_growth_caches): Do not register removal hooks.
28412 (free_growth_caches); Do not free removal hook.
28413 (dump_inline_edge_summary): New function.
28414 (dump_inline_summary): Use it.
28415 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
28416 (inline_update_callee_summaries): New function.
28417 (inline_merge_summary): Use it.
28418 (do_estimate_edge_time, do_estimate_edge_growth): Update.
28419 (read_inline_edge_summary): New function.
28420 (inline_read_section): Use it.
28421 (write_inline_edge_summary): New function.
28422 (inline_write_summary): Use it.
28423 (inline_free_summary): Free edge new holders.
28424 * tree-inline.c (copy_bb): Update.
28425
28426 2011-04-26 Jason Merrill <jason@redhat.com>
28427
28428 * tree-eh.c (lower_try_finally_switch): Create the label along with
28429 the CASE_LABEL_EXPR.
28430
28431 2011-04-26 David S. Miller <davem@davemloft.net>
28432 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28433
28434 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
28435 * configure: Regenerate.
28436
28437 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
28438
28439 PR target/48258
28440 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
28441 reduction.
28442 (VEC_reduc): New code iterator and splitters for vector reduction.
28443 (VEC_reduc_name): Ditto.
28444 (VEC_reduc_rtx): Ditto.
28445 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
28446 (reduc_<VEC_reduc_name>_v4sf): Ditto.
28447
28448 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
28449 support for extracting SF on VSX.
28450
28451 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
28452 generating xscvspdp.
28453 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
28454 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
28455 double add, minimum, maximum vector reduction.
28456 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
28457 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
28458 optimize double vector reduction.
28459 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
28460
28461 2011-04-26 Joseph Myers <joseph@codesourcery.com>
28462
28463 * config/fr30/fr30.h (inhibit_libc): Don't define.
28464 * config/m32r/m32r-protos.h: Correct comment.
28465 * config/v850/v850.h (GHS_default_section_names,
28466 GHS_current_section_names): Use tree, not union tree_node *.
28467
28468 2011-04-26 Xinliang David Li <davidxl@google.com>
28469
28470 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
28471 * c-family/c-opts.c (c_common_handle_option): Set
28472 warn_maybe_uninitialized.
28473 * opts.c (common_handle_option): Ditto.
28474 * common.opt: New option.
28475 * tree-ssa.c (warn_uninit): Add one more parameter.
28476 (warn_uninitialized_var): Pass warning code.
28477 * tree-flow.h: Interface change.
28478
28479 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28480
28481 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
28482 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
28483 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
28484
28485 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28486
28487 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
28488 * config/mips/mips.opt (mmips-tfile): Remove.
28489
28490 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
28491 mips-tdump reference to ...
28492 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
28493 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
28494 reference by Tru64 UNIX.
28495
28496 2011-04-26 Jakub Jelinek <jakub@redhat.com>
28497
28498 PR debug/48768
28499 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
28500 is error_mark_node, set value to NULL.
28501
28502 PR tree-optimization/48734
28503 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
28504 if return value from maybe_fold_*_comparsions isn't something
28505 the code is prepared to handle.
28506
28507 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
28508
28509 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
28510 mode check.
28511 (ext_QIreg_nomode_operands): Remove.
28512 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
28513 (*andsi_1): Ditto.
28514 (*andhi_1): Ditto.
28515
28516 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
28517
28518 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
28519
28520 2011-04-26 Richard Guenther <rguenther@suse.de>
28521
28522 * c-typeck.c (build_unary_op): Do not expand array-refs via
28523 pointer arithmetic. Only adjust qualifiers for function types.
28524
28525 2011-04-26 Richard Guenther <rguenther@suse.de>
28526
28527 PR middle-end/48694
28528 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
28529 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
28530 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
28531 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
28532
28533 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
28534
28535 * doc/extend.texi: Document __underlying_type.
28536
28537 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
28538
28539 * config/rs6000/titan.md (automata_option "progress"): Remove.
28540
28541 2011-04-25 Jeff Law <law@redhat.com>
28542
28543 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
28544
28545 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
28546
28547 * system.h (ENUM_BITFIELD): Remove.
28548
28549 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
28550 Eric Botcazou <ebotcazou@adacore.com>
28551
28552 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
28553 for STORE_FLAG_VALUE==-1 case.
28554
28555 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
28556
28557 PR target/43804
28558 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
28559 LEGITIMATE_PIC_OPERAND_P.
28560
28561 2011-04-24 Jan Hubicka <jh@suse.cz>
28562
28563 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
28564 WPA hack.
28565 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
28566 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
28567 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
28568 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
28569 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
28570 Sanity check predicate length.
28571 (remap_predicate): Likewise; sanity check jump functions.
28572 (inline_read_section, inline_write_summary): Sanity check
28573 predicate length.
28574
28575 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
28576
28577 PR other/48748
28578 * doc/extend.texi (Type Traits): Document __is_standard_layout,
28579 __is_literal_type, and __is_trivial; update throughout about
28580 possibly cv-qualified void types.
28581
28582 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
28583
28584 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
28585 testsuite and make it version agnostic.
28586
28587 2011-04-22 Jan Hubicka <jh@suse.cz>
28588
28589 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
28590
28591 2011-04-23 Jakub Jelinek <jakub@redhat.com>
28592
28593 PR c/48685
28594 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
28595 to VOID_TYPE even around MODIFY_EXPR.
28596
28597 2011-04-22 Mike Stump <mikestump@comcast.net>
28598
28599 * gensupport.c (read_md_rtx): Fix typo in comment.
28600 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
28601 comment.
28602
28603 2011-04-22 Jan Hubicka <jh@suse.cz>
28604
28605 * gengtype.c (open_base_files): Add ipa-inline.h include.
28606 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
28607 ipa-prop.c; update all uses.
28608 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
28609 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
28610 merge summary of inlined function into former caller.
28611 * ipa-inline.c (max_benefit): Remove.
28612 (edge_badness): Compensate for removal of benefits.
28613 (update_caller_keys): Use
28614 reset_node_growth_cache/reset_edge_growth_cache.
28615 (update_callee_keys): Likewise.
28616 (update_all_callee_keys): Likewise.
28617 (inline_small_functions): Do not collect max_benefit; do not reset
28618 estimated_growth; call free_growth_caches and initialize_growth_caches.
28619 * ipa-inline.h (struct condition, type clause_t, struct predicate,
28620 struct size_time_entry): New structures.
28621 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
28622 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
28623 and estimated_growth.
28624 (edge_growth_cache_entry): New structure.
28625 (node_growth_cache, edge_growth_cache): New global vars.
28626 (estimate_growth): Turn into inline.
28627 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
28628 initialize_growth_caches, free_growth_caches): Declare.
28629 (estimate_edge_growth): Rewrite.
28630 (estimate_edge_time): Implement as inline cache lookup.
28631 (reset_node_growth_cache, reset_edge_growth_cache): New inline
28632 functions.
28633 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
28634 (NUM_CONDITIONS): New constant.
28635 (predicate_conditions): New enum.
28636 (IS_NOT_CONSTANT): New constant.
28637 (edge_removal_hook_holder): New var.
28638 (node_growth_cache, edge_growth_cache): New global vars.
28639 (true_predicate, single_cond_predicate, false_predicate,
28640 not_inlined_predicate, add_condition, add_clause, and_predicates,
28641 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
28642 dump_clause, dump_predicate, account_size_time,
28643 evaulate_conditions_for_edge): New functions.
28644 (inline_summary_alloc): Move to heap.
28645 (inline_node_removal_hook): Clear condition and entry vectors.
28646 (inline_edge_removal_hook): New function.
28647 (initialize_growth_caches, free_growth_caches): New function.
28648 (dump_inline_summary): Update.
28649 (edge_execution_predicate): New function.
28650 (will_be_nonconstant_predicate): New function.
28651 (estimate_function_body_sizes): Compute BB and constantness predicates.
28652 (compute_inline_parameters): Do not clear estimated_growth.
28653 (estimate_edge_size_and_time): New function.
28654 (estimate_calls_size_and_time): New function.
28655 (estimate_callee_size_and_time): New function.
28656 (remap_predicate): New function.
28657 (inline_merge_summary): New function.
28658 (do_estimate_edge_time): New function based on...
28659 (estimate_edge_time): ... this one.
28660 (do_estimate_edge_growth): New function.
28661 (do_estimate_growth): New function based on....
28662 (estimate_growth): ... this one.
28663 (inline_analyze_function): Analyze after deciding on jump functions.
28664 (inline_read_section): New function.
28665 (inline_read_summary): Use it.
28666 (inline_write_summary): Write all the new data.
28667 * ipa-prop.c (ipa_get_param_decl_index): Export.
28668 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
28669 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
28670 Declare.
28671 (ipa_get_lattice): Move here from ipa-cp.c
28672 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
28673 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
28674 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
28675 cgraph_edge_inlinable_p): Remove.
28676 * cgraphunit.c: Include ipainline.h
28677 (cgraph_process_new_functions): Update call of
28678 compute_inline_parameters.
28679
28680 2011-04-22 Richard Guenther <rguenther@suse.de>
28681
28682 * tree.c (build_int_cst): Properly create canonicalized integer
28683 constants.
28684 (build_int_cst_type): Remove scary comments.
28685
28686 2011-04-22 Xinliang David Li <davidxl@google.com>
28687
28688 * toplev.c (process_options): Enable -Werror=coverage-mismatch
28689 by default when -Wno-error is not specified.
28690 * opts-global.c (decode_options): Remove call to
28691 control_warning_options.
28692
28693 2011-04-22 Jakub Jelinek <jakub@redhat.com>
28694
28695 PR tree-optimization/48717
28696 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
28697 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
28698
28699 2011-04-22 Joseph Myers <joseph@codesourcery.com>
28700
28701 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
28702 definition where used.
28703
28704 2011-04-22 Jakub Jelinek <jakub@redhat.com>
28705
28706 PR c/48716
28707 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
28708 TREE_STATIC variables declared inside of some OpenMP construct.
28709
28710 2011-04-22 Martin Jambor <mjambor@suse.cz>
28711
28712 PR middle-end/48585
28713 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
28714
28715 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
28716
28717 PR c/36750
28718 * c-typeck.c (pop_init_level): Do not warn about initializing
28719 with ` = {0}'.
28720
28721 2011-04-22 Alan Modra <amodra@gmail.com>
28722
28723 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
28724 when returning call_cookie.
28725 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
28726 pointers, to functions with no more vector args than the current
28727 function, and some non-local calls for ABI_V4.
28728 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
28729 sibcall_nonlocal_aix64): Combine to ..
28730 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
28731 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
28732 (sibcall_value_nonlocal_aix<mode>): ..likewise.
28733 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
28734 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
28735 operand.
28736 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
28737 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
28738 sibcall_value_symbolic_64): Delete.
28739
28740 2011-04-21 Xinliang David Li <davidxl@google.com>
28741
28742 * cgraph.h: Remove pid.
28743 * cgraph.c: Remove pid.
28744 * value-prof.c (init_node_map): New function.
28745 (del_node_map): New function.
28746 (find_func_by_funcdef_no): New function.
28747 (gimple_ic_transform): Call new function.
28748 * cgraphunit.c (cgraph_finalize_function): Remove pid.
28749 * function.c (get_last_funcdef_no): New function.
28750 * function.h (get_last_funcdef_no): New function.
28751 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
28752 to libgcov function.
28753 (tree-profiling): Call node map init and delete function.
28754
28755 2011-04-21 Ian Lance Taylor <iant@google.com>
28756
28757 * godump.c (go_format_type): Use exported Go name for anonymous
28758 field name.
28759
28760 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
28761
28762 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
28763 Call builtin_function_type_list instead of builtin_function_type.
28764 (UNARY, BINARY, TRINARY, QUAD): Likewise.
28765
28766 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
28767
28768 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
28769 build_function_type_list instead of build_function_type.
28770 Delete variable `endlink'.
28771
28772 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
28773
28774 * config/s390/s390.c (s390_init_builtins): Call
28775 build_function_type_list instead of build_function_type.
28776
28777 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
28778
28779 * config/ia64/ia64.c (ia64_init_builtins): Call
28780 build_function_type_list instead of builtin_function_type.
28781
28782 2011-04-21 Easwaran Raman <eraman@google.com>
28783
28784 * cfgexpand.c (stack_var): Remove OFFSET...
28785 (add_stack_var): ...and its reference here...
28786 (expand_stack_vars): ...and here.
28787 (stack_var_cmp): Sort by descending order of size.
28788 (partition_stack_vars): Change heuristic.
28789 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
28790 (dump_stack_var_partition): Add newline after each partition.
28791
28792 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
28793 Jeff Law <law@redhat.com>
28794
28795 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
28796 * gengtype.c (matching_file_name_substitute): Likewise.
28797
28798 2011-04-21 Richard Guenther <rguenther@suse.de>
28799
28800 PR lto/48703
28801 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
28802
28803 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
28804
28805 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
28806
28807 2011-04-21 Richard Guenther <rguenther@suse.de>
28808
28809 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
28810 file name.
28811
28812 2011-04-21 Richard Guenther <rguenther@suse.de>
28813
28814 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
28815 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
28816 Use DECL_P, not SSA_VAR_P.
28817 (ptr_derefs_may_alias_p): Likewise.
28818 (ptr_deref_may_alias_ref_p_1): Likewise.
28819 (decl_refs_may_alias_p): Likewise.
28820 (refs_may_alias_p_1): Likewise.
28821 (ref_maybe_used_by_call_p_1): Likewise.
28822 (call_may_clobber_ref_p_1): Likewise.
28823 (indirect_ref_may_alias_decl_p): Assume indirect refrences
28824 are either MEM_REF or TARGET_MEM_REF.
28825 (indirect_refs_may_alias_p): Likewise.
28826 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
28827 for MEM_EXPR of indirect calls.
28828
28829 2011-04-21 Tristan Gingold <gingold@adacore.com>
28830
28831 * vmsdbgout.c (write_srccorr): Compute file length from the string.
28832 (dst_file_info_struct): Remove flen field.
28833 (lookup_filename): Remove code that set flen field.
28834
28835 2011-04-21 Tristan Gingold <gingold@adacore.com>
28836
28837 * config/ia64/ia64.c (ia64_start_function): Add a guard.
28838
28839 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
28840
28841 PR target/48708
28842 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
28843 vec_extract and vec_concat for non-SSE4_1 targets.
28844
28845 2011-04-21 Richard Guenther <rguenther@suse.de>
28846
28847 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
28848 return statements.
28849
28850 2011-04-21 Joseph Myers <joseph@codesourcery.com>
28851
28852 * config/i386/cygming.h (union tree_node, TREE): Don't define or
28853 undefine.
28854 (FILE): Don't undefine.
28855
28856 2011-04-21 Joseph Myers <joseph@codesourcery.com>
28857
28858 * config/alpha/alpha.c (struct machine_function): Use rtx, not
28859 struct rtx_def *.
28860 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
28861 struct rtx_def *.
28862 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
28863 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
28864 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
28865 rtx_def *.
28866 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
28867 definitions where used.
28868 * config/microblaze/microblaze.h (struct microblaze_args): Use
28869 rtx, not struct rtx_def *.
28870 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
28871 rtx_def *.
28872 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
28873 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
28874 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
28875 not struct rtx_def *.
28876 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
28877 struct rtx_def *.
28878 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
28879 rtx_def *.
28880 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
28881
28882 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
28883
28884 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
28885 operand_equal_p to compare DR_BASE_ADDRESSes.
28886 (vect_check_interleaving): Likewise.
28887
28888 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
28889
28890 PR target/46329
28891 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
28892 for all Neon struct constants.
28893
28894 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
28895
28896 * target.def (legitimate_constant_p): New hook.
28897 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
28898 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
28899 * doc/tm.texi: Regenerate.
28900 * hooks.h (hook_bool_mode_rtx_true): Declare.
28901 * hooks.c (hook_bool_mode_rtx_true): Define.
28902 * system.h (LEGITIMATE_CONSTANT_P): Poison.
28903 * calls.c (precompute_register_parameters): Replace uses of
28904 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
28905 (emit_library_call_value_1): Likewise.
28906 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
28907 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
28908 * ira-costs.c (scan_one_insn): Likewise.
28909 * recog.c (general_operand, immediate_operand): Likewise.
28910 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
28911 * reload1.c (init_eliminable_invariants): Likewise.
28912
28913 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
28914 mode argument.
28915 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
28916 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
28917 argument.
28918 (TARGET_LEGITIMATE_CONSTANT_P): Define.
28919 * config/alpha/predicates.md (input_operand): Update call to
28920 alpha_legitimate_constant_p.
28921
28922 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
28923 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
28924 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
28925 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
28926 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
28927 (arm_legitimate_constant_p): New functions.
28928 (arm_cannot_force_const_mem): Make static.
28929
28930 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
28931
28932 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
28933 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
28934 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
28935 instead of bfin_legitimate_constant_p.
28936 (bfin_legitimate_constant_p): Make static. Add a mode argument.
28937 (TARGET_LEGITIMATE_CONSTANT_P): Define.
28938
28939 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
28940
28941 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
28942
28943 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
28944 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
28945 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
28946 (frv_legitimate_constant_p): Make static. Add a mode argument.
28947
28948 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
28949 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
28950 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
28951
28952 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
28953 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
28954 * config/i386/i386.c (legitimate_constant_p): Rename to...
28955 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
28956 argument.
28957 (ix86_cannot_force_const_mem): Update accordingly.
28958 (ix86_legitimate_address_p): Likewise.
28959 (TARGET_LEGITIMATE_CONSTANT_P): Define.
28960 * config/i386/i386.md: Update commentary.
28961
28962 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
28963 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
28964 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
28965 (ia64_legitimate_constant_p): Make static. Add a mode argument.
28966
28967 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
28968
28969 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
28970 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
28971 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
28972 (lm32_legitimate_constant_p): Make static. Add a mode argument.
28973
28974 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
28975 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
28976 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
28977
28978 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
28979 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
28980 (m32r_legitimate_constant_p): New function.
28981
28982 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
28983 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
28984 LEGITIMATE_CONSTANT_P.
28985 (LEGITIMATE_CONSTANT_P): Delete.
28986 * config/m68k/m68k.c (m68k_expand_prologue): Call
28987 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
28988 (m68k_legitimate_constant_p): New function.
28989 * config/m68k/m68k.md: Update comments.
28990
28991 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
28992 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
28993 (mcore_legitimate_constant_p): New function.
28994
28995 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
28996 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
28997 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
28998 Add a mode argument.
28999 (mep_legitimate_address): Update accordingly.
29000 (TARGET_LEGITIMATE_CONSTANT_P): Define.
29001
29002 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
29003 Delete.
29004 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
29005 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
29006 static. Check OP's mode for VOIDmode.
29007 (microblaze_legitimate_constant_p): New function.
29008 (TARGET_LEGITIMATE_CONSTANT_P): Define.
29009
29010 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
29011 * config/mips/mips.c (mips_legitimate_constant_p): New function.
29012 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
29013 (TARGET_LEGITIMATE_CONSTANT_P): Define.
29014 * config/mips/predicates.md: Update comments.
29015
29016 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
29017 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
29018 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
29019 (mmix_legitimate_constant_p): Make static, return a bool, and take
29020 a mode argument.
29021 (mmix_print_operand_address): Update accordingly.
29022
29023 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
29024 Delete.
29025 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
29026 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
29027 static. Add a mode argument.
29028 (TARGET_LEGITIMATE_CONSTANT_P): Define.
29029
29030 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
29031
29032 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
29033 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
29034 (pa_legitimate_constant_p): New function.
29035
29036 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
29037
29038 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
29039 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
29040 (pdp11_legitimate_constant_p): New function.
29041
29042 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
29043 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
29044 (rs6000_legitimate_constant_p): New function.
29045
29046 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
29047 (rx_legitimate_constant_p): ...this.
29048 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
29049 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
29050 (rx_legitimate_constant_p): ...this.
29051 (TARGET_LEGITIMATE_CONSTANT_P): Define.
29052 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
29053
29054 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
29055 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
29056 * config/s390/s390.c (legitimate_constant_p): Rename to...
29057 (s390_legitimate_constant_p): ...this. Make static, return a bool,
29058 and add a mode argument.
29059 (TARGET_LEGITIMATE_CONSTANT_P): Define.
29060
29061 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
29062
29063 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
29064 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
29065 (sh_legitimate_constant_p): New function.
29066
29067 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
29068 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
29069 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
29070 (legitimate_constant_p): Rename to...
29071 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
29072 argument.
29073 (constant_address_p): Update accordingly.
29074
29075 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
29076 argument and return a bool.
29077 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
29078 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
29079 (spu_legitimate_constant_p): Add a mode argument and return a bool.
29080 (spu_rtx_costs): Update accordingly.
29081 * config/spu/predicates.md (vec_imm_operand): Likewise.
29082
29083 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
29084
29085 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
29086 * config/v850/v850.c (v850_legitimate_constant_p): New function.
29087 (TARGET_LEGITIMATE_CONSTANT_P): Define.
29088
29089 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
29090 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
29091 * config/vax/vax.c (legitimate_constant_p): Likewise.
29092
29093 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
29094 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
29095 (xtensa_legitimate_constant_p): New function.
29096
29097 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
29098
29099 * target.def (cannot_force_const_mem): Add a mode argument.
29100 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
29101 * doc/tm.texi: Regenerate.
29102 * hooks.h (hook_bool_mode_rtx_false): Declare.
29103 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
29104 (hook_bool_mode_const_rtx_true): Likewise.
29105 (hook_bool_mode_rtx_false): New function.
29106 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
29107 to be non-VOID. Update call to cannot_force_const_mem.
29108 (find_reloads): Update accordingly.
29109 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
29110 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
29111 argument.
29112 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
29113 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
29114 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
29115 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
29116 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
29117 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
29118 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
29119 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
29120 (m68k_cannot_force_const_mem): ...this new function.
29121 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
29122 argument.
29123 (mips_const_insns, mips_legitimize_const_move): Update calls.
29124 (mips_secondary_reload_class): Likewise.
29125 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
29126 (pa_cannot_force_const_mem): ...this new function.
29127 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
29128 (rs6000_cannot_force_const_mem): ...this new function.
29129 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
29130 argument.
29131 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
29132 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
29133 to...
29134 (xtensa_cannot_force_const_mem): ...this new function.
29135
29136 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
29137
29138 * config/mips/mips.c (mips16_build_function_stub): Call
29139 build_function_type_list instead of build_function_type.
29140 (mips16_build_call_stub): Likewise.
29141
29142 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
29143
29144 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
29145 instead of build_function_type.
29146
29147 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
29148
29149 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
29150 instead of build_function_type.
29151
29152 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
29153
29154 PR target/48678
29155 * config/i386/i386.md (insv): Change operand 0 constraint to
29156 "register_operand". Change operand 1 and 2 constraint to
29157 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
29158 * config/i386/sse.md (sse4_1_pinsrb): Export.
29159 (sse2_pinsrw): Ditto.
29160 (sse4_1_pinsrd): Ditto.
29161 (sse4_1_pinsrq): Ditto.
29162 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
29163 * config/i386/i386.c (ix86_expand_pinsr): New.
29164
29165 2011-04-20 Easwaran Raman <eraman@google.com>
29166
29167 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
29168 containing union type only with -fstrict-aliasing.
29169
29170 2011-04-20 Jim Meyering <meyering@redhat.com>
29171
29172 Remove useless if-before-free tests.
29173 * calls.c (expand_call, save_area): Likewise.
29174 * cfgcleanup.c (try_forward_edges): Likewise.
29175 * collect2.c (collect_execute): Likewise.
29176 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
29177 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
29178 * coverage.c (coverage_checksum_string): Likewise.
29179 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
29180 * cselib.c (cselib_init): Likewise.
29181 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
29182 (df_set_clean_cfg): Likewise.
29183 * function.c (free_after_compilation): Likewise.
29184 * gcc.c (do_spec_1, main): Likewise.
29185 * gcov.c (create_file_names): Likewise.
29186 * gensupport.c (identify_predicable_attribute): Likewise.
29187 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
29188 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
29189 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
29190 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
29191 * ipa-pure-const.c (local_pure_const): Likewise.
29192 * ipa-reference.c (propagate): Likewise.
29193 * ira-costs.c (free_ira_costs): Likewise.
29194 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
29195 * matrix-reorg.c (mat_free): Likewise.
29196 * prefix.c (get_key_value): Likewise.
29197 * profile.c (compute_value_histograms): Likewise.
29198 * reload1.c (free_reg_equiv): Likewise.
29199 * sched-deps.c (free_deps): Likewise.
29200 * sel-sched-ir.c (fence_clear): Likewise.
29201 * sese.c (set_rename, if_region_set_false_region): Likewise.
29202 * tree-data-ref.c (free_rdg): Likewise.
29203 * tree-eh.c (lower_try_finally): Likewise.
29204 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
29205 * tree-ssa-live.c (delete_var_map): Likewise.
29206 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
29207 * tree-ssa-pre.c (phi_trans_add): Likewise.
29208
29209 2011-04-20 Jakub Jelinek <jakub@redhat.com>
29210
29211 PR tree-optimization/48611
29212 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
29213 beyond ERT_MUST_NOT_THROW region.
29214
29215 2011-04-20 Catherine Moore <clm@codesourcery.com>
29216
29217 * config/mips/mips.opt (mfix-24k): New.
29218 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
29219 * config/mips/mips.md (length): Increase by 4 for stores if
29220 fixing 24K errata.
29221 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
29222 all noreorder if fixing 24K errata.
29223 * doc/invoke.texi: Document mfix-24k.
29224
29225 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
29226
29227 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
29228 quad-word modes, reduce to 9-bit index range when above 1016 limit.
29229
29230 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
29231
29232 * config/arm/arm.c (arm_gen_constant): Move movw support ....
29233 (const_ok_for_op): ... to here.
29234
29235 2011-04-20 Kai Tietz <ktietz@redhat.com>
29236
29237 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
29238 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
29239
29240 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
29241
29242 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
29243
29244 2011-04-20 Richard Guenther <rguenther@suse.de>
29245
29246 PR tree-optimization/47892
29247 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
29248 are if-convertible.
29249
29250 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
29251
29252 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
29253
29254 2011-04-20 Tristan Gingold <gingold@adacore.com>
29255
29256 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
29257
29258 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
29259
29260 PR target/18145
29261
29262 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
29263 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
29264 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
29265 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
29266 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
29267
29268 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
29269 New prototype.
29270
29271 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
29272 (avr_asm_named_section, avr_asm_output_aligned_common,
29273 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
29274 New functions to update...
29275 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
29276 (avr_asm_init_sections): Overwrite section callbacks for
29277 data_section, bss_section.
29278 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
29279 from here to...
29280 (avr_file_end): ...here.
29281
29282 2011-04-20 Richard Guenther <rguenther@suse.de>
29283
29284 PR middle-end/48695
29285 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
29286 objects and types here. Adjust for their offset before comparing.
29287
29288 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
29289
29290 * tree-vect-stmts.c (vectorizable_store): Only chain one related
29291 statement per copy.
29292
29293 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
29294
29295 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
29296 (GIMPLE_H): Include $(INTERNAL_FN_H).
29297 (OBJS-common): Add internal-fn.o.
29298 (internal-fn.o): New rule.
29299 * internal-fn.def: New file.
29300 * internal-fn.h: Likewise.
29301 * internal-fn.c: Likewise.
29302 * gimple.h: Include internal-fn.h.
29303 (GF_CALL_INTERNAL): New gf_mask.
29304 (gimple_statement_call): Put fntype into a union with a new
29305 internal_fn field.
29306 (gimple_build_call_internal): Declare.
29307 (gimple_build_call_internal_vec): Likewise.
29308 (gimple_call_same_target_p): Likewise.
29309 (gimple_call_internal_p): New function.
29310 (gimple_call_internal_fn): Likewise.
29311 (gimple_call_fntype): Return null for internal calls.
29312 (gimple_call_set_fntype): Assert that the function is not internal.
29313 (gimple_call_set_fn): Likewise.
29314 (gimple_call_set_fndecl): Likewise.
29315 (gimple_call_set_internal_fn): New function.
29316 (gimple_call_addr_fndecl): Handle null functions.
29317 (gimple_call_return_type): Likewise null types.
29318 * gimple.c (gimple_build_call_internal_1): New function.
29319 (gimple_build_call_internal): Likewise.
29320 (gimple_build_call_internal_vec): Likewise.
29321 (gimple_call_same_target_p): Likewise.
29322 (gimple_call_flags): Handle calls to internal functions.
29323 (gimple_call_fnspec): New function.
29324 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
29325 (gimple_has_side_effects): Handle null functions.
29326 (gimple_rhs_has_side_effects): Likewise.
29327 (gimple_call_copy_skip_args): Handle calls to internal functions.
29328 * cfgexpand.c (expand_call_stmt): Likewise.
29329 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
29330 * gimple-fold.c (gimple_fold_call): Handle null functions.
29331 (gimple_fold_stmt_to_constant_1): Don't fold
29332 calls to internal functions.
29333 * gimple-low.c (gimple_check_call_args): Handle calls to internal
29334 functions.
29335 * gimple-pretty-print.c (dump_gimple_call): Likewise.
29336 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
29337 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
29338 (do_warn_unused_result): Likewise.
29339 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
29340 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
29341 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
29342 the target of a call.
29343 (initialize_hash_element): Update accordingly.
29344 (hashable_expr_equal_p): Use gimple_call_same_target_p.
29345 (iterative_hash_hashable_expr): Handle calls to internal functions.
29346 (print_expr_hash_elt): Likewise.
29347 * tree-ssa-pre.c (can_value_number_call): Likewise.
29348 (eliminate): Handle null functions.
29349 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
29350 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
29351 (find_func_aliases): Likewise.
29352 * value-prof.c (gimple_ic_transform): Likewise.
29353 (gimple_indirect_call_to_profile): Likewise.
29354 * lto-streamer-in.c (input_gimple_stmt): Likewise.
29355 * lto-streamer-out.c (output_gimple_stmt): Likewise.
29356
29357 2011-04-19 Jan Hubicka <jh@suse.cz>
29358
29359 * ipa-inline-transform.c (save_inline_function_body): Add comments.
29360 * ipa-inline.c (inline_small_functions): Compute summaries first,
29361 populate heap later.
29362
29363 2011-04-19 Jan Hubicka <jh@suse.cz>
29364
29365 * cgraph.h (save_inline_function_body): Remove.
29366 * ipa-inline-transform.c: New file, broke out of...
29367 * ipa-inline.c: ... this one; Update toplevel comment.
29368 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
29369 make global.
29370 (update_noncloned_frequencies): Move to ipa-inline-transform.c
29371 (cgraph_mark_inline_edge): Rename to inline_call; move to
29372 ipa-inline-transform.c.
29373 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
29374 move to ipa-inline-transform.c
29375 (recursive_inlining, inline_small_functions, flatten_function,
29376 ipa_inline, inline_always_inline_functions,
29377 early_inline_small_functions): Update.
29378 (inline_transform): Move to ipa-inline-transform.c.
29379 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
29380 Declare.
29381 * Makefile.in (ipa-inline-transform.o): New file.
29382 * cgraphunit.c (save_inline_function_body): Move to
29383 ipa-inline-transform.c
29384
29385 2011-04-19 DJ Delorie <dj@redhat.com>
29386
29387 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
29388 registers if we already know there aren't any.
29389 (m32c_emit_epilogue): Don't emit a barrier here.
29390 (m32c_emit_eh_epilogue): Likewise.
29391 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
29392 operands at expand time.
29393 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
29394 int" wchar type.
29395 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
29396 duplicates. Provide aliases instead.
29397 * config/m32c/prologue.md (eh_return): Emit a barrier here.
29398 (eh_epilogue): Add a "(return)" here as a hint to other parts of
29399 the compiler.
29400
29401 2011-04-19 Anatoly Sokolov <aesok@post.ru>
29402
29403 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
29404 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
29405 (general_or_i64_p, sparc_register_move_cost): New function.
29406
29407 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29408
29409 * doc/install.texi (Configuration, --enable-threads): Remove mach.
29410 Add lynx, mipssde. Sort table.
29411
29412 2011-04-19 Xinliang David Li <davidxl@google.com>
29413
29414 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
29415 not negative.
29416
29417 2011-04-19 Jakub Jelinek <jakub@redhat.com>
29418
29419 PR target/48678
29420 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
29421 is a SUBREG with non-MODE_INT mode inside of it.
29422
29423 2011-04-19 Martin Jambor <mjambor@suse.cz>
29424
29425 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
29426 also according to actual contants.
29427 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
29428 (gimple_fold_call): Use it.
29429 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
29430
29431 2011-04-19 Martin Jambor <mjambor@suse.cz>
29432
29433 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
29434 non-pointer assignments.
29435
29436 2011-04-19 Martin Jambor <mjambor@suse.cz>
29437
29438 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
29439 account anc_offset and otr_type from the indirect edge info.
29440 * ipa-prop.c (get_ancestor_addr_info): New function.
29441 (compute_complex_ancestor_jump_func): Assignment analysis moved to
29442 get_ancestor_addr_info, call it.
29443 (ipa_note_param_call): Do not initialize information about polymorphic
29444 calls, return the indirect call graph edge. Remove the last
29445 parameter, adjust all callers.
29446 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
29447 parameters. Initialize polymorphic information in the indirect edge.
29448
29449 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
29450
29451 PR lto/48148
29452 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
29453 the types if they have different enumeration identifiers.
29454
29455 2011-04-19 Jan Hubicka <jh@suse.cz>
29456
29457 * cgraph.h (cgraph_optimize_for_size_p): Declare.
29458 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
29459 * predict.c (cgraph_optimize_for_size_p): Break out from ...
29460 (optimize_function_for_size_p) ... here.
29461
29462 2011-04-19 Richard Guenther <rguenther@suse.de>
29463
29464 PR lto/48207
29465 * tree.c (free_lang_data): Do not reset the decl-assembler-name
29466 langhook.
29467
29468 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
29469
29470 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
29471 if DECL_NO_INLINE_WARNING_P is set on the function.
29472
29473 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
29474
29475 PR fortran/47976
29476 * reload1.c (inc_for_reload): Return void. All callers changed.
29477 (emit_input_reload_insns): Don't try to delete previous output
29478 reloads to a register, or record spill_reg_store for autoincs.
29479
29480 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
29481
29482 * gengtype.h: Updated copyright year.
29483 (struct input_file_st): Add inpisplugin field.
29484 (type_fileloc): New function.
29485 * gengtype.c
29486 (write_typed_struct_alloc_def): Add gcc_assert.
29487 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
29488 (write_typed_alloc_defns): Don't output for plugin files.
29489 (input_file_by_name): Clear inpisplugin field.
29490 (main): Set inpisplugin field for plugin files.
29491
29492 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
29493
29494 * gengtype-state.c (string_eq): New.
29495 (read_state): Use string_eq instead of strcmp when creating the
29496 state_ident_tab.
29497
29498 2011-04-19 Wei Guozhi <carrot@google.com>
29499
29500 PR target/47855
29501 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
29502 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
29503 linkage.
29504 * config/arm/constraints.md (Uu): New constraint.
29505 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
29506
29507 2011-04-19 Tristan Gingold <gingold@adacore.com>
29508
29509 * config.gcc (-*-*-*vms): Added.
29510 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
29511 definitions moved.
29512 * config/vms/vms-ld.c: New file.
29513 * config/vms/vms-ar.c: New file.
29514 * config/vms/t-vmsnative: New file.
29515
29516 2011-04-18 Xinliang David Li <davidxl@google.com>
29517
29518 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
29519
29520 2011-04-18 Jakub Jelinek <jakub@redhat.com>
29521
29522 PR middle-end/48661
29523 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
29524 if TREE_TYPE (v) is non-NULL.
29525
29526 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
29527 gimple_get_virt_mehtod_for_binfo.
29528 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
29529 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
29530 callers.
29531 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
29532
29533 2011-04-18 Michael Matz <matz@suse.de>
29534 Steve Ellcey <sje@cup.hp.com>
29535
29536 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
29537 use its mode as source mode if it isn't VOIDmode.
29538
29539 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
29540
29541 * doc/passes.texi: Fill crossref nodes.
29542
29543 2011-04-18 Jim Meyering <meyering@redhat.com>
29544
29545 Fix doubled-word typos in comments and strings
29546 * config/alpha/vms-unwind.h: s/for for/for/
29547 * config/arm/unwind-arm.h: Likewise.
29548 * config/microblaze/microblaze.c: Likewise.
29549 * config/sh/constraints.md: s/in in/in/
29550 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
29551
29552 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
29553
29554 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
29555 (AVX_FLOAT_MODE_P): Ditto.
29556 (AVX128_VEC_FLOAT_MODE_P): Ditto.
29557 (AVX256_VEC_FLOAT_MODE_P): Ditto.
29558 (AVX_VEC_FLOAT_MODE_P): Ditto.
29559 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
29560 (UNSPEC_MASKSTORE): Ditto.
29561 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
29562 Merge from <sse>_movmsk<ssemodesuffix> and
29563 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
29564 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
29565 iterator.
29566 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
29567 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
29568 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
29569
29570 2011-04-18 Jan Hubicka <jh@suse.cz>
29571
29572 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
29573
29574 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
29575 (want_inline_function_called_once_p): Break out the logic from
29576 ipa_inline.
29577 (edge_badness): Ensure that profile is not misupdated.
29578 (lookup_recursive_calls): Prioritize by call frequencies.
29579 (inline_small_functions): Move program size estimates here;
29580 actually process whole queue even when unit growth has been
29581 met. (to properly compute inline_failed reasons and for the
29582 case unit size decrease.) Revisit comments on recursive inlining.
29583 (ipa_inline): Remove unit summary code; first inline hot calls
29584 of functions called once, cold calls next.
29585 (order, nnodes): Remove unused variables.
29586 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
29587 (GTFILES): Remove ipa-inline.c
29588 * sel-sched.c (fill_insns): Silence uninitialized var warning.
29589
29590 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
29591
29592 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
29593
29594 2011-04-18 Jie Zhang <jie@codesourcery.com>
29595 Richard Earnshaw <rearnsha@arm.com>
29596
29597 * arm.c (neon_builtin_type_bits): Remove.
29598 (typedef enum neon_builtin_mode): New.
29599 (T_MAX): Don't define.
29600 (typedef enum neon_builtin_datum): Remove bits, codes[],
29601 num_vars and base_fcode. Add mode, code and fcode.
29602 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
29603 VAR10): Change accordingly.
29604 (neon_builtin_data[]): Change accordingly
29605 (arm_init_neon_builtins): Change accordingly.
29606 (neon_builtin_compare): Remove.
29607 (locate_neon_builtin_icode): Remove.
29608 (arm_expand_neon_builtin): Change accordingly.
29609
29610 * arm.h (enum arm_builtins): Move to ...
29611 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
29612
29613 * arm.c (arm_builtin_decl): Declare.
29614 (TARGET_BUILTIN_DECL): Define.
29615 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
29616 (arm_builtin_decls[]): New.
29617 (arm_init_neon_builtins): Store builtin declarations in
29618 arm_builtin_decls[].
29619 (arm_init_tls_builtins): Likewise.
29620 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
29621 (arm_builtin_decl): New.
29622
29623 2011-04-18 Richard Guenther <rguenther@suse.de>
29624
29625 * tree.c (upper_bound_in_type): Build properly canonicalized
29626 INTEGER_CSTs.
29627 (lower_bound_in_type): Likewise.
29628
29629 2011-04-18 Richard Guenther <rguenther@suse.de>
29630
29631 * gimple.h (gimple_call_addr_fndecl): New function.
29632 (gimple_call_fndecl): Use it.
29633 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
29634 for direct calls.
29635 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
29636 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
29637
29638 2011-04-18 Richard Guenther <rguenther@suse.de>
29639
29640 PR middle-end/48650
29641 * tree.c (build_string): STRING_CST is now derived from tree_typed.
29642
29643 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
29644
29645 PR lto/48492
29646 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
29647 DECL_IN_CONSTANT_POOL without RTL.
29648
29649 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
29650 Ira Rosen <ira.rosen@linaro.org>
29651
29652 PR target/48252
29653 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
29654 to match neon_vzip/vuzp/vtrn_internal.
29655 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
29656 outputs explicitly dependent on both inputs.
29657 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
29658
29659 2011-04-18 Jakub Jelinek <jakub@redhat.com>
29660
29661 PR tree-optimization/48616
29662 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
29663 whether the shift is by scalar or vector based on whether all SLP
29664 scalar stmts have the same rhs.
29665
29666 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
29667
29668 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
29669 memory operands.
29670
29671 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
29672
29673 PR target/43700
29674 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
29675 registers.
29676
29677 2011-04-17 Jan Hubicka <jh@suse.cz>
29678
29679 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
29680 * cgrpahunit.c (cgraph_finalize_function): Do not set
29681 finalized_by_frontend.
29682 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
29683 finalized_by_frontend.
29684
29685 2011-04-17 Jan Hubicka <jh@suse.cz>
29686
29687 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
29688 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
29689 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
29690 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
29691 method.
29692 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
29693 gimple-fold.c
29694 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
29695
29696 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
29697
29698 PR lto/48538
29699 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
29700 is non-null before accessing it.
29701 (input_cgraph): Remove trailing spaces.
29702
29703 2011-04-17 Revital Eres <revital.eres@linaro.org>
29704
29705 * params.def (sms-min-sc): New param flag.
29706 * modulo-sched.c (sms_schedule): Use it.
29707 * doc/invoke.texi (sms-min-sc): Document it.
29708
29709 2011-04-17 Jan Hubicka <jh@suse.cz>
29710
29711 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
29712 present, also set gimple_call_set_cannot_inline.
29713 * ipa-inline.c: Update toplevel comment.
29714 (MAX_TIME): Remove.
29715 (cgraph_clone_inlined_nodes): Fix linebreaks.
29716 (cgraph_check_inline_limits): Restructure to ...
29717 (caller_growth_limits): ... this one; be more tolerant
29718 on growth in nested inline chains; add explanatory comment;
29719 fix stack accounting thinko introduced by previous patch.
29720 (cgraph_default_inline_p): Remove.
29721 (report_inline_failed_reason): New function.
29722 (can_inline_edge_p): New function.
29723 (can_early_inline_edge_p): New function.
29724 (leaf_node_p): Move upwards in file.
29725 (want_early_inline_function_p): New function.
29726 (want_inline_small_function_p): New function.
29727 (want_inline_self_recursive_call_p): New function.
29728 (cgraph_edge_badness): Rename to ...
29729 (edge_badness) ... this one; fix linebreaks.
29730 (update_edge_key): Update call of edge_baddness; add
29731 detailed dump about queue updates.
29732 (update_caller_keys): Use can_inline_edge_p and
29733 want_inline_small_function_p.
29734 (cgraph_decide_recursive_inlining): Rename to...
29735 (recursive_inlining): Use can_inline_edge_p and
29736 want_inline_self_recursive_call_p; simplify and remove no longer
29737 valid FIXME.
29738 (cgraph_set_inline_failed): Remove.
29739 (add_new_edges_to_heap): Use can_inline_edge_p and
29740 want_inline_small_function_p.
29741 (cgraph_decide_inlining_of_small_functions): Rename to ...
29742 (inline_small_functions): ... this one; cleanup; use
29743 can/want predicates; cleanup debug ouput; work edges till fibheap
29744 is exhausted and do not stop once unit growth is reached; remove
29745 later loop processing remaining edges.
29746 (cgraph_flatten): Rename to ...
29747 (flatten_function): ... this one; use can_inline_edge_p
29748 and can_early_inline_edge_p predicates.
29749 (cgraph_decide_inlining): Rename to ...
29750 (ipa_inline): ... this one; remove unreachable nodes before
29751 inlining functions called once; simplify the pass.
29752 (cgraph_perform_always_inlining): Rename to ...
29753 (inline_always_inline_functions): ... this one; use
29754 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
29755 (cgraph_decide_inlining_incrementally): Rename to ...
29756 (early_inline_small_functions): ... this one; simplify
29757 using new predicates; cleanup; make dumps prettier.
29758 (cgraph_early_inlining): Rename to ...
29759 (early_inliner): newer inline regular functions into always-inlines;
29760 fix updating of call stmt summaries.
29761 (pass_early_inline): Update for new names.
29762 (inline_transform): Fix formating.
29763 (gate_cgraph_decide_inlining): Rename to ...
29764 (pass_ipa_inline): ... this one.
29765 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
29766 * ipa-inline-analysis.c (dump_inline_summary): Update.
29767 (compute_inline_parameters): Do not compute disregard_inline_limits;
29768 look for mismatching arguments.
29769 (estimate_growth): Fix handlig of non-trivial self recursion.
29770 (inline_read_summary): Do not read info->disregard_inline_limits.
29771 (inline_write_summary): Do not write info->disregard_inline_limits.
29772 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
29773 and move all checks into can_inline_edge_p predicate; re-enable code
29774 comparing optimization levels.
29775 (expand_call_inline): Do not test inline_forbidden_into_p.
29776 * Makefile.in (ipa-inline.o): Update arguments.
29777
29778 2011-04-17 Revital Eres <revital.eres@linaro.org>
29779
29780 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
29781
29782 2011-04-17 Revital Eres <revital.eres@linaro.org>
29783
29784 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
29785
29786 2011-04-17 Michael Matz <matz@suse.de>
29787
29788 PR tree-optimization/48622
29789 PR lto/48645
29790 * ipa-inline-analysis.c (inline_read_summary): Read size/time
29791 in same order as they're written.
29792
29793 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29794
29795 * config/pa/predicates.md: Reorganize and simplify predicates.
29796 Eliminate duplicate code checks.
29797 (arith_operand): Rename to arith14_operand
29798 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
29799 * config/pa/pa.md: Use renamed operands.
29800 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
29801 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
29802 arith11_operand, adddi3_operand, indexed_memory_operand,
29803 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
29804 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
29805 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
29806 move_dest_operand, move_src_operand, prefetch_cc_operand,
29807 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
29808 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
29809 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
29810 div_operand, int5_operand, movb_comparison_operator,
29811 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
29812 arith_double_operand, ireg_operand, lhs_lshift_operand,
29813 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
29814 integer_store_memory_operand): Likewise.
29815 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
29816 (integer_store_memory_operand, read_only_operand,
29817 function_label_operand, borx_reg_operand,
29818 non_hard_reg_operand): Likewise.
29819 (eq_neq_comparison_operator): Delete unused operator.
29820 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
29821 function_label_operand.
29822 (emit_move_sequence): Likewise.
29823
29824 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
29825
29826 * config/i386/sse.md (sseunpackmode): New mode attribute.
29827 (ssepackmode): Ditto.
29828 (vec_pack_trunc_<mode>): Macroize expander from
29829 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
29830 (vec_unpacks_lo_<mode>): Macroize expander from
29831 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
29832 (vec_unpacks_hi_<mode>): Macroize expander from
29833 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
29834 (vec_unpacku_lo_<mode>): Macroize expander from
29835 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
29836 (vec_unpacku_hi_<mode>): Macroize expander from
29837 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
29838 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
29839 ix86_expand_sse4_unpack.
29840 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
29841
29842 2011-04-16 Jan Hubicka <jh@suse.cz>
29843
29844 * cgraphbuild.c: Include ipa-inline.h.
29845 (reset_inline_failed): Use initialize_inline_failed.
29846 * cgraph.c: Include ipa-inline.h.
29847 (cgraph_create_node_1): Do not initialize estimated_growth.
29848 (initialize_inline_failed): More to ipa-inline-analysis.c
29849 (dump_cgraph_node): Do not dump inline flags.
29850 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
29851 and disregard_inline_limits flags.
29852 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
29853 time, size, estimated_growth.
29854 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
29855 Update.
29856 * cgraphunit.c (cgraph_decide_is_function_needed): Use
29857 DECL_DISREGARD_INLINE_LIMITS.
29858 (cgraph_analyze_function): Do not initialize
29859 node->local.disregard_inline_limits.
29860 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
29861 inlinable, versionable and disregard_inline_limits.
29862 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
29863 cgraph_check_inline_limits, cgraph_default_inline_p,
29864 cgraph_edge_badness, update_caller_keys, update_callee_keys,
29865 add_new_edges_to_heap): Update.
29866 (cgraph_decide_inlining_of_small_function): Update; set
29867 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
29868 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
29869 cgraph_decide_inlining_incrementally): Update.
29870 * ipa-inline.h (inline_summary): Add inlinable, versionable,
29871 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
29872 time, size and estimated_growth parameters.
29873 (estimate_edge_growth): Update.
29874 (initialize_inline_failed): Declare.
29875 * ipa-split.c: Include ipa-inline.h
29876 (execute_split_functions): Update.
29877 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
29878 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
29879 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
29880 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
29881 estimated_growth to INT_MIN.
29882 (inline_node_duplication_hook): Likewise.
29883 (dump_inline_summary): Dump new fields.
29884 (compute_inline_parameters): Update.
29885 (estimate_edge_time, estimate_time_after_inlining,
29886 estimate_size_after_inlining, estimate_growth, inline_read_summary,
29887 inline_write_summary):
29888 (initialize_inline_failed): Move here from cgraph.c.
29889 * tree-sra.c: Include ipa-inline.h.
29890 (ipa_sra_preliminary_function_checks): Update.
29891 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
29892 ipa-inline.h.
29893
29894 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
29895
29896 * config/i386/sse.md (V16): New mode iterator.
29897 (VI1, VI8): Ditto.
29898 (AVXMODEQI, AVXMODEDI): Remove.
29899 (sse2, sse3): New mode attribute.
29900 (mov<mode>): Use V16 mode iterator.
29901 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
29902 (push<mode>1): Use V16 mode iterator.
29903 (movmisalign<mode>): Ditto.
29904 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
29905 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
29906 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
29907 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
29908 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
29909 avx_movdqu<avxmodesuffix>.
29910 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
29911 *avx_movdqu<avxmodesuffix>.
29912 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
29913 avx_lddqu<avxmodesuffix>.
29914 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
29915 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
29916 avx_movnt<AVXMODEDI:mode>.
29917 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
29918 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
29919
29920 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
29921
29922 PR target/48629
29923 * haifa-sched.c (prune_ready_list, schedule_block): Use
29924 sched_pressure_p rather than flag_sched_pressure.
29925
29926 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
29927
29928 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
29929 cgraph_get_node instead of cgraph_get_create_node.
29930
29931 2011-04-15 Jakub Jelinek <jakub@redhat.com>
29932
29933 * cfgexpand.c (expand_debug_expr): Use
29934 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
29935
29936 2011-04-15 Michael Matz <matz@suse.de>
29937
29938 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
29939 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
29940 * function.c (gimplify_parameters): Ditto.
29941 * gimplify.c (gimplify_vla_decl): Ditto.
29942
29943 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
29944 (gimple_call_set_alloca_for_var): New inline function.
29945 (gimple_call_alloca_for_var_p): Ditto.
29946 * gimple.c (gimple_build_call_from_tree): Remember
29947 CALL_ALLOCA_FOR_VAR_P state.
29948 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
29949
29950 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
29951 calls if they were for VLA objects.
29952
29953 2011-04-15 Martin Jambor <mjambor@suse.cz>
29954
29955 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
29956 of ADR_EXPRs.
29957
29958 2011-04-15 Martin Jambor <mjambor@suse.cz>
29959
29960 PR middle-end/48601
29961 * tree-emutls.c (lower_emutls_function_body): Call
29962 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
29963 result is non-NULL.
29964
29965 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
29966
29967 * c-decl.c (detect_field_duplicates): Call
29968 objc_detect_field_duplicates instead of objc_get_interface_ivars.
29969
29970 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
29971
29972 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
29973 * gimple.c (gimple_asm_clobbers_memory_p): Define.
29974 * ipa-pure-const.c (check_stmt): Call it.
29975 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
29976
29977 2011-04-15 Richard Guenther <rguenther@suse.de>
29978
29979 PR tree-optimization/48290
29980 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
29981 Properly decide inhibiting propagation based on the valueized
29982 operand. Do loop-closed SSA form preserving here ...
29983 (init_copy_prop): ... not here.
29984
29985 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
29986
29987 PR target/48612
29988 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
29989 (*ieee_smax<mode>3): Likewise.
29990
29991 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29992
29993 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
29994 Replace match_operand with match_dup for the third operand in
29995 these expanders.
29996
29997 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
29998
29999 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
30000 to track processing of conditionals. Update all callers.
30001 (try_combine, simplify_if_then_else): Update.
30002
30003 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
30004
30005 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
30006 -fsched-pressure.
30007
30008 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
30009
30010 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
30011 instead of match_operand for operand 3.
30012
30013 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
30014
30015 * recog.h (insn_operand_data): Add an "allows_mem" field.
30016 * genoutput.c (output_operand_data): Initialize it.
30017 * optabs.c (maybe_legitimize_operand_same_code): New function.
30018 (maybe_legitimize_operand): Use it when matching the original
30019 op->value.
30020
30021 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
30022
30023 * gimplify.c: Fix issues in comments throughout.
30024 (voidify_wrapper_expr): Fix long line.
30025 (build_stack_save_restore): Likewise.
30026 (gimplify_loop_expr): Likewise.
30027 (gimplify_compound_lval): Likewise.
30028 (gimplify_init_ctor_eval): Likewise.
30029 (gimplify_modify_expr_rhs): Likewise.
30030 (omp_notice_threadprivate_variable): Likewise.
30031
30032 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
30033
30034 * cfgexpand.c (expand_call_stmt): Convert the function type to the
30035 original one if this is not a builtin function.
30036
30037 2011-04-14 Jakub Jelinek <jakub@redhat.com>
30038
30039 PR target/48605
30040 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
30041 offset it as needed based on top 2 bits in operands[3], change
30042 MEM mode to SFmode and mask those 2 bits away from operands[3].
30043
30044 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
30045
30046 * c-parser.c (c_parser_objc_protocol_definition): Updated for
30047 change from objc_declare_protocols() to objc_declare_protocol().
30048
30049 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
30050
30051 * config/i386/sse.md (sse4_1): New mode attribute.
30052 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
30053 avx_blend<ssemodesuffix><avxmodesuffix> and
30054 sse4_1_blend<ssemodesuffix> using VF mode iterator.
30055 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
30056 avx_blendv<ssemodesuffix><avxmodesuffix> and
30057 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
30058 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
30059 avx_dp<ssemodesuffix><avxmodesuffix> and
30060 sse4_1_dp<ssemodesuffix> using VF mode iterator.
30061 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
30062 (sse4_1_packusdw): Merge with *avx_packusdw.
30063 (sse4_1_pblendvb): Merge with *avx_pblendvb.
30064 (sse4_1_pblendw): Merge with *avx_pblendw.
30065 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
30066 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
30067 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
30068 VF mode iterator.
30069 (sse4_1_round<ssescalarmodesuffix>): Merge with
30070 *avx_round<ssescalarmodesuffix>.
30071 (aesenc): Merge with *avx_aesenc.
30072 (aesenclast): Merge with *avx_aesenclast.
30073 (aesdec): Merge with *avx_aesdec.
30074 (aesdeclast): Merge with *avx_aesdeclast.
30075 (pclmulqdq): Merge with *pclmulqdq.
30076 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
30077 New predicate.
30078 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
30079
30080 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
30081
30082 PR middle-end/48608
30083 * cfgexpand.c (get_decl_align_unit): Renamed to ...
30084 (align_local_variable): This. Update DECL_ALIGN.
30085 (add_stack_var): Updated.
30086 (expand_one_stack_var): Likewise.
30087
30088 2011-04-14 Richard Guenther <rguenther@suse.de>
30089
30090 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
30091 Remove.
30092 (dse_initialize_block_local_data, dse_leave_block,
30093 record_voperand_set, get_stmt_uid): Likewise.
30094 (dse_possible_dead_store_p): Allow any kind of killing stmt.
30095 (dse_optimize_stmt): Remove voperand set handling code.
30096 Simplify and improve to handle any kind of killing stmt.
30097 (dse_record_phi): Remove.
30098 (dse_enter_block): Simplify.
30099 (tree_ssa_dse): Likewise.
30100 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
30101
30102 2011-04-14 Jan Hubicka <jh@suse.cz>
30103
30104 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
30105 * cgraph.h (struct inline_summary): Move to ipa-inline.h
30106 (cgraph_local_info): Remove inline_summary.
30107 * ipa-cp.c: Include ipa-inline.h.
30108 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
30109 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
30110 accesor.
30111 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
30112 (input_overwrite_node): Do not set inline summary.
30113 (input_node): Do not stream inline summary.
30114 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
30115 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
30116 growth; we do not have inline parameters computed for that anyway.
30117 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
30118 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
30119 (inline_summary_t): New type and VECtor.
30120 (debug_inline_summary, dump_inline_summaries): Declare.
30121 (inline_summary): Use VOCtor.
30122 (estimate_edge_growth): Kill hack computing call stmt size directly.
30123 * lto-section-in.c (lto_section_name): Add inline section.
30124 * ipa-inline-analysis.c: Include lto-streamer.h
30125 (node_removal_hook_holder, node_duplication_hook_holder): New holders
30126 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
30127 (inline_summary_vec): Define.
30128 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
30129 dump_inline_summaries): New functions.
30130 (estimate_function_body_sizes): Properly compute size/time of outgoing
30131 calls.
30132 (compute_inline_parameters): Alloc inline_summary; do not compute
30133 size/time of incomming calls.
30134 (estimate_edge_time): Avoid missing time summary hack.
30135 (inline_read_summary): Read inline summary info.
30136 (inline_write_summary): Write inline summary info.
30137 (inline_free_summary): Free all hooks and inline summary vector.
30138 * lto-streamer.h: Add LTO_section_inline_summary section.
30139 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
30140 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
30141
30142 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
30143
30144 * tree-vectorizer.h (vect_strided_store_supported): Add a
30145 HOST_WIDE_INT argument.
30146 (vect_strided_load_supported): Likewise.
30147 (vect_permute_store_chain): Return void.
30148 (vect_transform_strided_load): Likewise.
30149 (vect_permute_load_chain): Delete.
30150 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
30151 count argument. Check that the count is a power of two.
30152 (vect_strided_load_supported): Likewise.
30153 (vect_permute_store_chain): Return void. Update after above changes.
30154 Assert that the access is supported.
30155 (vect_permute_load_chain): Likewise.
30156 (vect_transform_strided_load): Return void.
30157 * tree-vect-stmts.c (vectorizable_store): Update calls after
30158 above interface changes.
30159 (vectorizable_load): Likewise.
30160 (vect_analyze_stmt): Don't check for strided powers of two here.
30161
30162 2011-04-14 Richard Guenther <rguenther@suse.de>
30163
30164 PR tree-optimization/48590
30165 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
30166 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
30167 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
30168 BUILT_IN_STACK_SAVE.
30169 * tree-ssa-dce.c (propagate_necessity): Handle
30170 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
30171
30172 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
30173
30174 * c-parser.c (c_parser_objc_class_declaration): Updated call to
30175 objc_declare_class.
30176
30177 2011-04-14 Richard Guenther <rguenther@suse.de>
30178
30179 * tree.h (get_object_alignment_1): Declare.
30180 * builtins.c (get_object_alignment_1): Split out worker from ...
30181 (get_object_alignment): ... here.
30182 * fold-const.c (get_pointer_modulus_and_residue): Use
30183 get_object_alignment_1.
30184
30185 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
30186
30187 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
30188 type parameter.
30189 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
30190 parameter. Generalise code to handle arrays as well as vectors.
30191 (vect_setup_realignment): Update accordingly.
30192 * tree-vect-stmts.c (vectorizable_store): Likewise.
30193 (vectorizable_load): Likewise.
30194
30195 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
30196
30197 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
30198 within the per-copy loop.
30199
30200 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
30201
30202 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
30203 in the dump file.
30204
30205 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
30206
30207 * doc/options.texi (Negative): Explicitly mention that the
30208 Negative chain must be circular.
30209
30210 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
30211
30212 * function.h (block_chainon): Declare.
30213 * function.c (block_chainon): Define.
30214
30215 2011-04-14 Anatoly Sokolov <aesok@post.ru>
30216 Eric Weddington <eric.weddington@atmel.com>
30217 Georg-Johann Lay <avr@gjlay.de>
30218
30219 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
30220 New Includes
30221 (avr_init_builtins, avr_expand_builtin,
30222 avr_expand_delay_cycles, avr_expand_unop_builtin,
30223 avr_expand_binop_builtin ): New functions.
30224 (avr_builtin_id): New enum
30225 (struct avr_builtin_description): New struct
30226 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
30227 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
30228
30229 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
30230 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
30231 UNSPECV_DELAY_CYCLES): new enumeration values
30232 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
30233 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
30234 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
30235 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
30236 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
30237 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
30238 "fmulsu"): New insns
30239
30240 * config/avr/avr-c.c: fix line endings
30241 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
30242 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
30243 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
30244 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
30245 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
30246
30247 * doc/extend.texi (AVR Built-in Functions): New node
30248 (Target Builtins): Add documentation of AVR
30249 built-in functions.
30250
30251 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
30252
30253 PR target/44643
30254 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
30255 alone. Error if non-const data has attribute progmem.
30256
30257 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
30258
30259 * tree.h (struct tree_constructor): Include tree_typed instead of
30260 tree_common.
30261 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
30262 TS_TYPED instead of TS_COMMON.
30263
30264 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
30265
30266 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
30267 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
30268 (sse2_psadbw): Merge with *avx_psadbw.
30269 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
30270 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
30271 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
30272 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
30273 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
30274 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
30275 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
30276 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
30277 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
30278 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
30279 (ssse3_palignrti): Merge with *avx_palignrti.
30280
30281 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
30282
30283 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
30284 * tree-ssanames.c (fini_ssanames): VEC_free it.
30285 (make_ssa_name_fn): Update for VECness of free_ssanames.
30286 (release_ssa_name, release_dead_ssa_names): Likewise.
30287 * tree.h (struct tree_ssa_name): Include tree_typed instead of
30288 tree_common.
30289 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
30290 TS_TYPED instead of TS_COMMON.
30291
30292 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
30293
30294 * postreload-gcse.c (gcse_after_reload_main): Add calls to
30295 statistics_counter_event.
30296 * tree-ssa-copyrename.c (stats): Define.
30297 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
30298 statistics_counter_event.
30299 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
30300 (bswap_stats, widen_mul_stats): Define.
30301 (insert_reciprocals): Increment rdivs_inserted.
30302 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
30303 rfuncs_inserted. Add calls to statistics_counter_event.
30304 (execute_cse_sincos_1): Increment inserted.
30305 (execute_cse_sincos): Zeroize sincos_stats. Add call to
30306 statistics_counter_event.
30307 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
30308 of bswap_stats. Add calls to statistics_counter_event.
30309 (convert_mult_to_widen): Increment widen_mults_inserted.
30310 (convert_plusminus_to_widen): Increment maccs_inserted.
30311 (convert_mult_to_fma): Increment fmas_inserted.
30312 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
30313 calls to statistics_counter_event.
30314
30315 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
30316
30317 PR rtl-optimization/48455
30318 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
30319 `temp_costs->mem_cost'.
30320
30321 2011-04-13 Jan Hubicka <jh@suse.cz>
30322
30323 * ipa-inline.h: New file.
30324 * ipa-inline-analysis.c: New file. Broken out of ...
30325 * ipa-inline.c: ... this file; update toplevel comment;
30326 include ipa-inline.h
30327 (inline_summary): Move to ipa-inline.h
30328 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
30329 ipa-inline-analysis.c.
30330 (cgraph_estimate_time_after_inlining): Rename to
30331 estiamte_time_after_inlining; move to ipa-inline-analysis.c
30332 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
30333 to estimate_edge_growth.
30334 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
30335 rename to estimate_size_after_inlining.
30336 (cgraph_mark_inline_edge): Update for new naming convention.
30337 (cgraph_check_inline_limits): Likewise.
30338 (cgraph_edge_badness): Likewise.
30339 (cgraph_decide_recursive_inlining): Likewise.
30340 (cgraph_decide_inlining_of_small_functions): Likewise.
30341 (cgraph_decide_inlining_incrementally): Likewise.
30342 (cgraph_estimate_growth): Rename to estimate_growth; move to
30343 ipa-inline-analysis.c.
30344 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
30345 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
30346 (compute_inline_parameters): Likewise.
30347 (compute_inline_parameters_for_current): Likewise.
30348 (pass_inline_parameters): Likewise.
30349 (inline_indirect_intraprocedural_analysis): Likewise.
30350 (analyze_function): Rename to inline_analyze_function; likewise.
30351 (add_new_function): Move to ipa-inline-analysis.c.
30352 (inline_generate_summary): Likewise.
30353 (inline_read_summary): Likewise.
30354 (inline_write_summary): Likewise.
30355 * Makefile.in (ipa-inline-analysis.c): New file.
30356
30357 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30358
30359 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
30360 * configure: Regenerate.
30361
30362 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
30363
30364 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
30365 instead of tree_common.
30366 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
30367 Likewise.
30368 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
30369 TS_TYPED rather than TS_COMMON.
30370 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
30371
30372 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
30373
30374 PR target/45263
30375 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
30376 r20 around calls of __tablejump_elpm__
30377
30378 2011-04-13 Jakub Jelinek <jakub@redhat.com>
30379
30380 PR middle-end/48591
30381 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
30382 NULL.
30383 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
30384
30385 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
30386
30387 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
30388 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
30389 (cfi_vec): New typedef.
30390 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
30391 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
30392 (cie_cfi_vec): New static variable.
30393 (cie_cfi_head): Delete.
30394 (add_cfi): Accept a cfi_vec * as first argument. All callers and
30395 declaration changed. Use vector rather than list operations.
30396 (new_cfi): Don't initialize the dw_cfi_next field.
30397 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
30398 rather than list operations.
30399 (lookup_cfa): Use vector rather than list operations.
30400 (output_cfis): New argument upto. Accept a cfi_vec rather than
30401 a dw_cfi_ref list head as argument. All callers changed.
30402 Iterate over the vector using upto as a maximum index.
30403 (output_all_cfis): New static function.
30404 (output_fde): Use vector rather than list operations. Use the
30405 new upto argument for output_cfis rather than manipulating a
30406 list.
30407 (dwarf2out_begin_prologue): Change initializations to match
30408 new struct members.
30409 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
30410 from the vector length rather than searching for the end of a list.
30411 Use output_all_cfis.
30412 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
30413
30414 2011-04-13 Nick Clifton <nickc@redhat.com>
30415
30416 * config/rx/rx.md (movmemsi): Do not use this pattern when
30417 volatile pointers are involved.
30418
30419 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
30420
30421 * config/i386/sse.md (pinsrbits): Remove.
30422 (sse2_packsswb): Merge with *avx_packsswb.
30423 (sse2_packssdw): Merge with *avx_packssdw.
30424 (sse2_packuswb): Merge with *avx_packuswb.
30425 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
30426 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
30427 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
30428 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
30429 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
30430 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
30431 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
30432 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
30433 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
30434 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
30435 (sse2_loadld): Merge with *avx_loadld.
30436 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
30437 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
30438 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
30439 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
30440 (vec_concatv2di): Merge with *vec_concatv2di_avx.
30441
30442 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
30443
30444 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
30445 calling TREE_CHAIN.
30446 * print-tree.c (print_node): Likewise.
30447 * tree-inline.c (copy_tree_r): Likewise.
30448 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
30449 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
30450 instead of TS_COMMON.
30451 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
30452 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
30453 (copy_node_stat): Zero TREE_CHAIN only if necessary.
30454 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
30455 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
30456 ...and these...
30457 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
30458 * tree.h: ...here.
30459 (TREE_CHAIN): Check for a TS_COMMON structure.
30460 (TREE_TYPE): Check for a TS_TYPED structure.
30461
30462 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
30463
30464 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
30465 cgraph_get_create_node instead of cgraph_node.
30466
30467 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
30468
30469 * c-parser.c (c_parser_initelt): Updated call to
30470 objc_build_message_expr.
30471 (c_parser_postfix_expression): Likewise.
30472
30473 2011-04-12 Kai Tietz <ktietz@redhat.com>
30474
30475 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
30476 MASK_MS_BITFIELD_LAYOUT bit.
30477
30478 2011-04-12 Jakub Jelinek <jakub@redhat.com>
30479
30480 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
30481 assert it is always true.
30482 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
30483 moves.
30484
30485 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
30486
30487 * c-parser.c (c_lex_one_token): Rewritten conditional used when
30488 compiling Objective-C to be more efficient.
30489
30490 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
30491
30492 * opts-common.c (decode_cmdline_options_to_array): Remove variable
30493 argv_copied.
30494
30495 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
30496
30497 * recog.h, genoutput.c, optabs.c: Revert last patch.
30498
30499 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
30500
30501 PR target/48090
30502 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
30503
30504 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
30505
30506 * recog.h (insn_operand_data): Add an "allows_mem" field.
30507 * genoutput.c (output_operand_data): Initialize it.
30508 * optabs.c (maybe_legitimize_operand_same_code): New function.
30509 (maybe_legitimize_operand): Use it when matching the original
30510 op->value.
30511
30512 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
30513
30514 * genpreds.c (process_define_predicate): Move most processing
30515 to gensupport.c. Continue to validate the expression.
30516 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
30517 (process_define_predicate): Move processing to gensupport.c.
30518 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
30519 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
30520 (compute_predicate_codes): Moved from genrecog.c. Add lineno
30521 argument.
30522 (valid_predicate_name_p): New function, split out from old
30523 genpreds.c:process_define_predicate.
30524 (process_define_predicate): New function, combining code from
30525 old genpreds.c and genrecog.c functions.
30526 (process_rtx): Call it for DEFINE_PREDICATE and
30527 DEFINE_SPECIAL_PREDICATE.
30528
30529 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
30530
30531 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
30532 size of a '%A' memory reference.
30533 (T_DREG, T_QREG): New neon_builtin_type_bits.
30534 (arm_init_neon_builtins): Assert that the load and store operands
30535 are neon_struct_operands.
30536 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
30537 (NEON_ARG_MEMORY): New builtin_arg.
30538 (neon_dereference_pointer): New function.
30539 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
30540 Handle NEON_ARG_MEMORY.
30541 (arm_expand_neon_builtin): Update after above interface changes.
30542 Use NEON_ARG_MEMORY for loads and stores.
30543 * config/arm/predicates.md (neon_struct_operand): New predicate.
30544 * config/arm/iterators.md (V_two_elem): Tweak formatting.
30545 (V_three_elem): Use BLKmode for accesses that have no associated mode.
30546 (V_four_elem): Tweak formatting.
30547 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
30548 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
30549 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
30550 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
30551 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
30552 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
30553 (neon_vst4<mode>): Replace pointer operand with a memory operand.
30554 Use %A in the output template.
30555 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
30556 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
30557 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
30558 the width of the memory access. Remove post-increment.
30559 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
30560
30561 2011-04-12 Nick Clifton <nickc@redhat.com>
30562
30563 * config/v850/v850.c (expand_prologue): Do not use the CALLT
30564 instruction for interrupt handlers if the target is the basic V850
30565 architecture.
30566 (expand_epilogue): Likewise.
30567
30568 2011-04-12 Jakub Jelinek <jakub@redhat.com>
30569
30570 PR rtl-optimization/48549
30571 * combine.c (propagate_for_debug): Also stop after BB_END of
30572 this_basic_block. Process LAST and just stop processing after it.
30573 (combine_instructions): If last_combined_insn has been deleted,
30574 set last_combined_insn to its PREV_INSN.
30575
30576 2011-04-12 Richard Guenther <rguenther@suse.de>
30577
30578 PR tree-optimization/46076
30579 * gimple.h (struct gimple_statement_call): Add fntype field.
30580 (gimple_call_fntype): Adjust.
30581 (gimple_call_set_fntype): New function.
30582 * gimple.c (gimple_build_call_1): Set the call function type.
30583 * gimplify.c (gimplify_call_expr): Preserve the function
30584 type the frontend used for the call.
30585 (gimplify_modify_expr): Likewise.
30586 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
30587 function type.
30588 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
30589 function type.
30590 * tree-ssa.c (useless_type_conversion_p): Function pointer
30591 conversions are useless.
30592
30593 2011-04-12 Martin Jambor <mjambor@suse.cz>
30594
30595 * cgraph.h (cgraph_node): Remove function declaration.
30596 (cgraph_create_node): Declare.
30597 (cgraph_get_create_node): Likewise.
30598 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
30599 Updated all callers.
30600 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
30601 the decl does not already exist. Call cgraph_get_create_node instead
30602 of cgraph_node.
30603 (cgraph_get_create_node): New function.
30604 (cgraph_same_body_alias): Update comment.
30605 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
30606 assert it does not return NULL.
30607 (cgraph_update_edges_for_call_stmt): Likewise.
30608 (cgraph_clone_edge): Likewise.
30609 (cgraph_create_virtual_clone): Likewise.
30610 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
30611 instead of cgraph_node.
30612 (cgraph_add_new_function): Call cgraph_create_node or
30613 cgraph_get_create_node instead of cgraph_node.
30614 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
30615 instead of cgraph_node.
30616 (record_eh_tables): Likewise.
30617 (mark_address): Likewise.
30618 (mark_load): Likewise.
30619 (build_cgraph_edges): Call cgraph_get_create_node instead
30620 of cgraph_node.
30621 (rebuild_cgraph_edges): Likewise.
30622 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
30623 instead of cgraph_node.
30624 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
30625 cgraph_node.
30626 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
30627 cgraph_create_node instead of cgraph_node.
30628 * c-decl.c (finish_function): Call cgraph_get_create_node instead
30629 of cgraph_node.
30630 * lto-cgraph.c (input_node): Likewise.
30631 * lto-streamer-in.c (input_function): Likewise.
30632 * varasm.c (mark_decl_referenced): Likewise.
30633 (assemble_alias): Likewise.
30634
30635 2011-04-12 Martin Jambor <mjambor@suse.cz>
30636
30637 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
30638 instead of cgraph_node and assert it does not return NULL.
30639 * lto-streamer-in.c (lto_read_body): Likewise.
30640 * omp-low.c (new_omp_context): Likewise.
30641 (create_task_copyfn): Likewise.
30642 * tree-emutls.c (lower_emutls_function_body): Likewise.
30643 * matrix-reorg.c (transform_allocation_sites): Likewise.
30644
30645 2011-04-12 Jakub Jelinek <jakub@redhat.com>
30646
30647 PR c/48552
30648 * c-typeck.c (build_asm_expr): Error out on attempts to use
30649 void type outputs or inputs for constraints that allow reg or
30650 don't allow memory.
30651
30652 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
30653 Richard Earnshaw <rearnsha@arm.com>
30654
30655 PR target/48250
30656 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
30657 to use sign-magnitude offsets. Reject unsupported unaligned
30658 cases. Add detailed description in comments.
30659 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
30660 condition from TARGET_32BIT to TARGET_ARM.
30661
30662 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
30663
30664 * tree.h (struct typed_tree): New.
30665 (struct tree_common): Include it instead of tree_base.
30666 (TREE_TYPE): Update for new location of type field.
30667 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
30668 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
30669 (union tree_node): Add typed field.
30670 * treestruct.def (TS_TYPED): New.
30671 * lto-streamer.c (check_handled_ts_structures): Handle it.
30672 * tree.c (MARK_TS_TYPED): New macro.
30673 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
30674
30675 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
30676
30677 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
30678 (force_nonfallthru): Do not alter the loop nest if no basic block
30679 was created.
30680
30681 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
30682
30683 * config/i386/sse.md (VI): New mode iterator.
30684 (SSEMODEI): Remove.
30685 (AVX256MODEI): Ditto.
30686 (AVXMODEF4P): Ditto.
30687 (avxvecpsmode): Ditto.
30688 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
30689 (sse2_andnot<mode>3): New expander.
30690 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
30691 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
30692 (<any_logic:code><mode>3): Use VI mode iterator.
30693 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
30694 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
30695 (*andnottf3): Handle AVX three-operand constraints.
30696 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
30697
30698 2011-04-11 Joseph Myers <joseph@codesourcery.com>
30699 Robert Millan <rmh@gnu.org>
30700
30701 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
30702 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
30703 GNU_USER_DYNAMIC_LINKER64): Define.
30704 (REG_NAME): Don't undefine.
30705 (MD_UNWIND_SUPPORT): Undefine.
30706 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
30707 (REG_NAME): Don't undefine.
30708 (MD_UNWIND_SUPPORT): Undefine.
30709 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
30710
30711 2011-04-11 Joseph Myers <joseph@codesourcery.com>
30712
30713 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
30714 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
30715
30716 2011-04-11 Xinliang David Li <davidxl@google.com>
30717
30718 * value-profile.c (check_ic_target): New function.
30719 (gimple_ic_transform): Sanity check indirect call target.
30720 * gimple-low.c (gimple_check_call_args): Interface change.
30721 (gimple_check_call_matching_types): New function.
30722 * tree-inline.c (tree_can_inline_p): Call new function.
30723
30724 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
30725
30726 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
30727 tree-pretty-print.h & realmpfr.h.
30728
30729 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
30730
30731 PR middle-end/48464
30732 * ira.c (setup_pressure_classes): Fix typo in loop condition.
30733 (setup_allocno_and_important_classes): Ditto.
30734
30735 2011-04-11 Joseph Myers <joseph@codesourcery.com>
30736
30737 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
30738 GNU_USER_DYNAMIC_LINKER.
30739 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
30740 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30741 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
30742 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
30743 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
30744 GNU_USER_TARGET_OS_CPP_BUILTINS.
30745 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
30746 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30747 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
30748 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30749 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
30750 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
30751 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
30752 GNU_USER_TARGET_OS_CPP_BUILTINS.
30753 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
30754 GNU_USER_DYNAMIC_LINKER.
30755 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
30756 GNU_USER_TARGET_OS_CPP_BUILTINS.
30757 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
30758 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30759 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
30760 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30761 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
30762 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
30763 GNU_USER_DYNAMIC_LINKER64): Remove.
30764 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
30765 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30766 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
30767 GNU_USER_DYNAMIC_LINKER.
30768 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
30769 GNU_USER_TARGET_OS_CPP_BUILTINS.
30770 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
30771 GNU_USER_TARGET_OS_CPP_BUILTINS.
30772 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
30773 to GNU_USER_TARGET_OS_CPP_BUILTINS.
30774 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
30775 GNU_USER_TARGET_OS_CPP_BUILTINS.
30776 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
30777 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
30778 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
30779 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
30780 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30781 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
30782 GNU_USER_DYNAMIC_LINKER.
30783 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
30784 GNU_USER_TARGET_OS_CPP_BUILTINS.
30785 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
30786 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30787 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
30788 GNU_USER_DYNAMIC_LINKER.
30789 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
30790 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30791 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
30792 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30793 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
30794 GNU_USER_DYNAMIC_LINKER.
30795 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
30796 GNU_USER_DYNAMIC_LINKERN32.
30797 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
30798 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
30799 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
30800 GNU_USER_DYNAMIC_LINKER32.
30801 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
30802 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30803 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
30804 GNU_USER_DYNAMIC_LINKER.
30805 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
30806 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30807 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
30808 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30809 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
30810 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
30811 GNU_USER_DYNAMIC_LINKER32.
30812 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
30813 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
30814 GNU_USER_DYNAMIC_LINKER.
30815 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
30816 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30817 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
30818 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
30819 GNU_USER_DYNAMIC_LINKER64.
30820 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
30821 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30822 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
30823 GNU_USER_DYNAMIC_LINKER.
30824 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
30825 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30826 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
30827 GNU_USER_DYNAMIC_LINKER.
30828 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
30829 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30830 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
30831 GNU_USER_DYNAMIC_LINKER32.
30832 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
30833 GNU_USER_DYNAMIC_LINKER64.
30834 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
30835 GNU_USER_DYNAMIC_LINKER64.
30836 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
30837 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30838 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
30839 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
30840 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
30841
30842 2011-04-11 Joseph Myers <joseph@codesourcery.com>
30843
30844 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
30845 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
30846 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
30847 GNU_USER_DYNAMIC_LINKER.
30848 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
30849 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
30850 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
30851 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
30852 GNU_USER_DYNAMIC_LINKER64.
30853 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
30854 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
30855 GNU_USER_LINK_EMULATION.
30856 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
30857 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
30858 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
30859 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
30860 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
30861 CPP_SPEC, CC1_SPEC): Remove.
30862 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
30863 (GNU_USER_DYNAMIC_LINKER): Define.
30864 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
30865 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
30866 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
30867 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
30868 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
30869 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
30870 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
30871 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
30872 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
30873 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
30874 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
30875 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
30876 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
30877 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
30878 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
30879 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
30880 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
30881 GNU_USER_DYNAMIC_LINKER.
30882 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
30883 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
30884 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
30885 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
30886 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
30887 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
30888 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
30889 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
30890 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
30891 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
30892
30893 2011-04-11 Kai Tietz <ktietz@redhat.com>
30894
30895 PR target/9601
30896 PR target/11772
30897 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
30898 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
30899 comment.
30900 (ix86_is_msabi_thiscall): Removed.
30901 (ix86_is_type_thiscall): Likewise.
30902 (ix86_get_callcvt): New function.
30903 (ix86_comp_type_attributes): Simplify check.
30904 (ix86_function_regparm): Use ix86_get_callcvt for calling
30905 convention attribute checks.
30906 (ix86_return_pops_args): Likewise.
30907 (ix86_static_chain): Likewise.
30908 (x86_this_parameter): Likewise.
30909 (x86_output_mi_thunk): Likewise.
30910 (ix86_function_type_abi): Optimize check for types without attributes.
30911 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
30912 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
30913 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
30914 by flag-values.
30915 (IX86_BASE_CALLCVT): Helper macro.
30916 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
30917 Use ix86_get_callcvt for calling convention attribute checks and avoid
30918 symbol-decoration for stdcall in TARGET_RTD case.
30919 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
30920 Likewise.
30921 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
30922 for declaration.
30923
30924 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
30925
30926 * config/i386/sse.md (VI_128): New mode iterator.
30927 (VI12_128): Rename from SSEMODE12.
30928 (VI14_128): Rename from SSEMODE14.
30929 (VI124_128): New mode iterator.
30930 (VI24_128): Rename from SSEMODE248.
30931 (VI248_128): Rename from SSEMODE248.
30932 (SSEMODE124C8): Remove.
30933 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
30934 (*sse2_<plusminus_insn><mode>3): Merge with
30935 *avx_<plusminus_insn><mode>3.
30936 (*mulv8hi3): Merge with *avx_mulv8hi3.
30937 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
30938 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
30939 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
30940 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
30941 (ashr<mode>3): Merge with *avx_ashr<mode>3.
30942 (lshr<mode>3): Merge with *avx_lshr<mode>3.
30943 (ashl<mode>3): Merge with *avx_ashl<mode>3.
30944 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
30945 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
30946 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
30947 (*<smaxmin:code>v8hi3): Ditto.
30948 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
30949 (*<smaxmin:code>v16qi3): Ditto.
30950 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
30951 (*sse2_eq<mode>3): Ditto.
30952 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
30953 (*sse2_gt<mode>3): Ditto.
30954 (vcondv2di): Split out of vcond<mode>.
30955 (vconduv2di): Split out of vcondu<mode>.
30956
30957 2011-04-11 Richard Guenther <rguenther@suse.de>
30958
30959 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
30960 before calling tree_low_cst.
30961
30962 2011-04-11 Richard Guenther <rguenther@suse.de>
30963
30964 * stor-layout.c (layout_type): Compute all array index size operations
30965 in the original type.
30966 (initialize_sizetypes): Add comment.
30967 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
30968
30969 2011-04-11 Joseph Myers <joseph@codesourcery.com>
30970
30971 * common.opt (Tbss=, Tdata=, Ttext=): New options.
30972
30973 2011-04-11 Martin Jambor <mjambor@suse.cz>
30974
30975 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
30976 of cgraph_node, handle NULL return value.
30977 (cgraph_global_info): Likewise.
30978 (cgraph_rtl_info): Likewise.
30979 * tree-inline.c (estimate_num_insns): Likewise.
30980 * gimplify.c (unshare_body): Likewise.
30981 (unvisit_body): Likewise.
30982 (gimplify_body): Likewise.
30983 * predict.c (optimize_function_for_size_p): Likewise.
30984 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
30985 (call_may_clobber_ref_p_1): Likewise.
30986 * varasm.c (function_section_1): Likewise.
30987 (assemble_start_function): Likewise.
30988
30989 2011-04-11 Martin Jambor <mjambor@suse.cz>
30990
30991 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
30992 of cgraph_node.
30993 * final.c (rest_of_clean_state): Likewise.
30994 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
30995 * passes.c (pass_init_dump_file): Likewise.
30996 (execute_all_ipa_transforms): Likewise.
30997 (function_called_by_processed_nodes_p): Likewise.
30998 * predict.c (maybe_hot_frequency_p): Likewise.
30999 (probably_never_executed_bb_p): Likewise.
31000 (compute_function_frequency): Likewise.
31001 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
31002 (unnest_nesting_tree_1): Likewise.
31003 (lower_nested_functions): Likewise.
31004 * tree-optimize.c (execute_fixup_cfg): Likewise.
31005 (tree_rest_of_compilation): Likewise.
31006 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
31007 * tree-sra.c (ipa_early_sra): Likewise.
31008 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
31009 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
31010 * ipa.c (record_cdtor_fn): Likewise.
31011 * ipa-inline.c (cgraph_early_inlining): Likewise.
31012 (compute_inline_parameters_for_current): Likewise.
31013 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
31014 * ipa-pure-const.c (local_pure_const): Likewise.
31015 * ipa-split.c (split_function): Likewise.
31016 (execute_split_functions): Likewise.
31017 * cgraphbuild.c (build_cgraph_edges): Likewise.
31018 (rebuild_cgraph_edges): Likewise.
31019 (cgraph_rebuild_references): Likewise.
31020 (remove_cgraph_callee_edges): Likewise.
31021 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
31022 (verify_cgraph_node): Likewise.
31023 (cgraph_analyze_functions): Likewise.
31024 (cgraph_preserve_function_body_p): Likewise.
31025 (save_inline_function_body): Likewise.
31026 (save_inline_function_body): Likewise.
31027 * tree-inline.c (copy_bb): Likewise.
31028 (optimize_inline_calls): Likewise.
31029
31030 2011-04-11 Martin Jambor <mjambor@suse.cz>
31031
31032 PR tree-optimization/48195
31033 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
31034 ipa_check_create_edge_args.
31035 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
31036 ipa_check_create_edge_args.
31037 * ipa-inline.c (inline_generate_summary): Do not call
31038 ipa_check_create_node_params and ipa_check_create_edge_args.
31039 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
31040 ipa_check_create_edge_args.
31041
31042 2011-04-09 Anatoly Sokolov <aesok@post.ru>
31043
31044 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
31045 instead of loop.
31046 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
31047 * function.c (record_hard_reg_sets): Likewise.
31048 * ira.c (compute_regs_asm_clobbered): Likewise.
31049 * sched-deps.c (sched_analyze_1): Likewise.
31050 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
31051
31052 2011-04-09 Xinliang David Li <davidxl@google.com>
31053
31054 PR tree-optimization/PR48484
31055 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
31056 has_valid_pred lazily
31057
31058 2011-04-09 Duncan Sands <baldrick@free.fr>
31059
31060 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
31061
31062 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
31063
31064 * combine.c (combine_validate_cost): Adjust comments. Set registered
31065 cost of I0 to zero at the end, if any.
31066
31067 2011-04-08 Xinliang David Li <davidxl@google.com>
31068
31069 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
31070 to insane profile data.
31071
31072 2011-04-08 Xinliang David Li <davidxl@google.com>
31073
31074 * ipa-cp.c (ipcp_update_profiling): Correct
31075 negative scale factor due to insane profile data.
31076
31077 2011-04-08 Xinliang David Li <davidxl@google.com>
31078
31079 * final.c (dump_basic_block_info): New function.
31080 (final): Dump basic block.
31081 (final_scan_insn): Remove old dump.
31082
31083 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
31084
31085 PR target/47829
31086 * config.gcc (i386-*-freebsd): Disable unwind table generation for
31087 crtbegin/crtend.
31088
31089 2011-04-08 Michael Matz <matz@suse.de>
31090
31091 PR middle-end/48389
31092 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
31093 functions.
31094 (rebuild_jump_labels): Call rebuild_jump_labels_1.
31095 * rtl.h (rebuild_jump_labels_chain): Declare.
31096 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
31097 insns inserted on edges.
31098
31099 2011-04-08 Joseph Myers <joseph@codesourcery.com>
31100
31101 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
31102 * config/arm/arm-arches.def: New.
31103 * config/arm/arm-opts.h: New.
31104 * config/arm/genopt.sh: New.
31105 * config/arm/arm-tables.opt: New (generated).
31106 * config/arm/arm.c (arm_handle_option, arm_target_help,
31107 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
31108 (all_architectures): Get most table contents from arm-arches.def.
31109 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
31110 arm_selected_tune here.
31111 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
31112 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
31113 (march=, mcpu=, mtune=): Use Enum and Var.
31114 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
31115 (arm.o): Update dependencies.
31116
31117 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
31118
31119 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
31120 of header_file.
31121 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
31122 (write_typed_alloc_defns): Likewise.
31123 (main): Calls write_typed_alloc_defns with output_header.
31124
31125 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
31126
31127 PR inline-asm/48435
31128 * ira-color.c (setup_profitable_hard_regs): Add comments.
31129 Don't take prohibited hard regs into account.
31130 (setup_conflict_profitable_regs): Rename to
31131 get_conflict_profitable_regs.
31132 (check_hard_reg_p): Check prohibited hard regs.
31133
31134 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
31135
31136 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
31137 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
31138 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
31139
31140 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31141
31142 PR target/48366
31143 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
31144 move from floating point to shift amount register.
31145 (emit_move_sequence): Remove secondary reload support for floating
31146 point to shift amount amount register copies.
31147 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
31148 amount register copies.
31149 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
31150 register, return false if mode isn't a scalar integer mode.
31151 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
31152
31153 2011-04-08 Richard Guenther <rguenther@suse.de>
31154
31155 * gimple.c (gimple_call_flags): Remove kludge.
31156
31157 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
31158
31159 * sel-sched.c (sel_region_init): Move call to
31160 sel_setup_region_sched_flags after setup_current_loop_nest.
31161
31162 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
31163
31164 PR rtl-optimization/48272
31165 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
31166 init_insn_reg_pressure_info. Adjust a caller.
31167 * sched-int.h (init_insn_reg_pressure_info): Declare.
31168 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
31169 when sched-pressure is enabled.
31170
31171 2011-04-08 Richard Guenther <rguenther@suse.de>
31172
31173 * gimple.c (gimple_set_modified): Do not queue calls to
31174 MODIFIED_NORETURN_CALLS here ...
31175 * tree-ssa-operands.c (update_stmt_operands): ... but here.
31176
31177 2011-04-08 Richard Guenther <rguenther@suse.de>
31178
31179 PR lto/48467
31180 * toplev.c (lang_dependent_init): Do not open asm_out_file
31181 in WPA mode, nor perform debug machinery initialization.
31182 (finalize): Do not unlink asm_out_file in WPA mode.
31183
31184 2011-04-08 Richard Guenther <rguenther@suse.de>
31185
31186 * gimple.h (gimple_call_fntype): New function.
31187 (gimple_call_return_type): Use it.
31188 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
31189 * gimple-low.c (gimple_check_call_args): Likewise.
31190 * gimple.c (gimple_call_flags): Likewise.
31191 (gimple_call_arg_flags): Likewise.
31192 (gimple_call_return_flags): Likewise.
31193 * tree-cfg.c (verify_gimple_call): Likewise.
31194 (do_warn_unused_result): Likewise.
31195 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
31196 * value-prof.c (gimple_ic_transform): Fix fndecl check.
31197
31198 2011-04-08 Dmitry Melnik <dm@ispras.ru>
31199
31200 PR rtl-optimization/48235
31201 * sel-sched.c (code_motion_process_successors): Recompute the last
31202 insn in basic block if control flow changed.
31203 (code_motion_path_driver): Ditto. Recompute the first insn as well.
31204 Update condition for ilist_remove.
31205
31206 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
31207
31208 PR rtl-optimization/48302
31209 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
31210 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
31211 it to record added preheader blocks.
31212 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
31213 on to sel_add_loop_preheaders.
31214 (sel_region_init): Move call to setup_current_loop_nest after
31215 sel_init_bbs.
31216
31217 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
31218
31219 PR target/48273
31220 * cfgloop.h (loop_has_exit_edges): New helper.
31221 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
31222 non-clonable.
31223 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
31224 that have no exit edges.
31225
31226 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
31227
31228 PR rtl-optimization/48442
31229 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
31230 all callers. Adjust assert.
31231
31232 2011-04-08 Jakub Jelinek <jakub@redhat.com>
31233
31234 PR tree-optimization/48377
31235 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
31236 is_packed to true even for types with smaller TYPE_ALIGN than
31237 TYPE_SIZE.
31238
31239 2011-04-08 Richard Guenther <rguenther@suse.de>
31240
31241 PR bootstrap/48513
31242 * doc/tm.texi: Re-generate.
31243
31244 2011-04-08 Wei Guozhi <carrot@google.com>
31245
31246 PR target/47855
31247 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
31248 * config/arm/arm.c (arm_attr_length_push_multi): New function.
31249 * config/arm/arm.md (*push_multi): Change the length computation to
31250 call a C function.
31251
31252 2011-04-08 Anatoly Sokolov <aesok@post.ru>
31253
31254 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
31255 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
31256 * doc/tm.texi: Regenerate.
31257 * system.h (ASM_OUTPUT_BSS): Poison.
31258 * varasm.c (asm_output_bss): Remove function.
31259 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
31260
31261 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
31262 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
31263 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
31264 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
31265 Likewise.
31266 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
31267 Likewise.
31268 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
31269 Likewise.
31270 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
31271
31272 2011-04-07 Joseph Myers <joseph@codesourcery.com>
31273
31274 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
31275 EnumValue lines.
31276
31277 2011-04-07 Joseph Myers <joseph@codesourcery.com>
31278
31279 * config/m68k/m68k.c (m68k_handle_option): Don't handle
31280 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
31281 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
31282 OPT_mcpu32.
31283 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
31284 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
31285 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
31286 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
31287 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
31288 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
31289 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
31290 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
31291 options. Don't map other m68k options manually. Don't handle
31292 old-style options as canonical.
31293 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
31294 * doc/install.texi (m68k-*-*): Document binutils version requirement.
31295
31296 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
31297
31298 * basic-block.h (force_nonfallthru): Move to...
31299 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
31300 (force_nonfallthru): ...here.
31301 * cfghooks.c (force_nonfallthru): New function.
31302 * cfgrtl.c (force_nonfallthru): Rename into...
31303 (rtl_force_nonfallthru): ...this.
31304 (commit_one_edge_insertion): Do not set AUX field.
31305 (commit_edge_insertions): Do not discover new basic blocks.
31306 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
31307 (cfg_layout_rtl_cfg_hooks): Likewise.
31308 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
31309 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
31310 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
31311
31312 2011-04-07 Anatoly Sokolov <aesok@post.ru>
31313
31314 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
31315 Remove macros.
31316
31317 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
31318
31319 * config/i386/sse.md: Update copyright year.
31320 (avxcvtvecmode): Remove.
31321 (sse_movhlps): Merge with *avx_movhlps.
31322 (sse_movlhps): Merge with *avx_movlhps.
31323 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
31324 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
31325 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
31326 (sse_loadhps): Merge with *avx_loadhps.
31327 (sse_storelps): Merge with *avx_storelps.
31328 (sse_loadlps): Merge with *avx_loadlps.
31329 (sse_movss): Merge with *avx_movss.
31330 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
31331 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
31332 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
31333 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
31334 (vec_set<mode>_0): Ditto.
31335 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
31336 (sse4_1_insertps): Merge with *avx_insertps.
31337 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
31338 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
31339 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
31340 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
31341 (sse2_storehpd): Merge with *avx_storehpd.
31342 (sse2_loadhpd): Merge with *avx_loadhpd.
31343 (sse2_loadlpd): Merge with *avx_loadlpd.
31344 (sse2_movsd): Merge with *avx_movsd.
31345 (*vec_concatv2df): Merge with *vec_concatv2df.
31346
31347 2011-04-07 Jakub Jelinek <jakub@redhat.com>
31348
31349 PR debug/48343
31350 * combine.c (combine_instructions): Add last_combined_insn,
31351 update it if insn is after it, pass it to all try_combine calls.
31352 (try_combine): Add last_combined_insn parameter, pass it instead of
31353 i3 to propagate_for_debug.
31354
31355 2011-04-07 Nick Clifton <nickc@redhat.com>
31356
31357 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
31358 to handle MDR <-> data register transfers.
31359 (movhi_internal): Likewise.
31360
31361 2011-04-07 Alan Modra <amodra@gmail.com>
31362
31363 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
31364 previous stack info.
31365
31366 2011-04-07 Tom de Vries <tom@codesourcery.com>
31367
31368 PR target/43920
31369 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
31370 flow_find_cross_jump. Swap variables to implement backward replacement.
31371 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
31372
31373 2011-04-07 Tom de Vries <tom@codesourcery.com>
31374
31375 PR target/43920
31376 * cfgcleanup.c (walk_to_nondebug_insn): New function.
31377 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
31378 and bb2.
31379 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
31380 src1 or src2. Redirect edges to the last basic block. Update
31381 frequency and count on multiple basic blocks in case of fallthru.
31382
31383 2011-04-07 Tom de Vries <tom@codesourcery.com>
31384
31385 PR target/43920
31386 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
31387 function.
31388 (old_insns_match_p): Change return type. Replace return false/true
31389 with return dir_none/dir_both. Use can_replace_by.
31390 (flow_find_cross_jump): Add dir_p parameter. Init replacement
31391 direction from dir_p. Register replacement direction in dir, last_dir
31392 and afterlast_dir. Handle new return type of old_insns_match_p using
31393 merge_dir. Return replacement direction in dir_p.
31394 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
31395 return type of old_insns_match_p.
31396 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
31397 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
31398 flow_find_cross_jump.
31399 * basic-block.h (enum replace_direction): New type.
31400 (flow_find_cross_jump): Add parameter to declaration.
31401
31402 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
31403
31404 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
31405 (AVXMODEDCVTPS2DQ): Ditto.
31406 (VEC_FLOAT_MODE): Ditto.
31407 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
31408 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
31409 (<any_logic:code><mode>3): Use VF mode iterator.
31410 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
31411 Use VF mode iterator.
31412 (copysign<mode>3): Use VF mode iterator.
31413 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
31414 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
31415 (*<any_logic:code><MODEF:mode>3): Merge with
31416 *avx_<any_logic:code><MODEF:mode>3.
31417 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
31418 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
31419 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
31420 (avx_cvtdq2ps<avxmodesuffix>): Remove.
31421 (sse2_cvtdq2ps): Use %v modifier.
31422 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
31423 (avx_cvtps2dq<avxmodesuffix>): Remove.
31424 (sse2_cvtps2dq): Use %v modifier.
31425 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
31426 (avx_cvttps2dq<avxmodesuffix>): Remove.
31427 (sse2_cvttps2dq): Use %v modifier.
31428 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
31429 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
31430 (sse2_cvtsd2siq): Fix insn template.
31431 (sse2_cvtsd2siq_2): Ditto.
31432 (sse2_cvttsd2siq): Ditto.
31433 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
31434 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
31435
31436 2011-04-06 Joseph Myers <joseph@codesourcery.com>
31437
31438 * gcov-io.c: Use GCC Runtime Library Exception.
31439
31440 2011-04-06 Jakub Jelinek <jakub@redhat.com>
31441
31442 PR debug/48466
31443 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
31444 as base_reg whatever register reg has been eliminated to, instead
31445 of hardcoding STACK_POINTER_REGNUM.
31446
31447 2011-04-06 Joseph Myers <joseph@codesourcery.com>
31448
31449 * doc/tm.texi.in: Document C target hooks as separate from general
31450 target hooks.
31451 * doc/tm.texi: Regenerate.
31452 * genhooks.c (struct hook_desc): Add docname field.
31453 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
31454 docname field.
31455 (hook_array): Include c-target.def.
31456 (emit_documentation): Use docname field in output.
31457 (emit_init_macros): Take docname argument. Only emit definitions
31458 for hooks matching docname.
31459 (main): Expect additional arguments in all cases. Pass argument
31460 to emit_init_macros.
31461 * target.def: Move initial macro definitions and comments to
31462 target-hooks-macros.h.
31463 (gcc_targetcm): Move to c-family/c-target.def.
31464 * target.h (targetcm): Move declaration to c-family/c-target.h.
31465 * targhooks.c (default_handle_c_option): Move to
31466 c-family/c-opts.c.
31467 * targhooks.h (default_handle_c_option): Move declaration to
31468 c-family/c-common.h.
31469 * target-hooks-macros.h: New file.
31470 * config.gcc (target_has_targetcm): Define and use to add to
31471 c_target_objs and cxx_target_objs.
31472 * config/default-c.c: New file.
31473 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
31474 of target.h and target-def.h.
31475 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
31476 (darwin_objc_construct_string, darwin_cfstring_ref_p,
31477 darwin_check_cfstring_format_arg): Make static.
31478 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
31479 TARGET_STRING_OBJECT_REF_TYPE_P,
31480 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
31481 * config/darwin-protos.h (darwin_objc_construct_string,
31482 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
31483 declare.
31484 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
31485 TARGET_STRING_OBJECT_REF_TYPE_P,
31486 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
31487 * config/t-darwin (darwin-c.o): Update dependencies.
31488 * system.h (TARGET_HAS_TARGETCM): Poison.
31489 * Makefile.in (TARGET_H): Update.
31490 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
31491 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
31492 (default-c.o): New target.
31493 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
31494 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
31495 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
31496 c-target.def.
31497 (build/genhooks.o): Update dependencies.
31498
31499 2011-04-06 Richard Guenther <rguenther@suse.de>
31500
31501 * ipa-inline.c (enum inlining_mode): Remove.
31502 (cgraph_flatten): Use some other token.
31503 (cgraph_edge_early_inlinable_p): New function, split out from ...
31504 (cgraph_perform_always_inlining): New function, split out from ...
31505 (cgraph_decide_inlining_incrementally): ... here.
31506 (cgraph_mark_inline_edge): Adjust.
31507 (cgraph_early_inlining): Re-structure.
31508 (pass_early_inline): Require SSA form.
31509
31510 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
31511 Julian Brown <julian@codesourcery.com>
31512 Mark Shinwell <shinwell@codesourcery.com>
31513
31514 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
31515 LO_REGS only for Thumb-1.
31516 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
31517 be used in short instructions when optimising for size on Thumb-2.
31518
31519 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
31520
31521 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
31522 associated with user returns to be preserved.
31523
31524 2011-04-06 Tristan Gingold <gingold@adacore.com>
31525
31526 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
31527 symbol_queue_size, DBXOUT_DECR_NESTING,
31528 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
31529 if XCOFF_DEBUGGING_INFO.
31530
31531 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
31532
31533 * config/i386/i386.md (attribute isa): New.
31534 (attribute enabled): New.
31535 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
31536 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
31537 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
31538 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
31539 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
31540 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
31541 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
31542 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
31543
31544 * config/i386/sse.md (VF): New mode iterator.
31545 (VF1): Ditto.
31546 (VF2): Ditto.
31547 (VF_128): Ditto.
31548 (SSEMODEF4): Remove.
31549 (attribute sse): Handle V8SF and V4DF modes.
31550 (<absneg:code><mode>2): Use VF mode iterator.
31551 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
31552 mode iterator.
31553 (<plusminus_insn><mode>3): Use VF mode iterator.
31554 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
31555 Use VF mode iterator.
31556 (<sse>_vm<plusminus_insn><mode>3): Merge with
31557 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
31558 (mul<mode>3): Use VF mode iterator.
31559 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
31560 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
31561 mode iterator.
31562 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
31563 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
31564 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
31565 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
31566 mode iterator.
31567 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
31568 Use VF1 mode iterator.
31569 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
31570 (sqrt<VF2:mode>2): New expander.
31571 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
31572 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
31573 and sqrtv2df2. Use VF mode iterator.
31574 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
31575 mode iterator.
31576 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
31577 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
31578 Use VF1 mode iterator.
31579 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
31580 (<smaxmin:code><mode>3): Use VF mode iterator.
31581 (*<smaxmin:code><mode>3_finite): Merge with
31582 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
31583 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
31584 (<sse>_vm<smaxmin:code><mode>2): Merge with
31585 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
31586 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
31587 mode iterator.
31588 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
31589 mode iterator.
31590 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
31591 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
31592 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
31593 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
31594 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
31595 VF mode iterator.
31596 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
31597 Use VF_128 mode iterator.
31598 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
31599 mode iterator.
31600 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
31601 VF_128 mode iterator.
31602 (vcond<mode>): Use VF mode iterator.
31603 * config/i386/predicates.md (sse_comparison_operator): Merge with
31604 avx_comparison_float_operator. Do not declare as special_predicate.
31605 * config/i386/i386.c (struct builtin_description): Update for renamed
31606 compare patterns.
31607 (ix86_expand_args_builtin): Ditto.
31608 (ix86_expand_sse_compare_mask): Ditto.
31609
31610 2011-04-06 Richard Guenther <rguenther@suse.de>
31611
31612 * tree-inline.c (estimate_num_insns): For calls simply account
31613 for all passed arguments and a used return value.
31614
31615 2011-04-06 Richard Guenther <rguenther@suse.de>
31616
31617 PR tree-optimization/47663
31618 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
31619 call_stmt_time fields.
31620 (cgraph_edge_inlinable_p): Declare.
31621 (cgraph_edge_recursive_p): New inline function.
31622 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
31623 (cgraph_clone_edge): Copy it.
31624 * ipa-inline.c (cgraph_estimate_edge_time): New function.
31625 Account for call stmt time.
31626 (cgraph_estimate_time_after_inlining): Take edge argument.
31627 (cgraph_estimate_edge_growth): Account call stmt size.
31628 (cgraph_estimate_size_after_inlining): Take edge argument.
31629 (cgraph_mark_inline_edge): Adjust.
31630 (cgraph_check_inline_limits): Likewise.
31631 (cgraph_recursive_inlining_p): Remove.
31632 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
31633 (cgraph_decide_recursive_inlining): Take edge argument and
31634 adjust.
31635 (cgraph_decide_inlining_of_small_functions): Do not avoid
31636 diags for recursive inlining here.
31637 (cgraph_flatten): Adjust.
31638 (cgraph_decide_inlining_incrementally): Likewise.
31639 (estimate_function_body_sizes): Remove call cost handling.
31640 (compute_inline_parameters): Initialize caller edge call costs.
31641 (cgraph_estimate_edge_growth): New function.
31642 (cgraph_estimate_growth): Use it.
31643 (cgraph_edge_badness): Likewise.
31644 (cgraph_check_inline_limits): Take an edge argument.
31645 (cgraph_decide_inlining_of_small_functions): Adjust.
31646 (cgraph_decide_inlining): Likewise.
31647 * tree-inline.c (estimate_num_insns): Only account for call
31648 return value if it is used.
31649 (expand_call_inline): Avoid diagnostics on recursive inline
31650 functions here.
31651 * lto-cgraph.c (lto_output_edge): Output edge call costs.
31652 (input_edge): Input edge call costs.
31653
31654 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31655
31656 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
31657
31658 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
31659
31660 * doc/invoke.texi (Spec Files): Fix typo.
31661
31662 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
31663
31664 * profile.c (branch_prob): Move declaration of local variable. Remove
31665 obsolete ??? comment. Expand the location explicitly instead of using
31666 the LOCATION_FILE and LOCATION_LINE macros.
31667
31668 2011-04-06 Wei Guozhi <carrot@google.com>
31669
31670 PR target/47855
31671 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
31672 (arm_cond_branch): Likewise.
31673 (arm_cond_branch_reversed): Likewise.
31674 (arm_jump): Likewise.
31675 (push_multi): Likewise.
31676 * config/arm/constraints.md (Py): New constraint.
31677
31678 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
31679
31680 PR bootstrap/48471
31681 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
31682 Move these...
31683 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
31684 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
31685 #ifdef DBX_DEBUGGING_INFO.
31686
31687 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
31688
31689 PR bootstrap/48403
31690 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
31691 if old and new states differ.
31692
31693 2011-04-05 Joseph Myers <joseph@codesourcery.com>
31694
31695 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
31696 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
31697 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
31698 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
31699 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
31700 mcfv4e): Use Alias.
31701 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
31702 ColdFire options to -mcpu= options.
31703
31704 2011-04-05 Jeff Law <law@redhat.com>
31705
31706 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
31707 check if BB is a successor of LOOP->header and return
31708 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
31709
31710 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
31711
31712 * cprop.c (struct reg_use): Remove.
31713 (reg_use_table): Make an array of RTX.
31714 (find_used_regs, constprop_register, local_cprop_pass,
31715 bypass_block): Simplify users of reg_use_table.
31716 (cprop_insn): Likewise. Iterate if copy propagation succeeded
31717 on one of the uses found by find_used_regs.
31718
31719 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
31720
31721 PR bootstrap/48469
31722 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
31723 declaration.
31724
31725 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
31726
31727 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
31728 as an rtx.
31729 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
31730
31731 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
31732
31733 PR middle-end/48441
31734 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
31735
31736 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
31737
31738 * combine.c: Include obstack.h.
31739 (struct insn_link): Define.
31740 (uid_log_links): Adjust type.
31741 (FOR_EACH_LOG_LINK): New macro.
31742 (insn_link_obstack): Declare.
31743 (alloc_insn_link): Define.
31744 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
31745 type of link variables.
31746 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
31747 (try_combine, record_promoted_values, distribute_notes): Likewise.
31748 (distribute_links): Likewise. Tweak prototype.
31749 (clear_log_links): Delete.
31750 (adjust_for_new_dest): Call alloc_insn_link.
31751 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
31752
31753 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
31754
31755 * gcse.c (modify_mem_list): Convert to an array of VECs.
31756 (canon_modify_mem_list, compute_transp): Tweak formatting.
31757 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
31758 (load_killed_in_block_p): Likewise.
31759 (record_last_mem_set_info): Likewise.
31760 (clear_modify_mem_tables): Likewise.
31761
31762 2011-04-05 Tom de Vries <tom@codesourcery.com>
31763
31764 PR middle-end/48461
31765 * function.c (emit_use_return_register_into_block): Only define if
31766 HAVE_return.
31767
31768 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
31769
31770 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
31771
31772 2011-04-05 Joseph Myers <joseph@codesourcery.com>
31773
31774 * config/rx/rx-opts.h: New.
31775 * config/rx/rx.c (rx_cpu_type): Remove.
31776 (rx_handle_option): Don't assert that global structures are in
31777 use. Access variables via opts pointer. Defer most handling of
31778 OPT_mint_register_. Use error_at.
31779 (rx_option_override): Handle deferred OPT_mint_register_ here.
31780 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
31781 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
31782 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
31783 (rx_cpu_types): New Enum and EnumValue entries.
31784 (mint-register=): Use Defer and use Var accordingly.
31785
31786 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
31787
31788 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
31789 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
31790 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
31791 Move these...
31792 (debug_free_queue, debug_nesting, symbol_queue_index):
31793 ...and these...
31794 * dbxout.c: ...to here. Make static.
31795
31796 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
31797
31798 * gcse.c (modify_pair): Define. Define a VEC of it.
31799 (canon_modify_mem_list): Convert to an array of VECs.
31800 (free_insn_expr_list_list): Delete.
31801 (clear_modify_mem_tables): Call VEC_free instead.
31802 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
31803 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
31804 (canon_list_insert, compute_transp): Likewise.
31805
31806 2011-04-05 Tom de Vries <tom@codesourcery.com>
31807
31808 PR target/43920
31809 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
31810 for size.
31811
31812 2011-04-05 Tom de Vries <tom@codesourcery.com>
31813
31814 PR target/43920
31815 * function.c (emit_use_return_register_into_block): New function.
31816 (thread_prologue_and_epilogue_insns): Use
31817 emit_use_return_register_into_block.
31818
31819 2011-04-05 Tom de Vries <tom@codesourcery.com>
31820
31821 PR target/43920
31822 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
31823 insn.
31824
31825 2011-04-05 Tom de Vries <tom@codesourcery.com>
31826
31827 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
31828
31829 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
31830
31831 * config/arm/arm.md (define_constants for unspec): Replace with
31832 define_c_enum.
31833 (define_constants for unspecv): Replace with define_c_enum.
31834 * config/arm/neon.md (define_constants for unspec): Replace with
31835 define_c_enum.
31836
31837 2011-04-04 Richard Henderson <rth@redhat.com>
31838
31839 PR bootstrap/48400
31840 * dwarf2out.c (output_line_info): Always emit line info from
31841 at least one section.
31842 (dwarf2out_init): Create text_section_line_info here ...
31843 (set_cur_line_info_table): ... not here.
31844
31845 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
31846
31847 PR target/48380
31848 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
31849 not called.
31850
31851 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
31852
31853 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
31854
31855 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
31856 (expr_equiv_p): Remove.
31857 (insert_set_in_table): Look at <dest, src> pair instead of expr.
31858 (hash_scan_set): Update call to insert_set_in_table.
31859 (dump_hash_table): Dump <dest, src> pair.
31860 (lookup_set): Simplify. Lookup <dest, src> pair.
31861 (compute_transp): Remove, fold heavily simplified code into...
31862 (compute_local_properties): ...here. Expect COMP and TRANSP
31863 unconditionally.
31864 (find_avail_set): Take set directly from struct expr.
31865 (find_bypass-set): Likewise.
31866 (bypass_block): Likewise.
31867 (cprop_insn): Likewise. Remove redundant INSN_P test.
31868
31869 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
31870 checks on form of COND from find_implicit_sets to here.
31871 (find_implicit_sets): Cleanup control flow. Split critical edges
31872 if it exposes implicit sets. Allocate/resize implicit_sets as
31873 necessary.
31874 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
31875 changed something. Run df_analyze after find_implicit_sets if any
31876 edges were split. Do not allocate implicit_sets here.
31877
31878 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
31879 (gcse_obstack): Renamed to cprop_obstack.
31880 (GNEW, GNEWVEC, GNEWVAR): Remove.
31881 (gmalloc): Remove.
31882 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
31883 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
31884 (gcse_alloc): Likewise, and rename to cprop_alloc.
31885 (alloc_gcse_men, free_gcse_mem): Remove.
31886 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
31887 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
31888 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
31889
31890 * cprop.c (oprs_not_set_p): Remove.
31891 (mark_set, mark_clobber): Remove.
31892 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
31893 (reg_not_set_p): New function.
31894 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
31895 (cprop_insn): Likewise.
31896 (cprop_jump): Use FOR_EACH_EDGE.
31897
31898 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
31899
31900 PR bootstrap/48403
31901 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
31902 (rank_for_schedule): Use scheduled_insns vector instead of
31903 last_scheduled_insn.
31904 (ok_for_early_queue_removal): Likewise.
31905 (queue_to_ready): Search forward in nonscheduled_insns_begin if
31906 we have a dbg_cnt.
31907 (choose_ready): Likewise.
31908 (commit_schedule): Use VEC_iterate.
31909 (schedule_block): Initialize nonscheduled_insns_begin. If we have
31910 a dbg_cnt, use it and ensure the first insn is in the ready list.
31911 (haifa_sched_init): Allocate scheduled_insns.
31912 (sched_extend_ready_list): Don't allocate it; reserve space.
31913 (haifa_sched_finish): Free it.
31914
31915 2011-04-04 Joseph Myers <joseph@codesourcery.com>
31916
31917 * optc-gen.awk: Always remove type from Variable entry before
31918 recording in var_seen.
31919
31920 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
31921
31922 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
31923 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
31924 call to tidy_fallthru_edges.
31925
31926 2011-04-04 Joseph Myers <joseph@codesourcery.com>
31927
31928 * doc/options.texi (ToLower): Document.
31929 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
31930 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
31931 * opts.h (cl_option): Add cl_tolower field.
31932 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
31933 arguments with lowercase strings.
31934 * config/rx/rx.opt (mcpu=): Add ToLower.
31935 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
31936 argument.
31937
31938 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
31939
31940 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
31941
31942 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
31943
31944 * config/vax/vax.c: Include reload.h.
31945
31946 2011-04-04 Anatoly Sokolov <aesok@post.ru>
31947
31948 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
31949 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
31950 (sparc_preferred_reload_class): New function.
31951
31952 2011-04-04 Jakub Jelinek <jakub@redhat.com>
31953
31954 PR debug/48401
31955 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
31956 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
31957
31958 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
31959
31960 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
31961 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
31962
31963 2011-04-03 Anatoly Sokolov <aesok@post.ru>
31964
31965 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
31966 (ASM_OUTPUT_ALIGNED_BSS): Define.
31967
31968 2011-04-03 Michael Matz <matz@suse.de>
31969
31970 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
31971 and next_slot members.
31972 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
31973 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
31974 (lto_streamer_cache_append): Declare.
31975 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
31976 unsigned index, remove offset parameter, ensure that we append
31977 or update existing entries.
31978 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
31979 parameter, update next_slot for append.
31980 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
31981 parameter.
31982 (lto_streamer_cache_insert_at): Likewise.
31983 (lto_streamer_cache_append): New function.
31984 (lto_streamer_cache_lookup): Use unsigned index.
31985 (lto_streamer_cache_get): Likewise.
31986 (lto_record_common_node): Don't test tree_node_can_be_shared.
31987 (preload_common_node): Adjust call to lto_streamer_cache_insert.
31988 (lto_streamer_cache_delete): Don't free offsets member.
31989 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
31990 (lto_output_string_with_length): Use lto_output_data_stream.
31991 (lto_output_tree_header): Remove ix parameter, don't write it.
31992 (lto_output_builtin_tree): Likewise.
31993 (lto_write_tree): Adjust callers to above, don't track and write
31994 offset, write unsigned index.
31995 (output_unreferenced_globals): Don't emit all global vars.
31996 (write_global_references): Use unsigned indices.
31997 (lto_output_decl_state_refs): Likewise.
31998 (write_symbol): Likewise.
31999 * lto-streamer-in.c (lto_input_chain): Move earlier.
32000 (input_function): Use unsigned index.
32001 (input_alias_pairs): Don't read and then ignore all global vars.
32002 (lto_materialize_tree): Remove ix_p parameter, don't read index,
32003 don't pass it back, use lto_streamer_cache_append.
32004 (lto_register_var_decl_in_symtab): Use unsigned index.
32005 (lto_register_function_decl_in_symtab): Likewise.
32006 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
32007 index.
32008 (lto_get_builtin_tree): Don't read index, use
32009 lto_streamer_cache_append.
32010 (lto_read_tree): Adjust call to lto_materialize_tree.
32011
32012 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
32013 don't use function calls in arguments to MIN.
32014
32015 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
32016 twice.
32017
32018 * gimple.c (gimple_type_leader_entry): Mark deletable.
32019
32020 2011-04-03 Alan Modra <amodra@gmail.com>
32021
32022 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
32023
32024 2011-04-03 Michael Matz <matz@suse.de>
32025
32026 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
32027 an integer.
32028 * tree.h (tree_decl_non_common.vindex): Adjust comment.
32029
32030 2011-04-03 Michael Matz <matz@suse.de>
32031
32032 * cgraphbuild.c (record_reference): Canonicalize constructor values.
32033 * gimple-fold.c (canonicalize_constructor_val): Accept being called
32034 without function context.
32035 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
32036 current_function_decl and cfun.
32037
32038 2011-04-03 Michael Matz <matz@suse.de>
32039
32040 * tree.c (decl_init_priority_insert): Don't create entry for
32041 default priority.
32042 (decl_fini_priority_insert): Ditto.
32043 (fields_compatible_p, find_compatible_field): Remove.
32044 * tree.h (fields_compatible_p, find_compatible_field): Remove.
32045 * gimple.c (gimple_compare_field_offset): Adjust block comment.
32046
32047 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
32048
32049 * combine.c (try_combine): Remove useless local variable.
32050
32051 2011-04-03 Richard Guenther <rguenther@suse.de>
32052 Ira Rosen <ira.rosen@linaro.org>
32053
32054 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
32055 non-variable offsets and compare the remaining bases of the two
32056 accesses instead of looking for exact same data-ref.
32057
32058 2011-04-02 Kai Tietz <ktietz@redhat.com>
32059
32060 PR target/48416
32061 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
32062
32063 * i386.c (ix86_is_msabi_thiscall): New helper function.
32064 (ix86_is_type_thiscall): New helper function.
32065 (ix86_comp_type_attributes): Handle thiscall for method-functions
32066 special.
32067 (init_cumulative_args): Likewise.
32068 (find_drap_reg): Likewise.
32069 (ix86_static_chain): Likewise.
32070 (x86_this_parameter): Likewise.
32071 (x86_output_mi_thunk): Likewise.
32072
32073 2011-04-01 Olivier Hainque <hainque@adacore.com>
32074 Nicolas Setton <setton@adacore.com>
32075 Eric Botcazou <ebotcazou@adacore.com>
32076
32077 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
32078 (add_gnat_descriptive_type_attribute): New function.
32079 (gen_array_type_die): Call it.
32080 (gen_enumeration_type_die): Likewise.
32081 (gen_struct_or_union_type_die): Likewise.
32082 (modified_type_die): Likewise.
32083 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
32084 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
32085 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
32086
32087 2011-04-01 Jakub Jelinek <jakub@redhat.com>
32088
32089 PR bootstrap/48148
32090 * dwarf2out.c (resolve_addr): Don't call force_decl_die
32091 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
32092
32093 Revert:
32094 2011-03-17 Richard Guenther <rguenther@suse.de>
32095
32096 PR bootstrap/48148
32097 * lto-cgraph.c (input_overwrite_node): Clear the abstract
32098 origin for decls in other ltrans units.
32099 (input_varpool_node): Likewise.
32100
32101 2011-04-01 Jakub Jelinek <jakub@redhat.com>
32102
32103 PR middle-end/48335
32104 * expr.c (expand_assignment): Handle all possibilities
32105 if TO_RTX is CONCAT.
32106 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
32107 (store_split_bit_field): If SUBREG_REG (op0) or
32108 op0 itself has smaller mode than word, return it
32109 for offset 0 and const0_rtx for out-of-bounds stores.
32110 If word is const0_rtx, skip it.
32111
32112 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
32113
32114 * config/h8300/h8300.c (print_operand_address): Rename to...
32115 (h8300_print_operand_address): ...this. Make static. Adjust comments.
32116 Call h8300_print_operand and h8300_print_operand_address instead of
32117 print_operand and print_operand_address. Declare.
32118 (print_operand): Renake to...
32119 (h8300_print_operand): ...this. Make static. Adjust comments.
32120 Call h8300_print_operand instead of print_operand. Declare.
32121 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
32122 (h8300_register_move_cost): Likewise.
32123 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
32124 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
32125 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
32126 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
32127 * config/h8300/h8300-protos.h (print_operand): Delete.
32128 (print_operand_address): Delete.
32129
32130 2011-04-01 Richard Henderson <rth@redhat.com>
32131
32132 PR 48400
32133 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
32134 in strict mode before dwarf4. Re-order tests to early out
32135 before switching sections.
32136
32137 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
32138
32139 * config/h8300/constraints.md: New file.
32140 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
32141 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
32142 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
32143 * config/h8300/predicates.md (bit_operand): Likewise.
32144 (incdec_operand): Use satisfies_constraint_M and
32145 satisfies_constraint_O. Don't use C code block.
32146 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
32147 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
32148 (compute_mov_length): Use satisfies_constraint_G.
32149 (fix_bit_operand): Use satisfies_constraint_U.
32150 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
32151 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
32152 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
32153 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
32154 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
32155 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
32156 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
32157 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
32158 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
32159 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
32160 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
32161 (EXTRA_MEMORY_CONSTRAINT): Delete.
32162
32163 2011-04-01 Andrew Pinski <pinskia@gmail.com>
32164 Michael Meissner <meissner@linux.vnet.ibm.com>
32165
32166 PR target/48262
32167 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
32168 operands, as per the specifications.
32169
32170 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
32171 (vec_extract_evenv4sf): Ditto.
32172 (vec_extract_evenv8hi): Ditto.
32173 (vec_extract_evenv16qi): Ditto.
32174 (vec_extract_oddv4si): Ditto.
32175
32176 2011-03-31 Mark Wielaard <mjw@redhat.com>
32177
32178 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
32179 high_pc attribute if the CU has no associated code. Only output
32180 DW_AT_entry_pc for CU if not generating strict dwarf and
32181 dwarf_version < 4.
32182
32183 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
32184
32185 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
32186 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
32187 out of ...
32188 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
32189 * final.c (final_start_function): Call the new function rather
32190 than using a NULL argument for dwarf2out_frame_debug.
32191
32192 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
32193 that contains the prologue.
32194
32195 * haifa-sched.c (queue_insn): New arg REASON. All callers
32196 changed. Print it in debugging output.
32197
32198 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
32199
32200 * sched-ebb.c (begin_schedule_ready): Remove second argument.
32201 Split most of the code into...
32202 (begin_move_insn): ... here. New function.
32203 (ebb_sched_info): Add a pointer to it.
32204 * haifa-sched.c (scheduled_insns): New static variable.
32205 (sched_extend_ready_list): Allocate it.
32206 (schedule_block): Use it to record the order of scheduled insns.
32207 Perform RTL changes to move insns only after all scheduling
32208 decisions have been made.
32209 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
32210 begin_move_insn field.
32211 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
32212 * sched-int.h (struct haifa_sched_info): Remove second argument
32213 from begin_schedule_ready hook. Add new member begin_move_insn.
32214 * sched-rgn.c (begin_schedule_ready): Remove second argument.
32215 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
32216
32217 * haifa-sched.c (prune_ready_list): New function, broken out of
32218 schedule_block.
32219 (schedule_block): Use it.
32220
32221 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32222
32223 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
32224
32225 2011-04-01 Kai Tietz <ktietz@redhat.com>
32226
32227 * config.gcc (*-*-mingw*): Allow as option the
32228 posix threading model.
32229 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
32230 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
32231 definition.
32232 (CPP_SPEC): Add pthread/no-pthread handling.
32233 (LIB_SPEC): Likewise.
32234 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
32235 (LIB_SPEC): Likewise.
32236 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
32237 flag to pass -pthread option for shared libgcc build.
32238 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
32239 for shared libgcc build.
32240 * config/i386/t-mingw-pthread: New file.
32241 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
32242 New define to enable use of library pthread by default.
32243 * config/i386/mingw.opt (pthread): New driver option.
32244 (no-pthread): New driver option.
32245 * config/i386/cygming.opt: Make sure trailing empty line is retained.
32246 * config/i386/mingw-w64.opt: Likewise.
32247
32248 2011-04-01 Gary Funck <gary@intrepid.com>
32249
32250 * c-decl.c (grokdeclarator): Fix formatting.
32251
32252 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
32253
32254 * expr.c (emit_block_move_via_movmem): Use n_generator_args
32255 instead of n_operands.
32256 (set_storage_via_setmem): Likewise.
32257 * optabs.c (maybe_gen_insn): Likewise.
32258 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
32259 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
32260 (mips_expand_builtin_direct): Likewise.
32261 * config/spu/spu.c (expand_builtin_args): Likewise.
32262
32263 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
32264
32265 * recog.h (insn_data_d): Add n_generator_args.
32266 * genoutput.c (data): Likewise.
32267 (output_insn_data): Print it.
32268 (max_opno, num_dups): Delete.
32269 (scan_operands): Just fill in "d->operand[...]".
32270 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
32271
32272 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
32273
32274 * gensupport.h (pattern_stats): New structure.
32275 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
32276 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
32277 (max_operand_1, max_operand_vec): Delete.
32278 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
32279
32280 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
32281
32282 * emit-rtl.c (emit_pattern_after_setloc): New function.
32283 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
32284 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
32285 (emit_pattern_after): New function.
32286 (emit_insn_after, emit_jump_insn_after): Call it.
32287 (emit_call_insn_after, emit_debug_insn_after): Likewise.
32288 (emit_pattern_before_setloc): New function.
32289 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
32290 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
32291 Likewise.
32292 (emit_pattern_before): New function.
32293 (emit_insn_before, emit_jump_insn_before): Call it.
32294 (emit_call_insn_before, emit_debug_insn_before): Likewise.
32295
32296 2011-03-31 Richard Henderson <rth@redhat.com>
32297
32298 * dwarf2out.c (dw_separate_line_info_ref): Remove.
32299 (dw_separate_line_info_entry): Remove.
32300 (enum dw_line_info_opcode): New.
32301 (dw_line_info_entry): Use it.
32302 (dw_line_info_table, dw_line_info_table_p): New.
32303 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
32304 (line_info_table, line_info_label_num): Remove.
32305 (line_info_table_in_use): Remove.
32306 (separate_line_info_table): Remove.
32307 (separate_line_info_table_allocated): Remove.
32308 (separate_line_info_table_in_use): Remove.
32309 (LINE_INFO_TABLE_INCREMENT): Remove.
32310 (line_info_label_num): New.
32311 (cur_line_info_table): New.
32312 (text_section_line_info, cold_text_section_line_info): New.
32313 (separate_line_info): New.
32314 (SEPARATE_LINE_CODE_LABEL): Remove.
32315 (print_dwarf_line_table): Remove.
32316 (debug_dwarf): Don't dump it.
32317 (output_one_line_info_table): New.
32318 (output_line_info): Use it.
32319 (new_line_info_table): New.
32320 (set_cur_line_info_table): New.
32321 (dwarf2out_switch_text_section): Use it.
32322 (dwarf2out_begin_function): Likewise.
32323 (push_dw_line_info_entry): New.
32324 (dwarf2out_source_line): Rewrite for new line info tables.
32325 (dwarf2out_init): Remove dead initailizations.
32326
32327 2011-03-31 Joseph Myers <joseph@codesourcery.com>
32328
32329 * opts.h (cl_option): Add comments to fields. Add bit-fields for
32330 various flags.
32331 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
32332 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
32333 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
32334 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
32335 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
32336 * opt-functions.awk (flag_init, switch_bit_fields): New.
32337 (switch_flags): Don't handle flags moved to bit-fields. Don't
32338 generate CL_MISSING_OK or CL_SAVE.
32339 * optc-gen.awk: Update to generate bit-field output as well as
32340 flags field.
32341 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
32342 bit-field instead of CL_REJECT_DRIVER flag.
32343 * opts-common.c (generate_canonical_option,
32344 decode_cmdline_option): Use bit-fields instead of CL_* flags.
32345 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
32346 instead of CL_REJECT_NEGATIVE flag.
32347 * toplev.c (print_switch_values): Use cl_report bit-field instead
32348 of CL_REPORT flag.
32349
32350 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
32351
32352 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
32353 a zero minimum index only if it is redundant.
32354
32355 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
32356
32357 PR rtl-optimization/48381
32358 * ira-color.c (assign_hard_reg): Use hard reg set intersection
32359 instead of ira_class_hard_reg_index for calculating conflicting
32360 hard registers.
32361
32362 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
32363
32364 * cprop.c: Clean up hash table building.
32365 (reg_avail_info): Remove.
32366 (oprs_available_p): Remove.
32367 (record_last_reg_set_info): Remove.
32368 (record_last_set_info): Remove.
32369 (reg_available_p): New function.
32370 (gcse_constant_p): Do not treat unfolded conditions as constants.
32371 (make_set_regs_unavailable): New function.
32372 (hash_scan_set): Simplify with new reg_available_p.
32373 (compute_hash_table_work): Traverse insns stream only once.
32374 Do not compute reg_avail_info. Traverse insns in reverse order.
32375 Record implicit sets after recording explicit sets from the block.
32376
32377 2011-03-31 Michael Matz <matz@suse.de>
32378
32379 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
32380
32381 2011-03-31 Anatoly Sokolov <aesok@post.ru>
32382
32383 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
32384 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
32385 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
32386 (h8300_mode_dependent_address_p): New function.
32387 (h8300_get_index): Make static.
32388
32389 2011-03-31 Jeff Law <law@redhat.com>
32390
32391 * reload1.c (elimination_effects): Fix typo in recent change.
32392
32393 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
32394 typo potentially leading to null pointer dereference.
32395
32396 * caller-save.c (new_saved_hard_reg): Eliminate return value.
32397 (setup_save_areas): Corresponding changes to avoid useless
32398 assignments.
32399
32400 * jump.c (reversed_comparison_code_parts): Avoid successive return
32401 statements when REVERSE_CONDITION is defined.
32402
32403 * expr.c (expand_assignment): Avoid useless assignments.
32404 (expand_expr_real_1): Likewise.
32405 (expand_expr_real_2): Avoid useless statements.
32406
32407 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
32408
32409 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
32410
32411 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
32412 statements.
32413
32414 * stmt.c (expand_expr_stmt): Avoid useless assignment.
32415
32416 2011-03-31 Joseph Myers <joseph@codesourcery.com>
32417
32418 PR target/47109
32419 * doc/tm.texi.in (TARGET_VERSION): Remove.
32420 * doc/tm.texi: Regenerate.
32421 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
32422 * collect2.c (main): Don't use TARGET_VERSION.
32423 * mips-tdump.c (main): Don't use TARGET_VERSION.
32424 * mips-tfile.c (main): Don't use TARGET_VERSION.
32425 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
32426 * config/rs6000/vxworksae.h: Remove.
32427 * config/alpha/alpha.h (TARGET_VERSION): Remove.
32428 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
32429 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
32430 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
32431 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
32432 * config/arm/arm.h (TARGET_VERSION): Remove.
32433 * config/arm/coff.h (TARGET_VERSION): Remove.
32434 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
32435 * config/arm/elf.h (TARGET_VERSION): Remove.
32436 * config/arm/freebsd.h (TARGET_VERSION): Remove.
32437 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
32438 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
32439 * config/arm/pe.h (TARGET_VERSION): Remove.
32440 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
32441 * config/arm/semi.h (TARGET_VERSION): Remove.
32442 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
32443 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
32444 * config/arm/vxworks.h (TARGET_VERSION): Remove.
32445 * config/avr/avr.h (TARGET_VERSION): Remove.
32446 * config/bfin/bfin.h (TARGET_VERSION): Remove.
32447 * config/fr30/fr30.h (TARGET_VERSION): Remove.
32448 * config/frv/frv.h (TARGET_VERSION): Remove.
32449 * config/h8300/h8300.h (TARGET_VERSION): Remove.
32450 * config/i386/cygwin.h (TARGET_VERSION): Remove.
32451 * config/i386/darwin.h (TARGET_VERSION): Remove.
32452 * config/i386/darwin64.h (TARGET_VERSION): Remove.
32453 * config/i386/djgpp.h (TARGET_VERSION): Remove.
32454 * config/i386/freebsd.h (TARGET_VERSION): Remove.
32455 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
32456 * config/i386/gnu.h (TARGET_VERSION): Remove.
32457 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
32458 * config/i386/i386elf.h (TARGET_VERSION): Remove.
32459 * config/i386/linux.h (TARGET_VERSION): Remove.
32460 * config/i386/linux64.h (TARGET_VERSION): Remove.
32461 * config/i386/lynx.h (TARGET_VERSION): Remove.
32462 * config/i386/mingw32.h (TARGET_VERSION): Remove.
32463 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
32464 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
32465 * config/i386/netware.h (TARGET_VERSION): Remove.
32466 * config/i386/nto.h (TARGET_VERSION): Remove.
32467 * config/i386/openbsd.h (TARGET_VERSION): Remove.
32468 * config/i386/vxworks.h (TARGET_VERSION): Remove.
32469 * config/ia64/elf.h (TARGET_VERSION): Remove.
32470 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
32471 * config/ia64/hpux.h (TARGET_VERSION): Remove.
32472 * config/ia64/linux.h (TARGET_VERSION): Remove.
32473 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
32474 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
32475 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
32476 * config/lm32/lm32.h (TARGET_VERSION): Remove.
32477 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
32478 * config/m32c/m32c.h (TARGET_VERSION): Remove.
32479 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
32480 * config/m32r/m32r.h (TARGET_VERSION): Remove.
32481 * config/m68k/linux.h (TARGET_VERSION): Remove.
32482 * config/m68k/m68k.h (TARGET_VERSION): Remove.
32483 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
32484 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
32485 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
32486 * config/mep/mep.h (TARGET_VERSION): Remove.
32487 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
32488 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
32489 * config/mips/iris6.h (MACHINE_TYPE): Remove.
32490 * config/mips/linux.h (TARGET_VERSION): Remove.
32491 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
32492 * config/mips/vxworks.h (TARGET_VERSION): Remove.
32493 * config/mmix/mmix.h (TARGET_VERSION): Remove.
32494 * config/mn10300/linux.h (TARGET_VERSION): Remove.
32495 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
32496 * config/pa/pa.h (TARGET_VERSION): Remove.
32497 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
32498 * config/picochip/picochip.h (TARGET_VERSION): Remove.
32499 * config/rs6000/aix.h (TARGET_VERSION): Remove.
32500 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
32501 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
32502 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
32503 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
32504 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
32505 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
32506 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
32507 * config/rs6000/linux.h (TARGET_VERSION): Remove.
32508 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
32509 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
32510 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
32511 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
32512 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
32513 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
32514 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
32515 * config/s390/linux.h (TARGET_VERSION): Remove.
32516 * config/s390/s390.h (TARGET_VERSION): Remove.
32517 * config/s390/tpf.h (TARGET_VERSION): Remove.
32518 * config/score/score.h (TARGET_VERSION): Remove.
32519 * config/sh/linux.h (TARGET_VERSION): Remove.
32520 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
32521 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
32522 * config/sh/sh.h (TARGET_VERSION): Remove.
32523 * config/sh/sh64.h (TARGET_VERSION): Remove.
32524 * config/sh/superh.h (TARGET_VERSION): Remove.
32525 * config/sh/vxworks.h (TARGET_VERSION): Remove.
32526 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
32527 * config/sparc/linux.h (TARGET_VERSION): Remove.
32528 * config/sparc/linux64.h (TARGET_VERSION): Remove.
32529 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
32530 TARGET_NAME32, TARGET_NAME): Remove.
32531 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
32532 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
32533 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
32534 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
32535 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
32536 * config/spu/spu.h (TARGET_VERSION): Remove.
32537 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
32538 * config/v850/v850.h (TARGET_VERSION): Remove.
32539 * config/vax/linux.h (TARGET_VERSION): Remove.
32540 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
32541 * config/xtensa/elf.h (TARGET_VERSION): Remove.
32542 * config/xtensa/linux.h (TARGET_VERSION): Remove.
32543
32544 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
32545
32546 PR target/48142
32547 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
32548 frame-related from frame-unrelated adjustments to the stack pointer.
32549
32550 2011-03-31 Jakub Jelinek <jakub@redhat.com>
32551
32552 * common.opt (fdebug-types-section): Move earlier.
32553 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
32554
32555 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
32556
32557 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
32558 var.
32559
32560 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
32561
32562 * tree.h (CASE_CHAIN): Define.
32563 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
32564 (gimple_redirect_edge_and_branch): Likewise.
32565
32566 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
32567
32568 PR middle-end/48367
32569 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
32570 calculation.
32571
32572 2011-03-30 Jeff Law <law@redhat.com>
32573
32574 * PR bootstrap/48371
32575 * reload1.c (reload): Fix botch in last change.
32576
32577 * reload.h (struct reload): Fix typo introduced in last change.
32578
32579 2011-03-30 Joseph Myers <joseph@codesourcery.com>
32580
32581 * config/arm/arm.opt (mhard-float, msoft-float): Mark
32582 Undocumented. Remove help text.
32583 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
32584 -mhard-float.
32585
32586 2011-03-30 Joseph Myers <joseph@codesourcery.com>
32587
32588 * doc/options.texi (NegativeAlias): Document.
32589 (Alias): Mention NegativeAlias.
32590 * opt-functions.awk: Handle NegativeAlias.
32591 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
32592 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
32593 * opts.h (CL_NEGATIVE_ALIAS): Define.
32594 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
32595 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
32596 OPT_mspe_.
32597 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
32598 Alias entries.
32599 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
32600 mno-spe and mno-isel instead of mspe=no and -misel=no.
32601
32602 2011-03-29 Mark Wielaard <mjw@redhat.com>
32603
32604 * common.opt (fdebug-types-section): New flag.
32605 * doc/invoke.texi: Document new -fno-debug-types-section flag.
32606 * dwarf2out.c (use_debug_types): New define.
32607 (struct die_struct): Mark die_id with GTY desc use_debug_types.
32608 (print_die): Guard output of type unit signatures using
32609 use_debug_types.
32610 (build_abbrev_table): Replace assert of dwarf_version >= 4
32611 with assert on use_debug_types.
32612 (size_of_die): Likewise.
32613 (unmark_dies): Likewise.
32614 (value_format): Decide AT_ref_external form on use_debug_types.
32615 (output_die): Replace dwarf_version version check guard with
32616 use_debug_types where appropriate.
32617 (modified_type_die): Likewise.
32618 (gen_reference_type_die): Likewise.
32619 (dwarf2out_start_source_file): Likewise.
32620 (dwarf2out_end_source_file): Likewise.
32621 (prune_unused_types_walk_attribs): Likewise.
32622 (dwarf2out_finish): Likewise.
32623
32624 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
32625
32626 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
32627
32628 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
32629
32630 PR rtl-optimization/48332
32631 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
32632 mode of input operand N and modeN to its actual mode.
32633
32634 2011-03-30 Jeff Law <law@redhat.com>
32635
32636 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
32637 define accessor macro.
32638 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
32639 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
32640 (reg_equiv_init): Likewise.
32641 (reg_equivs_size): New variable.
32642 (reg_equiv_init_size): Remove.
32643 (allocate_initial_values): Move prototype to here from....
32644 * integrate.h (allocate_initial_values): Remove prototype.
32645 * integrate.c: Include reload.h.
32646 (allocate_initial_values): Corresponding changes.
32647 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
32648 (fix_reg_equiv_init, no_equiv): Corresponding changes.
32649 (update_equiv_regs): Corresponding changes.
32650 (ira): Corresponding changes.
32651 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
32652 (push_secondary_reload): Corresponding changes.
32653 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
32654 (make_memloc, find_reloads_address): Corresponding changes.
32655 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
32656 (find_reloads_address_1): Corresponding changes.
32657 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
32658 (refers_to_regno_for_reload_p): Corresponding changes.
32659 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
32660 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
32661 * reload1.c: Include ggc.h.
32662 (grow_reg_equivs): New function.
32663 (replace_pseudos_in, reload): Corresponding changes.
32664 (calculate_needs_all_insns, alter_regs): Corresponding changes.
32665 (eliminate_regs_1, elimination_effects): Corresponding changes.
32666 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
32667 (delete_output_reload): Likewise.
32668 * caller-save.c (mark_referenced_regs): Corresponding changes.
32669 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
32670 * frv/predicates.md (frv_load_operand): Corresponding changes.
32671 * microblaze/microblaze.c (double_memory_operand): Corresponding
32672 changes.
32673 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
32674 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
32675 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
32676 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
32677 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
32678 changes.
32679 * pa/pa.c (emit_move_sequence): Corresponding changes.
32680 * vax/vax.c (nonindexed_address_p): Corresponding changes.
32681
32682 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
32683
32684 PR target/47551
32685 * config/arm/arm.c (coproc_secondary_reload_class): Handle
32686 structure modes. Don't check neon_vector_mem_operand for
32687 vector or structure modes.
32688
32689 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
32690 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
32691
32692 PR target/43590
32693 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
32694 operand 1 and reshuffle the operands to match.
32695 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
32696
32697 2011-03-30 Christian Schüler <cschueler@gmx.de>
32698
32699 PR driver/48208
32700 * config/c.opt (F): Added 'Driver' to -F option.
32701
32702 PR driver/48260
32703 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
32704 handler function.
32705 * config/darwin.opt: Added '-arch' option.
32706
32707 2011-03-30 Nick Clifton <nickc@redhat.com>
32708
32709 * config/rx/rx.md: Add peepholes and patterns to combine
32710 extending loads and simple arithmetic instructions.
32711 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
32712 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
32713 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
32714 modes to use pre-decrement and post-increment addressing.
32715 (rx_is_restricted_memory_address): Add range checking of REG+INT
32716 addresses.
32717 (rx_print_operand): Add support for %Q. Fix handling of %Q.
32718 (rx_memory_move_cost): Adjust cost of stores.
32719 (rx_adjust_insn_length): New function.
32720
32721 2011-03-30 Jakub Jelinek <jakub@redhat.com>
32722
32723 PR c/48305
32724 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
32725 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
32726 matching arg00/arg01 types.
32727
32728 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
32729
32730 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
32731 last_location to UNKNOWN_LOCATION.
32732
32733 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
32734
32735 PR target/48349
32736 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
32737 FLOAT_SSE_REGS.
32738
32739 2011-03-30 Joseph Myers <joseph@codesourcery.com>
32740 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32741
32742 PR bootstrap/48337
32743 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
32744 Init(PROCESSOR_V7).
32745 (sparc_cpu): Likewise.
32746 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
32747 PROCESSOR_V7.
32748
32749 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
32750
32751 PR target/48336
32752 PR middle-end/48342
32753 PR rtl-optimization/48345
32754 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
32755 hard regs for given mode from profitable regs when doing secondary
32756 allocation.
32757
32758 2011-03-29 Jeff Law <law@redhat.com>
32759
32760 PR bootstrap/48327
32761 * tree-ssa-threadupdate.c (struct redirection_data): Remove
32762 do_not_duplicate field.
32763 (lookup_redirection_data): Corresponding changes.
32764 (create_duplicates): Always create a template block.
32765 (redirect_edges): Remove code which reused the original block
32766 when it was going to become unreachable code.
32767 (thread_block): Don't set do_not_duplicate field.
32768
32769 2011-03-29 Joseph Myers <joseph@codesourcery.com>
32770
32771 * lto-opts.c (register_user_option_p, lto_register_user_option):
32772 Make type argument unsigned.
32773 * lto-streamer.h (lto_register_user_option): Make type argument
32774 unsigned.
32775 * opth-gen.awk: Make CL_* macros unsigned.
32776 * opts-common.c (find_opt): Make lang_mask argument unsigned.
32777 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
32778 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
32779 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
32780 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
32781 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
32782 (find_opt): Make lang_mask argument unsigned.
32783
32784 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
32785
32786 PR rtl-optimization/48331
32787 PR rtl-optimization/48334
32788 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
32789 for any used algorithm.
32790
32791 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
32792
32793 * ira-conflicts.c (build_object_conflicts): Add unused attribute
32794 to parent_max.
32795
32796 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
32797
32798 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
32799 (alpha_option_override): Don't set alpha_sr_alias_set.
32800 (emit_frame_store_1): Use gen_frame_mem rather than calling
32801 set_mem_alias_set.
32802 (alpha_expand_epilogue): Ditto.
32803
32804 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
32805
32806 PR tree-optimization/48290
32807 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
32808 vectorization, check that relevant phis in the basic block after
32809 the inner loop are really inner loop's exit phis.
32810
32811 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
32812
32813 PR debug/48190
32814 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
32815 (cached_dw_loc_list_def): New structure.
32816 (cached_dw_loc_list): New typedef.
32817 (cached_dw_loc_list_table): New variable.
32818 (cached_dw_loc_list_table_hash): New function.
32819 (cached_dw_loc_list_table_eq): Likewise.
32820 (add_location_or_const_value_attribute): Take a bool cache_p.
32821 Cache the list when the parameter is true.
32822 (gen_formal_parameter_die): Update caller.
32823 (gen_variable_die): Likewise.
32824 (dwarf2out_finish): Likewise.
32825 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
32826 while generating debug info for the decl.
32827 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
32828 (dwarf2out_init): Initialize cached_dw_loc_list_table.
32829 (resolve_addr): Cache the result of resolving a chain of
32830 location lists.
32831
32832 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
32833
32834 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
32835 conflict object hard regset nodes have intersecting hard reg sets.
32836
32837 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
32838 after regstat_init_n_sets_and_refs.
32839
32840 * ira.c: Add more comments at the top.
32841 (setup_stack_reg_pressure_class, setup_pressure_classes):
32842 Add comments how we compute the register pressure classes.
32843 (setup_allocno_and_important_classes): Add more comments.
32844 (setup_class_translate_array, reorder_important_classes)
32845 (setup_reg_class_relations): Add comments.
32846
32847 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
32848 start of the file.
32849
32850 * ira-color.c: Add 2011 to the Copyright line.
32851 (assign_hard_reg): Add more comments.
32852 (improve_allocation): Ditto.
32853
32854 * ira-costs.c: Add 2011 to the Copyright line.
32855 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
32856 comments.
32857 (setup_regno_cost_classes_by_mode): Ditto.
32858
32859 Initial patches from ira-improv branch:
32860
32861 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
32862
32863 * ira-build.c (ira_create_object): Remove initialization of
32864 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
32865 (ira_create_allocno): Remove initialization of
32866 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
32867 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
32868 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
32869 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
32870 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
32871 Initialize ALLOCNO_ADD_DATA.
32872 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
32873 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
32874 ALLOCNO_REG.
32875 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
32876 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
32877
32878 * ira.c (ira_reallocate): Remove.
32879 (setup_pressure_classes): Call
32880 ira_init_register_move_cost_if_necessary. Use
32881 ira_register_move_cost instead of ira_get_register_move_cost.
32882 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
32883 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
32884
32885 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
32886 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
32887 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
32888 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
32889 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
32890 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
32891 Fix formatting.
32892 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
32893 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
32894 (struct allocno_color_data): New.
32895 (allocno_color_data_t): New typedef.
32896 (allocno_color_data): New definition.
32897 (ALLOCNO_COLOR_DATA): New macro.
32898 (struct object_color_data): New.
32899 (object_color_data_t): New typedef.
32900 (object_color_data): New definition.
32901 (OBJECT_COLOR_DATA): New macro.
32902 (update_copy_costs, calculate_allocno_spill_cost): Call
32903 ira_init_register_move_cost_if_necessary. Use
32904 ira_register_move_cost instead of ira_get_register_move_cost.
32905 (move_spill_restore, update_curr_costs): Ditto.
32906 (allocno_spill_priority): Make it inline.
32907 (color_pass): Allocate and free allocno_color_dat and object_color_data.
32908 (struct coalesce_data, coalesce_data_t): New.
32909 (allocno_coalesce_data): New definition.
32910 (ALLOCNO_COALESCE_DATA): New macro.
32911 (merge_allocnos, coalesced_allocno_conflict_p): Use
32912 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
32913 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
32914 (coalesce_allocnos): Ditto.
32915 (setup_coalesced_allocno_costs_and_nums): Ditto.
32916 (collect_spilled_coalesced_allocnos): Ditto.
32917 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
32918 (setup_slot_coalesced_allocno_live_ranges): Ditto.
32919 (coalesce_spill_slots): Ditto.
32920 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
32921 free allocno_coalesce_data.
32922
32923 * ira-conflicts.c: Fix formatting.
32924 (process_regs_for_copy): Call
32925 ira_init_register_move_cost_if_necessary. Use
32926 ira_register_move_cost instead of ira_get_register_move_cost.
32927 (build_object_conflicts): Optimize.
32928
32929 * ira-costs.c (record_reg_classes): Optimize. Call
32930 ira_init_register_move_cost_if_necessary. Use
32931 ira_register_move_cost, ira_may_move_in_cost, and
32932 ira_may_move_out_cost instead of ira_get_register_move_cost and
32933 ira_get_may_move_cost.
32934 (record_address_regs): Ditto.
32935 (scan_one_insn): Optimize.
32936 (find_costs_and_classes): Optimize.
32937 (process_bb_node_for_hard_reg_moves): Call
32938 ira_init_register_move_cost_if_necessary. Use
32939 ira_register_move_cost instead of ira_get_register_move_cost.
32940
32941 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
32942 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
32943 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
32944 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
32945 definitions.
32946 (ira_initiate_emit_data, ira_finish_emit_data)
32947 (create_new_allocno): New functions.
32948 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
32949 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
32950 Use ira_register_move_cost instead of ira_get_register_move_cost.
32951
32952 * ira-int.h: Fix some comments.
32953 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
32954 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
32955 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
32956 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
32957 add_data.
32958 (struct ira_allocno): Make mode and aclass a bitfield. Move other
32959 bitfield after mode. Make hard_regno a short int. Make
32960 hard_regno short. Remove first_coalesced_allocno and
32961 next_coalesced_allocno. Move mem_optimized_dest_p,
32962 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
32963 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
32964 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
32965 temp, colorable_p. Add new member add_data.
32966 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
32967 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
32968 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
32969 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
32970 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
32971 (ALLOCNO_ADD_DATA): New macro.
32972 (ira_emit_data_t): New typedef.
32973 (struct ira_emit_data): New. Move mem_optimized_dest_p,
32974 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
32975 from struct ira_allocno.
32976 (ALLOCNO_EMIT_DATA): New macro.
32977 (ira_allocno_emit_data, allocno_emit_reg): New.
32978 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
32979 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
32980 (OBJECT_ADD_DATA): New macro.
32981 (ira_reallocate): Remove.
32982 (ira_initiate_emit_data, ira_finish_emit_data): New.
32983 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
32984 (ira_init_register_move_cost_if_necessary): New.
32985 (ira_object_conflict_iter_next): Merge into
32986 ira_object_conflict_iter_cond.
32987 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
32988
32989 * ira-live.c (process_single_reg_class_operands): Call
32990 ira_init_register_move_cost_if_necessary. Use
32991 ira_register_move_cost instead of ira_get_register_move_cost.
32992
32993 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
32994
32995 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
32996
32997 * ira-costs.c: Fix formatting.
32998 (cost_classes, cost_classes_num): Remove.
32999 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
33000 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
33001 (cost_classes_del, cost_classes_htab): New.
33002 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
33003 (initiate_regno_cost_classes, setup_cost_classes): New.
33004 (setup_regno_cost_classes_by_aclass): New.
33005 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
33006 (record_reg_classes): Use regno_cost_classes instead of
33007 cost_classes. Move checking opposite operand up.
33008 (record_address_regs): Use regno_cost_classes
33009 instead of cost_classes.
33010 (scan_one_insn): Ditto. Use always general register.
33011 (print_allocno_costs): Use regno_cost_classes instead of
33012 cost_classes.
33013 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
33014 (find_costs_and_classes): Set up cost classes for each registers.
33015 Use also their mode for this. Use regno_cost_classes instead of
33016 cost_classes.
33017 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
33018 cost_classes.
33019 (free_ira_costs, ira_init_costs): Don't use cost_classes.
33020 (ira_costs, ira_set_pseudo_classes): Call
33021 initiate_regno_cost_classes and finish_regno_cost_classes.
33022
33023 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
33024
33025 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
33026
33027 * target.def (ira_cover_classes): Remove.
33028
33029 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
33030
33031 * doc/tm.texi.in: Ditto.
33032
33033 * ira-conflicts.c: Remove mentioning cover classes from the file.
33034 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
33035 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
33036
33037 * targhooks.c (default_ira_cover_classes): Remove.
33038
33039 * targhooks.h (default_ira_cover_classes): Ditto.
33040
33041 * haifa-sched.c: Remove mentioning cover classes from the file.
33042 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
33043 ira_pressure_classes and ira_pressure_classes_num instead of
33044 ira_reg_class_cover_size and ira_reg_class_cover. Use
33045 sched_regno_pressure_class instead of sched_regno_cover_class.
33046 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
33047 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
33048
33049 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
33050 classes from the file.
33051 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
33052 (struct object_hard_regs, struct object_hard_regs_node): New.
33053 (struct ira_object): New members profitable_hard_regs,
33054 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
33055 (struct ira_allocno): Rename cover_class to aclass. Rename
33056 cover_class_cost and updated_cover_class_cost to class_cost and
33057 updated_class_cost. Remove splay_removed_p and
33058 left_conflict_size. Add new members colorable_p.
33059 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
33060 (ALLOCNO_COLORABLE_P): New macro.
33061 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
33062 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
33063 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
33064 (OBJECT_...): Rename parameter C to O.
33065 (OBJECT_PROFITABLE_HARD_REGS): New macro.
33066 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
33067 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
33068 (struct target_ira_int): New members x_ira_max_memory_move_cost,
33069 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
33070 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
33071 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
33072 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
33073 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
33074 x_ira_reg_class_subunion.
33075 (ira_max_memory_move_cost, ira_max_register_move_cost)
33076 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
33077 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
33078 (ira_important_class_nums, ira_reg_class_superunion): New macros.
33079 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
33080 (ira_reg_class_union): Rename to ira_reg_class_subunion.
33081 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
33082 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
33083 (ira_tune_allocno_costs_and_cover_classes): Rename to
33084 ira_tune_allocno_costs.
33085 (ira_debug_hard_regs_forest): New.
33086 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
33087 (ira_object_conflict_iter_next): Fix comments.
33088 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
33089 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
33090 cover_class to aclass.
33091 (ira_allocate_and_accumulate_costs): Ditto.
33092 (ira_allocate_and_set_or_copy_costs): Ditto.
33093
33094 * opts.c (decode_options): Remove ira_cover_class check.
33095
33096 * ira-color.c: Remove mentioning cover classes from the file. Use
33097 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
33098 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
33099 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
33100 (splay-tree.h): Remove include.
33101 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
33102 before copy_freq_compare_func.
33103 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
33104 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
33105 New definitions.
33106 (hard_regs_roots, hard_regs_node_vec): Ditto.
33107 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
33108 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
33109 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
33110 (create_new_object_hard_regs_node): Ditto.
33111 (add_new_object_hard_regs_node_to_forest): Ditto.
33112 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
33113 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
33114 Ditto.
33115 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
33116 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
33117 (remove_unused_object_hard_regs_nodes): Ditto.
33118 (enumerate_object_hard_regs_nodes): Ditto.
33119 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
33120 (object_hard_regs_subnode_t): Ditto.
33121 (struct object_hard_regs_subnode): Ditto.
33122 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
33123 (setup_object_hard_regs_subnode_index): Ditto.
33124 (get_object_hard_regs_subnodes_num): Ditto.
33125 (form_object_hard_regs_nodes_forest): Ditto.
33126 (finish_object_hard_regs_nodes_tree): Ditto.
33127 (finish_object_hard_regs_nodes_forest): Ditto.
33128 (allocnos_have_intersected_live_ranges_p): Rename to
33129 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
33130 (pseudos_have_intersected_live_ranges_p): Rename to
33131 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
33132 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
33133 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
33134 (update_copy_costs): Remove assert. Skip cost update if the hard
33135 reg does not belong the class.
33136 (assign_hard_reg): Process only profitable hard regs.
33137 (uncolorable_allocnos_num): Make it scalar.
33138 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
33139 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
33140 and ira_reg_class_max_nregs.
33141 (bucket_allocno_compare_func): Check frequency first.
33142 (sort_bucket): Add compare function as a parameter.
33143 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
33144 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
33145 (push_allocno_to_stack): Rewrite for checking new allocno
33146 colorability.
33147 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
33148 (push_only_colorable): Pass new parameter to sort_bucket.
33149 (push_allocno_to_spill): Remove.
33150 (allocno_spill_priority_compare): Make it inline and rewrite.
33151 (splay_tree_allocate, splay_tree_free): Remove.
33152 (allocno_spill_sort_compare): New function.
33153 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
33154 build and use splay tree. Choose first allocno in uncolorable
33155 allocno bucket to spill. Remove setting spill cost.
33156 (all_conflicting_hard_regs): Remove.
33157 (setup_allocno_available_regs_num): Check only profitable hard
33158 regs. Print info about hard regs nodes.
33159 (setup_allocno_left_conflicts_size): Remove.
33160 (put_allocno_into_bucket): Don't call
33161 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
33162 (improve_allocation): New.
33163 (color_allocnos): Call setup_profitable_hard_regs,
33164 form_object_hard_regs_nodes_forest, improve_allocation,
33165 finish_object_hard_regs_nodes_forest. Setup spill cost.
33166 (print_loop_title): Use pressure classes.
33167 (color_allocnso): Ditto.
33168 (do_coloring): Remove allocation and freeing splay_tree_node_pool
33169 and allocnos_for_spilling.
33170 (ira_sort_regnos_for_alter_reg): Don't setup members
33171 {first,next}_coalesced_allocno.
33172 (color): Remove allocating and freeing removed_splay_allocno_vec.
33173 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
33174 prohibited_class_mode_regs.
33175
33176 * ira-lives.c: Remove mentioning cover classes from the file. Fix
33177 formatting.
33178 (update_allocno_pressure_excess_length): Use pressure classes.
33179 (inc_register_pressure, dec_register_pressure): Check for pressure
33180 class.
33181 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
33182 pressure class. Use ira_reg_class_nregs instead of
33183 ira_reg_class_max_nregs.
33184 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
33185 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
33186 (single_reg_class): Use ira_reg_class_nregs instead of
33187 ira_reg_class_max_nregs.
33188 (process_bb_node_lives): Use pressure classes.
33189
33190 * ira-emit.c: Remove mentioning cover classes from the file. Use
33191 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
33192 (change_loop): Use pressure classes.
33193 (modify_move_list): Call ira_set_allocno_class instead of
33194 ira_set_allocno_cover_class.
33195
33196 * ira-build.c: Remove mentioning cover classes from the file. Use
33197 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
33198 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
33199 ALLOCNO_UPDATED_CLASS_COST instead of
33200 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
33201 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
33202 (ira_create_allocno): Remove initialization of
33203 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
33204 ALLOCNO_COLORABLE_P.
33205 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
33206 Update conflict regs for the objects.
33207 (create_cap_allocno): Remove assert. Don't propagate
33208 ALLOCNO_AVAILABLE_REGS_NUM.
33209 (ira_free_allocno_costs): New function.
33210 (finish_allocno): Change a part of code into call of
33211 ira_free_allocno_costs.
33212 (low_pressure_loop_node_p): Use pressure classes.
33213 (object_range_compare_func): Don't compare classes.
33214 (setup_min_max_conflict_allocno_ids): Ditto.
33215
33216 * loop-invariant.c: Remove mentioning cover classes from the file.
33217 Use ira_pressure_classes and ira_pressure_classes_num instead of
33218 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
33219 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
33220 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
33221 Use reg_allocno_class instead of reg_cover_class.
33222 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
33223 STACK_REG_COVER_CLASS.
33224 (get_regno_cover_class): Rename to get_regno_pressure_class.
33225 (move_loop_invariants): Initialize and finalize regstat.
33226
33227 * ira.c: Remove mentioning cover classes from the file. Add
33228 comments about coloring without cover classes. Use ALLOCNO_CLASS
33229 instead of ALLOCNO_COVER_CLASS. Fix formatting.
33230 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
33231 setup_class_subset_and_memory_move_costs.
33232 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
33233 (setup_cover_and_important_classes): Rename to
33234 setup_allocno_and_important_classes.
33235 (setup_class_translate_array): New.
33236 (setup_class_translate): Call it for allocno and pressure classes.
33237 (cover_class_order): Rename to allocno_class_order.
33238 (comp_reg_classes_func): Use ira_allocno_class_translate instead
33239 of ira_class_translate.
33240 (reorder_important_classes): Set up ira_important_class_nums.
33241 (setup_reg_class_relations): Set up ira_reg_class_superunion.
33242 (print_class_cover): Rename to print_classes. Add parameter.
33243 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
33244 Print pressure classes too.
33245 (find_reg_class_closure): Rename to find_reg_classes. Don't call
33246 setup_reg_subclasses.
33247 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
33248 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
33249 (setup_prohibited_class_mode_regs): Use
33250 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
33251 (clarify_prohibited_class_mode_regs): New function.
33252 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
33253 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
33254 (ira_init_once): Initialize them.
33255 (free_register_move_costs): Process them.
33256 (ira_init): Move calls of find_reg_classes and
33257 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
33258 Call clarify_prohibited_class_mode_regs.
33259 (ira_no_alloc_reg): Remove.
33260 (too_high_register_pressure_p): Use pressure classes.
33261
33262 * sched-deps.c: Remove mentioning cover classes from the file.
33263 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
33264 ira_pressure_classes and ira_pressure_classes_num instead of
33265 ira_reg_class_cover_size and ira_reg_class_cover.
33266 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
33267 sched_regno_pressure_class instead of sched_regno_cover_class.
33268 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
33269 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
33270
33271 * ira.h: Add 2010 to Copyright.
33272 (ira_no_alloc_reg): Remove external.
33273 (struct target_ira): Rename x_ira_hard_regno_cover_class,
33274 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
33275 x_ira_class_translate to x_ira_hard_regno_allocno_class,
33276 x_ira_allocno_classes_num, x_ira_allocno_classes, and
33277 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
33278 x_ira_pressure_classes, x_ira_pressure_class_translate, and
33279 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
33280 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
33281 x_ira_no_alloc_regs.
33282 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
33283 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
33284 ira_allocno_classes_num and ira_allocno_classes.
33285 (ira_class_translate): Rename to ira_allocno_class_translate.
33286 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
33287 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
33288 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
33289 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
33290 (ira_no_alloc_regs): New.
33291
33292 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
33293 classes from the file. Use ALLOCNO_CLASS instead of
33294 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
33295 ALLOCNO_COVER_CLASS_COST.
33296 (regno_cover_class): Rename to regno_aclass.
33297 (record_reg_classes): Use ira_reg_class_subunion instead of
33298 ira_reg_class_union.
33299 (record_address_regs): Check overflow.
33300 (scan_one_insn): Ditto.
33301 (print_allocno_costs): Print total mem cost fore regional allocation.
33302 (print_pseudo_costs): Use REG_N_REFS.
33303 (find_costs_and_classes): Use classes intersected with them on the
33304 1st pass. Check overflow. Use ira_reg_class_subunion instead of
33305 ira_reg_class_union. Use ira_allocno_class_translate and
33306 regno_aclass instead of ira_class_translate and regno_cover_class.
33307 Modify code for finding regno_aclass. Setup preferred classes for
33308 the next pass.
33309 (setup_allocno_cover_class_and_costs): Rename to
33310 setup_allocno_class_and_costs. Use regno_aclass instead of
33311 regno_cover_class. Use ira_set_allocno_class instead of
33312 ira_set_allocno_cover_class.
33313 (init_costs, finish_costs): Use regno_aclass instead of
33314 regno_cover_class.
33315 (ira_costs): Use setup_allocno_class_and_costs instead of
33316 setup_allocno_cover_class_and_costs.
33317 (ira_tune_allocno_costs_and_cover_classes): Rename to
33318 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
33319 by processing objects. Use ira_reg_class_max_nregs instead of
33320 ira_reg_class_nregs.
33321
33322 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
33323
33324 * sched-int.h: Remove mentioning cover classes from the file.
33325 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
33326
33327 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
33328 classes from the file.
33329 (struct reg_pref): Rename coverclass into allocnoclass.
33330 (reg_cover_class): Rename to reg_allocno_class.
33331
33332 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
33333
33334 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
33335
33336 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
33337
33338 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
33339
33340 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
33341
33342 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
33343
33344 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
33345
33346 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
33347
33348 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
33349
33350 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
33351
33352 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
33353 (i386_ira_cover_classes): Ditto.
33354
33355 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
33356
33357 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
33358
33359 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
33360
33361 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
33362
33363 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
33364
33365 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
33366
33367 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
33368 (mips_ira_cover_classes): Ditto.
33369
33370 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
33371
33372 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
33373
33374 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
33375
33376 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
33377
33378 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
33379
33380 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
33381 (IRA_COVER_CLASSES_VSX): Ditto.
33382
33383 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
33384 (rs6000_ira_cover_classes): Ditto.
33385
33386 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
33387
33388 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
33389
33390 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
33391
33392 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
33393
33394 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
33395
33396 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
33397
33398 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
33399
33400 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
33401
33402 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
33403
33404 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
33405
33406 2011-03-29 Jakub Jelinek <jakub@redhat.com>
33407
33408 PR debug/48253
33409 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
33410 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
33411 dw_fde_unlikely_section_end_label, cold_in_std_section,
33412 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
33413 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
33414 fields.
33415 (output_fde): Use dw_fde_second_{begin,end} if second is
33416 true, otherwise dw_fde_{begin,end}.
33417 (output_call_frame_info): Test dw_fde_second_begin != NULL
33418 instead of dw_fde_switched_sections.
33419 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
33420 fields, initialize new fields. Initialize in_std_section
33421 unconditionally from the first partition.
33422 (dwarf2out_end_epilogue): Don't override dw_fde_end when
33423 dw_fde_second_begin is non-NULL.
33424 (dwarf2out_switch_text_section): Stop initializing removed
33425 dw_fde_struct fields, initialize new fields, initialize
33426 also dw_fde_end here. Set dw_fde_switch_cfi even when
33427 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
33428 (struct var_loc_list_def): Add last_before_switch field.
33429 (arange_table, arange_table_allocated, arange_table_in_use,
33430 ARANGE_TABLE_INCREMENT, add_arange): Removed.
33431 (size_of_aranges): Count !in_std_section and !second_in_std_section
33432 hunks in fdes, instead of looking at arange_table_in_use.
33433 (output_aranges): Add aranges_length argument, don't call
33434 size_of_aranges here. Instead of using aranges_table*
33435 emit ranges for fdes when !in_std_section resp.
33436 !second_in_std_section.
33437 (dw_loc_list): Break ranges crossing section switch.
33438 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
33439 use dw_fde_second_end instead of dw_fde_end as end of last range.
33440 (gen_subprogram_die): Don't call add_arange. Use
33441 dw_fde_{begin,end} for first partition and if switched
33442 section dw_fde_second_{begin,end} for the second.
33443 (var_location_switch_text_section_1,
33444 var_location_switch_text_section): New functions.
33445 (dwarf2out_begin_function): Initialize cold_text_section even
33446 when function_section () isn't text_section.
33447 (prune_unused_types): Don't walk arange_table.
33448 (dwarf2out_finish): Don't needlessly test
33449 flag_reorder_blocks_and_partition when testing cold_text_section_used.
33450 If info_section_emitted, call size_of_aranges and if it indicates
33451 non-empty .debug_aranges, call output_aranges with the computed
33452 size. Stop using removed dw_fde_struct fields, use
33453 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
33454 for second.
33455
33456 PR debug/48203
33457 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
33458 create ENTRY_VALUE if incoming or address of incoming's MEM
33459 is a hard REG.
33460 * dwarf2out.c (mem_loc_descriptor): Don't emit
33461 DW_OP_GNU_entry_value of DW_OP_fbreg.
33462 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
33463 on ENTRY_VALUE is able to find the canonical parameter VALUE.
33464 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
33465 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
33466 ENTRY_VALUE_EXPs.
33467 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
33468 is a REG_P or MEM_P with REG_P address, compute hash directly
33469 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
33470 (preserve_only_constants): Don't clear VALUES forwaring
33471 ENTRY_VALUE to some other VALUE.
33472
33473 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
33474
33475 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
33476 instead of GEN_INT.
33477
33478 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
33479
33480 * cfgexpand.c (expand_gimple_cond): Always set the source location and
33481 block before expanding the statement.
33482 (expand_gimple_stmt_1): Likewise. Set them here...
33483 (expand_gimple_stmt): ...and not here. Tidy.
33484 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
33485 unknown.
33486
33487 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
33488
33489 * Makefile.in: New rule for cprop.o.
33490 * gcse.c: Move constant/copy propagation to cprop.c.
33491 (compute_local_properties): Only handle expression tables.
33492 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
33493 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
33494 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
33495 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
33496 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
33497 compute_cprop_data, find_used_regs, try_replace_reg,
33498 find_avail_set, cprop_jump, constprop_register, cprop_insn,
33499 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
33500 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
33501 find_bypass_set, reg_killed_on_edge, bypass_block,
33502 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
33503 execute_rtl_cprop, pass_rtl_cprop): Move to...
33504 * cprop.c: ...here. New file, constant/copy propagation for RTL
33505 moved from gcse.c to here with minor cleanups in duplicated code.
33506
33507 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
33508
33509 * config/i386/i386.c (flag_opts): Fix a typo in
33510 -mavx256-split-unaligned-store.
33511
33512 2011-03-28 Anatoly Sokolov <aesok@post.ru>
33513
33514 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
33515 LIBCALL_VALUE): Remove macros.
33516 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
33517 TARGET_FUNCTION_VALUE_REGNO_P): Define.
33518 (h8300_function_value, h8300_libcall_value,
33519 h8300_function_value_regno_p): New functions.
33520
33521 2011-03-28 Anatoly Sokolov <aesok@post.ru>
33522
33523 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
33524
33525 2011-03-28 Jeff Law <law@redhat.com>
33526
33527 * tree-ssa-threadupdate.c (redirect_edges): Call
33528 create_edge_and_update_destination_phis as needed.
33529 (create_edge_and_update_destination_phis): Accept new BB argument.
33530 All callers updated.
33531 (thread_block): Do not update the profile when threading around
33532 intermediate blocks.
33533 (thread_single_edge): Likewise.
33534 (determine_bb_domination_status): If BB is not a successor of the
33535 loop header, return NONDOMINATING.
33536 (register_jump_thread): Note when we register a jump thread around
33537 an intermediate block.
33538 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
33539 (thread_across_edge): Use it.
33540
33541 2011-03-28 Tristan Gingold <gingold@adacore.com>
33542
33543 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
33544 when for_return is 2.
33545
33546 2011-03-28 Jeff Law <law@redhat.com>
33547
33548 * var-tracking.c (canonicalize_values_mark): Delete unused
33549 lhs assignment.
33550 (canonicalize_values_star, set_variable_part): Likewise.
33551 (clobber_variable_part, delete_variable_part): Likewise.
33552
33553 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
33554
33555 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
33556
33557 2011-03-28 Martin Jambor <mjambor@suse.cz>
33558
33559 * tree-inline.c (expand_call_inline): Do not check that destination
33560 node is analyzed.
33561 (optimize_inline_calls): Assert that destination node is analyzed.
33562 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
33563 not call tree_lowering_passes.
33564 * cgraph.h (cgraph_analyze_function): Declare.
33565 * cgraphunit.c (cgraph_analyze_function): Make public.
33566
33567 2011-03-28 Joseph Myers <joseph@codesourcery.com>
33568
33569 * config/sparc/sparc-opts.h: New.
33570 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
33571 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
33572 (sparc_option_override): Store processor_type enumeration rather
33573 than string in cpu_default. Remove name and enumeration from
33574 cpu_table. Directly default -mcpu then default -mtune from -mcpu
33575 without using sparc_select. Use target_flags_explicit instead of
33576 fpu_option_set.
33577 * config/sparc/sparc.h (enum processor_type): Move to
33578 sparc-opts.h.
33579 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
33580 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
33581 HeaderInclude entry.
33582 (mcpu=, mtune=): Use Var and Enum.
33583 (sparc_processor_type): New Enum and EnumValue entries.
33584
33585 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33586 Iain Sandoe <iains@gcc.gnu.org>
33587
33588 PR target/48245
33589 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
33590
33591 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
33592
33593 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
33594 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
33595 Insert new statements at it in lieu of STMT.
33596 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
33597 * tree-vect-stmts.c (vectorizable_store): Likewise.
33598 (vectorizable_load): Likewise.
33599
33600 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
33601
33602 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
33603 (divtf3): Ditto.
33604 (multf3): Ditto.
33605 (subtf3): Ditto.
33606
33607 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
33608
33609 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
33610 unaligned 256bit load/store.
33611 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
33612 (*avx_movdqu<avxmodesuffix>): Likewise.
33613
33614 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33615
33616 PR target/48288
33617 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
33618 * config/pa/pa.md (iordi3): Use new predicate in expander.
33619 (iorsi3): Likewise.
33620
33621 2011-03-27 Anatoly Sokolov <aesok@post.ru>
33622
33623 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
33624 FUNCTION_VALUE_REGNO_P): Remove macros.
33625 * config/mips/mips-protos.h (mips_function_value): Remove.
33626 * config/mips/mips.c (mips_function_value): Rename to...
33627 (mips_function_value_1): ... this. Make static. Handle receiving
33628 the function type in 'fn_decl_or_type' argument.
33629 (mips_function_value, mips_libcall_value,
33630 mips_function_value_regno_p): New function.
33631 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
33632 TARGET_FUNCTION_VALUE_REGNO_P): Define.
33633
33634 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
33635
33636 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
33637 and -mavx256-split-unaligned-store.
33638 (ix86_option_override_internal): Split 32-byte AVX unaligned
33639 load/store by default.
33640 (ix86_avx256_split_vector_move_misalign): New.
33641 (ix86_expand_vector_move_misalign): Use it.
33642
33643 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
33644 -mavx256-split-unaligned-store.
33645
33646 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
33647 256bit load/store. Generate unaligned store on misaligned memory
33648 operand.
33649 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
33650 256bit load/store.
33651 (*avx_movdqu<avxmodesuffix>): Likewise.
33652
33653 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
33654 -mavx256-split-unaligned-store.
33655
33656 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
33657
33658 PR target/38598
33659 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
33660 Update commentary.
33661
33662 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
33663
33664 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
33665 opno arguments with an expand_operand. Use create_input_operand.
33666 (mips_prepare_builtin_target): Delete.
33667 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
33668 functions.
33669 (mips_expand_builtin_direct): Use create_output_operand and
33670 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
33671 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
33672 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
33673
33674 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
33675
33676 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
33677 function.
33678 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
33679
33680 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
33681
33682 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
33683 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
33684 basic blocks and call commit_edge_insertions directly.
33685 (fixup_abnormal_edges): Move from here to...
33686 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
33687 on the edges and return whether some have actually been inserted.
33688 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
33689 compensation code.
33690
33691 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
33692
33693 PR rtl-optimization/48144
33694 * sel-sched-ir.c (merge_history_vect): Factor out from ...
33695 (merge_expr_data): ... here.
33696 (av_set_intersect): Rename to av_set_code_motion_filter.
33697 Update all callers. Call merge_history_vect when an expression
33698 is found in both sets.
33699 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
33700
33701 2011-03-26 Alan Modra <amodra@gmail.com>
33702
33703 * config/rs6000/predicates.md (word_offset_memref_op): Handle
33704 cmodel medium addresses.
33705 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
33706 64-bit gpr loads and stores.
33707 (rs6000_secondary_reload_ppc64): New function.
33708 * config/rs6000/rs6000-protos.h: Declare it.
33709 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
33710
33711 2011-03-26 Alan Modra <amodra@gmail.com>
33712
33713 PR target/47487
33714 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
33715 GNU Go in traceback table.
33716
33717 2011-03-25 Richard Henderson <rth@redhat.com>
33718
33719 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
33720 if there are exactly 6 operands.
33721 (set_storage_via_setmem): Similarly.
33722
33723 2011-03-25 Kai Tietz <ktietz@redhat.com>
33724
33725 * collect2.c (write_c_file_stat): Handle backslash
33726 as right-hand directory separator.
33727 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
33728 checking just for slash.
33729 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
33730 instead of checking for trailing slash.
33731 * gcc.c (record_temp_file): Use filename_cmp instead
33732 of strcmp.
33733 (do_spec_1): Likewise.
33734 (replace_outfile_spec_function): Likewise.
33735 (is_directory): Use filename_ncmp instead of strncmp.
33736 (print_multilib_info): Likewise.
33737 * gcov.c (find_source): Use filename_cmp instead
33738 instead of strcmp.
33739 (make_gcov_file_name): Fix order of slash/backslash
33740 checks.
33741 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
33742 (add_standard_paths): Likewise.
33743 * mips-tfile.c (saber_stop): Handle backslash.
33744 * prefix.c (update_path): Use filename_ncmp instead of
33745 strncmp.
33746 * profile.c (output_location): Use filename_cmp instead
33747 of strcmp.
33748 * read-md.c (handle_toplevel_file): Handle backslash.
33749 * tlink.c (frob_extension): Likewise.
33750 * tree-cfg.c (same_line_p): Use filename_cmp instead of
33751 strcmp.
33752 * tree-dump.c (dequeue_and_dump): Handle backslash.
33753 * tree.c (get_file_function_name): Likewise.
33754 * gengtype.c (read_input_list): Likewise.
33755 (get_file_realbasename): Likewise.
33756 (get_output_file_with_visibility): Use filename_cmp
33757 instead of strcmp.
33758
33759 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
33760
33761 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
33762 case to VFPv1.
33763
33764 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
33765
33766 * fold-const.c (expr_location_or): New function.
33767 (fold_truth_not_expr): Call it.
33768
33769 2011-03-25 Jeff Law <law@redhat.com>
33770
33771 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
33772 va_end.
33773 * c-family/c-common.c (def_fn_type): Likewise.
33774 * emit-rtl.c (gen_rtvec): Likewise.
33775 * lto/lto-lang.c (def_fn_type): Likewise.
33776
33777 2011-03-25 Richard Guenther <rguenther@suse.de>
33778
33779 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
33780 also generate copies.
33781 (fini_copy_prop): Handle constant values properly.
33782
33783 2011-03-25 Jakub Jelinek <jakub@redhat.com>
33784
33785 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
33786 mode size instead of bitsize with DWARF2_ADDR_SIZE.
33787 (hash_loc_operands, compare_loc_operands): Handle
33788 DW_OP_GNU_entry_value.
33789
33790 2011-03-25 Kai Tietz <ktietz@redhat.com>
33791
33792 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
33793 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
33794 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
33795 comment and use macro TARGET_64BIT_MS_ABI instead.
33796 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
33797 and change default behavior for 32-bit MS_ABI.
33798 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
33799 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
33800 32-bit, too.
33801 (ix86_cfun_abi): Likewise.
33802 (ix86_maybe_switch_abi): Adjust comment.
33803 (init_cumulative_args): Check for bit-ness in MS_ABI case.
33804 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
33805 instead of checking for SYSV_ABI.
33806 (ix86_nsaved_sseregs): Likewise.
33807 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
33808 to 16 bytes.
33809 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
33810 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
33811 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
33812 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
33813 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
33814
33815 2011-03-25 Richard Guenther <rguenther@suse.de>
33816
33817 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
33818 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
33819 (verify_gimple): Remove.
33820 * tree-cfg.c (verify_gimple_call): Merge verification
33821 from verify_stmts.
33822 (verify_gimple_phi): Merge verification from verify_stmts.
33823 (verify_gimple_label): New function.
33824 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
33825 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
33826 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
33827 (verify_stmts): Rename to verify_gimple_in_cfg.
33828 (verify_gimple_in_cfg): New function.
33829 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
33830 * tree-ssa.c (verify_ssa): Likewise.
33831 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
33832
33833 2011-03-25 Richard Guenther <rguenther@suse.de>
33834
33835 * passes.c (init_optimization_passes): Add FRE pass after
33836 early SRA.
33837
33838 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
33839 Andrew Stubbs <ams@codesourcery.com>
33840
33841 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
33842 for Cortex-A8.
33843 (arm_movdi_vfp_cortexa8): New pattern.
33844 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
33845 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
33846 instructions when tuning for Cortex-A8. Set attribute "arch".
33847 * config/arm/arm.md: Move include arm-tune.md up a bit.
33848 (define_attr "arch"): Add "onlya8" and "nota8" values.
33849 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
33850
33851 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
33852
33853 PR bootstrap/48282
33854 Revert:
33855 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
33856
33857 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
33858 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
33859 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
33860 * passes.c (init_optimization_passes): Move
33861 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
33862
33863 2011-03-25 Kai Tietz <ktietz@redhat.com>
33864
33865 * c-typeck.c (comptypes_internal): Replace target
33866 hook call of comp_type_attributes by version in tree.c file.
33867 * gimple.c (gimple_types_compatible_p_1): Likewise.
33868 * tree-ssa.c (useless_type_conversion_p): Likewise.
33869 * tree.c (build_type_attribute_qual_variant): Likewise.
33870 (attribute_value_equal): New static helper function.
33871 (comp_type_attributes): New function.
33872 (merge_attributes): Use attribute_value_equal for comparison.
33873 (attribute_list_contained): Likewise.
33874 * tree.h (comp_type_attributes): New prototype.
33875
33876 2011-03-25 Richard Guenther <rguenther@suse.de>
33877
33878 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
33879 of complex types at -O0.
33880 (verify_gimple_assign_binary): Likewise.
33881 (verify_gimple_assign_ternary): Likewise.
33882
33883 2011-03-24 Mark Wielaard <mjw@redhat.com>
33884
33885 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
33886 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
33887
33888 2011-03-24 Mark Wielaard <mjw@redhat.com>
33889
33890 PR debug/48041
33891 * dwarf2out.c (output_abbrev_section): Only write table when
33892 abbrev_die_table_in_use > 1.
33893
33894 2011-02-24 Richard Henderson <rth@redhat.com>
33895
33896 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
33897 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
33898 (alpha_expand_unaligned_load_words): Use extql.
33899 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
33900 (emit_insxl): Handle all modes for consistency.
33901
33902 2011-02-24 Richard Henderson <rth@redhat.com>
33903
33904 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
33905 (alpha_expand_unaligned_load): Likewise.
33906 (alpha_expand_unaligned_store): Likewise.
33907 (alpha_expand_unaligned_load_words): Likewise.
33908 (alpha_expand_unaligned_store_words): Likewise.
33909 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
33910 (alpha_split_lock_test_and_set_12): Likewise.
33911 (print_operand, alpha_fold_builtin_extxx): Likewise.
33912 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
33913 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
33914 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
33915 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
33916 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
33917 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
33918 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
33919 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
33920 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
33921 (extwl, extll, extql): Similarly.
33922 (inswh, inslh, insqh): Similarly.
33923 (mskbl, mskwl, mskll, mskql): Similarly.
33924 (mskwh, msklh, mskqh): Similarly.
33925
33926 2011-02-24 Richard Henderson <rth@redhat.com>
33927
33928 * config/alpha/alpha.md (attribute isa): Add er, ner.
33929 (attribute enabled): Handle them.
33930 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
33931
33932 2011-02-24 Richard Henderson <rth@redhat.com>
33933
33934 * config/alpha/alpha.md (attribute isa): Add vms.
33935 (attribute enabled): Handle it.
33936 (*movsf): Merge *movsf_{nofix,fix,nofp}.
33937 (*movdf): Merge *movdf_{nofix,fix,nofp}.
33938 (*movtf): Rename from *movtf_internal for consistency.
33939 (*movsi): Merge with *movsi_nt_vms.
33940 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
33941 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
33942 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
33943 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
33944
33945 2011-02-24 Richard Henderson <rth@redhat.com>
33946
33947 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
33948 (extendqisi2, extendhisi2): Likewise.
33949 (extendqidi2): Simplify BWX/non-BWX expansions.
33950 (extendhidi2): Similarly.
33951
33952 2011-02-24 Richard Henderson <rth@redhat.com>
33953
33954 * config/alpha/alpha.md (attribute isa): New.
33955 (attribute enabled): New.
33956 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
33957 (zero_extendqisi2, zero_extendqidi2): Similarly.
33958 (zero_extendhisi2, zero_extendhidi2): Similarly.
33959 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
33960
33961 2011-02-24 Richard Henderson <rth@redhat.com>
33962
33963 * config/alpha/predicates.md (input_operand): Revert last change;
33964 update comment to mention 32-bit VMS rather than Windows.
33965
33966 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
33967
33968 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
33969 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
33970 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
33971 * passes.c (init_optimization_passes): Move
33972 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
33973
33974 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
33975
33976 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
33977
33978 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
33979
33980 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
33981 correctly.
33982
33983 2011-03-24 Jakub Jelinek <jakub@redhat.com>
33984
33985 PR debug/48204
33986 * simplify-rtx.c (simplify_const_unary_operation): Call
33987 real_convert when changing mode class with FLOAT_EXTEND.
33988
33989 2011-03-24 Nick Clifton <nickc@redhat.com>
33990
33991 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
33992 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
33993 * config/rx/rx.c (rx_option_override): Set align_jumps,
33994 align_loops and align_labels if not set by the user.
33995 (rx_align_for_label): New function.
33996 (rx_max_skip_for_label): New function.
33997 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
33998 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
33999 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
34000 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
34001 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
34002
34003 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
34004
34005 PR rtl-optimization/48263
34006 * optabs.c (expand_binop_directly): Reinstate convert_modes code
34007 and original commutative_p handling. Use maybe_gen_insn.
34008
34009 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34010
34011 * reload.c (find_reloads_subreg_address): Add address_reloaded
34012 parameter and return true there if the full address has been
34013 reloaded.
34014 (find_reloads_toplev): Pass address_reloaded flag.
34015 (find_reloads_address_1): Don't use address_reloaded parameter.
34016
34017 2011-03-24 Jeff Law <law@redhat.com>
34018
34019 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
34020 unused variable "ann".
34021 (remove_unused_locals): Likewise.
34022
34023 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
34024 statement.
34025
34026 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
34027 after it is freed.
34028
34029 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34030
34031 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
34032 for invalid symbolic addresses.
34033 (s390_secondary_reload): Don't use s390_check_symref_alignment for
34034 larl operands.
34035
34036 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
34037
34038 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
34039 the argument in calls to fold_truth_not_expr.
34040
34041 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
34042
34043 * tree.c (record_node_allocation_statistics): New function.
34044 (make_node_stat, copy_node_stat, build_string): Call it.
34045 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
34046 (build1_stat, build_omp_clause): Likewise.
34047
34048 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
34049
34050 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
34051 last commit.
34052
34053 2011-03-24 Richard Guenther <rguenther@suse.de>
34054
34055 PR tree-optimization/48271
34056 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
34057 blocks that still exist.
34058
34059 2011-03-24 Richard Guenther <rguenther@suse.de>
34060
34061 PR tree-optimization/48270
34062 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
34063 not free datarefs before ddrs.
34064
34065 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
34066
34067 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
34068 from the address built for a reference with variable offset.
34069
34070 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
34071
34072 PR target/48237
34073 * config/i386/i386.md (*movdf_internal_rex64): Do not split
34074 alternatives that can be handled with movq or movabsq insn.
34075 (*movdf_internal): Disable for !TARGET_64BIT.
34076 (*movdf_internal_nointeger): Ditto.
34077 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
34078
34079 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
34080
34081 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
34082 (FUNCTION_ARG_ADVANCE): Likewise.
34083 * tm.texi.in: Change references to them to hook references.
34084 * tm.texi: Regenerate.
34085 * targhooks.c (default_function_arg): Eliminate check for target macro.
34086 (default_function_incoming_arg): Likewise.
34087 (default_function_arg_advance): Likewise.
34088 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
34089 (function_arg_advance): Likewise.
34090 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
34091
34092 2011-03-24 Richard Guenther <rguenther@suse.de>
34093
34094 PR middle-end/48269
34095 * tree-object-size.c (addr_object_size): Do not double-account
34096 for MEM_REF offsets.
34097
34098 2011-03-24 Diego Novillo <dnovillo@google.com>
34099
34100 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
34101 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
34102 (lto_input_data_block): Move from lto-opts.c. Make extern.
34103 Update all users.
34104 (lto_input_string): Rename from input_string. Make extern.
34105 Update all users.
34106 * lto-streamer-out.c (lto_output_string_with_length): Rename from
34107 output_string_with_length.
34108 Output 0 to indicate a non-NULL string. Update all callers to
34109 not emit 0.
34110 (lto_output_string): Rename from output_string. Make extern.
34111 Update all users.
34112 (lto_output_decl_state_streams): Make extern.
34113 (lto_output_decl_state_refs): Make extern.
34114 * lto-streamer.h (lto_input_string): Declare.
34115 (lto_input_data_block): Declare.
34116 (lto_output_string): Declare.
34117 (lto_output_string_with_length): Declare.
34118 (lto_output_decl_state_streams): Declare.
34119 (lto_output_decl_state_refs): Declare.
34120
34121 2011-03-24 Richard Guenther <rguenther@suse.de>
34122
34123 PR tree-optimization/46562
34124 * tree.c (build_invariant_address): New function.
34125 * tree.h (build_invariant_address): Declare.
34126 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
34127 a renamed function moved ...
34128 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
34129 Take valueization callback parameter.
34130 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
34131 * gimple-fold.h: New file.
34132 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
34133 (ccp_fold, fold_const_aggregate_ref,
34134 fold_ctor_reference, fold_nonarray_ctor_reference,
34135 fold_array_ctor_reference, fold_string_cst_ctor_reference,
34136 get_base_constructor): Move ...
34137 * gimple-fold.c: ... here.
34138 (gimple_fold_stmt_to_constant_1): New function
34139 split out from ccp_fold. Take a valueization callback parameter.
34140 Valueize all operands.
34141 (gimple_fold_stmt_to_constant): New wrapper function.
34142 (fold_const_aggregate_ref_1): New function split out from
34143 fold_const_aggregate_ref. Take a valueization callback parameter.
34144 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
34145 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
34146 invariant POINTER_PLUS_EXPRs to invariant form.
34147 (vn_valueize): New function.
34148 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
34149 * tree-vrp.c (vrp_valueize): New function.
34150 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
34151 to fold statements to constants.
34152 * tree-ssa-pre.c (eliminate): Properly guard propagation of
34153 function declarations.
34154 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
34155 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
34156
34157 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
34158
34159 * config/h8300/predicates.md (jump_address_operand): Fix register
34160 mode check.
34161
34162 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
34163
34164 * doc/invoke.texi (max-stores-to-sink): Document.
34165 * params.h (MAX_STORES_TO_SINK): Define.
34166 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
34167 if either vectorization or if-conversion is disabled.
34168 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
34169 tree-vect-data-refs.c vect_equal_offsets.
34170 (dr_equal_offsets_p): New function.
34171 (find_data_references_in_bb): Remove static.
34172 * tree-data-ref.h (find_data_references_in_bb): Declare.
34173 (dr_equal_offsets_p): Likewise.
34174 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
34175 (vect_drs_dependent_in_basic_block): Update calls to
34176 vect_equal_offsets.
34177 (vect_check_interleaving): Likewise.
34178 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
34179 (cond_if_else_store_replacement): Rename to...
34180 (cond_if_else_store_replacement_1): ... this. Change arguments and
34181 documentation.
34182 (cond_if_else_store_replacement): New function.
34183 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
34184 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
34185
34186 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
34187
34188 PR target/46934
34189 * config/arm/arm.md (casesi): Use the gen_int_mode() function
34190 to subtract lower bound instead of GEN_INT().
34191
34192 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
34193
34194 PR other/48179
34195 PR other/48221
34196 PR other/48234
34197 * doc/extend.texi (Alignment): Move section to match order in TOC.
34198 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
34199 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
34200
34201 2011-03-23 Jeff Law <law@redhat.com>
34202
34203 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
34204 before removing the edge.
34205
34206 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
34207 it may have been freed by redirect_branch_edge or
34208 redirect_edge_succ_nodup.
34209
34210 2011-03-23 Richard Guenther <rguenther@suse.de>
34211
34212 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
34213 (check_va_list_escapes): Likewise.
34214 (check_all_va_list_escapes): Likewise.
34215
34216 2011-03-23 Richard Guenther <rguenther@suse.de>
34217
34218 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
34219 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
34220 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
34221 (alias.o): Likewise.
34222 (ipa-type-escape.o): Remove.
34223 (ipa-struct-reorg.o): Likewise.
34224 (GTFILES): Remove ipa-struct-reorg.c.
34225 * alias.c: Do not include ipa-type-escape.h.
34226 * tree-ssa-alias.c: Likewise.
34227 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
34228 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
34229 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
34230 and ipa-type-escape passes.
34231 * tree-pass.h (pass_ipa_type_escape): Remove.
34232 (pass_ipa_struct_reorg): Likewise.
34233 * ipa-struct-reorg.h: Remove.
34234 * ipa-struct-reorg.c: Likewise.
34235 * ipa-type-escape.h: Likewise.
34236 * ipa-type-escape.c: Likewise.
34237 * doc/invoke.texi (-fipa-struct-reorg): Remove.
34238 (--param struct-reorg-cold-struct-ratio): Likewise.
34239 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
34240 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
34241 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
34242
34243 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34244
34245 * config/s390/2084.md: Enable all insn reservations also for z9_ec
34246 cpu attribute value.
34247 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
34248 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
34249 * config/s390/s390.c (processor_flags_table): New constant array.
34250 (s390_handle_arch_option): Remove.
34251 (s390_handle_option): Remove s390_handle_arch_option invocations
34252 and OPT_mwarn_framesize_ handling.
34253 (s390_option_override): Remove s390_handle_arch_option invocation.
34254 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
34255 warnings.
34256 * config/s390/s390.md (cpu attribute): Add z9_ec value.
34257 * config/s390/s390.opt (s390_tune, s390_arch)
34258 (march=): Replace s390_arch_option enum and values with
34259 processor_type. Set variable name to s390_arch. Set
34260 initialization value.
34261 (mtune=): Replace s390_arch_option with processor_type. Set
34262 variable name to s390_tune. Set initialization value.
34263
34264 2011-03-23 Julian Brown <julian@codesourcery.com>
34265
34266 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
34267 accesses which are not naturally aligned.
34268
34269 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
34270
34271 PR target/47553
34272 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
34273
34274 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
34275
34276 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
34277 parameter from "int" to "enum insn_code".
34278 (expand_operand_type): New enum.
34279 (expand_operand): New structure.
34280 (create_expand_operand): New function.
34281 (create_fixed_operand, create_output_operand): Likewise
34282 (create_input_operand, create_convert_operand_to): Likewise.
34283 (create_convert_operand_from, create_address_operand): Likewise.
34284 (create_integer_operand): Likewise.
34285 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
34286 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
34287 (expand_insn, expand_jump_insn): Likewise.
34288 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
34289 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
34290 (expand_movstr, expand_builtin___clear_cache): Likewise.
34291 (expand_builtin_lock_release): Likewise.
34292 * explow.c (allocate_dynamic_stack_space): Likewise.
34293 (probe_stack_range): Likewise. Allow check_stack to FAIL,
34294 and use the default handling in that case.
34295 * expmed.c (check_predicate_volatile_ok): Delete.
34296 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
34297 (emit_cstore): Likewise.
34298 * expr.c (emit_block_move_via_movmem): Likewise.
34299 (set_storage_via_setmem, expand_assignment): Likewise.
34300 (emit_storent_insn, try_casesi): Likewise.
34301 (emit_single_push_insn): Likewise. Allow the expansion to fail.
34302 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
34303 (expand_vec_shift_expr, expand_binop_directly): Likewise.
34304 (expand_twoval_unop, expand_twoval_binop): Likewise.
34305 (expand_unop_direct, emit_indirect_jump): Likewise.
34306 (emit_conditional_move, vector_compare_rtx): Likewise.
34307 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
34308 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
34309 (expand_sync_lock_test_and_set): Likewise.
34310 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
34311 (emit_unop_insn): Likewise.
34312 (expand_copysign_absneg): Change icode to an insn_code.
34313 (create_convert_operand_from_type): New function.
34314 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
34315 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
34316 (expand_insn, expand_jump_insn): Likewise.
34317 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
34318 than const_int_operand for operand 2.
34319
34320 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34321
34322 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
34323 if possible.
34324
34325 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
34326
34327 * emit-rtl.c (emit_pattern_before_noloc): New function.
34328 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
34329 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
34330 (emit_pattern_after_noloc): New function.
34331 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
34332 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
34333
34334 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
34335
34336 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
34337 (__ffsDI2): Likewise.
34338
34339 2011-03-22 Richard Henderson <rth@redhat.com>
34340
34341 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
34342 of !TARGET_ABI_OPEN_VMS.
34343 (alpha_trampoline_init, alpha_start_function): Likewise.
34344 (alpha_expand_epilogue, alpha_file_start): Likewise.
34345 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
34346 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
34347 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
34348 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
34349 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
34350
34351 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34352
34353 * config/s390/s390-opts.h: New.
34354 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
34355 s390_arch_flags, s390_warn_framesize, s390_stack_size,
34356 s390_stack_guard): Remove.
34357 (s390_handle_arch_option): Return void. Take enum
34358 s390_arch_option value instead of string and searching array.
34359 (s390_handle_option): Don't assert that global structures are in
34360 use. Access variables via opts pointer. Use error_at. Don't use
34361 sscanf for -mstack-guard= or -mstack-size=. Update call to
34362 s390_handle_arch_option.
34363 (s390_option_override): Update call to s390_handle_arch_option.
34364 (s390_emit_prologue): Use %d format for s390_stack_size in
34365 diagnostic. Use %wd for HOST_WIDE_INT.
34366 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
34367 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
34368 * config/s390/s390.opt (config/s390/s390-opts.h): New
34369 HeaderInclude entry.
34370 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
34371 s390_arch_flags, s390_warn_framesize): New Variable entries.
34372 (s390_arch_option): New Enum and EnumValue entries.
34373 (march=): Use Enum instead of Var.
34374 (mstack-guard=, mstack-size=): Use UInteger and Var.
34375 (mtune=): Use Enum.
34376
34377 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34378
34379 * config/score/score.c (score_handle_option): Don't assert that
34380 global structures are in use. Access target_flags via opts
34381 pointer. Use value of -march= option to determine target_flags
34382 settings.
34383 * config/score/score.opt (march=): Use Enum.
34384 (score_arch): New Enum and EnumValue entries.
34385
34386 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34387
34388 * config/mep/mep.c (option_mtiny_specified): Remove.
34389 (mep_option_override): Move register handling for -mivc2 from
34390 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
34391 instead of option_mtiny_specified.
34392 (mep_handle_option): Access target_flags via opts pointer. Don't
34393 assert that global structures are in use. Defer part of -mivc2
34394 handling and move it to mep_option_override.
34395 * config/mep/mep.opt (IVC2): New Mask entry.
34396 (mivc2): Use Var and Defer instead of Mask.
34397
34398 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34399
34400 * config/v850/v850-opts.h: New.
34401 * config/v850/v850.c (small_memory): Replace with
34402 small_memory_physical_max array. Make that array static const.
34403 (v850_handle_memory_option): Take integer value of argument. Take
34404 gcc_options pointer, option text and location. Return void.
34405 Update for changes to small memory structures.
34406 (v850_handle_option): Access target_flags via opts pointer. Don't
34407 assert that global structures are in use. Update calls to
34408 v850_handle_memory_option.
34409 (v850_encode_data_area): Update references to small memory settings.
34410 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
34411 (enum small_memory_type): Move to v850-opts.h.
34412 * config/v850/v850.opt (config/v850/v850-opts.h): New
34413 HeaderInclude entry.
34414 (small_memory_max): New Variable entry.
34415 (msda): Replace by pair of options msda= and msda-. Use UInteger.
34416 (mtda, mzda): Likewise.
34417
34418 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34419
34420 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
34421 pointer. Don't assert that global structures are in use.
34422
34423 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34424
34425 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
34426 via opts pointer. Don't assert that global structures are in use.
34427
34428 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34429
34430 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
34431 (munix=93): Use Var.
34432 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
34433 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
34434 * config/pa/pa-opts.h: New.
34435 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
34436 (pa_handle_option): Don't assert that global structures are in
34437 use. Access target_flags via opts pointer. Don't handle
34438 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
34439 OPT_munix_98 here.
34440 (pa_option_override): Handle deferred OPT_mfixed_range_.
34441
34442 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34443
34444 * config/mn10300/mn10300-opts.h: New.
34445 * config/mn10300/mn10300.c (mn10300_processor,
34446 mn10300_tune_string): Remove.
34447 (mn10300_handle_option): Don't assert that global structures are
34448 in use. Access mn10300_processor via opts pointer. Don't handle
34449 OPT_mtune_ here.
34450 * config/mn10300/mn10300.h (enum processor_type): Move to
34451 mn10300-opts.h.
34452 (mn10300_processor): Remove.
34453 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
34454 HeaderInclude entry.
34455 (mn10300_processor): New Variable entry.
34456 (mtune=): Use Var.
34457
34458 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34459
34460 * config/microblaze/microblaze.c: Don't include opts.h.
34461 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
34462 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
34463 (mno-clearbss): Use Var and Warn.
34464
34465 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34466
34467 * config/m32r/m32r-opts.h: New.
34468 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
34469 (m32r_handle_option): Don't assert that global structures are in
34470 use. Access target_flags and m32r_cache_flush_func via opts
34471 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
34472 OPT_mno_flush_trap here.
34473 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
34474 include of m32r-opts.h.
34475 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
34476 HeaderInclude entry.
34477 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
34478 (mmodel=): Use Enum and Var.
34479 (m32r_model): New Enum and EnumValue entries.
34480 (mno-flush-trap): Use Var.
34481 (msdata=): Use Enum and Var.
34482 (m32r_sdata): New Enum and EnumValue entries.
34483
34484 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34485
34486 * config/m32c/m32c.c: Don't include opts.h.
34487 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
34488 m32c_handle_option): Remove.
34489 (m32c_option_override): Check global_options_set.x_target_memregs
34490 instead of target_memregs_set.
34491 * config/m32c/m32c.h (target_memregs): Remove.
34492 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
34493 variable.
34494
34495 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34496
34497 * config/iq2000/iq2000-opts.h: New.
34498 * config/iq2000/iq2000.c: Don't include opts.h.
34499 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
34500 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
34501 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
34502 HeaderInclude entry.
34503 (iq2000_tune): New Variable entry.
34504 (march=): Add comment. Use Enum.
34505 (iq2000_arch): New Enum and EnumValue entries.
34506 (mcpu=): Use Enum and Var.
34507 (iq2000_tune): New Enum and EnumValue entries.
34508
34509 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34510
34511 * config/ia64/ia64-opts.h: New.
34512 * config/ia64/ia64.c (ia64_tune): Remove.
34513 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
34514 here. Use error_at.
34515 (ia64_option_override): Handle deferred OPT_mfixed_range_.
34516 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
34517 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
34518 HeaderInclude entry.
34519 (ia64_tune): New Variable entry.
34520 (mfixed-range=): Use Defer and Var.
34521 (mtune=): Use Enum and Var.
34522 (ia64_tune): New Enum and EnumValue entries.
34523
34524 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34525
34526 * config/frv/frv-opts.h: New.
34527 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
34528 frv-opts.h.
34529 (frv_cpu_type): Remove.
34530 * config/frv/frv.c: Don't include opts.h.
34531 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
34532 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
34533 (frv_cpu_type): New Variable entry.
34534 (frv_cpu): New Enum and EnumValue entries.
34535
34536 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34537
34538 * config/cris/cris.c (cris_handle_option): Access target_flags via
34539 opts pointer. Don't assert that global structures are in use.
34540 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
34541 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
34542
34543 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34544
34545 * config/bfin/bfin-opts.h: New.
34546 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
34547 bfin_si_revision, bfin_workarounds): Remove.
34548 (bfin_cpus): Make static const.
34549 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
34550 not bfin_lib_id_given.
34551 (bfin_handle_option): Don't set bfin_lib_id_given. Access
34552 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
34553 pointer. Use error_at. Don't assert that global structures are in use.
34554 * config/bfin/bfin.h: Include bfin-opts.h.
34555 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
34556 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
34557 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
34558 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
34559 entries.
34560
34561 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34562
34563 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
34564 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
34565 or -msoft-float here.
34566 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
34567 -msoft-float and -mhard-float.
34568 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
34569 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
34570 msoft-float.
34571 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
34572 -msoft-float.
34573 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
34574 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
34575 not mhard-float.
34576 (LIBGCC_SPEC): Don't handle -msoft-float.
34577 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
34578 -mhard-float.
34579 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
34580 msoft-float.
34581 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
34582 -mfloat-abi=*, not -msoft-float and -mhard-float.
34583 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
34584 -msoft-float.
34585 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
34586 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
34587 mhard-float and msoft-float.
34588 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
34589 mfloat-abi=soft in comments, not mhard-float and msoft-float.
34590 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
34591 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
34592 mhard-float.
34593 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
34594 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
34595 msoft-float.
34596 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
34597 not mhard-float.
34598 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
34599 not msoft-float.
34600
34601 2011-03-22 Richard Henderson <rth@redhat.com>
34602
34603 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
34604 TARGET_ABI_WINDOWS_NT.
34605 (alpha_output_function_end_prologue): Likewise.
34606 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
34607 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
34608 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
34609 (trap, *movsi_nt_vms): Likewise.
34610 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
34611 (*tablejump_osf_nt_internal): Remove.
34612 * config/alpha/predicates.md (input_operand): Only test Pmode.
34613
34614 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34615
34616 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
34617 via opts pointer. Use error_at. Don't assert that global
34618 structures are in use.
34619
34620 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34621
34622 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
34623 (ix86_handle_option): Access ix86_isa_flags and
34624 ix86_isa_flags_explicit via opts pointer. Don't assert that
34625 global structures are in use.
34626 (ix86_function_specific_save, ix86_function_specific_restore):
34627 Update ix86_isa_flags_explicit field name.
34628 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
34629 (ix86_isa_flags_explicit): Rename TargetSave entry to
34630 x_ix86_isa_flags_explicit.
34631
34632 2011-03-22 Richard Henderson <rth@redhat.com>
34633
34634 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
34635 (alpha_option_override, direct_return): Likewise.
34636 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
34637 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
34638 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
34639 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
34640 (alpha_expand_epilogue, alpha_end_function): Likewise.
34641 (alpha_init_libfuncs): Likewise.
34642 (struct machine_function): Remove unicosmk members.
34643 (print_operand) ['t']: Remove.
34644 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
34645 unicosmk_output_module_name, unicosmk_output_common,
34646 current_section_align, unicosmk_output_text_section_asm_op,
34647 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
34648 unicosmk_section_type_flags, unicosmk_unique_section,
34649 unicosmk_asm_named_section, unicosmk_insert_attributes,
34650 unicosmk_output_align, unicosmk_defer_case_vector,
34651 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
34652 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
34653 unicosmk_output_ssib, unicosmk_add_call_info_word,
34654 unicosmk_extern_head, unicosmk_output_default_externs,
34655 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
34656 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
34657 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
34658 * config/alpha/alpha-protos.h: Update.
34659 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
34660 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
34661 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
34662 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
34663 (*mulsi_se, mulvsi3): Likewise.
34664 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
34665 (*divmodsi_internal, call, call_value, realign): Likewise.
34666 (moddi3, umoddi3): Likewise; remove duplicate expander.
34667 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
34668 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
34669 (*movdi_nofix): Remove r/U alternative.
34670 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
34671 * config/alpha/constraints.md ("U"): Remove.
34672 * config/alpha/predicates.md (call_operand"): Don't test
34673 TARGET_ABI_UNICOSMK.
34674
34675 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34676
34677 * target.def (handle_option): Take gcc_options and
34678 cl_decoded_option pointers and location_t.
34679 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
34680 * doc/tm.texi: Regenerate.
34681 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
34682 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
34683 * lto-opts.c (lto_reissue_options): Generate option structure for
34684 targetm.handle_option call.
34685 * opts.c (target_handle_option): Update call to
34686 targetm.handle_option. Remove assertions about values now passed
34687 down to hook.
34688 * targhooks.c (default_target_handle_option): New.
34689 * targhooks.h (default_target_handle_option): Declare.
34690 * config/alpha/alpha.c: Include opts.h.
34691 (alpha_handle_option): Update to new hook interface.
34692 * config/arm/arm.c: Include opts.h.
34693 (arm_handle_option): Update to new hook interface.
34694 * config/arm/t-arm (arm.o): Update dependencies.
34695 * config/bfin/bfin.c: Include opts.h.
34696 (bfin_handle_option): Update to new hook interface.
34697 * config/cris/cris.c: Include opts.h.
34698 (cris_handle_option): Update to new hook interface.
34699 * config/frv/frv.c: Include opts.h.
34700 (frv_handle_option): Update to new hook interface.
34701 * config/i386/i386.c: Include opts.h.
34702 (ix86_handle_option): Update to new hook interface.
34703 (ix86_valid_target_attribute_inner_p): Generate option structure
34704 for call to ix86_handle_option.
34705 * config/i386/t-i386 (i386.o): Update dependencies.
34706 * config/ia64/ia64.c: Include opts.h.
34707 (ia64_handle_option): Update to new hook interface.
34708 * config/ia64/t-ia64 (ia64.o): Update dependencies.
34709 * config/iq2000/iq2000.c: Include opts.h.
34710 (iq2000_handle_option): Update to new hook interface.
34711 * config/m32c/m32c.c: Include opts.h.
34712 (m32c_handle_option): Update to new hook interface.
34713 * config/m32r/m32r.c: Include opts.h.
34714 (m32r_handle_option): Update to new hook interface.
34715 * config/m68k/m68k.c: Include opts.h.
34716 (m68k_handle_option): Update to new hook interface.
34717 * config/mep/mep.c: Include opts.h.
34718 (mep_handle_option): Update to new hook interface.
34719 * config/microblaze/microblaze.c: Include opts.h.
34720 (microblaze_handle_option): Update to new hook interface.
34721 * config/mips/mips.c: Include opts.h.
34722 (mips_handle_option): Update to new hook interface.
34723 * config/mn10300/mn10300.c: Include opts.h.
34724 (mn10300_handle_option): Update to new hook interface.
34725 * config/pa/pa.c: Include opts.h.
34726 (pa_handle_option): Update to new hook interface.
34727 * config/pdp11/pdp11.c: Include opts.h.
34728 (pdp11_handle_option): Update to new hook interface.
34729 * config/rs6000/rs6000.c: Include opts.h.
34730 (rs6000_handle_option): Update to new hook interface.
34731 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
34732 * config/rx/rx.c: Include opts.h.
34733 (rx_handle_option): Update to new hook interface.
34734 * config/s390/s390.c: Include opts.h.
34735 (s390_handle_option): Update to new hook interface.
34736 * config/score/score.c: Include opts.h.
34737 (score_handle_option): Update to new hook interface.
34738 * config/sh/sh.c: Include opts.h.
34739 (sh_handle_option): Update to new hook interface.
34740 * config/sparc/sparc.c: Include opts.h.
34741 (sparc_handle_option): Update to new hook interface.
34742 * config/v850/v850.c: Include opts.h.
34743 (v850_handle_option): Update to new hook interface.
34744
34745 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34746
34747 * gcc.c (driver_unknown_option_callback): Only permit and save
34748 unknown -Wno- options.
34749 (driver_wrong_lang_callback): Save options directly instead of via
34750 driver_unknown_option_callback.
34751
34752 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
34753
34754 * combine.c (simplify_set): Try harder to find the best CC mode when
34755 simplifying a nested COMPARE on the RHS.
34756
34757 2011-03-22 Joseph Myers <joseph@codesourcery.com>
34758
34759 * config/alpha/gnu.h: Remove.
34760 * config/arc: Remove directory.
34761 * config/arm/netbsd.h: Remove.
34762 * config/arm/t-pe: Remove.
34763 * config/crx: Remove directory.
34764 * config/i386/netbsd.h: Remove.
34765 * config/m68hc11: Remove directory.
34766 * config/m68k/uclinux-oldabi.h: Remove.
34767 * config/mcore/mcore-pe.h: Remove.
34768 * config/mcore/t-mcore-pe: Remove.
34769 * config/netbsd-aout.h: Remove.
34770 * config/rs6000/gnu.h: Remove.
34771 * config/sh/sh-symbian.h: Remove.
34772 * config/sh/symbian-base.c: Remove.
34773 * config/sh/symbian-c.c: Remove.
34774 * config/sh/symbian-cxx.c: Remove.
34775 * config/sh/symbian-post.h: Remove.
34776 * config/sh/symbian-pre.h: Remove.
34777 * config/sh/t-symbian: Remove.
34778 * config/svr3.h: Remove.
34779 * config/vax/netbsd.h: Remove.
34780 * config.build: Don't handle i[34567]86-*-pe.
34781 * config.gcc: Remove handling of deprecations for most deprecated
34782 targets.
34783 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
34784 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
34785 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
34786 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
34787 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
34788 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
34789 Remove cases.
34790 * config.host: Don't handle i[34567]86-*-pe.
34791 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
34792 (ASM_SPEC32): Don't handle -mcall-gnu.
34793 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
34794 -mcall-gnu.
34795 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
34796 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
34797 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
34798 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
34799 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
34800 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
34801 conditional on SYMBIAN.
34802 * configure.ac: Don't handle powerpc*-*-gnu*.
34803 * configure: Regenerate.
34804 * doc/extend.texi (interrupt attribute): Don't mention CRX.
34805 * doc/install-old.texi (m6811, m6812): Don't mention.
34806 * doc/install.texi (arc-*-elf*): Don't document multilib option.
34807 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
34808 (m68k-uclinuxoldabi): Don't mention.
34809 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
34810 Remove.
34811 (-mcall-gnu): Remove.
34812 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
34813 families): Remove constraint documentation.
34814
34815 2011-03-22 Marius Strobl <marius@FreeBSD.org>
34816
34817 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
34818 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
34819 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
34820
34821 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
34822
34823 PR target/48226
34824 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
34825 vector when peeking at the next token for vector, don't expand the
34826 keywords.
34827
34828 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
34829
34830 * config/avr/avr-protos.h (expand_epilogue): Change prototype
34831 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
34832 * config/avr/avr.c (init_cumulative_args)
34833 (avr_function_arg_advance): Use it.
34834 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
34835 sibcall epilogues.
34836 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
34837 (avr_function_ok_for_sibcall): ...this new function.
34838 (avr_lookup_function_attribute1): New static Function.
34839 (avr_naked_function_p, interrupt_function_p)
34840 (signal_function_p, avr_OS_task_function_p)
34841 (avr_OS_main_function_p): Use it.
34842 * config/avr/avr.md ("sibcall", "sibcall_value")
34843 ("sibcall_epilogue"): New expander.
34844 ("*call_insn", "*call_value_insn"): New insn.
34845 ("call_insn", "call_value_insn"): Remove
34846 ("call", "call_value", "epilogue"): Change expander to handle
34847 sibling calls.
34848
34849 2011-03-21 Nick Clifton <nickc@redhat.com>
34850
34851 * doc/invoke.texi (Overall Options): Move closing brace to end of
34852 options list.
34853 (Optimization Options): Add missing @gol.
34854 (Directory Options): Likewise.
34855 (i386 and x86-64 Options): Likewise.
34856 (RS6000 and PowerPC Options): Likewise.
34857 (i386 and x86-64 Windows Options): Likewise.
34858 (V850 Options): Add text missing from descriptions.
34859
34860 2011-03-22 Richard Henderson <rth@redhat.com>
34861
34862 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
34863 (avr_incoming_return_addr_rtx): New.
34864 (emit_push_byte): New.
34865 (expand_prologue): Use it. Remove incorrect dwarf annotation for
34866 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
34867 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
34868 (emit_pop_byte): New.
34869 (expand_epilogue): Use it. Pop frame pointer by bytes.
34870 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
34871 (INCOMING_RETURN_ADDR_RTX): New.
34872 (INCOMING_FRAME_SP_OFFSET): New.
34873 (ARG_POINTER_CFA_OFFSET): New.
34874 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
34875 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
34876 (pophi): Remove.
34877
34878 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
34879
34880 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
34881
34882 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
34883 (FUNCTION_ARG_ADVANCE): Likewise.
34884 * tm.texi.in: Change references to them to hook references.
34885 * tm.texi: Regenerate.
34886 * targhooks.c (default_function_arg): Eliminate check for target
34887 macro.
34888 (default_function_incoming_arg): Likewise.
34889 (default_function_arg_advance): Likewise.
34890 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
34891 (function_arg_advance): Likewise.
34892 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
34893
34894 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
34895
34896 * tree.c (build_call_1): New function.
34897 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
34898
34899 2011-03-22 Richard Guenther <rguenther@suse.de>
34900
34901 PR tree-optimization/48228
34902 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
34903 for single-arg PHIs.
34904
34905 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
34906
34907 PR rtl-optimization/48143
34908 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
34909 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
34910 sse2_cvtps2pd): Likewise.
34911
34912 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34913
34914 * recog.c (canonicalize_change_group): Use validate_unshare_change.
34915
34916 2011-03-22 Richard Guenther <rguenther@suse.de>
34917
34918 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
34919 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
34920 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
34921 and REALIGN_LOAD_EXPR.
34922 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
34923 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
34924 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
34925 DOT_PROD_EXPR case ...
34926 (expand_expr_real_2): ... here.
34927 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
34928 and REALIGN_LOAD_EXPR.
34929 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
34930 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
34931 (vect_create_epilog_for_reduction): Likewise.
34932 (vectorizable_reduction): Likewise.
34933 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
34934 * tree-vect-stmts.c (vectorizable_load): Likewise.
34935
34936 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
34937
34938 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
34939
34940 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34941
34942 * config/s390/s390.c (s390_delegitimize_address): Fix offset
34943 handling for PLTOFF/GOTOFF.
34944
34945 2011-03-22 Nick Clifton <nickc@redhat.com>
34946
34947 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
34948 trailing backslash from the end of the macro definition.
34949
34950 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34951
34952 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
34953 and PLT unspecs.
34954
34955 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
34956
34957 * expr.h (prepare_operand): Move to...
34958 * optabs.h (prepare_operand): ...here and change the insn code
34959 parameter from "int" to "enum insn_code".
34960 (insn_operand_matches): Declare.
34961 * expr.c (init_expr_target): Use insn_operand_matches.
34962 (compress_float_constant): Likewise.
34963 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
34964 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
34965 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
34966 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
34967 Likewise.
34968 (gen_cond_trap): Likewise.
34969 (prepare_operand): Likewise. Change icode to an insn_code.
34970 (insn_operand_matches): New function.
34971 * reload.c (find_reloads_address_1): Use insn_operand_matches.
34972 * reload1.c (gen_reload): Likewise.
34973 * targhooks.c (default_secondary_reload): Likewise.
34974
34975 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
34976
34977 * config/alpha/alpha.md (unspec): New define_c_enum.
34978 (unspecv): Ditto.
34979
34980 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
34981
34982 PR debug/48214
34983 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
34984 between a call and its CALL_ARG_LOCATION note.
34985
34986 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
34987
34988 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
34989
34990 2011-03-21 Jakub Jelinek <jakub@redhat.com>
34991
34992 PR c/42544
34993 PR c/48197
34994 * c-common.c (shorten_compare): If primopN is first sign-extended
34995 to opN and then zero-extended to result type, set primopN to opN.
34996
34997 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
34998
34999 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
35000 for barrier handlers.
35001
35002 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
35003
35004 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
35005 UNSPEC constants to be in the unspec enumeration, and redefine
35006 all UNSPECV constants to be in the unspecv enumeration, so that
35007 dumps print which unspec/unspec_volatile this is.
35008 * config/rs6000/vector.md (UNSPEC_*): Ditto.
35009 * config/rs6000/paired.md (UNSPEC_*): Ditto.
35010 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
35011 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
35012 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
35013
35014 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
35015 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
35016 UNSPECV_LWSYNC, since these are used as unspec_volatile.
35017 * config/rs6000/sync.md (isync, lwsync): Ditto.
35018
35019 2011-03-21 Richard Guenther <rguenther@suse.de>
35020
35021 * params.def (lto-min-partition): Fix typo.
35022
35023 2011-03-21 Richard Guenther <rguenther@suse.de>
35024
35025 PR c/47939
35026 * c-decl.c (grokdeclarator): Drop to the main variant only
35027 for array types. Drop flag_gen_aux_info check.
35028
35029 2011-03-21 Richard Guenther <rguenther@suse.de>
35030
35031 PR translation/47911
35032 * params.def (lto-partitions): Fix typo.
35033 (lto-min-partition): Fix wording.
35034
35035 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
35036
35037 * config/rs6000/t-freebsd: Remove duplication from file.
35038
35039 2011-03-21 Richard Guenther <rguenther@suse.de>
35040
35041 PR middle-end/47661
35042 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
35043
35044 2011-03-21 Richard Guenther <rguenther@suse.de>
35045
35046 PR lto/48210
35047 * params.def (lto-partitions): Require at least 1 partition.
35048
35049 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35050
35051 * gthr-solaris.h: Remove.
35052 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
35053 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
35054 (LIB_SPEC): Likewise.
35055 * config/sol2.opt (threads): Remove.
35056 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
35057 (sparc*-*-solaris2*): Likewise.
35058 * configure.ac (enable_threads): Enable solaris support.
35059 * configure: Regenerate.
35060 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
35061 * doc/install.texi (Configuration, --enable-threads=lib): Remove
35062 solaris.
35063
35064 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35065
35066 * config.gcc: Obsolete *-*-solaris2.8*.
35067 * doc/install.texi (Specific, *-*-solaris2*): Document it.
35068
35069 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35070
35071 PR bootstrap/48135
35072 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
35073 reference. Solaris 8 perl works.
35074
35075 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35076
35077 PR bootstrap/48135
35078 * doc/install.texi (Prerequisites): Move jar etc. up.
35079 Explain support library version requirements.
35080
35081 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35082
35083 PR bootstrap/48135
35084 * doc/install.texi (Prerequisites): Move Perl to build
35085 requirements. Always necessary on Solaris 2 with Sun ld.
35086
35087 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35088
35089 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
35090 binutils 2.21.
35091 (Specific, i?86-*-solaris2.[89]): Likewise.
35092 (Specific, i?86-*-solaris2.10): Likewise.
35093 (Specific, mips-sgi-irix6): Likewise.
35094 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
35095 Update for binutils 2.21.
35096
35097 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35098
35099 * configure.ac (gcc_cv_lto_plugin): Fix typo.
35100 Allow -fuse-linker-plugin for non-default plugin linker.
35101 * configure: Regenerate.
35102
35103 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
35104
35105 PR bootstrap/48167
35106 * gengtype.c (files_rules): Added rule for cp/parser.h.
35107
35108 2011-03-21 Jakub Jelinek <jakub@redhat.com>
35109
35110 PR target/48213
35111 * config/s390/s390.c (s390_delegitimize_address): Don't call
35112 lowpart_subreg if orig_x has BLKmode.
35113
35114 2011-03-21 Kai Tietz <ktietz@redhat.com>
35115
35116 PR target/12171
35117 * doc/plugins.texi: Adjust documentation for plugin register_callback.
35118 * tree.h (attribute_spec): Add new member affects_type_identity.
35119 * attribs.c (empty_attribute_table): Adjust attribute_spec
35120 initializers.
35121 * config/alpha/alpha.c: Likewise.
35122 * config/arc/arc.c: Likewise.
35123 * config/arm/arm.c: Likewise.
35124 * config/avr/avr.c: Likewise.
35125 * config/bfin/bfin.c: Likewise.
35126 * config/crx/crx.c: Likewise.
35127 * config/darwin.h: Likewise.
35128 * config/h8300/h8300.c: Likewise.
35129 * config/i386/cygming.h: Likewise.
35130 * config/i386/i386.c: Likewise.
35131 * config/ia64/ia64.c: Likewise.
35132 * config/m32c/m32c.c: Likewise.
35133 * config/m32r/m32r.c: Likewise.
35134 * config/m68hc11/m68hc11.c: Likewise.
35135 * config/m68k/m68k.c: Likewise.
35136 * config/mcore/mcore.c: Likewise.
35137 * config/mep/mep.c: Likewise.
35138 * config/microblaze/microblaze.c: Likewise.
35139 * config/mips/mips.c: Likewise.
35140 * config/rs6000/rs6000.c: Likewise.
35141 * config/rx/rx.c: Likewise.
35142 * config/sh/sh.c: Likewise.
35143 * config/sol2.h: Likewise.
35144 * config/sparc/sparc.c: Likewise.
35145 * config/spu/spu.c: Likewise.
35146 * config/stormy16/stormy16.c: Likewise.
35147 * config/v850/v850.c: Likewise.
35148
35149 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
35150
35151 * simplify-rtx.c (simplify_binary_operation_1): Handle
35152 (xor (and A B) C) case when B and C are both constants.
35153
35154 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
35155
35156 * tree-dfa.c (add_referenced_var): Fix typo in comment.
35157
35158 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
35159
35160 PR bootstrap/48168
35161 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
35162
35163 2011-03-20 Jakub Jelinek <jakub@redhat.com>
35164
35165 PR rtl-optimization/48156
35166 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
35167 assume df and df_lr are not NULL.
35168
35169 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
35170
35171 PR debug/48023
35172 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
35173 between a call and its CALL_ARG_LOCATION note.
35174
35175 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
35176
35177 PR debug/48178
35178 * config/sh/sh.c (find_barrier): Don't emit a constant pool
35179 between a call and its corresponding CALL_ARG_LOCATION note.
35180
35181 2011-03-19 Anatoly Sokolov <aesok@post.ru>
35182
35183 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
35184 instead of loop. Use HARD_REGISTER_NUM_P predicate.
35185 * haifa-sched.c (setup_ref_regs): Ditto.
35186 * caller-save.c (add_used_regs_1): Ditto.
35187 * dse.c (look_for_hardregs): Ditto.
35188 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
35189 * sched-rgn.c (check_live_1): Ditto.
35190
35191 2011-03-18 Joseph Myers <joseph@codesourcery.com>
35192
35193 * c-decl.c (diagnose_mismatched_decls): Give an error for
35194 redefining a typedef with variably modified type.
35195
35196 2011-03-18 Joseph Myers <joseph@codesourcery.com>
35197
35198 * c-decl.c (grokfield): Don't allow typedefs for structures or
35199 unions with no tag by default.
35200 * doc/extend.texi (Unnamed Fields): Update.
35201
35202 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
35203
35204 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
35205 Rewrite using indirect functions.
35206 (lwp_slwpcb): Ditto.
35207 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
35208 (avx_vinsertf128<mode>): Ditto.
35209
35210 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35211
35212 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
35213 unspecs.
35214
35215 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35216
35217 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
35218 splitting between a call and its corresponding CALL_ARG_LOCATION note.
35219
35220 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
35221
35222 PR rtl-optimization/48170
35223 * gcse.c (hoist_code): Remove bogus asserts.
35224
35225 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
35226
35227 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
35228 computation for prologue/epilogue.
35229
35230 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35231
35232 * Makefile.in (check-consistency): Remove.
35233
35234 2011-03-18 Jakub Jelinek <jakub@redhat.com>
35235
35236 PR debug/48176
35237 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
35238 arange_table_in_use is 0, but either text_section_used or
35239 cold_text_section_used is true. Don't call it if
35240 !info_section_emitted.
35241
35242 2011-03-18 Anatoly Sokolov <aesok@post.ru>
35243
35244 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
35245 FUNCTION_VALUE_REGNO_P): Remove.
35246 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
35247 Remove.
35248 * config/avr/avr.c (avr_ret_register): Make static inline.
35249 (avr_function_value_regno_p): New function.
35250 (avr_libcall_value): Make static. Add 'func' argument.
35251 (avr_function_value): Make static. Rename 'func' argument to
35252 'fn_decl_or_type', forward it to avr_libcall_value. Call
35253 avr_ret_register function instead of RET_REGISTER macro.
35254 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
35255
35256 2011-03-18 Jason Merrill <jason@redhat.com>
35257
35258 PR c++/23372
35259 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
35260
35261 2011-03-18 Richard Guenther <rguenther@suse.de>
35262
35263 * doc/install.texi (--enable-gold): Remove.
35264 (--with-plugin-ld): Document.
35265 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
35266
35267 2011-03-18 Andrew Pinski <pinskia@gmail.com>
35268
35269 PR middle-end/47790
35270 * expr.c (optimize_bitfield_assignment_op): Revamp to work
35271 again after expansion changes.
35272
35273 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
35274
35275 * combine.c (try_combine): Do simplification only call of
35276 subst() on i2 even when i1 is present. Update comments.
35277
35278 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
35279
35280 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
35281 and UNSPEC_PCREL_SYMOFF.
35282
35283 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35284
35285 * config/s390/s390.md: Use define_c_enum for the unspec constant
35286 definitions.
35287
35288 2011-03-18 Richard Henderson <rth@redhat.com>
35289 Jakub Jelinek <jakub@redhat.com>
35290
35291 PR bootstrap/48161
35292 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
35293 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
35294
35295 2011-03-17 Anatoly Sokolov <aesok@post.ru>
35296
35297 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
35298 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
35299 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
35300 Change return type to bool.
35301 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
35302
35303 2011-03-17 Jakub Jelinek <jakub@redhat.com>
35304
35305 PR debug/48163
35306 * var-tracking.c (prepare_call_arguments): If CALL target
35307 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
35308 pc instead of looking it up using cselib_lookup and use
35309 Pmode for it if x has VOIDmode.
35310 * dwarf2out.c (gen_subprogram_die): If also both first and
35311 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
35312
35313 PR debug/48163
35314 * function.c (assign_parms): For data.passed_pointer parms
35315 use MEM of data.entry_parm instead of data.entry_parm itself
35316 as DECL_INCOMING_RTL.
35317 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
35318 also when passed and declared mode is the same, DECL_RTL
35319 is a MEM with pseudo as address and DECL_INCOMING_RTL is
35320 a MEM too.
35321
35322 2011-03-16 Jeff Law <law@redhat.com>
35323
35324 PR rtl-optimization/37273
35325 * ira-costs.c (scan_one_insn): Detect constants living in memory and
35326 handle them like argument loads from stack slots. Do not double
35327 count memory for memory constants and argument loads from stack slots.
35328
35329 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
35330
35331 PR debug/48160
35332 * var-tracking.c (prepare_call_arguments): Check SUBREG.
35333
35334 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
35335
35336 PR target/48171
35337 * config/i386/i386.opt: Add Save to -mavx and -mfma.
35338
35339 2011-03-17 Jakub Jelinek <jakub@redhat.com>
35340
35341 PR bootstrap/48153
35342 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
35343 if dwarf_strict.
35344 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
35345 Clear call_arg_locations and call_arg_loc_last always.
35346
35347 PR middle-end/48152
35348 * var-tracking.c (prepare_call_arguments): If argument needs to be
35349 passed by reference, adjust argtype and mode.
35350
35351 2011-03-17 Richard Guenther <rguenther@suse.de>
35352
35353 PR middle-end/48134
35354 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
35355 a value make sure to fold the statement.
35356
35357 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
35358
35359 PR target/43872
35360 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
35361 return condition with !cfun->calls_alloca.
35362
35363 2011-03-17 Richard Guenther <rguenther@suse.de>
35364
35365 PR bootstrap/48148
35366 * lto-cgraph.c (input_overwrite_node): Clear the abstract
35367 origin for decls in other ltrans units.
35368 (input_varpool_node): Likewise.
35369
35370 2011-03-17 Richard Guenther <rguenther@suse.de>
35371
35372 PR middle-end/48165
35373 * tree-object-size.c (compute_object_offset): Properly return
35374 the offset operand of MEM_REFs as sizetype.
35375
35376 2011-03-17 Jakub Jelinek <jakub@redhat.com>
35377
35378 PR rtl-optimization/48141
35379 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
35380 * dse.c: Include params.h.
35381 (active_local_stores_len): New variable.
35382 (add_wild_read, dse_step1): Clear it when setting active_local_stores
35383 to NULL.
35384 (record_store, check_mem_read_rtx): Decrease it when removing
35385 from the chain.
35386 (scan_insn): Likewise. Increase it when adding to chain, if it
35387 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
35388 set active_local_stores to NULL before the addition.
35389 * Makefile.in (dse.o): Depend on $(PARAMS_H).
35390
35391 PR rtl-optimization/48141
35392 * dse.c (record_store): If no positions are needed in an insn
35393 that cannot be deleted, at least unchain it from active_local_stores.
35394
35395 2011-03-16 Dodji Seketeli <dodji@redhat.com>
35396
35397 PR debug/47510
35398 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
35399 (lookup_type_die_strip_naming_typedef): ... here.
35400 (get_context_die): Use it.
35401 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
35402 the anonymous struct named by the naming typedef.
35403
35404 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
35405
35406 PR target/48154
35407 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
35408 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
35409
35410 2011-03-16 Jeff Law <law@redhat.com>
35411
35412 * tree-vrp.c (identify_jump_threads): Slightly simplify type
35413 check for operands of conditional. Allow type to be a pointer.
35414
35415 2011-03-16 Richard Guenther <rguenther@suse.de>
35416
35417 PR tree-optimization/48149
35418 * fold-const.c (fold_binary_loc): Fold
35419 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
35420
35421 2011-03-16 Richard Guenther <rguenther@suse.de>
35422
35423 PR tree-optimization/26134
35424 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
35425 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
35426 (non_rewritable_mem_ref_base): Handle complex type component
35427 accesses, constrain offsets for vector and complex extracts
35428 more properly.
35429
35430 2011-03-16 Richard Guenther <rguenther@suse.de>
35431
35432 PR tree-optimization/48146
35433 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
35434 operands avoiding the need for renaming.
35435
35436 2011-03-16 Richard Guenther <rguenther@suse.de>
35437
35438 * gimple-fold.c (maybe_fold_reference): Open-code relevant
35439 constant folding. Move MEM_REF canonicalization first.
35440 Rely on fold_const_aggregate_ref for initializer folding.
35441 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
35442
35443 2011-03-16 Jakub Jelinek <jakub@redhat.com>
35444
35445 PR middle-end/48136
35446 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
35447 arg0/arg1 or their arguments are always fold converted to matching
35448 types.
35449
35450 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
35451 to nargs.
35452
35453 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35454
35455 PR lto/46944
35456 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
35457 Handle in-tree gold.
35458 (ld_vers): Extract binutils version for gold.
35459 (gcc_cv_ld_hidden): Handle gold here.
35460 (gcc_cv_lto_plugin): Determine level of linker plugin support.
35461 * configure: Regenerate.
35462 * config.in: Regenerate.
35463 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
35464 -fuse-linker-plugin otherwise.
35465 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
35466 (LINK_COMMAND_SPEC): Use it.
35467 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
35468
35469 2011-03-16 Jakub Jelinek <jakub@redhat.com>
35470
35471 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
35472 * calls.c: Remove debug.h include.
35473 (emit_call_1): Don't call virtual_call_token debug hook.
35474 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
35475 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
35476 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
35477 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
35478 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
35479 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
35480 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
35481 dwarf2out_virtual_call): Remove.
35482 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
35483 copy_call_info and virtual_call hooks.
35484 (dwarf2out_init): Don't initialize vcall_insn_table,
35485 debug_dcall_section and debug_vcall_section.
35486 (prune_unused_types): Don't mark nodes from dcall_table.
35487 (dwarf2out_finish): Don't output dcall or vcall tables.
35488 * final.c (final_scan_insn): Don't call direct_call or
35489 virtual_call debug hooks.
35490 * debug.h (struct gcc_debug_hooks): Remove direct_call,
35491 virtual_call_token, copy_call_info and virtual_call hooks.
35492 (debug_nothing_uid): Remove prototype.
35493 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
35494 copy_call_info and virtual_call hooks.
35495 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
35496 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
35497 * debug.c (do_nothing_debug_hooks): Likewise.
35498 (debug_nothing_uid): Remove.
35499 * doc/invoke.texi (-fenable-icf-debug): Remove.
35500 * common.opt (-fenable-icf-debug): Likewise.
35501
35502 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
35503 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
35504 call's MEM. Handle functions returning aggregate through a hidden
35505 first pointer. For virtual calls add clobbered pc to call arguments
35506 chain.
35507 * dwarf2out.c (gen_subprogram_die): Emit
35508 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
35509 can't be emitted.
35510
35511 PR debug/45882
35512 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
35513 * rtl.h (ENTRY_VALUE_EXP): Define.
35514 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
35515 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
35516 * print-rtl.c (print_rtx): Likewise.
35517 * gengtype.c (adjust_field_rtx_def): Likewise.
35518 * var-tracking.c (vt_add_function_parameter): Adjust
35519 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
35520 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
35521 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
35522 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
35523 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
35524
35525 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
35526 Call var_location debug hook even on CALL_INSNs.
35527 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
35528 * rtl.def (ENTRY_VALUE): New.
35529 * dwarf2out.c: Include cfglayout.h.
35530 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
35531 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
35532 (struct call_arg_loc_node): New type.
35533 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
35534 tail_call_site_count): New variables.
35535 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
35536 DW_TAG_GNU_call_site_parameter.
35537 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
35538 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
35539 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
35540 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
35541 and DW_AT_GNU_all_source_call_sites.
35542 (mem_loc_descriptor): Handle ENTRY_VALUE.
35543 (add_src_coords_attributes): Don't add enything if
35544 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
35545 (dwarf2out_abstract_function): Save and clear call_arg_location,
35546 call_site_count and tail_call_site_count around dwarf2out_decl call.
35547 (gen_call_site_die): New function.
35548 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
35549 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
35550 (dwarf2out_function_decl): Clear call_arg_locations,
35551 call_arg_loc_last, set call_site_count and tail_call_site_count
35552 to -1 and free block_map.
35553 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
35554 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
35555 followed by any real instructions.
35556 (dwarf2out_begin_function): Set call_site_count and
35557 tail_call_site_count to 0.
35558 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
35559 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
35560 attempt to force a DIE for it and worst case remove the attribute.
35561 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
35562 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
35563 the decl itself.
35564 * var-tracking.c: Include tm_p.h.
35565 (vt_stack_adjustments): For calls call note_register_arguments.
35566 (argument_reg_set): New variable.
35567 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
35568 ensure the VALUE is resolved.
35569 (call_arguments): New variable.
35570 (prepare_call_arguments): New function.
35571 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
35572 (struct expand_loc_callback_data): Add ignore_cur_loc field.
35573 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
35574 always use the best expression.
35575 (vt_expand_loc): Add ignore_cur_loc argument.
35576 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
35577 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
35578 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
35579 note for all calls.
35580 (vt_add_function_parameter): Use cselib_lookup_from_insn.
35581 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
35582 argument. Don't call cselib_preserve_only_values and
35583 cselib_reset_table.
35584 (note_register_arguments): New function.
35585 (vt_initialize): Compute argument_reg_set. Call
35586 vt_add_function_parameters before processing basic blocks instead of
35587 afterwards. For calls call prepare_call_arguments before calling
35588 cselib_process_insn.
35589 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
35590 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
35591 (var-tracking.o): Depend on $(TM_P_H).
35592 * cfglayout.h (insn_scope): New prototype.
35593 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
35594 * cfglayout.c (insn_scope): No longer static.
35595 * insn-notes.def (CALL_ARG_LOCATION): New.
35596 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
35597 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
35598 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
35599 nothing for DECL_EXTERNAL BLOCK_VARS.
35600
35601 2011-03-16 Alan Modra <amodra@gmail.com>
35602
35603 PR target/45844
35604 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
35605 create invalid offset address for vsx splat insn.
35606 * config/rs6000/predicates.md (splat_input_operand): New.
35607 * config/rs6000/vsx.md (vsx_splat_*): Use it.
35608
35609 2011-03-15 Xinliang David Li <davidxl@google.com>
35610
35611 PR c/47837
35612 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
35613 (normalize_preds): New function.
35614 (is_use_properly_guarded): Normalize def predicates.
35615
35616 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
35617
35618 PR target/46788
35619 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
35620 in the output template.
35621
35622 2011-03-15 Richard Guenther <rguenther@suse.de>
35623
35624 PR middle-end/47650
35625 * tree-pretty-print.c (dump_function_declaration): Properly
35626 dump unprototyped and varargs function types.
35627
35628 2011-03-15 Richard Guenther <rguenther@suse.de>
35629
35630 PR tree-optimization/13954
35631 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
35632 and friends.
35633
35634 2011-03-15 Richard Guenther <rguenther@suse.de>
35635
35636 PR tree-optimization/48037
35637 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
35638 selects into BIT_FIELD_REFs.
35639 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
35640 vector select.
35641
35642 2011-03-15 Jakub Jelinek <jakub@redhat.com>
35643
35644 PR tree-optimization/48129
35645 * builtins.c (fold_builtin_snprintf): Convert to type of
35646 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
35647 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
35648
35649 2011-03-15 Richard Guenther <rguenther@suse.de>
35650
35651 PR tree-optimization/41490
35652 * tree-ssa-dce.c (propagate_necessity): Handle returns without
35653 value but with VUSE.
35654 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
35655 return statements.
35656 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
35657 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
35658 * tree-tailcall.c (find_tail_calls): Ignore returns.
35659
35660 2011-03-15 Richard Guenther <rguenther@suse.de>
35661
35662 PR middle-end/48031
35663 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
35664 or variable-indexed array accesses when in gimple form.
35665
35666 2011-03-15 Richard Guenther <rguenther@suse.de>
35667
35668 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
35669
35670 2011-03-15 Alan Modra <amodra@gmail.com>
35671
35672 PR target/48032
35673 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
35674 presume symbol_refs without a symbol_ref_decl are suitably
35675 aligned, nor other trees we may see here. Handle anchor symbols.
35676 (legitimate_constant_pool_address_p): Comment. Add mode param.
35677 Check cmodel=medium addresses. Adjust all calls.
35678 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
35679 creating cmodel=medium optimized access to locals.
35680 * config/rs6000/constraints.md (R): Pass QImode to
35681 legitimate_constant_pool_address_p.
35682 * config/rs6000/predicates.md (input_operand): Pass mode to
35683 legitimate_constant_pool_address_p.
35684 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
35685 Update prototype.
35686
35687 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
35688
35689 PR target/48053
35690 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
35691 64-bit constants being loaded into registers other than GPRs such
35692 as loading 0 into a VSX register.
35693
35694 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35695
35696 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
35697
35698 2011-03-14 Jakub Jelinek <jakub@redhat.com>
35699
35700 PR middle-end/47917
35701 * builtins.c (fold_builtin_snprintf): New function.
35702 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
35703 (fold_builtin_4): Likewise.
35704
35705 PR middle-end/38878
35706 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
35707 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
35708 and C - X == X also strip nops from +/-/p+ operand.
35709 When optimizing -X == C, fold C to arg0's type.
35710
35711 PR debug/47946
35712 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
35713 emit it as add_AT_int instead of add_AT_unsigned.
35714
35715 2011-03-14 Tom Tromey <tromey@redhat.com>
35716
35717 * unwind-dw2.c: Include sys/sdt.h if it exists.
35718 (_Unwind_DebugHook): Use STAP_PROBE2.
35719 * config.in, configure: Rebuild.
35720 * configure.ac: Check for sys/sdt.h.
35721
35722 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
35723
35724 * config/i386/i386.md (ROUND_FLOOR): New constant.
35725 (ROUND_CEIL): Ditto.
35726 (ROUND_TRUNC): Ditto.
35727 (ROUND_MXCSR): Ditto.
35728 (ROUND_NO_EXC): Ditto.
35729 (rint<mode>2): Use new defines instead of numerical constants.
35730 (floor<mode>2): Ditto.
35731 (ceil<mode>2): Ditto.
35732 (btrunc<mode>2): Ditto.
35733 * config/i386/i386-builtin-types.def: Define ROUND function type
35734 aliases.
35735 * config/i386/i386.c (enum ix86_builtins): Add
35736 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
35737 (struct builtin_description): Add
35738 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
35739 (ix86_expand_sse_round): New static function.
35740 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
35741 function types.
35742 (ix86_builtin_vectorized_function): Handle
35743 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
35744
35745 2011-03-14 Tom Tromey <tromey@redhat.com>
35746
35747 * c-parser.c (c_parser_asm_string_literal): Clear
35748 warn_overlength_strings.
35749
35750 2011-03-14 Tom Tromey <tromey@redhat.com>
35751
35752 * c-parser.c (disable_extension_diagnostics): Save
35753 warn_overlength_strings.
35754 (restore_extension_diagnostics): Restore warn_overlength_strings.
35755
35756 2011-03-14 Jakub Jelinek <jakub@redhat.com>
35757
35758 * BASE-VER: Change to 4.7.0.
35759
35760 2011-03-14 Richard Guenther <rguenther@suse.de>
35761
35762 PR middle-end/48098
35763 * tree.c (build_vector_from_val): Adjust assert to requirements
35764 and reality.
35765
35766 2011-03-14 Jakub Jelinek <jakub@redhat.com>
35767
35768 PR bootstrap/48102
35769 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
35770
35771 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
35772
35773 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
35774 terms of target_flags_explicit. Adjust copyright year.
35775
35776 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
35777 * config/rs6000/t-freebsd: New file. Add override for
35778 LIB2FUNCS_EXTRA.
35779
35780 2011-03-13 Chris Demetriou <cgd@google.com>
35781
35782 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
35783 (-fno-diagnostics-show-option): this, to reflect current default.
35784 (-Werror=): Update text about -fno-diagnostics-show-option.
35785
35786 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
35787
35788 PR target/48053
35789 * config/rs6000/predicates.md (easy_vector_constant_add_self,
35790 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
35791 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
35792 mode is not V2DImode or V2DFmode.
35793 (vspltis_constant): Do not handle V2DImode and V2DFmode.
35794 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
35795 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
35796 registers to 0.
35797 (movdi_internal64): Likewise.
35798
35799 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
35800
35801 PR tree-optimization/47127
35802 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
35803 parameter.
35804 (set_cloog_options): Same.
35805 (scop_to_clast): Same.
35806 (print_clast_stmt): Do not call cloog_state_malloc and
35807 cloog_state_free.
35808 (print_generated_program): Same.
35809 (gloog): Same.
35810 * graphite-clast-to-gimple.h (cloog_state): Declared.
35811 (scop_to_clast): Adjust declaration.
35812 * graphite.c (cloog_state): Defined here.
35813 (graphite_initialize): Call cloog_state_malloc.
35814 (graphite_finalize): Call cloog_state_free.
35815
35816 2011-03-11 Jason Merrill <jason@redhat.com>
35817
35818 * attribs.c (lookup_attribute_spec): Take const_tree.
35819 * tree.h: Adjust.
35820
35821 2011-03-11 Joseph Myers <joseph@codesourcery.com>
35822
35823 * config/sparc/sparc.c (sparc_option_override): Use
35824 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
35825
35826 2011-03-11 Richard Guenther <rguenther@suse.de>
35827
35828 PR tree-optimization/48067
35829 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
35830 multiplication result will be only used once on the target
35831 stmt.
35832
35833 2011-03-11 Richard Guenther <rguenther@suse.de>
35834
35835 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
35836
35837 2011-03-11 Richard Guenther <rguenther@suse.de>
35838
35839 PR lto/48073
35840 * tree.c (find_decls_types_r): Do not walk types only reachable
35841 from IDENTIFIER_NODEs.
35842
35843 2011-03-11 Jakub Jelinek <jakub@redhat.com>
35844
35845 PR middle-end/48044
35846 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
35847 all vnode->force_output nodes as needed.
35848
35849 2011-03-11 Jason Merrill <jason@redhat.com>
35850
35851 PR c++/48069
35852 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
35853 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
35854
35855 2011-03-11 Martin Jambor <mjambor@suse.cz>
35856
35857 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
35858 cgraph_node.
35859
35860 2011-03-11 Jakub Jelinek <jakub@redhat.com>
35861
35862 PR tree-optimization/48063
35863 * ipa-inline.c (cgraph_decide_inlining): Don't try to
35864 inline functions called once if !tree_can_inline_p (node->callers).
35865
35866 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
35867
35868 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
35869 extra_objs.
35870 * config/score/score3.c: Delete.
35871 * config/score/score3.h: Delete.
35872 * config/score/mul-div.S: Delete.
35873 * config/score/sfp-machine.h: Add new file.
35874 * config/score/constraints.md: Add new file.
35875 * config/score/t-score-softfp: Add new file.
35876 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
35877 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
35878 (score7_extra_constraint): Delete.
35879 (score7_option_override): Remove unused code.
35880 * config/score/score.c: Remove score3 and score5 define and code.
35881 * config/score/score.h: Remove score3 and score5 define and code.
35882 * config/score/score.md: Remove score3 template and unusual insn.
35883 * config/score/score.opt: Remove score3 and score5 options.
35884
35885 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35886
35887 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
35888 when _HPUX_SOURCE is defined.
35889 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
35890
35891 2011-03-10 Jason Merrill <jason@redhat.com>
35892
35893 PR c++/48029
35894 * stor-layout.c (layout_type): Don't set structural equality
35895 on arrays of incomplete type.
35896 * tree.c (type_hash_eq): Handle comparing them properly.
35897
35898 2011-03-10 Jakub Jelinek <jakub@redhat.com>
35899
35900 PR debug/48043
35901 * config/s390/s390.c (s390_delegitimize_address): Make sure the
35902 result mode matches original rtl mode.
35903
35904 2011-03-10 Nick Clifton <nickc@redhat.com>
35905
35906 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
35907 (andsi3, andsi3_flags): Fix timings for three operand alternative.
35908
35909 2011-03-09 Jakub Jelinek <jakub@redhat.com>
35910
35911 PR rtl-optimization/47866
35912 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
35913 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
35914 if target wasn't scalar.
35915 * function.c (assign_stack_temp_for_type): Assert that neither
35916 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
35917 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
35918 macro.
35919 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
35920
35921 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35922
35923 * config/s390/s390-protos.h (s390_label_align): New prototype.
35924 * config/s390/s390.c (s390_label_align): New function.
35925 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
35926
35927 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
35928
35929 PR target/47755
35930 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
35931 V2DI/V2DF constants. Only all 0's or all 1's are easy.
35932 (output_vec_const_move): Ditto.
35933
35934 2011-03-08 Anatoly Sokolov <aesok@post.ru>
35935
35936 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
35937 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
35938 * config/mips/mips.c (mips_preferred_reload_class): Make static.
35939 Change 'rclass' argument and result type to reg_class_t.
35940 (TARGET_PREFERRED_RELOAD_CLASS): Define.
35941
35942 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
35943
35944 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
35945 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
35946 (TARGET_MEMORY_MOVE_COST): Define.
35947 (avr_register_move_cost, avr_memory_move_cost): New Functions.
35948
35949 2011-03-08 Jakub Jelinek <jakub@redhat.com>
35950
35951 PR debug/47881
35952 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
35953 removed anything.
35954
35955 PR tree-optimization/48022
35956 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
35957 for EQ/NE_EXPR.
35958
35959 2011-03-07 Jakub Jelinek <jakub@redhat.com>
35960
35961 PR debug/47991
35962 * var-tracking.c (find_use_val): Return NULL for
35963 cui->sets && cui->store_p BLKmode MEMs.
35964
35965 2011-03-07 Anatoly Sokolov <aesok@post.ru>
35966
35967 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
35968 Remove.
35969 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
35970 xstormy16_print_operand_address): Remove.
35971 * config/stormy16/stormy16.c (xstormy16_print_operand,
35972 xstormy16_print_operand_address): Make static.
35973 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
35974
35975 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
35976
35977 PR target/47862
35978 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
35979 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
35980 before definition.
35981
35982 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
35983
35984 PR bootstrap/48000
35985 * cfgloopmanip.c (fix_bb_placements): Return immediately
35986 if FROM is BASE_LOOP's header.
35987
35988 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
35989
35990 * gimplify.c (gimplify_function_tree): Fix building calls
35991 to __builtin_return_address.
35992
35993 2011-03-07 Alan Modra <amodra@gmail.com>
35994
35995 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
35996 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
35997 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
35998 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
35999 return_mode args.
36000 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
36001 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
36002 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
36003 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
36004 * config/rs6000/rs6000.c
36005 (rs6000_elf_end_indicate_exec_stack): Rename to..
36006 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
36007 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
36008 (rs6000_file_start): ..here.
36009 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
36010 file scope variables.
36011 (call_ABI_of_interest): New function.
36012 (init_cumulative_args): Set above vars when function return value
36013 is a float, vector, or small struct.
36014 (rs6000_function_arg_advance_1): Likewise for function args.
36015 (rs6000_va_start): Set rs6000_passes_float if variable arg function
36016 references float args.
36017
36018 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
36019
36020 * doc/cfg.texi: Remove "See" before @ref.
36021 * doc/invoke.texi: Likewise.
36022
36023 2011-03-05 Jason Merrill <jason@redhat.com>
36024
36025 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
36026
36027 2011-03-05 Anthony Green <green@moxielogic.com>
36028
36029 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
36030
36031 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
36032
36033 PR rtl-optimization/47899
36034 * cfgloopmanip.c (fix_bb_placements): Fix first argument
36035 to flow_loop_nested_p when moving the loop upward.
36036
36037 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
36038
36039 PR target/47719
36040 * arm.md (movhi_insn_arch4): Accept any immediate constant.
36041
36042 2011-03-05 Jakub Jelinek <jakub@redhat.com>
36043
36044 PR tree-optimization/47967
36045 * ipa-cp.c (build_const_val): Return NULL instead of creating
36046 VIEW_CONVERT_EXPR for mismatching sizes.
36047 (ipcp_create_replace_map): Return NULL if build_const_val failed.
36048 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
36049 give up on versioning.
36050
36051 2011-03-05 Alan Modra <amodra@gmail.com>
36052
36053 PR target/47986
36054 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
36055 full cmodel medium/large lo_sum + high addresses.
36056
36057 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36058
36059 * config/s390/s390.c (s390_decompose_address): Reject non-literal
36060 pool references in UNSPEC_LTREL_OFFSET.
36061
36062 2011-03-04 Jan Hubicka <jh@suse.cz>
36063
36064 PR lto/47497
36065 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
36066 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
36067 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
36068 Add node pointers.
36069 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
36070 cgraph_add_thunk): Add node pointers.
36071 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
36072 associated to right node.
36073 (input_node): Update use of cgraph_same_body_alias
36074 and cgraph_add_thunk.
36075
36076 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
36077
36078 * config/i386/i386.opt (mprefer-avx128): New flag.
36079 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
36080 modes when the flag -mprefer-avx128 is on.
36081
36082 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
36083
36084 * dwarf2out.c (compare_loc_operands): Fix address handling.
36085
36086 2011-03-04 Alan Modra <amodra@gmail.com>
36087
36088 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
36089
36090 2011-03-04 Richard Guenther <rguenther@suse.de>
36091
36092 PR middle-end/47968
36093 * expmed.c (extract_bit_field_1): Prefer vector modes that
36094 vec_extract patterns can handle.
36095
36096 2011-03-04 Richard Guenther <rguenther@suse.de>
36097
36098 PR middle-end/47975
36099 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
36100
36101 2011-03-04 Richard Henderson <rth@redhat.com>
36102
36103 * explow.c (emit_stack_save): Remove 'after' parameter.
36104 (emit_stack_restore): Likewise.
36105 * expr.h: Update to match.
36106 * builtins.c, calls.c, stmt.c: Likewise.
36107 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
36108 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
36109 * function.c (expand_function_end): Insert the emit_stack_save
36110 sequence before parm_birth_insn instead of after.
36111
36112 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
36113
36114 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
36115 (ssse3_pmaddubsw128): Ditto.
36116 (ssse3_pmaddubsw): Ditto.
36117
36118 2011-03-03 Steve Ellcey <sje@cup.hp.com>
36119
36120 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
36121
36122 2011-03-03 Jakub Jelinek <jakub@redhat.com>
36123
36124 PR c/47963
36125 * gimplify.c (omp_add_variable): Only call omp_notice_variable
36126 on TYPE_SIZE_UNIT if it is a DECL.
36127
36128 PR debug/47283
36129 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
36130 first operand is not is_gimple_mem_ref_addr, try to fold it.
36131 If the operand still isn't is_gimple_mem_ref_addr, clear
36132 MEM_EXPR on op0.
36133
36134 2011-03-03 Richard Guenther <rguenther@suse.de>
36135
36136 PR middle-end/47283
36137 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
36138 match comment.
36139 (refs_may_alias_p_1): For release branches return true if
36140 we are confused by our input.
36141
36142 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36143
36144 * config/s390/s390.c (s390_function_value): Rename to ...
36145 (s390_function_and_libcall_value): ... this.
36146 (s390_function_value): New function.
36147 (s390_libcall_value): New function.
36148 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
36149 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
36150 target macro definitions.
36151 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
36152
36153 2011-03-02 Joseph Myers <joseph@codesourcery.com>
36154
36155 * config/i386/freebsd64.h (CC1_SPEC): Define.
36156 * config/i386/linux64.h (CC1_SPEC): Define.
36157 * config/i386/x86-64.h (CC1_SPEC): Don't define.
36158
36159 2011-03-02 Anatoly Sokolov <aesok@post.ru>
36160
36161 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
36162 Remove.
36163 * config/stormy16/stormy16.c: Include reload.h.
36164 (xstormy16_memory_move_cost): New function.
36165 (TARGET_MEMORY_MOVE_COST): Define.
36166
36167 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
36168
36169 PR rtl-optimization/47925
36170 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
36171 with side effects. Remove the more-specific check for volatile asms.
36172
36173 2011-03-02 Alan Modra <amodra@gmail.com>
36174
36175 PR target/47935
36176 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
36177 toc relative addresses for valid offsets.
36178
36179 2011-03-01 Richard Guenther <rguenther@suse.de>
36180
36181 PR tree-optimization/47890
36182 * tree-vect-loop.c (get_initial_def_for_induction): Set
36183 related stmt properly.
36184
36185 2011-03-01 Richard Guenther <rguenther@suse.de>
36186
36187 PR lto/47924
36188 * lto-streamer.c (lto_record_common_node): Also register
36189 the canonical type.
36190
36191 2011-03-01 Richard Guenther <rguenther@suse.de>
36192
36193 PR lto/46911
36194 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
36195 Do not stream DECL_ABSTRACT_ORIGIN.
36196 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
36197 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
36198 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
36199 Do not stream DECL_ABSTRACT_ORIGIN.
36200 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
36201 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
36202
36203 2011-02-28 Anatoly Sokolov <aesok@post.ru>
36204
36205 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
36206 FUNCTION_VALUE_REGNO_P): Remove.
36207 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
36208 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
36209 Add 'outgoing' argument.
36210 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
36211 function.
36212 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
36213 TARGET_FUNCTION_VALUE_REGNO_P): Define.
36214
36215 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
36216
36217 PR debug/28047
36218 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
36219 (lookup_filename): Likewise.
36220 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
36221
36222 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
36223 Jakub Jelinek <jakub@redhat.com>
36224
36225 PR middle-end/47893
36226 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
36227 (assign_stack_local_1): Change last argument type to int.
36228 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
36229 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
36230 don't record padding space into frame_space_list nor use those areas.
36231 (assign_stack_local): Adjust caller.
36232 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
36233 of assign_stack_local, pass 0 as last argument.
36234 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
36235 callers.
36236
36237 2011-02-28 Jakub Jelinek <jakub@redhat.com>
36238
36239 PR debug/47283
36240 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
36241 Use target address_mode and pointer_mode hooks instead of hardcoded
36242 Pmode and ptr_mode. Handle some simple cases of extending if
36243 POINTERS_EXTEND_UNSIGNED < 0.
36244 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
36245 Call convert_debug_memory_address.
36246 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
36247 convert_debug_memory_address.
36248
36249 PR middle-end/46790
36250 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
36251 * configure: Regenerated.
36252 * config.in: Regenerated.
36253 * varasm.c (default_function_section): Return NULL
36254 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
36255
36256 2011-02-28 Martin Jambor <mjambor@suse.cz>
36257
36258 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
36259 the description to match the printed values.
36260
36261 2011-02-28 Richard Guenther <rguenther@suse.de>
36262
36263 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
36264 of the copied scope tree.
36265
36266 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36267
36268 * doc/extend.texi (Function Attributes): Avoid deeply (and
36269 wrongly) nested tables.
36270
36271 2011-02-27 Jakub Jelinek <jakub@redhat.com>
36272
36273 PR middle-end/47903
36274 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
36275 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
36276 r isn't op0 nor op1.
36277
36278 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
36279
36280 * config/avr/avr.md: Remove magic comment for emacs.
36281
36282 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
36283
36284 PR target/45261
36285 * config/avr/avr.c (avr_option_override): Use error on bad options.
36286 (avr_help): New function.
36287 (TARGET_HELP): Define.
36288
36289 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
36290
36291 PR target/42240
36292 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
36293 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
36294
36295 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
36296
36297 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
36298 (ARM Options): Ditto.
36299 (i386 and x86-64 Options): Ditto.
36300 (RX Options): Ditto.
36301 (SPARC Options): Ditto.
36302
36303 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
36304
36305 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
36306 FreeBSD 6 and later. Generally use cpu generic.
36307
36308 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
36309
36310 * doc/cpp.texi: Update copyright years.
36311
36312 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
36313
36314 PR target/46898
36315 * config/lm32/lm32.md (ashrsi3): Added needed variable.
36316
36317 2011-02-25 Jon Beniston <jon@beniston.com>
36318
36319 PR target/46898
36320 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
36321 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
36322 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
36323 (lm32_block_move_inline): Add type cast to remove warning.
36324 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
36325 (gen_int_relational): Move declarations to start of function.
36326
36327 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
36328
36329 PR tree-optimization/45470
36330 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
36331 can throw internally only.
36332 * tree-vect-stmts.c (vectorizable_call): Likewise.
36333
36334 2011-02-24 Anatoly Sokolov <aesok@post.ru>
36335
36336 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
36337 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
36338 * config/stormy16/stormy16-protos.h
36339 (xstormy16_preferred_reload_class): Remove.
36340 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
36341 static. Change 'rclass' argument and return type to reg_class_t.
36342 (TARGET_PREFERRED_RELOAD_CLASS,
36343 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
36344
36345 2011-02-24 Richard Guenther <rguenther@suse.de>
36346
36347 * lto-streamer-in.c (input_bb): Do not find referenced vars
36348 in debug statements.
36349
36350 2011-02-23 Jason Merrill <jason@redhat.com>
36351
36352 * common.opt (fabi-version): Document v5 and v6.
36353
36354 2011-02-23 Richard Guenther <rguenther@suse.de>
36355
36356 PR tree-optimization/47849
36357 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
36358
36359 2011-02-23 Jie Zhang <jie@codesourcery.com>
36360
36361 * opts-common.c (decode_cmdline_option): Print empty string
36362 argument as "" in decoded->orig_option_with_args_text.
36363 * gcc.c (execute): Print empty string argument as ""
36364 in the verbose output.
36365 (do_spec_1): Keep empty string argument.
36366
36367 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
36368
36369 * config.gcc: Declare score-* and crx-* obsolete.
36370
36371 2011-02-23 Jie Zhang <jie@codesourcery.com>
36372
36373 PR rtl-optimization/47763
36374 * web.c (web_main): Ignore naked clobber when replacing register.
36375
36376 2011-02-22 Anatoly Sokolov <aesok@post.ru>
36377
36378 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
36379 Remove.
36380
36381 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
36382
36383 PR doc/47848
36384 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
36385
36386 2011-02-22 Mike Stump <mikestump@comcast.net>
36387
36388 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
36389 assembler.
36390 * configure: Regenerate.
36391
36392 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
36393
36394 PR rtl-optimization/46002
36395 * ira-color.c (update_copy_costs): Change class intersection
36396 test to reg_class_contents[] test of 'hard_regno'.
36397
36398 2011-02-21 Joseph Myers <joseph@codesourcery.com>
36399
36400 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
36401 than Driver option.
36402 * config/hpux11.opt (mt): Likewise.
36403 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
36404 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
36405 * config/vax/elf.opt (mno-asm-pic): Likewise.
36406 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
36407
36408 2011-02-21 Mike Stump <mikestump@comcast.net>
36409
36410 PR target/47822
36411 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
36412 tree so we can get save the type.
36413 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
36414 for CFString instead of trying to use past the end of the builtins.
36415 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
36416 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
36417 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
36418 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
36419 Rename to darwin_builtin_cfstring.
36420 (darwin_init_cfstring_builtins): Return the built type.
36421
36422 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
36423
36424 PR target/47840
36425 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
36426 (_mm256_insert_epi64): Use _mm_insert_epi64.
36427
36428 2011-02-21 Anatoly Sokolov <aesok@post.ru>
36429
36430 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
36431 * config/stormy16/stormy16-protos.h
36432 (xstormy16_mode_dependent_address_p): Remove.
36433 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
36434 Make static. Change return type to bool. Change argument type to
36435 const_rtx. Remove dead code.
36436 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
36437
36438 2011-02-21 Richard Guenther <rguenther@suse.de>
36439
36440 PR lto/47820
36441 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
36442 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
36443 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
36444 TUs context.
36445 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
36446 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
36447
36448 2011-02-20 Richard Guenther <rguenther@suse.de>
36449
36450 PR lto/47822
36451 * tree.c (free_lang_data_in_decl): Clean builtins from
36452 the TU decl BLOCK_VARS.
36453
36454 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
36455
36456 PR debug/47620
36457 PR debug/47630
36458 * haifa-sched.c (fix_tick_ready): Skip tick computation
36459 for debug insns.
36460
36461 2011-02-19 Richard Guenther <rguenther@suse.de>
36462
36463 PR lto/47647
36464 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
36465 Remove lazy BLOCK_VARS streaming.
36466 (lto_input_ts_block_tree_pointers): Likewise.
36467 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
36468
36469 2011-02-19 Joseph Myers <joseph@codesourcery.com>
36470
36471 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
36472
36473 2011-02-19 Joseph Myers <joseph@codesourcery.com>
36474
36475 * config/i386/biarch32.h, config/i386/mach.h,
36476 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
36477
36478 2011-02-19 Jakub Jelinek <jakub@redhat.com>
36479
36480 PR target/47800
36481 * config/i386/i386.md (peephole2 for shift and plus): Use
36482 operands[1] original mode in the first insn.
36483
36484 2011-02-18 Mike Stump <mikestump@comcast.net>
36485
36486 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
36487
36488 2011-02-18 Jan Hubicka <jh@suse.cz>
36489
36490 PR middle-end/47788
36491 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
36492 to zero when the function is not inlinable at all.
36493
36494 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36495
36496 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
36497 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
36498 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
36499 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
36500 * config/pa/t-pa64: Likewise.
36501 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
36502
36503 2011-02-18 Jakub Jelinek <jakub@redhat.com>
36504
36505 PR driver/47787
36506 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
36507
36508 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36509
36510 PR target/47792
36511 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
36512
36513 2011-02-18 Anatoly Sokolov <aesok@post.ru>
36514
36515 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
36516 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
36517 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
36518 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
36519 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
36520 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
36521 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
36522 m32r_load_postinc_p, m32r_store_preinc_predec_p,
36523 m32r_legitimate_address_p): New functions.
36524 * config/m32r/constraints.md (constraint "S"): Don't use
36525 STORE_PREINC_PREDEC_P.
36526 (constraint "U"): Don't use LOAD_POSTINC_P.
36527
36528 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
36529
36530 PR rtl-optimization/46178
36531 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
36532 compute ira_hard_regno_cover_class[].
36533
36534 2011-02-18 Richard Guenther <rguenther@suse.de>
36535
36536 PR lto/47798
36537 * lto-streamer.h (lto_global_var_decls): Declare.
36538 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
36539 statics for global var processing.
36540
36541 2011-02-18 Richard Guenther <rguenther@suse.de>
36542
36543 PR tree-optimization/47737
36544 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
36545 edge dominance check.
36546
36547 2011-02-18 Jakub Jelinek <jakub@redhat.com>
36548
36549 PR debug/47780
36550 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
36551 avoid invalid rtx sharing.
36552
36553 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
36554
36555 * doc/cpp.texi (Obsolete Features): Add background on the
36556 origin of assertions.
36557
36558 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
36559
36560 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
36561 objc_abi == 2.
36562 * config/darwin.c (output_objc_section_asm_op): Added support for
36563 ABI v1 and v2.
36564 (is_objc_metadata): New.
36565 (darwin_objc2_section): New.
36566 (darwin_objc1_section): New.
36567 (machopic_select_section): Added support for ABI v1 and v2.
36568 (darwin_emit_objc_zeroed): New.
36569 (darwin_output_aligned_bss): Detect objc metadata and treat it
36570 appropriately.
36571 (darwin_asm_output_aligned_decl_common): Same.
36572 (darwin_asm_output_aligned_decl_local): Same.
36573 * config/darwin-sections.def: Updated for ABI v1 and v2.
36574 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
36575 compiling Objective-C code for the NeXT runtime, default to using
36576 ABI version 0 for 32-bit, and version 2 for 64-bit.
36577
36578 2011-02-17 Joseph Myers <joseph@codesourcery.com>
36579
36580 * common.opt (optimize_fast): New Variable.
36581 * opts.c (default_options_optimization): Use opts->x_optimize_fast
36582 instead of local variable ofast.
36583
36584 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
36585
36586 * doc/invoke.texi (fobjc-abi-version): Documented.
36587 (fobjc-nilcheck): Documented.
36588 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
36589 version.
36590
36591 2011-02-17 Joseph Myers <joseph@codesourcery.com>
36592
36593 PR driver/47390
36594 * common.opt (export-dynamic): New Driver option.
36595 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
36596
36597 2011-02-17 Joseph Myers <joseph@codesourcery.com>
36598
36599 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
36600
36601 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
36602 Jan Hubicka <jh@suse.cz>
36603
36604 PR debug/47106
36605 PR debug/47402
36606 * cfgexpand.c (account_used_vars_for_block): Remove.
36607 (estimated_stack_frame_size): Use referenced vars.
36608 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
36609 that were referenced in the original function. Test src_fn
36610 rather than cfun. Drop redundant get_var_ann.
36611 (setup_one_parameter): Drop redundant get_var_ann.
36612 (declare_return_variable): Likewise.
36613 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
36614 (copy_arguments_for_versioning): Drop redundant get_var_ann.
36615 * ipa-inline.c (compute_inline_parameters): Do not compute
36616 disregard_inline_limits here.
36617 (compute_inlinable_for_current, pass_inlinable): New.
36618 (pass_inline_parameters): Require PROP_referenced_vars.
36619 * cgraphunit.c (cgraph_process_new_functions): Don't run
36620 compute_inline_parameters explicitly unless function is in SSA form.
36621 (cgraph_analyze_function): Set .disregard_inline_limits.
36622 * tree-sra.c (convert_callers): Compute inliner parameters
36623 only for functions already in SSA form.
36624
36625 2011-02-17 Joseph Myers <joseph@codesourcery.com>
36626
36627 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
36628 -mlittle-endian-data.
36629
36630 2011-02-17 Joseph Myers <joseph@codesourcery.com>
36631
36632 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
36633 -mno-fpu, not -fpu and -no-fpu.
36634 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
36635 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
36636
36637 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
36638
36639 PR target/43653
36640 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
36641 input reload with PLUS RTX.
36642
36643 2011-02-16 Joseph Myers <joseph@codesourcery.com>
36644
36645 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
36646 of InverseVar(MDMX).
36647
36648 2011-02-16 Joseph Myers <joseph@codesourcery.com>
36649
36650 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
36651 --m4-340.
36652
36653 2011-02-16 Joseph Myers <joseph@codesourcery.com>
36654
36655 * config/mn10300/mn10300.opt (mno-crt0): New.
36656
36657 2011-02-16 Joseph Myers <joseph@codesourcery.com>
36658
36659 * config/m68k/uclinux.opt (static-libc): New Driver option.
36660
36661 2011-02-16 Joseph Myers <joseph@codesourcery.com>
36662
36663 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
36664
36665 2011-02-16 Joseph Myers <joseph@codesourcery.com>
36666
36667 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
36668 %{muser-extend-enabled}.
36669
36670 2011-02-16 Richard Guenther <rguenther@suse.de>
36671
36672 PR tree-optimization/47738
36673 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
36674 the TODO from tree_predictive_commoning.
36675
36676 2011-02-15 Jeff Law <law@redhat.com>
36677
36678 Revert
36679 2011-01-25 Jeff Law <law@redhat.com>
36680
36681 PR rtl-optimization/37273
36682 * ira-costs.c (scan_one_insn): Detect constants living in memory and
36683 handle them like argument loads from stack slots. Do not double
36684 count memory for memory constants and argument loads from stack slots.
36685
36686 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
36687
36688 PR target/47755
36689 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
36690 mode for vector constants. Remove code that checks for TImode.
36691
36692 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
36693
36694 PR debug/47106
36695 PR debug/47402
36696 * cgraph.h (compute_inline_parameters): Return void.
36697 * ipa-inline.c (compute_inline_parameters): Adjust.
36698
36699 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
36700
36701 PR debug/47106
36702 PR debug/47402
36703 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
36704 rather than decl.
36705 * cfgexpand.c (estimated_stack_frame_size): Likewise.
36706 * ipa-inline.c (compute_inline_parameters): Adjust.
36707
36708 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
36709
36710 PR debug/47106
36711 PR debug/47402
36712 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
36713 Adjust all users. Pass FN to...
36714 * tree-flow-inline.h (first_referenced_var): ... this. Add
36715 fn argument.
36716 * ipa-struct-reorg.c: Adjust.
36717 * tree-dfa.c: Adjust.
36718 * tree-into-ssa.c: Adjust.
36719 * tree-sra.c: Adjust.
36720 * tree-ssa-alias.c: Adjust.
36721 * tree-ssa-live.c: Adjust.
36722 * tree-ssa.c: Adjust.
36723 * tree-ssanames.c: Adjust.
36724 * tree-tailcall.c: Adjust.
36725
36726 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
36727
36728 PR debug/47106
36729 PR debug/47402
36730 * tree-flow.h (referenced_var_lookup): Add fn parameter.
36731 Adjust all callers.
36732 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
36733 * tree-flow-inline.h: Adjust.
36734 * gimple-pretty-print.c: Adjust.
36735 * tree-into-ssa.c: Adjust.
36736 * tree-ssa.c: Adjust.
36737 * cfgexpand.c: Adjust.
36738
36739 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
36740
36741 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
36742 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
36743 (EXTRA_CONSTRAINT): Delete.
36744 * config/iq2000/constraints.md: New file.
36745 * config/iq2000/iq2000.md: Include it.
36746 (define_insn ""): Delete.
36747 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
36748 unsupported constraint letters from patterns.
36749 (call_value, call_value_internal1): Likewise.
36750 (call_value_multiple_internal1): Likewise.
36751
36752 2011-02-15 Nick Clifton <nickc@redhat.com>
36753
36754 * config/mn10300/mn10300.c: Include tm-constrs.h.
36755 (struct liw_data): New data structure describing an LIW candidate
36756 instruction.
36757 (extract_bundle): Use struct liw_data. Allow small integer
36758 operands for some instructions.
36759 (check_liw_constraints): Use struct liw_data. Remove swapped
36760 parameter. Add comments describing the checks. Fix bug when
36761 assigning the source of liw1 to the source of liw2.
36762 (liw_candidate): Delete. Code moved into extract_bundle.
36763 (mn10300_bundle_liw): Use struct liw_data. Check constraints
36764 before swapping.
36765 * config/mn10300/predicates.md (liw_operand): New predicate.
36766 Allows registers and small integer constants.
36767 * config/mn10300/constraints.md (O): New constraint. Accetps
36768 integers in the range -8 to +7 inclusive.
36769 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
36770 for moving a small integer into a register. Give this alternative
36771 LIW attributes.
36772 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
36773 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
36774 using the J,K,L and M constraints,
36775 (liw): Remove SI mode on second operands to allow for HI and QI
36776 mode values.
36777 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
36778 instruction.
36779
36780 2011-02-15 Richard Guenther <rguenther@suse.de>
36781
36782 PR tree-optimization/47743
36783 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
36784 for a non-type-compatible VN lookup bail out.
36785
36786 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
36787
36788 * config/fr30/constraints.md: New file.
36789 * config/fr30/fr30.md: Include it.
36790 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
36791 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
36792 (EXTRA_CONSTRAINT): Delete.
36793
36794 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
36795
36796 * config/frv/constraints.md: New file.
36797 * config/frv/predicates.md: Include it.
36798 * config/frv/frv.c (reg_class_from_letter): Delete.
36799 (frv_option_override): Don't initialize it.
36800 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
36801 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
36802 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
36803 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
36804 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
36805 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
36806 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
36807 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
36808 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
36809 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
36810 (REG_CLASS_FROM_CONSTRAINT): Delete.
36811
36812 2011-02-15 Jakub Jelinek <jakub@redhat.com>
36813
36814 PR middle-end/47581
36815 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
36816 if frame size is 0 in a leaf function.
36817
36818 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36819
36820 PR pch/14940
36821 * config/alpha/host-osf.c: New file.
36822 * config/alpha/x-osf: New file.
36823 * config.host (alpha*-dec-osf*): Use it.
36824
36825 2011-02-14 Anatoly Sokolov <aesok@post.ru>
36826
36827 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
36828 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
36829 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
36830 (rx_mode_dependent_address_p): ...this. Make static. Change argument
36831 type to const_rtx.
36832 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
36833
36834 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
36835
36836 * config/stormy16/constraints.md: New file.
36837 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
36838 Use satisfies_constraint_Q and satisfies_constraint_R.
36839 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
36840 Delete.
36841 (xstormy16_legitiamte_address_p): Declare.
36842 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
36843 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
36844 (EXTRA_CONSTRAINT): Delete.
36845 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
36846 Un-staticize.
36847 (xstormy16_extra_constraint_p): Delete.
36848
36849 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
36850
36851 PR tree-optimization/46494
36852 * loop-unroll.c (split_edge_and_insert): Adjust comment.
36853 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
36854 (pass_rtl_loop_done): Add TODO_verify_flow.
36855 * fwprop.c (pass_rtl_fwprop): Likewise.
36856 * modulo-sched.c (pass_sms): Likewise.
36857 * tree-ssa-dom.c (pass_dominator): Likewise.
36858 * tree-ssa-loop-ch.c (pass_ch): Likewise.
36859 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
36860 (pass_tree_loop_done): Likewise.
36861 * tree-ssa-pre.c (execute_pre): Likewise.
36862 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
36863 * tree-ssa-sink.c (pass_sink_code): Likewise.
36864 * tree-vrp.c (pass_vrp): Likewise.
36865
36866 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
36867
36868 * config/v850/constraints.md: New file.
36869 * config/v850/v850.md: Include it.
36870 * config/v850/predicates.md (reg_or_0_operand): Use
36871 satisfies_constraint_G.
36872 (special_symbolref_operand): Use satisfies_constraint_K.
36873 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
36874 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
36875 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
36876 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
36877 (EXTRA_CONSTRAINT): Delete.
36878 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
36879 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
36880 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
36881
36882 2011-02-14 Anatoly Sokolov <aesok@post.ru>
36883
36884 PR target/47696
36885 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
36886 description.
36887
36888 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
36889
36890 * config/mcore/constraints.md: New file.
36891 * config/mcore/mcore.md: Include it.
36892 * config/mcore/mcore.c (reg_class_from_letter): Delete.
36893 * config/mcore/mcore.h (reg_class_from_letter): Delete.
36894 (REG_CLASS_FROM_LETTER): Delete.
36895 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
36896 insn_const_int_ok_for_constraint.
36897 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
36898 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
36899 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
36900 (EXTRA_CONSTRAINT): Delete.
36901
36902 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36903
36904 PR ada/41929
36905 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
36906 (IS_SIGHANDLER): Define.
36907 (sparc64_is_sighandler): New function, split off from
36908 sparc64_fallback_frame_state.
36909 (sparc_is_sighandler): New function, split off from
36910 sparc_fallback_frame_state.
36911 (sparc64_fallback_frame_state): Merge with ...
36912 (sparc_fallback_frame_state): ... this into ...
36913 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
36914 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
36915 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
36916 stack instead of hardcoded offsets.
36917
36918 2011-02-14 Andriy Gapon <avg@freebsd.org>
36919
36920 PR target/45808
36921 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
36922
36923 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36924
36925 * configure: Regenerate.
36926
36927 2011-02-12 Joseph Myers <joseph@codesourcery.com>
36928
36929 PR driver/45731
36930 * gcc.c (asm_options): Correct spec matching --target-help.
36931
36932 2011-02-12 Martin Jambor <mjambor@suse.cz>
36933
36934 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
36935 to gimple call error.
36936
36937 2011-02-12 Mike Stump <mikestump@comcast.net>
36938
36939 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
36940 comments in backslash regions.
36941
36942 2011-02-12 Mike Stump <mikestump@comcast.net>
36943 Jakub Jelinek <jakub@redhat.com>
36944 Iain Sandoe <iains@gcc.gnu.org>
36945
36946 PR target/47324
36947 * dwarf2out.c (output_cfa_loc): When required, apply the
36948 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
36949 (output_loc_sequence): Likewise.
36950 (output_loc_operands_raw): Likewise.
36951 (output_loc_sequence_raw): Likewise.
36952 (output_cfa_loc): Likewise.
36953 (output_loc_list): Suppress register number adjustment when
36954 calling output_loc_sequence()
36955 (output_die): Likewise.
36956
36957 2011-02-12 Anatoly Sokolov <aesok@post.ru>
36958
36959 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
36960 Remove macros.
36961 * config/xtensa/xtensa.c (xtensa_register_move_cost,
36962 xtensa_memory_move_cost): New functions.
36963 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
36964
36965 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
36966
36967 PR lto/47225
36968 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
36969 in the current directory.
36970 * configure: Rebuilt.
36971
36972 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
36973
36974 * config/darwin.c (darwin_override_options): Add a hunk missed
36975 from the commit of r168571. Trim comment line lengths and
36976 correct indents of the preceding block.
36977
36978 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
36979
36980 * gcc.c (driver_handle_option): Concatenate the argument to -F with
36981 the switch.
36982
36983 2011-02-11 Joseph Myers <joseph@codesourcery.com>
36984
36985 * common.opt (nostartfiles): New Driver option.
36986
36987 2011-02-11 Xinliang David Li <davidxl@google.com>
36988
36989 PR tree-optimization/47707
36990 * tree-chrec.c (convert_affine_scev): Keep type precision.
36991
36992 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
36993
36994 PR tree-optimization/47420
36995 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
36996
36997 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
36998
36999 PR rtl-optimization/47614
37000 * rtl.h (check_for_inc_dec): Declare.
37001 * dse.c (check_for_inc_dec): Externalize...
37002 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
37003 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
37004
37005 2011-02-11 Joseph Myers <joseph@codesourcery.com>
37006
37007 PR driver/47678
37008 * gcc.c (main): Do not compile inputs if there were errors in
37009 option handling.
37010 * opts-common.c (read_cmdline_option): Check for wrong language
37011 after other error checks.
37012
37013 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
37014
37015 * cgraph.c: Fix comment typos.
37016 * cgraph.h: Likewise.
37017 * cgraphunit.c: Likewise.
37018 * ipa-cp.c: Likewise.
37019 * ipa-inline.c: Likewise.
37020 * ipa-prop.c: Likewise.
37021 * ipa-pure-const.c: Likewise.
37022 * ipa-ref.c: Likewise.
37023 * ipa-reference.c: Likewise.
37024
37025 2011-02-11 Jakub Jelinek <jakub@redhat.com>
37026
37027 PR debug/47684
37028 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
37029
37030 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37031
37032 PR testsuite/47400
37033 * doc/sourcebuild.texi (Require Support): Document
37034 dg-require-ascii-locale.
37035
37036 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
37037
37038 * doc/lto.texi (Write summary): Fix missing parentheses.
37039
37040 2011-02-10 DJ Delorie <dj@redhat.com>
37041
37042 * config/m32c/m32c.c (m32c_option_override): Disable
37043 -fcombine-stack-adjustments until flag value tracking and compare
37044 optimization can be rewritten.
37045
37046 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
37047
37048 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
37049 PROCESSOR_POWER7.
37050 (PROCESSOR_DEFAULT64): Likewise.
37051
37052 2011-02-10 Richard Henderson <rth@redhat.com>
37053
37054 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
37055 change from 2011-02-03.
37056 * config/rx/rx.c (flags_from_code): Likewise.
37057 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
37058 is valid, n/pz otherwise.
37059 (rx_select_cc_mode): Return CCmode if Y is not zero.
37060
37061 2011-02-10 Richard Guenther <rguenther@suse.de>
37062
37063 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
37064
37065 2011-02-10 Richard Guenther <rguenther@suse.de>
37066
37067 PR tree-optimization/47677
37068 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
37069
37070 2011-02-10 Jakub Jelinek <jakub@redhat.com>
37071
37072 PR target/47665
37073 * combine.c (make_compound_operation): Only change shifts into
37074 multiplication for SCALAR_INT_MODE_P.
37075
37076 2011-02-10 Jie Zhang <jie@codesourcery.com>
37077
37078 PR testsuite/47622
37079 Revert
37080 2011-02-05 Jie Zhang <jie@codesourcery.com>
37081 PR debug/42631
37082 * web.c (entry_register): Don't clobber the number of the
37083 first uninitialized reference in used[].
37084
37085 2011-02-09 Richard Guenther <rguenther@suse.de>
37086
37087 PR tree-optimization/47664
37088 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
37089 all edges again.
37090
37091 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
37092
37093 PR target/46481
37094 PR target/47032
37095 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
37096 PROCESSOR_POWER7.
37097 (PROCESSOR_DEFAULT64): Same.
37098 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
37099
37100 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37101
37102 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
37103
37104 2011-02-09 Martin Jambor <mjambor@suse.cz>
37105
37106 PR middle-end/45505
37107 * tree-sra.c (struct access): New flags grp_scalar_read and
37108 grp_scalar_write. Changed description of assignment read and write
37109 flags.
37110 (dump_access): Dump new flags, reorder all of them.
37111 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
37112 to detect multiple scalar reads.
37113 (analyze_access_subtree): Use the new scalar read write flags instead
37114 of the old flags. Adjusted comments.
37115
37116 2011-02-08 DJ Delorie <dj@redhat.com>
37117
37118 PR target/47548
37119 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
37120 patterns.
37121
37122 2011-02-08 Joseph Myers <joseph@codesourcery.com>
37123
37124 * config/m68k/uclinux.opt: New.
37125 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
37126
37127 2011-02-08 Joseph Myers <joseph@codesourcery.com>
37128
37129 * config/cris/elf.opt (sim): New Driver option.
37130
37131 2011-02-08 Joseph Myers <joseph@codesourcery.com>
37132
37133 * config/xtensa/elf.opt: New.
37134 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
37135
37136 2011-02-08 Joseph Myers <joseph@codesourcery.com>
37137
37138 * config/vax/elf.opt: New.
37139 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
37140
37141 2011-02-08 Joseph Myers <joseph@codesourcery.com>
37142
37143 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
37144
37145 2011-02-08 Joseph Myers <joseph@codesourcery.com>
37146
37147 * config/gnu-user.opt: New.
37148 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
37149 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
37150 *-*-uclinux*): Use gnu-user.opt.
37151
37152 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
37153
37154 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
37155 * config/i386/gnu.h (CPP_SPEC): Likewise.
37156
37157 2011-02-08 Ian Lance Taylor <iant@google.com>
37158
37159 * common.opt (fcx-limited-range): Add SetByCombined flag.
37160 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
37161 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
37162 (fassociative-math, freciprocal-math): Likewise.
37163 (funsafe-math-optimizations): Likewise.
37164 * opth-gen.awk: Handle SetByCombined.
37165 * optc-gen.awk: Likewise.
37166 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
37167 (set_unsafe_math_optimizations_flags): Likewise.
37168 * doc/options.texi (Option properties): Document SetByCombined.
37169
37170 2011-02-08 Joseph Myers <joseph@codesourcery.com>
37171
37172 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
37173 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
37174 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
37175 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
37176 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
37177
37178 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
37179
37180 PR tree-optimization/46834
37181 PR tree-optimization/46994
37182 PR tree-optimization/46995
37183 * graphite-sese-to-poly.c (used_outside_reduction): New.
37184 (detect_commutative_reduction): Call used_outside_reduction.
37185 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
37186 translate_scalar_reduction_to_array only when at least one
37187 loop-phi/close-phi tuple has been detected.
37188
37189 2011-02-08 Richard Guenther <rguenther@suse.de>
37190
37191 PR middle-end/47639
37192 * tree-vect-generic.c (expand_vector_operations_1): Update
37193 stmts here ...
37194 (expand_vector_operations): ... not here. Cleanup EH info
37195 and the CFG if required.
37196
37197 2011-02-08 Richard Guenther <rguenther@suse.de>
37198
37199 PR tree-optimization/47641
37200 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
37201 require type compatibility.
37202
37203 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37204
37205 * gimple-low.c (lower_function_body): Don't remove the location of
37206 the return statement here.
37207 (lower_gimple_return): Do it here instead but only if the return
37208 statement is actually used twice.
37209
37210 2011-02-08 Richard Guenther <rguenther@suse.de>
37211
37212 PR tree-optimization/47632
37213 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
37214 unused up_to_stmt parameter, return whether cfg-cleanup is
37215 necessary, remove EH info properly.
37216 (forward_propagate_into_gimple_cond): Adjust caller.
37217 (forward_propagate_into_cond): Likewise.
37218 (forward_propagate_comparison): Likewise.
37219 (tree_ssa_forward_propagate_single_use_vars): Make
37220 forward_propagate_comparison case similar to the two others.
37221
37222 2011-02-08 Nick Clifton <nickc@redhat.com>
37223
37224 * config/mn10300/mn10300.opt (mliw): New command line option.
37225 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
37226 (liw_bundling): New automaton.
37227 (liw): New attribute.
37228 (liw_op): New attribute.
37229 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
37230 (movsi_internal): Add LIW attributes.
37231 (andsi3): Likewise.
37232 (iorsi3): Likewise.
37233 (xorsi3): Likewise.
37234 (addsi3): Separate register and immediate alternatives.
37235 Add LIW attributes.
37236 (subsi3): Likewise.
37237 (cmpsi): Likewise.
37238 (aslsi3): Likewise.
37239 (lshrsi3): Likewise.
37240 (ashrsi3): Likewise.
37241 (liw): New pattern.
37242 * config/mn10300/mn10300.c (liw_op_names): New
37243 (mn10300_print_operand): Handle 'W' operand descriptor.
37244 (extract_bundle): New function.
37245 (check_liw_constraints): New function.
37246 (liw_candidate): New function.
37247 (mn10300_bundle_liw): New function.
37248 (mn10300_reorg): New function.
37249 (TARGET_MACHINE_DEPENDENT_REORG): Define.
37250 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
37251 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
37252 __LIW__ or __NO_LIW__.
37253 * doc/invoke.texi: Describe the -mliw command line option.
37254
37255 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37256
37257 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
37258 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
37259 pthread_mutex_unlock): Remove.
37260 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
37261 * config/pa/t-pa64: Likewise.
37262 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
37263 shared libc if not linking against libpthread.
37264 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
37265
37266 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
37267
37268 PR target/47558
37269 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
37270 on 10.6 and later to ensure that we always use the unwinder from
37271 the system. Only add -no_compact_unwind when tarteting darwin
37272 10.6 or later.
37273
37274 2011-02-07 Steve Ellcey <sje@cup.hp.com>
37275
37276 PR target/46997
37277 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
37278 (vec_interleave_lowv2sf): Ditto.
37279 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
37280 (vec_extract_oddv2sf): Ditto.
37281
37282 2011-02-07 Mike Stump <mikestump@comcast.net>
37283
37284 PR target/42333
37285 Add __ieee_divdc3 entry point.
37286 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
37287 entry point.
37288 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
37289 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
37290 * config/darwin.c (darwin_rename_builtins): Add.
37291 * config/darwin-protos.h (darwin_rename_builtins): Add.
37292
37293 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
37294
37295 PR target/47636
37296 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
37297 for the condition.
37298
37299 2011-02-07 Mike Stump <mikestump@comcast.net>
37300
37301 * config/darwin.opt (mmacosx-version-min): Update default OS version.
37302
37303 2011-02-07 Denis Chertykov <chertykov@gmail.com>
37304
37305 PR target/47534
37306 * config/avr/libgcc.S (exit): Move .endfunc
37307
37308 2011-02-07 Richard Guenther <rguenther@suse.de>
37309
37310 PR tree-optimization/47615
37311 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
37312 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
37313 (run_scc_vn): Initialize it.
37314 (visit_reference_op_load): Use it.
37315 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
37316
37317 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
37318
37319 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
37320 DImode trapping arithmetic libfuncs.
37321
37322 2011-02-07 Richard Guenther <rguenther@suse.de>
37323
37324 PR tree-optimization/47621
37325 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
37326 two duplicates ...
37327 (execute_update_addresses_taken): ... here. Make it more
37328 conservative in what we accept.
37329
37330 2011-02-06 Joseph Myers <joseph@codesourcery.com>
37331
37332 * config/sparc/freebsd.h (ASM_SPEC): Define.
37333 * config/sparc/vxworks.h (ASM_SPEC): Define.
37334
37335 2011-02-06 Joseph Myers <joseph@codesourcery.com>
37336
37337 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
37338
37339 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
37340
37341 * doc/invoke.texi: Remove reference to compiler internals from
37342 user documentation.
37343
37344 * reg-notes.def: Remove REG_VALUE_PROFILE.
37345 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
37346
37347 2011-02-05 Jakub Jelinek <jakub@redhat.com>
37348
37349 PR middle-end/47610
37350 * varasm.c (default_section_type_flags): If decl is NULL,
37351 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
37352
37353 2011-02-05 Jie Zhang <jie@codesourcery.com>
37354
37355 PR debug/42631
37356 * web.c (entry_register): Don't clobber the number of the
37357 first uninitialized reference in used[].
37358
37359 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
37360
37361 PR tree-optimization/46194
37362 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
37363 (build_classic_dist_vector_1): Do not represent classic distance
37364 vectors when the access functions are variating in different loops.
37365
37366 2011-02-04 Joseph Myers <joseph@codesourcery.com>
37367
37368 * config/mips/iris6.opt: New.
37369 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
37370
37371 2011-02-04 Richard Henderson <rth@redhat.com>
37372 Steve Ellcey <sje@cup.hp.com>
37373
37374 PR target/46997
37375 * config/ia64/predicates.md (mux1_brcst_element): New.
37376 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
37377 * config/ia64/ia64.c (ia64_unpack_assemble): New.
37378 (ia64_unpack_sign): New.
37379 (ia64_expand_unpack): Rewrite using new routines.
37380 (ia64_expand_widen_sum): Ditto.
37381 (ia64_expand_dot_prod_v8qi): Ditto.
37382 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
37383 routines, add endian check.
37384 (pmpy2_even): Rename from pmpy2_r, add endian check.
37385 (pmpy2_odd): Rename from pmpy2_l, add endian check.
37386 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
37387 (vec_widen_smult_hi_v4hi): Ditto.
37388 (vec_widen_umult_lo_v4hi): Ditto.
37389 (vec_widen_umult_hi_v4hi): Ditto.
37390 (mulv2si3): Change endian checks.
37391 (sdot_prodv4hi): Rewrite with new calls.
37392 (udot_prodv4hi): New.
37393 (vec_pack_ssat_v4hi): Add endian check.
37394 (vec_pack_usat_v4hi): Ditto.
37395 (vec_pack_ssat_v2si): Ditto.
37396 (max1_even): Rename from max1_r, add endian check.
37397 (max1_odd): Rename from max1_l, add endian check.
37398 (*mux1_rev): Format change.
37399 (*mux1_mix): Ditto.
37400 (*mux1_shuf): Ditto.
37401 (*mux1_alt): Ditto.
37402 (*mux1_brcst_v8qi): Use new predicate.
37403 (vec_extract_evenv8qi): Remove endian check.
37404 (vec_extract_oddv8qi): Ditto.
37405 (vec_interleave_lowv4hi): Format change.
37406 (vec_interleave_highv4hi): Ditto.
37407 (mix2_even): Rename from mix2_r, add endian check.
37408 (mix2_odd): Rename from mux2_l, add endian check.
37409 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
37410 (vec_extract_evenodd_helper): Format change.
37411 (vec_extract_evenv4hi): Remove endian check.
37412 (vec_extract_oddv4hi): Remove endian check.
37413 (vec_interleave_lowv2si): Format change.
37414 (vec_interleave_highv2si): Format change.
37415 (vec_initv2si): Remove endian check.
37416 (vecinit_v2si): Add endian check.
37417 (reduc_splus_v2sf): Add endian check.
37418 (reduc_smax_v2sf): Ditto.
37419 (reduc_smin_v2sf): Ditto.
37420 (vec_initv2sf): Remove endian check.
37421 (fpack): Add endian check.
37422 (fswap): Add endian check.
37423 (vec_interleave_highv2sf): Add endian check.
37424 (vec_interleave_lowv2sf): Add endian check.
37425 (fmix_lr): Add endian check.
37426 (vec_setv2sf): Format change.
37427 (*vec_extractv2sf_0_be): Use shift to extract operand.
37428 (*vec_extractv2sf_1_be): New.
37429 (vec_pack_trunc_v4hi): Add endian check.
37430 (vec_pack_trunc_v2si): Format change.
37431
37432 2011-02-04 Jakub Jelinek <jakub@redhat.com>
37433
37434 PR inline-asm/23200
37435 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
37436 do bb, locus and block comparison and disallow loads if it is not set.
37437 (stmt_is_replaceable_p): New function.
37438 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
37439 callers.
37440 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
37441 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
37442 SSA_NAME_DEF_STMT.
37443 * tree-flow.h (stmt_is_replaceable_p): New prototype.
37444
37445 2011-02-04 Joseph Myers <joseph@codesourcery.com>
37446
37447 * config/rs6000/xilinx.opt: New.
37448 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
37449
37450 2011-02-04 Joseph Myers <joseph@codesourcery.com>
37451
37452 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
37453
37454 2011-02-03 Anatoly Sokolov <aesok@post.ru>
37455
37456 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
37457 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
37458 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
37459 secondary_reload_info, xtensa_secondary_reload): Remove.
37460 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
37461 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
37462 (xtensa_preferred_reload_class): Make static. Change return and
37463 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
37464 Use CONST_DOUBLE_P predicate.
37465 (xtensa_preferred_output_reload_class): New function.
37466 (xtensa_secondary_reload): Make static.
37467
37468 2011-02-03 Joseph Myers <joseph@codesourcery.com>
37469
37470 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
37471 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
37472 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
37473
37474 2011-02-03 Jakub Jelinek <jakub@redhat.com>
37475
37476 PR middle-end/31490
37477 * output.h (SECTION_RELRO): Define.
37478 (SECTION_MACH_DEP): Adjust.
37479 (get_variable_section): New prototype.
37480 * varpool.c (varpool_finalize_named_section_flags): New function.
37481 (varpool_assemble_pending_decls): Call it.
37482 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
37483 * cgraphunit.c (cgraph_output_in_order): Call
37484 varpool_finalize_named_section_flags.
37485 * varasm.c (get_section): Allow section flags conflicts between
37486 relro and read-only sections if the section hasn't been declared yet.
37487 Set SECTION_OVERRIDE after diagnosing section type conflict.
37488 (get_variable_section): No longer static.
37489 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
37490 readonly sections that need relocations.
37491 (decl_readonly_section_1): New function.
37492 (decl_readonly_section): Use it.
37493
37494 Revert:
37495 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
37496 Steve Ellcey <sje@cup.hp.com>
37497
37498 PR middle-end/31490
37499 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
37500 if section attribute used.
37501
37502 2011-02-03 Jakub Jelinek <jakub@redhat.com>
37503
37504 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
37505 * config/darwin.c (SECTION_NO_ANCHOR): Define.
37506 (darwin_init_sections): Remove assertion.
37507
37508 2011-02-03 Nick Clifton <nickc@redhat.com>
37509
37510 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
37511 lt and ge.
37512 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
37513 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
37514 instead of "n" and "pz".
37515 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
37516 CC_FLAG_S.
37517
37518 2011-02-03 Jakub Jelinek <jakub@redhat.com>
37519
37520 PR target/47312
37521 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
37522 fma, expand FMA_EXPR as fma{,f,l} call.
37523
37524 PR lto/47274
37525 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
37526 copy them into a unsigned char variable and pass address of it to
37527 lto_output_data_stream.
37528
37529 PR target/47564
37530 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
37531 around backend_init_target and lang_dependent_init_target calls.
37532 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
37533 (verify_cgraph_node): Don't call set_cfun here. Use
37534 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
37535 Set error_found for incorrectly represented calls to thunks.
37536
37537 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
37538
37539 PR debug/43092
37540 PR rtl-optimization/43494
37541 * rtl.h (for_each_inc_dec_fn): New type.
37542 (for_each_inc_dec): Declare.
37543 * rtlanal.c (struct for_each_inc_dec_ops): New type.
37544 (for_each_inc_dec_find_inc_dec): New fn.
37545 (for_each_inc_dec_find_mem): New fn.
37546 (for_each_inc_dec): New fn.
37547 * dse.c (struct insn_size): Remove.
37548 (replace_inc_dec, replace_inc_dec_mem): Remove.
37549 (emit_inc_dec_insn_before): New fn.
37550 (check_for_inc_dec): Use it, along with for_each_inc_dec.
37551 (canon_address): Pass mem modes to cselib_lookup.
37552 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
37553 (cselib_lookup_from_insn): Likewise.
37554 (cselib_subst_to_values): Likewise.
37555 * cselib.c (find_slot_memmode): New var.
37556 (cselib_find_slot): New fn. Use it instead of
37557 htab_find_slot_with_hash everywhere.
37558 (entry_and_rtx_equal_p): Use find_slot_memmode.
37559 (autoinc_split): New fn.
37560 (rtx_equal_for_cselib_p): Rename and implement in terms of...
37561 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
37562 Deal with autoinc. Special-case recursion into MEMs.
37563 (cselib_hash_rtx): Likewise.
37564 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
37565 address and MEM modes.
37566 (cselib_subst_to_values): Add memmode, pass it on.
37567 Deal with autoinc.
37568 (cselib_lookup): Add memmode argument, pass it on.
37569 (cselib_lookup_from_insn): Add memmode.
37570 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
37571 (struct cselib_record_autoinc_data): New.
37572 (cselib_record_autoinc_cb): New fn.
37573 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
37574 mode to cselib_lookup. Reset autoinced REGs here instead of...
37575 (cselib_process_insn): ... here.
37576 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
37577 to cselib_lookup.
37578 (add_uses): Likewise, also to cselib_subst_to_values.
37579 (add_stores): Likewise.
37580 * sched-deps.c (add_insn_mem_dependence): Pass mode to
37581 cselib_subst_to_values.
37582 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
37583 * gcse.c (do_local_cprop): Adjusted.
37584 * postreload.c (reload_cse_simplify_set): Adjusted.
37585 (reload_cse_simplify_operands): Adjusted.
37586 * sel-sched-dump (debug_mem_addr_value): Pass mode.
37587
37588 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
37589
37590 PR tree-optimization/45122
37591 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
37592 unsafe assumptions when there's more than one loop exit.
37593
37594 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
37595
37596 PR target/47272
37597 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
37598 Document using vector double with the load/store builtins, and
37599 that the load/store builtins always use Altivec instructions.
37600
37601 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
37602 to use altivec memory instructions, even on VSX.
37603 (vector_altivec_store_<mode>): Ditto.
37604
37605 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
37606 function.
37607
37608 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
37609 V2DF, V2DI support to load/store overloaded builtins.
37610
37611 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
37612 altivec load/store builtins for V2DF/V2DI types.
37613
37614 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
37615 set avoid indexed addresses on power6 if -maltivec.
37616 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
37617 vector_altivec_load/vector_altivec_store builtins.
37618 (altivec_expand_st_builtin): Ditto.
37619 (altivec_expand_builtin): Add VSX memory builtins.
37620 (rs6000_init_builtins): Add V2DI types to internal types.
37621 (altivec_init_builtins): Add support for V2DF/V2DI altivec
37622 load/store builtins.
37623 (rs6000_address_for_altivec): Insure memory address is appropriate
37624 for Altivec.
37625
37626 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
37627 vec_vsx_ld and vec_vsx_st.
37628 (vsx_store_<mode>): Ditto.
37629
37630 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
37631 variables to hold long long types for VSX vector memory builtins.
37632 (RS6000_BTI_unsigned_long_long): Ditto.
37633 (long_long_integer_type_internal_node): Ditti.
37634 (long_long_unsigned_type_internal_node): Ditti.
37635
37636 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
37637 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
37638 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
37639
37640 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
37641 short cuts.
37642 (vec_vsx_st): Ditto.
37643
37644 2011-02-02 Joseph Myers <joseph@codesourcery.com>
37645
37646 * config/pa/pa-hpux10.opt: New.
37647 * config/hpux11.opt (pthread): New Driver option.
37648 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
37649 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
37650
37651 2011-02-02 Joseph Myers <joseph@codesourcery.com>
37652
37653 * config/ia64/vms.opt: New.
37654 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
37655
37656 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
37657
37658 PR target/47580
37659 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
37660 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
37661 generator functions.
37662 (vsx_floatuns<VSi><mode>2): Ditto.
37663 (vsx_fix_trunc<mode><VSi>2): Ditto.
37664 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
37665
37666 2011-02-02 Joseph Myers <joseph@codesourcery.com>
37667
37668 * config/i386/djgpp.opt (posix): New Driver option.
37669
37670 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
37671
37672 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
37673 Move to the unsupported targets list.
37674
37675 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
37676
37677 PR rtl-optimization/47525
37678 * df-scan.c: Update copyright years.
37679 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
37680 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
37681
37682 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37683
37684 * config/i386/sysv4.h (TARGET_VERSION): Remove.
37685 (SUBTARGET_RETURN_IN_MEMORY): Remove.
37686 (ASM_OUTPUT_ASCII): Remove.
37687 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
37688
37689 2011-02-02 Jeff Law <law@redhat.com>
37690
37691 PR middle-end/47543
37692 * reload.c (find_reloads_address): Handle reg+d address where both
37693 components are invalid by reloading the entire address.
37694
37695 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
37696 Richard Guenther <rguenther@suse.de>
37697
37698 PR tree-optimization/40979
37699 PR bootstrap/47044
37700 * passes.c (init_optimization_passes): After LIM call copy_prop
37701 and DCE to clean up.
37702 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
37703
37704 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
37705
37706 PR tree-optimization/47576
37707 PR tree-optimization/47555
37708 * doc/invoke.texi (scev-max-expr-complexity): Documented.
37709 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
37710 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
37711 * tree-scalar-evolution.c (follow_ssa_edge): Use
37712 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
37713
37714 2011-02-02 Richard Guenther <rguenther@suse.de>
37715
37716 PR tree-optimization/47566
37717 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
37718
37719 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
37720
37721 PR debug/47106
37722 PR debug/47402
37723 * tree-inline.c (declare_return_variable): Remove unused caller
37724 variable.
37725
37726 PR debug/47106
37727 PR debug/47402
37728 * tree-flow-inline.h (clear_is_used, is_used_p): New.
37729 * cfgexpand.c (account_used_vars_for_block): Use them.
37730 * tree-nrv.c (tree_nrv): Likewise.
37731 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
37732 (dump_scope_block): Likewise.
37733 (remove_unused_locals): Likewise.
37734
37735 PR debug/47106
37736 PR debug/47402
37737 * tree-inline.c (declare_return_variable): Add result decl to
37738 local decls only once.
37739 * gimple-low.c (record_vars_into): Mark newly-created variables
37740 as referenced.
37741
37742 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
37743
37744 PR debug/47498
37745 PR debug/47501
37746 PR debug/45136
37747 PR debug/45130
37748 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
37749 debug insns.
37750 (no_real_insns_p, schedule_block, set_priorities): Drop special
37751 treatment of boundary debug insns.
37752 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
37753 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
37754 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
37755 (BOUNDARY_DEBUG_INSN_P): Likewise.
37756 (SCHEDULE_DEBUG_INSN_P): Likewise.
37757 * sched-rgn.c (init_ready_list): Drop special treatment of
37758 boundary debug insns.
37759 * final.c (rest_of_clean_state): Clear notes' BB.
37760
37761 2011-02-01 Joseph Myers <joseph@codesourcery.com>
37762
37763 * config/openbsd.opt (assert=): New Driver option.
37764
37765 2011-02-01 Joseph Myers <joseph@codesourcery.com>
37766
37767 * config/i386/nto.opt: New.
37768 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
37769
37770 2011-02-01 Joseph Myers <joseph@codesourcery.com>
37771
37772 * config/i386/netware.opt: New.
37773 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
37774
37775 2011-02-01 Joseph Myers <joseph@codesourcery.com>
37776
37777 * config/interix.opt (posix): New Driver option.
37778
37779 2011-02-01 DJ Delorie <dj@redhat.com>
37780
37781 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
37782
37783 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
37784 class for A0/A1.
37785
37786 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
37787
37788 PR tree-optimization/47561
37789 * toplev.c (process_options): Print the Graphite flags. Add
37790 flag_loop_flatten to the list of options requiring Graphite.
37791
37792 2011-02-01 Joseph Myers <joseph@codesourcery.com>
37793
37794 * config/i386/cygming.opt (posix): New Driver option.
37795
37796 2011-02-01 Joseph Myers <joseph@codesourcery.com>
37797
37798 * config/arm/vxworks.opt: New.
37799 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
37800
37801 2011-02-01 Joseph Myers <joseph@codesourcery.com>
37802
37803 * config/alpha/elf.opt: New.
37804 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
37805 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
37806
37807 2011-02-01 Richard Guenther <rguenther@suse.de>
37808
37809 PR tree-optimization/47559
37810 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
37811 store-motion on references that can throw.
37812
37813 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
37814
37815 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
37816 * tree-pass.h (TDF_CSELIB): New macro.
37817 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
37818 cselib_lookup): Check for it rather than for TDF_DETAILS.
37819
37820 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
37821
37822 PR driver/47547
37823 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
37824 is HOST_BIT_BUCKET.
37825
37826 * opts.c (finish_options): Don't add x_aux_base_name if it is
37827 HOST_BIT_BUCKET.
37828
37829 2011-02-01 Richard Guenther <rguenther@suse.de>
37830
37831 PR tree-optimization/47555
37832 Revert
37833 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
37834
37835 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
37836
37837 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
37838
37839 PR gcc/46692
37840 * config/lm32/t-lm32: Add multilib for all CPU options.
37841
37842 2011-02-01 Richard Guenther <rguenther@suse.de>
37843
37844 PR tree-optimization/47541
37845 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
37846 sure to have a field at offset zero.
37847
37848 2011-01-31 Joseph Myers <joseph@codesourcery.com>
37849
37850 * config/arc/arc.opt (EB, EL): New Driver options.
37851
37852 2011-01-31 Joseph Myers <joseph@codesourcery.com>
37853
37854 * config/alpha/osf5.opt: New.
37855 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
37856
37857 2011-01-31 Joseph Myers <joseph@codesourcery.com>
37858
37859 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
37860
37861 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
37862
37863 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
37864 -floop-interchange.
37865 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
37866 is an alias of -floop-interchange and that it requires the
37867 Graphite infrastructure.
37868 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
37869 flag_loop_interchange based on the value of flag_tree_loop_linear.
37870
37871 2011-01-31 Jakub Jelinek <jakub@redhat.com>
37872 Richard Guenther <rguenther@suse.de>
37873
37874 PR tree-optimization/47538
37875 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
37876 type instead of r1type, except for comparisons. For right
37877 shifts and comparisons punt if there are mismatches in
37878 sizetype vs. non-sizetype types.
37879
37880 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37881
37882 * doc/sourcebuild.texi (Effective-Target Keywords): Document
37883 avx_runtime.
37884
37885 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37886
37887 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
37888 version number.
37889 * configure: Regenerate.
37890
37891 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37892
37893 * configure.ac (gcc_cv_ld_static_option): Define.
37894 (gcc_cv_ld_dynamic_option): Define.
37895 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
37896 instead.
37897 (HAVE_LD_STATIC_DYNAMIC): Update message.
37898 (LD_STATIC_OPTION): Define.
37899 (LD_DYNAMIC_OPTION): Define.
37900 * configure: Regenerate.
37901 * config.in: Regenerate.
37902 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
37903 HAVE_LD_STATIC_DYNAMIC]: Use them.
37904
37905 2011-01-31 Nick Clifton <nickc@redhat.com>
37906
37907 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
37908 registers inside interrupt handlers if the handler is not a leaf
37909 function.
37910
37911 2011-01-31 Nick Clifton <nickc@redhat.com>
37912
37913 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
37914 reg_renumber returning an INVALID_REGNUM.
37915
37916 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
37917
37918 PR libgcj/44341
37919 * doc/install.texi: Document host options discarded when cross
37920 configuring target libraries.
37921
37922 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
37923
37924 Reverted:
37925 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
37926 PR debug/45136
37927 PR debug/45130
37928 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
37929 debug insns.
37930 (no_real_insns_p, schedule_block, set_priorities): Drop special
37931 treatment of boundary debug insns.
37932 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
37933 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
37934 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
37935 (BOUNDARY_DEBUG_INSN_P): Likewise.
37936 (SCHEDULE_DEBUG_INSN_P): Likewise.
37937 * sched-rgn.c (init_ready_list): Drop special treatment of
37938 boundary debug insns.
37939 * final.c (rest_of_clean-state): Clear notes' BB.
37940
37941 2011-01-31 Alan Modra <amodra@gmail.com>
37942
37943 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
37944 toc relative expressions as we do in print_operand_address.
37945
37946 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
37947
37948 * doc/extend.texi: Follow spelling conventions.
37949 * doc/invoke.texi: Fix a typo.
37950
37951 2011-01-30 Joseph Myers <joseph@codesourcery.com>
37952
37953 * config/hpux11.opt: New.
37954 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
37955 ia64*-*-hpux*): Use hpux11.opt.
37956
37957 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
37958
37959 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
37960 to tmake_file.
37961
37962 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
37963
37964 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
37965 support sites.
37966
37967 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
37968
37969 * doc/install.texi (Binaries): Remove outdated reference for
37970 Motorola 68HC11/68HC12 downloads.
37971
37972 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
37973
37974 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
37975 Drepper's paper.
37976
37977 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
37978
37979 PR bootstrap/47147
37980 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
37981 used by NetBSD.
37982
37983 2011-01-28 Ahmad Sharif <asharif@google.com>
37984
37985 * value-prof.c (check_counter): Corrected error message.
37986
37987 2011-01-29 Jie Zhang <jie@codesourcery.com>
37988
37989 * config/arm/arm.c (arm_legitimize_reload_address): New.
37990 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
37991 arm_legitimize_reload_address.
37992 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
37993
37994 2011-01-28 Ian Lance Taylor <iant@google.com>
37995
37996 * godump.c (go_define): Ignore macros whose definitions include
37997 two adjacent operands.
37998
37999 2011-01-28 Jakub Jelinek <jakub@redhat.com>
38000
38001 PR target/42894
38002 * varasm.c (force_const_mem): Store copy of x in desc->constant
38003 instead of x itself.
38004 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
38005 itself into REG_EQUAL note.
38006
38007 2011-01-28 Joseph Myers <joseph@codesourcery.com>
38008
38009 * config/freebsd.opt (posix, rdynamic): New Driver options.
38010
38011 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38012
38013 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
38014 -Bstatic/-Bdynamic.
38015 * configure: Regenerate.
38016
38017 2011-01-27 Joseph Myers <joseph@codesourcery.com>
38018
38019 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
38020 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
38021
38022 2011-01-27 Anatoly Sokolov <aesok@post.ru>
38023
38024 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
38025 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
38026 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
38027 (s390_preferred_reload_class): Make static. Change return and
38028 'rclass' argument type to reg_class_t.
38029
38030 2011-01-27 Jan Hubicka <jh@suse.cz>
38031
38032 PR middle-end/46949
38033 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
38034 (process_function_and_variable_attributes): Check defined weakrefs.
38035
38036 2011-01-27 Martin Jambor <mjambor@suse.cz>
38037
38038 PR tree-optimization/47228
38039 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
38040 build_ref_for_offset.
38041
38042 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
38043
38044 * config/spu/spu-elf.h (ASM_SPEC): Remove.
38045
38046 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
38047
38048 PR rtl-optimization/46856
38049 * postreload.c (reload_combine_recognize_const_pattern): Do not
38050 separate cc0 setter and user on cc0 targets.
38051
38052 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
38053
38054 PR c/43082
38055 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
38056 passed a VOID_TYPE expression, immediately emit an error and
38057 return error_mark_node.
38058
38059 2011-01-26 Jeff Law <law@redhat.com>
38060
38061 PR rtl-optimization/47464
38062 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
38063 rather than may_trap_p as needed.
38064
38065 2011-01-26 DJ Delorie <dj@redhat.com>
38066
38067 PR rtl-optimization/46878
38068 * combine.c (insn_a_feeds_b): Check for the implicit cc0
38069 setter/user dependency as well.
38070
38071 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
38072
38073 PR rtl-optimization/44469
38074 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
38075 after removing trivially dead basic blocks.
38076
38077 2011-01-26 Joseph Myers <joseph@codesourcery.com>
38078
38079 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
38080 * config/frv/frv.h (LINK_SPEC): Likewise.
38081 * config/i386/netware.h (LINK_SPEC): Likewise.
38082 * config/m68k/linux.h (ASM_SPEC): Likewise.
38083 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
38084 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
38085 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
38086 * config/sparc/linux.h (ASM_SPEC): Likewise.
38087 * config/sparc/linux64.h (ASM_SPEC): Likewise.
38088 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
38089
38090 2011-01-26 Joseph Myers <joseph@codesourcery.com>
38091
38092 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
38093 * config/frv/frv.h (ASM_SPEC): Likewise.
38094 * config/m68k/linux.h (ASM_SPEC): Likewise.
38095 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
38096 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
38097 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
38098 * config/sparc/linux.h (ASM_SPEC): Likewise.
38099 * config/sparc/linux64.h (ASM_SPEC): Likewise.
38100 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
38101
38102 2011-01-26 Joseph Myers <joseph@codesourcery.com>
38103
38104 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
38105 * config/frv/frv.h (LINK_SPEC): Likewise.
38106 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
38107
38108 2011-01-26 Joseph Myers <joseph@codesourcery.com>
38109
38110 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
38111 * config/frv/frv.h (ASM_SPEC): Likewise.
38112 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
38113 * config/m68k/linux.h (ASM_SPEC): Likewise.
38114 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
38115 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
38116 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
38117 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
38118 * config/sparc/linux.h (ASM_SPEC): Likewise.
38119 * config/sparc/linux64.h (ASM_SPEC): Likewise.
38120 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
38121 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
38122
38123 2011-01-26 Steve Ellcey <sje@cup.hp.com>
38124
38125 PR target/46997
38126 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
38127 (*mux2): Ditto.
38128 (vec_extract_evenodd_help): Ditto.
38129 (vec_extract_evenv4hi): Ditto.
38130 (vec_extract_oddv4hi): Ditto.
38131 (vec_interleave_lowv2si): Ditto.
38132 (vec_interleave_highv2si): Ditto.
38133 (vec_extract_evenv2si): Ditto.
38134 (vec_extract_oddv2si: Ditto.
38135 (vec_pack_trunc_v2si): Ditto.
38136
38137 2011-01-22 Jan Hubicka <jh@suse.cz>
38138
38139 PR target/47237
38140 * cgraph.h (cgraph_local_info): New field can_change_signature.
38141 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
38142 signature can change.
38143 (ipcp_estimate_growth): Call sequence simplify only if calle signature
38144 can change.
38145 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
38146 (cgraph_function_versioning): We can not change signature of functions
38147 that don't allow that.
38148 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
38149 (lto_input_node): Likewise.
38150 * ipa-inline.c (compute_inline_parameters): Compute
38151 local.can_change_signature.
38152 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
38153 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
38154 functions that can not change signature.
38155 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
38156 init_cumulative_args): Do not use local calling conventions
38157 for functions that can not change signature.
38158
38159 2011-01-22 Jan Hubicka <jh@suse.cz>
38160
38161 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
38162
38163 2011-01-26 Richard Guenther <rguenther@suse.de>
38164
38165 PR tree-optimization/47190
38166 * cgraphunit.c (process_common_attributes): New function.
38167 (process_function_and_variable_attributes): Use it.
38168
38169 2011-01-26 Richard Guenther <rguenther@suse.de>
38170
38171 PR lto/47423
38172 * cgraphbuild.c (record_eh_tables): Record reference to personality
38173 function.
38174
38175 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
38176
38177 PR debug/45454
38178 * sel-sched.c (moveup_expr): Don't let debug insns prevent
38179 non-debug insns from moving up.
38180
38181 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
38182
38183 PR target/40125
38184 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
38185 t-dlldir{,-x} fragment for build and add it to tmake_file.
38186 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
38187 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
38188 * config/i386/t-dlldir: New file.
38189 (SHLIB_DLLDIR): Define.
38190 * config/i386/t-dlldir-x: New file.
38191 (SHLIB_DLLDIR): Define.
38192 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
38193 (SHLIB_INSTALL): Use it.
38194
38195 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
38196
38197 PR target/47246
38198 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
38199 lower bound of the allowed Thumb-2 coprocessor load/store
38200 index range to -256. Add explaining comment.
38201
38202 2011-01-25 Ian Lance Taylor <iant@google.com>
38203
38204 * godump.c (go_define): Improve lexing of macro expansion to only
38205 accept expressions which match Go spec.
38206
38207 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
38208
38209 PR c++/43601
38210 * tree.c (handle_dll_attribute): Handle it.
38211 * doc/extend.texi (@item dllexport): Mention it.
38212 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
38213
38214 2011-01-25 Ian Lance Taylor <iant@google.com>
38215
38216 PR tree-optimization/26854
38217 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
38218 (decl_jump_unsafe): Move higher in file, with no other change.
38219 (bind): Set has_jump_unsafe_decl if appropriate.
38220 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
38221 (check_earlier_gotos): Likewise.
38222 (c_check_switch_jump_warnings): Likewise.
38223
38224 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
38225
38226 * doc/invoke.texi (Warning Options): Add missing hyphen.
38227 (-fprofile-dir): Minor grammatical fixes.
38228 (-fbranch-probabilities): Likewise.
38229
38230 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
38231
38232 PR debug/45136
38233 PR debug/45130
38234 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
38235 debug insns.
38236 (no_real_insns_p, schedule_block, set_priorities): Drop special
38237 treatment of boundary debug insns.
38238 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
38239 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
38240 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
38241 (BOUNDARY_DEBUG_INSN_P): Likewise.
38242 (SCHEDULE_DEBUG_INSN_P): Likewise.
38243 * sched-rgn.c (init_ready_list): Drop special treatment of
38244 boundary debug insns.
38245 * final.c (rest_of_clean-state): Clear notes' BB.
38246
38247 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38248
38249 * Makefile.in (LAMBDA_H): Removed.
38250 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
38251 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
38252 lambda-trans.o, and tree-loop-linear.o.
38253 (lto-symtab.o): Remove dependence on LAMBDA_H.
38254 (tree-loop-linear.o): Remove rule.
38255 (lambda-mat.o): Same.
38256 (lambda-trans.o): Same.
38257 (lambda-code.o): Same.
38258 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
38259 (tree-vect-slp.o): Same.
38260 * hwint.h (gcd): Moved here.
38261 (least_common_multiple): Same.
38262 * lambda-code.c: Removed.
38263 * lambda-mat.c: Removed.
38264 * lambda-trans.c: Removed.
38265 * lambda.h: Removed.
38266 * tree-loop-linear.c: Removed.
38267 * lto-symtab.c: Do not include lambda.h.
38268 * omega.c (gcd): Removed.
38269 * passes.c (init_optimization_passes): Remove pass_linear_transform.
38270 * tree-data-ref.c (print_lambda_vector): Moved here.
38271 (lambda_vector_copy): Same.
38272 (lambda_matrix_copy): Same.
38273 (lambda_matrix_id): Same.
38274 (lambda_vector_first_nz): Same.
38275 (lambda_matrix_row_add): Same.
38276 (lambda_matrix_row_exchange): Same.
38277 (lambda_vector_mult_const): Same.
38278 (lambda_vector_negate): Same.
38279 (lambda_matrix_row_negate): Same.
38280 (lambda_vector_equal): Same.
38281 (lambda_matrix_right_hermite): Same.
38282 * tree-data-ref.h: Do not include lambda.h.
38283 (lambda_vector): Moved here.
38284 (lambda_matrix): Same.
38285 (dependence_level): Same.
38286 (lambda_transform_legal_p): Removed declaration.
38287 (lambda_collect_parameters): Same.
38288 (lambda_compute_access_matrices): Same.
38289 (lambda_vector_gcd): Same.
38290 (lambda_vector_new): Same.
38291 (lambda_vector_clear): Same.
38292 (lambda_vector_lexico_pos): Same.
38293 (lambda_vector_zerop): Same.
38294 (lambda_matrix_new): Same.
38295 * tree-flow.h (least_common_multiple): Removed declaration.
38296 * tree-parloops.c (lambda_trans_matrix): Moved here.
38297 (LTM_MATRIX): Same.
38298 (LTM_ROWSIZE): Same.
38299 (LTM_COLSIZE): Same.
38300 (LTM_DENOMINATOR): Same.
38301 (lambda_trans_matrix_new): Same.
38302 (lambda_matrix_vector_mult): Same.
38303 (lambda_transform_legal_p): Same.
38304 * tree-pass.h (pass_linear_transform): Removed declaration.
38305 * tree-ssa-loop.c (tree_linear_transform): Removed.
38306 (gate_tree_linear_transform): Removed.
38307 (pass_linear_transform): Removed.
38308 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
38309 flag_loop_interchange.
38310
38311 2011-01-25 Jakub Jelinek <jakub@redhat.com>
38312
38313 PR tree-optimization/47265
38314 PR tree-optimization/47443
38315 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
38316 if name still has some uses.
38317
38318 2011-01-25 Martin Jambor <mjambor@suse.cz>
38319
38320 PR tree-optimization/47382
38321 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
38322 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
38323
38324 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
38325
38326 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
38327 sjlj_except_unwind_info.
38328
38329 2011-01-25 Richard Guenther <rguenther@suse.de>
38330
38331 PR tree-optimization/47426
38332 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
38333 visible functions results escape.
38334
38335 2011-01-25 Jakub Jelinek <jakub@redhat.com>
38336
38337 PR target/45701
38338 * config/arm/arm.c (any_sibcall_uses_r3): New function.
38339 (arm_get_frame_offsets): Use it.
38340
38341 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38342 Jakub Jelinek <jakub@redhat.com>
38343
38344 PR tree-optimization/47271
38345 * tree-if-conv.c (bb_postdominates_preds): New.
38346 (if_convertible_bb_p): Call bb_postdominates_preds.
38347 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
38348 (predicate_scalar_phi): Call bb_postdominates_preds.
38349
38350 2011-01-25 Nick Clifton <nickc@redhat.com>
38351
38352 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
38353 * config/rx/rx.c (rx_function_value): Likewise.
38354 (rx_promote_function_mode): Likewise.
38355 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
38356 in order to make it legitimate.
38357 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
38358 make sure that the first operand is the same as the result register.
38359 (addsi3_unspec): Delete.
38360 (subdi3): Do not accept immediate operands.
38361 (subdi3_internal): Likewise.
38362
38363 2011-01-25 Jeff Law <law@redhat.com>
38364
38365 PR rtl-optimization/37273
38366 * ira-costs.c (scan_one_insn): Detect constants living in memory and
38367 handle them like argument loads from stack slots. Do not double
38368 count memory for memory constants and argument loads from stack slots.
38369
38370 2011-01-25 Jakub Jelinek <jakub@redhat.com>
38371
38372 PR tree-optimization/47427
38373 PR tree-optimization/47428
38374 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
38375 coalesce if the new root var would be TREE_READONLY.
38376
38377 2011-01-25 Richard Guenther <rguenther@suse.de>
38378
38379 PR middle-end/47414
38380 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
38381 correct type for TBAA.
38382
38383 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38384
38385 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
38386 (close_phi_written_to_memory): Call for_each_index with
38387 dr_indices_valid_in_loop.
38388
38389 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38390
38391 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
38392 when it is initialized.
38393
38394 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38395
38396 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
38397 call to graphite_find_data_references_in_stmt.
38398 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
38399 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
38400 call to graphite_find_data_references_in_stmt.
38401 (analyze_drs_in_stmts): Same.
38402 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
38403 in which the scalar analysis of indices is performed.
38404 (create_data_ref): Same. Update call to dr_analyze_indices.
38405 (find_data_references_in_stmt): Update call to create_data_ref.
38406 (graphite_find_data_references_in_stmt): Same.
38407 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
38408 declaration.
38409 (create_data_ref): Same.
38410 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
38411 call to create_data_ref.
38412
38413 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38414
38415 * graphite-sese-to-poly.c (build_poly_scop): Move
38416 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
38417
38418 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38419
38420 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
38421 VAR_DECL, PARM_DECL, and RESULT_DECL.
38422
38423 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38424
38425 * graphite-dependences.c (reduction_dr_1): Allow several reductions
38426 in a reduction PBB.
38427 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
38428 that have already been marked as PBB_IS_REDUCTION.
38429
38430 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38431
38432 * graphite-scop-detection.c (same_close_phi_node): New.
38433 (remove_duplicate_close_phi): New.
38434 (make_close_phi_nodes_unique): New.
38435 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
38436
38437 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38438
38439 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
38440 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
38441 of both data references to be the same.
38442
38443 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38444
38445 * graphite-dependences.c (build_lexicographical_constraint): Remove
38446 the gdim parameter.
38447 (build_lexicographical_constraint): Adjust call to
38448 ppl_powerset_is_empty.
38449 (dependence_polyhedron): Same.
38450 (graphite_legal_transform_dr): Same.
38451 (graphite_carried_dependence_level_k): Same.
38452 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
38453 parameter.
38454 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
38455
38456 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38457
38458 * graphite-sese-to-poly.c
38459 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
38460 (close_phi_written_to_memory): New.
38461 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
38462 and unshare_expr.
38463
38464 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38465
38466 * doc/install.texi: Update the expected version number of PPL to 0.11.
38467 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
38468 #if PPL_VERSION_MINOR < 11.
38469
38470 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38471
38472 * graphite-dependences.c: Include graphite-cloog-util.h.
38473 (new_poly_ddr): Inlined into dependence_polyhedron.
38474 (free_poly_ddr): Moved close by new_poly_ddr.
38475 (dependence_polyhedron_1): Renamed dependence_polyhedron.
38476 Early return NULL when ppl_powerset_is_empty returns true.
38477 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
38478 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
38479 (graphite_legal_transform_dr): Call new_poly_ddr.
38480 (graphite_carried_dependence_level_k): Same.
38481 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
38482 (dot_transformed_deps_stmt_1): Removed.
38483 (dot_deps_stmt_1): Call dot_deps_stmt_2.
38484 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
38485 (dot_deps_1): Call dot_deps_2.
38486 * Makefile.in (graphite-dependences.o): Add missing dependence on
38487 graphite-cloog-util.h.
38488
38489 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38490
38491 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
38492 (build_lexicographical_constraint): Same.
38493 (dependence_polyhedron_1): Same.
38494 (graphite_legal_transform_dr): Same.
38495 (graphite_carried_dependence_level_k): Same.
38496 * graphite-ppl.c (ppl_powerset_is_empty): New.
38497 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
38498 * tree-data-ref.c (dump_data_reference): Print the basic block index.
38499
38500 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38501
38502 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
38503 the "a followed by b" relation and document it.
38504
38505 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38506
38507 * graphite-dependences.c (build_lexicographical_constraint): Stop the
38508 iteration when the bag of constraints is empty.
38509
38510 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38511
38512 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
38513
38514 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38515
38516 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
38517 nest and two loop depths as parameters.
38518 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
38519 lst_perfect_nestify.
38520
38521 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38522
38523 * graphite-dependences.c (print_pddr): Call
38524 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
38525
38526 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
38527
38528 * graphite-ppl.c (debug_gmp_value): New.
38529 * graphite-ppl.h (debug_gmp_value): Declared.
38530
38531 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
38532
38533 * doc/install.texi: Document availability of cloog-0.16.
38534
38535 2011-01-25 Vladimir Kargov <kargov@gmail.com>
38536
38537 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
38538 invalid postdominance info.
38539
38540 2011-01-24 Jan Hubicka <jh@suse.cz>
38541
38542 PR c/21659
38543 * doc/extend.texi (weak pragma): Drop claim that it must
38544 appear before definition.
38545 * varasm.c (merge_weak, declare_weak): Only sanity check
38546 that DECL is not output at a time it is declared weak.
38547
38548 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
38549
38550 * machmode.def: Fixed comments.
38551
38552 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
38553
38554 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
38555
38556 2011-01-24 Paul Koning <ni1d@arrl.net>
38557
38558 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
38559 WORDS_BIG_ENDIAN.
38560
38561 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
38562
38563 PR target/46519
38564 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
38565 (block_info): Add scanned and prev.
38566 (move_or_delete_vzeroupper_2): Return if the basic block
38567 has been scanned and the upper 128bit state is unchanged
38568 from the last scan.
38569 (move_or_delete_vzeroupper_1): Return true if the exit
38570 state is changed.
38571 (move_or_delete_vzeroupper): Visit basic blocks using the
38572 work-list based algorithm based on vt_find_locations in
38573 var-tracking.c.
38574
38575 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
38576
38577 2011-01-24 Nick Clifton <nickc@redhat.com>
38578
38579 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
38580 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
38581 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
38582 then define __v850e1__.
38583 * doc/invoke.texi: Document -mv850es.
38584
38585 2011-01-24 Richard Henderson <rth@redhat.com>
38586
38587 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
38588 compound unordered comparisons.
38589 * config/rx/rx.c (rx_split_fp_compare): Remove.
38590 * config/rx/rx-protos.h: Update.
38591 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
38592 (cbranchsf4): Don't call rx_split_fp_compare.
38593 (*cbranchsf4): Use rx_split_cbranch.
38594 (*cmpsf): Don't accept "i" constraint.
38595 (*conditional_branch): Only valid after reload.
38596 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
38597
38598 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
38599
38600 PR target/47385
38601 * config/rs6000/altivec.md (vector constant splitters): Add
38602 support for creating vector single precision constants if -mvsx is
38603 used and we would create the constant using Altivec primitives.
38604
38605 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
38606 Richard Sandiford <rdsandiford@googlemail.com>
38607
38608 PR rtl-optimization/47166
38609 * reload1.c (emit_reload_insns): Disable the spill_reg_store
38610 mechanism for PRE_MODIFY and POST_MODIFY.
38611 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
38612 reloadreg.
38613
38614 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
38615
38616 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
38617
38618 2011-01-22 Jan Hubicka <jh@suse.cz>
38619
38620 PR lto/47333
38621 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
38622
38623 2011-01-22 Jan Hubicka <jh@suse.cz>
38624
38625 PR tree-optimization/43884
38626 PR lto/44334
38627 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
38628 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
38629
38630 2011-01-22 Anatoly Sokolov <aesok@post.ru>
38631
38632 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
38633 * config/s390/s390.c (s390_register_move_cost,
38634 s390_memory_move_cost): New.
38635 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
38636
38637 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
38638
38639 PR middle-end/47401
38640 * except.c (sjlj_assign_call_site_values): Move setting the
38641 crtl->uses_eh_lsda flag to ...
38642 (sjlj_mark_call_sites): ... here.
38643 (sjlj_emit_function_enter): Support NULL dispatch label.
38644 (sjlj_build_landing_pads): In a function with no landing pads
38645 that still has must-not-throw regions, generate code to register
38646 a personality function with empty LSDA.
38647
38648 2011-01-21 Richard Henderson <rth@redhat.com>
38649
38650 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
38651
38652 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
38653
38654 * compare-elim.c: New file.
38655 * Makefile.in (OBJS-common): Add it.
38656 (compare-elim.o): New.
38657 * common.opt (fcompare-elim): New.
38658 * opts.c (default_options_table): Add OPT_fcompare_elim.
38659 * tree-pass.h (pass_compare_elim_after_reload): New.
38660 * passes.c (init_optimization_passes): Add it.
38661 * recog.h: Protect against re-inclusion.
38662 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
38663 * doc/invoke.texi (-fcompare-elim): Document it.
38664 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
38665 * doc/tm.texi: Rebuild.
38666
38667 2011-01-22 Nick Clifton <nickc@redhat.com>
38668
38669 * config/rx/rx.md (cstoresf4): Pass comparison operator to
38670 rx_split_fp_compare.
38671
38672 2011-01-22 Nick Clifton <nickc@redhat.com>
38673
38674 * config/rx/rx.md (UNSPEC_CONST): New.
38675 (deallocate_and_return): Wrap the amount popped off the stack in
38676 an UNSPEC_CONST in order to stop it being rejected by
38677 -mmax-constant-size.
38678 (pop_and_return): Add a "(return)" rtx.
38679 (call): Drop the immediate operand.
38680 (call_internal): Likewise.
38681 (call_value): Likewise.
38682 (call_value_internal): Likewise.
38683 (sibcall_internal): Likewise.
38684 (sibcall_value_internal): Likewise.
38685 (sibcall): Likewise. Generate an explicit call using
38686 sibcall_internal.
38687 (sibcall_value): Likewise.
38688 (mov<>): FAIL if a constant operand is not legitimate.
38689 (addsi3_unpsec): New pattern.
38690
38691 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
38692 (ok_for_max_constant): New function.
38693 (gen_safe_add): New function.
38694 (rx_expand_prologue): Use gen_safe_add.
38695 (rx_expand_epilogue): Likewise.
38696 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
38697 UNSPEC CONSTs.
38698
38699 2011-01-21 Jeff Law <law@redhat.com>
38700
38701 PR tree-optimization/47053
38702 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
38703 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
38704 statements are deleted.
38705 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
38706 is nonempty, then purge dead edges and cleanup the CFG.
38707
38708 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
38709
38710 PR debug/47402
38711 Temporarily revert:
38712 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
38713 PR debug/47106
38714 * tree-dfa.c (create_var_ann): Mark variable as used.
38715
38716 2011-01-21 Jakub Jelinek <jakub@redhat.com>
38717
38718 PR middle-end/45566
38719 * except.c (convert_to_eh_region_ranges): Emit queued no-region
38720 notes from other section in hot/cold partitioning even if
38721 last_action is -3. Increment call_site_base.
38722
38723 PR rtl-optimization/47366
38724 * fwprop.c (forward_propagate_into): Return bool. If
38725 any changes are made, -fnon-call-exceptions is used and
38726 REG_EH_REGION note is present, call purge_dead_edges
38727 and return true if it purged anything.
38728 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
38729 any EH edges were purged.
38730
38731 2011-01-21 Jeff Law <law@redhat.com>
38732
38733 PR rtl-optimization/41619
38734 * caller-save.c (setup_save_areas): Break out code to determine
38735 which hard regs are live across calls by examining the reload chains
38736 so that it is always used.
38737 Eliminate code which checked REG_N_CALLS_CROSSED.
38738
38739 2011-01-21 Jakub Jelinek <jakub@redhat.com>
38740
38741 PR tree-optimization/47355
38742 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
38743 NOP has non-debug uses beyond PHIs in new_bb.
38744
38745 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
38746
38747 PR debug/47106
38748 * cfgexpand.c (account_used_vars_for_block): Only account vars
38749 that are annotated as used.
38750 (estimated_stack_frame_size): Don't set TREE_USED.
38751 * tree-dfa.c (create_var_ann): Mark variable as used.
38752
38753 2011-01-21 Richard Guenther <rguenther@suse.de>
38754
38755 PR middle-end/47395
38756 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
38757
38758 2011-01-21 Richard Guenther <rguenther@suse.de>
38759
38760 PR tree-optimization/47365
38761 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
38762 (vn_reference_lookup_pieces): Adjust.
38763 (vn_reference_lookup): Likewise.
38764 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
38765 (vn_reference_lookup_3): Only look through kills if in
38766 VN_WALKREWRITE mode.
38767 (vn_reference_lookup_pieces): Adjust.
38768 (vn_reference_lookup): Likewise.
38769 (visit_reference_op_load): Likewise.
38770 (visit_reference_op_store): Likewise.
38771 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
38772 (compute_avail): Likewise.
38773 (eliminate): Likewise.
38774
38775 2011-01-21 Jakub Jelinek <jakub@redhat.com>
38776
38777 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
38778 DECL_IGNORED_P non-reg vars if they are used.
38779
38780 PR tree-optimization/47391
38781 * varpool.c (const_value_known_p): Return false if
38782 decl is volatile.
38783
38784 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
38785
38786 PR bootstrap/47215
38787 * config/i386/i386.c (ix86_local_alignment): Handle
38788 case for va_list_type_node is nil.
38789 (ix86_canonical_va_list_type): Likewise.
38790
38791 2011-01-21 Alan Modra <amodra@gmail.com>
38792
38793 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
38794 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
38795
38796 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38797
38798 * config/arm/arm.md (define_attr type): Rename f_load
38799 and f_store to f_fpa_load and f_fpa_store. Update.
38800 (write_conflict): Deal with rename fallout.
38801 (*push_fp_multi): Likewise.
38802 * config/arm/fpa.md (f_load): Use f_fpa_load.
38803 (f_store): Use f_fpa_store.
38804 (*movsf_fpa): Likewise.
38805 (*movdf_fpa): Likewise.
38806 (*movxf_fpa): Likewise.
38807 (*thumb2_movsf_fpa): Likewise.
38808 (*thumb2_movdf_fpa): Likewise.
38809 (*thumb2_movxf_fpa): Likewise.
38810 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
38811 f_loadd and f_stored.
38812 (*thumb2_movdi_vfp): Likewise.
38813 (*thumb2_movsf_vfp): Fix attribute to f_loads.
38814 (*thumb2_movsi_vfp): Likewise.
38815 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
38816 Use f_loads instead of f_load.
38817 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
38818
38819 2011-01-20 Anatoly Sokolov <aesok@post.ru>
38820
38821 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
38822 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
38823 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
38824 (xtensa_mode_dependent_address_p): New function.
38825 (constantpool_address_p): Make static. Change return type to bool.
38826 Change argument type to const_rtx. Use CONST_INT_P predicate.
38827
38828 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
38829
38830 PR debug/46583
38831 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
38832
38833 2011-01-20 Jakub Jelinek <jakub@redhat.com>
38834
38835 PR debug/47283
38836 * cfgexpand.c (expand_debug_expr): Instead of generating
38837 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
38838 etc. handling.
38839
38840 2011-01-20 Richard Guenther <rguenther@suse.de>
38841
38842 PR middle-end/47370
38843 * tree-inline.c (remap_gimple_op_r): Recurse manually for
38844 the pointer operand of MEM_REFs.
38845
38846 2011-01-20 Jakub Jelinek <jakub@redhat.com>
38847
38848 PR tree-optimization/46130
38849 * ipa-split.c (consider_split): If return_bb contains non-virtual
38850 PHIs other than for retval or if split_function would not adjust it,
38851 refuse to split.
38852
38853 2011-01-20 Richard Guenther <rguenther@suse.de>
38854
38855 PR tree-optimization/47167
38856 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
38857 Revert previous change, only avoid enumeral type changes.
38858
38859 2011-01-19 Mike Stump <mikestump@comcast.net>
38860
38861 * doc/tm.texi.in (BRANCH_COST): Englishify.
38862 * doc/tm.texi (BRANCH_COST): Likewise.
38863
38864 2011-01-19 Dodji Seketeli <dodji@redhat.com>
38865
38866 PR c++/47291
38867 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
38868 (gen_scheduled_generic_parms_dies): New functions.
38869 (gen_struct_or_union_type_die): Schedule template parameters DIEs
38870 generation for the end of CU compilation.
38871 (dwarf2out_finish): Generate template parameters DIEs here.
38872
38873 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
38874
38875 PR debug/46240
38876 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
38877 debug bind stmt on merge edges.
38878
38879 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
38880
38881 PR debug/47079
38882 PR debug/46724
38883 * function.c (instantiate_expr): Instantiate incoming rtl of
38884 implicit arguments, and recurse on VALUE_EXPRs.
38885 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
38886 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
38887
38888 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
38889
38890 * c-parser.c (c_parser_for_statement): Initialize
38891 collection_expression.
38892
38893 2011-01-19 Joseph Myers <joseph@codesourcery.com>
38894
38895 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
38896
38897 2011-01-19 Joseph Myers <joseph@codesourcery.com>
38898
38899 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
38900 (LINK_SHLIB_SPEC): Don't use %(link_path).
38901 (SUBTARGET_EXTRA_SPECS): Remove link_path.
38902
38903 2011-01-19 Joseph Myers <joseph@codesourcery.com>
38904
38905 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
38906 (NO_SHARED_LIB_SUPPORT): Remove.
38907 (LINK_SHLIB_SPEC): Remove one conditional definition.
38908
38909 2011-01-19 Joseph Myers <joseph@codesourcery.com>
38910
38911 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
38912 %{call_shared}.
38913 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
38914 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
38915 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
38916 %{call_shared} and conditionals on these options not being passed.
38917 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
38918 %{call_shared}.
38919
38920 2011-01-19 Jakub Jelinek <jakub@redhat.com>
38921
38922 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
38923 simplify.
38924
38925 * ipa-split.c: Spelling fixes.
38926
38927 2011-01-19 Richard Henderson <rth@redhat.com>
38928
38929 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
38930 (*mulsi3): Likewise.
38931
38932 * longlong.h [__mn10300__] (count_leading_zeros): New.
38933 [__mn10300__] (umul_ppmm, smul_ppmm): New.
38934 [__mn10300__] (add_ssaaaa, subddmmss): New.
38935 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
38936 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
38937
38938 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
38939
38940 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
38941
38942 2011-01-19 Richard Henderson <rth@redhat.com>
38943
38944 * config/mn10300/mn10300.md (addsi3_flags): New.
38945 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
38946 (subsi3_flags, subc_internal, subdi3): New.
38947 (subdi3_internal, *subdi3_degenerate): New.
38948 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
38949
38950 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
38951 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
38952 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
38953 * config/mn10300/mn10300-protos.h: Update.
38954 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
38955 (return_ret): Likewise. Rename from return_internal_regs.
38956 (return_internal): Remove.
38957
38958 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
38959 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
38960 (mn10300_legitimate_constant_p): Likewise.
38961 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
38962 (mn10300_frame_size): New.
38963 (mn10300_expand_prologue): Use it.
38964 (mn10300_expand_epilogue): Likewise.
38965 (mn10300_initial_offset): Likewise.
38966 * config/mn10300/mn10300-protos.h: Update.
38967 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
38968 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
38969 (prologue, epilogue, return_internal): Tidy output code.
38970 (mn10300_store_multiple_operation, return): Likewise.
38971 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
38972 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
38973 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
38974 (load_pic, am33_load_pic): New.
38975 (mn10300_load_pic0, mn10300_load_pic1): New.
38976
38977 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
38978 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
38979 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
38980 (cc_flags_for_mode, cc_flags_for_code): New.
38981 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
38982 overflow flag is not valid. Validate that the flags we need
38983 for the comparison are valid.
38984 (mn10300_output_cmp): Remove.
38985 (mn10300_output_add): New.
38986 (mn10300_select_cc_mode): Use cc_flags_for_code.
38987 (mn10300_split_cbranch): New.
38988 (mn10300_match_ccmode): New.
38989 (mn10300_split_and_operand_count): New.
38990 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
38991 to the function.
38992 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
38993 (addsi3): ... here. Use mn10300_output_add.
38994 (*addsi3_flags): New.
38995 (*am33_subsi3, *mn10300_subsi3): Merge...
38996 (subsi3): ... here. Use attribute isa.
38997 (*subsi3_flags): New.
38998 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
38999 when possible.
39000 (*am33_andsi3, *mn10300_andsi3): Merge...
39001 (andsi3): ... here.
39002 (*andsi3_flags): New.
39003 (andsi3 splitters): New.
39004 (*am33_iorsi3, *mn10300_iorsi3): Merge...
39005 (iorsi3): ... here.
39006 (*iorsi3_flags): New.
39007 (*am33_xorsi3, *mn10300_xorsi3): Merge...
39008 (xorsi3): ... here.
39009 (*xorsi3_flags): New.
39010 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
39011 (one_cmplsi2): ... here.
39012 (*one_cmplsi2_flags): New.
39013 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
39014 instead of "dax" in constraints. Use mn10300_split_cbranch.
39015 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
39016 use matching constraints to eliminate a self-comparison.
39017 (*integer_conditional_branch): Rename from integer_conditional_branch.
39018 Use int_mode_flags to match CC_REG.
39019 (*cbranchsi4_btst, *btstsi): New.
39020 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
39021 mn10300_split_cbranch.
39022 (*am33_cmpsf): Rename from am33_cmpsf.
39023 (*float_conditional_branch): Rename from float_conditional_branch.
39024 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
39025 (zero_extendqisi2): ... here.
39026 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
39027 (zero_extendhisi2): ... here.
39028 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
39029 (extendqisi2): ... here.
39030 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
39031 (extendhisi2): ... here.
39032 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
39033 (ashlsi3): ... here.
39034 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
39035 (lshrsi3): ... here.
39036 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
39037 (ashrsi3): ... here.
39038 (consecutive add peephole): Remove.
39039 * config/mn10300/predicates.md (label_ref_operand): New.
39040 (int_mode_flags): New.
39041 (CCZN_comparison_operator): New.
39042
39043 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
39044 (throughput_42_latency_43): New reservation.
39045 (mulsidi3, umulsidi3): New expanders.
39046 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
39047 the MDR register to allocation; separately allocate the low and
39048 high parts of the DImode result.
39049 (umulsidi3_internal): Similarly.
39050 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
39051 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
39052 (udivsi3, umodsi3): Remove.
39053 (udivmodsi4, divmodsi4): New expanders.
39054 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
39055 (*divmodsi4): Simiarly.
39056 (ext_internal): New.
39057
39058 * config/mn10300/constraints.md ("z"): New constraint.
39059 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
39060 (FIXED_REGISTERS): Don't fix MDR.
39061 (CALL_USED_REGSITERS): Reformat nicely.
39062 (REG_ALLOC_ORDER): Add MDR.
39063 (enum regclass): Add MDR_REGS.
39064 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
39065 (IRA_COVER_CLASSES): Add MDR_REGS.
39066 (REGNO_REG_CLASS): Handle MDR_REG.
39067 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
39068 (mn10300_register_move_cost): Likewise.
39069 * config/mn10300/mn10300.md (MDR_REG): New.
39070 (*movsi_internal): Handle moves to/from MDR_REGS.
39071
39072 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
39073 POST_MODIFY.
39074 (mn10300_secondary_reload): Tidy combination reload classes.
39075 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
39076 addresses for AM33. Allow symbolic offsets for reg+imm.
39077 (mn10300_regno_in_class_p): New.
39078 (mn10300_legitimize_reload_address): New.
39079 * config/mn10300/mn10300.h (enum reg_class): Remove
39080 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
39081 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
39082 SP_OR_GENERAL_REGS.
39083 (REG_CLASS_NAMES): Update to match.
39084 (REG_CLASS_CONTENTS): Likewise.
39085 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
39086 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
39087 (REGNO_IN_RANGE_P): Remove.
39088 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
39089 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
39090 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
39091 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
39092 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
39093 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
39094 (REGNO_GENERAL_P): New.
39095 (HAVE_POST_MODIFY_DISP): New.
39096 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
39097 (LEGITIMIZE_RELOAD_ADDRESS): New.
39098 * config/mn10300/mn10300-protos.h: Update.
39099
39100 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
39101 DATA_REGS for AM33 stack-pointer destination.
39102 (mn10300_preferred_output_reload_class): Likewise.
39103 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
39104 into a form appropriate for ...
39105 (TARGET_SECONDARY_RELOAD): New.
39106 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
39107 * config/mn10300/mn10300-protos.h: Update.
39108 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
39109 reload_insi; use the "A" constraint for the scratch; handle AM33
39110 moves of sp to non-address registers.
39111
39112 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
39113 (*movqi_internal): ... here.
39114 (*am33_movhi, *mn10300_movhi): Merge into...
39115 (*movhi_internal): ... here.
39116 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
39117 as the source/destination of moves from/to SP.
39118 (movsf): Only allow for AM33-2.
39119 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
39120 any integer constant constraint. Only allow for AM33-2. Tidy
39121 all of the alternative outputs.
39122 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
39123 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
39124 for MN103.
39125 (udivsi3, umodsi3): New patterns for MN103 only.
39126
39127 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
39128
39129 * doc/tm.texi.in: Spell out that a lack of register class unions
39130 can lead to ICEs.
39131 * doc/tm.texi: Regenerate.
39132
39133 2011-01-19 Jakub Jelinek <jakub@redhat.com>
39134
39135 PR rtl-optimization/47337
39136 * dce.c (check_argument_store): New function.
39137 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
39138
39139 PR tree-optimization/47290
39140 * tree-eh.c (infinite_empty_loop_p): New function.
39141 (cleanup_empty_eh): Use it.
39142
39143 2011-01-18 Steve Ellcey <sje@cup.hp.com>
39144
39145 PR target/46997
39146 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
39147 (a64_expand_widen_sum): Ditto.
39148 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
39149 (vec_extract_evenodd_help): Ditto.
39150 (vec_extract_evenv4hi): Ditto.
39151 (vec_extract_oddv4hi): Ditto.
39152 (vec_extract_evenv2si): Ditto.
39153 (vec_extract_oddv2si): Ditto.
39154 (vec_extract_evenv2sf): Ditto.
39155 (vec_extract_oddv2sf): Ditto.
39156 (vec_pack_trunc_v4hi: Ditto.
39157 (vec_pack_trunc_v2si): Ditto.
39158 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
39159 (vec_interleave_highv8qi): Ditto.
39160 (mix1_r): Ditto.
39161 (vec_extract_oddv8qi): Ditto.
39162 (vec_interleave_lowv4hi): Ditto.
39163 (vec_interleave_highv4hi): Ditto.
39164 (vec_interleave_lowv2si): Ditto.
39165 (vec_interleave_highv2si): Ditto.
39166
39167 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
39168
39169 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
39170 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
39171 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
39172 (pa_c_mode_for_suffix): New.
39173 (TARGET_EXPAND_BUILTIN): Define.
39174 (TARGET_C_MODE_FOR_SUFFIX): Define.
39175 (pa_builtins): Define.
39176 (pa_init_builtins): Register __float128 type and init new support
39177 builtins.
39178 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
39179 * config/pa/quadlib.c (_U_Qfcopysign): New.
39180
39181 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
39182
39183 PR middle-end/46894
39184 * explow.c (allocate_dynamic_stack_space): Do not assume more than
39185 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
39186 are defined.
39187
39188 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
39189
39190 PR tree-optimization/47179
39191 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
39192 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
39193
39194 2011-01-18 Richard Guenther <rguenther@suse.de>
39195
39196 PR rtl-optimization/47216
39197 * emit-rtl.c: Include tree-flow.h.
39198 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
39199 of replicating it with different semantics.
39200 * Makefile.in (emit-rtl.o): Adjust.
39201
39202 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
39203
39204 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
39205 (cortex_a9_dp): Handle neon types correctly.
39206
39207 2011-01-18 Jakub Jelinek <jakub@redhat.com>
39208
39209 PR rtl-optimization/47299
39210 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
39211 subtarget. Use normal multiplication if both operands are constants.
39212 * expmed.c (expand_widening_mult): Don't try to optimize constant
39213 multiplication if op0 has VOIDmode. Convert op1 constant to mode
39214 before using it.
39215
39216 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39217
39218 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
39219 spacing after 'e.g.', typos, comma, hyphenation.
39220
39221 2011-01-17 Richard Henderson <rth@redhat.com>
39222
39223 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
39224 (rx_restricted_mem_operand): New.
39225 (rx_shift_operand): Use register_operand.
39226 (rx_source_operand, rx_compare_operand): Likewise.
39227 * config/rx/rx.md (addsi3_flags): New expander.
39228 (adddi3): Rewrite as expander.
39229 (adc_internal, *adc_flags, adddi3_internal): New patterns.
39230 (subsi3_flags): New expander.
39231 (subdi3): Rewrite as expander.
39232 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
39233
39234 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
39235 (rx_init_builtins): Remove sat builtin.
39236 (rx_expand_builtin): Likewise.
39237 * config/rx/rx.md (ssaddsi3): New.
39238 (*sat): Rename from sat. Represent the CC_REG input.
39239
39240 * config/rx/predicates.md (rshift_operator): New.
39241 * config/rx/rx.c (rx_expand_insv): Remove.
39242 * config/rx/rx-protos.h: Update.
39243 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
39244 operand to the canonical position.
39245 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
39246 (*bitclr, *bitclr_in_memory): Similarly.
39247 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
39248 (insv): Retain the zero_extract in the expansion.
39249
39250 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
39251 (bswaphi2, bitinvert, revw): Likewise.
39252
39253 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
39254 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
39255 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
39256 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
39257 (bitset, bitset_in_memory): Likewise.
39258 (bitinvert, bitinvert_in_memory): Likewise.
39259 (bitclr, bitclr_in_memory): Likewise.
39260 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
39261 (rx_strend, rx_cmpstrn): Likewise.
39262 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
39263 (bitop peep2 patterns): Remove.
39264
39265 * config/rx/rx.c (rx_match_ccmode): New.
39266 * config/rx/rx-protos.h: Update.
39267 * config/rx/rx.md (abssi2): Clobber, don't set flags.
39268 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
39269 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
39270 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
39271 (fix_truncsfsi2, floatsisf2): Likewise.
39272 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
39273 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
39274 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
39275 (*subsi3_flags, *xorsi3_flags): New.
39276
39277 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
39278
39279 * config/rx/rx.c (rx_print_operand): Remove workaround for
39280 unsplit comparison operations.
39281
39282 * config/rx/rx.md (movsicc): Split after reload.
39283 (*movsicc): Merge *movsieq and *movsine via match_operator.
39284 (*stcc): New pattern.
39285
39286 * config/rx/rx.c (rx_float_compare_mode): Remove.
39287 * config/rx/rx.h (rx_float_compare_mode): Remove.
39288 * config/rx/rx.md (cstoresi4): Split after reload.
39289 (*sccc): New pattern.
39290
39291 * config/rx/predicates.md (label_ref_operand): New.
39292 (rx_z_comparison_operator): New.
39293 (rx_zs_comparison_operator): New.
39294 (rx_fp_comparison_operator): New.
39295 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
39296 Validate that the flags are set properly for the comparison.
39297 (rx_gen_cond_branch_template): Remove.
39298 (rx_cc_modes_compatible): Remove.
39299 (mode_from_flags): New.
39300 (flags_from_code): Rename from flags_needed_for_conditional.
39301 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
39302 (rx_select_cc_mode): Likewise.
39303 (rx_split_fp_compare): New.
39304 (rx_split_cbranch): New.
39305 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
39306 (*cbranchsi4): Use match_operator and rx_split_cbranch.
39307 (*cbranchsf4): Similarly.
39308 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
39309 match_operator and rx_split_cbranch.
39310 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
39311 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
39312 (*cmpsi): Rename from cmpsi.
39313 (*tstsi): Rename from tstsi.
39314 (*cmpsf): Rename from cmpsf; use CC_Fmode.
39315 (*conditional_branch): Rename from conditional_branch.
39316 (*reveresed_conditional_branch): Remove.
39317 (b<code>): Remove expander.
39318 * config/rx/rx-protos.h: Update.
39319
39320 * config/rx/rx.c (rx_compare_redundant): Remove.
39321 * config/rx/rx.md (cmpsi): Don't use it.
39322 * config/rx/rx-protos.h: Update.
39323
39324 * config/rx/rx-modes.def (CC_F): New mode.
39325 * config/rx/rx.c (rx_select_cc_mode): New.
39326 * config/rx/rx.h (SELECT_CC_MODE): Use it.
39327 * config/rx/rx-protos.h: Update.
39328
39329 2011-01-17 Richard Henderson <rth@redhat.com>
39330
39331 * except.c (dump_eh_tree): Fix stray ; after for statement.
39332
39333 2011-01-17 Richard Guenther <rguenther@suse.de>
39334
39335 PR tree-optimization/47313
39336 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
39337 handling before copying the body. Properly deal with
39338 by-reference result in SSA form.
39339
39340 2011-01-17 Ian Lance Taylor <iant@google.com>
39341
39342 PR target/47219
39343 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
39344 (struct_value_alias_set): Don't define.
39345 (sparc_option_override): Don't set sparc_sr_alias_set and
39346 struct_value_alias_set.
39347 (save_or_restore_regs): Use gen_frame_mem rather than calling
39348 set_mem_alias_set.
39349 (sparc_struct_value_rtx): Likewise.
39350
39351 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
39352
39353 PR target/47318
39354 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
39355 (_mm_maskstore_pd): Likewise.
39356 (_mm_maskload_ps): Likewise.
39357 (_mm_maskstore_ps): Likewise.
39358 (_mm256_maskload_pd): Change mask to __m256i.
39359 (_mm256_maskstore_pd): Likewise.
39360 (_mm256_maskload_ps): Likewise.
39361 (_mm256_maskstore_ps): Likewise.
39362
39363 * config/i386/i386-builtin-types.def: Updated.
39364 (ix86_expand_special_args_builtin): Likewise.
39365
39366 * config/i386/i386.c (bdesc_special_args): Update
39367 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
39368 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
39369 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
39370 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
39371
39372 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
39373 Use <avxpermvecmode> on mask register.
39374 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
39375
39376 2011-01-17 Olivier Hainque <hainque@adacore.com>
39377 Michael Haubenwallner <michael.haubenwallner@salomon.at>
39378 Eric Botcazou <ebotcazou@adacore.com>
39379
39380 PR target/46655
39381 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
39382 if <= USHRT_MAX in 32-bit mode.
39383
39384 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39385
39386 * doc/install.texi (Configuration, Specific): Wrap long
39387 lines in examples. Allow line wrapping in long options
39388 and URLs where beneficial for PDF output.
39389
39390 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
39391
39392 * config/mips/mips.c (mips_classify_symbol): Don't return
39393 SYMBOL_PC_RELATIVE for nonlocal labels.
39394
39395 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
39396
39397 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
39398
39399 2011-01-15 Jan Hubicka <jh@suse.cz>
39400
39401 PR tree-optimization/47276
39402 * ipa.c (function_and_variable_visibility): Do not try to mark alias
39403 declarations as needed.
39404
39405 2011-01-15 Martin Jambor <mjambor@suse.cz>
39406
39407 * common.opt (fdevirtualize): New flag.
39408 * doc/invoke.texi (Option Summary): Document it.
39409 * opts.c (default_options_table): Add devirtualize flag.
39410 * ipa-prop.c (detect_type_change): Return immediately if
39411 devirtualize flag is not set.
39412 (detect_type_change_ssa): Likewise.
39413 (compute_known_type_jump_func): Likewise.
39414 (ipa_analyze_virtual_call_uses): Likewise.
39415
39416 2011-01-14 Martin Jambor <mjambor@suse.cz>
39417
39418 PR tree-optimization/45934
39419 PR tree-optimization/46302
39420 * ipa-prop.c (type_change_info): New type.
39421 (stmt_may_be_vtbl_ptr_store): New function.
39422 (check_stmt_for_type_change): Likewise.
39423 (detect_type_change): Likewise.
39424 (detect_type_change_ssa): Likewise.
39425 (compute_complex_assign_jump_func): Check for dynamic type change.
39426 (compute_complex_ancestor_jump_func): Likewise.
39427 (compute_known_type_jump_func): Likewise.
39428 (compute_scalar_jump_functions): Likewise.
39429 (ipa_analyze_virtual_call_uses): Likewise.
39430 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
39431
39432 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39433
39434 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
39435 * config/i386/i386.opt (msse5): New Alias.
39436
39437 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39438
39439 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
39440 * config/sparc/linux64.h (CC1_SPEC): Likewise.
39441 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
39442 * config/sparc/sparc.h (CC1_SPEC): Likewise.
39443
39444 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39445
39446 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
39447 -mcpu options.
39448 * config/sparc/linux64.h (CC1_SPEC): Likewise.
39449 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
39450 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
39451 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
39452 Likewise.
39453 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
39454
39455 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39456
39457 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
39458
39459 2011-01-14 Mike Stump <mikestump@comcast.net>
39460
39461 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
39462 * config/fr30/fr30.md: Likweise
39463 (movsi_push): Likewise.
39464 (movsi_pop): Likewise.
39465 (enter_func): Likewise.
39466 * config/moxie/moxie.md (movsi_push): Likewise.
39467 (movsi_pop): Likewise.
39468
39469 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39470
39471 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
39472 %{no_archive} %{exact_version}.
39473 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
39474 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
39475 %{no_archive} %{exact_version}.
39476 * config/mips/openbsd.h (LINK_SPEC): Likewise.
39477 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
39478 * config/mips/vxworks.h: Likewise.
39479
39480 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39481
39482 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
39483
39484 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39485
39486 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
39487 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
39488
39489 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39490
39491 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
39492 -nodefaultlib.
39493
39494 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39495
39496 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
39497 for mcpu not cpu.
39498 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
39499 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
39500 not cpu.
39501 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
39502 Don't handle -shlib.
39503
39504 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39505
39506 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
39507 (CC1_SPEC): Don't handle -profile.
39508
39509 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39510
39511 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
39512 * config/mips/mips.h (CC1_SPEC): Likewise.
39513
39514 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39515
39516 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
39517 * config/mips/mips.h (CC1_SPEC): Likewise.
39518
39519 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39520
39521 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
39522 * config/m32r/linux.h (LINK_SPEC): Likewise.
39523 * config/mips/linux.h (LINK_SPEC): Likewise.
39524 * config/mips/linux64.h (LINK_SPEC): Likewise.
39525 * config/sparc/linux.h (LINK_SPEC): Likewise.
39526 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
39527 LINK_SPEC): Likewise.
39528 * config/xtensa/linux.h (LINK_SPEC): Likewise.
39529
39530 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39531
39532 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
39533 %{version:-v}.
39534 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
39535
39536 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39537
39538 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
39539 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
39540
39541 2011-01-14 Joseph Myers <joseph@codesourcery.com>
39542
39543 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
39544
39545 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39546
39547 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
39548 supports -Bstatic/-Bdynamic.
39549 * configure: Regenerate.
39550
39551 2011-01-14 Jan Hubicka <jh@suse.cz>
39552 Jack Howarth <howarth@bromo.med.uc.edu>
39553
39554 PR target/46037
39555 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
39556 when checking debug_info_level. Test write_symbols instead of
39557 debug_hooks->var_location when setting flag_var_tracking_uninit.
39558
39559 2011-01-14 Richard Guenther <rguenther@suse.de>
39560
39561 PR tree-optimization/47179
39562 * target.def (ref_may_alias_errno): New target hook.
39563 * targhooks.h (default_ref_may_alias_errno): Declare.
39564 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
39565 (default_ref_may_alias_errno): New function.
39566 * target.h (struct ao_ref_s): Declare.
39567 * tree-ssa-alias.c: Include target.h.
39568 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
39569 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
39570 (targhooks.o): Likewise.
39571 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
39572 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
39573
39574 2011-01-14 Richard Guenther <rguenther@suse.de>
39575
39576 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
39577
39578 2011-01-14 Richard Guenther <rguenther@suse.de>
39579
39580 PR tree-optimization/47280
39581 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
39582 return CFG changes.
39583 (tree_ssa_forward_propagate_single_use_vars): Deal with
39584 CFG changes from associate_plusminus.
39585
39586 2011-01-14 Richard Guenther <rguenther@suse.de>
39587
39588 PR middle-end/47281
39589 Revert
39590 2011-01-11 Richard Guenther <rguenther@suse.de>
39591
39592 PR tree-optimization/46076
39593 * tree-ssa.c (useless_type_conversion_p): Conversions from
39594 unprototyped to empty argument list function types are useless.
39595
39596 2011-01-14 Richard Guenther <rguenther@suse.de>
39597
39598 PR tree-optimization/47286
39599 * tree-ssa-structalias.c (new_var_info): Register variables are global.
39600
39601 2011-01-14 Martin Jambor <mjambor@suse.cz>
39602
39603 PR middle-end/46823
39604 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
39605
39606 2011-01-13 Anatoly Sokolov <aesok@post.ru>
39607
39608 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
39609 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
39610 * config/xtensa/xtensa.c (xtensa_libcall_value,
39611 xtensa_function_value_regno_p): New functions.
39612 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
39613
39614 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
39615
39616 PR c++/47213
39617 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
39618 PE specific hook.
39619 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
39620 New function prototype.
39621 * config/i386/winnt.c (i386_pe_assemble_visibility):
39622 Warn only if attribute was specified by user.
39623
39624 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
39625
39626 PR target/47251
39627 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
39628 floating point.
39629 (floatunsdidf2_fcfidu): Ditto.
39630
39631 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39632
39633 * config/s390/s390.c (print_operand_address): Replace 'error' with
39634 'output_operand_lossage'.
39635 (print_operand): Likewise.
39636
39637 2011-01-13 Jeff Law <law@redhat.com>
39638
39639 PR rtl-optimization/39077
39640 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
39641 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
39642 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
39643 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
39644 * gcse.c (prune_insertions_deletions): New function.
39645 (compute_pre_data): Use it.
39646
39647 2011-01-13 Dodji Seketeli <dodji@redhat.com>
39648
39649 PR debug/PR46973
39650 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
39651 static function.
39652 (prune_unused_types_mark): Use it.
39653
39654 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
39655
39656 PR rtl-optimization/45352
39657 * sel-sched.c: Update copyright years.
39658 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
39659 in the advancing loop when we have issued issue_rate insns.
39660
39661 2011-01-12 Richard Henderson <rth@redhat.com>
39662
39663 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
39664 (TARGET_MD_ASM_CLOBBERS): New.
39665
39666 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
39667 (TARGET_DELEGITIMIZE_ADDRESS): New.
39668
39669 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
39670 (clzsi2, *bsch): New patterns.
39671
39672 * config/mn10300/mn10300.md (INT): New mode iterator.
39673 (*mov<INT>_clr): New pattern, and peep2 to generate it.
39674
39675 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
39676 flag_split_wide_types.
39677
39678 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
39679 (mn10300_trampoline_init): Rewrite without a template, an immediate
39680 load and a direct branch.
39681 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
39682
39683 2011-01-12 Anatoly Sokolov <aesok@post.ru>
39684
39685 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
39686 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
39687 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
39688 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
39689
39690 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
39691
39692 PR debug/47209
39693 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
39694 of type.
39695
39696 2011-01-12 Jan Hubicka <jh@suse.cz>
39697
39698 PR driver/47244
39699 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
39700 (PLUGIN_COND_CLOSE): New macro.
39701 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
39702
39703 2011-01-12 Richard Guenther <rguenther@suse.de>
39704
39705 PR lto/47259
39706 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
39707 register variables in a MEM_REF.
39708
39709 2011-01-12 Joseph Myers <joseph@codesourcery.com>
39710
39711 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
39712 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
39713 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
39714 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
39715 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
39716 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
39717 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
39718 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
39719 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
39720 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
39721 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
39722 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
39723 * config/gnu-user.h: New. Copied from linux.h.
39724 (LINUX_TARGET_STARTFILE_SPEC): Rename to
39725 GNU_USER_TARGET_STARTFILE_SPEC.
39726 (LINUX_TARGET_ENDFILE_SPEC): Rename to
39727 GNU_USER_TARGET_ENDFILE_SPEC.
39728 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
39729 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
39730 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
39731 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
39732 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
39733 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
39734 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
39735 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
39736 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
39737 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
39738 * config/arm/linux-eabi.h (CC1_SPEC): Use
39739 GNU_USER_TARGET_CC1_SPEC.
39740 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
39741 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
39742 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
39743 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
39744 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
39745 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
39746 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
39747 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
39748
39749 2011-01-12 Richard Guenther <rguenther@suse.de>
39750
39751 PR other/46946
39752 * doc/invoke.texi (ffast-math): Document it is turned on
39753 with -Ofast.
39754
39755 2011-01-12 Jan Hubicka <jh@suse.cz>
39756
39757 PR tree-optimization/47233
39758 * opts.c (common_handle_option): Disable ipa-reference with profile
39759 feedback.
39760
39761 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
39762
39763 * c-parser.c (c_parser_objc_at_property_declaration): Improved
39764 error message.
39765
39766 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
39767
39768 * c-parser.c (c_lex_one_token): Updated and reindented some
39769 comments. No changes in code.
39770
39771 2011-01-11 Ian Lance Taylor <iant@google.com>
39772
39773 * godump.c (go_output_var): Don't output the variable if there is
39774 already a type with the same name.
39775
39776 2011-01-11 Ian Lance Taylor <iant@google.com>
39777
39778 * godump.c (go_format_type): Don't generate float80.
39779
39780 2011-01-11 Richard Henderson <rth@redhat.com>
39781
39782 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
39783 declaration. Rewrite for both speed and size.
39784 (mn10300_address_cost_1): Remove.
39785 (mn10300_register_move_cost): New.
39786 (mn10300_memory_move_cost): New.
39787 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
39788 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
39789 extensions, shifts, BSWAP, CLZ.
39790 (mn10300_wide_const_load_uses_clr): Remove.
39791 (TARGET_REGISTER_MOVE_COST): New.
39792 (TARGET_MEMORY_MOVE_COST): New.
39793 * config/mn10300/mn10300-protos.h: Update.
39794 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
39795
39796 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
39797 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
39798 * config/mn10300/mn10300-protos.h: Update.
39799 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
39800 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
39801 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
39802 (*test_int_bitfield, *test_byte_bitfield): Remove.
39803 (*bit_test, *subreg_bit_test): Remove.
39804 * config/mn10300/predicates.md (const_8bit_operand): Remove.
39805
39806 * config/mn10300/constraints.md ("c"): Rename from "A".
39807 ("A", "D"): New constraint letters.
39808 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
39809 (fmssf4, fnmasf4, fnmssf4): Likewise.
39810
39811 * config/mn10300/mn10300.md (isa): New attribute.
39812 (enabled): New attribute.
39813
39814 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
39815 (abssf2, negsf2): Define only for hardware fp.
39816 (sqrtsf2): Reformat.
39817 (addsf3, subsf3, mulsf3): Merge expander and insn.
39818
39819 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
39820 (DEBUGGER_AUTO_OFFSET): Remove.
39821 (DEBUGGER_ARG_OFFSET): Remove.
39822
39823 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
39824 Emit register stores with the same offsets as the hardware.
39825 (mn10300_store_multiple_operation): Don't check that the register
39826 save offsets are monotonic.
39827 * config/mn10300/mn10300-protos.h: Update.
39828
39829 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
39830
39831 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
39832 in terms of the value on the stack, not the MDR register.
39833
39834 2011-01-11 Jan Hubicka <jh@suse.cz>
39835
39836 PR lto/45721
39837 PR lto/45375
39838 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
39839 (symbol_alias_set_destroy, symbol_alias_set_contains,
39840 propagate_aliases_backward): Declare.
39841 * lto-streamer-out.c (struct sets): New sturcture.
39842 (trivally_defined_alias): New function.
39843 (output_alias_pair_p): Rewrite.
39844 (output_unreferenced_globals): Fix output of alias pairs.
39845 (produce_symtab): Likewise.
39846 * ipa.c (function_and_variable_visibility): Set weak alias destination
39847 as needed in lto.
39848 * varasm.c (symbol_alias_set_t): Remove.
39849 (symbol_alias_set_destroy): Export.
39850 (propagate_aliases_forward, propagate_aliases_backward): New functions
39851 based on ...
39852 (compute_visible_aliases): ... this one; remove.
39853 (trivially_visible_alias): New
39854 (trivially_defined_alias): New.
39855 (remove_unreachable_alias_pairs): Rewrite.
39856 (finish_aliases_1): Reorganize code checking if alias is defined.
39857 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
39858 in LTO mode.
39859
39860 2011-01-11 Richard Guenther <rguenther@suse.de>
39861
39862 PR tree-optimization/46076
39863 * tree-ssa.c (useless_type_conversion_p): Conversions from
39864 unprototyped to empty argument list function types are useless.
39865
39866 2011-01-11 Richard Guenther <rguenther@suse.de>
39867
39868 PR middle-end/45235
39869 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
39870 volatile MEMs as MEM_READONLY_P.
39871
39872 2011-01-11 Richard Guenther <rguenther@suse.de>
39873
39874 PR tree-optimization/47239
39875 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
39876
39877 2011-01-11 Jeff Law <law@redhat.com>
39878
39879 PR tree-optimization/47086
39880 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
39881 IVs from statements that might throw.
39882
39883 2011-01-10 Jan Hubicka <jh@suse.cz>
39884
39885 PR lto/45375
39886 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
39887
39888 2011-01-10 Jan Hubicka <jh@suse.cz>
39889
39890 PR lto/45375
39891 * profile.c (read_profile_edge_counts): Ignore profile inconistency
39892 when correcting profile.
39893
39894 2011-01-10 Jan Hubicka <jh@suse.cz>
39895
39896 PR lto/46083
39897 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
39898 DECL_FINI_PRIORITY.
39899 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
39900 Restore DECL_FINI_PRIORITY.
39901
39902 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39903
39904 * doc/gimple.texi: Fix quoting of multi-word return values in
39905 @deftypefn statements. Ensure presence of return value. Wrap
39906 overlong @deftypefn lines.
39907 (is_gimple_operand, is_gimple_min_invariant_address): Remove
39908 descriptions of removed functions.
39909 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
39910 of multi-word return value in @deftypefn statement.
39911
39912 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39913
39914 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
39915 (Conditional Expressions, Logical Operators)
39916 (Statement and operand traversals): Do not indent smallexample
39917 code. Fix duplicate function argument in example.
39918
39919 2011-01-10 Jeff Law <law@redhat.com>
39920
39921 PR tree-optimization/47141
39922 * ipa-split.c (split_function): Handle case where we are
39923 returning a value and the return block has a virtual operand phi.
39924
39925 2011-01-10 Jan Hubicka <jh@suse.cz>
39926
39927 PR tree-optimization/47234
39928 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
39929 (pass_feedback_split_functions): Declare.
39930 * passes.c (init_optimization_passes): Add ipa-split as subpass of
39931 tree-profile.
39932 * ipa-split.c (gate_split_functions): Update comments; disable
39933 split-functions for profile_arc_flag and branch_probabilities.
39934 (gate_feedback_split_functions): New function.
39935 (execute_feedback_split_functions): New function.
39936 (pass_feedback_split_functions): New global var.
39937
39938 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
39939
39940 PR lto/46760
39941 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
39942 calling gimple_call_set_cannot_inline.
39943
39944 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
39945
39946 * config/darwin-sections.def: Remove unused section.
39947
39948 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
39949
39950 PR c++/47218
39951 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
39952
39953 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
39954
39955 PR objc/47232
39956 * c-parser.c (c_parser_declaration_or_fndef): Improved
39957 error message.
39958
39959 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
39960
39961 * config/i386/winnt.c (i386_pe_start_function): Make sure
39962 to switch back to function's section.
39963
39964 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
39965
39966 PR gcc/46902
39967 PR testsuite/46912
39968 * plugin.c: Move include of dlfcn.h from here...
39969 * system.h: ... to here.
39970
39971 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39972
39973 * doc/cpp.texi (C++ Named Operators): Fix markup for header
39974 file name.
39975 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
39976 two extra empty pages in PDF output.
39977
39978 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
39979
39980 PR objc/47078
39981 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
39982 for error recovery purposes behave as if it was not specified so
39983 that the default type is usd.
39984
39985 2011-01-07 Jan Hubicka <jh@suse.cz>
39986
39987 PR tree-optmization/46469
39988 * ipa.c (function_and_variable_visibility): Clear needed flags on
39989 nodes with external decls; handle weakrefs merging correctly.
39990
39991 2011-01-07 Joseph Myers <joseph@codesourcery.com>
39992
39993 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
39994 not false.
39995
39996 2011-01-07 Jan Hubicka <jh@suse.cz>
39997
39998 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
39999 and no longer claim that gold is required for linker plugin.
40000 * configure: Regenerate.
40001 * gcc.c (PLUGIN_COND): New macro.
40002 (LINK_COMMAND_SPEC): Use it.
40003 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
40004 * config.in (HAVE_LTO_PLUGIN): New.
40005 * configure.ac (--with-lto-plugin): New parameter; autodetect
40006 HAVE_LTO_PLUGIN.
40007
40008 2011-01-07 Jan Hubicka <jh@suse.cz>
40009
40010 PR tree-optimization/46367
40011 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
40012 when we can update original.
40013 (cgraph_mark_inline_edge): Sanity check.
40014 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
40015
40016 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
40017
40018 * config/spu/spu.h (ASM_COMMENT_START): Define.
40019
40020 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
40021
40022 PR driver/42445
40023 * gcc.c (%>S): New.
40024 (SWITCH_KEEP_FOR_GCC): Likewise.
40025 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
40026 (do_spec_1): Handle "%>".
40027
40028 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
40029
40030 2011-01-07 Jakub Jelinek <jakub@redhat.com>
40031
40032 PR target/47201
40033 * config/i386/i386.c (ix86_delegitimize_address): If
40034 simplify_gen_subreg fails, return orig_x.
40035
40036 PR bootstrap/47187
40037 * value-prof.c (gimple_stringop_fixed_value): Handle
40038 lhs of the call properly.
40039
40040 2011-01-07 Jan Hubicka <jh@suse.cz>
40041
40042 PR lto/45375
40043 * lto-opt.c (lto_reissue_options): Set flag_shlib.
40044
40045 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
40046
40047 * target.def (function_switched_text_sections): New hook.
40048 * doc/tm.texi: Regenerated.
40049 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
40050 * final.c (default_function_switched_text_sections): New.
40051 (final_scan_insn): Call function_switched_text_sections when a
40052 mid-function section change occurs.
40053 * output.h (default_function_switched_text_sections): Declare.
40054 * config/darwin-protos.h (darwin_function_switched_text_sections):
40055 Likewise.
40056 * config/darwin.c (darwin_function_switched_text_sections): New.
40057 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
40058
40059 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
40060
40061 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
40062 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
40063 the secondary code fragment when outputting for DWARF == 2.
40064
40065 2011-01-07 Anatoly Sokolov <aesok@post.ru>
40066
40067 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
40068 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
40069 Remove.
40070 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
40071 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
40072
40073 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
40074
40075 PR debug/46704
40076 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
40077 when it is not empty.
40078
40079 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
40080
40081 Bobcat Enablement
40082 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
40083 (case ${target}): Add btver1.
40084 * config/i386/driver-i386.c (host_detect_local_cpu): Let
40085 -march=native recognize btver1 processors.
40086 * config/i386/i386-c.c (ix86_target_macros_internal): Add
40087 btver1 def_and_undef
40088 * config/i386/i386.c (struct processor_costs btver1_cost): New
40089 btver1 cost table.
40090 (m_BTVER1): New definition.
40091 (m_AMD_MULTIPLE): Includes m_BTVER1.
40092 (initial_ix86_tune_features): Add btver1 tune.
40093 (processor_target_table): Add btver1 entry.
40094 (static const char *const cpu_names): Add btver1 entry.
40095 (software_prefetching_beneficial_p): Add btver1.
40096 (ix86_option_override_internal): Add btver1 instruction sets.
40097 (ix86_issue_rate): Add btver1.
40098 (ix86_adjust_cost): Add btver1.
40099 * config/i386/i386.h (TARGET_BTVER1): New definition.
40100 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
40101 (enum processor_type): Add PROCESSOR_BTVER1.
40102 * config/i386/i386.md (define_attr "cpu"): Add btver1.
40103
40104 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40105
40106 PR target/43309
40107 * config/i386/i386.c (legitimize_tls_address)
40108 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
40109 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
40110 (tls_initial_exec_64_sun): New pattern.
40111
40112 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
40113
40114 * doc/invoke.texi (Overall Options): Improve wording and markup
40115 of the description of -wrapper.
40116
40117 2011-01-06 Joseph Myers <joseph@codesourcery.com>
40118
40119 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
40120 rdynamic, threads): New Driver options.
40121
40122 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40123
40124 PR target/38118
40125 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
40126 if coming from .tdata.
40127 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
40128
40129 2011-01-06 Jan Hubicka <jh@suse.cz>
40130
40131 PR lto/47188
40132 * collect2.c (main): Do not enable LTOmode when plugin is active.
40133
40134 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40135
40136 PR other/45915
40137 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
40138 --version output if supported.
40139 * configure: Regenerate.
40140
40141 2011-01-06 Joseph Myers <joseph@codesourcery.com>
40142
40143 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
40144 Driver options.
40145
40146 2011-01-06 Jakub Jelinek <jakub@redhat.com>
40147
40148 PR c/47150
40149 * c-convert.c (convert): When converting a complex expression
40150 other than COMPLEX_EXPR to a different complex type, ensure
40151 c_save_expr is called instead of save_expr, unless in_late_binary_op.
40152 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
40153 when converting COMPLEX_TYPE.
40154
40155 2011-01-06 Ira Rosen <irar@il.ibm.com>
40156
40157 PR tree-optimization/47139
40158 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
40159 only the last reduction value is used outside the loop. Update
40160 documentation.
40161
40162 2011-01-05 Joseph Myers <joseph@codesourcery.com>
40163
40164 * config/rtems.opt: New.
40165 * config.gcc (*-*-rtems*): Use rtems.opt.
40166
40167 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
40168
40169 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
40170 processors do not support 3DNow instructions.
40171
40172 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
40173
40174 * config/spu/spu.c (spu_option_override): Set parameter
40175 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
40176
40177 2011-01-05 Jan Hubicka <jh@suse.cz>
40178
40179 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
40180 at the command line.
40181
40182 2011-01-05 Martin Jambor <mjambor@suse.cz>
40183
40184 PR lto/47162
40185 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
40186 deltas on streamed outgoing edges.
40187 (output_node_opt_summary): Output info for outgoing edges only when
40188 the node is in new parameter set.
40189 (output_cgraph_opt_summary): New parameter set, passed to the two
40190 aforementioned functions. Update its forward declaration and its
40191 callee too.
40192
40193 2011-01-05 Tom Tromey <tromey@redhat.com>
40194
40195 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
40196 operator to c_finish_omp_atomic.
40197 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
40198 (build_unary_op): Update.
40199 (build_modify_expr): Update.
40200 (build_asm_expr): Update.
40201
40202 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
40203
40204 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
40205 newly inserted insns.
40206 (pad_bb): Likewise.
40207 (spu_emit_branch_hint): Likewise.
40208 (insert_hbrp_for_ilb_runout): Likewise.
40209 (spu_machine_dependent_reorg): Call df_finish_pass after
40210 schedule_insns returns.
40211
40212 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
40213
40214 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
40215
40216 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
40217
40218 PR tree-optimization/47005
40219 * tree-sra.c (struct access): Add 'non_addressable' bit.
40220 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
40221 (decide_one_param_reduction): Return 0 if the parameter is passed by
40222 reference and one of the accesses in the group is non_addressable.
40223
40224 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
40225
40226 PR tree-optimization/47056
40227 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
40228 (mark_load): Likewise. Handle FUNCTION_DECL specially.
40229 (mark_store): Likewise. Pass STMT to ipa_record_reference.
40230
40231 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
40232
40233 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
40234 initializer. Skip view conversions from aggregate types.
40235
40236 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
40237
40238 PR bootstrap/47055
40239 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
40240
40241 2011-01-04 Philipp Thomas <pth@suse.de>
40242
40243 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
40244 obvious typo.
40245
40246 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
40247
40248 * function.c (thread_prologue_and_epilogue_insns): Do not crash
40249 on empty epilogue sequences.
40250
40251 2011-01-04 Joseph Myers <joseph@codesourcery.com>
40252
40253 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
40254 non-static): New Driver options.
40255
40256 2011-01-04 Jie Zhang <jie@codesourcery.com>
40257
40258 PR driver/47137
40259 * gcc.c (default_compilers[]): Set combinable field to 0
40260 for all assembly languages.
40261
40262 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
40263
40264 * config/mips/loongson3a.md: New file.
40265 * config/mips/mips.md: Include loongson3a.md.
40266 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
40267 TUNE_LOONGSON_3A.
40268
40269 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
40270
40271 PR middle-end/47017
40272 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
40273 instead of convert_memory_address_addr_space on the base expression.
40274
40275 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
40276
40277 * config/spu/spu.c (spu_option_override): Update error text
40278 for bad -march= / -mtune= values.
40279
40280 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
40281
40282 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
40283 if branch-hint optimization will be performed.
40284
40285 2011-01-03 Jakub Jelinek <jakub@redhat.com>
40286
40287 PR tree-optimization/47148
40288 * ipa-split.c (split_function): Convert arguments to
40289 DECL_ARG_TYPE if possible.
40290
40291 PR tree-optimization/47155
40292 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
40293 when computing uns.
40294
40295 PR rtl-optimization/47157
40296 * combine.c (try_combine): If undobuf.other_insn becomes
40297 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
40298 and set *new_direct_jump_p too.
40299
40300 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
40301
40302 PR tree-optimization/47021
40303 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
40304
40305 2011-01-03 Jakub Jelinek <jakub@redhat.com>
40306
40307 * gcc.c (process_command): Update copyright notice dates.
40308 * gcov.c (print_version): Likewise.
40309 * gcov-dump.c (print_version): Likewise.
40310 * mips-tfile.c (main): Likewise.
40311 * mips-tdump.c (main): Likewise.
40312
40313 2011-01-03 Martin Jambor <mjambor@suse.cz>
40314
40315 PR tree-optimization/46801
40316 * tree-sra.c (type_internals_preclude_sra_p): Check whether
40317 aggregate fields start at byte boundary instead of the bit-field flag.
40318
40319 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
40320
40321 PR driver/47137
40322 * gcc.c (main): Revert revision 168407.
40323
40324 2011-01-03 Martin Jambor <mjambor@suse.cz>
40325
40326 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
40327
40328 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
40329
40330 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
40331 vector optab to expand vector/scalar shift, update gimple to vector.
40332
40333 2011-01-03 Martin Jambor <mjambor@suse.cz>
40334
40335 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
40336 a thunk.
40337
40338 2011-01-03 Martin Jambor <mjambor@suse.cz>
40339
40340 PR tree-optimization/46984
40341 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
40342 HOST_WIDE_INT.
40343 (cgraph_create_indirect_edge): Fixed line length.
40344 (cgraph_indirect_call_info): Declare.
40345 (cgraph_make_edge_direct) Update declaration.
40346 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
40347 (cgraph_create_indirect_edge): Use it.
40348 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
40349 callees.
40350 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
40351 the new thunk_delta representation.
40352 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
40353 HOST_WIDE_INT.
40354 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
40355 (ipa_read_indirect_edge_info): Likewise.
40356 * lto-cgraph.c (output_edge_opt_summary): New function.
40357 (output_node_opt_summary): Call it on all outgoing edges.
40358 (input_edge_opt_summary): New function.
40359 (input_node_opt_summary): Call it on all outgoing edges.
40360
40361 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
40362
40363 PR driver/47137
40364 * gcc.c (main): Don't check have_o when settting combine_inputs.
40365
40366 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
40367
40368 * regrename.c: Add general comment describing the pass.
40369 (struct du_head): Remove 'length' field.
40370 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
40371 (regrename_optimize): Do not sort chains. Rework comments, add others.
40372 Force renaming to the preferred class (if any) in the first pass and do
40373 not consider registers that belong to it in the second pass.
40374 (create_new_chain): Do not set 'length' field.
40375 (scan_rtx_reg): Likewise.
40376
40377 2011-01-02 Jakub Jelinek <jakub@redhat.com>
40378
40379 PR tree-optimization/47140
40380 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
40381 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
40382 to bit_value_binop.
40383
40384 PR rtl-optimization/47028
40385 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
40386 parm_birth_insn instead of at the beginning of first bb.
40387
40388 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
40389
40390 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
40391 Remove the word "see" before "@pxref".
40392 * doc/rtl.texi: Remove the word "see" before "@pxref".
40393
40394 2011-01-01 Jan Hubicka <jh@suse.cz>
40395
40396 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
40397 memory.
40398
40399 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
40400
40401 PR target/38662
40402 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
40403
40404 \f
40405 Copyright (C) 2011 Free Software Foundation, Inc.
40406
40407 Copying and distribution of this file, with or without modification,
40408 are permitted in any medium without royalty provided the copyright
40409 notice and this notice are preserved.