* reorg.c (fill_simple_delay_slots): Avoid calling optimize_skip
[official-gcc.git] / gcc / ChangeLog
blob61280127794a943dfce7ad190faedbe3697f3f74
1 2012-11-05  Joern Rennecke  <joern.rennecke@embecosm.com>
3         * reorg.c (fill_simple_delay_slots): Avoid calling optimize_skip
4         with a return instruction.
6 2012-11-05  Vladimir Makarov  <vmakarov@redhat.com>
8         PR rtl-optimization/55151
9         * lra-constraints.c (process_alt_operands): Permit putting reg
10         value into memory.  Increase reject for this case.
12 2012-11-05  Dehao Chen  <dehao@google.com>
14         * final.c (reemit_insn_block_notes): Do not change scope if insn
15         location is UNKNOWN_LOCATION.
17 2012-11-05  Joern Rennecke  <joern.rennecke@embecosm.com>
19         * doc/md.texi (Defining Attributes): Document that we are defining
20         HAVE_ATTR_name macors as 1 for defined attributes, and as 0
21         for undefined special attributes.
22         * final.c (asm_insn_count, align_fuzz): Always define.
23         (insn_current_reference_address): Likewise.
24         (init_insn_lengths): Use if (HAVE_ATTR_length) instead of
25         #ifdef HAVE_ATTR_length.
26         (get_attr_length_1, shorten_branches, final): Likewise.
27         (final_scan_insn, output_asm_name): Likewise.
28         * genattr.c (gen_attr): Define HAVE_ATTR_name macros for
29         defined attributes as 1.
30         Remove ancient get_attr_alternative compatibility code.
31         For special purpose attributes not provided, define HAVE_ATTR_name
32         as 0.
33         In case no length attribute is given, provide stub definitions
34         for insn_*_length* functions, and also include insn-addr.h.
35         In case no enabled attribute is given, provide stub definition.
36         * genattrtab.c (write_length_unit_log): Always write a definition.
37         * hooks.c (hook_int_rtx_1, hook_int_rtx_unreachable): New functions.
38         * hooks.h (hook_int_rtx_1, hook_int_rtx_unreachable): Declare.
39         * lra-int.h (struct lra_insn_recog_data): Make member
40         alternative_enabled_p unconditional.
41         * lra.c (free_insn_recog_data): Use if (HAVE_ATTR_length) instead of
42         #ifdef HAVE_ATTR_length.
43         (lra_set_insn_recog_data): Likewise.  Make initialization of
44         alternative_enabled_p unconditional.
45         (lra_update_insn_recog_data): Use #if instead of #ifdef for
46         HAVE_ATTR_enabled.
47         * recog.c [!HAVE_ATTR_enabled] (get_attr_enabled): Don't define.
48         (extract_insn): Check HAVE_ATTR_enabled.
49         (gate_handle_split_before_regstack): Use #if instead of
50         #if defined for HAVE_ATTR_length.
52 2012-11-05  Jan Hubicka  <jh@suse.cz>
54         * ipa-inline.c (compute_uninlined_call_time,
55         compute_inlined_call_time): New functions.
56         (RELATIVE_TIME_BENEFIT_RANGE): New macro.
57         (relative_time_benefit): Rewrite.
58         (edge_badness): Rewrite path with guessed profile and estimated profile.
59         * ipa-inline.h (INLINE_HINT_declared_inline, INLINE_HINT_cross_module):
60         New hints.
61         (struct inline_summary): Add GROWTH filed.
62         * ipa-inline-analysis.c (dump_inline_hints): Update.
63         (reset_inline_summary): Update.
64         (dump_inline_summary): Update.
65         (will_be_nonconstant_predicate): Cleanup to use gimple_store_p and
66         gimple_assign_load_p predicates.
67         (estimate_node_size_and_time): Drop INLINE_HINT_declared_inline hint.
68         (simple_edge_hints): New function.
69         (do_estimate_edge_time): Return time of invocation of callee rather
70         than the time scaled by edge frequency; update hints code.
71         (do_estimate_edge_hints): Update.
72         (do_estimate_growth): Cleanup.
74 2012-11-05  Jakub Jelinek  <jakub@redhat.com>
76         PR target/55194
77         * dwarf2out.c (value_format) <case dw_val_class_high_pc>: Handle
78         also DWARF2_ADDR_SIZE 1 and 2.
80 2012-11-05  Jan Hubicka  <jh@suse.cz>
82         * tree-ssa-loop-niter.c (find_loop_niter): Remove just_once_each_iteration_p.
83         (maybe_lower_iteration_bound): Initialize not_executed_last_iteration to  NULL
84         * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables): Skip
85         just_once_each_iteration_p; record estimated bound when loop has only one
86         likely exit; test just_once_each_iteration_p before IV canon itself.
88 2012-11-05  Jan Hubicka  <jh@suse.cz>
90         * ipa-inline.c (leaf_node_p): Rename to ...
91         (num_calls) ... this one.
92         (want_early_inline_function_p): Allow smal growth on non-leafs.
94 2012-11-05  Jakub Jelinek  <jakub@redhat.com>
96         PR debug/54402
97         * var-tracking.c (fp_setter): Return false if there is REG_CFA_RESTORE
98         hfp note.
99         (vt_initialize): Look for fp_setter in any bb, not just successor of
100         entry bb.
102 2012-11-05  Oleg Endo  <olegendo@gcc.gnu.org>
104         * config/sh/sh.h (TARGET_CACHE32, TARGET_HARVARD): Delete macro.
105         (TARGET_SUPERSCALAR): Add TARGET_SH2A.
106         (CACHE_LOG): Use TARGET_HARD_SH4 and TARGET_SH5 instead of
107         TARGET_CACHE32.
108         (TRAMPOLINE_ALIGNMENT): Use TARGET_HARD_SH4 and TARGET_SH5 instead of
109         TARGET_HARVARD.
110         * config/sh/sh.c (sh_trampoline_init): Likewise.
112 2012-11-05  David Edelsohn  <dje.gcc@gmail.com>
114         * system.h (loc_t): Poison.
116 2012-11-05  Marc Glisse  <marc.glisse@inria.fr>
118         * fold-const.c (fold_unary_loc): Disable conversion optimization
119         for void type.
121 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
123         * configure: Regenerate.
125 2012-11-04  Eric Botcazou  <ebotcazou@adacore.com>
127         * combine.c: Adjust toplevel comment.
128         (make_extraction): Adjust head comment and move up canonicalization.
130 2012-11-04  Alexandre Oliva <aoliva@redhat.com>
131             Jakub Jelinek <jakub@redhat.com>
133         PR debug/54693
134         * tree-ssa-loop-ivopts.c (remove_unused_ivs): Emit debug temps
135         for dropped IV sets.
137 2012-11-04  Alexandre Oliva <aoliva@redhat.com>
139         PR debug/54693
140         * tree-ssa-threadedge.c (propagate_threaded_block_debug_into):
141         New, rewritten from debug stmt copying code...
142         (thread_around_empty_block): ... removed from here.
143         (thread_across_edge): Call propagate_threaded_block_debug_into.
145 2012-11-04  Dehao Chen  <dehao@google.com>
147         * expr.c (expand_expr_real_1): Change to not using input_location.
149 2012-11-03  Jan Hubicka  <jh@suse.cz>
151         * invoke.texi (profile-use): update documentation.
152         * opts.c (common_handle_option): Enable tree-vectorize
153         and tree-loop-distribute-patterns.
154         * tree-loop-distribution.c (tree_loop_distribution): Skip loops
155         optimized for size.
156         * config/i386/i386.c (ix86_option_override_internal): Enabe
157         prefetch_lop_arrays for profile-use.
159 2012-11-03  Robert Mason  <rbmj@verizon.net>
161         * gcov-io.c (gcov_open): Add file mode to open call (need for VxWorks)
163 2012-11-03  Sandra Loosemore  <sandra@codesourcery.com>
165         * doc/extend.texi: Copy-edit to use present tense except when
166         explicitly describing future or past behavior.
168 2012-11-03  Oleg Endo  <olegendo@gcc.gnu.org>
170         * config/sh/sh.c (output_movedouble, output_far_jump,
171         output_ieee_ccmpeq): Use multi-line strings for asm.
172         (find_regmode_weight): Wrap lines.
173         (sh_optimize_target_register_callee_saved): Remove commented out
174         variable.
175         (emit_load_ptr): Remove prototype.
177 2012-11-03  Oleg Endo  <olegendo@gcc.gnu.org>
179         PR target/51244
180         * config/sh/sh.md (*cbranch_t): Allow splitting after reload.
181         Allow going beyond current basic block before reload when looking for
182         the reg set insn.
183         * config/sh/sh.c (sh_find_set_of_reg): Don't stop at labels.
185 2012-11-02  Jan Hubicka  <jh@suse.cz>
187         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk): Add
188         missing sign to unsigned.
190 2012-11-02  Andrew Pinski  <apinski@cavium.com>
192         PR rtl-opt/54524
193         * simplify-rtx.c (simplify_relational_operation_1): Don't simplify
194         (LTU/GEU (PLUS a 0) 0) into (GEU/LTU a 0) since they are not
195         equivalent.
197 2012-11-02  Jan Hubicka  <jh@suse.cz>
199         * tree-ssa-loop-niter.c (double_int_cmp, bound_index,
200         discover_iteration_bound_by_body_walk): New functions.
201         (discover_iteration_bound_by_body_walk): Use it.
203 2012-11-02  Jan Hubicka  <jh@suse.cz>
205         * predict.c (predict_loops): Predict also exits not dominating latch.
207 2012-11-02  Jan Hubicka  <jh@suse.cz>
209         * predict.c (predict_loops): Do not predict infinite loops.
211 2012-11-02  Jan Hubicka  <jh@suse.cz>
213         PR middle-end/55079
214         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
215         MAX field if NITER was folded to contant.
216         (record_estimate): Sanity check.
217         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): New
218         function.
219         (remove_redundant_iv_test): New function.
220         (loops_to_unloop, loops_to_unloop_nunroll): New static vars.
221         (unloop_loops): Break out from ...
222         (try_unroll_loop_completely): ... here; Pass in MAXITER; use
223         remove_exits_and_undefined_stmts; do not unloop.
224         (canonicalize_loop_induction_variables): Compute MAXITER;
225         use remove_redundant_iv_test; remove loop_close_ssa_invalidated
226         and irred_invalidated arguments.
227         (canonicalize_induction_variables): Compute fresh bound estimates;
228         unloop; walk from innermost.
229         (tree_unroll_loops_completely): Likewise.
231 2012-11-02  Vladimir Makarov  <vmakarov@redhat.com>
233         PR middle-end/55130
234         * lra-constraints.c (debug_loc_equivalence_change_p): Rename to
235         loc_equivalence_change_p.
236         (lra_constraints): Check equiv_insn_bitmap for debug insn.  Call
237         loc_equivalence_change_p for non-transformed insn.
239 2012-11-02  Eric Botcazou  <ebotcazou@adacore.com>
241         * cfg-flags.def (ABNORMAL_CALL): Fix comment.
242         (EH): Likewise.
243         (SIBCALL): Likewise.
244         * cfgrtl.c (rtl_verify_flow_info_1): Adjust error messages.
245         Deal with EDGE_SIBCALL and fix the EDGE_ABNORMAL check.
247 2012-11-02  Jakub Jelinek  <jakub@redhat.com>
249         PR target/55147
250         * config/i386/i386.md (bswapdi2): Limit to TARGET_64BIT.
251         (*bswapdi2_doubleword): Removed.
253 2012-11-02  Gerald Pfeifer  <gerald@pfeifer.com>
255         * doc/install.texi (Specific): Remove moxie web reference.
257 2012-11-01  Marc Glisse  <marc.glisse@inria.fr>
259         PR middle-end/55001
260         * tree-vect-generic.c (expand_vector_condition): New function.
261         (expand_vector_operations_1): Call it.
263 2012-11-01  Steve Ellcey  <sellcey@mips.com>
265         * target-globals.c (save_target_globals): Save lra_int struct.
267 2012-11-01  Gerald Pfeifer  <gerald@pfeifer.com>
269         * doc/standards.texi (Standards): Adjust reference to Go specification.
271 2012-11-01  Lawrence Crowl  <crowl@google.com>
273         * ebitmap.h: Remove unused.
274         * ebitmap.c: Remove unused.
275         * Makefile.in: Remove ebitmap.h and ebitmap.c.
276         * sbitmap.h (SBITMAP_SIZE_BYTES): Move to source file.
277         (SET_BIT_WITH_POPCOUNT): Remove unused.
278         (RESET_BIT_WITH_POPCOUNT): Remove unused.
279         (bitmap_copy_n): Remove unused.
280         (bitmap_range_empty_p): Remove unused.
281         (sbitmap_popcount): Remove unused.
282         (sbitmap_verify_popcount): Make private to source file.
283         * sbitmap.c (SBITMAP_SIZE_BYTES): Move here from header.
284         (bitmap_copy_n): Remove unused.
285         (bitmap_range_empty_p): Remove unused.
286         (sbitmap_popcount): Remove unused.
287         (sbitmap_verify_popcount): Make private to source file.
289 2012-11-01  Lawrence Crowl  <crowl@google.com>
291         * sbitmap.h (sbitmap_iter_init): Rename bmp_iter_set_init and add
292         unused parameter to match bitmap iterator.  Update callers.
293         (sbitmap_iter_cond): Rename bmp_iter_set.  Update callers.
294         (sbitmap_iter_next): Rename bmp_iter_next and add unused parameter to
295         match bitmap iterator.  Update callers.
296         (EXECUTE_IF_SET_IN_SBITMAP_REV): Remove unused.
297         (EXECUTE_IF_SET_IN_SBITMAP): Rename EXECUTE_IF_SET_IN_BITMAP and
298         adjust to be identical to the definition in bitmap.h.  Conditionalize
299         the definition based on not having been defined.  Update callers.
300         * bitmap.h (EXECUTE_IF_SET_IN_BITMAP): Conditionalize the definition
301         based on not having been defined.  (To match the above.)
303 2012-11-01  Lawrence Crowl  <crowl@google.com>
305         * sbitmap.h (TEST_BIT): Rename bitmap_bit_p, normalizing parameter
306         type. Update callers to match.
307         (SET_BIT): Rename bitmap_set_bit, normalizing parameter type. Update
308         callers to match.
309         (SET_BIT_WITH_POPCOUNT): Rename bitmap_set_bit_with_popcount,
310         normalizing parameter type. Update callers to match.
311         (RESET_BIT): Rename bitmap_clear_bit, normalizing parameter type.
312         Update callers to match.
313         (RESET_BIT_WITH_POPCOUNT): Rename bitmap_clear_bit_with_popcount,
314         normalizing parameter type. Update callers to match.
315         * basic-block.h (sbitmap_intersection_of_succs): Rename
316         bitmap_intersection_of_succs. Update callers to match.
317         * basic-block.h (sbitmap_intersection_of_preds): Rename
318         bitmap_intersection_of_preds. Update callers to match.
319         * basic-block.h (sbitmap_union_of_succs): Rename
320         bitmap_union_of_succs. Update callers to match.
321         * basic-block.h (sbitmap_union_of_preds): Rename
322         bitmap_union_of_preds. Update callers to match.
324 2012-11-01  Vladimir Makarov  <vmakarov@redhat.com>
326         PR middle-end/55150
327         * lra-constraints.c (lra_constraints): Check only pseudos with
328         equivalences.  Add insns with equivalence pseudos.
330 2012-11-01  Sharad Singhai  <singhai@google.com>
332         PR other/55164
333         * dumpfile.h (struct dump_file_info): Fix order of flags.
335 2012-11-01  Jan Hubicka  <jh@suse.cz>
337         PR middle-end/55104
338         * ipa-inline-transform.c (inline_call): Silence an sanity check until
339         ipa-cp issue if fixed.
341 2012-11-01  Sharad Singhai  <singhai@google.com>
343         * doc/invoke.texi: Update -fopt-info documentation.
344         * dumpfile.c: Move dump_flags here from passes.c.
345         Rename opt_info_options to optinfo_verbosity_options.
346         Add optgroup_options.
347         (dump_files): Add field for optinfo_flags in the static initializer.
348         (dump_register): Handle additional parameter for optgroup_flags.
349         (opt_info_enable_passes): Renamed opt_info_enable_all. Handle
350         optgroup_flags. Fix documentation.
351         (opt_info_switch_p_1): Handle optgroup options.
352         (opt_info_switch_p): Handle optgroup_flags. Warn on multiple files.
353         * dumpfile.h (dump_register): Additional argument for optgroup_flags.
354         All callers updated.
355         (struct dump_file_info): Add field for optgroup_flags.
356         Define OPTGROUP_* flags.
357         * tree-pass.h (struct opt_pass): Add addtional field for optinfo_flags.
358         All opt_pass static initializers updated.
359         * opts-global.c (dump_remap_tree_vectorizer_verbose): Use 'all'
360         instead of 'optall'.
361         (handle_common_deferred_options): Fix typo in error message.
362         * passes.c (register_one_dump_file): Add argument for optgroup_flags.
363         Turn on OPTGROUP_IPA for IPA passes.
364         Move dump_flags from here to dumpfile.c.
365         * statistics.c (statistics_early_init): Use OPTGROUP_NONE in call to
366         dump_register.
368 2012-11-01  Joern Rennecke  <joern.rennecke@embecosm.com>
370         PR target/55160
371         * config/sh/sh.md (doloop_end): Use emit_jump_insn.
373 2012-10-31  Jakub Jelinek  <jakub@redhat.com>
375         PR tree-optimization/53708
376         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Preserve
377         user-supplied alignment when used with an explicit section name.
379 2012-10-31  Dehao Chen  <dehao@google.com>
381         * tree-eh.c (do_return_redirection): Set location for jump statement.
382         (do_goto_redirection): Likewise.
383         (frob_into_branch_around): Likewise.
384         (lower_try_finally_nofallthru): Likewise.
385         (lower_try_finally_copy): Likewise.
386         (lower_try_finally_switch): Likewise.
387         * expr.c (store_expr): Use current insn location instead of expr
388         location.
389         (expand_expr_real): Likewise.
390         (expand_expr_real_1): Likewise.
392 2012-10-31   Easwaran Raman  <eraman@google.com>
394         PR target/54938
395         PR middle-end/54957
396         * optabs.c (emit_cmp_and_jump_insn_1): Add REG_BR_PROB note
397         only if it doesn't already exist.
398         * stmt.c (get_outgoing_edge_probs): Return 0 if BB is NULL.
399         (emit_case_dispatch_table): Handle the case where STMT_BB is NULL.
400         (expand_sjlj_dispatch_table): Pass BB containing before_case
401         to emit_case_dispatch_table.
403 2012-10-31  Lawrence Crowl  <crowl@google.com>
405         * is-a.h: New.
406         (is_a <T> (U*)): New.  Test for is-a relationship.
407         (as_a <T> (U*)): New.  Treat as a derived type.
408         (dyn_cast <T> (U*)): New.  Conditionally cast based on is_a.
409         * cgraph.h (varpool_node): Rename to varpool_node_for_decl.
410         Adjust callers to match.
411         (is_a_helper <cgraph_node>::test (symtab_node_def *)): New.
412         (is_a_helper <varpool_node>::test (symtab_node_def *)): New.
413         (symtab_node_def::try_function): New.  Change most calls to
414         symtab_function_p with calls to dyn_cast <cgraph_node> (p).
415         (symtab_node_def::try_variable): New.  Change most calls to
416         symtab_variable_p with calls to dyn_cast <varpool_node> (p).
417         (symtab_function_p): Remove.  Change callers to use
418         is_a <cgraph_node> (p) instead.
419         (symtab_variable_p): Remove.  Change callers to use
420         is_a <varpool_node> (p) instead.
421         * cgraph.c (cgraph_node_for_asm): Remove redundant call to
422         symtab_node_for_asm.
423         * cgraphunit.c (symbol_finalized_and_needed): New.
424         (symbol_finalized): New.
425         (cgraph_analyze_functions): Split complicated conditionals out into
426         above new functions.
427         * Makefile.in (CGRAPH_H): Add is-a.h as used by cgraph.h.
429 2012-10-31  Steven Bosscher  <steven@gcc.gnu.org>
430             Jakub Jelinek  <jakub@redhat.com>
432         PR tree-optimization/55018
433         * basic-block.h (dfs_find_deadend): New prototype.
434         * cfganal.c (dfs_find_deadend): No longer static.  Use bitmap
435         instead of sbitmap for visited.
436         (flow_dfs_compute_reverse_execute): Use dfs_find_deadend here, too.
437         * dominance.c (calc_dfs_tree): If saw_unconnected, traverse from
438         dfs_find_deadend of unconnected b instead of b directly.
440 2012-10-31  Eric Botcazou  <ebotcazou@adacore.com>
442         * config/i386/i386.c (ix86_expand_prologue): Emit frame info for the
443         special register pushes before frame probing and allocation.
445 2012-10-31  Vladimir Makarov  <vmakarov@redhat.com>
447         PR middle-end/55150
448         * lra-constraints.c (lra_constraints): Update debug insn info
449         after equivalence change.
451 2012-10-31  Jan Hubicka  <jh@suse.cz>
453         * ipa-inline.c (ipa_inline): Avoid infinite loop on inlining
454         empty virtual functions calling themselves.
456 2012-10-31  Tom Tromey  <tromey@redhat.com>
458         PR other/50899
459         * doc/gcc.texi: Add @direntry for gcov.
461 2012-10-31  Joern Rennecke  <joern.rennecke@embecosm.com>
463         * expr.c (can_move_by_pieces): Apply ATTRIBUTE_UNUSED to len.
465 2012-10-31  Jakub Jelinek  <jakub@redhat.com>
467         PR tree-optimization/19105
468         PR tree-optimization/21643
469         PR tree-optimization/46309
470         * tree-ssa-reassoc.c (init_range_entry): Add STMT argument
471         and use it if EXP is NULL.
472         (update_range_test): Handle OPCODE equal to ERROR_MARK and oe->op NULL.
473         (optimize_range_tests): Likewise.
474         (final_range_test_p, suitable_cond_bb, no_side_effect_bb, get_ops,
475         maybe_optimize_range_tests): New functions.
476         (reassociate_bb): Call maybe_optimize_range_tests if last
477         stmt of bb is GIMPLE_COND that hasn't been visited yet.
479 2012-10-31  Richard Sandiford  <rdsandiford@googlemail.com>
481         * config/rs6000/rs6000.md (insvsi, insvdi, extvsi, extvdi): Rename
482         to...
483         (insvsi_internal, insvdi_internal, extvsi_internal)
484         (extvdi_internal): ...this.
485         (insv, extv): Update accordingly.
487 2012-10-31  Richard Sandiford  <rdsandiford@googlemail.com>
489         * combine.c (simplify_comparison): If BITS_BIG_ENDIAN, always assume
490         that zero_extracts of const_ints are doing word-sized extractions.
492 2012-10-31  Richard Sandiford  <rdsandiford@googlemail.com>
494         * combine.c (make_extraction): Remove dead wanted_inner_mode-
495         and pos_rtx-related code.
497 2012-10-31  Richard Sandiford  <rdsandiford@googlemail.com>
499         * expmed.c (store_bit_field_1): Move generation of MEM insvs
500         to the MEM_P block.
501         (extract_bit_field_1): Likewise extvs and extzvs.
503 2012-10-31  Richard Sandiford  <rdsandiford@googlemail.com>
505         * expmed.c (store_bit_field_using_insv): New function,
506         split out from...
507         (store_bit_field_1): ...here.
508         (extract_bit_field_using_extv): New function, split out from...
509         (extract_bit_field_1): ...here.
511 2012-10-31  Richard Sandiford  <rdsandiford@googlemail.com>
513         * expmed.c (store_bit_field_1): Use OP_MODE to check whether an
514         insv pattern is available.  Remove redundant checks for OP_MODE
515         being MAX_MACHINE_MODE.
516         (extract_bit_field_1): Remove redundant checks for EXT_MODE being
517         MAX_MACHINE_MODE.
519 2012-10-31  Richard Sandiford  <rdsandiford@googlemail.com>
521         * expmed.c (store_bit_field_1): Remove test for BLKmode values.
523 2012-10-31  Ralf Corsépius  <ralf.corsepius@rtems.org>,
524             Joel Sherrill  <joel.sherrill@oarcorp.com>
526         * config/sparc/t-rtems: New (Custom multilibs).
527         * config/sparc/t-rtems-64: New (Custom multilibs).
528         * config.gcc (sparc64-*-rtems*): Add sparc/t-rtems-64.
529         (sparc-*-rtems*): Add sparc/t-rtems.
531 2012-10-31  Alan Modra  <amodra@gmail.com>
533         * config/rs6000/rs6000.c (legitimize_reload_address): Remove code
534         handling non-aligned ld/std.
535         * config/rs6000/paired.md (movv2sf_paired): Use 'Y' instead of 'o'.
536         * config/rs6000/vsx.md (vsx_mov, vsx_movti): Likewise.
537         * config/rs6000/altivec.md (altivec_mov, altivec_movti): Likewise.
538         * config/rs6000/dfp.md (movtd_internal): Use 'm' instead of 'o'.
540 2012-10-31  Alan Modra  <amodra@gmail.com>
542         * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Define _CALL_LINUX.
544 2012-10-31  Joern Rennecke  <joern.rennecke@embecosm.com>
546         * lra-constraints.c (choose_split_class): Add ATTRIBUTE_UNUSED to
547         hard_reg_class.
549         PR target/52498
550         * vmsdbgout.c (vmsdbgout_write_source_line): Comment out names of
551         last two parameters.
553 2012-10-30  Alexandre Oliva <aoliva@redhat.com>
555         PR debug/54551
556         PR debug/54693
557         * valtrack.c (dead_debug_promote_uses): Assert-check that
558         global used bit was clear and initialize entry unconditionally.
560 2012-10-30  Eric Botcazou  <ebotcazou@adacore.com>
562         * cse.c (hash_rtx_cb): Replace RTX_UNCHANGING_P with MEM_READONLY_P in
563         head comment.
564         (hash_rtx): Likewise.
566 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
568         PR rtl-optimization/55093
569         * rtlanal.c (simplify_subreg_regno): Remove lra_in_progress
570         check for ARG_POINTER_REGNUM.
572 2012-10-30  Steve Ellcey  <sellcey@mips.com>
574         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Change order
575         and add mabi=64.
576         (DRIVER_SELF_SPECS): Make -n32 the default on mips64* archs.
577         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Change order.
578         (MULTILIB_DIRNAMES): Ditto.
579         (MULTILIB_EXCEPTIONS): New.
581 2012-10-30  Joern Rennecke  <joern.rennecke@embecosm.com>
583         * lra-constraints.c (check_secondary_memory_needed_p):
584         Add ATTRIBUTE_UNUSED to parameters.
586 2012-10-30  Richard Sandiford  <rdsandiford@googlemail.com>
588         * defaults.h (SLOW_UNALIGNED_ACCESS): Provide default definition.
589         * expmed.c (SLOW_UNALIGNED_ACCESS): Remove default definition.
590         * expr.c (SLOW_UNALIGNED_ACCESS): Likewise.
591         * lra-constraints.c (SLOW_UNALIGNED_ACCESS): Likewise.
592         (simplify_operand_subreg): Don't check STRICT_ALIGNMENT here.
594 2012-10-30  Jan Hubicka  <jh@suse.cz>
596         * ipa-inline-analysis.c (eliminated_by_inlining_prob): Cleanup.
598 2012-10-30  Jan Hubicka  <jh@suse.cz>
600         * tree-ssa-loop-niter.c (number_of_iterations_exit): New parameter
601         EVERY_ITERATION with implicit value of true.
602         (record_estimate): Check dominance relationship of the basic block
603         we are estimating on instead of relying on UPPER to be false.
604         (struct ilb_data): Drop RELIABLE.
605         (idx_infer_loop_bounds): Update.
606         (infer_loop_bounds_from_ref): Drop parameter RELIABLE.
607         (infer_loop_bounds_from_array): Drop parameter RELIABLE.
608         (infer_loop_bounds_from_undefined): Update comments and handling
609         of RELIABLE.
610         (estimate_numbers_of_iterations_loop): Record all bounds.
612 2012-10-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
614         * lra-eliminations.c (lra_eliminate_regs_1): Use simplify_gen_subreg
615         rather than gen_rtx_SUBREG.
617 2012-10-30  Richard Biener  <rguenther@suse.de>
619         * gimple.h (gimple_store_p): New predicate.
620         (gimple_assign_load_p): Likewise.
621         * tree-inline.c (estimate_num_insns): Use it.
623 2012-10-30  Marc Glisse  <marc.glisse@inria.fr>
625         * fold-const.c (fold_binary_op_with_conditional_arg): Handle vectors.
626         (fold_binary_loc): Call it for VEC_COND_EXPR.
628 2012-10-30  James Greenhalgh  <james.greenhalgh@arm.com>
629             Tejas Belagod  <tejas.belagod@arm.com>
631         * config/aarch64/aarch64-simd.md
632         (aarch64_simd_bsl<mode>_internal): New pattern.
633         (aarch64_simd_bsl<mode>): Likewise.
634         (aarch64_vcond_internal<mode>): Likewise.
635         (vcondu<mode><mode>): Likewise.
636         (vcond<mode><mode>): Likewise.
637         * config/aarch64/iterators.md (UNSPEC_BSL): Add to define_constants.
639 2012-10-30  Richard Biener  <rguenther@suse.de>
641         PR tree-optimization/55111
642         * tree-ssa-pre.c (eliminate_insert): Properly fold the built stmt.
644 2012-10-30  Oleg Endo  <olegendo@gcc.gnu.org>
646         PR target/54963
647         * config/sh/iterators.md (SIDI): New mode iterator.
648         * config/sh/sh.md (negdi2): Use parallel around operation and T_REG
649         clobber in expander.
650         (*negdi2): Mark output operand as early clobbered.  Add T_REG clobber.
651         Split after reload.  Simplify split code.
652         (abssi2, absdi2): Fold expanders into abs<mode>2.
653         (*abssi2, *absdi2): Fold into *abs<mode>2 insn_and_split.  Split insns
654         before reload.
655         (*negabssi2, *negabsdi2): Fold into *negabs<mode>2.  Add T_REG clobber.
656         Split insns before reload.
657         (negsi_cond): Reformat.  Use emit_move_insn instead of gen_movesi.
658         (negdi_cond): Reformat.  Use emit_move_insn instead of a pair
659         of gen_movsi.  Split insn before reload.
661 2012-10-30  Oleg Endo  <olegendo@gcc.gnu.org>
663         PR target/53988
664         * config/sh/sh.md (tstqi_t_zero): Rename to *tstqi_t_zero.
665         (*tst<mode>_t_zero): New insns.
666         * config/sh/iterators.md (lowpart_be, lowpart_le): New mode attributes.
668 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
670         * gimple-pretty-print.c (dump_gimple_bb_header): Avoid alloca.
672 2012-10-30  Jakub Jelinek  <jakub@redhat.com>
674         PR debug/54953
675         * valtrack.h (DEBUG_TEMP_AFTER_WITH_REG_FORCE): New.
676         * valtrack.c (dead_debug_insert_temp): Use emit_debug_insn_after
677         even for where == DEBUG_TEMP_AFTER_WITH_REG_FORCE.
678         * dce.c (word_dce_process_block, dce_process_block): Pass
679         DEBUG_TEMP_AFTER_WITH_REG_FORCE if insn is needed and therefore
680         not going to be eliminated.
682 2012-10-29  Lawrence Crowl  <crowl@google.com>
684         * sbitmap.h (sbitmap_copy): Rename bitmap_copy.
685         (sbitmap_copy_n): Rename bitmap_copy_n.
686         (sbitmap_equal): Rename bitmap_equal_p.
687         (sbitmap_empty_p): Rename bitmap_empty_p.
688         (sbitmap_range_empty_p): Rename bitmap_range_empty_p.
689         (sbitmap_zero): Rename bitmap_clear.
690         (sbitmap_ones): Rename bitmap_ones.
691         (sbitmap_vector_zero): Rename bitmap_vector_clear.
692         (sbitmap_vector_ones): Rename bitmap_vector_ones.
693         (sbitmap_not): Rename bitmap_not.
694         (sbitmap_a_and_b_cg): Commented out.
695         (sbitmap_a_and_b): Rename bitmap_and.  Add bool return.
696         (sbitmap_difference): Rename bitmap_and_compl.
697         (sbitmap_a_or_b_cg): Commented out.
698         (sbitmap_a_or_b): Rename bitmap_xor.  Add bool return.
699         (sbitmap_a_xor_b_cg): Commented out.
700         (sbitmap_a_xor_b): Rename bitmap_xor.  Add bool return.
701         (sbitmap_a_and_b_or_c_cg): Rename bitmap_and_or.
702         (sbitmap_a_and_b_or_c): Commented out.
703         (sbitmap_a_or_b_and_c_cg): Rename bitmap_or_and.
704         (sbitmap_a_or_b_and_c): Commented out.
705         (sbitmap_union_of_diff_cg): Rename bitmap_ior_and_compl.
706         (sbitmap_union_of_diff): Commented out.
707         (dump_sbitmap): Rename dump_bitmap.
708         (dump_sbitmap_file): Rename dump_bitmap_file.
709         (debug_sbitmap): Rename debug_bitmap.
710         (dump_sbitmap_vector): Rename dump_bitmap_vector.
711         (sbitmap_first_set_bit): Rename bitmap_first_set_bit.
712         (sbitmap_last_set_bit): Rename bitmap_last_set_bit.
713         (sbitmap_a_subset_b_p): Rename bitmap_subset_p.
714         (sbitmap_any_common_bits): Rename bitmap_intersect_p.
715         (#define sbitmap_free): Reimplement as inline function.
716         (#define sbitmap_vector_free): Reimplement as inline function.
717         * bitmap.h (#define bitmap_zero): Remove as redundant.
718         (#define bitmap_empty_p): Reimplement as inline function.
719         (#define dump_bitmap): Reimplement as inline function.
721 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
723         PR c++/54930
724         * doc/invoke.texi (Warning Options): Document -Wno-return-local-addr.
726 2012-10-29  H.J. Lu  <hongjiu.lu@intel.com>
728         * lra-assigns.c: Remove trailing white spaces.
729         * lra-coalesce.c: Likewise.
730         * lra-constraints.c: Likewise.
731         * lra-eliminations.c: Likewise.
732         * lra-int.h: Likewise.
733         * lra-spills.c: Likewise.
734         * lra.c: Likewise.
736 2012-10-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
738         PR c/53066
739         * tree.h (FUNCTION_POINTER_TYPE_P): New.
741 2012-10-29  Alexandre Oliva <aoliva@redhat.com>
743         PR debug/54693
744         * valtrack.c (dead_debug_insert_temp): Defer rescan of
745         newly-emitted debug insn.
747 2012-10-29  Alexandre Oliva <aoliva@redhat.com>
749         PR debug/54693
750         * tree-ssa-threadedge.c (thread_around_empty_block): Copy
751         debug temps from predecessor before threading.
753 2012-10-29  Alexandre Oliva <aoliva@redhat.com>
755         PR debug/54551
756         PR debug/54693
757         * valtrack.c (dead_debug_global_find): Accept NULL dtemp.
758         (dead_debug_global_insert): Return new entry.
759         (dead_debug_global_replace_temp): Return early if REG is no
760         longer in place, or if dtemp was already substituted.
761         (dead_debug_promote_uses): Insert for all defs and replace all
762         debug uses at once.
763         (dead_debug_local_finish): Release used after promotion.
764         (dead_debug_insert_temp): Stop if dtemp is NULL.
766 2012-10-29  Alexandre Oliva <aoliva@redhat.com>
768         PR debug/54693
769         * loop-unroll.c (loop_exit_at_end_p): Skip debug insns.
771 2012-10-29  Alexandre Oliva <aoliva@redhat.com>
773         PR debug/54693
774         * config/i386/i386.c (add_parameter_dependencies): Stop
775         backward scan at the insn before the incoming head.
776         (ix86_dependencies_evaluation_hook): Skip debug insns.  Stop
777         if first_arg is head.
779 2012-10-29  Andrew Pinski  <apinski@cavium.com>
781         * config/aarch64/aarch64-protos.h (aarch64_load_tp): New proto.
782         * config/aarch64/aarch64.c (aarch64_load_tp): Export.
783         (aarch64_init_builtins): Don't add __builtin_thread_pointer builtin.
784         * config/aarch64/aarch64.h (aarch64_builtins): Delete
785         AARCH64_BUILTIN_THREAD_POINTER.
786         * config/aarch64/aarch64.md (get_thread_pointerdi): New pattern.
788 2012-10-29  Marc Glisse  <marc.glisse@inria.fr>
790         PR middle-end/55027
791         * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
792         Handle VECTOR_CST.
794 2012-10-29  Vladimir Makarov  <vmakarov@redhat.com>
796         * rtlanal.c (strip_address_mutation): Use SUBREG_REG instead of XEXP.
798 2012-10-29  Uros Bizjak  <ubizjak@gmail.com>
800         * config/i386/i386.c (ix86_decompose_address): Use simplify_gen_subreg
801         for all addresses, zero-extended with AND.
803 2012-10-29  Vladimir Makarov  <vmakarov@redhat.com>
805         PR middle-end/55116
806         * rtlanal.c (strip_address_mutation): Add SUBREG case.
808 2012-10-29  Jan Hubicka  <jh@suse.cz>
810         * ipa-inline.c (want_inline_function_called_once_p): Rename to ...
811         (want_inline_function_to_all_callers_p): check also functions with
812         multiple callers.
813         (ipa_inline): Handle inlining for size into multiple callers.
815 2012-10-29  Richard Guenther  <rguenther@suse.de>
817         PR middle-end/53695
818         * tracer.c (tracer): Fixup loop structure.
819         * cfgloopmanip.c (force_single_succ_latches): Add assert.
820         (fix_loop_structure): Re-compute loop latches and disambiguate
821         loops with multiple latches if required.
823 2012-10-29  Uros Bizjak  <ubizjak@gmail.com>
825         * config/i386/i386.c (ix86_decompose_address): Use simplify_gen_subreg
826         to check SImode equivalent of address, zero-extended with AND RTX.
827         * config/i386/i386.md (ashift to lea splitter): Split to SImode mult.
828         (simple lea to add/shift peephole2s): Remove peephole2s that operate
829         on subregs of DImode operations.
831 2012-10-28  Vladimir Makarov  <vmakarov@redhat.com>
833         PR rtl-optimization/55106
834         * lra-constraints.c (skip_usage_debug_insns): New function.
835         (check_secondary_memory_needed_p): Ditto.
836         (inherit_reload_reg): Use the new functions.  Improve debug output.
838 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
840         * doc/cpp.texi (Search Path): Fix outdated C++ path.
842 2012-10-28  Jan Hubicka  <jh@suse.cz>
844         * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
845         &this->field expressions.
847 2012-10-28  Vladimir Makarov  <vmakarov@redhat.com>
849         * rtl.h (struct rtx_def): Add a comment for member unchanging.
850         * lra-int.h (LRA_TEMP_CLOBBER_P): New macro.
851         (lra_hard_reg_substitution): Rename to lra_final_code_change.
852         * lra-constraints.c (match_reload): Mark temporary clobbers.
853         * lra-spill.c (lra_hard_reg_substitution): Rename to
854         lra_final_code_change.  Remove temporary clobbers.
855         * lra.c (lra): Rename to lra_final_code_change.
857 2012-10-28  Jan Hubicka  <jh@suse.cz>
859         * ipa-inline.c (edge_badness): Fix overflow.
860         (inline_small_functions): Initialize SCCs correctly.
861         (do_estimate_edge_time, do_estimate_edge_hints): Skip self
862         recursive functions in SCC hints.
864 2012-10-28  Steven Bosscher  <steven@gcc.gnu.org>
866         PR rtl-optimization/38711
867         * ira.c (ira): Remove DF_LIVE if the problem is in the stack.
868         (do_reload): Add it back at the end for -O2 and higher.
870         * function.c (thread_prologue_and_epilogue_insns): Use
871         REG_SET_TO_HARD_REG_SET instead of CLEAR_HARD_REG_SET and
872         reg_set_to_hard_reg_set.
874 2012-10-28  Jan Hubicka  <jh@suse.cz>
876         * ipa-inline.c (edge_badness): Reduce precision; use scc hints.
877         (inline_small_functions): Fix dumps; update all callees after inlining.
878         * ipa-inline.h (INLINE_HINT_in_scc, INLINE_HINT_same_scc): New
879         constants.
880         (inline summary): Add SCC_NO.
881         * ipa-inline-analysis.c (dump_inline_hints): Dump SCC hints.
882         (reset_inline_summary): Reset scc_no.
883         (estimate_node_size_and_time): Set in_scc hint.
884         (do_estimate_edge_time): Add same_scc hint.
885         (do_estimate_edge_hints): Likewise.
887 2012-10-28  Andreas Schwab  <schwab@linux-m68k.org>
889         * doc/cppopts.texi: Fix use of @item vs. @itemx inside @table.
890         * doc/extend.texi: Likewise.
891         * doc/generic.texi: Likewise.
892         * doc/invoke.texi: Likewise.
893         * doc/md.texi: Likewise.
894         * doc/sourcebuild.texi: Likewise.
896         * doc/tm.texi.in (Misc): Add newline before @end.
897         * doc/tm.texi: Update.
899 2012-10-27  Joern Rennecke  <joern.rennecke@embecosm.com>
901         * lra-assigns.c (find_hard_regno_for): Fix use of WORDS_BIG_ENDIAN.
903 2012-10-27  Georg-Johann Lay  <avr@gjlay.de>
905         PR target/55034
906         * config/avr/avr.c (avr_out_lpm): Remove unused regno_dest.
908 2012-10-27  Oleg Endo  <olegendo@gcc.gnu.org>
910         PR target/55042
911         * config/sh/sh.c (sh1_builtin_p): Comment out unused function.
913 2012-10-27  Uros Bizjak  <ubizjak@gmail.com>
915         * config/i386/i386.md (*lea<mode>): Remove unneeded temporary.
917 2012-10-26  David S. Miller  <davem@davemloft.net>
919         * config/sparc/constraints.md: Update unused letter list, move
920         "w" near other memory constraints.  Remove no longer relevant
921         comment.
922         * doc/md.texi: Sync sparc constraint documentation with reality.
924 2012-10-26  DJ Delorie  <dj@redhat.com>
926         * config/rl78/rl78.c (rl78_as_legitimate_address): Do not allow
927         reg+addend addresses for the _far namespace.
929 2012-10-26  Segher Boessenkool  <segher@kernel.crashing.org>
931         * config/rs6000/sync.md (ATOMIC): Correct DI condition.
933 2012-10-26  Jakub Jelinek  <jakub@redhat.com>
935         PR debug/54970
936         * cfgexpand.c (expand_debug_expr): Expand &MEM_REF[&var, n]
937         as DEBUG_IMPLICIT_PTR + n if &var expands to DEBUG_IMPLICIT_PTR.
938         * tree-sra.c (create_access_replacement): Allow also MEM_REFs
939         with ADDR_EXPR first operand in DECL_DEBUG_EXPR expressions.
940         * var-tracking.c (track_expr_p): Handle MEM_REFs in DECL_DEBUG_EXPR
941         expressions.
942         * dwarf2out.c (add_var_loc_to_decl): Likewise.
944 2012-10-26  Jeff Law  <law@redhat.com>
946         * tree-ssa-threadedge.c (cond_arg_set_in_bb): Use last stmt.
948 2012-10-26  Gunther Nikl  <gnikl@users.sourceforge.net>
950         * common/config/m68k/m68k-common.c (m68k_handle_option): Set
951         gcc_options fields of opts_set for -m68020-40 and -m68020-60.
953 2012-10-26  Teresa Johnson  <tejohnson@google.com>
955         * ree.c (add_removable_extension): Remove unnecessary
956         mode check with other extension.
957         * testsuite/gcc.c-torture/execute/20111227-2.c: New test.
958         * testsuite/gcc.c-torture/execute/20111227-3.c: Ditto.
960 2012-10-26  Jan Hubicka  <jh@suse.cz>
962         * ipa-inline-transform.c (inline_call): Only account size changes
963         for !DECL_EXTERNAL.
965 2012-10-26  Martin Jambor  <mjambor@suse.cz>
967         PR debug/54971
968         * tree-sra.c (struct access): New flag grp_to_be_debug_replaced.
969         (dump_access): Dump the new flag.
970         (analyze_access_subtree): Set the new flag when appropriate.
971         (create_access_replacement): Handle debug replacements differently.
972         (generate_subtree_copies): Handle the grp_to_be_debug_replaced flag.
973         (init_subtree_with_zero): Likewise.
974         (sra_modify_expr): Likewise.
975         (load_assign_lhs_subreplacements): Likewise.
976         (sra_modify_assign): Likewise.
978 2012-10-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
980         * config/i386/i386.c (insn_is_function_arg) : Add check on CALL
981         instruction.
982         (ix86_dependencies_evaluation_hook): Insert dependencies in all
983         predecessors of call block for non-trivial region avoiding creation
984         of loop-carried dependency to avoid cross-block motion of HW registers.
986 2012-10-26  Richard Biener  <rguenther@suse.de>
988         PR middle-end/54824
989         * tree-optimize.c (execute_fixup_cfg): Insert __builtin_unreachable
990         at the end of blocks with no successors.
992 2012-10-26  Alexander Ivchenko  <alexander.ivchenko@intel.com>
993             Uros Bizjak  <ubizjak@gmail.com>
995         * common/config/i386/i386-common.c
996         (OPTION_MASK_ISA_FXSR_SET): New.
997         (OPTION_MASK_ISA_XSAVE_SET): Likewise.
998         (OPTION_MASK_ISA_XSAVEOPT_SET): Likewise.
999         (ix86_handle_option): Handle mfxsr, mxsave, mxsaveopt options.
1000         * config.gcc (i[34567]86-*-*): Add fxsrintrin.h,
1001         xsaveintrin.h, xsaveoptintrin.h.
1002         (x86_64-*-*): Likewise.
1003         * config/i386/fxsrintrin.h: New header.
1004         * config/i386/xsaveintrin.h: Likewise.
1005         * config/i386/xsaveoptintrin.h: Likewise.
1006         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1007         FXSR/XSAVE/XSAVEOPT support.
1008         * config/i386/i386-builtin-types.def
1009         (VOID_FTYPE_PVOID_INT64): New function type.
1010         * config/i386/i386-c.c: Define __FXSR__, __XSAVE__
1011         and __XSAVEOPT__ if needed.
1012         * config/i386/i386.c (ix86_target_string): Define -mfxsr,
1013          -mxsave and -mxsaveopt options.
1014         (PTA_FXSR): New.
1015         (PTA_XSAVE): Likewise.
1016         (PTA_XSAVEOPT): Likewise.
1017         (ix86_option_override_internal): Handle new option.
1018         (processor_alias_table): Added PTA_FXSR, PTA_XSAVE, PTA_XSAVEOPT.
1019         (ix86_valid_target_attribute_inner_p): Add OPT_mfxsr,
1020         OPT_mxsave, OPT_mxsaveopt.
1021         (ix86_builtins): Add IX86_BUILTIN_FXSAVE, IX86_BUILTIN_FXRSTOR,
1022         IX86_BUILTIN_FXSAVE64, IX86_BUILTIN_XSAVE, IX86_BUILTIN_XSAVE64,
1023         IX86_BUILTIN_XRSTOR, IX86_BUILTIN_XRSTOR64, IX86_BUILTIN_XSAVEOPT,
1024         IX86_BUILTIN_XSAVEOPT64.
1025         (ix86_expand_builtin): Handle these built-ins.
1026         * config/i386/i386.h (TARGET_FXSR): New.
1027         (TARGET_XSAVE): Likewise.
1028         (TARGET_XSAVEOPT): Likewise.
1029         * config/i386/i386.md (ANY_XSAVE): New int iterator.
1030         (ANY_XSAVE64): Likewise.
1031         (xsave): New int attribute.
1032         (fxsave): New instruction.
1033         (fxsave64): Likewise.
1034         (fxrstor): Likewise.
1035         (fxrstor64): Likewise.
1036         (<xsave>): Likewise.
1037         (<xsave>_rex64): Likewise.
1038         (xrstor): Likewise.
1039         (xrstor_rex64): Likewise.
1040         (xrstor64): Likewise.
1041         * config/i386/i386.opt (mfxsr): New.
1042         (mxsave): Likewise.
1043         (mxsaveopt): Likewise.
1044         * config/i386/x86intrin.h: Include
1045         xsaveintrin.h, fxsrintrin.h, xsaveoptintrin.h.
1047 2012-10-26  Ralf Corsépius  <ralf.corsepius@rtems.org>
1049         * config/avr/t-rtems: Revert previous commit.
1051 2012-10-26  Richard Sandiford  <rdsandiford@googlemail.com>
1053         PR bootstrap/55049
1054         * Makefile.in (rtlanal.o): Add dependency on addresses.h.
1055         * rtl.h (address_info): New structure.
1056         (strip_address_mutations, decompose_address, decompose_lea_address)
1057         (decompose_mem_address, update_address, get_index_scale)
1058         (get_index_code): Declare.
1059         * rtlanal.c: Include addresses.h.
1060         (strip_address_mutations, must_be_base_p, must_be_index_p)
1061         (set_address_segment, set_address_base, set_address_index)
1062         (set_address_disp, decompose_incdec_address, decompose_automod_address)
1063         (extract_plus_operands, baseness, decompose_normal_address)
1064         (decompose_address, decompose_lea_address, decompose_mem_address)
1065         (update_address, get_index_scale, get_index_code): New functions.
1066         * lra-constraints.c (strip_subreg): New function.
1067         (address, extract_loc_address_regs, extract_address_regs)
1068         (get_index_scale): Delete.
1069         (process_addr_reg): Apply strip_subreg to the location.
1070         (uses_hard_regs_p): Use decompose_mem_address.
1071         (valid_address_p, base_plus_disp_to_reg, can_add_disp_p)
1072         (equiv_address_substitution): Take an address_info rather
1073         than an address.  Remove other arguments.  Avoid using Pmode.
1074         (process_address): Use decompose_mem_address and decompose_lea_address.
1075         Update calls to above functions.
1077 2012-10-26  Richard Sandiford  <rdsandiford@googlemail.com>
1079         * lra-constraints.c (process_address): Tighten arguments to
1080         base_reg_class.  Use simplify_gen_binary to generate PLUS rtxes.
1082 2012-10-26  Richard Sandiford  <rdsandiford@googlemail.com>
1084         * lra-constraints.c (get_index_scale, can_add_disp_p): New functions.
1085         (equiv_address_substitution): Use them.
1087 2012-10-26  Richard Sandiford  <rdsandiford@googlemail.com>
1089         * lra-constraints.c (valid_address_p): New function, split out from...
1090         (process_address): ...here.
1092 2012-10-26  Richard Sandiford  <rdsandiford@googlemail.com>
1094         * lra-constraints.c (process_address): Describe the kinds of address
1095         that we might see.
1097 2012-10-25  Vladimir Makarov  <vmakarov@redhat.com>
1099         * lra-int.h (lra_assert): Redefine it gcc_checking_assert.
1100         * lra-constraints.c (check_and_process_move): Remove #if
1101         ENABLE_ASSERT_CHECKING.
1103 2012-10-26  Ralf Corsépius  <ralf.corsepius@rtems.org>
1105         * config/avr/rtems.h (TARGET_OS_CPP_BUILTINS): Remove
1106         __USE_INIT_FINI__.
1107         * config/avr/t-rtems (LIB1ASMFUNCS): Filter out _exit.
1109 2012-10-25  David S. Miller  <davem@davemloft.net>
1111         * config/sparc/constraints.md ("U"): Delete.
1112         * config/sparc/sparc.md: Use 'r' constraint instead of 'U'.
1113         * config/sparc/sync.md: Likewise.
1115 2012-10-25  Lawrence Crowl  <crowl@google.com>
1117         * hash-table.h: Add usage documentation.
1118         (template struct typed_free_remove): Clarify documentation.
1119         Rename template parameter.
1120         (struct typed_noop_remove): Likewise.
1121         (descriptor concept): Change typedef T to value_type.
1122         Add typedef compare_type.  Use more precise template parameter name,
1123         Descriptor instead of Descr.  Update users to match.
1124         (struct hash_table): Change 'find' parameters to use compare_type
1125         instead of the value type.
1127 2012-10-25  Jan Hubicka  <jh@suse.cz>
1129         * ipa-cp.c (ipcp_discover_new_direct_edges): If something was turned
1130         to direct call update the summary.
1131         * ipa-inline-transform.c (inline_call): Sanity check that summaries
1132         match the predicted effect; fix updating of summary after edge
1133         redirection.
1134         * ipa-inline-analysis.c (inline_node_duplication_hook): Do not try
1135         to update the summary and recompute it instead.
1136         (estimate_function_body_sizes): Fix self size estimation; double
1137         check that it agrees with inline_update_overall_summary.
1138         (estimate_edge_size_and_time): Handle devirtualizaiton costs.
1139         (estimate_edge_devirt_benefit): Update to be called from
1140         estimate_edge_size_and_time.
1141         (estimate_calls_size_and_time): Update.
1142         (estimate_node_size_and_time): Watch overflows.
1143         (inline_merge_summary): Likewise.
1144         * ipa-prob.c: Include ipa-inline.h
1145         (ipa_make_edge_direct_to_target): After redirection update the summary.
1147 2012-10-25  Cary Coutant  <ccoutant@google.com>
1149         PR debug/55063
1150         * dwarf2out.c (prune_unused_types_prune): Check whether DIE is
1151         already a declaration.
1153 2012-10-25  Vladimir Makarov  <vmakarov@redhat.com>
1155         * lra-assigns.c (assign_by_spills): Add non-reload pseudos
1156         assigned to hard register to changed_pseudo_bitmap.
1158 2012-10-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
1160         * config.gcc (microblaze*-*-rtems*): New target.
1161         * config/microblaze/rtems.h: New.
1162         * config/microblaze/t-rtems: New.
1164 2012-10-25  Jan Hubicka  <jh@suse.cz>
1166         PR tree-optimize/54980
1167         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Fix obvious typo.
1168         (loop_edge_to_cancel): Be sure that the edge is from an conditional
1169         so we can cancel it.
1171 2012-10-25  Marc Glisse  <marc.glisse@inria.fr>
1173         PR c++/54427
1174         * tree.c (signed_or_unsigned_type_for): Handle vectors.
1176 2012-10-25  Jan Hubicka  <jh@suse.cz>
1178         * ipa-inline.c (recursive_inlining): Redirect to master
1179         clone before testing profitability.
1181 2012-10-25  Richard Biener  <rguenther@suse.de>
1183         PR tree-optimization/54902
1184         * tree-ssa-pre.c (fini_eliminate): Return TODO.
1185         (do_pre): Adjust.
1186         (execute_fre): Likewise.
1187         * tree-ssa-tailmerge.c (tail_merge_optimize): Delete unreachable
1188         blocks before computing dominators.
1190 2012-10-25  Richard Sandiford  <rdsandiford@googlemail.com>
1192         * expr.c (emit_block_move_via_loop): Use simplify_gen_binary
1193         rather than gen_rtx_PLUS.
1195 2012-10-24  Vladimir Makarov  <vmakarov@redhat.com>
1197         PR bootstrap/55068
1198         PR regression/55050
1199         * ira.c (setup_reg_renumber): Fix assert.
1200         * ira-emit.c (emit_move_list): Update equivalences only for LRA.
1202 2012-10-24  Vladimir Makarov  <vmakarov@redhat.com>
1204         PR bootstrap/55067
1205         * lra.c: Rename loc to sloc and loc_t to sloc_t.
1207 2012-10-24  Sharad Singhai  <singhai@google.com>
1209         * config/rs6000/rs6000.c (rs6000_density_test): Use dump_enabled_p
1210           instead of dump_kind_p.
1212 2012-10-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1214         PR c++/54928
1215         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc):
1216         Use diagnostic_append_note.
1217         * diagnostic.c (diagnostic_build_prefix): Make diagnostic const.
1218         (default_diagnostic_finalizer): Do not destroy prefix here.
1219         (diagnostic_report_diagnostic): Destroy it here.
1220         (diagnostic_append_note): New.
1221         * diagnostic.h (diagnostic_append_note): Declare.
1223 2012-10-24  Vladimir Makarov  <vmakarov@redhat.com>
1225         PR rtl-optimization/55055
1226         * lra-spills.c (alter_subregs): New function.
1227         (lra_hard_reg_substitution): Use it.
1229 2012-10-24  Sharad Singhai  <singhai@google.com>
1231         * dumpfile.c (dump_enabled_p): Make it inline and move the definition
1232         to dumpfile.h.
1233         (dump_kind_p): Deleted. Functionality replaced by dump_enabled_p.
1234         Make alt_dump_file extern.
1235         * dumpfile.h (dump_enabled_p): Move inline definition here.
1236         (dump_kind_p): Delete declaration.
1237         Add extern declaration of alt_dump_file.
1238         * toplev.c: Move dump_file and dump_file_name to dumpfile.c.
1239         * tree-vect-loop-manip.c: Replace all uses of dump_kind_p with
1240         dump_enabled_p.
1241         * tree-vectorizer.c: Likewise.
1242         * tree-vect-loop.c: Likewise.
1243         * tree-vect-data-refs.c: Likewise.
1244         * tree-vect-patterns.c: Likewise.
1245         * tree-vect-stmts.c: Likewise.
1246         * tree-vect-slp.c: Likewise.
1248 2012-10-24  Richard Sandiford  <rdsandiford@googlemail.com>
1250         * expmed.c (lowpart_bit_field_p): Add missing == 0 check.
1252 2012-10-24  Vladimir Makarov  <vmakarov@redhat.com>
1254         PR bootstrap/55049
1255         * lra-constraints.c (extract_loc_address_regs): Pass top_p for
1256         ZERO_EXTEND operand.
1258 2012-10-24  Vladimir Makarov  <vmakarov@redhat.com>
1260         PR bootstrap/55048
1261         * lra-constraints.c (update_ebb_live_info): Skip
1262         non-NOTE_INSN_BASIC_BLOCK notes.
1264 2012-10-24  Jakub Jelinek  <jakub@redhat.com>
1266         PR rtl-optimization/55010
1267         * cse.c (fold_rtx) <RTX_COMPARE>: Call copy_rtx on folded_arg{0,1}
1268         before passing it to simplify_relational_operation.
1270         PR debug/54828
1271         * gimple.h (is_gimple_sizepos): New inline function.
1272         * gimplify.c (gimplify_one_sizepos): Use it.  Remove useless
1273         final assignment to expr variable.
1274         * tree.c (RETURN_TRUE_IF_VAR): Return true also if
1275         !TYPE_SIZES_GIMPLIFIED (type) and _t is going to be gimplified
1276         into a local temporary.
1278 2012-10-23  David S. Miller  <davem@davemloft.net>
1280         * config/sparc/constraints.md ("T", "W"): Change
1281         definitions to use define_memory_constraint.  Do not match 'reg'.
1282         * config/sparc/sparc.c (memory_ok_for_ldd): Remove all non-MEM
1283         handling code, update comment.
1285 2012-10-23  Ian Lance Taylor  <iant@google.com>
1287         * doc/extend.texi (Extended Asm): The '+' constraint does not
1288         require a register.
1290 2012-10-23  Jeff Law  <law@redhat.com>
1292         * tree-ssa-threadedge.c (thread_across_edge): Remove unused
1293         parameter in call to cond_arg_set_in_bb.
1295         * tree-ssa-threadedge.c (cond_arg_set_in_bb): Remove unused
1296         debugging argument.
1298         PR tree-optimization/54985
1299         * tree-ssa-threadedge.c (cond_arg_set_in_bb): New function extracted
1300         from thread_across_edge.
1301         (thread_across_edge): Use it in all cases where we might thread
1302         across a back edge.
1304 2012-10-23  Vladimir Makarov  <vmakarov@redhat.com>
1306         * lra-constraints.c (update_ebb_live_info): Process empty blocks.
1308 2012-10-23  Richard Sandiford  <rdsandiford@googlemail.com>
1310         * expmed.c (store_split_bit_field): Update the calls to
1311         extract_fixed_bit_field.  In the big-endian case, always
1312         use the mode of OP0 to count the number of significant bits.
1313         (extract_bit_field_1): Remove unit, offset, bitpos and
1314         byte_offset from the outermost scope.  Express conditions in terms
1315         of bitnum rather than offset, bitpos and byte_offset.  Move the
1316         computation of MODE1 to the block that needs it.  Use MODE unless
1317         the TMODE-based mode_for_size calculation succeeds.  Split the
1318         plain move cases into two, one for memory accesses and one for
1319         register accesses.  Generalize the memory case, freeing it from
1320         the old register-based endian checks.  Move the INT_MODE calculation
1321         above the code that needs it.  Use simplify_gen_subreg to handle
1322         multiword OP0s.  If the field still spans several words, pass it
1323         directly to extract_split_bit_field.  Assume after that point
1324         that both targets and register sources fit within a word.
1325         Replace x-prefixed variables with non-prefixed forms.
1326         Compute the bitpos for ext(z)v register operands directly in the
1327         chosen unit size, rather than going through an intermediate
1328         BITS_PER_WORD unit size.  Simplify the containment check
1329         used when forcing OP0 into a register.  Update the call to
1330         extract_fixed_bit_field.
1331         (extract_fixed_bit_field): Replace the bitpos and offset parameters
1332         with a single bitnum parameter, of the same form as extract_bit_field.
1333         Assume that OP0 contains the full field.  Simplify the memory offset
1334         calculation and containment check for volatile bitfields.  Make the
1335         offset explicit when volatile bitfields force a misaligned access.
1336         Remove WARNED and fix long lines.  Assert that the processed OP0
1337         has an integral mode.
1338         (store_split_bit_field): Update the call to store_fixed_bit_field.
1340 2012-10-23  Richard Sandiford  <rdsandiford@googlemail.com>
1342         * expmed.c (lowpart_bit_field_p): New function.
1343         (store_bit_field_1): Remove unit, offset, bitpos and byte_offset
1344         from the outermost scope.  Express conditions in terms of bitnum
1345         rather than offset, bitpos and byte_offset.  Split the plain move
1346         cases into two, one for memory accesses and one for register accesses.
1347         Allow simplify_gen_subreg to fail rather than calling validate_subreg.
1348         Move the handling of multiword OP0s after the code that coerces VALUE
1349         to an integer mode.  Use simplify_gen_subreg for this case and assert
1350         that it succeeds.  If the field still spans several words, pass it
1351         directly to store_split_bit_field.  Assume after that point that
1352         both sources and register targets fit within a word.  Replace
1353         x-prefixed variables with non-prefixed forms.  Compute the bitpos
1354         for insv register operands directly in the chosen unit size, rather
1355         than going through an intermediate BITS_PER_WORD unit size.
1356         Update the call to store_fixed_bit_field.
1357         (store_fixed_bit_field): Replace the bitpos and offset parameters
1358         with a single bitnum parameter, of the same form as store_bit_field.
1359         Assume that OP0 contains the full field.  Simplify the memory offset
1360         calculation.  Assert that the processed OP0 has an integral mode.
1361         (store_split_bit_field): Update the call to store_fixed_bit_field.
1363 2012-10-23  Paul Koning  <ni1d@arrl.net>
1365         PR debug/54508
1366         * dwarf2out.c (prune_unused_types_prune): If pruning a class and
1367         not all its children were marked, add DW_AT_declaration flag.
1369 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
1370             James Greenhalgh  <james.greenhalgh@arm.com>
1371             Jim MacArthur  <jim.macarthur@arm.com>
1372             Marcus Shawcroft  <marcus.shawcroft@arm.com>
1373             Nigel Stephens  <nigel.stephens@arm.com>
1374             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1375             Richard Earnshaw  <rearnsha@arm.com>
1376             Sofiane Naci  <sofiane.naci@arm.com>
1377             Stephen Thomas  <stephen.thomas@arm.com>
1378             Tejas Belagod  <tejas.belagod@arm.com>
1379             Yufeng Zhang  <yufeng.zhang@arm.com>
1381         * config.gcc: Add AArch64.
1382         * configure.ac: Add AArch64 TLS support detection.
1383         * configure: Regenerate.
1385 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
1386             James Greenhalgh  <james.greenhalgh@arm.com>
1387             Jim MacArthur  <jim.macarthur@arm.com>
1388             Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1389             Marcus Shawcroft  <marcus.shawcroft@arm.com>
1390             Nigel Stephens  <nigel.stephens@arm.com>
1391             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1392             Richard Earnshaw  <rearnsha@arm.com>
1393             Sofiane Naci  <sofiane.naci@arm.com>
1394             Stephen Thomas  <stephen.thomas@arm.com>
1395             Tejas Belagod  <tejas.belagod@arm.com>
1396             Yufeng Zhang  <yufeng.zhang@arm.com>
1398         * doc/invoke.texi (AArch64 Options): New.
1399         * doc/md.texi (Machine Constraints): Add AArch64.
1401 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
1402             James Greenhalgh  <james.greenhalgh@arm.com>
1403             Jim MacArthur  <jim.macarthur@arm.com>
1404             Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1405             Marcus Shawcroft  <marcus.shawcroft@arm.com>
1406             Nigel Stephens  <nigel.stephens@arm.com>
1407             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1408             Richard Earnshaw  <rearnsha@arm.com>
1409             Sofiane Naci  <sofiane.naci@arm.com>
1410             Stephen Thomas  <stephen.thomas@arm.com>
1411             Tejas Belagod  <tejas.belagod@arm.com>
1412             Yufeng Zhang  <yufeng.zhang@arm.com>
1414         * common/config/aarch64/aarch64-common.c: New file.
1415         * config/aarch64/aarch64-arches.def: New file.
1416         * config/aarch64/aarch64-builtins.c: New file.
1417         * config/aarch64/aarch64-cores.def: New file.
1418         * config/aarch64/aarch64-elf-raw.h: New file.
1419         * config/aarch64/aarch64-elf.h: New file.
1420         * config/aarch64/aarch64-generic.md: New file.
1421         * config/aarch64/aarch64-linux.h: New file.
1422         * config/aarch64/aarch64-modes.def: New file.
1423         * config/aarch64/aarch64-option-extensions.def: New file.
1424         * config/aarch64/aarch64-opts.h: New file.
1425         * config/aarch64/aarch64-protos.h: New file.
1426         * config/aarch64/aarch64-simd.md: New file.
1427         * config/aarch64/aarch64-tune.md: New file.
1428         * config/aarch64/aarch64.c: New file.
1429         * config/aarch64/aarch64.h: New file.
1430         * config/aarch64/aarch64.md: New file.
1431         * config/aarch64/aarch64.opt: New file.
1432         * config/aarch64/arm_neon.h: New file.
1433         * config/aarch64/constraints.md: New file.
1434         * config/aarch64/gentune.sh: New file.
1435         * config/aarch64/iterators.md: New file.
1436         * config/aarch64/large.md: New file.
1437         * config/aarch64/predicates.md: New file.
1438         * config/aarch64/small.md: New file.
1439         * config/aarch64/sync.md: New file.
1440         * config/aarch64/t-aarch64-linux: New file.
1441         * config/aarch64/t-aarch64: New file.
1443 2012-10-23  Michael Matz  <matz@suse.de>
1445         * tree-ssa-operands.h (struct def_optype_d, def_optype_p): Remove.
1446         (ssa_operands.free_defs): Remove.
1447         (DEF_OP_PTR, DEF_OP): Remove.
1448         (struct ssa_operand_iterator_d): Remove 'defs', add 'flags' members,
1449         rename 'phi_stmt' to 'stmt', 'phi_i' to 'i' and 'num_phi' to 'numops'.
1450         * gimple.h (gimple_statement_with_ops.def_ops): Remove.
1451         (gimple_def_ops, gimple_set_def_ops): Remove.
1452         (gimple_vdef_op): Don't take const gimple, adjust.
1453         (gimple_asm_input_op, gimple_asm_input_op_ptr,
1454         gimple_asm_set_input_op, gimple_asm_output_op,
1455         gimple_asm_output_op_ptr, gimple_asm_set_output_op): Adjust asserts,
1456         and rewrite to move def operands to front.
1457         (gimple_asm_clobber_op, gimple_asm_set_clobber_op,
1458         gimple_asm_label_op, gimple_asm_set_label_op): Correct asserts.
1459         * tree-ssa-operands.c (build_defs): Remove.
1460         (init_ssa_operands): Don't initialize it.
1461         (fini_ssa_operands): Don't free it.
1462         (cleanup_build_arrays): Don't truncate it.
1463         (finalize_ssa_stmt_operands): Don't assert on it.
1464         (alloc_def, add_def_op, append_def): Remove.
1465         (finalize_ssa_defs): Remove building of def_ops list.
1466         (finalize_ssa_uses): Don't mark for SSA renaming here, ...
1467         (add_stmt_operand): ... but here, don't call append_def.
1468         (get_indirect_ref_operands): Remove recurse_on_base argument.
1469         (get_expr_operands): Adjust call to get_indirect_ref_operands.
1470         (verify_ssa_operands): Don't check def operands.
1471         (free_stmt_operands): Don't free def operands.
1472         * gimple.c (gimple_copy): Don't clear def operands.
1473         * tree-flow-inline.h (op_iter_next_use): Adjust to explicitely
1474         handle def operand.
1475         (op_iter_next_tree, op_iter_next_def): Ditto.
1476         (clear_and_done_ssa_iter): Clear new fields.
1477         (op_iter_init): Adjust to setup new iterator structure.
1478         (op_iter_init_phiuse): Adjust.
1480 2012-10-23  Greta Yorsh  <Greta.Yorsh@arm.com>
1482         * config/arm/arm.c (offset_ok_for_ldrd_strd): Return false for Thumb1.
1484 2012-10-23  Vladimir Makarov  <vmakarov@redhat.com>
1486         * dbxout.c (dbxout_symbol_location): Pass new argument to alter_subreg.
1487         * dwarf2out.c: Include ira.h and lra.h.
1488         (based_loc_descr, compute_frame_pointer_to_fb_displacement): Use
1489         lra_eliminate_regs for LRA instead of eliminate_regs.
1490         * expr.c (emit_move_insn_1): Pass an additional argument to
1491         emit_move_via_integer.  Use emit_move_via_integer for LRA only if
1492         the insn is recognized.
1493         * emit-rtl.c (gen_rtx_REG): Add lra_in_progress.
1494         (validate_subreg): Don't check offset for LRA and floating point modes.
1495         * final.c (final_scan_insn, cleanup_subreg_operands): Pass new
1496         argument to alter_subreg.
1497         (walk_alter_subreg, output_operand): Ditto.
1498         (alter_subreg): Add new argument.
1499         * gcse.c (calculate_bb_reg_pressure): Add parameter to
1500         ira_setup_eliminable_regset call.
1501         * ira.c: Include lra.h.
1502         (ira_init_once, ira_init, ira_finish_once): Call lra_start_once,
1503         lra_init, lra_finish_once in anyway.
1504         (ira_setup_eliminable_regset): Add parameter.  Remove need_fp.
1505         Call lra_init_elimination and mark HARD_FRAME_POINTER_REGNUM as
1506         living forever if frame_pointer_needed.
1507         (setup_reg_class_relations): Set up ira_reg_class_subset.
1508         (ira_reg_equiv_invariant_p, ira_reg_equiv_const): Remove.
1509         (find_reg_equiv_invariant_const): Ditto.
1510         (setup_reg_renumber): Use ira_equiv_no_lvalue_p instead of
1511         ira_reg_equiv_invariant_p.  Skip caps for LRA.
1512         (setup_reg_equiv_init, ira_update_equiv_info_by_shuffle_insn): New
1513         functions.
1514         (ira_reg_equiv_len, ira_reg_equiv): New externals.
1515         (ira_reg_equiv): New.
1516         (ira_expand_reg_equiv, init_reg_equiv, finish_reg_equiv): New
1517         functions.
1518         (no_equiv, update_equiv_regs): Use ira_reg_equiv instead of
1519         reg_equiv_init.
1520         (setup_reg_equiv): New function.
1521         (ira_use_lra_p): New global.
1522         (ira): Set up lra_simple_p and ira_conflicts_p.  Set up and
1523         restore flag_caller_saves and flag_ira_region.  Move
1524         initialization of ira_obstack and ira_bitmap_obstack upper.  Call
1525         init_reg_equiv, setup_reg_equiv, and setup_reg_equiv_init instead
1526         of initialization of ira_reg_equiv_len, ira_reg_equiv_invariant_p,
1527         and ira_reg_equiv_const.  Call ira_setup_eliminable_regset with a
1528         new argument.  Don't flatten IRA IRA for LRA.  Don't reassign
1529         conflict allocnos for LRA. Call finish_reg_equiv.
1530         (do_reload): Prepare code for LRA call.  Call LRA.
1531         * ira.h (ira_use_lra_p): New external.
1532         (struct target_ira): Add members x_ira_class_subset_p
1533         x_ira_reg_class_subset, and x_ira_reg_classes_intersect_p.
1534         (ira_class_subset_p, ira_reg_class_subset): New macros.
1535         (ira_reg_classes_intersect_p): New macro.
1536         (struct ira_reg_equiv): New.
1537         (ira_setup_eliminable_regset): Add an argument.
1538         (ira_expand_reg_equiv, ira_update_equiv_info_by_shuffle_insn): New
1539         prototypes.
1540         * ira-color.c (color_pass, move_spill_restore, coalesce_allocnos):
1541         Use ira_equiv_no_lvalue_p.
1542         (coalesce_spill_slots, ira_sort_regnos_for_alter_reg): Ditto.
1543         * ira-emit.c (ira_create_new_reg): Call ira_expand_reg_equiv.
1544         (generate_edge_moves, change_loop) Use ira_equiv_no_lvalue_p.
1545         (emit_move_list): Simplify code.  Call
1546         ira_update_equiv_info_by_shuffle_insn.  Use ira_reg_equiv instead
1547         of ira_reg_equiv_invariant_p and ira_reg_equiv_const.  Change assert.
1548         * ira-int.h (struct target_ira_int): Remove x_ira_class_subset_p
1549         and x_ira_reg_classes_intersect_p.
1550         (ira_class_subset_p, ira_reg_classes_intersect_p): Remove.
1551         (ira_reg_equiv_len, ira_reg_equiv_invariant_p): Ditto.
1552         (ira_reg_equiv_const): Ditto.
1553         (ira_equiv_no_lvalue_p): New function.
1554         * jump.c (true_regnum): Always use hard_regno for subreg_get_info
1555         when lra is in progress.
1556         * haifa-sched.c (sched_init): Pass new argument to
1557         ira_setup_eliminable_regset.
1558         * loop-invariant.c (calculate_loop_reg_pressure): Pass new
1559         argument to ira_setup_eliminable_regset.
1560         * lra.h: New.
1561         * lra-int.h: Ditto.
1562         * lra.c: Ditto.
1563         * lra-assigns.c: Ditto.
1564         * lra-constraints.c: Ditto.
1565         * lra-coalesce.c: Ditto.
1566         * lra-eliminations.c: Ditto.
1567         * lra-lives.c: Ditto.
1568         * lra-spills.c: Ditto.
1569         * Makefile.in (LRA_INT_H): New.
1570         (OBJS): Add lra.o, lra-assigns.o, lra-coalesce.o, lra-constraints.o,
1571         lra-eliminations.o, lra-lives.o, and lra-spills.o.
1572         (dwarf2out.o): Add dependence on ira.h and lra.h.
1573         (ira.o): Add dependence on lra.h.
1574         (lra.o, lra-assigns.o, lra-coalesce.o, lra-constraints.o): New entries.
1575         (lra-eliminations.o, lra-lives.o, lra-spills.o): Ditto.
1576         * output.h (alter_subreg): Add new argument.
1577         * rtlanal.c (simplify_subreg_regno): Permit mode changes for LRA.
1578         Permit ARG_POINTER_REGNUM and STACK_POINTER_REGNUM for LRA.
1579         * recog.c (general_operand, register_operand): Accept paradoxical
1580         FLOAT_MODE subregs for LRA.
1581         (scratch_operand): Accept pseudos for LRA.
1582         * rtl.h (lra_in_progress): New external.
1583         (debug_bb_n_slim, debug_bb_slim, print_value_slim): New prototypes.
1584         (debug_rtl_slim, debug_insn_slim): Ditto.
1585         * sdbout.c (sdbout_symbol): Pass new argument to alter_subreg.
1586         * sched-vis.c (print_value_slim): New.
1587         * target.def (lra_p): New hook.
1588         (register_priority): Ditto.
1589         (different_addr_displacement_p): Ditto.
1590         (spill_class): Ditto.
1591         * target-globals.h (this_target_lra_int): New external.
1592         (target_globals): New member lra_int.
1593         (restore_target_globals): Restore this_target_lra_int.
1594         * target-globals.c: Include lra-int.h.
1595         (default_target_globals): Add &default_target_lra_int.
1596         * targhooks.c (default_lra_p): New function.
1597         (default_register_priority): Ditto.
1598         (default_different_addr_displacement_p): Ditto.
1599         * targhooks.h (default_lra_p): Declare.
1600         (default_register_priority): Ditto.
1601         (default_different_addr_displacement_p): Ditto.
1602         * timevar.def (TV_LRA, TV_LRA_ELIMINATE, TV_LRA_INHERITANCE): New.
1603         (TV_LRA_CREATE_LIVE_RANGES, TV_LRA_ASSIGN, TV_LRA_COALESCE): New.
1604         * config/arm/arm.c (load_multiple_sequence): Pass new argument to
1605         alter_subreg.
1606         (store_multiple_sequence): Ditto.
1607         * config/i386/i386.h (enum ix86_tune_indices): Add
1608         X86_TUNE_GENERAL_REGS_SSE_SPILL.
1609         (TARGET_GENERAL_REGS_SSE_SPILL): New macro.
1610         * config/i386/i386.c (initial_ix86_tune_features): Set up
1611         X86_TUNE_GENERAL_REGS_SSE_SPILL for m_COREI7 and m_CORE2I7.
1612         (ix86_lra_p, ix86_register_priority): New functions.
1613         (ix86_secondary_reload): Add NON_Q_REGS, SIREG, DIREG.
1614         (inline_secondary_memory_needed): Change assert.
1615         (ix86_spill_class): New function.
1616         (TARGET_LRA_P, TARGET_REGISTER_BANK, TARGET_SPILL_CLASS): New macros.
1617         * config/m68k/m68k.c (emit_move_sequence): Pass new argument to
1618         alter_subreg.
1619         * config/m32r/m32r.c (gen_split_move_double): Ditto.
1620         * config/pa/pa.c (pa_emit_move_sequence): Ditto.
1621         * config/sh/sh.md: Ditto.
1622         * config/v850/v850.c (v850_reorg): Ditto.
1623         * config/xtensa/xtensa.c (fixup_subreg_mem): Ditto.
1624         * doc/md.texi: Add new interpretation of hint * for LRA.
1625         * doc/passes.texi: Describe LRA pass.
1626         * doc/tm.texi.in: Add TARGET_LRA_P, TARGET_REGISTER_PRIORITY,
1627         TARGET_DIFFERENT_ADDR_DISPLACEMENT_P, and TARGET_SPILL_CLASS.
1628         * doc/tm.texi: Update.
1630 2012-10-23  Jan Hubicka  <jh@suse.cz>
1632         * loop-unroll.c (decide_peel_simple): Simple peeling makes sense even
1633         with simple loops; bound number of branches only when FDO is not
1634         available.
1635         (decide_unroll_stupid): Mention that num_loop_branches heuristics
1636         is off.
1638 2012-10-23  Nick Clifton  <nickc@redhat.com>
1640         PR target/54660
1641         * config/iq2000/iq2000.c (iq2000_function_arg_advance): Suppress
1642         compile time warning about pointer printing.
1644 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1646         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
1647         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu): Use
1648         glibc-c.o in c_target_objs and cxx_target_objs.  Use t-glibc in
1649         tmake_file.  Set target_has_targetcm.
1650         (tilegx-*-linux*, tilepro-*-linux*): Append to c_target_objs and
1651         cxx_target_objs rather than overriding previous value.
1652         * config/glibc-c.c, config/t-glibc: New.
1653         * doc/tm.texi.in (TARGET_C_PREINCLUDE): New @hook.
1654         * doc/tm.texi: Regenerate.
1655         * hooks.c (hook_constcharptr_void_null): New.
1656         * hooks.h (hook_constcharptr_void_null): Declare.
1658 2012-10-23  Eric Botcazou  <ebotcazou@adacore.com>
1660         * config/mips/linux-common.h (STACK_CHECK_STATIC_BUILTIN): Define.
1661         (STACK_CHECK_PROTECT): Likewise.
1662         * config/mips/mips.h (MIPS_PROLOGUE_TEMP2_REGNUM): Likewise.
1663         (MIPS_PROLOGUE_TEMP2): Likewise.
1664         * config/mips/mips-protos.h (mips_output_probe_stack_range): Declare.
1665         * config/mips/mips.c: Include common/common-target.h.
1666         (mips_emit_probe_stack_range): New function.
1667         (mips_output_probe_stack_range): Likewise.
1668         (mips_expand_prologue): Invoke mips_emit_probe_stack_range if static
1669         builtin stack checking is enabled.
1670         * config/mips/mips.md (UNSPEC_PROBE_STACK_RANGE): New constant.
1671         (probe_stack_range_<P:mode>): New insn.
1673 2012-10-23  Marc Glisse  <marc.glisse@inria.fr>
1675         * tree-ssa-forwprop.c (forward_propagate_into_cond): Handle vectors.
1676         * fold-const.c (fold_relational_const): Handle VECTOR_CST.
1677         * doc/generic.texi (VEC_COND_EXPR): Document current policy.
1679 2012-10-23  Jan Hubicka  <jh@suse.cz>
1681         PR middle-end/54937
1682         * tree-ssa-loop-niter.c (record_estimate): Do not try to lower
1683         the bound of non-is_exit statements.
1684         (maybe_lower_iteration_bound): Do it here.
1685         (estimate_numbers_of_iterations_loop): Call it.
1687 2012-10-23  Jan Hubicka  <jh@suse.cz>
1689         PR middle-end/54967
1690         * cfgloopmanip.c (fix_bb_placements): Add loop_closed_ssa_invalidated;
1691         track basic blocks that moved out of their loops.
1692         (unloop): Likewise.
1693         (remove_path): Update.
1694         (fix_loop_placements): Update.
1695         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Add
1696         loop_closed_ssa_invalidated parameter; pass it around.
1697         (canonicalize_loop_induction_variables): Update loop closed
1698         SSA form if needed.
1699         (tree_unroll_loops_completely): Likewise; do irred update out of
1700         the outer loop; verify that SSA form is closed.
1701         * cfgloop.h (unrloop): Update.
1703 2012-10-23  Terry Guo  <terry.guo@arm.com>
1705         PR target/55019
1706         * config/arm/arm.c (thumb1_expand_prologue): Don't push high regs with
1707         live argument regs.
1709 2012-10-23  Hans-Peter Nilsson  <hp@bitrange.com>
1711         PR middle-end/55030
1712         Revert:
1713         * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
1714         expand_builtin_setjmp_receiver.
1715         (expand_label): Adjust, call expand_builtin_setjmp_receiver
1716         with NULL for the label parameter.
1717         * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
1718         the frame-pointer.  Adjust comments.
1719         [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
1720         only if LABEL is non-NULL.
1722 2012-10-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1724         PR tree-optimization/55008
1725         * gimple-ssa-strength-reduction.c (find_basis_for_candidate):
1726         Don't allow a candidate to be a basis for itself under another
1727         interpretation.
1729 2012-10-22  Sharad Singhai  <singhai@google.com>
1731         * dumpfile.c (dump_phase_enabled_p): Renamed dump_enabled_p. Update
1732         all callers.
1733         (dump_enabled_p): A new function to check if any of the dump files
1734         is available.
1735         (dump_kind_p): Remove check for current_function_decl. Add check for
1736         dumpfile and alt_dump_file.
1737         * dumpfile.h: Add declaration of dump_enabled_p.
1739 2012-10-22  Richard Biener  <rguenther@suse.de>
1741         PR lto/55021
1742         * tree-streamer-in.c (unpack_ts_int_cst_value_fields): Remove
1743         bogus truncations.
1745 2012-10-22  Uros Bizjak  <ubizjak@gmail.com>
1747         * config/i386/i386.c (memory_address_length): Assert that non-null
1748         base or index RTXes are registers.  Do not check for REG RTXes.
1749         Determine addr32 prefix using SImode_address_operand or
1750         from original base and index RTXes.  Simplify code.
1752 2012-10-22  Richard Biener  <rguenther@suse.de>
1754         PR tree-optimization/55011
1755         * tree-vrp.c (update_value_range): For invalid lattice transitions
1756         drop to VARYING.
1758 2012-10-22  Julian Brown  <julian@codesourcery.com>
1760         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Avoid subreg'ing
1761         VFP D registers in big-endian mode.
1763 2012-10-22  Georg-Johann Lay  <avr@gjlay.de>
1765         * doc/invoke.texi (AVR Options): Document __AVR_ARCH__.
1766         Note __AVR_<device>__ is not defined for cores.
1767         Don't point to --help=target.
1769 2012-10-22  Sameera Deshpande  <sameera.deshpande@arm.com>
1770             Greta Yorsh  <Greta.Yorsh@arm.com>
1772         * config/arm/arm.c (thumb2_emit_ldrd_pop): New function.
1773         (arm_expand_epilogue): Use the new function.
1775 2012-10-22  Sameera Deshpande  <sameera.deshpande@arm.com>
1776             Greta Yorsh  <Greta.Yorsh@arm.com>
1778         * config/arm/arm.c (thumb2_emit_strd_push): New function.
1779         (arm_expand_prologue): Use the new function.
1781 2012-10-22  Sameera Deshpande  <sameera.deshpande@arm.com>
1782             Greta Yorsh  <Greta.Yorsh@arm.com>
1784         * config/arm/arm-protos.h (offset_ok_for_ldrd_strd): New declaration.
1785         (operands_ok_ldrd_strd): Likewise.
1786         * config/arm/arm.c (offset_ok_for_ldrd_strd): New function.
1787         (operands_ok_ldrd_strd): Likewise.
1788         * config/arm/arm.md (thumb2_ldrd, thumb2_ldrd_base): New patterns.
1789         (thumb2_ldrd_base_neg): Likewise.
1790         (thumb2_strd, thumb2_strd_base, thumb_strd_base_neg): Likewise.
1791         * predicates.md (ldrd_strd_offset_operand): New predicate.
1792         * config/arm/constraints.md (Do): New constraint.
1794 2012-10-22  Hans-Peter Nilsson  <hp@bitrange.com>
1796         * config/mmix/mmix.md ("nonlocal_goto_receiver"): Refer to the
1797         frame-pointer as an operand.
1798         ("*nonlocal_goto_receiver_expanded"): Ditto.  Use
1799         mmix_output_register_setting instead of naked output_asm_insn for
1800         the offset from the frame-pointer to the saved rO.
1801         * config/mmix/mmix.c (mmix_output_register_setting): Emit NEGU for
1802         values -255..0.
1803         * config/mmix/predicates.md ("frame_pointer_operand"): New.
1804         * config/mmix/constraints.md ("Yf"): New.
1806         * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
1807         expand_builtin_setjmp_receiver.
1808         (expand_label): Adjust, call expand_builtin_setjmp_receiver
1809         with NULL for the label parameter.
1810         * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
1811         the frame-pointer.  Adjust comments.
1812         [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
1813         only if LABEL is non-NULL.
1815 2012-10-21  Uros Bizjak  <ubizjak@gmail.com>
1817         * config/i386/i386-protos.h (memory_address_length): Add new bool
1818         argument.  Update all uses.
1819         * config/i386/i386.c (memory_address_length): If not LEA insn, then
1820         add length of addr32 prefix based on mode of base or index register.
1821         (ix86_attr_length_address_default) <TYPE_LEA>: Do not handle SImode
1822         addresses here.  Update call to memory_address_length.
1823         (ix86_print_address_operand): Use SImode_address_operand predicate.
1824         * config/i386/predicates.md (SImode_address_operand): New.
1825         * config/i386/i386.md (lea<mode>): Use SImode_address_operand
1826         to calculate "mode" attribute.  Use SImode_address_operand predicate
1827         instead of open-coding accepted RTX codes.
1829 2012-10-21  Joern Rennecke  <joern.rennecke@embecosm.com>
1831         * rtl.def (ADDR_DIFF_VEC): Fix comment typo.
1833 2012-10-21  Eric Botcazou  <ebotcazou@adacore.com>
1835         PR rtl-optimization/44194
1836         * calls.c (expand_call): Allow sibling calls in the PARALLEL case.
1838 2012-10-21  Tobias Burnus  <burnus@net-b.de>
1840         PR fortran/54725
1841         * Makefile.in (TARGET_SYSTEM_ROOT_DEFINE): New.
1843 2012-10-21  Chung-Lin Tang  <cltang@codesourcery.com>
1845         * config/xtensa/xtensa.c (xtensa_expand_builtin): Remove unused 'arg'
1846         variable.
1848 2012-10-20  Eric Botcazou  <ebotcazou@adacore.com>
1850         PR rtl-optimization/54315
1851         * calls.c (expand_call): Don't deal specifically with BLKmode values
1852         returned in naked registers.
1853         * expr.h (copy_blkmode_from_reg): Adjust prototype.
1854         * expr.c (copy_blkmode_from_reg): Rename first parameter into
1855         TARGET and make it required.  Assert that SRCREG hasn't BLKmode.
1856         Add a couple of short-circuits for common cases and be prepared
1857         for sub-word registers.
1858         (expand_assignment): Call copy_blkmode_from_reg for BLKmode values
1859         returned in naked registers.
1860         (store_expr): Likewise.
1861         (store_field): Likewise.
1863 2012-10-20  Jan Hubicka  <jh@suse.cz>
1865         * loop-unroll.c (decide_unroll_constant_iterations): Don't
1866         perform unrolling for loops with low iterations bounds or estimates.
1868 2012-10-20  Jan Hubicka  <jh@suse.cz>
1870         * loop-iv.c (iv_number_of_iterations): Record the upper bound
1871         only if there are no further conditions on it.
1873 2012-10-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1875         PR c/53063
1876         PR c/40989
1877         * opts.c (finish_options): Remove explicit handling from here.
1879 2012-10-20  Joern Rennecke  <joern.rennecke@embecosm.com>
1880             Richard Sandiford  <rdsandiford@googlemail.com>
1882         * emit-rtl.c (copy_delay_slot_insn): New function.
1883         * emit-rtl.h (copy_delay_slot_insn): Declare.
1884         * reorg.c: Include "emit-rtl.h".
1885         (steal_delay_list_from_target): Use copy_delay_slot_insn.
1886         (fill_slots_from_thread, fill_simple_delay_slots): Likewise.
1888         * final.c (shorten_branches): When optimizing, start with small
1889         length and increase from there, and don't decrease lengths.
1891 2012-10-19  Jan Hubicka  <jh@suse.cz>
1893         * builtins.def (BUILT_IN_UNREACHABLE): Make
1894         ATTR_CONST_NORETURN_NOTHROW_LEAF_LIST.
1895         * builtin-attrs.def (ATTR_CONST_NORETURN_NOTHROW_LEAF_LIST): Define.
1897 2012-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
1898             Dominique Dhumieres  <dominiq@lps.ens.fr>
1900         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Don't assume
1901         OPTION_MASK_STRICT_ALIGN is defined.
1902         (MASK_STRICT_ALIGN): If OPTION_MASK_STRICT_ALIGN is not defined,
1903         define this to 0 for the 3 ports that use it.
1905         * config/rs6000/rs6000.c (OPTION_MASK_STRICT_ALIGN): Don't do
1906         check for ports not having -mstrict-align here, move test to
1907         rs6000-cpus.def.
1908         (MASK_STRICT_ALIGN): Likewise.
1909         (rs6000_debug_reg_global): Print out correct target flag words if
1910         -mdebug=reg.
1912 2012-10-19  Marek Polacek  <polacek@redhat.com>
1914         PR middle-end/54945
1915         * fold-const.c (fold_sign_changed_comparison):  Punt if folding
1916         pointer/non-pointer comparison.
1918 2012-10-19  Greta Yorsh  <Greta.Yorsh@arm.com>
1920         * doc/sourcebuild.texi (Effective-Target Keywords): Document
1921         new effective target keyword arm_prefer_ldrd_strd.
1923 2012-10-19  Richard Guenther  <rguenther@suse.de>
1925         PR tree-optimization/54981
1926         * tree-loop-distribution.c (ssa_name_has_uses_outside_loop_p):
1927         Do not consider debug stmts as uses.
1929 2012-10-19  Richard Biener  <rguenther@suse.de>
1931         PR tree-optimization/54976
1932         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
1933         Robustify against odd inner_mode inputs.
1935 2012-10-19  Zhenqiang Chen <zhenqiang.chen@linaro.org>
1937         PR target/54892
1938         * config/arm/arm.c (arm_expand_compare_and_swap): Use SImode to make
1939         sure the mode is correct when falling through from above cases.
1941 2012-10-19  Bin Cheng  <bin.cheng@arm.com>
1943         * common.opt (flag_ira_hoist_pressure): New.
1944         * doc/invoke.texi (-fira-hoist-pressure): Describe.
1945         * ira-costs.c (ira_set_pseudo_classes): New parameter.
1946         * ira.h: Update copyright dates.
1947         (ira_set_pseudo_classes): Update prototype.
1948         * haifa-sched.c (sched_init): Update call.
1949         * ira.c (ira): Update call.
1950         * regmove.c: Update copyright dates.
1951         (regmove_optimize): Update call.
1952         * loop-invariant.c: Update copyright dates.
1953         (move_loop_invariants): Update call.
1954         * gcse.c: (struct bb_data): New structure.
1955         (BB_DATA): New macro.
1956         (curr_bb, curr_reg_pressure): New static variables.
1957         (should_hoist_expr_to_dom): Rename from hoist_expr_reaches_here_p.
1958         Change parameter expr_index to expr.
1959         New parameters pressure_class, nregs and hoisted_bbs.
1960         Use reg pressure to determine the distance expr can be hoisted.
1961         (hoist_code): Use reg pressure to direct the hoist process.
1962         (get_regno_pressure_class, get_pressure_class_and_nregs)
1963         (change_pressure, calculate_bb_reg_pressure): New.
1964         (one_code_hoisting_pass): Calculate register pressure. Allocate
1965         and free data.
1967 2012-10-19  Bin Cheng  <bin.cheng@arm.com>
1969         * gcse.c: Update copyright dates.
1970         (hoist_expr_reaches_here_p): Change parameter type from char *
1971         to sbitmap.
1973 2012-10-19  Sebastian Huber <sebastian.huber@embedded-brains.de>
1975         * config.gcc
1976         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtemseabi*): Rename
1977         "arm*-*-rtemseabi*" to "arm*-*-rtems*".
1979 2012-10-19  Alan Modra  <amodra@gmail.com>
1981         * configure.ac (HAVE_LD_NO_DOT_SYMS): Set if using gold.
1982         (HAVE_LD_LARGE_TOC): Likewise.
1983         * configure: Regenerate.
1985 2012-10-19  Alan Modra  <amodra@gmail.com>
1987         * config/rs6000/predicates.md (splat_input_operand): Don't call
1988         input_operand for MEMs.  Instead check for volatile and call
1989         memory_address_addr_space_p with modified mode.
1991 2012-10-18  Uros Bizjak  <ubizjak@gmail.com>
1993         * config/i386/i386.md (rdpmc): Remove expander.
1994         (rdtsc): Ditto.
1995         (rdtscp): Ditto.
1996         (rdpmc): Rename from *rdpmc.
1997         (rdpmc_rex64): Rename from *rdpmc_rex64.
1998         (rdtsc): Rename from *rdtsc.
1999         (rdtsc_rex64): Rename from *rdtsc_rex64.
2000         (rdtscp): Rename from *rdtscp.
2001         (rdtscp_rex64): Rename from *rdtscp_rex64.
2003         * config/i386/i386.c (struct builtin_description bdesc_special_args)
2004         <IX86_BUILTIN_RDTSC>: Use CODE_FOR_NOTHING.
2005         <IX86_BUILTIN_RDTSCP>: Ditto.
2006         (struct builtin_description bdesc__args) <IX86_BUILTIN_RDPMC>: Ditto.
2007         (ix86_expand_builtin) <IX86_BUILTIN_{RDPMC,RDTSC,RDTSCP}>: Handle here.
2009 2012-10-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2011         * config/sh/sh.c: Fix comment to silence warning.
2013 2012-10-18  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
2014             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2015             Sameera Deshpande  <sameera.deshpande@arm.com>
2017         * config/arm/cortex-a15-neon.md: New file.
2018         * config/arm/cortex-a15.md (cortex_a15_call): Adjust reservation.
2019         (cortex_a15_load1): Likewise.
2020         (cortex_a15_load3): Likewise.
2021         (cortex_a15_store1): Likewise.
2022         (cortex_a15_store3): Likewise.
2023         (cortex-a15-neon.md): Include.
2025 2012-10-18  Segher Boessenkool  <segher@kernel.crashing.org>
2027         * config/rs6000/altivec.md (altivec_lvsl, altivec_lvsr): Add mode.
2028         (altivec_vsumsws_nomode): Delete.
2029         (reduc_splus_<mode>, reduc_uplus_<mode>): Call gen_altivec_vsumsws
2030         instead of gen_altivec_vsumsws_nomode.
2031         (altivec_lvlx, altivec_lvlxl, altivec_lvrx, altivec_lvrxl): Add mode.
2032         * config/rs6000/rs6000.md (probe_stack): Rename to...
2033         (probe_stack_<mode>): ... this.  Add mode.  Change pattern to
2034         use std instead of stw when appropriate.
2035         (probe_stack): New expander.
2036         (move_from_CR_ov_bit): Add mode.
2037         (splitter for compare_plus_ne0_<mode>, splitter for
2038         compare_plus_ne0_<mode>_1): Remove constraints.
2039         * config/rs6000/sync.md (loadsync): Rename to...
2040         (loadsync_<mode>): ... this.  Add mode.
2041         (atomic_load<mode>): Adjust.
2043 2012-10-18  Eric Botcazou  <ebotcazou@adacore.com>
2045         * loop-invariant.c: Include target.h.
2046         (check_dependency): Return false for an uninitialized argument register
2047         that is likely to be spilled.
2048         * Makefile.in (loop-invariant.o): Add $(TARGET_H).
2050 2012-10-18  Eric Botcazou  <ebotcazou@adacore.com>
2052         * except.c (sjlj_emit_function_enter): Remove unused variable.
2054 2012-10-18  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
2055             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2057         * config/arm/arm.c (neon_builtin_data): Add vfma and vfms builtins.
2058         * config/arm/neon-docgen.ml (intrinsic_groups): Add
2059         fused-multiply-* groups.
2060         * config/neon-gen.ml (print_feature_test_start): New function.
2061         (print_feature_test_end): Likewise.
2062         (print_variant): Print feature test macros.
2063         * config/arm/neon-testgen.ml (emit_prologue): Allow different
2064         tests to require different effective targets.
2065         (effective_target): New function.
2066         (test_intrinsic): Specify correct effective targets.
2067         * config/arm/neon.md (fma<VCVTF:mode>4_intrinsic): New pattern.
2068         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
2069         (neon_vfma<VCVFT:mode>): New expand.
2070         (neon_vfms<VCVFT:mode>): Likewise.
2071         * config/neon.ml (opcode): Add Vfma and Vfms.
2072         (features): Add Requires_feature.
2073         (ops): Add VFMA and VFMS intrinsics.
2074         * config/arm/arm_neon.h: Regenerate.
2075         * doc/arm-neon-intrinsics.texi: Likewise.
2077 2012-10-18  Richard Guenther  <rguenther@suse.de>
2079         * lto-streamer.h (enum LTO_tags): Add LTO_integer_cst.
2080         * lto-streamer-in.c (lto_input_tree): Use it.
2081         * lto-streamer-out.c (lto_output_tree): Likewise, for
2082         !TREE_OVERFLOW integer constants only.
2083         * tree-streamer-in.c (unpack_ts_int_cst_value_fields): New function.
2084         (unpack_value_fields): Call it.
2085         (streamer_read_integer_cst): Simplify.
2086         * tree-streamer-out.c (pack_ts_int_cst_value_fields): New function.
2087         (streamer_pack_tree_bitfields): Call it.
2088         (streamer_write_integer_cst): Adjust.
2090 2012-10-18  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
2091             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2093         * config.gcc: Add support for ARMv8 for arm*-*-* targets.
2094         * config/arm/arm-arches.def: Add armv8-a
2095         * config/arm/arm-fpus.def: Add fp-armv8, neon-fp-armv8,
2096         crypto-neon-fp-armv8.  Add crypto field.
2097         * config/arm/arm-tables.opt: Regenerate.
2098         * config/arm/arm.c (FL_FOR_ARCH8A): Likewise.
2099         (arm_arch8): New global variable.
2100         (ARM_FPU): Add crypto parameter.
2101         (arm_option_override): Set arm_arch8, update comments.
2102         * config/arm/arm.h (TARGET_CRYPTO): New macro.
2103         (arm_fpu_desc): Add crypto field.
2104         (base_architecture): Add ARMv8 entry.
2105         (arm_arch8): New variable declaration.
2106         * config/arm/bpabi.h: ARMv8 supports BE8.
2107         * doc/invoke.texi: Document ARMv8 options.
2109 2012-10-17  Aldy Hernandez  <aldyh@redhat.com>
2111         PR middle-end/54893
2112         * trans-mem.c (diagnose_tm_1_op): Allow volatiles inside relaxed
2113         transactions.
2115 2012-10-17  Aldy Hernandez  <aldyh@redhat.com>
2117         PR rtl-optimization/54900
2118         * ifcvt.c (noce_can_store_speculate_p): Call
2119         memory_must_be_modified_in_insn_p.
2120         * alias.c (memory_must_be_modified_in_insn_p): New.
2121         (set_dest_equal_p): New.
2122         * rtl.h (memory_must_be_modified_in_p): Protoize.
2124 2012-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
2126         * config/rs6000/rs6000.opt (rs6000_isa_flags): New flag word to
2127         replace target_flags that gives us 63 possible switches.
2128         (x_rs6000_isa_flags): Save area for rs6000_isa_flags.
2129         (x_rs6000_isa_flags_explicit): Save area for rs6000_isa_flags_explicit.
2130         (rs6000_target_flags_explicit): Delete in favor of
2131         x_rs6000_isa_flags_explicit.
2132         (-mpowerpc64): Change all switches that used to be in target_flags
2133         to now be in rs6000_isa_flags.  In using rs6000_isa_flags, the
2134         options machinary will generate names of the form OPITON_<xxx>
2135         instead of TARGET_<xxx> and OPTION_MASK_<xxx> instead of MASK_<xxx>.
2136         (-mpowerpc-gpopt): Likewise.
2137         (-mpowerpc-gfxopt): Likewise.
2138         (-mmfcrf): Likewise.
2139         (-mpopcntb): Likewise.
2140         (-mfprnd): Likewise.
2141         (-mcmpb): Likewise.
2142         (-mmfpgpr): Likewise.
2143         (-maltivec): Likewise.
2144         (-mhard-dfp): Likewise.
2145         (-mmulhw): Likewise.
2146         (-mdlmzb): Likewise.
2147         (-mmultiple): Likewise.
2148         (-mstring): Likewise.
2149         (-msoft-float): Likewise.
2150         (-mhard-float): Likewise.
2151         (-mpopcntd): Likewise.
2152         (-mvsx): Likewise.
2153         (-mno-update): Likewise.
2154         (-mupdate): Likewise.
2155         (-mrecip-precision): Likewise.
2156         (-mminimal-toc): Likewise.
2157         (-misel): Likewise.
2158         * config/rs6000/aix64.opt (-maix64): Likewise.
2159         (-maix32): Likewise.
2160         * config/rs6000/sysv4.opt (-mstrict-align): Likewise.
2161         (-mrelocatable): Likewise.
2162         (-mlittle-endian): Likewise.
2163         (-mlittle): Likewise.
2164         (-mbig-endian): LIkewise.
2165         (-mbig): Likewise.
2166         (-meabi): Likewise.
2167         (-m64): Likewise.
2168         (-m32): Likewise.
2169         * config/rs6000/darwin.opt (-m64): Likewise.
2170         (-m32): Likewise.
2172         * config/rs6000/rs6000-cpus.def (ISA_2_1_MASKS): Move the various
2173         masks used in rs6000.c here, since they are more logically in this
2174         file.  Convert from being enums to just #defines, since the types
2175         of these masks is now HOST_WIDE_INT instead of int.  For
2176         POWERPC_MASKS, add MASK_SOFT_FLOAT, since the only use case or'ed
2177         in the mask.  Change the use in rs6000.c not to do the OR of
2178         MASK_SOFT_FLOAT.
2179         (ISA_2_1_MASKS): Likewise.
2180         (ISA_2_2_MASKS): Likewise.
2181         (ISA_2_4_MASKS): Likewise.
2182         (ISA_2_5_MASKS_EMBEDDED): Likewise.
2183         (ISA_2_5_MASKS_SERVER): Likewise.
2184         (POWERPC_7400_MASK): Likewise.
2185         (POWERPC_MASKS): Likewise.
2186         * config/rs6000/rs6000.c (ISA_2_1_MASKS): Likewise.
2187         (ISA_2_1_MASKS): Likewise.
2188         (ISA_2_2_MASKS): Likewise.
2189         (ISA_2_4_MASKS): Likewise.
2190         (ISA_2_5_MASKS_EMBEDDED): Likewise.
2191         (ISA_2_5_MASKS_SERVER): Likewise.
2192         (POWERPC_7400_MASK): Likewise.
2193         (POWERPC_MASKS): Likewise.
2194         (rs6000_option_override_internal): Likewise.
2196         * config/rs6000/rs6000.c (darwin_rs6000_override_options): Change
2197         all uses of target_flags to rs6000_isa_flags.  Change all uses of
2198         target_flags_explicit to rs6000_isa_flags_explicit.  Change the
2199         use of MASK_<xxx> to OPTION_MASK_<xxx> that options.h defines when
2200         we use a secondary flags word.  Save/restore/print the new flags
2201         word when switching contexts with different target attributes.
2202         (rs6000_option_override_internal): Likewise.
2203         (rs6000_darwin_file_start): Likewise.
2204         (rs6000_opt_masks): Likewise.
2205         (rs6000_inner_target_options): Likewise.
2206         (rs6000_pragma_target_parse): Likewise.
2207         (rs6000_set_current_function): Likewise.
2208         (rs6000_function_specific_save): Likewise.
2209         (rs6000_function_specific_restore): Likewise.
2210         (rs6000_function_specific_print): Likewise.
2211         (rs6000_can_inline_p): Likewise.
2212         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Likewise.
2213         (rs6000_cpu_cpp_builtins): Likewise.
2214         * common/config/rs6000/rs6000-driver.c (rs6000_handle_option):
2215         Likewise.
2217         * config/rs6000/rs6000.h (MASK_ALTIVEC): In moving to using
2218         Var(...) for all of the isa switches, the options machinery now
2219         uses OPTION_MASK_<xxx> instead of MASK_<xxx> for the mask name.
2220         Use #define to map the old name into the new name.  For switches
2221         that are defined in aix64.opt, sysv4.opt, and darwin.opt, only do
2222         the definition if those switches were defined.
2223         (MASK_ALTIVEC): Likewise.
2224         (MASK_CMPB): Likewise.
2225         (MASK_DFP): Likewise.
2226         (MASK_DLMZB): Likewise.
2227         (MASK_EABI): Likewise.
2228         (MASK_FPRND): Likewise.
2229         (MASK_HARD_FLOAT): Likewise.
2230         (MASK_ISEL): Likewise.
2231         (MASK_MFCRF): Likewise.
2232         (MASK_MFPGPR): Likewise.
2233         (MASK_MULHW): Likewise.
2234         (MASK_MULTIPLE): Likewise.
2235         (MASK_NO_UPDATE): Likewise.
2236         (MASK_POPCNTB): Likewise.
2237         (MASK_POPCNTD): Likewise.
2238         (MASK_PPC_GFXOPT): Likewise.
2239         (MASK_PPC_GPOPT): Likewise.
2240         (MASK_RECIP_PRECISION): Likewise.
2241         (MASK_SOFT_FLOAT): Likewise.
2242         (MASK_STRICT_ALIGN): Likewise.
2243         (MASK_STRING): Likewise.
2244         (MASK_UPDATE): Likewise.
2245         (MASK_VSX): Likewise.
2246         (MASK_POWERPC64): Likewise.
2247         (MASK_64BIT): Likewise.
2248         (MASK_RELOCATABLE): Likewise.
2249         (MASK_LITTLE_ENDIAN): Likewise.
2250         (MASK_MINIMAL_TOC): Likewise.
2251         (MASK_REGNAMES): Likewise.
2252         (MASK_PROTOTYPE): Likewise.
2253         (rs6000_isa_flags_explicit): Define in terms of the
2254         global_options_set structure.
2256         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS):
2257         Change use of target_flags to rs6000_isa_flags, target_flags_explicit
2258         to rs6000_isa_flags_explicit, and MASK_<xxx> to OPTION_MASK_<xxx>.
2259         * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
2260         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
2261         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
2262         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
2263         * config/rs6000/freebsd64.h (RELOCATABLE_NEEDS_FIXUP): Likewise.
2264         (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
2265         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Likewise.
2266         * config/rs6000/linux64.h (RELOCATABLE_NEEDS_FIXUP): Likewise.
2267         (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
2268         (OPTION_LITTLE_ENDIAN): Likewise.
2269         (OPTION_RELOCATABLE): Likewise.
2270         (OPTION_EABI): Likewise.
2271         (OPTION_PROTOTYPE): Likewise.
2272         * config/rs6000/linux.h (RELOCATABLE_NEEDS_FIXUP): Likewise.
2273         * config/rs6000/option-defaults.h (OPTION_MASK_64BIT): Likewise.
2274         (OPT_ARCH32): Likewise.
2275         (OPT_ARCH64): Likewise.
2276         * config/rs6000/sysv4.h (TARGET_TOC): Likewise.
2277         (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
2278         (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
2279         (TARGET_OS_SYSV_CPP_BUILTINS): Likewise.
2281         * config/rs6000/t-rs6000 (rs6000.o): Add rs6000-cpus.def as a
2282         dependency.
2284 2012-10-17  Jan Hubicka  <jh@suse.cz>
2286         * cfgloopmanip.c (copy_loop_info): New function.
2287         (duplicate_loop): Use it.
2288         (loop_version): Use it.
2289         * loop-unswitch.c (unswitch_loop): Use it.
2290         * cfgloop.h (copy_loop_info): Declare.
2292 2012-10-17  Jan Hubicka  <jh@suse.cz>
2294         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Add edge_to_cancel
2295         parameter and use it to estimate code optimized out in the final
2296         iteration.
2297         (loop_edge_to_cancel): New function.
2298         (try_unroll_loop_completely): New IRRED_IVALIDATED parameter;
2299         handle unrolling loops with bounds given via max_loop_iteratins;
2300         handle unrolling non-inner loops when code size shrinks;
2301         tidy dump output; when the last iteration loop still stays
2302         as loop in the CFG forcongly redirect the latch to
2303         __builtin_unreachable.
2304         (canonicalize_loop_induction_variables): Add irred_invlaidated
2305         parameter; record niter bound derrived; dump
2306         max_loop_iterations bounds; call try_unroll_loop_completely
2307         even if no niter bound is given.
2308         (canonicalize_induction_variables): Handle irred_invalidated.
2309         (tree_unroll_loops_completely): Handle non-innermost loops;
2310         handle irred_invalidated.
2311         * cfgloop.h (unlop): Declare.
2312         * cfgloopmanip.c (unloop): Export.
2313         * tree.c (build_common_builtin_nodes): Build BULTIN_UNREACHABLE.
2315 2012-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
2317         * opth-gen.awk (TARGET_* generation): Always generate TARGET_<xxx>
2318         for Mask options, whether they use Var(...) or not.
2320         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): Use
2321         TARGET_<xxx> instead of OPTION_<xxx>.
2322         * config/i386/i386.h (TARGET_64BIT): Likewise.
2323         (TARGET_MMX): Likewise.
2324         (TARGET_3DNOW): Likewise.
2325         (TARGET_3DNOW_A): Likewise.
2326         (TARGET_SSE): Likewise.
2327         (TARGET_SSE2): Likewise.
2328         (TARGET_SSE3): Likewise.
2329         (TARGET_SSSE3): Likewise.
2330         (TARGET_SSE4_1): Likewise.
2331         (TARGET_SSE4_2): Likewise.
2332         (TARGET_AVX): Likewise.
2333         (TARGET_AVX2): Likewise.
2334         (TARGET_FMA): Likewise.
2335         (TARGET_SSE4A): Likewise.
2336         (TARGET_FMA4): Likewise.
2337         (TARGET_XOP): Likewise.
2338         (TARGET_LWP): Likewise.
2339         (TARGET_ROUND): Likewise.
2340         (TARGET_ABM): Likewise.
2341         (TARGET_BMI): Likewise.
2342         (TARGET_BMI2): Likewise.
2343         (TARGET_LZCNT): Likewise.
2344         (TARGET_TBM): Likewise.
2345         (TARGET_POPCNT): Likewise.
2346         (TARGET_SAHF): Likewise.
2347         (TARGET_MOVBE): Likewise.
2348         (TARGET_CRC32): Likewise.
2349         (TARGET_AES): Likewise.
2350         (TARGET_PCLMUL): Likewise.
2351         (TARGET_CMPXCHG16B): Likewise.
2352         (TARGET_FSGSBASE): Likewise.
2353         (TARGET_RDRND): Likewise.
2354         (TARGET_F16C): Likewise.
2355         (TARGET_RTM     ): Likewise.
2356         (TARGET_HLE): Likewise.
2357         (TARGET_RDSEED): Likewise.
2358         (TARGET_PRFCHW): Likewise.
2359         (TARGET_ADX): Likewise.
2360         (TARGET_64BIT): Likewise.
2361         (TARGET_MMX): Likewise.
2362         (TARGET_3DNOW): Likewise.
2363         (TARGET_3DNOW_A): Likewise.
2364         (TARGET_SSE): Likewise.
2365         (TARGET_SSE2): Likewise.
2366         (TARGET_SSE3): Likewise.
2367         (TARGET_SSSE3): Likewise.
2368         (TARGET_SSE4_1): Likewise.
2369         (TARGET_SSE4_2): Likewise.
2370         (TARGET_AVX): Likewise.
2371         (TARGET_AVX2): Likewise.
2372         (TARGET_FMA): Likewise.
2373         (TARGET_SSE4A): Likewise.
2374         (TARGET_FMA4): Likewise.
2375         (TARGET_XOP): Likewise.
2376         (TARGET_LWP): Likewise.
2377         (TARGET_ROUND): Likewise.
2378         (TARGET_ABM): Likewise.
2379         (TARGET_BMI): Likewise.
2380         (TARGET_BMI2): Likewise.
2381         (TARGET_LZCNT): Likewise.
2382         (TARGET_TBM): Likewise.
2383         (TARGET_POPCNT): Likewise.
2384         (TARGET_SAHF): Likewise.
2385         (TARGET_MOVBE): Likewise.
2386         (TARGET_CRC32): Likewise.
2387         (TARGET_AES): Likewise.
2388         (TARGET_PCLMUL): Likewise.
2389         (TARGET_CMPXCHG16B): Likewise.
2390         (TARGET_FSGSBASE): Likewise.
2391         (TARGET_RDRND): Likewise.
2392         (TARGET_F16C): Likewise.
2393         (TARGET_RTM): Likewise.
2394         (TARGET_HLE): Likewise.
2395         (TARGET_RDSEED): Likewise.
2396         (TARGET_PRFCHW): Likewise.
2397         (TARGET_ADX): Likewise.
2398         (TARGET_LP64): Likewise.
2399         (TARGET_X32): Likewise.
2400         (TARGET_ISA_ROUND): Likewise.
2401         * config/i386/darwin.h (TARGET_64BIT): Likewise.
2403         * doc/options.texi (Mask): Update documentation to specify only
2404         TARGET_<xxx> is generated.
2406 2012-10-17  Greta Yorsh  <Greta.Yorsh@arm.com>
2408         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): Rename this...
2409         (UNSPEC_REGISTER_USE): ... to this.
2410         (prologue_use): Rename this...
2411           (force_register_use): ... to this and update output assembly.
2412         (epilogue) Rename gen_prologue_use to gen_force_register_use.
2413         * config/arm/arm.c (arm_expand_prologue): Likewise.
2414         (thumb1_expand_epilogue): Likewise.
2415         (arm_expand_epilogue): Likewise.
2416         (arm_expand_epilogue): Likewise.
2418 2012-10-17  Georg-Johann Lay  <avr@gjlay.de>
2420         * config/avr/avr-arch.h (avr_extra_arch_macro): Remove prototype.
2421         * config/avr/avr.c (avr_extra_arch_macro): Remove variable.
2422         (avr_option_override): Remove setting of avr_extra_arch_macro.
2423         * config/avr/avr-c.c (avr_extra_arch_macro): Replace with
2424         avr_current_device->macro.
2426 2012-10-17  Richard Biener  <rguenther@suse.de>
2428         * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
2429         Do not write TREE_CHAIN of PARM_DECLs.
2430         (write_ts_decl_non_common_tree_pointers): Instead stream
2431         the DECL_ARGUMENTS chain.
2432         * tree-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
2433         Do not read TREE_CHAIN of PARM_DECLs.
2434         (lto_input_ts_decl_non_common_tree_pointes): Instead read
2435         the DECL_ARGUMENTS as chain.
2437 2012-10-17  Steven Bosscher  <steven@gcc.gnu.org>
2439         * config/iq2000/iq2000.h (call_used_regs): Remove definition.
2441 2012-10-16  Eric Botcazou  <ebotcazou@adacore.com>
2443         PR rtl-optimization/54870
2444         * tree.h (TREE_ADDRESSABLE): Document special usage on SSA_NAME.
2445         * cfgexpand.c (update_alias_info_with_stack_vars ): Set it on the
2446         SSA_NAME pointer that points to a partition if there is at least
2447         one variable with it set in the partition.
2448         * dse.c (local_variable_can_escape): New predicate.
2449         (can_escape): Call it.
2450         * gimplify.c (mark_addressable): If this is a partitioned decl, also
2451         mark the SSA_NAME pointer that points to a partition.
2453 2012-10-16  Steven Bosscher  <steven@gcc.gnu.org>
2455         * df-problems.c (df_kill_notes): Split up in two functions.
2456         (df_remove_dead_and_unused_notes): New function, first half of
2457         df_kill notes to remove all REG_DEAD and REG_UNUSED notes.
2458         (df_remove_dead_eq_notes): New function, second half of df_kill_notes
2459         to remove REG_EQUAL and REG_EQUIV notes referring to dead registers.
2460         (df_note_bb_compute): Call df_remove_dead_and_unused_notes instead
2461         of df_kill_notes.  Call df_remove_dead_eq_notes after processing insn.
2463         * web.c (web): Re-add DF_RD_PRUNE_DEAD_DEFS;
2465 2012-10-16  Ian Lance Taylor  <iant@google.com>
2467         * doc/extend.texi (Return Address): Change
2468         __builtin_extract_return_address to
2469         __builtin_extract_return_addr.
2471 2012-10-16  Steven Bosscher  <steven@gcc.gnu.org>
2473         * rtl.h (get_call_rtx_from): New prototype.
2474         * rtlanal.c (get_call_rtx_from): New function.
2475         * calls.c (emit_call_1): Use it.
2476         * dse.c (scan_insn): Likewise
2477         * dwarf2out.c (dwarf2out_var_location): Likewise.
2478         * sched-deps.c (call_may_noreturn_p): Likewise.
2479         * var-tracking.c (prepare_call_arguments): Likewise.
2480         * config/sh/sh.c (sh_adjust_cost): Likewise.
2482 2012-10-16  Tom de Vries  <tom@codesourcery.com>
2484         * expr.c (move_by_pieces, move_by_pieces_ninsns, can_store_by_pieces)
2485         (store_by_pieces_1): Don't enter loop when no more data is left.
2487 2012-10-16  Joern Rennecke  <joern.rennecke@embecosm.com>
2489         * loop-doloop.c (doloop_modify): Pass doloop_end pattern to
2490         gen_doloop_begin.
2491         (doloop_optimize): Pass flag to indicate if loop is entered at top
2492         to gen_doloop_end.
2493         * config/arm/thumb2.md (doloop_end): Accept extra operand.
2494         * config/bfin/bfin.md (doloop_end): Likewise.
2495         * config/c6x/c6x.md (doloop_end): Likewise.
2496         * config/ia64/ia64.md (doloop_end): Likewise.
2497         * config/mep/mep.md (doloop_begin, doloop_end): Likewise.
2498         * config/rs6000/rs6000.md (doloop_end): Likewise.
2499         * config/s390/s390.md (doloop_end): Likewise.
2500         * config/sh/sh.md (doloop_end): Likewise.
2501         * config/spu/spu.md (doloop_end): Likewise.
2502         * config/tilegx/tilegx.md (doloop_end): Likewise.
2503         * config/tilepro/tilepro.md (doloop_end): Likewise.
2504         * doc/md.texi (doloop_end): Document new operand.
2505         * basic-block.h (contains_no_active_insn_p): Declare.
2506         * cfgrtl.c (contains_no_active_insn_p): New function, factored
2507         out of ...
2508         (forwarder_block_p): ... here.
2510 2012-10-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2512         PR c/53063
2513         PR c/40989
2514         * doc/options.texi (EnabledBy): Document new form.
2515         * optc-gen.awk: Handle new form of EnabledBy.
2516         * common.opt (Wunused-but-set-parameter): Use EnabledBy.
2517         (Wunused-parameter): Likewise.
2518         * opts.c (finish_options): Do not handle them explicitly.
2519         * opt-functions.awk (search_var_name): New.
2521 2012-10-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2523         PR c/53063
2524         PR c/40989
2525         * optc-gen.awk: Handle new form of LangEnabledBy.
2526         * opts.c (set_Wstrict_aliasing): Declare here. Make static.
2527         * common.opt (Wstrict-aliasing=,Wstrict-overflow=): Do not use Init.
2528         * doc/options.texi (LangEnabledBy): Document new form.
2529         * flags.h (set_Wstrict_aliasing): Do not declare.
2531 2012-10-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2533         * reload.c (find_reloads_subreg_address): Remove FORCE_REPLACE
2534         parameter.  Always replace normal subreg with memory reference
2535         whenever possible.  Return NULL otherwise.
2536         (find_reloads_toplev): Always call find_reloads_subreg_address
2537         for subregs of registers equivalent to a memory location.
2538         Only recurse further if find_reloads_subreg_address fails.
2539         (find_reloads_address_1): Only call find_reloads_subreg_address
2540         for subregs of registers equivalent to a memory location.
2541         Properly handle failure of find_reloads_subreg_address.
2543 2012-10-16  Jakub Jelinek  <jakub@redhat.com>
2545         PR debug/54796
2546         * rtl.h: Document jump flag on VALUE.
2547         * cselib.h (cselib_set_value_sp_based,
2548         cselib_sp_based_value_p): New prototypes.
2549         * alias.c (find_base_term): For cselib_sp_based_value_p
2550         return static_reg_base_value[STACK_POINTER_REGNUM].
2551         * cselib.c (SP_BASED_VALUE_P): Define.
2552         (cselib_set_value_sp_based, cselib_sp_based_value_p): New functions.
2553         * var-tracking.c (add_stores): Call cselib_set_value_sp_based
2554         for not yet preserved VALUEs of sp on sp assignments if
2555         hard_frame_pointer_adjustment != -1.
2556         (vt_initialize): When setting hard_frame_pointer_adjustment,
2557         disassociate sp from its previous value and call
2558         cselib_set_value_sp_based on a new VALUE created for sp.
2560         PR tree-optimization/54889
2561         * tree-vect-stmts.c (vectorizable_load): Add VIEW_CONVERT_EXPR if
2562         ARRAY_REF newref doesn't have compatible type with vectype element
2563         type, use vectype element type for MEM_REF.
2565 2012-10-16  Steven Bosscher  <steven@gcc.gnu.org>
2567         * combine.c (record_dead_and_set_regs): Iterate over hard register set
2568         with a hard_reg_set_iterator.
2569         * cse.c (invalidate_for_call): Likewise.
2570         * gcse.c (compute_hash_table_work): Likewise.
2571         * loop-iv.c (simplify_using_initial_values): Likewise.
2572         * postreload-gcse.c (record_opr_changes): Likewise.
2573         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
2574         * var-tracking.c (dataflow_set_clear_at_call): Likewise.
2576 2012-10-15   Easwaran Raman  <eraman@google.com>
2578         * optabs.c (emit_cmp_and_jump_insn_1): Add a new parameter to
2579         specificy the probability of taking the jump.
2580         (emit_cmp_and_jump_insns): Likewise.
2581         (expand_compare_and_swap_loop): Make the jump predicted not taken.
2582         * dojump.c (do_compare_rtx_and_jump): Remove the code attaching
2583         REG_BR_PROB note and pass probability to emit_cmp_and_jump_insns.
2584         * cfgbuild.c (compute_outgoing_frequencies): Do not guess outgoing
2585         probabilities for branches with more than two successors.
2586         * expr.c (emit_block_move_via_loop): Predict the loop backedge loop
2587         to be highly taken.
2588         (try_casesi): Pass the probability of jumping to the default label.
2589         (try_tablejump): Likewise.
2590         (do_tablejump): Likewise.
2591         * expr.h (try_tablejump): Add a new parameter.
2592         (try_casesi): Likewise.
2593         (emit_cmp_and_jump_insns): Add probability as default parameter with a
2594         default value of -1.
2595         * except.c (sjlj_emit_function_enter): Pass probability to
2596         emit_cmp_and_jump_insns.
2597         * stmt.c (case_node): Add new fields PROB and SUBTREE_PROB.
2598         (do_jump_if_equal): Pass probability for REG_BR_PROB note.
2599         (add_case_node): Pass estimated probability of jumping to the case
2600         label.
2601         (emit_case_decision_tree): Pass default_prob to emit_case_nodes.
2602         (get_outgoing_edge_probs): New function.
2603         (conditional_probability): Likewise.
2604         (reset_out_edges_aux): Likewise.
2605         (compute_cases_per_edge): Likewise.
2606         (emit_case_dispatch_table): Update probabilities of edges coming out
2607         of the switch statement.
2608         (expand_case): Compute and propagate default edge probability to
2609         emit_case_dispatch_table.
2610         (expand_sjlj_dispatch_table): Update calls to add_case_node and
2611         emit_case_dispatch_table.
2612         (balance_case_nodes): Update subtree_prob values.
2613         (emit_case_nodes): Compute edge probabilities and add pass them to
2614         emit_cmp_and_jump_insns.
2616 2012-10-15  Oleg Endo  <olegendo@gcc.gnu.org>
2618         PR target/51244
2619         * config/sh/sh-protos.h (set_of_reg): New struct.
2620         (sh_find_set_of_reg, sh_is_logical_t_store_expr,
2621         sh_try_omit_signzero_extend):  Declare...
2622         * config/sh/sh.c (sh_find_set_of_reg, sh_is_logical_t_store_expr,
2623         sh_try_omit_signzero_extend): ...these new functions.
2624         * config/sh/sh.md (*logical_op_t): New insn_and_split.
2625         (*zero_extend<mode>si2_compact): Use sh_try_omit_signzero_extend
2626         in splitter.
2627         (*extend<mode>si2_compact_reg): Convert to insn_and_split.
2628         Use sh_try_omit_signzero_extend in splitter.
2629         (*mov<mode>_reg_reg): Disallow t_reg_operand as operand 1.
2630         (*cbranch_t): Rewrite combine part in splitter using new
2631         sh_find_set_of_reg function.
2633 2012-10-15  Oleg Endo  <olegendo@gcc.gnu.org>
2635         PR target/54760
2636         * config/sh/sh.c (sh_find_base_reg_disp): Stop searching insns when
2637         hitting a call insn if GBR is marked as call used.
2638         * config/sh/iterators.md (QIHISIDI): New mode iterator.
2639         * config/sh/predicates.md (gbr_address_mem): New predicate.
2640         * config/sh/sh.md (*movdi_gbr_load, *movdi_gbr_store): New
2641         insn_and_split.  Use QIHISIDI instead of QIHISI in unnamed GBR
2642         addressing splits.
2644 2012-10-15  Oleg Endo  <olegendo@gcc.gnu.org>
2646         * config/sh/sh.c: Update function attribute comments.
2647         * doc/extend.texi (function_vector): Rephrase SH2A specific part.
2648         (nosave_low_regs, renesas, trapa_handler): Document SH specific
2649         attributes.
2650         (sp_switch, trap_exit): Add to index.
2652 2012-10-15  Matthias Klose  <doko@ubuntu.com>
2654         * config.gcc: Match arm*-*-linux-* for ARM Linux/GNU.
2655         * doc/install.texi: Use arm-*-*linux-* instead of arm-*-*linux-gnueabi.
2657 2012-10-15  Uros Bizjak  <ubizjak@gmail.com>
2659         * config/i386/sse.md (UNSPEC_MOVU): Remove.
2660         (UNSPEC_LOADU): New.
2661         (UNSPEC_STOREU): Ditto.
2662         (<sse>_movu<ssemodesuffix><avxsizesuffix>): Split to ...
2663         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): ... this and ...
2664         (<sse>_storeu<ssemodesuffix><avxsizesuffix>) ... this.
2665         (<sse2>_movdqu<avxsizesuffix>): Split to ...
2666         (<sse2>_loaddqu<avxsizesuffix>): ... this and ...
2667         (<sse2>_storedqu<avxsizesuffix>): ... this.
2668         (*sse4_2_pcmpestr_unaligned): Update.
2669         (*sse4_2_pcmpistr_unaligned): Ditto.
2671         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign): Use
2672         gen_avx_load{dqu,ups,upd}256 to load from unaligned memory and
2673         gen_avx_store{dqu,ups,upd}256 to store to unaligned memory.
2674         (ix86_expand_vector_move_misalign): Use gen_sse_loadups or
2675         gen_sse2_load{dqu,upd} to load from unaligned memory and
2676         gen_sse_loadups or gen_sse2_store{dqu,upd}256 to store to
2677         unaligned memory.
2678         (struct builtin_description bdesc_spec) <IX86_BUILTIN_LOADUPS>:
2679         Use CODE_FOR_sse_loadups.
2680         <IX86_BUILTIN_LOADUPD>: Use CODE_FOR_sse2_loadupd.
2681         <IX86_BUILTIN_LOADDQU>: Use CODE_FOR_sse2_loaddqu.
2682         <IX86_BUILTIN_STOREUPS>: Use CODE_FOR_sse_storeups.
2683         <IX86_BUILTIN_STOREUPD>: Use CODE_FOR_sse2_storeupd.
2684         <IX86_BUILTIN_STOREDQU>: Use CODE_FOR_sse2_storedqu.
2685         <IX86_BUILTIN_LOADUPS256>: Use CODE_FOR_avx_loadups256.
2686         <IX86_BUILTIN_LOADUPD256>: Use CODE_FOR_avx_loadupd256.
2687         <IX86_BUILTIN_LOADDQU256>: Use CODE_FOR_avx_loaddqu256.
2688         <IX86_BUILTIN_STOREUPS256>: Use CODE_FOR_avx_storeups256.
2689         <IX86_BUILTIN_STOREUPD256>: Use CODE_FOR_avx_storeupd256.
2690         <IX86_BUILTIN_STOREDQU256>: Use CODE_FOR_avx_storedqu256.
2692 2012-10-15  Dodji Seketeli  <dodji@redhat.com>
2694         * alias.c: Cleanup comments.
2696 2012-10-15  Marc Glisse  <marc.glisse@inria.fr>
2698         PR tree-optimization/54915
2699         * tree-ssa-forwprop.c (simplify_vector_constructor): Check
2700         argument's type.
2702 2012-10-15  Richard Biener  <rguenther@suse.de>
2704         * data-streamer.h (bp_pack_string_with_length): New function.
2705         (bp_pack_string): Likewise.
2706         (bp_unpack_indexed_string): Likewise.
2707         (bp_unpack_string): Likewise.
2708         * data-streamer-out.c (bp_pack_string_with_length): Likewise.
2709         (bp_pack_string): Likewise.
2710         * data-streamer-in.c (bp_unpack_indexed_string): Likewise.
2711         (bp_unpack_string): Likewise.
2712         * tree-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
2713         Pack TRANSLATION_UNIT_LANGUAGE here, not ...
2714         (write_ts_translation_unit_decl_tree_pointers): ... here.  Remove.
2715         (streamer_pack_tree_bitfields): Adjust.
2716         (streamer_write_tree_body): Likewise.
2717         * tree-streamer-in.c (unpack_ts_translation_unit_decl_value_fields):
2718         Unpack TRANSLATION_UNIT_LANGUAGE here, not ...
2719         (lto_input_ts_translation_unit_decl_tree_pointers): ... here.  Remove.
2720         (unpack_value_fields): Adjust.
2721         (streamer_read_tree_body): Likewise.
2723 2012-10-15  J"orn Rennecke  <joern.rennecke@arc.com>
2725         * genoutput.c (process_template): Process '*' in '@' alternatives.
2726         * doc/md.texi (node Output Statement): Provide example for the above.
2728 2012-10-15  Richard Guenther  <rguenther@suse.de>
2730         PR tree-optimization/54920
2731         * tree-ssa-pre.c (create_expression_by_pieces): Properly
2732         allocate temporary storage for all NARY elements.
2734 2012-10-15  Joern Rennecke  <joern.rennecke@embecosm.com>
2736         * web.c (union_match_dups): Properly handle OP_INOUT match_dups.
2738 2012-10-15  Eric Botcazou  <ebotcazou@adacore.com>
2740         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Do not unnecessarily
2741         copy the object in the MEM_P case.
2743 2012-10-15  Richard Guenther  <rguenther@suse.de>
2745         * tree-streamer-out.c (streamer_pack_tree_bitfields): Back
2746         BINFO_BASE_ACCESSES and CONSTRUCTOR lengths here.
2747         (streamer_write_chain): Write TREE_CHAIN as null-terminated list.
2748         (write_ts_exp_tree_pointers): Adjust.
2749         (write_ts_binfo_tree_pointers): Likewise.
2750         (write_ts_constructor_tree_pointers): Likewise.
2751         * tree-streamer-in.c (streamer_read_chain): Read TREE_CHAIN as
2752         null-terminated list.
2753         (unpack_value_fields): Unpack BINFO_BASE_ACCESSES and
2754         CONSTRUCTOR lengths and materialize the arrays.
2755         (lto_input_ts_exp_tree_pointers): Adjust.
2756         (lto_input_ts_binfo_tree_pointers): Likewise.
2757         (lto_input_ts_constructor_tree_pointers): Likewise.
2759 2012-10-14  Hans-Peter Nilsson  <hp@bitrange.com>
2761         * config/mmix/mmix.c (mmix_opposite_regno): Handle the
2762         return-value register too.
2764 2012-10-14  Steven Bosscher  <steven@gcc.gnu.org>
2766         PR rtl-optimization/38711
2767         * df.h (df_get_live_out, df_get_live_in): Make static inline functions.
2768         * df-problems.c (df_get_live_out, df_get_live_in): Moved to df.h.
2769         * ira-lives.c (process_bb_node_lives): Use df_get_live_out instead of
2770         DF_LR_OUT.
2771         * ira-build.c (create_bb_allocnos): Likewise.
2772         (create_loop_allocnos): Likewise, and use df_get_live_in instead of
2773         DF_LR_IN.
2774         * ira-emit.c (generate_edge_moves): Likewise.
2775         (add_ranges_and_copies): Likewise.
2776         * ira-color.c (ira_loop_edge_freq): Use df_get_live_out instead of
2777         DF_LR_OUT, and df_get_live_in instead of DF_LR_IN.
2778         * ira.c (mark_elimination): Update DF_LR and DF_LIVE.
2779         (build_insn_chain): Use df_get_live_out instead of DF_LR_OUT.
2780         (do_reload): Remove the DF_LIVE problem for -O1.
2782 2012-10-14  Steven Bosscher  <steven@gcc.gnu.org>
2784         PR rtl-optimization/54919
2785         * loop-unroll.c (struct var_to_expand): Remove accum_pos field.
2786         (analyze_insn_to_expand_var): Do not record accum_pos.
2787         (expand_var_during_unrolling): Use validate_replace_rtx_group to
2788         perform replacement of all references to SET_DEST (set) with the
2789         new register, including references in REG_EQUAL notes.
2790         (insert_var_expansion_initialization): Insert initializatio insns
2791         at the bottom of the pre-header of the loop.
2793 2012-10-14  Jan Hubicka  <jh@suse.cz>
2795         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
2796         predict loops with multiple exits realistically.
2797         * cfgloopanal.c (single_likely_exit): New function.
2799 2012-10-14  Uros Bizjak  <ubizjak@gmail.com>
2801         * config/alpha/alpha.md: Remove empty predicates and/or constraints.
2802         * config/alpha/sync.md: Ditto.
2804 2012-10-13  Uros Bizjak  <ubizjak@gmail.com>
2806         * config/alpha/alpha.md (I24MODE): New mode iterator.
2807         (any_divmod): New code iterator.
2808         (<code>si3): Macroize expander from {div,mod,udiv,umod}si3 using
2809         any_divmod code iterator.
2810         (<code>si3): Macroize expander from {div,mod,udiv,umod}di3 using
2811         any_divmod code iterator.
2812         (extendqi<mode>2): Macroize insn from extendqi{hi,si}2 using
2813         I24MODE mode iterator.
2814         (unaligned_store<mode>): Macroize expander from unaligned_store{qi,hi}
2815         using I12MODE mode iterator.
2816         (mov<mode>): Macroize expander from mov{qi,hi} using
2817         I12MODE mode iterator.
2819 2012-10-13  Eric Botcazou  <ebotcazou@adacore.com>
2821         PR rtl-optimization/54871
2822         * loop-iv.c (simplify_using_initial_values): When scanning previous
2823         basic blocks, prune the recorded conditions if the current insn was
2824         not used to make a replacement.
2826         * loop-unroll.c (decide_unroll_constant_iterations): Clean up message.
2827         (unroll_loop_constant_iterations): Clarify head comment.
2828         (decide_unroll_runtime_iterations): Clean up message.
2829         (unroll_loop_runtime_iterations): Clarify head comment.
2830         (decide_peel_simple): Clean up message.
2831         (peel_loop_simple): Clarify head comment.
2832         (decide_unroll_stupid): Clean up message.
2833         (unroll_loop_stupid): Clarify head comment.
2835 2012-10-13  Andreas Schwab  <schwab@linux-m68k.org>
2837         PR gcov-profile/44728
2838         * gcov.c (create_file_names): When stripping extension only look
2839         at base name.
2841 2012-10-13  Jan Hubicka  <jh@suse.cz>
2843         * loop-iv.c (determine_max_iter): Fix handling of AND.
2844         (iv_number_of_iterations): Record upper bounds as unsigned
2845         values.
2847 2012-10-13  Steven Bosscher  <steven@gcc.gnu.org>
2849         * ira.c (ira): Set current_loops to &ira_loops before recording
2850         loop exits.  Release recorded exits and loops early.
2852 2012-10-13  Chung-Lin Tang  <cltang@codesourcery.com>
2854         * builtins.c (expand_builtin_set_thread_pointer): Use
2855         create_input_operand() instead of create_fixed_operand().
2857 2012-10-13  Uros Bizjak  <ubizjak@gmail.com>
2859         * config/alpha/alpha.md (FMODE): New mode iterator.
2860         (modesuffix): Handle SF and DF modes.
2861         (opmode): New mode attribute.
2862         (abs<mode>2): Macroize insn from abs{sf,df}2 using FMODE mode iterator.
2863         (*nabs<mode>2): Macroize insn from *nabs{sf,df}2 using
2864         FMODE mode iterator.
2865         (neg<mode>2): Macroize insn from neg{sf,df}2 using FMODE mode iterator.
2866         (copysign<mode>3): Macroize insn from copysign{sf,df}3 using
2867         FMODE mode iterator.
2868         (*ncopysign<mode>3): Macroize insn from *ncopysign{sf,df}3 using
2869         FMODE mode iterator.
2870         (*add<mode>3_ieee): Macroize insn from *add{sf,df}_ieee using
2871         FMODE mode iterator.
2872         (add<mode>3): Macroize insn from add{sf,df}3 using FMODE mode iterator.
2873         (*sub<mode>3_ieee): Macroize insn from *sub{sf,df}3_ieee using
2874         FMODE mode iterator.
2875         (sub<mode>3): Macroize insn from sub{sf,df}3 using FMODE mode iterator.
2876         (*mul<mode>3_ieee): Macroize insn from *mul{sf,df}3_ieee using
2877         FMODE mode iterator.
2878         (mul<mode>3): Macroize insn from mul{sf,df}3 using FMODE mode iterator.
2879         (*div<mode>3_ieee): Macroize insn from *div{sf,df}3_ieee using
2880         FMODE mode iterator.
2881         (div<mode>3): Macroize insn from div{sf,df}3 using FMODE mode iterator.
2882         (*sqrt<mode>2_ieee): Macroize insn from *sqrt{sf,df}2_ieee using
2883         FMODE mode iterator.
2884         (sqrt<mode>2): Macroize insn from sqrt{sf,df}2
2885         using FMODE mode iterator.
2886         (*mov<mode>cc_internal): Macroize insn from *mov{sf,df}cc_internal
2887         using FMODE mode iterator.
2888         (mov<mode>cc): Macroize expander from mov{sf,df}cc
2889         using FMODE mode iterator.
2891 2012-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
2893         PR target/54602
2894         * config/sh/sh.md: Correct define_delay for return insns.
2895         (*movsi_pop): Delete.
2897 2012-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
2899         PR target/54680
2900         * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_int2sf): Fix swapped
2901         comments.
2902         * config/sh/predicates.md (fpul_operand): Add comment.
2903         (fpul_fsca_operand, fsca_scale_factor): New predicates.
2904         * config/sh/sh.md (fsca): Move below sincossf3 expander.  Convert to
2905         insn_and_split.  Use fpul_fsca_operand and fsca_scale_factor
2906         predicates.  Simplify fpul operand in splitter.
2908 2012-10-12  Jan Hubicka <jh@suse.cz>
2910         * tree-ssa-threadupdate.c (def_split_header_continue_p): Do not
2911         escape the loop.
2913 2012-10-12  Jan Hubicka <jh@suse.cz>
2915         * web.c (web_main): Do not set DF_RD_PRUNE_DEAD_DEFS flag.
2917 2012-10-12  Aaron Gray <aaronngray.lists@gmail.com>
2918             Diego Novillo <dnovillo@google.com>
2920         * gengtype-lex.l: Support for C++ single line comments.
2921         Support for classes.
2922         (CXX_KEYWORD): New.  Support C++ keywords inline, public,
2923         protected, private, template, operator, friend, &, ~.
2924         (TYPEDEF): New.  Support typedef.
2925         * gengtype-parser.c: updated 'token_names[]'
2926         (direct_declarator): Add support for parsing functions and ctors.
2928 2012-10-12  Diego Novillo  <dnovillo@google.com>
2930         * doc/gty.texi: Document C++ limitations in gengtype.
2931         * gengtype-lex.l (CID): Rename from ID.
2932         (ID): Include scoping '::' as part of the identifier name.
2933         * gengtype-parse.c (token_names): Update.
2934         (token_value_format): Update.
2935         (consume_until_eos): Rename from consume_until_semi.
2936         Remove unused argument IMMEDIATE.  Update all callers.
2937         Also consider '}' as a finalizer.
2938         (consume_until_comma_or_eos): Rename from
2939         consume_until_comma_or_semi.
2940         Remove unused argument IMMEDIATE.  Update all callers.
2941         Also consider '}' as a finalizer.
2942         (direct_declarator): Add documentation on ctor support.
2943         Add argument IN_STRUCT.
2944         If the token following ID is a '(', consider ID a
2945         function and return NULL.
2946         If the token following '(' is not a '*', and IN_STRUCT is true,
2947         conclude that this is a ctor and return NULL.
2948         If the token is IGNORABLE_CXX_KEYWORD, return NULL.
2949         (inner_declarator): Add argument IN_STRUCT.
2950         Update all callers.
2951         (declarator): Add argument IN_STRUCT with default value false.
2952         Update all callers.
2953         (type): Document argument NESTED.
2954         Skip over C++ inheritance specifiers.
2955         If a token TYPEDEF is found, emit an error.
2956         If an enum is found inside a class/structure, emit an error.
2957         (typedefs, structures, param_structs, variables): Initialize.
2958         (new_structure): Do not complain about duplicate
2959         structures if S has a line location set.
2960         * gengtype-state.c (write_state_type): Remove default handler.
2961         Add handler for TYPE_NONE.
2962         (read_state_scalar_char_type):
2963         * gengtype.c: Fix spacing.
2964         * gengtype.h (enum gty_token): Add name.  Add token
2965         IGNORABLE_CXX_KEYWORD.
2967 2012-10-12  Chung-Lin Tang  <cltang@codesourcery.com>
2969         * config/arm/arm.md (get_thread_pointersi): Moved to place with
2970         other TLS related patterns.
2972 2012-10-12  Richard Biener  <rguenther@suse.de>
2974         * tree-streamer-out.c (pack_ts_target_option): Rename from ...
2975         (write_ts_target_option): ... this.
2976         (pack_ts_optimization): Rename from ...
2977         (write_ts_optimization): ... this.
2978         (streamer_pack_tree_bitfields): Pack them in the bitfield section ...
2979         (streamer_write_tree_body): ... not here.
2980         * tree-streamer-in.c (unpack_ts_target_option): Rename from ...
2981         (lto_input_ts_target_option): ... this.
2982         (unpack_ts_optimization): Rename from ...
2983         (lto_input_ts_optimization): ... this.
2984         (unpack_value_fields): Unpack them from the bitfield section ...
2985         (streamer_read_tree_body): ... not from here.
2987 2012-10-12  Uros Bizjak  <ubizjak@gmail.com>
2989         * config/alpha/alpha.md (vecmodesuffix): New mode attribute.
2990         (modesuffix): Handle V8QI and V4HI modes.
2991         (any_maxmin): New code iterator.
2992         (maxmin): New code attribute.
2993         (<code><mode>3): Macroize insn from {smax,smin,umax,umin}{qi,hi}3
2994         using any_maxmin code iterator and I12MODE mode iterator.
2995         (<code><mode>3): Macroize insn from {smax,smin,umax,umin}{v8qi,v4hi}3
2996         using any_maxmin code iterator and VEC12 mode iterator.
2998 2012-10-12  Marc Glisse  <marc.glisse@inria.fr>
3000         * optabs.c (vector_compare_rtx): Change prototype.
3001         (expand_vec_cond_expr): Handle VEC_COND_EXPR whose first operand
3002         is not a comparison.
3003         * gimplify.c (gimplify_expr): Handle VEC_COND_EXPR.
3005 2012-10-12  Richard Biener  <rguenther@suse.de>
3007         PR tree-optimization/54894
3008         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
3009         Handle over-aligned scalar types properly.
3011 2012-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
3013         PR target/54760
3014         * config/sh/sh.c (bdesc): Remove thread pointer built-ins.
3015         * config/sh/sh.md (get_thread_pointer, set_thread_pointer): Append mode
3016         name 'si'.
3018 2012-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
3020         PR target/51244
3021         * config/sh/sh.md (negsi_cond, negdi_cond, stack_protect_test): Remove
3022         get_t_reg_rtx when invoking gen_branch_true or gen_branch_false.
3023         (*zero_extend<mode>si2_compact): Convert to insn_and_split.  Convert
3024         zero extensions of T bit stores to reg moves in splitter.  Remove
3025         obsolete unnamed peephole2 that caught zero extensions after negc T bit
3026         stores.
3027         (*branch_true_eq, *branch_false_ne): Delete.
3028         (branch_true, branch_false): Convert insn to expander.  Move actual
3029         insn logic to...
3030         (*cbranch_t): ...this new insn_and_split.  Try to find preceding
3031         redundant T bit stores and tests and combine them with the conditional
3032         branch if possible in the splitter.
3033         (movrt_xor, *movt_movrt): New insn_and_split.
3034         * config/sh/predicates.md (cbranch_treg_value): New predicate.
3035         * config/sh/sh-protos.h (sh_eval_treg_value): Forward declare...
3036         * config/sh/sh.c (sh_eval_treg_value): ...this new function.
3037         (expand_cbranchsi4, expand_cbranchdi4): Remove get_t_reg_rtx
3038         when invoking gen_branch_true or gen_branch_false.
3040 2012-10-11  Uros Bizjak  <ubizjak@gmail.com>
3042         * config/alpha/alpha.md (IMODE): New mode iterator.
3043         (I124MODE): Ditto.
3044         (I248MODE): Ditto.
3045         (modesuffix): Handle QI and HI modes.
3046         (zero_extendqi<mode>2): Macroize insn from zero_extendqi{hi,si,di}2
3047         using I248MODE mode iterator.
3048         (zero_extendhi<mode>2): Macroize insn from zero_extendhi{si,di}2
3049         using I48MODE mode iterator.
3050         (andnot<mode>3): Macroize insn from andnot{si,di}3 using
3051         I48MODE mode iterator.
3052         (ins<modesuffix>l_const): Macroize insn from ins{b,w,l}l_const
3053         using I248MODE mode iterator.
3054         (ins<modesuffix>l): Macroize insn from ins{b,w,l}l
3055         using I248MODE mode iterator.
3056         (*mov<mode>cc_internal): Macroize insn from
3057         *mov{qi,hi,si,di}cc_internal using IMODE mode iterator.
3058         (*mov<mode>cc_lbc): Macroize insn from
3059         *mov{qi,hi,si,di}cc_lbc using IMODE mode iterator.
3060         (*mov<mode>cc_lbs): Macroize insn from
3061         *mov{qi,hi,si,di}cc_lbs using IMODE mode iterator.
3062         (mov<mode>cc): Macroize expander from mov{si,di}cc
3063         using I48MODE mode iterator.
3065 2012-10-11  Steven Bosscher  <steven@gcc.gnu.org>
3067         * ira-build.c (ira_loop_tree_body_rev_postorder): New function.
3068         (ira_traverse_loop_tree): Traverse a loop's basic blocks in
3069         reverse post-order of the reversed control-flow direction.
3070         * ira-conflicts.c (ira_build_conflicts): Pass add_copies as
3071         the pre-order function to ira_traverse_loop_tree to preserve
3072         the existing semantics.
3074         * ira-lives.c (remove_some_program_points_and_update_live_ranges):
3075         Squeeze out live range chain elements if their program points are
3076         connected.
3078 2012-10-11  Jakub Jelinek  <jakub@redhat.com>
3080         * tree.def (REDUC_PLUS_EXPR): Fix up comment.
3082         * fold-const.c (fold_unary_loc): Handle REDUC_MIN_EXPR,
3083         REDUC_MAX_EXPR and REDUC_PLUS_EXPR.
3085 2012-10-11  James Lemke  <jwlemke@codesourcery.com>
3087         * config/rs6000/predicates.md (zero_fp_constant): Fix comment.
3088         * config/rs6000/rs6000.md (return_pred): Fix null return.
3089         * config/rs6000/rs6000.c (rs6000_emit_set_const): Fix indentation.
3090         (print_operand): Make FALLTHRU obvious.
3091         (output_cbranch): Correct comment.
3093 2012-10-11  Uros Bizjak  <ubizjak@gmail.com>
3095         * config/alpha/alpha.md (DWI): New mode attribute.
3096         (*sadd<modesuffix>): Macroize insn from *saddl and *saddq using
3097         I48MODE mode iterator.
3098         (addv<mode>3): Macroize insn from addvsi3 and addvdi3 using
3099         I48MODE mode iterator.
3100         (neg<mode>2): Macroize insn from negsi2 and negdi2 using
3101         I48MODE mode iterator.
3102         (negv<mode>2): Macroize insn from negvsi2 and negvdi2 using
3103         I48MODE mode iterator.
3104         (sub<mode>3): Macroize insn from subsi3 and subdi3 using
3105         I48MODE mode iterator.
3106         (*ssub<modesuffix>): Macroize insn from *ssubl and *ssubq using
3107         I48MODE mode iterator.
3108         (subv<mode>3): Macroize insn from subvsi3 and subvdi3 using
3109         I48MODE mode iterator.
3110         (mul<mode>3): Macroize insn from mulsi3 and muldi3 using
3111         I48MODE mode iterator.
3112         (mulv<mode>3): Macroize insn from mulvsi3 and mulvdi3 using
3113         I48MODE mode iterator.
3114         (*iornot<mode>3): Macroize insn from *iornotsi3 and *iornotdi3 using
3115         I48MODE mode iterator.
3116         (*xornot<mode>3): Macroize insn from *xornotsi3 and *xornotdi3 using
3117         I48MODE mode iterator.
3119 2012-10-11  Jason Merrill  <jason@redhat.com>
3121         * configure.ac (gcc_cv_as_aix_ref): Fix typo.
3122         * configure: Regenerate.
3124 2012-10-11  Chung-Lin Tang  <cltang@codesourcery.com>
3126         * builtins.c (expand_builtin_thread_pointer): New.
3127         (expand_builtin_set_thread_pointer): New.
3128         (expand_builtin): Add BUILT_IN_THREAD_POINTER,
3129         BUILT_IN_SET_THREAD_POINTER expand cases.
3130         * builtins.def (BUILT_IN_THREAD_POINTER):
3131         New __builtin_thread_pointer builtin.
3132         (BUILT_IN_SET_THREAD_POINTER):
3133         New __builtin_set_thread_pointer builtin.
3134         * optabs.def (get_thread_pointer,set_thread_pointer):
3135         New standard names.
3136         * doc/md.texi (Standard Names): Document get_thread_pointer and
3137         set_thread_pointer patterns.
3138         * config/alpha/alpha.md (get_thread_pointerdi): Rename from load_tp.
3139         (set_thread_pointerdi): Rename from set_tp.
3140         * config/alpha/alpha.c (alpha_legitimize_address_1): Change
3141         gen_load_tp calls to gen_get_thread_pointerdi.
3142         (alpha_builtin): Remove ALPHA_BUILTIN_THREAD_POINTER,
3143         ALPHA_BUILTIN_SET_THREAD_POINTER.
3144         (code_for_builtin): Remove CODE_FOR_load_tp, CODE_FOR_set_tp.
3145         (alpha_init_builtins): Remove __builtin_thread_pointer,
3146         __builtin_set_thread_pointer machine-specific builtins.
3147         (alpha_expand_builtin_thread_pointer): Add hook function for
3148         TARGET_EXPAND_BUILTIN_THREAD_POINTER.
3149         (alpha_expand_builtin_set_thread_pointer): Add hook function for
3150         TARGET_EXPAND_BUILTIN_SET_THREAD_POINTER.
3151         (alpha_fold_builtin): Remove ALPHA_BUILTIN_THREAD_POINTER,
3152         ALPHA_BUILTIN_SET_THREAD_POINTER cases.
3153         * config/arm/arm.md (get_thread_pointersi): New pattern.
3154         * config/arm/arm-protos.h (arm_load_tp): Add extern declaration.
3155         * config/arm/arm.c (arm_load_tp): Remove static.
3156         (arm_builtins): Remove ARM_BUILTIN_THREAD_POINTER.
3157         (arm_init_tls_builtins): Remove function.
3158         (arm_init_builtins): Remove call to arm_init_tls_builtins().
3159         (arm_expand_builtin): Remove ARM_BUILTIN_THREAD_POINTER case.
3160         * config/mips/mips.md (get_thread_pointer<mode>): New pattern.
3161         * config/mips/mips-protos.h (mips_expand_thread_pointer):
3162         Add extern declaration.
3163         * config/mips/mips.c (mips_expand_thread_pointer):
3164         Renamed from mips_get_tp.
3165         (mips_get_tp): New stub calling mips_expand_thread_pointer.
3166         * config/s390/s390.c (s390_builtin,code_for_builtin_64,
3167         code_for_builtin_31,s390_init_builtins,s390_expand_builtin): Remove.
3168         * config/s390/s390.md (get_tp_64,get_tp_31,set_tp_64,set_tp_31):
3169         Remove.
3170         (get_thread_pointer<mode>,set_thread_pointer<mode>):
3171         New, adapted from removed patterns.
3172         * config/xtensa/xtensa.md (get_thread_pointersi):
3173         Renamed from load_tp.
3174         (set_thread_pointersi): Renamed from set_tp.
3175         * config/xtensa/xtensa.c (xtensa_legitimize_tls_address):
3176         Change gen_load_tp calls to gen_get_thread_pointersi.
3177         (xtensa_builtin): Remove XTENSA_BUILTIN_THREAD_POINTER and
3178         XTENSA_BUILTIN_SET_THREAD_POINTER.
3179         (xtensa_init_builtins): Remove __builtin_thread_pointer,
3180         __builtin_set_thread_pointer machine-specific builtins.
3181         (xtensa_fold_builtin): Remove XTENSA_BUILTIN_THREAD_POINTER,
3182         XTENSA_BUILTIN_SET_THREAD_POINTER cases.
3183         (xtensa_expand_builtin): Remove XTENSA_BUILTIN_THREAD_POINTER,
3184         XTENSA_BUILTIN_SET_THREAD_POINTER cases.
3186 2012-10-11  Marc Glisse  <marc.glisse@inria.fr>
3188         * doc/extend.texi (Vector Extensions): C++ improvements.
3189         * doc/generic.texi (LSHIFT_EXPR, RSHIFT_EXPR): Mixed vector-scalar.
3190         (LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR, NE_EXPR): Specify
3191         the vector case.
3192         (VEC_COND_EXPR): Document it.
3194 2012-10-11  Terry Guo  <terry.guo@arm.com>
3196         * config/arm/arm.c (arm_arch6m): New variable to denote armv6-m
3197         architecture.
3198         * config/arm/arm.h (TARGET_HAVE_DMB): The armv6-m also has DMB
3199         instruction.
3201 2012-10-11  Hans-Peter Nilsson  <hp@bitrange.com>
3203         PR target/54373
3204         * configure.ac (out-of-tree linker .hidden support) Set to "no"
3205         for mmix-knuth-mmixware.
3206         * configure: Regenerate.
3208         * configure.ac (gcc_cv_as_comdat_group_group): Default to no.
3209         * configure: Regenerate.
3211         * acinclude.m4 (_gcc_COMPUTE_GAS_VERSION): Allow a single
3212         character to quote the VERSION= contents.  Sanity-check contents.
3213         * configure.ac ("what linker to use" ld version extraction): Ditto.
3214         * configure: Regenerate.
3216 2012-10-10  Segher Boessenkool  <segher@kernel.crashing.org>
3218         * config/rs6000/rs6000.h (PRINT_OPERAND_PUNCT_VALID_P): Delete '.'.
3220 2012-10-10  Jakub Jelinek  <jakub@redhat.com>
3222         PR tree-optimization/54877
3223         * tree-vect-loop.c (vect_is_simple_reduction_1): For MINUS_EXPR
3224         use make_ssa_name instead of copy_ssa_name.
3226 2012-10-10  Richard Biener  <rguenther@suse.de>
3228         * lto-streamer-in.c (lto_input_location_bitpack): Rename to ...
3229         (lto_input_location): ... this.  Kill original.
3230         (input_eh_region): Adjust.
3231         (input_struct_function_base): Likewise.
3232         (lto_read_tree): Likewise.
3233         * lto-streamer-out.c (lto_output_location_bitpack): Rename to ...
3234         (lto_output_location): ... this.  Kill original.
3235         (lto_write_tree): Adjust.
3236         (output_eh_region): Likewise.
3237         (output_struct_function_base): Likewise.
3238         * lto-streamer.c (lto_streamer_hooks_init): Initialize location hooks.
3239         * lto-streamer.h (lto_input_location): Adjust prototype.
3240         (lto_output_location): Likewise.
3241         * streamer-hooks.h (struct streamer_hooks): Adjust prototype
3242         of input_location and output_location hooks.
3243         (stream_input_location): New define.
3244         (stream_output_location): Likewise.
3245         * tree-streamer-in.c (unpack_ts_block_value_fields): Adjust.
3246         (unpack_value_fields): Likewise.
3247         (streamer_read_tree_bitfields): Likewise.
3248         (lto_input_ts_decl_minimal_tree_pointers): Likewise.
3249         (lto_input_ts_exp_tree_pointers): Likewise.
3250         (lto_input_ts_block_tree_pointers): Likewise.
3251         * tree-streamer-out.c (pack_ts_block_value_fields): Adjust.
3252         (streamer_pack_tree_bitfields): Likewise.
3253         (write_ts_decl_minimal_tree_pointers): Likewise.
3254         (write_ts_exp_tree_pointers): Likewise.
3255         (write_ts_block_tree_pointers): Likewise.
3256         * gimple-streamer-in.c (input_phi): Adjust.
3257         (input_gimple_stmt): Likewise.
3258         * gimple-streamer-out.c (output_phi): Adjust.
3259         (output_gimple_stmt): Likewise.
3260         * tree-streamer.h (streamer_read_tree_bitfields): Adjust prototype.
3261         (streamer_pack_tree_bitfields): Likewise.
3263 2012-10-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
3265         * config/rs6000/rs6000.c (altivec_expand_dst_builtin): Fix signed
3266         vs. unsigned warnings by using enum type for function code.
3267         (paired_expand_builtin): Likewise.
3268         (spe_expand_builtin): Likewise.
3270         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Change
3271         builtin mask, target flags masks type to HOST_WIDE_INT in
3272         preparation for growing the number of ISA switches from 31 to 63.
3274         * config/rs6000/rs6000.opt (rs6000_builtin_mask): Make mask type
3275         HOST_WIDE_INT.
3277         * config/rs6000/rs6000.c (struct builtin_description): Make
3278         builtin mask field HOST_WIDE_INT.  Make target flags field
3279         HOST_WIDE_INT in preparation for growing the # of ISA switches.
3280         (struct rs6000_builtin_info_type): Likewise.
3281         (struct rs6000_ptt): Likewise.
3282         (rs6000_builtin_mask_calculate): Likewise.
3283         (rs6000_invalid_builtin): Likewise.
3284         (rs6000_builtin_decl): Likewise.
3285         (rs6000_common_init_builtins): Likewise.
3286         (rs6000_darwin_file_start): Likewise.
3287         (rs6000_final_prescan_insn): Likewise.
3288         (rs6000_inner_target_options): Likewise.
3289         (build_target_option_node): Likewise.
3290         (rs6000_function_specific_print): Likewise.
3291         (DEBUG_FMT_W): New format for printing HOST_WIDE_INT in hex.
3293         * config/rs6000/rs6000-protos.h (rs6000_builtin_mask_calculate):
3294         Make target flags, builtin masks arguments/return values
3295         HOST_WIDE_INT in preparation for growing the number of ISA from 31
3296         to 63.
3297         (rs6000_target_modify_macros): Likewise.
3298         (rs6000_target_modify_macros_ptr): Likewise.
3300         * config/rs6000/rs6000.c (DEBUG_FMT_ID): Move "-32s" to a separate
3301         define and change DEBUG_FMT_<x> to use it.
3302         (DEBUG_FMT_D): Likewise.
3303         (DEBUG_FMT_S): Likewise.
3304         (DEBUG_FMT_X): Delete, no longer used.
3305         (DEBUG_FMT_W): Likewise.
3306         (DEBUG_FMT_WX): New debug format for printing options in a
3307         friendly fashion.
3308         (rs6000_debug_reg_global): If -mdebug=reg, print all of the
3309         options in target_flags and target_flags_explicit.  Print the
3310         default options for -mcpu=<xxx>, -mtune=<xxx>, and the default
3311         options.  Adjust printing out the builtin options.
3312         (rs6000_option_override_internal): Change printing the builtin
3313         options to use rs6000_print_builtin_options.
3314         (rs6000_function_specific_print): Change to use
3315         rs6000_print_isa_options to print ISA flags.
3316         (rs6000_print_options_internal): New function for expanded
3317         -mdebug=reg option printing to print both the ISA options, and the
3318         builtins that are enabled.
3319         (rs6000_print_isa_options): New function to print the ISA options.
3320         (rs6000_print_builtin_options): New function to print the builtin
3321         functions enabled.
3323 2012-10-10  Jakub Jelinek  <jakub@redhat.com>
3325         PR target/51109
3326         * config/i386/bdver1.md (bdver1-mult): Remove.
3328         PR middle-end/54879
3329         * combine.c (count_rtxs): Use RTX_BIN_ARITH resp. RTX_COMM_ARITH
3330         instead of '2' resp. 'c' for GET_RTX_CLASS comparisons.
3332         PR middle-end/54862
3333         * simplify-rtx.c (simplify_truncation): Compare UINTVAL instead of
3334         INTVAL of second argument with precision resp. op_precision.
3336 2012-10-10  Dodji Seketeli  <dodji@redhat.com>
3338         PR middle-end/54860 - Make sure attributes hash table is created
3339         * attribs.c (register_scoped_attributes): Ensure the attribute
3340         hash table is created.
3342 2012-10-10  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
3344         PR target/51109
3345         * config/i386/bdver1.md (bdver1_int): Automaton has been
3346         split to reduce state transitions.
3348 2012-10-10  Richard Biener  <rguenther@suse.de>
3350         PR middle-end/54876
3351         * ipa-prop.c (prune_expression_for_jf_1): New function.
3352         (prune_expression_for_jf): Clear EXPR_LOCATION for all
3353         sub-expressions as well.
3355 2012-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3357         * config.gcc: Enable zEC12 for with-arch and with-tune
3358         configure switches.
3359         * common/config/s390/s390-common.c (processor_flags_table): Add
3360         zEC12 entry.
3361         * config/s390/2827.md: New file.
3362         * config/s390/s390-opts.h (enum processor_type): Add
3363         PROCESSOR_2827_ZEC12.
3364         * config/s390/s390.h (enum processor_flags): Add PF_ZEC12.
3365         (TARGET_CPU_ZEC12, TARGET_ZEC12): New macro definitions.
3366         * config/s390/s390.c (zEC12_cost): New definition.
3367         (s390_option_override): Set costs for zEC12.
3368         Set parameter defaults for zEC12.
3369         (legitimate_reload_fp_constant_p): Adjust comment.
3370         (preferred_la_operand_p): Adjust comment.
3371         (s390_expand_insv): Generate insv pattern without CC clobber for zEC12.
3372         (s390_adjust_priority): Add zEC12 check.
3373         (s390_issue_rate): Return 2 for zEC12.
3374         (s390_reorg): Enable code optimizations for zEC12.
3375         (s390_sched_reorder): Reorder insns according to OOO attributes.
3376         (s390_get_sched_attrmask): New function.
3377         (s390_sched_score): New function.
3378         (s390_sched_variable_issue): Update s390_sched_state.
3379         (s390_sched_init): Reset s390_sched_state.
3380         (s390_loop_unroll_adjust): Enable for zEC12.
3381         * config/s390/s390.opt: Add zEC12 processor type value.
3382         * config/s390/s390.md: Enable mnemonic attribute.
3383         (attr cpu, cpu_facility): Add zEC12.
3384         Include 2827.md.
3385         ("*insv<mode>_zEC12", "*insv<mode>_zEC12_noshift")
3386         ("*load_and_trap<mode>"): New insn definition.
3387         ("*cmp_and_trap_unsigned_int<mode>"): Add clt and clgt.
3389 2012-10-09  David S. Miller  <davem@davemloft.net>
3391         * config/sparc/sparc.md (type attribute): Add new types 'visl'
3392         (VIS logical operation), 'vismv' (VIS move), and 'pdistn'.  Rename
3393         'fgm_pdist' to 'pdist'.
3394         (*movsi_insn): Use vismv and visl.
3395         (*movdi_insn_sp64): Likewise.
3396         (*movsf_insn): Likewise.
3397         (*movdf_insn_sp64): Likewise.
3398         (*mov<VM32:mode>_insn): Likewise, use 'fsrc2s' instead of 'fsrc1s'.
3399         (*mov<VM64:mode>_insn_sp64): Likewise, use 'fsrc2s'
3400         instead of 'fsrc1s'.
3401         (*mov<VM64:mode>_insn_sp32): Likewise, use 'fsrc2s'
3402         instead of 'fsrc1s'.
3403         (VIS logical instructions): Mark as visl.
3404         (pdist_vis): Use 'pdist'.
3405         (pditsn<mode>_vis): Use 'pdistn'.
3406         * config/sparc/ultra1_2.md: Adjust for new VIS attribute types.
3407         * config/sparc/ultra3.md: Likewise.
3408         * config/sparc/niagara.md: Likewise.
3409         * config/sparc/niagara2.md: Likewise.
3410         * config/sparc/niagara4.md: Add cpu units "n4_slot2" and
3411         "n4_load_store" for special store scheduling.  Use them in load
3412         and store reservations.  Integer divide and multiply can only
3413         issue in slot-1.  Represent 1-cycle VIS moves and 3-cycle VIS
3414         logic operations.
3416 2012-10-10  Dehao Chen  <dehao@google.com>
3418         * tree-eh.c (lower_try_finally_onedest): Set correct location for
3419         deallocator.
3420         * gimplify.c (gimplify_expr): Set correct location for TRY stmt.
3422 2012-10-10  Oleg Endo  <olegendo@gcc.gnu.org>
3424         PR target/52480
3425         * config/sh/sh.md (extv, extzv): Check that operands[3] is zero,
3426         regardless of the endianness.
3428 2012-10-09  Lawrence Crowl  <crowl@google.com>
3430         * Makefile.in (fold-const.o): Add depencence on hash-table.h.
3431         (dse.o): Likewise.
3432         (cfg.o): Likewise.
3433         * fold-const.c (fold_checksum_tree): Change to new
3434         type-safe hash table.
3435         * (print_fold_checksum): Likewise.
3436         * cfg.c (var bb_original): Likewise.
3437         * (var bb_copy): Likewise.
3438         * (var loop_copy): Likewise.
3439         * hash-table.h (template hash_table): Constify parameters for find...
3440         and remove_elt... member functions.
3441         (hash_table::empty) Correct size expression.
3442         (hash_table::clear_slot) Correct deleted entry assignment.
3443         * dse.c (var rtx_group_table): Change to new type-safe hash table.
3445 2012-10-09  Steven Bosscher  <steven@gcc.gnu.org>
3447         * basic-block. (profile_record): New struct, moved from passes.c.
3448         * cfghooks.h (struct cfg_hooks) <account_profile_record>: New hook.
3449         (account_profile_record): New prototype.
3450         * cfghooks.c (account_profile_record): New function.
3451         * tree-cfg.c (gimple_account_profile_record): New function
3452         (gimple_cfg_hooks): Add it.
3453         * cfgrtl.c (rtl_account_profile_record): New function
3454         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Add it.
3455         * passes.c (check_profile_consistency): Simplify.  Move IR-dependent
3456         code around using cfghooks machinery.
3458 2012-10-09  Oleg Endo  <olegendo@gcc.gnu.org>
3460         PR target/54760
3461         * doc/extend.texi (Target Builtins): Add SH built-in section.
3462         Document __builtin_thread_pointer and __builtin_set_thread_pointer.
3464 2012-10-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
3466         PR middle-end/53397
3467         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
3468         Perform non constant step prefetching in inner loop, only
3469         when it is invariant in the entire loop nest.
3470         * tree-ssa-loop-prefetch.c (dump_mem_details): New function to dump
3471         base, step and delta values of memeory reference analysed for
3472         prefetching.
3473         * tree-ssa-loop-prefetch.c (dump_mem_ref): Call dump_mem_details
3474         to print base, step and delta values of memory reference.
3475         * cfgloop.h (loop_outermost): New function that returns outermost
3476         loop for a given loop in a loop nest.
3478 2012-10-09  Richard Guenther  <rguenther@suse.de>
3480         PR middle-end/54837
3481         * cfgexpand.c (expand_debug_source_expr): Move checking
3482         code conditional on a found decl_debug_args vector.
3484 2012-10-09  Richard Guenther  <rguenther@suse.de>
3486         * tree-streamer.c (streamer_tree_cache_get): Move ...
3487         * tree-streamer.h (streamer_tree_cache_get): ... here as inline.
3489 2012-10-09  Jan Hubicka  <jh@suse.cz>
3491         * loop-unroll.c (unroll_loop_constant_iterations): Add
3492         update of loop->nb_iterations_upper_bound I missed in my previous
3493         commit; use TRUNC_DIV_EXPR instead of FLOOR_DIV_EXPR to divide
3494         iteration count.
3495         (decide_unroll_runtime_iterations): Avoid overflow.
3496         (unroll_loop_runtime_iterations): Use TRUNC_DIV_EXPR instead of
3497         FLOOR_DIV_EXPR to update iteration bounds.
3498         (decide_peel_simple): Avoid integer overflow when deciding
3499         on number of peelings.
3500         (decide_unroll_stupid): Likewise.
3502 2012-10-09  Tobias Burnus  <burnus@net-b.de>
3504         * lto-cgraph.c (input_node_opt_summary): Remove unused code.
3505         * lto-opts.c (append_to_collect_gcc_options): Fix condition.
3506         * lto-symtab.c (lto_cgraph_replace_node): Don't xstrdup string
3507         which is passed to fprintf.
3509 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
3511         PR c++/54194
3512         * tree.h: Add EXPR_LOC_OR_LOC.
3514 2012-10-09  Nick Clifton  <nickc@redhat.com>
3516         PR rtl-optimization/54739
3517         * config/mcore/mcore.md: (anddi3, iordi3, xordi3): Delete patterns.
3519         PR target/54661
3520         * config/mcore/mcore.c (mcore_output_movedouble): Fix typo.
3522 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
3524         PR c++/54427
3525         * fold-const.c (fold_binary_loc): Use build_zero_cst instead of
3526         build_int_cst for a potential vector.
3528 2012-10-08  Uros Bizjak  <ubizjak@gmail.com>
3530         * config/i386/atom.md (atom_sse_4): Merge atom_sse_attr attibutes.
3531         (atom_sse_5): Ditto.
3533 2012-10-08  Marc Glisse  <marc.glisse@inria.fr>
3535         PR target/54400
3536         * config/i386/i386.md (type attribute): Add sseadd1.
3537         (unit attribute): Add support for sseadd1.
3538         (memory attribute): Likewise.
3539         * config/i386/athlon.md: Likewise.
3540         * config/i386/core2.md: Likewise.
3541         * config/i386/atom.md: Likewise.
3542         * config/i386/ppro.md: Likewise.
3543         * config/i386/bdver1.md: Likewise.
3544         * config/i386/sse.md (sse3_h<plusminus_insn>v2df3): Split into...
3545         (sse3_haddv2df3): ... expander.
3546         (*sse3_haddv2df3): ... define_insn. Accept permuted operands.
3547         (sse3_hsubv2df3): ... define_insn.
3548         (*sse3_haddv2df3_low): New define_insn.
3549         (*sse3_hsubv2df3_low): New define_insn.
3551 2012-10-08  Jan Hubicka  <jh@suse.cz>
3553         * loop-unswitch.c (unswitch_single_loop): Use
3554         estimated_loop_iterations_int to prevent unswitching when loop
3555         is known to not roll.
3556         * tree-ssa-loop-niter.c (estimated_loop_iterations): Do not segfault
3557         when SCEV is not initialized.
3558         (max_loop_iterations): Likewise.
3559         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Use
3560         estimated_loop_iterations_int to prevent unswithcing when
3561         loop is known to not roll.
3562         * tree-scalar-evolution.c (scev_initialized_p): New function.
3563         * tree-scalar-evolution.h (scev_initialized_p): Likewise.
3564         * loop-unroll.c (decide_peel_once_rolling): Use
3565         max_loop_iterations_int.
3566         (unroll_loop_constant_iterations): Update
3567         nb_iterations_upper_bound and nb_iterations_estimate.
3568         (decide_unroll_runtime_iterations): Use
3569         estimated_loop_iterations or max_loop_iterations;
3570         (unroll_loop_runtime_iterations): fix profile updating.
3571         (decide_peel_simple): Use estimated_loop_iterations
3572         and max_loop_iterations.
3573         (decide_unroll_stupid): Use estimated_loop_iterations
3574         ad max_loop_iterations.
3575         * loop-doloop.c (doloop_modify): Use max_loop_iterations_int.
3576         (doloop_optimize): Likewise.
3577         * loop-iv.c (iv_number_of_iterations): Use record_niter_bound.
3578         (find_simple_exit): Likewise.
3579         * cfgloop.h (struct niter_desc): Remove niter_max.
3581 2012-10-08  Marek Polacek  <polacek@redhat.com>
3583         PR debug/54831
3584         * var-tracking.c (vt_add_function_parameter): Use condition instead
3585         of gcc_assert.
3587 2012-10-08  Dehao Chen  <dehao@google.com>
3589         * predict.c (predict_loops): Predict for short-circuit conditions.
3590         (predict_extra_loop_exits): New Function.
3592 2012-10-08  Steven Bosscher  <steven@gcc.gnu.org>
3594         * bitmap.h (bitmap_and_into): Update prototype.
3595         * bitmap.c (bitmap_and_into): Return true if the target bitmap
3596         changed, false otherwise.
3598         * df.h (df_dump_insn_problem_function): New function type.
3599         (struct df_problem): Add two functions, to dump just before and
3600         just after an insn.
3601         (DF_RD_PRUNE_DEAD_DEFS): New changable flag.
3602         (df_dump_insn_top, df_dump_insn_bottom): New prototypes.
3603         * df-core (df_dump_region): Use dump_bb.
3604         (df_dump_bb_problem_data): New function.
3605         (df_dump_top, df_dump_bottom): Rewrite using df_dump_bb_problem_data.
3606         (df_dump_insn_problem_data): New function.
3607         (df_dump_insn_top, df_dump_insn_bottom): New functions.
3608         * df-scan.c (problem_SCAN): Add NULL fields for new members.
3609         * df-problems.c (df_rd_local_compute): Ignore hard registers if
3610         DF_NO_HARD_REGS is in effect.
3611         (df_rd_transfer_function): If DF_RD_PRUNE_DEAD_DEFS is in effect,
3612         prune reaching defs using the LR problem.
3613         (df_rd_start_dump): Fix dumping of DEFs map.
3614         (df_rd_dump_defs_set): New function.
3615         (df_rd_top_dump, df_rd_bottom_dump): Use it.
3616         (problem_RD): Add NULL fields for new members.
3617         (problem_LR, problem_LIVE): Likewise.
3618         (df_chain_bb_dump): New function.
3619         (df_chain_top_dump): Dump only for artificial DEFs and USEs,
3620         using df_chain_bb_dump.
3621         (df_chain_bottom_dump): Likewise.
3622         (df_chain_insn_top_dump, df_chain_insn_bottom_dump): New functions.
3623         (problem_CHAIN): Add them as new members.
3624         (problem_WORD_LR, problem_NOTE): Add NULL fields for new members.
3625         (problem_MD): Likewise.
3626         * cfgrtl.c (rtl_dump_bb): Use df_dump_insn_top and df_dump_insn_bottom.
3627         (print_rtl_with_bb): Likewise.
3629         * dce.c (init_dce): Use DF_RD_PRUNE_DEAD_DEFS.
3630         * loop-invariant.c (find_defs): Likewise.
3631         * loop-iv.c (iv_analysis_loop_init): Likewise.
3632         * ree.c (find_and_remove_re): Likewise.
3633         * web.c (web_main): Likewise.
3635 2012-10-08  Jason Merrill  <jason@redhat.com>
3637         * config/rs6000/rs6000.c (rs6000_code_end): Protect the use of
3638         ASM_WEAKEN_DECL with #if RS6000_WEAK.
3640 2012-10-08  Richard Guenther  <rguenther@suse.de>
3642         PR tree-optimization/54825
3643         * tree-ssa-sccvn.c (vn_nary_length_from_stmt): Handle BIT_FIELD_REF.
3644         (init_vn_nary_op_from_stmt): Likewise.
3645         * tree-ssa-pre.c (compute_avail): Use vn_nary_op_lookup_stmt.
3646         * tree-ssa-sccvn.h (sizeof_vn_nary_op): Avoid overflow.
3648 2012-10-08  Richard Guenther  <rguenther@suse.de>
3650         * tree-ssa-pre.c (postorder_num): New global.
3651         (compute_antic): Initialize all blocks and adjust for
3652         generic postorder.
3653         (my_rev_post_order_compute): Remove.
3654         (init_pre): Use inverted_post_order_compute.
3656 2012-10-08  Bernd Schmidt  <bernds@codesourcery.com>
3658         * sched-int.h (schedule_block): Adjust declaration.
3659         * sched-rgn.c (bb_state_array, bb_state): New static variables.
3660         (sched_rgn_init): Initialize them.
3661         (sched_rgn_free): Free them.
3662         (schedule_region): Save scheduling state for future blocks, and
3663         pass such state to schedule_block.
3664         * params.def (PARAM_SCHED_STATE_EDGE_PROB_CUTOFF): New.
3665         * doc/invoke.texi (--param): Document it.
3666         * haifa-sched.c (schedule_block): New arg init_state.  Use it to
3667         initialize state if nonnull.  All callers changed.
3668         Call advance_one_cycle after scheduling.
3670 2012-10-08  Georg-Johann Lay  <avr@gjlay.de>
3672         PR target/54854
3673         * doc/invoke.texi (AVR Options): Remove -mshort-calls.
3674         * config/avr/avr.opt (-mshort-calls): Remove option.
3675         * config/avr/avr.h (AVR_HAVE_JMP_CALL): Don't depend on
3676         TARGET_SHORT_CALLS.
3678 2012-10-08  Oleg Endo  <olegendo@gcc.gnu.org>
3680         PR target/54685
3681         * config/sh/sh.md (one_cmplsi2): Make insn_and_split.  Add manual
3682         combine matching for an insn sequence where a ge:SI pattern
3683         can be used.
3685 2012-10-08  Dodji Seketeli  <dodji@redhat.com>
3687         PR c++/53528 C++11 attribute support
3688         * plugin.h (register_scoped_attributes): Declare new function.
3689         * tree.h (enu attribute_flags::ATTR_FLAG_CXX_11): New flag.
3690         (lookup_scoped_attribute_spec, cxx_11_attribute_p)
3691         (get_attribute_name, get_attribute_namespace): Declare new functions.
3692         (struct attribute_spec): Remove const qualifier from the members.
3693         * tree.c (comp_type_attributes, private_lookup_attribute)
3694         (lookup_ident_attribute, remove_attribute, merge_attribute)
3695         (attribute_hash_list, attribute_list_contained): Use
3696         get_attribute_name.
3697         * attribs.c (decl_attributes): Don't crash on error_mark_node.
3698         Forbid c++11 attributes appertaining to type-specifiers.
3699         (attribute_hash): Remove global variable.
3700         (attributes_table): New global variable.
3701         (find_attribute_namespace, register_scoped_attribute): New static
3702         functions.
3703         (register_scoped_attributes, lookup_scoped_attribute_spec)
3704         (cxx11_attribute_p, get_attribute_name, get_attribute_namespace):
3705         New public functions.
3706         (init_attributes): Register all the GNU attributes into the "gnu"
3707         namespace.
3708         (register_attribute): Use register_scoped_attribute to register
3709         the attribute into the "gnu" namespace.
3710         (lookup_attribute_spec): Use lookup_scoped_attribute_spec to
3711         lookup the attribute in the "gnu" namespace.
3712         (decl_attributes): Use new get_attribute_namespace and
3713         lookup_scoped_attribute_spec to consider attribute namespaces when
3714         looking up attributes.  When operating in c++-11 mode, pass flag
3715         ATTR_FLAG_CXX11 to the spec handler.
3717 2012-10-08  Georg-Johann Lay  <avr@gjlay.de>
3719         PR target/54815
3720         * config/avr/avr.md (*add<mode>3, add<mode>3, addpsi3): Make
3721         constraint alternative "r,0,r" slighly more expensive.
3722         (sub<mode>3, andqi3, andhi3, andpsi3, andsi3): Ditto.
3723         (iorqi3, iorhi3, iorpsi3, iorsi3): Ditto.
3724         (xorhi3, xorpsi3, xorsi3): Ditto.
3726 2012-10-08  Oleg Endo  <olegendo@gcc.gnu.org>
3728         PR target/54760
3729         * config/sh/sh.md (*mov<mode>_gbr_load, *mov<mode>_gbr_store): New
3730         insns and accompanying unnamed splits.
3731         * config/sh/predicates.md (general_movsrc_operand,
3732         general_movdst_operand): Reject GBR addresses.
3733         * config/sh/sh-protos.h (sh_find_equiv_gbr_addr): New declaration.
3734         * config/sh/sh.c (sh_address_cost, sh_legitimate_address_p,
3735         sh_secondary_reload): Handle GBR addresses.
3736         (base_reg_disp): New class.
3737         (sh_find_base_reg_disp, sh_find_equiv_gbr_addr): New functions.
3739 2012-10-08  Hans-Peter Nilsson  <hp@bitrange.com>
3741         * config/mmix/mmix.c (mmix_output_octa): Don't assume
3742         HOST_WIDEST_INT_PRINT_HEX starts with "0x".  Instead use
3743         HOST_WIDE_INT_PRINT_HEX_PURE, falling back to
3744         HOST_WIDEST_INT_PRINT_UNSIGNED.
3746 2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
3748         * machmode.h (GET_MODE_UNIT_PRECISION): New macro.
3749         * simplify-rtx.c (simplify_truncation): New function,
3750         extracted from simplify_subreg and (in small part) from
3751         simplify_unary_operation_1.
3752         (simplify_unary_operation_1) <TRUNCATE>: Use it.  Remove sign bit
3753         test for !TRULY_NOOP_TRUNCATION_MODES_P.
3754         (simplify_subreg): Use simplify_truncate for lowpart subregs
3755         where both the inner and outer modes are scalar integers.
3756         * config/mips/mips.c (mips_truncated_op_cost): New function.
3757         (mips_rtx_costs): Adjust test for BADDU.
3758         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
3760 2012-10-07  Jan Hubicka  <jh@suse.cz>
3762         * ipa-inline-analysis.c (do_estimate_edge_time): Return actual
3763         time spent by the inlined sequence.
3764         (do_estimate_edge_growth): Rename to ...
3765         (do_estimate_edge_time): ... this one; return size of inlined sequence.
3766         * ipa-inline.h (do_estimate_edge_size): New.
3767         (do_estimate_edge_growth): Remove.
3768         (estimate_edge_size): New function.
3769         (estimate_edge_growth): Use it.
3771 2012-10-07  Jan Hubicka  <jh@suse.cz>
3773         * lto-cgraph.c (lto_symtab_encoder_new): New parameter FOR_INPUT.
3774         (lto_symtab_encoder_delete): Update.
3775         (lto_symtab_encoder_encode): Update.
3776         (compute_ltrans_boundary): Update.
3777         (input_symtab): Update.
3778         * lto-streamer.h (lto_symtab_encoder_new): Update.
3780 2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
3782         * config/mips/mips-protos.h (mips_split_type): New enum.
3783         (mips_split_64bit_move_p, mips_split_doubleword_move): Delete.
3784         (mips_split_move_p, mips_split_move, mips_split_move_insn_p)
3785         (mips_split_move_insn): Declare.
3786         * config/mips/mips.c (mips_tuning_info): New variable.
3787         (mips_load_store_insns): Use mips_split_move_insn_p instead of
3788         mips_split_64bit_move_p.
3789         (mips_emit_move_or_split, mips_mult_move_p): New functions.
3790         (mips_split_64bit_move_p): Rename to...
3791         (mips_split_move_p): ...this and take a mips_split_type argument.
3792         Generalize to all moves.  Call mips_mult_move_p.
3793         (mips_split_doubleword_move): Rename to...
3794         (mips_split_move): ...this and take a mips_split_type argument.
3795         Assert that mips_split_move_p holds.
3796         (mips_insn_split_type, mips_split_move_insn_p, mips_split_move_insn):
3797         New functions.
3798         (mips_output_move): Use mips_split_move_p instead of
3799         mips_split_64bit_move_p.  Handle MULT $0, $0 moves.
3800         (mips_save_reg): Use mips_emit_move_or_split.
3801         (mips_sim_reset): Assign to curr_state.  Call targetm.sched.init
3802         and advance_state.
3803         (mips_sim_init): Call targetm.sched.init_dfa_pre_cycle_insn and
3804         targetm.sched.init_dfa_post_cycle_insn, if defined.
3805         (mips_sim_next_cycle): Assign to curr_state.  Use advance_state
3806         instead of state_transition.
3807         (mips_sim_issue_insn): Assign to curr_state.  Use
3808         targetm.sched.variable_issue to see how many more insns can be issued.
3809         (mips_seq_time, mips_mult_zero_zero_cost)
3810         (mips_set_fast_mult_zero_zero_p, mips_set_tuning_info)
3811         (mips_expand_to_rtl_hook): New functions.
3812         (TARGET_EXPAND_TO_RTL_HOOK): Define.
3813         * config/mips/mips.md (move_type): Add imul.
3814         (type): Map imul move_types to imul.
3815         (*movdi_32bit, *movti): Add imul alternatives.
3816         Use mips_split_move_insn_p and mips_split_move_insn instead of
3817         mips_split_64bit_move_p and mips_split_doubleword_move in move
3818         splitters.
3820 2012-10-06  Segher Boessenkool  <segher@kernel.crashing.org>
3822         * config/rs6000/rs6000.c (print_operand) ['A']: Delete.
3824 2012-10-06  Paolo Carlini  <paolo.carlini@oracle.com>
3826         PR c++/52764
3827         * ginclude/stdint-wrap.h: In C++11 if __STDC_HOSTED__ define
3828         __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS.
3829         * ginclude/stdint-gcc.h: In C++11 unconditionally define
3830         limit and constant macros.
3832 2012-10-06  Paolo Carlini  <paolo.carlini@oracle.com>
3834         PR c++/54249
3835         * ginclude/stddef.h: In C++11 mode declare nullptr_t in the global
3836         namespace.
3838 2012-10-06  Jan Hubicka  <jh@suse.cz>
3840         PR lto/53831
3841         PR lto/54776
3842         * lto-streamer-out.c (produce_symtab): Cleanup; drop v1 API hack.
3844 2012-10-06  Dehao Chen  <dehao@google.com>
3846         PR debug/54826
3847         * gimple-low.c (lower_stmt): Set the block for call args.
3849 2012-10-06  Jan Hubicka  <jh@suse.cz>
3851         * doc/invoke.texi (-fprofile-report): Document.
3852         * common.opt (-fprofile-report): New option.
3853         * toplev.c (finalize): Call dump_profile_report.
3854         * toplev.h (profile_report): Declare.
3855         * passes.c (profile_record): New static var.
3856         (check_profile_consistency): New function.
3857         (dump_profile_record): New function.
3858         (execute_one_ipa_transform_pass): Call check_profile_consistency.
3859         (execute_one_pass): Likewise.
3861 2012-10-06  Jan Hubicka  <jh@suse.cz>
3863         PR lto/54790
3864         * lto-streamer.h (lto_symtab_register_decl, lto_symtab_get_resolution,
3865         lto_mark_nothrow_fndecl, lto_fixup_nothrow_decls): Remove.
3866         * lto-symtab.c (lto_symtab_register_decl): Remove.
3868 2012-10-06  Andreas Schwab  <schwab@linux-m68k.org>
3870         PR rtl-optimization/54739
3871         * config/m68k/m68k.md (anddi3, iordi3, xordi3, one_cmpldi2): Remove.
3873 2012-10-06  Oleg Endo  <olegendo@gcc.gnu.org>
3875         PR target/54760
3876         * config/sh/sh.md (define_constants): Add UNSPECV_GBR.
3877         (get_thread_pointer, set_thread_pointer): New expanders.
3878         (load_gbr): Rename to store_gbr.  Remove GBR_REG use.
3879         (store_gbr): New insn.
3880         * config/sh/sh.c (prepare_move_operands): Use gen_store_gbr instead of
3881         gen_load_gbr in TLS_MODEL_LOCAL_EXEC case.
3882         (sh1_builtin_p): New function.
3883         (signature_args): Add SH_BLTIN_VP.
3884         (bdesc): Add __builtin_thread_pointer and __builtin_set_thread_pointer.
3886 2012-10-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3888         PR rtl-optimization/54739
3889         * config/pa/pa.md: Remove DImode and, not and, ior and xor patterns
3890         for 32-bit targets.  Adjust expanders.
3892         * config/pa/pa.md: Adjust unamed HImode add insn pattern.
3894 2012-10-05  Oleg Endo  <olegendo@gcc.gnu.org>
3896         * config/sh/sh.c (builtin_description): Add is_enabled member.
3897         (shmedia_builtin_p): New function.
3898         (bdesc): Use shmedia_builtin_p for existing built-ins.
3899         (sh_media_init_builtins, sh_init_builtins): Merge into single function
3900         sh_init_builtins.  Add is_enabled checking.  Move variable declarations
3901         to where they are actually used.
3902         (sh_media_builtin_decl, sh_builtin_decl): Merge into single function
3903         sh_builtin_decl.  Add is_enabled checking.
3904         (sh_expand_builtin): Move variable declarations to where they are
3905         actually used.
3907 2012-10-05  Jakub Jelinek  <jakub@redhat.com>
3909         * tree-inline.c (expand_call_inline): Move VAR_DECLs with
3910         PARM_DECL origins from remapped DECL_INITIAL's BLOCK_VARS
3911         into id->block's BLOCK_VARS.
3913         PR debug/54519
3914         * ipa-split.c (split_function): Add debug args and debug source
3915         and normal stmts for args_to_skip which are gimple regs.
3916         * tree-inline.c (copy_debug_stmt): When inlining, adjust source
3917         debug bind stmts to debug binds of corresponding DEBUG_EXPR_DECL.
3919 2012-10-05  Georg-Johann Lay  <avr@gjlay.de>
3921         * config/avr/avr.md: Fix indentations of insn C snippets.
3923 2012-10-05  Richard Guenther  <rguenther@suse.de>
3925         PR middle-end/54811
3926         * tree-ssa-live.c (clear_unused_block_pointer_1): Look at
3927         DECL_DEBUG_EXPR again.
3929 2012-10-05  Jan Hubicka  <jh@suse.cz>
3930             Jakub Jelinek  <jakub@redhat.com>
3932         PR tree-optimization/33763
3933         * tree-inline.c (expand_call_inline): Silently ignore always_inline
3934         attribute for redefined extern inline functions.
3936 2012-10-04  Jan Hubicka  <jh@suse.cz>
3938         * tree-vectorizer.h (vect_estimate_min_profitable_iters): Remove.
3939         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Declare here.
3940         (vect_analyze_loop_operations): Use loop count estimate to rule out
3941         unprofitable vectorization.
3942         (vect_estimate_min_profitable_iters): Return
3943         ret_min_profitable_estimate.
3945 2012-10-05  Jakub Jelinek  <jakub@redhat.com>
3947         PR tree-optimization/54810
3948         * tree-vrp.c (register_edge_assert_for_2): Handle
3949         NAME = (unsigned) NAME2; if (NAME cmp CST) for
3950         narrowing casts to unsigned integral type like
3951         NAME = NAME2 & CST2; if (NAME cmp CST) where CST2
3952         is the max value of the unsigned integral type.
3954 2012-10-04  Jeff Law  <law@redhat.com>
3956         PR target/50356
3957         * config/h8300/h8300.c (h8300_rtx_costs): Fix typo in CONST_INT case.
3959 2012-10-04  Jason Merrill  <jason@redhat.com>
3961         * config/rs6000/rs6000.c (rs6000_code_end): Protect the use of
3962         ASM_WEAKEN_DECL with #if RS6000_WEAK.
3964 2012-10-04  Basile Starynkevitch  <basile@starynkevitch.net>
3966         * gengtype.c (walk_type): Emit mark_hook when inside a
3967         struct of a union member.
3969 2012-10-04  Georg-Johann Lay  <avr@gjlay.de>
3971         * config/avr/predicates.md (flash_operand): New predicate.
3972         * config/avr/avr.md (reload_in<mode>): Use it in operand 1 instead
3973         of memory_operand.
3975 2012-10-04  Tobias Burnus  <burnus@net-b.de>
3977         * gcc.c (record_temp_file, add_sysrooted_prefix, process_command,
3978         do_self_spec, compare_debug_dump_opt_spec_function): Plug memleaks.
3979         (do_spec_1): Ditto, fix out-of-bound access.
3980         * opts.c (common_handle_option): Plug memleak.
3982 2012-10-04  Jason Merrill  <jason@redhat.com>
3984         * config/darwin.c (darwin_assemble_visibility): Treat
3985         VISIBILITY_INTERNAL as hidden.
3987         * config/darwin-c.c (find_subframework_file): Add missing const.
3988         (framework_construct_pathname): Likewise.
3990 2012-10-04  Florian Weimer  <fweimer@redhat.com>
3992         * doc/cpp.texi (Pragmas): Document #pragma GCC warning, #pragma
3993         GCC error.
3995 2012-10-04  Richard Guenther  <rguenther@suse.de>
3997         PR middle-end/54735
3998         * tree-ssa-pre.c (do_pre): Make sure to update virtual SSA form before
3999         cleaning up the CFG.
4001 2012-10-04  Richard Guenther  <rguenther@suse.de>
4003         PR lto/47799
4004         * tree-streamer-out.c (write_ts_block_tree_pointers): For
4005         inlined functions outer scopes write the ultimate origin
4006         as BLOCK_ABSTRACT_ORIGIN and BLOCK_SOURCE_LOCATION.
4007         Do not stream the fragment chains.
4008         * tree-streamer-in.c (lto_input_ts_block_tree_pointers): Likewise.
4009         * dwarf2out.c (gen_subprogram_die): Handle NULL DECL_INITIAL.
4010         (dwarf2out_decl): Always output DECL_ABSTRACT function decls.
4012 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
4014         * dumpfile.h, dumpfile.c: Remove TDI_ada.
4016 2012-10-04  Yuri Rumyantsev  <ysrumyan@gmail.com>
4018         * config/i386/i386.c (ix86_dep_by_shift_count_body) : Add
4019         check on reload_completed since it can be invoked before
4020         register allocation phase in pre-reload schedule.
4021         (ia32_multipass_dfa_lookahead) : Do not use dfa_lookahead for
4022         pre-reload schedule to save compile time.
4023         (ix86_sched_reorder) : Do not perform ready list reordering for
4024         pre-reload schedule to save compile time.
4025         (insn_is_function_arg) : New function. Returns true if lhs of insn is
4026         HW function argument register.
4027         (add_parameter_dependencies) : New function. Add output dependencies
4028         for chain of function adjacent arguments if only there is a move to
4029         likely spilled HW registers. Return first argument if at least one
4030         dependence was added or NULL otherwise.
4031         (avoid_func_arg_motion) : New function. Add output or anti dependency
4032         from insn to first_arg to restrict code motion.
4033         (add_dependee_for_func_arg) : New function. Avoid cross block motion of
4034         function argument through adding dependency from the first non-jump
4035         insn in bb.
4036         (ix86_dependencies_evaluation_hook) : New function. Hook for
4037         pre-reload schedule: avoid motion of function arguments passed in
4038         likely spilled HW registers.
4039         (ix86_adjust_priority) : New function. Hook for pre-reload schedule:
4040         set priority of moves from likely spilled HW registers to maximum to
4041         schedule them as soon as possible.
4042         (ix86_sched_init_global): Do not perform multipass scheduling for
4043         pre-reload schedule to save compile time.
4045 2012-10-04  Uros Bizjak  <ubizjak@gmail.com>
4047         * configure.ac (noexception_flags): Add -fasynchronous-unwind-tables.
4048         * configure: Regenerate.
4050 2012-10-04  Kaz Kojima  <kkojima@gcc.gnu.org>
4052         * config/sh/sh.c (sh_can_use_simple_return_p): Return false for
4053         SHmedia and SHcompact using call cookie.
4054         * config/sh/sh.md (epilogue): Emit non-inlined return insns for
4055         SHmedia and SHcompact using call cookie.
4057 2012-10-03  Oleg Endo  <olegendo@gcc.gnu.org>
4059         PR target/51244
4060         * config/sh/sh.md (*mov_t_msb_neg): New insn and two accompanying
4061         unnamed split patterns.
4063 2012-10-03  Oleg Endo  <olegendo@gcc.gnu.org>
4065         PR target/50457
4066         * config/sh/sh.c (parse_validate_atomic_model_option): Handle name
4067         strings in sh_atomic_model.
4068         * config/sh/sh.h (TARGET_CPU_CPP_BUILTINS): Move macro implementation
4069         to ...
4070         * config/sh/sh-c.c (sh_cpu_cpp_builtins): ... this new function.
4071         Add __SH1__ and __SH2__ defines.  Add __SH_ATOMIC_MODEL_*__ define.
4072         * config/sh/sh-protos.h (sh_atomic_model): Add name and cdef_name
4073         variables.
4074         (sh_cpu_cpp_builtins): Declare new function.
4076 2012-10-03  Dehao Chen  <dehao@google.com>
4078         PR middle-end/54782
4079         * tree-cfg.c (move_block_to_fn): Update lexical block for phi_args.
4081 2012-10-03  Vladimir Makarov  <vmakarov@redhat.com>
4083         * reginfo.c (max_regno_since_last_resize): New.
4084         (reg_preferred_class, reg_alternate_class): Add assert.
4085         (allocate_reg_info): Initialize allocated reg info.
4086         (resize_reg_info): Make bigger reg_info and initialize new memory.
4087         (reginfo_init): Initialize max_regno_since_last_resize.
4088         (setup_reg_classes): Change assert.
4090 2012-10-03  Andrew W. Nosenko <andrew.w.nosenko@gmail.com>
4092         * config/i386/driver-i386.c (host_detect_local_cpu): Fix logic
4093         in SSE and YMM state support check for -march=native.
4095 2012-10-03  Nick Clifton  <nickc@redhat.com>
4097         * config/rx/rx.c (struct decl_chain): New local structure.
4098         (warned_decls): New local variable.  Contains a stack of decls for
4099         which warnings have been issued.
4100         (add_warned_decl): Adds a decl to the stack.
4101         (already_warned): Returns true if a given decl is on the stack.
4102         (rx_set_current_function): Issue a warning if multiple fast
4103         interrupt handlers are defined.
4104         * config/rx/rx.opt (mwarn-multiple-fast-interrupts): New option.
4105         * doc/invoke.texi: Document the option.
4107 2012-10-03  Mark Kettenis  <kettenis@openbsd.org>
4109         * config.gcc (*-*-openbsd4.[3-9]|*-*-openbsd[5-9]*): Set
4110         default_use_cxa_atexit to yes.
4112 2012-10-03  Jakub Jelinek  <jakub@redhat.com>
4114         PR rtl-optimization/54792
4115         * sched-deps.c (find_modifiable_mems): Scan also TAIL insn.
4117 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
4119         PR target/54785
4120         * doc/invoke.texi: Document -mprefer-avx128.
4122 2012-10-02  Andrew Pinski  <apinski@cavium.com>
4124         * simplify-rtx.c (simplify_unary_operation_1 <case TRUNCATE>):
4125         Don't optimize a truncate of a mem if it is a vector mode.
4127 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
4129         PR debug/54551
4130         * Makefile.in (VALTRACK_H): Add hash-table.h.
4131         * valtrack.h: Include hash-table.h.
4132         (struct dead_debug_global_entry): New.
4133         (struct dead_debug_hash_descr): New.
4134         (struct dead_debug_global): New.
4135         (struct dead_debug): Rename to...
4136         (struct dead_debug_local): ... this.  Adjust all uses.
4137         (dead_debug_global_init, dead_debug_global_finish): New.
4138         (dead_debug_init): Rename to...
4139         (dead_debug_local_init): ... this.  Adjust all callers.
4140         (dead_debug_finish): Rename to...
4141         (dead_debug_local_finish): ... this.  Adjust all callers.
4142         * valtrack.c (dead_debug_global_init): New.
4143         (dead_debug_init): Rename to...
4144         (dead_debug_local_init): ... this.  Take global parameter.
4145         Save it and initialize used bitmap from it.
4146         (dead_debug_global_find, dead_debug_global_insert): New.
4147         (dead_debug_global_replace_temp): New.
4148         (dead_debug_promote_uses): New.
4149         (dead_debug_finish): Rename to...
4150         (dead_debug_local_finish): ... this.  Promote remaining uses.
4151         (dead_debug_global_finish): New.
4152         (dead_debug_add): Try to replace global temps first.
4153         (dead_debug_insert_temp): Support global replacements.
4154         * dce.c (word_dce_process_block, dce_process_block): Add
4155         global_debug parameter.  Pass it on.
4156         (fast_dce): Initialize, pass on and finalize global_debug.
4157         * df-problems.c (df_set_unused_notes_for_mw): Adjusted.
4158         (df_create_unused_notes, df_note_bb_compute): Likewise.
4159         (df_note_compute): Justify local-only dead debug analysis.
4161 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
4163         PR debug/53135
4164         * dwarf2out.c (value_format): Use block4 for dw_val_class_loc
4165         when needed.
4167 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
4169         PR debug/54177
4170         * var-tracking.c (vt_add_function_parameter): Bail if
4171         var_lowpart fails.
4173 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
4175         PR target/54741
4176         * config/i386/driver-i386.c (XCR_XFEATURE_ENABLED_MASK): New.
4177         (XSTATE_FP): Likewise.
4178         (XSTATE_SSE): Likewise.
4179         (XSTATE_YMM): Likewise.
4180         (host_detect_local_cpu): Disable AVX, AVX2, FMA, FMA4 and XOP if
4181         SSE and YMM states aren't supported.
4183 2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
4185         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
4186         (*baddu_si): ...this new pattern.
4188 2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
4190         * ira-int.h (target_ira_int): Add x_ira_useful_class_mode_regs.
4191         (ira_useful_class_mode_regs): New macro.
4192         * ira.c (clarify_prohibited_class_mode_regs): Set up
4193         ira_useful_class_mode_regs.
4194         * ira-color.c (setup_profitable_hard_regs): Use it to initialise
4195         profitable_hard_regs.
4197 2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
4199         * ira.h (target_ira): Add x_ira_class_singleton.
4200         (ira_class_singleton): New macro.
4201         * ira.c (setup_prohibited_class_mode_regs): Set up ira_class_singleton.
4202         * ira-build.c (update_conflict_hard_reg_costs): Use
4203         ira_class_singleton to check for classes with a single
4204         allocatable register.
4205         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Likewise.
4206         (single_reg_class): Likewise.  When more than one class is specified,
4207         check whether they have the same singleton register.
4208         (process_single_reg_class_operands): Require single_reg_class
4209         to return NO_REGS or a class with a single allocatable register.
4210         Obtain that register from ira_class_singleton.
4212 2012-10-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
4214         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
4215         -mcpu=<xxx> is not specified and the compiler is not configured
4216         using --with-cpu=<xxx>, use the bits from the TARGET_DEFAULT to
4217         set the initial options.
4219 2012-10-02  Sharad Singhai  <singhai@google.com>
4221         PR testsuite/54772
4222         * tree-vect-stmts.c (vectorizable_operation): Add missing return.
4224 2012-10-02  David Edelsohn  <dje.gcc@gmail.com>
4226         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
4227         set TARGET_ALTIVEC_VRSAVE for TARGET_ELF.
4228         (rs6000_stack_info): Only set vrsave_mask if TARGET_ALTIVEC_VRSAVE.
4230 2012-10-02  Jakub Jelinek  <jakub@redhat.com>
4232         PR tree-optimization/54713
4233         * expr.c (categorize_ctor_elements_1): Don't assume purpose is
4234         non-NULL.
4235         * tree-cfg.c (verify_gimple_assign_single): Add verification of
4236         vector CONSTRUCTORs.
4237         * tree-ssa-sccvn.c (vn_reference_lookup_3): For VECTOR_TYPE
4238         CONSTRUCTORs, don't do anything if element type is VECTOR_TYPE,
4239         and don't check index.
4240         * tree-vect-slp.c (vect_get_constant_vectors): VIEW_CONVERT_EXPR ctor
4241         elements first if their type isn't compatible with vector element type.
4243 2012-10-02  Eric Botcazou  <ebotcazou@adacore.com>
4245         * tree.h (DECL_NONLOCAL_FRAME): New macro.
4246         * tree-nested.c (get_frame_type): Set DECL_NONLOCAL_FRAME.
4247         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Stream in
4248         DECL_NONLOCAL_FRAME flag.
4249         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Stream out
4250         DECL_NONLOCAL_FRAME flag.
4252 2012-10-02  Marc Glisse  <marc.glisse@inria.fr>
4254         * tree-ssa-forwprop.c (forward_propagate_into_cond): Don't use
4255         boolean_type_node for vectors.
4257 2012-10-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
4259         * config/rs6000/rs6000.c (toplevel): Include dumpfile.h.
4260         (rs6000_density_test): Rework to accommodate 09-30 change by
4261         Sharad Singhai.
4263         * config/rs6000/t-rs6000 (rs6000.o): Add dumpfile.h dependency.
4265 2012-10-01  Dehao Chen  <dehao@google.com>
4267         PR middle-end/54759
4268         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Use
4269         LOCATION_LOCUS to compare with UNKNOWN_LOCATION.
4270         (slpeel_tree_peel_loop_to_edge): Likewise.
4271         * tree-vectorizer.c (vectorize_loops): Likewise.
4273 2012-10-01  Andrew MacLeod  <amacleod@redhat.com>
4275         PR target/54087
4276         * optabs.c (expand_atomic_fetch_op_no_fallback): New.  Factored code
4277         from expand_atomic_fetch_op.
4278         (expand_atomic_fetch_op):  Try atomic_{add|sub} operations in terms of
4279         the other one if direct opcode fails.
4281 2012-10-01  Uros Bizjak  <ubizjak@gmail.com>
4283         PR rtl-optimization/54457
4284         * simplify-rtx.c (simplify_subreg):
4285         Simplify (subreg:M (op:N ((x:N) (y:N)), 0)
4286         to (op:M (subreg:M (x:N) 0) (subreg:M (x:N) 0)), where
4287         the outer subreg is effectively a truncation to the original mode M.
4289 2012-10-01  Richard Guenther  <rguenther@suse.de>
4291         * builtins.def (ATTR_MATHFN_FPROUNDING): Do not use no-vops
4292         with -frounding-math.
4293         * builtin-attrs.def (ATTR_PURE_NOTHROW_NOVOPS_LIST): Remove.
4294         (ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST): Likewise.
4296 2012-10-01  Eric Botcazou  <ebotcazou@adacore.com>
4298         * tree.h (copy_mem_ref_info): Delete.
4299         * tree-ssa-address.c (copy_mem_ref_info): Likewise.
4300         (maybe_fold_tmr): Copy flags manually.
4301         * tree-ssa-loop-im.c (simple_mem_ref_in_stmt): Rewrite.
4303 2012-10-01  Marc Glisse  <marc.glisse@inria.fr>
4305         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
4306         Detect the identity.
4307         <VEC_CONCAT>: Handle VEC_SELECTs from the same vector.
4309 2012-10-01  Oleg Endo  <olegendo@gcc.gnu.org>
4311         PR target/50457
4312         * config/sh/sh.opt (matomic-model): New option.
4313         (msoft-atomic): Mark as deprecated and alias to
4314         matomic-model=soft-gusa.
4315         (mhard-atomic): Delete.
4316         * config/sh/predicates.md (gbr_displacement): New predicate.
4317         * config/sh/sh-protos.h (sh_atomic_model): New struct.
4318         (selected_atomic_model): New declaration.
4319         (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT, TARGET_ATOMIC_SOFT_GUSA,
4320         TARGET_ATOMIC_HARD_LLCS, TARGET_ATOMIC_SOFT_TCB,
4321         TARGET_ATOMIC_SOFT_TCB_GBR_OFFSET_RTX, TARGET_ATOMIC_SOFT_IMASK):
4322         New macros.
4323         * config/sh/linux.h (SUBTARGET_OVERRIDE_OPTIONS): Adapt setting to
4324         default atomic model.
4325         * config/sh/sh.c (selected_atomic_model_): New global variable.
4326         (selected_atomic_model, parse_validate_atomic_model_option): New
4327         functions.
4328         (sh_option_override): Replace atomic selection checks with call to
4329         parse_validate_atomic_model_option.
4330         * config/sh/sh.h (TARGET_ANY_ATOMIC, UNSUPPORTED_ATOMIC_OPTIONS,
4331         UNSUPPORTED_HARD_ATOMIC_CPU): Delete.
4332         (DRIVER_SELF_SPECS): Remove atomic checks.
4333         config/sh/sync.md: Update documentation comments.
4334         (atomic_compare_and_swap<mode>, atomic_exchange<mode>,
4335         atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
4336         atomic_<fetchop_name>_fetch<mode>, atomic_nand_fetch<mode>): Use
4337         TARGET_ATOMIC_ANY as condition.  Add TARGET_ATOMIC_STRICT check for
4338         SH4A case.  Handle new TARGET_ATOMIC_SOFT_TCB and
4339         TARGET_ATOMIC_SOFT_IMASK cases.
4340         (atomic_test_and_set): Handle new TARGET_ATOMIC_SOFT_TCB and
4341         TARGET_ATOMIC_SOFT_IMASK cases.
4342         (atomic_compare_and_swapsi_hard, atomic_exchangesi_hard,
4343         atomic_fetch_<fetchop_name>si_hard, atomic_fetch_nandsi_hard,
4344         atomic_<fetchop_name>_fetchsi_hard, atomic_nand_fetchsi_hard):
4345         Add TARGET_ATOMIC_STRICT check.
4346         (atomic_compare_and_swap<mode>_hard, atomic_exchange<mode>_hard,
4347         atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nand<mode>_hard,
4348         atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetch<mode>_hard,
4349         atomic_test_and_set_hard): Use TARGET_ATOMIC_HARD_LLCS condition.
4350         (atomic_compare_and_swap<mode>_soft, atomic_exchange<mode>_soft,
4351         atomic_fetch_<fetchop_name><mode>_soft, atomic_fetch_nand<mode>_soft,
4352         atomic_<fetchop_name>_fetch<mode>_soft, atomic_nand_fetch<mode>_soft,
4353         atomic_test_and_set_soft): Append _gusa to the insn names and use
4354         TARGET_ATOMIC_SOFT_GUSA as condition.
4355         (atomic_compare_and_swap<mode>_soft_tcb,
4356         atomic_exchange<mode>_soft_tcb,
4357         atomic_fetch_<fetchop_name><mode>_soft_tcb,
4358         atomic_fetch_nand<mode>_soft_tcb,
4359         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
4360         atomic_nand_fetch<mode>_soft_tcb, atomic_test_and_set_soft_tcb):
4361         New insns.
4362         (atomic_compare_and_swap<mode>_soft_imask,
4363         atomic_exchange<mode>_soft_imask,
4364         atomic_fetch_<fetchop_name><mode>_soft_imask,
4365         atomic_fetch_nand<mode>_soft_imask,
4366         atomic_<fetchop_name>_fetch<mode>_soft_imask,
4367         atomic_nand_fetch<mode>_soft_imask, atomic_test_and_set_soft_imask):
4368         New insns.
4369         * doc/invoke.texi (SH Options): Document new matomic-model option.
4370         Remove msoft-atomic and mhard-atomic options.
4372 2012-10-01  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4374         PR target/54746
4375         * config/s390/s390.c (s390_option_override): Add missing break.
4377 2012-09-30  Sharad Singhai  <singhai@google.com>
4379         * dumpfile.c: New file with parts moved from tree-dump.c.
4380         (pflags): New variable.
4381         (alt_flags): Ditto.
4382         (alt_dump_file): Ditto.
4383         (dump_files):  Update to include additional fields.
4384         (struct dump_option_value_info): Add additional entries.
4385         (get_dump_file_name): Use command line filename if available.
4386         (dump_open_alternate_stream): New function.
4387         (dump_loc): Ditto.
4388         (dump_gimple_stmt): Ditto.
4389         (dump_gimple_stmt_loc): Ditto.
4390         (dump_generic_expr): Ditto.
4391         (dump_generic_expr_loc): Ditto.
4392         (dump_printf): Ditto.
4393         (dump_printf_loc): Ditto.
4394         (dump_start): Ditto.
4395         (dump_finish): Ditto.
4396         (dump_begin): Ditto.
4397         (dump_enabled_p): Return true if either of the dump types is enabled.
4398         (dump_initialized_p): Return true if either type of dump is
4399         initialized.
4400         (dump_end): Do not close standard streams.
4401         (dump_enable_all): Handle filenames for regular dumps.
4402         (dump_switch_p_1): Handle command-line dump filenames.
4403         (opt_info_enable_all): New function.
4404         (opt_info_switch_p_1): Ditto.
4405         (opt_info_switch_p): Ditto.
4406         (dump_kind_p): Ditto.
4407         (dump_basic_block): Ditto.
4408         (dump_combine_total_stats): Ditto.
4409         (dump_remap_tree_vectorizer_verbose): Ditto.
4410         * gimple-pretty-print.h: Rename dump_gimple_stmt to
4411         pp_gimple_stmt_1.  All callers updated.
4413 2012-09-30  Sharad Singhai  <singhai@google.com>
4415         * doc/invoke.texi: Add documentation for the new -fopt-info option.
4416         * tree-dump.c: Move general dump file related functionality into
4417         dumpfile.c. Remove unneeded headers.
4418         * tree-dump.h: Move function declarations into dumpfile.h.
4419         * dumpfile.h: Include "line-map.h". Add defines for MSG flags.
4420         (struct dump_file_info): Move here from tree-dump.c.  Rename flags
4421         to pflags, state to pstate, stream to pstream, filename to
4422         pfilename. All callers updated. Add alt_flags, alt_state,
4423         alt_filenmae, alt_stream.
4424         * tree-vectorizer.c: Include "dumpfile.h". Remove vect_dump.
4425         (vect_set_dump_settings): Remove.
4426         (vect_print_dump_info): Ditto.
4427         * tree-vectorizer.h: Remove declaration of vect_dump and
4428         vect_print_dump_info.
4429         * tree-vect-loop.c: Include "dumpfile.h". Use new dump style.
4430         * tree-vect-data-refs.c: Ditto.
4431         * tree-vect-stmts.c: Ditto.
4432         * tree-vect-slp.c: Ditto.
4433         * tree-vect-patterns.c: Ditto.
4434         * tree-vect-loop-manip.c: Ditto.
4435         * opts.c (vect_set_verbosity_level): Remove.
4436         (common_handle_option): Handle -fopt-info flag. Deprecate
4437         -ftree-vectorizer-verbose.
4438         * tree-parloops.c (gather_scalar_reductions): Remove reference to
4439         vect_dump.
4440         * flag-types.h: Remove vect_verbosity_levels.
4441         * common.opt: Add -fopt-info. Deprecate -ftree-vectorizer-verbose.
4442         * opts-global.c (dump_remap_tree_vectorizer_verbose): New function.
4443         (handle_common_deferred_options): Handle -fopt-info and
4444         -ftree-vectorizer-verbose.
4445         * Makefile.in: Add dumpfile.o.
4446         (tree-dump.o): Update dependencies.
4447         (tree-vect-loop.o): Ditto.
4448         (tree-vect-loop-manip.o): Ditto.
4449         (tree-vect-slp.o): Ditto.
4450         (tree-vect-stmts.o): Ditto.
4451         (tree-vectorizer.o): Ditto.
4452         (opts.o): Ditto.
4453         * passes.c (finish_optimization_passes): Instead of using
4454         dump_begin/dump_end, use dump_start/dump_finish. Do not use dump_file.
4455         (pass_init_dump_file): Ditto.
4457 2012-09-30  Joern Rennecke  <joern.rennecke@embecosm.com>
4459         PR rtl-optimization/38449:
4460         * hooks.c (hook_bool_const_rtx_const_rtx_true): New function.
4461         * hooks.h (hook_bool_const_rtx_const_rtx_true): Declare.
4462         * target.def: Merge in definitions and documentation for
4463         TARGET_CAN_FOLLOW_JUMP.
4464         * doc/tm.texi.in: Add documentation locations for the above.
4465         * doc/tm.texi: Regenerate.
4466         * reorg.c (follow_jumps): New parameters jump and crossing.
4467         Changed all callers.
4469 2012-09-30  Eric Botcazou  <ebotcazou@adacore.com>
4471         * reorg.c (relax_delay_slots): Use delay_insn consistently.
4473         * config/sparc/sparc.c (gen_stack_pointer_dec): Delete.
4474         (sparc_expand_epilogue): Use gen_stack_pointer_inc and adjust.
4475         (sparc_flat_expand_epilogue): Likewise.
4476         (emit_and_preserve): Likewise.
4477         (sparc_fold_builtin): Fix thinko in latest change.
4479 2012-09-30  Andreas Schwab  <schwab@linux-m68k.org>
4481         * config/m68k/m68k.md: Add names to bitfield insert and extract
4482         insns.
4483         (*insv_8_16_reg): Remove constraints and conditions that assume
4484         that operand 0 could be a MEM.
4485         (*extzv_8_16_reg, *extv_8_16_reg): Likewise, for operand 1.
4487 2012-09-30  Jan Hubicka  <jh@suse.cz>
4489         * cfgloop.c (scale_loop_profile): Move to...
4490         * cfgloopmanip.c (scale_loop_profile): .. here; use
4491         scale_loop_frequencies.
4492         (loopify): Use RDIV.
4494 2012-09-28  Jan Hubicka  <jh@suse.cz>
4496         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Update profile.
4498 2012-09-28  Jan Hubicka  <jh@suse.cz>
4500         * function.c (dup_block_and_redirect): Update profile.
4502 2012-09-29  Andreas Tobler  <andreast@fgznet.ch>
4504         * config.gcc: Replace 'host' with 'target' when configuring for
4505         powerpc64*-*-freebsd.
4507 2012-09-29  Marc Glisse  <marc.glisse@inria.fr>
4509         * tree.c (truth_type_for): New function.
4510         * tree.h (truth_type_for): Declare.
4511         * gimple-fold.c (and_comparisons_1): Call it.
4512         (or_comparisons_1): Likewise.
4513         * tree-ssa-forwprop.c (forward_propagate_into_cond): Don't use
4514         boolean_type_node for vectors.
4516 2012-09-28  Jan Hubicka  <jh@suse.cz>
4518         * basic-block.h (RDIV): Define.
4519         (EDGE_FREQUENCY): Simplify.
4520         (check_probability, combine_probabilities, apply_probability,
4521         inverse_probability): New.
4522         * cfgloop.c (scale_loop_profile): New function.
4523         * cfgloop.h (scale_loop_profile): Declare.
4524         (slpeel_add_loop_guard): Add probability parameter.
4525         (set_prologue_iterations): Add probability parameter.
4526         (slpeel_tree_peel_loop_to_edge): Add bound1 and bound2 parameters;
4527         update probabilities correctly.
4528         (vect_do_peeling_for_alignment, vect_gen_niters_for_prolog_loop): New.
4530 2012-09-20  Bernd Schmidt  <bernds@codesourcery.com>
4532         PR bootstrap/54688
4533         * sched-deps.c (parse_add_or_inc): Remove MINUS handling.  Take
4534         STACK_GROWS_DOWNWARD into account.
4536 2012-09-28  Jakub Jelinek  <jakub@redhat.com>
4538         PR target/54716
4539         * config/i386/predicates.md (nonimmediate_or_const_vector_operand):
4540         New predicate.
4541         * config/i386/i386.c (ix86_expand_vector_logical_operator): New
4542         function.
4543         * config/i386/i386-protos.h (ix86_expand_vector_logical_operator): New
4544         prototype.
4545         * config/i386/sse.md (<code><mode>3 VI logic): Use it.
4547         PR tree-optimization/54713
4548         * fold-const.c (vec_cst_ctor_to_array): Give up if vector CONSTRUCTOR
4549         has vector elements.
4550         (fold_ternary_loc) <case BIT_FIELD_REF>: Likewise.
4551         * tree-vect-generic.c (vector_element): Don't rely on CONSTRUCTOR elts
4552         indexes.  Use BIT_FIELD_REF if CONSTRUCTOR has vector elements.
4553         (lower_vec_perm): Use NULL_TREE CONSTRUCTOR indexes.
4555 2012-09-28  Georg-Johann Lay  <avr@gjlay.de>
4557         * config/avr/avr.md (adjust_len): Add lpm.
4558         (reload_in<mode>): Use avr_out_lpm for output.  Use "lpm" for
4559         adjust_len.
4560         * config/avr/avr-protos.h (avr_out_lpm): New prototype.
4561         * config/avr/avr.c (avr_out_lpm): Make global.
4562         (adjust_insn_length): Handle ADJUST_LEN_LPM.
4564 2012-09-28  Richard Guenther  <rguenther@suse.de>
4566         PR lto/47799
4567         * lto-streamer-out.c (tree_is_indexable): Make PARM_DECLs global.
4568         (lto_output_tree_ref): Handle references to them.
4569         (output_function): Do not output function arguments again.
4570         * lto-streamer-in.c (input_function): Do not input arguments
4571         again, nor overwrite them.
4573 2012-09-28  Richard Guenther  <rguenther@suse.de>
4575         * cgraph.h (symtab_node_base): Re-order and pack fields.
4577 2012-09-28  Georg-Johann Lay  <avr@gjlay.de>
4579         * config/avr/avr.c (avr_pgm_check_var_decl): Fix non-error diagnostic.
4581 2012-09-28  Georg-Johann Lay  <avr@gjlay.de>
4583         PR rtl-optimization/52543
4584         * config/avr/avr.c (avr_mode_dependent_address_p): Return true for
4585         all non-generic address spaces.
4586         (TARGET_SECONDARY_RELOAD): New hook define to...
4587         (avr_secondary_reload): ...this new static function.
4588         * config/avr/avr.md (reload_in<mode>): New insns.
4590         Undo r185605 (mostly):
4591         * config/avr/avr-protos.h (avr_load_lpm): Remove.
4592         * config/avr/avr.c (avr_load_libgcc_p): Don't restrict to __flash
4593         loads.
4594         (avr_out_lpm): Also handle loads > 1 byte.
4595         (avr_load_lpm): Remove.
4596         (avr_find_unused_d_reg): New static function.
4597         (avr_out_lpm_no_lpmx): New static function.
4598         (adjust_insn_length): Remove ADJUST_LEN_LOAD_LPM.
4599         * config/avr/avr.md (unspec): Remove UNSPEC_LPM.
4600         (load_<mode>_libgcc): Use MEM instead of UNSPEC_LPM.
4601         (load_<mode>, load_<mode>_clobber): Remove.
4602         (mov<mode>): For multi-byte move from non-generic
4603         16-bit address spaces: Expand to *mov<mode> again.
4604         (load<mode>_libgcc): New expander.
4605         (split-lpmx): Remove split.
4607 2012-09-27  Dehao Chen  <dehao@google.com>
4609         * tree.h (tree_constructor): Remove IS_UNKNOWN_LOCATION.
4610         (extern void protected_set_expr_location): Likewise.
4611         (function_args_iter_next): Likewise.
4612         (inlined_function_outer_scope_p): Likewise.
4613         * input.h (IS_UNKNOWN_LOCATION): Likewise.
4614         * fold-const.c (expr_location_or): Likewise.
4615         * lto-cgraph.c (output_node_opt_summary): Likewise.
4616         * dwarf2out.c (add_src_coords_attributes): Likewise.
4617         * tree-eh.c (lower_try_finally_dup_block): Likewise.
4618         * profile.c (branch_prob):
4619         * cfgexpand.c (expand_gimple_cond): Likewise.
4620         (expand_gimple_basic_block): Likewise.
4621         (construct_exit_block): Likewise.
4622         (gimple_expand_cfg): Likewise.
4623         * cfgcleanup.c (try_forward_edges): Likewise.
4624         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
4625         (dump_scope_block): Likewise.
4626         * ipa-prop.c (ipa_write_jump_function): Likewise.
4627         * rtl.h (extern void rtl_check_failed_flag): Likewise.
4628         * gimple.h (gimple_set_location): Likewise.
4629         (gimple_has_location): Likewise.
4630         * cfgrtl.c (unique_locus_on_edge_between_p): Likewise.
4631         (force_nonfallthru_and_redirect): Likewise.
4632         (fixup_reorder_chain): Likewise.
4633         (cfg_layout_merge_blocks): Likewise.
4635 2012-09-27  Meador Inge  <meadori@codesourcery.com>
4637         * gcc-ar.c (main): Handle the returning of the sub-process error
4638         code correctly.
4640 2012-09-27  Ulrich Weigand  <ulrich.weigand@linaro.org>
4642         * lower-subreg.c (enum classify_move_insn): Rename
4643         SIMPLE_PSEUDO_REG_MOVE to DECOMPOSABLE_SIMPLE_MOVE.
4644         (find_decomposable_subregs): Update.
4645         (decompose_multiword_subregs): Add DECOMPOSE_COPIES parameter.
4646         Only mark pseudo-to-pseudo copies as DECOMPOSABLE_SIMPLE_MOVE
4647         if that parameter is true.
4648         (rest_of_handle_lower_subreg): Call decompose_multiword_subregs
4649         with DECOMPOSE_COPIES false.
4650         (rest_of_handle_lower_subreg2): Call decompose_multiword_subregs
4651         with DECOMPOSE_COPIES true.
4653 2012-09-27  Marek Polacek  <polacek@redhat.com>
4655         * doc/gcov.texi (Gcov Data Files): Fix a typo.
4657 2012-09-27  Jakub Jelinek  <jakub@redhat.com>
4659         PR target/54703
4660         * simplify-rtx.c (simplify_binary_operation_1): Perform
4661         (x - (x & y)) -> (x & ~y) optimization only for integral modes.
4663 2012-09-27  Marc Glisse  <marc.glisse@inria.fr>
4665         PR c/53024
4666         PR c++/54427
4667         * doc/extend.texi (Vector Extensions): C++ improvements.
4668         Power of 2 size requirement.
4670 2012-09-27  Richard Guenther  <rguenther@suse.de>
4672         PR lto/54709
4673         * lto-symtab.c (resolution_guessed_p): Remove.
4674         (set_resolution_guessed): Likewise.
4675         (lto_symtab_register_decl): Remove assert.
4676         (lto_symtab_resolve_symbols): Do not alter symbol resolutions
4677         and return the prevailing symbol, checking for multiple prevailing
4678         symbols here.
4679         (lto_symtab_merge_decls_1): Use the result from
4680         lto_symtab_resolve_symbols.  Do not alter symbol resolutions.
4682 2012-09-26  Steve Ellcey  <sellcey@mips.com>
4684         PR web/54711
4685         * doc/install.texi: Fix example.
4687 2012-09-26  Dehao Chen  <dehao@google.com>
4689          * tree-ssa-live.c (clear_unused_block_pointer): Use explicitit (void)
4690         for function parameter.
4691         (remove_unused_locals): Don't use LOCATION_BLOCK if it is NULL.
4693 2012-09-26  Oleg Endo  <olegendo@gcc.gnu.org>
4695         * doc/extend.texi (bswap Builtins): Change signed types to unsigned
4696         types.
4698 2012-09-26  Ian Lance Taylor  <iant@google.com>
4700         * diagnostic.c (bt_callback): Cast pc when calling fprintf.
4702 2012-09-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4704         PR tree-optimization/54674
4705         * gimple-ssa-strength-reduction.c (analyze_increments): Don't
4706         introduce a multiplication with a pointer operand.
4708 2012-09-26  Georg-Johann Lay  <avr@gjlay.de>
4710         PR middle-end/54635
4711         * doc/tm.texi.in (TARGET_MODE_DEPENDENT_ADDRESS_P): Document new
4712         parameter addrspace.
4713         * doc/tm.texi: Regenerate.
4714         * target.def (mode_dependent_address_p): Add addr_space_t parameter.
4715         * targhooks.h (default_mode_dependent_address_p): Ditto.
4716         * targhooks.c (default_mode_dependent_address_p): Ditto.
4717         * expr.c (convert_move): Pass address space to
4718         mode_dependent_address_p.
4719         * combine.c (combine_simplify_rtx): Ditto.
4720         (make_extraction): Ditto.
4721         (simplify_shift_const_1): Ditto.
4722         (gen_lowpart_for_combine): Ditto.
4723         * lower-subreg.c (simple_move_operand): Ditto.
4724         * recog.c (simplify_while_replacing): Ditto.
4725         (offsettable_address_addr_space_p): Ditto.
4726         (mode_dependent_address_p): Ditto.
4727         * simplify-rtx.c (simplify_unary_operation_1): Ditto.
4728         (simplify_subreg): Ditto.
4729         * config/m68k/m68k.md: Ditto.
4730         * config/vax/vax.md: Ditto.
4731         * config/vax/constraints.md (Q): Ditto.
4732         * config/vax/predicates.md (indexed_memory_operand): Ditto.
4733         * config/alpha/alpha.c (alpha_mode_dependent_address_p): Add
4734         unused addr_space_t parameter.
4735         * config/avr/avr.c (avr_mode_dependent_address_p): Ditto.
4736         * config/h8300/h8300.c (h8300_mode_dependent_address_p): Ditto.
4737         * config/m32r/m32r.c (m32r_mode_dependent_address_p): Ditto.
4738         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): Ditto.
4739         * config/rx/rx.c (rx_mode_dependent_address_p): Ditto.
4740         * config/sparc/sparc.c (sparc_mode_dependent_address_p): Ditto.
4741         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
4742         Ditto.
4743         * config/vax/vax.c (vax_mode_dependent_address_p): Ditto.
4744         * config/xtensa/xtensa.c (xtensa_mode_dependent_address_p): Ditto.
4746 2012-09-26  Christophe Lyon <christophe.lyon@linaro.org>
4748         * tree-ssa-math-opts.c (bswap_stats): Add found_16bit field.
4749         (execute_optimize_bswap): Add support for builtin_bswap16.
4751 2012-09-26  Richard Guenther  <rguenther@suse.de>
4753         * tree.h (DECL_IS_BUILTIN): Compare LOCATION_LOCUS.
4755 2012-09-26  Ian Lance Taylor  <iant@google.com>
4757         * diagnostic.c: Include "demangle.h" and "backtrace.h".
4758         (bt_stop): New static array.
4759         (bt_callback, bt_err_callback): New static functions.
4760         (diagnostic_action_after_output): Call backtrace_full for DK_ICE.
4761         * Makefile.in (BACKTRACE): New variable.
4762         (BACKTRACEINC, LIBBACKTRACE): New variables.
4763         (BACKTRACE_H): New variable.
4764         (LIBDEPS, LIBS): Add $(LIBBACKTRACE).
4765         (INCLUDES): Add $(BACKTRACEINC).
4766         (diagnostic.o): Depend upon $(DEMANGLE_H) and $(BACKTRACE_H).
4768 2012-09-25  Segher Boessenkool  <segher@kernel.crashing.org>
4770         PR target/51274
4771         PR target/53087
4772         * config/rs6000/rs6000.md (ne0si): Remove unnecessary
4773         earlyclobber.  Merge with...
4774         (ne0di): ... to...
4775         (ne0_<mode>): New.
4776         (plus_ne0si): Merge with...
4777         (plus_ne0di): ... to...
4778         (plus_ne0_<mode>): New.
4779         (compare_plus_ne0si): Merge with...
4780         (compare_plus_ne0di)... to...
4781         (compare_plus_ne0_<mode>): New.
4782         (compare_plus_ne0_<mode>_1): New.
4783         (plus_ne0si_compare): Merge with...
4784         (plus_ne0di_compare)... to...
4785         (plus_ne0_<mode>_compare): New.
4787 2012-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
4789         PR target/54089
4790         * config/sh/constraints.md (Jhb): New constraint.
4791         * config/sh/predicates.md (negt_reg_shl31_operand): New predicate.
4792         * config/sh/sh.md (rotrsi3): New expander.
4793         (rotrsi3_1, *rotrsi3_1, *rotlsi3_1): New insns.
4794         (rotlsi3, rotlhi3): Use const_int_operand predicate instead of
4795         immediate_operand and remove CONST_INT_P checks in expansion code.
4796         (*rotcr): Cleanup variable usage.  Handle preceding nott insn.  Add
4797         split with swapped operands.
4798         (*rotcr_neg_t, *movt_msb, *negt_msb): New insns and splits.
4800 2012-09-25  Aldy Hernandez  <aldyh@redhat.com>
4802         PR middle-end/53850
4803         * trans-mem.c (expand_call_tm): Handle late built built-ins.
4805 2012-09-25  Georg-Johann Lay  <avr@gjlay.de>
4807         PR other/54701
4808         * config/avr/avr-log.c (avr_double_int_pop_digit): Rewrite using
4809         double_int::udivmod.
4811 2012-09-25  Georg-Johann Lay  <avr@gjlay.de>
4813         * config/avr/avr.c (avr_set_current_function): Check cfun->machine
4814         to be non-NULL.
4816 2012-09-25  Georg-Johann Lay  <avr@gjlay.de>
4818         PR target/54641
4819         * config/avr/t-avr: Use ALL_COMPILERFLAGS instead of ALL_CFLAGS
4820         for sources compiled with COMPILER.
4822 2012-09-25  Richard Guenther  <rguenther@suse.de>
4824         PR lto/54625
4825         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Do not merge
4826         cgraph nodes for builtins.
4828 2012-09-25  Jakub Jelinek  <jakub@redhat.com>
4830         PR tree-optimization/54676
4831         * tree-vrp.c (set_and_canonicalize_value_range): Handle
4832         one bit precision properly.
4834         PR other/54692
4835         * configure.ac (CFLAGS, CXXFLAGS): Remove -Ofast or -Og properly.
4836         * configure: Regenerated.
4838 2012-09-25  Georg-Johann Lay  <avr@gjlay.de>
4840         PR other/54701
4841         * config/avr/avr.c (avr_map_decompose): Use double_int::from_uhwi
4842         instead of uhwi_to_double_int.
4844 2012-09-25  Richard Guenther  <rguenther@suse.de>
4846         * lto-symtab.c (lto_symtab_merge_decls_1): Properly merge
4847         all of the chain.
4849 2012-09-25  Richard Guenther  <rguenther@suse.de>
4851         PR tree-optimization/53663
4852         * tree-ssa-sccvn.c (vn_reference_lookup_3): Conditional
4853         native encode/interpret translation on VN_WALKREWRITE.
4855 2012-09-24  Dehao Chen  <dehao@google.com>
4857         * tree-cfg.c (move_stmt_op): Reset the expr block only when necessary.
4858         (move_block_to_fn): Reset the edge's goto block even
4859         when the goto locus is unknown.
4861 2012-09-24  Lawrence Crowl  <crowl@google.com>
4863         * double-int.h (double_int::from_pair): New.
4864         (double_int::wide_mul_with_sign): New.
4865         (double_int::sub_with_overflow): New.
4866         (double_int::neg_with_overflow): New.
4867         (double_int::divmod_with_overflow): New.
4868         (shwi_to_double_int): Remove.
4869         (uhwi_to_double_int): Remove.
4870         (double_int_to_shwi): Remove.
4871         (double_int_to_uhwi): Remove.
4872         (double_int_fits_in_uhwi_p): Remove.
4873         (double_int_fits_in_shwi_p): Remove.
4874         (double_int_fits_in_hwi_p): Remove.
4875         (double_int_mul): Remove.
4876         (double_int_mul_with_sign): Remove.
4877         (double_int_add): Remove.
4878         (double_int_sub): Remove.
4879         (double_int_neg): Remove.
4880         (double_int_div): Remove.
4881         (double_int_sdiv): Remove.
4882         (double_int_udiv): Remove.
4883         (double_int_mod): Remove.
4884         (double_int_smod): Remove.
4885         (double_int_umod): Remove.
4886         (double_int_divmod): Remove.
4887         (double_int_sdivmod): Remove.
4888         (double_int_udivmod): Remove.
4889         (double_int_multiple_of): Remove.
4890         (double_int_setbit): Remove.
4891         (double_int_ctz): Remove.
4892         (double_int_not): Remove.
4893         (double_int_ior): Remove.
4894         (double_int_and): Remove.
4895         (double_int_and_not): Remove.
4896         (double_int_xor): Remove.
4897         (double_int_lshift): Remove.
4898         (double_int_rshift): Remove.
4899         (double_int_lrotate): Remove.
4900         (double_int_rrotate): Remove.
4901         (double_int_negative_p): Remove.
4902         (double_int_cmp): Remove.
4903         (double_int_scmp): Remove.
4904         (double_int_ucmp): Remove.
4905         (double_int_max): Remove.
4906         (double_int_smax): Remove.
4907         (double_int_umax): Remove.
4908         (double_int_min): Remove.
4909         (double_int_smin): Remove.
4910         (double_int_umin): Remove.
4911         (double_int_ext): Remove.
4912         (double_int_sext): Remove.
4913         (double_int_zext): Remove.
4914         (double_int_mask): Remove.
4915         (double_int_max_value): Remove.
4916         (double_int_min_value): Remove.
4917         (double_int_zero_p): Remove.
4918         (double_int_one_p): Remove.
4919         (double_int_minus_one_p): Remove.
4920         (double_int_equal_p): Remove.
4921         (double_int_popcount): Remove.
4922         (extern add_double_with_sign): Remove.
4923         (#define add_double): Remove.
4924         (extern neg_double): Remove.
4925         (extern mul_double_with_sign): Remove.
4926         (extern mul_double_wide_with_sign): Remove.
4927         (#define mul_double): Remove.
4928         (extern lshift_double): Remove.
4929         (extern div_and_round_double): Remove.
4930         * double-int.c (add_double_with_sign): Make static.
4931         (#defined add_double): Localized from header.
4932         (neg_double): Make static.
4933         (mul_double_with_sign): Make static.
4934         (mul_double_wide_with_sign): Make static.
4935         (#defined mul_double): Localized from header.
4936         (lshift_double): Make static.
4937         (div_and_round_double): Make static.
4938         (double_int::wide_mul_with_sign): New.
4939         (double_int::sub_with_overflow): New.
4940         (double_int::neg_with_overflow): New.
4941         (double_int::divmod_with_overflow): New.
4942         * emit-rtl.c (init_emit_once): Change to new double_int API.
4943         * explow.c (plus_constant): Likewise.
4944         * expmed.c (choose_multiplier): Likewise.
4945         * fold-const.c (#define OVERFLOW_SUM_SIGN): Remove.
4946         (int_const_binop_1): Change to new double_int API.
4947         (fold_div_compare): Likewise.
4948         (maybe_canonicalize_comparison): Likewise.
4949         (pointer_may_wrap_p): Likewise.
4950         (fold_negate_const): Likewise.
4951         (fold_abs_const): Likewise.
4952         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
4953         (simplify_const_binary_operation): Likewise.
4954         * tree-chrec.c (tree_fold_binomial): Likewise.
4955         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
4956         * config/sparc/sparc.c (sparc_fold_builtin): Likewise.
4957         * config/avr/avr.c (avr_double_int_push_digit): Likewise.
4958         (avr_map): Likewise.
4959         (avr_map_decompose): Likewise.
4960         (avr_out_insert_bits): Likewise.
4962 2012-09-24  Janis Johnson  <janisjo@codesourcery.com>
4964         * doc/sourcebuild.texi (Selectors): Document the use of target
4965         and xfail used together.
4967 2012-09-24  Richard Guenther  <rguenther@suse.de>
4969         PR middle-end/54632
4970         * tree-ssa-live.c (clear_unused_block_pointer_1): Do not
4971         handle DECL_DEBUG_EXPR_IS_FROM here...
4972         (clear_unused_block_pointer): ... but here when walking all
4973         local decls.
4975 2012-09-24  Richard Guenther  <rguenther@suse.de>
4977         PR tree-optimization/54684
4978         * tree-ssa-ccp.c (optimize_unreachable): Properly update stmts.
4980 2012-09-24  Marc Glisse  <marc.glisse@inria.fr>
4982         * tree-ssa-forwprop.c: Include tree-ssa-propagate.h.
4983         (simplify_bitfield_ref): Handle constructors.
4984         * Makefile.in (tree-ssa-forwprop.o): Depend on tree-ssa-propagate.h.
4986 2012-09-24  Richard Guenther  <rguenther@suse.de>
4988         * tree-ssa-pre.c (bitmap_find_leader, create_expression_by_pieces,
4989         find_or_generate_expression): Remove dominating stmt argument.
4990         (find_leader_in_sets, phi_translate_1, bitmap_find_leader,
4991         create_component_ref_by_pieces_1, create_component_ref_by_pieces,
4992         do_regular_insertion, do_partial_partial_insertion): Adjust.
4993         (compute_avail): Do not set uids.
4995 2012-09-24  Eric Botcazou  <ebotcazou@adacore.com>
4997         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream in
4998         TYPE_NONALIASED_COMPONENT flag.
4999         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream out
5000         TYPE_NONALIASED_COMPONENT flag.
5002 2012-09-24  Jia Liu  <proljc@gmail.com>
5004         * doc/lto.texi: Separate sections.
5005         * doc/plugins.texi: Likewise.
5007 2012-09-24  Richard Guenther  <rguenther@suse.de>
5009         PR middle-end/52173
5010         * gimple.c (gimple_copy): Properly mark the copy modified
5011         if SSA operands are present.
5013 2012-09-23  Eric Botcazou  <ebotcazou@adacore.com>
5015         PR tree-optimization/54669
5016         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Invoke
5017         maybe_clean_or_replace_eh_stmt on the modified use statements.
5019 2012-09-23  Marc Glisse  <marc.glisse@inria.fr>
5021         * expr.c (do_store_flag): Remove duplicated code.
5023 2012-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
5025         * config/rs6000/predicates.md (altivec_register_operand,
5026         vsx_register_operand, vfloat_operand, vint_operand,
5027         vlogical_operand, gpc_reg_operand, cc_reg_operand,
5028         cc_reg_not_cr0_operand, cc_reg_not_micro_cr0_operand):
5029         If op is a SUBREG, consider its SUBREG_REG instead.
5031 2012-09-22  Uros Bizjak  <ubizjak@gmail.com>
5033         * optabs.c (prepare_cmp_insn): Expand comparison of the result
5034         of memcmp through generic comparison expansion code.
5036 2012-09-21  Anthony Green  <green@moxielogic.com>
5038         * config/moxie/moxie.opt: Add -mno-crt0 option.
5039         * config/moxie/moxie.h (STARTFILE_SPEC): Handle -mno-crt0 option.
5040         * doc/invoke.texi (Option Summary): Document -mno-crt0 option.
5042 2012-09-21  Jack Howarth  <howarth@bromo.med.uc.edu>
5044         PR bootstrap/54642
5045         * Makefile.in (lto-symtab.o): Remove gt-lto-symtab.h dependency.
5047 2012-09-21  Dehao Chen  <dehao@google.com>
5049         PR go/54649
5050         * tree-eh.c (lower_try_finally_dup_block): Set the correct block for
5051         stmts in the duplicated EH block.
5053 2012-09-21  Richard Guenther  <rguenther@suse.de>
5055         PR tree-optimization/54647
5056         * tree-ssa-pre.c (compute_avail): Do not put COND_EXPR
5057         or VEC_COND_EXPR into EXP_GEN again.
5059 2012-09-21  Jakub Jelinek  <jakub@redhat.com>
5061         PR tree-optimization/54629
5062         * tree-loop-distribution.c (classify_partition): Free loop nest only
5063         after freeing ddr.  Free ddr and loop nest also if successful.
5065 2012-09-21  Matthias Klose  <doko@ubuntu.com>
5067         * config/arm/arm.c (arm_mangle_type): Don't warn anymore that
5068         4.4 has changed the `va_list' mangling.
5070 2012-09-21  Eric Botcazou  <ebotcazou@adacore.com>
5072         PR rtl-optimization/54290
5073         PR rtl-optimization/54644
5074         * reload1.c (choose_reload_regs): Fix thinko in previous change.
5076 2012-09-20  Segher Boessenkool  <segher@kernel.crashing.org>
5078         * config/rs6000/rs6000.md (define_split for plus_eqsi):
5079         Fix output pattern.
5081 2012-09-20  Eric Botcazou  <ebotcazou@adacore.com>
5083         * reload1.c (choose_reload_regs): Add missing #ifdef/#endif pair.
5085 2012-09-20  Bernd Schmidt  <bernds@codesourcery.com>
5087         PR bootstrap/54643
5088         * haifa-sched.c (schedule_block): Skip find_modifiable_mems if using
5089         SCHED_PRESSURE_MODEL.
5091 2012-09-20  Joern Rennecke  <joern.rennecke@embecosm.com>
5093         * rtlanal.c (dead_or_set_regno_p): Fix COND_EXEC handling.
5095 2012-09-20  Marek Polacek  <polacek@redhat.com>
5097         * tree-ssa-operands.c (get_expr_operands): Merge identical cases.
5099 2012-09-20  Marek Polacek  <polacek@redhat.com>
5101         * tree-ssa-threadupdate.c (mark_threaded_blocks): Don't cast XNEWVEC's
5102         result.
5103         (create_edge_and_update_destination_phis): Likewise.
5105 2012-09-20  Martin Jambor  <mjambor@suse.cz>
5107         * function.c (push_cfun): Check old current_function_decl matches
5108         old cfun, set new current_function_decl to the decl of the new cfun.
5109         (push_struct_function): Likewise.
5110         (pop_cfun): Likewise.
5111         (allocate_struct_function): Move call to
5112         invoke_set_current_function_hook to the end of the function.
5113         * cfgexpand.c (estimated_stack_frame_size): Do not set and restore
5114         current_function_decl.
5115         * cgraph.c (cgraph_release_function_body): Likewise.
5116         * cgraphunit.c (cgraph_process_new_functions): Likewise.
5117         (cgraph_add_new_function): Likewise.
5118         (cgraph_analyze_function): Likewise.
5119         (assemble_thunk): Set cfun to NULL at the end.
5120         (expand_function): Move call to set_cfun downwards.
5121         * gimple-low.c (record_vars_into): Only check current_function_decl
5122         before possibly doing push_cfun.
5123         * gimplify.c (gimplify_function_tree): Do not set and restore
5124         current_function_decl.
5125         * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
5126         (inline_analyze_function): Likewise.
5127         * ipa-prop.c (ipa_analyze_node): Likewise.
5128         * ipa-pure-const.c (analyze_function): Likewise.
5129         * lto-streamer-in.c (lto_input_function_body): Do not set
5130         current_function_decl.
5131         * lto-streamer-out.c (output_function): Do not set and restore
5132         current_function_decl.
5133         * omp-low.c (finalize_task_copyfn): Likewise.
5134         (expand_omp_taskreg): Likewise.
5135         (create_task_copyfn): Likewise, move push_cfun up quite a bit.
5136         * passes.c (dump_passes): Do not set and restore current_function_decl.
5137         (do_per_function): Likewise.
5138         (do_per_function_toporder): Likewise.
5139         * trans-mem.c (ipa_tm_scan_irr_function): Likewise.
5140         (ipa_tm_transform_transaction): Likewise.
5141         (ipa_tm_transform_clone): Likewise.
5142         (ipa_tm_execute): Likewise.
5143         * tree-emutls.c (lower_emutls_function_body): Likewise.
5144         * tree-inline.c (initialize_cfun): Do not call pop_cfun.
5145         (tree_function_versioning): Do not call push_cfun, do not set and
5146         restore current_function_decl.  Remove assert checking consistency of
5147         cfun and current_function_decl.
5148         * tree-profile.c (tree_profiling): Do not set and restore
5149         current_function_decl.
5150         * tree-sra.c (convert_callers_for_node): Do not set
5151         current_function_decl.
5152         (convert_callers): Do not restore current_function_decl.
5153         (modify_function): Do not set current_function_decl.
5154         * tree-ssa-structalias.c (ipa_pta_execute): Do not set and restore
5155         current_function_decl.
5157 2012-09-20  Diego Novillo  <dnovillo@google.com>
5159         PR target/54631
5160         * config/vxworks.c (vxworks_emutls_var_init): Update for new
5161         VEC_quick_push interface.
5163 2012-09-20  Richard Guenther  <rguenther@suse.de>
5165         PR tree-optimization/54634
5166         * tree-data-ref.c (get_references_in_stmt): For now give
5167         up for pure functions.
5169 2012-09-20  Chen Wei-Ren  <chenwj@iis.sinica.edu.tw>
5171         * doc/lto.texi: Correct typo.
5173 2012-09-19  Dehao Chen  <dehao@google.com>
5175         * config/s390/s390.c (s390_chunkify_start): Replacing INSN_LOCATOR.
5176         * config/spu/spu.c (emit_nop_for_insn): Likewise.
5177         (pad_bb): Likewise.
5178         (spu_emit_branch_hint): Likewise.
5179         (insert_hbrp_for_ilb_runout): Likewise.
5180         * config/mep/mep.c (mep_make_bundle): Likewise.
5181         (mep_bundle_insns): Likewise.
5182         * config/sh/sh.c (gen_block_redirect): Likewise.
5183         * config/c6x/c6x.c (gen_one_bundle): Likewise.
5184         * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Likewise.
5185         * config/picochip/picochip.c (picochip_reorg): Likewise.
5186         * config/arm/arm.c (require_pic_register): Likewise.
5187         * config/mips/mips.c (mips16_gp_pseudo_reg): Likewise.
5188         * config/bfin/bfin.c (gen_one_bundle): Likewise.
5190 2012-09-19  Mark Kettenis  <kettenis@openbsd.org>
5192         * config.gcc (hppa*-*-openbsd*): New target.
5193         * config/pa/pa-openbsd.h: New file.
5194         * config/pa/pa32-openbsd.h: New file.
5195         * config/host-openbsd.c: Update copyright year.
5196         (TRY_EXCEPT_VM_SPACE): Define for OpenBSD/hppa.
5198 2012-09-19  Martin Jambor  <mjambor@suse.cz>
5200         * ipa-prop.c (prune_expression_for_jf): New function.
5201         (ipa_set_jf_constant): Use it.
5202         (ipa_set_jf_arith_pass_through): Likewise.
5203         (determine_known_aggregate_parts): Likewise.
5205 2012-09-19  Steve Ellcey  <sellcey@mips.com>
5207         * config.gcc (mips*-mti-elf*): New target.
5208         * config/mips/mti-elf.h: New file.
5209         * config/mips/t-mti-elf: New file.
5211 2012-09-19  Dehao Chen  <dehao@google.com>
5213         * toplev.c (general_init): Init block_locations.
5214         * tree.c (tree_set_block): New.
5215         (tree_block): Change to use LOCATION_BLOCK.
5216         * tree.h (TREE_SET_BLOCK): New.
5217         * final.c (reemit_insn_block_notes): Change to use LOCATION_BLOCK.
5218         (final_start_function): Likewise.
5219         * input.c (expand_location_1): Likewise.
5220         * input.h (LOCATION_LOCUS): New.
5221         (LOCATION_BLOCK): New.
5222         (IS_UNKNOWN_LOCATION): New.
5223         * fold-const.c (expr_location_or): Change to use new location.
5224         * reorg.c (emit_delay_sequence): Likewise.
5225         (try_merge_delay_insns): Likewise.
5226         * modulo-sched.c (dump_insn_location): Likewise.
5227         * lto-streamer-out.c (lto_output_location_bitpack): Likewise.
5228         * lto-cgraph.c (output_node_opt_summary): Likewise.
5229         * jump.c (rtx_renumbered_equal_p): Likewise.
5230         * ifcvt.c (noce_try_move): Likewise.
5231         (noce_try_store_flag): Likewise.
5232         (noce_try_store_flag_constants): Likewise.
5233         (noce_try_addcc): Likewise.
5234         (noce_try_store_flag_mask): Likewise.
5235         (noce_try_cmove): Likewise.
5236         (noce_try_cmove_arith): Likewise.
5237         (noce_try_minmax): Likewise.
5238         (noce_try_abs): Likewise.
5239         (noce_try_sign_mask): Likewise.
5240         (noce_try_bitop): Likewise.
5241         (noce_process_if_block): Likewise.
5242         (cond_move_process_if_block): Likewise.
5243         (find_cond_trap): Likewise.
5244         * ipa-prop.c (ipa_set_jf_constant): Likewise.
5245         (ipa_write_jump_function): Likewise.
5246         * dwarf2out.c (add_src_coords_attributes): Likewise.
5247         * expr.c (expand_expr_real): Likewise.
5248         * tree-parloops.c (create_loop_fn): Likewise.
5249         * recog.c (peep2_attempt): Likewise.
5250         * function.c (free_after_compilation): Likewise.
5251         (expand_function_end): Likewise.
5252         (set_insn_locations): Likewise.
5253         (thread_prologue_and_epilogue_insns): Likewise.
5254         * print-rtl.c (print_rtx): Likewise.
5255         * profile.c (branch_prob): Likewise.
5256         * trans-mem.c (ipa_tm_scan_irr_block): Likewise.
5257         * gimplify.c (gimplify_call_expr): Likewise.
5258         * except.c (duplicate_eh_regions_1): Likewise.
5259         * emit-rtl.c (try_split): Likewise.
5260         (make_insn_raw): Likewise.
5261         (make_debug_insn_raw): Likewise.
5262         (make_jump_insn_raw): Likewise.
5263         (make_call_insn_raw): Likewise.
5264         (emit_pattern_after_setloc): Likewise.
5265         (emit_pattern_after): Likewise.
5266         (emit_debug_insn_after): Likewise.
5267         (emit_pattern_before): Likewise.
5268         (emit_insn_before_setloc): Likewise.
5269         (emit_jump_insn_before): Likewise.
5270         (emit_call_insn_before_setloc): Likewise.
5271         (emit_call_insn_before): Likeise.
5272         (emit_debug_insn_before_setloc): Likewise.
5273         (emit_copy_of_insn_after): Likewise.
5274         (insn_locators_alloc): Remove.
5275         (insn_locators_finalize): Remove.
5276         (insn_locators_free): Remove.
5277         (set_curr_insn_source_location): Remove.
5278         (get_curr_insn_source_location): Remove.
5279         (set_curr_insn_block): Remove.
5280         (get_curr_insn_block): Remove.
5281         (locator_scope): Remove.
5282         (insn_scope): Change to use new location.
5283         (locator_location): Remove.
5284         (insn_line): Change to use new location.
5285         (locator_file): Remove.
5286         (insn_file): Change to use new location.
5287         (locator_eq): Remove.
5288         (insn_locations_init): New.
5289         (insn_locations_finalize): New.
5290         (set_curr_insn_location): New.
5291         (curr_insn_location): New.
5292         * cfgexpand.c (gimple_assign_rhs_to_tree): Change to use new location.
5293         (expand_gimple_cond): Likewise.
5294         (expand_call_stmt): Likewise.
5295         (expand_gimple_stmt_1): Likewise.
5296         (expand_gimple_basic_block): Likewise.
5297         (construct_exit_block): Likewise.
5298         (gimple_expand_cfg): Likewise.
5299         * cfgcleanup.c (try_forward_edges): Likewise.
5300         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
5301         (dump_scope_block): Likewise.
5302         (remove_unused_locals): Likewise.
5303         * rtl.c (rtx_equal_p_cb): Likewise.
5304         (rtx_equal_p): Likewise.
5305         * rtl.h (XUINT): New.
5306         (INSN_LOCATOR): Remove.
5307         (CURR_INSN_LOCATION): Remove.
5308         (INSN_LOCATION): New.
5309         (INSN_HAS_LOCATION): New.
5310         * tree-inline.c (remap_gimple_op_r): Change to use new location.
5311         (copy_tree_body_r): Likewise.
5312         (copy_phis_for_bb): Likewise.
5313         (expand_call_inline): Likewise.
5314         * tree-streamer-in.c (lto_input_ts_exp_tree_pointers): Likewise.
5315         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
5316         * gimple-streamer-out.c (output_gimple_stmt): Likewise.
5317         * combine.c (try_combine): Likewise.
5318         * tree-outof-ssa.c (set_location_for_edge): Likewise.
5319         (insert_partition_copy_on_edge): Likewise.
5320         (insert_value_copy_on_edge): Likewise.
5321         (insert_rtx_to_part_on_edge): Likewise.
5322         (insert_part_to_rtx_on_edge): Likewise.
5323         * basic-block.h (edge_def): Remove field.
5324         * gimple.h (gimple_statement_base): Remove field.
5325         (gimple_bb): Change to use new location.
5326         (gimple_set_block): Likewise.
5327         (gimple_has_location): Likewise.
5328         * tree-cfg.c (make_cond_expr_edges): Likewise.
5329         (make_goto_expr_edges): Likewise.
5330         (gimple_can_merge_blocks_p): Likewise.
5331         (move_stmt_op): Likewise.
5332         (move_block_to_fn): Likewise.
5333         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Likewise.
5334         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
5335         * config/i386/i386.c (x86_output_mi_thunk): Likewise.
5336         * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
5337         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
5338         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
5339         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
5340         * config/score/score.c (score_output_mi_thunk): Likewise.
5341         * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
5342         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
5343         * cfgrtl.c (unique_locus_on_edge_between_p): Likewise.
5344         (unique_locus_on_edge_between_p): Likewise.
5345         (emit_nop_for_unique_locus_between): Likewise.
5346         (force_nonfallthru_and_redirect): Likewise.
5347         (fixup_reorder_chain): Likewise.
5348         (cfg_layout_merge_blocks): Likewise.
5349         * stmt.c (emit_case_nodes): Likewise.
5351 2012-09-19  Bernd Schmidt  <bernds@codesourcery.com>
5353         * dbgcnt.def (sched_breakdep): New counter.
5354         * haifa-sched.c (update_insn_after_change): New static function,
5355         broken out of haifa_change_pattern.
5356         (haifa_change_pattern): Call it.
5357         (dep_t heap vecs): Declare.
5358         (INSN_COST): Define earlier.
5359         (next_cycle_replace_deps, next_cycle_apply): New static variables.
5360         (apply_replacement): New static function.
5361         (recompute_todo_spec): New argument FOR_BACKTRACK.  All callers
5362         changed.  Handle DEP_REPLACE deps.
5363         (contributes_to_priority_p): False for replaceable deps.
5364         (must_restore_pattern_p, restore_pattern): New static functions.
5365         (schedule_insn): Use them.  Apply replacements for broken deps.
5366         (struct haifa_saved_data): Add new fields to keep track of
5367         replacements.
5368         (save_backtrack_point): Initialize them.
5369         (undo_replacements_for_backtrack): New static function.
5370         (restore_last_backtrack_point, free_topmost_backtrack_point):
5371         Use it and keep track of replacements.
5372         (perform_replacements_new_cycle, undo_all_replacements): New static
5373         functions.
5374         (schedule_block): Call these two as necessary.  Call
5375         find_modifiable_mems.
5376         (try_ready): Tweak the assert.  Check for DEP_POSTPONED.
5377         * sched-deps.c: Include "emit-rtl.h".
5378         (init_dep_1): Initialize DEP_NONREG, DEP_MULTIPLE and DEP_REPLACE.
5379         (dep_spec_p): True for DEP_REPLACE deps.
5380         (mark_as_hard): New static variable.
5381         (update_dep): Update DEP_NONREG and DEP_MULTIPLE.
5382         (add_dependence_list): New argument hard.  All callers changed.  Set
5383         and clear mark_as_hard around function body.
5384         (add_dependence_list_and_free): Likewise.
5385         (haifa_note_mem_dep): Set DEP_NONREG.
5386         (haifa_note_dep): Likewise if mark_as_hard is true.
5387         (sched_analyze_insn): Switch loop with if statement testing for
5388         sel_sched_p.
5389         (struct mem_inc_info): New.
5390         (attempt_change, parse_add_or_inc, find_inc, find_mem): New static
5391         functions.
5392         (find_modifiable_mems): New function.
5393         * sched-int.h (struct dep_replacement): New.
5394         (struct _dep): Add replace, nonreg and multiple fields.  Make type and
5395         cost bitfields.
5396         (UNKNOWN_DEP_COST): Change to match the bitfield.
5397         (DEP_NONREG, DEP_MULTIPLE, DEP_REPLACE): New macros.
5398         (DEP_POSTPONED): New macro.
5399         (DEP_CANCELLED): Renumber.
5400         (find_modifiable_mems): Declare.
5401         (enum SCHED_FLAGS): Add DONT_BREAK_DEPENDENCIES.
5402         * sched-rgn.c (init_ready_list): Set TODO_SPEC here.
5403         (new_ready): Don't set HARD_DEP, use DEP_POSTPONED.
5404         (debug_dependencies): Dump DEP_NONREG and DEP_MULTIPLE.
5405         * Makefile.in (sched-deps.o): Update dependencies.
5406         * config/c6x/c6x.c (in_hwloop): New static variable.
5407         (c6x_set_sched_flags): If it is true, add DONT_BREAK_DEPENDENCIES.
5408         (hwloop_optimize): Set and clear it around preliminary scheduling pass.
5410 2012-09-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5412         * config/rs6000/rs6000-builtin.def: Add __builtin_ppc_get_timebase
5413         and __builtin_ppc_mftb.
5414         * config/rs6000/rs6000.c (rs6000_expand_zeroop_builtin): New function
5415         to expand an expression that calls a built-in without arguments.
5416         (rs6000_expand_builtin): Add __builtin_ppc_get_timebase and
5417         __builtin_ppc_mftb.
5418         (rs6000_init_builtins): Likewise.
5419         * config/rs6000/rs6000.md (rs6000_get_timebase): New pattern.
5420         (rs6000_get_timebase_ppc32): New pattern.
5421         (rs6000_mftb_<mode>): New pattern.
5423         * doc/extend.texi (PowerPC Built-in Functions): New section.
5424         (PowerPC AltiVec/VSX Built-in Functions): Move some built-ins
5425         unrelated to Altivec/VSX to the new section.
5427 2012-09-19  David Edelsohn  <dje.gcc@gmail.com>
5429         * rs6000.md (mac*): Remove extra spaces.
5430         (mulhw*): Same.
5432 2012-09-19  Oleg Endo  <olegendo@gcc.gnu.org>
5434         PR target/54089
5435         * config/sh/predicates.md (arith_reg_or_t_reg_operand): New predicate.
5436         * config/sh/sh.md (*rotcr): Use arith_reg_or_t_reg_operand predicate.
5437         Handle the case where one of the operands is T_REG.
5438         Add new pattern to handle MSB extraction.
5440 2012-09-19  Oleg Endo  <olegendo@gcc.gnu.org>
5442         PR target/54236
5443         * config/sh/sh.md (*addc): Add pattern to handle one bit left shifts.
5445 2012-09-19  Oleg Endo  <olegendo@gcc.gnu.org>
5447         * config/sh/sh.md (prologue, epilogue): Use braced strings.
5449 2012-09-19  Eric Botcazou  <ebotcazou@adacore.com>
5451         PR rtl-optimization/54290
5452         * reload1.c (choose_reload_regs): Also take into account secondary MEMs
5453         to remove address replacements for inherited reloads.
5454         (replaced_subreg): Move around.
5456 2012-09-19  David Edelsohn  <dje.gcc@gmail.com>
5458         * config/rs6000/aix61.h (TARGET_DEFAULT): Add MASK_PPC_GPOPT,
5459         MASK_PPC_GFXOPT, and MASK_MFCRF.
5461 2012-09-19  Richard Guenther  <rguenther@suse.de>
5463         * passes.c (init_optimization_passes): For -Og move
5464         pass_object_sizes inbetween CCP and copyprop.
5466 2012-09-19  Richard Guenther  <rguenther@suse.de>
5468         * tree-ssa-forwprop.c (get_prop_source_stmt): Simplify.
5470 2012-09-19  Jan Hubicka  <jh@suse.cz>
5472         * symtab.c (insert_to_assembler_name_hash): Do not insert
5473         register vars.
5474         (unlink_from_assembler_name_hash): NULL out pointers of unlinked var.
5475         (symtab_prevail_in_asm_name_hash): New.
5476         (symtab_initialize_asm_name_hash): Break out from ...
5477         (symtab_node_for_asm): ... here.
5478         (dump_symtab_base): Dump LTO file data.
5479         (verify_symtab_base): Register vars are not in symtab.
5480         * cgraph.h (symtab_initialize_asm_name_hash,
5481         symtab_prevail_in_asm_name_hash): New functions.
5482         (symtab_real_symbol_p): New inline.
5483         * lto-symtab.c: Do not include gt-lto-symtab.h.
5484         (lto_symtab_entry_def): Remove.
5485         (lto_symtab_entry_t): Remove.
5486         (lto_symtab_identifiers): Remove.
5487         (lto_symtab_free): Remove.
5488         (lto_symtab_entry_hash): Remove.
5489         (lto_symtab_entry_eq): Remove.
5490         (lto_symtab_entry_marked_p): Remove.
5491         (lto_symtab_maybe_init_hash_table): Remove.
5492         (resolution_guessed_p, set_resolution_guessed): New functions.
5493         (lto_symtab_register_decl): Only set resolution info.
5494         (lto_symtab_get, lto_symtab_get_resolution): Remove.
5495         (lto_symtab_merge): Reorg to work across symtab; do nothing if decls
5496         are same.
5497         (lto_symtab_resolve_replaceable_p): Reorg to work on symtab.
5498         (lto_symtab_resolve_can_prevail_p): Likewise; only real symbols can
5499         prevail.
5500         (lto_symtab_resolve_symbols): Reorg to work on symtab.
5501         (lto_symtab_merge_decls_2): Likewise.
5502         (lto_symtab_merge_decls_1): Likewise; add debug dumps.
5503         (lto_symtab_merge_decls): Likewise; do not merge at ltrans stage.
5504         (lto_symtab_merge_cgraph_nodes_1): Reorg to work on symtab.
5505         (lto_symtab_merge_cgraph_nodes): Likewise; do not merge at ltrans
5506         stage.
5507         (lto_symtab_prevailing_decl): Rewrite to lookup into symtab.
5508         * lto-streaer.h (lto_symtab_free): Remove.
5509         * lto-cgraph.c (add_references): Cleanup.
5510         * varpool.c (varpool_assemble_decl): Skip hard regs.
5512 2012-09-19  Richard Guenther  <rguenther@suse.de>
5514         PR other/53316
5515         * common/common-target.h (OPT_LEVELS_1_PLUS_NOT_DEBUG): Add.
5517 2012-09-19  Richard Guenther  <rguenther@suse.de>
5519         PR other/53316
5520         * common.opt (optimize_debug): New variable.
5521         (Og): New optimization level.
5522         * doc/invoke.texi (Og): Document.
5523         * opts.c (maybe_default_option): Add debug parameter.
5524         (maybe_default_options): Likewise.
5525         (default_options_optimization): Handle -Og.
5526         (common_handle_option): Likewise.
5527         * passes.c (gate_all_optimizations): Do not run with -Og.
5528         (gate_all_optimizations_g): New gate, run with -Og.
5529         (pass_all_optimizations_g): New container pass, run with -Og.
5530         (init_optimization_passes): Schedule pass_all_optimizations_g
5531         alongside pass_all_optimizations.
5533 2012-09-19  Richard Guenther  <rguenther@suse.de>
5535         PR tree-optimization/54132
5536         * tree-loop-distribution.c (classify_partition): Properly
5537         check dependences for memmove.
5538         * tree-data-ref.h (compute_affine_dependence): Declare.
5539         * tree-data-ref.c (compute_affine_dependence): Export.
5541 2012-09-19  Zhenqiang Chen <zhenqiang.chen@arm.com>
5543         PR middle-end/54364
5544         * bb-reorder.c (connect_better_edge_p): New added.
5545         (find_traces_1_round): When optimizing for size, ignore edge frequency
5546         and probability, and handle all in one round.
5547         (bb_to_key): Use bb->index as key when optimizing for size.
5548         (better_edge_p): The bb with smaller index is better when optimizing
5549         for size.
5550         (connect_traces): When optimizing for size, connect block n with
5551         block n + 1; connect trace m with trace m + 1 if falling through.
5552         (gate_handle_reorder_blocks): Enable bbro when optimizing for -Os.
5554 2012-09-19  Bin Cheng  <bin.cheng@arm.com>
5556         * fold-const.c (fold_truth_andor): Remove duplicated check on
5557         BRANCH_COST.
5559 2012-09-18  Eric Botcazou  <ebotcazou@adacore.com>
5561         PR middle-end/54617
5562         * expr.c (store_field): Handle a PARALLEL in more cases.
5564 2012-09-18  Segher Boessenkool  <segher@kernel.crashing.org>
5566         * config/rs6000/rs6000.md (sminsi3, smaxsi3, uminsi3, umaxsi3): Delete.
5567         (abssi2, abs<mode>2_isel, nabs<mode>2_isel, abssi2_nopower,
5568         nabs_nopower): Delete.
5569         (absdi2, absdi2_internal, nabsdi2): Delete.
5570         (smindi3, smaxdi3, umindi3, umaxdi3): Delete.
5572 2012-09-18  Georg-Johann Lay  <avr@gjlay.de>
5574         * config/avr/avr.md: Tidy up empty "".  Fix C code indentation.
5575         * config/avr/avr-fixed.md: Ditto.
5577 2012-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
5579         * config/rs6000/rs6000.c (print_operand) <'c'>: Remove.
5580         * config/rs6000/spe.md: Remove a leftover comment.
5582 2012-09-18  Jakub Jelinek  <jakub@redhat.com>
5584         PR target/54592
5585         * config/i386/i386.c (ix86_rtx_costs): Limit > UNITS_PER_WORD
5586         AND/IOR/XOR cost calculation to MODE_INT class modes.
5588 2012-09-18 Thomas Quinot  <quinot@adacore.com>
5590         * doc/invoke.texi: Document -fada-spec-parent.
5592 2012-09-18  Jakub Jelinek  <jakub@redhat.com>
5594         PR tree-optimization/54610
5595         * tree-ssa-forwprop.c: Include optabs.h.  Don't include
5596         tree-vectorizer.h.
5597         (simplify_vector_constructor): Don't use vect_gen_perm_mask,
5598         instead create the mask constant here.
5599         * Makefile.in (tree-ssa-forwprop.o): Depend on $(OPTABS_H).
5600         Don't depend on $(TREE_VECTORIZER_H).
5602 2012-09-18  Florian Weimer  <fweimer@redhat.com>
5604         * Makefile.in (BASIC_BLOCK_H): Add cfg-flags.def.
5606 2012-09-18  Richard Guenther  <rguenther@suse.de>
5608         * statistics.h (CXX_MEM_STAT_INFO): New define.
5609         * gimple.h (gimple_build_assign_with_ops_stat,
5610         gimple_build_assign_with_ops, gimple_build_assign_with_ops3):
5611         Turn into an overload of the function gimple_build_assign_with_ops.
5612         * gimple.c (gimple_build_assign_with_ops_stat): Rename to ...
5613         (gimple_build_assign_with_ops): ... this.
5614         * tree-ssa-loop-im.c (move_computations_stmt): Adjust.
5615         * tree-ssa-math-opts.c (convert_mult_to_fma): Likewise.
5616         * tree-vect-data-refs.c (vect_permute_store_chain): Likewise.
5617         (vect_permute_load_chain): Likewise.
5618         * tree-vect-generic.c (expand_vector_divmod): Likewise.
5619         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
5620         (vect_recog_divmod_pattern): Likewise.
5621         (vect_recog_mixed_size_cond_pattern): Likewise.
5622         (adjust_bool_pattern): Likewise.
5623         * tree-vect-slp.c (vect_create_mask_and_perm): Likewise.
5624         * tree-vect-stmts.c (vectorizable_operation): Likewise.
5625         (permute_vec_elements): Likewise.
5626         (vectorizable_load): Likewise.
5628 2012-09-17  Paul Koning  <ni1d@arrl.net>
5630         * doc/invoke.text (-feliminate-unused-debug-types): Update to
5631         reflect that this is enabled by default.
5633 2012-09-17  Ben Cheng  <bccheng@google.com
5635         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Suppress the
5636         dynamic linker commands for statically linked programs.
5638 2012-09-17  Ulrich Weigand  <ulrich.weigand@linaro.org>
5640         * config/arm/arm.c (arm_rtx_costs_1): Handle vec_extract and vec_set
5641         patterns.
5642         * config/arm/arm.md ("vec_set<mode>_internal"): Support memory source
5643         operands, implemented via vld1 instruction.
5644         ("vec_extract<mode>"): Support memory destination operands, implemented
5645         via vst1 instruction.
5646         ("neon_vst1_lane<mode>"): Use UNSPEC_VST1_LANE instead of vec_select.
5647         * config/arm/predicates.md ("neon_lane_number"): Remove.
5649 2012-09-17  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5650             Ulrich Weigand  <ulrich.weigand@linaro.org>
5652         * config/arm/arm.c (output_move_neon): Update comment.
5653         Use vld1.64/vst1.64 instead of vldm/vstm where possible.
5654         (neon_vector_mem_operand): Support double-word modes.
5655         * config/arm/neon.md (*neon_mov VD): Call output_move_neon
5656         instead of output_move_vfp.  Change constraint from Uv to Un.
5658 2012-09-17  Richard Guenther  <rguenther@suse.de>
5660         PR lto/54598
5661         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Use ggc'ed
5662         FIXED_VALUE_TYPE instead of struct fixed_value.
5664 2012-09-17  Georg-Johann Lay  <avr@gjlay.de>
5666         * config/avr/avr.c (CONST_FIXED_P): Remove define.
5667         * config/avr/avr.md (add<mode>3): Use CONST_FIXED_P.
5669 2012-09-17  Georg-Johann Lay  <avr@gjlay.de>
5671         PR target/54607
5672         * config.gcc (tm_file,avr): Add avr/avr-arch.h.
5673         * config/avr/t-avr (gen-avr-mmcu-texi): Use CC_FOR_BUILD to
5674         compile.  Don't depend on TM_H.  Use CFLAGS_FOR_BUILD.
5675         * config/avr/avr.h (avr_arch, base_arch_s, mcu_type_s): Source out
5676         to...
5677         * config/avr/avr-arch.h: ...this new file.
5678         * config/avr/gen-avr-mmcu-texi.c: Include avr-arch.h, stdio.h,
5679         stdlib.h.
5680         * comparator: Make letters smaller than digits.
5681         * config/avr/avr-devices.c: Don't include headers if used in
5682         gen-avr-mmcu-texi.c.
5683         * doc/avr-mmcu.texi: Regenerate.
5685 2012-09-17  Georg-Johann Lay  <avr@gjlay.de>
5687         * rtl.h (CONST_FIXED_P): New predicate macro.
5689 2012-09-17  Eric Botcazou  <ebotcazou@adacore.com>
5691         * tree-cfgcleanup. (cleanup_control_expr_graph) <GIMPLE_COND>: Remove
5692         code doing propagation from degenerate PHI nodes.
5693         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): New function.
5694         (propagate_constants_for_unrolling): Likewise.
5695         (tree_unroll_loops_completely): If the current loop has been unrolled
5696         and its father isn't the entire function, propagate constants within
5697         the new basic blocks by means of propagate_constants_for_unrolling.
5699 2012-09-17  Jakub Jelinek  <jakub@redhat.com>
5701         PR tree-optimization/54563
5702         * tree-ssa-math-opts.c (execute_cse_sincos): Call
5703         gimple_purge_dead_eh_edges if last call has been changed.
5705 2012-09-17  Georg-Johann Lay  <avr@gjlay.de>
5707         PR target/54222
5708         * config/avr/avr.c (avr_out_plus_symbol): Fix typo if PLUS and PSImode.
5709         (avr_out_plus_1): Remove log comments from assembler output.
5711 2012-09-17  Ruben Buchatskiy  <ruben@ispras.ru>
5713         * config/arm/vfp.md (*thumb2_movdf_vfp): Require one of the operands
5714         to be a register.
5716 2012-09-16  Richard Sandiford  <rdsandiford@googlemail.com>
5718         * calls.c (expand_call): Use emit_group_move for PARALLEL->PARALLEL
5719         moves.
5721 2012-09-15  Tom de Vries  <tom@codesourcery.com>
5723         * tree-vrp.c (extract_range_from_binary_expr_1): Fix bug in handling of
5724         LSHIFT_EXPR with shift range.  Handle more LSHIFT_EXPR cases with shift
5725         range.
5727 2012-09-15  Georg-Johann Lay  <avr@gjlay.de>
5729         PR target/54222
5730         * config/avr/avr-fixed.md (ALL2S, ALL4S, ALL24S, ALL124S,
5731         ALL124U): New mode iterators.
5732         (<code_stdname><mode>3): New insns for SS_PLUS, SS_MINUS.
5733         (<code_stdname><mode>3): New insns for US_PLUS, US_MINUS.
5734         (usneg<mode>2): New insns.
5735         (<code_stdname><mode>2): New expanders for SS_NEG, SS_ABS.
5736         (*<code_stdname><mode>2): New insns for SS_NEG, SS_ABS.
5737         * config/avr/avr-dimode.md (ALL8U, ALL8S): New mode iterators.
5738         (avr_out_plus64, avr_out_minus64): Use avr_out_plus instead.
5739         (<code_stdname><mode>3): New expanders for SS_PLUS, SS_MINUS.
5740         (<code_stdname><mode>3): New expanders for US_PLUS, US_MINUS.
5741         (<code_stdname><mode>3_insn): New insns.
5742         (<code_stdname><mode>3_const_insn): New insns.
5743         * config/avr/avr.md (cc): Add: plus. Remove: out_plus,
5744         out_plus_noclobber, minus.
5745         (length): Add: plus.  Remove: out_plus, out_plus_noclobber,
5746         plus64, minus, minus64.
5747         (abelian): New code_attr.
5748         (code_stdname): Handle: ss_plus, ss_minus, ss_neg, ss_abs,
5749         us_plus, us_minus, us_neg.
5750         (*add<mode>3, add<mode>3_clobber, add<mode>3, addpsi3, sub<mode>3):
5751         Use avr_out_plus to output.
5752         * config/avr/avr-protos.h (avr_out_plus): Change prototype.
5753         (avr_out_plus_noclobber, avr_out_minus): Remove.
5754         (avr_out_plus64, avr_out_minus64): Remove.
5755         * config/avr/avr.c (avr_out_plus_1): Add new default arguments
5756         code_sat, sign.  Saturate after operation if code_sat != UNKNOWN.
5757         (avr_out_plus_symbol): New static function.
5758         (avr_out_plus): Rewrite.
5759         (adjust_insn_length): Handle: ADJUST_LEN_PLUS.  Remove handling
5760         of: ADJUST_LEN_OUT_PLUS, ADJUST_LEN_PLUS64, ADJUST_LEN_MINUS,
5761         ADJUST_LEN_MINUS64, ADJUST_LEN_OUT_PLUS_NOCLOBBER.
5762         (notice_update_cc): Handle: CC_PLUS.  Remove handling of: CC_MINUS,
5763         CC_OUT_PLUS, CC_OUT_PLUS_NOCLOBBER
5764         (avr_out_plus_noclobber, avr_out_minus): Remove.
5765         (avr_out_plus64, avr_out_minus64): Remove.
5766         (avr_print_operand): Print raw REGNO if 'r' is used with REG.
5768 2012-09-15  Oleg Endo  <olegendo@gcc.gnu.org>
5770         * config/sh/sh.c (sh_rtx_costs): Add handling of MEM, SIGN_EXTEND,
5771         ZERO_EXTEND and PARALLEL cases.
5772         (sh_address_cost): Correct rtx parsing and tweak cost estimations.
5774 2012-09-14  Sandra Loosemore  <sandra@codesourcery.com>
5776         * doc/tm.texi.in (Stack Arguments): Update obsolete references
5777         to current_function_outgoing_args_size.
5778         (Function Entry): Likewise for current_function_pops_args,
5779         current_function_pretend_args_size,
5780         current_function_outgoing_args_size, and
5781         current_function_epilogue_delay_list.
5782         (Misc): Fix garbled sentence referencing nonexistent
5783         current_function_leaf_function.
5784         * doc/tm.texi: Regenerated.
5786 2012-09-14  Dehao Chen  <dehao@google.com>
5788          * tree-eh.c (goto_queue_node): New field.
5789         (record_in_goto_queue): New parameter.
5790         (record_in_goto_queue_label): New parameter.
5791         (lower_try_finally_dup_block): New parameter.
5792         (maybe_record_in_goto_queue): Update source location.
5793         (lower_try_finally_copy): Likewise.
5794         (honor_protect_cleanup_actions): Likewise.
5795         * gimplify.c (gimplify_expr): Reset the location to unknown.
5797 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
5799         * configure: Regenerated.
5801 2012-09-14  Walter Lee  <walt@tilera.com>
5803         * doc/invoke.texi (Option Summary): fix typesetting for -mcpu
5804         option for TILEPro and TILE-Gx.
5805         (TILE-Gx Options): Fix grammar and spellings in documentation for
5806         -mcmodel.
5808 2012-09-14  Marc Glisse  <marc.glisse@inria.fr>
5810         PR c++/54427
5811         * fold-const.c (fold_unary_loc): Disable for VECTOR_TYPE.
5812         (fold_binary_loc): Likewise.
5813         * gimple-fold.c (and_comparisons_1): Handle VECTOR_TYPE.
5814         (or_comparisons_1): Likewise.
5816 2012-09-14  Richard Earnshaw  <rearnsha@arm.com>
5818         PR target/54516
5819         PR rtl-optimization/54540
5820         * reload.c (find_dummy_reload): Don't use OUT as a reload reg
5821         for IN if it overlaps a fixed register.
5823 2012-09-14  Eric Botcazou  <ebotcazou@adacore.com>
5825         PR rtl-optimization/44194
5826         * calls.c (expand_call): In the PARALLEL case, copy the return value
5827         into pseudos instead of spilling it onto the stack.
5828         * emit-rtl.c (adjust_address_1): Rename ADJUST into ADJUST_ADDRESS and
5829         add new ADJUST_OBJECT parameter.
5830         If ADJUST_OBJECT is set, drop the underlying object if it cannot be
5831         proved that the adjusted memory access is still within its bounds.
5832         (adjust_automodify_address_1): Adjust call to adjust_address_1.
5833         (widen_memory_access): Likewise.
5834         * expmed.c (store_bit_field_1): Call adjust_bitfield_address instead
5835         of adjust_address.  Do not drop the underlying object of a MEM.
5836         (store_fixed_bit_field): Likewise.
5837         (extract_bit_field_1): Likewise.  Fix oversight in recursion.
5838         (extract_fixed_bit_field): Likewise.
5839         * expr.h (adjust_address_1): Adjust prototype.
5840         (adjust_address): Adjust call to adjust_address_1.
5841         (adjust_address_nv): Likewise.
5842         (adjust_bitfield_address): New macro.
5843         (adjust_bitfield_address_nv): Likewise.
5844         * expr.c (expand_assignment): Handle a PARALLEL in more cases.
5845         (store_expr): Likewise.
5846         (store_field): Likewise.
5848         * dse.c: Fix typos in the head comment.
5850 2012-09-14  Christian Bruel  <christian.bruel@st.com>
5852         PR target/54546
5853         * config/sh/sh-protos.h (sh_need_epilogue): Delete.
5854         (sh_can_use_simple_return_p): Declare.
5855         * config/sh/sh.c (sh_can_use_simple_return_p): Define.
5856         (sh_need_epilogue, sh_need_epilogue_known): Delete.
5857         (sh_output_function_epilogue): Remove sh_need_epilogue_known.
5858         * config/sh/sh.md (simple_return, return): Define.
5859         (epilogue): Use inline return rtl.
5860         (sh_expand_epilogue): Cleanup parameters boolean type.
5861         * config/sh/iterators.md (any_return): New iterator.
5863 2012-09-14  Christian Bruel  <christian.bruel@st.com>
5865         * config/sh/predicates.md (t_reg_operand): Check REG_P for SUBREG.
5866         * config/sh/sh.c (sequence_insn_p): Check INSNP_P for SEQUENCE.
5868 2012-09-14  Jakub Jelinek  <jakub@redhat.com>
5870         PR target/54564
5871         * config/i386/sse.md (fmai_vmfmadd_<mode>): Use (match_dup 1)
5872         instead of (match_dup 0) as second argument to vec_merge.
5873         (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>): Likewise.
5874         Remove third alternative.
5875         (*fmai_fnmadd_<mode>, *fmai_fnmsub_<mode>): Likewise.  Negate
5876         operand 2 instead of operand 1, but put it as first argument of fma.
5877         * config/i386/fmaintrin.h (_mm_fnmadd_sd, _mm_fnmadd_ss,
5878         _mm_fnmsub_sd, _mm_fnmsub_ss): Negate the second argument instead
5879         of the first.
5881 2012-09-14  Richard Guenther  <rguenther@suse.de>
5883         PR tree-optimization/54565
5884         * passes.c (init_optimization_passes): Adjust comments.
5885         (execute_function_todo): Do not execute execute_update_addresses_taken
5886         before processing TODO_rebuild_alias.
5887         * tree-ssa-ccp.c (do_ssa_ccp): Schedule TODO_update_address_taken.
5889 2012-09-14  Richard Guenther  <rguenther@suse.de>
5891         * tree-vrp.c (register_new_assert_for): Simplify for backward walk.
5892         (find_assert_locations_1): Walk the basic-block backwards, properly
5893         add/prune from live.  Use live for asserts derived from stmts.
5895 2012-09-14  Marc Glisse  <marc.glisse@inria.fr>
5897         * tree-ssa-forwprop.c (simplify_bitfield_ref): Call
5898         get_prop_source_stmt.
5899         (simplify_permutation): Likewise.
5900         (simplify_vector_constructor): Likewise.
5902 2012-09-14  Richard Guenther  <rguenther@suse.de>
5904         * builtin-types.def (BT_FN_CONST_STRING): Add.
5905         * builtins.def (BUILT_IN_FILE, BUILT_IN_FUNCTION,
5906         BUILT_IN_LINE): New builtins.
5907         * gimplify.c (gimplify_call_expr): Expand them.
5908         * doc/extend.texi (__builtin_LINE, __builtin_FUNCTION,
5909         __builtin_FILE): Document.
5911 2012-09-13  Anthony Green  <green@moxielogic.com>
5913         * config/moxie/moxie.h (LINK_SPEC): Add bi-endian support.
5914         (MULTILIB_DEFAULTS): Define.
5915         (ASM_SPEC): Define.
5916         (BYTES_BIG_ENDIAN, WORDS_BIG_ENDIAN): Add bi-endian support.
5917         (TARGET_CPU_CPP_BUILTINS): Add __MOXIE_LITTLE_ENDIAN__ and
5918         __MOXIE_BIG_ENDIAN__.
5919         * config/moxie/t-moxie (MULTILIB_DIRNAMES, MULTILIB_OPTIONS): Define.
5920         * config/moxie/moxie.opt: New file.
5921         * doc/invoke.texi (Moxie Options): Add section documenting -mel
5922         and -meb.
5924 2012-09-13  Paolo Carlini  <paolo.carlini@oracle.com>
5925             Manuel López-Ibáñez  <manu@gcc.gnu.org>
5927         PR c++/53210
5928         * doc/invoke.texi ([Winit-self]): Document as enabled by -Wall in C++.
5930 2012-09-13  Eric Botcazou  <ebotcazou@adacore.com>
5932         * config/sparc/predicates.md (input_operand): Do not consider TImode
5933         constants as 1-instruction integer constants.
5934         Use register_or_zero_operand instead of register_operand and tidy up.
5935         * config/sparc/sparc.md (movti): New expander.
5936         (movti_insn_sp64): New instruction.
5937         (movti_insn_sp64_hq): Likewise.
5938         (TImode splitters): New splitters.
5939         * config/sparc/sparc.c (sparc_expand_move) <TImode>: New case.
5940         (sparc_legitimate_address_p): Return 0 for REG+REG in TImode.
5942         * config/sparc/sparc-protos.h (arith_double_4096_operand): Delete.
5943         (arith_4096_operand): Likewise.
5944         (zero_operand): Likewise.
5945         (fp_zero_operand): Likewise.
5946         (reg_or_0_operand): Likewise.
5948 2012-09-13  Jakub Jelinek  <jakub@redhat.com>
5950         * configure.ac (CXXFLAGS): Remove -O2 when not bootstrapping.
5951         * configure: Regenerated.
5953 2012-08-13  Uros Bizjak  <ubizjak@gmail.com>
5955         * config/i386/i386.md (prefetch): Do not assert mode of operand 0.
5956         (*prefetch_sse_<mode>): Do not set mode of address_operand predicate.
5957         Rename to ...
5958         (*prefetch_sse): ... this.
5959         (*prefetch_3dnow_<mode>): Do not set mode of address_operand predicate.
5960         Rename to ...
5961         (*prefetch_3dnow): ... this.
5963 2012-09-13  Steven Bosscher  <steven@gcc.gnu.org>
5965         * ipa-pure-const.c (state_from_flags, local_pure_const): Use
5966         current_function_name instead of lang_hooks.decl_printable_name.
5968         * function.h (fndecl_name): New prototype.
5969         * function.c (fndecl_name): New function.
5970         * vecir.h (cgraph_node_p): New standard IR VEC type.
5971         * trans-mem.c (cgraph_node_p): No need anymore to define it here.
5972         * ipa-utils.h (ipa_get_nodes_in_cycle): New prototype.
5973         * ipa-utils.c (ipa_get_nodes_in_cycle): New function.
5974         * ipa-reference.c: Don't include langhooks.h, and certainly not twice.
5975         Fix many formatting issues (long lines, short lines, spacing, etc.).
5976         (get_static_name): Use fndecl_name.
5977         (dump_static_vars_set_to_file): New function split out from propagate.
5978         (union_static_var_sets): New function, union two sets and collapse
5979         to all_module_statics as quickly as possible.
5980         (intersect_static_var_sets): New function, similar to above.
5981         (copy_static_var_set): Renamed from copy_global_bitmap and rewritten
5982         to allocate a copy on the same bitmap_obstack as the source set.
5983         (propagate_bits): Simplify, and clarify by using union_static_var_sets.
5984         (generate_summary): Remove bm_temp.  Print UID of promotable globals.
5985         (read_write_all_from_decl): Use pass-by-reference, bless C++.
5986         (get_read_write_all_from_node): New function, split out from propagate.
5987         (propagate): Simplify and clarify with helper functions.  Use
5988         ipa_get_nodes_in_cycle to walk all nodes in a reduced node.
5989         (ipa_reference_read_optimization_summary): Use fndecl_name instead of
5990         lang_hooks.decl_printable_name.
5992         * rtl.h (print_rtl_single_with_indent): New prototype.
5993         * print-rtl.c (print_rtl_single_with_indent): New function.
5994         * cfghooks.h (empty_block_p, split_block_before_cond_jump): New hooks.
5995         * cfghooks.c (empty_block_p, split_block_before_cond_jump): Implement.
5996         * cfgrtl.c (rtl_block_empty_p, rtl_split_block_before_cond_jump):
5997         Implement RTL specific hooks.
5998         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Register the new hooks.
5999         * tree-cfg.c (gimple_empty_block_p,
6000         gimple_split_block_before_cond_jump): Implement GIMPLE specific hooks.
6001         (gimple_cfg_hooks): Register the new hooks.
6002         * tree-ssa-phiopt.c (empty_block_p): Remove in favor of new hook.
6004 2012-09-13  Richard Guenther  <rguenther@suse.de>
6006         * tree-ssa-sccvn.h (enum vn_kind): New.
6007         (vn_get_stmt_kind): Likewise.
6008         * tree-ssa-sccvn.c (vn_get_stmt_kind): New function, adjust
6009         ADDR_EXPR handling.
6010         (visit_use): Use it.
6011         * tree-ssa-pre.c (compute_avail): Likewise, simplify further.
6013 2012-09-13  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
6015         * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
6016         for targets bdver1, bdver2, btver1 and btver2.
6018 2012-09-13  Christophe Lyon  <christophe.lyon@linaro.org>
6019             Richard Earnshaw  <rearnsha@arm.com>
6021         * config/arm/arm.md (arm_rev): Factorize thumb1, thumb2 and arm
6022         variants for rev instruction..
6023         (thumb1_rev): Delete pattern.
6024         (arm_revsh): New pattern to support builtin_bswap16.
6025         (arm_rev16, bswaphi2): Likewise.
6027 2012-09-12  Teresa Johnson  <tejohnson@google.com>
6029         PR gcov-profile/54487
6030         * configure.ac (HOST_HAS_F_SETLKW): Set based on compile
6031         test using F_SETLKW with fcntl.
6032         * configure, config.in: Regenerate.
6034 2012-09-12  Jan Hubicka  <jh@suse.cz>
6036         PR fortran/48636
6037         * ipa-inline-analysis.c (dump_inline_hints): Dump loop stride.
6038         (set_hint_predicate): New function.
6039         (reset_inline_summary): Reset loop stride.
6040         (remap_predicate_after_duplication): New function.
6041         (remap_hint_predicate_after_duplication): New function.
6042         (inline_node_duplication_hook): Update.
6043         (dump_inline_summary): Dump stride summaries.
6044         (estimate_function_body_sizes): Compute strides.
6045         (remap_hint_predicate): New function.
6046         (inline_merge_summary): Use it.
6047         (inline_read_section): Read stride.
6048         (inline_write_summary): Write stride.
6049         * ipa-inline.c (want_inline_small_function_p): Handle strides.
6050         (edge_badness): Likewise.
6051         * ipa-inline.h (inline_hints_vals): Add stride hint.
6052         (inline_summary): Update stride.
6054 2012-09-12  Uros Bizjak  <ubizjak@gmail.com>
6056         * config/i386/i386.c (x86_prefetch_sse): Change to unsigned char.
6057         * config/i386/i386.h (x86_prefetch_sse): Ditto.
6059 2012-09-12  H.J. Lu  <hongjiu.lu@intel.com>
6061         PR target/54445
6062         * config/i386/predicates.md (x86_64_immediate_operand): Allow
6063         negative offset for UNSPEC_DTPOFF/UNSPEC_NTPOFF.
6065 2012-09-12  Jan Hubicka  <jh@suse.cz>
6067         * common.opt (flto-partition): Add "max".
6068         * invoke.texi (flto-partition): Document "max"
6070 2012-09-12  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
6072         * config/i386/i386.md : Comments on fma4 instruction selection
6073         reflect requirement on register pressure based cost model.
6075         * config/i386/driver-i386.c (host_detect_local_cpu): fma4
6076         flag is set-reset as informed by the cpuid flag.
6078         * config/i386/i386.c (processor_alias_table): fma4
6079         flag is enabled for bdver2.
6081 2012-09-12  Richard Guenther  <rguenther@suse.de>
6083         PR tree-optimization/54489
6084         * tree-ssa-pre.c: Include domwalk.h.
6085         (in_fre): Remove.
6086         (sccvn_valnum_from_value_id): New function.
6087         (debug_bitmap_sets_for): Simplify.
6088         (get_representative_for): Properly initialize the SCCVN valnum.
6089         (create_expression_by_pieces): Likewise.
6090         (insert_into_preds_of_block): Likewise.
6091         (can_PRE_operation): Remove.
6092         (make_values_for_phi): Simplify.
6093         (compute_avail): Likewise.
6094         (do_SCCVN_insertion): Remove.
6095         (eliminate_avail, eliminate_push_avail, eliminate_insert):
6096         New functions.
6097         (eliminate): Split and perform a domwalk.
6098         (eliminate_bb): Former eliminate part that is now dom-enter.
6099         (eliminate_leave_block): New function.
6100         (fini_eliminate): Likewise.
6101         (init_pre): Simplify.
6102         (fini_pre): Likewise.
6103         (execute_pre): Fold into do_pre and do_fre.
6104         (do_pre): Consume execute_pre.
6105         (do_fre): Likewise.
6106         * Makefile.in (tree-ssa-pre.o): Add domwalk.h dependency.
6108 2012-09-12  Diego Novillo  <dnovillo@google.com>
6110         * vec.h: Remove compatibility notes for previous distinction
6111         between vectors of objects and vectors of pointers.
6113 2012-09-12  Christian Bruel  <christian.bruel@st.com>
6115         * config/sh/newlib.h (NO_IMPLICIT_EXTERN_C): Define.
6117 2012-09-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6119         * rtl.h (FFS, FLOAT, ABS, PC): Don't undef.
6120         * system.h (FFS, FLOAT, ABS, PC): Undef.
6122 2012-09-12  Richard Guenther  <rguenther@suse.de>
6124         PR middle-end/54553
6125         * common.opt (finline): Mark with Optimization.
6127 2012-09-12  Jakub Jelinek  <jakub@redhat.com>
6129         * config.gcc: Obsolete picochip-*.
6131 2012-09-12  Nathan Froyd  <froydnj@gcc.gnu.org>
6132             Hans-Peter Nilsson  <hp@bitrange.com>
6134         * config/mmix/mmix.h (MMIX_REG_OK_STRICT): Delete.
6135         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P): Delete.
6136         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
6137         * config/mmix/mmix-protos.h (mmix_intval): Declare.
6138         (mmix_const_ok_for_letter_p, mmix_extra_constraint): Delete.
6139         (mmix_const_double_ok_for_letter_p): Delete.
6140         * config/mmix/constraints.md: New file.
6141         * config/mmix/mmix.md: Include it.
6142         (iordi3): Fix typo; use "I" instead of undefined "H" constraint.
6143         ("*call_real"): Update comment about not using the "p" constraint.
6144         * config/mmix/predicates.md (mmix_reg_or_8bit_operand): Use
6145         satisfies_constraint_I.
6146         (mmix_address_operand): New predicate.
6147         (mmix_symbolic_or_address_operand): Use it instead of address_operand.
6148         * config/mmix/mmix.c: #include tm-constrs.h.
6149         (mmix_intval): Delete declaration.  Make non-static.
6150         (mmix_const_ok_for_letter_p, mmix_extra_constraint): Delete.
6151         (mmix_const_double_ok_for_letter_p): Delete.
6152         (mmix_legitimate_address_p): Use satisfies_constraint_I.
6153         (mmix_print_operand_address): Likewise.
6154         (mmix_emit_sp_add): Adjust to use insn_const_int_ok_for_constraint
6155         when matching "L" constraint.
6157 2012-09-11  Steven Bosscher  <steven@gcc.gnu.org>
6159         * tree.h (expand_case): Move prototype ...
6160         * expr.h (expand_case): ...here.
6161         (expand_sjlj_dispatch_table): New prototype.
6162         * stmt.c: Include pointer-set.h instead of bitmap.h.
6163         (expand_case): Use a pointer set instead of a bitmap for
6164         already-seen labels.  Fold label values here.
6165         (add_case_node): Don't fold label values here.
6166         (expand_sjlj_dispatch_table): New function.
6167         * except.c (sjlj_emit_dispatch_table): Use it.
6169 2012-09-11  Marc Glisse  <marc.glisse@inria.fr>
6171         * tree-ssa-forwprop.c (simplify_vector_constructor): New function.
6172         (ssa_forward_propagate_and_combine): Call it.
6174 2012-09-11  Diego Novillo  <dnovillo@google.com>
6176         * var-tracking.c (vt_add_function_parameter): Adjust for VEC changes.
6178 2012-09-11  Dominique Dhumieres  <dominiq@lps.ens.fr>
6180         * config/darwin.c (darwin_asm_named_section): Adjust for VEC changes.
6181         (darwin_asm_dwarf_section): Likewise.
6183 2012-09-11  Martin Jambor  <mjambor@suse.cz>
6185         * dwarf2out.c (dwarf2out_abstract_function): Do not change cfun.
6186         (premark_used_types): New parameter fun, use it instead of cfun.
6187         (gen_subprogram_die): Use DECL_STRUCT_FUNCTION (decl) instead of cfun,
6188         also pass it to premark_used_types.
6190 2012-09-11  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6192         * doc/sourcebuild.texi (arm_neon_v2_ok): Adjust command line.
6194 2012-09-11  Tobias Burnus  <burnus@net-b.de>
6196         * doc/sourcebuild.texi (arm_neon_v2_ok): Fix @anchor.
6198 2012-09-11  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6199             Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
6201         * config/arm/neon.md (fma<VCVTF:mode>4): New pattern.
6202         (*fmsub<VCVTF:mode>4): Likewise.
6203         * doc/sourcebuild.texi (arm_neon_v2_ok, arm_neon_v2_hw):  Document it.
6205 2012-09-11  Aldy Hernandez  <aldyh@redhat.com>
6207         PR middle-end/54149
6208         * tree-ssa-loop-im.c (execute_sm_if_changed_flag_set): Only set
6209         flag for writes.
6211 2012-09-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6213         PR tree-optimization/55492
6214         * doc/invoke.texi (max-slsr-cand-scan): New description.
6215         * gimple-ssa-strength-reduction.c (find_basis_for_candidate): Limit
6216         the time spent searching for a basis.
6217         * params.def (PARAM_MAX_SLSR_CANDIDATE_SCAN): New param.
6219 2012-09-11  Richard Guenther  <rguenther@suse.de>
6221         * gimple.h (gimple_register_type): Remove.
6222         (print_gimple_types_stats): Adjust prototype.
6223         * lto-streamer.h (print_lto_report): Likewise.
6224         * lto-streamer.c (print_lto_report): Adjust.
6225         * gimple.c (gimple_types, type_hash_cache, enum gtc_mode,
6226         struct type_pair_d, lookup_type_pair, struct sccs,
6227         next_dfs_num, gtc_next_dfs_num, struct gimple_type_leader_entry_s,
6228         gimple_type_leader, gimple_lookup_type_leader, compare_type_names_p,
6229         gtc_visit, gimple_types_compatible_p_1, gimple_types_compatible_p,
6230         visit, iterative_hash_name, struct type_hash_pair,
6231         type_hash_pair_compare, iterative_hash_gimple_type, gimple_type_hash,
6232         gimple_type_eq, gimple_register_type_1, gimple_register_type):
6233         Move to lto/lto.c.
6234         (print_gimple_types_stats): Adjust.
6235         (free_gimple_type_tables): Likewise.
6237 2012-09-11  Richard Guenther  <rguenther@suse.de>
6239         * graphite-scop-detection.c (move_sd_regions): Adjust for VEC changes.
6240         (scopdet_basic_block_info): Likewise.
6241         (build_scops_1): Likewise.
6242         (limit_scops): Likewise.
6244 2012-09-11  Richard Guenther  <rguenther@suse.de>
6246         PR middle-end/54515
6247         * gimple.c (get_base_address): Do not return NULL_TREE apart
6248         from for WITH_SIZE_EXPR.
6249         * gimple-fold.c (canonicalize_constructor_val): Do not call
6250         get_base_address when not necessary.
6252 2012-09-10  Andrew Pinski  <apinski@cavium.com>
6254         PR tree-opt/54362
6255         * trans-mem.c (thread_private_new_memory): Handle COND_EXPR also.
6257 2012-09-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
6259         * config/m68k/m68k.c (m68k_sched_dfa_post_advance_cycle): Support
6260         starting scheduling from a pre-existing state.
6262 2012-09-10  Diego Novillo  <dnovillo@google.com>
6264         * vec.h (vec_t::quick_push): Remove overload that accepts 'T *'.
6265         Update all users.
6266         (vec_t::safe_push): Likewise.
6267         (vec_t::quick_insert): Likewise.
6268         (vec_t::lower_bound): Likewise.
6269         (vec_t::safe_insert): Likewise.
6270         (vec_t::replace): Change second argument to 'T &'.
6272 2012-09-10  Maciej W. Rozycki  <macro@codesourcery.com>
6274         * config/rs6000/rs6000.md: Move a splitter next to its insn.
6276 2012-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
6278         PR target/54089
6279         * config/sh/sh.h (SH_DYNAMIC_SHIFT_COST): Set always to 1 if
6280         dynamic shifts are available.
6281         (SHIFT_COUNT_TRUNCATED): Always define to 0.  Correct comment.
6282         * config/sh/sh.c (ashl_lshr_seq, ext_ashl_lshr_seq): Add comments.
6283         * config/sh/predicates.md (shift_count_operand): Allow
6284         arith_reg_operand even if TARGET_DYNSHIFT is false.
6285         * config/sh/sh.md (ashlsi3, lshrsi3): Expand library call patterns
6286         if needed.
6287         (ashlsi3_d_call, lshrsi3_d_call): New insns.
6289 2012-09-10  Richard Sandiford  <rdsandiford@googlemail.com>
6291         * ira.c (setup_pressure_classes): Handle synonymous classes.
6293 2012-09-10  Marc Glisse  <marc.glisse@inria.fr>
6295         * tree-ssa-forwprop.c (simplify_bitfield_ref): New function.
6296         (ssa_forward_propagate_and_combine): Call it.
6298 2012-09-10  Steve Ellcey  <sellcey@mips.com>
6300         * config.gcc: Add mips*-mti-linux* target
6301         Handle with_synci like other options.
6302         * config/mips/gnu-user64.h (LINUX64_DRIVER_SELF_SPECS): New.
6303         (DRIVER_SELF_SPECS): Define in terms of LINUX64_DRIVER_SELF_SPECS.
6304         * config/mips/mips.h (MIPS_ISA_SYNCI_SPEC): New.
6305         * config/mips/mti-linux.h: New file.
6306         * config/mips/t-mti-linux: New file.
6308 2012-09-10  Marc Glisse  <marc.glisse@inria.fr>
6310         * tree-ssa-forwprop.c (simplify_permutation): Handle CONSTRUCTOR.
6312 2012-09-10  Martin Jambor  <mjambor@suse.cz>
6314         * params.def (PARAM_IPA_MAX_AGG_ITEMS): New parameter.
6315         * ipa-prop.c: Include params.h.
6316         (IPA_MAX_AFF_JF_ITEMS): Removed.
6317         (determine_known_aggregate_parts): Use param value of
6318         PARAM_IPA_MAX_AGG_ITEMS instead of IPA_MAX_AFF_JF_ITEMS.
6319         * Makefile.in (ipa-prop.o): Add PARAMS_H dependency.
6321 2012-09-10  Richard Guenther  <rguenther@suse.de>
6323         PR tree-optimization/54520
6324         * tree-ssa-threadupdate.c (def_split_header_continue_p):
6325         Properly consider sub-loops.
6327 2012-09-10  Richard Henderson  <rth@redhat.com>
6329         * config/alpha/predicates.md (small_symbolic_operand): Disallow
6330         large offsets.
6332 2012-09-10  Georg-Johann Lay  <avr@gjlay.de>
6334         PR target/54536
6335         * config/avr/avr-mcus.def (at90usb1287): Set LIBRARY_NAME to "usb1287".
6337 2012-09-10  Jan Hubicka  <jh@suse.cz>
6339         * lto-cgraph.c (compute_ltrans_boundary): Do not care about aliases.
6340         * symtab.c (symtab_make_decl_local): Remove user defined visibility
6341         when making symbol local.
6343 2012-09-09  Mark Kettenis  <kettenis@gnu.org>
6345         * config/openbsd-stdint.h (INTMAX_TYPE, UINTMAX_TYPE): Define.
6347 2012-09-09  Jan Hubicka  <jh@suse.cz>
6349         * passes.c (ipa_write_summaries_1): Set state;
6350         do not call compute_ltrans_boundary.
6351         (ipa_write_optimization_summaries): Likewise.
6352         (ipa_write_summaries): compute_ltrans_boundary here.
6353         * lto-streamer.h (lto_symtab_encoder_d): NODES are allocated in heap.
6354         (compute_ltrans_boundary): Update prototype.
6356 2012-09-09  Ulrich Drepper  <drepper@gmail.com>
6358         * config/i386/cpuid.h: Define signature_*_e[bcd]x macros for
6359         matching results of level 0 calls to __cpuid to processor
6360         manufacturers.
6361         * config/i386/driver-i386.c (vendor_signatures): Removed.
6362         (processor_signatures): Removed.
6363         (host_detect_local_cpu): Replace uses of now-removed SIG_*
6364         constants with the new signature_*_ebx constants.
6366 2012-09-08  Jan Hubicka  <jh@suse.cz>
6368         Replace cgraph_node_set and varpool_node_set by symtab_node_encoder
6369         in partitioning.
6370         * tree-pass.h (cgraph_node_set_def, varpool_node_set_def): Remove
6371         forward declaration.
6372         (lto_symtab_encoder_d): Forward declare.
6373         (ipa_write_optimization_summaries): Update.
6374         * lto-cgraph.c (lto_symtab_encoder_new): Do not initialize
6375         body, initializer and in_partition.
6376         (lto_symtab_encoder_delete): Update.
6377         (lto_symtab_encoder_encode): Update.
6378         (lto_symtab_encoder_lookup): Move inline.
6379         (lto_symtab_encoder_delete_node): New function.
6380         (lto_symtab_encoder_encode_body_p, lto_set_symtab_encoder_encode_body,
6381         lto_symtab_encoder_encode_initializer_p,
6382         lto_set_symtab_encoder_encode_initializer,
6383         lto_symtab_encoder_in_partition_p,
6384         lto_symtab_encoder_in_partition_p): Update.
6385         (compute_ltrans_boundary): Take encoder as an input.
6386         * passes.c (ipa_write_summaries_1): Update.
6387         (ipa_write_summaries_1): Update.
6388         (ipa_write_summaries): Update.
6389         (ipa_write_optimization_summaries): Update.
6390         * lto-streamer.c (print_lto_report): Report number of cgraph nodes.
6391         * lto-streamer.h (lto_stats_d): Replace num_output_cgraph_nodes by
6392         num_output_symtab_nodes.
6393         (lto_encoder_entry): New structure.
6394         (struct lto_symtab_encoder_d): Reorg.
6395         (lto_symtab_encoder_delete_node): Declare.
6396         (lto_symtab_encoder_lookup): Bring inline.
6397         (compute_ltrans_boundary): Update.
6398         (lto_symtab_encoder_size): Update.
6399         (lsei_node, lsei_cgraph_node, lsei_varpool_node): Update.
6400         (lto_symtab_encoder_deref): Update.
6402 2012-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6404         * config/pa/pa.c (hppa_rtx_costs): Update costs for large
6405         integer modes.
6407 2012-09-08  Andi Kleen  <ak@linux.intel.com>
6409         * lto/lto.c (do_whole_program_analysis): Fix last broken patch.
6411 2012-09-08  Andi Kleen  <ak@linux.intel.com>
6413         * common.opt (-fmem-report-wpa): Add
6414         * doc/invoke.texi (-fmem-report-wpa): Document.
6415         * lto/lto.c (do_whole_program_analysis): Run mem_report
6416         when mem_report_wpa is set.
6418 2012-09-07  Anthony Green  <green@moxielogic.com>
6420         * config/moxie/moxie.c (moxie_expand_prologue): Optimize prologue
6421         for functions with large static stack requirements.
6422         (moxie_expand_epilogue): Use $r12 instead of $r5 for pulling saved
6423         values off of the stack.
6425 2012-09-07  Nick Clifton  <nickc@redhat.com>
6427         * config/v850/v850.h (DBX_DEBUGGING_INFO): Define.
6428         (ASM_GENERATE_INTERNAL_LABEL): Define if not already provided.
6429         * config/v850/v850.c (compute_register_save_size): Always include
6430         the link pointer.
6431         (increment_stack): New function - emits insns to increment or
6432         decrement the stack pointer.
6433         (expand_prologue, expand_epilogue): Use it.
6434         (expand_prologue): Set the function stack size, if requested.
6435         (v850_debug_unwind_info): New function.
6436         (TARGET_DEBUG_UNWIND_INFO): Define.
6438 2012-09-07  Richard Earnshaw  <rearnsha@arm.com>
6440         PR tree-ssa/54295
6441         * tree-ssa-math-opts.c (widening_mult_conversion_strippable_p):
6442         Sign-extension of a zero-extended value can be simplified to
6443         just zero-extension.
6445 2012-09-07  Richard Guenther  <rguenther@suse.de>
6447         PR middle-end/53667
6448         * tree-ssa-structalias.c (handle_rhs_call): Properly clobber
6449         EAF_NOESCAPED arguments.  Transitively close non-EAF_DIRECT
6450         arguments separately.
6452 2012-09-07  Steven Bosscher  <steven@gcc.gnu.org>
6454         * bitmap.c (bitmap_last_set_bit): Rewrite to return the correct bit.
6456         * graphite.c (print_global_statistics): Use EDGE_COUNT instead
6457         of VEC_length.
6458         (print_graphite_scop_statistics): Likewise.
6459         * graphite-scop-detection.c (get_bb_type): Use single_succ_p.
6460         (print_graphite_scop_statistics): Use EDGE_COUNT, not VEC_length.
6461         (canonicalize_loop_closed_ssa): Use single_pred_p.
6463         * alias.c (reg_seen): Make this an sbitmap.
6464         (record_set, init_alias_analysis): Update.
6466         * tree-ssa-coalesce.c (ssa_conflicts_dump): Fix dumping.
6468 2012-09-07  Tom de Vries  <tom@codesourcery.com>
6470         PR tree-optimization/53986
6471         * tree-vrp.c (extract_range_from_multiplicative_op_1): Allow
6472         LSHIFT_EXPR.
6473         (extract_range_from_binary_expr_1): Handle LSHIFT with constant
6474         range as shift amount.
6476 2012-09-07  Segher Boessenkool  <segher@kernel.crashing.org>
6478         * config/rs6000/aix43.h (RS6000_CALL_GLUE): Delete.
6479         * config/rs6000/aix51.h (RS6000_CALL_GLUE): Delete.
6480         * config/rs6000/aix52.h (RS6000_CALL_GLUE): Delete.
6481         * config/rs6000/aix53.h (RS6000_CALL_GLUE): Delete.
6482         * config/rs6000/aix61.h (RS6000_CALL_GLUE): Delete.
6483         * config/rs6000/freebsd64.h (RS6000_CALL_GLUE): Delete.
6484         * config/rs6000/linux64.h (RS6000_CALL_GLUE): Delete.
6485         * config/rs6000/rs6000.c (print_operand) ['.']: Delete.
6486         * config/rs6000/rs6000.h (RS6000_CALL_GLUE): Delete.
6487         * config/rs6000/rs6000.md (tls_gd_aix<TLSmode:tls_abi_suffix>):
6488         Replace %. with nop.
6489         (tls_gd_call_aix<TLSmode:tls_abi_suffix>): Ditto.
6490         (tls_ld_aix<TLSmode:tls_abi_suffix>): Ditto.
6491         (tls_ld_call_aix<TLSmode:tls_abi_suffix>): Ditto.
6492         (call_nonlocal_aix32): Ditto.
6493         (call_nonlocal_aix64): Ditto.
6494         (call_value_nonlocal_aix32): Ditto.
6495         (call_value_nonlocal_aix64): Ditto.
6497 2012-09-06  Andi Kleen  <ak@linux.intel.com>
6499         * doc/invoke.texi (-ffat-lto-objects): Clarify that gcc-ar
6500         et.al. should be used.
6502 2012-09-06  Andi Kleen  <ak@linux.intel.com>
6504         * lto-streamer.h (res_pair): Add.
6505         (lto_file_decl_data): Replace resolutions with respairs.
6506         Add max_index.
6507         * lto/lto.c (lto_resolution_read): Remove max_index.  Add rp.
6508         Initialize respairs.
6509         (lto_file_finalize): Set up resolutions vector lazily from respairs.
6511 2012-09-06  Lawrence Crowl  <crowl@google.com>
6513         * double-int.h (double_int::operator &=): New.
6514         (double_int::operator ^=): New.
6515         (double_int::operator |=): New.
6516         (double_int::mul_with_sign): Modify overflow parameter to bool*.
6517         (double_int::add_with_sign): New.
6518         (double_int::ule): New.
6519         (double_int::sle): New.
6520         (binary double_int::operator *): Remove parameter name.
6521         (binary double_int::operator +): Likewise.
6522         (binary double_int::operator -): Likewise.
6523         (binary double_int::operator &): Likewise.
6524         (double_int::operator |): Likewise.
6525         (double_int::operator ^): Likewise.
6526         (double_int::and_not): Likewise.
6527         (double_int::from_shwi): Tidy formatting.
6528         (double_int::from_uhwi): Likewise.
6529         (double_int::from_uhwi): Likewise.
6530         * double-int.c (double_int::mul_with_sign): Modify overflow parameter
6531         to bool*.
6532         (double_int::add_with_sign): New.
6533         (double_int::ule): New.
6534         (double_int::sle): New.
6535         * builtins.c: Modify to use the new double_int interface.
6536         * cgraph.c: Likewise.
6537         * combine.c: Likewise.
6538         * dwarf2out.c: Likewise.
6539         * emit-rtl.c: Likewise.
6540         * expmed.c: Likewise.
6541         * expr.c: Likewise.
6542         * fixed-value.c: Likewise.
6543         * fold-const.c: Likewise.
6544         * gimple-fold.c: Likewise.
6545         * gimple-ssa-strength-reduction.c: Likewise.
6546         * gimplify-rtx.c: Likewise.
6547         * ipa-prop.c: Likewise.
6548         * loop-iv.c: Likewise.
6549         * optabs.c: Likewise.
6550         * stor-layout.c: Likewise.
6551         * tree-affine.c: Likewise.
6552         * tree-cfg.c: Likewise.
6553         * tree-dfa.c: Likewise.
6554         * tree-flow-inline.h: Likewise.
6555         * tree-object-size.c: Likewise.
6556         * tree-predcom.c: Likewise.
6557         * tree-pretty-print.c: Likewise.
6558         * tree-sra.c: Likewise.
6559         * tree-ssa-address.c: Likewise.
6560         * tree-ssa-alias.c: Likewise.
6561         * tree-ssa-ccp.c: Likewise.
6562         * tree-ssa-forwprop.c: Likewise.
6563         * tree-ssa-loop-ivopts.c: Likewise.
6564         * tree-ssa-loop-niter.c: Likewise.
6565         * tree-ssa-phiopt.c: Likewise.
6566         * tree-ssa-pre.c: Likewise.
6567         * tree-ssa-sccvn: Likewise.
6568         * tree-ssa-structalias.c: Likewise.
6569         * tree-ssa.c: Likewise.
6570         * tree-switch-conversion.c: Likewise.
6571         * tree-vect-loop-manip.c: Likewise.
6572         * tree-vrp.c: Likewise.
6573         * tree.h: Likewise.
6574         * tree.c: Likewise.
6575         * varasm.c: Likewise.
6577 2012-09-06  Uros Bizjak  <ubizjak@gmail.com>
6579         * configure.ac (hle prefixes): Remove .code64 directive.
6580         * configure: Regenerated.
6582 2012-09-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6584         * config/arm/arm.c: Use CONST_INT_P, CONST_DOUBLE_P, REG_P, MEM_P,
6585         LABEL_P, JUMP_P, CALL_P, NOTE_P, BARRIER_P consistently.
6586         * config/arm/arm.h: Use REG_P, MEM_P consistently.
6587         * config/arm/arm.md: Use CONST_INT_P, REG_P, MEM_P, CONST_DOUBLE_P
6588         consistently.
6589         * config/arm/neon.md: Use REG_P consistently.
6590         * config/arm/predicates.md: Use CONST_INT_P, REG_P, MEM_P consistently.
6591         * config/arm/thumb2.md: Use CONST_INT_P, REG_P consistently.
6592         * config/arm/vec-common.md: Use REG_P consistently.
6594 2012-09-06  Richard Guenther  <rguenther@suse.de>
6596         PR tree-optimization/54498
6597         * tree-ssa-alias.h (get_continuation_for_phi): Add flag to
6598         abort when reaching an already visited region.
6599         * tree-ssa-alias.c (maybe_skip_until): Likewise.  And do it.
6600         (get_continuation_for_phi_1): Likewise.
6601         (walk_non_aliased_vuses): When we translated the reference,
6602         abort when we re-visit a region.
6603         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
6605 2012-09-06  David Edelsohn  <dje.gcc@gmail.com>
6607         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Add TLS
6608         section.
6609         * config/rs6000/rs6000.c (rs6000_debug_address_cost): Add new
6610         arguments to TARGET_ADDRESS_COST call.
6612 2012-09-06  Richard Guenther  <rguenther@suse.de>
6614         * tree.h (MOVE_NONTEMPORAL): Remove.
6615         * tree-pretty-print.c (dump_generic_node): Remove
6616         MOVE_NONTEMPORAL handling.
6617         * expr.c (expand_expr_real_1): Likewise.
6619 2012-09-06  Richard Guenther  <rguenther@suse.de>
6621         * passes.c (execute_function_todo): Call compute_may_aliases
6622         only if flag_tree_pta is set.
6624 2012-09-06  Andrew Pinski  <apinski@cavium.com>
6626         PR tree-opt/54494
6627         * tree-inline.c (remap_gimple_op_r): Copy TREE_SIDE_EFFECTS also.
6629 2012-09-06  Jakub Jelinek  <jakub@redhat.com>
6631         PR rtl-optimization/54455
6632         * sel-sched-ir.c (maybe_tidy_empty_bb): Give up if previous fallthru
6633         bb ends up with asm goto referencing bb's label.
6635 2012-09-06  Chen Liqin  <liqin.gcc@gmail.com>
6637         * config/score/score.c: Remove TARGET_LEGITIMIZE_ADDRESS define and
6638         score_legitimize_address function, use compiler default code instead.
6640 2012-09-05  Jan Hubicka  <jh@suse.cz>
6642         * ipa-inline.c (want_inline_small_function_p): Use
6643         INLINE_HINT_loop_iterations hint.
6645 2012-09-05  Andrew Pinski  <apinski@cavium.com>
6647         * optabs.c (emit_conditional_add): Correct comment about the arguments.
6648         Remove code which might swap op2 and op3 since they cannot be swapped.
6649         * doc/md.texi (add@var{mode}cc): Fix document about how the arguments
6650         are used.
6652 2012-09-05  Oleg Endo  <olegendo@gcc.gnu.org>
6654         * hooks.c (hook_int_rtx_mode_as_bool_0): New function.
6655         * hooks.h (hook_int_rtx_mode_as_bool_0): Declare it.
6656         * output.h (default_address_cost): Add machine_mode and address space
6657         arguments.
6658         * target.def (address_cost): Likewise.
6659         * rtlanal.c (address_cost): Pass mode and address space to target hook.
6660         (default_address_cost): Add unnamed machine_mode and address space
6661         arguments.
6662         * doc/tm.texi: Regenerate.
6663         * config/alpha/alpha.c (TARGET_ADDRESS_COST): Use
6664         hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
6665         * config/arm/arm.c (arm_address_cost): Add machine_mode and address
6666         space arguments.
6667         * config/avr/avr.c (avr_address_cost): Likewise.
6668         * config/bfin/bfin.c (bfin_address_cost): Likewise.
6669         * config/cr16/cr16.c (cr16_address_cost): Likewise.
6670         * config/cris/cris.c (cris_address_cost): Likewise.
6671         * config/epiphany/epiphany.c (epiphany_address_cost): Likewise.
6672         * config/i386/i386.c (ix86_address_cost): Likewise.
6673         * config/ia64/ia64.c (TARGET_ADDRESS_COST): Use
6674         hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
6675         * config/iq2000/iq2000.c (iq2000_address_cost): Add machine_mode and
6676         address space arguments.  Pass them on in recursive invocation.
6677         * config/lm32/lm32.c (TARGET_ADDRESS_COST): Use
6678         hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
6679         * config/m32c/m32c.c (m32c_address_cost): Add machine_mode and address
6680         space arguments.
6681         * config/m32r/m32r.c (TARGET_ADDRESS_COST): Use
6682         hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
6683         * config/mcore/mcore.c (TARGET_ADDRESS_COST): Likewise.
6684         * config/mep/mep.c (mep_address_cost): Add machine_mode and address
6685         space arguments.
6686         * config/microblaze/microblaze.c (microblaze_address_cost): Likewise.
6687         * config/mips/mips.c (mips_address_cost): Likewise.
6688         * config/mmix/mmix.c (TARGET_ADDRESS_COST): Use
6689         hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
6690         * config/mn10300/mn10300.c (mn10300_address_cost): Add machine_mode and
6691         address space arguments.
6692         (mn10300_rtx_costs): Pass GET_MODE (x) and MEM_ADDR_SPACE (x) to
6693         mn10300_address_cost.
6694         * config/pa/pa.c (hppa_address_cost): Add machine_mode and address
6695         space arguments.
6696         * config/rs6000/rs6000.c (rs6000_debug_address_cost): Likewise.
6697         (TARGET_ADDRESS_COST): Use hook_int_rtx_mode_as_bool_0 instead of
6698         hook_int_rtx_bool_0.
6699         * config/rx/rx.c (rx_address_cost): Add machine_mode and address
6700         space arguments.
6701         * config/s390/s390.c (s390_address_cost): Likewise.
6702         * config/score/score-protos.h (score_address_cost): Likewise.
6703         * config/score/score.c (score_address_cost): Likewise.
6704         * config/sh/sh.c (sh_address_cost): Likewise.
6705         * config/sparc/sparc.c (TARGET_ADDRESS_COST): Use
6706         hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
6707         * config/spu/spu.c (TARGET_ADDRESS_COST): Likewise.
6708         * config/stormy16/stormy16.c (xstormy16_address_cost): Add machine_mode
6709         and address space arguments.
6710         * config/v850/v850.c (TARGET_ADDRESS_COST): Use
6711         hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
6712         * config/vax/vax.c (vax_address_cost): Add machine_mode and address
6713         space arguments.
6714         * config/xtensa/xtensa (TARGET_ADDRESS_COST): Use
6715         hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
6717 2012-09-05  Diego Novillo  <dnovillo@google.com>
6719         PR bootstrap/54484
6720         * vec.h (vec_t::lower_bound): Fix spelling of LESSTHAN argument.
6722 2012-09-05  Jakub Jelinek  <jakub@redhat.com>
6724         PR middle-end/54486
6725         * builtins.c (fold_builtin_strspn, fold_builtin_strcspn): Use
6726         build_int_cst with size_type_node instead of size_int.
6728 2012-09-05  Uros Bizjak  <ubizjak@gmail.com>
6730         * config/i386/sse.md (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>):
6731         Use register_operand instead of reg_not_xmm0_operand{,_maybe_avx}.
6732         Use nonimmediate_operand instead of
6733         nonimm_not_xmm0_operand{,_maybe_avx}.
6734         (<sse4_1_avx2>_pblendvb): Ditto.
6735         (sse4_2_pcmpestr): Ditto.
6736         (*sse4_2_pcmpestr_unaligned): Ditto.
6737         (sse4_2_pcmpistr): Ditto.
6738         (*sse4_2_pcmpistr_unaligned): Ditto.
6739         * config/i386/predicates.md (reg_not_xmm0_operand): Remove predicate.
6740         (nonimm_not_xmm0_operand): Ditto.
6741         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
6742         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
6743         * config/i386/i386.md (rdpmc): Do not force operand 1 into ecx.
6745 2012-09-05  Eric Botcazou  <ebotcazou@adacore.com>
6747         * bb-reorder.c: Clarify a few points in the head comment and fix
6748         long lines in other comments.
6749         (find_traces): Fix long line.
6750         (find_traces_1_round): Likewise.
6751         (better_edge_p): Likewise.
6752         (connect_traces): Likewise.
6753         (duplicate_computed_gotos): Likewise.
6754         (find_rarely_executed_basic_blocks_and_cr): Remove trailing spaces.
6755         (fix_up_fall_thru_edges): Fix formatting.
6757 2012-09-05  Richard Guenther  <rguenther@suse.de>
6759         PR tree-optimization/46590
6760         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Do not
6761         update SSA form here.
6762         (canonicalize_induction_variables): Assert we do not need to
6763         update SSA form.
6764         (tree_unroll_loops_completely): Update SSA form here.
6765         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
6766         Do not verify loop-closed SSA form if SSA form is not up-to-date.
6768 2012-09-05  Georg-Johann Lay  <avr@gjlay.de>
6770         PR target/54461
6771         * config.gcc (tm_file,target=avr-*-*): Add avr/avrlibc.h if
6772         not configured --with-avrlibc=no.
6773         (tm_defines,target=avr-*-*): Add WITH_AVRLIBC if not configured
6774         --with-avrlibc=no.
6775         * config/avr/avrlibc.h: New file.
6776         * config/avr/avr-c.c: Build-in define __WITH_AVRLIBC__ if
6777         not configured --with-avrlibc=no.
6778         * doc/invoke.texi (AVR Built-in Macros): Document __WITH_AVRLIBC__
6780 2012-09-04  Teresa Johnson  <tejohnson@google.com>
6782         * gcov-io.c (gcov_write_summary): Write out non-zero histogram
6783         entries to function summary along with an occupancy bit vector.
6784         (gcov_read_summary): Read in the histogram entries.
6785         (gcov_histo_index): New function.
6786         (void gcov_histogram_merge): Ditto.
6787         * gcov-io.h (gcov_type_unsigned): New type.
6788         (struct gcov_bucket_type): Ditto.
6789         (struct gcov_ctr_summary): Include histogram.
6790         (GCOV_TAG_SUMMARY_LENGTH): Update to include histogram entries.
6791         (GCOV_HISTOGRAM_SIZE): New macro.
6792         (GCOV_HISTOGRAM_BITVECTOR_SIZE): Ditto.
6793         * profile.c (NUM_GCOV_WORKING_SETS): Ditto.
6794         (gcov_working_sets): New global variable.
6795         (compute_working_sets): New function.
6796         (find_working_set): Ditto.
6797         (get_exec_counts): Invoke compute_working_sets.
6798         * coverage.c (read_counts_file): Merge histograms, and
6799         fix bug with accessing summary info for non-summable counters.
6800         * basic-block.h (gcov_type_unsigned): New type.
6801         (struct gcov_working_set_info): Ditto.
6802         (find_working_set): Declare.
6803         * gcov-dump.c (tag_summary): Dump out histogram.
6805 2012-09-04  Diego Novillo  <dnovillo@google.com>
6807         PR bootstrap/54484
6808         * vec.h (vec_t::embedded_init): Move default argument value
6809         to function declaration.
6811 2012-09-04  Eric Botcazou  <ebotcazou@adacore.com>
6813         * bb-reorder.c (gate_handle_reorder_blocks): Move around.
6814         (rest_of_handle_reorder_blocks): Likewise.
6815         (pass_reorder_blocks): Likewise.
6816         (gate_handle_partition_blocks): Likewise.
6818 2012-09-04  Eric Botcazou  <ebotcazou@adacore.com>
6820         PR rtl-optimization/54456
6821         * sched-rgn.c (gate_handle_sched): Return 1 only if optimize > 0.
6823 2012-09-04  Diego Novillo  <dnovillo@google.com>
6825         PR bootstrap/54478
6826         * vec.h (vec_t::alloc): Remove explicit type specification
6827         in call to reserve.
6828         (vec_t::copy): Likewise.
6829         (vec_t::reserve): Likewise.
6830         (vec_t::reserve_exact): Likewise.
6831         (vec_t::safe_splice): Likewise.
6832         (vec_t::safe_push): Likewise.
6833         (vec_t::safe_grow): Likewise.
6834         (vec_t::safe_grow_cleared): Likewise.
6835         (vec_t::safe_insert): Likewise.
6837 2012-09-04  Richard Henderson  <rth@redhat.com>
6839         * alias.c (read_dependence): Return true for ALIAS_SET_MEMORY_BARRIER.
6841 2012-09-04  Richard Guenther  <rguenther@suse.de>
6843         * tree-ssa-pre.c (value_expressions): Make it a vector of
6844         bitmaps containing expression IDs.
6845         (add_to_value): Adjust.
6846         (sorted_array_from_bitmap_set): Likewise.
6847         (bitmap_set_replace_value): Likewise.
6848         (print_value_expressions): Likewise.
6849         (get_constant_for_value_id): Likewise.
6850         (get_representative_for): Likewise.
6851         (phi_translate_1): Likewise.
6852         (bitmap_find_leader): Likewise.
6853         (find_or_generate_expression): Likewise.
6854         (do_regular_insertion): Likewise.
6855         (init_pre): Likewise.
6856         (fini_pre): Likewise.
6858 2012-09-04  Diego Novillo  <dnovillo@google.com>
6860         PR bootstrap/54479
6861         * vec.h (vec_t::copy): Add cast in call to reserve_exact.
6863 2012-09-04  Richard Guenther  <rguenther@suse.de>
6865         * tree-ssa-pre.c (add_to_exp_gen): Adjust.
6866         (make_values_for_phi): Do not add to PHI_GEN for FRE.
6867         (compute_avail): Stop processing after adding all defs to
6868         AVAIL_OUT for FRE.
6869         (init_pre): Do not allocate not needed bitmap sets for FRE.
6871 2012-09-04  Diego Novillo  <dnovillo@google.com>
6873         Rewrite VEC_* functions as member functions of vec_t.
6875         * vec.h: Update documentation.
6876         (ALONE_VEC_CHECK_INFO): Define.
6877         (ALONE_VEC_CHECK_DECL): Define.
6878         (ALONE_VEC_CHECK_PASS): Define.
6879         (struct vec_prefix): Rename field NUM to NUM_.
6880         Rename field ALLOC to ALLOC_.
6881         Update all users.
6882         (struct vec_t): Rename field PREFIX to PREFIX_.
6883         Rename field VEC to VEC_.
6884         Update all users.
6885         (vec_t::length): Rename from VEC_length_1.  Update all users.
6886         (vec_t::empty): Rename from VEC_empty_1.  Update all users.
6887         (vec_t::address): Rename from VEC_address_1.  Update all users.
6888         (vec_address): New.
6889         (vec_t::last): Rename from VEC_last_1.  Update all users.
6890         (vec_t::operator[]): Rename from VEC_index_1.  Update all users.
6891         (vec_t::iterate): Rename from VEC_iterate_1.  Update all users.
6892         (vec_t::embedded_size): Rename from VEC_embedded_size_1.
6893         Update all users.
6894         (vec_t::embedded_init): Rename from VEC_embedded_init_1.
6895         Update all users.
6896         (vec_t::alloc): Rename from VEC_alloc_1.  Update all users.
6897         (vec_t::free): Rename from VEC_free_1.  Update all users.
6898         (vec_t::copy): Rename from VEC_copy_1.  Update all users.
6899         (vec_t::space): Rename from VEC_space_1.  Update all users.
6900         (vec_t::reserve): Rename from VEC_reserve_1.  Update all users.
6901         (vec_t::reserve_exact): Rename from VEC_reserve_exact_1.
6902         Update all users.
6903         (vec_t::splice): Rename from VEC_splice_1.  Update all users.
6904         (vec_t::safe_splice): Rename from VEC_safe_splice_1.  Update all users.
6905         (vec_t::quick_push): Rename from VEC_quick_push_1.  Update all users.
6906         (vec_t::safe_push): Rename from VEC_safe_push_1.  Update all users.
6907         (vec_t::pop): Rename from VEC_pop_1.  Update all users.
6908         (vec_t::truncate): Rename from VEC_truncate_1.  Update all users.
6909         (vec_t::safe_grow): Rename from VEC_safe_grow_1.  Update all users.
6910         (vec_t::safe_grow_cleared): Rename from VEC_safe_grow_cleared_1.
6911         Update all users.
6912         (vec_t::replace): Rename from VEC_replace_1.  Update all users.
6913         (vec_t::quick_insert): Rename from VEC_quick_insert_1.
6914         Update all users.
6915         (vec_t::safe_insert): Rename from VEC_safe_insert_1.  Update all users.
6916         (vec_t::ordered_remove): Rename from VEC_ordered_remove_1.
6917         Update all users.
6918         (vec_t::unordered_remove): Rename from VEC_unordered_remove_1.
6919         Update all users.
6920         (vec_t::block_remove): Rename from VEC_block_remove_1. Update all users.
6921         (vec_t::lower_bound): Rename from VEC_lower_bound_1. Update all users.
6923 2012-09-04  Steven Bosscher  <steven@gcc.gnu.org>
6925         * gimple.h (gimple_build_switch): Remove.
6926         (gimple_build_switch_vec): Promote to the new gimple_build_switch.
6927         (gimple_switch_default_label): Assert the default case label is
6928         really a default case label.
6929         (gimple_switch_set_default_label): Likewise.
6930         * gimple.c (gimple_build_switch_nlabels): Make sure a default label
6931         is passed in, and simplify accordingly.
6932         (gimple_build_switch): Removed.
6933         (gimple_build_switch_vec): Rename to gimple_build_switch.
6934         * gimplify.c (gimplify_switch_expr): Update gimple_build_switch use.
6935         * gimple-pretty-print.c (dump_gimple_switch): Do not accept a NULL
6936         case label.
6937         * stmt.c (expand_case): Simplify using the fact that every GIMPLE
6938         switch must have a default case.
6939         * tree-cfg.c (group_case_labels_stmt): Likewise.
6940         (verify_gimple_switch): Use gimple_switch_label in verifier to get
6941         the label at index 0, and verify that it is a valid default case.
6942         * except.c (sjlj_emit_dispatch_table): Rewrite construction of the
6943         switch for dispatching.
6944         * tree-eh.c (lower_try_finally_switch): Update gimple_build_switch use.
6945         (lower_eh_dispatch): Likewise.
6946         * tree-vrp.c (execute_vrp): Use gimple_switch_label to get the case
6947         label at index 0 before turning it into a default case label.
6948         * omp-low.c (expand_omp_sections): Update gimple_build_switch use.
6949         * tree-switch-conversion.c (emit_case_bit_tests): Get the default case
6950         label using gimple_switch_default_label.
6951         (collect_switch_conv_info): Likewise.
6952         (process_switch): Likewise.
6953         * doc/gimple.texi: Update documentation of gimple_build_switch.
6955 2012-09-04  Georg-Johann Lay  <avr@gjlay.de>
6957         PR target/54476
6958         * config/avr/avr.c (avr_expand_delay_cycles): Mask operand with
6959         SImode.
6961 2012-09-04  Bin Cheng  <bin.cheng@arm.com>
6963         PR target/45070
6964         * config/arm/arm.c (thumb1_extra_regs_pushed): Handle return value
6965         of size less than 4 bytes by using macro ARM_NUM_INTS.
6966         (thumb1_unexpanded_epilogue): Use macro ARM_NUM_INTS.
6968 2012-09-04  Richard Guenther  <rguenther@suse.de>
6970         PR tree-optimization/54458
6971         * tree-ssa-threadupdate.c (thread_through_loop_header): If we
6972         turn the loop into one with multiple latches mark it so.
6974 2012-09-04  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6976         PR target/54220
6977         * config/avr/avr.c (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): New
6978         define to...
6979         (avr_allocate_stack_slots_for_args): ...this new static function.
6981 2012-09-04  Christophe Lyon  <christophe.lyon@linaro.org>
6983         * config/arm/arm.c (arm_expand_builtin): Replace gen_rtx_CONST_INT
6984         by GEN_INT.
6985         (arm_emit_coreregs_64bit_shift): Likewise.
6987 2012-09-04  Christophe Lyon  <christophe.lyon@linaro.org>
6989         * config/arm/arm.c (arm_evpc_neon_vext): New function.
6990         (arm_expand_vec_perm_const_1): Add call to arm_evpc_neon_vext.
6992 2012-09-04  Oleg Endo  <olegendo@gcc.gnu.org>
6994         PR target/51244
6995         * config/sh/sh.c (prepare_cbranch_operands): Pull out comparison
6996         canonicalization code into...
6997         * (sh_canonicalize_comparison): This new function.
6998         * config/sh/sh-protos.h: Declare it.
6999         * config/sh/sh.h: Use it in new macro CANONICALIZE_COMPARISON.
7000         * config/sh/sh.md (cbranchsi4): Remove TARGET_CBRANCHDI4 check and
7001         always invoke expand_cbranchsi4.
7003 2012-09-03  Andi Kleen  <ak@linux.intel.com>
7005         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Initialize
7006         addr_offset always.
7008 2012-09-03  Andrew Pinski  <apinski@cavium.com>
7010         PR tree-opt/53395
7011         * tree-if-conv.c (constant_or_ssa_name): New function.
7012         (fold_build_cond_expr): New function.
7013         (predicate_scalar_phi): Use fold_build_cond_expr instead of build3.
7014         (predicate_mem_writes): Likewise.
7016 2012-09-03  Marc Glisse  <marc.glisse@inria.fr>
7018         * fold-const.c (fold_ternary_loc): Constant-propagate after
7019         removing dead operands.
7021 2012-09-03  Michael Matz  <matz@suse.de>
7023         PR tree-optimization/46590
7024         * tree-cfg.c (gimple_duplicate_sese_region): Don't update
7025         SSA web here ...
7026         * tree-ssa-loop-ch.c (copy_loop_headers): ... but here.
7028 2012-09-03  Sandra Loosemore  <sandra@codesourcery.com>
7030         * doc/invoke.texi: Fix numerous typos and punctuation/grammatical
7031         errors throughout the file.  Re-word some awkward sentences and
7032         paragraphs.
7034 2012-09-03  Richard Guenther  <rguenther@suse.de>
7036         PR tree-optimization/54362
7037         * tree-ssa-structalias.c (find_func_aliases): Handle COND_EXPR.
7039 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7041         * config/s390/s390.c (s390_loadrelative_operand_p): New function.
7042         (s390_check_qrst_address, print_operand_address): Use
7043         s390_loadrelative_operand_p instead of s390_symref_operand_p.
7044         (s390_check_symref_alignment): Accept pointer size alignment for
7045         GOT slots.
7046         (legitimize_pic_address): Use load relative on z10 or later.
7048 2012-09-03  Jakub Jelinek  <jakub@redhat.com>
7050         PR debug/53923
7051         * valtrack.c (dead_debug_insert_temp): Drop non-reg uses
7052         from the chain.
7054 2012-09-03  Joseph Myers  <joseph@codesourcery.com>
7056         * common.opt (--no-sysroot-suffix): New driver option.
7057         * doc/invoke.texi (--no-sysroot-suffix): Document.
7058         * gcc.c (driver_handle_option): Handle --no-sysroot-suffix as not
7059         needing spec processing.
7060         (main): Do not process sysroot suffixes if no_sysroot_suffix.
7062 2012-09-02  Oleg Endo  <olegendo@gcc.gnu.org>
7064         PR target/33135
7065         * common/config/sh/sh-common.c: Update copyright years.
7066         (sh_option_init_struct): Delete.
7067         (TARGET_OPTION_INIT_STRUCT): Likewise.
7069 2012-09-02  Oleg Endo  <olegendo@gcc.gnu.org>
7071         PR target/54418
7072         * config/sh/sh.md (cmpgeusi_t): Remove N alternative.
7073         Check operands[1] in split condition instead of operands[0].
7074         Add comments.
7076 2012-09-02  Mark Kettenis  <kettenis@openbsd.org>
7078         * config.gcc (x86_64-*-openbsd*): New target.
7079         * config.host (*-*-openbsd*): New target.
7080         * config/openbsd.h (TARGET_C99_FUNCTIONS): Define.
7081         * config/i386/openbsdelf.h: Remove some superfluous defines and
7082         group things together in a more logical fashion.
7083         (DBX_REGISTER_NUMBER): Provide a
7084         definition that works on both 32-bit and 64-bit targets.
7085         (WCHAR_TYPE_SIZE): Hardcode as 32.
7086         (NO_DOLLAR_IN_LABEL): Remove undef.
7087         (TARGET_DEFAULT): Remove.
7088         (SET_ASM_OP): Remove.
7089         (DEFAULT_PCC_STRUCT_RETURN): Undef first to prevent warning.
7090         (ASM_OUTPUT_MAX_SKIP_ALIGN): Synch with x86-64.h
7091         (DWARF2_UNWIND_INFO): Remove define.
7092         (HAVE_ENABLE_EXECUTE_STACK): Define.
7093         * config/host-openbsd.c: New file.
7094         * config/t-openbsd (USER_H): Add EXTRA_HEADERS.
7095         * config/x-openbsd: New file.
7097 2012-09-02  Oleg Endo  <olegendo@gcc.gnu.org>
7099         * config/sh/sh.md (*extend<mode>si2_compact_mem_disp): Pass iterated
7100         mode to sh_legitimate_index_p instead of QImode.
7102 2012-09-02  Eric Botcazou  <ebotcazou@adacore.com>
7104         PR rtl-optimization/54369
7105         * config/mips/mips.c (mips_reorg): Invoke cleanup_barriers before
7106         calling dbr_schedule.
7107         * config/sparc/sparc.c (sparc_reorg): Likewise.
7109 2012-09-01  Jakub Jelinek  <jakub@redhat.com>
7111         PR target/54436
7112         * config/i386/i386.md (*mov<mode>_insv_1_rex64, *movsi_insv_1): If
7113         operands[1] is CONST_INT_P, convert it to QImode before printing.
7115 2012-09-01  Andrew Pinski  <apinski@cavium.com>
7117         * simplify-rtx.c (simplify_unary_operation_1 <case TRUNCATE>):
7118         A truncate of a memory is just loading the low part of the memory.
7120 2012-09-01  Uros Bizjak  <ubizjak@gmail.com>
7122         PR target/46829
7123         PR target/46843
7124         * config/i386/i386.c (ix86_legitimate_combined_insn): New function.
7125         (TARGET_LEGITIMATE_COMBINED_INSN): New macro.
7127 2012-09-01  Uros Bizjak  <ubizjak@gmail.com>
7129         * target.def (legitimate_combined_insn): New target hook.
7130         * doc/tm.texi.in (TARGET_LEGITIMATE_COMBINED_INSN): New hook.
7131         * doc/tm.texi: Regenerated.
7132         * combine.c (recog_for_combine): Call targetm.legitimate_combined_insn
7133         to allow targets to reject combined insn.
7134         * hooks.h (hook_bool_rtx_true): New.
7135         * hooks.c (hook_bool_rtx_true): Ditto.
7137 2012-08-31  Martin Jambor  <mjambor@suse.cz>
7139         * ipa-inline-analysis.c (estimate_function_body_sizes): Allocate
7140         nonconstant_names after calculate_dominance_info and
7141         loop_optimizer_init.
7143 2012-08-31  Greta Yorsh  <Greta.Yorsh@arm.com>
7145         * config/arm/arm.c (arm_expand_epilogue): Remove unused variable
7146         floats_from_frame.
7148 2012-08-31  Martin Jambor  <mjambor@suse.cz>
7150         PR middle-end/54409
7151         * ipa-inline-analysis.c (remap_predicate): Fix the offset_map
7152         checking condition.
7154 2012-08-31  Martin Jambor  <mjambor@suse.cz>
7156         * ipa-inline-analysis.c (phi_result_unknown_predicate): New function.
7157         (predicate_for_phi_result): Likewise.
7158         (estimate_function_body_sizes): Use the above two functions.
7160 2012-08-31  Martin Jambor  <mjambor@suse.cz>
7162         PR middle-end/54394
7163         * ipa-inline-analysis.c (estimate_function_body_sizes): Compute
7164         dominance info and loops whenever optimizing.
7166 2012-08-29  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7167             Richard Earnshaw  <richard.earnshaw@arm.com>
7169         PR target/54252
7170         * config/arm/arm.c (neon_dereference_pointer): Adjust nelems by
7171         element size. Use elem_type from the formal parameter. New parameter
7172         fcode.
7173         (neon_expand_args): Adjust call to neon_dereference_pointer.
7175 2012-08-29  Steven Bosscher  <steven@gcc.gnu.org>
7177         * cfg.c (dump_bb_info): Print a newline if there were no edges to dump.
7179 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
7181         Revert:
7182         * config/mips/t-linux64 (MULTILIB_OSDIRNAMES): Change to use
7183         mapping style, add ../lib/mips16.
7184         (MULTILIB_OPTIONS,MULTILIB_DIRNAMES): Add mips16.
7185         (MULTILIB_EXCLUSIONS): Exclude mips16 when not -mabi=32.
7187 2012-08-29  Richard Sandiford  <rdsandiford@googlemail.com>
7189         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_synci
7190         if TARGET_SYNCI.
7192 2012-08-29  Oleg Endo  <olegendo@gcc.gnu.org>
7194         * config/sh/sh.opt (menable-tas): Rename to mtas.
7195         * doc/invoke.texi (SH options): Likewise.
7196         * config/sh/sync.md: Update comments.
7198 2012-08-29  Oleg Endo  <olegendo@gcc.gnu.org>
7200         * config/sh/iterators.md: New file.
7201         * config/sh/sync.md (I124, I12, i124suffix): Delete.  Replace usage
7202         with new iterators QIHISI, QIHI, bw, bwl respectively throughout
7203         the file.
7204         * config/sh/sh.md: Include new file iterators.md.
7205         (zero_extendhisi2, zero_extendqisi2): Fold into zero_extend<mode>si2.
7206         (*zero_extendhisi2_compact, *zero_extendqisi2_compact): Fold into
7207         *zero_extend<mode>si2_compact.
7208         (*zero_extendqisi2_disp_mem, zero_extendhisi2_disp_mem): Fold into
7209         *zero_extend<mode>si2_disp_mem.
7210         (extendhisi2, extendqisi2): Fold into extend<mode>si2.
7211         (*extendqisi2_compact_reg, *extendhisi2_compact_reg): Fold into
7212         *extend<mode>si2_compact_reg.
7213         (*extendqisi2_compact_mem_disp, *extendhisi2_compact_mem_disp): Fold
7214         into *extend<mode>si2_compact_mem_disp.
7215         (*extendqisi2_compact_snd, *extendhisi2_compact_snd): Fold into
7216         *extend<mode>si2_compact_snd.
7217         (*movsi_index_disp, *movhi_index_disp): Fold with iterators and rename
7218         to *movsi_index_disp_load, *movhi_index_disp_load,
7219         *mov<mode>_index_disp_store.
7220         (*movqi_reg_reg, *movhi_reg_reg): Fold into *mov<mode>_reg_reg.
7221         (*movqi_store_mem_disp04, *movhi_store_mem_disp05): Fold into
7222         *mov<mode>_store_mem_disp04.
7223         (*movqi_store_mem_disp12, *movhi_store_mem_disp13): Fold into
7224         *mov<mode>_store_mem_disp12.
7225         (*movqi_load_mem_disp, *movhi_load_mem_disp): Fold into
7226         *mov<mode>_load_mem_disp04 and *mov<mode>_load_mem_disp12.
7228 2012-08-29  Martin Jambor  <mjambor@suse.cz>
7230         * ipa-inline.h (estimate_edge_hints): Call do_estimate_edge_hints, not
7231         do_estimate_edge_time.
7233 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
7235         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Add nomips16 asm
7236         directives, remove #ifndef __mips16 guards.
7237         * config/mips/t-linux64 (MULTILIB_OSDIRNAMES): Change to use
7238         mapping style, add ../lib/mips16.
7239         (MULTILIB_OPTIONS,MULTILIB_DIRNAMES): Add mips16.
7240         (MULTILIB_EXCLUSIONS): Exclude mips16 when not -mabi=32.
7242 2012-08-28  Walter Lee  <walt@tilera.com>
7243         * confg/tilegx/tilegx.md: Fix code style.
7244         (*zero_extendsidi_truncdisi): Fix typo.
7245         * config/tilegx/tilegx.c: Fix code style.
7246         (tilegx_function_profiler): Fix typo.
7248 2012-08-28  Walter Lee  <walt@tilera.com>
7250         * doc/invoke.texi: Document -mcmodel=small, -mcmodel=large.
7251         * config/tilegx/tilegx.h: Include config/tilegx/tilegx-opts.h.
7252         (CRT_CALL_STATIC_FUNCTION): Define.
7253         * config/tilegx/predicates.md (const_last_symbolic_operand):
7254         Handle UNSPEC_HW2_LAST_PCREL, UNSPEC_HW1_LAST_PLT_PCREL, and
7255         UNSPEC_HW2_LAST_PLT_PCREL.
7256         (const_symbolic_operand): Handle UNSPEC_HW1_PCREL,
7257         UNSPEC_HW0_PLT_PCREL, and UNSPEC_HW1_PLT_PCREL.
7258         * config/tilegx/tilegx.md (UNSPEC_MOV_LARGE_PCREL_STEP4): Define,
7259         and renumber the constants that follow.
7260         (UNSPEC_HW1_PCREL): Ditto.
7261         (UNSPEC_HW2_LAST_PCREL): Ditto.
7262         (UNSPEC_HW0_PLT_PCREL): Define.
7263         (UNSPEC_HW1_PLT_PCREL): Define.
7264         (UNSPEC_HW1_LAST_PLT_PCREL): Define.
7265         (UNSPEC_HW2_LAST_PLT_PCREL): Define.
7266         (mov_large_pcrel_step1): Define.
7267         (mov_large_pcrel_step2): Define.
7268         (mov_large_pcrel_step3): Define.
7269         (mov_large_pcrel_step4): Define.
7270         (mov_plt_pcrel_step1): Define.
7271         (mov_plt_pcrel_step2): Define.
7272         (mov_plt_pcrel_step3): Define.
7273         (mov_plt_pcrel_step1_32bit): Define.
7274         (mov_plt_pcrel_step2_32bit): Define.
7275         (call): Handle tilegx_cmodel == CM_LARGE, CM_LARGE_PIC.
7276         (call_value): Ditto.
7277         * config/tilegx/tilegx.opt: Include config/tilegx/tilegx-opts.h.
7278         (mcmodel): New option.
7279         (enum cmodel): Define.
7280         (CM_SMALL): Define.
7281         (CM_LARGE): Define.
7282         * config/tilegx/tilegx-opts.h: New file.
7283         * config/tilegx/tilegx-protos.h (tilegx_compute_pcrel_address):
7284         Declare.
7285         (tilegx_compute_pcrel_plt_address): Declare.
7286         * config/tilegx/tilegx.c (tilegx_option_override): Handle
7287         tilegx_cmodel.
7288         (tilegx_function_ok_for_sibcall): Ditto.
7289         (compute_pcrel_address): Rename to tilegx_compute_pcrel_address,
7290         and don't declare static.  Handle tilegx_cmodel.
7291         (tilegx_compute_pcrel_plt_address): Define.
7292         (tilegx_legitimize_pic_address): Rename calls to
7293         compute_pcrel_address.
7294         (tilegx_delegitimize_address): Handle UNSPEC_HW1_PCREL,
7295         UNSPEC_HW2_LAST_PCREL, UNSPEC_HW0_PLT_PCREL, UNSPEC_HW1_PLT_PCREL,
7296         UNSPEC_HW1_LAST_PLT_PCREL, UNSPEC_HW2_LAST_PLT_PCREL.
7297         (load_pic_register): Rename call to compute_pcrel_address.
7298         (tilegx_print_operand): Handle UNSPEC_HW1_PCREL,
7299         UNSPEC_HW2_LAST_PCREL, UNSPEC_HW0_PLT_PCREL, UNSPEC_HW1_PLT_PCREL,
7300         UNSPEC_HW1_LAST_PLT_PCREL, UNSPEC_HW2_LAST_PLT_PCREL.
7302 2012-08-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7304         * sched-deps.c (add_dependence_list_and_free): Simplify.
7305         (flush_pending_list_and_free): Fix a hack that was fixing a hack.  Free
7306         lists when add_dependence_list_and_free doesn't free them.
7308 2012-08-27  Uros Bizjak  <ubizjak@gmail.com>
7310         PR target/46254
7311         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Return
7312         true for TARGET_64BIT or !flag_pic.
7313         * config/i386/sync.md (*atomic_compare_and_swap_doubledi_pic): Remove.
7314         (atomic_compare_and_swap_double<mode>): Change operand 2 predicate
7315         to cmpxchg8b_pic_memory_operand.  Use DWIH mode iterator.
7316         Add insn constraint.  Conditionally emit xchg asm insns.
7317         (atomic_compare_and_swap<mode>): Update calls.  Check only
7318         cmpxchg8b_pic_memory_operand in memory address fixup.
7319         (DCASMODE): Remove.
7320         (CASHMODE): Rename from DCASHMODE.
7321         (doublemodesuffix): Update modes.
7322         (regprefix): New mode attribute.
7324         (unspecv) <UNSPECV_CMPXCHG_{1,2,3,4}>: Remove.
7325         <UNSPECV_CMPXCHG>: New constant.
7326         (atomic_compare_and_swap<mode>_1): Rename from
7327         atomic_compare_and_swap_single<mode>.  Update calls and
7328         unspec_volatile constants.
7329         (atomic_compare_and_swap<mode>_doubleword): Rename from
7330         atomic_compare_and_swap_double<mode>.  Update calls and
7331         unspec_volatile constants.
7333 2012-08-27  Walter Lee  <walt@tilera.com>
7335         * doc/md.texi (TILE-Gx): Fix typo.
7337 2012-08-27  Walter Lee  <walt@tilera.com>
7339         * config/tilegx/tilegx.c (tilegx_function_profiler): Fix typo.
7340         * config/tilepro/tilepro.c (tilepro_function_profiler): Ditto.
7342 2012-08-27  Walter Lee  <walt@tilera.com>
7344         * config/tilegx/tilegx.md (*bfins): Rename to insn_bfins.
7345         (insn_bfins): Delete.
7347 2012-08-27  Walter Lee  <walt@tilera.com>
7349         * config/tilegx/sync.md (atomic_compare_and_swap_bare<mode>,
7350         atomic_exchange_bare<mode>,
7351         atomic_fetch_<fetchop_name>_bare<mode>): Set type to X1_remote.
7352         * config/tilegx/tilegx-generic.md (X1_remote): New
7353         insn_reservation.
7354         * config/tilegx/tilegx.md (type): Add X1_remove.
7355         (insn_cmpexch<four_if_si>, insn_exch<four_if_si>,
7356         insn_fetchadd<four_if_si>, insn_fetchaddgez<four_if_si>,
7357         insn_fetchand<four_if_si>, insn_fetchor<four_if_si>): Set type to
7358         X1_remote.
7360 2012-08-27  Andreas Schwab  <schwab@linux-m68k.org>
7362         * gdbinit.in: Fix syntax of skip command.
7364 2012-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
7366         * config/mips/mips.c (mips_pic_call_symbol_from_set): Check for
7367         SYMBOL_REF SET_SRCs.
7369 2012-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
7371         * config/mips/mips.c (vr4130_align_insns): Don't simulate
7372         ghost instructions.  Assert that the required instructions exist.
7374 2012-08-26  Richard Sandiford  <rdsandiford@googlemail.com>
7376         * config/mips/mips.h (AVOID_CCMODE_COPIES): Update rationale for
7377         definition.
7378         * config/mips/mips.c (machine_function): Add next_fcc.
7379         (mips_output_move): Remove handling of fcc moves.
7380         (mips_allocate_fcc): New function.
7381         (mips_emit_compare, mips_expand_vcondv2sf): Use it.
7382         (mips_hard_regno_mode_ok_p): Restrict CCmode to ST registers.
7383         Remove special case for CCmode reloads.
7384         (mips_expand_builtin_compare_1): Use mips_allocate_fcc and treat
7385         the result a fixed operand.
7386         * config/mips/mips.md (move_type): Remove lui_movf.
7387         (type, length): Remove references to it.
7388         (movcc, reload_incc, reload_outcc): Delete.
7390 2012-08-26  Richard Sandiford  <rdsandiford@googlemail.com>
7392         * config/mips/mips.c (mips_has_long_branch_p): New function,
7393         split out from...
7394         (mips_expand_ghost_gp_insns): ...here.  Look inside sequences.
7396 2012-08-26  Richard Sandiford  <rdsandiford@googlemail.com>
7398         * config/mips/mips.c (r10k_safe_mem_expr_p): Use get_inner_reference.
7400 2012-08-26  Richard Sandiford  <rdsandiford@googlemail.com>
7402         * config/mips/mips.c (mips_rtx_costs): Add costs for CINS.
7404 2012-08-26  Richard Sandiford  <rdsandiford@googlemail.com>
7406         * config/mips/mips.c (mips_rtx_costs): Add missing COSTS_N_INSNS
7407         to the size cost of multiplication.
7409 2012-08-26  Gerald Pfeifer  <gerald@pfeifer.com>
7411         * doc/install.texi (Specific): Clarify what needs to be added to
7412         this section.
7414 2012-08-26  Gerald Pfeifer  <gerald@pfeifer.com>
7416         * doc/tm.texi.in (Misc): Move descriptions of NO_DOLLAR_IN_LABEL
7417         and NO_DOT_IN_LABEL from here...
7418         (Label Output): ...to here.
7419         * doc/tm.texi: Regenerate.
7421 2012-08-26  Gerald Pfeifer  <gerald@pfeifer.com>
7423         * doc/invoke.texi (C++ Dialect Options): Add missing space.
7425 2012-08-25  Eric Botcazou  <ebotcazou@adacore.com>
7427         PR rtl-optimization/54088
7428         * jump.c (delete_related_insns): Robustify latest change.
7430 2012-08-25  Ricardo Catalinas Jiménez  <jimenezrick@gmail.com>
7432         * doc/extend.texi (__atomic Builtins): Remove space before comma.
7434 2012-08-25  Richard Sandiford  <rdsandiford@googlemail.com>
7435             Andrew Pinski  <apinski@cavium.com>
7437         * config/mips/mips.h (CASE_VECTOR_MODE): For not
7438         TARGET_MIPS16_SHORT_JUMP_TABLES use ptr_mode.
7439         (CASE_VECTOR_SHORTEN_MODE): Likewise.
7441 2012-08-25  Uros Bizjak  <ubizjak@gmail.com>
7443         * config/i386/i386.h (FP_REG_P): Remove macro.
7444         (FP_REGNO_P): Ditto.
7445         (HARD_REGNO_NREGS): Use STACK_REGNO_P instead of FP_REGNO_P.
7446         (HARD_REGNO_NREGS_HAS_PADDING): Ditto.
7447         (ANY_FP_REGNO_P): Ditto.
7448         (HARD_REGNO_RENAME_OK): Use STACK_REGNO_P.
7449         * config/i386/i386.c (output_387_ffreep): Use STACK_REGNO_P
7450         instead of FP_REGNO_P.
7451         (ix86_hard_regno_mode_ok): Ditto.
7452         * config/i386/predicates.md (fp_register_operand): Ditto.
7453         (register_and_not_fp_reg_operand): Ditto.
7454         * config/i386/sync.md (atomic_loaddi_fpu): Use STACK_REG_P instead
7455         of FP_REG_P.
7457         * reg-stack.c (get_true_reg): Use STACK_REG_P instead of FP_REG_P.
7459 2012-08-24  Jason Merrill  <jason@redhat.com>
7461         * print-tree.c (print_node): Don't check TREE_LANG_FLAG_*
7462         on TREE_VEC or SSA_NAME.
7464 2012-08-24  Jakub Jelinek  <jakub@redhat.com>
7466         PR c/54363
7467         * gimplify.c (optimize_compound_literals_in_ctor): Only recurse
7468         if init is a CONSTRUCTOR.
7470 2012-08-24  Steven Bosscher  <steven@gcc.gnu.org>
7472         * tree-ssa-live.c (dump_var_map): Do not dump the partition
7473         map of virtual operands.
7475 2012-08-24  Yuri Rumyantsev  <ysrumyan@gmail.com>
7477         * config/i386/i386.c (ia32_multipass_dfa_lookahead) : Add
7478         case for Atom processor.
7480 2012-08-24  Simon Baldwin  <simonb@google.com>
7482         * dwarf2out.c (gen_producer_string): Omit command line switch if
7483         CL_NO_DWARF_RECORD flag set.
7484         * opts.h (CL_NO_DWARF_RECORD): New.
7485         * opt-functions.awk (switch_flags): Add NoDWARFRecord.
7486         * doc/options.texi: Document NoDWARFRecord option flag.
7488 2012-08-24  H.J. Lu  <hongjiu.lu@intel.com>
7490         PR debug/52857
7491         * dwarf2out.c (mem_loc_descriptor): Allow arg_pointer_rtx and
7492         frame_pointer_rtx for based_loc_descr.
7494 2012-08-24  Martin Jambor  <mjambor@suse.cz>
7496         * predict.c (maybe_hot_frequency_p): New parameter fun.  Use its decl
7497         instead of current_function_decl, use profile_status_for_function and
7498         ENTRY_BLOCK_PTR_FOR_FUNCTION with fun instead of their cfun variants.
7499         (maybe_hot_count_p): New parameter fun, use
7500         profile_status_for_function instead of its cfun_variant.
7501         (maybe_hot_bb_p): New parameter fun, checking-assert it, pass it to
7502         all callees.
7503         (maybe_hot_edge_p): Pass cfun to maybe_hot_count_p and
7504         maybe_hot_frequency_p.
7505         (probably_never_executed_bb_p): New parameter fun, use its decl
7506         instead of current_function_decl.
7507         (optimize_bb_for_size_p): Pass cfun to maybe_hot_bb_p.
7508         (rtl_profile_for_bb): Likewise.
7509         (compute_function_frequency): Pass cfun to maybe_hot_bb_p and
7510         probably_never_executed_bb_p.
7511         * tree-ssa-operands.c (ssa_operands_active): New operator fun.  Use it
7512         instead of cfun.
7513         (update_stmt_operands): Pass cfun as an argument of
7514         ssa_operands_active.
7515         (swap_tree_operands): Likewise.
7516         * gimple-iterator.c (update_modified_stmt): Likewise.
7517         (update_modified_stmts): Likewise.
7518         * tree-flow-inline.h (delink_stmt_imm_use): Likewise.
7519         * tree-ssa.c (delete_tree_ssa): Likewise.
7520         * bb-reorder.c (bb_to_key): Pass cfun to probably_never_executed_bb_p.
7521         (push_to_next_round_p): Likewise.
7522         (find_rarely_executed_basic_blocks_and_crossing_edges ): Likewise.
7523         * cfg.c: Inlude tree.h.
7524         (check_bb_profile): Use profile_status_for_function,
7525         EXIT_BLOCK_PTR_FOR_FUNCTION and ENTRY_BLOCK_PTR_FOR_FUNCTION with
7526         DECL_STRUCT_FUNCTION (current_function_decl) instead of their cfun
7527         variants.
7528         (dump_bb_info): Pass DECL_STRUCT_FUNCTION (current_function_decl) to
7529         maybe_hot_bb_p and probably_never_executed_bb_p.
7530         * gimple-pretty-print.c (gimple_dump_bb_buff): Checking-assert that
7531         DECL_STRUCT_FUNCTION (current_function_decl) is not NULL.  Pass it to
7532         dump_histograms_for_stmt.
7533         (dump_gimple_mem_ops): Pass
7534         DECL_STRUCT_FUNCTION (current_function_decl)
7535         as an argument to dump_gimple_mem_ops.
7536         * tree-cfg.c (dump_function_to_file): Rename parameter fn to fndecl.
7537         Do not change cfun.  Change and restore current_function_decl.
7538         * Makefile.in (cfg.o): Include TREE_H in dependencies.
7540 2012-08-24  Georg-Johann Lay  <avr@gjlay.de>
7542         PR target/54222
7543         * avr-modes.def (HA, SA, DA, TA, UTA): Adjust modes.
7544         * avr/avr-fixed.md: New file.
7545         * avr/avr.md: Include it.
7546         (cc): Add: minus.
7547         (adjust_len): Add: minus, minus64, ufract, sfract.
7548         (ALL1, ALL2, ALL4, ORDERED234): New mode iterators.
7549         (MOVMODE): Add: QQ, UQQ, HQ, UHQ, HA, UHA, SQ, USQ, SA, USA.
7550         (MPUSH): Add: HQ, UHQ, HA, UHA, SQ, USQ, SA, USA.
7551         (pushqi1, xload8_A, xload_8, movqi_insn, *reload_inqi, addqi3,
7552         subqi3, ashlqi3, *ashlqi3, ashrqi3, lshrqi3, *lshrqi3, *cmpqi,
7553         cbranchqi4, *cpse.eq): Generalize to handle all 8-bit modes in ALL1.
7554         (*movhi, reload_inhi, addhi3, *addhi3, addhi3_clobber, subhi3,
7555         ashlhi3, *ashlhi3_const, ashrhi3, *ashirhi3_const, lshrhi3,
7556         *lshrhi3_const, *cmphi, cbranchhi4): Generalize to handle all
7557         16-bit modes in ALL2.
7558         (subhi3, casesi, strlenhi): Add clobber when expanding minus:HI.
7559         (*movsi, *reload_insi, addsi3, subsi3, ashlsi3, *ashlsi3_const,
7560         ashrsi3, *ashrhi3_const, *ashrsi3_const, lshrsi3, *lshrsi3_const,
7561         *reversed_tstsi, *cmpsi, cbranchsi4): Generalize to handle all
7562         32-bit modes in ALL4.
7563         * avr-dimode.md (ALL8): New mode iterator.
7564         (adddi3, adddi3_insn, adddi3_const_insn, subdi3, subdi3_insn,
7565         subdi3_const_insn, cbranchdi4, compare_di2,
7566         compare_const_di2, ashrdi3, lshrdi3, rotldi3, ashldi3_insn,
7567         ashrdi3_insn, lshrdi3_insn, rotldi3_insn): Generalize to handle
7568         all 64-bit modes in ALL8.
7569         * config/avr/avr-protos.h (avr_to_int_mode): New prototype.
7570         (avr_out_fract, avr_out_minus, avr_out_minus64): New prototypes.
7571         * config/avr/avr.c (TARGET_FIXED_POINT_SUPPORTED_P): Define to...
7572         (avr_fixed_point_supported_p): ...this new static function.
7573         (TARGET_BUILD_BUILTIN_VA_LIST): Define to...
7574         (avr_build_builtin_va_list): ...this new static function.
7575         (avr_adjust_type_node): New static function.
7576         (avr_scalar_mode_supported_p): Allow if ALL_FIXED_POINT_MODE_P.
7577         (avr_builtin_setjmp_frame_value): Use gen_subhi3 and return new
7578         pseudo instead of gen_rtx_MINUS.
7579         (avr_print_operand, avr_operand_rtx_cost): Handle: CONST_FIXED.
7580         (notice_update_cc): Handle: CC_MINUS.
7581         (output_movqi): Generalize to handle respective fixed-point modes.
7582         (output_movhi, output_movsisf, avr_2word_insn_p): Ditto.
7583         (avr_out_compare, avr_out_plus_1): Also handle fixed-point modes.
7584         (avr_assemble_integer): Ditto.
7585         (output_reload_in_const, output_reload_insisf): Ditto.
7586         (avr_compare_pattern): Skip all modes > 4 bytes.
7587         (avr_2word_insn_p): Skip movuqq_insn, movqq_insn.
7588         (avr_out_fract, avr_out_minus, avr_out_minus64): New functions.
7589         (avr_to_int_mode): New function.
7590         (adjust_insn_length): Handle: ADJUST_LEN_SFRACT,
7591         ADJUST_LEN_UFRACT, ADJUST_LEN_MINUS, ADJUST_LEN_MINUS64.
7592         * config/avr/predicates.md (const0_operand): Allow const_fixed.
7593         (const_operand, const_or_immediate_operand): New.
7594         (nonmemory_or_const_operand): New.
7595         * config/avr/constraints.md (Ynn, Y00, Y01, Y02, Ym1, Ym2, YIJ):
7596         New constraints.
7597         * config/avr/avr.h (LONG_LONG_ACCUM_TYPE_SIZE): Define.
7599 2012-08-23  Kenneth Zadeck <zadeck@naturalbridge.com>
7601         * alias.c (rtx_equal_for_memref_p): Convert constant cases.
7602         * combine.c (find_single_use_1, mark_used_regs_combine): Convert
7603         to CASE_CONST_ANY.
7604         * cse.c (exp_equiv_p, canon_reg, fold_rtx, cse_process_notes_1,
7605         count_reg_usage): Convert constant cases.
7606         * cselib.c (cselib_expand_value_rtx_1): Convert to CASE_CONST_ANY.
7607         (cselib_subst_to_values): Convert constant cases.
7608         * df-scan.c (df_uses_record): Ditto.
7609         * dse.c (const_or_frame_p): Convert case statements to explicit
7610         if-then-else using mode classes.
7611         * emit-rtl.c (verify_rtx_sharing, copy_insn_1): Convert constant cases.
7612         * explow.c (convert_memory_address_addr_space): Ditto.
7613         * gcse.c (want_to_gcse_p, oprs_unchanged_p, compute_transp): Ditto.
7614         * genattrtab.c (attr_copy_rtx, clear_struct_flag): Ditto.
7615         * ira.c (equiv_init_varies_p, contains_replace_regs,
7616         memref_referenced_p, rtx_moveable_p): Ditto.
7617         * jump.c (mark_jump_label_1): Remove constant cases.
7618         (rtx_renumbered_equal_p): Convert to CASE_CONST_UNIQUE.
7619         * loop-invariant.c (check_maybe_invariant, hash_invariant_expr_1,
7620         invariant_expr_equal_p): Convert to CASE_CONST_ANY.
7621         * postreload-gcse.c (oprs_unchanged_p): Convert constant cases.
7622         * reginfo.c (reg_scan_mark_refs): Ditto.
7623         * regrename.c (scan_rtx): Ditto.
7624         * reload1.c (eliminate_regs_1, elimination_effects,
7625         scan_paradoxical_subregs): Ditto.
7626         * reload.c (operands_match_p, subst_reg_equivs):  Ditto.
7627         * resource.c (mark_referenced_resources, mark_set_resources): Ditto.
7628         * rtlanal.c (rtx_unstable_p, rtx_varies_p, count_occurrences)
7629         (reg_mentioned_p, modified_between_p, modified_in_p)
7630         (volatile_insn_p, volatile_refs_p, side_effects_p, may_trap_p_1,
7631         inequality_comparisons_p, computed_jump_p_1): Ditto.
7632         * rtl.c (copy_rtx, rtx_equal_p_cb, rtx_equal_p): Ditto.
7633         * sched-deps.c (sched_analyze_2): Ditto.
7634         * valtrack.c (cleanup_auto_inc_dec): Ditto.
7635         * rtl.h: (CASE_CONST_SCALAR_INT, CASE_CONST_UNIQUE,
7636         CASE_CONST_ANY): New macros.
7638 2012-08-23  Julian Brown  <julian@codesourcery.com>
7639             Sandra Loosemore  <sandra@codesourcery.com>
7641         * config/mips/mips.md
7642         (UNSPEC_CASESI_DISPATCH): New.
7643         (MIPS16_T_REGNUM): New constant.
7644         (tablejump): Don't use for MIPS16_SHORT_JUMP_TABLES.
7645         (casesi): New.
7646         (casesi_internal_mips16_<mode>): New.
7647         * config/mips/mips.c (mips16_split_long_branches): Adjust test
7648         to ignore casesi jump tables.
7649         * config/mips/mips.h (TARGET_MIPS16_SHORT_JUMP_TABLES): Update
7650         comment.
7651         (CASE_VECTOR_MODE): Use SImode unconditionally.
7652         (CASE_VECTOR_SHORTEN_MODE): Define.
7653         (ASM_OUTPUT_ADDR_DIFF_ELT): Output word-sized addr_diff_elts
7654         when necessary for MIPS16_SHORT_JUMP_TABLES.
7656 2012-08-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7658         * config/rs6000/rs6000.c (rs6000_density_test): Free loop body.
7660 2012-08-23  H.J. Lu  <hongjiu.lu@intel.com>
7662         PR driver/54335
7663         * doc/invoke.texi: Add -da and remove -dm.
7665 2012-08-23  Richard Guenther  <rguenther@suse.de>
7667         * tree-vect-stmts.c (vect_finish_stmt_generation): Update
7668         virtual SSA form.
7670 2012-08-23  Jakub Jelinek  <jakub@redhat.com>
7672         * tree.c (copy_node_stat): Clear DECL_STRUCT_FUNCTION.
7674 2012-08-23  Mingjie Xing  <mingjie.xing@gmail.com>
7676         * doc/gty.texi: Fix typo.
7678 2012-08-23  Richard Guenther  <rguenther@suse.de>
7680         * tree-ssa-loop-manip.c (add_exit_phis_var): Allow virtual operands.
7681         (find_uses_to_rename_use): Likewise.
7682         (find_uses_to_rename_bb): Likewise.
7683         (find_uses_to_rename_stmt): Walk over all operands.
7685 2012-08-22  Oleg Endo  <olegendo@gcc.gnu.org>
7687         PR target/54089
7688         * config/sh/predicates (p27_rshift_count_operand,
7689         not_p27_rshift_count_operand): New predicates.
7690         * config/sh/sh.c (sh_ashlsi_clobbers_t_reg_p,
7691         sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p): Handle special
7692         case when shift amount is 31.
7693         (gen_ashift): Emit gen_shlr instead of gen_lshrsi3_m.
7694         * config/sh/sh.md (ashlsi3_d): Set type to 'dyn_shift' instead
7695         of 'arith'.
7696         (ashlsi_c): Rename to shll.  Adapt calls to gen_ashlsi_c throughout
7697         the file.
7698         (lshrsi3): Remove clobber from expander.  Use shift_count_operand
7699         instead of nonmemory_operand predicate for second operand.  Add
7700         handling of case lshrsi3_n_clobbers_t.
7701         (lshrsi3_k): Use p27_rshift_count_operand for second operand.
7702         (lshrsi3_d): Make insn_and_split.  Split dynamic shift to constant
7703         shift sequences if beneficial.
7704         (lshrsi3_n): Make insn_and_split.  Split constant shift sequence to
7705         dynamic shift if beneficial.
7706         (lshrsi3_n_clobbers_t): New insn_and_split.
7707         (lshrsi3_m): Delete.
7709 2012-08-22  Steven Bosscher  <steven@gcc.gnu.org>
7711         * tracer.c (mark_bb_seen): Use SBITMAP_SIZE.
7713         * alias.c (MAX_ALIAS_LOOP_PASSES): Update comment with rationale,
7714         or rather a lack thereof.
7715         (init_alias_analysis): Propagate the latest information across
7716         the CFG in topological order to propagate as far as possible in
7717         each iteration.  Ignore debug insns.
7719 2012-08-22  H.J. Lu  <hongjiu.lu@intel.com>
7721         * doc/invoke.texi: Document -mlong-double-64/-mlong-double-80.
7723         * config/i386/i386.c (flag_opts): Add -mlong-double-64.
7724         (TARGET_HAS_BIONIC): Default long double to 64-bit for Bionic.
7726         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 64 if
7727         TARGET_LONG_DOUBLE_64 is true.
7728         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): New macro.
7729         (WIDEST_HARDWARE_FP_SIZE): Defined to 80.
7731         * config/i386/i386.opt (mlong-double-80): New option.
7732         (mlong-double-64): Likewise.
7734         * config/i386/i386-c.c (ix86_target_macros): Define
7735         __LONG_DOUBLE_64__ for TARGET_LONG_DOUBLE_64.
7737 2012-08-22  H.J. Lu  <hongjiu.lu@intel.com>
7739         PR target/54347
7740         * config/i386/i386.c (ix86_split_to_parts): Replace
7741         REAL_VALUE_TO_TARGET_LONG_DOUBLE with real_to_target.
7743 2012-08-22  Richard Guenther  <rguenther@suse.de>
7745         * tree-vectorizer.c (vectorize_loops): Do not call
7746         mark_virtual_operands_for_renaming.
7747         * tree-vect-slp.c (vect_slp_transform_bb): Likewise.
7748         Do not update SSA form here.
7750 2012-08-22  Dodji Seketeli  <dodji@redhat.com>
7752         * tree.h (TREE_NOTHROW): Use the base.nothrow_flag.
7754 2012-08-22  Richard Guenther  <rguenther@suse.de>
7756         PR tree-optimization/46590
7757         * tree-ssa-alias.h (get_continuation_for_phi): Add alias query
7758         counter output argument.
7759         (walk_non_aliased_vuses): Add alias query counter argument
7760         to the walker callback.
7761         * tree-ssa-alias.c (maybe_skip_until): Add alias query counter
7762         output argument and count alias queries.
7763         (get_continuation_for_phi_1): Likewise.
7764         (get_continuation_for_phi): Likewise.
7765         (walk_non_aliased_vuses): Add alias query counter argument
7766         to the walker callback and allow it to abort the walk by
7767         returning -1.
7768         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
7769         * tree-ssa-sccvn.c (vn_reference_lookup_2): Add alias query
7770         counter parmeter, abort walk if that is bigger than
7771         --param sccvn-max-alias-queries-per-access.
7772         * params.def (sccvn-max-alias-queries-per-access): New param.
7773         * doc/invoke.texi (sccvn-max-alias-queries-per-access): Document.
7775 2012-08-22  Richard Guenther  <rguenther@suse.de>
7777         * tree-ssa-loop-ch.c (copy_loop_headers): Remove redundant checking.
7778         * tree-into-ssa.c (initialize_flags_in_bb): Use gcc_checking_assert
7779         instead of gcc_assert.
7780         (mark_block_for_update): Likewise.
7781         (add_new_name_mapping): Likewise.
7782         (mark_def_sites): Likewise.
7783         (insert_phi_nodes_for): Likewise.
7784         (rewrite_debug_stmt_uses): Likewise.
7785         (rewrite_stmt): Likewise.
7786         (maybe_register_def): Likewise.
7787         (rewrite_update_phi_arguments): Likewise.
7788         (rewrite_update_enter_block): Likewise.
7789         (mark_def_interesting): Likewise.
7790         (prepare_def_site_for): Likewise.
7791         (insert_updated_phi_nodes_for): Likewise.
7793 2012-08-22  Jakub Jelinek  <jakub@redhat.com>
7795         * tree-vect-loop.c (vect_transform_loop): Initialize
7796         check_profitability to false.
7798         * tree-predcom.c (try_combine_chains): Free the worklist vector
7799         at the end.
7801 2012-08-22  Marc Glisse  <marc.glisse@inria.fr>
7803         PR tree-optimization/54317
7804         * tree-vrp.c (extract_range_from_binary_expr_1): Test for
7805         double_int overflow.
7806         Remove dead tests.
7808 2012-08-22  Jakub Jelinek  <jakub@redhat.com>
7810         * tree-vrp.c (find_assert_locations): Skip also edges
7811         from the entry block.
7813         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Call
7814         free_stmt_vec_info on orig_cond after gsi_removing it.
7815         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Always
7816         free body_cost_vec vector.
7817         (vect_analyze_data_refs): If gather is unsuccessful,
7818         free_data_ref (dr).
7819         * tree-inline.c (tree_function_versioning): Free
7820         old_transforms_to_apply vector.
7822 2012-08-22  Steven Bosscher  <steven@gcc.gnu.org>
7824         * tree-ssa-coalesce.c (struct ssa_conflicts_d): Make contents
7825         of this a VEC and add a bitmap obstack.
7826         (ssa_conflicts_new): Allocate the obstack and grow the VEC cleared
7827         to the right size.
7828         (ssa_conflicts_delete): Free the VEC and release the obstack.
7829         (ssa_conflicts_test_p, ssa_conflicts_test_p, ssa_conflicts_add_one,
7830         ssa_conflicts_merge, ssa_conflicts_dump): Update for above changes.
7831         (truct live_track_d): Add another bitmap obstack here.
7832         (new_live_track): Initialize it and use it for all bitmaps.
7833         (delete_live_track): Don't free the bitmaps one at a time, just
7834         release the obstack.
7835         (create_outofssa_var_map): Fix to conform to GCC code style rules.
7837 2012-08-21  Nathan Froyd  <froydnj@gcc.gnu.org>
7839         * config/m32c/constraints.md: New file.
7840         * config/m32c/t-m32c (MD_FILES): Add constraints.
7841         * config/m32c/m32c-protos.h (m32c_const_ok_for_constraint_p): Delete.
7842         (m32c_extra_address_constraint, m32c_extra_memory_constraint): Delete.
7843         (m32c_reg_class_from_constraint): Delete.
7844         (m32c_extra_constraint_p, m32c_extra_constraint_p2): Delete.
7845         (m32c_matches_constraint_p): Declare.
7846         * config/m32c/m32c.h (CONSTRAINT_LEN): Delete.
7847         (REG_CLASS_FROM_CONSTRAINT): Delete.
7848         (CONST_OK_FOR_CONSTRAINT_P): Delete.
7849         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Delete.
7850         (EXTRA_CONSTRAINT_STR): Delete.
7851         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Delete.
7852         * config/m32c/m32c.c: Include tm-constrs.h
7853         (m32c_reg_class_from_constraint): Delete.
7854         (m32c_const_ok_for_constraint_p): Delete.
7855         (m32c_extra_constraint_p2): Rename to...
7856         (m32c_matches_constraint_p): ...this.  Make it return bool.  Tweak
7857         formatting.
7858         (m32c_extra_constraint_p): Delete.
7859         (m32c_extra_address_constraint, m32c_extra_memory_constraint): Delete.
7860         (m32c_split_move): Use satisfies_constraint_Ss.
7861         * config/m32c/predicates.md (memsym_operand): Use
7862         satisfies_constraint_Si.
7863         (memimmed_operand): Use satisfies_constraint_Sp.
7864         (m32c_psi_scale, m32c_1bit8_operand): Use satisfies_constraint_Ilb.
7865         (m32c_1bit16_operand): Use satisfies_constraint_Ilw.
7866         (m32c_1mask8_operand): Use satisfies_constraint_ImB.
7867         (m32c_1mask16_operand): Use satisfies_constraint_Imw.
7869 2012-08-21  Nathan Froyd  <froydnj@gcc.gnu.org>
7871         * config/mep/mep.h (REG_CLASS_FROM_CONSTRAINT): Delete.
7872         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7873         (CONSTRAINT_LEN, EXTRA_CONSTRAINT): Delete.
7874         * config/mep/mep.c (mep_reg_class_from_constraint): Delete.
7875         (mep_const_ok_for_letter_p, mep_extra_constraint): Delete.
7876         * config/mep/mep-protos.h (mep_reg_class_from_constraint): Delete.
7877         (mep_const_ok_for_letter_p, mep_extra_constraint): Delete.
7879 2012-08-21  Oleg Endo  <olegendo@gcc.gnu.org>
7881         * config/sh/sh.md (cmpeqdi_t, cmpgtdi_t, cmpgedi_t, cmpgeudi_t,
7882         cmpgtudi_t, *movsicc_t_false, *movsicc_t_true, divsi_inv20, negsi_cond,
7883         truncdihi2, ic_invalidate_line_i, ic_invalidate_line_sh4a,
7884         ic_invalidate_line_media, movdf_i4, calli_pcrel, call_valuei,
7885         call_valuei_pcrel, sibcalli_pcrel, sibcall_compact,
7886         sibcall_valuei_pcrel, sibcall_value_compact, casesi_worker_1,
7887         casesi_worker_2, bandreg_m2a, borreg_m2a, bxorreg_m2a, sp_switch_1,
7888         sp_switch_2, stack_protect_set_si, stack_protect_set_si_media,
7889         stack_protect_set_di_media, stack_protect_test_si,
7890         stack_protect_test_si_media, stack_protect_test_di_media): Convert to
7891         multi-line asm output strings.
7892         (divsi_inv_qitable, divsi_inv_hitable): Use single-alternative asm
7893         output.
7894         (*andsi3_bclr, rotldi3_mextr, rotrdi3_mextr, calli,
7895         call_valuei_tbr_rel, movml_push_banked, movml_pop_banked, bclr_m2a,
7896         bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a, bldsign_m2a,
7897         bld_reg, *bld_regqi, band_m2a, bor_m2a, bxor_m2a, mextr_rl, *mextr_lr):
7898         Use tab char instead of '\\t'.
7899         (iordi3): Use braced string.
7900         (*movsi_pop): Use tab chars instead of spaces.
7902 2012-08-21  Oleg Endo  <olegendo@gcc.gnu.org>
7904         PR target/39423
7905         * config/sh/sh.md (*movhi_index_disp): Add support for SH2A
7906         movu.w insn.
7908 2012-08-21  H.J. Lu  <hongjiu.lu@intel.com>
7910         PR middle-end/54332
7911         * df-scan.c (df_bb_verify): Restore df_free_collection_rec call
7912         inside the insn traversal loop.
7914         * vec.h (vec_reserve): Remove the stack allocation check.
7916 2012-08-21  Marc Glisse  <marc.glisse@inria.fr>
7918         * fold-const.c (fold_ternary_loc): Detect identity permutations.
7919         Canonicalize permutations more.
7920         * tree-ssa-forwprop.c (is_combined_permutation_identity): New function.
7921         (simplify_permutation): Likewise.
7922         (ssa_forward_propagate_and_combine): Call it.
7924 2012-08-21  Richard Guenther  <rguenther@suse.de>
7926         * tree-ssa-loop-im.c (tree_ssa_lim_finalize): Properly free
7927         the affine expansion cache.
7928         * tree-ssa-dom.c (free_expr_hash_elt_contents): New function,
7929         split out from ...
7930         (free_expr_hash_elt): ... this one.
7931         (record_cond): Properly free a not needed hashtable element.
7932         (lookup_avail_expr): Likewise.
7933         * tree-into-ssa.c (init_ssa_renamer): Specify a free function
7934         for the var_infos hashtable.
7935         (update_ssa): Likewise.
7937 2012-08-21  Richard Guenther  <rguenther@suse.de>
7939         * alloc-pool.c (pool_alloc): Fix valgrind annotation.
7940         * tree.h: Fix typo and complete flags documentation.
7942 2012-08-21  Richard Guenther  <rguenther@suse.de>
7944         * tree.h (struct tree_base): Add union to make it possible to
7945         re-use the upper 4 bytes for tree codes that do not need as
7946         many flags as others.  Move visited and default_def_flag to
7947         common bits section in exchange for saturating_flag and
7948         unsigned_flag.  Add SSA name version and tree vec length
7949         fields here.
7950         (struct tree_vec): Remove length field here.
7951         (struct tree_ssa_name): Remove version field here.
7953 2012-08-20  Jan Hubicka  <jh@suse.cz>
7955         PR fortran/48636
7956         * ipa-inline.c (want_inline_small_function_p): Take loop_iterations
7957         hint.
7958         (edge_badness): Likewise.
7959         * ipa-inline.h (inline_hints_vals): Add INLINE_HINT_loop_iterations.
7960         (inline_summary): Add loop_iterations.
7961         * ipa-inline-analysis.c: Include tree-scalar-evolution.h.
7962         (dump_inline_hints): Dump loop_iterations.
7963         (reset_inline_summary): Free loop_iterations.
7964         (inline_node_duplication_hook): Update loop_iterations.
7965         (dump_inline_summary): Dump loop_iterations.
7966         (will_be_nonconstant_expr_predicate): New function.
7967         (estimate_function_body_sizes): Analyze loops.
7968         (estimate_node_size_and_time): Set hint loop_iterations.
7969         (inline_merge_summary): Merge loop iterations.
7970         (inline_read_section): Stream in loop_iterations.
7971         (inline_write_summary): Stream out loop_iterations.
7973 2012-08-20  Oleg Endo  <olegendo@gcc.gnu.org>
7975         PR target/54089
7976         * config/sh/sh.md (rotcr, *rotcr, shar, shlr): New insns and splits.
7977         (ashrdi3_k, lshrdi3_k): Rewrite as insn_and_split.
7978         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p): New function.
7979         * config/sh/sh-protos.h (sh_lshrsi_clobbers_t_reg_p): Declare it.
7981 2012-08-20  Oleg Endo  <olegendo@gcc.gnu.org>
7983         PR target/51244
7984         * config/sh/sh.md (*cset_zero): New insns.
7986 2012-08-20  Mark Wielaard  <mjw@redhat.com>
7988         * dwarf2out.h (enum dw_val_class): Add dw_val_class_high_pc.
7989         * dwarf2out.c (dw_val_equal_p): Handle dw_val_class_high_pc.
7990         (add_AT_low_high_pc): New function.
7991         (AT_lbl): Handle dw_val_class_high_pc.
7992         (print_die): Likewise.
7993         (attr_checksum): Likewise.
7994         (attr_checksum_ordered): Likewise.
7995         (same_dw_val_p): Likewise.
7996         (size_of_die): Likewise.
7997         (value_format): Likewise.
7998         (output_die): Likewise.
7999         (gen_subprogram_die): Use add_AT_low_high_pc.
8000         (add_high_low_attributes): Likewise.
8001         (dwarf2out_finish): Likewise.
8003 2012-08-20  Jakub Jelinek  <jakub@redhat.com>
8005         PR rtl-optimization/54294
8006         * fwprop.c (all_uses_available_at): Ignore debug insns in between
8007         def_insn and target_insn when checking whether the shortcut is
8008         possible.
8010 2012-08-20  Eric Botcazou  <ebotcazou@adacore.com>
8012         * config/sparc/sparc.h (MAX_FIXED_MODE_SIZE): Define.
8014 2012-08-20  Patrick Marlier  <patrick.marlier@gmail.com>
8016         PR middle-end/53992
8017         * omp-low.c (lower_omp_1): Handle GIMPLE_TRANSACTION.
8019 2012-08-20  Richard Earnshaw  <rearnsha@arm.com>
8021         PR tree-ssa/54295
8022         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Delete rhs_code
8023         declaration and setter.
8025 2012-08-20  Richard Earnshaw  <rearnsha@arm.com>
8027         PR tree-ssa/54295
8028         * tree-ssa-math-opts.c (widening_mult_conversion_strippable_p):
8029         New function.
8030         (is_widening_mult_rhs_p): Use it.
8032 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
8034         * configure.ac (ffs): Check for declaration.
8035         * configure, config.in: Regenerate.
8037 2012-08-20  Richard Guenther  <rguenther@suse.de>
8039         * tree-flow.h (register_new_name_mapping): Remove.
8040         * tree-into-ssa.c (register_new_name_mapping): Likewise.
8041         (add_new_name_mapping): Do not push/pop timevar here.
8042         (create_new_def_for): Instead do it here.  Initialize
8043         update-ssa here, handle a NULL def.
8044         * tree-vrp.c (build_assert_expr_for): Use create_new_def_for.
8046 2012-08-20  Richard Guenther  <rguenther@suse.de>
8048         PR tree-optimization/54327
8049         * gimple-fold.c (get_maxval_strlen): Do not walk use-def chains
8050         if the use is registered for SSA update.
8052 2012-08-20  Jakub Jelinek  <jakub@redhat.com>
8054         PR tree-optimization/54321
8055         * tree-ssa-forwprop.c (simplify_builtin_call): Pass 0 instead of 1
8056         as second argument to tree_low_cst call on val2.
8058 2012-08-20  Richard Guenther  <rguenther@suse.de>
8060         * gimple.h (gimple_statement_base): Annotate with GTY chain_next.
8062 2012-08-20  Richard Guenther  <rguenther@suse.de>
8064         PR bootstrap/54326
8065         * genoutput.c (note_constraint): Properly use CONST_CAST.
8067 2012-08-19  Nick Clifton  <nickc@redhat.com>
8069         PR target/54306
8070         * config/arm/mmintrin.h: Remove spurious #endif.
8072 2012-08-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8074         * config/avr/avr-log.c (avr_log_vadump): Properly use
8075         int-promoted enum values.
8076         * config/avr/avr.h (struct mcu_type_s): Change `arch' from
8077         int to enum avr_arch.
8078         * config/avr/gen-avr-mmcu-texi.c (main): Use correct initializer.
8080 2012-08-18  Jan Hubicka  <jh@suse.cz>
8082         PR lto/45375
8083         * ipa-inline.c (want_inline_small_function_p): Bypass
8084         inline limits for hinted functions.
8085         (edge_badness): Dump hints; decrease badness for hinted funcitons.
8086         * ipa-inline.h (enum inline_hints_vals): New enum.
8087         (inline_hints): New type.
8088         (edge_growth_cache_entry): Add hints.
8089         (dump_inline_summary): Update.
8090         (dump_inline_hints): Declare.
8091         (do_estimate_edge_hints): Declare.
8092         (estimate_edge_hints): New inline function.
8093         (reset_edge_growth_cache): Update.
8094         * predict.c (cgraph_maybe_hot_edge_p): Do not ice on indirect edges.
8095         * ipa-inline-analysis.c (dump_inline_hints): New function.
8096         (estimate_edge_devirt_benefit): Return true when function should be
8097         hinted.
8098         (estimate_calls_size_and_time): New hints argument; set it when
8099         devritualization happens.
8100         (estimate_node_size_and_time): New hints argument.
8101         (do_estimate_edge_time): Cache hints.
8102         (do_estimate_edge_growth): Update.
8103         (do_estimate_edge_hints): New function
8105 2012-08-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8107         PR middle-end/53823
8108         * expmed.c (expand_mult): Skip synth_mult for negative coefficients
8109         if the mode is larger than a wide int and it is too costly to multiply
8110         by a positive multiplier and negate the result.
8112 2012-08-18  Steven Bosscher  <steven@gcc.gnu.org>
8114         * sparseset.c (sparseset_alloc): Use non-clearing allocation.  Tell
8115         valgrind not to worry about reading from unitialized memory.
8117 2012-08-18  Steven Bosscher  <steven@gcc.gnu.org>
8119         PR middle-end/54313
8120         * dse.c (dse_step7): Don't free kill_on_calls bitmap, it is
8121         freed when its obstack is release.
8123 2012-08-18  Andrew Pinski  <pinskia@gmail.com>
8125         * alloc-pool.c (pool_alloc): Add valgrind markers.
8126         (pool_free): Likewise.
8128 2012-08-17  Walter Lee  <walt@tilera.com>
8130         * config/tilegx/feedback.h (FEEDBACK_ENTER_EXPLICIT): Define.
8131         (FEEDBACK_ENTER): Define.
8132         (FEEDBACK_REENTER): Define.
8133         (FEEDBACK_ENTRY): Define.
8134         * config/tilepro/feedback.h: (FEEDBACK_ENTER_EXPLICIT): Define.
8135         (FEEDBACK_ENTER): Define.
8136         (FEEDBACK_REENTER): Define.
8137         (FEEDBACK_ENTRY): Define.
8139 2012-08-17  H.J. Lu  <hongjiu.lu@intel.com>
8140             Gary Funck <gary@intrepid.com>
8142         PR target/20020
8143         * config/i386/i386.c (ix86_member_type_forces_blk): New function.
8144         (TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
8146         * config/i386/i386.h (MAX_FIXED_MODE_SIZE): New macro.
8148 2012-08-17  Marc Glisse  <marc.glisse@inria.fr>
8150         * simplify-rtx.c (simplify_binary_operation_1): Optimize shuffle of
8151         a concatenation.
8153 2012-08-17  H.J. Lu  <hongjiu.lu@intel.com>
8155         * stor-layout.c (compute_record_mode): Replace
8156         MEMBER_TYPE_FORCES_BLK with targetm.member_type_forces_blk.
8157         (layout_type): Likewise.
8159         * system.h: Poison MEMBER_TYPE_FORCES_BLK.
8161         * target.def (member_type_forces_blk): New target hook.
8163         * targhooks.c (default_member_type_forces_blk): New.
8164         * targhooks.h (default_member_type_forces_blk): Likewise.
8166         * doc/tm.texi.in (MEMBER_TYPE_FORCES_BLK): Removed.
8167         (TARGET_MEMBER_TYPE_FORCES_BLK): New hook.
8168         * doc/tm.texi: Regenerated.
8170         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Removed.
8172         * config/ia64/ia64.c (ia64_member_type_forces_blk): New function.
8173         (TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
8175         * config/rs6000/rs6000.c (TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
8176         (rs6000_member_type_forces_blk): New function.
8178         * config/rs6000/rs6000.h (MEMBER_TYPE_FORCES_BLK): Removed.
8180         * config/xtensa/xtensa.c (xtensa_member_type_forces_blk): New function.
8181         (TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
8183         * config/xtensa/xtensa.h (MEMBER_TYPE_FORCES_BLK): Removed.
8185 2012-08-17  Diego Novillo  <dnovillo@google.com>
8187         PR bootstrap/54281
8188         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
8189         * config.in: Regenerate.
8190         * configure: Regenerate.
8191         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
8193 2012-08-17  Richard Guenther  <rguenther@suse.de>
8195         * bitmap.h (struct bitmap_element_def): GTY annotate next/prev.
8196         (struct bitmap_head_def): GTY skip current field.
8198 2012-08-17  Steven Bosscher  <steven@gcc.gnu.org>
8200         PR middle-end/54146
8201         * tree-ssa-loop-im.c (lim_bitmap_obstack): New bitmap_obstack.
8202         (memref_free): Don't free the bitmaps individually here.
8203         (mem_ref_alloc): Allocate the bitmaps on the new bitmap obstack.
8204         (analyze_memory_references): Likewise.
8205         (tree_ssa_lim_initialize): Initialize the new bitmap obstack.
8206         (tree_ssa_lim_finalize): Release it.
8207         * dse.c (dse_bitmap_obstack): New bitmap obstack.
8208         (dse_obstack): New obstack.
8209         (get_group_info): Allocate the bitmaps on the new bitmap obstack.
8210         (dse_step0): Allocate the scratch bitmap on reg_obstack.  Initialize
8211         the new bitmap obstack and normal obstack.  Use XNEWVEC for bb_table.
8212         (record_store): Allocate regs_set on reg_obstack.
8213         (dse_step1): Allocate regs_live on reg_obstack.
8214         (dse_step2_init): Allocate offset_map_n and offset_map_p on the new
8215         obstack.
8216         (dse_step3_scan): Allocate bitmaps on the new bitmap obstack.
8217         (dse_step3): Likewise.
8218         (dse_confluence_0): Likewise.
8219         (dse_confluence_n): Likewise.
8220         (dse_transfer_function): Likewise.
8221         (dse_step7): Destroy the new obstacks, and everything allocated on
8222         them, in one big sweep.
8223         (rest_of_handle_dse): Update.
8224         * cfgexpand.c (stack_var_bitmap_obstack): New bitmap obstack.
8225         (add_stack_var_conflict): Allocate bitmaps on it.
8226         (add_scope_conflicts_1): Likewise.
8227         (add_scope_conflicts): Likewise.
8228         (update_alias_info_with_stack_vars): Likewise.
8229         (init_vars_expansion): Move TREE_USED fiddling expand_used_vars.
8230         Initialize the new bitmap obstack.
8231         (fini_vars_expansion): Release it.
8232         (estimated_stack_frame_size): Use init_vars_expansion to set things up
8233         and always clean up at the end.
8234         (expand_used_vars): Do the TREE_USED trickery here.  Always call
8235         fini_vars_expansion.
8236         * tree-ssa-live.h (struct tree_live_info_d): Make livein and liveout
8237         arrays of bitmap_head to avoid one indirection per bitmap access.
8238         (live_on_entry, live_on_exit, live_var_map, live_merge_and_clear,
8239         make_live_on_entry): Update.
8240         * tree-ssa-live.c (partition_view_bitmap): Don't double-free 'used'.
8241         (liveness_bitmap_obstack): New bitmap obstack.
8242         (remove_unused_locals): Use it to allocate all bitmaps on.  Update
8243         for livein/liveout changes in tree-ssa-live.h.
8244         (delete_tree_live_info): Release the bitmap obstack.
8245         (loe_visit_block, live_worklist, set_var_live_on_entry,
8246         calculate_live_on_exit, dump_live_info): Update.
8247         (calculate_live_ranges): Initialize the bitmap.
8248         * tree-ssa-ter.c (ter_bitmap_obstack): New bitmap obstack.
8249         (new_temp_expr_table): Allocate bitmap on it.
8250         (make_dependent_on_partition, add_to_partition_kill_list,
8251         add_dependence, process_replaceable): Likewise.
8252         (find_replaceable_exprs): Initialize and release the new obstack here.
8253         * df-problems.c (df_lr_add_problem): Allocate persistent bitmap
8254         for out_of_date_transfer_functions on df_bitmap_obstack.
8255         (df_live_add_problem): Likewise.
8256         (df_chain_add_problem): Likewise.
8257         (df_word_lr_add_problem): Likewise.
8259 2012-08-17  Nick Clifton  <nickc@redhat.com>
8261         * config/fr30/fr30.md (cbranchsi4): Remove mode from comparison.
8262         (branch_true): Likewise.
8263         (branch_false): Likewise.
8265         * config/mcore/mcore.md (cbranchsi4): Remove mode from comparison.
8267         * config/iq2000/iq2000.md (cbranchsi4): Remove mode from
8268         comparison and label.
8269         (branch_zero): Likewise.
8270         (branch_zero_inverted): Likewise.
8271         (branch_equality): Likewise.
8272         (branch_equality_inverted): Likewise.
8273         (extend-and-compare): Disable until reload issues can be resolved.
8274         * config/iq2000/iq2000.c (gen_conditional_branch): Use VOIDmode
8275         for comparison.
8276         (iq2000_function_arg_advance): Remove CONST_CAST2.
8278         * config/mep/t-mep (mep-pragma.o): Use $(COMPILER) to compile
8279         mep-pragma.c.
8281 2012-08-17  Georg-Johann Lay  <avr@gjlay.de>
8283         * config/avr/t-avr (gen-avr-mmcu-texi): Use $(CC) to compile
8284         gen-avr-mmcu-texi.c.
8286 2012-08-17  Richard Earnshaw  <rearnsha@arm.com>
8288         * arm.md (arm_addsi3): New variant for Thumb2 16-bit ADD instruction.
8289         * arm.c (thumb2_reorg): Don't convert an ADD instruction that's
8290         already 16 bits.
8292 2012-08-17  Richard Guenther  <rguenther@suse.de>
8294         * hash-table.h (class hash_table): Use a descriptor template
8295         argument instead of decomposed element type and support functions.
8296         (struct pointer_hash): New generic typed pointer-hash.
8297         (struct typed_free_remove, struct typed_noop_remove): Generic
8298         hash_table support pieces.
8299         * coverage.c (struct counts_entry): Add hash_table support members.
8300         * tree-ssa-ccp.c (gimple_htab): Use pointer_hash.
8301         * tree-ssa-coalesce.c (struct ssa_name_var_hash): New generic
8302         SSA name by SSA_NAME_VAR hash.
8303         (coalesce_ssa_name): Use it.
8304         * tree-ssa-pre.c (struct pre_expr_d): Add hash_table support.
8305         (expression_to_id): Adjust.
8306         (struct expr_pred_trans_d): Add hash_table support.
8307         (phi_translate_table): Adjust.
8308         (phi_trans_lookup): Likewise.
8309         (phi_trans_add): Likewise.
8310         (do_regular_insertion): Likewise.
8311         * tree-ssa-tail-merge.c (struct same_succ_def): Add hash_table support.
8312         (same_succ_htab): Adjust.
8313         (find_same_succ_bb): Likewise.
8314         (find_same_succ): Likewise.
8315         (update_worklist): Likewise.
8316         * tree-ssa-threadupdate.c (struct redirection_data): Add hash_table
8317         support.
8318         (redirection_data): Adjust.
8320 2012-08-17  Richard Guenther  <rguenther@suse.de>
8322         * params.def (integer-share-limit): Decrease from 256 to 251,
8323         add rationale.
8325 2012-08-17  Richard Guenther  <rguenther@suse.de>
8327         * tree-sra.c (modify_function): Free redirect_callers vector.
8328         * ipa-split.c (split_function): Free args_to_pass vector.
8329         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Free
8330         body_cost_vec properly.
8331         (vect_enhance_data_refs_alignment): Likewise.
8332         * tree-vect-stmts.c (vectorizable_operation): Do not pre-allocate
8333         vec_oprnds.
8334         (new_stmt_vec_info): Do not pre-allocate STMT_VINFO_SAME_ALIGN_REFS.
8335         * tree-vect-slp.c (vect_free_slp_instance): Free the instance.
8336         (vect_analyze_slp_instance): Free everything.
8337         (destroy_bb_vec_info): Free the SLP instances.
8339 2012-08-17  Iain Sandoe  <iain@codesourcery.com>
8341         * config/rs6000/rs6000.c (macho_branch_islands): Adjust for changes
8342         to vec.h.
8344 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
8346         * doc/invoke.texi (-Wsizeof-pointer-memaccess): Document.
8348 2012-08-16  Sandra Loosemore  <sandra@codesourcery.com>
8350         * config/mips/mips-dsp.md (mips_dpau_h_qbl, mips_dpau_h_qbr)
8351         (mips_dpsu_h_qbl, mips_dpsu_h_qbr, mips_dpaq_s_w_ph)
8352         (mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph, mips_dpaq_sa_l_w)
8353         (mips_dpsq_sa_l_w, mips_maq_s_w_phl, mips_maq_s_w_phr)
8354         (mips_maq_sa_w_phl, mips_maq_sa_w_phr): Add accum_in attribute.
8356 2012-08-16  Oleg Endo  <olegendo@gcc.gnu.org>
8358         PR target/54236
8359         * config/sh/sh.md (addc): Add commutative modifier.
8360         (*addc, *minus_plus_one, *subc, *negc): New insns and splits.
8362 2012-08-16  Oleg Endo  <olegendo@gcc.gnu.org>
8364         PR target/39423
8365         * config/sh/sh.md (*movsi_index_disp, *movhi_index_disp): Handle
8366         potential T_REG clobber.  Convert zero extending split to
8367         insn_and_split.
8369 2012-08-16  Oleg Endo  <olegendo@gcc.gnu.org>
8371         PR target/54089
8372         * config/sh/sh.md (ashlsi3_d): Do not split if it would result
8373         in a T_REG clobber.  Correct comment.
8374         (ashlsi3_n): Correct comment.
8376 2012-08-16  Hans-Peter Nilsson  <hp@axis.com>
8378         PR middle-end/54261
8379         * optabs.c (expand_atomic_fetch_op): Save and restore code when
8380         retrying after failed attempt.
8382 2012-08-16  Yuri Rumyantsev  <ysrumyan@gmail.com>
8384         * config/i386/i386-protos.h (ix86_split_lea_for_addr) : Add
8385         additional argument.
8386         * config/i386/i386.md (ix86_split_lea_for_addr) : Add
8387         additional argument curr_insn.
8388         * config/i386/i386.c (ix86_split_lea_for_addr): Load base or index
8389         register first, depending on their defintion distances.
8390         (ix86_lea_outperforms): Prefer LEA only if split cost exceeds
8391         AGU stall.
8392         (find_nearest_reg-def): New function. Find register with
8393         nearest definition.
8395 2012-08-16  Walter Lee  <walt@tilera.com>
8397         * config.gcc (tilegx-*-linux*): Add feedback.h.
8398         (tilepro-*-linux*): Likewise.
8399         * config/tilegx/feedback.h: New file.
8400         * config/tilepro/feedback.h: New file.
8402 2012-08-16  Diego Novillo  <dnovillo@google.com>
8404         Revert
8406         PR bootstrap/54281
8407         * double-int.h: Move including of gmp.h ...
8408         * system.h: ... here.
8409         * realmpfr.h: Do not include gmp.h.
8410         * tree-ssa-loop-niter.c: Do not include gmp.h.
8412 2012-08-16  Segher Boessenkool  <segher@kernel.crashing.org>
8414         * config/rs6000/darwin.h (TARGET_IEEE_QUAD): Fix comment.
8416 2012-08-16  Richard Guenther  <rguenther@suse.de>
8418         PR middle-end/54146
8419         * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Free the
8420         exit vector.
8421         * ipa-pure-const.c (analyze_function): Use FOR_EACH_LOOP_BREAK.
8422         * cfgloop.h (FOR_EACH_LOOP_BREAK): Fix.
8423         * tree-ssa-structalias.c (handle_lhs_call): Properly free rhsc.
8424         * tree-into-ssa.c (get_ssa_name_ann): Allocate info only when needed.
8425         * tree-ssa-loop-im.c (analyze_memory_references): Adjust.
8426         (tree_ssa_lim_finalize): Free all mem_refs.
8427         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): Free
8428         scc when bailing out.
8429         * modulo-sched.c (sms_schedule): Use FOR_EACH_LOOP_BREAK.
8430         * ira-build.c (loop_with_complex_edge_p): Free loop exit vector.
8431         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): Use
8432         FOR_EACH_LOOP_BREAK.
8434 2012-08-16  Diego Novillo  <dnovillo@google.com>
8436         PR bootstrap/54281
8437         * double-int.h: Move including of gmp.h ...
8438         * system.h: ... here.
8439         * realmpfr.h: Do not include gmp.h.
8440         * tree-ssa-loop-niter.c: Do not include gmp.h.
8442 2012-08-16  Steven Bosscher  <steven@gcc.gnu.org>
8444         PR middle-end/54146
8445         * tree-flow.h (compute_global_livein): Remove prototype.
8446         * tree-into-ssa.c (compute_global_livein): Remove function.
8447         * tree-ssa-loop-manip.c: Include gimple-pretty-print.h.
8448         (find_sibling_superloop): New function.
8449         (compute_live_loop_exits): New function.
8450         (add_exit_phis_edge): Rename to add_exit_phi.  Do not allow
8451         inserting a PHI in a block that is not a loop exit for VAR.
8452         Add dumping if TDF_DETAILS.
8453         (add_exit_phis_var): Rewrite.
8454         (add_exit_phis): Update.
8455         (get_loops_exits): Rewrite to return an array of per-loop exits
8456         rather than one bitmap with all loop exits.
8457         (find_uses_to_rename_bb): Ignore virtual PHI nodes.
8458         (rewrite_into_loop_closed_ssa): Update.
8460 2012-08-16  Nick Clifton  <nickc@redhat.com>
8462         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Cast _ascii_bytes
8463         before passing it to ASM_OUTPUT_LIMITED_STRING.
8465         * config/bfin/bfin.c (hwloop_optimize): Fix use of VEC_last macro.
8467         * config/avr/t-avr: Replace occurrences of $(CC) with $(COMPILER).
8468         * config/avr/avr.c (avr_legitimize_reload_address): Add casts
8469         for reload_type enums.
8470         (DEF_BUILTIN): Cast the icode to enum insn_code.
8472 2012-08-15  Segher Boessenkool  <segher@kernel.crashing.org>
8474         * config/rs6000/aix43.h (ASM_CPU_SPEC): Use %(asm_default)
8475         instead of -mppc.
8476         * config/rs6000/aix51.h (ASM_CPU_SPEC): Ditto.
8478 2012-08-15  Segher Boessenkool  <segher@kernel.crashing.org>
8480         * config/rs6000/aix43.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
8481         (RS6000_CALL_GLUE): Adjust for single assembler syntax.
8482         * config/rs6000/aix51.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto.
8483         * config/rs6000/aix52.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto.
8484         * config/rs6000/aix53.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto.
8485         * config/rs6000/aix61.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto.
8486         * config/rs6000/darwin.h (TARGET_DEFAULT): Ditto.
8487         * config/rs6000/darwin.md (whole file): Adjust to single
8488         assembler syntax.
8489         * config/rs6000/darwin64.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
8490         * config/rs6000/default64.h (TARGET_DEFAULT): Ditto.
8491         * config/rs6000/dfp.md: (whole file): Adjust to single
8492         assembler syntax.
8493         * config/rs6000/eabi.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
8494         * config/rs6000/eabialtivec.h (TARGET_DEFAULT): Ditto.
8495         * config/rs6000/eabispe.h (TARGET_DEFAULT): Ditto.
8496         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Ditto.
8497         * config/rs6000/linuxspe.h (TARGET_DEFAULT): Ditto.
8498         * config/rs6000/rs6000-cpus.def (whole file): Delete POWERPC_BASE_MASK.
8499         * config/rs6000/rs6000-tables.opt: Regenerate.
8500         * config/rs6000/rs6000.c (POWERPC_BASE_MASK): Delete.
8501         (num_insns_constant_wide): Adjust comments.
8502         (whole file): Adjust to single assembler syntax.
8503         (output_cbranch): Adjust comment.
8504         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Delete.
8505         * config/rs6000/rs6000.md: (whole file): Adjust to single
8506         assembler syntax.
8507         * config/rs6000/rs6000.opt (mnew-mnemonics): Delete.
8508         (mold-mnemonics): Delete.
8509         * config/rs6000/spe.md: (whole file): Adjust to single
8510         assembler syntax.
8511         * config/rs6000/sync.md: (whole file): Adjust to single
8512         assembler syntax.
8513         * config/rs6000/sysv4.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
8514         (ASM_OUTPUT_REG_PUSH): Adjust.
8515         (ASM_OUTPUT_REG_POP): Adjust.
8516         * config/rs6000/sysv4le.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
8517         * config/rs6000/vsx.md: (whole file): Adjust to single
8518         assembler syntax.
8519         * config/rs6000/vxworks.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
8520         * doc/invoke.texi: Adjust documentation to reflect the
8521         removal of -mnew-mnemonics and -mold-mnemonics.
8523 2012-08-15  Segher Boessenkool  <segher@kernel.crashing.org>
8525         * common/config/rs6000/rs6000-common.c (rs6000_handle_option):
8526         Delete handling for -mno-powerpc and -mpowerpc.
8527         * config/rs6000/aix43.h (ASM_CPU_SPEC): Similar.
8528         (ASM_DEFAULT_SPEC): Use -mppc instead of -mcom.
8529         * config/rs6000/aix51.h (ASM_CPU_SPEC, ASM_DEFAULT_SPEC): Ditto.
8530         * config/rs6000/aix52.h (TARGET_DEFAULT): Delete MASK_POWERPC.
8531         * config/rs6000/aix53.h (TARGET_DEFAULT): Ditto.
8532         * config/rs6000/aix61.h (TARGET_DEFAULT): Ditto.
8533         * config/rs6000/darwin.h (TARGET_DEFAULT): Ditto.
8534         * config/rs6000/darwin64.h (TARGET_DEFAULT): Ditto.
8535         * config/rs6000/default64.h (TARGET_DEFAULT): Ditto.
8536         * config/rs6000/driver-rs6000.c (asm_names): Delete handling
8537         for -mcpu=common and -mpowerpc.
8538         * config/rs6000/eabi.h (TARGET_DEFAULT): Delete MASK_POWERPC.
8539         * config/rs6000/eabialtivec.h (TARGET_DEFAULT): Ditto.
8540         * config/rs6000/eabispe.h (TARGET_DEFAULT): Ditto.
8541         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Ditto.
8542         * config/rs6000/linuxspe.h (TARGET_DEFAULT): Ditto.
8543         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING):
8544         Use RS6000_BTM_ALWAYS instead of RS6000_BTM_POWERPC.
8545         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
8546         (rs6000_cpu_cpp_builtins): Adjust.
8547         * config/rs6000/rs6000.c (POWERPC_BASE_MASK): Delete MASK_POWERPC.
8548         (rs6000_builtin_mask_calculate): Adjust.
8549         (rs6000_emit_move): Delete code for ! TARGET_POWERPC.
8550         (rs6000_init_libfuncs): Ditto.
8551         (rs6000_output_function_prologue): Ditto.
8552         (rs6000_opt_masks): Delete MASK_POWERPC.
8553         (rs6000_builtin_mask_names): Delete RS6000_BTM_POWERPC.
8554         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete handling for -mpowerpc.
8555         (RS6000_BTM_POWERPC): Delete.
8556         (RS6000_BTM_COMMON): Delete RS6000_BTM_POWERPC.
8557         * config/rs6000/rs6000.md (extendqisi2 patterns): Adjust for
8558         TARGET_POWERPC always on.
8559         (extendqihi2 patterns): Similar.
8560         (various unnamed subtract patterns): Similar.
8561         (bswaphi2 patterns): Similar.
8562         (divmodsi4): Similar.
8563         (udiv<GPR:mode>3): Similar.
8564         (div<GPR:mode>3 patterns): Similar.
8565         (udivmodsi4): Similar.
8566         (mulhcall): Delete.
8567         (mullcall): Delete.
8568         (divss_call): Delete.
8569         (divus_call): Delete.
8570         (quoss_call): Delete.
8571         (quous_call): Delete.
8572         (insvsi patterns): Adjust.
8573         (addsf3 patterns): Adjust.
8574         (subsf3 patterns): Adjust.
8575         (mulsf3 patterns): Adjust.
8576         (divsf3 patterns): Adjust.
8577         (*fmasf4_fpr): Adjust.
8578         (*fmssf4_fpr): Adjust.
8579         (*nfmasf4_fpr): Adjust.
8580         (*nfmssf4_fpr): Adjust.
8581         (*floatunssidf2_internal): Adjust.
8582         (fix_trunc<SFDF:mode>si2_internal): Adjust.
8583         (fctiwz_<SFDF:mode>): Adjust.
8584         (mulsidi3 patterns): Adjust.
8585         (smulsi3_highpart patterns): Adjust.
8586         (umulsi3_highpart patterns): Adjust.
8587         (fix_trunctfsi2 patterns): Adjust.
8588         (prefetch): Adjust.
8589         * config/rs6000/rs6000.opt (mpowerpc): Replace by stub option.
8590         (mno-powerpc): Delete.
8591         * config/rs6000/sync.md (load_locked<ATOMIC:mode>): Adjust.
8592         (store_conditional<ATOMIC:mode>): Adjust.
8593         (atomic_compare_and_swap<ATOMIC:mode>): Adjust.
8594         (atomic_exchange<ATOMIC:mode>): Adjust.
8595         (atomic_<fetchop_name><ATOMIC:mode>): Adjust.
8596         (atomic_nand<ATOMIC:mode>): Adjust.
8597         (atomic_fetch_<fetchop_name><ATOMIC:mode>): Adjust.
8598         (atomic_fetch_nand<ATOMIC:mode>): Adjust.
8599         (atomic_<fetchop_name>_fetch<ATOMIC:mode>): Adjust.
8600         (atomic_nand_fetch<ATOMIC:mode>): Adjust.
8601         * config/rs6000/sysv4.h (TARGET_DEFAULT): Delete MASK_POWERPC.
8602         * config/rs6000/sysv4le.h (TARGET_DEFAULT): Ditto.
8603         * config/rs6000/vxworks.h (TARGET_DEFAULT): Ditto.
8604         * doc/invoke.texi: Adjust documentation.
8606 2012-08-15  Segher Boessenkool  <segher@kernel.crashing.org>
8608         * config/rs6000/rs6000.h (RS6000_BTM_ALWAYS): New.
8610 2012-08-15  Segher Boessenkool  <segher@kernel.crashing.org>
8612         * config/rs6000/aix52.h (ASM_CPU_SPEC): Fix typo.
8613         * config/rs6000/aix53.h (ASM_CPU_SPEC): Ditto.
8614         * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
8615         * config/rs6000/driver-rs6000.c (asm_names): Ditto.
8617 2012-08-15  Segher Boessenkool  <segher@kernel.crashing.org>
8619         PR target/54142
8620         * config/rs6000/driver-rs6000.c (asm_names): Use %(asm_default)
8621         instead of -mcom.
8622         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Ditto.
8624 2012-08-15  Sandra Loosemore  <sandra@codesourcery.com>
8625             Maxim Kuvyrkov  <maxim@codesourcery.com>
8626             Julian Brown  <julian@codesourcery.com>
8627             MIPS Technologies, Inc.
8629         * config/mips/mips.md (dspmac, dspmacsat, accext, accmod, dspalu)
8630         (dspalusat): Add insn types.
8631         * config/mips/mips-dsp.md (add<DSPV:mode>3)
8632         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>)
8633         (sub<DSPV:mode>3, mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc)
8634         (mips_addwc, mips_modsub, mips_raddu_w_qb, mips_absq_s_<DSPQ:dspfmt2>)
8635         (mips_precrq_qb_ph, mips_precrq_ph_w, mips_precrq_rs_ph_w)
8636         (mips_precrqu_s_qb_ph, mips_preceq_w_phl, mips_preceq_w_phr)
8637         (mips_precequ_ph_qbl, mips_precequ_ph_qbr, mips_precequ_ph_qbla)
8638         (mips_precequ_ph_qbra, mips_preceu_ph_qbl, mips_preceu_ph_qbr)
8639         (mips_preceu_ph_qbla, mips_preceu_ph_qbra, mips_shll_<DSPV:dspfmt2>)
8640         (mips_shll_s_<DSPQ:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>, mips_shrl_qb)
8641         (mips_shra_ph, mips_shra_r_<DSPQ:dspfmt2>, mips_bitrev, mips_insv)
8642         (mips_repl_qb, mips_repl_ph)
8643         (mips_cmp<DSPV:dspfmt1_1>_eq_<DSPV:dspfmt2>)
8644         (mips_cmp<DSPV:dspfmt1_1>_lt_<DSPV:dspfmt2>)
8645         (mips_cmp<DSPV:dspfmt1_1>_le_<DSPV:dspfmt2>, mips_cmpgu_eq_qb)
8646         (mips_cmpgu_lt_qb, mips_cmpgu_le_qb, mips_pick_<DSPV:dspfmt2>)
8647         (mips_packrl_ph, mips_wrdsp, mips_rddsp): Change type to dspalu.
8648         (mips_dpau_h_qbl, mips_dpau_h_qbr, mips_dpsu_h_qbl, mips_dpsu_h_qbr)
8649         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph)
8650         (mips_maq_s_w_phl, mips_maq_s_w_phr, mips_maq_sa_w_phr): Set type to
8651         dspmac.
8652         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_sa_w_phl): Set type to
8653         dspmacsat.
8654         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w, mips_extp, mips_extpdp):
8655         Set type to accext.
8656         (mips_shilo, mips_mthlip): Set type to accmod.
8657         * config/mips/mips-dspr2.md (mips_absq_s_qb, mips_addu_s_ph)
8658         (mips_adduh_r_qb): Set type to dspalusat.
8659         (mips_addu_ph, mips_adduh_qb, mips_append, mips_balign)
8660         (mips_cmpgdu_eq_qb, mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb)
8661         (mips_precr_qb_ph, mips_precr_sra_ph_w, mips_precr_sra_r_ph_w)
8662         (mips_prepend, mips_shra_qb, mips_shra_r_qb, mips_shrl_ph)
8663         (mips_subu_ph, mips_subuh_qb, mips_subuh_r_qb, mips_addqh_ph)
8664         (mips_addqh_r_ph, mips_addqh_w, mips_addqh_r_w, mips_subqh_ph)
8665         (mips_subqh_r_ph, mips_subqh_w, mips_subqh_r_w): Set type to dspalu.
8666         (mips_dpa_w_ph, mips_dps_w_ph, mips_mulsa_w_ph, mips_dpax_w_ph)
8667         (mips_dpsx_w_ph, mips_dpaqx_s_w_ph, mips_dpsqx_s_w_ph): Set type to
8668         dspmac.  Set accum_in attribute.
8669         (mips_subu_s_ph): Set type to dspalusat.
8670         (mips_dpaqx_sa_w_ph, mips_dpsqx_sa_w_ph): Set type to dspmacsat.
8671         Set accum_in attribute.
8672         * config/mips/mips-protos.h (mips_dspalu_bypass_p): Add prototype.
8673         * config/mips/mips.c (dspalu_bypass_table): New.
8674         (mips_dspalu_bypass_p): New.
8675         * config/mips/24k.md (r24k_dsp_alu, r24k_dsp_mac, r24k_dsp_mac_sat)
8676         (r24k_dsp_acc_ext, r24k_dsp_acc_mod): New insn reservations.
8677         (r24k_int_mult, r24k_int_mthilo, r24k_dsp_mac, r24k_dsp_mac_sat)
8678         (r24k_dsp_acc_ext, r24k_dsp_acc_mod, r24k_dsp_alu): New bypasses.
8679         * config/mips/74k.md (r74k_dsp_alu, r74k_dsp_alu_sat, r74k_dsp_mac)
8680         (r74k_dsp_mac_sat, r74k_dsp_acc_ext, r74k_dsp_acc_mod): New insn
8681         reservations.
8682         (r74k_dsp_mac, r74k_dsp_mac_sat, r74k_int_mult, r74k_int_mul3)
8683         (r74k_dsp_mac, r74k_dsp_mac_sat): New bypasses.
8685 2012-08-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8687         * config/spu/spu.c: Include "cfgloop.h".
8688         (spu_machine_dependent_reorg): Call loop_optimizer_init and
8689         loop_optimizer_finalize.  Use bb_loop_depth instead of loop_depth.
8690         Directly compare loop_father values where appropriate.
8691         * config/spu/t-spu-elf (spu.o): Update dependencies.
8693 2012-08-15  H.J. Lu  <hongjiu.lu@intel.com>
8695         * Makefile.in (tree-cfg.o): Also depend on $(TARGET_H).
8697 2012-08-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8699         PR tree-optimization/54245
8700         * gimple-ssa-strength-reduction.c (legal_cast_p_1): New function.
8701         (legal_cast_p): Split out logic to legal_cast_p_1.
8702         (analyze_increments): Avoid introducing multiplies in smaller types.
8704 2012-08-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8706         PR tree-optimization/54240
8707         * tree-ssa-phiopt.c (hoist_adjacent_loads): Correct test for
8708         existence of conditional move with given mode.
8710 2012-08-15  Richard Guenther  <rguenther@suse.de>
8712         * double-int.h (double_int::from_unsigned): Rename to ...
8713         (double_int::from_uhwi): ... this.
8714         (double_int::from_signed): Rename to ...
8715         (double_int::from_shwi): ... this.
8716         (double_int::to_signed): Rename to ...
8717         (double_int::to_shwi): ... this.
8718         (double_int::to_unsigned): Rename to ...
8719         (double_int::to_uhwi): ... this.
8720         (double_int::fits_unsigned): Rename to ...
8721         (double_int::fits_uhwi): ... this.
8722         (double_int::fits_signed): Rename to ...
8723         (double_int::fits_shwi): ... this.
8724         (double_int::fits): Rename to ...
8725         (double_int::fits_hwi): ... this.
8726         * double-int.c: Likewise.
8728 2012-08-15  Steven Bosscher  <steven@gcc.gnu.org>
8730         * timevar.def (TV_VARPOOL, TV_WHOPR_WPA_LTRANS_EXEC, TV_LIFE,
8731         TV_LIFE_UPDATE, TV_DF_UREC, TV_INLINE_HEURISTICS,
8732         TV_TREE_LINEAR_TRANSFORM, TV_TREE_LOOP_INIT, TV_TREE_LOOP_FINI,
8733         TV_VPT, TV_LOCAL_ALLOC, TV_GLOBAL_ALLOC, TV_SEQABSTR): Remove.
8734         (TV_IPA_INLINING, TV_FLATTEN_INLINING, TV_EARLY_INLINING,
8735         TV_INLINE_PARAMETERS, TV_LOOP_INIT, TV_LOOP_FINI): New.
8736         * timevar.c (timevar_print): Make printing width of timevar names
8737         more flexible, but enforce maximum length.
8738         * ipa-inline.c (pass_early_inline): Use TV_EARLY_INLINING.
8739         (pass_ipa_inline): Use TV_IPA_INLINING.
8740         * ipa-inline-analysis.c (pass_inline_parameters): Use
8741         TV_INLINE_HEURISTICS.
8742         * tree-ssa-loop.c (pass_tree_loop_init): No timevar for wrapper pass.
8743         (pass_tree_loop_done): Likewise.
8744         * final.c (pass_shorten_branches): Use TV_SHORTEN_BRANCH.
8745         * loop-init.c (loop_optimizer_init): Push/pop TV_LOOP_INIT.
8746         (loop_optimizer_finalize): Push/pop TV_LOOP_FINI.
8748 2012-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8750         * config/arm/neon.md (neon_vaba<mode> VDQIW): Canonicalize operands.
8751         (neon_vabal<mode> VDQIW): Likewise.
8753 2012-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8755         PR target/54212
8756         * config/arm/neon.md (vec_set<mode>_internal VD,VQ): Do not
8757         mark as predicable. Adjust asm template.
8758         (vec_setv2di_internal): Likewise.
8759         (vec_extract<mode> VD, VQ): Likewise.
8760         (vec_extractv2di): Likewise.
8761         (neon_vget_lane<mode>_sext_internal VD, VQ): Likewise.
8762         (neon_vset_lane<mode>_sext_internal VD, VQ): Likewise.
8763         (neon_vdup_n<mode> VX, V32): Likewise.
8764         (neon_vdup_nv2di): Likewise.
8766 2012-08-14  Maxim Kuvyrkov  <maxim@codesourcery.com>
8768         * config/mips/mips.md (define_attr accum_in): New instruction
8769         attribute.  Set it for imadd and fmadd patterns.
8770         * config/mips/mips.c (mips_linked_madd_p): Use accum_in to extract
8771         accumulator register.
8773 2012-08-14  Diego Novillo  <dnovillo@google.com>
8775         Merge from cxx-conversion branch.  Configury.
8777         * configure.ac (CXX_FOR_BUILD): Define and substitute.
8778         (BUILD_CXXFLAGS): Define.
8779         Remove all handlers of ENABLE_BUILD_WITH_CXX.
8780         Force all build to be with C++.
8781         * Makefile.in (BUILD_CXXFLAGS): Use it.
8782         Remove all handlers of ENABLE_BUILD_WITH_CXX.
8783         * configure: Regenerate.
8784         * config.in: Regenerate.
8785         * doc/install.texi: Remove documentation for --enable-build-with-cxx
8786         and --enable-build-poststage1-with-cxx.
8788 2012-08-14  Diego Novillo  <dnovillo@google.com>
8790         Merge from cxx-conversion branch.  Re-implement VEC in C++.
8792         * vec.c (vec_heap_free): Convert into a template function.
8793         (vec_gc_o_reserve_1): Make extern.
8794         (vec_gc_p_reserve): Remove.
8795         (vec_gc_p_reserve_exact): Remove.
8796         (vec_gc_o_reserve): Remove.
8797         (vec_gc_o_reserve_exact): Remove.
8798         (vec_heap_o_reserve_1): Make extern.
8799         (vec_heap_p_reserve): Remove.
8800         (vec_heap_p_reserve_exact): Remove.
8801         (vec_heap_o_reserve): Remove.
8802         (vec_heap_o_reserve_exact): Remove.
8803         (vec_stack_p_reserve): Remove.
8804         (vec_stack_p_reserve_exact): Remove.
8805         * vec.h (VEC_CHECK_INFO, VEC_CHECK_DECL, VEC_CHECK_PASS, VEC_ASSERT,
8806         VEC_ASSERT_FAIL, vec_assert_fail): Move earlier in the file.
8807         (VEC): Define to vec_t<T>.
8808         (vec_allocation_t): Define.
8809         (struct vec_prefix): Move earlier in the file.
8810         (vec_t<T>): New template.
8811         (DEF_VEC_I, DEF_VECL_ALLOC_I, DEF_VEC_P, DEF_VEC_ALLOC_P,
8812         DEF_VEC_O, DEF_VEC_ALLOC_P, DEF_VEC_O, DEF_VEC_ALLOC_O,
8813         DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_O_STACK,
8814         DEF_VEC_ALLOC_I_STACK): Expand to 'struct vec_swallow_trailing_semi'.
8815         (DEF_VEC_A): Provide template instantiations for
8816         GC/PCH markers that do not traverse the vector.
8817         (vec_stack_p_reserve): Remove.
8818         (vec_stack_p_reserve_exact): Remove.
8819         (vec_stack_p_reserve_exact_1): Remove.
8820         (vec_stack_o_reserve): Remove.
8821         (vec_stack_o_reserve_exact): Remove.
8822         (vec_stack_free): Re-write as a template function.
8823         (vec_reserve): New template function.
8824         (vec_reserve_exact): New template function.
8825         (vec_heap_free): New template function if GATHER_STATISTICS is
8826         defined.  Otherwise, macro that expands to free().
8827         (VEC_length_1): New template function.
8828         (VEC_length): Call it.
8829         (VEC_empty_1): New template function.
8830         (VEC_empty): Call it.
8831         (VEC_address_1): New template function.
8832         (VEC_address): Call it.
8833         (VEC_last_1): New template function.
8834         (VEC_last): Call it.  Change return type to T&.
8835         Change all users that used VEC_Os.
8836         (VEC_index_1): New template function.
8837         (VEC_index): Call it.  Return a T& instead of a T*.
8838         Update all callers that were using VEC_O before.
8839         (VEC_iterate_1): New template function.
8840         (VEC_iterate): Call it.
8841         (VEC_embedded_size_1): New template function.
8842         (VEC_embedded_size): Call it.
8843         (VEC_embedded_init_1): New template function.
8844         (VEC_embedded_init): Call it.
8845         (VEC_alloc_1): New template function.
8846         (VEC_alloc): Call it.  If A is 'stack', call XALLOCAVAR to
8847         do the allocation.
8848         (VEC_free_1): New template function.
8849         (VEC_free): Call it.
8850         (VEC_copy_1): New template function.
8851         (VEC_copy): Call it.
8852         (VEC_space_1): New template function
8853         (VEC_space): Call it.
8854         (VEC_reserve_1): New template function.
8855         (VEC_reserve): Call it.
8856         (VEC_reserve_exact_1): New template function.
8857         (VEC_reserve_exact): Call it.
8858         (VEC_splice_1): New template function.
8859         (VEC_splice): Call it.
8860         (VEC_safe_splice_1): New template function.
8861         (VEC_safe_splice): Call it.
8862         (VEC_quick_push_1): New template function.  Create two overloads, one
8863         accepting T, the other accepting T *.  Update all callers
8864         where T and T * are ambiguous.
8865         (VEC_quick_push): Call it.
8866         (VEC_safe_push_1): New template function. Create two overloads, one
8867         accepting T, the other accepting T *.  Update all callers
8868         where T and T * are ambiguous.
8869         (VEC_safe_push): Call it.
8870         (VEC_pop_1): New template function.
8871         (VEC_pop): Call it.
8872         (VEC_truncate_1): New template function.
8873         (VEC_truncate): Call it.
8874         (VEC_safe_grow_1): New template function.
8875         (VEC_safe_grow): Call it.
8876         (VEC_safe_grow_cleared_1): New template function.
8877         (VEC_safe_grow_cleared): Call it.
8878         (VEC_replace_1): New template function.
8879         (VEC_replace): Call it.  Always accept T instead of T*.
8880         Update all callers that used VEC_Os.
8881         (VEC_quick_insert_1): New template function.
8882         (VEC_quick_insert): Call it.
8883         (VEC_safe_insert_1): New template function.
8884         (VEC_safe_insert): Call it.
8885         (VEC_ordered_remove_1): New template function.
8886         (VEC_ordered_remove): Call it.
8887         (VEC_unordered_remove_1): New template function.
8888         (VEC_unordered_remove): Call it.
8889         (VEC_block_remove_1): New template function.
8890         (VEC_block_remove): Call it.
8891         (VEC_lower_bound_1): New template function.
8892         (VEC_lower_bound): Call it.
8893         (VEC_OP): Remove.
8894         (DEF_VEC_FUNC_P): Remove.
8895         (DEF_VEC_ALLOC_FUNC_P): Remove.
8896         (DEF_VEC_NONALLOC_FUNCS_P): Remove.
8897         (DEF_VEC_FUNC_O): Remove.
8898         (DEF_VEC_ALLOC_FUNC_O): Remove.
8899         (DEF_VEC_NONALLOC_FUNCS_O): Remove.
8900         (DEF_VEC_ALLOC_FUNC_I): Remove.
8901         (DEF_VEC_NONALLOC_FUNCS_I): Remove.
8902         (DEF_VEC_ALLOC_FUNC_P_STACK): Remove.
8903         (DEF_VEC_ALLOC_FUNC_O_STACK): Remove.
8904         (DEF_VEC_ALLOC_FUNC_I_STACK): Remove.
8905         (vec_reserve_exact): New template function.
8907         * gengtype-lex.l (DEF_VEC_ALLOC_[IOP]/{EOID}): Remove.
8908         * gengtype-parse.c (token_names): Remove DEF_VEC_ALLOC_[IOP].
8909         (typedef_name): Emit vec_t<C1> instead of VEC_C1_C2.
8910         (def_vec_alloc): Remove.  Update all callers.
8911         * gengtype.c (filter_type_name): New.
8912         (output_mangled_typename): Call it.
8913         (write_func_for_structure): Likewise.
8914         (write_types): Likewise.
8915         (write_root): Likewise.
8916         (write_typed_alloc_def): Likewise.
8917         (note_def_vec): Emit vec_t<TYPE_NAME> instead of VEC_TYPE_NAME_base.
8918         (note_def_vec_alloc): Remove.
8919         * gengtype.h (note_def_vec_alloc): Remove.
8920         (DEFVEC_ALLOC): Remove token code.
8922         * df-scan.c (df_bb_verify): Remove call to df_free_collection_rec
8923         inside the insn traversal loop.
8924         * gimplify.c (gimplify_compound_lval): Rename STACK to EXPR_STACK.
8925         * ipa-inline.c (inline_small_functions): Rename HEAP to EDGE_HEAP.
8926         * reg-stack.c (stack): Rename to STACK_PTR.  Update all users.
8927         * tree-vrp.c (stack): Rename to EQUIV_STACK.  Update all users.
8929         * config/bfin/bfin.c (hwloop_optimize): Update some calls to
8930         VEC_* for vectors of non-pointers.
8931         * config/c6x/c6x.c (try_rename_operands): Likewise.
8932         (reshuffle_units): Likewise.
8933         * config/mips/mips.c (mips_multi_start): Likewise.
8934         (mips_multi_add): Likewise.
8935         (mips_multi_copy_insn): Likewise.
8936         (mips_multi_set_operand): Likewise.
8937         * hw-doloop.c (discover_loop): Likewise.
8938         (discover_loops): Likewise.
8939         (reorg_loops): Likewise.
8941 2012-08-14  Diego Novillo  <dnovillo@google.com>
8943         Merge from cxx-conversion branch.  C++ support in gengtype.
8945         * coretypes.h (gt_pointer_operator): Move from ...
8946         * ggc.h: ... here.
8947         * doc/gty.texi: Document support for C++ templates and
8948         user-provided markers.
8949         * gengtype-lex.l: Update copyright year.
8950         Remove support for recognizing DEF_VEC_O, DEF_VEC_P and DEFVEC_I.
8951         * gengtype-parse.c: Update copyright year.
8952         (token_names): Remove DEF_VEC_O, DEF_VEC_P and DEF_VEC_I.
8953         (require_template_declaration): New.
8954         (typedef_name): Call it.
8955         (type): Replace IS_UNION with KIND. Replace all users.
8956         (def_vec): Remove.  Update all users.
8957         * gengtype-state.c (type_lineloc): Handle TYPE_USER_STRUCT.
8958         (write_state_user_struct_type): New.
8959         (write_state_type): Call it.
8960         (read_state_user_struct_type): New.
8961         (read_state_type): Call it.
8962         * gengtype.c: Update copyright year.
8963         (dump_pair): Move declaration to the top.
8964         (dump_type): Likewise.
8965         (dump_type_list): Likewise.
8966         (dbgprint_count_type_at): Handle TYPE_USER_STRUCT.
8967         (create_user_defined_type): New.
8968         (resolve_typedef): Call it.
8969         (new_structure): Replace argument ISUNION with KIND.
8970         Change users to refer to KIND directly.
8971         Update all callers.
8972         (find_structure): Likewise.
8973         (set_gc_used_type): Handle TYPE_USER_STRUCT.
8974         (create_file): Update HDR to include new copyright year.
8975         (struct walk_type_data): Add field IN_PTR_FIELD.
8976         (output_mangled_typename): Handle TYPE_USER_STRUCT.
8977         (walk_type): Set D->IN_PTR_FIELD when walking a TYPE_POINTER.
8978         Clear it afterwards.
8979         Handle TYPE_USER_STRUCT.
8980         (write_types_process_field): Handle TYPE_USER_STRUCT.
8981         (get_type_specifier): Move earlier in the file.
8982         (write_type_decl): New.
8983         (write_marker_function_name): New.
8984         (write_user_func_for_structure_ptr): New.
8985         (write_user_func_for_structure_body): New.
8986         (write_user_marking_functions): New.
8987         (write_func_for_structure): Call write_marker_function_name
8988         and write_type_decl.
8989         Do not call walk_type for TYPE_USER_STRUCT. Emit a call to the user
8990         function directly.
8991         Call write_user_marking_functions on TYPE_USER_STRUCTs.
8992         (write_types_local_user_process_field): New.
8993         (write_pch_user_walking_for_structure_body): New.
8994         (write_pch_user_walking_functions): New.
8995         (write_types_local_process_field): Handle TYPE_USER_STRUCT.
8996         (write_local_func_for_structure): Do not call walk_type for
8997         TYPE_USER_STRUCT. Instead, emit the call to gt_pch_nx directly.
8998         Call write_pch_user_walking_functions for TYPE_USER_STRUCTs.
8999         (write_root): Handle TYPE_USER_STRUCT.
9000         (vec_prefix_type): Remove.  Update all users.
9001         (note_def_vec): Remove.  Update all users.
9002         (dump_typekind): Handle TYPE_USER_STRUCT.
9003         (dump_type): Initialize SEEN_TYPES, if needed.
9004         Handle TYPE_USER_STRUCT.
9005         (dump_everything): Do not initialize SEEN_TYPES.
9006         * gengtype.h: Update copyright year.
9007         (enum typekind): Add TYPE_USER_STRUCT.
9008         (union_or_struct_p): Rename from UNION_OR_STRUCT_P.
9009         Convert into function.
9010         Add an overload taking const_type_p.
9011         Update all callers.
9012         (new_structure): Change second field to type enum typekind.
9013         Update all users.
9014         (find_structure): Likewise.
9015         (note_def_vec): Remove.
9016         (DEFVEC_OP): Remove.
9017         (DEFVEC_I): Remove.
9018         * ggc-page.c (gt_ggc_mx): Add entry points for marking
9019         'const char *&', 'unsigned char *&' and 'unsigned char&'.
9020         * ggc-zone.c (gt_ggc_mx): Add entry points for marking
9021         'const char *&' and 'unsigned char *&'.
9022         * stringpool.c (gt_pch_nx): Add entry points for marking
9023         'const char *&', 'unsigned char *&' and 'unsigned char&'.
9024         Add an entry point for the overload taking arguments 'unsigned char
9025         *', 'gt_pointer_operator' and 'void *'.
9026         * vec.h (struct vec_prefix): Remove GTY marker.
9027         (struct vec_t): Remove GTY((length)) attribute from field 'vec'.
9028         (gt_ggc_mx (vec_t<T> *)): New template function.
9029         (gt_pch_nx (vec_t<T> *)): New template function.
9030         (gt_pch_nx (vec_t<T *> *, gt_pointer_operator, void *)): New template
9031         function.
9032         (gt_pch_nx (vec_t<T> *, gt_pointer_operator, void *)): New template
9033         function.
9035         * basic-block.h (struct edge_def): Mark GTY((user)).
9036         Remove all GTY markers from fields.
9037         (gt_ggc_mx): Declare.
9038         (gt_pch_nx): Declare.
9039         * tree-cfg.c (gt_ggc_mx): New.
9040         (gt_pch_nx): New.
9042         * gengtype-lex.l (USER_GTY): Add pattern for "user".
9043         * gengtype-parse.c (option): Handle USER_GTY.
9044         (opts_have): New.
9045         (type): Call it.
9046         If the keyword 'user' is used, do not walk the fields
9047         of the structure.
9048         * gengtype.h (USER_GTY): Add.
9049         * doc/gty.texi: Update.
9051 2012-08-14  Lawrence Crowl  <crowl@google.com>
9053         Merge cxx-conversion branch.  Implement C++ hash table.
9055         * hash-table.h: New. Implementation borrowed from libiberty/hashtab.c.
9056         * hash-table.c: Likewise.
9057         * tree-ssa-tail-merge.c: Include hash-table.h instead of hashtab.h.
9058         (static htab_t same_succ_htab): Change type to hash_table;
9059         move specification of helper functions from create call to declaration.
9060         Change users to invoke member functions.
9061         (same_succ_print_traverse): Make extern ssa_.... Change callers.
9062         Remove void* casting.
9063         (same_succ_hash): Likewise.
9064         (same_succ_equal): Likewise.
9065         (same_succ_delete): Likewise.
9066         * tree-ssa-threadupdate.c: Include hash-table.h.
9067         (struct local_info): Rename to ssa_local_info_t to avoid overloading
9068         the type name local_info with the variable name local_info.
9069         (static htab_t redirection_data): Change type to hash_table.
9070         Move specification of helper functions from create call to declaration.
9071         Change users to invoke member functions.
9072         (redirection_data_hash): Make extern ssa_.... Change callers.
9073         Remove void* casting.
9074         (redirection_data_eq): Likewise.
9075         (fix_duplicate_block_edges): Likewise.
9076         (create_duplicates): Likewise.
9077         (fixup_template_block): Likewise.
9078         (redirect_edges): Likewise.
9079         (lookup_redirection_data): Change types associated with the hash table
9080         from void* to their actual type. Remove unnecessary casts.
9081         * tree-ssa-ccp.c: Include hash-table.h.
9082         (typedef gimple_htab): New.  Uses hash_table.  Replace specific uses
9083         of htab_t with gimple_htab.  Change users to invoke member functions.
9084         Move specification of helper functions from create call to declaration.
9085         * tree-ssa-coalesce.c: Include hash-table.h instead of hashtab.h.
9086         (hash_ssa_name_by_var): Make extern. Remove void* casting.
9087         (eq_ssa_name_by_var): Likewise.
9088         (coalesce_ssa_name): Change type of local static htab_t ssa_name_hash
9089         to hash_table. Change users to invoke member functions.
9090         Move specification of helper functions from create call to declaration.
9091         * coverage.c: Include hash-table.h instead of hashtab.h.
9092         (static htab_t counts_hash): Change type to hash_table;
9093         move specification of helper functions from create call to declaration.
9094         Change users to invoke member functions.
9095         (htab_counts_entry_hash): Make extern. Rename with coverage_... instead
9096         of htab_... Remove void* casting.
9097         (htab_counts_entry_eq): Likewise.
9098         (htab_counts_entry_del): Likewise.
9099         * tree-ssa-pre.c: Include hash-table.h instead of hashtab.h.
9100         (static htab_t expression_to_id): Change type to hash_table.
9101         Move specification of helper functions from create call to declaration.
9102         Change users to invoke member functions.
9103         (static htab_t phi_translate_table): Likewise.
9104         (pre_expr_eq): Make extern ssa_.... Change callers.
9105         Remove void* casting.
9106         (pre_expr_hash): Likewise.
9107         (expr_pred_trans_hash): Likewise.
9108         (expr_pred_trans_eq): Likewise.
9109         (alloc_expression_id): Change types associated with the hash table
9110         from void* to their actual type. Remove unnecessary casts.
9111         (lookup_expression_id): Likewise.
9112         (phi_trans_lookup): Likewise.
9113         (phi_trans_add): Likewise.
9114         * stringpool.c: Rename uses of libcpp typedef hash_table to
9115         cpp_hash_table.
9116         * Makefile.in: Add hash-table.o to OBJS-libcommon-target.
9117         Add $(HASH_TABLE_H). Add new dependences on $(HASH_TABLE_H).
9119 2012-08-14  Lawrence Crowl  <crowl@google.com>
9121         Merge from cxx-conversion branch.  Re-write double_int in C++.
9123         * hash-table.h
9124         (typedef double_int): Change to struct (POD).
9125         (double_int::make): New overloads for int to double-int conversion.
9126         (double_int::mask): New.
9127         (double_int::max_value): New.
9128         (double_int::min_value): New.
9129         (double_int::operator ++): New.
9130         (double_int::operator --): New.
9131         (double_int::operator *=): New.
9132         (double_int::operator +=): New.
9133         (double_int::operator -=): New.
9134         (double_int::to_signed): New.
9135         (double_int::to_unsigned): New.
9136         (double_int::fits_unsigned): New.
9137         (double_int::fits_signed): New.
9138         (double_int::fits): New.
9139         (double_int::trailing_zeros): New.
9140         (double_int::popcount): New.
9141         (double_int::multiple_of): New.
9142         (double_int::set_bit): New.
9143         (double_int::mul_with_sign): New.
9144         (double_int::operator * (binary)): New.
9145         (double_int::operator + (binary)): New.
9146         (double_int::operator - (binary)): New.
9147         (double_int::operator - (unary)): New.
9148         (double_int::operator ~ (unary)): New.
9149         (double_int::operator & (binary)): New.
9150         (double_int::operator | (binary)): New.
9151         (double_int::operator ^ (binary)): New.
9152         (double_int::and_not): New.
9153         (double_int::lshift): New.
9154         (double_int::rshift): New.
9155         (double_int::alshift): New.
9156         (double_int::arshift): New.
9157         (double_int::llshift): New.
9158         (double_int::lrshift): New.
9159         (double_int::lrotate): New.
9160         (double_int::rrotate): New.
9161         (double_int::div): New.
9162         (double_int::sdiv): New.
9163         (double_int::udiv): New.
9164         (double_int::mod): New.
9165         (double_int::smod): New.
9166         (double_int::umod): New.
9167         (double_int::divmod): New.
9168         (double_int::sdivmod): New.
9169         (double_int::udivmod): New.
9170         (double_int::ext): New.
9171         (double_int::zext): New.
9172         (double_int::sext): New.
9173         (double_int::is_zero): New.
9174         (double_int::is_one): New.
9175         (double_int::is_minus_one): New.
9176         (double_int::is_negative): New.
9177         (double_int::cmp): New.
9178         (double_int::ucmp): New.
9179         (double_int::scmp): New.
9180         (double_int::ult): New.
9181         (double_int::ugt): New.
9182         (double_int::slt): New.
9183         (double_int::sgt): New.
9184         (double_int::max): New.
9185         (double_int::smax): New.
9186         (double_int::umax): New.
9187         (double_int::min): New.
9188         (double_int::smin): New.
9189         (double_int::umin): New.
9190         (double_int::operator ==): New.
9191         (double_int::operator !=): New.
9192         (shwi_to_double_int): Change implementation to use member function.
9193         (double_int_minus_one): Likewise.
9194         (double_int_zero): Likewise.
9195         (double_int_one): Likewise.
9196         (double_int_two): Likewise.
9197         (double_int_ten): Likewise.
9198         (uhwi_to_double_int): Likewise.
9199         (double_int_to_shwi): Likewise.
9200         (double_int_to_uhwi): Likewise.
9201         (double_int_fits_in_uhwi_p): Likewise.
9202         (double_int_fits_in_shwi_p): Likewise.
9203         (double_int_fits_in_hwi_p): Likewise.
9204         (double_int_mul): Likewise.
9205         (double_int_mul_with_sign): Likewise.
9206         (double_int_add): Likewise.
9207         (double_int_sub): Likewise.
9208         (double_int_neg): Likewise.
9209         (double_int_div): Likewise.
9210         (double_int_sdiv): Likewise.
9211         (double_int_udiv): Likewise.
9212         (double_int_mod): Likewise.
9213         (double_int_smod): Likewise.
9214         (double_int_umod): Likewise.
9215         (double_int_divmod): Likewise.
9216         (double_int_sdivmod): Likewise.
9217         (double_int_udivmod): Likewise.
9218         (double_int_multiple_of): Likewise.
9219         (double_int_setbit): Likewise.
9220         (double_int_ctz): Likewise.
9221         (double_int_not): Likewise.
9222         (double_int_ior): Likewise.
9223         (double_int_and): Likewise.
9224         (double_int_and_not): Likewise.
9225         (double_int_xor): Likewise.
9226         (double_int_lshift): Likewise.
9227         (double_int_rshift): Likewise.
9228         (double_int_lrotate): Likewise.
9229         (double_int_rrotate): Likewise.
9230         (double_int_cmp): Likewise.
9231         (double_int_scmp): Likewise.
9232         (double_int_ucmp): Likewise.
9233         (double_int_max): Likewise.
9234         (double_int_smax): Likewise.
9235         (double_int_umax): Likewise.
9236         (double_int_min): Likewise.
9237         (double_int_smin): Likewise.
9238         (double_int_umin): Likewise.
9239         (double_int_ext): Likewise.
9240         (double_int_sext): Likewise.
9241         (double_int_zext): Likewise.
9242         (double_int_mask): Likewise.
9243         (double_int_max_value): Likewise.
9244         (double_int_min_value): Likewise.
9245         (double_int_zero_p): Likewise.
9246         (double_int_one_p): Likewise.
9247         (double_int_minus_one_p): Likewise.
9248         (double_int_equal_p): Likewise.
9249         (double_int_popcount): Likewise.
9250         * hash-table.c
9251         (double_int_mask): Reuse implementation for double_int::mask.
9252         (double_int_max_value): Likewise.
9253         (double_int_min_value): Likewise.
9254         (double_int_ext): Likewise.
9255         (double_int_zext): Likewise.
9256         (double_int_sext): Likewise.
9257         (double_int_mul_with_sign): Likewise.
9258         (double_int_divmod): Likewise.
9259         (double_int_sdivmod): Likewise.
9260         (double_int_udivmod): Likewise.
9261         (double_int_div): Likewise.
9262         (double_int_sdiv): Likewise.
9263         (double_int_udiv): Likewise.
9264         (double_int_mod): Likewise.
9265         (double_int_smod): Likewise.
9266         (double_int_umod): Likewise.
9267         (double_int_multiple_of): Likewise.
9268         (double_int_lshift): Likewise.
9269         (double_int_rshift): Likewise.
9270         (double_int_lrotate): Likewise.
9271         (double_int_rrotate): Likewise.
9272         (double_int_cmp): Likewise.
9273         (double_int_ucmp): Likewise.
9274         (double_int_scmp): Likewise.
9275         (double_int_max): Likewise.
9276         (double_int_smax): Likewise.
9277         (double_int_umax): Likewise.
9278         (double_int_min): Likewise.
9279         (double_int_smin): Likewise.
9280         (double_int_umin): Likewise.
9281         (double_int_min): Likewise.
9282         (double_int_min): Likewise.
9283         (double_int_min): Likewise.
9284         (double_int_min): Likewise.
9285         (double_int_min): Likewise.
9286         (double_int_min): Likewise.
9287         (double_int::alshift): New.
9288         (double_int::arshift): New.
9289         (double_int::llshift): New.
9290         (double_int::lrshift): New.
9291         (double_int::ult): New.
9292         (double_int::ugt): New.
9293         (double_int::slt): New.
9294         (double_int::sgt): New.
9295         (double_int_setbit): Reuse implementation for double_int::set_bit,
9296         which avoids a name conflict with a macro.
9297         (double_int_double_int_ctz): Reuse implementation for
9298         double_int::trailing_zeros.
9299         (double_int_fits_in_shwi_p): Reuse implementation for
9300         double_int::fits_signed.
9301         (double_int_fits_in_hwi_p): Reuse implementation for double_int::fits.
9302         (double_int_mul): Reuse implementation for binary
9303         double_int::operator *.
9304         (double_int_add): Likewise.
9305         (double_int_sub): Likewise.
9306         (double_int_neg): Reuse implementation for unary
9307         double_int::operator -.
9308         (double_int_max_value): Likewise.
9309         * fixed-value.c: Change to use member functions introduced above.
9311 2012-08-14  Lawrence Crowl  <crowl@google.com>
9313         Merge cxx-conversion branch.  Support tree macro calling from gdb.
9315         * tree.h (tree_check): New.
9316         (TREE_CHECK): Use inline function above instead of __extension__.
9317         (tree_not_check): New.
9318         (TREE_NOT_CHECK): Use inline function above instead of __extension__.
9319         (tree_check2): New.
9320         (TREE_CHECK2): Use inline function above instead of __extension__.
9321         (tree_not_check2): New.
9322         (TREE_NOT_CHECK2): Use inline function above instead of __extension__.
9323         (tree_check3): New.
9324         (TREE_CHECK3): Use inline function above instead of __extension__.
9325         (tree_not_check3): New.
9326         (TREE_NOT_CHECK3): Use inline function above instead of __extension__.
9327         (tree_check4): New.
9328         (TREE_CHECK4): Use inline function above instead of __extension__.
9329         (tree_not_check4): New.
9330         (TREE_NOT_CHECK4): Use inline function above instead of __extension__.
9331         (tree_check5): New.
9332         (TREE_CHECK5): Use inline function above instead of __extension__.
9333         (tree_not_check5): New.
9334         (TREE_NOT_CHECK5): Use inline function above instead of __extension__.
9335         (contains_struct_check): New.
9336         (CONTAINS_STRUCT_CHECK): Use inline function above instead of
9337         __extension__.
9338         (tree_class_check): New.
9339         (TREE_CLASS_CHECK): Use inline function above instead of __extension__.
9340         (tree_range_check): New.
9341         (TREE_RANGE_CHECK): Use inline function above instead of __extension__.
9342         (omp_clause_subcode_check): New.
9343         (OMP_CLAUSE_SUBCODE_CHECK): Use inline function above instead of
9344         __extension__.
9345         (omp_clause_range_check): New.
9346         (OMP_CLAUSE_RANGE_CHECK): Use inline function above instead of
9347         __extension__.
9348         (expr_check): New.
9349         (EXPR_CHECK): Use inline function above instead of __extension__.
9350         (non_type_check): New.
9351         (NON_TYPE_CHECK): Use inline function above instead of __extension__.
9352         (tree_vec_elt_check): New.
9353         (TREE_VEC_ELT_CHECK): Use inline function above instead of
9354         __extension__.
9355         (omp_clause_elt_check): New.
9356         (OMP_CLAUSE_ELT_CHECK): Use inline function above instead of
9357         __extension__.
9358         (tree_operand_check): New.
9359         (TREE_OPERAND_CHECK): Use inline function above instead of
9360         __extension__.
9361         (tree_operand_check_code): New.
9362         (TREE_OPERAND_CHECK_CODE): Use inline function above instead of
9363         __extension__.
9364         (TREE_CHAIN): Simplify implementation.
9365         (TREE_TYPE): Simplify implementation.
9366         (tree_operand_length): Move for compilation dependences.
9367         * gdbinit.in: (macro define __FILE__): New.
9368         (macro define __LINE__): New.
9369         (skip "tree.h"): New.
9371 2012-08-14  Oleg Endo  <olegendo@gcc.gnu.org>
9373         PR target/52933
9374         * config/sh/sh.md (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0,
9375         *cmp_div0s_1, *cbranch_div0s, *movsicc_div0s): New insns.
9376         * config/sh/sh.c (sh_rtx_costs): Handle div0s patterns.
9378 2012-08-14  Oleg Endo  <olegendo@gcc.gnu.org>
9380         PR target/50751
9381         * config/sh/constraints.md (Sra): New constraint.
9382         * config/sh/predicates.md (simple_mem_operand,
9383         displacement_mem_operand, zero_extend_movu_operand): New predicates.
9384         (zero_extend_operand): Check zero_extend_movu_operand for SH2A.
9385         * config/sh/sh.md (*zero_extendqisi2_disp_mem,
9386         *zero_extendhisi2_disp_mem): Add new insns and two new related
9387         peephole2 patterns.
9389 2012-08-14  Steven Bosscher  <steven@gcc.gnu.org>
9391         * graphite-scop-detection.c (create_sese_edges): Compute dominance
9392         info before trying to fix loop structure.
9393         * cfgloopmanip.c (fix_loop_structure): Require fast DOM queries.
9394         * tree-cfgcleanup.c (repair_loop_structures): Likewise.
9395         * cfgloop.c (verify_loop_structure): Verify loop fathers.
9397         * dominance.c (init_dom_info): Use gcc_checking_assert, not gcc_assert.
9398         (dom_convert_dir_to_idx, compute_dom_fast_query,
9399         get_immediate_dominator, set_immediate_dominator, get_dominated_by,
9400         redirect_immediate_dominators, nearest_common_dominator,
9401         (dominated_by_p, bb_dom_dfs_in, bb_dom_dfs_out, recompute_dominator,
9402         iterate_fix_dominators, add_to_dominance_info,
9403         delete_from_dominance_info): Likewise.
9405 2012-08-14  Richard Guenther  <rguenther@suse.de>
9407         * cfgexpand.c (expand_used_vars): Use virtual_operand_p.
9408         * gimple-pretty-print.c (dump_phi_nodes): Likewise.
9409         * gimple-streamer-out.c (output_bb): Likewise.
9410         * graphite-sese-to-poly.c (scalar_close_phi_node_p): Likewise.
9411         (rewrite_reductions_out_of_ssa): Likewise.
9412         (rewrite_commutative_reductions_out_of_ss): Likewise.
9413         * ipa-split.c (verify_non_ssa_vars): Likewise.
9414         (consider_split): Likewise.
9415         (visit_bb): Likewise.
9416         (split_function): Likewise.
9417         * lto-streamer-out.c (output_ssa_names): Likewise.
9418         * sese.c (rename_uses): Likewise.
9419         * tree-cfg.c (replace_uses_by): Likewise.
9420         (gimple_merge_blocks): Likewise.
9421         (gimple_cfg2dot): Likewise.
9422         (verify_gimple_phi): Likewise.
9423         (replace_ssa_name): Likewise.
9424         (move_block_to_fn): Likewise.
9425         * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
9426         * tree-if-conv.c (if_convertible_phi_p): Likewise.
9427         (predicate_scalar_phi): Likewise.
9428         * tree-inline.c (update_ssa_across_abnormal_edges): Likewise.
9429         (copy_phis_for_bb): Likewise.
9430         * tree-loop-distribution.c (generate_loops_for_partition): Likewise.
9431         (destroy_loop): Likewise.
9432         * tree-outof-ssa.c (eliminate_useless_phis): Likewise.
9433         (insert_backedge_copies): Likewise.
9434         * tree-parloops.c (transform_to_exit_first_loop): Likewise.
9435         (gather_scalar_reductions): Likewise.
9436         (try_create_reduction_list): Likewise.
9437         * tree-scalar-evolution.c (analyze_scalar_evolution_for_all_loop_ph):
9438         Likewise.
9439         (scev_const_prop): Likewise.
9440         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
9441         (get_default_value): Likewise.
9442         (ccp_initialize): Likewise.
9443         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
9444         * tree-ssa-copy.c (may_propagate_copy): Likewise.
9445         (init_copy_prop): Likewise.
9446         * tree-ssa-dce.c (propagate_necessity): Likewise.
9447         (remove_dead_phis): Likewise.
9448         (forward_edge_to_pdom): Likewise.
9449         (eliminate_unnecessary_stmts): Likewise.
9450         * tree-ssa-live.c (partition_view_init): Likewise.
9451         (remove_unused_locals): Likewise.
9452         (register_ssa_partition_check): Likewise.
9453         * tree-ssa-loop-im.c (movement_possibility): Likewise.
9454         (move_computations_stmt): Likewise.
9455         * tree-ssa-loop-ivopts.c (determine_biv_step): Likewise.
9456         (record_invariant): Likewise.
9457         (find_interesting_uses_outside): Likewise.
9458         (determine_set_costs): Likewise.
9459         * tree-ssa-loop-manip.c (add_exit_phis_var): Likewise.
9460         (find_uses_to_rename_use): Likewise.
9461         (check_loop_closed_ssa_use): Likewise.
9462         (rewrite_phi_with_iv): Likewise.
9463         (canonicalize_loop_ivs): Likewise.
9464         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
9465         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
9466         * tree-ssa-pre.c (make_values_for_phi): Likewise.
9467         (compute_avail): Likewise.
9468         (eliminate): Likewise.
9469         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
9470         * tree-ssa-reassoc.c (phi_rank): Likewise.
9471         * tree-ssa-strlen.c (strlen_enter_block): Likewise.
9472         * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
9473         (ipa_pta_execute): Likewise.
9474         * tree-ssa-tail-merge.c (same_succ_hash): Likewise.
9475         (release_last_vdef): Likewise.
9476         (same_phi_alternatives_1): Likewise.
9477         (bb_has_non_vop_phi): Likewise.
9478         (vop_phi): Likewise.
9479         * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
9480         Likewise.
9481         * tree-ssa-uninit.c (warn_uninitialized_phi): Likewise.
9482         (execute_late_warn_uninitialized): Likewise.
9483         * tree-ssa.c (verify_ssa_name): Likewise.
9484         (verify_phi_args): Likewise.
9485         (verify_ssa): Likewise.
9486         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
9487         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
9488         Likewise.
9489         (slpeel_tree_peel_loop_to_edge): Likewise.
9490         (vect_can_advance_ivs_p): Likewise.
9491         (vect_update_ivs_after_vectorizer): Likewise.
9492         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Likewise.
9493         * tree-vrp.c (remove_range_assertions): Likewise.
9494         * value-prof.c (gimple_divmod_values_to_profile): Likewise.
9496 2012-08-14  Richard Guenther  <rguenther@suse.de>
9498         PR tree-optimization/54146
9499         * tree-ssa-pre.c (do_regular_insertion): Use a VEC
9500         indexed by pred edge index for avail.
9501         (do_partial_partial_insertion): Likewise.
9502         (insert_into_preds_of_block): Adjust.
9504 2012-08-14  Richard Guenther  <rguenther@suse.de>
9506         * gimplify.c (create_tmp_from_val): Mark temporary with
9507         DECL_GIMPLE_REG_P here ...
9508         (internal_get_tmp_var): ... instead of here.  If we go into
9509         SSA create an SSA name instead of a VAR_DECL.
9510         (gimplify_modify_expr): Do not create SSA names here, assert
9511         we already got them.
9512         (force_gimple_operand_1): Create an SSA name if we go into SSA.
9513         * sese.c (rename_uses): Simplify.
9515 2012-08-14  Richard Guenther  <rguenther@suse.de>
9517         * tree-into-ssa.c: Include diagnostic-core.h.
9518         * Makefile.in (tree-into-ssa.o): Adjust.
9520 2012-08-14  Richard Guenther  <rguenther@suse.de>
9522         * tree-into-ssa.c (update_ssa): Verify we do not rename
9523         symbols that are already partly in SSA form.
9525 2012-08-14  Jakub Jelinek  <jakub@redhat.com>
9527         PR middle-end/53411
9528         PR rtl-optimization/53495
9529         * ira.c (ira): Move delete_trivially_dead_insns call before
9530         find_moveable_pseudos call.
9532 2012-08-13  Steven Bosscher  <steven@gcc.gnu.org>
9534         * tree-ssa-pre.c (do_regular_insertion): Add FIXME markers at points
9535         of potentially huge memset overhead.
9536         (do_partial_partial_insertion): Likewise.
9537         * cfgexpand.c (gimple_expand_cfg): Use XCNEWVEC instead of xcalloc.
9538         * tree-vrp.c (find_assert_locations): Use XNEWVEC instead of XCNEWVEC
9539         for arrays to be filled by pre_and_rev_post_order_compute.  Allocate
9540         the right number of slots, not that number plus NUM_FIXED_BLOCKS.
9541         * tree-ssa-reassoc.c (init_reassoc): Likewise.
9542         * cfganal.c (dfs_enumerate_from): Use XNEWVEC instead of XCNEWVEC for
9543         array used as stack.
9544         * tree-ssa-sccvn.c (init_scc_vn): Use XNEWVEC instead of XCNEWVEC for
9545         arrays to be filled by pre_and_rev_post_order_compute.
9546         * cfgloopmanip.c (find_path): Use XNEWVEC instead of XCNEWVEC for
9547         array to be filled by dfs_enumerate_from.
9548         (remove_path): Likewise.
9549         (duplicate_loop_to_header_edge): Use XNEWVEC instead of XCNEWVEC for
9550         array of loops that is filled on the next lines.
9551         * cfgloop.c (get_loop_body): Use XNEWVEC instead of XCNEWVEC for
9552         array of basic blocks to be returned.
9553         (get_loop_body_in_dom_order): Likewise.
9554         (get_loop_body_in_bfs_order): Likewise.
9555         * tree-ssa-loop-manip.c (loop_renamer_obstack): New static obstack
9556         for all bitmaps used for rewriting into loop-closed SSA form.
9557         (add_exit_phis_var): Allocate the def bitmap on it.  Clear the livein
9558         bitmap at the end to release a lot of memory.
9559         (add_exit_phis): Allocate the exits bitmap on the new obstack.
9560         (get_loops_exits): Allocate the exits bitmap on the new obstack.
9561         (find_uses_to_rename_use): Allocate a use_blocks bitmap if ver is
9562         seen for the first time.
9563         (find_uses_to_rename): Add "???" for why the whole function must
9564         be re-scanned if changed_bbs is empty.
9565         (rewrite_into_loop_closed_ssa): Allocate bitmaps on the new obstack.
9566         Use XNEWVEC to allocate the use_blocks array.  Initialize the new
9567         obstack, and free it at the end.  Remove loop over all SSA names.
9568         (check_loop_closed_ssa_stmt): Look only at SSA_OP_USE operands.
9569         * tree-cfg.c (move_sese_region_to_fn): Use XNEWVEC instead of
9570         xcalloc to allocate edge_pred and edge_flag arrays.
9572 2012-08-13  Uros Bizjak  <ubizjak@gmail.com>
9574         * config/i386/i386.h (FIXED_REGISTERS): Do not mark REX registers here.
9575         (CALL_USED_REGISTERS): Use bitmaps to mark call-used registers
9576         for different ABIs.
9577         (enum reg_class): Move CLOBBERED_REGS just before GENERAL_REGS.
9578         (REG_CLASS_NAMES): Update.
9579         (REG_CLASS_CONTENTS): Update.  Clear CLOBBERED_REGS members.
9580         * config/i386/i386.c (ix86_conditional_register_usage): Disable
9581         REX registers on 32bit targets.  Handle bitmaps from
9582         CALL_USED_REGISTERS initializer.  Calculate CLOBBERED_REGS register
9583         set from GENERAL_REGS also for 32bit targets.  Do not change call
9584         used register set for TARGET_64BIT_MS_ABI separately.
9586 2012-08-13  Richard Guenther  <rguenther@suse.de>
9588         * basic-block.h (struct basic_block): Remove loop_depth
9589         member, move flags and index members next to each other.
9590         * cfgloop.h (bb_loop_depth): New inline function.
9591         * cfghooks.c (split_block): Do not set loop_depth.
9592         (duplicate_block): Likewise.
9593         * cfgloop.c (flow_loop_nodes_find): Likewise.
9594         (flow_loops_find): Likewise.
9595         (add_bb_to_loop): Likewise.
9596         (remove_bb_from_loops): Likewise.
9597         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
9598         * gimple-streamer-in.c (input_bb): Do not stream loop_depth.
9599         * gimple-streamer-out.c (output_bb): Likewise.
9600         * bt-load.c: Include cfgloop.h.
9601         (migrate_btr_defs): Use bb_loop_depth.
9602         * cfg.c (dump_bb_info): Likewise.
9603         * final.c (compute_alignments): Likewise.
9604         * ira.c (update_equiv_regs): Likewise.
9605         * tree-ssa-copy.c (init_copy_prop): Likewise.
9606         * tree-ssa-dom.c (loop_depth_of_name): Likewise.
9607         * tree-ssa-forwprop.c: Include cfgloop.h.
9608         (forward_propagate_addr_expr): Use bb_loop_depth.
9609         * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
9610         * tree-ssa-sink.c (select_best_block): Likewise.
9611         * ipa-inline-analysis.c: Include cfgloop.h.
9612         (estimate_function_body_sizes): Use bb_loop_depth.
9613         * Makefile.in (tree-ssa-forwprop.o): Depend on $(CFGLOOP_H).
9614         (ipa-inline-analysis.o): Likewise.
9615         (bt-load.o): Likewise.
9617 2012-08-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
9618             Jakub Jelinek  <jakub@redhat.com>
9620         PR driver/54210
9621         * config/i386/driver-i386.c (host_detect_local_cpu): Test bit_PRFCHW
9622         bit of CPUID 0x80000001 %ecx instead of CPUID 7 %ecx.
9623         * config/i386/cpuid.h (bits_PRFCHW): Move definition to CPUID
9624         0x80000001 %ecx flags.
9626 2012-08-13  Richard Guenther  <rguenther@suse.de>
9628         * tree-cfg.c (print_loop): Avoid ICEing for loops marked for
9629         removal and loops with multiple latches.
9631 2012-08-13  Jakub Jelinek  <jakub@redhat.com>
9633         PR c/53968
9634         * tree.c (integer_pow2p): Avoid undefined signed overflows.
9635         * simplify-rtx.c (neg_const_int): Likewise.
9636         * expr.c (fixup_args_size_notes): Likewise.
9637         * stor-layout.c (set_min_and_max_values_for_integral_type): Likewise.
9638         * double-int.c (mul_double_wide_with_sign): Likewise.
9639         (double_int_mask): Likewise.
9640         * tree-ssa-loop-ivopts.c (get_address_cost): Likewise.
9642 2012-08-13  Richard Guenther  <rguenther@suse.de>
9644         PR tree-optimization/54200
9645         * tree-ssa-copyrename.c (rename_ssa_copies): Do not add
9646         PHI results to another partition if not all PHI arguments
9647         have the same partition.
9649 2012-08-12  Jan Hubicka  <jh@suse.cz>
9651         * tree-pass.h (write_summary, write_optimization_summary): Remove
9652         set and vset arguments.
9653         * ipa-cp.c (ipcp_write_summary): Remove set and vset arugments.
9654         (write_node_summary_p): Likewise; use the encoder.
9655         (ipa_reference_write_optimization_summary): Likewise.
9656         * lto-cgraph.c (output_cgraph_opt_summary): Use encoder.
9657         (lto_symtab_encoder_new): Initialize in_partition field.
9658         (lto_symtab_encoder_delete): Destroy in_partition field.
9659         (LCC_NOT_FOUND): Move to lto-streamer.h
9660         (lto_symtab_encoder_deref): Likewise.
9661         (lto_symtab_encoder_in_partition_p,
9662         lto_set_symtab_encoder_in_partition): New functions.
9663         (referenced_from_other_partition_p): Rewrite to use encoder.
9664         (reachable_from_other_partition_p): Likewise.
9665         (referenced_from_this_partition_p): Likewise.
9666         (reachable_from_this_partition_p): Likewise.
9667         (lto_output_node): Likewise.
9668         (lto_output_varpool_node): Likewise.
9669         (output_refs): Likewise.
9670         (compute_ltrans_boundary): Initialize in_partition fileds of
9671         the encoder.
9672         (output_symtab): Likewise.
9673         (input_refs): Match the changes in output_refs.
9674         (output_cgraph_opt_summary_p): Remove set argument.
9675         (output_node_opt_summary): Replace set by encoder.
9676         (output_cgraph_opt_summary): Remove set argument; use
9677         the encoder.
9678         * ipa-pure-const.c (pure_const_write_summary): Remove set and vset
9679         arguments; use the encoder.
9680         * lto-streamer-out.c (lto_output): Remove set and vset argument; use
9681         the encoder.
9682         (produce_symtab): Likewise.
9683         * ipa-inline.h (inline_write_summary): Remove set and vset arguments.
9684         * ipa-inline-analysis.c (inline_write_summary): Likewise.
9685         * ipa-prop.c (ipa_prop_write_jump_functions): Remove set argument;
9686         use encoder.
9687         * ipa-prop.h (ipa_prop_write_jump_functions): Likewise.
9688         * passes.c (ipa_write_summaries_2): Remove set and vset arguments.
9689         (ipa_write_summaries_1): Update.
9690         (ipa_write_optimization_summaries_1): Likewise.
9691         (ipa_write_optimization_summaries): Likewise.
9692         * lto-streamer.h (lto_symtab_encoder_t): Add in_partition.
9693         (lto_symtab_encoder_iterator): New type.
9694         (lto_symtab_encoder_deref): Make inline.
9695         (output_symtab, referenced_from_other_partition_p,
9696         reachable_from_other_partition_p, referenced_from_this_partition_p,
9697         reachable_from_this_partition_p): Update.
9698         (lsei_end_p, lsei_next, lsei_node, lsei_cgraph_node,
9699         lsei_varpool_node): New inline functions.
9700         (LCC_NOT_FOUND): New macro.
9701         (lto_symtab_encoder_deref, lsei_start, lsei_next_in_partition,
9702         lsei_start_in_partition, lsei_next_function_in_partition,
9703         lsei_start_function_in_partition, lsei_next_variable_in_partition,
9704         lsei_start_variable_in_partition): New inline functions.
9706 2012-08-12  Oleg Endo  <olegendo@gcc.gnu.org>
9708         * config/sh/sh.md (prefetch): Simplify expander.  Fix condition to
9709         allow SH3.
9710         (*prefetch_media): Move insn below expander.
9711         (*prefetch): Fix condition to allow SH3.
9713 2012-08-12  Oleg Endo  <olegendo@gcc.gnu.org>
9715         PR target/51244
9716         * config/sh/sh.md: Add splits for inverted compare and branch
9717         opportunities.
9718         (*cmpeqsi_t): New insn.
9719         (cmpgtsi_t, cmpgesi_t): Swap r and N alternatives.
9720         (cmpgeusi_t): Use satisfies_constraint_Z.  Emit sett insn in
9721         replacement insn list and not in the preparation statements.
9722         (clrt, sett): Add mt_group attribute.
9724 2012-08-12 Marc Glisse <marc.glisse@inria.fr>
9726         PR middle-end/54193
9727         * gimple-pretty-print.c (dump_ternary_rhs): Handle 4 arguments.
9729 2012-08-12  Oleg Endo  <olegendo@gcc.gnu.org>
9731         PR target/39423
9732         * config/sh/predicates.md (mem_index_disp_operand): Check for
9733         arith_reg_operand instead of REG_P.
9735 2012-08-11  Bernd Schmidt  <bernds@codesourcery.com>
9737         * reload1.c (replaced_subreg, gen_reload): Add
9738         SECONDARY_MEMORY_NEEDED ifdefs as necessary.
9740 2012-08-11  Jan Hubicka  <jh@suse.cz>
9742         * lto-section-in.c (lto_section_name): Do not use "symtab" as part of
9743         symtab_node sectoin name; it confuses plugin.
9745 2012-08-11  Uros Bizjak  <ubizjak@gmail.com>
9747         * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Shift DECL_UID
9748         index in the va_list_vars bitmap by num_ssa_names.
9750 2012-08-11  Uros Bizjak  <ubizjak@gmail.com>
9752         * config/i386/sse.md (xop integer multiply/add insns): Use
9753         register_operand for operand 3 predicate.
9754         (xop_phadd<u>bq):  Fix vec_select selectors.
9756 2012-08-11  Martin Jambor  <mjambor@suse.cz>
9758         PR fortran/48636
9759         * ipa-inline.h (condition): New fields offset, agg_contents and by_ref.
9760         * ipa-inline-analysis.c (agg_position_info): New type.
9761         (add_condition): New parameter aggpos, also store agg_contents, by_ref
9762         and offset.
9763         (dump_condition): Also dump aggregate conditions.
9764         (evaluate_conditions_for_known_args): Also handle aggregate
9765         conditions.  New parameter known_aggs.
9766         (evaluate_properties_for_edge): Gather known aggregate contents.
9767         (inline_node_duplication_hook): Pass NULL known_aggs to
9768         evaluate_conditions_for_known_args.
9769         (unmodified_parm): Split into unmodified_parm and unmodified_parm_1.
9770         (unmodified_parm_or_parm_agg_item): New function.
9771         (set_cond_stmt_execution_predicate): Handle values passed in
9772         aggregates.
9773         (set_switch_stmt_execution_predicate): Likewise.
9774         (will_be_nonconstant_predicate): Likewise.
9775         (estimate_edge_devirt_benefit): Pass new parameter known_aggs to
9776         ipa_get_indirect_edge_target.
9777         (estimate_calls_size_and_time): New parameter known_aggs, pass it
9778         recrsively to itself and to estimate_edge_devirt_benefit.
9779         (estimate_node_size_and_time): New vector known_aggs, pass it o
9780         functions which need it.
9781         (remap_predicate): New parameter offset_map, use it to remap aggregate
9782         conditions.
9783         (remap_edge_summaries): New parameter offset_map, pass it recursively
9784         to itself and to remap_predicate.
9785         (inline_merge_summary): Also create and populate vector offset_map.
9786         (do_estimate_edge_time): New vector of known aggregate contents,
9787         passed to functions which need it.
9788         (inline_read_section): Stream new fields of condition.
9789         (inline_write_summary): Likewise.
9790         * ipa-cp.c (ipa_get_indirect_edge_target): Also examine the aggregate
9791         contents.  Let all local callers pass NULL for known_aggs.
9793 2012-08-11  Jan Hubicka  <jh@suse.cz>
9795         * lto-cgraph.c (output_cgraph): Rename to ...
9796         (output_symtab): ... this one. Update for LTO_section_symtab_nodes.
9797         (input_cgraph): Rename to ...
9798         (input_symtab): ... this one. Update for LTO_section_symtab_nodes.
9799         * lto-streamer-out.c (create_output_block): Do not set
9800         section_type.
9801         (produce_asm): Likewise.
9802         (lto_output_toplevel_asms): Likewise.
9803         (produce_asm_for_decls): Likewise.
9804         (lto_output): Use output_symtab.
9805         * lto-section-in.c (lto_section_name): Update.
9806         * lto-section-out.c (lto_destroy_simple_output_block): Remove
9807         section_type.
9808         * lto-streamer.h (enum lto_section_type): Remove LTO_section_varpool;
9809         rename LTO_section_cgraph to LTO_section_symtab_nodes.
9810         (struct lto_header): Remove section_type.
9812 2012-08-11  Jan Hubicka  <jh@suse.cz>
9814         * cgraph.h (vector types for symtab_node): Add.
9815         * ipa-reference.c (ipa_reference_write_optimization_summary): Update
9816         for new symtab encoder.
9817         (ipa_reference_read_optimization_summary): Likewise.
9818         * lto-cgraph.c (output_varpool): Remove.
9819         (input_cgraph_opt_summary): Take symtab nodes vector as argument.
9820         (LTO_cgraph_tags): Rename to ...
9821         (LTO_symtab_tags): ... this one; add LTO_symtab_variable.
9822         (lto_cgraph_encoder_new): Rename to ...
9823         (lto_symtab_encoder_new): ... this on.
9824         (lto_cgraph_encoder_encode): Rename to ...
9825         (lto_symtab_encoder_encode): ... this one.
9826         (lto_cgraph_encoder_delete): Rename to ...
9827         (lto_symtab_encoder_delete): ... this one.
9828         (lto_cgraph_encoder_deref): Rename to ...
9829         (lto_symtab_encoder_deref): ... this one.
9830         (lto_cgraph_encoder_encode_body_p): Rename to ...
9831         (lto_symtab_encoder_encode_body_p): ... this one.
9832         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
9833         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
9834         lto_varpool_encoder_deref): Remove.
9835         (lto_varpool_encoder_encode_initializer_p): Rename to ...
9836         (lto_symtab_encoder_encode_initializer_p): ... this one.
9837         (lto_set_varpool_encoder_encode_initializer): Rename to ...
9838         (lto_set_symtab_encoder_encode_initializer): ... this one.
9839         (lto_output_edge): Update.
9840         (lto_output_node): Update.
9841         (lto_output_varpool_node): Update; stream out LTO_symtab_variable tag.
9842         (lto_output_ref): Drop varpool_encoder; update.
9843         (add_node_to): Update.
9844         (add_references): Update.
9845         (output_outgoing_cgraph_edges): Update.
9846         (output_refs): Update.
9847         (compute_ltrans_boundary): Update.
9848         (output_cgraph): Update; output varpools too.
9849         (input_overwrite_node): Update.
9850         (output_varpool): Remove.
9851         (input_node): Update.
9852         (input_ref): Update.
9853         (input_edge): Update.
9854         (input_cgraph_1): Update; input varpool too; unify fixup code.
9855         (input_varpool_1): Remove.
9856         (input_refs): Update.
9857         (input_cgraph): Update.
9858         (output_node_opt_summary): Update.
9859         (input_cgraph_opt_section): Update.
9860         (input_cgraph_opt_summary): Update.
9861         * ipa-pure-const.c (pure_const_write_summary): Update.
9862         (pure_const_read_summary): Update.
9863         * lto-streamer-out.c (lto_write_tree): Update.
9864         (lto_output): Likewise.
9865         (produce_symtab): Update.
9866         (produce_asm_for_decls): Update.
9867         * ipa-inline-analysis.c (inline_read_section): Update.
9868         (inline_write_summary): Update.
9869         * ipa-prop.c (ipa_write_node_info): Update.
9870         (ipa_prop_read_section): Update.
9871         * lto-streamer.h (lto_cgraph_encoder_d): Rename to ...
9872         (lto_symtab_encoder_d): ... this one;  add initializer.
9873         (lto_cgraph_encoder_t): Rename to ...
9874         (lto_symtab_encoder_t): ... this one.
9875         (lto_cgraph_encoder_size): Rename to ...
9876         (lto_symtab_encoder_size): ... this one.
9877         (lto_varpool_encoder_d): ... remove.
9878         (lto_varpool_encoder_t): Remove.
9879         (lto_out_decl_state): Remove cgraph_node_encoder, varpool_node_encoder
9880         add symtab_node_encoder.
9881         (lto_file_decl_data): Likewise.
9882         (lto_cgraph_encoder_deref, lto_cgraph_encoder_lookup,
9883         lto_cgraph_encoder_new, lto_cgraph_encoder_encode,
9884         lto_cgraph_encoder_delete, lto_cgraph_encoder_encode_body_p,
9885         lto_varpool_encoder_encode_body_p, lto_varpool_encoder_deref,
9886         lto_varpool_encoder_lookup, lto_varpool_encoder_new,
9887         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
9888         lto_varpool_encoder_encode_initializer_p): Remove.
9889         (lto_symtab_encoder_deref, lto_symtab_encoder_lookup,
9890         lto_symtab_encoder_t, lto_symtab_encoder_encode,
9891         lto_symtab_encoder_delete, lto_symtab_encoder_encode_body_p,
9892         lto_symtab_encoder_encode_initializer_p): New.
9894 2012-08-11  Uros Bizjak  <ubizjak@gmail.com>
9896         * config/i386/i386.md (isa): Add fma and fma4.
9897         (enabled): Handle fma and fma4.
9898         * config/i386/sse.md (*fma_fmadd_<mode>): Merge *fma4_fmadd_<mode>.
9899         (*fma_fmsub_<mode>): Merge *fma4_fmsub_<mode>.
9900         (*fma_fnmadd_<mode>): Merge *fma4_fnmadd_<mode>.
9901         (*fma_fnmsub_<mode>): Merge *fma4_fnmsub_<mode>.
9902         (*fma_fmaddsub_<mode>): Merge *fma4_fmaddsub_<mode>.
9903         (*fma_fmsubadd_<mode>): Merge *fma4_fmsubadd_<mode>.
9905 2012-08-10  Uros Bizjak  <ubizjak@gmail.com>
9907         * config/i386/sse.md (*fma_fmadd_<mode>, *fma_fmsub_<mode>,
9908         *fma_fnmadd_<mode>, *fma_fnmsub_<mode>, *fma_fmaddsub_<mode>,
9909         *fma_fmsubadd_<mode>): Move FMA3 insn patterns before FMA4 patterns.
9911 2012-08-10  Uros Bizjak  <ubizjak@gmail.com>
9913         * config/i386/i386.md (simple LEA peephole2s): Add zero-extend
9914         variants of PLUS and MULT simple LEA patterns.  Disable PLUS
9915         patterns for TARGET_OPT_AGU.
9917 2012-08-10  Richard Guenther  <rguenther@suse.de>
9919         * Makefile.in (OBJS): Remove matrix-reorg.o.
9920         (matrix-reorg.o): Remove dependence rule.
9921         (GTFILES): Remove matrix-reorg.c.
9922         * matrix-reorg.c: Remove.
9923         * passes.c (init_optimization_passes): Do not schedule
9924         pass_ipa_matrix_reorg.
9925         * tree-pass.h (pass_ipa_matrix_reorg): Remove.
9926         * common.opt (fipa-matrix-reorg): Stub out.
9927         * doc/invoke.texi (fipa-matrix-reorg): Remove documentation.
9929 2012-08-10  Richard Guenther  <rguenther@suse.de>
9931         PR middle-end/54219
9932         * fold-const.c (fold_ternary_loc): Do not reverse the mask
9933         when canonicalizing it when folding VEC_PERM_EXPR.
9935 2012-08-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9937         PR middle-end/54211
9938         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
9939         Use cand_type to determine whether pointer arithmetic will be generated.
9941 2012-08-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9943         * doc/sourcebuild.texi: Document long_neq_int effective target.
9945 2012-08-10  Richard Guenther  <rguenther@suse.de>
9947         PR tree-optimization/54109
9948         * tree-ssa-forwprop.c
9949         (forward_propagate_addr_into_variable_array_index): Remove.
9950         (forward_propagate_addr_expr_1): Adjust.
9952 2012-08-10  Richard Guenther  <rguenther@suse.de>
9954         * tree-cfg.c (dump_function_to_file): Make sure to dump
9955         anonymous SSA names when there are no local decls.
9957 2012-08-10  Steven Bosscher  <steven@gcc.gnu.org>
9959         * tree-ssa-pre.c (alloc_expression_id): Fix use of VEC_reserve.
9960         * tree-into-ssa.c (get_ssa_name_ann): Likewise.
9961         (mark_phi_for_rewrite): Likewise.
9962         (compute_global_livein): Use VEC_reserve outside the innermost
9963         loop and VEC_quick_push instead of VEC_safe_push in that loop.
9964         (update_ssa): Re-organize to avoid unnecessary sbitmap_zero'ing
9965         of new_ssa_names and old_ssa_names.  Allocate phis_to_rewrite to
9966         the correct initial size.
9968 2012-08-10  Richard Guenther  <rguenther@suse.de>
9970         * tree-ssa-pre.c (pretemp, storetemp, prephitemp): Remove.
9971         (need_creation): Remove.
9972         (get_representative_for): Use anonymous named SSA names.
9973         (create_expression_by_pieces): Likewise.
9974         (insert_into_preds_of_block): Likewise.
9975         (init_pre): Do not init removed vars.
9976         (fini_pre): Do not free need_creation.
9977         * tree-ssa-forwprop.c (simplify_bitwise_binary): Use anonymous
9978         SSA names.
9979         * tree-ssa-loop-manip.c (create_iv): Likewise.
9980         * value-prof.c (gimple_divmod_fixed_value): Likewise.
9981         (gimple_mod_pow2): Likewise.
9982         (gimple_mod_subtract): Likewise.
9983         (gimple_ic): Likewise.
9984         (gimple_stringop_fixed_value): Likewise.
9985         * tree-ssa-phiopt.c (condstoretemp): Remove.
9986         (tree_ssa_phiopt_worker): Use anonymous named SSA names.
9987         (conditional_replacement): Likewise.
9988         (abs_replacement): Likewise.
9989         (cond_store_replacement): Likewise.
9990         (cond_if_else_store_replacement_1): Likewise.
9991         * tree-ssa-loop-im.c (rewrite_reciprocal): Likewise.
9992         (rewrite_bittest): Likewise.
9993         * tree-ssa-reassoc.c (build_and_add_sum): Get type from callers
9994         and build anonymous SSA names.
9995         (undistribute_ops_list): Adjust.
9996         (eliminate_redundant_comparison): Use anonymous SSA names.
9997         (rewrite_expr_tree_parallel): Likewise.
9998         (get_reassoc_pow_ssa_name): Remove.
9999         (attempt_builtin_powi): Adjust.
10000         (reassociate_bb): Likewise.
10001         * tree-ssa-strlen.c (get_string_length): Use anonymous SSA names.
10002         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
10003         (build_arrays): Likewise.
10004         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
10005         (create_tailcall_accumulator): Likewise.
10006         * tree-vect-generic.c (expand_vector_divmod): Likewise.
10007         * tree-profile.c (gcov_type_tmp_var): Remove.
10008         (gimple_init_edge_profiler): Do not initialize it and use anonymous
10009         SSA names.
10010         (gimple_gen_ic_profiler): Likewise.
10011         (tree_profiling): Adjust.
10012         * tree-sra.c (build_ref_for_offset): Use anonymous SSA names.
10013         * tree-ssa-math-opts.c (execute_cse_sincos_1): Likewise.
10014         (powi_as_mults_1): Likewise.
10015         (powi_as_mults): Likewise.
10016         (build_and_insert_call): Adjust.
10017         (build_and_insert_binop): Likewise.
10018         (build_and_insert_ref): Likewise.
10019         (build_and_insert_cast): Likewise.
10020         (gimple_expand_builtin_pow): Likewise.
10021         (gimple_expand_builtin_cabs): Likewise.
10022         (execute_optimize_bswap): Use anonymous SSA names.
10023         (convert_mult_to_widen): Likewise.
10024         (convert_plusminus_to_widen): Likewise.
10025         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
10026         * tree-ssa-propagate.c (update_call_from_tree): Likewise.
10027         * tree-if-conv.c (ifc_temp_var): Likewise.
10028         * tree-loop-distribution.c (generate_memset_builtin): Likewise.
10029         * tree-parloops.c (take_address_of): Likewise.
10030         * tree-vect-data-refs.c (vect_permute_store_chain): Likewise.
10031         (vect_permute_load_chain): Likewise.
10032         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Likewise.
10033         * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
10034         (vect_handle_widen_op_by_const): Likewise.
10035         (vect_operation_fits_smaller_type): Likewise.
10036         (vect_recog_over_widening_pattern): Likewise.
10037         * tree-vect-stmts.c (vect_init_vector): Likewise.
10038         * tree-vrp.c (simplify_truth_ops_using_ranges): Likewise.
10039         (simplify_float_conversion_using_ranges): Likewise.
10041 2012-08-10  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10043         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix
10044         target mask of __builtin_ia32_rdseed_di_step builtin.
10046 2012-08-10  Richard Guenther  <rguenther@suse.de>
10048         PR tree-optimization/54027
10049         * tree-vrp.c (extract_range_from_binary_expr_1): Merge RSHIFT_EXPR
10050         and LSHIFT_EXPR handling, force -fwrapv for the multiplication used
10051         to handle LSHIFT_EXPR with a constant.
10053 2012-08-10  Richard Guenther  <rguenther@suse.de>
10055         * tree.h (SSA_NAME_VAR): Return NULL_TREE if an IDENTIFIER_NODE
10056         is recorded as var.
10057         (SSA_NAME_IDENTIFIER): Return the IDENTIFIER_NODE of the SSA_NAME
10058         or its SSA_NAME_VAR.
10059         (SET_SSA_NAME_VAR_OR_IDENTIFIER): New setter.
10060         * tree-ssanames.c (make_ssa_name_fn): Handle creating anonymous
10061         SSA names by passing a type instead of a variable decl.
10062         (release_ssa_name): Use SET_SSA_NAME_VAR_OR_IDENTIFIER.
10063         (copy_ssa_name_fn): Handle anonymous SSA names.
10064         (replace_ssa_name_symbol): Use SET_SSA_NAME_VAR_OR_IDENTIFIER.
10065         * tree-flow-inline.h (make_temp_ssa_name): New inline function.
10066         * tree-pretty-print.c (dump_generic_node): Use SSA_NAME_IDENTIFIER,
10067         dump SSA names without a name as <anon>.
10068         * cfgexpand.c (expand_used_vars): Assing anonymous SSA names we are
10069         going to expand a decl.
10070         (gimple_expand_cfg): Assign all SSA names of a partition the
10071         decl we created for its leader.
10072         * tree-ssa.c (target_for_debug_bind): Handle SSA_NAMEs.
10073         (verify_ssa_name): Handle anonymous SSA names.
10074         (verify_def): Likewise.
10075         * tree-predcom.c (eliminate_temp_copies): Likewise.
10076         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
10077         * tree-ssa-live.c (var_map_base_init): Compute conflicts for
10078         anonymous SSA names with the same type.
10079         (mark_all_vars_used_1): Handle anonymous SSA names.
10080         (verify_live_on_entry): Likewise.
10081         * tree-ssa-coalesce.c (abnormal_corrupt): Remove.
10082         (create_outofssa_var_map): Adjust with respect to conflicts we
10083         compute for anonymous SSA names.  Do not restrict abnormal
10084         coalescing.
10085         (coalesce_partitions): Do not restrict abnormal coalescing.
10086         Assert we only ever coalesce variables we computed conflicts for.
10087         * tree-ssa-ter.c (process_replaceable): Do not restrict TER
10088         of anonymous names.
10089         * expr.c (expand_expr_real_1): Handle anonymous SSA names
10090         expanded from IVOPTs by creating a raw REG here.
10091         * tree-cfg.c (replace_ssa_name): Handle anonymous SSA names.
10092         (dump_function_to_file): Dump anonymous SSA names alongside
10093         with their types in the variable list.
10094         (verify_gimple_return): Guard use of SSA_NAME_VAR.
10095         * tree-into-ssa.c (mark_for_renaming): Handle a NULL symbol.
10096         (rewrite_into_ssa): Make SSA names anonymous.
10097         * tree-ssa-structalias.c (alias_get_name): Rewrite.
10098         * tree-ssa-uninit.c (ssa_undefined_value_p): Handle anonymous
10099         SSA names.
10100         (warn_uninitialized_phi): Likewise.
10101         * tree-ssa-loop-ivopts.c (prepare_decl_rtl): Defer expanding
10102         anonymous SSA names to the expander.
10103         (determine_iv_cost): Anonymous SSA names are artificial.
10104         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
10105         Handle anonymous SSA names.
10106         * lto-streamer-out.c (output_ssa_names): Stream SSA_NAME_VAR
10107         or if NULL, the type of the SSA name.
10108         * tree-inline.c (remap_ssa_name): Handle anonymous SSA names,
10109         remap names as anonymous where appropriate.
10110         (insert_init_stmt): Pass SSA names down to insert_init_debug_bind.
10111         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Adjust
10112         according to what we create conflicts for in out-of-SSA
10113         coalescing.
10114         * tree-parloops.c (separate_decls_in_region_name): Handle
10115         anonymous SSA names.
10116         (add_field_for_name): Likewise.
10117         * tree.c (get_name): Handle SSA names.
10118         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Defer to get_name for
10119         SSA_NAMEs.
10120         * tree-vect-loop-manip.c (adjust_debug_stmts): Use
10121         virtual_operand_p.
10122         * tree-sra.c (create_access_replacement): Give up generating
10123         a DECL_DEBUG_EXPR for SSA names in the memory reference.
10124         (replace_removed_params_ssa_names): Guard use of SSA_NAME_VAR.
10125         * tree-complex.c (get_component_ssa_name): Handle anonymous
10126         SSA names.
10127         (set_component_ssa_name): Likewise.
10128         * tree-ssa-sccvn.c (visit_reference_op_load): Likewise.
10129         * tree-object-size.c (collect_object_sizes_for): Handle
10130         uninitialized SSA names properly.
10131         * ipa-inline-analysis.c (eliminated_by_inlining_prob): Guard use of
10132         SSA_NAME_VAR.
10133         * ipa-split.c (test_nonssa_use): Likewise.
10134         (consider_split): Likewise.
10135         (mark_nonssa_use): Likewise.
10137 2012-08-09  Jan Hubicka  <jh@suse.cz>
10139         PR middle-end/54146
10140         * ipa-inline-transform.c (inline_call): Add UPDATE_OVERALL_SUMMARY
10141         parameter; honnor it.
10142         * ipa-inline.c (recursive_inlining): Update call
10143         of inline_call.
10144         (inline_small_functions): Likewise.
10145         (ipa_inline): Likewise.
10146         (inline_always_inline_functions): Likewise.
10147         (early_inline_small_functions): Likewise.
10148         (flatten_function): Do separate update of summary info.
10149         * ipa-inline.h (inline_update_overall_summary): Declare.
10150         (inline_call): Update.
10151         * ipa-inline-analysis.c (inline_merge_summary): Break out
10152         updating code to ...
10153         (inline_update_overall_summary): Likewise.
10155 2012-08-09  Richard Henderson  <rth@redhat.com>
10157         * config/s390/s390.c (s390_expand_insv): Use VOIDmode in gen_rtx_SET.
10159         * config/s390/s390.c (s390_expand_cs_hqi): Copy val to a temp before
10160         performing the compare for the restart loop.
10162 2012-08-09  DJ Delorie  <dj@redhat.com>
10164         * config/rl78/rl78.c (rl78_alloc_physical_registers): Check for
10165         SET before extracting SET_SRC.
10166         (rl78_remove_unused_sets): Check for REG before extractnig REGNO.
10168 2012-08-09  Oleg Endo  <olegendo@gcc.gnu.org>
10170         PR target/54089
10171         * config/sh/sh-protos (shift_insns_rtx): Delete.
10172         (sh_ashlsi_clobbers_t_reg_p): Add.
10173         * config/sh/sh.c (shift_insns, shift_amounts, ext_shift_insns,
10174         ext_shift_amounts): Merge arrays of ints to array of structs.
10175         Adapt usage of arrays throughout the file.
10176         (shift_insns_rtx): Delete unused function.
10177         (sh_ashlsi_clobbers_t_reg_p): New function.
10178         * config/sh/sh.md (ashlsi3): Emit ashlsi3_n_clobbers_t insn if the
10179         final shift sequence will clobber T_REG.
10180         (ashlsi3_n): Split only if the final shift sequence will not
10181         clobber T_REG.
10182         (ashlsi3_n_clobbers_t): New insn_and_split.
10184 2012-08-09  Steven Bosscher  <steven@gcc.gnu.org>
10186         * calls.c (mem_overlaps_already_clobbered_arg_p): Use SBITMAP_SIZE
10187         instead of looking at sbitmap n_bits member directly.
10188         * gcse.c (hoist_code): Likewise.
10189         * sched-rgn.c (split_edges): Likewise.
10190         * tree-into-ssa.c (is_old_name, is_new_name, add_new_name_mapping,
10191         update_ssa): Likewise.
10193 2012-08-09  Uros Bizjak  <ubizjak@gmail.com>
10195         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Return preferred
10196         single unit register class for classes that contain registers form
10197         multiple units.
10198         (REG_CLASS_CONTENTS): Add missing "frame" register to FLOAT_INT_REGS,
10199         INT_SSE_REGS and FLOAT_INT_SSE_REGS register classes.
10201 2012-08-09  Martin Jambor  <mjambor@suse.cz>
10203         * cgraph.h (cgraph_indirect_call_info): Field anc_offse renamd to
10204         offset, updated all users.  New field agg_contents.
10205         * ipa-prop.h (jump_func_type): Removed IPA_JF_CONST_MEMBER_PTR.
10206         (ipa_pass_through_data): New field agg_preserved.
10207         (ipa_ancestor_jf_data): Likewise.
10208         (ipa_member_ptr_cst): Removed.
10209         (ipa_agg_jf_item): New type.
10210         (ipa_agg_jump_function): Likewise.
10211         (ipa_jump_func): New field agg.  Removed field member_cst.
10212         (ipa_get_jf_pass_through_agg_preserved): New function.
10213         (ipa_get_jf_ancestor_agg_preserved): Likewise.
10214         (ipa_get_jf_member_ptr_pfn): Removed.
10215         (ipa_find_agg_cst_for_param): Declare.
10216         (ipa_load_from_parm_agg): Likewise.
10217         * ipa-prop.c (param_analysis_info): Fields modified and
10218         visited_statements rename to parm_modified and parm_visited_statements
10219         respectively, added fields ref_modified, ref_visited_statements,
10220         pt_modified and pt_visited_statements.
10221         (ipa_print_node_jump_functions_for_edge): Do not dump const member
10222         functions.  Dump agg_preserved flags and aggregate jump functions.
10223         (ipa_set_jf_simple_pass_through): Set also agg_preserved.
10224         (ipa_set_ancestor_jf): Likewise.
10225         (ipa_set_jf_arith_pass_through): Clear agg_preserved.
10226         (ipa_set_jf_member_ptr_cst): Removed.
10227         (is_parm_modified_before_stmt): Logic reversed, renamed to
10228         parm_preserved_before_stmt_p.  Cache visited bitmap only for
10229         naked DECL parameters.  All callers updated.
10230         (load_from_unmodified_param): Allow NULL parms_ainfo.
10231         (parm_ref_data_preserved_p): New function.
10232         (parm_ref_data_pass_through_p): Likewise.
10233         (ipa_load_from_parm_agg_1): Likewise.
10234         (ipa_load_from_parm_agg): Likewise.
10235         (compute_complex_assign_jump_func): Check if aggregate contents are
10236         preserved.
10237         (compute_complex_ancestor_jump_func): Likewise.
10238         (compute_scalar_jump_functions): Removed.
10239         (type_like_member_ptr_p): Also check field position are known and sane.
10240         (compute_pass_through_member_ptrs): Removed.
10241         (determine_cst_member_ptr): Likewise.
10242         (ipa_known_agg_contents_list): New type.
10243         (determine_known_aggregate_parts): New function.
10244         (compute_cst_member_ptr_arguments): Removed.
10245         (ipa_compute_jump_functions_for_edge): Compute all kinds of jump
10246         functions (scalar, aggregate and member pointer).
10247         (ipa_get_member_ptr_load_param): Incorporate into
10248         ipa_get_stmt_member_ptr_load_param, also pass back an offset.
10249         (ipa_note_param_call): Clear agg_contents.
10250         (ipa_analyze_indirect_call_uses): Also look for simple pointers loaded
10251         from aggregates.  In such cases, store offset of the called field.
10252         (ipa_analyze_node): Initialize new fields of param_analysis_info.
10253         (update_jump_functions_after_inlining): Handle aggregate contents.
10254         (ipa_find_agg_cst_for_param): New function.
10255         (try_make_edge_direct_simple_call): Handle called aggregate values.
10256         (update_indirect_edges_after_inlining): Make sure aggregate preserving
10257         jump functions comply with type compatibility requirements.
10258         (ipa_edge_duplication_hook): Copy also aggregate jump functions.
10259         (ipa_write_jump_function): Stream agg_preserved flags and aggregate
10260         jump functions.  Do not stream member pointer constant jump functions.
10261         (ipa_read_jump_function): Likewise.
10262         (ipa_write_indirect_edge_info): Stream new cgraph_indirect_call_info
10263         fields.
10264         (ipa_read_indirect_edge_info): Likewise.
10266 2012-08-09  Oleg Endo  <olegendo@gcc.gnu.org>
10268         PR target/39423
10269         * config/sh/predicates.md (mem_index_disp_operand): New predicate.
10270         * config/sh/sh.md (*movsi_index_disp): Rewrite insns to use the new
10271         mem_index_disp_operand predicate.
10273 2012-08-09  Oleg Endo  <olegendo@gcc.gnu.org>
10275         PR target/51244
10276         * config/sh/sh.md: Add negc extu sequence peephole.
10277         (movrt, movnegt, movrt_negc, nott): Use t_reg_operand predicate.
10278         (*movrt_negc): New insn.
10279         * config/sh/sync.md (atomic_test_and_set): Pass gen_t_reg_rtx to
10280         gen_movnegt.
10281         * config/sh/sh.c (expand_cbranchsi4, sh_emit_scc_to_t,
10282         sh_emit_compare_and_branch, sh_emit_compare_and_set): Use
10283         get_t_reg_rtx.
10284         (sh_expand_t_scc): Pass gen_t_reg_rtx to gen_movnegt.
10286 2012-08-09  Oleg Endo  <olegendo@gcc.gnu.org>
10288         PR target/50751
10289         * config/sh/sh.md (*extendqisi2_compact_reg, *extendhisi2_compact_reg):
10290         Use arith_reg_operand predicate instead of register_operand.
10291         * config/sh/predicates.md (movsrc_no_disp_mem_operand): Accept
10292         only mem, simplify.
10294 2012-08-09  Uros Bizjak  <ubizjak@gmail.com>
10296         * config/alpha/alpha.c (alpha_pad_noreturn): Rename to ...
10297         (alpha_pad_function_end): ... this.  Also insert NOP between
10298         sibling call and GP load.
10299         (alpha_reorg): Update call to alpha_pad_function_end.  Expand comment.
10301 2012-08-09  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10303         * config/i386/adxintrin.h: Remove guarding __ADX__ check.
10304         * config/i386/x86intrin.h: Likewise.
10305         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove
10306         OPTION_MASK_ISA_ADX from needed options for
10307         __builtin_ia32_addcarryx_u32 and __builtin_ia32_addcarryx_u64.
10308         (ix86_expand_builtin): Use add<mode>3_carry in expanding of
10309         IX86_BUILTIN_ADDCARRYX32 and IX86_BUILTIN_ADDCARRYX64.
10311 2012-08-09  Andrey Belevantsev  <abel@ispras.ru>
10313         PR rtl-optimization/53701
10314         * sel-sched.c (vinsn_vec_has_expr_p): Clarify function comment.
10315         Process not only expr's vinsns but all old vinsns from expr's
10316         history of changes.
10317         (update_and_record_unavailable_insns): Clarify comment.
10319 2012-08-09  Bernd Schmidt  <bernds@codesourcery.com>
10321         * reload.c (find_valid_class_1): New static function.
10322         (push_reload): Use it when reloading a SYMBOL_REG as the inner
10323         of a subreg.  Keep better track of needed classes for the
10324         secondary memory case.
10325         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Limit INT_SSE_REGS to
10326         GENERAL_REGS.
10327         * reload1.c (replaced_subreg): New static function.
10328         (gen_reload): Use it when deciding whether to use secondary
10329         memory.
10331 2012-08-09  Richard Guenther  <rguenther@suse.de>
10333         * tree.h (SSA_VAR_P): Simplify.
10334         * tree-ssanames.c (make_ssa_name_fn): Strengthen assert.
10335         * fold-const.c (fold_comparison): Check for default def first
10336         before checking for PARM_DECL.
10337         * tree-complex.c (get_component_ssa_name): Likewise.
10338         * tree-inline.c (remap_ssa_name): Likewise.
10339         * tree-ssa-loop-ivopts.c (parm_decl_cost): Likewise.
10340         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
10341         (find_what_p_points_to): Likewise.
10342         * tree-ssa-operands.c (add_stmt_operand): Simplify.
10344 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
10346         * simplify-rtx.c (simplify_binary_operation_1): Do not simplify
10347         IOR to a constant if one operand has side effects.
10349 2012-08-08  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10351         * builtins.c (expand_builtin_atomic_compare_exchange): Pass old
10352         value operand as MEM to expand_atomic_compare_and_swap.
10354         * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Accept
10355         nonimmediate_operand for old value; generate load and store if
10356         needed.
10357         * config/s390/s390.c (s390_expand_cs_hqi): Accept any operand
10358         as vtarget.
10360 2012-08-08  Steven Bosscher  <steven@gcc.gnu.org>
10362         PR middle-end/54146
10363         * gimpify.c (gimplify_body): Only verify_gimple_in_seq with
10364         checking enabled.
10365         * tree-ssa-loop-manip.c (add_exit_phis_var): Assert that var is
10366         a gimple_reg if checking is enabled.
10367         (find_uses_to_rename_stmt): Only look at non-virtual USE operands.
10368         * tree-into-ssa (compute_global_livein): Change the worklist
10369         type from an array to a VEC.
10371 2012-08-08  Richard Guenther  <rguenther@suse.de>
10373         * tree-ssa-operands.h (virtual_operand_p): Declare.
10374         * tree-ssa-operands.c (virtual_operand_p): New predicate.
10375         * gimple.c (is_gimple_reg): Use virtual_operand_p.
10376         * tree-into-ssa.c (prepare_block_for_update): Likewise.
10377         * tree-vect-loop-manip.c (adjust_debug_stmts): Likewise.
10379 2012-08-08  Richard Guenther  <rguenther@suse.de>
10381         * tree-call-cdce.c (check_pow): Simplify.
10382         (gen_conditions_for_pow_int_base): Likewise.
10383         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not handle
10384         virtual operands here.
10385         * tree-ssa-operands.c (get_name_decl): Remove unused function.
10386         * gimplify.c (gimple_regimplify_operands): Remove dead code.
10387         * tree-vrp.c (get_value_range): Move SSA_NAME_VAR access.
10388         * tree-parloops.c (create_phi_for_local_result): Use copy_ssa_name.
10389         * value-prof.c (gimple_ic): Use duplicate_ssa_name.
10390         (gimple_stringop_fixed_value): Likewise.
10391         * tree.c (needs_to_live_in_memory): Remove SSA name handling.
10392         * tree-stdarg.c (find_va_list_reference): Store SSA_NAME_VERSIONs
10393         in the bitmap alongside shifted DECL_UIDs.
10394         (va_list_counter_struct_op): Likewise.
10395         (va_list_ptr_read): Likewise.
10396         (va_list_ptr_write): Likewise.
10397         (check_va_list_escapes): Likewise.
10398         (check_all_va_list_escapes): Likewise.
10399         (execute_optimize_stdarg): Likewise.
10400         * tree-outof-ssa.c (insert_backedge_copies): Use copy_ssa_name.
10402 2012-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
10403             H.J. Lu  <hongjiu.lu@intel.com>
10405         PR rtl-optimization/54157
10406         * combine.c (gen_lowpart_for_combine): Don't return identity
10407         for CONST or symbolic reference.
10409 2012-08-08  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10411         * common/config/i386/i386-common.c (OPTION_MASK_ISA_ADX_SET): New.
10412         (OPTION_MASK_ISA_ADX_UNSET): Likewise.
10413         (ix86_handle_option): Handle madx option.
10414         * config.gcc (i[34567]86-*-*): Add adxintrin.h.
10415         (x86_64-*-*): Likewise.
10416         * config/i386/adxintrin.h: New header.
10417         * config/i386/driver-i386.c (host_detect_local_cpu): Detect ADCX/ADOX
10418         support.
10419         * config/i386/i386-builtin-types.def
10420         (UCHAR_FTYPE_UCHAR_UINT_UINT_PUNSIGNED): New function type.
10421         (UCHAR_FTYPE_UCHAR_ULONGLONG_ULONGLONG_PULONGLONG): Likewise.
10422         * config/i386/i386-c.c: Define __ADX__ if needed.
10423         * config/i386/i386.c (ix86_target_string): Define -madx option.
10424         (PTA_ADX): New.
10425         (ix86_option_override_internal): Handle new option.
10426         (ix86_valid_target_attribute_inner_p): Add OPT_madx.
10427         (ix86_builtins): Add IX86_BUILTIN_ADDCARRYX32,
10428         IX86_BUILTIN_ADDCARRYX64.
10429         (ix86_init_mmx_sse_builtins): Define corresponding built-ins.
10430         (ix86_expand_builtin): Handle these built-ins.
10431         (ix86_expand_args_builtin): Handle new function types.
10432         * config/i386/i386.h (TARGET_ADX): New.
10433         * config/i386/i386.md (adcx<mode>3): New define_insn.
10434         * config/i386/i386.opt (madx): New.
10435         * config/i386/x86intrin.h: Include adxintrin.h.
10437 2012-08-08  Nick Clifton  <nickc@redhat.com>
10439         * config/rl78/rl78.c: Include tree-pass.h.
10441 2012-08-08  Steven Bosscher  <steven@gcc.gnu.org>
10443         PR middle-end/54146
10444         * ira.c (init_live_subregs): Take live_subregs_used as a bitmap.
10445         (build_insn_chain): Make live_subregs_used a bitmap.
10446         Use SBITMAP_SIZE to ignore the paradoxical bytes of subregs.
10447         Use sbitmap_free to free the live_subreg sbitmaps.
10449         PR middle-end/54146
10450         * ifcvt.c: Include pointer-set.h.
10451         (cond_move_process_if_block): Change type of then_regs and
10452         else_regs from alloca'd array to pointer_sets.
10453         (check_cond_move_block): Update for this change.
10454         (cond_move_convert_if_block): Likewise.
10455         * Makefile.in: Fix dependencies for ifcvt.o.
10457 2012-08-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10459         * gimple-ssa-strength-reduction.c (struct incr_info_d): New struct.
10460         (incr_vec): New static var.
10461         (incr_vec_len): Likewise.
10462         (address_arithmetic_p): Likewise.
10463         (stmt_cost): Remove dead assignment.
10464         (dump_incr_vec): New function.
10465         (cand_abs_increment): Likewise.
10466         (lazy_create_slsr_reg): Likewise.
10467         (incr_vec_index): Likewise.
10468         (count_candidates): Likewise.
10469         (record_increment): Likewise.
10470         (record_increments): Likewise.
10471         (unreplaced_cand_in_tree): Likewise.
10472         (optimize_cands_for_speed_p): Likewise.
10473         (lowest_cost_path): Likewise.
10474         (total_savings): Likewise.
10475         (analyze_increments): Likewise.
10476         (ncd_for_two_cands): Likewise.
10477         (nearest_common_dominator_for_cands): Likewise.
10478         (profitable_increment_p): Likewise.
10479         (insert_initializers): Likewise.
10480         (introduce_cast_before_cand): Likewise.
10481         (replace_rhs_if_not_dup): Likewise.
10482         (replace_one_candidate): Likewise.
10483         (replace_profitable_candidates): Likewise.
10484         (analyze_candidates_and_replace): Handle candidates with SSA-name
10485         strides.
10487 2012-08-07  Steven Bosscher  <steven@gcc.gnu.org>
10489         * cfg.c (debug_bb): Do not set TDF_BLOCKS.
10490         * cfghooks.c (dump_bb): Honor ~TDF_BLOCKS.
10491         * pretty-print.c (pp_base_flush): Do not add a newline, and do not
10492         clear pp_needs_newline.
10493         * pretty-print.h (pp_newline_and_flush): New macro with the behavior
10494         of pp_base_flush before the above change.
10495         * langhooks.c (lhd_print_error_function): Use pp_newline_and_flush
10496         instead of pp_flush.
10497         * diagnostic.c (diagnostic_finish): Likewise.
10498         (diagnostic_report_diagnostic): Likewise.
10499         (verbatim): Likewise.
10500         (error_recursion): Likewise.
10501         * tree-pretty-print.c (print_generic_stmt): Likewise.
10502         (print_generic_stmt_indented): LIkewise.
10503         * gimple-pretty-print.c (print_gimple_stmt): Likewise.
10504         (print_gimple_seq): Likewise.
10505         (gimple_dump_bb_buff): Likewise.
10507 2012-08-07  Uros Bizjak  <ubizjak@gmail.com>
10509         PR debug/54177
10510         * var-tracking.c (var_lowpart): Exit early for matched modes.
10512 2012-08-07  Richard Henderson  <rth@redhat.com>
10514         * config/s390/s390.c (s390_emit_compare_and_swap): Update for
10515         atomic_compare_and_swapsi_internal name change.
10516         (s390_expand_insv): Try RISBG last, not requiring operands in
10517         registers but forcing them there.  Try a limited form of ICM.
10518         (s390_two_part_insv): New.
10519         (s390_expand_cs_hqi): Use it.  Update for atomic optabs.
10520         * config/s390/s390.md (UNSPEC_MOVA): New.
10521         (TDSI): Remove mode iterator.
10522         (DGPR, DINT, TDI): New mode iterators.
10523         (td): New mode attribute.
10524         (mem_signal_fence): New.
10525         (mem_thread_fence): Rename from memory_barrier; update for model arg.
10526         (mem_thread_fence_1): Rename from *memory_barrier.
10527         (atomic_load<DINT>, atomic_store<DINT>): New expanders.
10528         (atomic_loaddi_1, atomic_loadti_1): New.
10529         (atomic_storedi_1, atomic_storeti_1): New.
10530         (sync_compare_and_swap<TDSI>, sync_compare_and_swap<HQI>): Remove.
10531         (atomic_compare_and_swap<DGPR>, atomic_compare_and_swap<HQI>): New.
10532         (atomic_compare_and_swap<DGPR>_internal): New.
10533         (*sync_compare_and_swap<DW>, *sync_compare_and_swap<GPR>): Remove.
10534         (*atomic_compare_and_swap<TDI>_1): New.
10535         (*atomic_compare_and_swapdi_2, *atomic_compare_and_swapsi_3): New.
10536         (sync_<ATOMIC_Z196><GPR>, sync_old_<ATOMIC_Z196><GPR>): Remove.
10537         (atomic_fetch_<ATOMIC_Z196><GPR>): New.
10538         (atomic_fetch_<ATOMC_Z196><GPR>_iaf): New.
10539         (sync_<ATOMIC><HQI>, sync_old_<ATOMIC><HQI>): Remove.
10540         (sync_new_<ATOMIC><HQI>): Remove.
10541         (atomic_<ATOMIC><HQI>, atomic_fetch_<ATOMIC><HQI>): New.
10542         (atomic_<ATOMIC>_fetch<HQI>): New.
10543         (sync_lock_test_and_set<HQI>): Remove.
10544         (atomic_exchange<HQI>): New.
10546 2012-08-07  Paul Brook  <paul@codesourcery.com>
10547             Sandra Loosemore  <sandra@codesourcery.com>
10549         * except.c (switch_to_exception_section): Place tables for
10550         DECL_ONE_ONLY functions in comdat groups.
10552 2012-08-07  Richard Guenther  <rguenther@suse.de>
10554         * tree-flow.h (copy_ssa_name_fn): New function.
10555         (duplicate_ssa_name_fn): Likewise.
10556         * tree-flow-inline.h (copy_ssa_name): New function.
10557         (duplicate_ssa_name): Likewise.
10558         * tree-ssanames.c (copy_ssa_name_fn): New function.
10559         (duplicate_ssa_name): Rename to ...
10560         (duplicate_ssa_name_fn): ... this and adjust.
10561         * tree-tailcall.c (update_accumulator_with_ops): Use copy_ssa_name.
10562         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
10563         Likewise.
10564         (slpeel_update_phi_nodes_for_guard2): Likewise.
10565         (slpeel_tree_peel_loop_to_edge): Likewise.
10566         (vect_loop_versioning): Likewise.
10567         * tree-parloops.c (transform_to_exit_first_loop): Likewise.
10568         (create_parallel_loop): Likewise.
10569         * ipa-split.c (split_function): Likewise.
10570         * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
10571         (vect_create_epilog_for_reduction): Likewise.
10572         * tree-vect-data-refs.c (bump_vector_ptr): Likewise.
10573         (vect_setup_realignment): Likewise.
10574         * tree-vect-stmts.c (vectorizable_load): Likewise.
10575         * tree-switch-conversion.c (build_one_array): Likewise.
10576         (gen_def_assigns): Likewise.
10577         * tree-cfg.c (gimple_make_forwarder_block): Likewise.
10578         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Call
10579         create_zero_dim_array with the SSA name.
10580         (rewrite_phi_out_of_ssa): Likewise.
10581         (rewrite_cross_bb_scalar_dependence): Likewise.  Use copy_ssa_name.
10583 2012-08-07  Richard Guenther  <rguenther@suse.de>
10585         * tree-dfa.c (set_ssa_default_def): Clear the SSA_NAME_DEFAULT_DEF
10586         bit of the old name when we clear the slot.
10587         * tree-ssa-live.c (remove_unused_locals): Release any default
10588         def associated with an unused var.
10589         * tree-ssa-copy.c (may_propagate_copy_into_asm): Always return true.
10591 2012-08-07  Richard Guenther  <rguenther@suse.de>
10593         * tree-into-ssa.c (rewrite_stmt): Remove clobbers for variables
10594         we rewrite into SSA form.
10595         (rewrite_enter_block): Adjust.
10596         * gimple-iterator.c (gsi_replace): Also allow replacement with
10597         a stmt without a lhs.
10598         * tree-ssa-live.c (remove_unused_locals): Remove code handling
10599         clobbers of SSA names.
10600         * tree-nested.c (convert_local_reference_stmt): Remove clobbers
10601         for variables we access through the local chain.
10602         * tree-cfg.c (verify_gimple_assign_single): Verify clobbers
10603         clobber full decls only.
10605 2012-08-07  Richard Guenther  <rguenther@suse.de>
10607         * gimple.h (gimple_phi_set_result): Adjust SSA_NAME_DEF_STMT.
10608         * tree-phinodes.c (make_phi_node): Allow a NULL var.
10609         * tree-into-ssa.c (insert_phi_nodes_for): Simplify.
10610         * tree-complex.c (update_phi_components): Likewise.
10611         * tree-ssa-loop-manip.c (create_iv): Likewise.
10612         (add_exit_phis_edge): Likewise.
10613         (split_loop_exit_edge): Likewise.
10614         (tree_transform_and_unroll_loop): Likewise.
10615         * value-prof.c (gimple_ic): Likewise.
10616         (gimple_stringop_fixed_value): Likewise.
10617         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
10618         * omp-low.c (expand_parallel_call): Likewise.
10619         (expand_omp_for_static_chunk): Likewise.
10620         (expand_omp_atomic_pipeline): Likewise.
10621         * tree-parloops.c (create_phi_for_local_result): Likewise.
10622         (transform_to_exit_first_loop): Likewise.
10623         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
10624         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
10625         * tree-predcom.c (initialize_root_vars): Likewise.
10626         (initialize_root_vars_lm): Likewise.
10627         * sese.c (sese_add_exit_phis_edge): Likewise.
10628         * gimple-streamer-in.c (input_phi): Likewise.
10629         * tree-inline.c (copy_phis_for_bb): Likewise.
10630         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
10631         * tree-cfg.c (gimple_make_forwarder_block): Likewise.
10632         (gimple_duplicate_bb): Likewise.
10634 2012-08-07  Nick Clifton  <nickc@redhat.com>
10636         * config/mn10300/mn10300.c (mn10300_expand_prologue): Report
10637         stack usage if requested.
10639 2012-08-06  Cary Coutant  <ccoutant@google.com>
10641         * cgraphunit.c (assemble_thunk): Add source line info.
10642         * final.c (final): Check for non-null cfg pointer.
10644 2012-08-06  Sandra Loosemore  <sandra@codesourcery.com>
10645             Maxim Kuvyrkov  <maxim@codesourcery.com>
10646             Julian Brown  <julian@codesourcery.com>
10648         * config/mips/24k.md (r24k_unknown_store): Delete special handling
10649         for cprestore.
10650         (r24k_int_load, r24k_int_arith, r24k_int_mul3, r24k_int_mfhilo)
10651         (r24k_int_cop, r24k_int_multi)
10652         (r24kf2_1_fcvt_f2i, r24kf2_1_fxfer)
10653         (r24kf1_1_fcvt_f2i, r24kf1_1_fxfer): Use mips_store_data_bypass_p
10654         instead of store_data_bypass_p.
10655         * config/mips/74k.md (r74k_int_store): Delete special handling for
10656         cprestore.
10657         (r74k_int_load, r74k_int_logical, r74k_int_arith, r74k_int_cmove):
10658         Use mips_store_data_bypass_p instead of store_data_bypass_p.
10660 2012-08-06  Marc Glisse  <marc.glisse@inria.fr>
10662         PR tree-optimization/51938
10663         PR tree-optimization/52005
10664         * tree-ssa-ifcombine.c (ifcombine_ifandif): New parameters for
10665         inverted conditions.
10666         (ifcombine_iforif): Remove, merge code into ifcombine_ifandif.
10667         (tree_ssa_ifcombine_bb): Update calls to the above. Detect !a&&b
10668         and !a||b patterns.
10670 2012-08-06  Olivier Hainque  <hainque@adacore.com>
10672         * tree-emutls.c (new_emutls_decl): When a var_section is requested by
10673         the target, attach the new decl to that, not to the template section.
10675 2012-08-06  Tom de Vries  <tom@codesourcery.com>
10677         * tree-switch-conversion.c (emit_case_bit_tests): Generate MINUS_EXPR in
10678         unsigned type.
10680 2012-08-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
10682         * doc/invoke.texi: Document AMD btver2.
10683         * doc/extend.texi: Document AMD btver1 and btver2.
10685 2012-08-04  Sandra Loosemore  <sandra@codesourcery.com>
10686             Richard Sandiford  <rdsandiford@googlemail.com>
10688         * config/mips/mips.c (mips_option_override): Check -fpic
10689         for compatibility with -mabicalls and ABI.
10691 2012-08-04  Catherine Moore  <clm@codesourcery.com>
10692             Sandra Loosemore  <sandra@codesourcery.com>
10694         * config/mips/xlr.md (ir_xlr_alu_clz): New insn_reservation.
10695         (ir_xlr_alu): Remove clz.
10696         * config/mips/mips-cpus.def (xlr): Set PTF_AVOID_BRANCHLIKELY.
10698 2012-08-04  Richard Earnshaw  <rearnsha@arm.com>
10700         * arm.c (arm_gen_constant): Use SImode when preparing operands for
10701         gen_extzv_t2.
10703 2012-08-04  Uros Bizjak  <ubizjak@gmail.com>
10705         * config/i386/i386.h (QI_REGNO_P): New define.
10706         (ANY_QI_REGNO_P): Ditto.
10707         (GENERAL_REGNO_P): Use IN_RANGE macro.
10708         (QI_REG_P): Use QI_REGNO_P.
10709         (ANY_QI_REG_P): Use GENERAL_REGNO_P and QI_REGNO_P.
10710         (HARD_REGNO_CALLER_SAVE_MODE): Use QI_REGNO_P.
10711         * config/i386/i386.c (ix86_hard_regno_mode_ok): Ditto.
10712         (x86_extended_QIreg_mentioned_p): Ditto.  Also check if
10713         register is a general register.
10715 2012-08-03  Uros Bizjak  <ubizjak@gmail.com>
10717         * config/i386/sync.md (*atomic_fetch_add_cmp<mode>): Use
10718         incdec_operand predicate to return INC or DEC insn mnemonic.
10719         Add %K operand modifier.
10720         (atomic_add<mode>): Use incdec_operand predicate to
10721         return INC or DEC insn mnemonic.
10722         (atomic_dec<mode>): Ditto.
10724 2012-08-03  Michael Matz  <matz@suse.de>
10726         PR tree-optimization/54146
10727         * cfgexpand.c (add_scope_conflicts_1): Use bitmap_ior_into.
10728         (add_scope_conflicts): Iterate in RPO order.
10729         (add_stack_protection_conflicts): Iterate over the other triangle.
10730         (fini_vars_expansion): Clear stack_vars_sorted.
10732 2012-08-03  Marc Glisse  <marc.glisse@inria.fr>
10734         PR tree-optimization/30318
10735         * double-int.c (mul_double_wide_with_sign): New function.
10736         (mul_double_with_sign): Call the new function.
10737         * double-int.h (mul_double_wide_with_sign): Declare the new function.
10738         * tree-vrp.c (extract_range_from_binary_expr_1) [MULT_EXPR]:
10739         Handle integer types that wrap on overflow.
10740         (quad_int_cmp): New helper function.
10741         (quad_int_pair_sort): Likewise.
10743 2012-08-03  Richard Guenther  <rguenther@suse.de>
10745         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Query
10746         is_gimple_reg on the SSA name, not its variable.
10747         (vect_update_ivs_after_vectorizer): Likewise.
10748         * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
10749         * tree-if-conv.c (if_convertible_phi_p): Likewise.
10750         (predicate_scalar_phi): Likewise.
10751         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Likewise.
10752         (vect_analyze_scalar_cycles_1): Likewise.
10753         * tree-ssa-live.c (register_ssa_partition_check): Likewise.
10754         * tree-outof-ssa.c (eliminate_useless_phis): Likewise.
10755         * tree-ssa-reassoc.c (phi_rank): Likewise.
10756         * tree-parloops.c (separate_decls_in_region_name): Use
10757         replace_ssa_name_symbol.
10758         * tree-predcom.c (base_names_in_chain_on): Likewise.
10759         * matrix-reorg.c (update_type_size): Query the type of the SSA name,
10760         not its variable.
10761         * gimple-ssa-strength-reduction.c (create_mul_ssa_cand): Likewise.
10762         (create_mul_imm_cand): Likewise.
10763         (create_add_ssa_cand): Likewise.
10764         (create_add_imm_cand): Likewise.
10765         (slsr_process_add): Likewise.
10766         * tree-inline.c (remap_ssa_name): Do not set the type of the
10767         new SSA_NAME.
10768         * tree-ssa-structalias.c (get_constraint_for_ssa_var): Clarify assert.
10769         Check for default def first.
10771 2012-08-04  Steven Bosscher  <steven@gcc.gnu.org>
10773         * cfgrtl.c (print_rtl_with_bb): Do not print a newline between insns.
10775         * sched-vis.c (print_pattern): Handle SEQUENCE also.
10777 2012-08-02  Richard Henderson  <rth@redhat.com>
10779         Revert:
10780         PR 34548
10781         * function.h (struct rtl_data): Add max_dynamic_stack_alignment.
10782         * cfgexpand.c (gimple_expand_cfg): Initialise it.
10783         * explow.c (allocate_dynamic_stack_space): Set it.  Simplify
10784         alignment requirements given the known alignment of dynamic_offset.
10785         * function.c (instantiate_virtual_regs): Align dtnamic_offset.
10787 2012-08-02  Kenneth Zadeck <zadeck@naturalbridge.com>
10789         * cfgexpand.c (expand_debug_locations):  Encapsulate test for
10790         CONST_DOUBLE in macro.
10791         * combine.c (try_combine, gen_lowpart_for_combine): Ditto.
10792         * cprop.c (implicit_set_cond_p): Ditto.
10793         * cselib.c (rtx_equal_for_cselib_1): Ditto.
10794         * expmed.c (expand_mult): Ditto.
10795         * expr.c (convert_modes): Ditto.
10796         * ira-costs.c (record_reg_classes): Ditto.
10797         * ira-lives.c (single_reg_class): Ditto.
10798         * optabs.c (expand_copysign_absneg, expand_copysign): Ditto.
10799         * print-rtl.c (print_rtx): Ditto.
10800         * recog.c (simplify_while_replacing, const_double_operand)
10801         (asm_operand_ok, constrain_operands): Ditto.
10802         * reg-stack.c (subst_stack_regs_pat): Ditto.
10803         * reload.c (find_reloads, find_equiv_reg): Ditto.
10804         * rtlanal.c (replace_rtx): Remove test.
10805         * rtlanal.c (constant_pool_constant_p, split_double): Encapsulate
10806         test for CONST_DOUBLE in macro.
10807         * simplify-rtx.c (mode_signbit_p, avoid_constant_pool_reference)
10808         (simplify_unary_operation_1, simplify_const_unary_operation)
10809         (simplify_binary_operation_1, simplify_const_binary_operation)
10810         (simplify_relational_operation_1)
10811         (simplify_const_relational_operations)
10812         (implify_subreg): Ditto.
10813         * varasm.c (output_constant_pool_2): Ditto.
10814         * rtl.h (CONST_DOUBLE_AS_INT_P, CONST_DOUBLE_AS_FLOAT_P): New macros.
10815         * rtl.def (CONST_DOUBLE):  Updated comments.
10817 2012-08-02  Richard Sandiford  <rdsandiford@googlemail.com>
10819         PR target/51931
10820         * config/mips/mips-protos.h (mips_strip_unspec_address): Declare.
10821         * config/mips/mips.c (mips_strip_unspec_address): Make extern.
10822         (mips16_rewrite_pool_constant): Make a copy of the pool constant
10823         before adding to a PC-relative table.
10824         (mips16_lay_out_constants): Add a SPLIT_P parameter.
10825         (mips16_load_branch_target, mips16_split_long_branches): New functions.
10826         (mips_reorg): Update call to mips16_lay_out_constants.
10827         Call mips16_split_long_branches.
10828         * config/mips/predicates.md (pc_or_label_operand): Delete.
10829         * config/mips/mips.md (length): Add a calculation for MIPS16 branches.
10830         Move the extended_mips16 handling further down.
10831         (*branch_equality<mode>_mips16): Replace use pc_or_label_operand
10832         with explicit label_ref and pc.  Follow the usual operand numbering.
10833         (*branch_equality<mode>_mips16_inverted): New pattern.
10834         (*jump_mips16): Add length attribute.
10835         (indirect_jump_and_restore_<mode>): New pattern.
10836         (consttable_int): Call mips_strip_unspec_address on the operand.
10838 2012-08-02  Richard Sandiford  <rdsandiford@googlemail.com>
10840         * recog.c (split_insn): Copy the original SET_SRC before using
10841         it as a note.
10843 2012-08-02  Richard Sandiford  <rdsandiford@googlemail.com>
10845         * reorg.c (dbr_schedule): Delete REG_BR_PRED loop.
10847 2012-08-02  Marc Glisse  <marc.glisse@inria.fr>
10849         PR tree-optimization/53805
10850         * fold-const.c (invert_tree_comparison): Invert ORDERED_EXPR and
10851         UNORDERED_EXPR even for trapping floating point.
10853 2012-08-02  H.J. Lu  <hongjiu.lu@intel.com>
10855         PR middle-end/53321
10856         PR middle-end/53865
10857         * ipa-inline-analysis.c (inline_free_summary): Return if
10858         inline_edge_summary_vec is NULL.
10860         * ipa-split.c (execute_split_functions): Check if a function
10861         is inlinable only if inline_edge_summary_vec != NULL.
10863         * ipa.c (symtab_remove_unreachable_nodes): Restore
10864         cgraph_propagate_frequency call when something was changed.
10865         (free_inline_summary): New function.
10866         (pass_ipa_free_inline_summary): New pass.
10868         * passes.c (init_optimization_passes): Add
10869         pass_ipa_free_inline_summary before pass_ipa_tree_profile.
10871         * timevar.def (TV_IPA_FREE_INLINE_SUMMARY): New.
10873         * tree-pass.h (pass_ipa_free_inline_summary): New.
10875 2012-08-02  Richard Earnshaw  <rearnsha@arm.com>
10877         * arm.c (arm_gen_constant): Use UBFX for some AND operations when
10878         available.
10880 2012-08-02  Richard Guenther  <rguenther@suse.de>
10882         * tree-into-ssa.c (struct common_info_d): New struct.
10883         (struct var_info_d, struct ssa_name_info): Use it.
10884         (get_ssa_name_ann): Adjust.
10885         (get_phi_state, set_phi_state): Remove.
10886         (get_common_info): New function.
10887         (get_current_def, set_current_def): Adjust.
10888         (get_def_blocks_for): Take a common info as param.
10889         (set_def_block): Call get_common_info once.
10890         (set_livein_block): Likewise.
10891         (find_def_blocks_for): Adjust.
10892         (insert_phi_nodes): Likewise.
10893         (register_new_def): Call get_common_info once.
10894         (get_reaching_def): Likewise.
10895         (rewrite_debug_stmt_uses): Likewise.
10896         (rewrite_leave_block): Likewise.
10897         (dump_currdefs): Likewise.
10898         (debug_var_infos_r): Adjust.
10899         (register_new_update_single): Call get_common_info once.
10900         (maybe_replace_use_in_debug_stmt): Likewise.
10901         (rewrite_update_leave_block): Likewise.
10902         (mark_use_interesting): Adjust.
10903         (create_new_def_for): Likewise.
10904         (update_ssa): Likewise.
10906 2012-08-02  Michael Matz  <matz@suse.de>
10908         * tree-ssa-live.c (set_is_used): Return a bool.
10909         (mark_all_vars_used): Don't take data argument.
10910         (mark_all_vars_used_1): Adjust calls to above, merge handling
10911         of local and global vars.
10912         (remove_unused_scope_block_p): Don't take global_unused_vars,
10913         merge handling of local and global vars.
10914         (remove_unused_locals): Don't allocate/fill/pass global_unused_vars,
10915         use is_used_p for local and global vars.
10917 2012-08-02  Richard Guenther  <rguenther@suse.de>
10919         * tree-flow.h (make_rename_temp): Remove.
10920         * tree-dfa.c (make_rename_temp): Likewise.
10921         * cgraphunit.c (thunk_adjust, assemble_thunk): Use create_tmp_reg
10922         instead of make_rename_temp.
10923         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
10924         expand_omp_atomic_pipeline): Likewise.
10925         * trans-mem.c (tm_log_emit_save_or_restores, build_tm_load,
10926         build_tm_store, expand_call_tm, expand_transaction,
10927         ipa_tm_insert_gettmclone_call): Likewise.
10928         * tree-complex.c (expand_complex_div_wide): Likewise.
10929         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
10930         Likewise.
10931         * tree-ssa-loop-im.c (execute_sm_if_changed_flag_set, execute_sm):
10932         Likewise.
10933         * tree-ssa-math-opts.c (insert_reciprocals): Likewise.
10934         * value-prof.c (gimple_divmod_fixed_value, gimple_mod_pow2,
10935         gimple_mod_subtract): Likewise.
10937 2012-08-02  Richard Guenther  <rguenther@suse.de>
10939         * tree-flow.h (set_default_def): Rename to ...
10940         (set_ssa_default_def): ... this.  Take a struct function argument.
10941         (gimple_default_def): Rename to ...
10942         (ssa_default_def): ... this.
10943         (get_or_create_ssa_default_def): New function.
10944         * tree-dfa.c: Likewise.
10945         (dump_variable): Adjust.
10946         * ipa-prop.c (ipa_analyze_params_uses): Adjust, properly check
10947         for used parameters.
10948         * ipa-split.c (consider_split): Adjust, avoid repeated default-def
10949         lookups.
10950         (split_function): Likewise.
10951         * lto-streamer-in.c (input_ssa_names): Adjust.
10952         * omp-low.c (expand_omp_taskreg): Likewise.
10953         * tree-cfg.c (replace_ssa_name): Adjust, no need to push/pop cfun.
10954         * tree-complex.c (init_parameter_lattice_values): Adjust.
10955         (get_component_ssa_name): Likewise.
10956         (update_parameter_components): Likewise.
10957         * tree-inline.c (remap_ssa_name): Likewise.
10958         (setup_one_parameter): Likewise.
10959         (initialize_inlined_parameters): Likewise.
10960         (declare_return_variable): Likewise.
10961         (expand_call_inline): Likewise.
10962         (tree_function_versioning): Likewise.
10963         * tree-into-ssa.c (get_default_def_for): Remove.
10964         (get_reaching_def): Use get_or_create_ssa_default_def instead.
10965         * tree-predcom.c (replace_ref_with): Adjust.
10966         * tree-sra.c (get_repl_default_def_ssa_name): Likewise.
10967         (is_unused_scalar_param): Likewise.
10968         (ptr_parm_has_direct_uses): Likewise.
10969         (sra_ipa_reset_debug_stmts): Likewise.
10970         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust.
10971         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
10972         * tree-ssa-live.c (verify_live_on_entry): Likewise.
10973         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise,
10974         avoid repeated default def lookups.
10975         * tree-ssa-sccvn.c (run_scc_vn): Likewise.
10976         * tree-tailcall.c (arg_needs_copy_p): Adjust.
10977         (tree_optimize_tail_calls_1): Likewise.
10979 2012-08-02  Richard Guenther  <rguenther@suse.de>
10981         PR tree-optimization/50672
10982         Revert
10983         2012-08-01  Richard Guenther  <rguenther@suse.de>
10985         * tree-ssa-tail-merge.c (release_last_vdef): Remove.
10986         (replace_block_by): Adjust.
10988 2012-08-02  Richard Guenther  <rguenther@suse.de>
10990         * tree-dfa.c (referenced_var_lookup): Remove.
10991         (find_referenced_vars): Remove.
10992         (pass_referenced_vars): Likewise.
10993         (make_rename_temp): Do not add referenced vars.
10994         (dump_referenced_vars): Remove.
10995         (debug_referenced_vars): Likewise.
10996         (dump_dfa_stats): Do not dump referenced var stats.
10997         (find_vars_r): Remove.
10998         (find_referenced_vars_in): Likewise.
10999         (referenced_var_check_and_insert): Likewise.
11000         (add_referenced_var_1): Likewise.
11001         (remove_referenced_var): Likewise.
11002         * tree-flow.h (referenced_var_lookup): Likewise.
11003         (struct gimple_df): Remove referenced_vars member.
11004         (typedef referenced_var_iterator): Remove.
11005         (FOR_EACH_REFERENCED_VAR): Likewise.
11006         (num_referenced_vars): Likewise.
11007         (debug_referenced_vars, dump_referenced_vars): Likewise.
11008         (add_referenced_var_1, add_referenced_var): Likewise.
11009         (remove_referenced_var): Likewise.
11010         (find_referenced_vars_in): Likewise.
11011         * tree-flow-inline.h (gimple_referenced_vars): Remove.
11012         (first_referenced_var): Likewise.
11013         (end_referenced_vars_p): Likewise.
11014         (next_referenced_var): Likewise.
11015         * cfgexpand.c (update_alias_info_with_stack_vars): Remove assert.
11016         * gimple-pretty-print.c (pp_points_to_solution): Dump UIDs
11017         unconditionally.
11018         * tree-into-ssa.c (dump_decl_set): Likewise.
11019         (pass_build_ssa): Do not require PROP_referenced_vars.
11020         * tree-ssa.c (target_for_debug_bind): Virtual operands are
11021         not suitable, but all register type vars are.
11022         (init_tree_ssa): Do not allocate referenced vars.
11023         (delete_tree_ssa): Do not free referenced vars.
11024         * cgraphunit.c (init_lowered_empty_function): Do not set
11025         PROP_referenced_vars.
11026         (assemble_thunk): Do not add referenced vars.
11027         * gimple-fold.c (canonicalize_constructor_val): Likewise.
11028         (gimplify_and_update_call_from_tree): Likewise.
11029         * gimple-streamer-in.c (input_bb): Likewise.
11030         * passes.c (init_optimization_passes): Do not run
11031         pass_referenced_vars.
11032         (dump_properties): Do not dump PROP_referenced_vars.
11033         * tree-inline.c (remap_decl): Do not add referenced vars.
11034         (remap_gimple_op_r): Likewise.
11035         (copy_tree_body_r): Likewise.
11036         (copy_bb): Likewise.
11037         (setup_one_parameter): Likewise.
11038         (declare_return_variable): Likewise.
11039         (copy_decl_for_dup_finish): Likewise.
11040         (copy_arguments_for_versioning): Likewise.
11041         (tree_function_versioning): Likewise.
11042         * tree-pass.h (PROP_referenced_vars): Remove.
11043         (pass_referenced_vars): Likewise.
11044         * tree-profile.c (gimple_gen_edge_profiler): Do not add
11045         referenced vars.
11046         (gimple_gen_interval_profiler): Likewise.
11047         (gimple_gen_pow2_profiler): Likewise.
11048         (gimple_gen_one_value_profiler): Likewise.
11049         (gimple_gen_ic_profiler): Likewise.
11050         (gimple_gen_average_profiler): Likewise.
11051         (gimple_gen_ior_profiler): Likewise.
11052         * tree-ssa-live.c (remove_unused_locals): Do not touch referenced vars.
11053         * tree-cfg.c (replace_ssa_name): Do not add referenced vars.
11054         (move_stmt_op): Likewise.
11055         * tree-ssa-operands.c (create_vop_var): Likewise.
11056         * gimple-low.c (record_vars_into): Likewise.
11057         * gimplify.c (gimple_regimplify_operands): Likewise.
11058         (force_gimple_operand_1): Likewise.
11059         * omp-low.c (expand_omp_for_generic): Likewise.
11060         (expand_omp_for_static_chunk): Likewise.
11061         (expand_omp_atomic_pipeline): Likewise.
11062         * graphite-clast-to-gimple.c (graphite_create_new_loop): Likewise.
11063         (translate_clast_assignment): Likewise.
11064         * graphite-sese-to-poly.c (create_zero_dim_array): Likewise.
11065         (handle_scalar_deps_crossing_scop_limits): Likewise.
11066         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
11067         * ipa-split.c (split_function): Likewise.
11068         * matrix-reorg.c (transform_access_sites): Likewise.
11069         * trans-mem.c (tm_log_add): Likewise.
11070         (ipa_tm_insert_gettmclone_call): Likewise.
11071         * tree-complex.c (create_one_component_var): Likewise.
11072         * tree-if-conv.c (ifc_temp_var): Likewise.
11073         * tree-parloops.c (take_address_of): Likewise.
11074         (initialize_reductions): Likewise.
11075         (separate_decls_in_region_name): Likewise.
11076         (create_call_for_reduction_1): Likewise.
11077         (separate_decls_in_region): Likewise.
11078         * tree-predcom.c (predcom_tmp_var): Likewise.
11079         (reassociate_to_the_same_stmt): Likewise.
11080         * tree-sra.c (build_ref_for_offset): Likewise.
11081         (create_access_replacement): Likewise.
11082         (get_replaced_param_substitute): Likewise.
11083         (sra_ipa_reset_debug_stmts): Likewise.
11084         * tree-ssa-loop-im.c (rewrite_reciprocal): Likewise.
11085         (rewrite_bittest): Likewise.
11086         * tree-ssa-loop-ivopts.c (create_new_iv): Likewise.
11087         * tree-ssa-loop-manip.c (create_iv): Likewise.
11088         (tree_transform_and_unroll_loop): Likewise.
11089         * tree-ssa-math-opts.c (powi_as_mults): Likewise.
11090         (build_and_insert_call): Likewise.
11091         (gimple_expand_builtin_cabs): Likewise.
11092         (execute_optimize_bswap): Likewise.
11093         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
11094         (abs_replacement): Likewise.
11095         (cond_store_replacement): Likewise.
11096         (cond_if_else_store_replacement_1): Likewise.
11097         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
11098         * tree-ssa-pre.c (get_representative_for): Likewise.
11099         (create_expression_by_pieces): Likewise.
11100         (insert_into_preds_of_block): Likewise.
11101         * tree-ssa-propagate.c (update_call_from_tree): Likewise.
11102         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
11103         (eliminate_redundant_comparison): Likewise.
11104         (rewrite_expr_tree_parallel): Likewise.
11105         (get_reassoc_pow_ssa_name): Likewise.
11106         * tree-ssa-strlen.c (get_string_length): Likewise.
11107         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
11108         (build_arrays): Likewise.
11109         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
11110         (create_tailcall_accumulator): Likewise.
11111         * tree-vect-data-refs.c (vect_get_new_vect_var): Likewise.
11112         (vect_create_addr_base_for_vector_ref): Likewise.
11113         (vect_permute_store_chain): Likewise.
11114         (vect_permute_load_chain): Likewise.
11115         * tree-vect-generic.c (expand_vector_divmod): Likewise.
11116         * tree-vect-loop-manip.c (set_prologue_iterations): Likewise.
11117         (vect_build_loop_niters): Likewise.
11118         (vect_generate_tmps_on_preheader): Likewise.
11119         (vect_update_ivs_after_vectorizer): Likewise.
11120         (vect_gen_niters_for_prolog_loop): Likewise.
11121         (vect_do_peeling_for_alignment): Likewise.
11122         (vect_create_cond_for_align_checks): Likewise.
11123         * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
11124         (vect_handle_widen_op_by_const): Likewise.
11125         (vect_operation_fits_smaller_type): Likewise.
11126         (vect_recog_over_widening_pattern): Likewise.
11127         * tree-vect-stmts.c (vect_init_vector): Likewise.
11129 2012-08-01  Alexandre Oliva  <aoliva@redhat.com>
11131         PR debug/52983
11132         * valtrack.c (dead_debug_insert_temp): Use cleanup_auto_inc_dec.
11134 2012-08-01  Alexandre Oliva  <aoliva@redhat.com>
11136         PR debug/52983
11137         * valtrack.c (cleanup_auto_inc_dec): Implement unconditionally,
11138         falling back to copy_rtx on non-autoinc machines.
11139         (propagate_for_debug_subst): Always use cleanup_auto_inc_dec.
11141 2012-08-01  Alexandre Oliva  <aoliva@redhat.com>
11143         PR debug/52983
11144         * valtrack.h, valtrack.c: New.
11145         * Makefile.in (VALTRACK_H): New.
11146         (OBJS): Add valtrack.o.
11147         (valtrack.o): New.
11148         (cselib.o, dce.o, df-problems.o, combine.o): Add VALTRACK_H.
11149         * combine.c: Include valtrack.h.
11150         (make_compound_operation): Publish.
11151         (cleanup_auto_inc_dec): Move to valtrack.c.
11152         (struct rtx_subst_pair, propagate_for_debug_subst): Likewise.
11153         (propagate_for_debug): Likewise.  Add this_basic_block parameter.
11154         Adjust all callers.
11155         * cselib.c: Include valtrack.h.
11156         * dce.c: Likewise.
11157         * df-problems.c: Likewise.
11158         (dead_debug_init, dead_debug_reset_uses): Move to valtrack.c.
11159         (dead_debug_finish, dead_debug_add): Likewise.
11160         (dead_debug_insert_temp): Likewise.
11161         * df.h (struct dead_debug_use): Move to valtrack.h.
11162         (struct dead_debug, enum debug_temp_where): Likewise.
11163         (dead_debug_init, dead_debug_reset_uses): Move to valtrack.h.
11164         (dead_debug_finish, dead_debug_add): Likewise.
11165         (dead_debug_insert_temp): Likewise.
11166         * rtl.h (make_compound_operation): Declare.
11168 2012-08-01  Catherine Moore  <clm@codesourcery.com>
11169             Sandra Loosemore  <sandra@codesourcery.com>
11171         * config/mips/mips-cpus.def (34kn): New.
11172         * config/mips/mips.h (MIPS_ARCH_FLOAT_SPEC): Add 34kn.
11173         (BASE_DRIVER_SELF_SPECS): Do not imply -mdsp for the 34kn.
11174         * config/mips/mips-tables.opt: Regenerate.
11175         * doc/invoke.texi (MIPS Options): Document -march=34kn.
11177 2012-08-01  Richard Henderson  <rth@redhat.com>
11179         * expmed.h (NUM_MODE_PARTIAL_INT): New.
11180         (NUM_MODE_VECTOR_INT, NUM_MODE_IP_INT, NUM_MODE_IPV_INT): New.
11181         (struct expmed_op_cheap): Size one array on NUM_MODE_IPV_INT.
11182         (struct expmed_op_costs): Likewise.
11183         (struct target_expmed): Size x_convert_cost on NUM_MODE_IP_INT.
11184         (expmed_mode_index): New.
11185         (expmed_op_cheap_ptr, expmed_op_cost_ptr): Use expmed_mode_index.
11186         (convert_cost_ptr): Likewise.
11187         * expmed.c (struct init_expmed_rtl): Rename convert to trunc.
11188         (init_expmed_one_conv): Split out from ...
11189         (init_expmed_one_mode): ... here.  Iterate conversions over
11190         partial integer modes too.
11191         (init_expmed): Iterate over partial integer modes too.
11193 2012-08-01  Richard Henderson  <rth@redhat.com>
11195         * config/m32c/m32c.c (TARGET_INIT_LIBFUNCS): Remove.
11196         (m32c_init_libfuncs): Remove.
11197         * config/m32c/cond.md (cstore<QHPSI>4_16): Rename from cstore<QHPSI>4.
11198         (cstore<QHPSI>4): New expander.
11200 2012-08-01  Richard Guenther  <rguenther@suse.de>
11202         * tree-flow-inline.h (referenced_var): Remove.
11203         * tree-ssa-coalesce.c (create_outofssa_var_map): Remove duplicate
11204         checking code.
11205         * tree-sra.c (candidates): New global hashtable.
11206         (candidate): New function.
11207         (sra_initialize): Initialize candidates.
11208         (sra_deinitialize): Free candidates.
11209         (disqualify_candidate): Remove candidate from candidates.
11210         (maybe_add_sra_candidate): New function.
11211         (find_var_candidates): Walk over all local decls and parameters,
11212         add candidates to candidates hashtable.
11213         (find_param_candidates): Add candidates to candidates hashtable.
11214         (analyze_all_variable_accesses): Use candidate instead of
11215         referenced_var.
11217 2012-08-01  Tom de Vries  <tom@codesourcery.com>
11219         * tree-vrp.c (find_case_label_ranges): New function.
11220         (vrp_visit_switch_stmt, simplify_switch_using_ranges): Use
11221         find_case_label_ranges instead of find_case_label_range.  Handle second
11222         range.
11224 2012-08-01  Michael Matz  <matz@suse.de>
11226         * tree-complex.c (init_parameter_lattice_values): Don't call var_ann.
11227         * tree-dfa.c (struct dfa_stats_d): Remove num_var_anns member.
11228         (dump_dfa_stats): Don't dump stats about var anns.
11229         (collect_dfa_stats): Don't collect them.
11230         (add_referenced_var_1): Don't set var annotation pointers.
11231         (remove_referenced_var): Ditto, and only remove it it's in the
11232         hash table.
11234         * tree-flow-inline.h (var_ann): Remove.
11235         * tree-flow.h (struct var_ann_d, var_ann_t): Remove.
11237         * tree-inline.c (remapped_type): Remove.
11238         (can_be_nonlocal): Most variable will be considered live here,
11239         return false earlier.
11240         (remap_decls): Don't call var_ann, all variables will be considered
11241         referenced here.
11242         (copy_debug_stmt): Ditto, and use is_global_var.
11244         * tree-into-ssa.c (rewrite_debug_stmt_uses): Use get_current_def to
11245         determine if a variable was referred to, not var_ann.
11246         * tree-ssa-live.c (remove_unused_scope_block_p): Don't check var_ann.
11247         (remove_unused_locals): Ditto.
11248         * tree-ssa.c (delete_tree_ssa): Don't free/clear var ann pointers.
11249         * tree-tailcall.c (arg_needs_copy_p): Don't check var_ann.
11250         * tree.c (copy_node_stat): Don't clear var ann pointer.
11251         * tree.h (tree_result_decl, tree_parm_decl, tree_var_decl): Remove
11252         ann member.
11253         (DECL_VAR_ANN_PTR): Remove.
11255 2012-08-01  Michael Matz  <matz@suse.de>
11257         * tree-flow.h (struct var_ann_d): Rename used member.
11258         (set_is_used): Don't declare.
11259         * tree-flow-inline.h (clear_is_used): Remove.
11260         (set_is_used, is_used_p): Move to ...
11261         * tree-ssa-live.c (set_is_used, is_used_p): ... here, and use
11262         on the side bitmap.
11263         (usedvars): New bitmap.
11264         (dump_scope_block): Don't dump unusedness.
11265         (remove_unused_locals): Allocate and free usedvars.
11266         * tree-nrv.c (tree_nrv): Don't clear used flags here.
11268 2012-08-01  Michael Matz  <matz@suse.de>
11270         * tree-flow.h (struct var_ann_d): Remove base_var_processed and
11271         base_index members.
11272         * tree-ssa-live.h (struct _var_map): Remove basevars member.
11273         (VAR_ANN_BASE_INDEX): Remove.
11274         * tree-ssa-live.c (var_map_base_init): Use a hash table instead
11275         of var annotation to compress index space.  Don't deal with above
11276         removed members.
11277         (var_map_base_fini): Don't free basevars.
11278         (init_var_map): Don't clear basevars.
11280 2012-08-01  Bill Schmidt  <wschmidt@linux.ibm.com>
11282         * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Change
11283         base_name to base_expr.
11284         (struct cand_chain_d): Likewise.
11285         (base_cand_hash): Likewise.
11286         (base_cand_eq): Likewise.
11287         (record_potential_basis): Likewise.
11288         (alloc_cand_and_find_basis): Likewise.
11289         (create_mul_ssa_cand): Likewise.
11290         (create_mul_imm_cand): Likewise.
11291         (create_add_ssa_cand): Likewise.
11292         (create_add_imm_cand): Likewise.
11293         (slsr_process_cast): Likewise.
11294         (slsr_process_copy): Likewise.
11295         (dump_candidate): Likewise.
11296         (base_cand_dump_callback): Likewise.
11297         (unconditional_cands_with_known_stride_p): Likewise.
11298         (cand_increment): Likewise.
11300 2012-08-01  Bill Schmidt  <wschmidt@linux.ibm.com>
11302         PR tree-optimization/46556
11303         * gimple-ssa-strength-reduction.c (enum cand_kind): Add CAND_REF.
11304         (base_cand_map): Change to hash table.
11305         (base_cand_hash): New function.
11306         (base_cand_free): Likewise.
11307         (base_cand_eq): Likewise.
11308         (lookup_cand): Change base_cand_map to hash table.
11309         (find_basis_for_candidate): Likewise.
11310         (base_cand_from_table): Exclude CAND_REF.
11311         (restructure_reference): New function.
11312         (slsr_process_ref): Likewise.
11313         (find_candidates_in_block): Call slsr_process_ref.
11314         (dump_candidate): Handle CAND_REF.
11315         (base_cand_dump_callback): New function.
11316         (dump_cand_chains): Change base_cand_map to hash table.
11317         (replace_ref): New function.
11318         (replace_refs): Likewise.
11319         (analyze_candidates_and_replace): Call replace_refs.
11320         (execute_strength_reduction): Change base_cand_map to hash table.
11322 2012-08-01  Uros Bizjak  <ubizjak@gmail.com>
11324         * config/i386/i386.c (ix86_address_subreg_operand): Reject
11325         stack pointer.
11326         (ix86_print_operand_address): Assert that parts.base and parts.index
11327         are non-NULL after call to simplify_subreg.
11329 2012-08-01  Richard Guenther  <rguenther@suse.de>
11331         * doc/tree-ssa.texi: Remove pieces mentioning mark_sym_for_renaming.
11333 2012-08-01  Richard Guenther  <rguenther@suse.de>
11335         * graphite-clast-to-gimple.c (translate_clast_user): Rename
11336         virtual operands.
11337         * sese.c (graphite_copy_stmts_from_block): Do not rename virtual
11338         operands here.
11339         * tree-call-cdce.c (tree_call_cdce): Use
11340         mark_virtual_operands_for_renaming.
11341         * tree-eh.c (sink_clobbers): Simplify.
11342         * tree-flow.h (mark_sym_for_renaming): Remove.
11343         (mark_virtual_operands_for_renaming): New function.
11344         * tree-if-conv.c (tree_if_conversion): Use
11345         mark_virtual_operands_for_renaming.
11346         * tree-inline.c (update_ssa_across_abnormal_edges): Likewise.
11347         * tree-into-ssa.c (mark_sym_for_renaming): Remove.
11348         (mark_virtual_operands_for_renaming): New function.
11349         * tree-loop-distribution.c (tree_loop_distribution): Use
11350         mark_virtual_operands_for_renaming.
11351         * tree-ssa-dce.c (mark_virtual_operand_for_renaming): Do not
11352         update stmts, use mark_virtual_operands_for_renaming.
11353         * tree-ssa-tail-merge.c (release_last_vdef): Remove.
11354         (replace_block_by): Adjust.
11355         (tail_merge_optimize): Use mark_virtual_operands_for_renaming.
11356         * tree-tailcall.c (tree_optimize_tail_calls_1): Use
11357         mark_virtual_operands_for_renaming.
11358         * tree-vect-slp.c (vect_slp_transform_bb): Likewise.
11359         * tree-vectorizer.c (vectorize_loops): Likewise.
11361 2012-08-01  Richard Guenther  <rguenther@suse.de>
11363         * tree-flow.h (struct gimple_df): Remove syms_to_rename member,
11364         add ssa_renaming_needed and rename_vops flags.
11365         (SYMS_TO_RENAME): Remove.
11366         (symbol_marked_for_renaming): Likewise.
11367         (mark_virtual_ops_for_renaming): Likewise.
11368         * tree-into-ssa.c (symbols_to_rename_set, symbols_to_rename):
11369         New globals.
11370         (mark_for_renaming, marked_for_renaming): New functions.
11371         (symbol_marked_for_renaming): Remove.
11372         (dump_currdefs): Adjust.
11373         (maybe_replace_use): Likewise.
11374         (maybe_replace_use_in_debug_stmt): Likewise.
11375         (maybe_register_def): Likewise.
11376         (rewrite_update_phi_arguments): Likewise.
11377         (rewrite_update_enter_block): Likewise.
11378         (fini_ssa_renamer): Clear update SSA status here ...
11379         (delete_update_ssa): ... not here.  Free rename set.
11380         (prepare_block_for_update): Compute which decls need renaming.
11381         (dump_update_ssa): Adjust.
11382         (mark_sym_for_renaming): Adjust update SSA status for virtuals.
11383         (need_ssa_update_p): Adjust.
11384         (insert_updated_phi_nodes_for): Likewise.
11385         (update_ssa): Likewise.
11386         * tree-ssa-operands.c (finalize_ssa_defs): Adjust update SSA status
11387         for virtual and real operands.
11388         (finalize_ssa_uses): Likewise.
11389         * tree-ssanames.c (init_ssanames): Adjust.
11390         * tree-ssa.c (maybe_rewrite_mem_ref_base, maybe_optimize_var,
11391         execute_update_addresses_taken): Add bitmap to keep track of which
11392         candidates are suitable for rewriting and later renaming by SSA update.
11393         * matrix-reorg.c (transform_access_sites): Do not rename all defs.
11394         * tree-dfa.c (make_rename_temp): Do not mark real operands for
11395         renaming.
11396         * cgraphunit.c (assemble_thunk): Likewise.
11397         * gimplify.c (gimple_regimplify_operands): Likewise.
11398         (force_gimple_operand_1): Likewise.
11399         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
11400         * tree-inline.c (declare_return_variable): Likewise.
11401         * tree-parloops.c (separate_decls_in_region_stmt): Do not call
11402         mark_virtual_ops_for_renaming.
11403         (create_stores_for_reduction): Likewise.
11404         (create_loads_and_stores_for_name): Likewise.
11405         * tree-predcom.c (mark_virtual_ops_for_renaming): Remove.
11406         (initialize_root_vars_lm): Do not call mark_virtual_ops_for_renaming.
11407         (execute_load_motion): Likewise.
11408         (remove_stmt): Likewise.
11409         (execute_pred_commoning_chain): Likewise.
11410         * tree-sra.c (create_access_replacement): Do not rename real operands.
11411         (get_unrenamed_access_replacement): Unify with ...
11412         (get_access_replacement): ... this.
11413         (get_repl_default_def_ssa_name): Adjust.
11414         * tree-ssa-loop-im.c (move_computations_stmt): Manually update
11415         virtual SSA form.
11416         (rewrite_mem_ref_loc): Do not call mark_virtual_ops_for_renaming.
11417         * tree-ssa-loop-prefetch.c (emit_mfence_after_loop): Likewise.
11419 2012-07-31  DJ Delorie  <dj@redhat.com>
11421         * config/s390/s390.c (s390_option_override): Disable DWARF 3/4
11422         extensions for TPF, unless specifically selected.
11424 2012-08-01  Alan Modra  <amodra@gmail.com>
11426         PR target/54131
11427         * config/rs6000/rs6000.c (mem_operand_gpr): Don't limit range
11428         of lo_sum offsets.  Comment.  Assert mode at least word size
11429         rather than bypassing powerpc64 word offset check.
11431 2012-07-31  Bill Schmidt  <wschmidt@linux.ibm.com>
11433         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
11434         costs for vec_perm and vec_promote_demote down to more natural values.
11435         (struct _rs6000_cost_data): New data structure.
11436         (rs6000_density_test): New function.
11437         (rs6000_init_cost): Change to use rs6000_cost_data.
11438         (rs6000_add_stmt_cost): Likewise.
11439         (rs6000_finish_cost): Perform density test when vectorizing a loop.
11441 2012-07-31  Steven Bosscher  <steven@gcc.gnu.org>
11443         * sched-vis.c (print_exp): Handle FMA explicitly.  Simplify handling
11444         of RTX_UNARY function-like operations.  Print unknown expression
11445         RTX classes as pseudo-functions.
11446         (print_pattern): Simplify return pattern printing.
11447         (dump_insn_slim): Print the value of notes as a pattern for proper
11448         printing of CFA notes.
11450 2012-07-31  Dehao Chen  <dehao@google.com>
11452         * predict.c (tree_estimate_probability_driver): Normalize the
11453         loop when initializing the loop optimizer.
11455 2012-07-31  Richard Guenther  <rguenther@suse.de>
11457         * tree-flow.h (struct var_ann_d): Remove need_phi_state
11458         and current_def members.
11459         * tree-into-ssa.c (struct def_blocks_d): Remove var member.
11460         (def_blocks): Remove.
11461         (struct var_info_d): New.
11462         (var_infos): New hashtable.
11463         (struct ssa_name_info): Add def_blocks member.
11464         (get_ssa_name_ann): Adjust.
11465         (get_var_info): New function.
11466         (get_phi_state, set_phi_state, get_current_def,
11467         set_current_def, get_def_blocks_for, find_def_blocks_for): Adjust.
11468         (insert_phi_nodes_compare_def_blocks): Rename to ...
11469         (insert_phi_nodes_compare_var_infos): ... this and adjust.
11470         (insert_phi_nodes): Adjust.
11471         (dump_tree_ssa, dump_tree_ssa_stats): Adjust.
11472         (def_blocks_hash, def_blocks_eq, def_blocks_free): Remove.
11473         (debug_def_blocks_r): Rename to ...
11474         (debug_var_infos_r): ... this and adjust.
11475         (var_info_hash): New function.
11476         (var_info_eq): Likewise.
11477         (rewrite_blocks): Adjust.
11478         (init_ssa_renamer): Likewise.
11479         (fini_ssa_renamer): Likewise.
11480         (delete_update_ssa): Likewise.
11481         (update_ssa): Likewise.
11482         * tree-ssanames.c (release_dead_ssa_names): Do not clear current defs.
11484 2012-07-31  Bill Schmidt  <wschmidt@linux.ibm.com>
11486         PR tree-optimization/53773
11487         * tree-vectorizer.h (struct _loop_vec_info): Add operands_swapped.
11488         (LOOP_VINFO_OPERANDS_SWAPPED): New macro.
11489         * tree-vect-loop.c (new_loop_vec_info): Initialize
11490         LOOP_VINFO_OPERANDS_SWAPPED field.
11491         (destroy_loop_vec_info): Restore canonical form.
11492         (vect_is_slp_reduction): Set LOOP_VINFO_OPERANDS_SWAPPED field.
11493         (vect_is_simple_reduction_1): Likewise.
11495 2012-07-31  Steven Bosscher  <steven@gcc.gnu.org>
11497         * sched-vis.c (dump_insn_slim): Print print_rtx_head at the
11498         start of each new line.
11499         * final.c (final_scan_insn): If the final dump is requested as
11500         slim RTL, dump slim RTL to the assembly file also.
11502 2012-07-31  Andrey Belevantsev  <abel@ispras.ru>
11504         PR target/53975
11506         * sel-sched-ir.c (has_dependence_note_reg_use): Clarify comment.
11508         Revert
11509         2011-08-04  Sergey Grechanik  <mouseentity@ispras.ru>
11511         * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
11512         only if producer writes to the register given by regno.
11514 2012-07-31  Nick Clifton  <nickc@redhat.com>
11516         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Add
11517         support for reporting stack usage.
11519         * config/frv/frv.c (QUAD): Fix typo.
11520         (frv_expand_prologue): Report stack usage.
11522 2012-07-31  Steven Bosscher  <steven@gcc.gnu.org>
11524         PR pch/53880
11525         * gengtype.c (struct walk_type_data): Add have_this_obj field.
11526         (walk_type): For functions that take a this_obj argument and
11527         that process fields with a GTY((length)) argument, write the
11528         test that write_types_local_process_field will write also at the
11529         head of the loop, effectively unswitching the loop.
11530         (write_func_for_structure, write_local_func_for_structure): Clear
11531         have_this_obj before calling walk_type.
11532         (write_local_func_for_structure): Set have_this_obj before walk_type.
11533         (write_array): Set have_this_obj for output of local pointer walking
11534         functions but not for marker functions.
11535         (write_types_local_process_field): Assert have_this_obj is set.
11537         * rtl.h (simplify_using_condition): Adjust prototype using bitmap
11538         from coretypes.h.
11540 2012-07-30  Nathan Froyd  <froydnj@gcc.gnu.org>
11543         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
11544         * targhooks.c (default_mode_dependent_address_p): Delete code
11545         for GO_IF_MODE_DEPENDENT_ADDRESS.
11546         * system.h (GO_IF_MODE_DEPENDENT_ADDRESS): Poison.
11547         * doc/tm.texi.in (GO_IF_MODE_DEPENDENT_ADDRESS): Delete documention.
11548         * doc/tm.texi: Regenerate.
11549         * config/alpha.h (GO_IF_MODE_DEPENDENT_ADDRESS): Move code to...
11550         * config/alpha.c (alpha_mode_dependent_address_p): ...here.  New
11551         function.
11552         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11553         * config/cr16/cr16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
11554         * config/mep/mep.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
11555         * config/vax/vax-protos.h (vax_mode_dependent_address_p): Delete.
11556         * config/vax/vax.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
11557         * config/vax/vax.c (vax_mode_dependent_address_p): Make static.
11558         Take a const_rtx.
11559         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11561 2012-07-30  Nathan Froyd  <froydnj@gcc.gnu.org>
11563         * expmed.h (NUM_MODE_VECTOR_INT): Define.
11564         (struct expmed_op_cheap, struct expmed_op_costs): New structures.
11565         (struct target_expmed): Convert x_mul_highpart_cost and
11566         x_mul_widen_cost fields to be indexed by integer modes.
11567         Convert x_sdiv_pow2_cheap and x_smod_pow2_cheap fields to be
11568         of type struct expmed_op_cheap.  Convert other cost fields to be
11569         of type struct_expmed_op_costs.
11570         (mul_widen_cost_ptr, mul_highpart_cost_ptr): Adjust for new
11571         indexing of respective fields.
11572         (expmed_op_cheap_ptr): New function.
11573         (sdiv_pow2_cheap_ptr, smod_pow2_cheap_ptr): Call it.
11574         (expmed_op_cost_ptr): New function.
11575         (add_cost_ptr, neg_cost_ptr, shift_cost_ptr, shiftadd_cost_ptr,
11576         shiftsub0_cost_ptr, shiftsub1_cost_ptr, mul_cost_ptr,
11577         sdiv_cost_ptr, udiv_cost_ptr): Call it.
11579 2012-07-30  Sandra Loosemore  <sandra@codesourcery.com>
11580             Julian Brown  <julian@codesourcery.com>
11582         * doc/invoke.texi (MIPS Options): Document -mno-float.
11583         * config/mips/mips.h (MIPS_ARCH_FLOAT_SPEC): Make it know
11584         about -mno-float.
11586 2012-07-30  Joseph Myers  <joseph@codesourcery.com>
11588         * doc/sourcebuild.texi (Subdirectories): Document common subdirectory.
11590 2012-07-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11592         PR middle-end/53823
11593         * expmed.c (expand_mult): Skip synth_mult for constant double op1 except
11594         for special cases.  Don't initialize coeff and is_neg.
11596 2012-07-30  Ulrich Weigand  <ulrich.weigand@linaro.org>
11597             Richard Earnshaw  <rearnsha@arm.com>
11599         * target.def (vector_alignment): New target hook.
11600         * doc/tm.texi.in (TARGET_VECTOR_ALIGNMENT): Document new hook.
11601         * doc/tm.texi: Regenerate.
11602         * targhooks.c (default_vector_alignment): New function.
11603         * targhooks.h (default_vector_alignment): Add prototype.
11604         * stor-layout.c (layout_type): Use targetm.vector_alignment.
11605         * config/arm/arm.c (arm_vector_alignment): New function.
11606         (TARGET_VECTOR_ALIGNMENT): Define.
11608         * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Use
11609         vector type alignment instead of size.
11610         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Use
11611         element type size directly instead of computing it from alignment.
11612         Fix variable naming and comment.
11614 2012-07-30  Kirill Yukhin  <kirill.yukhin@intel.com>
11615             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11617         * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDSEED_SET): New.
11618         (OPTION_MASK_ISA_RDSEED_UNSET): Likewise.
11619         (ix86_handle_option): Handle mrdseed option.
11620         * config.gcc (i[34567]86-*-*): Add rdseedintrin.h.
11621         (x86_64-*-*): Likewise.
11622         * config/i386/prfchwintrin.h: New header.
11623         * config/i386/cpuid.h (bit_RDSEED): New.
11624         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
11625         RDSEED support.
11626         * config/i386/i386-c.c: Define __RDSEED__ if needed.
11627         * config/i386/i386.c (ix86_target_string): Define -mrdseed option.
11628         (PTA_RDSEED): New.
11629         (ix86_option_override_internal): Handle new option.
11630         (ix86_valid_target_attribute_inner_p): Add OPT_mrdseed.
11631         (ix86_builtins): Add enum entries for RDSEED* builtins.
11632         (ix86_init_mmx_sse_builtins): Define new builtins.
11633         (ix86_expand_builtin): Expand RDSEED* builtins.
11634         * config/i386/i386.h (TARGET_RDSEED): New.
11635         * config/i386/i386.md (rdseed<mode>_1): New.
11636         * config/i386/i386.opt (mrdseed): New.
11637         * config/i386/x86intrin.h: Include rdseedintrin.h.
11639 2012-07-30  Richard Guenther  <rguenther@suse.de>
11641         * tree-into-ssa.c (mark_def_sites): Also process virtual operands.
11642         (rewrite_stmt): Likewise.
11643         (rewrite_enter_block): Likewise.
11644         (pass_build_ssa): Do not update virtual SSA form during TODO.
11645         (mark_symbol_for_renaming): Do nothing if we are not in SSA form.
11646         * lto-streamer-in.c (lto_read_body): Set in_ssa_p earlier.
11648 2012-07-30  Oleg Endo  <olegendo@gcc.gnu.org>
11650         PR target/39423
11651         * config/sh/sh.md (*movsi_index_disp, *movhi_index_disp): New
11652         insns.
11654 2012-07-30  Oleg Endo  <olegendo@gcc.gnu.org>
11656         PR target/51244
11657         * config/sh/sh.md (mov_neg_si_t): Move to Scc instructions section.
11658         Use t_reg_operand predicate.  Add split for negated case.
11659         (ashrsi2_31): Pass get_t_reg_rtx to gen_mov_neg_si_t.
11660         * config/sh/sh.c (expand_ashiftrt): Likewise.
11662 2012-07-30  Oleg Endo  <olegendo@gcc.gnu.org>
11664         PR target/54089
11665         * config/sh/sh.md (ashlsi3_d): Invoke gen_shifty_op directly instead
11666         of trying to emit ashlsi3_n.
11668 2012-07-30  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
11669             Steven Bosscher  <steven@gcc.gnu.org>
11671         * gengtype.c (adjust_field_type): Diagnose duplicate "length"
11672         option applications and option being applied to arrays of atomic types.
11673         (walk_type): Allow "atomic" option on strings too.
11674         * dwarf2out.h (struct dw_vec_struct): Use the "atomic" GTY option
11675         for the array field.
11676         * vec.h: Describe the atomic object "A" type of the macros in
11677         the header comment.
11678         (VEC_T_GTY_ATOMIC, DEF_VEC_A, DEF_VEC_ALLOC_A): Define.
11679         * emit-rtl.c (locations_locators_vals): use the atomic object vector.
11680         * doc/gty.texi: Clarify that GTY option "length" is only for
11681         arrays of non-atomic objects.  Fix typo in the description of the
11682         "atomic" option.
11684 2012-07-27  Uros Bizjak  <ubizjak@gmail.com>
11686         * config/i386/i386.c (ix86_avoid_lea_for_addr): Handle
11687         zero-extended addresses.  Return false if the address has less
11688         than two components.
11689         (ix86_split_lea_for_addr): Unconditionally convert target and
11690         all address operands to requested mode.
11691         * config/i386/i386.md (*lea<mode>): Recover operands from curr_insn.
11692         Pass SImode to ix86_split_lea_for_addr when splitting zero-extended
11693         address.
11694         (zero-extended add splitter): New splitter to conditionally split
11695         non-destructive adds.
11696         (*zero_extendsidi2_rex64): Conditionally emit leal instead of movl.
11698 2012-07-28  Alan Modra  <amodra@gmail.com>
11700         PR target/54093
11701         * config/rs6000/rs6000.c (rs6000_secondary_reload): Limit 32-bit
11702         multi-gpr reload to cases where predicate passes.  Do the same for
11703         64-bit multi-gpr reload.
11705 2012-07-27  Nathan Froyd  <froydnj@gcc.gnu.org>
11707         * expmed.h (alg_hash, alg_hash_used_p, sdiv_pow2_cheap,
11708         smod_pow2_cheap, zero_cost, add_cost, neg_cost, shift_cost)
11709         shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost,
11710         sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete
11711         macro definitions and re-purpose as inline functions.
11712         (alg_hash_entry_ptr, set_alg_hash_used_p, sdiv_pow2_cheap_ptr,
11713         set_sdiv_pow2_cheap, smod_pow2_cheap_ptr, set_smod_pow2_cheap,
11714         zero_cost_ptr, set_zero_cost, add_cost_ptr, set_add_cost,
11715         neg_cost_ptr, set_neg_cost, shift_cost_ptr, set_shift_cost,
11716         shiftadd_cost_ptr, set_shiftadd_cost, shiftsub0_cost_ptr,
11717         set_shiftsub0_cost, shiftsub1_cost_ptr, set_shiftsub1_cost,
11718         mul_cost_ptr, set_mul_cost, sdiv_cost_ptr, set_sdiv_cost,
11719         udiv_cost_ptr, set_udiv_cost, mul_widen_cost_ptr,
11720         set_mul_widen_cost, mul_highpart_cost_ptr, set_mul_highpart_cost):
11721         New functions.
11722         (convert_cost_ptr): New function, split out from...
11723         (set_convert_cost, convert_cost): ...here.
11724         * expmed.c, tree-ssa-loop-ivopts.c: Update for new functions.
11725         * gimple-ssa-strength-reduction.c: Likewise.
11727 2012-07-20  Ryan Mansfield  <rmansfield@qnx.com>
11729         * gcc.c (main): Move GCC_DRIVER_HOST_INITIALIZATION after
11730         diagnostic_initialize.
11732 2012-07-27  Oleg Endo  <olegendo@gcc.gnu.org>
11734         PR target/54089
11735         * config/sh/sh.c (shiftcosts): Remove case where first operand
11736         is a const_int.  Move COSTS_N_INSNS usage into caller ...
11737         (sh_rtx_costs) ... here.  Return false when shiftcosts cannot be
11738         calculated instead of MAX_COST.
11740 2012-07-27  Richard Guenther  <rguenther@suse.de>
11742         * tree-cfg.c (gimple_can_merge_blocks_p): Do more fine-grained
11743         check whether SSA form is not up-to-date.
11744         * tree-flow.h (name_mappings_registered_p): Remove.
11745         * tree-into-ssa.c (struct repl_map_d): Remove.
11746         (repl_tbl): Likewise.
11747         (struct ssa_name_info): Add repl_set member.
11748         (update_ssa_obstack): New static global.
11749         (get_ssa_name_ann): Initialize repl_set.
11750         (clear_ssa_name_info): Assert age did not wrap.
11751         (repl_map_hash, repl_map_eq, repl_map_free): Remove.
11752         (names_replaced_by): Adjust.
11753         (add_to_repl_tbl): Likewise.
11754         (dump_tree_ssa_stats): Likewise.
11755         (init_update_ssa): Initialize update_ssa_obstack.
11756         (delete_update_ssa): Free update_ssa_obstack.
11757         (name_mappings_registered_p): Remove.
11758         (update_ssa): Adjust.
11760 2012-07-27  Segher Boessenkool  <segher@kernel.crashing.org>
11762         * config/rs6000/constraints.md: Delete "q" constraint.
11763         * config/rs6000/dfp.md (movsd_hardfloat, movsd_softfloat):
11764         Delete the "q" alternative.
11765         * config/rs6000/predicates.md (gpc_reg_operand): Adjust.
11766         * config/rs6000/rs6000.c (rs6000_debug_reg_global)
11767         (rs6000_init_hard_regno_mode_ok, rs6000_dbx_register_number):
11768         adjust to MQ_REGNO removal.
11769         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust
11770         comment.
11771         (REG_ALLOC_ORDER): Adjust comment.  Remove MQ from alloc order.
11772         (enum reg_class): Adjust comment.  Delete MQ_REGS.
11773         (REG_CLASS_CONTENTS): Adjust.
11774         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust comment.
11775         * config/rs6000/rs6000.md: Delete MQ_REGNO.
11776         (movsi_internal1, movsi_internal1_single, movhi_internal,
11777         movqi_internal, movcc_internal1, movsf_hardfloat,
11778         movsf_softfloat): Delete the "q" alternative.
11779         (ctr<mode>_internal1, ctr<mode>_internal2, ctr<mode>_internal5,
11780         ctr<mode>_internal6): Delete "q" constraint.
11782 2012-07-27  Richard Guenther  <rguenther@suse.de>
11784         * tree-into-ssa.c (def_blocks_p): New typedef.
11785         (insert_phi_nodes_compare_def_blocks): New function.
11786         (insert_phi_nodes): Do not walk over referenced vars, instead
11787         walk over recorded def_blocks, record relevant ones and sort
11788         them to avoid repeated hashtable lookups.
11790 2012-07-27  Richard Guenther  <rguenther@suse.de>
11792         * doc/invoke.texi (min-virtual-mappings, virtual-mappings-ratio):
11793         Remove param documentation.
11794         * params.def (PARAM_MIN_VIRTUAL_MAPPINGS,
11795         PARAM_VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Remove.
11796         * tree-flow.h (mark_set_for_renaming): Remove.
11797         * tree-into-ssa.c (struct update_ssa_stats_d): Remove.
11798         (add_new_name_mapping): Remove bookkeeping code.
11799         (dump_update_ssa): Remove stats dumping code.
11800         (init_update_ssa): Remove stats allocation code.
11801         (delete_update_ssa): Remove stats freeing code.
11802         (mark_set_for_renaming): Remove.
11803         (switch_virtuals_to_full_rewrite_p): Likewise.
11804         (switch_virtuals_to_full_rewrite): Likewise.
11805         (update_ssa): Do not call switch_virtuals_to_full_rewrite.
11807 2012-07-27  Marek Polacek  <polacek@redhat.com>
11809         * cgraphunit.c: Rename varpool_finalize_variable to
11810         varpool_finalize_decl in a comment.
11812 2012-07-27  Segher Boessenkool  <segher@kernel.crashing.org>
11814         * common/config/rs6000/rs6000-common.c (rs6000_handle_option):
11815         Delete code for -mno-power, -mpower, and -mpower2.
11816         * config/rs6000/aix43.h (NON_POWERPC_MASKS): Delete.
11817         (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
11818         with -maix64.
11819         (ASM_CPU_SPEC): Delete support for POWER and POWER2.
11820         * config/rs6000/aix51.h (NON_POWERPC_MASKS): Delete.
11821         (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
11822         with -maix64.
11823         (ASM_CPU_SPEC): Delete support for POWER and POWER2.
11824         * config/rs6000/aix52.h (NON_POWERPC_MASKS): Delete.
11825         (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
11826         with -maix64.
11827         (TARGET_POWER): Delete.
11828         * config/rs6000/aix53.h (NON_POWERPC_MASKS): Delete.
11829         (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
11830         with -maix64.
11831         (TARGET_POWER): Delete.
11832         * config/rs6000/aix61.h (NON_POWERPC_MASKS): Delete.
11833         (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
11834         with -maix64.
11835         (TARGET_POWER): Delete.
11836         * config/rs6000/darwin.h (TARGET_POWER): Delete.
11837         * config/rs6000/driver-rs6000.c (struct asm_names): Delete
11838         support for -mpower, -mpower2, and -mno-power.
11839         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
11840         Likewise.
11841         (rs6000_cpu_cpp_builtins): Likewise.
11842         * config/rs6000/rs6000-cpus.def: Likewise.
11843         * config/rs6000/rs6000-tables.opt: Regenerate.
11844         * config/rs6000/rs6000.c (POWER_MASKS): Delete.
11845         (rs6000_option_override_internal): Adjust.
11846         (rs6000_conditional_register_usage): Adjust.
11847         (rs6000_emit_move): Adjust.
11848         (rs6000_common_init_builtins): Adjust.
11849         (rs6000_init_libfuncs): Adjust.
11850         (rs6000_output_function_prologue): Adjust.
11851         (rs6000_adjust_cost): Adjust.
11852         (struct rs6000_opt_masks): Delete MASK_POWER and MASK_POWER2.
11853         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete support for
11854         POWER and POWER2.
11855         (TARGET_DEFAULT): Adjust.
11856         (PROCESSOR_POWER): Delete.
11857         (SHIFT_COUNT_TRUNCATED): Adjust.
11858         * config/rs6000/rs6000.md (extendqisi2): Delete POWER support.
11859         (extendqisi2_power): Delete.
11860         (extendqisi2_no_power): Adjust.
11861         (extendqihi2, extendqihi2_power, extendqihi2_no_power):
11862         Likewise.
11863         (sminsi3, smaxsi3, uminsi3, umaxsi3): Adjust.
11864         (anonymous doz insn patterns): Delete.
11865         (abssi2): Adjust.
11866         (abssi2_power): Delete.
11867         (abssi2_nopower): Adjust.
11868         (nabs_power, nabs_nopower): Likewise.
11869         (mulsi3, mulsi3_mq, mulsi3_no_mq, mulsi3_mq_internal1):
11870         Likewise.  Delete anonymous post-reload splitter.
11871         (mulsi3_no_mq_internal1): rename to...
11872         (mulsi3_internal1): New define_insn.
11873         (mulsi3_mq_internal2, mulsi3_no_mq_internal2, mulsi3_internal2):
11874         Likewise.
11875         (divmodsi4, divmodsi4_internal, udiv<mode>3, udivsi3_mq,
11876         udivsi3_no_mq, udivsi3, div<mode>3, divsi3_mq, div<mode>3_no_mq,
11877         udivmodsi4_normal, udivmodsi4_tests, udivmodsi4): Likewise.
11878         (mulh_call, mull_call, divss_call, divus_call, quoss_call,
11879         quous_call): Likewise.
11880         (maskir_internal1, maskir_internal2, maskir_internal3,
11881         maskir_internal4, maskir_internal5, maskir_internal6,
11882         maskir_internal7, maskir_internal8): Delete.
11883         (ashlsi3, ashlsi3_power, ashlsi3_no_power): Adjust.
11884         (anonymous sl insn patterns): Delete.
11885         (lshrsi3, lshrsi3_power, lshrsi3_no_power): Adjust.
11886         (lshrsi3_64): Adjust.
11887         (anonymous sr insn patterns): Delete.
11888         (anonymous rrib insn patterns): Delete.
11889         (ashrsi3, ashrsi3_power, ashrsi3_no_power): Adjust.
11890         (anonymous sra insn patterns): Delete.
11891         (sqrtsf2, sqrtdf2, sqrtdf2_fpr): Adjust.
11892         (fix_trunc<mode>si2, fix_trunc<mode>si2_internal,
11893         fctiwz_<mode>): Adjust.
11894         (mulsidi3, mulsidi3_mq, mulsidi3_no_mq, umulsidi3, umulsidi3_mq,
11895         umulsidi3_no_mq, smulsi3_highpart, smulsi3_highpart_mq,
11896         smulsi3_highpart_no_mq, umulsi3_highpart, umulsi3_highpart_mq,
11897         umulsi3_highpart_no_mq): Adjust.
11898         (ashldi3_power, lshrdi3_power, ashrdi3_power): Delete.
11899         (ashrdi3_no_power, ashldi3, ashldi3_internal1,
11900         lshrdi3_internal1): Adjust.
11901         (fix_trunctfsi2, fix_trunctfsi2_fprs): Adjust.
11902         (movti_power): Delete.
11903         (movti_string): Adjust.
11904         (stmsi8, stmsi7, stmsi6, stmsi5, stmsi4, stmsi3): Adjust.
11905         (stmsi8_power, stmsi7_power, stmsi6_power, stmsi5_power,
11906         stmsi4_power, stmsi3_power): Delete.
11907         (anonymous movmemsi insn patterns): Adjust.
11908         (lfq_power2, stfq_power2): Delete.
11909         (eq<mode>, eq<mode>_compare): Adjust.
11910         (eqsi_power): Delete.
11911         (ne0si): Adjust.
11912         (anonymous le, lt, ge, gt insn patterns): Delete.
11913         * config/rs6000/rs6000.opt (mpower, mno-power, mpower2): Delete.
11914         * config/rs6000/sysv4.h (TARGET_POWER): Delete.
11915         * config/rs6000/t-aix43 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
11916         MULTILIB_MATCHES): Adjust.
11917         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete
11918         -mpower, -mno-power, -mpower2, -mno-power2 documentation.
11919         Delete -mcpu=power and -mcpu=power2 documentation.
11921 2012-07-27  Segher Boessenkool  <segher@kernel.crashing.org>
11923         * config/rs6000/601.md: New file.
11924         * config/rs6000/aix43.h (ASM_CPU_SPEC): Delete support for
11925         RIOS CPUs.
11926         * config/rs6000/aix51.h (ASM_CPU_SPEC): Likewise.
11927         * config/rs6000/driver-rs6000.c (detect_processor_aix,
11928         struct asm_names): Likewise.
11929         * config/rs6000/rios1.md: Delete file.
11930         * config/rs6000/rios2.md: Delete file.
11931         * config/rs6000/rs6000-cpus.def: Delete definitions for RIOS
11932         CPUs.
11933         * config/rs6000/rs6000-opts.h (enum processor_type): Delete
11934         PROCESSOR_RIOS1 and PROCESSOR_RIOS2.
11935         * config/rs6000/rs6000-tables.opt: Regenerated.
11936         * config/rs6000/rs6000.c (struct rios1_cost, struct rios2_cost):
11937         Delete.
11938         (rs6000_option_override_internal): Delete support for RIOS CPUs.
11939         (rs6000_conditional_register_usage): Adjust comment.
11940         (rs6000_issue_rate):Delete support for RIOS CPUs.
11941         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete support for
11942         RIOS CPUs.
11943         (PROCESSOR_POWER): Change to PROCESSOR_PPC601.
11944         (PROCESSOR_DEFAULT): Change to PROCESSOR_PPC603.
11945         * config/rs6000/rs6000.md (define_attr "cpu"): Delete rios1
11946         and rios2.
11947         (include "rios1.md", include "rios2.md"): Delete.
11948         (include "601.md"): New.
11949         * config/rs6000/rs6000.opt (enum rs6000_cpu): Default to
11950         PROCESSOR_PPC603.
11951         * config/rs6000/t-aix43 (MULTILIB_MATCHES): Delete support
11952         for RIOS CPUs.
11953         * config/rs6000/t-rs6000 (MD_INCLUDES): Delete rios1.md and
11954         rios2.md .  Add 601.md .
11956 2012-07-26  Richard Henderson  <rth@redhat.com>
11958         * doc/extend.texi (attribute): Document hot/cold for labels.
11959         * predict.c (tree_estimate_probability_bb): Handle hot/cold
11960         attributes on user labels.
11961         * predict.def (PRED_HOT_LABEL, PRED_COLD_LABEL): New.
11963 2012-07-26  Andrew Jenner  <andrew@codesourcery.com>
11964             Sandra Loosemore  <sandra@codesourcery.com>
11966         * cse.c (find_comparison_args): Check for cycles of any length.
11968 2012-07-26  Nick Clifton  <nickc@redhat.com>
11970         * config/mn10300/mn10300.c (REG_SAVE_BYTES): Delete.
11971         (mn10300_get_live_callee_saved_regs): If requested return a count
11972         of the number of bytes in the mask.
11973         (mn10300_expand_prologue): Add argument to invocation of
11974         mn10300_get_live_callee_regs.
11975         (mn10300_expand_epilogue): Compute reg_save_bytes by calling
11976         mn10300_get_live_callee_saved_regs.
11977         (mn10300_initial_offset): Likewise.
11978         * config/mn10300/mn10300-protos.h (mn10300_get_live_callee_saved_regs):
11979         Update prototype.
11980         * config/mn10300/mn10300.md (return_ret): Add argument to
11981         invocation of mn10300_get_live_callee_saved_regs.
11983 2012-07-26  Steven Bosscher  <steven@gcc.gnu.org>
11985         PR regression/54084
11986         * sel-sched-ir.c (cmp_v_in_regset_pool): Clarify logic, fix
11987         pointer difference check.
11989 2012-07-26  Bill Schmidt  <wschmidt@linux.ibm.com>
11991         * tree-ssa-loop-ivopts.c (mbc_entry_hash): Remove.
11992         (mbc_entry_eq): Likewise.
11993         (mult_costs): Likewise.
11994         (cost_tables_exist): Likewise.
11995         (initialize_costs): Likewise.
11996         (finalize_costs): Likewise.
11997         (tree_ssa_iv_optimize_init): Remove call to initialize_costs.
11998         (add_regs_cost): Remove.
11999         (multiply_regs_cost): Likewise.
12000         (add_const_cost): Likewise.
12001         (extend_or_trunc_reg_cost): Likewise.
12002         (negate_reg_cost): Likewise.
12003         (struct mbc_entry): Likewise.
12004         (multiply_by_const_cost): Likewise.
12005         (get_address_cost): Change add_regs_cost calls to add_cost lookups;
12006         change multiply_by_const_cost to mult_by_coeff_cost.
12007         (force_expr_to_var_cost): Likewise.
12008         (difference_cost): Change multiply_by_const_cost to mult_by_coeff_cost.
12009         (get_computation_cost_at): Change add_regs_cost calls to add_cost
12010         lookups; change multiply_by_const_cost to mult_by_coeff_cost.
12011         (determine_iv_cost): Change add_regs_cost calls to add_cost lookups.
12012         (tree_ssa_iv_optimize_finalize): Remove call to finalize_costs.
12013         * tree-ssa-address.c (expmed.h): New #include.
12014         (most_expensive_mult_to_index): Change multiply_by_const_cost to
12015         mult_by_coeff_cost.
12016         * gimple-ssa-strength-reduction.c (expmed.h): New #include.
12017         (stmt_cost): Change to use mult_by_coeff_cost, mul_cost, add_cost,
12018         neg_cost, and convert_cost instead of IVOPTS interfaces.
12019         (execute_strength_reduction): Remove calls to initialize_costs and
12020         finalize_costs.
12021         * expmed.c (struct init_expmed_rtl): Add convert rtx_def.
12022         (init_expmed_one_mode): Initialize convert rtx_def; initialize
12023         x_convert_cost for related modes.
12024         (mult_by_coeff_cost): New function.
12025         * expmed.h (NUM_MODE_INT): New #define.
12026         (struct target_expmed): Add x_convert_cost matrix.
12027         (set_convert_cost): New inline function.
12028         (convert_cost): Likewise.
12029         (mult_by_coeff_cost): New extern decl.
12030         * tree-flow.h (initialize_costs): Remove decl.
12031         (finalize_costs): Likewise.
12032         (multiply_by_const_cost): Likewise.
12033         (add_regs_cost): Likewise.
12034         (multiply_regs_cost): Likewise.
12035         (add_const_cost): Likewise.
12036         (extend_or_trunc_reg_cost): Likewise.
12037         (negate_reg_cost): Likewise.
12038         * Makefile.in (gimple-ssa-strength-reduction.o): Update dependencies.
12039         (tree-ssa-address.o): Update dependencies.
12041 2012-07-26  Steven Bosscher  <steven@gcc.gnu.org>
12043         * bitmap.h: Add explanation of sparse set as linked-list bitmap.
12044         * sbitmap.h: Add explanation about non-sparse sets as simple bitmap.
12045         (TEST_BIT): Make a static inline function for stronger type checking.
12046         (SET_BIT): Don't handle sbitmaps with popcount.
12047         (RESET_BIT): Likewise.
12048         (SET_BIT_WITH_POPCOUNT): New, like SET_BIT but with popcount.
12049         (RESET_BIT_WITH_POPCOUNT): New, like RESET_BIT but with popcount.
12050         * ebitmap.c (ebitmap_clear_bit): Use SET_BIT_WITH_POPCOUNT and
12051         RESET_BIT_WITH_POPCOUNT on wordmask bitmaps.
12052         (ebitmap_set_bit, ebitmap_and_into, ebitmap_and, ebitmap_ior_into,
12053         ebitmap_and_compl_into, ebitmap_and_compl): Likewise.
12054         * sparseset.h: Add explanation of sparse set representation.
12056 2012-07-26  Richard Guenther  <rguenther@suse.de>
12058         PR tree-optimization/54098
12059         * tree-vrp.c (vrp_visit_phi_node): Iterate once more if the
12060         original range was UNDEFINED.
12062 2012-07-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12064         * config/arm/neon.ml (ops): Fix regexp for vld1Q_dups64 and
12065         vld1Q_dupu64 tests.
12067 2012-07-26  Oleg Endo  <olegendo@gcc.gnu.org>
12069         PR target/51244
12070         * config/sh/sh.opt (mzdcbranch): New option.
12071         * doc/invoke.texi: Document it.
12072         * config/sh/sh.md (negsi_cond): Use TARGET_ZDCBRANCH as condition
12073         instead of TARGET_HARD_SH4.
12074         * config/sh/sh.c (sh_option_override): Set TARGET_ZDCBRANCH as default
12075         for TARGET_HARD_SH4.
12077 2012-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
12079         PR target/54089
12080         * config/sh/predicates.md (shift_count_operand): Handle not-SHMEDIA
12081         case.
12082         (p27_shift_count_operand, not_p27_shift_count_operand): New predicates.
12083         * config/sh/sh.md (ashlsi3): Remove parallel and T_REG clobber
12084         from expander.  Do not emit shift insn for not-SHMEDIA case.
12085         (ashlsi3_std): Replace with ...
12086         (ashlsi3_k, ashlsi3_d): ... these new insns.
12087         * config/sh/sh.c (gen_ashift): Make static.  Add sanity checks.
12088         Emit ashlsi3_k insn instead of ashlsi3_std in ASHIFT case.
12089         (gen_ashift_hi): Make static.
12090         * config/sh/sh-protos.h (gen_ashift, gen_ashift_hi): Remove forward
12091         declaration.
12093 2012-07-25  Bharathi Seshadri  <bseshadr@cisco.com>
12094             Jim Wilson  <jimwilso@cisco.com>
12096         * config/arm/bpabi.h (BE8_LINK_SPEC): Set according to
12097         TARGET_BIG_ENDIAN_DEFAULT.
12099 2012-07-25  Eric Botcazou  <ebotcazou@adacore.com>
12101         * gimple-low.c (lower_try_catch): New function.
12102         (lower_stmt) <GIMPLE_TRY>: Use it to lower GIMPLE_TRY_CATCH.
12103         <GIMPLE_CATCH>: Delete.
12104         <GIMPLE_EH_FILTER>: Likewise.
12106 2012-07-25  Eric Botcazou  <ebotcazou@adacore.com>
12108         * expr.c (expand_expr_real_1): Do not expand operand #1 and #2
12109         of BIT_FIELD_REF for ignored results.
12110         * fold-const.c (fold_ternary_loc) <BIT_FIELD_REF>: Check that the
12111         CONSTRUCTOR has vector type before using vector accessors on it.
12112         * gimplify.c (gimplify_compound_lval): Do not gimplify operand #1 and
12113         #2 of BIT_FIELD_REF.
12114         (gimplify_expr) <BIT_FIELD_REF>: Likewise.
12115         * tree-nested.c (convert_nonlocal_reference_op) <BIT_FIELD_REF>: Do
12116         not process operand #1 and #2.
12117         (convert_local_reference_op): Likewise.
12118         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Remove superfluous
12119         breaks throughout.
12120         <BIT_FIELD_REF>: Reuse operand #1 and #2 directly.
12121         * tree.c (stabilize_reference) <BIT_FIELD_REF>: Do not stabilize
12122         operand #1 and #2.
12123         (UPDATE_FLAGS): Do not consider operand #2 of BIT_FIELD_REF.
12124         (build6_stat): Delete.
12125         * tree.h (build6_stat, build6, build6_stat_loc, build6_loc): Likewise.
12127 2012-07-25 Marc Glisse <marc.glisse@inria.fr>
12129         PR tree-optimization/30318
12130         * tree-vrp.c (extract_range_from_binary_expr_1) [PLUS_EXPR]:
12131         Handle __int128.
12132         [MINUS_EXPR]: Merge with PLUS_EXPR.
12134 2012-07-25  Sandra Loosemore  <sandra@codesourcery.com>
12135             Paul Brook  <paul@codesourcery.com>
12137         PR target/53633
12138         * target.def (warn_func_return): New hook.
12139         * doc/tm.texi.in (TARGET_WARN_FUNC_RETURN): New hook.
12140         * doc/tm.texi: Regenerate.
12141         * doc/sourcebuild.texi (Effective-Target Keywords): Document
12142         naked_functions.
12143         * ipa-pure-const.c (warn_function_noreturn): Check
12144         targetm.warn_func_return.
12145         * tree-cfg.c (execute_warn_function_return): Likewise.
12146         * config/spu/spu.c (spu_warn_func_return): New.
12147         (TARGET_WARN_FUNC_RETURN): Define.
12148         * config/rx/rx.c (rx_warn_func_return): New.
12149         (TARGET_WARN_FUNC_RETURN): Define.
12150         * config/avr/avr.c (avr_warn_func_return): New.
12151         (TARGET_WARN_FUNC_RETURN): Define.
12152         * config/arm/arm.c (arm_warn_func_return): New.
12153         (TARGET_WARN_FUNC_RETURN): Define.
12154         * config/mcore/mcore.c (mcore_warn_func_return): New.
12155         (TARGET_WARN_FUNC_RETURN): Define.
12156         (saved_warn_return_type, saved_warn_return_type_count): Remove.
12157         (mcore_reorg, mcore_handle_naked_attribute): Remove warn_return hack.
12159 2012-07-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
12161         * final.c [ASSEMBLER_DIALECT](do_assembler_dialects): New
12162         function to implement assembler dialects.
12163         (output_asm_insn): Use do_assembler_dialects.
12164         (asm_fprintf): Likewise.
12166 2012-07-25  Richard Henderson  <rth@redhat.com>
12168         PR bootstrap/54092
12169         * libfuncs.h: Don't include optabs.h.
12170         (struct libfunc_entry): Use "int" for op, mode1, mode2 members.
12171         * optabs.c (hash_libfunc): Don't cast members to int.
12172         * Makefile.in (LIBFUNCS_H): Don't include OPTABS_H.
12174 2012-07-25  Dodji Seketeli  <dodji@redhat.com>
12176         * basic-block.c: Fix typo in comment.
12178 2012-07-25  Kirill Yukhin  <kirill.yukhin@intel.com>
12179             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12181         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PRFCHW_SET): New.
12182         (OPTION_MASK_ISA_PRFCHW_UNSET): Likewise.
12183         (ix86_handle_option): Handle mprfchw option.
12184         * config.gcc (i[34567]86-*-*): Add prfchwintrin.h.
12185         (x86_64-*-*): Likewise.
12186         * config/i386/prfchwintrin.h: New header.
12187         * config/i386/cpuid.h (bit_PRFCHW): New.
12188         (bit_BMI): Formatting fix.
12189         (bit_HLE): Likewise.
12190         (bit_RTM): Likewise.
12191         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
12192         PREFETCHW support.
12193         * config/i386/i386-c.c: Define __PRFCHW__ if needed.
12194         * config/i386/i386.c (ix86_target_string): Define
12195         -mprfchw option. Formatting fixes.
12196         (PTA_HLE): Formatting fix.
12197         (PTA_PRFCHW): New.
12198         (ix86_option_override_internal): Handle new option.
12199         (ix86_valid_target_attribute_inner_p): Add OPT_mprfchw.
12200         * config/i386/i386.h (TARGET_PRFCHW): New.
12201         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW.
12202         * config/i386/i386.opt (mprfchw): New.
12203         * config/i386/mm3dnow.h: Move _m_prefetchw from here to prfchwintrin.h.
12204         * config/i386/x86intrin.h: Include prfchwintrin.h.
12206 2012-07-25 Sergey Melnikov <sergey.melnikov@intel.com>
12208         * config/i386/i386.md (stack_protect_set): Disable the pattern
12209         for Android since Android libc (bionic) does not provide random
12210         value for stack protection guard at gs:0x14. Guard value
12211         will be provided from external symbol (default implementation).
12212         (stack_protect_set_<mode>): Likewise.
12213         (stack_protect_test): Likewise.
12214         (stack_protect_test_<mode>): Likewise.
12215         * defaults.h: Define macro TARGET_HAS_BIONIC to 0 - target does
12216         not have Bionic by default
12217         * config/linux.h: Redefine macro TARGET_HAS_BIONIC to (OPTION_BIONIC)
12218         Macro OPTION_BIONIC is defined in this file and provides Bionic
12219         accessibility status
12221 2012-07-25  Steven Bosscher  <steven@gcc.gnu.org>
12223         * gimple-pretty-print.c (gimple_dump_bb_buff): Call pp_flush.
12225 2012-07-25  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12227         btver2 Enablement
12228         * config.gcc (i[34567]86-*-linux* | ...): Add btver2.
12229         (case ${target}): Add btver2.
12230         * config/i386/driver-i386.c (host_detect_local_cpu): Let
12231         -march=native recognize btver2 processors.
12232         * config/i386/i386-c.c (ix86_target_macros_internal): Add
12233         btver2 def_and_undef
12234         * config/i386/i386.c (struct processor_costs btver2_cost): New
12235         btver2 cost table.
12236         (m_BTVER2): New definition.
12237         (m_AMD_MULTIPLE): Includes m_BTVER2.
12238         (initial_ix86_tune_features): Add btver2 tune.
12239         (processor_target_table): Add btver2 entry.
12240         (static const char *const cpu_names): Add btver2 entry.
12241         (software_prefetching_beneficial_p): Add btver2.
12242         (ix86_option_override_internal): Add btver2 instruction sets.
12243         (ix86_issue_rate): Add btver2.
12244         (ix86_adjust_cost): Add btver2.
12245         * config/i386/i386.h (TARGET_BTVER2): New definition.
12246         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver2.
12247         (enum processor_type): Add PROCESSOR_BTVER2.
12248         * config/i386/i386.md (define_attr "cpu"): Add btver2.
12250 2012-07-24  Bill Schmidt  <wschmidt@linux.ibm.com>
12252         * doc/tm.texi: Regenerate.
12253         * targhooks.c (default_init_cost): Add prologue and epilogue costs.
12254         (default_add_stmt_cost): Likewise; also handle NULL stmt_info.
12255         (default_finish_cost): Add prologue and epilogue costs.
12256         * targhooks.h (default_add_stmt_cost): Change parameter list.
12257         (default_finish_cost): Likewise.
12258         * target.def (init_cost): Change documentation string.
12259         (add_stmt_cost): Change documentation string and parameter list.
12260         (finish_cost): Likewise.
12261         * target.h (vect_cost_model_location): New enum.
12262         * tree-vectorizer.h (struct _slp_tree): Remove cost substruct.
12263         (struct _slp_instance): Remove cost substruct; rename stmt_cost_vec
12264         to body_cost_vec.
12265         (SLP_INSTANCE_OUTSIDE_OF_LOOP_COST): Remove.
12266         (SLP_INSTANCE_STMT_COST_VEC): Rename to SLP_INSTANCE_BODY_COST_VEC.
12267         (SLP_TREE_OUTSIDE_OF_LOOP_COST): Remove.
12268         (struct _vect_peel_extended_info): Rename stmt_cost_vec to
12269         body_cost_vec.
12270         (struct _stmt_vec_info): Remove cost substruct.
12271         (STMT_VINFO_OUTSIDE_OF_LOOP_COST): Remove.
12272         (stmt_vinfo_set_outside_of_loop_cost): Remove.
12273         (builtin_vectorization_cost): New function.
12274         (vect_get_stmt_cost): Change to use builtin_vectorization_cost.
12275         (add_stmt_cost): Change parameter list.
12276         (finish_cost): Likewise.
12277         (vect_model_simple_cost): Likewise.
12278         (vect_model_store_cost): Likewise.
12279         (vect_model_load_cost): Likewise.
12280         (record_stmt_cost): Likewise.
12281         (vect_get_load_cost): Likewise.
12282         (vect_get_known_peeling_cost): Likewise.
12283         * tree-vect-loop.c (vect_get_known_peeling_cost): Change parameter
12284         list; call record_stmt_cost for prologue and epilogue costs.
12285         (vect_estimate_min_profitable_iters): Call add_stmt_cost for
12286         prologue and epilogue costs; remove computation of vec_outside_cost;
12287         return vec_prologue_cost and vec_epilogue_cost from finish_cost.
12288         (vect_model_reduction_cost): Revise call to add_stmt_cost for body
12289         costs; call add_stmt_cost for prologue and epilogue costs.
12290         (vect_model_induction_cost): Revise call to add_stmt_cost for body
12291         costs; call add_stmt_cost for prologue costs.
12292         * tree-vect-data-refs.c (vect_get_data_access_cost): Change parameter
12293         list for function and arguments for calls to vect_get_load_cost and
12294         vect_get_store_cost.
12295         (vect_peeling_hash_get_lowest_cost): Change argument list for calls to
12296         vect_get_data_access_cost and vect_get_known_peeling_cost; use
12297         temporary vectors prologue_cost_vec and epilogue_cost_vec for the
12298         latter call and discard their results; rename stmt_cost_vec to
12299         body_cost_vec; correct possible storage leak for body_cost_vec.
12300         (vect_peeling_hash_choose_best_peeling): Rename stmt_cost_vec to
12301         body_cost_vec.
12302         (vect_enhance_data_refs_alignment): Rename stmt_cost_vec to
12303         body_cost_vec; add extra dummy parameter on calls to
12304         vect_get_data_access_cost; tolerate null si->stmt; add vect_body to
12305         argument list on call to add_stmt_cost.
12306         * tree-vect-stmts.c (record_stmt_cost): Change parameter list;
12307         rename stmt_cost_vec to body_cost_vec; tolerate null stmt_info; call
12308         builtin_vectorization_cost; add "where" parameter on call to
12309         add_stmt_cost.
12310         (vect_model_simple_cost): Change parameter list; call record_stmt_cost
12311         for prologue costs; remove call to stmt_vinfo_set_outside_of_loop_cost;
12312         rename stmt_cost_vec to body_cost_vec.
12313         (vect_model_promotion_demotion_cost): Add vect_body argument to call
12314         to add_stmt_cost; call add_stmt_cost for prologue costs; remove call
12315         to stmt_vinfo_set_outside_of_loop_cost.
12316         (vect_model_store_cost): Change parameter list; call record_stmt_cost
12317         for prologue costs; add vect_body argument to call to record_stmt_cost;
12318         rename stmt_cost_vec to body_cost_vec; remove call to
12319         stmt_vinfo_set_outside_of_loop_cost.
12320         (vect_get_store_cost): Rename stmt_cost_vec to body_cost_vec; add
12321         vect_body argument to calls to record_stmt_cost.
12322         (vect_model_load_cost): Change parameter list; rename stmt_cost_vec to
12323         body_cost_vec; add vect_body argument to calls to record_stmt_cost;
12324         remove call to stmt_vinfo_set_outside_of_loop_cost.
12325         (vect_get_load_cost): Change parameter list; rename stmt_cost_vec to
12326         body_cost_vec; add vect_body argument to calls to record_stmt_cost;
12327         call record_stmt_cost for prologue costs.
12328         (vectorizable_store): Change argument list for call to
12329         vect_model_store_cost.
12330         (vectorizable_load): Change argument list for call to
12331         vect_model_load_cost.
12332         (new_stmt_vec_info): Remove assignment to
12333         STMT_VINFO_OUTSIDE_OF_LOOP_COST.
12334         * config/spu/spu.c (spu_init_cost): Add prologue and epilogue costs.
12335         (spu_add_stmt_cost): Likewise; also handle NULL stmt_info.
12336         (spu_finish_cost): Add prologue and epilogue costs.
12337         * config/i386/i386.c (i386_init_cost): Add prologue and epilogue costs.
12338         (i386_add_stmt_cost): Likewise; also handle NULL stmt_info.
12339         (i386_finish_cost): Add prologue and epilogue costs.
12340         * config/rs6000/rs6000.c (rs6000_init_cost): Add prologue and epilogue
12341         costs.
12342         (rs6000_add_stmt_cost): Likewise; also handle NULL stmt_info.
12343         (rs6000_finish_cost): Add prologue and epilogue costs.
12344         * tree-vect-slp.c (vect_free_slp_instance): Rename
12345         SLP_INSTANCE_STMT_COST_VEC to SLP_INSTANCE_BODY_COST_VEC.
12346         (vect_create_new_slp_node): Remove assignment to
12347         SLP_TREE_OUTSIDE_OF_LOOP_COST.
12348         (vect_get_and_check_slp_defs): Change parameter list; change argument
12349         lists to calls to vect_model_store_cost and vect_model_simple_cost.
12350         (vect_build_slp_tree): Change parameter list; change argument lists
12351         to calls to vect_model_load_cost, vect_get_and_check_slp_defs, and
12352         recursive self-calls; remove setting of outside_cost from
12353         SLP_TREE_OUTSIDE_OF_LOOP_COST; add vect_body argument to call to
12354         record_stmt_cost.
12355         (vect_analyze_slp_instance): Rename stmt_cost_vec to body_cost_vec;
12356         rename SLP_INSTANCE_STMT_COST_VEC to SLP_INSTANCE_BODY_COST_VEC;
12357         remove assignment to SLP_INSTANCE_OUTSIDE_OF_LOOP_COST; record SLP
12358         prologue costs.
12359         (vect_bb_vectorization_profitable_p): Rename stmt_cost_vec to
12360         body_cost_vec; handle null ci->stmt; add vect_body argument to call
12361         to add_stmt_cost; simplify calls to targetm.vectorize.
12362         builtin_vectorization_cost; return vec_prologue_cost and
12363         vec_epilogue_cost from finish_cost.
12364         (vect_update_slp_costs_according_to_vf): Rename stmt_cost_vec to
12365         body_cost_vec; add vect_body argument to call to add_stmt_cost.
12367 2012-07-24  Richard Henderson  <rth@redhat.com>
12369         * system.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Poison.
12370         * config/cris/cris.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
12371         * config/h8300/h8300.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
12372         * config/mn10300/mn10300.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
12373         * config/rs6000/rs6000.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove
12374         comment reference.
12375         * config/v850/v850.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
12376         * config/v850/v850.md (fixuns_truncsfsi2, fixuns_truncdfsi2): New.
12377         (fix_truncsfsi2, fix_truncdfsi2): Avoid double FIX.
12378         * config/vax/vax.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
12379         * config/vax/vax.md (fixuns_trunc<VAXfp><VAXint>): New.
12380         * doc/tm.texi.in (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
12381         * doc/tm.texi: Rebuild.
12383 2012-07-24  Richard Henderson  <rth@redhat.com>
12385         * optabs.def: New file.
12386         * Makefile.in (OPTABS_H): Add insn-opinit.h.
12387         (MOSTLYCLEANFILES): Likewise.
12388         (insn-opinit.o): Remove reload.h
12389         (simple_rtl_generated_c): Remove insn-opinit.c.
12390         (s-opinit): New rule.
12391         (build/genopinit.o): Add optabs.def.
12392         * genopinit.c (rtx_upname): New.
12393         (optabs): Extract to optabs.def
12394         (enum optab_tag, struct optab_def_d, optabs): New.
12395         (struct pattern_d, patterns): New.
12396         (match_pattern): Split out from ...
12397         (gen_insn): ... here.  Push matches on patterns vec.
12398         (pattern_cmp, optab_kind_cmp, optab_rcode_cmp): New.
12399         (header_file_name, source_file_name, handle_arg): New.
12400         (open_outfile): New.
12401         (main): Sort and emit new tables.  Generate lookup_handler,
12402         raw_optab_handler, swap_optab_enable.
12403         * libfuncs.h (libfunc_entry): Change "size_t optab" to "optab op".
12404         * optabs.c (code_to_optab_): Remove.
12405         (hash_libfunc): Update for optab name change.
12406         (eq_libfunc): Likewise.
12407         (convert_optab_libfunc): Update computation of optab member;
12408         use the new convlib_def table.
12409         (optab_libfunc): Similarly.
12410         (set_optab_libfunc, set_conv_libfunc): Likewise.
12411         (sign_expand_binop): Use swap_optab_enable instead of fake optabs.
12412         (init_insn_codes, init_optab, init_optabv, init_convert_optab): Remove.
12413         (init_optabs): Don't call them; export the data to optabs.def.
12414         (gen_int_libfunc, gen_fp_libfunc): Export non-static.
12415         (gen_fixed_libfunc, gen_signed_fixed_libfunc): Likewise.
12416         (gen_unsigned_fixed_libfunc, gen_int_fp_libfunc): Likewise.
12417         (gen_intv_fp_libfunc, gen_int_fp_fixed_libfunc): Likewise.
12418         (gen_int_fp_signed_fixed_libfunc, gen_int_fixed_libfunc): Likewise.
12419         (gen_int_signed_fixed_libfunc): Likewise.
12420         (gen_int_unsigned_fixed_libfunc): Likewise.
12421         (gen_interclass_conv_libfunc, gen_int_to_fp_conv_libfunc): Likewise.
12422         (gen_ufloat_conv_libfunc): Likewise.
12423         (gen_int_to_fp_nondecimal_conv_libfunc): Likewise.
12424         (gen_fp_to_int_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
12425         (gen_trunc_conv_libfunc, gen_extend_conv_libfunc): Likewise.
12426         (gen_fract_conv_libfunc, gen_fractuns_conv_libfunc): Likewise.
12427         (gen_satfract_conv_libfunc, gen_satfractuns_conv_libfunc): Likewise.
12428         (debug_optab_libfuncs): Update for optab representation change.
12429         * optabs.h: Include insn-opinit.h.
12430         (optab, convert_optab, direct_optab): New typedefs.
12431         (struct optab_handlers, struct widening_optab_handlers): Remove.
12432         (struct optab_libcall_d): Rename from optab_d; remove code_,
12433         handlers, widening members.
12434         (struct convert_optab_libcall_d): Rename from convert_optab_d;
12435         remove code_ and handlers members.
12436         (enum optab_index, enum convert_optab_index): Remove.
12437         (enum direct_optab_index): Remove.
12438         (code_to_optab_): Fix array range.
12439         (optab_to_code): Covert to inline function.
12440         (optab_to_code_, convlib_def, normlib_def): Declare.
12441         (raw_optab_handler, swap_optab_enable): Declare.
12442         (unknown_optab): Remove; export to optabs.def
12443         (ssadd_optab, usadd_optab, sssub_optab, ussub_optab, ssmul_optab,
12444         usmul_optab, ssdiv_optab, usdiv_optab, ssneg_optab, usneg_optab,
12445         ssashl_optab, usashl_optab, add_optab, sub_optab, smul_optab,
12446         addv_optab, subv_optab, smul_highpart_optab, umul_highpart_optab,
12447         smul_widen_optab, umul_widen_optab, usmul_widen_optab,
12448         smadd_widen_optab, umadd_widen_optab, ssmadd_widen_optab,
12449         usmadd_widen_optab, smsub_widen_optab, umsub_widen_optab,
12450         ssmsub_widen_optab, usmsub_widen_optab, sdiv_optab, smulv_optab,
12451         sdivv_optab, sdivmod_optab, udiv_optab, udivmod_optab, smod_optab,
12452         umod_optab, fmod_optab, remainder_optab, ftrunc_optab, and_optab,
12453         ior_optab, xor_optab, ashl_optab, lshr_optab, ashr_optab, rotl_optab,
12454         rotr_optab, vashl_optab, vlshr_optab, vashr_optab, vrotl_optab,
12455         vrotr_optab, smin_optab, smax_optab, umin_optab, umax_optab, pow_optab,
12456         atan2_optab, fma_optab, fms_optab, fnma_optab, fnms_optab, mov_optab,
12457         movstrict_optab, movmisalign_optab, storent_optab, neg_optab,
12458         negv_optab, abs_optab, absv_optab, one_cmpl_optab, bswap_optab,
12459         ffs_optab, clz_optab, ctz_optab, clrsb_optab, popcount_optab,
12460         parity_optab, sqrt_optab, sincos_optab, sin_optab, asin_optab,
12461         cos_optab, acos_optab, exp_optab, exp10_optab, exp2_optab, expm1_optab,
12462         ldexp_optab, scalb_optab, significand_optab, logb_optab, ilogb_optab,
12463         log_optab, log10_optab, log2_optab, log1p_optab, floor_optab,
12464         ceil_optab, btrunc_optab, round_optab, nearbyint_optab, rint_optab,
12465         tan_optab, atan_optab, copysign_optab, signbit_optab, isinf_optab,
12466         cmp_optab, ucmp_optab, eq_optab, ne_optab, gt_optab, ge_optab,
12467         lt_optab, le_optab, unord_optab, strlen_optab, cbranch_optab,
12468         cmov_optab, cstore_optab, ctrap_optab, push_optab, addcc_optab,
12469         reduc_smax_optab, reduc_umax_optab, reduc_smin_optab, reduc_umin_optab,
12470         reduc_splus_optab, reduc_uplus_optab, ssum_widen_optab,
12471         usum_widen_optab, sdot_prod_optab, udot_prod_optab, vec_set_optab,
12472         vec_extract_optab, vec_init_optab, vec_shl_optab, vec_shr_optab,
12473         vec_realign_load_optab, vec_widen_umult_hi_optab,
12474         vec_widen_umult_lo_optab, vec_widen_smult_hi_optab,
12475         vec_widen_smult_lo_optab, vec_widen_umult_even_optab,
12476         vec_widen_umult_odd_optab, vec_widen_smult_even_optab,
12477         vec_widen_smult_odd_optab, vec_widen_ushiftl_hi_optab,
12478         vec_widen_ushiftl_lo_optab, vec_widen_sshiftl_hi_optab,
12479         vec_widen_sshiftl_lo_optab, vec_unpacks_hi_optab, vec_unpacks_lo_optab,
12480         vec_unpacku_hi_optab, vec_unpacku_lo_optab, vec_unpacks_float_hi_optab,
12481         vec_unpacks_float_lo_optab, vec_unpacku_float_hi_optab,
12482         vec_unpacku_float_lo_optab, vec_pack_trunc_optab, vec_pack_ssat_optab,
12483         vec_pack_usat_optab, vec_pack_sfix_trunc_optab,
12484         vec_pack_ufix_trunc_optab, powi_optab, sync_compare_and_swap_optab,
12485         sync_lock_test_and_set_optab, sync_old_add_optab, sync_old_sub_optab,
12486         sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab,
12487         sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab,
12488         sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab,
12489         sync_new_nand_optab, sext_optab, zext_optab, trunc_optab, sfix_optab,
12490         ufix_optab, sfixtrunc_optab, ufixtrunc_optab, sfloat_optab,
12491         ufloat_optab, lrint_optab, lround_optab, lfloor_optab, lceil_optab,
12492         fract_optab, fractuns_optab, satfract_optab, satfractuns_optab,
12493         vec_load_lanes_optab, vec_store_lanes_optab, vcond_optab, vcondu_optab,
12494         movcc_optab, reload_in_optab, reload_out_optab, movmem_optab,
12495         setmem_optab, cmpstr_optab, cmpstrn_optab, cmpmem_optab,
12496         sync_lock_release_optab, sync_add_optab, sync_sub_optab,
12497         sync_ior_optab, sync_and_optab, sync_xor_optab, sync_nand_optab,
12498         atomic_exchange_optab, atomic_compare_and_swap_optab,
12499         atomic_load_optab, atomic_store_optab, atomic_add_fetch_optab,
12500         atomic_sub_fetch_optab, atomic_and_fetch_optab,
12501         atomic_nand_fetch_optab, atomic_xor_fetch_optab, atomic_or_fetch_optab,
12502         atomic_fetch_add_optab, atomic_fetch_sub_optab, atomic_fetch_and_optab,
12503         atomic_fetch_nand_optab, atomic_fetch_xor_optab, atomic_fetch_or_optab,
12504         atomic_add_optab, atomic_sub_optab, atomic_and_optab,
12505         atomic_nand_optab, atomic_xor_optab, atomic_or_optab,
12506         atomic_always_lock_free_optab, atomic_is_lock_free_optab,
12507         atomic_thread_fence_optab, atomic_signal_fence_optab,
12508         vec_perm_optab, vec_perm_const_optab): Likewise.
12509         (struct target_optabs): Remove x_optab_table, x_convert_optab_table,
12510         and x_direct_optab_table members; add pat_enable.
12511         (optab_table, convert_optab_table, direct_optab_table): Remove.
12512         (optab_handler): Use raw_optab_handler.
12513         (widening_optab_handler, convert_optab_handler): Likewise.
12514         (set_optab_handler, set_widening_optab_handler): Remove.
12515         (set_convert_optab_handler, set_direct_optab_handler): Remove.
12516         (direct_optab_handler): Defer to optab_handler.
12517         * rtl.h (NON_GENERATOR_NUM_RTX_CODE): New.
12519 2012-07-24  Jason Merrill  <jason@redhat.com>
12521         * bitmap.c (bitmap_descriptor): Adjust order of parameters to
12522         match MEM_STAT_DECL.
12523         * statistics.h (ALONE_FINAL_MEM_STAT_DECL): Correct typo.
12525 2012-07-24  Richard Henderson  <rth@redhat.com>
12527         * optabs.h (struct optab_d): Rename code member to code_.
12528         (struct convert_optab_h): Likewise.
12529         (code_to_optab_): Rename from code_to_optab.
12530         (code_to_optab, optab_to_code): New.
12531         * dojump.c (do_compare_rtx_and_jump): Use code_to_optab.
12532         * ifcvt.c (noce_emit_move_insn): Likewise.
12533         * optabs.c (simplify_expand_binop): Use optab_to_code.
12534         (expand_simple_binop, shift_optab_p, commutative_optab_p): Likewise.
12535         (avoid_expensive_constant, expand_binop_directly): Likewise.
12536         (expand_binop, expand_simple_unop, expand_unop_direct): Likewise.
12537         (expand_unop, prepare_float_lib_cmp, expand_fixed_convert): Likewise.
12538         (have_insn_for, debug_optab_libfuncs): Likewise.
12539         (init_optab, init_optabv, init_convert_optab): Update for optab
12540         member name change.
12542         * libfuncs.h: Include optabs.h.
12543         * dwarf2out.c, lto-streamer.in.c: Don't include libfuncs.h.
12544         * Makefile.in (LIBFUNCS_H): Add OPTABS_H.
12545         (lto-streamer-in.o, dwarf2out.o): Update deps.
12547         * optabs.h (unknown_optab): New.
12548         * builtins.c (interclass_mathfn_icode): Use it.
12549         * dojump.c (do_compare_rtx_and_jump): Likewise.
12550         * optabs.c (optab_for_tree_code, expand_binop): Likewise.
12551         * tree-vect-generic.c (add_rshift, expand_vector_divmod): Likewise.
12552         (expand_vector_operations_1): Likewise.
12553         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
12554         * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
12556 2012-07-24  Steven Bosscher  <steven@gcc.gnu.org>
12558         * alloc-pool.c (create_alloc_pool): Fix ENABLE_CHECKING check.
12560 2012-07-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12562         PR target/54051
12563         * config/arm/arm.c (arm_print_operand_address): Remove superfluous
12564         printing of 0.
12565         * config/arm/neon.md ("neon_vld3_lane<mode>":VD): Remove alignment
12566         specifier.
12567         ("neon_vld3_lane<mode>":VMQ): Likewise.
12568         ("neon_vld3_dup<mode>":VDX): Likewise.
12569         ("neon_vst3_lane<mode>":VD): Likewise.
12570         ("neon_vst3_lane<mode>":VMQ): Likewise.
12572 2012-07-24  Roland McGrath  <mcgrathr@google.com>
12574         * arm.c (arm_get_frame_offsets): Don't use fixed regs for
12575         stack alignment padding.
12577 2012-07-24  Uros Bizjak  <ubizjak@gmail.com>
12579         PR target/53961
12580         * config/i386/i386.c (ix86_legitimate_address_p): Move check for
12581         negative constant address for TARGET_X32 ...
12582         (ix86_decompose_address): ... here.  Reject constant addresses
12583         that don't satisfy x86_64_immediate_operand predicate.
12585 2012-07-24  Julian Brown  <julian@codesourcery.com>
12587         * doc/sourcebuild.texi (arm_hf_eabi): Document effective-target check.
12589 2012-07-24  Steven Bosscher  <steven@gcc.gnu.org>
12591         * sbitmap.h (SBITMAP_ELT_BITS): Use "1u" trick as for BITMAP_WORD_BITS.
12592         Move test to check that there is a popcount function for the the number
12593         of bits in SBITMAP_ELT_BITS to sbitmap.c.
12594         * sbitmap.c: Test SBITMAP_ELT_BITS, not HOST_BITS_PER_WIDEST_FAST_INT.
12595         MEM_STAT_INFO): Define in terms of their ALONE counterparts.
12597         * configure.ac (GATHER_STATISTICS): Always define, non-zero if enabled.
12598         * configure: Regenerate.
12599         * statistics.h (GATHER_STATISTICS): Error out if it is not defined.
12600         (GCC_MEM_STAT_ARGUMENTS): New define.
12601         (ALONE_MEM_STAT_DECL): Define in terms of GCC_MEM_STAT_ARGUMENTS.
12602         (ALONE_FINAL_MEM_STAT_DECL, ALONE_FINAL_PASS_MEM_STAT): New defines.
12603         (MEM_STAT_DECL, FINAL_MEM_STAT_DECL, PASS_MEM_STAT,
12604         FINAL_PASS_MEM_STAT): Define.
12605         * ggc-internal.h (ggc_record_overhead): Use FINAL_MEM_STAT_DECL.
12606         * ggc.h (ggc_record_overhead, ggc_free_overhead,
12607         ggc_prune_overhead_list): Remove internal prototypes, they are defined
12608         already in ggc-internal.h.
12609         * ggc-common.c (struct loc_descriptor): Remove #ifdef GATHER_STATISTICS
12610         wrappers.
12611         (add_statistics): Likewise.
12612         (dump_ggc_loc_statistics): Likewise. Return if GATHER_STATISTICS is 0.
12613         * ggc-zone.c (struct page_entry): Remove #ifdef GATHER_STATISTICS
12614         wrappers around "survived" and "stats" members.
12615         (alloc_large_page): Always initialize survived.
12616         (ggc_internal_alloc_zone_stat): Likewise.
12617         Remove #ifdef GATHER_STATISTICS wrappers.  Record overhead if
12618         GATHER_STATISTICS is non-0.
12619         (ggc_free): Convert #ifdef GATHER_STATISTICS to if-code.
12620         (sweep_pages): Always increase survived.
12621         (ggc_collect_1): Convert #ifdef GATHER_STATISTICS to if-code.
12622         (calculate_average_page_survival): Always define.
12623         (ggc_collect): Convert #ifdef GATHER_STATISTICS to if-code.
12624         (ggc_print_statistics): Likewise.
12625         (ggc_pch_read): Likewise.
12626         * ggc-page.c (struct globals): Always define "stats" member.
12627         (ggc_internal_alloc_stat): Convert #ifdef GATHER_STATISTICS to if-code.
12628         (ggc_free): Likewise.
12629         (ggc_collec): Likewise.
12630         (ggc_print_statistics): Likewise.
12631         * bitmap.h (struct bitmap_head_def): Always define "desc" member.
12632         (bitmap_initialize_stat): Convert #ifdef GATHER_STATISTICS to if-code.
12633         * gimple.h (enum gimple_alloc_kind): Always define.
12634         (gimple_alloc_kind): Likewise.
12635         * tree-flow.h (phinodes_print_statistics): Always define.
12636         (ssanames_print_statistics): Likewise.
12637         * vec.h (vec_heap_free): Always define.
12638         (VEC_stack_alloc): Define if GATHER_STATISTICS is non-0.
12639         * alloc-pool.c (alloc_pool_descriptor): Always define.
12640         (create_alloc_pool): Convert #ifdef GATHER_STATISTICS to if-code.
12641         (empty_alloc_pool): Likewise.
12642         (pool_alloc): Likewise.
12643         (pool_free): Likewise.
12644         (dump_alloc_pool_statistics): Likewise.
12645         (print_statistics): Always define.
12646         * bitmap.c (struct bitmap_descriptor): Always define.
12647         (bitmap_register): Pass ALONE_FINAL_PASS_MEM_STAT.
12648         (register_overhead): Always define.
12649         (bitmap_element_free): Convert #ifdef GATHER_STATISTICS to if-code.
12650         (bitmap_element_allocate): Likewise.
12651         (bitmap_elt_clear_from): Likewise.
12652         (bitmap_obstack_alloc_stat): Likewise.
12653         (bitmap_gc_alloc_stat): Likewise.
12654         (bitmap_obstack_free): Likewise.
12655         (bitmap_find_bit): Likewise.
12656         (bitmap_ior_and_into):  Likewise.
12657         (bitmap_print): Likewise.
12658         (dump_bitmap_statistics): Likewise. Return if GATHER_STATISTICS is 0.
12659         * gimple.c (gimple_alloc_counts, gimple_alloc_sizes): Always define.
12660         (gimple_alloc_kind_names): Likewise.
12661         (gimple_alloc_stat): Convert #ifdef GATHER_STATISTICS to if-code.
12662         (dump_gimple_statistics): Likewise. Return if GATHER_STATISTICS is 0.
12663         * rtl.c (rtx_alloc_counts, rtx_alloc_sizes, rtvec_alloc_counts,
12664         rtvec_alloc_sizes): Always define.
12665         (rvec_alloc): Convert #ifdef GATHER_STATISTICS to if-code.
12666         (rtx_alloc_stat): Likewise.
12667         (dump_rtx_statistics): Likewise. Return if GATHER_STATISTICS is 0.
12668         * tree.c (_obstack_allocated_p, tree_code_counts, tree_node_counts,
12669         tree_node_sizes, tree_node_kind_names): Always define.
12670         (record_node_allocation_statistics): Convert #ifdef GATHER_STATISTICS
12671         to if-code.
12672         (type_hash_canon): Likewise.
12673         (dump_tree_statistics): Likewise.
12674         * tree-ssanames.c (ssa_name_nodes_reused, ssa_name_nodes_created):
12675         Always define.
12676         (ssanames_print_statistics): Likewise.
12677         (make_ssa_name_fn): Convert #ifdef GATHER_STATISTICS to if-code.
12678         * tree-phinodes.c (phi_nodes_reused, phi_nodes_created): Always define.
12679         (phinodes_print_statistics): Likewise.
12680         (allocate_phi_node): Convert #ifdef GATHER_STATISTICS to if-code.
12681         * vec.c (struct vec_descriptor): Always define.
12682         (hash_descriptor, eq_descriptor, ptr_hash_entry, hash_ptr, eq_ptr,
12683         vec_descriptor, rester_overhead, free_overhead): Likewise.
12684         (cmp_statistic): Likewise.
12685         (vec_heap_free): Convert #ifdef GATHER_STATISTICS to if-code.
12686         (vec_heap_o_reserve_1): Likewise.
12687         (dump_vec_loc_statistics): Likewise.
12689 2012-07-24  Richard Guenther  <rguenther@suse.de>
12691         PR tree-optimization/53616
12692         * tree-loop-distribution.c (ldist_gen): Do not change
12693         partition ordering when merging partitions.
12695 2012-07-24  Alan Modra  <amodra@gmail.com>
12697         PR target/53914
12698         PR target/54009
12699         * config/rs6000/constraints.md (Y): Use mem_operand_gpr.
12700         * config/rs6000/predicates.md (word_offset_memref_operand): Delete.
12701         Adjust all rs6000_legitimate_offset_address_p calls.
12702         * config/rs6000/rs6000-protos.h (mem_operand_gpr): Declare.
12703         (rs6000_secondary_reload_gpr): Declare.
12704         (rs6000_legitimate_offset_address_p): Update prototype.
12705         (rs6000_offsettable_memref_p): Delete.
12706         (rs6000_secondary_reload_ppc64): Delete.
12707         * config/rs6000/rs6000.c (address_offset): New function.
12708         (mem_operand_gpr): Likewise.
12709         (rs6000_legitimate_offset_address_p): Add worst_case param.  When
12710         not worst_case assume class of regs with least restrictive offsets.
12711         Adjust all calls.
12712         (legitimate_lo_sum_address_p): Simplify register mode tests.
12713         (rs6000_legitimize_address): Likewise.  Assume best case offset
12714         addressing.  Combine ELF and MACHO lo_sum code.
12715         (rs6000_mode_dependent_address): Correct offset addressing limits.
12716         (rs6000_offsettable_memref_p): Make static, add reg_mode param.
12717         Use reg_mode to help rs6000_legitimate_offset_address_p.
12718         (rs6000_secondary_reload): Use address_offset.  Handle 32-bit multi
12719         gpr load/store when offset too large.
12720         (rs6000_secondary_reload_gpr): Renamed rs6000_secondary_reload_ppc64.
12721         (rs6000_split_multireg_move): Adjust rs6000_offsettable_memref_p calls.
12722         * config/rs6000/rs6000.md (movdf_hardfloat32): Use 'Y' constraint
12723         for gpr load/store.  Order alternatives as r->Y,Y->r,r->r and
12724         d->m,m->d,d->d.  Correct size of gpr load/store.
12725         (movdf_softfloat32): Use 'Y' constraint for gpr load/store.  Order
12726         alternatives.
12727         (movti_ppc64): Likewise.
12728         (movdi_internal32): Likewise.  Also disparage fprs.
12729         (movdi_mfpgpr, movdi_internal64): Likewise.
12730         (movtf_internal): Use 'm' for fpr load/store.  Order alternatives.
12731         (movtf_softfloat): Order alternatives.
12732         (extenddftf2_internal): Use 'm' and 'Y' for store.
12733         (movti_power, movti_string): Use 'Y' for gpr load/store.  Order.
12734         (stack_protect_setdi, stack_protect_testdi): Likewise.
12735         (movdf_hardfloat64_mfpgpr, movdf_hardfloat64): Order alternatives.
12736         (movdf_softfloat64): Likewise.
12737         (reload_<mode>_store): Adjust reload_di_store to provide
12738         reload_si_store as well.
12739         (reload_<mode>_load): Likewise.
12741 2012-07-23  Oleg Endo  <olegendo@gcc.gnu.org>
12743         PR target/51244
12744         * config/sh/predicates.md (general_movsrc_operand,
12745         general_movdst_operand): Reject T_REG.
12746         * config/sh/sh.md (*extendqisi2_compact_reg, *extendhisi2_compact_reg,
12747         movsi_i, movsi_ie, movsi_i_lowpart, *movqi_reg_reg, *movhi_reg_reg):
12748         Remove T_REG alternatives.
12749         (*negtstsi): New insn.
12751 2012-07-23  Oleg Endo  <olegendo@gcc.gnu.org>
12753         PR target/53511
12754         * config/sh/sh.md (mulsf3_ie): Delete.
12755         (mulsf3_i4): Rename to mulsf3_i.
12756         (mulsf3): Emit mulsf3_i insn.
12758 2012-07-23  Oleg Endo  <olegendo@gcc.gnu.org>
12760         * config/sh/sh.md (addc1, subc1): Delete.
12761         (adddi3_compact): Use addc instead of addc1.
12762         (subdi3_compact): Use subc instead of subc1.
12764 2012-07-23  Uros Bizjak  <ubizjak@gmail.com>
12766         * config/i386/i386-protos.h (ix86_lea_outperforms): Remove prototype.
12767         * config/i386/i386.c (ix86_lea_outperforms): Make static.  Make
12768         split_cost argument signed.
12769         (ix86_avoid_lea_for_add): Cleanup.
12770         (ix86_use_lea_for_mov): Use INVALID_REGNUM instead of -1.
12771         (ix86_avoid_lea_for_addr): Ditto.  Make split_cost signed.
12772         Use gen_lowpart instead of gen_rtx_SUBREG.  Cleanup.
12774 2012-07-23  Ulrich Weigand  <ulrich.weigand@linaro.org>
12776         * config/arm/arm.c (arm_reorg): Ensure all insns are split.
12778 2012-07-23  Uros Bizjak  <ubizjak@gmail.com>
12780         PR target/53961
12781         * config/i386/i386.md (*lea): Add asserts to detect invalid addresses.
12782         * config/i386/i386.c (ix86_print_operand_address): Ditto.
12783         (ix86_decompose_address): Allow (zero_extend:DI (subreg:SI (...)))
12784         addresses.  Prevent zero extensions of CONST_INT operands.
12786 2012-07-23  Steven Bosscher  <steven@gcc.gnu.org>
12788         * sbitmap.h (struct int_list): Remove.
12789         (sbitmap_intersect_of_predsucc, sbitmap_union_of_predsucc):
12790         Remove prototypes of non-existing function.
12791         (sbitmap_intersect_of_predecessors, sbitmap_intersect_of_successors,
12792         sbitmap_union_of_predecessors, sbitmap_union_of_successors): Remove
12793         unused defines.
12794         (sbitmap_intersection_of_succs, sbitmap_intersection_of_preds,
12795         sbitmap_union_of_succs, sbitmap_union_of_preds): Move prototypes to...
12796         * basic-block.h: ... here.
12797         * sbitmap.c: Do not include basic-block.h.
12798         (sbitmap_intersection_of_succs, sbitmap_intersection_of_preds,
12799         sbitmap_union_of_succs, sbitmap_union_of_preds): Move functions to...
12800         * cfganal.c: ... here.
12801         * bt-load.c (compute_out, link_btr_uses): Update for above changes.
12802         * gcse.c (compute_code_hoist_vbeinout): Likewise.
12803         * lcm.c (compute_antinout_edge, compute_available): Likewise.
12804         * Makefile.in: Fix sbitmap.o dependencies.
12806 2012-07-23  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12807             Nick Clifton  <nickc@redhat.com>
12809         * config/frv/frv-protos.h (frv_ifcvt_machdep_init): Prototype.
12810         * config/frv/frv.c (frv_ifcvt_machdep_init): Change type of
12811         (unused) parameter to void *.
12813 2012-07-23  Richard Guenther  <rguenther@suse.de>
12815         * tree-ssa-alias.c (dump_alias_info): Walk over local decls
12816         instead of referenced vars.
12818 2012-07-23  Steven Bosscher  <steven@gcc.gnu.org>
12820         * coverage.c: Refer to "notes file" instead of "graph file"
12821         in all comments.  Explain history of bbg prefix.
12822         * gcov-io.h: Likewise.
12823         * gcov.c: Likewise.
12824         (find_source): Likewise in fnotice.
12825         (read_graph_file): Likewise.
12826         (read_count_file): Likewise.
12827         * doc/gcov.texi: Document -fprofile-dir flag.  Add "notes file"
12828         and "data file" explicitly in the explanation of the files.
12830 2012-07-22  Steven Bosscher  <steven@gcc.gnu.org>
12832         PR tree-optimization/53881
12833         * tree-cfg.c (group_case_labels_stmt): Look up the basic block
12834         for each label and compare them instead of labels.
12836 2012-07-22  Steven Bosscher <steven@gcc.gnu.org>
12838         * opts.c (common_handle_option): Do not set
12839         flag_value_profile_transformations for -fprofile-generate.
12840         * profile.c (instrument_values): Use COUNTER_FOR_HIST_TYPE.
12841         (BB_TO_GCOV_INDEX): Remove.
12842         (output_location): Don't use it.
12843         (branch_prob): Likewise.  Don't fiddle with the index of
12844         ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR.  Use clear_aux_for_blocks.
12845         (find_spanning_tree):
12846         * gcov.c (struct function_info): Document that blocks 0 and 1
12847         are the entry resp. exit blocks in gcov, too, like in GCC itself.
12848         (solve_flow_graph): Use ENTRY_BLOCK and EXIT_BLOCK for special
12849         blocks identification.
12850         (output_lines): Likewise.
12851         * value-prof.c (gimple_value_profile_transformations): Do not
12852         test flag_value_profile_transformations again.
12853         (gimple_ic_transform): Take a gimple_stmt_iterator like all other
12854         transformation functions.
12855         (gimple_values_to_profile):
12856         Don't test flag_value_profile_transformations
12857         * tree-profile.c (tree_profiling): Assert that the cgraph is in
12858         the CGRAPH_STATE_IPA_SSA state.
12859         Do not set, or look at, after_tree_profile.
12860         * function.h (struct function): Remove after_tree_profile bit.
12861         * omp-low.c (expand_omp_taskreg): Don't set after_tree_profile.
12862         * tree-inline.c (initialize_cfun): Don't copy it.
12863         * lto-streamer-out.c (output_struct_function_base): Don't stream it.
12864         * lto-streamer-in.c (input_struct_function_base): Likewise.
12866 2012-07-22  Oleg Endo  <olegendo@gcc.gnu.org>
12868         * config/sh/sh.h (TARGET_DYNSHIFT): New macro.
12869         (SH_DYNAMIC_SHIFT_COST): Use it.
12870         * config/sh/sh.c (expand_ashiftrt, shl_sext_kind): Likewise.
12871         (sh_dynamicalize_shift_p): Add TARGET_DYNSHIFT condition.
12872         Add sanity check for input value.  Add function description.
12873         * config/sh/sh.md (ashlsi3, ashlsi3_std, ashrsi3_d, lshrsi3,
12874         lshrsi3_d): Use TARGET_DYNSHIFT.
12876 2012-07-22  Oleg Endo  <olegendo@gcc.gnu.org>
12878         * config/sh/sh.md (negc): Delete expander.
12879         (*negc): Rename insn to negc.
12881 2012-07-22  Uros Bizjak  <ubizjak@gmail.com>
12883         PR target/53961
12884         * config/i386/i386.md (*lea): New insn pattern.
12885         (*lea_1): Remove.
12886         (*lea<mode>_2): Ditto.
12887         (*lea_{3,4,5,6}_zext): Ditto.
12888         * config/i386/predicates.md (lea_address_operand): Do not reject
12889         zero-extended address operands.
12890         * config/i386/constraints.md (j): Remove address constraint.
12891         * config/i386/i386.c (ix86_decompose_address): Allow SImode subreg
12892         of an address.
12893         (ix86_print_operand_address): Handle SImode subreg of an address.
12894         (ix86_avoid_lea_for_addr): Reject zero-extended addresses for now.
12896 2012-07-22  Hans-Peter Nilsson  <hp@axis.com>
12898         Emit executable-stack note correctly for CRIS targets.
12899         * config/cris/cris.c (cris_file_end): New function.
12900         (TARGET_ASM_FILE_END): Define.
12902 2012-07-22  Chung-Lin Tang  <cltang@codesourcery.com>
12903             Maxim Kuvyrkov  <maxim@codesourcery.com>
12904             NetLogic Microsystems Inc.
12906         * config/mips/mips.c (mips_issue_rate): Handle XLP.
12907         * config/mips/mips.md: Include xlp.md.
12908         * config/mips/xlp.md: New file.
12910 2012-07-21  Steven Bosscher <steven@gcc.gnu.org>
12912         PR gcov-profile/32543
12913         * profile.c (branch_prob): Update total_num_edges_instrumented and
12914         report the number of edges to instrument.
12916 2012-07-21  Oleg Endo  <olegendo@gcc.gnu.org>
12918         * config/sh/sh.md: Correct comment regarding clrt and sett insns.
12920 2012-07-21  Andrew Pinski  <apinski@cavium.com>
12922         * config/mips/mips.md (*popcountdi2_trunc): New pattern
12923         to handle popcount of a truncation.
12925 2012-07-21  Andrew Pinski  <apinski@cavium.com>
12927         * config/mips/mips-protos.h (mips_expand_ext_as_unaligned_load):
12928         Add a bool argument.
12929         * config/mips/mips.c (mips_block_move_straight): Update call to
12930         mips_expand_ext_as_unaligned_load.
12931         (mips_expand_ext_as_unaligned_load): Add unsigned_p argument.
12932         Accept DImode dest when the width is that of SImode.
12933         * config/mips/mips.md (extv): Update call to
12934         mips_expand_ext_as_unaligned_load.
12935         (extzv): Likewise.
12937 2012-07-21  Andrew Pinski  <apinski@cavium.com>
12939         * config/mips/mips.c (mips_get_unaligned_mem): Copy *op after calling
12940         adjust_address.
12942 2012-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
12944         * config/mips/mips.md (define_attr sync_*): Move before "type".
12945         (define_attr "type"): New values "atomic" and "syncloop".
12946         * config/mips/sync.md (atomic_exchange<mode>, atomic_fetch_add<mode>):
12947         Set "type" attribute.
12948         * config/mips/generic.md (generic_atomic, generic_syncloop):
12949         New reservations.
12950         * config/mips/10000.md, config/mips/20kc.md,
12951         * config/mips/24k.md, config/mips/4130.md,
12952         * config/mips/4k.md, config/mips/5400.md,
12953         * config/mips/5500.md, config/mips/5k.md,
12954         * config/mips/7000.md, config/mips/74k.md,
12955         * config/mips/9000.md, config/mips/loongson2ef.md,
12956         * config/mips/loongson3a.md, config/mips/octeon.md,
12957         * config/mips/sb1.md, config/mips/sr71k.md,
12958         * config/mips/xlr.md: Handle "atomic" and "syncloop" types.
12960 2012-07-20  Oleg Endo  <olegendo@gcc.gnu.org>
12962         * config/sh/sh.md: Group and sort shift related patterns.
12963         (ashlsi3_n, *ashlhi3_n, lshrsi3_n): Remove length attributes.
12965 2012-07-20  Hans-Peter Nilsson  <hp@axis.com>
12967         * config/cris/cris.c (cris_asm_output_ident): Remove unused
12968         local variables section_asm_op, size, buf.
12970 2012-07-20  Pat Haugen <pthaugen@us.ibm.com>
12971             Steven Bosscher  <steven@gcc.gnu.org>
12973         * config/rs6000/power4.md (power4-store-update): Fix reservation.
12974         (power4-three): Likewise.
12976 2012-07-20  Sameera Deshpande  <sameera.deshpande@arm.com>
12977             Greta Yorsh  <Greta.Yorsh@arm.com>
12979         * config/arm/arm.c (arm_cortex_a15_tune): New tune.
12980         * config/arm/arm-cores.def (cortex-a15): Use it.
12982 2012-07-20  Sameera Deshpande  <sameera.deshpande@arm.com>
12983             Greta Yorsh  <Greta.Yorsh@arm.com>
12985         * config/arm/arm-protos.h (tune_params): Add prefer_ldrd_strd.
12986         * config/arm/arm.c (arm_slowmul_tune): Initialize it.
12987         (arm_fastmul_tune, arm_strongarm_tune): Likewise.
12988         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune): Likewise.
12989         (arm_cortex_tune, arm_cortex_a5_tune, arm_cortex_a9_tune): Likewise.
12990         (arm_fa726te_tune): Likewise.
12992 2012-07-20  Richard Guenther  <rguenther@suse.de>
12994         * tree-dfa.c (collect_dfa_stats): Simplify.
12995         * tree-ssa-structalias.c (compute_may_aliases): Do not dump
12996         referenced vars.
12997         * cfgexpand.c (estimated_stack_frame_size): Walk over local
12998         decls instead of referenced vars.
12999         * tree-ssa.c (delete_tree_ssa): Simplify.
13000         * tree-tailcall.c (find_tail_calls): Walk over local decls
13001         instead of referenced vars.
13002         (add_virtual_phis): Remove.
13003         (tree_optimize_tail_calls_1): Instead mark the virtual operand
13004         for renaming.
13006 2012-07-20  Steven Bosscher  <steven@gcc.gnu.org>
13008         * basic-block.h (BB_FLAGS_TO_PRESERVE): New define.
13009         (brief_dump_cfg): Update prototype to take flags argument.
13010         (check_bb_profile): Remove prototype.
13011         * tracer.c (tracer): Update brief_dump_cfg calls.
13012         * cfghooks.c (dump_bb): Do not pass TDF_COMMENT to dump_bb_info.
13013         Call dump_bb_info before and after the cfghook dump_bb.  Terminate
13014         the dump with a newline.
13015         (dump_flow_info): Do not call check_bb_profile.
13016         * cfg.c (clear_bb_flags): Update using BB_FLAGS_TO_PRESERVE.
13017         (check_bb_profile): Make static.  Take indent and flags arguments.
13018         (dump_bb_info): Always dump loop depth.  With TDF_DETAILS, call
13019         check_bb_profile.  Print one edge per line.
13020         (brief_dump_cfg): Take a flags argument, and filter out
13021         TDF_COMMENT and TDF_DETAILS.
13022         * pretty-print.c (pp_base_newline): Set pp_needs_newline to false.
13023         * gimple-pretty-print.c (dump_gimple_bb_header): Do not use
13024         dump_bb_info here, it is already called from dump_bb.  Idem for
13025         check_bb_profile.
13026         (dump_gimple_bb_footer): Likewise.
13027         (gimple_dump_bb_buff): Call pp_flush after dump_gimple_stmt to
13028         avoid broken dumps for statement histograms.
13029         (gimple_dump_bb): Handle ENTRY_BLOCK and EXIT_BLOCK.  Do
13030         not call pp_flush here, the buffer should be empty.
13031         * sched-rgn.c (debug_region): Pass TDF_BLOCKS to dump_bb.
13032         * sched-vis.c (debug_bb_slim): Likewise.
13033         * tree-cfg.c (remove_bb): Pass dump_flags to dump_bb.
13034         (gimple_debug_bb): Pass TDF_BLOCKS to dump_bb.
13035         (gimple_dump_cfg): Do brief_dump_cfg with TDF_COMMENT.
13036         (dump_function_to_file): Do not call check_bb_profile on
13037         ENTRY_BLOCK and EXIT_BLOCK, check_bb_profile doesn't handle them.
13038         Use dump_bb instead of gimple_dump_bb.
13039         (print_loops_bb): Use dump_bb instead of gimple_dump_bb.
13040         * passes.c (execute_function_dump): Always call print_rtl_with_bb
13041         for RTL dumps.
13042         * cfgrtl.c (print_rtl_with_bb): Handle printing without an up-to-date
13043         CFG.  With TDF_BLOCKS and TDF_DETAILS, do DF dumps at the top and
13044         bottom of each basic block.
13046 2012-07-20  Richard Guenther  <rguenther@suse.de>
13048         PR tree-optimization/54031
13049         * tree-ssa-ccp.c (get_value_from_alignment): Use
13050         get_pointer_alignment_1.
13052 2012-07-20  Richard Guenther  <rguenther@suse.de>
13054         * tree-inline.c (add_local_variables): Remove check_var_ann
13055         parameter and dead code.
13056         (expand_call_inline): Adjust.
13057         (tree_function_versioning): Likewise.
13059 2012-07-20  Jakub Jelinek  <jakub@redhat.com>
13061         PR c++/28656
13062         * tree-vrp.c (nonnull_arg_p): Handle all nonnull attributes instead
13063         of just the first one.
13065 2012-07-20  Richard Guenther  <rguenther@suse.de>
13067         * builtins.c (get_object_alignment_2): Correct offset handling
13068         when using type alignment of a MEM_REF kind base.
13070 2012-07-20  Kirill Yukhin  <kirill.yukhin@intel.com>
13072         PR target/53877
13073         * config/i386/lzcntintrin.h (_lzcnt_u32): New.
13074         (_lzcnt_u64): Ditto.
13076 2012-07-19  Eric Botcazou  <ebotcazou@adacore.com>
13078         * config/sparc/sparc.md (adddi3_insn_sp32): Add earlyclobber.
13080 2012-07-19  Eric Botcazou  <ebotcazou@adacore.com>
13082         * tree-ssa-forwprop.c (combine_conversions): Punt if the RHS of the
13083         defining statement is a SSA name that occurs in abnormal PHIs.
13085 2012-07-19  Eric Botcazou  <ebotcazou@adacore.com>
13087         * gimple-fold.c (canonicalize_constructor_val): Strip only useless type
13088         conversions.
13090 2012-07-19  Jakub Jelinek  <jakub@redhat.com>
13092         PR rtl-optimization/53942
13093         * function.c (assign_parm_setup_reg): Avoid zero/sign extension
13094         directly from likely spilled non-fixed hard registers, move them
13095         to pseudo first.
13097 2012-07-19  Steve Ellcey  <sellcey@mips.com>
13099         * config/mips/mips.c (mips_set_mips16_mode): Clear SYNCI_MASK in
13100         MIPS16 mode.
13102 2012-07-19  Jason Merrill  <jason@redhat.com>
13104         PR debug/53235
13105         * dwarf2out.c (get_die_parent): New.
13106         (generate_type_signature): Use it.
13108 2012-07-19  Richard Henderson  <rth@redhat.com>
13110         * config/ia64/vect.md (smulv4hi3_highpart): New.
13111         (umulv4hi3_highpart): New.
13112         (vec_widen_smult_even_v4hi): Rename from pmpy2_even.
13113         (vec_widen_smult_odd_v4hi): Rename from pmpy2_odd.
13114         (udot_prodv8qi, sdot_prodv8qi): Remove.
13115         (sdot_prodv4hi, udot_prodv4hi): Remove.
13116         * config/ia64/ia64.c (ia64_expand_dot_prod_v8qi): Remove.
13117         * config/ia64/ia64-protos.h: Update.
13119         * tree-vect-patterns.c (vect_recog_divmod_pattern): Do not require
13120         vectors larger than UNITS_PER_WORD.
13122         * expr.c (store_constructor): Initialize icode with CODE_FOR_nothing.
13123         * tree-vect-stmts.c (vectorizable_operation): Use LAST_INSN_CODE for
13124         dummy != CODE_FOR_nothing value.
13126 2012-07-19  Uros Bizjak  <ubizjak@gmail.com>
13128         * doc/tm.texi.in (MODE_AFTER): Add entity as the first macro argument.
13129         * doc/tm.texi: Regenerate.
13130         * mode-switching.c (optimize_mode_switching): Update MODE_AFTER call.
13131         * config/sh/sh.h (MODE_AFTER): Update.
13132         * config/epiphany/epiphany.h (MODE_AFTER): Update.
13134 2012-07-19  Jakub Jelinek  <jakub@redhat.com>
13136         PR middle-end/54017
13137         * tree-cfgcleanup.c (cleanup_omp_return): Remove.
13138         (cleanup_tree_cfg_bb): Don't call it.
13139         * omp-low.c (expand_omp_sections): Fix up the !exit_reachable case
13140         handling.
13142 2012-07-19  Christian Bruel  <christian.bruel@st.com>
13144         PR target/54029
13145         * config/sh/sh.c (gen_far_branch): Set JUMP_LABEL for return jumps.
13147 2012-07-19  Richard Guenther  <rguenther@suse.de>
13148             Eric Botcazou  <ebotcazou@adacore.com>
13150         * tree-ssa-ccp.c (valid_lattice_transition): Clarify comment
13151         about transition from invariant to known bits.
13152         (likely_value): Addresses with UNDEFINED components are UNDEFINED.
13154 2012-07-19  Richard Guenther  <rguenther@suse.de>
13156         PR tree-optimization/53970
13157         * tree-vect-data-refs.c (not_size_aligned): Avoid sign-compare warning.
13159 2012-07-19  Tristan Gingold  <gingold@adacore.com>
13160             Richard Henderson  <rth@redhat.com>
13162         * opts.c (finish_options): Handle UI_SEH.
13163         * expr.c (build_personality_function): Handle UI_SEH.
13164         * dwarf2out.c (dwarf2out_begin_prologue): Handle UI_SEH.
13165         * coretypes.h (unwind_info_type): Add UI_SEH.
13166         * config/i386/winnt.c (i386_pe_seh_emit_except_personality):
13167         New function.
13168         (i386_pe_seh_init_sections): Likewise.
13169         * config/i386/cygming.h (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): Define.
13170         (TARGET_ASM_INIT_SECTIONS): Define.
13171         * common/config/i386/i386-common.c (TARGET_EXCEPT_UNWIND_INFO): Define.
13172         (i386_except_unwind_info): New function.
13174 2012-07-18  Maciej W. Rozycki  <macro@codesourcery.com>
13175             Chao-ying Fu  <fu@mips.com>
13177         * config/mips/mips.opt (mmcu): New option.
13178         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
13179         _mips_mcu when TARGET_MCU.
13180         (ASM_SPEC): Pass mcu options to the assembler.
13181         * doc/invoke.texi (MIPS Options): Document -mmcu and -mno-mcu.
13183 2012-07-18  Ralf Corsépius  <ralf.corsepius@rtems.org>
13185         * config.gcc (v850-*-rtems*): New target.
13186         * config/v850/rtems.h: New.
13187         * config/v850/t-rtems: New.
13189 2012-07-18  Bill Schmidt  <wschmidt@linux.ibm.com>
13191         * doc/invoke.texi: Add -fhoist-adjacent-loads and -ftree-slsr to list
13192         of flags controlling optimization; add -ftree-slsr to list of flags
13193         enabled by default at -O; add -fhoist-adjacent-loads to list of flags
13194         enabled by default at -O2; add -fvect-cost-model to list of flags
13195         enabled by default at -O3; document -fhoist-adjacent-loads and
13196         -ftree-slsr.
13197         * opts.c (default_option): Make -ftree-slsr default at -O1 and above.
13198         * gimple-ssa-strength-reduction.c (gate_strength_reduction): Use
13199         flag_tree_slsr.
13200         * common.opt: Add -ftree-slsr with flag_tree_slsr.
13202 2012-07-18  Jie Zhang  <jzhang918@gmail.com>
13203             Julian Brown  <julian@codesourcery.com>
13205         * config/arm/arm.c (arm_rtx_costs_1): Adjust cost for CONST_VECTOR.
13206         (arm_size_rtx_costs): Likewise.
13207         (neon_valid_immediate): Add a case for double 0.0.
13209 2012-07-18  Andrew Stubbs  <ams@codesourcery.com>
13210             Mark Shinwell  <shinwell@codesourcery.com>
13211             Julian Brown  <julian@codesourcery.com>
13213         * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp)
13214         (*movdi_vfp_cortexa8, *movsf_vfp, *thumb2_movsf_vfp)
13215         (*movdf_vfp, *thumb2_movdf_vfp, *movsfcc_vfp)
13216         (*thumb2_movsfcc_vfp, *movdfcc_vfp, *thumb2_movdfcc_vfp): Add
13217         neon_type.
13218         * config/arm/arm.md (neon_type): Update comment.
13220 2012-07-18  Richard Guenther  <rguenther@suse.de>
13222         PR tree-optimization/53970
13223         * tree.h (contains_packed_reference): Remove.
13224         * expr.c (contains_packed_reference): Likewise.
13225         * tree-vect-data-refs.c (not_size_aligned): New function.
13226         (vector_alignment_reachable_p): Use it.
13227         (vect_supportable_dr_alignment): Likewise.
13229 2012-07-18  Richard Guenther  <rguenther@suse.de>
13231         * tree.h (get_object_or_type_alignment): Remove.
13232         * builtins.c (get_object_alignment_2): New function copied from
13233         get_object_alignment_1.  Take extra argument to indicate whether
13234         we take the address of EXP.  Rework to use type alignment information
13235         if not, and return whether the result is an approximation or not.
13236         (get_object_alignment_1): Wrap around get_object_alignment_2.
13237         (get_pointer_alignment_1): Call get_object_alignment_2 indicating
13238         we take the address.
13239         (get_object_or_type_alignment): Remove.
13240         * expr.c (expand_assignment): Call get_object_alignment.
13241         (expand_expr_real_1): Likewise.
13243 2012-07-18  Nick Clifton  <nickc@redhat.com>
13245         * doc/invoke.texi (ARM Options): Document -munaligned-access.
13247 2012-07-18  Oleg Endo  <olegendo@gcc.gnu.org>
13249         * config/sh/sh.md (mulsidi3, umulsidi3): Remove constraints in
13250         expander.  Use arith_reg_dest predicate.
13251         (rotldi3, rotrdi3): Remove constraints in expander.
13252         (adddi3_compact, subdi3_compact, mulsidi3_compact, umulsidi3_compact,
13253         ashlsi3_n, *ashlhi3_n, ashrsi2_16, ashrsi2_31, lshrsi3_n): Convert to
13254         insn_and_split.
13256 2012-07-18  Oleg Endo  <olegendo@gcc.gnu.org>
13258         PR target/33135
13259         * config/sh/sh.opt (mieee): Use Var instead of Mask.  Correct
13260         description.
13261         * config/sh/sh.c (sh_option_override): Do not change
13262         flag_finite_math_only.  Set TARGET_IEEE to complement of
13263         flag_finite_math_only.
13264         * doc/invoke.texi (SH options): Add mno-ieee.  Correct description
13265         of mieee and mno-ieee behavior.
13267 2012-07-18  Steven Bosscher  <steven@gcc.gnu.org>
13269         * graphite-poly.c (print_pbb_body): Fixup dump_bb call.
13271 2012-07-18  Steven Bosscher  <steven@gcc.gnu.org>
13273         * dumpfile.h (TDF_COMMENT): New define.
13274         * basic-block.h (EDGE_FALLTHRU, EDGE_ABNORMAL, EDGE_ABNORMAL_CALL,
13275         EDGE_EH, EDGE_FAKE, EDGE_DFS_BACK, EDGE_CAN_FALLTHRU,
13276         EDGE_IRREDUCIBLE_LOOP, EDGE_SIBCALL, EDGE_LOOP_EXIT, EDGE_TRUE_VALUE,
13277         EDGE_FALSE_VALUE, EDGE_EXECUTABLE, EDGE_CROSSING, EDGE_PRESERVE):
13278         Move to new file cfg-flags.h.
13279         (enum cfg_edge_flags): New enum, using cfg-flags.h.
13280         (EDGE_ALL_FLAGS): Compute value automatically.
13281         (BB_NEW, BB_REACHABLE, BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK,
13282         BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION,
13283         BB_DUPLICATED, BB_NON_LOCAL_GOTO_TARGET, BB_RTL,
13284         BB_FORWARDER_BLOCK, BB_NONTHREADABLE_BLOCK, BB_MODIFIED, BB_VISITED,
13285         BB_IN_TRANSACTION): Move to new file cfg-flags.h.
13286         (enum bb_flags): Rename to cfg_bb_flags.  Use cfg-flags.h.
13287         (BB_ALL_FLAGS): New, compute value automatically.
13288         (dump_bb_info): Update prototype.
13289         (dump_edge_info): Update prototype.
13290         * cfg-flags.h: New file.
13291         * cfg.c (dump_edge_info): Take flags argument.  Be verbose only if
13292         TDF_DETAILS and not TDF_SLIM.  Include cfg-flags.h for bitnames.
13293         Check that the edge flags are within the range of EDGE_ALL_FLAGS.
13294         (debug_bb): Update dump_bb call.
13295         (dump_cfg_bb_info): Remove.
13296         (dump_bb_info): New function.  Use cfg-flags.h for bitnames.
13297         Adjust verbosity using TDF_* flags.  Check that the basic block flags
13298         are within the range of BB_ALL_FLAGS.
13299         (brief_dump_cfg): Use dump_bb_info instead of dump_cfg_bb_info.
13300         * cfghooks.h (struct cfghooks): Update dump_bb hook, take a FILE
13301         first for consistency with other dump functions.
13302         (dump_bb): Update prototype accordingly.
13303         * cfghooks.c: Include dumpfile.h.
13304         (verify_flow_info): Update dump_edge_info calls.
13305         (dump_bb): Take a flags argument and pass it around.
13306         Use dump_bb_info to dump common information about a basic block.
13307         (dump_flow_info): Moved here from cfgrtl.c.  Make IL agnostic.
13308         (debug_flow_info): Moved here from cfgrtl.c.
13309         * profile.c (is_edge_inconsistent): Update dump_bb calls.
13310         * loop-invariant.c (find_defs): Update print_rtl_with_bb call.
13311         * rtl.h (debug_bb_n_slim, debug_bb_slim, print_rtl_slim,
13312         print_rtl_slim_with_bb): Remove prototypes.
13313         (dump_insn_slim): Adjust prototype to take a const_rtx.
13314         (print_rtl_with_bb): Adjust prototype.
13315         * sched-rgn.c (debug_region): Use dump_bb instead of debug_bb_n_slim.
13316         * sched-vis.c (dump_insn_slim): Take a const_rtx.
13317         (debug_insn_slim): Prototype here near DEBUG_FUNCTION marker.
13318         (print_rtl_slim_with_bb): Remove.
13319         (print_rtl_slim): Rename to debug_rtl_slim.  Print only insn info,
13320         not basic block info (print_rtl_with_bb with TDF_SLIM should be used
13321         for that.  Prototype here near DEBUG_FUNCTION marker.
13322         (debug_bb_slim): Prototype here near DEBUG_FUNCTION marker.
13323         Use dump_bb.
13324         (debug_bb_n_slim): Prototype here near DEBUG_FUNCTION marker.
13325         * tree-cfg.c (gimple_can_merge_blocks_p): Use EDGE_COMPLEX.
13326         (remove_bb): Update dump_bb call.
13327         (gimple_debug_bb): Use dump_bb.
13328         (dump_function_to_file): Update gimple_dump_bb call.
13329         (print_loops_bb): Likewise.
13330         * tree-flow.h (gimple_dump_bb): Update prototype.
13331         * gimple-pretty-print.c (dump_bb_header): Rename to
13332         dump_gimple_bb_header.  Write to a stream instead of a pretty
13333         printer.  Use dump_bb_info to dump basic block info.
13334         (dump_bb_end): Rename to dump_gimple_bb_footer.  Write to a
13335         stream instead of a pretty printer.  Use dump_bb_info.
13336         (gimple_dump_bb_buff): Do not call dump_bb_header and dump_bb_end.
13337         (gimple_dump_bb): Do it here with dump_gimple_bb_header and
13338         dump_gimple_bb_footer.
13339         * cfgrtl.c (rtl_dump_bb): Update prototype.  Only dump DF if the
13340         dump flags have TDF_DETAILS.  Use dump_insn_slim if TDF_SLIM.
13341         (print_rtl_with_bb): Take a flags argument and pass it around.
13342         Use dump_insn_slim if TDF_SLIM.
13343         (dump_bb_info): Removed and re-incarnated in cfg.c.
13344         (dump_flow_info): Moved to cfghooks.c.
13345         (debug_flow_info): Moved to cfghooks.c.
13346         * passes.c (execute_function_dump): Unconditionally use
13347         print_rtl_with_bb for RTL dumps, now that it understands TDF_SLIM.
13348         * final.c (dump_basic_block_info): Update dump_edge_info calls.
13349         * tree-vrp.c (dump_asserts_for): Likewise.
13350         * ifcvt.c (if_convert): Unconditionally use print_rtl_with_bb.
13351         * tree-if-conv.c (if_convertible_bb_p): Don't look at
13352         EDGE_ABNORMAL_CALL, it has no meaning in the GIMPLE world.
13353         * trans-mem.c (make_tm_edge): Don't set EDGE_ABNORMAL_CALL,
13354         for the same reason.
13355         * config/rl78/rl78.c (rl78_reorg): Update print_rtl_with_bb calls.
13357 2012-07-17  Richard Guenther  <rguenther@suse.de>
13359         * tree-vect-data-refs.c (vect_get_new_vect_var): Add referenced
13360         vars here, use create_tmp_reg where appropriate.
13361         (vect_create_addr_base_for_vector_ref): Do not add referenced
13362         vars here, use create_tmp_reg where appropriate.
13363         (vect_create_data_ref_ptr): Likewise.
13364         (vect_create_destination_var): Likewise.
13365         (vect_permute_store_chain): Likewise.
13366         (vect_permute_load_chain): Likewise.
13367         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
13368         Likewise.
13369         * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
13370         * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
13371         (vect_handle_widen_op_by_const): Likewise.
13372         * tree-vect-stmts.c (vect_init_vector): Likewise.
13373         (vectorizable_load): Likewise.
13375 2012-07-17  Tom de Vries  <tom@codesourcery.com>
13377         * hwint.c: Fix loop range.
13379 2012-07-17  Tom de Vries  <tom@codesourcery.com>
13381         * double-int.h (double_int_popcount): New inline function.
13382         * hwint.c (popcount_hwi): New function.
13383         * hwint.h (popcount_hwi): Declare function.  New inline function.
13385 2012-07-17  Richard Henderson  <rth@redhat.com>
13387         * tree-vect-stmts.c (supportable_widening_operation): Remove decl
13388         parameters.
13389         (vectorizable_conversion): Update supportable_widening_operation call.
13390         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Likewise.
13391         (vect_recog_widen_shift_pattern): Likewise.
13392         * tree-vectorizer.h: Update decl.
13394 2012-07-17  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13395             Ulrich Weigand  <ulrich.weigand@linaro.org>
13397         * common/config/arm/arm-common.c (arm_option_optimization_table):
13398         Enable -fsched-pressure by default while optimizing.
13399         * config/arm/arm.c (arm_option_override): Use the alternate scheduler
13400         pressure algorithm by default.
13402 2012-07-16  Oleg Endo  <olegendo@gcc.gnu.org>
13404         * config/sh/sh.h (CONST_OK_FOR_I06): Delete.
13405         (CONST_OK_FOR_I10): Move macro to ...
13406         * config/sh/sh.c: ... here.
13407         (sh_legitimate_index_p): Use satisfies_constraint_I06 instead of
13408         CONST_OK_FOR_I06.
13410 2012-07-16  Oleg Endo  <olegendo@gcc.gnu.org>
13412         * config/sh/sh.md: Delete mov related define_peephole patterns.
13414 2012-07-16  Jonathan Wakely  <jwakely.gcc@gmail.com>
13416         PR c++/53919
13417         * doc/install.texi (Installing GCC): Refer to instructions for
13418         released versions. Fix hyphenation.
13420 2012-07-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13422         * config/spu/spu.c (targetm): Move to bottom of file.
13423         (spu_attribute_table): Likewise.
13424         (spu_option_override, spu_init_builtins, spu_builtin_decl,
13425         spu_scalar_mode_supported_p, spu_vector_mode_supported_p,
13426         spu_legitimate_address_p, spu_addr_space_legitimate_address_p,
13427         adjust_operand, get_pic_reg, need_to_save_reg, frame_emit_store,
13428         frame_emit_load, frame_emit_add_imm, emit_nop_for_insn,
13429         insn_clobbers_hbr, spu_emit_branch_hint, spu_emit_vector_compare,
13430         get_branch_target, spu_machine_dependent_reorg, spu_sched_issue_rate,
13431         spu_sched_variable_issue, spu_sched_adjust_cost, spu_sched_init_global,
13432         spu_sched_init, spu_sched_reorder, spu_handle_fndecl_attribute,
13433         spu_handle_vector_attribute, spu_pass_by_reference, spu_function_arg,
13434         spu_function_arg_advance, spu_build_builtin_va_list, spu_va_start,
13435         spu_gimplify_va_arg_expr, store_with_one_insn_p, reg_aligned_for_addr,
13436         spu_assemble_integer, spu_asm_globalize_label, spu_rtx_costs,
13437         spu_function_ok_for_sibcall, spu_init_libfuncs, spu_return_in_memory,
13438         spu_encode_section_info, spu_legitimize_address,
13439         spu_addr_space_legitimize_address, spu_builtin_mask_for_load,
13440         spu_builtin_vectorization_cost, spu_vector_alignment_reachable,
13441         spu_addr_space_pointer_mode, spu_addr_space_address_mode,
13442         spu_addr_space_subset_p, spu_addr_space_convert, spu_sms_res_mii,
13443         spu_section_type_flags, spu_select_section, spu_unique_section,
13444         spu_trampoline_init, spu_conditional_register_usage,
13445         spu_ref_may_alias_errno, spu_output_mi_thunk, spu_unwind_word_mode,
13446         spu_libgcc_cmp_return_mode, spu_libgcc_shift_count_mode,
13447         spu_setup_incoming_varargs): Remove prototypes.
13448         (spu_legitimize_address): Add "static" to definition.
13450 2012-07-16  Jakub Jelinek  <jakub@redhat.com>
13452         * config/i386/rtmintrin.h (_xabort): Remove trailing semicolon.
13454 2012-07-16  Ulrich Weigand  <ulrich.weigand@linaro.org>
13456         * tree-ssa-ccp.c (optimize_unreachable): Check gsi_end_p
13457         before calling gsi_stmt.
13459 2012-07-16  Kirill Yukhin  <kirill.yukhin@intel.com>
13461         Revert
13462         2012-07-16 Sergey Melnikov <sergey.melnikov@intel.com>
13464         * config/i386/i386.md (stack_protect_set): Disable the pattern
13465         for Android since Android libc (bionic) does not provide random
13466         value for stack protection guard at gs:0x14. Guard value
13467         will be provided from external symbol (default implementation).
13468         (stack_protect_set_<mode>): Likewise.
13469         (stack_protect_test): Likewise.
13470         (stack_protect_test_<mode>): Likewise.
13472 2012-07-16  H.J. Lu  <hongjiu.lu@intel.com>
13474         PR middle-end/53959
13475         PR bootstrap/53963
13476         * gimple.c (gimple_types_compatible_p_1): Restore type attribute
13477         comparison.
13479 2012-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
13481         * opts.c (default_option): Add -fvect-cost-model to default options
13482         at -O3 and above.
13484 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
13486         * graphite-clast-to-gimple.c, graphite-dependences.c,
13487         graphite-sese-to-poly.c: Include tree-pass.h instead of dumpfile.h
13488         for pass TODO flags.
13489         * Makefile.in: Fix dependencies.
13491 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
13493         * haifa-sched.c (init_before_recovery): Do not set EDGE_CAN_FALLTHRU.
13494         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
13496         * function.c (stack_protect_epilogue): Use expand_call to expand
13497         targetm.stack_protect_fail.
13498         * stmt.c (expand_expr_stmt): Remove now-unused function.
13499         * tree.h (expand_expr_stmt): Remove prototype.
13500         * doc/tm.texi.in (TARGET_STACK_PROTECT_FAIL): Document that this
13501         hook must return a CALL_EXPR.
13502         * doc/tm.texi: Regenerate.
13504         * emit-rtl.c (emit_label_before): Do not allow the same label
13505         to be emitted twice.
13506         (emit_label_after): Likewise.
13507         (emit_label): Likewise.
13509         * flags.h (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED,
13510         TYPE_OVERFLOW_TRAPS, POINTER_TYPE_OVERFLOW_UNDEFINED): Move to tree.h.
13511         * tree.h (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED,
13512         TYPE_OVERFLOW_TRAPS, POINTER_TYPE_OVERFLOW_UNDEFINED): New home.
13514 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
13516         * system.h (dump_file): Do not define.
13517         * tree-pass.h: Include dumpfile.h, which is a new file containing...
13518         (enum tree_dump_index, TDF_*, get_dump_file_name, dump_enabled_p,
13519         dump_initialized_p, dump_begin, dump_end, dump_node, dump_switch_p,
13520         dump_flag_name, dump_file, dump_flags, dump_file_name,
13521         get_dump_file_info, struct dump_file_info): all of this, moved to...
13522         * dumpfile.h: Here, new file.
13523         * tree-dump.h: Include dumpfile.h, but not tree-pass.h.
13524         (dump_stmt): Remove prototype for C++ specific function.
13525         (dump_enumerated_decls): Move prototype from here...
13526         * tree-flow.h (dump_enumerated_decls): ... to here.
13527         (get_ref_base_and_extent) Move prototype from here ...
13528         * tree.h (get_ref_base_and_extent) ... to here.
13529         * tree-ssa-live.c: Do not inclde tree-pretty-print.h, because
13530         gimple-pretty-print.h is enough.  Do not include tree-dump.h,
13531         include timevar.h and dumpfile.h instead.
13532         (struct numbered_tree_d, compare_decls_by_uid,
13533         dump_enumerated_decls_push, dump_enumerated_decls): Move from here ...
13534         * tree-dfa.c:(struct numbered_tree_d, compare_decls_by_uid,
13535         dump_enumerated_decls_push, dump_enumerated_decls):... to here.
13536         Do not include timevar.h.
13537         * tree.c: Do not include timevar.h.
13538         * tree-cfg.c: Do not include langhooks.h, tree-pretty-print.h, and
13539         timevar.h.
13540         (dump_cfg_stats): Use current_function_name.
13541         (gimple_cfg2vcg): Likewise.
13542         (dump_function_to_file): Likewise.
13543         * df-scan.c: Do not include tree-pass.h and timevar.h.
13544         Include dumpfile.h.
13545         (df_entry_block_bitmap_verify, df_exit_block_bitmap_verify): Do not
13546         use print_current_pass.
13547         * df-problems.c: Include dumpfile.h.
13548         Always define REG_DEAD_DEBUGGING, avoid #ifdef code, because it
13549         leads to errors in the code not selected.
13550         (df_note_compute): Do not print_rtl_with_bb here.  Fix compilation
13551         bug if REG_DEAD_DEBUGGING is not 0, get_insns is not available here.
13552         * lcm.c: Include dumpfile.h.
13553         Remove obsolete include of insn-attr.h.
13554         * dojump.c (do_compare_rtx_and_jump): Remove failure printing for
13555         missing probability notes.
13556         * stmt.c: Include dumpfile.h.
13557         (emit_case_decision_tree): Re-enable printing expand details only
13558         if TDF_DETAILS.
13559         * alias.c, auto-inc-dec.c, bb-reorder.c, caller-save.c, cfg.c,
13560         cfgcleanup.c, cfgexpand.c, cfgloop.c, cfgloopmanip.c, cgraph.c,
13561         cgraphclones.c, cgraphunit.c, combine.c, combine-stack-adj.c,
13562         coverage.c, cprop.c, cse.c, cselib.c, dbgcnt.c, dce.c, df-core.c,
13563         dse.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, final.c,
13564         function.c, fwprop.c, gcse.c, gimple-fold.c,
13565         gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
13566         gimplify.c, graphite-blocking.c, graphite-clast-to-gimple.c,
13567         graphite-dependences.c, graphite-interchange.c,
13568         graphite-optimize-isl.c, graphite-poly.c,
13569         graphite-sese-to-poly.c, haifa-sched.c, hw-doloop.c, ifcvt.c,
13570         ipa.c, ipa-cp.c, ipa-inline-analysis.c, ipa-inline.c,
13571         ipa-inline-transform.c, ipa-prop.c, ipa-pure-const.c,
13572         ipa-reference.c, ipa-split.c, ipa-utils.c, ira.c, ira-emit.c,
13573         jump.c, loop-doloop.c, loop-init.c, loop-invariant.c, loop-iv.c,
13574         loop-unroll.c, loop-unswitch.c, lower-subreg.c,
13575         lto-section-out.c, lto-streamer-in.c, matrix-reorg.c, mcf.c,
13576         mode-switching.c, modulo-sched.c, omega.c, omp-low.c, passes.c,
13577         plugin.c, postreload.c, postreload-gcse.c, predict.c, print-rtl.c,
13578         print-tree.c, profile.c, recog.c, ree.c, regcprop.c, reginfo.c,
13579         regmove.c, regrename.c, reg-stack.c, reload1.c, reorg.c,
13580         sched-rgn.c, sched-vis.c, sel-sched.c, sel-sched-ir.c,
13581         store-motion.c, tracer.c, trans-mem.c, tree-affine.c,
13582         tree-call-cdce.c, tree-cfgcleanup.c, tree-chrec.c,
13583         tree-data-ref.c, tree-diagnostic.c, tree-dump.c,
13584         tree-eh.c, tree-flow-inline.h, tree-if-conv.c, tree-into-ssa.c,
13585         tree-mudflap.c, tree-nrv.c, tree-object-size.c,
13586         tree-optimize.c, tree-outof-ssa.c, tree-predcom.c,
13587         tree-pretty-print.c, tree-profile.c, tree-scalar-evolution.c,
13588         tree-sra.c, tree-ssa-address.c, tree-ssa-alias.c, tree-ssa.c,
13589         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-copy.c,
13590         tree-ssa-copyrename.c,, tree-ssa-dce.c, tree-ssa-dom.c,
13591         tree-ssa-dse.c, tree-ssa-forwprop.c, tree-ssa-ifcombine.c,
13592         tree-ssa-loop.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
13593         tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c,
13594         tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
13595         tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
13596         tree-ssa-math-opts.c, tree-ssa-operands.c, tree-ssa-phiopt.c,
13597         tree-ssa-phiprop.c, tree-ssa-pre.c, tree-ssa-propagate.c,
13598         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-sink.c,
13599         tree-ssa-structalias.c, tree-ssa-tail-merge.c, tree-ssa-ter.c,
13600         tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
13601         tree-ssa-uncprop.c, tree-ssa-uninit.c,
13602         tree-switch-conversion.c, tree-tailcall.c,
13603         tree-vect-data-refs.c, tree-vect-loop.c,
13604         tree-vect-loop-manip.c, tree-vectorizer.c,
13605         tree-vect-patterns.c, tree-vect-slp.c, tree-vect-stmts.c,
13606         tree-vrp.c, value-prof.c, var-tracking.c, web.c: Include tree-pass.h
13607         only if needed.  If tree-pass.h is included, do not include timevar.h
13608         and dumpfile.h.  If tree-pass.h is not included but dump_file, or
13609         dump_flags, or the TDF_* flags are used, include dumpfile.h.
13610         If gimple-pretty-print.h is included, don't include
13611         tree-pretty-print.h.  Remove assorted unnecessary includes.
13613         * config/mn10300/mn10300.c, config/c6x/c6x.c, config/ia64/ia64.c,
13614         config/arm/arm.c, config/bfin/bfin.c, config/frv/frv.c,
13615         config/spu/spu.c, config/mep/mep.c, config/i386/i386.c:
13616         Include dumpfile.h.
13617         * config/rl78/rl78.c: Include dumpfile.h instead of tree-pass.h.
13618         * arm/t-arm, avr/t-avr, i386/t-i386, ia64/t-ia64, mep/t-mep,
13619         spu/t-spu-elf: Fix dependencies.
13621 2012-07-16  Dehao Chen  <dehao@google.com>
13623         Revert
13624         2012-07-10  Dehao Chen  <dehao@google.com>
13626         * tree.h (phi_arg_d): New field.
13627         * tree-flow-inline.h (gimple_phi_arg_block): New function.
13628         (gimple_phi_arg_block_from_edge): New function.
13629         (gimple_phi_arg_set_block): New function.
13630         (gimple_phi_arg_has_block): New function.
13631         (redirect_edge_var_map_block): New function.
13632         * tree-flow.h (_edge_var_map): New field.
13633         * tree-ssa-live.c (remove_unused_locals): Mark phi_arg's block as used.
13634         * tree-eh.c (cleanup_empty_eh_merge_phis): Add block debug info for
13635         redirect_edge_var_map_add.
13636         * tree-outof-ssa.c (_elim_graph): New field.
13637         (insert_partition_copy_on_edge): New parameter.
13638         (insert_value_copy_on_edge): New parameter.
13639         (insert_rtx_to_part_on_edge): New parameter.
13640         (insert_part_to_rtx_on_edge): New parameter.
13641         (elim_graph_add_edge): New parameter.
13642         (elim_graph_remove_succ_edge): New parameter.
13643         (FOR_EACH_ELIM_GRAPH_SUCC): New parameter.
13644         (FOR_EACH_ELIM_GRAPH_PRED): New parameter.
13645         (new_elim_graph): Add block debug info.
13646         (clear_elim_graph): Likewise.
13647         (delete_elim_graph): Likewise.
13648         (elim_graph_add_node): Likewise.
13649         (elim_graph_add_edge): Likewise.
13650         (elim_graph_remove_succ_edge): Likewise.
13651         (eliminate_build): Likewise.
13652         (elim_forward): Likewise.
13653         (elim_unvisited_predecessor): Likewise.
13654         (elim_backward): Likewise.
13655         (elim_create): Likewise.
13656         (eliminate_phi): Likewise.
13657         (insert_backedge_copies): Likewise.
13658         * tree-into-ssa.c (insert_phi_nodes_for): Add block debug info for
13659         add_phi_arg.
13660         (rewrite_add_phi_arguments): Likewise.
13661         * tree-ssa-loop-im.c (execute_sm_if_changed): Likewise.
13662         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
13663         * tree-ssa-threadupdate.c (copy_phi_args): Likewise.
13664         * tree-loop-distribution.c (update_phis_for_loop_copy): Likewise.
13665         * tree-ssa-loop-manip.c (create_iv): Likewise.
13666         (add_exit_phis_edge): Likewise.
13667         (split_loop_exit_edge): Likewise.
13668         (copy_phi_node_args): Likewise.
13669         (tree_transform_and_unroll_loop): Likewise.
13670         * value-prof.c (gimple_ic): Likewise.
13671         (gimple_stringop_fixed_value): Likewise.
13672         * tree-tailcall.c (add_successor_phi_arg): Likewise.
13673         (eliminate_tail_call): Likewise.
13674         (create_tailcall_accumulator): Likewise.
13675         (tree_optimize_tail_calls_1): Likewise.
13676         * tree-phinodes.c (add_phi_arg): Likewise.
13677         (make_phi_node): Likewise.
13678         (resize_phi_node): Likewise.
13679         (remove_phi_arg_num): Likewise.
13680         * omp-low.c (expand_parallel_call): Likewise.
13681         (expand_omp_for_static_chunk): Likewise.
13682         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop):
13683         Likewise.
13684         (slpeel_update_phi_nodes_for_guard1): Likewise.
13685         (slpeel_update_phi_nodes_for_guard2): Likewise.
13686         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
13687         (set_prologue_iterations): Likewise.
13688         (slpeel_tree_peel_loop_to_edge): Likewise.
13689         (vect_loop_versioning): Likewise.
13690         * tree-parloops.c (create_phi_for_local_result): Likewise.
13691         (transform_to_exit_first_loop): Likewise.
13692         (create_parallel_loop): Likewise.
13693         * ipa-split.c (split_function): Likewise.
13694         * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
13695         (vect_create_epilog_for_reduction): Likewise.
13696         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
13697         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
13698         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
13699         (cond_if_else_store_replacement_1): Likewise.
13700         * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
13701         (remove_forwarder_block_with_phi): Likewise.
13702         * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
13703         * tree-predcom.c (initialize_root_vars): Likewise.
13704         (initialize_root_vars_lm): Likewise.
13705         * sese.c (sese_add_exit_phis_edge): Likewise.
13706         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
13707         * tree-ssa.c (flush_pending_stmts): Likewise.
13708         (redirect_edge_var_map_add): Likewise.
13709         (ssa_redirect_edge): Likewise.
13710         * gimple-streamer-in.c (input_phi): Likewise.
13711         * tree-vect-stmts.c (vectorizable_load): Likewise.
13712         * tree-inline.c (copy_phis_for_bb): Likewise.
13713         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
13714         * tree-switch-conversion.c (fix_phi_nodes): Likewise.
13715         * tree-cfg.c (reinstall_phi_args): Likewise.
13716         (gimple_make_forwarder_block): Likewise.
13717         (add_phi_args_after_copy_edge): Likewise.
13718         (gimple_duplicate_sese_tail): Likewise.
13720 2012-07-16 Sergey Melnikov <sergey.melnikov@intel.com>
13722         * config/i386/i386.md (stack_protect_set): Disable the pattern
13723         for Android since Android libc (bionic) does not provide random
13724         value for stack protection guard at gs:0x14. Guard value
13725         will be provided from external symbol (default implementation).
13726         (stack_protect_set_<mode>): Likewise.
13727         (stack_protect_test): Likewise.
13728         (stack_protect_test_<mode>): Likewise.
13730 2012-07-16  Hans-Peter Nilsson  <hp@axis.com>
13732         * config/cris/cris-protos.h (cris_legitimate_address_p): Declare.
13733         * config/cris/cris.h (CONSTANT_ADDRESS_P): Define in terms of
13734         CONSTANT_P and cris_legitimate_address_p.
13735         * config/cris/cris.c (cris_legitimate_address_p): Make non-static.
13736         (cris_preferred_reload_class): Don't return GENERAL_REGS as
13737         preferred to MOF_SRP_REGS.
13739         * config/cris/cris.c (cris_init_libfuncs): Handle initialization
13740         of library functions for basic atomic compare-and-swap.
13741         * config/cris/cris.h (TARGET_ATOMICS_MAY_CALL_LIBFUNCS): New macro.
13742         * config/cris/cris.opt (munaligned-atomic-may-use-library): New option.
13743         * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>")
13744         ("cris_atomic_fetch_<atomic_op_name><mode>_1")
13745         ("atomic_compare_and_swap<mode>")
13746         ("cris_atomic_compare_and_swap<mode>_1"): Make conditional on
13747         TARGET_ATOMICS_MAY_CALL_LIBFUNCS for sizes larger than byte.
13748         * config/cris/cris.c (cris_print_operand) <case 'P', 'q'>: New cases.
13749         * config/cris/sync.md (atomic_op_op_cnstr): New code_attr.
13750         (atomic_op_op_pred): Ditto.
13751         (atomic_op_mnem_pre_op2): Renamed from atomic_op_mnem_pre; to
13752         reflect the change to include %2 in expansion.  All callers changed.
13753         (qm3): New mode_attr.
13754         ("atomic_fetch_<atomic_op_name><mode>"): Use <atomic_op_op_pred>
13755         as predicate for operand 2.
13756         ("cris_atomic_fetch_<atomic_op_name><mode>_1"): Update FIXME.  Use
13757         "<atomic_op_op_pred>" "<atomic_op_op_cnstr>" for predicate and
13758         constraint for operand 2.
13759         ("atomic_compare_and_swap<mode>"): Add FIXME.  Change predicate to
13760         nonmemory_operand for operand 3.
13761         ("cris_atomic_compare_and_swap<mode>_1"): Change operand 3 to
13762         exclude memory.  Improve emitted sync code for v10 and v32.  Use
13763         <qm3> instead of <m> for size designator for cmp.
13764         ("atomic_compare_and_swap<mode>"): Change predicate to
13765         nonmemory_operand for operand 3.  Add FIXME.
13766         ("cris_atomic_compare_and_swap<mode>_1"): Change predicates and
13767         constraints for operand 3 to exclude memory.
13768         ("atomic_fetch_<atomic_op_name><mode>")
13769         ("atomic_compare_and_swap<mode>"): Gate expand_mem_thread_fence
13770         calls on result of call to need_atomic_barrier_p.
13772 2012-07-15  Richard Sandiford  <rdsandiford@googlemail.com>
13774         * config/mips/mips.md (move_type): Replace mfhilo and mthilo
13775         with mflo and mtlo.
13776         (type): Split mfhilo into mfhi and mflo.  Split mthilo into mthi
13777         and mtlo.  Adjust move_type->type mapping.
13778         (may_clobber_hilo): Split mthilo into mthi and mtlo.
13779         (*movdi_32bit, *movdi_32bit_mips16, *movdi_64bit, *movdi_64bit_mips16)
13780         (*mov<mode>_internal, *mov<mode>_mips16, *movhi_internal)
13781         (*movhi_mips16, *movqi_internal, *movqi_mips16): Use mtlo and mflo
13782         instead of mthilo and mfhilo.
13783         (mfhi<GPR:mode>_<HILO:mode>): Use mfhi instead of mfhilo.
13784         (mthi<GPR:mode>_<HILO:mode>): Use mthi instead of mthilo.
13785         * config/mips/mips-dsp.md (mips_extr_w, mips_extr_r_w, mips_extr_rs_w)
13786         (mips_extr_s_h, mips_extp, mips_extpdp, mips_shilo, mips_mthlip):
13787         Use mflo instead of mfhilo.
13788         * config/mips/10000.md (r10k_arith): Split mthilo.
13789         (r10k_mfhi, r10k_mflo): Use mfhi and mflo directly.
13790         * config/mips/sb1.md (ir_sb1_mfhi, ir_sb1_mflo): Likewise.
13791         (ir_sb1_mthilo): Split mthilo into mthi and mtlo.
13792         * config/mips/20kc.md (r20kc_imthilo, r20kc_imfhilo): Split
13793         mthilo and mfhilo.
13794         * config/mips/24k.md (r24k_int_mfhilo, r24k_int_mthilo): Likewise.
13795         * config/mips/4130.md (vr4130_class, vr4130_mfhilo, vr4130_mthilo):
13796         Likewise.
13797         * config/mips/4k.md (r4k_int_mthilo, r4k_int_mfhilo): Likewise.
13798         * config/mips/5400.md (ir_vr54_hilo): Likewise.
13799         * config/mips/5500.md (ir_vr55_mthilo, ir_vr55_mfhilo): Likewise.
13800         * config/mips/5k.md (r5k_int_mthilo, r5k_int_mfhilo): Likewise.
13801         * config/mips/7000.md (rm7_mthilo, rm7_mfhilo): Likewise.
13802         * config/mips/74k.md (r74k_int_mfhilo, r74k_int_mthilo): Likewise.
13803         * config/mips/9000.md (rm9k_mfhilo, rm9k_mthilo): Likewise.
13804         * config/mips/generic.md (generic_hilo): Likewise.
13805         * config/mips/loongson2ef.md (ls2_alu): Likewise.
13806         * config/mips/loongson3a.md (ls3a_mfhilo): Likewise.
13807         * config/mips/octeon.md (octeon_imul_o1, octeon_imul_o2)
13808         (octeon_mfhilo_o1, octeon_mfhilo_o2): Likewise.
13809         * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
13810         * config/mips/xlr.md (xlr_hilo): Likewise.
13812 2012-07-14  Andrew Stubbs  <ams@codesourcery.com>
13813             Sandra Loosemore  <sandra@codesourcery.com>
13815         * config/sh/sh.h (SH_ASM_SPEC): Add spaces between options.
13817 2012-07-14  Uros Bizjak  <ubizjak@gmail.com>
13819         * config/i386/i386.c (ix86_set_reg_reg_cost): Enable TFmode/TCmode
13820         for TARGET_SSE.
13822 2012-07-14  Steven Bosscher  <steven@gcc.gnu.org>
13824         * toplev.c (init_asm_output): Open asm_out_file in 'w' mode.
13826 2012-07-13  Bill Schmidt  <wschmidt@linux.ibm.com>
13828         PR bootstrap/53955
13829         * config/spu/spu.c (spu_init_cost): Mark static.
13830         (spu_add_stmt_cost): Likewise.
13831         (spu_finish_cost): Likewise.
13832         (spu_destroy_cost_data): Likewise.
13833         * config/i386/i386.c (ix86_init_cost): Mark static.
13834         (ix86_add_stmt_cost): Likewise.
13835         (ix86_finish_cost): Likewise.
13836         (ix86_destroy_cost_data): Likewise.
13837         * config/rs6000/rs6000.c (rs6000_init_cost): Mark static.
13838         (rs6000_add_stmt_cost): Likewise.
13839         (rs6000_finish_cost): Likewise.
13840         (rs6000_destroy_cost_data): Likewise.
13842 2012-07-13  Steven Bosscher  <steven@gcc.gnu.org>
13844         * ggc.h (ggc_internal_alloc_stat, ggc_alloc_typed_stat,
13845         ggc_internal_cleared_alloc_stat, ggc_cleared_alloc_htab_ignore_args,
13846         ggc_cleared_alloc_ptr_array_two_args, ggc_splay_alloc): Add
13847         ATTRIBUTE_MALLOC.
13848         * alloc-pool.h (pool_alloc): Likewise.
13850         * final.c (final): Do not loop to find max_uid.
13852 2012-07-13  Steven Bosscher  <steven@gcc.gnu.org>
13854         * emit-rtl.c (make_debug_insn_raw, make_jump_insn_raw): Make static.
13855         * rtl.h (make_debug_insn_raw, make_jump_insn_raw): Remove prototypes.
13857 2012-07-13  Richard Guenther  <rguenther@suse.de>
13859         PR tree-optimization/53907
13860         * tree-ssa-forwprop.c (associate_pointerplus): New function.
13861         (ssa_forward_propagate_and_combine): Call it.
13863 2012-07-13  Richard Guenther  <rguenther@suse.de>
13865         PR tree-optimization/53922
13866         * tree-vrp.c (value_inside_range): Change prototype to take
13867         min/max instead of value-range.
13868         (range_includes_zero_p): Likewise.  Return the result from
13869         value_inside_range.
13870         (extract_range_from_binary_expr_1): Adjust to handle dont-know
13871         return value from range_includes_zero_p.
13872         (extract_range_from_unary_expr_1): Likewise.
13873         (compare_range_with_value): Likewise.
13874         (vrp_meet_1): Likewise.
13876 2012-07-13  Bill Schmidt  <wschmidt@linux.ibm.com>
13878         * doc/tm.texi: Regenerate.
13879         * doc/tm.texi.in (TARGET_VECTORIZE_INIT_COST): New hook.
13880         (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
13881         (TARGET_VECTORIZE_FINISH_COST): Likewise.
13882         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
13883         * targhooks.c (default_init_cost): New function.
13884         (default_add_stmt_cost): Likewise.
13885         (default_finish_cost): Likewise.
13886         (default_destroy_cost_data): Likewise.
13887         * targhooks.h (default_init_cost): New decl.
13888         (default_add_stmt_cost): Likewise.
13889         (default_finish_cost): Likewise.
13890         (default_destroy_cost_data): Likewise.
13891         * target.def (init_cost): New DEFHOOK.
13892         (add_stmt_cost): Likewise.
13893         (finish_cost): Likewise.
13894         (destroy_cost_data): Likewise.
13895         * target.h (struct _stmt_vec_info): New extern decl.
13896         (stmt_vectype): Likewise.
13897         (stmt_in_inner_loop_p): Likewise.
13898         * tree-vectorizer.h (stmt_info_for_cost): New struct/typedef.
13899         (stmt_vector_for_cost): New VEC/typedef.
13900         (add_stmt_info_to_vec): New function.
13901         (struct _slp_tree): Remove cost.inside_of_loop field.
13902         (struct _slp_instance): Remove cost.inside_of_loop field; add
13903         stmt_cost_vec field.
13904         (SLP_INSTANCE_INSIDE_OF_LOOP_COST): Remove macro.
13905         (SLP_INSTANCE_STMT_COST_VEC): New accessor macro.
13906         (SLP_TREE_INSIDE_OF_LOOP_COST): Remove macro.
13907         (struct _vect_peel_extended_info): Add stmt_cost_vec field.
13908         (struct _loop_vec_info): Add target_cost_data field.
13909         (LOOP_VINFO_TARGET_COST_DATA): New accessor macro.
13910         (struct _bb_vec_info): Add target_cost_data field.
13911         (BB_VINFO_TARGET_COST_DATA): New accessor macro.
13912         (struct _stmt_vec_info): Remove cost.inside_of_loop field.
13913         (STMT_VINFO_INSIDE_OF_LOOP_COST): Remove macro.
13914         (stmt_vinfo_set_inside_of_loop_cost): Remove function.
13915         (init_cost): New function.
13916         (add_stmt_cost): Likewise.
13917         (finish_cost): Likewise.
13918         (destroy_cost_data): Likewise.
13919         (vect_model_simple_cost): Change parameter list.
13920         (vect_model_store_cost): Likewise.
13921         (vect_model_load_cost): Likewise.
13922         (record_stmt_cost): New extern decl.
13923         (vect_get_load_cost): Change parameter list.
13924         (vect_get_store_cost): Likewise.
13925         * tree-vect-loop.c (new_loop_vec_info): Call init_cost.
13926         (destroy_loop_vec_info): Call destroy_cost_data.
13927         (vect_estimate_min_profitable_iters): Remove old calculation of
13928         inside costs; call finish_cost instead.
13929         (vect_model_reduction_cost): Call add_stmt_cost instead of old
13930         inside-costs calculation.
13931         (vect_model_induction_cost): Likewise.
13932         * tree-vect-data-refs.c (vect_get_data_access_cost): Change to
13933         return a stmt_vector_for_cost; modify calls to vect_get_load_cost
13934         and vect_get_store_cost to obtain the value to return.
13935         (vect_peeling_hash_get_lowest_cost): Obtain a stmt_cost_vec from
13936         vect_get_data_access_cost and store it in the minimum peeling
13937         structure.
13938         (vect_peeling_hash_choose_best_peeling): Change the parameter list
13939         to add a (stmt_vector_for_cost *) output parameter, and set its value.
13940         (vect_enhance_data_refs_alignment): Ignore the new return value from
13941         calls to vect_get_data_access_cost; obtain stmt_cost_vec from
13942         vect_peeling_hash_choose_best_peeling and pass its contents to the
13943         target cost model.
13944         * tree-vect-stmts.c (stmt_vectype): New function.
13945         (stmt_in_inner_loop_p): Likewise.
13946         (record_stmt_cost): Likewise.
13947         (vect_model_simple_cost): Add stmt_cost_vec parameter; call
13948         record_stmt_cost instead of old calculation; don't call
13949         stmt_vinfo_set_inside_of_loop_cost.
13950         (vect_model_promotion_demotion_cost): Call add_stmt_cost instead of
13951         old calculation; don't call stmt_vinfo_set_inside_of_loop_cost.
13952         (vect_model_store_cost): Add stmt_cost_vec parameter; call
13953         record_stmt_cost instead of old calculation; add stmt_cost_vec
13954         parameter to vect_get_store_cost call; don't call
13955         stmt_vinfo_set_inside_of_loop_cost.
13956         (vect_get_store_cost): Add stmt_cost_vec parameter; call
13957         record_stmt_cost instead of old calculation.
13958         (vect_model_load_cost): Add stmt_cost_vec parameter; call
13959         record_stmt_cost instead of old calculation; add stmt_cost_vec
13960         parameter to vect_get_load_cost call; don't call
13961         stmt_vinfo_set_inside_of_loop_cost.
13962         (vect_get_load_cost): Add stmt_cost_vec parameter; call
13963         record_stmt_cost instead of old calculation.
13964         (vectorizable_call): Add NULL parameter to vect_model_simple_cost call.
13965         (vectorizable_conversion): Likewise.
13966         (vectorizable_assignment): Likewise.
13967         (vectorizable_shift): Likewise.
13968         (vectorizable_operation): Likewise.
13969         (vectorizable_store): Add NULL parameter to vect_model_store_cost call.
13970         (vectorizable_load): Add NULL parameter to vect_model_load_cost call.
13971         (new_stmt_vec_info): Don't set STMT_VINFO_INSIDE_OF_LOOP_COST.
13972         * config/spu/spu.c (TARGET_VECTORIZE_INIT_COST): New macro def.
13973         (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
13974         (TARGET_VECTORIZE_FINISH_COST): Likewise.
13975         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
13976         (spu_init_cost): New function.
13977         (spu_add_stmt_cost): Likewise.
13978         (spu_finish_cost): Likewise.
13979         (spu_destroy_cost_data): Likewise.
13980         * config/i386/i386.c (ix86_init_cost): New function.
13981         (ix86_add_stmt_cost): Likewise.
13982         (ix86_finish_cost): Likewise.
13983         (ix86_destroy_cost_data): Likewise.
13984         (TARGET_VECTORIZE_INIT_COST): New macro def.
13985         (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
13986         (TARGET_VECTORIZE_FINISH_COST): Likewise.
13987         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
13988         * config/rs6000/rs6000.c (TARGET_VECTORIZE_INIT_COST): New macro def.
13989         (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
13990         (TARGET_VECTORIZE_FINISH_COST): Likewise.
13991         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
13992         (rs6000_init_cost): New function.
13993         (rs6000_add_stmt_cost): Likewise.
13994         (rs6000_finish_cost): Likewise.
13995         (rs6000_destroy_cost_data): Likewise.
13996         * tree-vect-slp.c (vect_free_slp_instance): Free stmt_cost_vec.
13997         (vect_create_new_slp_node): Don't set SLP_TREE_INSIDE_OF_LOOP_COST.
13998         (vect_get_and_check_slp_defs): Add stmt_cost_vec parameter; add
13999         stmt_cost_vec parameter to vect_model_store_cost and
14000         vect_model_simple_cost calls.
14001         (vect_build_slp_tree): Remove inside_cost parameter; add stmt_cost_vec
14002         parameter; add stmt_cost_vec parameter to vect_get_and_check_slp_defs,
14003         vect_model_load_cost, and recursive vect_build_slp_tree calls; prevent
14004         calculating cost more than once for loads; remove inside_cost
14005         parameter from recursive vect_build_slp_tree calls; call
14006         record_stmt_cost instead of old calculation.
14007         (vect_analyze_slp_instance): Allocate stmt_cost_vec and save it with
14008         the instance; free it on premature exit; remove inside_cost parameter
14009         from vect_build_slp_tree call; add stmt_cost_vec parameter to
14010         vect_build_slp_tree call; don't set SLP_INSTANCE_INSIDE_OF_LOOP_COST.
14011         (new_bb_vec_info): Call init_cost.
14012         (destroy_bb_vec_info): Call destroy_cost_data.
14013         (vect_bb_vectorization_profitable_p): Call add_stmt_cost for each
14014         statement recorded with an SLP instance; call finish_cost instead of
14015         the old calculation.
14016         (vect_update_slp_costs_according_to_vf): Record statement costs from
14017         SLP instances, multiplying by the appropriate number of copies; don't
14018         update SLP_INSTANCE_INSIDE_OF_LOOP_COST.
14020 2012-07-13  Richard Guenther  <rguenther@suse.de>
14022         PR middle-end/53937
14023         * builtins.c (get_pointer_alignment_1): Handle constant
14024         pointers.
14026 2012-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
14027             Steven Bosscher  <steven@gcc.gnu.org>
14028             Bernd Schmidt  <bernds@codesourcery.com>
14030         PR rtl-optimization/53908
14031         * df-problems.c (can_move_insns_across): When doing
14032         memory-reference book-keeping, handle call insns.
14034 2012-07-13  Richard Guenther  <rguenther@suse.de>
14036         * gimple.c (gimple_types_compatible_p_1): Remove redundant
14037         type attribute comparisons.
14038         (gimple_canonical_types_compatible_p): Likewise.
14040 2012-07-12  Hans-Peter Nilsson  <hp@axis.com>
14042         PR rtl-optimization/53176
14043         * rtlanal.c (rtx_cost): Adjust default cost for X with a
14044         UNITS_PER_WORD factor for all X according to the size of
14045         its mode, not just for SUBREGs with untieable modes.
14046         Handle SET.  Use factor * factor for MULT, DIV, UDIV,
14047         MOD, UMOD.
14049 2012-07-12  Uros Bizjak  <ubizjak@gmail.com>
14051         * config/i386/i386.md (QImode and HImode cmove splitters): Merge
14052         QImode and HImode splitters.  Use ix86_comparison_operator.
14053         Explicitly match FLAGS_REG.
14054         (DFmode cmove splitter): Explicitly match FLAGS_REG.
14056 2012-07-11  Steven Bosscher  <steven@gcc.gnu.org>
14058         * expr.h (can_move_by_pieces): Move prototype from here ...
14059         * tree.h (can_move_by_pieces): ... to here.
14060         * optabs.h (set_widening_optab_handler): Use XCNEW.
14061         * gimplify.c: Do not include expr.h.
14063         * toplev.c: Do not include dwarf2out.h.
14064         * config/ia64/ia64.c: Likewise.
14065         * config/sparc/sparc.c: Likewise.
14066         * config/sparc/t-sparc (sparc.o): Fix dependencies.
14068         * Makefile.in (toplev.o): Fix dependencies
14069         (c-family/c-gimplify.o): Likewise.
14070         (c-family/c-common.o): Likewise.
14072 2012-07-11  Steven Bosscher  <steven@gcc.gnu.org>
14074         * basic-block.h (struct edge_def): Use basic_block instead of
14075         basic_block_def *.
14076         * cfgloop.h (struct loop_exit, struct loop): Likewise.
14077         * gengenrtl.c (type_from_format): Likewise.  Also for 'tree'
14078         instead of union tree_node *.
14079         * rtl.h (union rtunion_def, emit_insn_before_noloc,
14080         emit_insn_after_noloc, add_insn_before, add_insn_after,
14081         debug_bb_slim): Likewise.
14082         * tree-inline.h (struct copy_body_data): Likewise.
14083         * sched-rgn.c (dump_region_dot): Likewise.
14084         * gimple.h (struct gimple_statement_base, gimple_set_bb,
14085         gsi_move_to_bb_end): Likewise.
14086         * sched-vis.c (debug_bb_slim): Likewise.
14087         (debug_bb_n_slim): Likewise.
14088         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Likewise.
14089         (mn10300_block_contains_call):
14091 2012-07-11  Greta Yorsh  <Greta.Yorsh@arm.com>
14093         PR target/53859
14094         * config/arm/arm.c (arm_early_load_addr_dep): Handle new
14095         epilogue patterns.
14097 2012-07-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
14099         * doc/extend.texi (Namespace Association): Alter cautionary text.
14101 2012-07-10  Oleg Endo  <olegendo@gcc.gnu.org>
14103         PR target/53911
14104         * config/sh/sh.md: Remove displacement addresssing related splits.
14106 2012-07-10  Xinliang David Li  <davidxl@google.com>
14108         * doc/invoke.texi: New option documented.
14109         * flag-types.h: New enum type.
14110         * gimplify.c (gimplify_bind_expr): Control
14111         clobber generation with new option.
14112         (gimplify_target_expr): Ditto.
14113         * common.opt: New option.
14115 2012-07-10  Julian Brown  <julian@codesourcery.com>
14117         * config/arm/arm.md (movsi): Don't split symbol refs here.
14118         (define_split): New.
14120 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
14122         PR bootstrap/53913
14123         * config/m68k/m68k.c (m68k_epilogue_uses): New.
14124         * config/m68k/m68k.h (EPILOGUE_USES): Use it.
14125         * config/m68k/m68k-protos.h (m68k_epilogue_uses): Add prototype.
14127 2012-07-10  Richard Henderson  <rth@redhat.com>
14129         * target.def (builtin_mul_widen_even, builtin_mul_widen_odd): Remove.
14130         * system.h (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Poison.
14131         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Poison.
14132         * config/i386/i386.c (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI): Remove.
14133         (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V8SI): Remove.
14134         (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V4SI): Remove.
14135         (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V8SI): Remove.
14136         (IX86_BUILTIN_VEC_WIDEN_SMUL_EVEN_V4SI): Remove.
14137         (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V4SI): Remove.
14138         (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V8SI): Remove.
14139         (bdesc_args): Remove entries to match.
14140         (ix86_builtin_mul_widen_even, ix86_builtin_mul_widen_odd): Remove.
14141         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
14142         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
14143         * config/rs6000/rs6000.c (rs6000_builtin_mul_widen_even): Remove.
14144         (rs6000_builtin_mul_widen_odd): Remove.
14145         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
14146         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
14147         * config/spu/spu.c (spu_builtin_mul_widen_even): Remove.
14148         (spu_builtin_mul_widen_odd): Remove.
14149         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
14150         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
14151         * doc/tm.texi.in: Don't document the removed hooks.
14153         * tree-vect-stmts.c (supportable_widening_operation): Expand
14154         WIDEN_MULT_EXPR via VEC_WIDEN_MULT_EVEN/ODD_EXPR if possible.
14156         * expmed.c (expmed_mult_highpart): Rename from expand_mult_highpart.
14157         (expmed_mult_highpart_optab): Rename from expand_mult_highpart_optab.
14158         * optabs.c (can_mult_highpart_p): New.
14159         (expand_mult_highpart): New.
14160         * expr.c (expand_expr_real_2) [MULT_HIGHPART_EXPR): Use it.
14161         * tree-vect-generic.c (expand_vector_operations_1): Don't expand
14162         by pieces if can_mult_highpart_p.
14163         (expand_vector_divmod): Use can_mult_highpart_p and always
14164         generate MULT_HIGHPART_EXPR.
14165         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
14166         * tree-vect-stmts.c (vectorizable_operation): Likewise.
14168         * config/spu/spu-builtins.md (spu_mpy): Move to spu.md.
14169         (spu_mpyu, spu_mpyhhu, spu_mpyhh): Likewise.
14170         * config/spu/spu.md (vec_widen_smult_odd_v8hi): Rename from spu_mpy.
14171         (vec_widen_umult_odd_v8hi): Rename from spu_mpyu.
14172         (vec_widen_smult_even_v8hi): Rename from spu_mpyhh.
14173         (vec_widen_umult_even_v8hi): Rename from spu_mpyhhu.
14174         * config/spu/spu-builtins.def: Update pattern names to match.
14176         * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Rename
14177         from altivec_vmuleub.
14178         (vec_widen_smult_even_v16qi): Rename from altivec_vmulesb.
14179         (vec_widen_umult_even_v8hi): Rename from altivec_vmuleuh.
14180         (vec_widen_smult_even_v8hi): Rename from altivec_vmulesh.
14181         (vec_widen_umult_odd_v16qi): Rename from altivec_vmuloub.
14182         (vec_widen_smult_odd_v16qi): Rename from altivec_vmulosb.
14183         (vec_widen_umult_odd_v8hi): Rename from altivec_vmulouh.
14184         (vec_widen_smult_odd_v8hi): Rename from altivec_vmulosh.
14185         * config/rs6000/rs6000-builtin.def: Update pattern names to match.
14187         * config/i386/sse.md (vec_widen_umult_even_v8si): Rename from
14188         avx2_umulv4siv4di3.
14189         (vec_widen_umult_even_v4si): Rename from sse2_umulv2siv2di3.
14190         (vec_widen_smult_even_v8si): Rename from avx2_mulv4siv4di3.
14191         (mulv4si3): Remove XOP test shadowed by SSE4 test.
14192         * config/i386/i386.c (bdesc_args): Update pattern names.
14193         (ix86_expand_sse2_mulvxdi3): Likewise.
14194         (ix86_expand_mul_widen_evenodd): Likewise.  Remove XOP test
14195         shadowed by SSE4 test.
14197         * tree.def (VEC_WIDEN_MULT_EVEN_EXPR, VEC_WIDEN_MULT_ODD_EXPR): New.
14198         * cfgexpand.c (expand_debug_expr): Handle them.
14199         * expr.c (expand_expr_real_2): Likewise.
14200         * fold-const.c (fold_binary_loc): Likewise.
14201         * gimple-pretty-print.c (dump_binary_rhs): Likewise.
14202         * optabs.c (optab_for_tree_code): Likewise.
14203         * tree-cfg.c (verify_gimple_assign_binary): Likewise.
14204         * tree-inline.c (estimate_operator_cost): Likewise.
14205         * tree-pretty-print.c (dump_generic_node): Likewise.
14206         * tree.c (commutative_tree_code): Likewise.
14207         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
14208         Handle type change before looking up optab.
14209         * optabs.h (OTI_vec_widen_umult_even, OTI_vec_widen_umult_odd): New.
14210         (OTI_vec_widen_smult_even, OTI_vec_widen_smult_odd): New.
14211         (vec_widen_umult_even_optab, vec_widen_umult_odd_optab): New.
14212         (vec_widen_smult_even_optab, vec_widen_smult_odd_optab): New.
14213         * genopinit.c (optabs): Initialize them.
14214         * doc/md.texi: Document them.
14216 2012-07-10  Dehao Chen  <dehao@google.com>
14218         * tree.h (phi_arg_d): New field.
14219         * tree-flow-inline.h (gimple_phi_arg_block): New function.
14220         (gimple_phi_arg_block_from_edge): New function.
14221         (gimple_phi_arg_set_block): New function.
14222         (gimple_phi_arg_has_block): New function.
14223         (redirect_edge_var_map_block): New function.
14224         * tree-flow.h (_edge_var_map): New field.
14225         * tree-ssa-live.c (remove_unused_locals): Mark phi_arg's block as used.
14226         * tree-eh.c (cleanup_empty_eh_merge_phis): Add block debug info for
14227         redirect_edge_var_map_add.
14228         * tree-outof-ssa.c (_elim_graph): New field.
14229         (insert_partition_copy_on_edge): New parameter.
14230         (insert_value_copy_on_edge): New parameter.
14231         (insert_rtx_to_part_on_edge): New parameter.
14232         (insert_part_to_rtx_on_edge): New parameter.
14233         (elim_graph_add_edge): New parameter.
14234         (elim_graph_remove_succ_edge): New parameter.
14235         (FOR_EACH_ELIM_GRAPH_SUCC): New parameter.
14236         (FOR_EACH_ELIM_GRAPH_PRED): New parameter.
14237         (new_elim_graph): Add block debug info.
14238         (clear_elim_graph): Likewise.
14239         (delete_elim_graph): Likewise.
14240         (elim_graph_add_node): Likewise.
14241         (elim_graph_add_edge): Likewise.
14242         (elim_graph_remove_succ_edge): Likewise.
14243         (eliminate_build): Likewise.
14244         (elim_forward): Likewise.
14245         (elim_unvisited_predecessor): Likewise.
14246         (elim_backward): Likewise.
14247         (elim_create): Likewise.
14248         (eliminate_phi): Likewise.
14249         (insert_backedge_copies): Likewise.
14250         * tree-into-ssa.c (insert_phi_nodes_for): Add block debug info for
14251         add_phi_arg.
14252         (rewrite_add_phi_arguments): Likewise.
14253         * tree-ssa-loop-im.c (execute_sm_if_changed): Likewise.
14254         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
14255         * tree-ssa-threadupdate.c (copy_phi_args): Likewise.
14256         * tree-loop-distribution.c (update_phis_for_loop_copy): Likewise.
14257         * tree-ssa-loop-manip.c (create_iv): Likewise.
14258         (add_exit_phis_edge): Likewise.
14259         (split_loop_exit_edge): Likewise.
14260         (copy_phi_node_args): Likewise.
14261         (tree_transform_and_unroll_loop): Likewise.
14262         * value-prof.c (gimple_ic): Likewise.
14263         (gimple_stringop_fixed_value): Likewise.
14264         * tree-tailcall.c (add_successor_phi_arg): Likewise.
14265         (eliminate_tail_call): Likewise.
14266         (create_tailcall_accumulator): Likewise.
14267         (tree_optimize_tail_calls_1): Likewise.
14268         * tree-phinodes.c (add_phi_arg): Likewise.
14269         (make_phi_node): Likewise.
14270         (resize_phi_node): Likewise.
14271         (remove_phi_arg_num): Likewise.
14272         * omp-low.c (expand_parallel_call): Likewise.
14273         (expand_omp_for_static_chunk): Likewise.
14274         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop):
14275         Likewise.
14276         (slpeel_update_phi_nodes_for_guard1): Likewise.
14277         (slpeel_update_phi_nodes_for_guard2): Likewise.
14278         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
14279         (set_prologue_iterations): Likewise.
14280         (slpeel_tree_peel_loop_to_edge): Likewise.
14281         (vect_loop_versioning): Likewise.
14282         * tree-parloops.c (create_phi_for_local_result): Likewise.
14283         (transform_to_exit_first_loop): Likewise.
14284         (create_parallel_loop): Likewise.
14285         * ipa-split.c (split_function): Likewise.
14286         * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
14287         (vect_create_epilog_for_reduction): Likewise.
14288         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
14289         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
14290         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
14291         (cond_if_else_store_replacement_1): Likewise.
14292         * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
14293         (remove_forwarder_block_with_phi): Likewise.
14294         * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
14295         * tree-predcom.c (initialize_root_vars): Likewise.
14296         (initialize_root_vars_lm): Likewise.
14297         * sese.c (sese_add_exit_phis_edge): Likewise.
14298         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
14299         * tree-ssa.c (flush_pending_stmts): Likewise.
14300         (redirect_edge_var_map_add): Likewise.
14301         (ssa_redirect_edge): Likewise.
14302         * gimple-streamer-in.c (input_phi): Likewise.
14303         * tree-vect-stmts.c (vectorizable_load): Likewise.
14304         * tree-inline.c (copy_phis_for_bb): Likewise.
14305         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
14306         * tree-switch-conversion.c (fix_phi_nodes): Likewise.
14307         * tree-cfg.c (reinstall_phi_args): Likewise.
14308         (gimple_make_forwarder_block): Likewise.
14309         (add_phi_args_after_copy_edge): Likewise.
14310         (gimple_duplicate_sese_tail): Likewise.
14312 2012-07-09  Oleg Endo  <olegendo@gcc.gnu.org>
14314         PR target/53886
14315         * config/sh/sh.c (sequence_insn_p): New function.
14316         (find_barrier, sh_insn_length_adjustment): Use it.
14318 2012-07-09  Iain Sandoe  <iain@codesourcery.com>
14320         PR target/53283
14321         * config/i386/i386.c (ix86_fold_builtin): Call SUBTARGET_FOLD_BUILTIN
14322         if defined.
14323         * config/darwin.h: Rename TARGET_FOLD_BUILTIN to
14324         SUBTARGET_FOLD_BUILTIN.
14325         * config/rs6000/darwin.h: Map TARGET_FOLD_BUILTIN onto
14326         SUBTARGET_FOLD_BUILTIN.
14328 2012-07-09  Iain Sandoe  <iain@codesourcery.com>
14330         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): Move NeXT
14331         runtime exceptions model setting from here ...
14332         * config/darwin.c (darwin_override_options): ... to here.
14334 2012-07-09  Steven Bosscher  <steven@gcc.gnu.org>
14336         PR tree-optimization/53887
14337         * tree-cfg.c (group_case_labels_stmt): Make non-static.
14338         * tree-flow.h (group_case_labels_stmt): Add prototype.
14339         * tree-switch-conversion.c (process_switch): Use group_case_labels_stmt
14340         to pre-process every switch.
14342 2012-07-09  Jason Merrill  <jason@redhat.com>
14344         PR c++/53882
14345         * tree.c (type_contains_placeholder_1): Handle NULLPTR_TYPE.
14346         (type_hash_eq): Likewise.
14348 2012-07-09  Tom de Vries  <tom@codesourcery.com>
14349             Richard Guenther  <rguenther@suse.de>
14351         * tree-ssa-ccp.c (optimize_unreachable): New function.
14352         (execute_fold_all_builtins): Use optimize_unreachable to optimize
14353         BUILT_IN_UNREACHABLE.  Don't optimize after BUILT_IN_UNREACHABLE.
14355 2012-07-09  Richard Guenther  <rguenther@suse.de>
14357         PR bootstrap/53898
14358         * graphite-optimize-isl.c: Make sure CU is not empty.
14360 2012-07-09  Steven Bosscher  <steven@gcc.gnu.org>
14362         * gensupport.c (init_rtx_reader_args_cb): Start counting code
14363         generating patterns from 1 to free up 0 for CODE_FOR_nothing.
14364         * gencodes.c (main): Give CODE_FOR_nothing the value 0.  Add
14365         the LAST_INSN_CODE marker at the end.
14366         * genoutput.c (nothing): New static struct data.
14367         (idata): Initialize to &nothing.
14368         (idata_end): Initialize to &nothing.next.
14369         (init_insn_for_nothing): New function to create dummy 'nothing' insn.
14370         (main): Use it.
14371         * genpeep.c (insn_code_number): Remove global variable.
14372         (gen_peephole): Take it as an argument instead.
14373         (main): Take insn_code_number from read_md_rtx.
14374         * optabs.h: Revert r161809:
14375         (optab_handlers): Change type of insn_code back to insn_code.
14376         (optab_handler, widening_optab_handler, set_optab_handler,
14377         set_widening_optab_handler, convert_optab_handler,
14378         set_convert_optab_handler, direct_optab_handler,
14379         set_direct_optab_handler): Remove int casts.
14380         Revert to treating the insn_code field as "insn_code".
14382 2012-07-08  Oleg Endo  <olegendo@gcc.gnu.org>
14384         * config/sh/sh.md (*return_i): Move trap_exit attribute check to ...
14385         * config/sh/sh.c (sh_cfun_trap_exit_p): ... this new function.
14386         * config/sh/sh-protos.h: Declare it.
14388 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
14390         * mcf.c: Do not include tm.h, tree.h, and langhooks.h.
14391         (dump_fixup_graph): Use current_function_name.
14392         (adjust_cfg_counts): Likewise.
14393         * ira-conflicts.c: Do not include tree.h.
14394         (ira_build_conflicts): Use REG_USERVAR_P instead of DECL_ARTIFICIAL.
14396 2012-07-08  Oleg Endo  <olegendo@gcc.gnu.org>
14398         PR target/51244
14399         * config/sh/sh.md (*branch_true_eq, *branch_false_ne, nott): New insns.
14401 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
14403         * basic-block.h: Re-group most prototypes per file.
14404         (struct edge_list): Remove num_blocks field.
14405         (dump_bb_info): Adjust prototypes.
14406         (dump_reg_info): Move prototype to regs.h.
14407         * function.h: Do not include tree.h.
14408         Include vec.h, vecir.h, input.h and machmode.h to compensate.
14409         (function_name): New prototype.
14410         * gimple.h: Include tree.h to compensate for basic-block.h change.
14411         * langhooks.h: Note that tree.h is only necessary for enum tree_code.
14412         * regs.h (dump_reg_info): Prototype here.
14413         * regset.h: Adjust file reference in comment.
14414         (debug_regset): Remove prototype.
14415         * rtl.h: Include flags.h for flag_var_tracking_assignments.
14416         (MAY_HAVE_DEBUG_INSNS): Define as flag_var_tracking_assignments
14417         instead of no-longer-available tree.h's MAY_HAVE_DEBUG_STMTS.
14418         (dump_reg_info, dump_flow_info): Remove prototypes.
14419         * bb-reorder.c (set_edge_can_fallthru_flag): Move from cfganal.c
14420         to here, the only user.  Make static.
14421         (reorder_basic_blocks): Call dump_reg_info before dump_flow_info.
14422         * cfg.c: Do not include tm.h, tree.h, rtl.h, hard-reg-set.h, regs.h,
14423         flags.h, function.h, except.h, diagnostic-core.h, tm_p.h, timevar.h,
14424         tree-pass.h, cfgloop.h, and tree-flow.h.
14425         Include basic-block.h, the first header I'd expect to be included.
14426         (reg_obstack): Move to df-core.c.
14427         (free_edge): Remove bogus ATTRIBUTE_UNUSED.
14428         (remove_edge_raw): Do not call tree-ssa's redirect_edge_var_map_clear.
14429         (redirect_edge_succ_nodup): Move to cfghooks.c.
14430         (dump_regset, debug_regset): Move to df-core.c.
14431         (dump_bb_info): Move to cfgrtl.c.
14432         (dump_reg_info): Move to regstat.c.
14433         (dump_flow_info): Move to cfgrtl.c.
14434         (debug_flow_info): Likewise.
14435         (dump_edge_info): Do not look at cfun, a CFG without cfun is nonsense.
14436         * cfganal.c: Do not include tm.h, rtl.h, obstack.h, hard-reg-set.h,
14437         insn-config.h, recog.h, diagnostic-core.h, tm_p.h, and cfgloop.h.
14438         (flow_active_insn_p, forwarder_block_p, can_fallthru,
14439         could_fall_through): Move to cfgrtl.c.
14440         (set_edge_can_fallthru_flag): Moved to bb-reorder.c.
14441         (create_edge_list): Do not set edge_list's removed num_blocks.
14442         (print_edge_list): Look at n_basic_blocks instead of num_blocks.
14443         (flow_nodes_print): Remove.
14444         (flow_edge_list_print): Remove.
14445         (inverted_post_order_compute): Use FOR_ALL_BB.
14446         * cfgrtl.c (dump_flow_info): Moved from cfg.c.
14447         Do not call dump_reg_info.
14448         (debug_flow_info): Moved from cfg.c
14449         (dump_bb_info): Moved from cfg.c.  Take 'verbose' argument
14450         to avoid looking at TDF_* flags from tree-pass.h.
14451         (flow_active_insn_p, forwarder_block_p, can_fallthru,
14452         could_fall_through): Moved from cfganal.c.
14453         (print_rtl_with_bb): Adjust dump_bb_info calls.
14454         * cfghooks.c (redirect_edge_succ_nodup): Moved from cfg.c.
14455         (remove_edge): Call redirect_edge_var_map_clear if IR_GIMPLE.
14456         (cfgcleanup.c): Look at MAY_HAVE_DEBUG_INSNS, not MAY_HAVE_DEBUG_STMTS.
14457         * cselib.c: Include tree.h with a FIXME.
14458         * df-core.c (reg_obstack): Moved from cfg.c.
14459         (dump_regset): Likewise.
14460         (debug_regset): Likewise.  Make a DEBUG_FUNCTION.
14461         * final.c (compute_alignments): Call dump_reg_info before
14462         dump_flow_info.
14463         * function.c (function_name): New function.
14464         (current_function_name): Use it.
14465         * ifcvt.c (rest_of_handle_if_conversion): Call dump_reg_info before
14466         dump_flow_info.
14467         * ira-conflicts.c: Include tree.h with a note.
14468         * regstat.c (dump_reg_info): Moved here from cfg.c.
14469         * loop-init.c: Include regs.h instead of hard-reg-set.h.
14470         (rtl_loop_init): Call dump_reg_info before dump_flow_info.
14471         (rtl_loop_done): Likewise.
14472         * mcf.c: Include tree.h before langhooks.h.
14473         * predict.c (maybe_hot_count_p): Assert we have cfun.
14474         (probably_never_executed_bb_p): Likewise.
14475         * profile.c (compute_branch_probabilities): Use gimple_dump_cfg
14476         instead of dump_flow_info.
14477         * sched-deps.c: Include tree.h with a FIXME.
14478         (call_may_noreturn_p): Add FIXME note why this function has to
14479         look at function decls instead of function decl flags.
14480         * sched-vis.c: Include tree.h with a FIXME.
14481         (print_rtl_slim): Adjust dump_bb_info uses.
14482         * statistics.c (statistics_fini_pass_2): Use current_function_name
14483         to avoid including tree.h.
14484         (statistics_counter_event): Use function_name for the same reason.
14485         (statistics_histogram_event): Likewise.
14486         * tracer.c (tracer): Remove bogus gcc_assert.  Use brief_dump_cfg
14487         instead of dump_flow_info.
14488         * var-tracking.c (variable_tracking_main_1): Call dump_reg_info
14489         before dump_flow_info.
14490         * doc/cfg.texi: Update CFG documentation.
14491         * Makefile.in (RTL_H): Depend on FLAGS_H.
14492         (GIMPLE_H): Depend on TREE_H.
14493         (FUNCTION_H): Depend on VEC_H, vecir.h, INPUT_H and MACHMODE_H,
14494         but no longer on TREE_H.
14495         (C_COMMON_H): Depend on TREE_H.
14496         (cselib.o, cse.o, cfganal.o, loop-init.o, ira-conflicts.o,
14497         sched-deps.o, sched-vis.o): Fixup dependencies.
14499 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
14501         * alias.h: Do not include coretypes.h in header files.
14502         * cppbuiltin.h: Likewise.
14503         * double-int.h: Likewise.
14504         * gimple-fold.h: Likewise.
14505         * flags.h: Likewise.
14506         * tree-ssa-alias.h: Likewise.
14507         * gengtype.h (obstack_chunk_alloc, obstack_chunk_free,
14508         OBSTACK_CHUNK_SIZE): Define here to avoid dependency on coretypes.h.
14509         * Makefile.in (RTL_BASE_H): Depend on coretypes.h.
14510         (TREE_H): Likewise.
14511         (ALIAS_H): Do not depend on coretypes.h.
14512         (FLAGS_H): Likewise.
14513         (realmpfr.o): Depend on coretypes.h.
14515 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
14517         * Makefile.in (gengtype-lex.o, gengtype-parse.o, gengtype-state.o,
14518         gengtype.o): Add -DGENERATOR_FILE manually for host gengtype objects.
14520 2012-07-07  Richard Earnshaw  <rearnsha@arm.com>
14522         * arm.h (TARGET_CPU_CPP_BUILTINS): Remove Maverick support.
14523         (TARGET_FPA): Delete definition.
14524         (TARGET_MAVERICK): Likewise.
14525         (TARGET_FPA_EMU2): Likewise.
14526         (arm_fp_model): Remove FPA and Maverick models.
14527         (arm_arch_cirrus): Delete declaration.
14528         (FLOAT_WORDS_BIG_ENDIAN): Delete definition.
14529         (FIXED_REGISTERS): Remove FPA and Maverick support.  Reorganize.
14530         (CALL_USED_REGISTERS): Likewise.
14531         (FIRST_FPA_REGNUM, LAST_FPA_REGNUM): Delete definition.
14532         (FIRST_VFP_REGNUM): Renumbered.
14533         (D7_VFP_REGNUM): Chain definition.
14534         (LAST_LO_VFP_REGNUM): Likewise.
14535         (FIRST_HI_VFP_REGNUM): Likewise.
14536         (LAST_HI_VFP_REGNUM): Likewise.
14537         (FIRST_IWMMXT_GR_REGNUM): Likewise.
14538         (LAST_IWMMXT_GR_REGNUM): Likewise.
14539         (FIRST_IWMMXT_REGNUM): Likewise.
14540         (LAST_IWMMXT_REGNUM): Likewise.
14541         (FRAME_POINTER_REGNUM): Renumbered.
14542         (ARG_POINTER_REGNUM): Renumbered.
14543         (FIRST_PSEUDO_REGISTER): Remove FPA and Maverick registers.
14544         (FIRST_CIRRUS_FP_REGNUM, LAST_CIRRUS_FP_REGNUM): Delete definitions.
14545         (HARD_REGNO_REGNUM): Remove FPA support.
14546         (REG_ALLOC_ORDER): Remove FPA and Maverick registers.  Reorganize.
14547         (reg_class): Likewise.
14548         (REG_CLASS_NAMES): Likewise.
14549         (REG_CLASS_CONTENTS): Likewise.
14550         (CANNOT_CHANGE_MODE_CLASS): Never true.  Update comment.
14551         (SECONDARY_INPUT_RELOAD_CLASS): Remove Maverick support.
14552         (CLASS_MAX_NREGS): Remove FPA and Maverick support.
14553         * aout.h (REGISTER_NAMES): Remove FPA and Maverick registers.
14554         Reorganize.  Use AAPCS preferred names.
14555         (ADDITIONAL_REGISTER_NAMES): Remove aliases for Maverick.  Update
14556         comments.
14557         (OVERLAPPING_REGISTER_NAMES): Update register numbering.
14558         * arm.c (FL_CIRRUS): Delete definition.
14559         (arm_arch_cirrus): Delete variable.
14560         (arm_float_words_big_endian): Delete function.
14561         (cirrus_memory_offset): Delete function.
14562         (output_mov_long_double_fpa_from_arm): Delete function.
14563         (output_mov_long_double_arm_from_fpa): Delete function.
14564         (output_mov_double_fpa_from_arm): Delete function.
14565         (output_mov_double_arm_from_fpa): Delete function.
14566         (emit_sfm): Delete function.
14567         (maybe_get_arm_condition_code): Update comment.
14568         (arm_file_start): Always use softvfp for softfloat systems.
14569         (thumb_core_reg_alloc_order): Adjust for updated register allocation.
14570         (arm_option_override): Remove FPA and Maverick support.  Always
14571         default to vfp as the fallback FPU format.
14572         (use_return_insn): Remove FPA support.
14573         (arm_get_frame_offsets): Likewise.
14574         (arm_save_coproc_regs): Likewise.
14575         (arm_canonicalize_comparison): Remove Maverick support.
14576         (arm_select_cc_mode): Likewise.
14577         (arm_gen_compare_reg): Likewise.
14578         (arm_print_operand): Likewise.
14579         (arm_libcall_value_1): Remove FPA and Maverick support.
14580         (arm_function_value_regno_p): Likewise.
14581         (arm_apply_result_size): Likewise.
14582         (arm_legitimate_index_p): Likewise.
14583         (thumb2_legitimate_index_p): Likewise.
14584         (legitimize_reload_address): Likewise.
14585         (arm_register_move_cost): Likewise.
14586         (arm_hard_regno_mode_ok): Likewise.
14587         (arm_regno_class): Likewise.
14588         (arm_dbx_register_number): Likewise.
14589         (arm_emit_unwind_sequence): Likewise.
14590         (arm_conditional_register_usage): Likewise.
14591         * arm-protos.h (neg_const_double_rtx_ok_for_fpa): Remove declaration.
14592         (cirrus_memory_offset): Likewise.
14593         (output_move_long_double_fpa_from_arm): Likewise.
14594         (output_move_long_double_arm_from_fpa): Likewise.
14595         (output_move_double_fpa_from_arm): Likewise.
14596         (output_move_double_arm_from_fpa): Likewise.
14597         (arm_float_words_big_endian): Likewise.
14598         * arm.md (CC_REGNUM): Renumbered.
14599         (VFPCC_REGNUM): Moved here.  Renumbered.
14600         (FPA_F0_REGNUM, FPA_F7_REGNUM): Delete.
14601         (attr fpu): Remove FPA and Maverick support.
14602         * vfp.md (VFPCC_REGNUM): Delete.  Moved to arm.md.
14603         * arm-cores.def (ep9312): Remove Maverick support.
14604         * arm-arches.def (ep9312): Delete architecture.
14605         * arm-tables.opt: Regenerated.
14607         * arm/linux-elf.h (FPUTYPE_DEFAULT): Set to vfp.
14609 2012-07-07  Steven Bosscher  <steven@gcc.gnu.org>
14611         PR tree-optimization/53881
14612         * tree-switch-conversion.c (emit_case_bit_tests): Do not rely on
14613         comparing labels to establish uniqueness of a switch case target,
14614         use the CFG instead.
14616 2012-07-07  Ulrich Weigand  <ulrich.weigand@linaro.org>
14618         * combine.c (force_to_mode) [LSHIFTRT]: Avoid undefined behaviour
14619         due to negative shift amount.
14621 2012-07-07  Hans-Peter Nilsson  <hp@axis.com>
14623         Fix configure test for "stack protector support in target C library".
14624         * configure.ac (test_prefix, test_exec_prefix): Move setting from
14625         inside sysroot handling to before and outside it.
14626         * configure: Regenerate.
14628 2012-07-06  Kai Tietz  <ktietz@redhat.com>
14630         PR bootstrap/52947
14631         * config/i386/mingw32.h (NATIVE_SYSTEM_HEADER_DIR): Define it always
14632         as "/mingw/include".
14634 2012-07-06  Alexandre Oliva  <aoliva@redhat.com>
14636         PR debug/53820
14637         * var-tracking.c (vt_add_function_parameter): Convert
14638         internal_arg_pointer into arg_pointer-based address even
14639         without DRAP.
14641 2012-07-06  Alexandre Oilva  <aoliva@redhat.com>
14643         PR rtl-optimization/53827
14644         PR debug/53671
14645         PR debug/49888
14646         * alias.c (memrefs_conflict_p): Adjust offset and size by the
14647         same amount for alignment ANDs.
14649 2012-07-06  Tom de Vries  <tom@codesourcery.com>
14651         PR tree-optimization/51879
14652         * tree-ssa-sccvn.c (copy_reference_ops_from_call)
14653         (visit_reference_op_call): Handle case that lhs is not an SSA_NAME.
14654         (visit_use): Also call visit_reference_op_call for calls with a vdef.
14656 2012-07-06  Tom de Vries  <tom@codesourcery.com>
14658         PR tree-optimization/52009
14659         * tree-ssa-tail-merge.c (gimple_equal_p): For GIMPLE_ASSIGN, compare
14660         value numbers of gimple_vdef.
14661         * tree-ssa-sccvn.h (vn_reference_insert): Add vdef parameter to
14662         prototype.
14663         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MODIFY_EXPR.
14664         (vn_reference_insert): Add and handle vdef parameter.
14665         (visit_reference_op_load): Add argument to vn_reference_insert call.
14666         (visit_reference_op_store): Find value number of vdef of store.  Insert
14667         value number of vdef of store.
14669 2012-07-06  Uros Bizjak  <ubizjak@gmail.com>
14671         * config/i386/i386.md (simple lea to add peephole): Also transform
14672         RTXes where second PLUS operand matches output.
14674 2012-07-06  Uros Bizjak  <ubizjak@gmail.com>
14676         * config/i386/i386.c (construct_plt_address): Make static.
14677         * config/i386/i386-protos.h (construct_plt_address): Remove.
14679 2012-07-06  Nick Clifton  <nickc@redhat.com>
14681         * config/mn10300/mn10300.c (mn10300_encode_section_info): Call
14682         default_encode_section_info.
14684 2012-07-06  Uros Bizjak  <ubizjak@gmail.com>
14686         PR target/53853
14687         * config/i386/i386.c (x86_output_mi_thunk): For CM_LARGE_PIC model,
14688         emit PIC sequence for fnaddr symbol reference in advance.
14690 2012-07-06  Eric Botcazou  <ebotcazou@adacore.com>
14692         Revert
14693         2012-06-14  Eric Botcazou  <ebotcazou@adacore.com>
14695         * dwarf2out.c (function_possibly_abstracted_p): New static function.
14696         (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
14697         cgraph_function_possibly_inlined_p.
14698         (gen_inlined_subroutine_die): Return if the origin is to be ignored.
14699         (process_scope_var): Do not emit concrete instances of abstracted
14700         nested functions from here.
14701         (gen_decl_die): Emit the abstract instance if the function is possibly
14702         abstracted and not only possibly inlined.
14703         (dwarf2out_finish): Find the first non-abstract parent instance and
14704         attach concrete instances on the limbo list to it.
14706 2012-07-05  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14707             Julian Brown  <julian@codesourcery.com>
14709         PR target/48941
14710         PR target/51980
14711         * config/arm/neon-gen.ml (return_by_ptr): Delete.
14712         (print_function): Handle empty strings.
14713         (return): Delete use of return_by_ptr.
14714         (mask_shape_for_shuffle): New function.
14715         (mask_elems): Likewise.
14716         (shuffle_fn): Likewise.
14717         (params): Simplify and remove use of return_by_ptr.
14718         (get_shuffle): New function.
14719         (print_variant): Update.
14720         * config/arm/neon.ml (rev_elems): New function.
14721         (permute_range): Likewise.
14722         (zip_range): Likewise.
14723         (uzip_range): Likewise.
14724         (trn_range): Likewise.
14725         (zip_elems): Likewise.
14726         (uzip_elems): Likewise.
14727         (trn_elems): Likewise.
14728         (features): New enumeration Use_shuffle. Delete ReturnPtr.
14729         (pf_su_8_16): New.
14730         (suf_32): New.
14731         (ops): Update entries for Vrev64, Vrev32, Vrev16, Vtr, Vzip, Vuzp.
14732         * config/arm/arm_neon.h: Regenerate.
14734 2012-07-05  Richard Guenther  <rguenther@suse.de>
14736         * tree-pretty-print.c (dump_generic_node): Properly test
14737         the result of exact_log2.
14739 2012-07-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14741         * config/s390/s390-protos.h (s390_expand_movmem)
14742         (s390_expand_cmpmem): Add return value.
14743         * config/s390/s390.c (s390_expand_movmem, s390_expand_cmpmem):
14744         Return FALSE to use the library function in some cases.
14745         * config/s390/s390.md (movmem, cmpmem): Evaluate return value of C
14746         helper functions.
14748 2012-07-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14750         * config.gcc: Enable ifunc attribute by default on s390 and s390x.
14752 2012-07-05  Steven Bosscher  <steven@gcc.gnu.org>
14754         * expr.c (try_casesi): Remove bogus ATTRIBUTE_UNUSED markers.
14755         * stmt.c (dump_case_nodes): New.
14756         (expand_case): Split out code generation parts into new functions.
14757         (expand_switch_as_decision_tree_p): Split out from expand_case.
14758         (emit_case_decision_tree): Likewise.
14759         (emit_case_dispatch_table): Likewise.
14761 2012-07-05  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
14763         * config/arm/iterators.md (SDF): New mode iterator.
14764         (V_if_elem): Add support for SF and DF modes.
14765         (V_reg): Likewise.
14766         (F_constraint): New mode iterator attribute.
14767         (F_fma_type): Likewise.
14768         config/arm/vfp.md (fma<SDF:mode>4): New pattern.
14769         (*fmsub<SDF:mode>4): Likewise.
14770         (*fmnsub<SDF:mode>4): Likewise.
14771         (*fmnadd<SDF:mode>4): Likewise.
14773 2012-07-04  Uros Bizjak  <ubizjak@gmail.com>
14775         * expmed.c (expand_mult): Initialize coeff and is_neg.
14777 2012-07-04  Oleg Endo  <olegendo@gcc.gnu.org>
14779         * config/sh/predicates.md (zero_extend_operand): New predicate.
14780         * config/sh/sh.md (zero_extendhisi2): Simplify by using new
14781         zero_extend_operand predicate.
14782         (zero_extendqisi2): Likewise.
14784 2012-07-04  Uros Bizjak  <ubizjak@gmail.com>
14786         PR middle-end/53321
14787         * ipa.c (symtab_remove_unreachable_nodes): Partially revert r187375
14788         to not call cgraph_propagate_frequency if something was changed.
14790 2012-07-04  Richard Guenther  <rguenther@suse.de>
14792         PR middle-end/53433
14793         * gimple-fold.c (get_base_constructor): Do not return an
14794         error_mark_node DECL_INITIAL.
14796 2012-07-04  Richard Guenther  <rguenther@suse.de>
14798         PR tree-optimization/53844
14799         * tree-ssa-dse.c (dse_possible_dead_store_p): Properly handle
14800         the loop virtual PHI.
14802 2012-07-04  Richard Guenther  <rguenther@suse.de>
14804         PR tree-optimization/53849
14805         * tree-cfg.c (move_stmt_op): Only call add_referenced_var
14806         for duplicated locals.  Use add_referenced_var_1 to avoid
14807         pushing/popping cfun.
14809 2012-07-04  Kai Tietz  <ktietz@redhat.com>
14811         * config/i386/winnt.c (i386_pe_reloc_rw_mask): New function.
14812         * config/i386/i386-protos.h (i386_pe_reloc_rw_mask): Add
14813         prototype.
14814         * config/i386/cygming.h (TARGET_ASM_RELOC_RW_MASK): Define
14815         as i386_pe_reloc_rw_mask.
14817 2012-07-04  Richard Guenther  <rguenther@suse.de>
14819         * tree.c (find_decls_types_r): Handle TYPE_CONTEXT the same
14820         as in free_lang_data_in_type.
14822 2012-07-04  Tobias Grosser <tobias@grosser.es>
14823             Michael Matz  <matz@suse.de>
14825         * Makefile.in (OBJS): Add graphite-optimize-isl.o.
14826         (graphite-optimize-isl.o): Add dependencies.
14827         * common.opt (floop-nest-optimize): New flag.
14828         * doc/invoke.texi (floop-nest-optimize): Document.
14829         * graphite-dependences.c (compute_deps): Export.
14830         * graphite-poly.h (compute_deps): Declare.
14831         * graphite-optimize-isl.c: New file.
14832         * graphite-poly.c (apply_poly_transforms): Run the loop
14833         nest optimizer.
14834         * tree-ssa-loop.c (gate_graphite_transforms): Enable graphite
14835         if -floop-nest-optimize is enabled.
14837 2012-07-03  Oleg Endo  <olegendo@gcc.gnu.org>
14839         * config/sh/predicates.md (logical_and_operand): New predicate.
14840         * config/sh/constraints.md (Jmb, Jmw): New constraints.
14841         * config/sh/sh.md (andsi3): Move expander above insns.  Add handling
14842         of 0xFFFF constant.  Use logical_and_operand predicate and
14843         satisfies_constraint_Jmb, satisfies_constraint_Jmw.
14844         (*andsi3_compact): Make it an insn_and_split.  Use
14845         logical_and_operand predicate.  Add Jmb,Jmw alternatives.
14847 2012-07-03  Jason Merrill  <jason@redhat.com>
14849         PR c++/53826
14850         * tree.c (build_zero_cst): Handle NULLPTR_TYPE.
14852 2012-07-03  Nick Clifton  <nickc@redhat.com>
14854         * config/mep/mep.c (mep_reorg_regmove): Use
14855         next_nonnote_non_debug_insn to advance to the next insn.  Do not
14856         expect delete_insn to return an rtx.
14858 2012-07-03  Richard Guenther  <rguenther@suse.de>
14860         * doc/install.texi (CLooG): Clarify how CLooG needs to be
14861         configured and that it needs to be built against ISL 0.10.
14863 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
14865         * config/i386/i386.c (ix86_option_override_internal): Fix wrong
14866         code model string in the error message.
14868 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
14870         PR target/53811
14871         * config/i386/i386.c (x86_output_mi_thunk): Check if fnaddr satisfies
14872         sibcall_insn_operand.  Move it to a temporary register if not.
14874 2012-07-03  Andreas Schwab  <schwab@linux-m68k.org>
14876         PR target/28896
14877         * config/m68k/m68k.c (m68k_option_override): Reset stack_limit_rtx
14878         if !TARGET_68020.
14880 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
14882         * config/i386/xmmintrin.h (_mm_sfence): Use __builtin_ia32_pause.
14884 2012-07-03  Roland McGrath  <mcgrathr@google.com>
14886         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): Also require that the
14887         assembler accept 'rep bsf ...', 'rep bsr ...', 'rep ret' and 'rep nop'.
14888         * configure: Regenerated.
14889         * config/i386/i386.md (simple_return_internal_long): Use %;
14890         (ctz<mode>2): Likewise.
14891         (*pause): Likewise.
14893 2012-07-02  Oleg Endo  <olegendo@gcc.gnu.org>
14895         PR target/51244
14896         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): New
14897         predicates.
14898         * config/sh/sh-protos.h (get_t_reg_rtx): New prototype.
14899         * config/sh/sh.c (get_t_reg_rtx): New function.  Use it when invoking
14900         gen_branch_true and gen_branch_false.
14901         * config/sh/sh.md: Use get_t_reg_rtx when invoking gen_branch_true and
14902         gen_branch_false.
14903         (branch_true, branch_false): Use t_reg_operand predicate.
14904         (*branch_true, *branch_false): Delete.
14905         (movt): Use t_reg_operand predicate.
14906         (*negnegt): Use negt_reg_operand predicate and fold little and big
14907         endian variants.
14908         (*movtt): Use t_reg_operand and fold little and big endian variants.
14909         (*movt_qi): Delete.
14911 2012-07-02  Steven Bosscher  <steven@gcc.gnu.org>
14913         * stmt.c (emit_case_bit_tests): Remove.
14914         (expand_case): Remove expand_switch_using_bit_tests_p code.
14915         * tree-switch-conversion.c (hoist_edge_and_branch_if_true): New.
14916         (MAX_CASE_BIT_TESTS): Moved from stmt.c to here.
14917         (lshift_cheap_p): Likewise.
14918         (expand_switch_using_bit_tests_p): Likewise.
14919         (struct case_bit_test): Likewise.
14920         (case_bit_test_cmp): Likewise.
14921         (emit_case_bit_tests): New implementation for GIMPLE.
14922         (gen_inbound_check): Do not release post-dominator info here.
14923         (process_switch): Reorder code.  Expand as bit tests if it
14924         looks like a win.
14925         (do_switchconv): Release post-dominator info here if something changed.
14926         (struct gimple_opt_pass): Verify more.
14927         * tree.h (expand_switch_using_bit_tests_p): Remove prototype.
14929 2012-07-02  Martin Jambor  <mjambor@suse.cz>
14931         PR middle-end/38474
14932         * ipa-prop.c (compute_known_type_jump_func): Put BINFO check before a
14933         dynamic type change check.
14935 2012-07-02  Richard Guenther  <rguenther@suse.de>
14936             Michael Matz  <matz@suse.de>
14937             Tobias Grosser <tobias@grosser.es>
14938             Sebastian Pop <sebpop@gmail.com>
14940         * Makefile.in: Remove PPL flags in favor of ISL ones.
14941         (BACKENDLIBS): Remove PPL libs.
14942         (INCLUDES): Remove PPL includes in favor of ISL ones.
14943         (graphite-clast-to-gimple.o): Remove graphite-dependences.h and
14944         graphite-cloog-compat.h dependencies.
14945         (graphite-dependences.o): Likewise.
14946         (graphite-poly.o): Likewise.
14947         * configure.ac: Declare ISL vars instead of PPL ones.
14948         * configure: Regenerated.
14949         * doc/install.texi: Replace PPL requirement documentation with ISL one.
14950         * graphite-blocking.c: Remove PPL code, add ISL equivalent.
14951         * graphite-clast-to-gimple.c: Likewise.
14952         * graphite-dependences.c: Likewise.
14953         * graphite-interchange.c: Likewise.
14954         * graphite-poly.h: Likewise.
14955         * graphite-poly.c: Likewise.
14956         * graphite-sese-to-poly.c: Likewise.
14957         * graphite.c: Likewise.
14958         * graphite-scop-detection.c: Re-arrange includes.
14959         * graphite-cloog-util.c: Remove.
14960         * graphite-cloog-util.h: Likewise.
14961         * graphite-ppl.h: Likewise.
14962         * graphite-ppl.c: Likewise.
14963         * graphite-dependences.h: Likewise.
14965 2012-07-02  Richard Guenther  <rguenther@suse.de>
14967         Merge from graphite branch
14968         2011-07-21  Tobias Grosser  <tobias@grosser.es>
14970         * Makefile.in (graphite-clast-to-gimple.o, graphite-cloog-util.o):
14971         Remove graphite-cloog-util.h.
14972         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop,
14973         build_iv_mapping, translate_clast_user, translate_clast,
14974         free_scattering, initialize_cloog_names, build_cloog_prog,
14975         create_params_index): Do not use old compatibility functions.
14976         (clast_name_to_index, set_cloog_options): Remove code for legacy cloog.
14977         * graphite-cloog-util.c (openscop_print_cloog_matrix): Do not use old
14978         compatibility functions.
14979         (new_Cloog_Scattering_from_ppl_Polyhedron): Remove code for legacy
14980         cloog.
14981         * graphite-cloog-util.h: Remove include of graphite-cloog-util.h.
14982         * graphite.c (graphite.c): Do not call outdated cloog_initialize() and
14983         cloog_finalize().
14984         * graphite-cloog-compat.h: Remove.
14986         2011-08-09  Tobias Grosser <tobias@grosser.es>
14988         * graphite-clast-to-gimple.c (new_clast_name_index): Store a copy
14989         of the string, no just a reference.
14990         (clast_name_index): Add a new field, that specifies if we need to free
14991         the name.
14992         (free_clast_name_index): If necessary, free the name string.
14993         (clast_name_index_elt_info): Calculate the hash based on the string
14994         content, not the memory location it is stored in.
14995         (clast_name_to_level): Specify that we do not need to free the name.
14996         (clast_name_to_index): Dito.
14997         (clast_name_to_lb_ub): Dito.
14998         (eq_clast_name_indexes): Compare the strings, not their base pointers.
14999         (free_scattering): Removed.
15000         (initialize_cloog_names): Renamed to add_names_to_union_domain().
15001         (add_names_to_union_domain): Changed to work on a union_domain,
15002         instead of a CloogNames structure.
15003         (build_cloog_prog): Removed.
15004         (build_cloog_union_domain): New.
15005         (generate_cloog_input): New.
15006         (scop_to_clast): Use CloogInput instead of CloogProgram.
15007         (print_generated_program): Adapt to new scop_to_clast() and do not
15008         print the CloogProgram any more.
15009         (create_params_index): Removed, functionality integrated in
15010         add_names_to_union_domain().
15011         (gloog): Adapt to new scop_to_clast().
15012         * graphite-clast-to-gimple.h (scop_to_clast): Remove.
15014         2012-01-11  Tobias Grosser <tobias@grosser.es>
15016         * graphite-clast-to-gimple.c (clast_name_to_index,
15017         clast_name_to_lb_ub, clast_name_to_gcc): Change types.
15018         (clast_to_gcc_expression): Add clast_expr_name as a new
15019         case. Do not assume a clast_expr_term points always to a
15020         clast_expr_name.
15021         (type_for_clast_term): Do not assume a clast_expr_term points always to
15022         a clast_expr_name.
15023         (type_for_clast_name): New.
15024         (type_for_clast_expr): Add clast_expr_name as a new case.
15026         2011-08-03  Sebastian Pop <sebpop@gmail.com>
15028         * graphite-cloog-util.c (new_Cloog_Domain_from_ppl_Polyhedron,
15029         new_Cloog_Scattering_from_ppl_Polyhedron,
15030         new_Cloog_Domain_from_ppl_Pointset_Powerset): Remove ATTRIBUTE_UNUSED.
15032 2012-07-02  Jakub Jelinek  <jakub@redhat.com>
15034         PR tree-optimization/53645
15035         * tree-vect-generic.c (expand_vector_divmod): Use TYPE_MODE (type)
15036         instead of TYPE_MODE (wider_type) as can_vec_perm_p argument.
15038 2012-07-01  Wei Guozhi  <carrot@google.com>
15040         PR target/53447
15041         * config/arm/arm-protos.h (const_ok_for_dimode_op): New prototype.
15042         * config/arm/arm.c (const_ok_for_dimode_op): New function.
15043         * config/arm/constraints.md (Dd): New constraint.
15044         * config/arm/predicates.md (arm_adddi_operand): New predicate.
15045         * config/arm/arm.md (adddi3): Extend it to handle constants.
15046         (arm_adddi3): Likewise.
15047         (addsi3_carryin_<optab>): Extend it to handle sbc case.
15048         (addsi3_carryin_alt2_<optab>): Likewise.
15049         * config/arm/neon.md (adddi3_neon): Extend it to handle constants.
15051 2012-06-30  Nathan Sidwell  <nathan@acm.org>
15053         * coverage.c (bbg_file_stamp): New.
15054         (read_counts_file): Merge incoming stamp with bbg_file_stamp.
15055         (build_info): Write bbg_file_stamp.
15056         (coverage_init): Initialize bbg_file_stamp.  Read counts file
15057         before writing graph header.
15058         (coverage_finish): Don't unlink the data file if we can generate a
15059         unique file stamp.
15060         * tree.h (crc32_unsigned): Declare.
15061         * tree.c (crc32_unsigned_bits): New, broken out of ...
15062         (crc32_byte): ... here.  Use it.
15063         (crc32_unsigned): New.
15065 2012-06-29  Cary Coutant  <ccoutant@google.com>
15067         * dwarf2out.c (add_pubname_string): Don't check for want_pubnames.
15068         (gen_subprogram_die): Don't add pubname if want_pubnames is false.
15069         (gen_variable_die): Likewise.
15070         (gen_namespace_die): Likewise.
15072 2012-06-29  Eric Botcazou  <ebotcazou@adacore.com>
15074         * tree-eh.c (lower_try_finally_switch): Really put the location of the
15075         last statement of the finally block onto the switch.
15077 2012-06-29  H.J. Lu  <hongjiu.lu@intel.com>
15079         PR target/53539
15080         * config/i386/gnu-user64.h (WCHAR_TYPE): Use "int" only for
15081         TARGET_LP64.
15083 2012-06-29  Sterling Augustine  <saugustine@google.com>
15085         * dwarf2out.c (add_pubname): Add comment.
15086         (add_pubtype): Fix indentation.
15087         (gen_enumeration_type_die): Likewise.
15089 2012-06-29  Jakub Jelinek  <jakub@redhat.com>
15091         * tree-vect-generic.c (expand_vector_divmod): For even/odd
15092         widening multiply, put even always as first argument to VEC_PERM_EXPR.
15094 2012-06-29  Richard Henderson  <rth@redhat.com>
15096         * tree-vect-generic.c: Include target.h.
15097         (expand_vector_divmod): Use builtin_mul_widen_even/odd if supported.
15098         * Makefile.in (tree-vect-generic.o): Update.
15100 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
15102         * configure.ac: Remove special gtfiles case for C.
15103         * configure: Regenerate.
15104         * Makefile.in: Remove C front-end hooks and build hooks that
15105         will be picked up from c/Make-lang.in now.
15106         Add tree-mudflap to C_COMMON_OBJS.
15107         * gengtype.c (files_rules): Adjust gt-files for c/c-decl.c.
15108         * config/vms/vms.c: Look for c-tree.h in c/.
15109         * doc/gty.texi: Remove reference to c-config-lang.in.
15110         * doc/sourcebuild.texi: Document the c/ subdirectory.
15112 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
15114         * system.h (CASE_USE_BIT_TESTS): Poison.
15115         * stmt.c (CASE_USE_BIT_TESTS): Fold away into its only user ...
15116         (expand_switch_using_bit_tests_p): ...here.
15117         * doc/tm.texi.in (CASE_USE_BIT_TESTS): Remove documentation.
15118         * doc/tm.texi (CASE_USE_BIT_TESTS): Regenerate.
15120 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
15122         * system.h (IFCVT_EXTRA_FIELDS): Poison.
15123         (IFCVT_INIT_EXTRA_FIELDS): Poison.
15124         * basic-block.h (struct ce_if_block): Remove IFCVT_EXTRA_FIELDS.
15125         * ifcvt.c (find_if_header): Use IFCVT_MACHDEP_INIT instead of
15126         IFCVT_INIT_EXTRA_FIELDS.
15127         * gengtype-parse.c (struct_field_seq): Remove obsolete comment.
15128         * config/frv/frv.h (IFCVT_INIT_EXTRA_FIELDS): Rename to
15129         IFCVT_MACHDEP_INIT.
15130         * config/frv/frv.c (frv_ifcvt_init_extra_fields): Rename to
15131         frv_ifcvt_machdep_init.
15132         * doc/tm.texi.in (IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS):
15133         Remove documentation.
15134         (IFCVT_MACHDEP_INIT): Document.
15135         * doc/tm.texi: Regenerate.
15137 2012-06-29  Nick Clifton  <nickc@redhat.com>
15139         * config/lm32/lm32.c (lm32_compute_frame_size): Fix typo.
15141 2012-06-29  Jakub Jelinek  <jakub@redhat.com>
15143         * tree-vect-stmts.c (vectorizable_operation): Check both
15144         VEC_WIDEN_MULT_LO_EXPR and VEC_WIDEN_MULT_HI_EXPR optabs.
15145         Verify that operand[0]'s mode is TYPE_MODE (wide_vectype).
15147 2012-06-28  Richard Henderson  <rth@redhat.com>
15149         * doc/generic.texi (MULT_HIGHPART_EXPR): Document it.
15151 2012-06-28  Jakub Jelinek  <jakub@redhat.com>
15153         PR tree-optimization/51581
15154         * tree-vect-stmts.c (permute_vec_elements): Add forward decl.
15155         (vectorizable_operation): Handle vectorization of MULT_HIGHPART_EXPR
15156         also using VEC_WIDEN_MULT_*_EXPR or builtin_mul_widen_* plus
15157         VEC_PERM_EXPR if vector MULT_HIGHPART_EXPR isn't supported.
15158         * tree-vect-patterns.c (vect_recog_divmod_pattern): Use
15159         MULT_HIGHPART_EXPR instead of VEC_WIDEN_MULT_*_EXPR and shifts.
15161         PR tree-optimization/53645
15162         * tree-vect-generic.c (expand_vector_divmod): Use MULT_HIGHPART_EXPR
15163         instead of VEC_WIDEN_MULT_{HI,LO}_EXPR followed by VEC_PERM_EXPR
15164         if possible.
15166 2012-06-28  Georg-Johann Lay  <avr@gjlay.de>
15168         PR 53595
15169         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): New.
15170         * config/avr/avr-protos.h (avr_hard_regno_call_part_clobbered): New.
15171         * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): Forward to
15172         avr_hard_regno_call_part_clobbered.
15174 2012-06-28  Richard Guenther  <rguenther@suse.de>
15176         PR middle-end/53790
15177         * expr.c (expand_expr_real_1): Verify if the type is complete
15178         before inspecting its size.
15180 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
15182         * doc/include/gpl.texi: Remove.
15183         * doc/sourcebuild.texi (Texinfo Manuals): Don't mention gpl.texi.
15185 2012-06-28  Jakub Jelinek  <jakub@redhat.com>
15187         PR tree-optimization/53645
15188         * tree-vect-generic.c (add_rshift): New function.
15189         (expand_vector_divmod): New function.
15190         (expand_vector_operation): Use it for vector integer
15191         TRUNC_{DIV,MOD}_EXPR by VECTOR_CST.
15192         * tree-vect-patterns.c (vect_recog_divmod_pattern): Replace
15193         unused lguup variable with dummy_int.
15195 2012-06-28  OLivier Hainque  <hainque@adacore.com>
15197         * expr.c (convert_move): Latch mem integer inputs into a
15198         register before expanding a multi-instructions sequence.
15200 2012-06-28  Alexandre Oliva  <aoliva@redhat.com>
15201             Uros Bizjak  <ubizjak@gmail.com>
15202             Jakub Jelinek  <jakub@redhat.com>
15204         PR debug/53706
15205         PR debug/47624
15206         * var-tracking.c (vt_emit_notes): Release loc_exp_dep_pool...
15207         (vt_finalize): ... here instead, if needed.
15209 2012-06-28  Alexandre Oliva  <aoliva@redhat.com>
15211         PR debug/53740
15212         PR debug/52983
15213         PR debug/48866
15214         * dce.c (word_dce_process_block): Check whether inserting debug
15215         temps are needed even for needed insns.
15216         (dce_process_block): Likewise.
15217         * df-problems.c (dead_debug_add): Add comment about multi-regs.
15218         (dead_debug_insert_temp): Likewise.  Don't subreg when we're
15219         setting fewer regs than a multi-reg requires.
15221 2012-06-27  Richard Henderson  <rth@redhat.com>
15223         * config/alpha/alpha.c (alpha_dimode_u): New.
15224         (alpha_init_builtins): Initialize it, and use it.
15225         (alpha_fold_builtin_cmpbge): Use alpha_dimode_u.
15226         (alpha_fold_builtin_zapnot, alpha_fold_builtin_insxx): Likewise.
15227         (alpha_fold_vector_minmax, alpha_fold_builtin_perr): Likewise.
15228         (alpha_fold_builtin_pklb, alpha_fold_builtin_pkwb): Likewise.
15229         (alpha_fold_builtin_unpkbl, alpha_fold_builtin_unpkbw): Likewise.
15230         (alpha_fold_builtin_cttz, alpha_fold_builtin_ctlz): Likewise.
15231         (alpha_fold_builtin_ctpop): Likewise.
15232         (alpha_fold_builtin_umulh): Remove.
15233         (alpha_fold_builtin): Use MULT_HIGHPART_EXPR for UMULH; fix
15234         typo in MAX_ARGS check.
15236 2012-06-27  Richard Henderson  <rth@redhat.com>
15238         * tree.def (MULT_HIGHPART_EXPR): New.
15239         * cfgexpand.c (expand_debug_expr): Ignore it.
15240         * expr.c (expand_expr_real_2): Handle it.
15241         * fold-const.c (int_const_binop_1): Likewise.
15242         * optabs.c (optab_for_tree_code): Likewise.
15243         * tree-cfg.c (verify_gimple_assign_binary): Likewise.
15244         * tree-inline.c (estimate_operator_cost): Likewise.
15245         * tree-pretty-print.c (dump_generic_node): Likewise.
15246         (op_code_prio, op_symbol_code): Likewise.
15247         * tree.c (commutative_tree_code): Likewise.  Also handle
15248         WIDEN_MULT_EXPR, VEC_WIDEN_MULT_HI_EXPR, VEC_WIDEN_MULT_LO_EXPR.
15250 2012-06-27  Richard Henderson  <rth@redhat.com>
15252         PR target/53749
15253         * config/i386/i386.c (ix86_rtx_costs): Fix typo vs UNITS_PER_WORD
15254         in 2012-06-23 change.  Adjust two other DImode tests as well.
15256 2012-06-27  Nick Clifton  <nickc@redhat.com>
15258         * config/rx/rx.md (comparesi3_extend): Remove = modifier from
15259         input operand.
15261 2012-06-27  Richard Guenther  <rguenther@suse.de>
15263         PR middle-end/53676
15264         * tree-chrec.c (chrec_convert_1): Represent truncation to
15265         a type with undefined overflow as truncation to an unsigned
15266         type converted to the type with undefined overflow.
15267         * tree-scalar-evolution.c (interpret_rhs_expr): For computing
15268         the scalar evolution of a truncated widened operation avoid
15269         looking at the non-existing evolution of the widened operation
15270         result.
15272 2012-06-27  Richard Guenther  <rguenther@suse.de>
15274         PR tree-optimization/53774
15275         * tree-ssa-reassoc.c (get_rank): All default defs have
15276         precomputed rank.
15277         (init_reassoc): Precompute rank for all SSA default defs.
15279 2012-06-27  Nick Clifton  <nickc@redhat.com>
15281         * config/rx/rx.md (simple_return): Use the simple_return rtx.
15283 2012-06-26  Richard Henderson  <rth@redhat.com>
15285         * config/i386/i386.c (ix86_rtx_costs): Use standard_sse_constant_p
15286         and don't fall thru from standard_80387_constant_p to the memory
15287         fallback.
15289 2012-06-26  Richard Henderson  <rth@redhat.com>
15291         * config/i386/i386.c (bdesc_args): Update.  Change
15292         IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI to OPTION_MASK_ISA_SSE2.
15293         (IX86_BUILTIN_VEC_WIDEN_SMUL_EVEN_V4SI): New.
15294         (ix86_builtin_mul_widen_even): Use it.
15295         (ix86_builtin_mul_widen_odd): Relax SMUL_ODD from sse4 to sse2.
15296         (ix86_expand_mul_widen_evenodd): Handle signed for sse2.
15297         * config/i386/sse.md (vec_widen_<s>mult_hi_<V124_AVX2>): Allow
15298         for all SSE2.
15299         (vec_widen_<s>mult_lo_<V124_AVX2>): Likewise.
15300         (vec_widen_<s>mult_odd_<VI4_AVX2>): Likewise.  Relax from V124_AVX2.
15301         (vec_widen_smult_even_v4si): New.
15303 2012-06-26  Richard Henderson  <rth@redhat.com>
15305         * config/i386/sse.md (mul<VI8_AVX2>3): Change from insn_and_split
15306         to expander; move guts to ...
15307         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): ... here.  Add
15308         highparts before shifting up.
15309         * config/i386/i386-protos.h: Update.
15311 2012-06-26  Steven Bosscher  <steven@gcc.gnu.org>
15313         * system.h (USE_COMMON_FOR_ONE_ONLY): Poison.
15314         * defaults.h (USE_COMMON_FOR_ONE_ONLY): Do not provide default.
15315         * config/darwin.h (USE_COMMON_FOR_ONE_ONLY): Do not define.
15317 2012-06-26  Alexandre Oliva  <aoliva@redhat.com>
15319         * var-tracking.c (vt_add_function_parameter): Use a preserved
15320         VALUE for the MEM address of an incoming parameter.
15322 2012-06-26  Sterling Augustine <saugustine@google.com>
15324         * dwarf2out.c (output_pubnames): Add check for DW_TAG_enumerator.
15325         (prune_unused_types): Likewise.
15327 2012-06-26  Steven Bosscher  <steven@gcc.gnu.org>
15329         * system.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
15330         UNALIGNED_LONG_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Poison.
15331         * vmsdbgout.c (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
15332         UNALIGNED_LONG_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Rename to
15333         VMS_UNALIGNED_SHORT_ASM_OP, VMS_UNALIGNED_INT_ASM_OP,
15334         VMS_UNALIGNED_LONG_ASM_OP, and VMS_UNALIGNED_DOUBLE_INT_ASM_OP.
15335         * config/microblaze/microblaze.h (UNALIGNED_SHORT_ASM_OP,
15336         UNALIGNED_INT_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Do not define.
15337         * doc/tm.texi.in: Remove UNALIGNED_INT_ASM_OP reference from the
15338         documentation.
15339         * doc/tm.texi: Regenerate.
15340         * doc/cpp.texi: Make example for #error generic.
15341         * config/frv/frv.h: Fix example text to match tm.texi.
15343 2012-06-26  Bill Schmidt  <wschmidt@linux.ibm.com>
15345         * tree-pass.h (pass_strength_reduction): New decl.
15346         * tree-ssa-loop-ivopts.c (initialize_costs): Make non-static.
15347         (finalize_costs): Likewise.
15348         * timevar.def (TV_TREE_SLSR): New timevar.
15349         * gimple-ssa-strength-reduction.c: New.
15350         * tree-flow.h (initialize_costs): New decl.
15351         (finalize_costs): Likewise.
15352         * Makefile.in (tree-ssa-strength-reduction.o): New dependencies.
15353         * passes.c (init_optimization_passes): Add pass_strength_reduction.
15355 2012-06-26  Matt Turner  <mattst88@gmail.com>
15357         * doc/extend.texi (__builtin_arm_tinsrb): Add missing second parameter.
15358         (__builtin_arm_tinsrh): Likewise.
15359         (__builtin_arm_tinsrw): Likewise.
15360         (__builtin_arm_wsadb): Add missing v2si parameter.
15361         (__builtin_arm_wsadh): Likewise.
15362         (__builtin_arm_getwcx): Delete.
15363         (__builtin_arm_setwcx): Delete.
15364         (__builtin_arm_getwcgr0): Add.
15365         (__builtin_arm_getwcgr1): Add.
15366         (__builtin_arm_getwcgr2): Add.
15367         (__builtin_arm_getwcgr3): Add.
15368         (__builtin_arm_setwcgr0): Add.
15369         (__builtin_arm_setwcgr1): Add.
15370         (__builtin_arm_setwcgr2): Add.
15371         (__builtin_arm_setwcgr3): Add.
15373 2012-06-26  Richard Guenther  <rguenther@suse.de>
15375         Revert
15376         2012-06-21  Richard Guenther  <rguenther@suse.de>
15378         * tree-inline.c (estimate_num_insns): Estimate call cost for
15379         tailcalls properly.
15381 2012-06-26  Steven Bosscher  <steven@gcc.gnu.org>
15383         PR other/33190
15384         * doc/tm.texi.in: Document LOGICAL_OP_NON_SHORT_CIRCUIT.
15385         * doc/tm.texi: Regenerate.
15387 2012-06-26  Steven Bosscher  <steven@gcc.gnu.org>
15389         PR other/33190
15390         * config/mips/mips.h: Do not define ALL_COP_ADDITIONAL_REGISTER_NAMES.
15391         * config/frv/frv.h: Do not define REVERSE_CONDEXEC_PREDICATES_P.
15392         * doc/tm.texi.in: Remove documentation for unused target macros
15393         ALL_COP_ADDITIONAL_REGISTER_NAMES, DBX_OUTPUT_LBRAC, DBX_OUTPUT_NFUN,
15394         DBX_OUTPUT_RBRAC, RANGE_TEST_NON_SHORT_CIRCUIT, REAL_VALUE_TRUNCATE,
15395         REVERSE_CONDEXEC_PREDICATES_P, TARGET_ALIGN_ANON_BITFIELDS, and
15396         TARGET_NARROW_VOLATILE_BITFIELDS.
15397         Document that MD_HANDLE_UNWABI is a macro in libgcc.
15398         * doc/tm.texi: Regenerate.
15399         * system.h: Poison target macros
15400         ALL_COP_ADDITIONAL_REGISTER_NAMES, DBX_OUTPUT_LBRAC, DBX_OUTPUT_NFUN,
15401         DBX_OUTPUT_RBRAC, RANGE_TEST_NON_SHORT_CIRCUIT, REAL_VALUE_TRUNCATE,
15402         REVERSE_CONDEXEC_PREDICATES_P, TARGET_ALIGN_ANON_BITFIELDS, and
15403         TARGET_NARROW_VOLATILE_BITFIELDS
15405 2012-06-26  Jan Hubicka  <jh@suse.cz>
15407         PR lto/53572
15408         * cgraph.h (varpool_can_remove_if_no_refs): Fix handling of
15409         used symbols.
15411 2012-06-26  Dehao Chen  <dehao@google.com>
15413         * tree-inline.c: (expand_call_inline): Ensure that lexical block's
15414         source location is consistant with the call stmt.
15416 2012-06-26  Ulrich Weigand  <ulrich.weigand@linaro.org>
15418         PR tree-optimization/53729
15419         PR tree-optimization/53636
15420         * tree-vect-slp.c (vect_slp_analyze_bb_1): Delay call to
15421         vect_verify_datarefs_alignment until after statements have
15422         been marked as relevant/irrelevant.
15423         * tree-vect-data-refs.c (vect_verify_datarefs_alignment):
15424         Skip irrelevant statements.
15425         (vect_enhance_data_refs_alignment): Use STMT_VINFO_RELEVANT_P
15426         instead of STMT_VINFO_RELEVANT.
15427         (vect_get_data_access_cost): Do not check for supportable
15428         alignment before calling vect_get_load_cost/vect_get_store_cost.
15429         * tree-vect-stmts.c (vect_get_store_cost): Do not abort when
15430         handling unsupported alignment.
15431         (vect_get_load_cost): Likewise.
15433 2012-06-25  Steven Bosscher  <steven@gcc.gnu.org>
15435         * config/rl78/rl78.h: Do not undefine DONT_USE_BUILTIN_SETJMP.
15436         Do not define JMP_BUF_SIZE.
15438 2012-06-26  Jakub Jelinek  <jakub@redhat.com>
15440         PR tree-optimization/53748
15441         * tree-ssa-phiopt.c (conditional_replacement): Only optimize
15442         if arg0/arg1 have integral or pointer types.
15444 2012-06-25  Richard Henderson  <rth@redhat.com>
15446         * config/i386/sse.md (sse2_sse4_1): Remove code attr.
15447         (<s>dot_prodv4si, <s>dot_prodv8si): Remove
15448         (sdot_prodv4si): New; handle only XOP.
15450 2012-06-25  Richard Henderson  <rth@redhat.com>
15452         * config/i386/i386-builtin-types.def (V4UDI, V8USI): New.
15453         (V2UDI_FUNC_V4USI_V4USI): New.
15454         (V4UDI_FUNC_V8USI_V8USI): New.
15455         * config/i386/i386.c (ix86_expand_args_builtin): Handle them.
15456         (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI): New.
15457         (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V8SI): New.
15458         (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V4SI): New.
15459         (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V8SI): New.
15460         (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V4SI): New.
15461         (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V8SI): New.
15462         (bdesc_args): Add them.
15463         (ix86_builtin_mul_widen_even, ix86_builtin_mul_widen_odd): New.
15464         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): New.
15465         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): New.
15466         (ix86_expand_mul_widen_evenodd): Use xop_pmacsdqh.
15467         * config/i386/sse.md (vec_widen_<s>mult_odd_<V124_AVX2>): New.
15469 2012-06-25  Richard Henderson  <rth@redhat.com>
15471         * config/i386.sse.md (mul<VI4_AVX2>3): Use xop_pmacsdd.
15473 2012-06-25  Richard Henderson  <rth@redhat.com>
15475         * config/i386/i386.c (ix86_rtx_costs) [MULT]: Only apply XOP cost
15476         to V16QImode.
15477         (ix86_expand_vec_interleave): New.
15478         (ix86_expand_mul_widen_evenodd): New.
15479         (ix86_expand_mul_widen_hilo): New.
15480         (ix86_expand_sse2_mulv4si3): Use ix86_expand_mul_widen_evenodd.
15481         * config/i386/i386.md (u_bool) New code attr.
15482         * config/i386/predicates.md
15483         (nonimmediate_or_const_vector_operand): Remove.
15484         * config/i386/sse.md (mul<VI4_AVX2>3): Don't use it; don't test
15485         both AVX and SSE4_1.
15486         (vec_widen<s>mult_hi_<VI2_AVX2>): Remove.
15487         (vec_widen<s>mult_lo_<VI2_AVX2>): Remove.
15488         (vec_widen<s>mult_hi_v8si): Remove.
15489         (vec_widen<s>mult_lo_v8si): Remove.
15490         (vec_widen_smult_hi_v4si): Remove.
15491         (vec_widen_smult_lo_v4si): Remove.
15492         (vec_widen_umult_hi_v4si): Remove.
15493         (vec_widen_umult_lo_v4si): Remove.
15494         (vec_widen_<s>mult_hi_<VI124_AVX2>): New.
15495         (vec_widen_<s>mult_lo_<VI124_AVX2>): New.
15496         * config/i386/i386-protos.h: Update.
15498 2012-06-25  Christophe Lyon  <christophe.lyon@st.com>
15500         * config/arm/neon.md (UNSPEC_VLD1_DUP): Remove.
15501         (neon_vld1_dup): Restrict to VQ operands.
15502         (neon_vld1_dupv2di): New, fixes vld1q_dup_s64.
15504 2012-06-25  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
15505             James Greenhalgh  <james.greenhalgh@arm.com>
15507         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add new built-ins.
15508         (TARGET_FMA): New macro.
15509         (TARGET_ARM_QBIT, TARGET_ARM_SAT): Likewise.
15510         (TARGET_ARM_ARCH): Likewise.
15511         (TARGET_ARM_ARCH_ISA_THUMB): Likewise.
15512         (TARGET_V6M, TARGET_V7M): Likewise.
15513         (TARGET_ARM_ARCH_PROFILE): Likewise.
15514         (TARGET_ARM_FEATURE_LDREX): Likewise.
15515         (TARGET_ARM_FP, TARGET_NEON_FP): Likewise.
15516         (ARM_MIN_ENUM_SIZE): Likewise.
15517         * config/arm/arm.c (arm_file_start): Refactor appropriately.
15518         (base_architecture): New enumeration.
15519         (arm_base_arch): New global variable.
15520         (processors): Add field base_arch.
15521         (ARM_ARCH, ARM_CORE): Adjust accordingly.
15522         (arm_option_override): Add initialization of arm_base_arch.
15523         * doc/cpp.texi (system-specific predefined macros.): Change.
15525 2012-06-25  Jakub Jelinek  <jakub@redhat.com>
15527         PR target/53759
15528         * config/i386/sse.md (sse_loadlps): Use x m x constraints instead
15529         of x x x in the vmovlps load alternative.
15531 2012-06-25  Richard Sandiford  <rdsandiford@googlemail.com>
15533         PR debug/53740
15534         * df.h (dead_debug_add): Remove third argument.
15535         * df-problems.c (dead_debug_add): Likewise.  Use the REGNO of the
15536         REG that we want to replace instead.
15537         (dead_debug_insert_temp): Use the REGNO of the reg that we want
15538         to replace instead of DF_REF_REGNO.  Require there to always be
15539         at least one such use.  Check for cases where the same location
15540         has more than df_ref associated with it.
15541         (df_note_bb_compute): Remove third dead_debug_add argument.
15542         * dce.c (word_dce_process_block): Likewise.
15544 2012-06-25  Steven Bosscher  <steven@gcc.gnu.org>
15546         * config/v850/v850.c: Remove redundant extern declarations for
15547         last_assemble_variable_decl and size_directive_output.
15549         * doc/tm.texi.in: Document JMP_BUF_SIZE.
15550         * doc/tm.texi: Regenerate.
15551         * config/sparc/sparc.h (JMP_BUF_SIZE): Do not define.
15552         * config/pa/pa.h (JMP_BUF_SIZE): Likewise.
15553         * config/stormy16/stormy16.h: Likewise.
15555         * config/picochip/picochip.c: Do not define DONT_USE_BUILTIN_SETJMP.
15557         * doc/sourcebuild.texi: Add missing subdirectories.
15559 2012-06-25  Tristan Gingold  <gingold@adacore.com>
15561         * config/i386/i386.h: Fix typo.
15563 2012-06-25  Tristan Gingold  <gingold@adacore.com>
15565         * config/i386/winnt.c (i386_pe_seh_end_prologue): Move code to ...
15566         (seh_cfa_adjust_cfa): ... that function.
15567         (seh_emit_stackalloc): Do not emit out of range values.
15568         * config/i386/i386.md: Delete unused UNSPEC_REG_SAVE,
15569         UNSPEC_DEF_CFA constants.
15570         * config/i386/i386.h (SEH_MAX_FRAME_SIZE): Define.
15571         * config/i386/i386.c (ix86_frame_pointer_required): Required
15572         for very large frames on SEH target.
15573         (ix86_compute_frame_layout): Save area is before frame pointer
15574         on SEH target.  Handle very large frames.
15575         (ix86_expand_prologue): Likewise.
15577 2012-06-24  Steven Bosscher  <steven@gcc.gnu.org>
15579         * output.h: (current_function_is_leaf,
15580         current_function_sp_is_unchanging,
15581         current_function_uses_only_leaf_regs): Remove.
15582         * function.c (current_function_is_leaf,
15583         current_function_sp_is_unchanging,
15584         current_function_uses_only_leaf_regs): Remove.
15585         (rest_of_handle_check_leaf_regs): Set crtl->uses_only_leaf_regs
15586         instead of current_function_uses_only_leaf_regs.
15587         * function.h (struct rtl_data): New fields sp_is_unchanging,
15588         is_leaf, uses_only_leaf_regs.
15589         * resource.c (init_resource_info): Replace current_function_is_leaf,
15590         current_function_sp_is_unchanging, and
15591         current_function_uses_only_leaf_regs with new crtl fields.
15592         * sdbout.c (sdbout_symbol): Likewise.
15593         * df-core.c (rest_of_handle_df_initialize): Likewise.
15594         * ira.c (ira): Likewise.
15595         * final.c (final_start_function): Likewise.
15596         * reorg.c (fill_simple_delay_slots): Likewise.
15597         * regrename.c (check_new_reg_p): Likewise.
15598         * stack-ptr-mod.c (notice_stack_pointer_modification_1): Likewise.
15599         (notice_stack_pointer_modification): Likewise.
15600         * dbxout.c (dbxout_symbol): Likewise.
15601         (dbxout_parms): Likewise.
15602         * sel-sched.c (init_regs_for_mode): Likewise.
15603         * dwarf2out.c (dbx_reg_number): Likewise.
15604         (multiple_reg_loc_descriptor): Likewise.
15605         * config/i386/i386.c (ix86_frame_pointer_required): Likewise.
15606         (gen_pop): Likewise.
15607         (ix86_select_alt_pic_regnum): Likewise.
15608         (ix86_compute_frame_layout): Likewise.
15609         (ix86_finalize_stack_realign_flags): Likewise.
15610         (ix86_expand_epilogue): Likewise.
15611         * config/rs6000/rs6000.c (rs6000_stack_info): Likewise.
15612         * config/h8300/h8300.c (byte_reg): Likewise.
15613         * config/c6x/c6x.c (must_reload_pic_reg_p): Likewise.
15614         (c6x_save_reg): Likewise.
15615         (c6x_compute_frame_layout): Likewise.
15616         * config/pa/pa.c (pa_compute_frame_size): Likewise.
15617         (pa_output_function_prologue): Likewise.
15618         * config/stormy16/stormy16.c (struct xstormy16_stack_layout): Likewise.
15619         * config/sparc/sparc.md (attr "leaf_function"): Likewise.
15620         * config/sparc/sparc.c (sparc_initial_elimination_offset): Likewise.
15621         (sparc_expand_prologue): Likewise.
15622         (sparc_flat_expand_prologue): Likewise.
15623         (sparc_asm_function_prologue): Likewise.
15624         (sparc_output_mi_thunk): Likewise.
15625         (sparc_frame_pointer_required): Likewise.
15626         * config/epiphany/epiphany.c (epiphany_compute_function_type):
15627         Likewise.
15628         (epiphany_compute_frame_size): Likewise.
15629         * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
15630         * config/cris/cris.c (cris_md_asm_clobbers): Likewise.
15631         (cris_frame_pointer_required): Likewise.
15632         * config/tilepro/tilepro.c (emit_sp_adjust): Likewise.
15633         (tilepro_current_function_is_leaf): Likewise.
15634         * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Likewise.
15635         * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
15636         * config/ia64/ia64.c (find_gr_spill): Likewise.
15637         (ia64_compute_frame_size): Likewise.
15638         (ia64_can_eliminate): Likewise.
15639         (ia64_initial_elimination_offset): Likewise.
15640         * config/m68k/m68k.c (m68k_save_reg): Likewise.
15641         (m68k_expand_epilogue): Likewise.
15642         * config/rx/rx.c (rx_get_stack_layout): Likewise.
15643         * config/tilegx/tilegx.c (tilegx_current_function_is_leaf): Likewise.
15644         * config/picochip/picochip.c (picochip_can_eliminate_link_sp_save):
15645         Likewise.
15646         (picochip_output_frame_debug): Likewise.
15647         * config/sh/sh.c (sh_media_register_for_return): Likewise.
15648         (sh_allocate_initial_value): Likewise.
15649         (sh_output_mi_thunk): Likewise.
15650         * config/microblaze/microblaze.c (microblaze_must_save_register):
15651         Likewise.
15652         (compute_frame_size): Likewise.
15653         (microblaze_initial_elimination_offset): Likewise.
15654         (microblaze_expand_prologue): Likewise.
15655         (microblaze_expand_epilogue): Likewise.
15656         * config/frv/frv.c (frv_expand_epilogue): Likewise.
15657         (frv_frame_pointer_required): Likewise.
15658         * config/spu/spu.c (get_pic_reg): Likewise.
15659         (direct_return): Likewise.
15660         (spu_expand_prologue): Likewise.
15661         (spu_expand_epilogue): Likewise.
15662         (spu_initial_elimination_offset): Likewise.
15663         * config/mips/mips.c (mips_global_pointer): Likewise.
15664         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
15665         (mips_compute_frame_info): Likewise.
15666         * config/mep/mep.c (mep_interrupt_saved_reg): Likewise.
15667         (mep_reload_pointer): Likewise.
15668         * config/rl78/rl78.c (need_to_save): Likewise.
15669         * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
15670         * config/score/score.c (score_compute_frame_size): Likewise.
15671         (score_function_prologue): Likewise.
15672         * config/bfin/bfin.c (must_save_p): Likewise.
15673         (expand_prologue_reg_save): Likewise.
15674         (expand_epilogue_reg_restore): Likewise.
15675         (bfin_frame_pointer_required): Likewise.
15676         (n_regs_saved_by_prologue): Likewise.
15677         (add_to_reg): Likewise.
15678         (expand_interrupt_handler_prologue): Likewise.
15679         (expand_interrupt_handler_epilogue): Likewise.
15680         (bfin_expand_prologue): Likewise.
15681         * config/avr/avr.c (avr_regs_to_save): Likewise.
15682         (avr_prologue_setup_frame): Likewise.
15683         (expand_epilogue): Likewise.
15684         * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
15685         (s390_register_info): Likewise.
15686         (s390_frame_info): Likewise.
15687         (s390_init_frame_layout): Likewise.
15688         (s390_emit_prologue): Likewise.
15691 2012-06-24  Steven Bosscher  <steven@gcc.gnu.org>
15693         * system.h: Poison ASM_BYTE_OP and ASM_OUTPUT_BYTE.
15694         * vmsdbgout: Do not undefine it if defined.
15695         Rename local ASM_BYTE_OP definition to VMS_ASM_BYTE_OP.
15696         * config/microblaze/microblaze/h: Do no define ASM_BYTE_OP.
15697         * config/mep/mep.h: Do not define ASM_OUTPUT_BYTE.
15699 2012-06-24  Richard Sandiford  <rdsandiford@googlemail.com>
15701         * config/mips/mips.c (mips_process_sync_loop): Add missing enum cast.
15703 2012-06-23  Richard Henderson  <rth@redhat.com>
15705         PR target/53749
15706         * config/i386/i386.c (ix86_rtx_costs): Add reasonable costs for
15707         V*QImode shifts and multiply.
15708         (ix86_expand_vecop_qihi): Support shifts.
15709         * config/i386/i386.md (any_shift): New code iterator.
15710         * config/i386/sse.md (ashlv16qi3): Merge ...
15711         (<any_shiftrt>v16qi3): ... into ...
15712         (<any_shift><VI1_AVX2>3): ... here.  Use ix86_expand_vecop_qihi
15713         to support SSE and AVX.
15715         * config/i386/i386.c (ix86_expand_sse_unpack): Split operands[]
15716         parameter into src and dest.
15717         * config/i386/sse.md (vec_unpacku_hi_<V124_AVX2>): Update call.
15718         (vec_unpacks_hi_<V124_AVX2>): Likewise.
15719         (vec_unpacku_lo_<V124_AVX2>): Likewise.
15720         (vec_unpacks_lo_<V124_AVX2>): Likewise.
15721         * config/i386/i386-protos.h: Update.
15723         * config/i386/sse.md (mul<VI1_AVX2>3): Change from insn_and_split to
15724         pure expander; move expansion code ...
15725         * config/i386/i386.c (ix86_expand_vecop_qihi): ... here.  New function.
15726         * config/i386/i386-protos.h: Update.
15728 2012-06-22  Edmar Wienskoski  <edmar@freescale.com>
15730         * config/rs6000/rs6000.md (define_attr "type"): New type popcnt.
15731         (popcntb<mode>2): Add attribute type popcnt.
15732         (popcntd<mode>2): Ditto.
15733         * config/rs6000/power4.md (define_insn_reservation): Add type popcnt.
15734         * config/rs6000/power5.md (define_insn_reservation): Ditto.
15735         * config/rs6000/power7.md (define_insn_reservation): Ditto.
15736         * config/rs6000/476.md (define_insn_reservation): Ditto.
15737         * config/rs6000/power6.md (define_insn_reservation): New
15738         reservation for popcnt instructions.
15740 2012-06-22  H.J. Lu  <hongjiu.lu@intel.com>
15742         * doc/invoke.texi: Update -mpreferred-stack-boundary=3 warning.
15744 2012-06-22  H.J. Lu  <hongjiu.lu@intel.com>
15746         PR target/53383
15747         * doc/invoke.texi: Add a warning for -mpreferred-stack-boundary=3.
15749         * config/i386/i386.c (ix86_option_override_internal): Allow
15750         -mpreferred-stack-boundary=3 for 64-bit if SSE is disabled.
15752         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to 64 for 64-bit
15753         if SSE is disabled.
15755 2012-06-22  Bill Schmidt  <wschmidt@linux.ibm.com>
15757         * double-int.c (double_int_multiple_of): New function.
15758         * double-int.h (double_int_multiple_of): New decl.
15759         * tree-ssa-loop-ivopts.c (add_cost, zero_cost): Remove undefs.
15760         (mbc_entry_hash): New forward decl.
15761         (mbc_entry_eq): Likewise.
15762         (zero_cost): Change to no_cost.
15763         (mult_costs): New static var.
15764         (cost_tables_exist): Likewise.
15765         (initialize_costs): New function.
15766         (finalize_costs): Likewise.
15767         (tree_ssa_iv_optimize_init): Call initialize_costs.
15768         (add_cost): Change to add_regs_cost; distinguish costs by speed.
15769         (multiply_regs_cost): New function.
15770         (add_const_cost): Likewise.
15771         (extend_or_trunc_reg_cost): Likewise.
15772         (negate_reg_cost): Likewise.
15773         (multiply_by_cost): Change to multiply_by_const_cost; distinguish
15774         costs by speed.
15775         (get_address_cost): Change add_cost to add_regs_cost; change
15776         multiply_by_cost to multiply_by_const_cost.
15777         (force_expr_to_var_cost): Change zero_cost to no_cost; change
15778         add_cost to add_regs_cost; change multiply_by_cost to
15779         multiply_by_const_cost.
15780         (split_cost): Change zero_cost to no_cost.
15781         (ptr_difference_cost): Likewise.
15782         (difference_cost): Change zero_cost to no_cost; change multiply_by_cost
15783         to multiply_by_const_cost.
15784         (get_computation_cost_at): Change add_cost to add_regs_cost; change
15785         multiply_by_cost to multiply_by_const_cost.
15786         (determine_use_iv_cost_generic): Change zero_cost to no_cost.
15787         (determine_iv_cost): Change add_cost to add_regs_cost.
15788         (iv_ca_new): Change zero_cost to no_cost.
15789         (tree_ssa_iv_optimize_finalize): Call finalize_costs.
15790         * tree-ssa-address.c (most_expensive_mult_to_index): Change
15791         multiply_by_cost to multiply_by_const_cost.
15792         * tree-flow.h (multiply_by_cost): Change to multiply_by_const_cost.
15793         (add_regs_cost): New decl.
15794         (multiply_regs_cost): Likewise.
15795         (add_const_cost): Likewise.
15796         (extend_or_trunc_reg_cost): Likewise.
15797         (negate_reg_cost): Likewise.
15799 2012-06-22  Richard Guenther  <rguenther@suse.de>
15801         Merge from graphite branch
15802         2011-08-10  Sebastian Pop <sebpop@gmail.com>
15804         * graphite-sese-to-poly.c (build_scop_drs): Fix memory leak.
15806         2012-01-13  Tobias Grosser  <tobias@grosser.es>
15808         * tree-flow.h (parallelized_function_p): Declare.
15809         * tree-parloops.c (parallelized_function_p): Export.
15810         * graphite.c (graphite_transform_loops): Do not run graphite on
15811         already parallel functions.
15813 2012-06-22  Alan Modra  <amodra@gmail.com>
15815         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Pass in and
15816         return mem.  Convert to indirect addressing if not indirect or
15817         indexed.  Adjust all callers.
15819 2012-06-22  Richard Guenther  <rguenther@suse.de>
15821         * gcov-iov.c: Include bconfig.h and system.h.
15823 2012-06-22  Andreas Schwab  <schwab@linux-m68k.org>
15825         * doc/include/texinfo.tex: Update to version 2012-06-05.14.
15827 2012-06-22  Richard Guenther  <rguenther@suse.de>
15829         PR gcov-profile/53744
15830         * gcov-iov.c (main): Treat "" and "prerelease" the same.
15832 2012-06-22  Eric Botcazou  <ebotcazou@adacore.com>
15834         PR debug/53704
15835         * dwarf2out.c (gen_compile_unit_die): Use DW_LANG_Fortran90 as language
15836         for GNU Fortran if in strict DWARF2 mode.
15838 2012-06-22  Eric Botcazou  <ebotcazou@adacore.com>
15840         * tree-ssa-live.c (remove_unused_scope_block_p): Remove again
15841         DECL_IGNORED_P non-reg vars even if they are used.
15843 2012-06-21  Alexandre Oliva  <aoliva@redhat.com>
15845         PR debug/53671
15846         PR debug/49888
15847         * var-tracking.c (vt_get_canonicalize_base): New.
15848         (vt_canonicalize_addr, vt_stack_offset_p): New.
15849         (vt_canon_true_dep): New.
15850         (drop_overlapping_mem_locs): Use vt_canon_true_dep.
15851         (clobber_overlaping_mems): Use vt_canonicalize_addr.
15853 2012-06-21  Alexandre Oliva  <aoliva@redhat.com>
15855         PR debug/53671
15856         PR debug/49888
15857         * var-tracking.c (vt_initialize): Record initial offset between
15858         arg pointer and stack pointer.
15860 2012-06-21  Alexandre Oliva  <aoliva@redhat.com>
15862         PR debug/53671
15863         PR debug/49888
15864         * var-tracking.c (vt_init_cfa_base): Drop redundant recording of
15865         CFA base.
15867 2012-06-21  Alexandre Oliva  <aoliva@redhat.com>
15869         PR debug/53671
15870         PR debug/49888
15871         * alias.c (memrefs_conflict_p): Improve handling of AND for alignment.
15873 2012-06-21  Alexandre Oliva  <aoliva@redhat.com>
15875         * ddg.c (build_intra_loop_deps): Discard deps of nondebug on debug.
15877 2012-06-21  Alexandre Oliva  <aoliva@redhat.com>
15879         PR debug/53682
15880         * cselib.c (promote_debug_loc): Don't crash on NULL argument.
15882 2012-06-21  Meador Inge  <meadori@codesourcery.com>
15884         PR c/53702
15885         * c-decl.c (c_push_function_context): Restore the behavior to reuse
15886         the language function allocated for -Wunused-local-typedefs.
15887         (c_pop_function_context): If necessary, clear the language function
15888         created in c_push_function_context.  Always clear out the
15889         x_cur_stmt_list field of the restored language function.
15891 2012-06-21  Sterling Augustine  <saugustine@google.com>
15892             Cary Coutant  <ccoutant@google.com>
15894         * dwarf2out.c (is_cu_die, is_namespace_die, is_class_die,
15895         add_AT_pubnames, add_enumerator_pubname, want_pubnames): New functions.
15896         (comdat_type_struct): New field 'skeleton_die'.
15897         (breakout_comdat_types): Update it.
15898         (add_pubname): Rework logic.  Call is_class_die, is_cu_die and
15899         is_namespace_die.  Fix minor style violation.  Call want_pubnames.
15900         (add_pubname_string): Call want_pubnames.
15901         (add_pubtype): Rework logic for calculating type name.  Call
15902         is_namespace_die.  Call want_pubnames.
15903         (output_pubnames): Move conditional logic deciding when to produce the
15904         section from dwarf2out_finish.  Use new skeleton_die field.
15905         (base_type_die): Call add_pubtype.
15906         (gen_enumeration_type_die): Unconditionally call add_pubtype.
15907         (gen_subprogram_die): Adjust calls to add_pubname.
15908         (gen_namespace_die): Call add_pubname_string.
15909         (dwarf2out_finish): Call add_AT_pubnames; Move logic on when to
15910         produce pubnames and pubtypes sections to output_pubnames.
15911         * common.opt (-gpubnames): New option.
15912         * doc/invoke.texi: Document it.
15914 2012-06-21  Steven Bosscher  <steven@gcc.gnu.org>
15916         * config/m32c/m32c-pragma.c: Remove unnecessary includes.
15918 2012-06-21  Michael Matz  <matz@suse.de>
15920         PR middle-end/53688
15921         * builtins.c (get_memory_rtx): Always build an all-aliasing MEM_REF
15922         with correct size.
15924 2012-06-21  Richard Guenther  <rguenther@suse.de>
15926         * tree-inline.c (estimate_num_insns): Estimate call cost for
15927         tailcalls properly.
15929 2012-06-20  Rüdiger Sonderfeld  <ruediger@c-plusplus.de>
15931         * tree.h (DECL_SOURCE_COLUMN): New accessor.
15933 2012-06-20  Uros Bizjak  <ubizjak@gmail.com>
15935         * config/i386/i386.md (SINCOS): New int iterator.
15936         (sincos): New int attribute.
15937         (*<sincos>xf2_i387): Macroize insn from *{sin,cos}xf2_i387 using
15938         SINCOS int iterator.
15939         (*<sincos>_extend<mode>xf2_i387): Macroize insn from
15940         *{sin,cos}_extend<mode>xf2_i387 using SINCOS int iterator.
15942 2012-06-20  Uros Bizjak  <ubizjak@gmail.com>
15944         * config/i386/i386.md (RDFSGSBASE): New int iterator.
15945         (WRFSGSBASE): Ditto.
15946         (fsgs): New int attribute.
15947         (rd<fsgs>base<mode>): Macroize insn from rd<fsgs>base<mode> using
15948         RDFSGSBASE int iterator.
15949         (wr<fsgs>base<mode>): Macroize insn from wr<fsgs>base<mode> using
15950         WRFSGSBASE int iterator.
15952 2012-06-20  Uros Bizjak  <ubizjak@gmail.com>
15954         * config/i386/i386.md (<rounding_insn><mode>2): Macroize expander
15955         from {floor,ceil,btrunc}<mode>2 using FIST_ROUNDING int iterator.
15956         (l<rounding_insn><MODEF:mode><SWI48:mode>2): Macroize expander
15957         from l{floor,ceil}<MODEF:mode><SWI48:mode>2 using FIST_ROUNDING
15958         int iterator.
15960 2012-06-20  Steven Bosscher  <steven@gcc.gnu.org>
15962         * system.h: Poison ASM_OUTPUT_IDENT and IDENT_ASM_OP.
15964 2012-06-20  Richard Guenther  <rguenther@suse.de>
15966         PR tree-optimization/30318
15967         * tree-vrp.c (range_int_cst_p): Do not reject overflowed
15968         constants here.
15969         (range_int_cst_singleton_p): But explicitely here.
15970         (zero_nonzero_bits_from_vr): And here.
15971         (extract_range_from_binary_expr_1): Re-implement PLUS_EXPR
15972         to cover all cases we can perform arbitrary precision
15973         arithmetic with double-ints.
15974         (intersect_ranges): Handle adjacent anti-ranges.
15976 2012-06-20  Uros Bizjak  <ubizjak@gmail.com>
15978         * config/i386/i386.md (rounding_insn): New int attribute.
15979         (<rounding_insn>xf2): Macroize insn from
15980         {floor,ceil,btrunc}xf2 using FRNDINT_ROUNDING int iterator.
15981         (l<rounding_insn>xf<mode>2): Rename from l<rounding>xf<mode>2.
15983 2012-06-20  Uros Bizjak  <ubizjak@gmail.com>
15985         * config/i386/i386.md (IEEE_MAXMIN): New int iterator.
15986         (ieee_maxmin): New int attribute.
15987         (*ieee_s<ieee_maxmin><mode>3): Macroize insn from
15988         *ieee_s{max,min}<mode>3 using IEEE_MAXMIN int iterator.
15990 2012-06-20  Steven Bosscher  <steven@gcc.gnu.org>
15992         * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): Remove.
15993         * config/arm/arm.c: Do not include c-pragma.h.
15994         (arm_emit_eabi_attribute): New function based on EMIT_EABI_ATTRIBUTE.
15995         (arm_file_start): Replace uses of EMIT_EABI_ATTRIBUTE with calls
15996         to arm_emit_eabi_attribute.
15997         * arm-c.c: Do not include output.h.
15998         (arm_output_c_attributes): Replace use of EMIT_EABI_ATTRIBUTE with a
15999         call to arm_emit_eabi_attribute.
16000         * config/arm/arm-protos.h (arm_emit_eabi_attribute): Prototype it.
16002 2012-06-20  Richard Guenther  <rguenther@suse.de>
16004         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
16005         Allow adjusting alignment of user-aligned decls again.
16007 2012-06-20  Steven Bosscher  <steven@gcc.gnu.org>
16009         * config/rl78/rl78-c.c: Remove unnecessary includes.
16011 2012-06-20  Steven Bosscher  <steven@gcc.gnu.org>
16013         * config/cris/cris.c: Include cgraph.h.
16014         (cris_option_override): Do not set non-existing flag_no_gcc_ident.
16016 2012-06-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
16018         * emit-rtl.c (need_atomic_barrier_p): New function.
16019         * emit-rtl.h (need_atomic_barrier_p): Declare it.
16020         * config/alpha/alpha.c (alpha_{pre,post}_atomic_barrier): Use it.
16021         * config/arm/arm.c (arm_{pre,post}_atomic_barrier): Use it.
16022         * config/tilegx/tilegx.c (tile_{pre,post}_atomic_barrier): Use it.
16023         * config/mips/mips.c (mips_{pre,post}_atomic_barrier_p): Remove.
16024         (mips_process_sync_loop): Use generic version instead.
16026 2012-06-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
16028         * config/mips/mips.c (mips_process_sync_loop): Emit cmp result only if
16029         it is used.
16031 2012-06-19  Tom de Vries  <vries@codesourcery.com>
16032             Maxim Kuvyrkov  <maxim@codesourcery.com>
16034         * config/mips/constraints.md (ZR): New constraint.
16035         * config/mips/predicates.md (mem_noofs_operand): New predicate.
16036         * config/mips/mips.c (mips_print_operand): Handle new print modifier.
16037         * config/mips/mips.h (TARGET_XLP): Define.
16038         (TARGET_SYNC_AFTER_SC): Update.
16039         (ISA_HAS_SWAP, ISA_HAS_LDADD): Define.
16040         * config/mips/sync.md (atomic_exchange, atomic_fetch_add): Use
16041         XLP-specific swap and ldadd patterns.
16042         (atomic_exchange_swap, atomic_fetch_add_ldadd): New patterns.
16044 2012-06-19  Tom de Vries  <vries@codesourcery.com>
16045             Maxim Kuvyrkov  <maxim@codesourcery.com>
16047         * config/mips/mips.c (mips_emit_pre_atomic_barrier_p,)
16048         (mips_emit_post_atomic_barrier_p): New static functions.
16049         (mips_process_sync_loop): Use them.  Emit sync memory barriers in
16050         accordance with memory model semantics.  Add return of CMP result for
16051         compare_and_swap.
16052         * config/mips/mips.md: Update comment.
16053         (sync_cmp): New attribute.
16054         (sync_memmodel): New attribute replacing sync_release_barrier.
16055         * config/mips/sync.md (UNSPEC_ATOMIC_COMPARE_AND_SWAP,)
16056         (UNSPEC_ATOMIC_EXCHANGE, UNSPEC_ATOMIC_FETCH_OP): New constants.
16057         (sync_lock_test_and_set, test_and_set_12): Update.
16058         (atomic_compare_and_swap, atomic_exchange, atomic_exchange_llsc,)
16059         (atomic_fetch_add, atomic_fetch_add_llsc): New patterns.
16061 2012-06-19  Joseph Myers  <joseph@codesourcery.com>
16063         * config/rs6000/spe.md (*mov_si<mode>_e500_subreg0): Rename to
16064         mov_si<mode>_e500_subreg0.
16065         (*mov_si<mode>_e500_subreg0_elf_low)
16066         (*mov_si<mode>_e500_subreg4_elf_low): New patterns.
16068 2012-06-19  Richard Henderson  <rth@redhat.com>
16070         * config/alpha/alpha.c: Include params.h.
16071         (alpha_option_override): Initialize PARAM_L1_CACHE_LINE_SIZE,
16072         PARAM_L1_CACHE_SIZE, PARAM_L2_CACHE_SIZE for the cpu tuning.
16074 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
16076         * doc/tm.texi.in (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE,
16077         TARGET_OBJC_DECLARE_CLASS_DEFINITION): Add @hooks.
16078         (ASM_DECLARE_CLASS_REFERENCE, ASM_DECLARE_UNRESOLVED_REFERENCE):
16079         Remove.
16080         * doc/tm.texi: Regenerate.
16081         * config/darwin.h (ASM_OUTPUT_LABELREF): Remove special case for
16082         .objc_class_name_*.
16083         * config/darwin-c.c: Include target.h.
16084         (darwin_objc_declare_unresolved_class_reference): New function.
16085         (darwin_objc_declare_class_definition): New function.
16086         (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE): Define.
16087         (TARGET_OBJC_DECLARE_CLASS_DEFINITION): Define.
16089 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
16091         * target.def (output_ident): New hook.
16092         * targhooks.h (default_asm_output_ident_directive): Add prototype.
16093         * varasm.c (assemble_asm): Only prefix a tab if the string does not
16094         already start with one.
16095         (default_asm_output_ident_directive): New function to emit
16096         .ident as a top-level asm node while parsing, or directly to
16097         asm_out_file after parsing.
16098         * toplev.c (compile_file): Print a GCC .ident with
16099         targetm.asm_out.output_ident.
16100         * doc/tm.texi.in (ASM_OUTPUT_IDENT): Remove documentation for macro.
16101         (TARGET_ASM_OUTPUT_IDENT): Add @hook for this.
16102         * doc/tm.texi: Update.
16104         * config/elfos.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
16105         (TARGET_ASM_OUTPUT_IDENT): Define.
16106         * config/i386/djgpp.h (IDENT_ASM_OP): Remove.
16107         * config/i386/gas.h (ASM_OUTPUT_IDENT): Remove.
16108         * config/arm/aout.h (ASM_OUTPUT_IDENT): Remove.
16109         * config/sparc/sparc.h (IDENT_ASM_OP): Remove.
16110         (TARGET_ASM_OUTPUT_IDENT): Define.
16111         * config/picochip/picochip.h (IDENT_ASM_OP): Remove.
16112         (TARGET_ASM_OUTPUT_IDENT): Define.
16114         * config/cris/cris-protos.h (cris_asm_output_ident): Add prototype.
16115         * config/cris/cris.c (cris_asm_output_ident): New function.
16116         * config/cris/cris.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
16118         * config/microblaze/microblaze-protos.h (microblaze_asm_output_ident):
16119         Add prototype.
16120         * config/microblaze/microblaze.c: Include cgraph.h for add_asm_node.
16121         (microblaze_asm_output_ident): Rewrite to work similar to
16122         default_asm_output_ident_directive for front-end .idents.
16123         * config/microblaze/microblaze.h (ASM_OUTPUT_IDENT): Remove.
16124         (TARGET_ASM_OUTPUT_IDENT): Define.
16126         * config/mips/mips.h (ASM_OUTPUT_IDENT): Remove.
16127         * config/mips/sde.h (IDENT_ASM_OP, ASM_OUTPUT_IDENT): Remove.
16129         * config/rx/rx.c: Include cgraph.h for add_asm_node.
16130         (rx_asm_output_ident): New function, similar to
16131         default_asm_output_ident_directive, but handle AS100 syntax also, so
16132         that #ident also works for rx in AS100 syntax.
16133         (TARGET_ASM_OUTPUT_IDENT): Define.
16134         * config/rx/rx.h (IDENT_ASM_OP): Remove.
16136         * Makefile.in: Fix dependencies for c-family/c-lex.o.
16138 2012-06-19  Uros Bizjak  <ubizjak@gmail.com>
16140         * config/i386/i386.md (FIST_ROUNDING): New int iterator.
16141         (rounding): Handle UNSPEC_FIST_{FLOOR,CEIL}.
16142         (ROUNDING): Ditto.
16143         (*fist<mode>2_<rounding>_1): Macroize insn from
16144         *fist<mode>2_{floor,ceil}_1 using FIST_ROUNDING int iterator.
16145         (fistdi2_<rounding>): Macroize insn from
16146         fistdi2_{floor,ceil} using FIST_ROUNDING int iterator.
16147         (fistdi2_<rounding>_with_temp and splitters): Macroize insn and
16148         corresponding splitters from fistdi2_{floor,ceil} and corresponding
16149         splitters using FIST_ROUNDING int iterator.
16150         (fist<mode>2_<rounding>): Macroize insn from
16151         fist<mode>2_{floor,ceil} using FIST_ROUNDING int iterator.
16152         (fist<mode>2_<rounding>_with_temp and splitters): Macroize insn and
16153         corresponding splitters from fist<mode>2_{floor,ceil} and corresponding
16154         splitters using FIST_ROUNDING int iterator.
16155         (l<rounding>xf<mode>2): Macroize expander from l{floor,ceil}xf<mode>2
16156         using FIST_ROUNDING int iterator.
16158 2012-06-19  Richard Henderson  <rth@redhat.com>
16160         * config/i386/i386-protos.h (ix86_expand_sse2_mulv4si3): Declare.
16161         * config/i386/i386.c (ix86_expand_sse2_mulv4si3): New.
16162         * config/i386/predicates.md (nonimmediate_or_const_vector_operand): New.
16163         * config/i386/sse.md (sse2_mulv4si3): Delete.
16164         (mul<VI4_AVX2>3): Use ix86_expand_sse2_mulv4si3 and
16165         nonimmediate_or_const_vector_operand.
16167 2012-06-19  Richard Henderson  <rth@redhat.com>
16169         * expmed.c (struct init_expmed_rtl): Split ...
16170         (init_expmed_one_mode): ... out of ...
16171         (init_expmed): ... here.  Initialize integer vector modes also.
16172         (synth_mult): Handle integer vector modes.
16173         (choose_mult_variant): Likewise.
16174         (expand_mult_const): Likewise.
16175         (expand_mult): Likewise.
16176         * machmode.h (GET_MODE_UNIT_BITSIZE): New.
16178 2012-06-19  Richard Henderson  <rth@redhat.com>
16180         * config/i386/i386.c (ix86_rtx_costs): Handle CONST_VECTOR, and
16181         integral vector modes.
16183 2012-06-19  Uros Bizjak  <ubizjak@gmail.com>
16185         * config/i386/i386.md (FRNDINT_ROUNDING): New int iterator.
16186         (rounding): New int attribute.
16187         (ROUNDING): Ditto.
16188         (frndintxf2_<rounding>): Macroize insn from
16189         frndintxf2_{floor,ceil,trunc} using FRNDINT_ROUNDING int iterator.
16190         (frndintxf2_<rounding>_i387): Macroize insn from
16191         frndintxf2_{floor,ceil,trunc}_i387 using FRNDINT_ROUNDING int iterator.
16193 2012-06-19  Richard Guenther  <rguenther@suse.de>
16195         * tree-vrp.c (union_ranges): New function.
16196         (vrp_meet_1): Use union_ranges.
16197         (vrp_meet): Dump what we union and call vrp_meet_1.
16199 2012-06-19  Richard Earnshaw  <rearnsha@arm.com>
16201         * arm.md (enum unspec): Delete UNSPEC_SIN and UNSPEC_COS.
16202         (attr type): Remove fmul, ffmul, farith, ffarith, float_em
16203         f_fpa_load, f_fpa_store, f_mem_r, r_mem_f.
16204         (attr write_conflict, attr core_cycles): Update.
16205         * arm-generic.md (r_mem_f_wbuf): Delete reservation.
16207 2012-06-19  Richard Guenther  <rguenther@suse.de>
16209         * tree-vrp.c (intersect_ranges): Handle more cases.
16210         (vrp_intersect_ranges): Dump what we intersect and call ...
16211         (vrp_intersect_ranges_1): ... this.
16213 2012-06-19  Richard Guenther  <rguenther@suse.de>
16215         PR tree-optimization/53708
16216         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Preserve
16217         user-supplied alignment and alignment of decls with the used
16218         attribute.
16220 2012-06-18  Lawrence Crowl  <crowl@google.com>
16222         * timevar.def (TV_PHASE_GENERATE): Rename to TV_PHASE_LATE_ASM.
16223         (TV_PHASE_CGRAPH): Rename to TV_PHASE_OPT_GEN.
16224         (TV_PHASE_STREAM_IN): New.
16225         (TV_PHASE_STREAM_OUT): New.
16226         * timevar.c (validate_phases): New.
16227         (timevar_print): Call validate_phases.
16228         * c-decl.c (c_write_global_declarations): Rename use of TV_PHASE_CGRAPH
16229         to TV_PHASE_OPT_GEN.
16230         * langhooks.c (write_global_declarations): Rename use of
16231         TV_PHASE_CGRAPH to TV_PHASE_OPT_GEN.  Use TV_PHASE_DBGINFO instead of
16232         TV_PHASE_CHECK_DBGINFO.
16233         * toplev.c (compile_file): Rename use of TV_PHASE_GENERATE to
16234         TV_PHASE_LATE_ASM.  Move start of TV_PHASE_LATE_ASM to after call to
16235         lang_hooks.decls.final_write_globals.
16237 2012-06-18  David Edelshn  <dje.gcc@gmail.com>
16239         * config/rs6000/aix52.h (TARGET_EXTRA_BUILTINS): Define as 0.
16241 2012-06-18  Uros Bizjak  <ubizjak@gmail.com>
16243         PR target/53712
16244         * config/i386/sse.md (*sse4_2_pcmpestr_unaligned): New.
16245         (*sse4_2_pcmpistr_unaligned): New.
16247 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
16248             Sameera Deshpande  <sameera.deshpande@arm.com>
16249             Greta Yorsh  <greta.yorsh@arm.com>
16251         * config/arm/arm-protos.h (arm_output_epilogue): Remove.
16252         * config/arm/arm.c (print_multi_reg): Remove.
16253         (vfp_output_fldmd): Likewise.
16254         (arm_output_epilogue): Likewise.
16255         * config/arm/arm.md (epilogue_insns): Update condition and code.
16257 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
16258             Sameera Deshpande  <sameera.deshpande@arm.com>
16259             Greta Yorsh  <greta.yorsh@arm.com>
16261         * config/arm/arm-protos.h (thumb2_expand_return): New declaration.
16262         * config/arm/arm.c (thumb2_expand_return): New function.
16263         * config/arm/arm.md (return): Update condition and code.
16265 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
16266             Sameera Deshpande  <sameera.deshpande@arm.com>
16267             Greta Yorsh  <greta.yorsh@arm.com>
16269         * config/arm/arm-protos.h (output_return_instruction): New parameter
16270         and int to bool change of parameter types.
16271         * config/arm/arm.c (output_return_instruction): Likewise.
16272         * config/arm/arm.md (arm_simple_return): New pattern.
16273         (arm_return, cond_return, cond_return_inverted): Add new arguments.
16274         * config/arm/thumb2.md (thumb2_return): Update condition and code.
16276 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
16277             Sameera Deshpande  <sameera.deshpande@arm.com>
16278             Greta Yorsh  <greta.yorsh@arm.com>
16280         * config/arm/arm-protos.h (arm_expand_epilogue): New declaration.
16281         * config/arm/arm.c (arm_expand_epilogue): New function.
16282         * config/arm/arm.md (epilogue): Update condition and code.
16283         (sibcall_epilogue): Likewise.
16285 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
16286             Sameera Deshpande  <sameera.deshpande@arm.com>
16287             Greta Yorsh  <greta.yorsh@arm.com>
16289         * config/arm/arm.c (arm_expand_epilogue_apcs_frame): New function.
16290         * config/arm/arm.md (arm_addsi3) Add an alternative.
16292 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
16293             Sameera Deshpande  <sameera.deshpande@arm.com>
16294             Greta Yorsh  <greta.yorsh@arm.com>
16296         * config/arm/arm.md (vfp_pop_multiple_with_writeback) New define_insn.
16297         * config/arm/predicates.md (pop_multiple_fp) New special predicate.
16298         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): New function.
16300 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
16301             Sameera Deshpande  <sameera.deshpande@arm.com>
16302             Greta Yorsh  <greta.yorsh@arm.com>
16304         * config/arm/arm.md (load_multiple_with_writeback) New define_insn.
16305         (load_multiple, pop_multiple_with_writeback_and_return) Likewise.
16306         (pop_multiple_with_return, ldr_with_return) Likewise.
16307         * config/arm/predicates.md (pop_multiple_return) New special predicate.
16308         * config/arm/arm-protos.h (arm_output_multireg_pop) New declaration.
16309         * config/arm/arm.c (arm_output_multireg_pop) New function.
16310         (arm_emit_multi_reg_pop): New function.
16312 2012-06-18  Greta Yorsh  <Greta.Yorsh@arm.com>
16314         * config/arm/arm.c (ldm_stm_operation_p): Require SP
16315         as base register for loads if SP is in the register list.
16317 2012-06-18  Richard Guenther  <rguenther@suse.de>
16319         PR tree-optimization/53693
16320         * tree-vect-patterns.c (vect_operation_fits_smaller_type):
16321         Reject operands with more than one use.
16323 2012-06-18  Bill Schmidt  <wschmidt@linux.ibm.com>
16325         PR tree-optimization/53703
16326         * tree-ssa-phiopt.c (hoist_adjacent_loads): Skip virtual phis;
16327         correctly set bb_for_def[12].
16329 2012-06-18  Steven Bosscher  <steven@gcc.gnu.org>
16331         * config/vax/vax.h (VMS_TARGET): Remove.
16333 2012-06-18  Richard Guenther  <rguenther@suse.de>
16335         * tree-vrp.c (extract_range_from_assert): Split out range
16336         intersecting code.
16337         (intersect_ranges): New function.
16338         (vrp_intersect_ranges): Likewise.
16340 2012-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16342         * config/s390/s390.c (s390_gimplify_va_arg): Revert change from
16343         r187965.
16345 2012-06-18  Tejas Belagod  <tejas.belagod@arm.com>
16347         * doc/md.texi: Document int iterators.
16348         * read-rtl.c (ints): New iterator group.
16349         (find_int): Int iterator group callback.
16350         (apply_int_iterator): Likewise.
16351         (apply_iterators): Traverse int iterator table and add all the used
16352         iterators to list.
16353         (initialize_iterators): Initialize data structures and callbacks for
16354         int iterators.
16355         (read_rtx): Parse and read mappings for int iterators.
16356         (read_rtx_code): Record int iterator usage.
16358 2012-06-18  Richard Sandiford  <rdsandiford@googlemail.com>
16360         PR middle-end/53698
16361         * expr.c (expand_expr_addr_expr_1): Convert to tmode before
16362         performing an addition.
16364 2012-06-17  Steven Bosscher  <steven@gcc.gnu.org>
16366         * output.h (split_double): Move prototype to rtl.h.
16367         (constructor_static_from_elts_p): Move prototype to tree.c.
16368         * rtl.h (split_double): Moved here from output.h.
16369         * tree.h (constructor_static_from_elts_p): Moved here from output.h.
16370         * final.c (split_double): Move from here ...
16371         * rtlanal.c (split_double): ... to here.
16372         * expr.c: Do not include output.h.
16374 2012-06-17  Steven Bosscher  <steven@gcc.gnu.org>
16376         * cfglayout.h: Remove.
16377         * cfglayout.c: Remove.
16378         * function.h (struct function): Remove x_last_location field.
16379         * function.c: Do not include cfglayout.h.
16380         (expand_function_start): Do not call no-op force_next_line_note.
16381         (expand_function_end): Likewise.
16382         * cfgrtl.c: Do not include cfglayout.h.  Include gt-cfgrtl.h.
16383         (unlink_insn_chain): Moved here from cfglayout.c.
16384         (skip_insns_after_block, label_for_bb, record_effective_endpoints,
16385         into_cfg_layout_mode, outof_cfg_layout_mode,
16386         pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode,
16387         relink_block_chain, fixup_reorder_chain, verify_insn_chain,
16388         fixup_fallthru_exit_predecessor, force_one_exit_fallthru,
16389         cfg_layout_can_duplicate_bb_p, duplicate_insn_chain,
16390         cfg_layout_duplicate_bb, cfg_layout_initialize, break_superblocks,
16391         cfg_layout_finalize): Likewise.
16392         (rtl_can_remove_branch_p): Likewise.
16393         * rtl.h (insn_scope): Move prototype from cfglayout.h here.
16394         (duplicate_insn_chain): Likewise.
16395         (force_next_line_note): Remove prototype.
16396         * emit-rtl.c: Do not include tree-flow.h, egad.  Include vecprim.h.
16397         (last_location): Remove #define to emit.x_last_location.
16398         (force_next_line_note): Remove no-op function.
16399         (init_emit): Don't set x_last_location.
16400         (block_locators_locs, block_locators_blocks, locations_locators_locs,
16401         locations_locators_vals, prologue_locator, epilogue_locator,
16402         curr_location, last_location, curr_block, last_block, curr_rtl_loc):
16403         Move POD to here from cfglayout.c.
16404         (insn_locators_alloc, insn_locators_finalize, insn_locators_free,
16405         set_curr_insn_source_location, get_curr_insn_source_location,
16406         set_curr_insn_block, get_curr_insn_block, curr_insn_locator,
16407         locator_scope, insn_scope, locator_location, locator_line, insn_line,
16408         locator_file, insn_file, locator_eq): Move to here from cfglayout.c.
16409         * cfghooks.h: Remove double-include protection.
16410         (can_copy_bbs_p, copy_bbs): Move prototypes from cfglayout.h to here.
16411         * cfghooks.c (can_copy_bbs_p, copy_bbs): Move to here from cfglayout.c.
16412         * final.c: Do not include cfglayout.h.
16413         (choose_inner_scope, change_scope): Move to here from cfglayout.c.
16414         (reemit_insn_block_notes): Likewise.  Make static.
16415         * tree-flow.h (tree_could_trap_p, operation_could_trap_helper_p,
16416         operation_could_trap_p, tree_could_throw_p): Move from here...
16417         * tree.h: ... to here.
16418         * gengtype.c (open_base_files): Remove cfglayout.h from the list.
16419         * profile.c: Do not include cfghooks.h.
16420         * cfgloopmanip.c: Do not include cfglayout.h and cfghooks.h.
16421         * modulo-sched.c: Likewise.
16422         * loop-unswitch.c: Do not include cfglayout.h.
16423         * sched-ebb.c: Likewise.
16424         * tracer.c: Likewise.
16425         * ddg.c: Likewise.
16426         * tree-vect-loop-manip.c: Likewise.
16427         * loop-init.c: Likewise.
16428         * dwarf2out.c: Likewise.
16429         * hw-doloop.c: Likewise.
16430         * loop-unroll.c: Likewise.
16431         * cfgcleanup.c: Likewise.
16432         * bb-reorder.c: Likewise.
16433         * sched-rgn.c: Likewise.
16434         * tree-cfg.c: Likewise.
16435         * config/alpha/alpha.c: Likewise.
16436         * config/spu/spu.c: Likewise.
16437         * config/sparc/sparc.c: Likewise.
16438         * config/sh/sh.c: Likewise.
16439         * config/c6x/c6x.c: Likewise.
16440         * config/ia64/ia64.c: Likewise.
16441         * config/rs6000/rs6000.c: Likewise.
16442         * config/score/score.c: Likewise.
16443         * config/mips/mips.c: Likewise.
16444         * config/bfin/bfin.c: Likewise.
16445         * Makefile.in (CFGAYOUT_H): Remove, and fixup users.
16446         * config/rs6000/t-rs6000 (rs6000.o): Do not depend on cfglayout.h.
16447         * config/spu/t-spu-elf (spu.o: $): Likewise.
16448         * config/sparc/t-sparc (sparc.o): Do not depend on CFGLAYOUT_H.
16450 2012-06-17  Steven Bosscher  <steven@gcc.gnu.org>
16452         * cfgloop.h: Do not include rtl.h.
16453         (enum iv_extend_code): New.
16454         (struct rtx_iv): Use iv_extend_code instead of rtx_code.
16455         * Makefile.in (CFGLOOP_H): Do not depend on RTL_H.
16456         * loop-iv.c (iv_extend_to_rtx_code): New function to translate
16457         an IV_EXTEND_CODE to an RTX_CODE.
16458         (dump_iv_info): Update for rtx_iv field type change.
16459         (iv_constant): Likewise.
16460         (iv_subreg): Likewise.
16461         (iv_extend): Likewise.
16462         (iv_neg): Likewise.
16463         (iv_add): Likewise.
16464         (iv_mult): Likewise.
16465         (iv_shift): Likewise.
16466         (get_biv_step_1): Likewise.
16467         (get_biv_step): Likewise.
16468         (iv_analyze_biv): Likewise.
16469         (get_iv_value): Likewise.
16470         (shorten_into_mode): Likewise.
16471         (canonicalize_iv_subregs): Likewise.
16472         * sese.c (sese_build_liveouts): Use MAY_HAVE_DEBUG_STMTS instead
16473         of MAY_HAVE_DEBUG_INSNS.
16474         * tree-ssa-loop-ivopts.c: Include recog.h after expr.h.
16475         * tree-ssa-loop-prefetch.c: Likewise.
16477 2012-06-17  Steven Bosscher  <steven@gcc.gnu.org>
16479         * expmed.c (ceil_log2): Move from here...
16480         * hwint.c: ... to here for older GCCs...
16481         * hwint.h: ... and here for newer GCCs.
16482         * rtl.h (ceil_log2): Remove prototype.
16484         * tree-phinodes.c: Do not include rtl.h.
16485         * Makefile.in (tree-phinodes.o): Do not depend on RTL_H.
16487 2012-06-17  Steven Bosscher  <steven@gcc.gnu.org>
16489         * config/cris/cris.h (TARGET_ELF): Remove.
16490         (FORCE_EH_FRAME_INFO_IN_DATA_SECTION): Remove.
16491         (CRIS_ASM_OUTPUT_ALIGNED_DECL_COMMON): Simpify using TARGET_ELF==1.
16492         (LOCAL_LABEL_PREFIX): Likewise.
16493         * config/cris/cris.c (cris_target_asm_named_section): Remove.
16494         (cris_option_override): Simpify using TARGET_ELF==1.
16495         (cris_file_start): Likewise.
16496         * config/cris/cris-protos.h (cris_target_asm_named_section): Remove.
16498 2012-06-17  Uros Bizjak  <ubizjak@gmail.com>
16500         * config/i386/sse.md (vcvtph2ps): Fix vec_select selector.
16502 2012-06-16  Eric Botcazou  <ebotcazou@adacore.com>
16504         PR middle-end/53590
16505         * tree-inline.c (initialize_cfun): Copy can_delete_dead_exceptions.
16507 2012-06-15  Easwaran Raman  <eraman@google.com>
16509         * passes.c (init_optimization_passes): Remove pass_call_cdce
16510         from its current position and insert after pass_dce.
16512 2012-06-15  Walter Lee  <walt@tilera.com>
16514         * config/tilegx/sync.md (atomic_fetch_<fetchop_name><mode>): Fix typo.
16516 2012-06-15  Richard Earnshaw  <rearnsha@arm.com>
16518         * arm.c (note_invalid_constants): Don't return a result.
16519         (arm_memory_load_p): Delete function.
16520         (arm_const_double_rtx): Delete iterator variable i;
16521         (fp_immediate_constant): Likewise.
16522         (fp_const_from_val): Likewise.
16524         * arm.c (arm_init_iwmmxt_builtins): Delete void_ftype_void.
16526 2012-06-15  Marc Glisse  <marc.glisse@inria.fr>
16528         PR c++/51033
16529         * c-typeck.c (c_build_vec_perm_expr): Move to c-family/c-common.c.
16530         * c-tree.h (c_build_vec_perm_expr): Move to c-family/c-common.h.
16532 2012-06-15  Georg-Johann Lay  <avr@gjlay.de>
16534         * config/avr/avr.c (avr_default_expand_builtin): New function.
16535         (avr_expand_builtin): Use it.
16536         (avr_expand_unop_builtin): Remove.
16537         (avr_expand_binop_builtin): Remove.
16538         (avr_expand_triop_builtin): Remove.
16540 2012-06-15  Michael Matz  <matz@suse.de>
16542         PR middle-end/38474
16543         * cfgexpand.c (add_alias_set_conflicts): Remove.
16544         (expand_used_vars): Don't call it.
16545         (aggregate_contains_union_type): Remove.
16546         * function.c (n_temp_slots_in_use): New static data.
16547         (make_slot_available, assign_stack_temp_for_type): Update it.
16548         (init_temp_slots): Zero it.
16549         (remove_unused_temp_slot_addresses): Use it for quicker removal.
16550         (remove_unused_temp_slot_addresses_1): Use htab_clear_slot.
16552 2012-06-15  Michael Matz  <matz@suse.de>
16554         * gimplify.c (gimplify_compound_literal_expr): Take gimple_test_f
16555         argument, don't emit assign statement if value is directly usable.
16556         (gimplify_expr): Adjust.
16558 2012-06-15  Michael Matz  <matz@suse.de>
16560         * gimplify.c (gimplify_modify_expr): Fold generated statements.
16561         * gimple-fold.c (can_refer_decl_in_current_unit_p): Check flag_ltrans.
16563 2012-06-15  Richard Guenther  <rguenther@suse.de>
16565         * tree-vrp.c (set_and_canonicalize_value_range): Use canonical
16566         predicates to set VR_UNDEFINED and VR_VARYING.  Drop a case
16567         we assert for in set_value_range to VR_VARYING.
16569 2012-06-15  Richard Earnshaw  <rearnsha@arm.com>
16571         * arm.md (addsf3, adddf3): Use s_register_operand.
16572         (subsf3, subdf3): Likewise.
16573         (mulsf3, muldf3): Likewise.
16574         (difsf3, divdf3): Likewise.
16575         (movsfcc, movdfcc): Likewise.
16576         * predicates.md (f_register_operand): Delete.
16577         (arm_float_rhs_operand): Delete.
16578         (arm_float_add_operand): Delete.
16579         (arm_float_compare_operand): Use s_register_operand when
16580         there's no VFP.
16581         (cirrus_register_operand): Delete.
16582         (cirrus_fp_register): Delete.
16583         (cirrus_shift_const): Delete.
16584         (cmpdi_operand): Remove Maverick support.
16585         * constraints.md (f, v, H): Delete constraints.
16586         (G): Update documentation.
16587         * arm.c (fp_consts_inited): Convert to bool.
16588         (strings_fp): Delete.
16589         (values_fp): Delete.
16590         (value_fp0): New variable.
16591         (init_fp_table): Simplify logic.
16592         (arm_const_double_rtx): Likewise.
16593         (fp_immediate_constant): Likewise.
16594         (fp_const_from_val): Likewise.
16595         (neg_const_double_rtx_ok_for_fpa): Delete.
16596         * doc/md.texi (ARM constraints): Update documentation.
16598 2012-06-15  Ulrich Weigand  <ulrich.weigand@linaro.org>
16600         PR tree-optimization/53636
16601         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Verify
16602         stride when doing basic-block vectorization.
16604 2012-06-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
16606         * tree-vect-generic.c (lower_vec_perm): Propagate vector constants
16607         into VEC_PERM_EXPR.
16609 2012-06-15  Jakub Jelinek  <jakub@redhat.com>
16611         * tree-vect-patterns.c (vect_pattern_recog): Don't unnecessarily
16612         allocate and free bbs array for the SLP case.
16614         PR tree-optimization/51581
16615         * expr.h (choose_multiplier): New prototype.
16616         * expmed.c (choose_multiplier): No longer static.
16617         Change multiplier_ptr from rtx * to UHWI *.
16618         (expand_divmod): Adjust callers.
16619         * tree-vect-patterns.c (vect_recog_sdivmod_pow2_pattern): Renamed to...
16620         (vect_recog_divmod_pattern): ... this.  Pass bb_vinfo as last
16621         argument to new_stmt_vec_info.  Attempt to optimize also divisions
16622         by non-pow2 constants if integer vector division isn't supported.
16623         * tree-vect-stmts.c (vect_analyze_stmt): If node != NULL,
16624         don't look at pattern stmts and sequences.
16626 2012-06-15  Eric Botcazou  <ebotcazou@adacore.com>
16628         PR middle-end/53590
16629         * common.opt (-fdelete-dead-exceptions): New switch.
16630         * doc/invoke.texi (Code Gen Options): Document it.
16631         * cse.c (count_reg_usage) <CALL_INSN>: Use !insn_nothrow_p in lieu of
16632         insn_could_throw_p predicate.  Do not skip an insn that could throw
16633         if dead exceptions can be deleted.
16634         (insn_live_p): Likewise, do not return true in that case.
16635         * dce.c (can_alter_cfg): New flag.
16636         (deletable_insn_p): Do not return false for an insn that can throw if
16637         the CFG can be altered and dead exceptions can be deleted.
16638         (init_dce): Set can_alter_cfg to false for fast DCE, true otherwise.
16639         * dse.c (scan_insn): Use !insn_nothrow_p in lieu of insn_could_throw_
16640         predicate. Do not preserve an insn that could throw if dead exceptions
16641         can be deleted.
16642         * function.h (struct function): Add can_delete_dead_exceptions flag.
16643         * function.c (allocate_struct_function): Set it.
16644         * lto-streamer-in.c (input_struct_function_base): Stream it.
16645         * lto-streamer-out.c (input_struct_function_base): Likewise.
16646         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark a
16647         statement that could throw as necessary if dead exceptions can be
16648         deleted.
16650 2012-06-14  Maxim Kuvyrkov  <maxim@codesourcery.com>
16652         * config/tilegx/sync.md (atomic_fetch_sub<mode>): Fix typo.
16654 2012-06-14  Oleg Endo  <olegendo@gcc.gnu.org>
16656         PR target/53568
16657         * config/sh/sh.md: Add peephole for swapbsi2.
16658         (*swapbisi2_and_shl8, *swapbhisi2): New insns and splits.
16660 2012-06-14  Uros Bizjak  <ubizjak@gmail.com>
16662         * config/i386/i386.md (*zero_extendsidi2): Remove x,x alternative.
16663         (*zero_extendsidi2_rex64): Ditto.  Remove isa attribute.
16665 2012-06-14  Jakub Jelinek  <jakub@redhat.com>
16667         PR target/53639
16668         * config/i386/i386.md (*anddi_1 into *andsi_1_zext splitter): New.
16670 2012-06-14  Richard Earnshaw  <rearnsha@arm.com>
16672         * arm.c (arm_cirrus_insn_p): Delete.
16673         (cirrus_reorg): Delete.
16674         (arm_reorg): Don't call cirrus_reorg.
16675         (arm_final_prescan_insn_p): Don't check for cirrus insns.
16676         * arm.md (define_attr "type"): Remove mav_farith and mav_dmult.
16677         (adddi3, subdi3): Remove Maverick support.
16678         (arm_adddi3): Likewise.
16679         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
16680         (addsf3, adddf3): Likewise.
16681         (subsf3, subdf3): Likewise.
16682         (mulsf3, muldf3): Likewise.
16683         (ashldi3, ashrdi3, lshrdi3): Likewise.
16684         (floatsisf2, floatsidf2): Likewise.
16685         (fix_truncsfsi2, fix_truncdfsi2): Likewise.
16686         (arm_movdi, thumb1_movdi_insn): Likewise.
16687         (arm_cmpdi_insn): Likewise.
16688         (cirrus_cmpsf, cirrus_cmpdf, cirrus_cmpdi): Likewise.
16689         (cirrus.md): Don't include.
16690         * cirrus.md: Delete file.
16691         * t-arm (MD_INCLUDES): Remove cirrus.md.
16693 2012-06-14  Eric Botcazou  <ebotcazou@adacore.com>
16695         * dwarf2out.c (function_possibly_abstracted_p): New static function.
16696         (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
16697         cgraph_function_possibly_inlined_p.
16698         (gen_inlined_subroutine_die): Return if the origin is to be ignored.
16699         (process_scope_var): Do not emit concrete instances of abstracted
16700         nested functions from here.
16701         (gen_decl_die): Emit the abstract instance if the function is possibly
16702         abstracted and not only possibly inlined.
16703         (dwarf2out_finish): Find the first non-abstract parent instance and
16704         attach concrete instances on the limbo list to it.
16706 2012-06-14  Richard Earnshaw  <rearnsha@arm.com>
16708         * arm.md (divsf3, divdf3): Remove FPA support.
16709         (negsf2, negdf2): Likewise.
16710         (sqrtsf2, sqrtdf2): Likewise.
16711         (movdfcc): Likewise.
16712         (modsf3, moddf3, movxf): Delete.
16713         (push_fp_multi): Delete.
16714         (fpa.md): Don't include it.
16715         * fpa.md: Delete file.
16716         * t-arm (MD_INCLUDES): Remove fpa.md.
16718 2012-06-14  Bill Schmidt  <wschmidt@linux.ibm.com>
16720         * tree-vectorizer.h (vect_get_stmt_cost): Move from tree-vect-stmts.c.
16721         (cost_for_stmt): Remove decl.
16722         (vect_get_single_scalar_iteration_cost): Correct typo in name.
16723         * tree-vect-loop.c (vect_get_cost): Remove.
16724         (vect_get_single_scalar_iteration_cost): Correct typo in name; use
16725         vect_get_stmt_cost rather than vect_get_cost.
16726         (vect_get_known_peeling_cost): Use vect_get_stmt_cost rather than
16727         vect_get_cost.
16728         (vect_estimate_min_profitable_iters): Correct typo in call to
16729         vect_get_single_scalar_iteration_cost; use vect_get_stmt_cost rather
16730         than vect_get_cost.
16731         (vect_model_reduction_cost): Use vect_get_stmt_cost rather than
16732         vect_get_cost.
16733         (vect_model_induction_cost): Likewise.
16734         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Correct
16735         typo in call to vect_get_single_scalar_iteration_cost.
16736         * tree-vect-stmts.c (vect_get_stmt_cost): Move to tree-vectorizer.h.
16737         (cost_for_stmt): Remove unnecessary function.
16738         * Makefile.in (TREE_VECTORIZER_H): Update dependencies.
16740 2012-06-14  Richard Earnshaw  <rearnsha@arm.com>
16742         * arm.opt (mfp=2, mfp=3, mfpe, mfpe=2, mfpe=3): Delete options.
16743         * arm-fpus.def (fpa, fpe2, fpe3, maverick): Delete FPU types.
16744         * arm-tables.opt: Regenerated.
16745         * doc/invoke.texi: Remove references to deleted options.
16747 2012-06-14  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
16749         * config/h8300/genmova.sh: Modified to add offset bits of
16750         mova/Sz assembly instruction for memory access.
16751         * config/h8300/h8300.c: Likewise.
16752         * config/h8300/mova.md: Likewise.
16754 2012-06-12  Christian Bruel  <christian.bruel@st.com>
16756         PR target/53621
16757         * config/sh/sh.c (sh_option_override): Don't force
16758          flag_omit_frame_pointer and maccumulate_outgoing_args.
16759         * config/sh/sh.opt (maccumulate-outgoing-args): Init as Var.
16761 2012-06-14  Richard Guenther  <rguenther@suse.de>
16763         * tree-vrp.c (VR_INITIALIZER): New define.
16764         (ranges_from_anti_range): New function.
16765         (extract_range_from_binary_expr_1): Decompose operations on
16766         VR_ANTI_RANGEs to operations on VR_RANGE.
16767         (extract_range_from_unary_expr_1): Likewise.
16768         (extract_range_from_binary_expr_1, extract_range_from_binary_expr,
16769         extract_range_from_unary_expr_1, extract_range_from_unary_expr,
16770         extract_range_from_cond_expr, adjust_range_with_scev,
16771         vrp_visit_assignment_or_call, vrp_visit_phi_node,
16772         simplify_bit_ops_using_ranges): Use VR_INITIALIZER.
16774 2012-06-13  Richard Henderson  <rth@redhat.com>
16776         * hwint.h (HOST_WIDEST_INT_C): New.
16777         (HOST_WIDE_INT_C): New.
16778         (HOST_WIDE_INT_1): Use it.
16779         * config/alpha/alpha.c (alpha_trampoline_init): Use it.
16781 2012-06-13  Alexandre Oliva  <aoliva@redhat.com>
16783         PR debug/49888
16784         * var-tracking.c: Include alias.h.
16785         (overlapping_mems): New struct.
16786         (drop_overlapping_mem_locs): New.
16787         (clobber_overlapping_mems): New.
16788         (var_mem_delete_and_set, var_mem_delete): Call it.
16789         (val_bind): Likewise, but only if modified.
16790         (compute_bb_dataflow, emit_notes_in_bb): Call it on MEMs.
16791         * Makefile.in (var-tracking.o): Depend in $(ALIAS_H).
16793 2012-06-13  Alexandre Oliva  <aoliva@redhat.com>
16795         PR debug/47624
16796         * var-tracking.c (loc_exp_dep_pool): New.
16797         (vt_emit_notes): Create and release the pool.
16798         (compute_bb_dataflow): Use value-based locations in MO_VAL_SET.
16799         (emit_notes_in_bb): Likewise.
16800         (loc_exp_dep_insert): Deal with NOT_ONEPART vars.
16801         (notify_dependents_of_changed_value): Likewise.
16802         (notify_dependents_of_resolved_value): Check that NOT_ONEPART
16803         variables don't have a VAR_LOC_DEP_LST.
16804         (emit_note_insn_var_location): Expand NOT_ONEPART locs that are
16805         VALUEs or MEMs of VALUEs.
16807 2012-06-13  Alexandre Oliva  <aoliva@redhat.com>
16809         PR debug/52983
16810         PR debug/48866
16811         * dce.c (word_dce_process_block): Insert debug temps only if the
16812         insn is not marked.
16813         (dce_process_block): Likewise, and if debug.used is not empty,
16814         and only after iterating over all DEFs that might mark the insn.
16816 2012-06-13  Alexandre Oliva  <aoliva@redhat.com>
16818         * common.opt (ftree-coalesce-inlined-vars): New.
16819         (ftree-coalesce-vars): New.
16820         * doc/invoke.texi: Document them.
16821         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
16822         Implement them.
16824 2012-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
16826         * read-rtl.c (mapping): Remove index field.  Add current_value field.
16827         Define heap vectors.
16828         (iterator_group): Fix long line.  Remove num_builtins field and
16829         uses_iterator fields.  Make apply_iterator take a void * parameter.
16830         (iterator_use, atttribute_use): New structures.
16831         (iterator_traverse_data, BELLWETHER_CODE, bellwether_codes): Delete.
16832         (current_iterators, iterator_uses, attribute_uses): New variables.
16833         (uses_mode_iterator_p, uses_code_iterator_p): Delete.
16834         (apply_mode_iterator, apply_code_iterator): Take a void * parameter.
16835         (map_attr_string, apply_iterator_to_string): Remove iterator
16836         and value parameters.  Look through all current iterator values
16837         for a matching attribute.
16838         (mode_attr_index, apply_mode_maps): Delete.
16839         (apply_iterator_to_rtx): Replace with...
16840         (copy_rtx_for_iterators): ...this new function.
16841         (uses_iterator_p, apply_iterator_traverse): Delete.
16842         (apply_attribute_uses, add_current_iterators, apply_iterators): New
16843         functions.
16844         (add_mapping): Remove index field.  Set current_value field.
16845         (initialize_iterators): Don't set num_builtins and uses_iterator_p
16846         fields.
16847         (find_iterator): Delete.
16848         (record_iterator_use, record_attribute_use): New functions.
16849         (record_potential_iterator_use): New function.
16850         (check_code_iterator): Remove handling of bellwether codes.
16851         (read_rtx): Remove mode maps.  Truncate iterator and attribute uses.
16852         (read_rtx_code, read_nested_rtx, read_rtx_variadic): Remove mode_maps
16853         parameter.  Use the first code iterator value instead of the
16854         bellwether_codes array.  Use record_potential_iterator_use for modes.
16856 2012-06-13  Oleg Endo  <olegendo@gcc.gnu.org>
16858         PR target/53568
16859         * config/sh/sh.md (bswapsi2): New expander.
16860         (swapbsi2): New insn.
16862 2012-06-13  H.J. Lu  <hongjiu.lu@intel.com>
16864         PR target/53647
16865         * config/i386/i386.c (ix86_tune_cost): New variable.
16866         (ix86_option_override_internal): Set ix86_tune_cost.  Use
16867         ix86_tune_cost for simultaneous_prefetches, prefetch_block,
16868         l1_cache_size and l2_cache_size.
16870 2012-06-13  Richard Guenther  <rguenther@suse.de>
16872         * tree-vrp.c (vrp_meet): Properly meet equivalent ranges.
16873         Handle meeting two VR_RANGE to an VR_ANTI_RANGE.  Implement
16874         all possible meetings of VR_RANGE with VR_ANTI_RANGE and
16875         VR_ANTI_RANGE with VR_ANTI_RANGE.
16877 2012-06-13  Richard Earnshaw  <rearnsha@arm.com>
16879         * config.gcc (unsupported): Move obsoleted FPA-based configurations
16880         here from ...
16881         (obsolete): ... here.
16882         (arm*-*-freebsd*): Remove.
16883         (arm*-*-linux*): Only accept EABI variants.  Simplify logic.
16884         (arm*-*-uclinux*): Likewise.
16885         (arm*-*-ecos-elf): Remove.
16886         (arm*-*-rtems*): Remove.
16887         (arm*-*-elf): Remove.
16888         (arm*-wince-pe*): Remove.
16889         (arm, --with-fpu): Remove support for fpa and Maverick variants.
16890         * arm/ecos-elf.h: Delete.
16891         * arm/t-strongarm-elf: Delete.
16892         * arm/rtems-elf.h: Delete.
16893         * arm/wince-pe.h: Delete.
16894         * arm/pe.c: Delete.
16895         * arm/pe.h: Delete.
16896         * arm/t-wince-pe: Delete.
16898 2012-06-13  Bill Schmidt  <wschmidt@linux.ibm.com>
16900         PR tree-optimization/53647
16901         * tree-ssa-phiopt.c (gate_hoist_loads): Skip transformation for
16902         targets with no defined cache line size.
16904 2012-06-13  Bill Schmidt  <wschmidt@linux.ibm.com>
16906         * targhooks.c (default_builtin_vectorized_conversion): Handle
16907         vec_construct, using vectype to base cost on subparts.
16908         * target.h (enum vect_cost_for_stmt): Add vec_construct.
16909         * tree-vect-stmts.c (vect_model_load_cost): Use vec_construct
16910         instead of scalar_to-vec.
16911         * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
16912         vec_construct in same way as default for now.
16913         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
16914         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
16915         Handle vec_construct, including special case for 32-bit loads.
16917 2012-06-13  Xinyu Qi <xyqi@marvell.com>
16919         * config/arm/arm.c (FL_IWMMXT2): New define.
16920         (arm_arch_iwmmxt2): New variable.
16921         (arm_option_override): Enable use of iWMMXt with VFP.
16922         Disable use of iWMMXt with NEON. Disable use of iWMMXt under
16923         Thumb mode. Set arm_arch_iwmmxt2.
16924         (arm_expand_binop_builtin): Accept VOIDmode op.
16925         (enum arm_builtins): Revise built-in fcode.
16926         (IWMMXT2_BUILTIN): New define.
16927         (IWMMXT2_BUILTIN2): Likewise.
16928         (iwmmx2_mbuiltin): Likewise.
16929         (builtin_description bdesc_2arg): Revise built in declaration.
16930         (builtin_description bdesc_1arg): Likewise.
16931         (arm_init_iwmmxt_builtins): Revise built in initialization.
16932         (arm_expand_builtin): Revise built in expansion.
16933         (arm_output_iwmmxt_shift_immediate): New function.
16934         (arm_output_iwmmxt_tinsr): Likewise.
16935         * config/arm/arm-protos.h (arm_output_iwmmxt_shift_immediate): Declare.
16936         (arm_output_iwmmxt_tinsr): Likewise.
16937         * config/arm/iwmmxt.md (WCGR0, WCGR1, WCGR2, WCGR3): New constant.
16938         (iwmmxt_psadbw, iwmmxt_walign, iwmmxt_tmrc, iwmmxt_tmcr): Delete.
16939         (rorv4hi3, rorv2si3, rordi3): Likewise.
16940         (rorv4hi3_di, rorv2si3_di, rordi3_di): Likewise.
16941         (ashrv4hi3_di, ashrv2si3_di, ashrdi3_di): Likewise.
16942         (lshrv4hi3_di, lshrv2si3_di, lshrdi3_di): Likewise.
16943         (ashlv4hi3_di, ashlv2si3_di, ashldi3_di): Likewise.
16944         (iwmmxt_tbcstqi, iwmmxt_tbcsthi, iwmmxt_tbcstsi): Likewise
16945         (*iwmmxt_clrv8qi, *iwmmxt_clrv4hi, *iwmmxt_clrv2si): Likewise.
16946         (tbcstv8qi, tbcstv4hi, tbsctv2si): New pattern.
16947         (iwmmxt_clrv8qi, iwmmxt_clrv4hi, iwmmxt_clrv2si): Likewise.
16948         (*and<mode>3_iwmmxt, *ior<mode>3_iwmmxt, *xor<mode>3_iwmmxt): Likewise.
16949         (ror<mode>3, ror<mode>3_di): Likewise.
16950         (ashr<mode>3_di, lshr<mode>3_di, ashl<mode>3_di): Likewise.
16951         (ashli<mode>3_iwmmxt, iwmmxt_waligni, iwmmxt_walignr): Likewise.
16952         (iwmmxt_walignr0, iwmmxt_walignr1): Likewise.
16953         (iwmmxt_walignr2, iwmmxt_walignr3): Likewise.
16954         (iwmmxt_setwcgr0, iwmmxt_setwcgr1): Likewise.
16955         (iwmmxt_setwcgr2, iwmmxt_setwcgr3): Likewise.
16956         (iwmmxt_getwcgr0, iwmmxt_getwcgr1): Likewise.
16957         (iwmmxt_getwcgr2, iwmmxt_getwcgr3): Likewise.
16958         (All instruction patterns): Add wtype attribute.
16959         (*iwmmxt_arm_movdi, *iwmmxt_movsi_insn): iWMMXt coexist with vfp.
16960         (iwmmxt_uavgrndv8qi3, iwmmxt_uavgrndv4hi3): Revise the pattern.
16961         (iwmmxt_uavgv8qi3, iwmmxt_uavgv4hi3): Likewise.
16962         (ashr<mode>3_iwmmxt, ashl<mode>3_iwmmxt, lshr<mode>3_iwmmxt): Likewise.
16963         (iwmmxt_tinsrb, iwmmxt_tinsrh, iwmmxt_tinsrw):Likewise.
16964         (eqv8qi3, eqv4hi3, eqv2si3, gtuv8qi3): Likewise.
16965         (gtuv4hi3, gtuv2si3, gtv8qi3, gtv4hi3, gtv2si3): Likewise.
16966         (iwmmxt_wunpckihh, iwmmxt_wunpckihw, iwmmxt_wunpckilh): Likewise.
16967         (iwmmxt_wunpckilw, iwmmxt_wunpckehub, iwmmxt_wunpckehuh): Likewise.
16968         (iwmmxt_wunpckehuw, iwmmxt_wunpckehsb, iwmmxt_wunpckehsh): Likewise.
16969         (iwmmxt_wunpckehsw, iwmmxt_wunpckelub, iwmmxt_wunpckeluh): Likewise.
16970         (iwmmxt_wunpckeluw, iwmmxt_wunpckelsb, iwmmxt_wunpckelsh): Likewise.
16971         (iwmmxt_wunpckelsw, iwmmxt_wmadds, iwmmxt_wmaddu): Likewise.
16972         (iwmmxt_wsadb, iwmmxt_wsadh, iwmmxt_wsadbz, iwmmxt_wsadhz): Likewise.
16973         (iwmmxt2.md): Include.
16974         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __IWMMXT2__.
16975         (TARGET_IWMMXT2): New define.
16976         (TARGET_REALLY_IWMMXT2): Likewise.
16977         (arm_arch_iwmmxt2): Declare.
16978         * config/arm/mmintrin.h: Use __IWMMXT__ to enable iWMMXt intrinsics.
16979         Use __IWMMXT2__ to enable iWMMXt2 intrinsics.
16980         Use C name-mangling for intrinsics.
16981         (__v8qi): Redefine.
16982         (_mm_cvtsi32_si64, _mm_andnot_si64, _mm_sad_pu8): Revise.
16983         (_mm_sad_pu16, _mm_align_si64, _mm_setwcx, _mm_getwcx): Likewise.
16984         (_m_from_int): Likewise.
16985         (_mm_sada_pu8, _mm_sada_pu16): New intrinsic.
16986         (_mm_alignr0_si64, _mm_alignr1_si64, _mm_alignr2_si64): Likewise.
16987         (_mm_alignr3_si64, _mm_tandcb, _mm_tandch, _mm_tandcw): Likewise.
16988         (_mm_textrcb, _mm_textrch, _mm_textrcw, _mm_torcb): Likewise.
16989         (_mm_torch, _mm_torcw, _mm_tbcst_pi8, _mm_tbcst_pi16): Likewise.
16990         (_mm_tbcst_pi32): Likewise.
16991         (_mm_abs_pi8, _mm_abs_pi16, _mm_abs_pi32): New iWMMXt2 intrinsic.
16992         (_mm_addsubhx_pi16, _mm_absdiff_pu8, _mm_absdiff_pu16): Likewise.
16993         (_mm_absdiff_pu32, _mm_addc_pu16, _mm_addc_pu32): Likewise.
16994         (_mm_avg4_pu8, _mm_avg4r_pu8, _mm_maddx_pi16, _mm_maddx_pu16): Likewise.
16995         (_mm_msub_pi16, _mm_msub_pu16, _mm_mulhi_pi32): Likewise.
16996         (_mm_mulhi_pu32, _mm_mulhir_pi16, _mm_mulhir_pi32): Likewise.
16997         (_mm_mulhir_pu16, _mm_mulhir_pu32, _mm_mullo_pi32): Likewise.
16998         (_mm_qmulm_pi16, _mm_qmulm_pi32, _mm_qmulmr_pi16): Likewise.
16999         (_mm_qmulmr_pi32, _mm_subaddhx_pi16, _mm_addbhusl_pu8): Likewise.
17000         (_mm_addbhusm_pu8, _mm_qmiabb_pi32, _mm_qmiabbn_pi32): Likewise.
17001         (_mm_qmiabt_pi32, _mm_qmiabtn_pi32, _mm_qmiatb_pi32): Likewise.
17002         (_mm_qmiatbn_pi32, _mm_qmiatt_pi32, _mm_qmiattn_pi32): Likewise.
17003         (_mm_wmiabb_si64, _mm_wmiabbn_si64, _mm_wmiabt_si64): Likewise.
17004         (_mm_wmiabtn_si64, _mm_wmiatb_si64, _mm_wmiatbn_si64): Likewise.
17005         (_mm_wmiatt_si64, _mm_wmiattn_si64, _mm_wmiawbb_si64): Likewise.
17006         (_mm_wmiawbbn_si64, _mm_wmiawbt_si64, _mm_wmiawbtn_si64): Likewise.
17007         (_mm_wmiawtb_si64, _mm_wmiawtbn_si64, _mm_wmiawtt_si64): Likewise.
17008         (_mm_wmiawttn_si64, _mm_merge_si64): Likewise.
17009         (_mm_torvscb, _mm_torvsch, _mm_torvscw): Likewise.
17010         (_m_to_int): New define.
17011         * config/arm/arm-cores.def (iwmmxt2): Add FL_IWMMXT2.
17012         * config/arm/arm-arches.def (iwmmxt2): Likewise.
17013         * config/arm/t-arm (MD_INCLUDES): Add marvell-f-iwmmxt.md and
17014         iwmmxt2.md.
17015         * config/arm/arm.md (marvell-f-iwmmxt.md): Include.
17016         (arch): Add "iwmmxt2".
17017         (arch_enabled): Handle "iwmmxt2".
17018         (wtype): New attribute.
17019         (UNSPEC_WMADDS, UNSPEC_WMADDU): Delete.
17020         (UNSPEC_WALIGNI): New unspec.
17021         * config/arm/predicates.md (imm_or_reg_operand): New predicate.
17022         * config/arm/iterators.md (VMMX2): New mode_iterator.
17023         * config/arm/marvell-f-iwmmxt.md: New file.
17024         * config/arm/iwmmxt2.md: New file.
17026 2012-06-12  Jakub Jelinek  <jakub@redhat.com>
17028         PR c/53532
17029         PR c/51034
17030         PR c/53196
17031         * c-decl.c (build_compound_literal): Call c_incomplete_type_error
17032         if type isn't complete.
17034 2012-06-12  Uros Bizjak  <ubizjak@gmail.com>
17036         * config/ia64/sync.md (fetchop_name): Change ior attribute to "or".
17038 2012-06-12  Richard Henderson  <rth@redhat.com>
17040         * config/rs6000/sync.md (atomic_load, atomic_store): Use INT1 mode
17041         iterator instead of INT.
17043 2012-06-12  Bill Schmidt  <wschmidt@linux.ibm.com>
17045         * opts.c: Add -fhoist-adjacent-loads to -O2 and above.
17046         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Add argument to forward
17047         declaration.
17048         (hoist_adjacent_loads, gate_hoist_loads): New forward declarations.
17049         (tree_ssa_phiopt): Call gate_hoist_loads.
17050         (tree_ssa_cs_elim): Add parm to tree_ssa_phiopt_worker call.
17051         (tree_ssa_phiopt_worker): Add do_hoist_loads to formal arg list; call
17052         hoist_adjacent_loads.
17053         (local_mem_dependence): New function.
17054         (hoist_adjacent_loads): Likewise.
17055         (gate_hoist_loads): Likewise.
17056         * common.opt (fhoist-adjacent-loads): New switch.
17057         * Makefile.in (tree-ssa-phiopt.o): Added dependencies.
17059 2012-06-12  Michael Matz  <matz@suse.de>
17061         * alias.c (nonoverlapping_component_refs_p): Take two rtx arguments.
17062         (nonoverlapping_memrefs_p): Don't call it here ...
17063         (true_dependence_1): ... but here.
17065 2012-06-12  Richard Guenther  <rguenther@suse.de>
17067         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove dead code.
17068         * alias.c (ao_ref_from_mem): MEM_EXPR is conservative, MEM_OFFSET
17069         and MEM_SIZE only refines it.  Reflect that and be less conservative
17070         if either of the latter is not known.
17072 2012-06-12  Jakub Jelinek  <jakub@redhat.com>
17074         PR rtl-optimization/53589
17075         * cfgrtl.c (force_nonfallthru_and_redirect): Do asm_goto_edge
17076         discovery even when e->dest != target.  If any LABEL_REF points
17077         to e->dest label, redirect it to target's label.
17079 2012-06-12  Chung-Lin Tang  <cltang@codesourcery.com>
17081         * config/sh/sh.c (output_stack_adjust): Remove !epilogue_p
17082         condition for generating REG_FRAME_RELATED_EXPR note.
17083         (pop): Add code for generating REG_CFA_RESTORE,
17084         REG_CFA_ADJUST_CFA notes. Set RTX_FRAME_RELATED_P to 1.
17085         (sh_expand_epilogue): Use frame_insn() for FP to SP move.
17086         Set 'frame_p' of calls to output_stack_adjust() to 'true'.
17088 2012-06-11  Richard Henderson  <rth@redhat.com>
17090         * config/alpha/alpha.c (HWI_HEX2): Add missing shift.
17091         * vmsdbgout.c (VMS_EPOCH_OFFSET): Add LL suffix.
17093         * config/alpha/alpha.c (alpha_trampoline_init): Split large constants.
17095 2012-06-12  Hans-Peter Nilsson  <hp@axis.com>
17097         * doc/tm.texi.in (Addressing Modes) <TARGET_LEGITIMIZE_ADDRESS>:
17098         Mention that this hook needs to be defined for native TLS.
17099         * doc/tm.texi: Regenerate.
17101 2012-06-11  Mike Stump  <mikestump@comcast.net>
17103         * emit-rtl.c (init_emit_once): Iterate through the
17104         MODE_PARTIAL_INT modes with MIN_MODE_PARTIAL_INT and
17105         MAX_MODE_PARTIAL_INT, as GET_MODE_WIDER_MODE doesn't step through
17106         all the MIN_MODE_PARTIAL_INT modes anymore.
17108 2012-06-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
17110         * config/mips/mips-tables.opt (xlp): Fix merge typo.
17112 2012-06-11  Roland McGrath  <mcgrathr@google.com>
17114         * dwarf2out.c (const_ok_for_output_1): Detect a TLS UNSPEC using
17115         SYMBOL_REF_TLS_MODEL rather than DECL_THREAD_LOCAL_P, in case it's
17116         not a VAR_DECL.  Also don't limit it to UNSPECs with exactly one
17117         operand.
17119 2012-06-11  Oleg Endo  <olegendo@gcc.gnu.org>
17121         PR target/53511
17122         * config/sh/sh.md (fmasf4): New expander.
17123         (*macsf3): Rename to fmasf4_i.  Adapt to fma pattern.
17124         (mac_media): Rename to fmasf4_media.  Adapt to fma pattern.
17125         * config/sh/sh.opt (mfused-madd): Remove.
17126         * config/sh/sh.c (sh_option_override): Remove mfused-madd handling.
17127         (builtin_description bdesc): Remove __builtin_sh_media_FMAC_S.
17128         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add fused-madd.opt
17129         as extra options.
17130         * doc/invoke.texi (SH Options): Update mfused-madd and mno-fused-madd
17131         descriptions.
17133 2012-06-11  Richard Henderson  <rth@redhat.com>
17135         * dwarf2cfi.c (scan_trace): Handle annulled branch-taken delay slots.
17137 2012-06-11  Richard Guenther  <rguenther@suse.de>
17139         PR middle-end/53470
17140         * tree.c (free_lang_data_in_type): Do not clear TYPE_CONTEXT but
17141         replace it with the first non-BLOCK context.
17143 2012-06-11  Richard Guenther  <rguenther@suse.de>
17145         * alias.c (aliases_everything_p): Remove.
17146         (DIFFERENT_ALIAS_SETS_P): Likewise.
17147         (true_dependence_1): Use mems_in_disjoint_alias_sets_p directly.
17148         Do not use aliases_everything_p or special-case ANDs.  Do not
17149         special-case BLKmode moves.
17150         (may_alias_p): Likewise.  Handle BLKmode similar like everywhere
17151         - for SCATCH only.
17153 2012-06-09  Hans-Peter Nilsson  <hp@axis.com>
17155         Fix CRIS build errors with --enable-build-with-cxx.
17156         * config/cris/cris.c (cris_emit_trap_for_misalignment): Rename
17157         variable "and" to "andop".
17158         * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>"): Use
17159         temporary variable for memory model, passing C++-type-correct
17160         parameter type to expand_mem_thread_fence.
17161         ("atomic_compare_and_swap<mode>"): Ditto.
17163 2012-06-09  Richard Henderson  <rth@redhat.com>
17165         PR c++/53602
17166         * cfgcleanup.c (execute_jump): Rename from rest_of_handle_jump2.
17167         (pass_jump): Rename from pass_jump2.
17168         (execute_jump2, pass_jump2): New.
17169         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Don't
17170         perform cfg cleanup here.  Move the test of PUSH_ROUNDING
17171         and ACCUMULATE_OUTGOING_ARGS test...
17172         (gate_handle_stack_adjustments): ... here.
17173         * passes.c (init_optimization_passes): Update for pass_jump2 rename.
17174         Place new pass_jump2 after pass_stack_adjustments.
17175         * tree-pass.h (pass_jump): Declare.
17177 2012-06-09  Kenneth Zadeck <zadeck@naturalbridge.com>
17179         * simplify-rtx.c (simplify_const_binary_operation): Fixed shift
17180         count trucation.
17182 2012-06-08  Richard Henderson  <rth@redhat.com>
17184         PR c++/53602
17185         * combine-stack-adj.c (force_move_args_size_note): Add ARGS_SIZE
17186         note to a clobber insn when no other insn is available.
17188 2012-06-08  Georg-Johann Lay  <avr@gjlay.de>
17190         * config/avr/avr.c (avr_case_values_threshold): Return 7.
17192 2012-06-07  Andreas Schwab  <schwab@linux-m68k.org>
17194         * genhooks.c (main): Set progname.
17195         (emit_documentation): Remove variable found_start, always bail out
17196         when a place is missing.
17197         * doc/tm.texi.in (C++ ABI): Add @hook TARGET_CXX_DECL_MANGLING_CONTEXT.
17199 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
17201         PR middle-end/53580
17202         * omp-low.c (scan_omp): Change first argument to gimple_seq *,
17203         call walk_gimple_seq_mod instead of walk_gimple_seq.
17204         (scan_sharing_clauses, scan_omp_parallel, scan_omp_task,
17205         scan_omp_for, scan_omp_sections, scan_omp_single,
17206         execute_lower_omp): Adjust callers.
17207         (scan_omp_1_stmt): Likewise.  If check_omp_nesting_restrictions
17208         returns false, replace stmt with GIMPLE_NOP.
17209         (check_omp_nesting_restrictions): Instead of issuing warnings,
17210         issue errors and return false if any errors were reported.
17212 2012-06-06  Steven Bosscher  <steven@gcc.gnu.org>
17214         * doc/invoke.texi (fconserve-space): Remove documentation.
17216 2012-06-06  Edmar Wienskoski  <edmar@freescale.com>
17218         * config/rs6000/rs6000-tables.opt: Regenerated.
17220 2012-06-06  Richard Guenther  <rguenther@suse.de>
17222         PR tree-optimization/53081
17223         * tree-data-ref.h (adjacent_store_dr_p): Rename to ...
17224         (adjacent_dr_p): ... this and make it work for reads, too.
17225         * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMCPY.
17226         (struct partition_s): Change main_stmt to main_dr, add
17227         secondary_dr member.
17228         (build_size_arg_loc): Change to date data-reference and not
17229         gimplify here.
17230         (build_addr_arg_loc): New function split out from ...
17231         (generate_memset_builtin): ... here.  Use it and simplify.
17232         (generate_memcpy_builtin): New function.
17233         (generate_code_for_partition): Adjust.
17234         (classify_partition): Streamline pattern detection.  Detect memcpy.
17235         (ldist_gen): Adjust.
17236         (tree_loop_distribution): Adjust seed statements for memcpy
17237         recognition.
17239 2012-06-06  Matt Turner  <mattst88@gmail.com>
17241         * config/arm/mmintrin.h (_mm_empty): New.
17242         (_m_empty): New.
17244 2012-06-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
17246         * doc/invoke.texi (sched-pressure-algorithm): Document new --param.
17247         * common.opt (fsched-pressure-algorithm=): Remove.
17248         * flag-types.h (sched_pressure_algorithm): Move to...
17249         * sched-int.h (sched_pressure_algorithm): ...here.
17250         * params.def (sched-pressure-algorithm): New param.
17251         * haifa-sched.c (sched_init): Use it to initialize sched_pressure.
17252         * common/config/s390/s390-common.c (s390_option_optimization_table):
17253         Remove OPT_fsched_pressure_algorithm_ entry.
17254         * config/s390/s390.c (s390_option_override): Set a default value for
17255         PARAM_SCHED_PRESSURE_ALGORITHM.
17257 2012-06-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
17259         PR target/53487
17260         * config/rs6000/rs6000.c (rs6000_generate_compare): If we are
17261         doing an unsigned compare, make sure the second argument is not a
17262         negative constant.
17263         (rs6000_emit_cmove): Don't allow floating point comparisons when
17264         generating ISEL moves.
17266 2012-06-05  Edmar Wienskoski  <edmar@freescale.com>
17268         * config/rs6000/e5500.md: New file.
17269         * config/rs6000/e6500.md: New file.
17270         * config/rs6000/rs6000.c (processor_costs): Add new costs for
17271         e5500 and e6500.
17272         (rs6000_option_override_internal): Altivec and Spe options not
17273         allowed with e5500. Spe options not allowed with e6500. Increase
17274         move inline limit for e5500 and e6500. Disable string instructions
17275         for e5500 and e6500. Enable branch targets alignment for e5500 and
17276         e6500. Initialize rs6000_cost for e5500 and e6500.
17277         (rs6000_adjust_cost): Add extra scheduling cycles between compare
17278         and brnach for e5500 and e6500.
17279         (rs6000_issue_rate): Set issue rate for e5500 and e6500.
17280         * config/rs6000/rs6000-cpus.def: Add cpu definitions for e5500 and
17281         e6500.
17282         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add e5500 and e6500.
17283         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce5500 and
17284         ppce6500.
17285         Include e5500.md and e6500.md.
17286         * config/rs6000/rs6000-opt.h (processor_type): Add
17287         PROCESSOR_PPCE5500 and PROCESSOR_PPCE6500.
17288         * config.gcc (cpu_is_64bit): Add new cores e5500, e6500.
17289         (powerpc*-*-*): Add new cores e5500, e6500.
17290         * doc/invoke.texi: (item -mcpu): Add e5500 and e6500 to list of cpus.
17292 2012-06-05  Richard Guenther  <rguenther@suse.de>
17294         * tree-vect-data-refs.c (vect_analyze_data_refs): Fix last change.
17296 2012-06-05  H.J. Lu  <hongjiu.lu@intel.com>
17298         PR target/53575
17299         * config.gcc: Select x32 run-time library if --with-abi={x32|mx32}
17300         is used for x86_64-*-*.
17302 2012-06-05  Richard Guenther  <rguenther@suse.de>
17304         PR tree-optimization/30442
17305         * tree-vect-data-refs.c (vect_analyze_data_refs): For basic-block
17306         vectorization stop analysis at the first stmt we cannot compute
17307         a data-reference for instead of giving up completely.
17309 2012-06-05  Richard Guenther  <rguenther@suse.de>
17311         * tree-loop-distribution.c (struct partition_s): Add has_writes member.
17312         (partition_alloc): Initialize it.
17313         (partition_has_writes): New function.
17314         (rdg_flag_uses): Adjust.
17315         (rdg_flag_vertex): Likewise.
17316         (rdg_flag_vertex_and_dependent): Likewise.
17317         (rdg_flag_loop_exits): Likewise.
17318         (build_rdg_partition_for_component): Likewise.
17319         (rdg_build_partitions): Likewise.
17321 2012-06-05  Richard Guenther  <rguenther@suse.de>
17323         PR tree-optimization/53081
17324         * tree-loop-distribution.c (generate_memset_builtin): Handle all
17325         kinds of byte-sized stores.
17326         (classify_partition): Likewise.
17327         (tree_loop_distribution): Adjust seed statements used for
17328         !flag_tree_loop_distribution.
17330 2012-06-05  Alan Modra  <amodra@gmail.com>
17332         * config/rs6000/rs6000.c (ptr_regno_for_savres): Comment.
17333         (rs6000_emit_prologue): Ensure register used for inline saves
17334         of vector regs is not the static chain register.  Revise comment.
17336 2012-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
17338         * doc/md.texi (Standard Pattern Names For Generation): Document
17339         sincos pattern.
17341 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
17343         PR bootstrap/53555
17344         * config/i386/i386.c (ix86_sched_reorder) Skip debug insns.
17346 2012-06-04  Jason Merrill  <jason@redhat.com>
17348         * dwarf2out.c (is_unit_die): New.
17349         (copy_declaration_context, copy_ancestor_tree): Use it.
17350         (copy_decls_walk): Likewise.
17352 2012-06-04  Paolo Carlini  <paolo.carlini@oracle.com>
17354         PR c++/53524
17355         * doc/invoke.texi (Wenum-compare): Update documentation.
17357 2012-06-04  Dodji Seketeli  <dodji@redhat.com>
17359         PR preprocessor/53463
17360         * parser.c (cp_parser_assignment_expression): Use the location
17361         for the '=' as the default location for the expression.
17363 2012-06-04  Edmar Wienskoski  <edmar@freescale.com>
17365         PR target/53559
17366         * config/rs6000/altivec.md (altivec_stvlx): Change machine mode of
17367         operands.
17368         (altivec_stvlxl): Ditto.
17369         (altivec_stvrx): Ditto.
17370         (altivec_stvrxl): Ditto.
17372 2012-06-04  Vladimir Makarov  <vmakarov@redhat.com>
17374         * ira-int.h (struct target_ira_int): Add member x_ira_uniform_class_p.
17375         (ira_uniform_class_p): New macro.
17377         * ira.c (setup_uniform_class_p): New function.
17378         (setup_allocno_and_important_classes): Call the function.
17379         (print_unform_and_important_classes): New function.
17380         (print_classes): Rename to print_translated_classes.
17381         (ira_debug_allocno_classes): Add call of
17382         print_unform_and_important_classes.
17384         * ira-costs.c (setup_regno_cost_classes_by_aclass): Use uniform
17385         classes instead of pressure classes.
17387 2012-06-04  Aldy Hernandez  <aldyh@redhat.com>
17389         PR middle-end/47530
17390         * trans-mem.c (expand_block_edges): Do not skip the first
17391         statement when resetting the BB.
17393 2012-06-04  Richard Guenther  <rguenther@suse.de>
17395         * tree-data-ref.c (stores_from_loop): Remove.
17396         (stmt_with_adjacent_zero_store_dr_p): Likewise.
17397         (stores_zero_from_loop): Likewise.
17398         * tree-data-ref.h (stores_from_loop, stores_zero_from_loop,
17399         stmt_with_adjacent_zero_store_dr_p, stride_of_unit_type_p): Remove.
17400         (adjacent_store_dr_p): New function.
17401         * tree-loop-distribution.c (generate_memset_builtin): Pass
17402         the RDG, use the already available data-reference.
17403         (generate_code_for_partition): Pass down RDG.
17404         (classify_partition): Inline parts of the former
17405         stmt_with_adjacent_zero_store_dr_p here and use adjacent_store_dr_p.
17406         (ldist_gen): Remember if there was any detected builtin and
17407         do less work if not and flag_tree_loop_distribution is not set.
17408         (tree_loop_distribution): Inline and fuse stores_from_loop
17409         and stores_zero_from_loop here.
17411 2012-06-04  Richard Guenther  <rguenther@suse.de>
17413         PR middle-end/53471
17414         * dwarf2out.c (dwarf2out_finish): If generating LTO do not
17415         create new assembler names.
17417 2012-06-04  Richard Guenther  <rguenther@suse.de>
17419         * tree-data-ref.c (struct rdg_vertex_info): Remove.
17420         (rdg_vertex_for_stmt): Simplify using gimple_uid.
17421         (create_rdg_vertices): Pass loop argument, remove stmt to RDG index
17422         hashtable.  Record stmt data-references.
17423         (hash_stmt_vertex_info): Remove.
17424         (eq_stmt_vertex_info): Likewise.
17425         (hash_stmt_vertex_del): Likewise.
17426         (build_empty_rdg): Simplify.
17427         (build_rdg): Adjust.
17428         (free_rdg): Likewise.
17429         (ref_base_address): Remove.
17430         (have_similar_memory_accesses): Likewise.
17431         * tree-data-ref.h (create_rdg_vertices): Remove.
17432         (struct rdg_vertex): Add datarefs member.
17433         (RDGV_DATAREFS): New define.
17434         (RDG_DATAREFS): Likewise.
17435         (have_similar_memory_accesses): Remove.
17436         (rdg_has_similar_memory_accesses): Likewise.
17437         * tree-loop-distribution.c (ref_base_address): Re-implement here.
17438         (similar_memory_accesses): Re-implement using existing data-references.
17439         (tree_loop_distribution): Initialize stmt uids for the stmt to
17440         RDG index mapping.
17441         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
17442         access stmt vinfo for stmts in loop.
17444 2012-06-04  Andreas Schwab  <schwab@linux-m68k.org>
17446         PR target/53461
17447         * config/m68k/m68k.md ("tablejump"): Fix check for
17448         CASE_VECTOR_PC_RELATIVE.
17450 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
17452         * output.h (merge_weak, assemble_alias,
17453         initializer_constant_valid_p,
17454         initializer_constant_valid_for_bitfield_p): Move protos from here...
17455         * tree.h: ... to here.
17456         * cgraphclones.c: Do not include output.h.
17457         * gimplify.c: Likewise.
17458         * reload.c: Likewise.
17459         * recog.c: Likewise.
17460         * tree-ssa-loop-ivopts.c: Likewise.
17461         * tree-switch-conversion.c: Likewise.
17462         * c-parser.c: Likewise.
17463         * c-typeck.c: Likewise.
17464         * Makefile.in: Fix dependencies.
17466 2012-06-04  Georg-Johann Lay  <avr@gjlay.de>
17468         PR target/46261
17469         * config/avr/avr-stdint.h: New file.
17470         * config.gcc (avr-*-*,tm_file): Use avr/avr-stdint.h instead of
17471         newlib-stdint.h
17473 2012-06-04  Jakub Jelinek  <jakub@redhat.com>
17475         PR tree-optimization/53550
17476         * tree-ssa-loop-niter.c (number_of_iterations_cond): If type
17477         is POINTER_TYPE_P, use sizetype as step type instead of type.
17479 2012-06-04  Richard Guenther  <rguenther@suse.de>
17481         * tree-data-ref.c (have_similar_memory_accesses_1): Remove.
17482         (ref_base_address_1): Likewise.
17483         (remove_similar_memory_refs): Likewise.
17484         * tree-data-ref.h (remove_similar_memory_refs): Remove.
17485         * tree-loop-distribution.c (classify_partition): Do not classify
17486         as builtin if -ftree-loop-distribute-patterns is not enabled.
17487         (fuse_partitions_with_similar_memory_accesses): Inline ...
17488         (ldist_gen): ... here.  Fuse all non-builtin partitions if
17489         -ftree-loop-distribution is not enabled.  Properly return
17490         the number of created partitions.  Do not update SSA form here but ...
17491         (tree_loop_distribution): ... once here for the whole function.
17492         Only walk innermost loops, constrain loops we consider here
17493         further.  Do not call remove_similar_memory_refs.
17494         (distribute_loop): Do not check number of loop nodes here.
17496 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
17498         * Makefile.in (GIMPLE_H): Do not depend on TARGET_H.
17500 2012-06-03  Martin Jambor  <mjambor@suse.cz>
17502         * ipa-prop.h (ipa_get_jf_known_type_offset): New function.
17503         (ipa_get_jf_known_type_base_type): Likewise.
17504         (ipa_get_jf_known_type_component_type): Likewise.
17505         (ipa_get_jf_constant): Likewise.
17506         (ipa_get_jf_pass_through_formal_id): Likewise.
17507         (ipa_get_jf_pass_through_operation): Likewise.
17508         (ipa_get_jf_ancestor_offset): Likewise.
17509         (ipa_get_jf_ancestor_type): Likewise.
17510         (ipa_get_jf_ancestor_formal_id): Likewise.
17511         (ipa_get_jf_member_ptr_pfn): Likewise.
17512         * ipa-prop.c (ipa_set_jf_known_type): New function.
17513         (ipa_set_jf_constant): Likewise.
17514         (ipa_set_jf_simple_pass_through): Likewise.
17515         (ipa_set_jf_arith_pass_through): Likewise.
17516         (ipa_set_ancestor_jf): Likewise.
17517         (fill_member_ptr_cst_jump_function): Moved up and renamed to
17518         ipa_set_jf_member_ptr_cst.
17519         (detect_type_change_1): Use the new jump function creation functions.
17520         (compute_complex_assign_jump_func): Likewise.
17521         (compute_complex_ancestor_jump_func): Likewise.
17522         (compute_known_type_jump_func): Likewise.
17523         (compute_scalar_jump_functions): Likewise.
17524         (compute_pass_through_member_ptrs): Likewise.
17525         (determine_cst_member_ptr): Likewise.
17526         (combine_known_type_and_ancestor_jfs): Likewise.
17527         (try_make_edge_direct_simple_call): Likewise.
17528         (try_make_edge_direct_virtual_call): Likewise.
17529         (update_indirect_edges_after_inlining): Likewise.
17530         * ipa-cp.c (ipa_get_jf_pass_through_result): Use jump function
17531         access functions.  Incorporat NOP_EXPR and BINFO handling from its
17532         callers.
17533         (ipa_get_jf_ancestor_result): Likewise.  Incorporate handling BINFOs
17534         which was in its callers.
17535         (ipa_value_from_jfunc): Use jump function access functions.  Some
17536         functionality moved to functions above.
17537         (propagate_vals_accross_ancestor): Likewise.
17538         (propagate_vals_accross_pass_through): Use jump function access
17539         functions.
17540         (propagate_accross_jump_function): Likewise.
17541         * ipa-inline-analysis.c (remap_edge_change_prob): Use jump function
17542         access functions.
17543         (inline_merge_summary): Likewise.
17545 2012-06-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17547         * config/pa/pa.h (MAX_PCREL17F_OFFSET): Define.
17548         * config/pa/pa.c (pa_attr_length_millicode_call): Use
17549         MAX_PCREL17F_OFFSET instead of fixed offset.
17550         (pa_attr_length_call): Likewise.
17551         (pa_attr_length_indirect_call): Likewise.
17553 2012-06-03  Oleg Endo  <olegendo@gcc.gnu.org>
17555         PR target/53512
17556         * config/sh/sh.opt (mfsca, mfsrra): New options.
17557         * config/sh/sh.md (rsqrtsf2): Use TARGET_FPU_ANY and TARGET_FSRRA
17558         condition.
17559         (fsca): Use TARGET_FPU_ANY and TARGET_FSCA condition.
17560         (sinssf2, cossf2): Fold expanders to ...
17561         (sincossf3): ... this new expander.  Use TARGET_FPU_ANY and
17562         TARGET_FSCA condition.
17563         * config/sh/sh.c (sh_option_override): Handle TARGET_FSRRA and
17564         TARGET_FSCA.
17565         * doc/invoke.texi (SH Options): Add descriptions for -mfsca,
17566         -mno-fsca, -mfsrra, -mno-fsrra.
17568 2012-06-03  Matt Turner  <mattst88@gmail.com>
17570         * config/mips/4600.md (r4700_imul_si): New.
17571         (r4700_imul_di): New.
17572         (r4700_fmul_single): New.
17573         (r4700_fmul_double): New.
17574         * config/mips/mips-cpus.def: Add r4700.
17575         * config/mips/mips.c: Likewise.
17576         * config/mips/mips.md: Likewise.
17577         * config/mips/mips-tables.opt: Regenerate.
17579 2012-06-02  Steven Bosscher  <steven@gcc.gnu.org>
17581         * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Split out to
17582         new function sparc_initial_elimination_offset.
17583         * config/sparc/sparc.c (sparc_initial_elimination_offset): New
17584         function.
17585         * config/sparc/sparc-protos.h (sparc_initial_elimination_offset):
17586         Prototype it.
17588 2012-06-02  Kenneth Zadeck <zadeck@naturalbridge.com>
17590         * expmed.c (expand_mult, choose_multiplier): Change
17591         "2 * HOST_BITS_PER_WIDE_INT" to "HOST_BITS_PER_DOUBLE_INT".
17592         * expr.c (convert_modes): Likewise.
17593         * explow.c (plus_constant): Likewise.
17594         * fixed-value.c (fixed_saturate1, fixed_saturate2)
17595         (do_fixed_add, do_fixed_multiply, do_fixed_multiply)
17596         (do_fixed_multiply, do_fixed_multiply, do_fixed_divide)
17597         (do_fixed_divide, do_fixed_divide, do_fixed_divide)
17598         (do_fixed_divide, do_fixed_divide, do_fixed_shift, do_fixed_shift)
17599         (do_fixed_shift, fixed_convert, fixed_convert)
17600         (fixed_convert_from_int, fixed_convert_from_int)
17601         (fixed_convert_from_real): Likewise.
17602         * fold-const.c (fold_convert_const_int_from_fixed, sign_bit_p)
17603         (native_interpret_int, fold_binary_loc, fold_ternary_loc): Likewise.
17604         * varasm.c (output_constructor_bitfield): Likewise.
17605         * tree-vrp.c (register_edge_assert_for_2): Likewise.
17606         * double-int.c (rshift_double, lshift_double): Likewise.
17607         * double-int.h (double_int_fits_in_uhwi_p, double_int, double_int):
17608         Likewise.
17609         * simplify-rtx.c (mode_signbit_p)
17610         (simplify_const_unary_operation, simplify_binary_operation_1)
17611         (simplify_immed_subreg): Likewise.
17612         * builtins.c (c_readstr, fold_builtin_bitop): Likewise.
17613         * tree-vect-generic.c (build_replicated_const): Likewise.
17614         * dbxout.c (stabstr_O): Likewise.
17615         * emit-rtl.c (immed_double_int_const, immed_double_const)
17616         (gen_lowpart_common, init_emit_once): Likewise.
17617         * tree.c (integer_pow2p, tree_log2, tree_floor_log2)
17618         (widest_int_cst_value, upper_bound_in_type): Likewise.
17619         * stor-layout.c (initialize_sizetypes, fixup_signed_type)
17620         (fixup_unsigned_type): Likewise.
17621         * real.c (real_to_integer2, real_from_integer): Likewise.
17622         * dwarf2out.c (size_of_loc_descr, size_of_die, output_die)
17623         (clz_loc_descriptor, mem_loc_descriptor): Likewise.
17625 2012-06-01  Eric Botcazou  <ebotcazou@adacore.com>
17627         PR middle-end/53501
17628         * fold-const.c (fold_binary_loc): Refine previous change.
17630 2012-06-01  Olivier Hainque  <hainque@adacore.com>
17632         * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Restore
17633         the "do {" part of the do-while(0) loop.
17635 2012-06-01  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
17637         * config/i386/i386.c (x86_sched_reorder): New function.
17638         Added new function x86_sched_reorder.
17640 2012-06-01  Richard Guenther  <rguenther@suse.de>
17642         * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
17643         Handle PHIs.
17644         (classify_partition): Likewise.
17646 2012-06-01  Richard Guenther  <rguenther@suse.de>
17648         * tree-loop-distribution.c (enum partition_kind): New enum.
17649         (struct partition_s): Add kind and main_stmt members.
17650         (partition_alloc): Initialize kind to PKIND_NORMAL.
17651         (partition_builtin_p): New function.
17652         (copy_loop_before): Remove failure path and assert instead.
17653         (generate_loops_for_partition): Likewise.
17654         (generate_memset_zero): Fold into ...
17655         (generate_memset_builtin): ... this.
17656         (classify_partition): New function with code from
17657         can_generate_builtin and generate_builtin.
17658         (generate_builtin): Remove.
17659         (can_generate_builtin): Likewise.
17660         (fuse_partitions_with_similar_memory_accesses): Call
17661         partition_builtin_p instead of can_generate_builtin.
17662         (rdg_build_partitions): Do not call
17663         fuse_partitions_with_similar_memory_accesses here...
17664         (ldist_gen): ... but here after classifying all partitions.
17665         Remove failure path of generate_code_for_partition.
17666         (generate_code_for_partition): Generate code according
17667         to partition classification.
17669 2012-06-01  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17670             Jonathan Wakely  <jwakely.gcc@gmail.com>
17672         PR c++/50134
17673         * doc/invoke.texi (Warning Options): Explain purpose and differences
17674         between -Wmissing-prototypes and -Wmissing-declarations.
17676 2012-06-01  Christian Bruel  <christian.bruel@st.com>
17678         * gcc.c (save_switch): Add user_p parameter.
17679         (read_specs): Likewise.
17680         (set_specs): Likewise.
17681         (validate_switches): Likewise.
17682         (validate_switches_from_spec): Likewise.
17683         (validate_all_switches): Pass on user_p parameter.
17684         (struct spec_list): Add user_p field.
17685         (struct switchstr): Add known field.
17686         (save_switch): Add known parameter.
17687         (INIT_STATIC_SPEC): Initialize user_p;
17688         (driver_unknown_option_callbac): call save_switch if
17689         OPT_SPECIAL_unknown.
17690         (driver_handle_option): Propagate OPT_specs.
17691         (do_spec_1): Set validated only if known.
17692         (check_live_switch): Likewise.
17693         (validate_switches): Set validated if known or user_spec.
17695 2012-06-01  Hans-Peter Nilsson  <hp@axis.com>
17697         Add CRIS atomic patterns for 1, 2, and 4 bytes.
17698         * config/cris/cris.c (cris_emit_trap_for_misalignment): New function.
17699         * config/cris/cris-protos.h: Declare it.
17700         * config/cris/cris.h [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 32]
17701         (TARGET_DEFAULT): Add alignment by 32.
17702         [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 10] (TARGET_DEFAULT): New
17703         case, as TARGET_CPU_DEFAULT == 0 but with alignment as for
17704         TARGET_CPU_DEFAULT == 32.
17705         (TARGET_TRAP_UNALIGNED_ATOMIC): New macro.
17706         * config/cris/cris.md: Include sync.md.  Avoid allocating specific
17707         numbers by replacing the define_constants for all UNSPECs with the
17708         equivalent define_c_enum construct.
17709         * config/cris/cris.opt (mtrap-unaligned-atomic): New option.
17710         * config/cris/sync.md: New file.
17712 2012-05-31  Matt Turner  <mattst88@gmail.com>
17714         * config/mips/4600.md (r4600_imul_si): Rename from r4600_imul.
17715         (r4600_imul_di): New.
17716         (r4600_idiv_si): Rename from r4600_idiv.
17717         (r4600_idiv_di): New.
17719 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
17721         * output.h (__gcc_host_wide_int__): Move to hwint.h.
17722         (decl_default_tls_model): Move to tree.h
17723         (dump_file): Move to system.h.
17724         (default_stabs_asm_out_destructor, default_stabs_asm_out_constructor,
17725         dbxout_int, dbxout_stabd, dbxout_begin_stabn, dbxout_begin_stabn_sline,
17726         dbxout_begin_empty_stabs, dbxout_begin_simple_stabs,
17727         dbxout_begin_simple_stabs_desc, dbxout_stab_value_zero,
17728         dbxout_stab_value_zero, dbxout_stab_value_label_diff,
17729         dbxout_stab_value_internal_label,
17730         dbxout_stab_value_internal_label_diff): Move from here ...
17731         * dbxout.h: ... to here.
17732         * system.h (dump_file): Moved here from output.h.
17733         * hwint.h (__gcc_host_wide_int__): Moved here from output.h.
17734         * tree.h (decl_default_tls_model): Moved here from output.h.
17735         * varasm.c (default_stabs_asm_out_destructor,
17736         default_stabs_asm_out_constructor): Move from here ...
17737         * dbxout.c: ... to here.
17739         * gcov-dump.c (dump_file): Rename to dump_gcov_file.  Update callers.
17741         * collect2.h (dump_file): Rename to dump_ld_file.
17742         * collect2.c: Likewise.
17743         * tlink.c: Likewise.
17745         * alias.c: Do not include output.h.
17746         * auto-inc-dec.c: Likewise.
17747         * bt-load.c: Likewise.
17748         * caller-save.c: Likewise.
17749         * cfg.c: Likewise.
17750         * cfgbuild.c: Likewise.
17751         * cfgcleanup.c: Likewise.
17752         * cfglayout.c: Likewise.
17753         * cfgloop.c: Likewise.
17754         * cfgloopanal.c: Likewise.
17755         * cfgloopmanip.c: Likewise.
17756         * cfgrtl.c: Likewise.
17757         * cgraph.c: Likewise.
17758         * cgraphclones.c: Likewise.
17759         * combine-stack-adj.c: Likewise.
17760         * combine.c: Likewise.
17761         * cprop.c: Likewise.
17762         * cse.c: Likewise.
17763         * cselib.c: Likewise.
17764         * dbgcnt.c: Likewise.
17765         * df-problems.c: Likewise.
17766         * df-scan.c: Likewise.
17767         * dojump.c: Likewise.
17768         * fwprop.c: Likewise.
17769         * gcse.c: Likewise.
17770         * graph.c: Likewise.
17771         * haifa-sched.c: Likewise.
17772         * hw-doloop.c: Likewise.
17773         * ipa-inline-transform.c: Likewise.
17774         * ipa-pure-const.c: Likewise.
17775         * ipa-reference.c: Likewise.
17776         * ipa-utils.c: Likewise.
17777         * ira-build.c: Likewise.
17778         * ira-emit.c: Likewise.
17779         * lcm.c: Likewise.
17780         * loop-doloop.c: Likewise.
17781         * loop-invariant.c: Likewise.
17782         * loop-iv.c: Likewise.
17783         * loop-unroll.c: Likewise.
17784         * loop-unswitch.c: Likewise.
17785         * lto-cgraph.c: Likewise.
17786         * lto-section-in.c: Likewise.
17787         * lto-streamer-in.c: Likewise.
17788         * mcf.c: Likewise.
17789         * mode-switching.c: Likewise.
17790         * postreload-gcse.c: Likewise.
17791         * postreload.c: Likewise.
17792         * predict.c: Likewise.
17793         * profile.c: Likewise.
17794         * ree.c: Likewise.
17795         * reg-stack.c: Likewise.
17796         * regcprop.c: Likewise.
17797         * regmove.c: Likewise.
17798         * regstat.c: Likewise.
17799         * reload1.c: Likewise.
17800         * sched-ebb.c: Likewise.
17801         * sel-sched-dump.c: Likewise.
17802         * simplify-rtx.c: Likewise.
17803         * stor-layout.c: Likewise.
17804         * store-motion.c: Likewise.
17805         * tracer.c: Likewise.
17806         * tree-affine.c: Likewise.
17807         * tree-cfg.c: Likewise.
17808         * tree-cfgcleanup.c: Likewise.
17809         * tree-dfa.c: Likewise.
17810         * tree-into-ssa.c: Likewise.
17811         * tree-nomudflap.c: Likewise.
17812         * tree-optimize.c: Likewise.
17813         * tree-pretty-print.c: Likewise.
17814         * tree-profile.c: Likewise.
17815         * tree-ssa-address.c: Likewise.
17816         * tree-ssa-ccp.c: Likewise.
17817         * tree-ssa-copy.c: Likewise.
17818         * tree-ssa-dom.c: Likewise.
17819         * tree-ssa-loop-ch.c: Likewise.
17820         * tree-ssa-loop-im.c: Likewise.
17821         * tree-ssa-loop-manip.c: Likewise.
17822         * tree-ssa-loop-niter.c: Likewise.
17823         * tree-ssa-loop-prefetch.c: Likewise.
17824         * tree-ssa-loop-unswitch.c: Likewise.
17825         * tree-ssa-loop.c: Likewise.
17826         * tree-ssa-propagate.c: Likewise.
17827         * tree-ssa-structalias.c: Likewise.
17828         * tree-ssa-tail-merge.c: Likewise.
17829         * tree-ssa-threadedge.c: Likewise.
17830         * tree-ssa-threadupdate.c: Likewise.
17831         * tree-ssa-uncprop.c: Likewise.
17832         * tree-ssa-uninit.c: Likewise.
17833         * tree-ssa.c: Likewise.
17834         * value-prof.c: Likewise.
17835         * var-tracking.c: Likewise.
17836         * web.c: Likewise.
17838         * config/m32r/m32r.c: Include dbxout.h.
17839         * config/pa/pa.c: Likewise.
17840         * config/rs6000/rs6000.c: Likewise.
17842         * Makefile.in: Fix dependencies.
17843         * config/rs6000/t-rs5000: Likewise.
17845 2012-05-31  Aldy Hernandez  <aldyh@redhat.com>
17847         * tree-ssa-loop-im.c (execute_sm): Do not check flag_tm.
17848         * gimple.h (block_in_transaction): Check for flag_tm.
17850 2012-05-31  Aldy Hernandez  <aldyh@redhat.com>
17852         PR tree-optimization/52558
17853         * cfg.c (alloc_aux_for_edge): Fix comment.
17854         (alloc_aux_for_edge): Remove static.
17855         * basic-block.h (alloc_aux_for_edge): Protoize.
17856         * tree-ssa-loop-im.c (execute_sm_if_changed): New.
17857         (execute_sm_if_changed_flag): New.
17858         (execute_sm_if_changed_flag_set): New.
17859         (execute_sm): Do not generate data races unless requested.
17860         (tree_ssa_lim_initialize): Call alloc_aux_for_edges.
17861         (tree_ssa_lim_finalize): Call free_aux_for_edges.
17862         * gimple.h (block_in_transaction): New.
17863         (gimple_in_transaction): Use block_in_transaction.
17865 2012-05-31  Georg-Johann Lay  <avr@gjlay.de>
17867         PR target/51345
17868         * config/avr/avr.opt (-msp8): Document it.
17869         * doc/invoke.texi (AVR Options): Ditto.  And document related
17870         built-in macros.
17872 2012-05-31  Diego Novillo  <dnovillo@google.com>
17874         * configure.ac (CXX_FOR_BUILD): Define and substitute.
17875         (BUILD_CXXFLAGS): Define and substitute.
17876         * Makefile.in (BUILD_CXXFLAGS): Define.
17877         (CXX_FOR_BUILD): Define.
17878         (COMPILER_FOR_BUILD): Set to CXX_FOR_BUILD if building with C++.
17879         (LINKER_FOR_BUILD): Likewise.
17880         (BUILD_COMPILERFLAGS): Set to BUILD_CXXFLAGS if building with C++.
17881         (BUILD_LINKERFLAGS): Likewise.
17882         * configure: Regenerate.
17884 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
17886         * Makefile.in: Fix many dependencies.
17887         * tree-profile.c: Don't include regs.h.
17888         * tree-vectorizer.c: Don't include cfglayout.h.
17889         * tree-vect-stmts.c: Likewise.
17890         * tree-vect-slp.c: Likewise.
17891         * tree-vect-loop.c: Likewise.
17892         * reg-stack.c: Likewise.
17893         * tree-ssa-loop-manip.c: Likewise.
17894         * toplev.c: Likewise.
17895         * varasm.c: Don't include cfglayout.h, basic-block.h,
17896         and tree-iterator.h.
17897         * tree-cfgcleanup.c: Don't include cfglayout.h.
17898         * passes.c: Don't include cfglayout.h, dwarf2asm.h,
17899         dwarf2out.h, dbxout.h, sdbout.h, and xcoffout.h.
17900         * cgraphclones.c: Don't include plugin.h.
17902 2012-05-31  Georg-Johann Lay  <avr@gjlay.de>
17904         * config/avr/t-avr: Correct avr-mmcu.texi dependencies.
17905         (s-avr-mmcu-texi): Don't sed on gen-avr-mmcu-texi output.
17906         * doc/avr-mmcu.texi (svn:eol-style): Set to native.
17908 2012-05-31  Richard Guenther  <rguenther@suse.de>
17910         * tree-loop-distribution.c (struct partition_s): New struct,
17911         typedef and vector type.
17912         (partition_alloc, partition_free): New functions.
17913         (generate_loops_for_partition, generate_builtin,
17914         generate_code_for_partition, rdg_flag_uses, rdg_flag_vertex,
17915         rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
17916         build_rdg_partition_for_component, can_generate_builtin,
17917         similar_memory_accesses, fuse_partitions_with_similar_memory_accesses,
17918         rdg_build_partitions, dump_rdg_partitions, debug_rdg_partitions,
17919         number_of_rw_in_partition, partition_contains_all_rw,
17920         ldist_gen): Use partition_t instead of bitmap.
17922 2012-05-31  Georg-Johann Lay  <avr@gjlay.de>
17924         * config/avr/gen-avr-mmcu-texi.c: Sort MCUs.
17925         * doc/avr-mmcu.texi: Regenerate.
17927 2012-05-31  Richard Guenther  <rguenther@suse.de>
17929         * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
17930         Use FOR_EACH_SSA_DEF_OPERAND.
17931         (generate_builtin): Adjust.
17932         (stmt_generated_in_another_partition): Remove.
17933         (add_scalar_computations_to_partition): Likewise.
17934         (rdg_build_partitions): Do not call
17935         add_scalar_computations_to_partition.
17937 2012-05-31  Eric Botcazou  <ebotcazou@adacore.com>
17939         * tree-dfa.c (get_ref_base_and_extent): Compute the offset using
17940         double ints throughout.
17941         * tree-sra.c (build_user_friendly_ref_for_offset) <RECORD_TYPE>:
17942         Check that the position of the field is representable as an integer.
17944 2012-05-31  Richard Guenther  <rguenther@suse.de>
17946         * tree-data-ref.c (dr_analyze_innermost): Properly convert
17947         the MEM_REF offset to sizetype.
17949 2012-05-31  Georg-Johann Lay  <avr@gjlay.de>
17951         * doc/invoke.texi (AVR Options): Fix typos.
17953 2012-05-31  Hans-Peter Nilsson  <hp@axis.com>
17955         * config/cris/cris.h (CC1_SPEC): Pass through all -march=
17956         and -mcpu= options.
17957         (ASM_SPEC): Ditto, not just -march=v32, but translate non-v10,
17958         non-v32 into --march=v0_v10.
17960 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
17962         * ira-int.h (target_ira_int): Rename x_move_cost to
17963         x_ira_register_move_cost, x_may_move_in_cost to
17964         x_ira_may_move_in_cost and x_may_move_out_cost to
17965         x_ira_may_move_out_cost.  Delete the old fields with
17966         those names and also x_ira_max_register_move_cost,
17967         x_ira_max_may_move_in_cost and x_ira_max_may_move_out_cost.
17968         (move_cost, may_move_in_cost, may_move_out_cost)
17969         (ira_max_register_move_cost, ira_max_may_move_in_cost)
17970         (ira_max_may_move_out_cost): Delete.
17971         * ira.c (init_move_cost): Rename to...
17972         (ira_init_register_move_cost): ...this, deleting the old
17973         function with that name.  Apply above variable renamings.
17974         Retain asserts for null fields.
17975         (ira_init_once): Don't initialize register move costs here.
17976         (free_register_move_costs): Apply above variable renamings.
17977         Remove code for deleted fields.
17979 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
17981         * ira.c (init_move_cost): Adjust choice of subclasses to match
17982         the current ira_init_register_move_cost choice.  Use
17983         ira_class_subset_p instead of reg_class_subset_p.
17984         (ira_init_register_move_cost): Assert that move_cost,
17985         may_move_in_cost and may_move_out_cost already hold the desired
17986         values for their ira_* equivalents.  For the latter two,
17987         ignore classes that can't store a register of the given mode.
17989 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
17991         * ira.c (setup_allocno_and_important_classes): Use
17992         ira_class_hard_regs_num to check whether a class has any
17993         allocatable registers.
17994         (ira_init_register_move_cost): Likewise.
17996 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
17998         * ira.c (init_move_cost): Adjust local variable names to match
17999         file conventions.  Use ira_assert instead of gcc_assert.
18001 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
18003         * regs.h (move_table, move_cost, may_move_in_cost, may_move_out_cost):
18004         Move these definitions and associated target_globals fields to...
18005         * ira-int.h: ...here.
18006         * rtl.h (init_move_cost): Delete.
18007         * reginfo.c (last_mode_for_init_move_cost, init_move_cost): Move to...
18008         * ira.c: ...here, making the latter static.
18010 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
18012         * ira-costs.c (copy_cost): Use ira_init_register_move_cost_if_necessary
18013         and ira_register_move_cost instead of init_move_cost and move_cost.
18015 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
18017         * ira.h (target_ira): Delete x_ira_available_class_regs.
18018         (ira_available_class_regs): Delete.
18019         * ira.c (setup_available_class_regs): Delete.
18020         (setup_alloc_classes): Don't call it.
18021         (setup_pressure_classes): Use ira_class_hard_regs_num instead of
18022         ira_available_class_regs.
18023         * haifa-sched.c (print_curr_reg_pressure, setup_insn_reg_pressure_info)
18024         (model_spill_cost): Likewise.
18025         * ira-build.c (low_pressure_loop_node_p): Likewise.
18026         * ira-color.c (color_pass): Likewise.
18027         * ira-emit.c (change_loop): Likewise.
18028         * ira-lives.c (inc_register_pressure, dec_register_pressure)
18029         (single_reg_class, ira_implicitly_set_insn_hard_regs)
18030         (process_bb_node_lives): Likewise.
18031         * loop-invariant.c (gain_for_invariant): Likewise.
18033 2012-05-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18035         PR target/52999
18036         * config/pa/pa.c (TARGET_SECTION_TYPE_FLAGS): Define.
18037         (pa_section_type_flags): New.
18038         (pa_legitimate_constant_p): Revert previous change.
18040 2012-05-30  Steven Bosscher  <steven@gcc.gnu.org>
18042         * ira.c (allocate_initial_values): Make static.
18044 2012-05-30  Uros Bizjak  <ubizjak@gmail.com>
18046         * config/i386/i386.c (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>:
18047         Generate tls_initial_exec_64_sun only when !TARGET_X32.
18049 2012-05-30  Richard Guenther  <rguenther@suse.de>
18051         PR middle-end/53501
18052         * fold-const.c (fold_binary_loc): Make sure to call
18053         fold_plusminus_mult_expr with the original sign of operands.
18055 2012-05-30  Steven Bosscher  <steven@gcc.gnu.org>
18057         * Makefile.in: Fix many dependencies.
18058         (DWARF2_H): Depend on dwarf2.def.
18059         (RTL_ERROR_H): Depend on rtl-error.h.
18060         (TREE_PRETTY_PRINT_H, GIMPLE_PRETTY_PRINT_H): New.  Replace
18061         all gimple-pretty-print.h and tree-pretty-print.h references.
18063 2012-05-30  Marc Glisse  <marc.glisse@inria.fr>
18065         * simplify-rtx.c (simplify_binary_operation_1): Optimize shuffle of
18066         concatenations.
18068 2012-05-30  Richard Guenther  <rguenther@suse.de>
18070         PR middle-end/53522
18071         * tree-emutls.c (gen_emutls_addr): Do not add globals to
18072         referenced-vars.
18074 2012-05-30  Eric Botcazou  <ebotcazou@adacore.com>
18076         * explow.c (probe_stack_range): Restore simple control flow and stop
18077         again when the probe cannot be generated if HAVE_check_stack.
18079 2012-05-30  Jakub Jelinek  <jakub@redhat.com>
18081         PR rtl-optimization/53519
18082         * combine.c (simplify_shift_const_1) <case NOT>: Use constm1_rtx
18083         instead of GEN_INT (GET_MODE_MASK (mode)) as second operand of XOR.
18085 2012-05-30  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
18087         * config/arm/arm.c (arm_evpc_neon_vrev): Adjust off by one error.
18089 2012-05-29  Jack Howarth  <howarth@bromo.med.uc.edu>
18091         PR debug/53453
18092         * doc/tm.texi: Update.
18093         * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Add @hook.
18094         * target.def (force_at_comp_dir): New hook.
18095         * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Define.
18096         * dwarf2out.c (dwarf2out_finish): Check targetm.force_at_comp_dir.
18098 2012-05-29  Jack Howarth  <howarth@bromo.med.uc.edu>
18100         * config/darwin.h (STARTFILE_SPEC): Do not use -lbundle1.o when
18101         Darwin >= 10.
18102         (DARWIN_DYLIB1_SPEC): Do not use -ldylib1.10.5.o when Darwin >= 10.
18103         (DARWIN_CRT1_SPEC): Use -lcrt1.10.6.o when Darwin >= 10.
18105 2012-05-29  Oleg Endo  <olegendo@gcc.gnu.org>
18107         PR target/51340
18108         * config/sh/sh.c (sh_option_override): Set TARGET_FMAC if
18109         flag_unsafe_math_optimizations is set.
18110         * doc/invoke.texi (SH Options): Add -mno-fused-madd description.
18111         Update description of -mfused-madd.
18113 2012-05-29  Oleg Endo  <olegendo@gcc.gnu.org>
18115         PR target/52941
18116         * config/sh/predicates.md (atomic_arith_operand,
18117         atomic_logical_operand): New predicates.
18118         * config/sh/sh.c (sh_option_override): Check atomic options.
18119         * config/sh/sh.h (TARGET_ANY_ATOMIC, UNSUPPORTED_ATOMIC_OPTIONS,
18120         UNSUPPORTED_HARD_ATOMIC_CPU): New macros.
18121         (DRIVER_SELF_SPECS): Use UNSUPPORTED_ATOMIC_OPTIONS and
18122         UNSUPPORTED_HARD_ATOMIC_CPU.
18123         * config/sh/sync.md: Update description comments.
18124         (I12): New mode iterator.
18125         (fetchop_predicate, fetchop_constraint): New code attributes.
18126         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
18127         atomic_exchangesi_hard, atomic_exchange<mode>_hard,
18128         atomic_fetch_<fetchop_name>si_hard,
18129         atomic_fetch_<fetchop_name><mode>_hard,
18130         atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
18131         atomic_<fetchop_name>_fetchsi_hard,
18132         atomic_<fetchop_name>_fetch<mode>_hard,
18133         atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
18134         atomic_test_and_set_hard): New insns.
18135         (atomic_compare_and_swap<mode>_soft, atomic_exchange<mode>_soft,
18136         atomic_fetch_<fetchop_name><mode>_soft, atomic_fetch_nand<mode>_soft,
18137         atomic_<fetchop_name>_fetch<mode>_soft, atomic_nand_fetch<mode>_soft,
18138         atomic_test_and_set_soft): Use same formatting for the first line of
18139         the asm block as in new insns above.
18140         (atomic_compare_and_swap<mode>, atomic_exchange<mode>,
18141         atomic_fetch_<fetchop_name><mode>, atomic_<fetchop_name>_fetch<mode>,
18142         atomic_test_and_set): Integrate new *_hard insns into expanders.
18143         * config/sh/sh.opt (mhard-atomic): New option.
18144         * doc/invoke.texi (SH Options): Document it.
18146 2012-05-29  Meador Inge  <meadori@codesourcery.com>
18148         * c-decl.c (c_push_function_context): Always create a new language
18149         function.
18150         (c_pop_function_context): Clear the language function created in
18151         c_push_function_context.
18153 2012-05-29  Matt Turner  <mattst88@gmail.com>
18155         * config/alpha/ev6.md: (define_bypass "ev6_fmul,ev6_fadd"): New.
18156         (define_bypass "ev6_fcmov"): New.
18158 2012-05-29  Steven Bosscher  <steven@gcc.gnu.org>
18160         * integrate.c: Remove.
18161         * integrate.h: Remove.
18162         * Makefile.in: Remove make rules for integrate.c and INTEGRATE_H.
18163         * config/arm/t-arm: Remove INTEGRATE_H dependency for target files.
18164         * config/rs6000/t-rs6000: Likewise
18165         * config/spu/t-spu-elf: Likewise.
18166         * function.h (get_hard_reg_initial_val, has_hard_reg_initial_val,
18167         get_hard_reg_initial_reg, emit_initial_value_sets): Move prototypes
18168         from integrate.h to here.
18169         (initial_value_entry): New prototype.
18170         * reload.h (allocate_initial_values): Remove prototype.
18171         * tree.h (set_decl_abstract_flags, set_decl_origin_self): Likewise.
18172         * cse.c (fixed_base_plus_p): Don't handle virtual registers for
18173         integrate.c.
18174         * dwarf2out.c (set_decl_origin_self, set_block_origin_self,
18175         set_decl_abstract_flags, set_block_abstract_flags): Move from
18176         integrate.c to here, the only user.
18177         * expmed.c (extract_fixed_bit_field): Remove outdated comment
18178         about integrate.c.
18179         * function.c: Don't include integrate.h.
18180         (struct initial_value_pair, struct initial_value_struct,
18181         get_hard_reg_initial_val, has_hard_reg_initial_val,
18182         get_hard_reg_initial_reg, emit_initial_value_sets): Move from
18183         integrate.c to here.
18184         (initial_value_entry): New function.
18185         * genemit.c (main): Don't print integrate.h include line.
18186         * ira.c: Don't include integrate.h.
18187         (allocate_initial_values): Move from integrate.c to here.
18188         (ira): Update allocate_initial_values call.
18189         * tree-inline.c: Don't include integrate.h.
18190         (function_attribute_inlinable_p): Moved from integrate.c to here.
18191         * cfgexpand.c: Don't include integrate.h.
18192         * except.c: Likewise.
18193         * langhooks.c: Likewise.
18194         * passes.c: Likewise.
18195         * toplev.c: Likewise.
18196         * config/frv/frv.c: Likewise.
18197         * config/pa/pa.c: Likewise.
18198         * config/spu/spu.c: Likewise.
18199         * config/epiphany/epiphany.c: Likewise.
18200         * config/mep/mep.c: Likewise.
18201         * config/score/score.c: Likewise.
18202         * config/picochip/picochip.c: Likewise.
18203         * config/sh/sh.c: Likewise.
18204         * config/alpha/alpha.c: Likewise.
18205         * config/microblaze/microblaze.c: Likewise.
18206         * config/mips/mips.c: Likewise.
18207         * config/v850/v850.c: Likewise.
18208         * config/mmix/mmix.c: Likewise.
18209         * config/bfin/bfin.c: Likewise.
18210         * config/arm/arm.c: Likewise.
18211         * config/s390/s390.c: Likewise.
18212         * config/m32r/m32r.c: Likewise.
18213         * config/rs6000/rs6000.c: Likewise.
18214         * config/c6x/c6x.c: Include function.h instead of integrate.h.
18215         * config/tilegx/tilegx.c: Likewise.
18216         * config/tilepro/tilepro.c: Likewise.
18218 2012-05-29  Georg-Johann Lay  <avr@gjlay.de>
18220         * config/avr/t-avr (s-avr-mmcu-texi): Call
18221         gen-avr-mmcu-texi$(build_exeext) via ./ and don't assume . is in PATH.
18223 2012-05-29  Michael Matz  <matz@suse.de>
18225         * rtl.h (assign_stack_temp, assign_stack_temp_for_type,
18226         assign_temp): Remove 'keep' argument.
18227         (mark_temp_addr_taken): Remove prototype.
18228         * tree.h (expand_decl): Remove prototype.
18229         * function.c (struct temp_slot): Remove addr_taken and keep member.
18230         (assign_stack_temp_for_type) Don't initialize above, remove
18231         keep argument.
18232         (assign_stack_temp, assign_temp): Remove keep argument.
18233         (mark_temp_addr_taken): Remove.
18234         (preserve_temp_slots): Remove handling of addr_taken and keep members.
18235         (free_temp_slots): Ditto.
18236         * expr.c (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Remove
18237         dead code.
18238         * stmt.c (expand_asm_operands): Remove dead code.
18239         (expand_decl): Remove.
18240         * c-decl.c (finish_struct): Don't call expand_decl.
18241         * builtins.c (expand_builtin_cexpi): Adjust calls to assign_temp
18242         and assign_stack_temp.
18243         * calls.c (save_fixed_argument_area, initialize_argument_information,
18244         expand_call, emit_library_call_value_1, store_one_arg): Ditto.
18245         * expmed.c (extract_bit_field_1): Ditto.
18246         * expr.c (emit_group_load_1, emit_group_store,
18247         copy_blkmode_from_reg, emit_push_insn, expand_assignment,
18248         store_field, expand_constructor, expand_cond_expr_using_cmove,
18249         expand_expr_real_2, expand_expr_real_1): Ditto.
18250         * stmt.c (expand_asm_operands, expand_return): Ditto.
18252         * function.c (pop_temp_slots): Call free_temp_slots.
18253         * calls.c (store_one_arg): Don't call preserve_temp_slots or
18254         free_temp_slots.
18255         * expr.c (expand_assignment): Don't call free_temp_slots.
18257         * config/arm/arm.c (neon_expand_vector_init): Ditto.
18258         * config/i386/i386.c (ix86_expand_vector_set): Ditto.
18259         (ix86_expand_vector_extract): Ditto.
18260         * config/ia64/ia64.c (spill_xfmode_rfmode_operand,
18261         ia64_expand_movxf_movrf): Ditto.
18262         * config/mips/mips.c (mips_expand_vi_general): Ditto.
18263         * config/mmix/mmix.md (floatdisf2, floatunsdisf2, truncdfsf2,
18264         extendsfdf2): Ditto.
18265         * config/rs6000/rs6000.c (rs6000_expand_vector_init,
18266         rs6000_expand_vector_set, rs6000_expand_vector_extract,
18267         rs6000_allocate_stack_temp): Ditto.
18268         * config/rs6000/rs6000.md (fix_trunctfsi2_fprs): Ditto.
18269         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
18270         sparc_emit_float_lib_cmp, sparc_emit_float_lib_cmp,
18271         sparc_expand_vector_init): Ditto.
18273 2012-05-29  Michael Matz  <matz@suse.de>
18275         * c-tree.h (c_expand_decl): Remove prototype.
18277         * expr.c (expand_expr_real_1 <normal_inner_ref>): Don't allocate
18278         a kept temp.
18279         (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Make unreachable.
18280         * gimple-fold.c (canonicalize_constructor_val): Canonicalize
18281         COMPOUND_LITERAL_EXPR.
18282         * function.c (expand_function_start): Don't call expand_decl,
18283         instead assert that we have RTL assigned.
18284         * tree-ssa-live.c (remove_unused_locals): Clear
18285         nonlocal_goto_save_area if its backing variable is removed.
18286         * stmt.c (expand_asm_operands): Remove handling of non-lvalues
18287         as mem inputs.
18288         (expand_decl): Assert that this does nothing.
18289         * calls.c (expand_call): Don't call mark_temp_addr_taken.
18291 2012-05-29  Richard Guenther  <rguenther@suse.de>
18293         PR tree-optimization/53516
18294         * tree-data-ref.c (stmt_with_adjacent_zero_store_dr_p): Reject
18295         bitfield accesses.
18296         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
18298 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
18300         * LANGUAGES: Fix typos.
18301         * Makefile.in: Fix typos.
18302         * alias.c: Fix typos.
18303         * auto-inc-dec.c: Fix typos.
18304         * bb-reorder.c: Fix typos.
18305         * cfgcleanup.c: Fix typos.
18306         * cgraph.c: Fix typos.
18307         * cgraph.h: Fix typos.
18308         * cgraphunit.c: Fix typos.
18309         * collect2-aix.h: Fix typos.
18310         * collect2.c: Fix typos.
18311         * compare-elim.c: Fix typos.
18312         * config/alpha/vms.h: Fix typos.
18313         * config/arm/README-interworking: Fix typos.
18314         * config/arm/arm.c: Fix typos.
18315         * config/arm/iterators.md: Fix typos.
18316         * config/arm/vxworks.h: Fix typos.
18317         * config/avr/avr.c: Fix typos.
18318         * config/avr/avr.h: Fix typos.
18319         * config/avr/avr.md: Fix typos.
18320         * config/avr/builtins.def: Fix typos.
18321         * config/c6x/c6x.c: Fix typos.
18322         * config/cr16/cr16.c: Fix typos.
18323         * config/cr16/cr16.md: Fix typos.
18324         * config/cris/cris.md: Fix typos.
18325         * config/darwin.c: Fix typos.
18326         * config/darwin.opt: Fix typos.
18327         * config/i386/i386-c.c: Fix typos.
18328         * config/i386/i386.c: Fix typos.
18329         * config/ia64/ia64.c: Fix typos.
18330         * config/m68k/cf.md: Fix typos.
18331         * config/mep/mep.c: Fix typos.
18332         * config/microblaze/microblaze.c: Fix typos.
18333         * config/microblaze/microblaze.h: Fix typos.
18334         * config/mn10300/mn10300.c: Fix typos.
18335         * config/mn10300/mn10300.md: Fix typos.
18336         * config/pa/pa.c: Fix typos.
18337         * config/picochip/picochip.h: Fix typos.
18338         * config/rs6000/a2.md: Fix typos.
18339         * config/rs6000/rs6000.c: Fix typos.
18340         * config/rs6000/vector.md: Fix typos.
18341         * config/rx/rx.md: Fix typos.
18342         * config/rx/rx.opt: Fix typos.
18343         * config/s390/2097.md: Fix typos.
18344         * config/s390/s390.c: Fix typos.
18345         * config/s390/s390.h: Fix typos.
18346         * config/sh/sh.c: Fix typos.
18347         * config/sh/sh.md: Fix typos.
18348         * config/sparc/sync.md: Fix typos.
18349         * config/spu/spu.c: Fix typos.
18350         * config/spu/spu.md: Fix typos.
18351         * config/vms/vms.c: Fix typos.
18352         * config/vxworks-dummy.h: Fix typos.
18353         * config/vxworks.h: Fix typos.
18354         * cselib.c: Fix typos.
18355         * df-scan.c: Fix typos.
18356         * df.h: Fix typos.
18357         * doc/extend.texi: Fix typos.
18358         * doc/install.texi: Fix typos.
18359         * doc/invoke.texi: Fix typos.
18360         * doc/md.texi: Fix typos.
18361         * doc/plugins.texi: Fix typos.
18362         * doc/rtl.texi: Fix typos.
18363         * dse.c: Fix typos.
18364         * dwarf2asm.c: Fix typos.
18365         * dwarf2out.c: Fix typos.
18366         * except.h: Fix typos.
18367         * expr.c: Fix typos.
18368         * fold-const.c: Fix typos.
18369         * gcc.c: Fix typos.
18370         * gcse.c: Fix typos.
18371         * genautomata.c: Fix typos.
18372         * gengtype-state.c: Fix typos.
18373         * gengtype.c: Fix typos.
18374         * genhooks.c: Fix typos.
18375         * gimple-fold.c: Fix typos.
18376         * gimple-pretty-print.c: Fix typos.
18377         * gimple.c: Fix typos.
18378         * gimple.h: Fix typos.
18379         * gimplify.c: Fix typos.
18380         * graphite-interchange.c: Fix typos.
18381         * graphite-sese-to-poly.c: Fix typos.
18382         * ifcvt.c: Fix typos.
18383         * input.c: Fix typos.
18384         * ipa-cp.c: Fix typos.
18385         * ipa-inline-analysis.c: Fix typos.
18386         * ipa-inline-transform.c: Fix typos.
18387         * ipa-inline.c: Fix typos.
18388         * ipa-pure-const.c: Fix typos.
18389         * ipa-ref.h: Fix typos.
18390         * ipa-reference.c: Fix typos.
18391         * ipa-utils.c: Fix typos.
18392         * ipa.c: Fix typos.
18393         * ira-emit.c: Fix typos.
18394         * ira-lives.c: Fix typos.
18395         * lto-streamer.c: Fix typos.
18396         * lto-streamer.h: Fix typos.
18397         * lto-wrapper.c: Fix typos.
18398         * mcf.c: Fix typos.
18399         * mode-switching.c: Fix typos.
18400         * modulo-sched.c: Fix typos.
18401         * plugin.c: Fix typos.
18402         * postreload.c: Fix typos.
18403         * sched-deps.c: Fix typos.
18404         * sel-sched-ir.c: Fix typos.
18405         * sel-sched-ir.h: Fix typos.
18406         * sel-sched.c: Fix typos.
18407         * sese.c: Fix typos.
18408         * stor-layout.c: Fix typos.
18409         * target-hooks-macros.h: Fix typos.
18410         * target.def: Fix typos.
18411         * trans-mem.c: Fix typos.
18412         * tree-eh.c: Fix typos.
18413         * tree-predcom.c: Fix typos.
18414         * tree-sra.c: Fix typos.
18415         * tree-ssa-address.c: Fix typos.
18416         * tree-ssa-loop-ivopts.c: Fix typos.
18417         * tree-ssa-loop-niter.c: Fix typos.
18418         * tree-ssa-math-opts.c: Fix typos.
18419         * tree-ssa-pre.c: Fix typos.
18420         * tree-ssa-propagate.c: Fix typos.
18421         * tree-ssa-reassoc.c: Fix typos.
18422         * tree-ssa-sccvn.c: Fix typos.
18423         * tree-ssa-ter.c: Fix typos.
18424         * tree-ssa-uninit.c: Fix typos.
18425         * tree-ssanames.c: Fix typos.
18426         * tree-vect-generic.c: Fix typos.
18427         * tree-vect-slp.c: Fix typos.
18428         * tree.c: Fix typos.
18429         * tree.h: Fix typos.
18430         * varasm.c: Fix typos.
18431         * varpool.c: Fix typos.
18433 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
18435         * doc/include/texinfo.tex: Update to version 2012-05-16.16.
18437 2012-05-29  Richard Guenther  <rguenther@suse.de>
18439         * tree-dfa.c (find_vars_r): Do not call add_referenced_vars
18440         for globals.
18441         (add_referenced_var_1): Re-organize.  Assert we are not
18442         called for globals.
18443         (remove_referenced_var): Likewise.
18444         * varpool.c (add_new_static_var): Use create_tmp_var_raw.
18445         * tree-mudflap.c (execute_mudflap_function_ops): Do not
18446         call add_referenced_var on globals.
18447         * matrix-reorg.c (transform_access_sites): Likewise.
18449 2012-05-29  Steven Bosscher  <steven@gcc.gnu.org>
18451         * alias.c (reg_known_value): Make this a VEC.
18452         (reg_known_equiv_p): Make this an sbitmap.
18453         (reg_known_value_size): Remove.
18454         (get_reg_known_value, set_reg_known_value, get_reg_known_equiv_p,
18455         set_reg_known_equiv_p): Update for reg_known_value and
18456         reg_known_value_size data structure change.
18457         (init_alias_analysis, end_alias_analysis): Likewise.
18459 2012-05-29  Jakub Jelinek  <jakub@redhat.com>
18461         PR middle-end/53510
18462         * input.c (read_line): Use XRESIZEVEC instead of XNEWVEC
18463         to avoid leaking memory.  No need to handle memory allocation
18464         failure.  Double string_len on each reallocation instead of adding 2.
18465         * gcov.c (read_line): Likewise.
18467 2012-05-29  Hans-Peter Nilsson  <hp@axis.com>
18469         * config/cris/cris.h (TARGET_HAS_BREAK, TARGET_TRAP_USING_BREAK8):
18470         New macros.
18471         * config/cris/cris.md ("trap"): Define, enabled for
18472         TARGET_TRAP_USING_BREAK8.
18473         * config/cris/cris.opt (mtrap-using-break8): New option.
18475 2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>
18477         PR c++/25137
18478         * doc/invoke.texi: Document -Wmissing-braces not enabled by -Wall
18479         for C++.
18481 2012-05-28  Hans-Peter Nilsson  <hp@axis.com>
18483         * doc/md.texi (stack_protect_test): Remove negation of branch to label.
18484         (Standard Names): Fix typos in documentation of atomic patterns.
18486 2012-05-27  Nathan Sidwell  <nathan@acm.org>
18488         * tree.c (build_constructor): Propagate TREE_SIDE_EFFECTS.
18490 2012-05-26  Jason Merrill  <jason@redhat.com>
18492         PR c++/53220
18493         * c-typeck.c (array_to_pointer_conversion): Give -Wc++-compat warning
18494         about array compound literals.
18496 2012-05-26  Eric Botcazou  <ebotcazou@adacore.com>
18498         * cfgcleanup.c (try_optimize_cfg): Do not delete forwarder blocks
18499         if CLEANUP_NO_INSN_DEL.
18500         * cfgrtl.c (unique_locus_on_edge_between_p): New function extracted
18501         from cfg_layout_merge_blocks.
18502         (emit_nop_for_unique_locus_between): New function.
18503         (rtl_merge_blocks): Invoke emit_nop_for_unique_locus_between.
18504         (cfg_layout_merge_blocks): Likewise.
18506 2012-05-26  Dimitrios Apostolou  <jimis@gmx.net>
18507             Paolo Bonzini  <bonzini@gnu.org>
18509         * df-scan.c (df_def_record_1): Assert a parallel must contain an
18510         EXPR_LIST at this point.  Receive the LOC and move its extraction...
18511         (df_defs_record): ... here. Change if-else to a switch statement.
18512         (df_find_hard_reg_defs, df_find_hard_reg_defs_1): New.
18513         (df_get_call_refs): Changed defs_generated from bitmap to HARD_REG_SET
18514         and compute it from df_find_hard_reg_defs(). Record DF_REF_BASE
18515         DEFs in REGNO order. Use HARD_REG_SET instead of bitmap for
18516         regs_invalidated_by_call.
18517         (df_insn_refs_collect): Record DF_REF_REGULAR DEFs after
18518         df_get_call_refs().
18520 2012-05-25  Eric Botcazou  <ebotcazou@adacore.com>
18522         PR lto/52178
18523         * tree-inline.c (remap_gimple_op_r): Fix handling of FIELD_DECL.
18524         * tree.c (RETURN_TRUE_IF_VAR): Do not return true for PLACEHOLDER_EXPR.
18526 2012-05-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
18528         * config/rs6000/t-linux64: Delete the 32-bit multilib that uses
18529         software floating point emulation.  No longer build the multilibs
18530         with -mstrict-align.
18532 2012-05-25  Aldy Hernandez  <aldyh@redhat.com>
18534         PR middle-end/53008
18535         * trans-mem.c (ipa_tm_create_version_alias): Output new_node if
18536         accessed indirectly.
18537         (ipa_tm_create_version): Same.
18539 2012-05-25  Uros Bizjak  <ubizjak@gmail.com>
18541         PR target/53474
18542         * config/i386/i386.c (ix86_print_operand) <case 'O'>: Print '.' here.
18543         <case 'C', case 'c', case 'F', case 'f'>: Print '.' only for C and c.
18545 2012-05-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18547         PR target/53435
18548         * config/i386/i386.c (ix86_expand_vec_perm): Use correct op.
18549         (ix86_expand_vec_perm): Use int mode instead of float.
18550         (expand_vec_perm_pshufb): Remove handling of useseless type
18551         conversion.
18553 2012-05-25  Eric Botcazou  <ebotcazou@adacore.com>
18555         PR ada/52362
18556         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Set gas and
18557         gnu_ld variables to yes.
18558         * configure.ac (HAVE_GNU_LD): Move to after config.gcc inclusion.
18559         (HAVE_GNU_AS): Likewise.
18560         * config.in: Regenerate.
18561         * configure: Likewise.
18563 2012-05-25  Tristan Gingold  <gingold@adacore.com>
18565         * config/i386/i386.c (struct ix86_frame): Remove unused frame field.
18566         (ix86_compute_frame_layout): Fix type of stack_alignment_needed
18567         and preferred_alignment.
18569 2012-05-25  Tristan Gingold  <gingold@adacore.com>
18571         * common/config/ia64/ia64-common.c (ia64_except_unwind_info): Fix typo.
18573 2012-05-25  Thomas Schwinge  <thomas@codesourcery.com>
18575         * fold-const.c (optimize_bit_field_compare): Abort early in the strict
18576         volatile bitfields case.
18578 2012-05-24  Pat Haugen  <pthaugen@us.ibm.com>
18580         * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
18581         rs6000_sched_costly_dep default to true_store_to_load_dep_costly.
18582         (adjacent_mem_locations): Move some code to and call...
18583         (get_memref_parts): ...new function.
18584         (mem_locations_overlap): New function.
18585         (rs6000_adjust_priority): Adjust calls to is_load_insn/is_store_insn.
18586         (is_mem_ref): Rename to...
18587         (find_mem_ref): ...this. Return MEM rtx.
18588         (get_store_dest): Remove function.
18589         (is_load_insn1, is_load_insn, is_store_insn1, is_store_insn): Add
18590         new parameter and adjust calls.
18591         (rs6000_is_costly_dependence): Update calls for extra arg. Make sure
18592         mem refs overlap for true_store_to_load_dep_costly.
18593         (rs6000_sched_reorder2): Update calls for extra arg. Adjust args
18594         passed to adjacent_mem_locations.
18595         (is_costly_group): Walk resolved dependency list.
18596         (force_new_group): Emit group ending nop for Power6/Power7.
18597         * config/rs6000/rs6000.md (UNSPEC_GRP_END_NOP): New enum value.
18598         (group_ending_nop): New define_insn.
18600 2012-05-24  Dodji Seketeli  <dodji@redhat.com>
18602         Make unwound macro expansion trace less redundant
18603         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Don't print
18604         context of macro definition in the trace, when it's redundant.
18605         Update comments.
18607 2012-05-24  Richard Guenther  <rguenther@suse.de>
18609         PR middle-end/53460
18610         * tree-profile.c (tree_profiling): Cleanup the CFG if
18611         execute_fixup_cfg requests it.
18613 2012-05-24  Richard Guenther  <rguenther@suse.de>
18615         * tree-flow.h (create_var_ann): Remove.
18616         * tree-dfa.c (create_var_ann): Remove and inline into its
18617         single caller ...
18618         (add_referenced_var_1): ... here.
18619         * varpool.c (add_new_static_var): Do not call add_referenced_var
18620         for global vars.
18621         * gimple-fold.c (canonicalize_constructor_val): Likewise.
18622         * tree-switch-conversion.c (build_one_array): Likewise.
18623         * tree-profile.c (gimple_gen_ic_profiler): Likewise.
18624         * tree-flow-inline.h (gimple_referenced_vars): Guard against
18625         NULL fn argument.
18626         * tree-inline.c (remap_gimple_op_r): Likewise.  Check
18627         gimple_referenced_vars instead of gimple_in_ssa_p.
18628         (copy_tree_body_r): Likewise.
18629         (setup_one_parameter): Likewise.
18630         (declare_return_variable): Likewise.
18631         (tree_function_versioning): Likewise.
18633 2012-05-24  Jakub Jelinek  <jakub@redhat.com>
18635         PR tree-optimization/53465
18636         * tree-vrp.c (extract_range_from_cond_expr): First copy_value_range
18637         vr0 into *vr, then vrp_meet that.
18638         (vrp_meet): If one vr type is VR_UNDEFINED, ensure the result doesn't
18639         have any equivalences.
18640         (vrp_visit_phi_node): Call copy_value_range instead of vrp_meet the
18641         first time.
18643 2012-05-24  Jim MacArthur  <jim.macarthur@arm.com>
18645         * recog.c (reg_fits_class_p): Check both regno and regno + offset are
18646         hard registers.
18647         * regs.h (in_hard_reg_set_p): Assert that regno is a hard register and
18648         check end_regno - 1 is a hard register.
18650 2012-05-24  Richard Guenther  <rguenther@suse.de>
18652         * varpool.c (add_new_static_var): Remove call to create_var_ann.
18653         * tree-ssa-operands.c (create_vop_var): Likewise.
18655 2012-05-24  Richard Guenther  <rguenther@suse.de>
18657         PR bootstrap/53466
18658         * tree-ssa-live.c (remove_unused_scope_block_p): Properly
18659         handle globals.
18660         (remove_unused_locals): Pass global_unused_vars to
18661         remove_unused_scope_block_p.  Restore code walking all
18662         referenced vars and pruning them.
18664 2012-05-23  Jan Hubicka  <jh@suse.cz>
18666         * tree.h (alias_diag_flags): Remove.
18667         (alias_pair): Remove emitted_diags.
18668         (finish_aliases_1, finish_aliases_2, remove_unreachable_alias_pairs,
18669         symbol_alias_set_t, symbol_alias_set_destroy,
18670         symbol_alias_set_contains, propagate_aliases_backward): Remove.
18671         * toplev.c (compile_file): Do not call finish_aliases_2
18672         * cgraphunit.c (cgraph_process_new_functions): Do not call
18673         finish_aliases_1.
18674         (handle_alias_pairs): Output diagnostics about aliases to externals.
18675         (assemble_thunks_and_aliases): Use do_assemble_alias.
18676         (output_weakrefs): Likewise.
18677         (finalize_compilation_unit): Do not call finish_aliases_1.
18678         * ipa.c (symtab_remove_unreachable_nodes): De not call
18679         remove_unreachable_alias_pairs.
18680         * varasm.c (do_assemble_alias): Export.
18681         (symbol_alias_set_create, symbol_alias_set_destroy,
18682         symbol_alias_set_contains, symbol_alias_set_insert,
18683         propagate_aliases_forward, propagate_aliases_backward,
18684         propagate_aliases_backward, trivially_visible_alias,
18685         trivially_defined_alias, remove_unreachable_alias_pairs,
18686         finish_aliases_1, finish_aliases_2, assemble_alias): Remove.
18687         * output.h (do_assemble_alias): Declare.
18688         * varpool.c (varpool_remove_unreferenced_decls): Do not call
18689         finish_aliases_1.
18691 2012-05-23  Martin Jambor  <mjambor@suse.cz>
18693         * ipa-inline-analysis.c (inline_merge_summary): Free operand_map.
18695 2012-05-23  Eric Botcazou  <ebotcazou@adacore.com>
18697         * gimple.c (gimple_types_compatible_p_1) <ARRAY_TYPE>: Remove bogus
18698         size handling.
18699         (gimple_canonical_types_compatible_p) <ARRAY_TYPE>: Likewise.
18700         (iterative_hash_gimple_type): Adjust comment.
18701         (iterative_hash_canonical_type): Likewise.  Hash the bounds of the
18702         domain for an array type instead of the domain type itself.
18704 2012-05-23  Richard Guenther  <rguenther@suse.de>
18706         PR tree-optimization/53438
18707         * tree-sra.c (analyze_access_subtree): Correct bitfield exclusion.
18709 2012-05-23  Georg-Johann Lay  <avr@gjlay.de>
18711         PR target/53448
18712         * config/avr/avr.h (ASM_OUTPUT_ALIGN): Don't inhibit .p2align 1.
18713         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Use
18714         ASM_OUTPUT_ALIGN.
18716 2012-05-23  Richard Guenther  <rguenther@suse.de>
18718         * tree-dfa.c (add_referenced_var_1): Do not add global vars.
18719         * tree-ssa-live.c (mark_all_vars_used_1): Handle global vars
18720         via the global_unused_vars bitmap.
18721         (remove_unused_locals): Handle global vars in local-decls via
18722         a global_unused_vars bitmap instead of the used flag in the
18723         var annotation.  Simplify global variable handling and removal.
18725 2012-05-22  Jan Hubicka  <jh@suse.cz>
18727         PR middle-end/53426
18728         * tree-ssa-structalias.c (create_variable_info_for): Skip constructors
18729         from other partitions.
18731 2012-05-22  Jan Hubicka  <jh@suse.cz>
18733         PR middle-end/53161
18734         * symtab.c (symtab_register_node): Fix ordering issue.
18736 2012-05-22  Steven Drake <sbd@NetBSD.org>
18738         * gcc.c (do_spec_1): Add %M spec token to output multilib_os_dir.
18740 2012-05-22  David Edelsohn  <dje.gcc@gmail.com>
18742         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
18743         Use strip_name_encoding target hook.
18745 2012-05-22  Richard Guenther  <rguenther@suse.de>
18747         * tree.h (VAR_DECL_IS_VIRTUAL_OPERAND): New.
18748         (init_function_for_compilation): Remove.
18749         * tree-dfa.c (find_vars_r): Take struct function argument.
18750         (find_referenced_vars_in): Adjust.
18751         * tree-ssa-operands.c (clobber_stats): Remove.
18752         (create_vop_var): Take struct function argument.  Mark
18753         virtual operand with VAR_DECL_IS_VIRTUAL_OPERAND.
18754         (init_ssa_operands): Take struct function argument.
18755         (fini_ssa_operands): Do not dump dead stats.
18756         * tree-ssa-operands.h (init_ssa_operands): Take struct function
18757         argument.
18758         * cgraphunit.c (init_lowered_empty_function): Adjust.
18759         * lto-streamer-in.c (input_cfg): Likewise.
18760         * tree-inline.c (initialize_cfun): Likewise.
18761         * tree-into-ssa.c (rewrite_into_ssa): Likewise.
18762         * omp-low.c (expand_omp_taskreg): Likewise.  Avoid switching cfun.
18763         * gimple.c (is_gimple_reg): Optimize the SSA_NAME case,
18764         virtual operands are not registers.
18766 2012-05-22  Richard Guenther  <rguenther@suse.de>
18768         * tree-cfg.c (verify_gimple_assign_unary): Fix typo in previous commit.
18770 2012-05-22  Richard Guenther  <rguenther@suse.de>
18772         PR middle-end/53437
18773         * tree-inline.c (setup_one_parameter): Create a dummy init
18774         statement for unused parameters when not optimizing.
18776 2012-05-22  Richard Guenther  <rguenther@suse.de>
18778         * tree-flow.h (add_referenced_var_1): Declare.
18779         (add_referenced_var): Define.
18780         * tree-dfa.c (referenced_var_check_and_insert): Avoid one hash lookup.
18781         (add_referenced_var): Rename to ...
18782         (add_referenced_var_1): ... this.  Take struct function argument.
18784 2012-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
18786         PR target/53334
18787         * config/arm/arm-protos.h (arm_validize_comparison): Declare.
18788         * config/arm/arm.c (arm_validize_comparison): Define.
18789         * config/arm/arm.md ("cbranchsi4"): Cleanup expansion and use
18790         arm_validize_comparison.
18791         ("cbranchdi4"): Likewise.
18792         ("cstoredi4"): Likewise.
18793         ("movsicc"): Likewise.
18794         ("movsfcc"): Likewise.
18795         ("movdfcc"): Likewise.
18797 2012-05-22  Dimitrios Apostolou  <jimis@gmx.net>
18799         * df-scan.c (df_scan_alloc): Round up allocation pools size, reduce
18800         the mw_reg_pool size.
18802 2012-05-22  Paolo Bonzini  <bonzini@gnu.org>
18804         PR tree-optimization/53336
18805         * tree-cfg.c (verify_gimple_assign_unary): Allow conversion from
18806         non-integer integral types to offset type and vice versa.
18808 2012-05-22  Alan Modra  <amodra@gmail.com>
18810         * config/rs6000/aix.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
18811         * config/rs6000/darwin.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
18812         * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE,
18813         V_SAVE_INLINE): Delete.
18814         * config/rs6000/rs6000.c (V_SAVE_INLINE): Delete.
18815         (rs6000_savres_strategy): Reimplement GP/FP/V_SAVE_INLINE logic.
18816         For ELF targets, use out-of-line restores for -Os and any number
18817         of regs if the restore exits, and out-of-line gp save for two or
18818         more regs.  Use save_reg_p to test for holes in reg restore set.
18819         Replace "#if" with "if".
18821 2012-05-22  Alan Modra  <amodra@gmail.com>
18823         * config/rs6000/rs6000.c (save_reg_p): New function.
18824         (first_reg_to_save, first_fp_reg_to_save): Use it here.
18825         (first_altivec_reg_to_save, restore_saved_cr): Likewise.
18826         (emit_frame_save): Use gen_frame_store.
18827         (gen_frame_mem_offset): Correct SPE condition requiring reg+reg.
18828         (rs6000_emit_prologue): Use save_reg_p.  Use gen_frame_store for
18829         vrsave and toc.
18830         (rs6000_emit_epilogue): Use save_reg_p.  Use gen_frame_load for
18831         vrsave, toc, gp and fp restores.
18833 2012-05-22  Alan Modra  <amodra@gmail.com>
18835         * config/rs6000/rs6000.c: Delete unnecessary forward declarations.
18836         Move those with ATTRIBUTE_UNUSED to immediately before definitions.
18837         Move function pointer variables after forward declarations.
18838         (rs6000_builtin_support_vector_misalignment): Make static.
18839         (rs6000_legitimate_address_p, rs6000_gimplify_va_arg): Likewise.
18840         (rs6000_function_value, rs6000_can_eliminate): Likewise.
18842 2012-05-21  Bernd Schmidt  <bernds@codesourcery.com>
18844         PR rtl-optimization/53373
18845         * caller-save.c (save_call_clobbered_regs): Look into a possible
18846         PARALLEL manually rather than using single_set on a call insn.
18848 2012-05-21  Jakub Jelinek  <jakub@redhat.com>
18850         PR tree-optimization/53436
18851         * omp-low.c (omp_build_component_ref): New function.
18852         (build_receiver_ref, build_sender_ref, create_task_copyfn): Use it.
18854 2012-05-21  Uros Bizjak  <ubizjak@gmail.com>
18856         * config/i386/i386.c (put_condition_code): Change "reverse" and "fp"
18857         arguments to bool.
18858         (ix86_print_operand) <case 'O'>: Look at mode size of the operand.
18859         Do not print '.' here.  Output operand lossage error for unhandled
18860         sizes.  Move.
18861         <case '*'>: Move.
18862         <case '&'>: Ditto.
18863         <case 'Y'>: Ditto.
18864         <case 'z'>: Hardcode "code" argument into error strings.
18865         <case 'Z'>: Ditto.
18866         <case 'D'>: Merge AVX and non-AVX codes.
18867         <case 'C', case 'c', case 'F', case 'f'>: Merge.  Fix error string.
18868         Update call to put_condition_code.
18870 2012-05-21  Andreas Schwab  <schwab@linux-m68k.org>
18872         * config/m68k/m68k.md (*clzsi2_cf): Renamed from clzsi2.  Call
18873         CC_STATUS_INIT.
18874         (clzsi2): New expander.
18875         (*clzsi2_68k): New insn.
18876         * config/m68k/m68k.h: Update comment about CLZ_DEFINED_VALUE_AT_ZERO.
18878 2012-05-21  Aldy Hernandez  <aldyh@redhat.com>
18880         * gimple.h (gimple_set_in_transaction): Remove.
18881         (gimple_in_transaction): Look in BB instead.
18882         (gimple_statement_base): Remove in_transaction field.
18883         * basic-block.h (enum bb_flags): Add BB_IN_TRANSACTION.
18884         * trans-mem.c (compute_transaction_bits): Place transaction bit
18885         information into basic blocks.
18887 2012-05-21  Andreas Schwab  <schwab@linux-m68k.org>
18889         * expr.c (get_def_for_expr_class): Define only if
18890         HAVE_conditional_move.
18891         (convert_tree_comp_to_rtx): Likewise.
18893 2012-05-21  Uros Bizjak  <ubizjak@gmail.com>
18895         PR target/53399
18896         * config/i386/i386.md (ffs<mode>2): Generate CCCmode compare
18897         for TARGET_BMI.
18898         (ffssi2_no_cmove): Ditto.
18899         (*ffs<mode>_1): Remove insn pattern.
18900         (*tzcnt<mode>_1): New insn pattern.
18901         (*bsf<mode>1): Ditto.
18903 2012-05-21  Richard Guenther  <rguenther@suse.de>
18905         * tree-dfa.c (add_referenced_var): Do not walk DECL_INITIAL for
18906         more referenced vars.
18907         * tree-ssa-live.c (mark_all_vars_used_1): Only set the used
18908         flag on variables that have a var-annotation.
18910 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
18912         PR c/53418
18913         * c-typeck.c (build_conditional_expr): Remove C_MAYBE_CONST_EXPR
18914         from folded operands before wrapping another around the
18915         conditional expression.
18917 2012-05-21  Jakub Jelinek  <jakub@redhat.com>
18919         PR tree-optimization/53366
18920         * tree-vect-slp.c (vect_supported_load_permutation_p): Don't shortcut
18921         tests if complex_numbers == 2, but there are non-complex number loads
18922         too.
18924         PR tree-optimization/53409
18925         * tree-vect-loop.c (vect_analyze_loop_operations): Don't check
18926         vinfo_for_stmt (op_def_stmt) if op_def_stmt isn't inside loop.
18928         PR tree-optimization/53410
18929         * fold-const.c (fold_binary_loc): Use build_zero_cst (type)
18930         instead of build_int_cst (type, 0) where vector types might be
18931         involved. Instead of build_int_cst (type, 1) convert the original
18932         integer_onep argument to the desired type.
18934 2012-05-21  Michael Matz  <matz@suse.de>
18936         * genattrtab.c (attr_rtx_cost): Move earlier, start with cost being 1.
18937         (simplify_test_exp): Handle one more case of distributive law,
18938         decrease cost threshold.
18939         (tests_attr_p, get_attr_order): New functions.
18940         (optimize_attrs): Use topological order, inline only cheap values.
18941         (write_attr_set): Reset our_known_true after some time.
18943 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
18945         PR target/53425
18946         * config/i386/i386.c (type_natural_mode): Warn passing SSE
18947         vector argument without SSE enabled changes the ABI.
18949 2012-05-21  Richard Guenther  <rguenther@suse.de>
18951         PR tree-optimization/53408
18952         * tree-vect-loop.c (vectorizable_induction): Properly check
18953         the restriction that we cannot handle induction results from
18954         the inner loop outside of the outer loop.
18956 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
18958         PR target/53416
18959         * config/i386/i386.md (UNSPEC_RDRAND): Renamed to ...
18960         (UNSPECV_RDRAND): This.
18961         (rdrand<mode>_1): Updated.
18963 2012-05-21  Richard Guenther  <rguenther@suse.de>
18965         * tree-loop-distribution.c (can_generate_builtin): Reject
18966         volatile stmts.
18968 2012-05-21  Chung-Lin Tang  <cltang@codesourcery.com>
18970         * Makefile.in (options.c): Add options.h to included header
18971         files, before tm.h.
18973 2012-05-21  Razya Ladelsky  <razya@il.ibm.com>
18975         * tree-parloops.c : Add myself to contributors, update
18976         TODO list, add link to wiki.
18978 2012-05-21  Alan Modra  <amodra@gmail.com>
18980         * config/rs6000/predicates.md (input_operand): Don't match
18981         constant pool addresses.  Remove label_ref, high and plus from
18982         match_code list.  Remove redundant CONSTANT_P test.
18983         (splat_input_operand): Similarly update match_code list.
18984         (small_toc_ref): New predicate.
18985         * config/rs6000/rs6000-protos.h (toc_relative_expr_p): Update prototype.
18986         * config/rs6000/rs6000.c (tocrel_base, tocrel_offset): Make const.
18987         (legitimate_constant_pool_address_p): Move TARGET_TOC test and
18988         register checks to..
18989         (toc_relative_expr_p): ..here.  Add "strict" param.  Match new rtl
18990         generated by create_TOC_reference.
18991         (rs6000_legitimize_address): Update cerate_TOC_reference call.
18992         (rs6000_delegitimize_address): Handle new rtl for toc refs.
18993         (rs6000_cannot_force_const_mem, rs6000_find_base_term): Likewise.
18994         (use_toc_relative_ref): New function, split out from..
18995         (rs6000_emit_move): ..here.  Remove redundant tests.  Update
18996         create_TOC_reference calls.
18997         (rs6000_legitimize_reload_address): Formatting.  Handle splitting
18998         of medium/large model toc addresses.  Use use_toc_relative_ref.
18999         (print_operand): Formatting, style.  Adjust for toc changes.
19000         (print_operand_address): Likewise.
19001         (rs6000_output_addr_const_extra): Likewise.
19002         (create_TOC_reference): Put TOC_REGISTER in UNSPEC_TOCREL rather
19003         than a PLUS.  Use this formulation for both high and low part
19004         of -mcmodel=medium/large toc reference too.  Before reload,
19005         always use the small model formulation.
19006         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Similarly avoid
19007         a PLUS in high part of addresses here.
19008         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
19009         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
19010         (largetoc_high, largetoc_low): Move earlier.  Cope when no
19011         base reg available.
19012         (largetoc_high_plus): New insn.
19013         (movsi_internal1, movsi_internal1_single, movsf_softfloat,
19014         movdi_mfpgpr, movdi_internal64): Don't handle 'R' constraint here..
19015         (tocref): ..instead do so here, new insn and split.
19017 2012-05-20  H.J. Lu  <hongjiu.lu@intel.com>
19019         * config/i386/driver-i386.c (host_detect_local_cpu): Support
19020         RDRND, F16C and FSGSBASE.
19022 2012-05-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19024         PR rtl-optimzation/53373
19025         * config/pa/pa.md (call_symref_pic): Don't expose PIC register save in
19026         call pattern.  Update split patterns.
19027         (call_symref_64bit, call_reg_pic, call_reg_64bit, call_val_symref_pic,
19028         call_val_symref_64bit, call_val_reg_pic, call_val_reg_64bit): Likewise.
19030 2012-05-20  Razya Ladelsky  <razya@il.ibm.com>
19032         * tree-parloops.c (gen_parallel_loop): Change many_iterations_cond
19033         for outer loops.
19035 2012-05-18  Jan Hubicka  <jh@suse.cz>
19037         * cgraphunit.c (handle_alias_pairs): Declare; free alias_pairs
19038         (cgraph_process_new_functions): Process also aliases.
19039         * lto-streamer-out.c (struct sets): Remove.
19040         (trivally_defined_alias): Remove.
19041         (output_alias_pair_p): Remove.
19042         (output_unreferenced_globals): Remove.
19043         (produce_symtab); Do not handle alias pairs.
19044         (produce_asm_for_decls): Likewise.
19045         * lto-streamer-in.c (input_alias_pairs): Remove.
19046         (lto_read_body): Do not input alias pairs.
19047         (lto_input_constructors_and_inits): Remove.
19049 2012-05-18  Jan Hubicka  <jh@suse.cz>
19051         * cgraphunit.c (handle_alias_pairs): Cleanup; handle all types of
19052         aliases.
19054 2012-05-18  Jan Hubicka  <jh@suse.cz>
19056         * cgraphbuild.c (record_reference): Update.
19057         * lto-cgraph.c (lto_output_varpool_node): External vars
19058         are not in other partition even if they are not output
19059         in current partition.
19060         * gimple-fold.c (can_refer_decl_in_current_unit_p): Take FROM_DECL
19061         argument; fix.
19062         (canonicalize_constructor_val): Take FROM_DECL argument.
19063         (fold_ctor_reference, fold_string_cst_ctor_reference,
19064         fold_array_ctor_reference, fold_nonarray_ctor_reference,
19065         fold_ctor_reference): Likewise.
19066         (fold_const_aggregate_ref_1, gimple_get_virt_method_for_binfo): Update.
19067         * gimple.h (gimple_fold_builtin): Likewise.
19069 2012-05-18  Olivier Hainque  <hainque@adacore.com>
19071         * Makefile.in (FLAGS_TO_PASS): Pass $(libexecsubdir) instead of
19072         $(libsubdir) as libexecsubdir.
19074 2012-05-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19076         * config/rs6000/rs6000.c (print_operand): Revise code that unsafely
19077         relied on signed overflow behavior.
19079 2012-05-18  Richard Guenther  <rguenther@suse.de>
19081         PR tree-optimization/53346
19082         * tree-loop-distribution.c (ldist_gen): Make sure to apply
19083         builtin transform even when only a single partition with
19084         all reads/writes exists.
19086 2012-05-18  Richard Guenther  <rguenther@suse.de>
19088         PR tree-optimization/53390
19089         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Ignore
19090         strided loads.
19092 2012-05-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19094         * tree-ssa-reassoc.c (bip_map): Remove decl.
19095         (completely_remove_stmt): Remove function.
19096         (remove_def_if_absorbed_call): Remove function.
19097         (remove_visited_stmt_chain): Remove __builtin_powi handling.
19098         (possibly_move_powi): Remove function.
19099         (rewrite_expr_tree): Remove calls to possibly_move_powi.
19100         (rewrite_expr_tree_parallel): Likewise.
19101         (attempt_builtin_powi): Build multiplies explicitly rather than
19102         relying on the ops vector and rank system.
19103         (transform_stmt_to_copy): New function.
19104         (transform_stmt_to_multiply): Likewise.
19105         (reassociate_bb): Handle leftover operations after __builtin_powi
19106         optimization; build a final multiply if necessary.
19108 2012-05-18  Jan Hubicka  <jh@suse.cz>
19110         * cgraphunit.c (varpool_finalize_decl): Allow external decls.
19111         (mark_functions_to_output): Fix sanity check.
19112         * ipa.c (function_and_variable_visibility): Remove TREE_STATIC check.
19114 2012-05-18  Richard Guenther  <rguenther@suse.de>
19116         * tree-flow.h (mark_symbols_for_renaming): Remove.
19117         * tree-dfa.c (mark_symbols_for_renaming): Likewise.
19118         * tree-inline.c (copy_edges_for_bb): Do not mark symbols for renaming.
19119         (copy_debug_stmt): Likewise.
19120         (expand_call_inline): Likewise.
19121         (declare_return_variable): Mark the return variable for renaming
19122         if necessary.
19124 2012-05-18  Andrew Stubbs  <ams@codesourcery.com>
19126         * config/arm/arm-protos.h (arm_emit_coreregs_64bit_shift): New
19127         prototype.
19128         * config/arm/arm.c (arm_emit_coreregs_64bit_shift): New function.
19129         * config/arm/arm.md (ashldi3): Use arm_emit_coreregs_64bit_shift.
19130         (ashrdi3,lshrdi3): Likewise.
19131         (arm_cond_branch): Remove '*' to enable gen_arm_cond_branch.
19133 2012-05-18  Meador Inge  <meadori@codesourcery.com>
19135         PR rtl-optimization/53352
19136         * cse.c (equiv_constant): Ignore paradoxical subregs.
19138 2012-05-17  Steven Bosscher  <steven@gcc.gnu.org>
19140         PR rtl-optimization/53125
19141         * regstat.c (regstat_bb_compute_ri): Take new local_live_last_luid
19142         argument.  Simplify calculation of REG_LIVE_LENGTH for regnos that
19143         die in the basic block.  Correctly top off REG_FREQ and
19144         REG_FREQ_CALLS_CROSSED.
19145         Remove do_not_gen.
19146         (regstat_compute_ri): Allocate and free local_live_last_luid.
19147         Remove do_not_gen.
19148         (regstat_bb_compute_calls_crossed): Correctly top off
19149         REG_FREQ_CALLS_CROSSED.
19151 2012-05-17  Jan Hubicka  <jh@suse.cz>
19153         * lto-symtab.c (lto_symtab_resolve_symbols): Preffer decl with
19154         constructor over decl without.
19155         * cgraph.c (cgraph_remove_node): Clear also body of unanalyzed nodes.
19156         * cgraph.h (varpool_can_remove_if_no_refs): Handle external correctly.
19157         * cgraphunit.c (process_function_and_variable_attributes): Finalize
19158         extrnal decls.
19159         (mark_functions_to_output): Also accept bodies for functions with
19160         clones.
19161         (output_in_order): Skip external vars.
19162         * lto-cgraph.c (lto_output_node): External functions are never in other
19163         partition.
19164         (lto_output_varpool_node): Likewise.
19165         * lto-streamer-out.c (lto_write_tree): Always use error_mark_nodes for
19166         forgotten initializers.
19167         * ipa.c (process_references): Handle external vars.
19168         (symtab_remove_unreachable_nodes): Update to handle external vars.
19169         (varpool_externally_visible_p): External vars are externally visible.
19170         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
19171         * varpool.c (varpool_remove_node): Remove constructor.
19172         (decide_is_variable_needed): Handle externals.
19173         (varpool_remove_unreferenced_decls): Likewise.
19175 2012-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19177         * opts.c (common_handle_option): -pedantic-errors enables -Wpedantic.
19178         (enable_warning_as_error): Do not special case Wuninitialized.
19179         * optc-gen.awk: Add sanity checks.
19181 2012-05-17  Jan Hubicka  <jh@suse.cz>
19183         * ipa-reference.c (is_proper_for_analysis): Do not check flags
19184         that might change as result of global optimization.
19185         (analyze_function): Do not check analyzed and externally_visible
19186         flags; be happy about address dereferences.
19187         (propagate): Prune all_module_statics so it really contains just
19188         statics; prune all the local summaries.
19189         (ipa_reference_write_optimization_summary): Simplify.
19191 2012-05-17  Kwok Cheung Yeung  <kcy@codesourcery.com>
19193         * config/m68k/m68k-devices.def: Add 51ag, 51je, 51jf, 51jg, 51mm, 51qm.
19194         * config/m68k/m68k-tables.opt: Regenerated.
19195         * doc/invoke.texi (M680x0 Options): Document.
19197 2012-05-16  Dave Boutcher  <daveboutcher@gmail.com>
19198             Patrick Marlier  <patrick.marlier@gmail.com>
19200         * trans-mem.c (ipa_tm_transform_clone): Transform functions with
19201         indirect calls.
19203 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19205         * configure: Regenerated.
19207 2012-05-16  Andrew Pinski  <apinski@cavium.com>
19209         * gimple-fold.c (get_maxval_strlen): Move COND_EXPR handling under
19210         GIMPLE_ASSIGN.
19212 2012-05-16  David S. Miller  <davem@davemloft.net>
19214         * jump.c (delete_related_insns): If we remove a CALL, make sure
19215         we delete it's NOTE_INSN_CALL_ARG_LOCATION note too.
19217 2012-05-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19219         PR tree-optimization/53217
19220         * tree-ssa-reassoc.c (bip_map): New static variable.
19221         (possibly_move_powi): Move feeding multiplies with __builtin_powi call.
19222         (attempt_builtin_powi): Save feeding multiplies on a stack.
19223         (reassociate_bb): Create and destroy bip_map.
19225 2012-05-16  Olivier Hainque  <hainque@adacore.com>
19227         * Makefile.in (install-no-fixedincludes): New target, former toplevel
19228         gcc-no-fixedincludes. Stash "include-fixed" in addition to "include".
19229         Add comments and improve stamp preservation across the whole sequence.
19230         (stmp-int-hdrs): Use move-if-change + cp -p to setup fix_dir/limits.h.
19232 2012-05-16  Richard Guenther  <rguenther@suse.de>
19234         * tree-inline.c (insert_init_stmt): Do not call
19235         mark_symbols_for_renaming.
19236         (setup_one_parameter): Avoid initializing unused parameters.
19237         (declare_return_variable): Properly handle DECL_BY_REFERENCE
19238         return vars in SSA form.
19240 2012-05-16  Richard Guenther  <rguenther@suse.de>
19242         * tree-flow.h (get_virtual_var): Remove.
19243         * tree-dfa.c (get_virtual_var): Likewise.
19245 2012-05-16  Richard Guenther  <rguenther@suse.de>
19247         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
19248         Remove set-only bitmap of new names.
19249         (slpeel_tree_peel_loop_to_edge): Likewise.  Do not set
19250         CFG hooks.
19251         * tree-flow.h (ssa_names_to_replace): Remove.
19252         * tree-into-ssa.c (ssa_names_to_replace): Likewise.
19254 2012-05-16  Richard Guenther  <rguenther@suse.de>
19256         PR tree-optimization/53364
19257         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
19258         detect a view-conversion of the decl.
19260 2012-05-16  Dodji Seketeli  <dodji@redhat.com>
19262         PR preprocessor/7263
19263         * c-tree.h (enum c_declspec_word): Declare new enum.
19264         (struct c_declspecs::locations): New member.
19265         (declspecs_add_qual, declspecs_add_scspec)
19266         (declspecs_add_addrspace, declspecs_add_alignas): Take a new
19267         location parameter.
19268         * c-decl.c (build_null_declspecs): Initialize the new struct
19269         c_declspecs::locations member.
19270         (declspecs_add_addrspace): Take a location parameter for the
19271         address space.  Store it onto declaration specifiers.
19272         (declspecs_add_qual): Likewise, take a location parameter for the
19273         qualifier.
19274         (declspecs_add_type): Likewise, take a location parameter for the
19275         type specifier.
19276         (declspecs_add_scspec): Likewise, take a location parameter for
19277         the storage class specifier.
19278         (declspecs_add_attrs): Likewise, take a location parameter for the
19279         first attribute.
19280         (declspecs_add_alignas): Likewise, take a location parameter for
19281         the alignas token.
19282         (finish_declspecs): For diagnostics, use the location of the
19283         relevant declspec, instead of the global input_location.
19284         * c-parser.c (c_parser_parameter_declaration): Pass the precise
19285         virtual location of the declspec to the declspecs-setters.
19286         (c_parser_declspecs): Likewise.  Avoid calling c_parser_peek_token
19287         repeatedly.
19289 2012-05-16  Igor Zamyatin  <igor.zamyatin@intel.com>
19291         * configure.ac: Stack protector enabling for Android targets.
19292         * configure: Regenerate.
19294 2012-05-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
19296         * ira.c (pseudo_move_insn): Delete.
19297         (find_moveable_pseudos): Don't set it.
19298         (move_unallocated_pseudos): Use DF_REG_DEF_CHAIN to find
19299         the definitions of the original pseudo.  Delete all of them.
19301 2012-05-16  Olivier Hainque  <hainque@adacore.com>
19303         * config/rs6000/rs6000-opts.h (enum processor_type): Add
19304         PROCESSOR_PPC8548.
19305         * config/rs6000/rs6000-cpus.def: Reference it for cpu="8548".
19306         * config/rs6000/rs6000.md (cpu attribute definition): Add ppc8548.
19307         * config/rs6000/8540.md: indicate that the units/patterns apply to
19308         ppc8548 as well.
19310         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rename
19311         default_cpu into implicit_cpu, conveying what --with-cpu was passed at
19312         configure time. Treat implicit_cpu as have_CPU. Pick defaults for SPE
19313         related flags,  check that what is queried is supported by the selected
19314         configuration. Rework the single/double_float and MASK_STRING resets to
19315         hit for all the E500 cores (854x + E500MC variants). Select the ppc8540
19316         costs for PROCESSOR_PPC8548 as well.
19317         (rs6000_issue_rate): case CPU_PPC8548 together with CPU_PPC8540.
19318         (rs6000_use_sched_lookahead): Likewise, rewriting function as a case
19319         statement instead of a sequence of ifs.
19321         * config/rs6000/rs6000.h (TARGET_E500): Remove.
19322         (TARGET_NO_LWSYNC): Adjust accordingly.
19323         * config/rs6000/e500.h (TARGET_E500): Remove.
19324         (CHECK_E500_OPTIONS): Adjust accordingly.
19325         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove.
19326         (TARGET_DEFAULT): Reformat definition to match the one in linuxspe.h.
19327         * config/rs6000/linuxspe.h: Likewise.
19328         * config/rs6000/vxworks.h: Remove bogus TARGET_E500 overrides and
19329         superfluous comments.
19330         * config/rs6000/e500-double.h: Remove.
19332         * config.gcc (pick a default with_cpu): For powerpc*-*-*spe*,
19333         default to with_cpu=8548 if --enable-e500-double, and to 8540
19334         otherwise.
19335         (set misc flags section): For powerpc*|rs6000*, remove inclusion
19336         of e500-double.h for --enable-e500-double.
19338 2012-05-16  Olivier Hainque  <hainque@adacore.com>
19340         * Makefile.in (s-header-vars): Resort to -n instead of trailing
19341         -e d in sed invocation.
19343 2012-05-16  Hans-Peter Nilsson  <hp@axis.com>
19345         * doc/tm.texi.in (Type Layout) <SIZE_TYPE>: Update reference to
19346         source-code.
19347         * doc/tm.texi: Regenerate.
19349 2012-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
19351         * tree.h (EXPR_LOCATION): Use CAN_HAVE_LOCATION_P.
19353 2012-05-15  Jakub Jelinek  <jakub@redhat.com>
19355         PR target/53358
19356         * config/i386/i386.md (*addqi_2 peephole with QImode addition): Check
19357         that operands[2] is either immediate, or q_regs_operand.
19359 2012-05-15  Richard Guenther  <rguenther@suse.de>
19361         * cgraphunit.c (thunk_adjust): Use make_rename_temp.
19362         (assemble_thunk): Likewise.  Manually rename and register
19363         function arguments.
19365 2012-05-15  Richard Guenther  <rguenther@suse.de>
19367         PR tree-optimization/53355
19368         * tree-vrp.c (extract_range_from_binary_expr_1): Handle LSHIFT_EXPRs
19369         by constants.
19371 2012-05-15  Tristan Gingold  <gingold@adacore.com>
19373         * tree-ssa-strlen.c (get_string_length): Convert lhs if needed.
19375 2012-05-15  Richard Guenther  <rguenther@suse.de>
19377         * gimple.c (gimple_set_modified): Move ...
19378         * gimple.h (gimple_set_modified): ... here.
19380 2012-05-15  Tristan Gingold  <gingold@adacore.com>
19382         * ira-color.c (move_spill_restore): Add a guard.
19384 2012-05-15  Tristan Gingold  <gingold@adacore.com>
19386         * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust calls to
19387         plus_constant.
19389 2012-05-15  Eric Botcazou  <ebotcazou@adacore.com>
19391         * gimplify.c (gimplify_init_constructor): Do a block move for very
19392         small objects as well.
19394 2012-05-15  Bernd Schmidt  <bernds@codesourcery.com>
19396         * ira.c (find_moveable_pseudos): Skip registers whose
19397         DF_REG_EQ_USE_COUNT is nonzero.
19399 2012-05-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
19401         * doc/md.texi (fma): Define to only be applicable for single rounding.
19403 2012-05-14  Uros Bizjak  <ubizjak@gmail.com>
19405         PR target/46098
19406         * config/i386/i386.c (ix86_expand_special_args_builtin): Always
19407         generate target register for "load" class builtins.
19409         Revert:
19410         2010-10-22  Uros Bizjak  <ubizjak@gmail.com>
19412         PR target/46098
19413         * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
19414         Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
19415         (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
19416         (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
19417         (<sse>_movu<ssemodesuffix>): New expander.
19418         (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
19419         (avx_movdqu<avxmodesuffix>): New expander.
19420         (*sse2_movdqu): Rename from sse2_movdqu.
19421         (sse2_movdqu): New expander.
19423 2012-05-14  Marc Glisse  <marc.glisse@inria.fr>
19425         PR target/52607
19426         * config/i386/i386.c (ix86_expand_vec_perm_const): Move code to ...
19427         (canonicalize_perm): ... new function.
19428         (expand_vec_perm_2vperm2f128_vshuf): New function.
19429         (ix86_expand_vec_perm_const_1): Call it.
19431 2012-05-14  Andrew Pinski  <apinski@cavium.com>
19432             H.J. Lu  <hongjiu.lu@intel.com>
19433             Jakub Jelinek  <jakub@redhat.com>
19435         PR target/53315
19436         * config/i386/i386.md (xbegin_1): Use + in constraint and match_dup.
19437         (xbegin): Updated.
19439 2012-05-14  Jakub Jelinek  <jakub@redhat.com>
19441         * dwarf2out.c (dwarf2out_define, dwarf2out_undef): Treat
19442         lineno 1 the same as lineno 0 before first start file directive.
19443         (optimize_macinfo_range): Likewise.
19445         * dwarf2out.c (have_macinfo): Define.
19446         (dwarf2out_finish): Don't emit DW_AT_GNU_macros or DW_AT_macro_info
19447         attribute, don't force empty compilation unit and don't emit any
19448         .debug_macinfo/.debug_macro section if macinfo_table is empty.
19450 2012-05-14  Georg-Johann Lay  <avr@gjlay.de>
19452         PR target/53344
19453         * config/avr/avr.c (avr_const_address_lo16): Remove.
19454         (avr_assemble_integer):  Print ".byte lo8(x)",
19455         ".byte hi8(x)", ".byte hh8(x)" instead of emit an assembler
19456         .warning if 3-byte address is assembled.
19457         * doc/extend.texi (AVR Named Address Spaces): Document that
19458         binutils 2.23 is needed to assemble 3-byte addresses.
19460 2012-05-14  Richard Guenther  <rguenther@suse.de>
19462         * tree-vect-data-refs.c (vect_setup_realignment): Remove
19463         call to mark_symbols_for_renaming.
19464         (vect_permute_load_chain): Likewise.
19465         * tree-vect-loop.c (vect_is_slp_reduction): Update stmt
19466         instead of calling mark_symbols_for_renaming.
19467         * tree-vect-stmts.c (read_vector_array): Remove call to
19468         mark_symbols_for_renaming.
19469         (write_vector_array): Likewise.
19470         (vectorizable_call): Likewise.
19471         (vectorizable_store): Likewise.
19472         (vectorizable_load): Likewise.
19473         * matrix-reorg.c (transform_allocation_sites): Likewise.
19474         * tree-ssa-pre.c (create_expression_by_pieces): Likewise.
19475         (create_expression_by_pieces): Likewise.
19477 2012-05-14  Richard Guenther  <rguenther@suse.de>
19479         * gimplify.c (gimple_regimplify_operands): Only mark the LHS
19480         of statements for renaming.
19481         (force_gimple_operand_1): Likewise, consistently for both
19482         calls to force_gimple_operand and force_gimple_operand_gsi.
19484 2012-05-14  Richard Guenther  <rguenther@suse.de>
19486         * tree-dfa.c (make_rename_temp): Be forgiving if not in SSA form.
19487         * omp-low.c (expand_omp_taskreg): Properly conditionalize call
19488         to update_ssa.
19489         (expand_omp_for): Likewise.
19490         (expand_omp_for_generic): Adjust conditional add to referenced vars.
19491         Use make_rename_temp for temporaries that should be rewritten into
19492         SSA form.
19493         (expand_omp_for_static_nochunk): Likewise.
19494         (expand_omp_atomic_pipeline): Likewise.
19496 2012-05-14  Richard Guenther  <rguenther@suse.de>
19498         PR tree-optimization/53331
19499         * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Ignore
19500         strided loads.
19501         * tree-vect-stmts.c (vect_model_load_cost): Handle strided loads.
19503 2012-05-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19505         PR 53063
19506         * doc/options.texi: (LangEnabledBy): Document it.
19507         * optc-gen.awk: Handle LangEnabledBy.
19508         * opth-gen.awk: Generate declaration for lang-specific functions.
19509         * opt-read.awk: Record lang numbers.
19510         * opt-functions.awk (flag_set_p): Ignore the arguments of flags.
19511         (lang_sanitized_name): New.
19513 2012-05-14  Bernd Schmidt  <bernds@codesourcery.com>
19515         * attribs.c (decl_attributes): Avoid emitting a warning if
19516         ATTR_FLAG_BUILT_IN.
19517         * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Use lowercase for rtx
19518         codes.  Document meaning of sets inside CALL_INSN_FUNCTION_USAGE.
19519         * builtin-attrs.def (DEF_ATTR_FOR_STRING): Define.  Use it to
19520         define a string "1".
19521         (ATTR_RET1_NOTHROW_NONNULL_LEAF): New attr definition.
19522         * builtins.def (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET,
19523         BUILT_IN_STRCPY): Use it for these functions.
19524         * postreload.c (reload_combine): Deal with SETs inside
19525         CALL_INSN_FUNCTION_USAGE.
19526         * caller-save.c (setup_save_areas, save_call_clobbered_regs):
19527         Look for REG_RETURNED notes and use a cheap restore if possible.
19528         * ira-int.h (struct ira_allocno): New member cheap_calls_crossed_num.
19529         (ALLOCNO_CHEAP_CALLS_CROSSED_NUM): New macro.
19530         * ira-build.c (ira_create_allocno, create_cap_allocno,
19531         propagate_allocno_info, propagate_some_info_from_allocno,
19532         copy_info_to_removed_store_destination, ira_flattening): Handle it.
19533         * ira-lives.c (pseudo_regno_single_word_and_live_p,
19534         find_call_crossed_cheap_reg): New static functions.
19535         (process_bb_node_lives): Look for SETs in CALL_INSN_FUNCTION_USAGE,
19536         and set ALLOCNO_CHEAP_CALLS_CROSSED_NUM if possible.  Also make
19537         a REG_RETURNED note in that case.
19538         * ira.c (setup_reg_renumber): Change assert to allow cases where
19539         allocnos only cross calls for which they are cheap to restore.
19540         * ira-costs.c (ira_tune_allocno_costs): Compare
19541         ALLOCNO_CALLS_CROSSED_NUM to ALLOCNO_CHEAP_CALLS_CROSSED_NUM rather
19542         than 0.
19543         * reg-notes.def (REG_RETURNED): New note.
19544         * cse.c (cse_insn): Likewise.
19545         * sched-deps.c (sched_analyze_insn): Likewise.
19546         * expr.c (init_block_move_fn): Set a "fn spec" attribute.
19547         * calls.c (decl_return_flags): New static function.
19548         (expand_call): Generate a SET in CALL_INSN_FUNCTION_USAGE for
19549         functions that return one of their arguments.
19550         * regcprop.c (struct kill_set_value_data): New.
19551         (kill_set_value): Interpret data as a pointer to such a struct.
19552         Do nothing if the caller wants the register to be ignored.
19553         (copyprop_hardreg_forward_1): Handle SETs in CALL_INSN_FUNCTION_USAGE.
19555 2012-05-14  Richard Guenther  <rguenther@suse.de>
19557         PR tree-optimization/53340
19558         * tree-ssa-pre.c (op_valid_in_sets): Fix error in last commit.
19560 2012-05-14  Richard Guenther  <rguenther@suse.de>
19562         * gimplify.c (gimplify_expr): Remove odd code.
19564 2012-05-14  Eric Botcazou  <ebotcazou@adacore.com>
19566         * stor-layout.c (bit_from_pos): Distribute conversion to bitsizetype
19567         into a PLUS_EXPR byte offset.
19569         * tree-ssa-pre.c (can_value_number_call): Delete.
19570         (compute_avail): Skip all statements with side effects.
19571         <GIMPLE_CALL>: Skip calls to internal functions.
19573 2012-05-13  Steven Bosscher  <steven@gcc.gnu.org>
19575         * config/pa/pa.md: Use define_c_enum for "unspec" and "unspecv".
19577 2012-05-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19579         * common.opt (Wtype-limits): Use EnabledBy.
19581 2012-05-13  Uros Bizjak  <ubizjak@gmail.com>
19583         * config/i386/i386.md (*pushtf): Enable for TARGET_SSE.
19584         (pushtf splitter): Ditto.
19585         (movtf): Ditto.
19586         (*movtf_internal): Ditto. Use V4SFmode for !TARGET_SSE2.
19587         (<code>tf2): Enable for TARGET_SSE.
19588         (*absnegtf2_sse): Ditto.
19589         (copysign<mode>3): Enable TFmode for TARGET_SSE.
19590         (copysign<mode>3_const): Ditto.
19591         (copysign<mode>3_var): Ditto.
19592         * config/i386/sse.md (<code>tf3): Enable for TARGET_SSE.
19593         (*andnottf3): Ditto.  Use V4SFmode for !TARGET_SSE2.
19594         (*<code>tf3): Ditto.
19595         * config/i386/i386.c (struct builtin_description bdesc_args)
19596         <IX86_BUILTIN_FABSQ>: Enable for TARGET_SSE.
19597         <IX86_BUILTIN_COPYSIGNQ>: Ditto.
19598         (ix86_expand_builtin) <IX86_BUILTIN_FABSQ, IX86_BUILTIN_COPYSIGNQ>:
19599         Emit a normal call if SSE isn't available.
19601 2012-05-13  Uros Bizjak  <ubizjak@gmail.com>
19603         * config/i386/sse.md (<sse>_andnot<mode>3): Handle
19604         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
19605         (<code><mode>3): Ditto.
19606         (*andnot<mode>3): Ditto.
19607         (*andnottf3): Ditto.
19608         (*<code><mode>3): Ditto.
19609         (<code>tf3): Ditto.
19611 2012-05-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19613         * optc-gen.awk: Error instead of warning for conflicting help.
19615 2012-05-12  Jason Merrill  <jason@redhat.com>
19617         PR debug/53235
19618         * dwarf2out.c (build_local_stub): Prefer DW_AT_signature for
19619         comdat types.
19621 2012-05-12  Eric Botcazou  <ebotcazou@adacore.com>
19623         * function.c (requires_stack_frame_p): If the function can throw
19624         non-call exceptions, return true if the insn can throw internally.
19626 2012-05-12  Paolo Carlini  <paolo.carlini@oracle.com>
19628         * doc/generic.texi: Rename TYPE_PTRMEM_P to TYPE_PTRDATAMEM_P.
19630 2012-05-12  Uros Bizjak  <ubizjak@gmail.com>
19632         * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
19633         ORDERED and UNORDERED conditions.
19635 2012-05-11  Richard Guenther  <rguenther@suse.de>
19637         * tree-flow.h (referenced_var_check_and_insert): Remove.
19638         (find_new_referenced_vars): Likewise.
19639         * tree-dfa.c (referenced_var_check_and_insert): Make static.
19640         (find_new_referenced_vars_1, find_new_referenced_vars): Remove.
19641         * tree-inline.c (copy_bb): Use find_referenced_vars_in
19642         instead of find_new_referenced_vars.
19643         * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
19645 2012-05-11  Richard Guenther  <rguenther@suse.de>
19647         * tree-pass.h (pass_rest_of_compilation,
19648         pass_all_optimizations, pass_postreload, pass_all_early_optimizations):
19649         Remove.
19650         * passes.c (pass_all_optimizations, pass_postreload,
19651         pass_all_early_optimizations): Make static.
19652         (pass_rest_of_compilation): Likewise.  Make it an RTL_PASS.
19653         * tree-phinodes.c (init_phinodes, fini_phinodes): Remove.
19654         * tree-ssa.c (init_tree_ssa): Do not call init_phinodes.
19655         (delete_tree_ssa): Do not call fini_phinodes.
19656         * tree-flow.h (init_phinodes, fini_phinodes): Remove.
19658 2012-05-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19660         PR 53063
19661         * doc/options.texi (EnabledBy): Document
19662         * opts.c: Include opts.h and options.h before tm.h.
19663         (finish_options): Do not handle some sub-options here...
19664         (common_handle_option): ... instead call common_handle_option_auto
19665         here.
19666         * optc-gen.awk: Handle EnabledBy.
19667         * opth-gen.awk: Declare common_handle_option_auto.
19668         * common.opt (Wuninitialized): Use EnabledBy. Delete Init.
19669         (Wmaybe-uninitialized): Likewise.
19670         (Wunused-but-set-variable): Likewise.
19671         (Wunused-function): Likewise.
19672         (Wunused-label): Likewise.
19673         (Wunused-value): Likewise.
19674         (Wunused-variable): Likewise.
19675         * opt-read.awk: Create opt_numbers array.
19677 2012-05-11  Richard Guenther  <rguenther@suse.de>
19679         PR tree-optimization/53295
19680         * tree-data-ref.h (stride_of_unit_type_p): Handle non-constant
19681         strides.
19682         * tree-data-ref.c (dr_analyze_innermost): Allow non-constant
19683         strides when analyzing data-references in a loop context.
19684         * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Reject
19685         non-constant strides for now.
19686         (vect_enhance_data_refs_alignment): Ignore data references
19687         that are strided loads.
19688         (vect_analyze_data_ref_access): Handle non-constant strides.
19689         (vect_check_strided_load): Verify the data-reference is a load.
19690         (vect_analyze_data_refs): Restructure to make strided load
19691         support not dependent on gather support.
19692         * tree-vect-stmts.c (vectorizable_load): Avoid useless work
19693         when doing strided or gather loads.
19694         * tree-vect-loop-manip.c (vect_vfa_segment_size): Use
19695         integer_zerop to compare stride with zero.
19697 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
19699         * config/i386/driver-i386.c (host_detect_local_cpu): Support RTM.
19701 2012-05-11  Jan Hubicka  <jh@suse.cz>
19703         PR bootstrap/53300
19704         * varpool.c (varpool_assemble_decl): Also output constat pool entries
19705         that output_constant_pool missed.
19707 2012-05-11  Mingjie Xing  <mingjie.xing@gmail.com>
19709         * config/mips/t-vxworks: Change MUTLILIB_EXTRA_OPTS to
19710         MULTILIB_EXTRA_OPTS.
19712 2012-05-11  Uros Bizjak  <ubizjak@gmail.com>
19714         PR target/53291
19715         * config/i386/i386.md (xtest): Use NE condition in ix86_expand_setcc.
19717 2012-05-11  Uros Bizjak  <ubizjak@gmail.com>
19719         * config/i386/i386.md (*movti_internal_rex64): Avoid MOVAPS size
19720         optimization for TARGET_AVX.
19721         (*movti_internal_sse): Ditto.
19722         (*movdi_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
19723         (*movdi_internal): Ditto.
19724         (*movsi_internal): Ditto.
19725         (*movtf_internal): Avoid MOVAPS size optimization for TARGET_AVX.
19726         (*movdf_internal_rex64): Ditto.
19727         (*movfd_internal): Ditto.
19728         (*movsf_internal): Ditto.
19729         * config/i386/sse.md (mov<mode>): Handle TARGET_SSE_LOAD0_BY_PXOR.
19731 2012-05-10  Eric Botcazou  <ebotcazou@adacore.com>
19733         * dwarf2out.c (add_byte_size_attribute) <RECORD_TYPE>: Handle variable
19734         reference as size attribute.
19736 2012-05-10  Eric Botcazou  <ebotcazou@adacore.com>
19737             Tristan Gingold  <gingold@adacore.com>
19739         * doc/md.texi (Standard Names): Document probe_stack_address.
19740         * explow.c (emit_stack_probe): Handle probe_stack_address.
19741         * config/ia64/ia64.md (UNSPECV_PROBE_STACK_ADDRESS): New constant.
19742         (UNSPECV_PROBE_STACK_RANGE): Likewise.
19743         (probe_stack_address): New insn.
19744         (probe_stack_range): Likewise.
19745         * config/ia64/ia64.c: Include common/common-target.h.
19746         (ia64_compute_frame_size): Mark r2 and r3 as used if static stack
19747         checking is enabled.
19748         (ia64_emit_probe_stack_range): New function.
19749         (output_probe_stack_range): Likewise.
19750         (ia64_expand_prologue): Invoke ia64_emit_probe_stack_range if static
19751         builtin stack checking is enabled.
19752         (rtx_needs_barrier) <UNSPEC_VOLATILE>: Handle UNSPECV_PROBE_STACK_RANGE
19753         and UNSPECV_PROBE_STACK_ADDRESS.
19754         (unknown_for_bundling_p): New predicate.
19755         (group_barrier_needed): Use important_for_bundling_p.
19756         (ia64_dfa_new_cycle): Use unknown_for_bundling_p.
19757         (issue_nops_and_insn): Likewise.
19758         (bundling): Likewise.
19759         (final_emit_insn_group_barriers): Likewise.
19760         * config/ia64/ia64-protos.h (output_probe_stack_range): Declare.
19761         * config/ia64/hpux.h (STACK_CHECK_STATIC_BUILTIN): Define.
19762         (STACK_CHECK_PROTECT): Likewise.
19763         * config/ia64/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
19765 2012-05-10  Jan Hubicka  <jh@suse.cz>
19767         * ipa-inline.c (update_all_callee_keys): Remove.
19768         (inline_small_functions): Simplify priority updating.
19770 2012-05-10  Jan Hubicka  <jh@suse.cz>
19772         * ipa.c (symtab_remove_unreachable_nodes): Fix marking of clones.
19774 2012-05-10  Jan Hubicka  <jh@suse.cz>
19776         * cgraph.h (cgraph_remove_unreachable_nodes): Rename to ...
19777         (symtab_remove_unreachable_nodes): ... this one.
19778         * ipa-cp.c (ipcp_driver): Do not remove unreachable nodes.
19779         * cgraphunit.c (ipa_passes): Update.
19780         * cgraphclones.c (cgraph_materialize_all_clones): Update.
19781         * cgraph.c (cgraph_release_function_body): Only turn initial
19782         into error mark when initial was previously set.
19783         * ipa-inline.c (ipa_inline): Update.
19784         * ipa.c: Include ipa-inline.h
19785         (enqueue_cgraph_node, enqueue_varpool_node): Remove.
19786         (enqueue_node): New function.
19787         (process_references): Update.
19788         (symtab_remove_unreachable_nodes): Cleanup.
19789         * passes.c (execute_todo, execute_one_pass): Update.
19791 2012-05-10  Vladimir Makarov  <vmakarov@redhat.com>
19793         PR rtl-optimization/53125
19794         * ira.c (ira): Call find_moveable_pseudos and
19795         move_unallocated_pseudos if only ira_conflicts_p is true.
19797 2012-05-10  Uros Bizjak  <ubizjak@gmail.com>
19799         * config/i386/i386.md (*movoi_internal_avx): Handle
19800         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL and TARGET_SSE_TYPELESS_STORES.
19801         (*movti_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
19802         (*movti_internal_sse): Ditto.
19803         (*movtf_internal): Ditto.
19804         * config/i386/sse.md (ssePSmode): New mode attribute.
19805         (*move<mode>_internal): Use ssePSmode.
19806         (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Ditto.
19807         (*<sse2>_movdqu<avxsizesuffix>): Ditto.
19808         * config/i386/i386.c (standard_sse_constant_opcode): Do not handle
19809         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL here.
19811 2012-05-10  Eric Botcazou  <ebotcazou@adacore.com>
19813         * gimplify.c (gimplify_decl_expr): For a TYPE_DECL, also gimplify the
19814         DECL_ORIGINAL_TYPE if it is present.
19816 2012-05-10  Nick Clifton  <nickc@redhat.com>
19818         PR target/53120
19819         * config/m32c/bitops.md (bset_qi): Change operand 2 from having
19820         a "0" constraint to being a (match_dup 0).
19822 2012-05-10  Richard Guenther  <rguenther@suse.de>
19824         * stor-layout.c (byte_from_pos): Amend comment.
19826 2012-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19828         * doc/extend.texi (X86 Built-in Functions, __builtin_cpu_init):
19829         Document requirement to call in constructors.
19831         * config/i386/i386.c: Update comments for i386-cpuinfo.c name change.
19833 2012-05-10  Richard Guenther  <rguenther@suse.de>
19835         * tree.h (TYPE_IS_SIZETYPE): Remove.
19836         * fold-const.c (int_const_binop_1): Remove TYPE_IS_SIZETYPE use.
19837         (extract_muldiv_1): Likewise.
19838         * gimple.c (gtc_visit): Likewise.
19839         (gimple_types_compatible_p): Likewise.
19840         (iterative_hash_canonical_type): Likewise.
19841         (gimple_canonical_types_compatible_p): Likewise.
19842         * gimplify.c (gimplify_one_sizepos): Likewise.
19843         * print-tree.c (print_node): Likewise.
19844         * stor-layout.c (initialize_sizetypes): Do not set TYPE_IS_SIZETYPE.
19846 2012-05-09  Uros Bizjak  <ubizjak@gmail.com>
19848         PR target/52908
19849         * config/i386/sse.md (vec_widen_smult_hi_v4si): Expand using
19850         xop_pmacsdqh insn pattern instead of xop_mulv2div2di3_high.
19851         (vec_widen_smult_lo_v4si): Expand using xop_pmacsdql insn pattern
19852         instead of xop_mulv2div2di3_low.
19853         (xop_p<macs>dql): Fix vec_select selector.
19854         (xop_p<macs>dqh): Ditto.
19855         (xop_mulv2div2di3_low): Remove insn_and_split pattern.
19856         (xop_mulv2div2di3_high): Ditto.
19858 2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19860         PR c++/53289
19861         * diagnostic.h (diagnostic_context): Add last_location.
19862         * diagnostic.c (diagnostic_initialize): Initialize it.
19863         (diagnostic_show_locus): Use it.
19865 2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19867         * doc/extend.texi (Function Attributes): Point xref to section
19868         about Pragmas.
19870 2012-05-09  Uros Bizjak  <ubizjak@gmail.com>
19872         * config/i386/i386.c (*movdf_internal_rex64): Remove
19873         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
19874         Calculate "mode" attribute according to
19875         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
19876         (*movdf_internal): Ditto.
19878 2012-05-09  Uros Bizjak  <ubizjak@gmail.com>
19880         PR target/44141
19881         * config/i386/i386.c (ix86_expand_vector_move_misalign): Do not handle
19882         128 bit vectors specially for TARGET_AVX.  Emit sse2_movupd and
19883         sse_movupd RTXes for TARGET_AVX, TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
19884         or when optimizing for size.
19885         * config/i386/sse.md (*mov<mode>_internal): Remove
19886         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
19887         Calculate "mode" attribute according to optimize_function_for_size_p
19888         and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
19889         (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Choose asm template
19890         depending on the mode of the instruction.  Calculate "mode" attribute
19891         according to optimize_function_for_size_p, TARGET_SSE_TYPELESS_STORES
19892         and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flags.
19893         (*<sse2>_movdqu<avxsizesuffix>): Ditto.
19895 2012-05-09  Georg-Johann Lay  <avr@gjlay.de>
19897         PR target/53256
19898         * config/avr/elf.h (ASM_DECLARE_FUNCTION_NAME): Remove.
19899         * config/avr/avr-protos.h (avr_asm_declare_function_name): Remove.
19900         * config/avr/avr.h (struct machine_function): Add attributes_checked_p.
19901         * config/avr/avr.c (avr_asm_declare_function_name): Remove.
19902         (expand_prologue): Move initialization of cfun->machine->is_naked,
19903         is_interrupt, is_signal, is_OS_task, is_OS_main from here to...
19904         (avr_set_current_function): ...this new static function.
19905         (TARGET_SET_CURRENT_FUNCTION): New define.
19906         (avr_function_ok_for_sibcall): Use cfun->machine->is_* instead of
19907         checking attributes of current_function_decl.
19908         (avr_regs_to_save): Ditto.
19909         (signal_function_p): Rename to avr_signal_function_p.
19910         (interrupt_function_p): Rename to avr_interrupt_function_p.
19912         * doc/extend.texi (Function Attributes): Better explanation of
19913         'interrupt' and 'signal' for AVR. Move 'ifunc' down to establish
19914         alphabetical order.
19916 2012-05-09  Michael Matz  <matz@suse.de>
19918         PR tree-optimization/53185
19919         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Disable
19920         peeling when we see strided loads.
19922 2012-05-09  Matthias Klose  <doko@ubuntu.com>
19924         * gcc-ar.c (main): Don't check for execute bits for the plugin.
19926 2012-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
19928         * tree-ssa-loop-ivopts.c (add_autoinc_candidates, get_address_cost):
19929         Replace use of HAVE_{POST/PRE}_{INCREMENT/DECREMENT} with
19930         USE_{LOAD/STORE}_{PRE/POST}_{INCREMENT/DECREMENT} appropriately.
19931         * config/arm/arm.h (ARM_AUTOINC_VALID_FOR_MODE_P): New.
19932         (USE_LOAD_POST_INCREMENT): Define.
19933         (USE_LOAD_PRE_INCREMENT): Define.
19934         (USE_LOAD_POST_DECREMENT): Define.
19935         (USE_LOAD_PRE_DECREMENT): Define.
19936         (USE_STORE_PRE_DECREMENT): Define.
19937         (USE_STORE_PRE_INCREMENT): Define.
19938         (USE_STORE_POST_DECREMENT): Define.
19939         (USE_STORE_POST_INCREMENT): Define.
19940         (arm_auto_incmodes): Add enumeration.
19941         * config/arm/arm-protos.h (arm_autoinc_modes_ok_p): Declare.
19942         * config/arm/arm.c (arm_autoinc_modes_ok_p): Define.
19944 2012-05-09  Jakub Jelinek  <jakub@redhat.com>
19946         PR tree-optimization/53226
19947         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Remove
19948         prev and prev_initialized vars, gimple_set_plf (stmt, GF_PLF_1, false)
19949         before processing it and gimple_set_plf (stmt, GF_PLF_1, true) if it
19950         doesn't need to be revisited, look for earliest stmt with
19951         !gimple_plf (stmt, GF_PLF_1) if something changed.
19953 2012-05-09  Terry Guo  <terry.guo@arm.com>
19955         * genmultilib: Update copyright dates.
19956         * doc/fragments.texi: Ditto.
19958 2012-05-09  Terry Guo  <terry.guo@arm.com>
19960         * Makefile.in (s-mlib): Add new argument MULTILIB_REQUIRED.
19961         * genmultilib (MULTILIB_REQUIRED): New.
19962         * doc/fragments.texi: Document the MULTILIB_REQUIRED.
19964 2012-05-09  Richard Guenther  <rguenther@suse.de>
19966         * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
19967         (vect_do_peeling_for_loop_bound): Likewise.
19968         (vect_do_peeling_for_alignment): Likewise.
19969         * tree-vect-loop-manip.c (conservative_cost_threshold): Remove.
19970         (vect_do_peeling_for_loop_bound): Get check_profitability and
19971         threshold as parameters.
19972         (vect_do_peeling_for_alignment): Likewise.
19973         (vect_loop_versioning): Likewise.
19974         * tree-vect-loop.c (vect_transform_loop): Compute check_profitability
19975         and threshold here.  Control where to put the check here.
19977 2012-05-09  Richard Sandiford  <rdsandiford@googlemail.com>
19979         PR middle-end/53249
19980         * dwarf2out.h (get_address_mode): Move declaration to...
19981         * rtl.h: ...here.
19982         * dwarf2out.c (get_address_mode): Move definition to...
19983         * rtlanal.c: ...here.
19984         * var-tracking.c (get_address_mode): Delete.
19985         * combine.c (find_split_point): Use get_address_mode instead of
19986         targetm.addr_space.address_mode.
19987         * cselib.c (cselib_record_sets): Likewise.
19988         * dse.c (canon_address, record_store): Likewise.
19989         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
19990         * expr.c (move_by_pieces, emit_block_move_via_loop, store_by_pieces)
19991         (store_by_pieces_1, expand_assignment, store_expr, store_constructor)
19992         (expand_expr_real_1): Likewise.
19993         * ifcvt.c (noce_try_cmove_arith): Likewise.
19994         * optabs.c (maybe_legitimize_operand_same_code): Likewise.
19995         * reload.c (find_reloads): Likewise.
19996         * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
19997         * sel-sched-dump.c (debug_mem_addr_value): Likewise.
19999 2012-05-09  Maciej W. Rozycki  <macro@codesourcery.com>
20001         * config/mips/mips.c (mips16_gp_pseudo_reg): Remove line
20002         information from the instruction produced.
20004 2012-05-09  Richard Guenther  <rguenther@suse.de>
20006         * stor-layout.c (bit_from_pos): Document.
20007         (byte_from_pos): Likewise.  Optimize.
20008         (pos_from_bit): Likewise.
20009         (normalize_offset): Use pos_from_bit instead of replicating it.
20011 2012-05-09  Alan Modra  <amodra@gmail.com>
20013         PR target/53271
20014         * config/rs6000/rs6000.c (gen_frame_set): New function.
20015         (gen_frame_load, gen_frame_store): New functions.
20016         (rs6000_savres_rtx): Use the above.
20017         (rs6000_emit_epilogue, rs6000_emit_prologue): Here too.
20018         Correct mode used for CR2 in save/restore_world patterns.
20019         Don't emit instructions for eh_return frame unwind reg info.
20021 2012-05-08  Jan Hubicka  <jh@suse.cz>
20023         * cgraphbuild.c (build_cgraph_edges): Do not finalize vars
20024         with VALUE_EXPR.
20025         * cgraph.h (varpool_can_remove_if_no_refs): Vars with VALUE_EXPR
20026         are removable.
20027         * toplev.c (wrapup_global_declaration_2): Vars with VALUE_EXPR
20028         need to wrapup.
20029         (compile_file): Do not output variables.
20030         * cgraphbuild.c (varpool_finalize_decl): When var is finalized late,
20031         output it.
20032         * langhooks.c: Include timevar.h
20033         (write_global_declarations): Finalize compilation unit after wrapup;
20034         set timevars correctly.
20035         * passes.c (rest_of_decl_compilation): Decls with VALUE_EXPR needs
20036         not to be added to varpool.
20037         * varpool.c (varpool_assemble_decl): Sanity check that we are called
20038         only on cases where it makes sense; skip constant pool and value expr
20039         vars.
20041 2012-05-08  David S. Miller  <davem@davemloft.net>
20043         * config/sparc/linux.h (LINK_SPEC): Don't pass "-Y" option.
20044         * config/sparc/linux64.h (LINK_ARCH32_SPEC): Likewise.
20045         * config/sparc/linux64.h (LINK_ARCH64_SPEC): Likewise.
20047 2012-05-08  Richard Sandiford  <rdsandiford@googlemail.com>
20049         PR rtl-optimization/53278
20050         * lower-subreg.c (decompose_multiword_subregs): Remove left-over
20051         speed_p code from earlier patch.
20053 2012-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
20055         PR target/51244
20056         * config/sh/sh.md (*branch_true, *branch_false): New insns.
20058 2012-05-08  Teresa Johnson  <tejohnson@google.com>
20060         * gcov-io.h (__gcov_reset, __gcov_dump): Declare.
20061         * doc/gcov.texi: Add note on using __gcov_reset and __gcov_dump.
20063 2012-05-08  Jan Hubicka  <jh@suse.cz>
20065         * cgraph.c (cgraph_call_edge_duplication_hooks): Export.
20066         (cgraph_create_node_1): Rename to ...
20067         (cgraph_create_empty_node): ... this one; export.
20068         (cgraph_create_node): Update.
20069         (cgraph_set_call_stmt_including_clones): Move to cgraphclones.c
20070         (cgraph_create_edge_including_clones): Likewise.
20071         (cgraph_find_replacement_node): Likewise.
20072         (cgraph_clone_edge): Likewise.
20073         (cgraph_clone_node): Likewise.
20074         (clone_function_name): Likewise.
20075         (cgraph_create_virtual_clone): Likewise.
20076         (cgraph_remove_node_and_inline_clones): Likewise.
20077         (cgraph_redirect_edge_call_stmt_to_callee): Move here from cgraphunit.c
20078         * cgraph.h: Reorder declarations so they match file of origin.
20079         (cgraph_create_empty_node): Declare.
20080         * cgraphunit.c (update_call_expr): Move to cgraphclones.c
20081         (cgraph_copy_node_for_versioning): Likewise.
20082         (cgraph_function_versioning): Likewise.
20083         (cgraph_materialize_clone): Likewise.
20084         (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
20085         (cgraph_materialize_all_clones): Likewise.
20086         * cgraphclones.c: New file.
20087         * Makefile.in: Update for cgraphclones.
20089 2012-05-08  Uros Bizjak  <ubizjak@gmail.com>
20091         PR target/53176
20092         * config/i386/i386.c (ix86_set_reg_reg_cost): New function.
20093         (ix86_rtx_costs): Handle SET.
20095 2012-05-08  Michael Matz  <matz@suse.de>
20097         * basic-block.h (struct rtl_bb_info): Remove visited member and
20098         move head_ member to ...
20099         (struct basic_block_def.basic_block_il_dependent): ... the new
20100         member x, replacing but containing old member rtl.
20101         (enum bb_flags): New BB_VISITED flag.
20102         (BB_HEADER, BB_FOOTER): New macros.
20104         * jump.c (mark_all_labels): Adjust.
20105         * cfgcleanup.c (try_optimize_cfg): Adjust.
20106         * cfglayout.c (record_effective_endpoints): Adjust.
20107         (relink_block_chain): Ditto (and don't fiddle with visited).
20108         (fixup_reorder_chain): Adjust.
20109         (fixup_fallthru_exit_predecessor): Ditto.
20110         (cfg_layout_duplicate_bb): Ditto.
20111         * combine.c (update_cfg_for_uncondjump): Adjust.
20112         * bb-reorder.c (struct bbro_basic_block_data_def): Add visited member.
20113         (bb_visited_trace): New accessor.
20114         (mark_bb_visited): Move in front.
20115         (rotate_loop): Use bb_visited_trace.
20116         (find_traces_1_round): Ditto.
20117         (emit_barrier_after): Ditto.
20118         (copy_bb): Ditto, and initialize visited on resize.
20119         (reorder_basic_blocks): Initize visited member.
20120         (duplicate_computed_gotos): Clear bb flags at start, use
20121         BB_VISITED flags.
20123         * cfgrtl.c (try_redirect_by_replacing_jump): Adjust.
20124         (rtl_verify_flow_info_1): Ditto.
20125         (cfg_layout_split_block): Ditto.
20126         (cfg_layout_delete_block): Ditto.
20127         (cfg_layout_merge_blocks): Ditto.
20128         (init_rtl_bb_info): Adjust and initialize il.x.head_ member.
20130 2012-05-08  Hans-Peter Nilsson  <hp@axis.com>
20132         PR target/53272
20133         * config/cris/cris.c (cris_normal_notice_update_cc): For TARGET_V32,
20134         when a constant source operand matches an "I" constraint, the "no
20135         CC0 change" applies to a register-destination only, not a
20136         strict_low_part-destination.
20138 2012-05-08  Richard Guenther  <rguenther@suse.de>
20140         * fold-const.c (fold_binary_loc): Fold (X * CST1) & CST2
20141         to zero or to (X * CST1) & CST2' when CST1 has trailing zeros.
20143 2012-05-08  Georg-Johann Lay  <avr@gjlay.de>
20145         * Makefile.in (TEXI_GCC_FILES): Add avr-mmcu.texi.
20147         * doc/avr-mmcu.texi: New auto-generated file.
20148         * doc/invoke.texi (AVR Options): Include avr-mmcu.texi in order
20149         to document all valid -mmcu= arguments.
20151         * config/avr/avr.h (arch_info_s): New struct definition.
20152         * config/avr/avr-devices.c (avr_texinfo): New variable.
20153         * config/avr/gen-avr-mmcu-texi.c: New file.
20154         * config/avr/t-avr: New rules and dependencies to build avr-mmcu.texi.
20156 2012-05-08  Dehao Chen  <dehao@google.com>
20158         * predict.c (find_qualified_ssa_name): New.
20159         (find_ssa_name_in_expr): New.
20160         (find_ssa_name_in_assign_stmt): New.
20161         (is_comparison_with_loop_invariant_p): New.
20162         (is_bound_expr_similar): New.
20163         (predict_iv_comparison): New.
20164         (predict_loops): Add heuristic for loop-nested branches that compare an
20165         induction variable to a loop bound variable.
20166         * predict.def (PRED_LOOP_IV_COMPARE): New macro.
20168 2012-05-08  Uros Bizjak  <ubizjak@gmail.com>
20170         * config/i386/i386.c (has_dispatch): Use TARGET_BDVER1 and
20171         TARGET_BDVER2 defines where appropriate.
20173 2012-05-07  Eric Botcazou  <ebotcazou@adacore.com>
20175         * configure.ac (PLUGIN_LD): Rename into...
20176         (PLUGIN_LD_SUFFIX): ...this and strip the target_alias triplet.
20177         * config.in: Regenerate.
20178         * configure: Likewise.
20179         * collect2.c (main): Set plugin_ld_suffix to PLUGIN_LD_SUFFIX.
20181 2012-05-07  Eric Botcazou  <ebotcazou@adacore.com>
20183         * tree-dfa.c (get_ref_base_and_extent) <ARRAY_REF>: Do the offset
20184         computation using the precision of the index type.
20185         * gimple-fold.c (fold_const_aggregate_ref_1) <ARRAY_REF>: Likewise.
20186         (fold_array_ctor_reference): Do index computations in the index type.
20188 2012-05-07  Georg-Johann Lay  <avr@gjlay.de>
20190         * config/avr/avr.c (avr_prologue_setup_frame): Fix mode passed
20191         down to plus_constant.
20192         (expand_epilogue): Ditto.
20194 2012-05-07  Steven Bosscher  <steven@gcc.gnu.org>
20196         * postreload.c (reload_cse_regs): Make static.
20197         * reload.h (reload_cse_regs): Remove prototype.
20199 2012-05-07  Richard Henderson  <rth@redhat.com>
20201         * config/alpha/alpha.md (clear_cache): New pattern.
20203 2012-05-07  Steven Bosscher  <steven@gcc.gnu.org>
20205         PR middle-end/53245
20206         * gimplify.c (preprocess_case_label_vec_for_gimple): If low or high
20207         is folded to a type boundary value, verify that the resulting case
20208         label is still a care range.
20210 2012-05-07  Uros Bizjak  <ubizjak@gmail.com>
20212         * config/i386/i386.md (ctz<mode>2): Emit rep;bsf
20213         only for TARGET_GENERIC, when not optimizing for size.
20214         (*ffs<mode>_1): Ditto.
20216 2012-05-07  Steven Bosscher  <steven@gcc.gnu.org>
20218         * tree-cfg.c (verify_gimple_switch): Tighten checks.
20220 2012-05-07  Jakub Jelinek  <jakub@redhat.com>
20222         PR tree-optimization/53239
20223         * tree-vrp.c (get_value_range): Set VR of SSA_NAME_IS_DEFAULT_DEF
20224         of DECL_BY_REFERENCE RESULT_DECL to nonnull.
20226 2012-05-07  Richard Guenther  <rguenther@suse.de>
20228         PR tree-optimization/53195
20229         * tree-inline.c (setup_one_parameter): Properly add referenced
20230         vars from the parameters new known value.
20232 2012-05-07  Steven Bosscher  <steven@gcc.gnu.org>
20234         * config/m68k/m68k.c (m68k_sched_branch_type): Remove.
20235         (sched_branch_type): Remove.
20236         (m68k_sched_md_init_global): Don't allocate it.
20237         (m68k_sched_md_finish_global): Don't free it.
20238         * config/m68k/m68k.h (m68k_sched_branch_type): Remove prototype.
20239         * config/m68k/m68k.md: Set the type of insns using
20240         m68k_sched_branch_type to bcc directly.
20242 2012-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20244         * config/sol2.c (solaris_override_options): New function.
20245         * config/sol2-protos.h (solaris_override_options): Declare.
20246         * config/sol2.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
20248 2012-05-07  Richard Guenther  <rguenther@suse.de>
20250         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Return
20251         whether we failed to compute data dependences.
20252         (loop_prefetch_arrays): Fail if we failed.
20254 2012-05-07  Uros Bizjak  <ubizjak@gmail.com>
20255             Paolo Bonzini  <bonzini@gnu.org>
20257         * config/i386/i386.md (ctz<mode>2): Emit rep;bsf even for !TARGET_BMI.
20258         Emit bsf when optimizing for size.
20259         (*ffs<mode>_1): Ditto.
20261 2012-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
20263         PR target/53250
20264         * config/sh/sh.c (sh_rtx_costs): Handle SET.
20266 2012-05-06  Uros Bizjak  <ubizjak@gmail.com>
20268         PR target/53227
20269         * config/i386/i386.md (swap<mode>): Rename from *swap<mode>.
20270         (bswapdi2): Split from bswap<mode>2.  Use nonnimediate_operand
20271         predicate for operand 1.  Force operand 1 to register for TARGET_BSWAP.
20272         (bswapsi2): Ditto.
20273         (*bswapdi2_doubleword): New insn pattern.
20274         (*bswap<mode>2): Rename from *bswap<mode>2_1.
20276 2012-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
20278         * config/mips/mips.c (mips_set_reg_reg_piece_cost): New function.
20279         (mips_set_reg_reg_cost): Likewise.
20280         (mips_rtx_costs): Handle SET.
20282 2012-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
20284         * lower-subreg.c (shift_cost): Use set_src_cost, avoiding the SET.
20285         (compute_costs): Likewise for the zero extension.  Use set_rtx_cost
20286         to compute the cost of moves.  Set the mode of the target register.
20288 2012-05-05  Richard Sandiford  <rdsandiford@googlemail.com>
20290         * rtl.h (plus_constant, plus_constant_mode): Merge into a single
20291         plus_constant function.
20292         * explow.c (plus_constant, plus_constant_mode): Likewise.  Assert
20293         that the mode is sensible.
20294         (use_anchored_address, round_push, allocate_dynamic_stack_space)
20295         (probe_stack_range, anti_adjust_stack_and_probe): Update calls to
20296         plus_constant.
20298         * alias.c (canon_rtx): Likewise.
20299         (init_alias_analysis): Likewise.
20300         * builtins.c (expand_builtin_return_addr)
20301         (expand_builtin_setjmp_setup, expand_builtin_longjmp)
20302         (expand_builtin_nonlocal_goto, expand_builtin_update_setjmp_buf)
20303         (expand_builtin_apply_args_1, expand_builtin_apply, expand_movstr)
20304         (expand_builtin_stpcpy): Likewise.
20305         * calls.c (save_fixed_argument_area, restore_fixed_argument_area)
20306         (compute_argument_addresses, internal_arg_pointer_based_exp)
20307         (expand_call, emit_library_call_value_1): Likewise.
20308         * cfgexpand.c (expand_one_stack_var_at, expand_debug_expr): Likewise.
20309         * combine-stack-adj.c (try_apply_stack_adjustment): Likewise.
20310         * combine.c (combine_simplify_rtx, force_to_mode): Likewise.
20311         * cse.c (insert_const_anchor, find_reg_offset_for_const)
20312         (use_related_value, fold_rtx): Likewise.
20313         * cselib.c (cselib_subst_to_values): Likewise.
20314         * dse.c (record_store, check_mem_read_rtx): Likewise.
20315         * dwarf2out.c (rtl_for_decl_location, gen_variable_die): Likewise.
20316         * emit-rtl.c (adjust_address_1): Likewise.
20317         * except.c (sjlj_emit_function_enter)
20318         (expand_builtin_extract_return_addr)
20319         (expand_builtin_frob_return_addr): Likewise.
20320         * expmed.c (expand_divmod): Likewise.
20321         * expr.c (move_by_pieces, store_by_pieces, store_by_pieces_1)
20322         (emit_move_resolve_push, push_block, emit_push_insn, store_expr)
20323         (expand_expr_addr_expr_1, expand_expr_real_1): Likewise.
20324         * function.c (assign_stack_local_1)
20325         (instantiate_virtual_regs_in_rtx): Likewise.
20326         * optabs.c (prepare_cmp_insn): Likewise.
20327         * recog.c (offsettable_address_addr_space_p): Likewise.
20328         * reload.c (find_reloads_address, form_sum)
20329         (find_reloads_subreg_address): Likewise.
20330         * reload1.c (init_reload, eliminate_regs_1)
20331         (eliminate_regs_in_insn): Likewise.
20332         * simplify-rtx.c (simplify_unary_operation_1)
20333         (simplify_binary_operation_1, simplify_plus_minus): Likewise.
20334         * var-tracking.c (compute_cfa_pointer, prepare_call_arguments)
20335         (vt_add_function_parameter): Likewise.
20337         * config/alpha/alpha.h (EH_RETURN_HANDLER_RTX): Likewise.
20338         * config/alpha/vms.h (EH_RETURN_HANDLER_RTX): Likewise.
20339         * config/alpha/alpha.c (alpha_legitimize_address_1)
20340         (get_unaligned_address, alpha_expand_unaligned_load)
20341         (alpha_expand_unaligned_store, alpha_expand_unaligned_load_words)
20342         (alpha_expand_unaligned_store_words, alpha_expand_block_clear)
20343         (alpha_expand_builtin_establish_vms_condition_handler)
20344         (alpha_setup_incoming_varargs, emit_frame_store_1)
20345         (alpha_expand_prologue, alpha_expand_epilogue)
20346         (alpha_use_linkage): Likewise.
20347         * config/alpha/alpha.md: Likewise.
20349         * config/arm/arm.c (arm_trampoline_init, legitimize_pic_address)
20350         (arm_load_pic_register, arm_pic_static_addr, arm_legitimize_address)
20351         (thumb_legitimize_address, arm_gen_load_multiple_1)
20352         (arm_gen_store_multiple_1, arm_gen_multiple_op, gen_ldm_seq)
20353         (gen_stm_seq, gen_const_stm_seq, arm_block_move_unaligned_straight)
20354         (arm_block_move_unaligned_loop, arm_gen_movmemqi, arm_reload_in_hi)
20355         (arm_reload_out_hi, arm_reorg, vfp_emit_fstmd, emit_multi_reg_push)
20356         (emit_sfm, thumb_set_frame_pointer, arm_expand_prologue)
20357         (thumb1_emit_multi_reg_push, thumb1_expand_prologue)
20358         (thumb_expand_movmemqi, arm_set_return_address)
20359         (thumb_set_return_address): Likewise.
20360         * config/arm/arm.md: Likewise.
20362         * config/avr/avr.c (avr_incoming_return_addr_rtx)
20363         (avr_prologue_setup_frame, expand_epilogue)
20364         (avr_const_address_lo16): Likewise.
20366         * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Likewise.
20367         * config/bfin/bfin.c (setup_incoming_varargs, bfin_load_pic_reg)
20368         (bfin_expand_prologue, bfin_trampoline_init, bfin_expand_call)
20369         (bfin_output_mi_thunk): Likewise.
20371         * config/c6x/c6x.c (c6x_initialize_trampoline)
20372         (c6x_output_mi_thunk): Likewise.
20374         * config/cr16/cr16.h (EH_RETURN_HANDLER_RTX): Likewise.
20375         * config/cr16/cr16.c (cr16_create_dwarf_for_multi_push): Likewise.
20377         * config/cris/cris.c (cris_return_addr_rtx, cris_split_movdx)
20378         (cris_expand_prologue, cris_expand_epilogue, cris_gen_movem_load)
20379         (cris_emit_movem_store, cris_trampoline_init): Likewise.
20380         * config/cris/cris.md: Likewise.
20382         * config/darwin.c (machopic_indirect_data_reference)
20383         (machopic_legitimize_pic_address): Likewise.
20385         * config/epiphany/epiphany.c (epiphany_emit_save_restore)
20386         (epiphany_expand_prologue, epiphany_expand_epilogue)
20387         (epiphany_trampoline_init): Likewise.
20388         * config/epiphany/epiphany.md: Likewise.
20390         * config/fr30/fr30.c (fr30_move_double): Likewise.
20392         * config/frv/frv.c (frv_dwarf_store, frv_expand_prologue)
20393         (frv_expand_block_move, frv_expand_block_clear, frv_return_addr_rtx)
20394         (frv_index_memory, unspec_got_name, frv_find_base_term)
20395         (frv_output_dwarf_dtprel): Likewise.
20397         * config/h8300/h8300.c (h8300_push_pop, h8300_return_addr_rtx)
20398         (h8300_swap_into_er6, h8300_swap_out_of_er6): Likewise.
20400         * config/i386/i386.h (RETURN_ADDR_RTX): Likewise.
20401         * config/i386/i386.c (setup_incoming_varargs_64)
20402         (setup_incoming_varargs_ms_64, choose_baseaddr)
20403         (ix86_emit_save_reg_using_mov, ix86_adjust_stack_and_probe)
20404         (ix86_emit_probe_stack_range, ix86_expand_prologue)
20405         (ix86_emit_restore_reg_using_pop, ix86_emit_leave)
20406         (ix86_expand_epilogue, legitimize_pic_address, ix86_legitimize_address)
20407         (ix86_split_long_move, ix86_expand_movmem, ix86_expand_setmem)
20408         (ix86_static_chain, ix86_trampoline_init, x86_this_parameter)
20409         (x86_output_mi_thunk): Likewise.
20410         * config/i386/i386.md: Likewise.
20412         * config/ia64/ia64.c (ia64_expand_load_address)
20413         (ia64_expand_tls_address, ia64_expand_move, ia64_split_tmode)
20414         (do_spill, ia64_trampoline_init): Likewise.
20416         * config/iq2000/iq2000.c (iq2000_va_start)
20417         (iq2000_emit_frame_related_store, iq2000_expand_prologue)
20418         (iq2000_expand_eh_return, iq2000_setup_incoming_varargs)
20419         (iq2000_print_operand, iq2000_legitimize_address): Likewise.
20421         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
20423         * config/m32c/m32c.c (m32c_return_addr_rtx)
20424         (m32c_expand_insv): Likewise.
20426         * config/m32r/m32r.c (m32r_setup_incoming_varargs)
20427         (m32r_legitimize_pic_address, m32r_print_operand)
20428         (m32r_print_operand_address): Likewise.
20430         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Likewise.
20431         * config/m68k/m68k.h (RETURN_ADDR_RTX): Likewise.
20432         (EH_RETURN_HANDLER_RTX): Likewise.
20433         * config/m68k/m68k.c (m68k_emit_movem, m68k_expand_prologue)
20434         (m68k_expand_epilogue, legitimize_pic_address)
20435         (m68k_output_mi_thunk): Likewise.
20436         * config/m68k/m68k.md: Likewise.
20438         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
20439         (mcore_expand_epilog): Likewise.
20440         * config/mcore/mcore.md: Likewise.
20442         * config/mep/mep.c (mep_allocate_initial_value)
20443         (mep_expand_prologue, mep_expand_epilogue): Likewise.
20445         * config/microblaze/microblaze.c (double_memory_operand)
20446         (microblaze_block_move_loop): Likewise.
20448         * config/mips/mips.c (mips_strip_unspec_address, mips_add_offset)
20449         (mips_setup_incoming_varargs, mips_va_start, mips_block_move_loop)
20450         (mips_print_operand, mips16e_save_restore_reg, mips_save_restore_reg)
20451         (mips_expand_prologue, mips_epilogue_set_cfa)
20452         (mips_expand_epilogue): Likewise.
20453         * config/mips/mips.md: Likewise.
20455         * config/mmix/mmix.c (mmix_dynamic_chain_address, mmix_return_addr_rtx)
20456         (mmix_expand_prologue, mmix_expand_epilogue): Likewise.
20458         * config/mn10300/mn10300.c (mn10300_gen_multiple_store)
20459         (mn10300_builtin_saveregs, mn10300_trampoline_init): Likewise.
20461         * config/moxie/moxie.h (INCOMING_RETURN_ADDR_RTX): Likewise.
20462         (EH_RETURN_HANDLER_RTX): Likewise.
20463         * config/moxie/moxie.c (moxie_static_chain): Likewise.
20465         * config/pa/pa.c (legitimize_pic_address, hppa_legitimize_address)
20466         (store_reg, set_reg_plus_d, pa_expand_prologue, load_reg)
20467         (pa_return_addr_rtx, hppa_builtin_saveregs)
20468         (pa_trampoline_init): Likewise.
20469         * config/pa/pa.md: Likewise.
20471         * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
20473         * config/picochip/picochip.c (picochip_static_chain): Likewise.
20475         * config/rs6000/rs6000.h (RS6000_SAVE_TOC): Likewise.
20476         * config/rs6000/rs6000.c (rs6000_legitimize_address)
20477         (setup_incoming_varargs, print_operand, rs6000_return_addr)
20478         (rs6000_emit_eh_reg_restore, rs6000_emit_probe_stack_range)
20479         (rs6000_emit_epilogue)
20480         (rs6000_machopic_legitimize_pic_address): Likewise.
20482         * config/rx/rx.c (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
20484         * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Likewise.
20485         (DYNAMIC_CHAIN_ADDRESS): Likewise.
20486         * config/s390/s390.c (s390_decompose_address, legitimize_pic_address)
20487         (s390_delegitimize_address, print_operand, annotate_constant_pool_refs)
20488         (replace_constant_pool_ref, s390_return_addr_rtx, s390_back_chain_rtx)
20489         (save_fpr, restore_fpr, save_gprs, restore_gprs, s390_emit_prologue)
20490         (s390_emit_epilogue, s390_function_profiler): Likewise.
20491         * config/s390/s390.md: Likewise.
20493         * config/score/score.c (score_add_offset, score_prologue): Likewise.
20495         * config/sh/sh.c (expand_block_move, push_regs, sh_builtin_saveregs)
20496         (sh_output_mi_thunk): Likewise.
20497         * config/sh/sh.md: Likewise.
20499         * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS, FRAME_ADDR_RTX)
20500         (RETURN_ADDR_RTX, INCOMING_RETURN_ADDR_RTX): Likewise.
20501         * config/sparc/sparc.c (sparc_legitimize_pic_address)
20502         (sparc_emit_probe_stack_range, emit_save_or_restore_regs)
20503         (emit_window_save, sparc_flat_expand_prologue, sparc_struct_value_rtx)
20504         (emit_and_preserve): Likewise.
20505         * config/sparc/sparc.md: Likewise.
20507         * config/spu/spu.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
20508         * config/spu/spu.c (spu_expand_insv, spu_machine_dependent_reorg)
20509         (spu_setup_incoming_varargs, ea_load_store_inline)
20510         (spu_expand_load): Likewise.
20512         * config/stormy16/stormy16.c (xstormy16_expand_prologue)
20513         (combine_bnp): Likewise.
20515         * config/tilegx/tilegx.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
20516         * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs)
20517         (tilegx_expand_unaligned_load, tilegx_trampoline_init): Likewise.
20519         * config/tilepro/tilepro.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
20520         * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs)
20521         (tilepro_expand_unaligned_load, tilepro_trampoline_init): Likewise.
20523         * config/v850/v850.c (expand_prologue, expand_epilogue): Likewise.
20524         * config/v850/v850.md: Likewise.
20526         * config/vax/elf.h (EH_RETURN_STACKADJ_RTX): Likewise.
20527         (EH_RETURN_HANDLER_RTX): Likewise.
20528         * config/vax/vax.h (DYNAMIC_CHAIN_ADDRESS, RETURN_ADDR_RTX): Likewise.
20529         * config/vax/vax.c (vax_add_reg_cfa_offset, vax_expand_prologue)
20530         (print_operand_address, vax_trampoline_init): Likewise.
20532         * config/xtensa/xtensa.c (xtensa_expand_prologue, xtensa_return_addr)
20533         (xtensa_function_value_regno_p): Likewise.
20535 2012-05-04  Andrew Pinski  <apinski@cavium.com>
20537         * expr.c (get_def_for_expr_class): New function.
20538         (convert_tree_comp_to_rtx): New function.
20539         (expand_cond_expr_using_cmove): New function.
20540         (expand_expr_real_2 <case COND_EXPR>): Call
20541         expand_cond_expr_using_cmove first and return if it succeeds.
20542         Remove the check for HAVE_conditional_move since we should have
20543         already converted it to a conditional move.
20544         * config/i386/i386.c (ix86_expand_int_movcc): Disallow comparison
20545         modes of DImode for 32bits and TImode.
20547 2012-05-04  Steven Bosscher  <steven@gcc.gnu.org>
20549         PR other/29442
20550         * read-md.c (fprint_md_ptr_loc, fprint_c_condition): New functions.
20551         (print_md_ptr_loc, print_c_condition): Use them.
20552         * read-md.h (fprint_md_ptr_loc, fprint_c_condition): New prototypes.
20553         * genattrtab.c (attr_file_name, dfa_file_name, latency_file_name,
20554         attr_file, dfa_file, latency_file): New global variables.
20555         (write_attr_valueq, write_attr_set, write_attr_case, write_attr_value,
20556         write_upcase, write_indent, write_length_unit_log, write_test_expr,
20557         write_attr_get, write_insn_cases, write_eligible_delay,
20558         write_const_num_delay_slots): Accept FILE pointer and toss it around.
20559         Update all callers.
20560         (write_header, open_outfile, handle_arg): New funcions.
20561         (make_automaton_attrs): Write prototypes as extern to the output
20562         files.
20563         (main): Use init_rtx_reader_args_cb with handle_arg to take 3 file
20564         names from the command line.  Open the output files and write out
20565         internal functions for DFA functions to dfa_file_name, insn latency
20566         functions to latency_file_name, and everything else to attr_file.
20567         * Makefile.in (OBJS): Add insn-dfatab.o and insn-latencytab.o.
20568         (BACKEND): Build libbackend first.
20569         (MOSTLYCLEANFILES): Add insn-dfatab.c and insn-latencytab.c.
20570         (.PRECIOUS): Likewise.
20571         (insn-dfatab.o): New rule.
20572         (insn-latencytab.o): New rule.
20573         (simple_rtl_generated_c): Do not include insn-attrtab.c.
20574         (s-attrtab): New rule.
20576 2012-05-04  Steven Bosscher  <steven@gcc.gnu.org>
20578         * rtl.def (ATTR_FLAG): Remove probability indicating flags.
20579         * genattr.c (main): Remove ATTR_FLAG_likely, ATTR_FLAG_unlikely,
20580         ATTR_FLAG_very_likely, and ATTR_FLAG_very_unlikely.
20581         * reorg.c (get_jump_flags): Do not set the removed flags.
20583         * doc/md.texi (attr_flag): Update for abovementioned changes.
20585 2012-05-04  Uros Bizjak  <ubizjak@gmail.com>
20587         PR target/53228
20588         * config/i386/i386.h (X86_ARCH_CMOV): Rename from X86_ARCH_CMOVE.
20589         (TARGET_CMOV): Rename from TARGET_CMOVE.
20590         (TARGET_CMOVE): New define.
20591         * config/i386/i386.c (ix86_option_override_internal): Use TARGET_CMOV.
20592         Do not set TARGET_CMOVE here.
20594 2012-05-04  Dodji Seketeli  <dodji@redhat.com>
20596         Enable -Wunused-local-typedefs when -Wall or -Wunused is on
20597         * opts.c (finish_options): Activate -Wunused-local-typedefs if
20598         -Wunused is activated.
20599         * doc/invoke.texi: Update blurb of -Wunused-local-typedefs.
20601 2012-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20603         * config/s390/s390.md (*movmem_short, *clrmem_short)
20604         (*cmpmem_short): Move the mode check from the insn condition to
20605         the match_scratch.
20607 2012-05-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
20609         PR tree-optimization/52633
20610         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Swap order of
20611         vect_recog_widen_shift_pattern and vect_recog_over_widening_pattern.
20612         (vect_recog_over_widening_pattern): Remove handling of code that was
20613         already detected as over-widening pattern.  Remove special handling
20614         of "unsigned" cases.  Instead, support general case of conversion
20615         of the shift result to another type.
20617 2012-05-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
20619         * tree-vect-patterns.c (vect_single_imm_use): New function.
20620         (vect_recog_widen_mult_pattern): Use it instead of open-coding loop.
20621         (vect_recog_over_widening_pattern): Likewise.
20622         (vect_recog_widen_shift_pattern): Likewise.
20624 2012-05-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
20626         * tree-vect-patterns.c (vect_same_loop_or_bb_p): New function.
20627         (vect_handle_widen_op_by_const): Use it instead of open-coding test.
20628         (vect_recog_widen_mult_pattern): Likewise.
20629         (vect_operation_fits_smaller_type): Likewise.
20630         (vect_recog_over_widening_pattern): Likewise.
20631         (vect_recog_widen_shift_pattern): Add to vect_same_loop_or_bb_p test.
20633 2012-05-04  Richard Guenther  <rguenther@suse.de>
20635         PR lto/50602
20636         * lto-wrapper.c (merge_and_complain): Complain about mismatches
20637         of -freg-struct-return and -fpcc-struct-return.
20638         (run_gcc): Pass through -freg-struct-return and -fpcc-struct-return
20639         from the input file options and ignore those from the link
20640         command line.
20642 2012-05-04  Richard Guenther  <rguenther@suse.de>
20644         PR tree-optimization/53168
20645         * tree-ssa-pre.c (phi_translate_1): Only handle type-punned
20646         memory reads when the result is a constant we can pun.
20648 2012-05-04  Richard Guenther  <rguenther@suse.de>
20650         * common.opt (flto-report): Do not mark as Optimization.
20652 2012-05-04  Eric Botcazou  <ebotcazou@adacore.com>
20654         PR target/48496
20655         * recog.c (constrain_operands): If extra constraints are present, also
20656         accept pseudo-registers with equivalent memory locations during reload.
20658 2012-05-04  Olivier Hainque  <hainque@adacore.com>
20660         * collect2.c (may_unlink_output_file): New global.
20661         (maybe_unlink): Honor it.
20662         * collect2.h: Add extern for it.
20663         * tlink.c (do_tlink): Set it to true if the link succeeded.
20665 2012-05-04  Olivier Hainque  <hainque@adacore.com>
20667         * gcc.c (eval_spec_function): Finalize/restore the current string
20668         obstack state as part of the context push/pop operations.
20670 2012-05-04  Bin Cheng  <bin.cheng@arm.com>
20672         PR rtl-optimization/52804
20673         * reload1.c (reload_reg_reaches_end_p): Check whether successor
20674         reload with type RELOAD_FOR_INPUT_ADDRESS kills reload register
20675         of current one with type RELOAD_FOR_INPADDR_ADDRESS.
20676         Same stands for reloads with type RELOAD_FOR_OUTPUT_ADDRESS and
20677         RELOAD_FOR_OUTADDR_ADDRESS.
20679 2012-05-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20681         PR c++/24985
20682         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Show caret
20683         for macro expansion.
20685 2012-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20687         * flags.h (flag_permissive): Do not declare.
20688         * diagnostic.c (diagnostic_report_diagnostic): Handle fpermissive
20689         option specially.
20690         * toplev.c (flag_permissive): Do not define.
20691         * c-tree.h (system_header_p): Delete unused.
20693 2012-05-03  David S. Miller  <davem@davemloft.net>
20695         PR target/52684
20696         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If we pass a
20697         MEM directly into a libcall, mark it's MEM_EXPR as addressable.
20698         (sparc_emit_float_lib_cmp): Likewise.
20700 2012-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
20702         PR target/53199
20703         * config/rs6000/rs6000.md (bswapdi splitters): If
20704         -mavoid-indexed-addresses (or -mcpu=power6 which sets it by
20705         default) is used, generate an alternate sequence that does not
20706         depend on using indexed addressing.
20708 2012-05-03  Jason Merrill  <jason@redhat.com>
20710         * gengtype.c (write_types): Fix warning message.
20711         (write_local): Likewise.
20713 2012-05-02  Jason Merrill  <jason@redhat.com>
20715         * dwarf2out.c (struct external_ref, build_local_stub): New.
20716         (hash_external_ref, external_ref_eq, lookup_external_ref): New.
20717         (optimize_external_refs, optimize_external_refs_1): New.
20718         (change_AT_die_ref): New.
20719         (clone_as_declaration): Add DW_AT_signature when cloning a declaration.
20720         (build_abbrev_table): Take the external refs hashtable.
20721         (output_comp_unit): Get it from optimize_external_refs and pass it in.
20723 2012-05-03  Jan Hubicka  <jh@suse.cz>
20725         PR middle-end/53093
20726         * tree-emutls.c (new_emutls_decl): Fix handling of aliases.
20728 2012-05-03  Jan Hubicka  <jh@suse.cz>
20730         PR middle-end/53106
20731         * ipa.c (cgraph_remove_unreachable_nodes): Fix handling of clones.
20733 2012-05-03  Jason Merrill  <jason@redhat.com>
20735         * dwarf2out.c (die_struct): Add comdat_type_p flag.  Use it instead of
20736         use_debug_types to discriminate the die_id union.
20737         (print_die, assign_symbol_names, copy_decls_walk): Likewise.
20738         (build_abbrev_table, output_die): Likewise.
20739         (prune_unused_types_walk_attribs): Likewise.
20740         (generate_type_signature, copy_declaration_context): Set it.
20741         (remove_child_or_replace_with_skeleton): Set it.
20742         (dwarf2out_start_source_file, dwarf2out_end_source_file): Don't
20743         check use_debug_types.
20744         (dwarf2out_finish): Do break_out_includes after .debug_types.
20746 2012-05-03  Jason Merrill  <jason@redhat.com>
20748         * dwarf2out.c (modified_type_die): Use scope_die_for.
20749         (gen_type_die_with_usage, dwarf2out_finish): Likewise.
20750         (uses_local_type_r, uses_local_type): New.
20751         (scope_die_for): Keep a type that uses a local type in local scope.
20752         Use get_context_die for namespace and type scope.
20754 2012-05-03  Jason Merrill  <jason@redhat.com>
20756         * config/i386/i386.c (ix86_code_end): Set DECL_IGNORED_P on the
20757         pc thunk.
20758         * dwarf2out.c (output_aranges): Skip DECL_IGNORED_P functions.
20759         (dwarf2out_finish): Likewise.
20761 2012-05-03  Martin Jambor  <mjambor@suse.cz>
20763         * builtins.c (get_object_alignment_1): Return whether we can determine
20764         the alignment or conservatively assume byte alignment.  Return the
20765         alignment by reference.  Use get_pointer_alignment_1 for dereference
20766         alignment.
20767         (get_pointer_alignment_1): Return whether we can determine the
20768         alignment or conservatively assume byte alignment.  Return the
20769         alignment by reference.  Use get_ptr_info_alignment to get SSA name
20770         alignment.
20771         (get_object_alignment): Update call to get_object_alignment_1.
20772         (get_object_or_type_alignment): Likewise, fall back to type alignment
20773         only when it returned false.
20774         (get_pointer_alignment): Update call to get_pointer_alignment_1.
20775         * fold-const.c (get_pointer_modulus_and_residue): Update call to
20776         get_object_alignment_1.
20777         * ipa-prop.c (ipa_modify_call_arguments): Update call to
20778         get_pointer_alignment_1.
20779         * tree-sra.c (build_ref_for_offset): Likewise, fall back to the type
20780         of MEM_REF or TARGET_MEM_REF only when it returns false.
20781         * tree-ssa-ccp.c (get_value_from_alignment): Update call to
20782         get_object_alignment_1.
20783         (ccp_finalize): Use set_ptr_info_alignment.
20784         * tree.h (get_object_alignment_1): Update declaration.
20785         (get_pointer_alignment_1): Likewise.
20786         * gimple-pretty-print.c (dump_gimple_phi): Use get_ptr_info_alignment.
20787         (dump_gimple_stmt): Likewise.
20788         * tree-flow.h (ptr_info_def): Updated comments of fields align and
20789         misalign.
20790         (get_ptr_info_alignment): Declared.
20791         (mark_ptr_info_alignment_unknown): Likewise.
20792         (set_ptr_info_alignment): Likewise.
20793         (adjust_ptr_info_misalignment): Likewise.
20794         * tree-ssa-address.c (copy_ref_info): Use new access functions to get
20795         and set alignment of SSA names.
20796         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Call
20797         mark_ptr_info_alignment_unknown.
20798         * tree-ssanames.c (get_ptr_info_alignment): New function.
20799         (mark_ptr_info_alignment_unknown): Likewise.
20800         (set_ptr_info_alignment): Likewise.
20801         (adjust_ptr_info_misalignment): Likewise.
20802         (get_ptr_info): Call mark_ptr_info_alignment_unknown.
20803         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
20804         Likewise.
20805         (bump_vector_ptr): Likewise.
20806         * tree-vect-stmts.c (create_array_ref): Use set_ptr_info_alignment.
20807         (vectorizable_store): Likewise.
20808         (vectorizable_load): Likewise.
20810 2012-05-03  Michael Matz  <matz@suse.de>
20812         * basic-block.h (struct rtl_bb_info, struct gimple_bb_info): Move
20813         in front of basic_block_def.
20814         (struct basic_block_def): Make il.gimple the full struct, not a
20815         pointer.
20816         (__assert_gimple_bb_smaller_rtl_bb): Asserting typedef.
20818         * cfgexpand.c (expand_gimple_basic_block): Clear all il.gimple members.
20819         * gimple-iterator.c (gimple_stmt_iterator): Don't special case
20820         NULL il.gimple, which can't happen anymore.
20821         * gimple.h (bb_seq): il.gimple can't be NULL.
20822         (bb_seq_add): Ditto.
20823         (set_bb_seq): Adjust.
20824         (gsi_start_bb, gsi_last_bb): Tidy.
20825         * lto-streamer-in.c (make_new_block): Don't zero members that
20826         are zeroed already, don't allocate a gimple_bb_info.
20827         * tree-cfg.c (create_bb): Don't allocate a gimple_bb_info.
20828         (remove_bb): Clear all il.gimple members.
20829         (gimple_verify_flow_info): Adjust for flat il.gimple.
20830         * tree-flow-inline.h (phi_nodes, phi_nodes_ptr, set_phi_nodes): Adjust.
20832         * coretypes.h (const_gimple_seq): Remove typedef.
20833         * gimple.h (gimple_seq_first): Take gimple_seq.
20834         (gimple_seq_first_stmt): Ditto.
20835         (gimple_seq_last): Ditto.
20836         (gimple_seq_last_stmt): Ditto.
20837         (gimple_seq_empty_p): Ditto.
20839 2012-05-03  Richard Guenther  <rguenther@suse.de>
20841         * tree-ssa-pre.c (valid_in_sets): Remove checking of trapping
20842         operations.
20843         (prune_clobbered_mems): Do it here.  Do not uselessly sort expressions.
20844         (compute_avail): Do not add possibly trapping operations to
20845         EXP_GEN if they might not be executed in the block.
20847 2012-05-03  Uros Bizjak  <ubizjak@gmail.com>
20849         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Remove.
20851 2012-05-03  Steven Bosscher  <steven@gcc.gnu.org>
20853         * tree-switch-conversion.c (gen_inbound_check): Free post-dominance
20854         information as early as possible.  Update dominance info instead of
20855         discarding it.
20857 2012-05-03  Richard Guenther  <rguenther@suse.de>
20859         * tree-ssa-pre.c (debug_bitmap_sets_for): New function.
20860         (union_contains_value): Remove.
20861         (vro_valid_in_sets): Likewise.
20862         (op_valid_in_sets): New function.
20863         (valid_in_sets): Use op_valid_in_sets.
20864         (insert_into_preds_of_block): Move dumping ...
20865         (do_regular_insertion): ... here.
20866         (do_partial_partial_insertion): ... and here.  Dump that
20867         we've found a partial partial redundancy.
20868         (insert): Dump the current insert iteration.
20870 2012-05-03  Jakub Jelinek  <jakub@redhat.com>
20872         PR plugins/53126
20873         * gcc-ar.c (main): If GCC_EXEC_PREFIX is set in env,
20874         append program name to it and pass that as first argument
20875         to make_relative_prefix.  Always pass standard_libexec_prefix
20876         as last argument to make_relative_prefix.  If
20877         make_relative_prefix returns NULL, fall back to
20878         standard_libexec_prefix.
20880         PR debug/53174
20881         * tree-predcom.c (remove_stmt): Call reset_debug_uses on stmts being
20882         removed.
20884         PR target/53187
20885         * config/arm/arm.c (arm_select_cc_mode): If x has MODE_CC class
20886         mode, return that mode.
20888         PR target/53194
20889         * config/i386/i386-c.c (ix86_target_macros_internal): Don't
20890         define __ATOMIC_HLE_* macros here.
20891         (ix86_target_macros): But here, using cpp_define_formatted.
20893 2012-05-03  Richard Guenther  <rguenther@suse.de>
20895         PR tree-optimization/53144
20896         * tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces):
20897         Rename to ...
20898         (vn_reference_lookup_or_insert_for_pieces): ... this.  Properly deal
20899         with SSA name values.
20900         (vn_reference_lookup_3): Adjust callers.
20902 2012-05-03  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
20904         * config/i386/driver-i386.c (host_detect_local_cpu): Reset
20905         has_fma4 for AMD processors with both fma3 and fma4 support.
20907 2012-05-03  Kirill Yukhin  <kirill.yukhin@intel.com>
20909         PR target/53201
20910         * config/i386/driver-i386.c (host_detect_local_cpu): Add space to
20911         "-mno-hle".
20913 2012-05-03  Michael Matz  <matz@suse.de>
20915         PR bootstrap/53197
20916         * tree-ssa-dse.c (dse_optimize_stmt): Take pointer to iterator.
20917         (dse_enter_block): Properly iterate the whole sequence even
20918         if the last statement was removed.
20920 2012-05-02  Steven Bosscher  <steven@gcc.gnu.org>
20922         * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): For pic code,
20923         unset flag_jump_tables.
20924         * stmt.c (expand_case): Remove special flag_pic case conditional
20925         on ASM_OUTPUT_ADDR_DIFF_ELT not being defined.
20927 2012-05-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
20929         * common/config/s390/s390-common.c (s390_option_optimization_table):
20930         Enable -fsched-pressure using -fsched-pressure-algorithm=model by
20931         default when optimizing.
20933 2012-05-02  Martin Jambor  <mjambor@suse.cz>
20935         PR lto/52605
20936         * dwarf2out.c (dwarf2out_decl): Only lookup die representing context
20937         of a variable when the contect is a function.
20939 2012-05-02  Michael Matz  <matz@suse.de>
20941         * coretypes.h (gimple_seq, const_gimple_seq): Typedef as gimple.
20942         * gimple.h (struct gimple_seq_node_d, struct gimple_seq_d): Remove.
20943         (const_gimple_seq_node): Remove.
20944         (gimple_seq_node): Typedef as gimple.
20945         (struct gimple_statement_base): Add next and prev members,
20946         adjust all WORD markers in using structs.
20947         (union gimple_statement_d): Link via gsbase.next field for GC and PCH.
20948         (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
20949         gimple_seq_last_stmt): Adjust as gimple_seq, gimple_seq_node and
20950         gimple are the same.
20951         (gimple_seq_set_last, gimple_seq_set_first): Don't allocate
20952         gimple_seq, adjust.
20953         (gimple_init_singleton): New function.
20954         (gsi_start_1, gsi_last_1, gsi_end_p, gsi_one_before_end_p): Adjust.
20955         (gsi_next, gsi_prev): Adjust, handle prev cyclic list correctly.
20956         (gsi_stmt): Adjust.
20957         (gsi_stmt_ptr): Remove.
20958         (enum gimple_alloc_kind): Remove gimple_alloc_kind_seq member.
20960         * gimple-iterator.c (update_bb_for_stmts): Take last parameter
20961         again, adjust for above changes.
20962         (update_call_edge_frequencies): Adjust for above changes.
20963         (gsi_insert_seq_nodes_before): Rewrite for new data structure.
20964         (gsi_insert_seq_nodes_after): Ditto.
20965         (gsi_split_seq_after): Ditto.
20966         (gsi_set_stmt): Ditto.
20967         (gsi_split_seq_before): Ditto.
20968         (gsi_remove): Ditto.
20969         (gsi_insert_seq_before_without_update): Don't free sequence.
20970         (gsi_insert_seq_after_without_update): Ditto.
20971         (gsi_replace): Assert some more invariants.
20972         (gsi_insert_before_without_update, gsi_insert_after_without_update):
20973         Tidy.
20974         (gsi_for_stmt): Don't search for stmt.
20975         (gsi_insert_on_edge_immediate): Tidy.
20977         * gimple.c (gimple_alloc_k): Remove "sequences".
20978         (gimple_seq_cache): Remove.
20979         (gimple_alloc_stat): Make stmt a singleton sequence.
20980         (gimple_seq_alloc, gimple_seq_free): Remove.
20981         (gimple_assign_set_rhs_with_ops_1): Ensure new stmt is a singleton.
20982         (gimple_copy): Ditto.
20983         * gimplify.c (gimplify_cleanup_point_expr): Use gsi_set_stmt,
20984         create iterator from correct sequence.
20985         * tree-phinodes.c (make_phi_node): Make stmt a singleton.
20987 2012-05-02  Michael Matz  <matz@suse.de>
20989         * gimple.h (gimple_stmt_iterator <seq>): Make it be pointer to
20990         gimple_seq.
20991         (gimple_seq_set_last, gimple_seq_set_first): Take pointer to
20992         sequence, lazily allocate it.
20993         (bb_seq_addr): New function.
20994         (gsi_start_1): Rename from gsi_start, but take pointer to sequence.
20995         (gsi_start): Macro to wrap gsi_start_1 taking pointer of argument.
20996         (gsi_none): New function.
20997         (gsi_start_bb): Adjust.
20998         (gsi_last_1): Rename from gsi_last, but take pointer to sequence.
20999         (gsi_last): Macro to wrap gsi_last_1 taking pointer of argument.
21000         (gsi_last_bb): Adjust.
21001         (gsi_seq): Adjust.
21002         * tree-flow-inline.h (phi_nodes_ptr): New function.
21004         * gimple-iterator.c (gsi_insert_seq_nodes_before): Adjust to
21005         datastructure and interface change.
21006         (gsi_insert_seq_before_without_update): Ditto.
21007         (gsi_insert_seq_nodes_after): Ditto.
21008         (gsi_insert_seq_after_without_update): Ditto.
21009         (gsi_split_seq_after): Ditto, don't use gimple_seq_alloc.
21010         (gsi_split_seq_before): Ditto.
21011         (gsi_start_phis): Adjust.
21012         * tree-vect-loop.c (vect_determine_vectorization_factor): Use gsi_none.
21013         (vect_transform_loop): Ditto.
21014         * gimple.c (gimple_seq_add_stmt, gimple_seq_add_seq,
21015         gimple_seq_copy): Don't use gimple_seq_alloc.
21016         * gimplify.c (gimple_seq_add_stmt_without_update): Ditto.
21017         (gimplify_seq_add_seq): Ditto.
21018         * lto-streamer-in.c (make_new_block): Ditto.
21019         * tree-cfg.c (create_bb): Ditto.
21020         * tree-sra.c (initialize_parameter_reductions): Ditto.
21022 2012-05-02  Michael Matz  <matz@suse.de>
21024         * gimple.h (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
21025         gimple_seq_last_stmt, gimple_seq_set_last, gimple_seq_set_first,
21026         gimple_seq_empty_p, gimple_seq_alloc_with_stmt, bb_seq,
21027         set_bb_seq): Move down to after gimple_statement_d definition.
21029 2012-05-02  Michael Matz  <matz@suse.de>
21031         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
21032         gsi_replace_with_seq, instead of inserting itself.
21033         * gimple-iterator.c (gsi_replace_with_seq): New function.
21034         * tree-ssa-forwprop.c (forward_propagate_comparison): Take
21035         iterator instead of statement, advance it.
21036         (ssa_forward_propagate_and_combine): Adjust call to above.
21038 2012-05-02  Michael Matz  <matz@suse.de>
21040         * tree-phinodes.c (add_phi_node_to_bb): Tidy, don't use
21041         gimple_seq_alloc.
21042         * omp-low.c (finalize_task_copyfn): Don't use gimple_seq_alloc.
21043         * tree-nested.c (walk_gimple_omp_for): Ditto.
21044         * trans-mem.c (lower_transaction): Ditto.
21045         * tree-eh.c (do_return_redirection): Ditto.
21046         (do_goto_redirection): Ditto.
21047         (lower_try_finally_switch): Ditto.
21048         * gimplify.c (gimplify_stmt): Ditto.
21049         (gimplify_scan_omp_clauses): Ditto.
21050         (gimplify_omp_for): Ditto.
21051         (gimplify_function_tree): Ditto.
21052         * gimple-fold.c (gimplify_and_update_call_from_tree): Ditto.
21053         * tree-mudflap.c (mf_decl_cache_locals): Ditto.
21054         (mf_build_check_statement_for): Ditto.
21055         (mx_register_decls): Ditto.
21056         * graphite-sese-to-poly.c (remove_invariant_phi): Ditto,
21057         and don't use itertors to append.
21058         (insert_stmts): Ditto.
21059         (insert_out_of_ssa_copy): Ditto.
21060         (insert_out_of_ssa_copy_on_edge): Ditto.
21062 2012-05-02  Michael Matz  <matz@suse.de>
21064         * gimple.h (gimple_bind_body_ptr): New function.
21065         (gimple_bind_body): Use it.
21066         (gimple_catch_handler): Use gimple_catch_handler_ptr.
21067         (gimple_eh_filter_failure_ptr): New function.
21068         (gimple_eh_filter_failure): Use it.
21069         (gimple_eh_else_n_body_ptr): New function.
21070         (gimple_eh_else_n_body): Use it.
21071         (gimple_eh_else_e_body_ptr): New function.
21072         (gimple_eh_else_e_body): Use it.
21073         (gimple_try_eval_ptr): New function.
21074         (gimple_try_eval): Use it.
21075         (gimple_try_cleanup_ptr): New function.
21076         (gimple_try_cleanup): Use it.
21077         (gimple_wce_cleanup_ptr): New function.
21078         (gimple_wce_cleanup): Use it.
21079         (gimple_omp_body_ptr): New function.
21080         (gimple_omp_body): Use it.
21081         (gimple_omp_for_pre_body_ptr): New function.
21082         (gimple_omp_for_pre_body): Use it.
21083         (gimple_transaction_body_ptr): New function.
21084         (gimple_transaction_body): Use it.
21085         (gsi_split_seq_before): Adjust to return nothing and take pointer
21086         to sequence.
21087         (gsi_set_stmt): Declare.
21088         (gsi_replace_with_seq): Declare.
21089         (walk_gimple_seq_mod): Declare.
21090         * function.h (struct function <gimple_body>): Use typedef gimple_seq.
21092         * gimple-iterator.c (gsi_set_stmt): New function.
21093         (gsi_split_seq_before): Return new sequence via pointer argument.
21094         (gsi_replace): Use gsi_set_stmt.
21096         * tree-ssa-loop-im.c (move_computations_stmt): First remove
21097         then insert stmt.
21098         * tree-complex.c (update_complex_components_on_edge): Don't copy gsi.
21099         * tree-phinodes.c (resize_phi_node): Don't resize stmt in-place,
21100         return new stmt.
21101         (reserve_phi_args_for_new_edge): Change call to above,
21102         use gsi_set_stmt.
21104         * omp-low.c (lower_omp): Change prototype to take pointer to sequence.
21105         (lower_rec_input_clauses): Use gimple_seq_add_seq instead of
21106         iterators.  Adjust call to lower_omp.
21107         (lower_lastprivate_clauses): Adjust call to lower_omp.
21108         (lower_reduction_clauses): Ditto.
21109         (expand_omp_taskreg): Nullify non-cfg body of child_fn.
21110         (lower_omp_sections): Don't explicitely count sequence length,
21111         nullify lowered bodies earlier, ensure stmts are part of only
21112         one sequence, adjust call to lower_omp.
21113         (lower_omp_single): Ensure stmts are part of only one sequence,
21114         adjust call to lower_omp.
21115         (lower_omp_master): Ditto.
21116         (lower_omp_ordered): Ditto.
21117         (lower_omp_critical): Ditto.
21118         (lower_omp_for): Ditto.
21119         (lower_omp_taskreg): Ditto, tidy.
21120         (lower_omp_1): Adjust calls to lower_omp.
21121         (execute_lower_omp): Ditto.
21122         (lower_omp): Adjust to take pointer to sequence.
21123         (diagnose_sb_2): Use walk_gimple_seq_mod.
21124         (diagnose_omp_structured_block_errors): Ditto and set possibly
21125         changed function body.
21126         * gimple-low.c (lower_function_body): Set function body after
21127         it stabilizes.
21128         (lower_sequence): Adjust to take pointer to sequence.
21129         (lower_omp_directive): Ensure stmt isn't put twice into the
21130         sequence, adjust call to lower_sequence.
21131         (lower_stmt): Adjust calls to lower_sequence.
21132         (lower_gimple_bind): Ditto.
21133         (gimple_try_catch_may_fallthru): Call gsi_start with lvalue.
21134         * tree-nested.c (walk_body): Take pointer to sequence, use
21135         walk_gimple_seq_mod.
21136         (walk_function): Adjust call to walk_body, set possibly changed body.
21137         (walk_gimple_omp_for): Adjust calls to walk_body.
21138         (convert_nonlocal_omp_clauses): Ditto.
21139         (convert_nonlocal_reference_stmt): Ditto.
21140         (convert_local_omp_clauses): Ditto.
21141         (convert_local_reference_stmt): Ditto.
21142         (convert_tramp_reference_stmt): Ditto.
21143         (convert_gimple_call): Ditto.
21144         (convert_nl_goto_reference): Use local iterator copy.
21145         * gimple.c (walk_gimple_seq_mod): Renamed from walk_gimple_seq,
21146         but taking pointer to sequence, ensure gsi_start is called with
21147         callers lvalue.
21148         (walk_gimple_seq): New wrapper around walk_gimple_seq_mod,
21149         asserting that the sequence head didn't change.
21150         (walk_gimple_stmt): Replace all calls to walk_gimple_seq with
21151         walk_gimple_seq_mod.
21152         * trans-mem.c (lower_transaction): Use walk_gimple_seq_mod.
21153         (execute_lower_tm): Ditto, and set possibly changed body.
21154         * tree-eh.c (lower_eh_constructs_1): Take pointer to sequence,
21155         call gsi_start with that lvalue.
21156         (replace_goto_queue_stmt_list): Ditto.
21157         (replace_goto_queue_1): Adjust calls to replace_goto_queue_stmt_list.
21158         (replace_goto_queue): Ditto.
21159         (lower_try_finally_nofallthru): Adjust calls to lower_eh_constructs_1.
21160         (lower_try_finally_onedest): Ditto.
21161         (lower_try_finally_copy): Ditto.
21162         (lower_try_finally_switch): Ditto.
21163         (lower_try_finally): Ditto.
21164         (lower_eh_filter): Ditto.
21165         (lower_eh_must_not_throw): Ditto.
21166         (lower_cleanup): Ditto.
21167         (lower_eh_constructs_2): Ditto.
21168         (lower_catch): Ditto, and ensure gsi_start is called with lvalue.
21169         (lower_eh_constructs): Adjust calls to lower_eh_constructs_1, and
21170         set possibly changed body.
21171         (optimize_double_finally): Call gsi_start with lvalue.
21173         * tree-cfg.c (make_blocks): Adjust call to gsi_split_seq_before.
21174         (gimple_split_block): Ditto.
21175         (gimple_merge_blocks): Use gsi_start_phis.
21176         (move_stmt_r): Use walk_gimple_seq_mod.
21177         * tree-ssa-dse.c (dse_enter_block): Use gsi_last_bb.
21178         * cgraphbuild.c (build_cgraph_edges): Use gsi_start_phis.
21179         (rebuild_cgraph_edges): Ditto.
21180         (cgraph_rebuild_references): Ditto.
21181         * ipa-prop.c (ipa_analyze_params_uses): Ditto.
21182         * tree-inline.c (copy_phis_for_bb): Ditto.
21183         * tree-ssa-dce.c: Ditto.
21185         * cgraphunit.c (cgraph_analyze_function): Use gimple_has_body_p.
21187 2012-05-02  Kirill Yukhin  <kirill.yukhin@intel.com>
21188             Andi Kleen  <ak@linux.intel.com>
21190         * coretypes.h (MEMMODEL_MASK): New.
21191         * builtins.c (get_memmodel): Add val. Call target.memmodel_check
21192         and return new variable.
21193         (expand_builtin_atomic_exchange):  Mask memmodel values.
21194         (expand_builtin_atomic_compare_exchange): Ditto.
21195         (expand_builtin_atomic_load): Ditto.
21196         (expand_builtin_atomic_store): Ditto.
21197         (expand_builtin_atomic_clear): Ditto.
21198         * doc/extend.texi: Mention port-dependent memory model flags.
21199         * config/i386/cpuid.h (bit_HLE): New.
21200         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
21201         HLE support.
21202         * config/i386/i386-protos.h (ix86_generate_hle_prefix): New.
21203         * config/i386/i386-c.c (ix86_target_macros_internal): Set HLE defines.
21204         (ix86_target_string)<-mhle>: New.
21205         (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
21206         * config/i386/i386.c (ix86_target_string) <OPTION_MASK_ISA_HLE>: New.
21207         (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
21208         (ix86_option_override_internal) <PTA_HLE>: New switch, set it
21209         enabled for generic, generic64 and core-avx2.
21210         (ix86_print_operand): Generate HLE lock prefixes.
21211         (ix86_memmodel_check): New.
21212         (TARGET_MEMMODEL_CHECK): Ditto.
21213         * config/i386/i386.h (OPTION_ISA_HLE): Ditto.
21214         (IX86_HLE_ACQUIRE): Ditto.
21215         (IX86_HLE_RELEASE): Ditto.
21216         * config/i386/i386.h (ix86_generate_hle_prefix): Ditto.
21217         * config/i386/i386.opt (mhle): Ditto.
21218         * config/i386/sync.md(atomic_compare_and_swap<mode>): Pass
21219         success model to instruction emitter.
21220         (atomic_fetch_add<mode>): Ditto.
21221         (atomic_exchange<mode>): Ditto.
21222         (atomic_add<mode>): Ditto.
21223         (atomic_sub<mode>): Ditto.
21224         (atomic_<code><mode>): Ditto.
21225         (*atomic_compare_and_swap_doubledi_pic): Ditto.
21226         (atomic_compare_and_swap_single<mode>): Define and use argument
21227         for success model.
21228         (atomic_compare_and_swap_double<mode>): Ditto.
21229         * configure.ac: Check if assembler support HLE prefixes.
21230         * configure: Regenerate.
21231         * config.in: Ditto.
21233 2012-05-02  Steven Bosscher  <steven@gcc.gnu.org>
21235         PR middle-end/53153
21236         * gimplify.c (preprocess_case_label_vec_for_gimple): New function,
21237         split out from ...
21238         (gimplify_switch_expr): ... here.
21239         * gimple.h (preprocess_case_label_vec_for_gimple): Add prototype.
21240         * tree-ssa-forwprop.c (simplify_gimple_switch_label_vec): New function
21241         to clean up case labels with values outside the index type range.
21242         (simplify_gimple_switch): Call it if something changed.
21243         Remove strange and unnecessary assert.
21245 2012-05-02  Richard Guenther  <rguenther@suse.de>
21247         * fold-const.c (div_if_zero_remainder): sizetypes no longer
21248         sign-extend.
21249         (int_const_binop_1): New worker for int_const_binop with
21250         overflowable parameter.  Pass it through to force_fit_type_double.
21251         (int_const_binop): Wrap around int_const_binop_1 with overflowable
21252         equal to one.
21253         (size_binop_loc): Call int_const_binop_1 with overflowable equal
21254         to minus one, forcing overflow detection for even unsigned types.
21255         (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE special-casing.
21256         (fold_binary_loc): Call try_move_mult_to_index with signed offset.
21257         * stor-layout.c (initialize_sizetypes): sizetypes no longer
21258         sign-extend.
21259         (layout_type): For zero-sized arrays ignore overflow on the
21260         size calculations.
21261         * tree-ssa-ccp.c (bit_value_unop_1): Likewise.
21262         (bit_value_binop_1): Likewise.
21263         * tree.c (double_int_to_tree): Likewise.
21264         (double_int_fits_to_tree_p): Likewise.
21265         (force_fit_type_double): Likewise.
21266         (host_integerp): Likewise.
21267         (int_fits_type_p): Likewise.
21268         * varasm.c (output_constructor_regular_field): Sign-extend the
21269         field-offset to cater for negative offsets produced by the Ada
21270         frontend.
21271         * omp-low.c (extract_omp_for_data): Convert the loop step to
21272         signed for pointer adjustments.
21274 2012-05-02  Richard Guenther  <rguenther@suse.de>
21276         * tree.c (valid_constant_size_p): New function.
21277         * tree.h (valid_constant_size_p): Declare.
21278         * cfgexpand.c (expand_one_var): Adjust check for too large
21279         variables by using valid_constant_size_p.
21280         * varasm.c (assemble_variable): Likewise.
21282         * c-decl.c (grokdeclarator): Properly check for sizes that
21283         cover more than half of the address-space.
21285 2012-05-02  Jakub Jelinek  <jakub@redhat.com>
21287         PR tree-optimization/53163
21288         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Don't ignore
21289         return value from compute_all_dependences.
21291         PR rtl-optimization/53160
21292         * ree.c (combine_reaching_defs): Handle the case where cand->insn
21293         has been modified by ree pass already.
21295 2012-05-01  Ian Lance Taylor  <iant@google.com>
21297         PR c/37303
21298         * c-decl.c (build_compound_literal): Make the decl readonly if it
21299         an array of a readonly type.
21300         * gimplify.c (gimplify_compound_literal_expr): Add fallback
21301         parameter.  Change all callers.  If the decl is not addressable
21302         and is not an l-value, make it readonly.
21304 2012-05-01  Bernd Schmidt  <bernds@codesourcery.com>
21306         * ira.c (allocated_reg_info_size): New static variable.
21307         (expand_reg_info): Manage it. Call
21308         setup_preferred_alternate_classes_for_new_pseudos.
21309         (ira): Don't do it here.  Remove local allocated_reg_info_size,
21310         set the global before calling find_moveable_pseudos.
21311         (find_moveable_pseudos): Call expand_reg_info rather than
21312         resize_reg_info.
21314 2012-05-01  Richard Henderson  <rth@redhat.com>
21316         * common.opt (fsync-libcalls): New.
21317         * doc/invoke.texi: Document it.
21318         * optabs.c (init_sync_libfuncs): Honor it.
21320 2012-05-01  Kenneth Zadeck  <zadeck@naturalbridge.com>
21321             Richard Sandiford  <r.sandiford@uk.ibm.com>
21323         PR rtl-optimization/52543
21324         * Makefile.in (lower-subreg.o, target-globals.o): Depend on
21325         lower-subreg.h.
21326         * lower-subreg.h: New file.
21327         * target-globals.h (this_target_lower_subreg): Declare.
21328         (target_globals): Add lower_subreg;
21329         (restore_target_globals): Restore this_target_lower_subreg.
21330         * target-globals.c: Include it.
21331         (default_target_globals): Add default_target_lower_subreg.
21332         (save_target_globals): Initialize target_lower_subreg.
21333         * rtl.h (init_lower_subreg): Added declaration.
21334         * toplev.c (backend_init_target): Call initializer for lower-subreg
21335         pass.
21336         * lower-subreg.c (LOG_COSTS, FORCE_LOWERING): New macros.
21337         (default_target_lower_subreg): New variable.
21338         (this_target_lower_subreg): Likewise.
21339         (twice_word_mode, choices): New macros.
21340         (shift_cost, compute_splitting_shift, compute_costs)
21341         (init_lower_subreg): New functions.
21342         (resolve_simple_move): Add speed_p argument.  Check choices.
21343         (find_pseudo_copy): Don't check the mode size here.
21344         (resolve_simple_move): Assert the mode size.
21345         (find_decomposable_shift_zext): Add speed_p argument and return
21346         a bool.  Check choices.
21347         (resolve_shift_zext): Add comment.
21348         (dump_shift_choices, dump_choices): New functions.
21349         (decompose_multiword_subregs): Dump list of profitable
21350         transformations.  Add code to skip non profitable transformations.
21351         Update calls to simple_move and find_decomposable_shift_zext.
21353 2012-05-01  Ian Bolton  <ian.bolton@arm.com>
21354             Sameera Deshpande  <sameera.deshpande@arm.com>
21355             Greta Yorsh  <greta.yorsh@arm.com>
21357         * config/arm/arm-protos.h (thumb_unexpanded_epilogue): Rename to...
21358         (thumb1_unexpanded_epilogue): ...this.
21359         * config/arm/arm.c (thumb_unexpanded_epilogue): Rename to...
21360         (thumb1_unexpanded_epilogue): ...this.
21361         * config/arm/arm.md (thumb_unexpanded_epilogue): Rename to...
21362         (thumb1_unexpanded_epilogue): ...this.
21364 2012-05-01  Richard Earnshaw  <rearnsha@arm.com>
21366         * arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_DEFAULT): Avoid ifdef
21367         comparing enumeration values.  Update comments.
21369 2012-05-01  Alan Modra  <amodra@gmail.com>
21371         PR target/53038
21372         * config/rs6000/rs6000.c (load_lr_save, restore_saved_lr,
21373         load_cr_save, add_crlr_cfa_restore): New functions.
21374         (rs6000_restore_saved_cr): Rename to..
21375         (restore_saved_cr): ..this.  Add cfa_restore notes for cr.
21376         (rs6000_emit_epilogue): Use new functions.  Adjust condition
21377         for emitting lr and cr cfa_restore.  Emit cfa_restores for fp
21378         regs when using out-of-line restore only when shrink wrapping.
21380 2012-04-30  Uros Bizjak  <ubizjak@gmail.com>
21382         PR middle-end/53136
21383         * ipa-prop.c (ipa_print_node_jump_functions): Wrap multiple
21384         calls to cgraph_node_name in xstrdup.
21385         (ipa_make_edge_direct_to_target): Ditto.
21386         * cgraph.c (dump_cgraph_node): Ditto.
21387         * tree-sra.c (convert_callers_for_node): Ditto.
21388         * lto-symtab.c (lto_cgraph_replace_node): Ditto.
21389         * ipa-cp.c (perhaps_add_new_callers): Ditto.
21390         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Ditto.
21391         (cgraph_materialize_all_clones): Ditto.
21392         * ipa-inline.c (report_inline_failed_reason): Ditto.
21393         (want_early_inline_function_p): Ditto.
21394         (edge_badness): Ditto.
21395         (update_edge_key): Ditto.
21396         (flatten_function): Ditto.
21397         (ipa_inline): Ditto.
21398         (inline_always_inline_functions): Ditto.
21399         (early_inline_small_functions): Ditto.
21401 2012-04-30  Uros Bizjak  <ubizjak@gmail.com>
21403         PR target/53141
21404         * config/i386/i386.md (*umul<mode><dwi>3_1): Switch places of
21405         constraints 0 and 1.
21407 012-04-30  Jan Hubicka  <jh@suse.cz>
21409         * cgraph.c (ld_plugin_symbol_resolution_names): Move to symtab.c
21410         (cgraph_asm_nodes, cgraph_asm_last_node): Move to cgraphunit.c
21411         (cgraph_add_to_same_comdat_group): Remove.
21412         (cgraph_add_asm_node): Move to cgraphunit.c.
21413         (cgraph_make_decl_local): Move to symtab.c
21414         (cgraph_make_node_local_1): Update.
21415         (cgraph_can_remove_if_no_direct_calls_and): Update.
21416         (used_from_object_file_p): Update.
21417         (resolution_used_from_other_file_p): Move to symtab.c
21418         (cgraph_used_from_object_file_p): move to symtab.c
21419         (verify_cgraph_node): Verify same comdat groups.
21420         * cgraph.h (cgraph_asm_node): Rename to ...
21421         (asm_node): ... this one.
21422         (cgraph_asm_nodes): Rename to ...
21423         (asm_nodes): ... this one.
21424         (symtab_add_to_same_comdat_group): New function.
21425         (symtab_dissolve_same_comdat_group_list): New function.
21426         (symtab_used_from_object_file_p): Declare.
21427         (symtab_make_decl_local): Declare.
21428         (cgraph_add_to_same_comdat_group): Remove.
21429         (cgraph_add_asm_node): Remove.
21430         (cgraph_used_from_object_file_p, varpool_used_from_object_file_p):
21431         Remove.
21432         (cgraph_finalize_compilation_unit): Rename to ...
21433         (finalize_compilation_unit): ... this one.
21434         (cgraph_optimize): Rename to ....
21435         (compile): ... this one.
21436         (add_asm_node): Declare.
21437         (fixup_same_cpp_alias_visibility): Declare.
21438         (cgraph_make_decl_local): Remove.
21439         (varpool_assemble_pending_decls): Rename to ...
21440         (varpool_output_variables): ... this one.
21441         (varpool_remove_unreferenced_decls): Remove.
21442         * ipa-inline-transform.c (clone_inlined_nodes): Dissolve comdat groups.
21443         (preserve_function_body_p): Make static.
21444         * toplev.c (compile_file): Update comments; update.
21445         * cgraphunit.c: Update comments.
21446         (cgraph_expand_all_functions): Rename to ...
21447         (expand_all_functions): ... this one; update.
21448         (cgraph_mark_functions_to_output): Rename to ...
21449         (mark_functions_to_output): ... this one; cleanup.
21450         (cgraph_output_pending_asms): Remove prototype.
21451         (asm_nodes, asm_last_node): New static vars.
21452         (cgraph_process_new_functions): Update.
21453         (cgraph_reset_node): Cleanup; add comment.
21454         (cgraph_add_new_function): Update.
21455         (cgraph_output_pending_asms): Rename to ...
21456         (output_asm_statements): ... this one.
21457         (add_asm_node): New function.
21458         (fixup_same_cpp_alias_visibility): New function based on code
21459         in cgraph_analyze_function.
21460         (cgraph_analyze_function): Use it.
21461         (cgraph_order_sort): Update.
21462         (cgraph_output_in_order): Update.
21463         (cgraph_function_versioning): Update.
21464         (cgraph_optimize): Rename to ...
21465         (compile): ... this one; initialize streamer hooks here.
21466         (cgraph_finalize_compilation_unit): Rename to ...
21467         (finalize_compilation_unit): ... this one; do not initialize streamer
21468         hook here.
21469         * lto-streamer-out.c (lto_output_toplevel_asms): Update.
21470         * dwarf2out.c: Update ocmment.
21471         * optimize.c (maybe_clone_body): Use symtab_add_to_same_comdat_group.
21472         * method.c (use_thunk): Likewise.
21473         * semantics.c (maybe_add_lambda_conv_op): Likewise.
21474         * decl2.c (maybe_emit_vtables): Likewise.
21475         (cp_write_global_declarations): Use finalize_compilation_unit.
21476         * parser.c (cp_parser_asm_definition): Use add_asm_node.
21477         * lto-streamer-in.c (lto_input_toplevel_asms): Use add_asm_node
21478         * c-decl.c (c_write_global_declarations): Use
21479         finalize_compilation_unit.
21480         * langhooks.c (write_global_declarations): Update.
21481         * ipa.c (cgraph_externally_visible_p): Update.
21482         (dissolve_same_comdat_group_list): Remove.
21483         (function_and_variable_visibility): Update.
21484         * symtab.c: Inlcude lto-streamer.h and rtl.h
21485         (ld_plugin_symbol_resolution_names): New.
21486         (symtab_add_to_same_comdat_group): New.
21487         (symtab_dissolve_same_comdat_group_list): New.
21488         (resolution_used_from_other_file_p): Move here from cgraph.c
21489         (symtab_used_from_object_file_p): New.
21490         (symtab_make_decl_local): New.
21491         * passes.c (register_pass): Update comments.
21492         * c-parser.c (c_parser_asm_definition): Update.
21493         * varpool.c (varpool_analyze_node): Use
21494         fixup_same_cpp_alias_visibility.
21495         (varpool_remove_unreferenced_decls): Make static.
21496         (varpool_assemble_pending_decls): Rename to ...
21497         (varpool_output_variables): ... this one; call
21498         varpool_remove_unreferenced_decls.
21499         (varpool_used_from_object_file_p): Remove.
21501 2012-04-30  Marc Glisse  <marc.glisse@inria.fr>
21503         PR c++/51033
21504         * c-typeck.c (build_array_ref): Call
21505         convert_vector_to_pointer_for_subscript.
21506         * doc/extend.texi (Vector Extensions): Subscripting not just for C.
21508 2012-04-30  Uros Bizjak  <ubizjak@gmail.com>
21510         * config/i386/i386.md (and<mode>3): Change runtime operand mode checks
21511         to compile-time "mode == <MODE>mode" checks.
21512         (and splitter): Ditto.
21514 2012-04-30  Richard Henderson  <rth@redhat.com>
21516         * config/arm/arm.md (UNSPEC_LL): New.
21517         * config/arm/sync.md (atomic_loaddi, atomic_loaddi_1): New.
21518         (arm_load_exclusivedi): Use %H0.
21520 2012-04-30  Jason Merrill  <jason@redhat.com>
21522         * dwarf2out.c (comdat_symbol_id): Add const.
21523         (union die_symbol_or_type_node): Add const to die_symbol.
21524         (output_die_symbol, output_die, output_comp_unit): Adjust.
21526 2012-04-30  Andrew Stubbs  <ams@codesourcery.com>
21528         * config/arm/arm.md (negdi2): Use gen_negdi2_neon.
21529         * config/arm/neon.md (negdi2_neon): New insn.
21530         Also add splitters for core and NEON registers.
21532 2012-04-30  Andrew Stubbs  <ams@codesourcery.com>
21534         * config/arm/arm.c (neon_valid_immediate): Allow const_int.
21535         (arm_print_operand): Add 'x' format.
21536         * config/arm/constraints.md (Dn): Allow const_int.
21537         * config/arm/neon.md (neon_mov<mode>): Use VDX to allow DImode.
21538         Use 'x' format to print constants.
21539         * config/arm/predicates.md (imm_for_neon_mov_operand): Allow const_int.
21540         * config/arm/vfp.md (movdi_vfp): Disable for const_int when neon
21541         is enabled.
21542         (movdi_vfp_cortexa8): Likewise.
21544 2012-04-30  Ian Bolton  <ian.bolton@arm.com>
21545             Sameera Deshpande  <sameera.deshpande@arm.com>
21546             Greta Yorsh  <greta.yorsh@arm.com>
21548         * config/arm/arm-protos.h (ldm_stm_operation_p): New declaration.
21549         * config/arm/arm.c (ldm_stm_operation_p): New function.
21550         * config/arm/predicates.md (load_multiple_operation): Update predicate.
21551         (store_multiple_operation): Likewise.
21553         * config/arm/arm-protos.h (ldm_stm_operation_p): New parameters.
21554         * config/arm/arm.c (ldm_stm_operation_p): New parameters.
21555         * config/arm/predicates.md (load_multiple_operation): Add arguments.
21556         (store_multiple_operation): Likewise.
21558 2012-04-30  Uros Bizjak  <ubizjak@gmail.com>
21560         * config/i386/i386.md (and<mode>3): Expand masking operations with
21561         0xff, 0xffff or 0xffffffff immediates to corresponding zero_extend RTX.
21562         (and splitter): Split to DImode zero_extend RTX for DImode operand[0].
21564 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
21566         Add -Wvarargs option
21567         * builtins.c (fold_builtin_next_arg):  Use OPT_Wvarargs as an
21568         argument for the various warning_at calls.
21569         * docs/invoke.texi: Update the documentation.
21571 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
21573         Switch -ftrack-macro-expansion=2 on by default.
21574         * docs/cppopts.texi: Adjust for enabling -ftrack-macro-expansion=2
21575         by default.
21577         Fix va_start related location
21578         * builtins.c (fold_builtin_next_arg): Unwinds to the first
21579         location in real source code.
21581         Make conversion warnings work on NULL with -ftrack-macro-expansion
21582         * input.h (expansion_point_location_if_in_system_header): Declare
21583         new function.
21584         * input.c (expansion_point_location_if_in_system_header): Define it.
21586         Fix -Wuninitialized for -ftrack-macro-expansion
21587         * tree-ssa.c (warn_uninit): Use the spelling location of the variable
21588         declaration.  Use linemap_location_before_p for source locations.
21590         Strip "<built-in>" loc from displayed expansion context
21591         * input.c (expand_location_1): When expanding to spelling location
21592         in a context of a macro expansion, skip reserved system header
21593         locations.  Update comments.  * tree-diagnostic.c
21594         (maybe_unwind_expanded_macro_loc): Likewise.
21596         Make expand_location resolve to locus in main source file
21597         * input.c (expand_location_1): New.  Takes a parameter to choose
21598         whether to resolve the location to spelling or expansion point.
21599         Was factorized from ...
21600         (expand_location): ... here.
21601         (expand_location_to_spelling_point): New.  Implemented in terms of
21602         expand_location_1.
21603         * diagnostic.c (diagnostic_build_prefix): Use the new
21604         expand_location_to_spelling_point instead of expand_location.
21606         Fix PCH crash on GTYed pointer-to-scalar field of a struct
21607         * gengtype.c (write_types_process_field): Force second argument of
21608         the call to the PCH object hierarchy walker to be 'x'.
21610 2012-04-30  Eric Botcazou  <ebotcazou@adacore.com>
21612         * config/i386/i386.c (ix86_handle_struct_attribute): Use the proper
21613         predicate to discriminate types.
21615 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21617         * doc/invoke.texi (Wmissing-format-attribute): Document as an
21618         alias of Wsuggest-attribute=format.
21619         * c-typeck.c (convert_for_assignment): Replace
21620         Wmissing-format-attribute with Wsuggest-attribute=format.
21621         (digest_init): Likewise.
21623 2012-04-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21625         * opts.c (finish_options): Do not handle -Wmissing-noreturn here.
21626         * common.opt (Wmissing-noreturn): Alias of
21627         -Wsuggest-attribute=noreturn.
21629 2012-04-29  Hans-Peter Nilsson  <hp@axis.com>
21631         PR target/53156
21632         * config/cris/cris.md (andqu): New peephole2.
21633         (andu): Tweak head comment.
21635 2012-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
21636             Steven Bosscher  <steven@gcc.gnu.org>
21637             Maxim Kuvyrkov  <maxim@codesourcery.com>
21639         PR tree-optimization/38785
21640         * common.opt (ftree-partial-pre): New option.
21641         * doc/invoke.texi: Document it.
21642         * opts.c (default_options_table): Initialize flag_tree_partial_pre.
21643         * tree-ssa-pre.c (do_partial_partial_insertion): Insert only if it will
21644         benefit speed path.
21645         (execute_pre): Use flag_tree_partial_pre.
21647 2012-04-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21649         PR target/52999
21650         * config/pa/pa.c (pa_legitimate_constant_p): Don't put function labels
21651         in constant pool.
21653 2012-04-27  Ollie Wild  <aaw@google.com>
21655         * doc/invoke.texi (Wliteral-suffix): Document new option.
21657 2012-04-27  Tom Tromey  <tromey@redhat.com>
21659         * dwarf2out.c (dwarf_stack_op_name): Use get_DW_OP_name.
21660         (dwarf_tag_name): Use get_DW_TAG_name.
21661         (dwarf_attr_name): Use get_DW_AT_name.
21662         (dwarf_form_name): Use get_DW_FORM_name.
21663         * dwarf2cfi.c (dwarf_cfi_name): Use get_DW_CFA_name.
21665 2012-04-27  Paolo Bonzini  <bonzini@gnu.org>
21667         * tree-ssa-phiopt.c (conditional_replacement): Replace PHIs whose
21668         arguments are -1 and 0, by negating the result of the conditional.
21670 2012-04-27  Paolo Bonzini  <bonzini@gnu.org>
21672         PR target/53138
21673         * config/i386/i386.md (x86_mov<mode>cc_0_m1_neg): Add clobber.
21675 2012-04-27  Richard Guenther  <rguenther@suse.de>
21677         * tree-flow.h (is_hidden_global_store): Remove.
21678         * tree-ssa-sink.c (is_hidden_global_store): Likewise.
21679         * tree-ssa-alias.h (ref_may_alias_global_p): Declare.
21680         (stmt_may_clobber_global_p): Likewise.
21681         * tree-ssa-alias.c (ref_may_alias_global_p): New function.
21682         (stmt_may_clobber_global_p): Likewise.
21683         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Call
21684         stmt_may_clobber_global_p.
21685         * tree-ssa-dse.c (dse_possible_dead_store_p): Likewise.
21687 2012-04-27  Steven Bosscher  <steven@gcc.gnu.org>
21689         * cfg.c (disconnect_src): Do df_mark_solutions_dirty in the right
21690         place.
21692         * tree-switch-conversion.c (struct switch_conv_info): Add range_max,
21693         reorganize some fields and update comments.  Rename bit_test_uniq
21694         and bit_test_count to uniq resp. count.  Remove bit_test_bb.
21695         (collect_switch_conv_info): New function, collects info about a
21696         GIMPLE_SWITCH into a struct switch_conv_info.
21697         (check_range): Simplify to use pre-recorded info.  Fix think-o in
21698         range-branch ratio check.
21699         (check_process_case): Remove function.
21700         (check_all_empty_except_final): New function, verifies that all
21701         non-final basic blocks are empty.
21702         (process_switch): Simplify to use pre-recorded info.  Call
21703         collect_switch_conv_info to do that.  Assert that degenerate switch
21704         statements have been cleaned up.
21706 2012-04-27  Marc Glisse  <marc.glisse@inria.fr>
21708         PR middle-end/27139
21709         * tree-ssa-forwprop.c (combine_conversions): Handle INT->FP->INT.
21711 2012-04-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21713         PR c/53130
21714         * c-typeck.c (pop_init_level): Use %qD instead of %qT.
21716 2012-04-27  Tom de Vries  <tom@codesourcery.com>
21718         PR tree-optimization/51879
21719         * tree-ssa-sccvn.h (struct vn_reference_s): Add result_vdef field.
21720         * tree-ssa-sccvn.c (mark_use_processed): New function, factored out
21721         of ...
21722         (defs_to_varying): ... here.  Don't set use_processed.
21723         (visit_reference_op_call): Handle gimple_vdef.
21724         Handle case that lhs is NULL_TREE.
21725         (visit_use): Use mark_use_processed.  Handle calls with side-effect
21726         using visit_reference_op_call.
21728 2012-04-26  Richard Sandiford  <richard.sandiford@linaro.org>
21730         * sched-deps.c (fixup_sched_groups): Rename to...
21731         (chain_to_prev_insn): ...this.
21732         (chain_to_prev_insn_p): New function.
21733         (deps_analyze_insn): Use it instead of SCHED_GROUP_P.
21735 2012-04-26  Richard Sandiford  <richard.sandiford@linaro.org>
21737         * sched-int.h (_haifa_insn_data): Move priority_status.
21738         Add model_index.
21739         (INSN_MODEL_INDEX): New macro.
21740         * haifa-sched.c (insn_delay): New function.
21741         (sched_regno_pressure_class): Update commentary.
21742         (mark_regno_birth_or_death): Pass the liveness bitmap and
21743         pressure array as arguments, instead of using curr_reg_live and
21744         curr_reg_pressure.  Only update the pressure if the bit in the
21745         liveness set has changed.
21746         (initiate_reg_pressure_info): Always trust the live-in set for
21747         SCHED_PRESSURE_MODEL.
21748         (initiate_bb_reg_pressure_info): Update call to
21749         mark_regno_birth_or_death.
21750         (dep_list_size): Take the list as argument.
21751         (calculate_reg_deaths): New function, extracted from...
21752         (setup_insn_reg_pressure_info): ...here.
21753         (MODEL_BAR): New macro.
21754         (model_pressure_data, model_insn_info, model_pressure_limit)
21755         (model_pressure_group): New structures.
21756         (model_schedule, model_worklist, model_insns, model_num_insns)
21757         (model_curr_point, model_before_pressure, model_next_priority):
21758         New variables.
21759         (MODEL_PRESSURE_DATA, MODEL_MAX_PRESSURE, MODEL_REF_PRESSURE)
21760         (MODEL_INSN_INFO, MODEL_INSN): New macros.
21761         (model_index, model_update_limit_points_in_group): New functions.
21762         (model_update_limit_points, model_last_use_except): Likewise.
21763         (model_start_update_pressure, model_update_pressure): Likewise.
21764         (model_recompute, model_spill_cost, model_excess_group_cost): Likewise.
21765         (model_excess_cost, model_dump_pressure_points): Likewise.
21766         (model_set_excess_costs): Likewise.
21767         (rank_for_schedule): Extend SCHED_PRIORITY_WEIGHTED ordering to
21768         SCHED_PRIORITY_MODEL.  Use insn_delay.  Use the order in the model
21769         schedule as an alternative tie-breaker.  Update the call to
21770         dep_list_size.
21771         (ready_sort): Call model_set_excess_costs.
21772         (update_register_pressure): Update call to mark_regno_birth_or_death.
21773         Rely on that function to check liveness rather than doing it here.
21774         (model_classify_pressure, model_order_p, model_add_to_worklist_at)
21775         (model_remove_from_worklist, model_add_to_worklist, model_promote_insn)
21776         (model_add_to_schedule, model_analyze_insns, model_init_pressure_group)
21777         (model_record_pressure, model_record_pressures): New functions.
21778         (model_record_final_pressures, model_add_successors_to_worklist)
21779         (model_promote_predecessors, model_choose_insn): Likewise.
21780         (model_reset_queue_indices, model_dump_pressure_summary): Likewise.
21781         (model_start_schedule, model_finalize_pressure_group): Likewise.
21782         (model_end_schedule): Likewise.
21783         (schedule_insn): Say when we're scheduling the next instruction
21784         in the model schedule.
21785         (schedule_insn): Handle SCHED_PRESSURE_MODEL.
21786         (queue_to_ready): Do not add instructions that are
21787         MAX_SCHED_READY_INSNS beyond the current point of the model schedule.
21788         Always allow the next instruction in the model schedule to be added.
21789         (debug_ready_list): Print the INSN_REG_PRESSURE_EXCESS_COST_CHANGE
21790         and delay for SCHED_PRESSURE_MODEL too.
21791         (prune_ready_list): Extend SCHED_PRIORITY_WEIGHTED handling to
21792         SCHED_PRIORITY_MODEL, but also take the DFA into account.
21793         (schedule_block): Call model_start_schedule and model_end_schedule.
21794         Extend SCHED_PRIORITY_WEIGHTED stall handling to SCHED_PRIORITY_MODEL.
21795         (sched_init): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
21796         to SCHED_PRESSURE_MODEL, but don't allocate saved_reg_live or
21797         region_ref_regs.
21798         (sched_finish): Update accordingly.
21799         (fix_tick_ready): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
21800         to SCHED_PRESSURE_MODEL.
21801         (add_jump_dependencies): Update call to dep_list_size.
21802         (haifa_finish_h_i_d): Fix leak of max_reg_pressure.
21803         (haifa_init_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
21804         to SCHED_PRESSURE_MODEL.
21805         * sched-deps.c (init_insn_reg_pressure_info): Likewise, but don't
21806         allocate INSN_MAX_REG_PRESSURE for SCHED_PRESSURE_MODEL.
21807         (sched_analyze_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE
21808         handling to SCHED_PRESSURE_MODEL.
21810 2012-04-26  Richard Sandiford  <richard.sandiford@linaro.org>
21812         * common.opt (fsched-pressure-algorithm=): New option.
21813         * flag-types.h (sched_pressure_algorithm): New enum.
21814         * sched-int.h (sched_pressure_p): Replace with...
21815         (sched_pressure): ...this new variable.
21816         * haifa-sched.c (sched_pressure_p): Replace with...
21817         (sched_pressure): ...this new variable.
21818         (sched_regno_pressure_class, rank_for_schedule, ready_sort)
21819         (update_reg_and_insn_max_reg_pressure, schedule_insn)
21820         (debug_ready_list, prune_ready_list, schedule_block, sched_init)
21821         (sched_finish, fix_tick_ready, haifa_init_insn): Update accordingly.
21822         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
21823         (sched_analyze_insn): Likewise.
21824         * sched-rgn.c (schedule_region): Likewise.
21825         * config/m68k/m68k.c (m68k_sched_variable_issue): Likewise.
21827 2012-04-26  Bernd Schmidt  <bernds@codesourcery.com>
21829         PR middle-end/52997
21830         * ira.c (find_moveable_pseudos): Call resize_reg_info.
21832         PR middle-end/52940
21833         * machmode.h (CLASS_HAS_WIDER_MODES_P): True for MODE_PARTIAL_INT.
21834         * expr.c (convert_move): Honor unsignedp when extending partial int
21835         modes.
21836         * genmodes.c (complete_mode): Don't clear component field of partial
21837         int modes.
21838         (emit_mode_inner): Don't emit it however.
21839         (calc_wider_mode): Partial int modes widen to their component.
21841 2012-04-26  David S. Miller  <davem@davemloft.net>
21843         * config/sparc/niagara4.md: New file.
21844         * config/sparc/sparc.md: Include it.
21845         * config/sparc/sparc.c (niagara4_costs): New processor costs.
21846         (sparc_option_override): Use it.
21847         (sparc_use_sched_lookahead): Return 2 for niagara4.
21848         (sparc_issue_rate): Likewise.
21850         * config/sparc/sparc.md (attr type): Delete 'fgm_cmp'.
21851         (fpack16_vis, fpackfix_vis, fpack32_vis): Set type to fgm_pack.
21852         (fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
21853         fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis): Set type to fgm_mul.
21854         (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis,
21855         alignaddrldi_vis): Set type to gsr.
21856         (pdist_vis, pdistn<mode>_vis): Set type to fgm_pdsit.
21857         (fcmp<code><GCM:gcm_name><P:mode>_vis, cmask8<P:mode>_vis,
21858         cmask16<P:mode>_vis, cmask32<P:mode>_vis, fchksm16_vis,
21859         v<vis3_shift_patname><mode>3, fmean16_vis,
21860         fp<plusminus_insn>64_vis, <vis3_addsub_ss_patname><mode>3,
21861         fucmp<code>8<P:mode>_vis): Set type to fga.
21862         * config/sparc/ultra1_2.md: Remove refrences to fgm_cmp.
21863         * config/sparc/niagara.md: Likewise.
21864         * config/sparc/niagara2.md: Likewise.
21865         * config/sparc/ultra3.md: Likewise, and fix type matching for
21866         us3_ialuX reservation.
21868 2012-04-26  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21870         * reload.c (find_reloads): Change the loop nesting when trying an
21871         alternative with swapped operands.
21873 2012-04-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21875         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Fix
21876         comment. Delete unused parameter first_exp_point_map.
21877         (virt_loc_aware_diagnostic_finalizer): Update call.
21879 2012-04-26  Michael Hope  <michael.hope@linaro.org>
21880             Richard Earnshaw  <rearnsha@arm.com>
21882         * config/arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_SOFT_FLOAT): Define.
21883         (GLIBC_DYNAMIC_LINKER_HARD_FLOAT): Define.
21884         (GLIBC_DYNAMIC_LINKER_DEFAULT): Define.
21885         (GLIBC_DYNAMIC_LINKER): Redefine to use the hard float path.
21887 2012-04-25  Sriraman Tallam  <tmsriram@google.com>
21889         * doc/extend.texi: Document avx2 support.
21890         * config/i386/i386.c (fold_builtin_cpu): Add avx2.
21892 2012-04-26  Hans-Peter Nilsson  <hp@axis.com>
21894         PR target/53120
21895         * config/cris/cris.md ("*andhi_lowpart_v32")
21896         ("*andqi_lowpart_v32"): Change first input-only operand from
21897         a (match_operand ...) to (match_dup 0).  Drop alternatives with
21898         const_int-matching constraints for redundancy.
21899         ("*andhi_lowpart_non_v32", "*andqi_lowpart_non_v32"): Ditto.  Drop
21900         three-operand alternative.
21902 2012-04-25  Jakub Jelinek  <jakub@redhat.com>
21904         PR target/53110
21905         * config/i386/i386.md (and<mode>3): For andq $0xffffffff, reg
21906         instead expand it as zero extension.
21908 2012-04-25  H.J. Lu  <hongjiu.lu@intel.com>
21910         PR debug/52857
21911         * dwarf2out.c (dbx_reg_number): Assert return value != INVALID_REGNUM.
21913 2012-04-25  Jakub Jelinek  <jakub@redhat.com>
21915         * common.opt (flag_debug_types_section): Default to 0.
21916         (dwarf_version): Default to 4.
21917         (dwarf_record_gcc_switches): Default to 1.
21918         (dwarf_strict): Default to 0.
21919         * toplev.c (process_options): Don't handle dwarf_strict
21920         or dwarf_version here.
21921         * config/vxworks.c (vxworks_override_options): Don't
21922         test whether dwarf_strict or dwarf_version are negative,
21923         instead test !global_options_set.x_dwarf_*.
21924         * config/darwin.c (darwin_override_options): Default to
21925         dwarf_version 2.
21926         * doc/invoke.texi: Note that -gdwarf-4, -grecord-gcc-switches
21927         and -fno-debug-types-section are now the default.
21929 2012-04-25  Jan Hubicka  <jh@suse.cz>
21931         * cgraphunit.c: Update toplevel comment.
21932         (tree_rest_of_compilation): Merge into cgraph_expand_function.
21933         (cgraph_analyze_function): Make static.
21934         (cgraph_decide_is_function_needed): Make static.
21935         (cgraph_add_new_function): Use expand_function instead of
21936         rest_of_compilation.
21937         (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
21938         verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
21939         Move to cgraph.c
21940         (cgraph_inline_p): Remove.
21941         (cgraph_preserve_function_body_p): Move to ipa-inline-transform.
21942         (init_cgraph): Add comment.
21943         * cgraphbuild.c (record_reference, mark_address, mark_load,
21944         mark_store): Do not call analyze_expr hook.
21945         * cgraph.c: Update toplevel comment.
21946         (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
21947         verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
21948         Move fere from cgraphunit.c
21949         (cgraph_mark_force_output_node): Move to cgraph.h
21950         * cgraph.h: Reorder so the comments match the function placement.
21951         (cgraph_analyze_function, cgraph_decide_is_function_needed): Remove.
21952         (cgraph_mark_force_output_node): Move here from cgraph.c
21953         * tree.c (free_lang_data): Do not clear analyze_expr hook.
21954         * ipa-inline-transform.c (preserve_function_body_p): New function.
21955         (inline_transform): Update.
21956         * langhooks.c (lhd_callgraph_analyze_expr): Remove.
21957         * langhooks.h (lang_hooks_for_callgraph): Remove.
21958         (lang_hooks): Remove callgraph.
21959         * tree-inline.c (expand_call_inline): Do not use cgraph_inline_p.
21960         * varpool.c: Remove out of date comment.
21961         * langhooks-def.h (lhd_callgraph_analyze_expr): Remove.
21962         (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): Remove.
21964 2012-04-25  Jan Hubicka  <jh@suse.cz>
21966         PR middle-end/53089
21967         * cgraphunit.c (referred_to_p): Move ahead in file to avoid
21968         forward declaration.
21969         (cgraph_finalize_function): Finalize them here.
21970         * symtab.c (dump_symtab): Dump ctors and dtors.
21972 2012-04-25  Jakub Jelinek  <jakub@redhat.com>
21974         PR middle-end/52979
21975         * stor-layout.c (get_best_mode): Don't return mode with bitsize
21976         larger than maxbits.  Don't compute maxbits modulo align.
21977         Also check that unit bytes long store at bitpos / unit * unit
21978         doesn't affect bits beyond bitregion_end.
21979         * expmed.c (store_bit_field_1): Avoid trying insv if OP_MODE MEM
21980         would not fit into bitregion_start ... bitregion_end + 1 bit region.
21981         (store_split_bit_field): Decrease unit close to end of bitregion_end
21982         if access is restricted in order to avoid mutual recursion.
21984         PR tree-optimization/53058
21985         * double-int.h (double_int_max_value, double_int_min_value): New
21986         prototypes.
21987         * double-int.c (double_int_max_value, double_int_min_value): New
21988         functions.
21989         * tree-vrp.c (register_edge_assert_for_2): Compare mask for LE_EXPR
21990         or GT_EXPR with double_int_max_value instead of double_int_mask.
21992 2012-04-25  Richard Guenther  <rguenther@suse.de>
21994         * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
21995         * tree-vect-loop.c (vect_transform_loop): Adjust.
21996         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Record
21997         the maximum number of iterations for the epilogue loop.
21998         (vect_loop_versioning): Remove case re-using the peeled epilogue loop.
22000 2012-04-25  Jakub Jelinek  <jakub@redhat.com>
22002         PR c/52880
22003         * c-typeck.c (set_nonincremental_init,
22004         set_nonincremental_init_from_string): Pass true instead of false
22005         as IMPLICIT to add_pending_init.
22007 2012-04-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22009         * c-typeck.c (pop_init_level): Improve diagnostics.
22011 2012-04-25  Uros Bizjak  <ubizjak@gmail.com>
22013         * compare-elim.c (try_eliminate_compare): Also handle operands with
22014         implicit extensions.
22016 2012-04-25  Alan Modra  <amodra@gmail.com>
22018         * config/rs6000/rs6000 (SAVE_INLINE_VRS, REST_INLINE_VRS,
22019         V_SAVE_INLINE, SAVRES_LR, SAVRES_SAVE, SAVRES_REG,
22020         SAVRES_GPR, SAVRES_FPR, SAVRES_VR): Define.
22021         (no_global_regs_above): Delete.
22022         (no_global_regs): New function.
22023         (rs6000_savres_strategy): Handle vector regs.  Use proper lr_save_p
22024         value for load multiple test.
22025         (savres_routine_syms): Increase size.
22026         (rs6000_savres_routine_name, rs6000_savres_routine_sym,
22027         ptr_regno_for_savres, rs6000_emit_savres_rtx): Pass in int selector
22028         rather than a number of boolean flags.  Update all callers.
22029         (rs6000_savres_routine_name): Generate vector save/restore names.
22030         (rs6000_savres_routine_sym): Handle vector regs.  Delete forward decl.
22031         (ptr_regno_for_savres, rs6000_emit_savres_rtx): Likewise.
22032         (rs6000_emit_prologue): Delete saving_FPRs_inline, saving_GPRs_inline
22033         and using_store_multiple.  Expand uses.  Don't always use r11 as
22034         frame reg when needed for out-of-line saves.  Set up initial offset
22035         for out-of-line vector saves when buying stack frame.  Handle pointer
22036         reg setup for out-of-line fp save.  Emit call to out-of-line vector
22037         save function.  Choose r11 or r12 for vrsave reg when available for
22038         better scheduling.
22039         (rs6000_output_function_prologue): Don't emit .extern for ELF.
22040         (rs6000_emit_epilogue): Choose a better frame reg when restoring
22041         from back-chain to suit out-of-line vector restore functions.  Emit
22042         call to out-of-line vector restore function.  Adjust register used
22043         for cr restore.  Tweak pointer register setup for gpr restore.
22044         * config/rs6000/rs6000.h (FIRST_SAVED_GP_REGNO): Take into account
22045         FIXED_R13.
22046         * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Simplify.
22047         (V_SAVE_INLINE): Define.
22048         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*): New insns.
22050 2012-04-25  Alan Modra  <amodra@gmail.com>
22052         * config/rs6000/rs6000.c (rs6000_savres_strategy): Allow
22053         out-of-line save/restore for large frames.  Don't disable
22054         out-of-line saves on ABI_AIX when using static chain reg.
22055         (rs6000_emit_prologue): Adjust cr_save_regno on ABI_AIX to not
22056         clobber static chain reg, and tweak for out-of-line gpr saves
22057         that use r1.
22059 2012-04-25  Alan Modra  <amodra@gmail.com>
22061         * config/rs6000/rs6000.c (START_USE, END_USE, NOT_INUSE): Define.
22062         (rs6000_emit_prologue): Use the above to catch register overlap.
22064 2012-04-25  Alan Modra  <amodra@gmail.com>
22066         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete forward
22067         decl.  Move logic selecting update reg to callers.  Update all callers.
22068         (rs6000_emit_allocate_stack): Add copy_off param.
22069         (emit_frame_save): Don't handle reg+reg addressing.
22070         (ptr_regno_for_savres): New function, extracted from..
22071         (rs6000_emit_savres_rtx): ..here.  Add lr_offset param.
22072         (rs6000_emit_prologue): Generate frame_ptr_rtx as we need it.
22073         Set frame_reg_rtx to r11 whenever r11 is needed, and merge
22074         frame offset adjustment for out-of-line save with copy from sp.
22075         Simplify condition controlling whether cr is saved early or
22076         late.  Use ptr_regno_for_savres to verify correct reg is set
22077         up for out-of-line saves.  Pass the actual pointer reg used to
22078         rs6000_emit_savres_rtx so rtl matches insns in out-of-line
22079         function.  Rearrange spe vars so code is similar to that
22080         elsewhere in this function.  Don't update frame_off when spe
22081         save code will restore r11.  Use emit_frame_save for spe and
22082         gpr saves.  Consolidate darwin out-of-line gpr setup with that
22083         for other abis.  Don't assume frame_offset is zero and frame
22084         reg is sp when setting up altivec reg saves, and calculate
22085         exact offset requirement.
22086         (rs6000_emit_epilogue): Use HOST_WIDE_INT for frame_off.  Tidy
22087         spe restore code.  Consolidate darwin out-of-line gpr setup
22088         with that for other abis.
22090 2012-04-25  Alan Modra  <amodra@gmail.com>
22092         * config/rs6000/rs6000.c (rs6000_frame_related): Don't emit a
22093         REG_FRAME_RELATED_EXPR note when the instruction exactly matches
22094         the replacement.
22095         (emit_frame_save): Delete frame_ptr param.  Rename total_size to
22096         frame_reg_to_sp.
22097         (rs6000_emit_prologue): Add sp_off.  Update rs6000_frame_related
22098         and emit_frame_save calls.  Cope with possibly missing note.
22100 2012-04-24  Sriraman Tallam  <tmsriram@google.com>
22102         * config/i386/i386.c (build_processor_model_struct): New function.
22103         (make_var_decl): New function.
22104         (fold_builtin_cpu): New function.
22105         (ix86_fold_builtin): New function.
22106         (make_cpu_type_builtin): New function.
22107         (ix86_init_platform_type_builtins): New function.
22108         (ix86_expand_builtin): Expand new builtins by folding them.
22109         (ix86_init_builtins): Make new builtins to detect CPU type.
22110         (TARGET_FOLD_BUILTIN): New macro.
22111         (IX86_BUILTIN_CPU_INIT): New enum value.
22112         (IX86_BUILTIN_CPU_IS): New enum value.
22113         (IX86_BUILTIN_CPU_SUPPORTS): New enum value.
22114         * config/i386/i386-builtin-types.def: New function type.
22115         * doc/extend.texi: Document builtins.
22117 2012-04-24  Olivier Hainque  <hainque@adacore.com>
22119         * common.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2.
22120         * toplev.c (process_options): Default to dwarf_version 2.
22121         * config/vxworks.c (vxworks_override_options): Default to strict-dwarf
22122         and dwarf_version 2.
22124 2012-04-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22126         * tree-pretty-print.h (default_tree_printer): Do not declare.
22127         * tree-diagnostic.c: Include tree-pretty-print.h, tree-pass.h and
22128         intl.h.
22129         (default_tree_diagnostic_starter): Make static.
22130         (default_tree_printer): Move to here. Make static.
22131         (tree_diagnostics_defaults): New.
22132         * tree-diagnostic.h (default_tree_diagnostic_starter): Do not declare.
22133         * tree.c (free_lang_data): Use tree_diagnostics_defaults.
22134         * toplev.c: Do not include tree-pass.h.
22135         (default_tree_printer): Move from here.
22136         (general_init): Use tree_diagnostics_defaults.
22138 2012-04-24  Chao-ying Fu  <fu@mips.com>
22140         * config.gcc (mips64*-*-linux*): Append mips/linux-common.h to tm_file.
22141         (mips*-*-linux*): Append mips/linux-common.h to tm_file.
22142         * config/mips/gnu-user.h
22143         (SUBTARGET_CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC directly.
22144         (GNU_USER_TARGET_LINK_SPEC): New define.
22145         (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
22146         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC directly.
22147         (GNU_USER_TARGET_MATHFILE_SPEC): New define.
22148         (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC and
22149         GNU_USER_TARGET_ENDFILE_SPEC.
22150         * config/mips/gnu-user64.h (LIB_SPEC): Remove.
22151         (GNU_USER_TARGET_LINK_SPEC): New define.
22152         (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
22153         * config/mips/linux-common.h: New file.
22155 2012-04-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22157         PR target/47197
22158         * config/rs6000/rs6000-c.c (fully_fold_convert): New function.
22159         (altivec_build_resolved_builtin): Call fully_fold_convert.
22161 2012-04-24  Georg-Johann Lay  <avr@gjlay.de>
22163         PR target/53065
22164         * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define.
22166 2012-04-24  Richard Guenther  <rguenther@suse.de>
22168         PR tree-optimization/53085
22169         * tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant
22170         stores.
22172 2012-04-24  Richard Guenther  <rguenther@suse.de>
22174         * tree-if-conv.c (main_tree_if_conversion): Move bb under
22175         ENABLE_CHECKING.
22177 2012-04-24  Jim Meyering  <meyering@redhat.com>
22179         * genattrtab.c (gen_attr): Avoid NULL-deref after diagnosing
22180         absence of an define_enum call.
22182 2012-04-24  Richard Guenther  <rguenther@suse.de>
22184         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If
22185         the epilogue loop is not re-used as unvectorized version
22186         record the its maximum number of iterations.
22188 2012-04-24  Andrew Pinski  <apinski@cavium.com>
22190         * tree-ssa-forwprop.c (simplify_bitwise_binary):
22191         Don't directly use def1/def2.
22193 2012-04-24  Richard Guenther  <rguenther@suse.de>
22195         PR tree-optimization/53098
22196         * tree-vect-loop.c (vect_analyze_loop_operations): Fixup
22197         comparison sign.
22199 2012-04-24  Andrew Pinski  <apinski@cavium.com>
22201         PR tree-opt/33512
22202         * tree-ssa-forwprop.c (defcodefor_name): New function.
22203         (simplify_bitwise_binary): Use defcodefor_name instead of manually
22204         Simplify "( X | Y) & X" to X and "( X & Y) | X" to X.
22205         Simplify "(~X | Y) & X" to "X & Y" and
22206         "(~X & Y) | X" to "X | Y".
22208 2012-04-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22210         * recog.c (insn_invalid_p): Add IN_GROUP parameter and use
22211         validate_change to add clobbers if IN_GROUP is nonzero.
22212         (verify_changes): Call insn_invalid_p with IN_GROUP set to true.
22213         * recog.h (insn_invalid_p): Add IN_GROUP parameter to function
22214         prototype.
22215         * gcse.c (process_insert_insn): Call insn_invalid_p with IN_GROUP
22216         set to false.
22217         * config/s390/s390.c (insn_invalid_p): Likewise.
22219 2012-04-24  Jakub Jelinek  <jakub@redhat.com>
22221         PR middle-end/53084
22222         * varasm.c (compute_reloc_for_constant): Handle ADDR_EXPR of MEM_REF.
22223         (output_addressed_constants): Likewise.
22225         PR middle-end/52999
22226         * varasm.c (get_section): Don't ICE for section conflicts with
22227         built-in section kinds.
22229 2012-04-23  DJ Delorie  <dj@redhat.com>
22231         * config/s390/s390.h (LINK_SPEC): Remove, no longer needed.
22232         (LIBSTDCXX): Change to CPP2.
22234 2012-04-23  H.J. Lu  <hongjiu.lu@intel.com>
22236         PR bootstrap/52878
22237         * opth-gen.awk: Check if MASK_ and TARGET_ macros are defined for
22238         extra_masks.
22240 2012-04-23  Uros Bizjak  <ubizjak@gmail.com>
22242         * config/i386/i386.md (*add<mode>_2): Add r/r/0 alternative.
22243         (*addsi_2_zext): Ditto.
22244         (*add<mode>_3): Ditto.
22245         (*addsi_3_zext): Ditto.
22246         (*add<mode>_5): Ditto.
22248 2012-04-23  Andrew Pinski  <apinski@cavium.com>
22250         * tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0
22251         (C & B) to (A OP0) & B.
22253 2012-04-23  Martin Jambor  <mjambor@suse.cz>
22255         * expr.c (expand_expr_real_1): Remove setting parent's alias set for
22256         temporaries created for a bitfield (reverting revision 122014).
22258 2012-04-23  Richard Guenther  <rguenther@suse.de>
22260         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify
22261         the condition using is_gimple_condexpr and avoid the not necessary
22262         boolification.
22263         (set_prologue_iterations): Likewise.
22264         (vect_loop_versioning): Likewise.
22266 2012-04-23  Richard Guenther  <rguenther@suse.de>
22268         PR tree-optimization/53070
22269         * tree-if-conv.c (combine_blocks): Free predicates in all blocks.
22270         (main_tree_if_conversion): Verify we succeeded in that.
22272 2012-04-23  Jan Hubicka  <jh@suse.cz>
22274         * lto-symtab.c (lto_cgraph_replace_node): Do not call
22275         mark_reahcable_node.
22276         * cgraph.c (cgraph_remove_node): Do not clear reachable.
22277         (cgraph_mark_reachable_node): Remove.
22278         (cgraph_mark_force_output_node): Do not set reachable.
22279         (dump_cgraph_node): Do not dump reachable.
22280         (cgraph_create_virtual_clone): Do not set reachable.
22281         * cgraph.h (cgraph_node): Remove reachable flag.
22282         (varpool_node): Remove reachable flag.
22283         (cgraph_mark_if_needed): Remove.
22284         (cgraph_mark_reachable_node): Remove.
22285         * tree-emutls.c (ipa_lower_emutls): Do not check reachable.
22286         * cgraphunit.c (cgraph_finalize_function): Do not mark node as
22287         reachable.
22288         (cgraph_add_new_function): Likewise.
22289         (cgraph_mark_if_needed): Remove.
22290         (cgraph_analyze_function): Do not set target as reachable.
22291         (process_function_and_variable_attributes): Do not care about
22292         dllexport.
22293         (cgraph_analyze_functions): Do not set reachable flags.
22294         (cgraph_mark_functions_to_output): Do not check reachability.
22295         (cgraph_copy_node_for_versioning): Do not set reachable flag.
22296         (dbxout_expand_expr): Update.
22297         * c-decl.c (merge_decls): Do not track changed externs.
22298         * ipa.c: Include pointer-set.h
22299         (enqueue_cgraph_node): Use reachable pointer set.
22300         (process_references): Likewise.
22301         (cgraph_remove_unreachable_nodes): Likewise.
22302         (whole_program_function_and_variable_visibility): Do not recompute
22303         reachable.
22304         * trans-mem.c (ipa_tm_execute): Do not check reachable flag.
22306 2012-04-23  Georg-Johann Lay  <avr@gjlay.de>
22308         * doc/extend.texi (AVR Named Address Spaces): Fix typos.
22310 2012-04-23  Richard Guenther  <rguenther@suse.de>
22312         PR c/53060
22313         * c-typeck.c (build_binary_op): Fix typo.
22315 2012-04-23  Jakub Jelinek  <jakub@redhat.com>
22317         PR tree-optimizations/52891
22318         * tree-vect-patterns.c (adjust_bool_pattern): Use
22319         build_nonstandard_type even if rhs1 has unsigned INTEGER_TYPE,
22320         but with non-standard precision.
22322 2012-04-22  Jan Hubicka  <jh@suse.cz>
22324         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Bail out at NULL
22325         tree refs.
22327 2012-04-22  Jan Hubicka  <jh@suse.cz>
22329         * lto-symtab.c (lto_varpool_replace_node): Do not merge needed flags.
22330         * cgraphbuild.c (record_reference, record_type_list, mark_address,
22331         mark_load, mark_store): Do not mark varpool nodes as needed.
22332         * cgraph.c (cgraph_new_nodes): Remove.
22333         (cgraph_create_function_alias): Do not mark nodes as reachable.
22334         (cgraph_add_thunk): Likewise.
22335         (cgraph_mark_reachable_node): Do not manage the queue.
22336         * cgraph.h (cgraph_node): Remove next_needed.
22337         (varpool_nodes_queue): Remove next_needed and prev_needed.
22338         (x_cgraph_nodes_queue, x_cgraph_nodes_queue, cgraph_new_nodes): Remove.
22339         (cgraph_new_nodes): Declare.
22340         (x_varpool_nodes_queue, varpool_nodes_queue); Remove.
22341         (varpool_analyze_pending_decls): Remove.
22342         (varpool_analyze_node): New.
22343         (varpool_mark_needed_node): Remove.
22344         (varpool_first_variable, varpool_next_variable): New inlines.
22345         (varpool_first_static_initializer, varpool_next_static_initializer):
22346         Update.
22347         (FOR_EACH_STATIC_VARIABLE): Remove unused walker.
22348         (varpool_first_defined_variable): New inline.
22349         (varpool_next_defined_variable): New inline
22350         (FOR_EACH_VARIABLE): Reimplement.
22351         (FOR_EACH_DEFINED_VARIABLE): Reimplement.
22352         * toplev.c (wrapup_global_declaration_2): Use analyzed instead of
22353         needed flag.
22354         * cgraphunit.c (cgraph_new_nodes): Declare here.
22355         (enqueue_node): New function.
22356         (cgraph_process_new_functions): update for new
22357         node set; when constructing cgraph enqueue node for processing.
22358         (cgraph_add_new_function): Use new node set.
22359         (process_function_and_variable_attributes): Do not set varpool needed
22360         flags.
22361         (referred_to_p): New function.
22362         (varpool_finalize_decl): Move here from varpool.c; enqueue needed node
22363         when varpool is in construction.
22364         (cgraph_analyze_functions): Rewrite.
22365         (cgraph_expand_all_functions): Update.
22366         (cgraph_output_in_order): Do not analyze pending decls; do not set
22367         needed flags.
22368         (cgraph_optimize): Do not analyze pending decls.
22369         * lto-cgraph.c (input_varpool_node): Clear analyzed flag for objects
22370         in other partition; do not mark node as needed.
22371         * dwarf2out.c (reference_to_unused): Use analyzed flag.
22372         (premark_types_used_by_global_vars_helper): Likewise.
22373         * ipa.c (process_references): Do not call varpool_mark_needed_node.
22374         (cgraph_remove_unreachable_nodes): Do not rely on varpool and
22375         cgrpah queues.
22376         (function_and_variable_visibility): Do not mark node as needed.
22377         (whole_program_function_and_variable_visibility): Likewise.
22378         * Makefile.in (gt-varpool.h): No longer needed.
22379         * passes.c (execute_one_pass, execute_ipa_pass_list): Update.
22380         (ipa_write_summaries): Do not use needed flag.
22381         * varpool.c: Do not include gt-varpool.h
22382         (x_varpool_nodes_queue, x_varpool_last_needed_node,
22383         x_varpool_last_needed_node, x_varpool_first_unanalyzed_node,
22384         x_varpool_first_unanalyzed_node, varpool_assembled_nodes_queue):
22385         Remove.
22386         (varpool_remove_node): Do not update the lists.
22387         (dump_varpool_node): Do not dump needed flag.
22388         (varpool_enqueue_needed_node): Remove.
22389         (varpool_mark_needed_node): Remove.
22390         (varpool_reset_queue): Remove.
22391         (varpool_finalize_decl): Move to cgraphunit.c
22392         (varpool_analyze_node): New functions based on former
22393         varpool_analyze_pending_decls.
22394         (varpool_analyze_pending_decls): Remove.
22395         (varpool_assemble_decl): Do not update the lists.
22396         (enqueue_node): New function.
22397         (varpool_remove_unreferenced_decls): Rewrite.
22398         (varpool_empty_needed_queue): Remove.
22399         (add_new_static_var): Do not mark node as needed.
22400         (varpool_create_variable_alias): Handle expansion state
22401         creation.
22402         * except.c (output_ttype): Do not mark node as needed.
22403         * varasm.c (mark_decl_referenced): Do not use mark_needed_node.
22404         * tree-profile.c (init_ic_make_global_vars, init_ic_make_global_vars):
22405         Likewise.
22406         * tree-switch-conversion.c (build_one_array): Likewise.
22408 2012-04-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22410         PR c/44774
22411         * doc/invoke.texi (pedantic): Rename to Wpedantic.
22412         * common.opt (Wpedantic): New.
22413         (pedantic): Alias Wpedantic.
22414         * diagnostic.c (warning_at): Likewise.
22415         * c-decl.c (diagnose_mismatched_decls): Likewise.
22416         (build_array_declarator): Likewise.
22417         (mark_forward_parm_decls):
22418         (check_bitfield_type_and_width): Likewise.
22419         (grokdeclarator): Likewise.
22420         (grokfield): Likewise.
22421         (finish_struct): Likewise.
22422         (build_enumerator): Likewise.
22423         (store_parm_decls_oldstyle): Likewise.
22424         (declspecs_add_qual): Likewise.
22425         (declspecs_add_type): Likewise.
22426         (finish_declspecs): Likewise.
22427         * c-typeck.c (composite_type): Likewise.
22428         (comp_target_types): Likewise.
22429         (build_array_ref): Likewise.
22430         (pointer_diff): Likewise.
22431         (build_unary_op): Likewise.
22432         (build_conditional_expr): Likewise.
22433         (build_c_cast): Likewise.
22434         (convert_for_assignment): Likewise.
22435         (maybe_warn_string_init): Likewise.
22436         (digest_init): Likewise.
22437         (pop_init_level): Likewise.
22438         (set_init_index): Likewise.
22439         (c_finish_goto_label): Likewise.
22440         (c_finish_return): Likewise.
22441         (do_case): Likewise.
22442         (build_binary_op): Likewise.
22443         * c-parser.c (static): Likewise.
22444         (c_parser_external_declaration): Likewise.
22445         (c_parser_declaration_or_fndef): Likewise.
22446         (c_parser_static_assert_declaration_no_se): Likewise.
22447         (c_parser_enum_specifier): Likewise.
22448         (c_parser_struct_or_union_specifier): Likewise.
22449         (c_parser_struct_declaration): Likewise.
22450         (c_parser_alignas_specifier): Likewise.
22451         (c_parser_braced_init): Likewise.
22452         (c_parser_initelt): Likewise.
22453         (c_parser_compound_statement_nostart): Likewise.
22454         (c_parser_conditional_expression): Likewise.
22455         (c_parser_alignof_expression): Likewise.
22456         (c_parser_postfix_expression): Likewise.
22457         (c_parser_postfix_expression_after_paren_): Likewise.
22458         (c_parser_objc_class_instance_variables): Likewise.
22459         (c_parser_objc_method_definition): Likewise.
22460         (c_parser_objc_methodprotolist): Likewise.
22462 2012-04-22  Ian Lance Taylor  <iant@google.com>
22464         * godump.c (go_output_typedef): Dump size of structs.
22466 2012-04-22  Razya Ladelsky  <razya@il.ibm.com>
22468         Correcting transform_to_exit_first_loop + fix to PR46886
22469         * tree-parloops.c (transform_to_exit_first_loop): Remove
22470         setting of number of iterations according to the loop pattern.
22471         Duplicate from entry to exit->src instead of loop->latch.
22472         (pallelize_loops): Remove the condition preventing do-while loops.
22473         * tree-cfg.c (bool bb_in_region_p): New.
22474         (gimple_duplicate_sese_tail): Adjust duplication of the the subloops.
22475         Adjust redirection of the duplicated iteration.
22477 2012-04-21  Richard Sandiford  <rdsandiford@googlemail.com>
22479         PR bootstrap/53021
22480         * rtl.def (ADDRESS): Use "i" rather than "w".
22481         * rtl.h (find_base_term): Delete.
22482         (may_be_sp_based_p): Declare.
22483         * rtl.c (rtx_code_size): Remove ADDRESS special case.
22484         * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP)
22485         (UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Move to...
22486         * alias.c: ...here.
22487         (find_base_term): Make static.
22488         (may_be_sp_based_p): New function.
22489         * dse.c (record_store): Use it.
22490         * store-motion.c (store_killed_in_insn): Likewise.
22492 2012-04-21  Richard Sandiford  <rdsandiford@googlemail.com>
22494         * fold-const.c (fold_checksum_tree): Fix VECTOR_CST case.
22496 2012-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22498         PR 35441
22499         * c-typeck.c (inform_declaration): New.
22500         (build_function_call_vec):  Do not pretty-print
22501         expressions when caret is enabled.
22502         (convert_arguments): Use inform_declaration.
22504 2012-04-20  Jim Meyering  <meyering@redhat.com>
22506         * genmodes.c (make_complex_modes): Don't truncate a mode name of
22507         length 7 or more when prepending a "C".  Suggested by Richard Guenther.
22509 2012-04-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22511         PR rtl-optimization/44214
22512         * fold-const.c (exact_inverse): New function.
22513         (fold_binary_loc): Fold vector and complex division by constant into
22514         multiply by recripocal with flag_reciprocal_math; fold vector division
22515         by constant into multiply by reciprocal with exact inverse.
22517 2012-04-20  Jan Hubicka  <jh@suse.cz>
22519         * lto-symtab.c (lto_cgraph_replace_node): Merge needed instead of
22520         force flags.
22521         * cgraph.c (cgraph_add_thunk): Use mark_reachable_node.
22522         (cgraph_remove_node): Update.
22523         (cgraph_mark_needed_node): Remove.
22524         (cgraph_mark_force_output_node): New.
22525         (dump_cgraph_node): Do not dump needed flag.
22526         (cgraph_node_cannot_be_local_p_1): Update.
22527         (cgraph_can_remove_if_no_direct_calls_and_refs): Update.
22528         * cgraph.h (symtab_node_base): Add force_output flag.
22529         (cgraph_node): Remove needed flag.
22530         (varpool_node): Remove force_output flag.
22531         (cgraph_mark_needed_node): Remove.
22532         (cgraph_mark_force_output_node): New.
22533         (cgraph_only_called_directly_or_aliased_p,
22534         varpool_can_remove_if_no_refs, varpool_all_refs_explicit_p): Update.
22535         * ipa-cp.c (ipcp_generate_summary): Remove out of date assert.
22536         * cgraphunit.c (cgraph_decide_is_function_needed): rewrite.
22537         (cgraph_add_new_function): Update.
22538         (cgraph_mark_if_needed): Update.
22539         (verify_cgraph_node): Update.
22540         (cgraph_analyze_function): Alias target is reachable.
22541         (process_function_and_variable_attributes): Update: externally_visible
22542         flag makes function reachable.
22543         (cgraph_analyze_functions): Update dumping.
22544         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
22545         input_overwrite_node, input_varpool_node): Update streaming.
22546         * lto-streamer-out.c (produce_symtab): Use force_output.
22547         * ipa.c (process_references): Weakrefs must be processed.
22548         (cgraph_remove_unreachable_nodes): Likewise; update for new
22549         force_output flag.
22550         (varpool_externally_visible_p): Weakrefs are externally visible
22551         even if they are not.
22552         (function_and_variable_visibility): Update; when processing alias
22553         pair force the targets to be output.
22554         (whole_program_function_and_variable_visility): Use
22555         mark_reachable_node.
22556         * trans-mem.c (ipa_tm_mark_needed_node): Remove
22557         (ipa_tm_mark_force_output_node): New function.
22558         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
22559         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be lax about
22560         aliases.
22561         * varasm.c (mark_decl_referenced): Update.
22562         (find_decl_and_mark_needed): Remove.
22563         (find_decl): New function.
22564         (weak_finish, finish_aliases_1, assemble_alias): Update; do not mark
22565         alias targets as needed.
22566         (dump_tm_clone_pairs): Update.
22567         * tree-inline.c (copy_bb): Update check.
22568         * symtab.c (dump_symtab_base): Dump force_output.
22569         * tree-ssa-structalias.c (ipa_pta_execute): Use force_output.
22570         * passes.c (execute_todo): Fix dumping.
22571         * varpool.c (decide_is_variable_needed, varpool_finalize_decl): Update.
22572         (varpool_analyze_pending_decls): Alias target is reachable.
22573         (varpool_create_variable_alias): Finalize weakrefs.
22575 2012-04-20  Jakub Jelinek  <jakub@redhat.com>
22577         PR bootstrap/53021
22578         * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP,
22579         UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Define.
22580         * alias.c (init_alias_targets): Use UNIQUE_BASE_VALUE_*
22581         macros instead of constants.
22582         * dse.c (record_store): Check for SP ADDRESS by comparing
22583         XWINT to UNIQUE_BASE_VALUE_SP instead of expecting
22584         XEXP to be stack_pointer_rtx.
22586 2012-04-20  Richard Guenther  <rguenther@suse.de>
22588         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Use
22589         update_call_from_tree when propagating into a call.
22591 2012-04-20  Alan Modra  <amodra@gmail.com>
22593         * config/rs6000/rs6000.c (rs6000_emit_savres_rtx): Formatting.
22594         (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.  Rename
22595         sp_offset to frame_off.  Move world save code earlier.
22597 2012-04-20  Richard Guenther  <rguenther@suse.de>
22599         PR tree-optimization/53050
22600         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine):
22601         Do only one transform on COND_EXPRs at the same time.
22603 2012-04-19  Jan Hubicka  <jh@suse.cz>
22605         * symtab.c (dump_symtab_base): Revert accidental checkin.
22607 2012-04-20  Alan Modra  <amodra@gmail.com>
22609         PR target/53040
22610         * config/rs6000/rs6000.c (rs6000_savres_strategy): When using
22611         static chain, set REST_INLINE_FPRS too.
22613 2012-04-20  Thomas Schwinge  <thomas@codesourcery.com>
22615         * tree-dump.c (dequeue_and_dump) <BIT_FIELD_REF>: Dump the three child
22616         nodes.
22618 2012-04-20  Richard Guenther  <rguenther@suse.de>
22620         * tree-vect-loop.c (vect_analyze_loop_operations): Do not vectorize
22621         loops that can never run more often than the vectorization factor.
22623 2012-04-19  Jan Hubicka  <jh@suse.cz>
22625         * symtab.c (dump_symtab_base): Fix dumping of asm lists.
22627 2012-04-19  David Edelsohn  <dje.gcc@gmail.com>
22629         * config/rs6000/sync.md (fetchop_name): Change ior attribute to "or".
22631 2012-04-19  Jim Meyering  <meyering@redhat.com>
22633         * genmodes.c (make_complex_modes): Avoid unnecessary use of strncpy.
22634         We verified above that the string(including trailing NUL) fits in buf,
22635         so just use memcpy.
22637 2012-04-19  Richard Guenther  <rguenther@suse.de>
22639         * symtab.c (dump_symtab_base): Use TREE_STRING_POINTER
22640         for dumping DECL_SECTION_NAME.
22642 2012-04-19  Michael Matz  <matz@suse.de>
22644         PR middle-end/52977
22645         * tree.h (VECTOR_CST_NELTS): Use part number of types again.
22646         (struct tree_vector): Adjust GTY length.
22647         * tree.c (make_vector_stat): Don't set VECTOR_CST_NELTS.
22649         * gengtype.c (struct walk_type_data): Add in_record_p and loopcounter
22650         members.
22651         (walk_type, <TYPE_POINTER, TYPE_ARRAY>): Handle case where our
22652         caller emitted the length calulation already.
22653         (walk_type, <TYPE_UNION, TYPE_STRUCT>): Emit length calculations
22654         before handling any of the fields for structs.
22656 2012-04-19  Richard Guenther  <rguenther@suse.de>
22658         PR tree-optimization/53031
22659         * tree-vrp.c (adjust_range_with_scev): Revert back to
22660         using max_loop_iterations.
22662 2012-04-19  Michael Matz  <matz@suse.de>
22664         * diagnostic.c (emit_diagnostic): Move va_end call after user
22665         of the va_list.
22666         (warning, warning_at, pedwarn, permerror): Ditto.
22668 2012-04-19  Richard Guenther  <rguenther@suse.de>
22670         * ira-int.h (ira_allocno_object_iter_cond): Avoid out-of-bound
22671         array access.
22673 2012-04-19  Georg-Johann Lay  <avr@gjlay.de>
22675         PR target/53033
22676         * config/avr/avr.c (avr_out_load_psi): Fix assembler template for
22677         the case *(X+const).
22679 2012-04-19  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
22681         * config/arm/sync.md (sync_optab): Change ior attribute to "or".
22683 2012-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22685         PR c/52283/37985
22686         * stmt.c (warn_if_unused_value): Skip NOP_EXPR.
22687         * convert.c (convert_to_integer): Don't set TREE_NO_WARNING.
22689 2012-04-19  Richard Guenther  <rguenther@suse.de>
22691         PR rtl-optimization/44688
22692         * loop-iv.c (determine_max_iter): Only return max_iter.
22693         (iv_number_of_iterations): Also use the recorded loop bound
22694         on the maximum number of iterations.
22695         * loop-unroll.c (decide_unroll_runtime_iterations): Use
22696         max_iter to avoid unrolling loops that do not roll.
22697         (decide_unroll_stupid): Likewise.
22699 2012-04-18  Steven Bosscher  <steven@gcc.gnu.org>
22701         * targhooks.c (default_case_values_threshold): Fix code style nit.
22703         * stmt.c (add_case_node, expand_case): Move logic to remove/reduce
22704         case range and type folding from here...
22705         * gimplify.c (gimplify_switch_expr): ... to here.  Expect NULL_TREE
22706         type, as documented in tree.def.
22708 2012-04-18  Jan Hubicka  <jh@suse.cz>
22710         * cgraph.h (verify_symtab, verify_symtab_node, verify_symtab_base):
22711         Declare.
22712         * cgraphunit.c (verify_cgraph_node): Verify symtab base; do not verify
22713         cgraph hash and same comdat groups.
22714         (cgraph_optimize): Verify symbol table.
22715         * ipa.c (cgraph_remove_unreachable_nodes): Verify symbol table.
22716         (dissolve_same_comdat_group_list): Work on symtab nodes.
22717         (function_and_variable_visibility): Dissolve variable same comdat group
22718         lists, too.
22719         * symtab.c: Include timevar.h
22720         (verify_symtab_base, verify_symtab_node, verify_symtab): New functions.
22722 2012-04-18  Steven Bosscher  <steven@gcc.gnu.org>
22724         * tree-switch-conversion.c (info): Remove global pass info.
22725         (check_range, check_process_case, check_final_bb, create_temp_arrays,
22726         free_temp_arrays, gather_default_values, build_constructors,
22727         array_value_type, build_one_array, build_arrays, gen_def_assigns,
22728         fix_phi_nodes, gen_inbound_check): Pass info around from ...
22729         (process_switch): ... here.  Unify message format.  Return a const
22730         char pointer to the failure reason message.
22731         (do_switchconv): Unify message format.  Update process_switch usage.
22733         * tree.def (CASE_LABEL_EXPR): Fix documentation, mention all operands.
22734         * tree-cfg.c (edge_to_cases): Fix documentation.
22736 2012-04-18  Uros Bizjak  <ubizjak@gmail.com>
22738         * config/alpha/sync.md (fetchop_name): Change ior attribute to "or".
22740 2012-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22742         PR tree-optimization/52976
22743         * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): Delete.
22744         (possibly_move_powi): New function.
22745         (rewrite_expr_tree): Call possibly_move_powi.
22746         (rewrite_expr_tree_parallel): Likewise.
22747         (attempt_builtin_powi): Change call of add_to_ops_vec_max_rank to
22748         call add_to_ops_vec instead.
22750 2012-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22752         PR tree-optimization/52976
22753         * tree-ssa-reassoc.c (stmt_is_power_of_op): New function.
22754         (decrement_power): Likewise.
22755         (propagate_op_to_single_use): Likewise.
22756         (zero_one_operation): Handle __builtin_pow* calls in linearized
22757         expression trees; factor logic into propagate_op_to_single_use.
22758         (undistribute_ops_list): Allow operands with repeat counts > 1.
22760 2012-04-18  Richard Guenther  <rguenther@suse.de>
22762         PR tree-optimization/44688
22763         * cfgloop.h (record_niter_bound): Declare.
22764         * tree-ssa-loop-niter.c (record_niter_bound): Export.
22765         Update the estimation with the upper bound here...
22766         (estimate_numbers_of_iterations_loop): ... instead of here.
22767         Do not forcefully reset a recorded upper bound.
22768         * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
22769         Record the maximum number of loop iterations of the prologue loop.
22771 2012-04-18  Jan Hubicka  <jh@suse.cz>
22773         * lto-symtab.c (lto_cgraph_replace_node): Update.
22774         * cgraphbuild.c (record_reference, record_type_list,
22775         record_eh_tables, mark_address, mark_load, mark_store): Update.
22776         * cgraph.c (cgraph_same_body_alias, dump_cgraph_node,
22777         cgraph_create_virtual_clone, cgraph_for_node_thunks_and_aliases):
22778         Update.
22779         * cgraph.h (symtab_node_def, symtab_node, const_symtab_node): Remove.
22780         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Update.
22781         * reload.c: Fix typo in comment.
22782         * rtlanal.c: Likewise.
22783         * tree-emultls.c (gen_emutls_addr): Update.
22784         * ipa-reference.c (analyze_function): Update.
22785         * cgraphunit.c (cgraph_analyze_function,
22786         cgraph_process_same_body_aliases, assemble_thunks_and_aliases):
22787         Update.
22788         * ipa-ref.c (ipa_record_reference): Reorg to avoid reference types.
22789         (ipa_remove_reference): Likewise.
22790         (ipa_remove_all_refering): Rename to ...
22791         (ipa_remove_all_referring): ... this one; update.
22792         (ipa_dump_references): Update.
22793         (ipa_dump_referring): Update.
22794         (ipa_clone_references): Update.
22795         (ipa_clone_refering): Rename to ...
22796         (ipa_clone_referring): ... this one; update.
22797         (ipa_ref_cannot_lead_to_return): Update.
22798         (ipa_ref_has_aliases_p): Update.
22799         * ipa-ref.h (symtab_node_def, symtab_node, const_symtab_node): New
22800         forward typedefs.
22801         (ipa_ref_type): Remove.
22802         (ipa_ref_ptr_u): Remove.
22803         (ipa_ref): Remove referencing, refered, refered_index, refering_type
22804         and refered_type; add referring, referred and referred_index.
22805         (ipa_ref_list): Rename refering to referring.
22806         (ipa_record_reference, ipa_remove_all_referring, ipa_dump_referring,
22807         ipa_clone_references, ipa_clone_referring): Update prototypes.
22808         * lto-cgraph.c (referenced_from_other_partition_p): Update.
22809         (lto_output_ref): Update.
22810         (add_references): Update.
22811         (input_varpool_node): Update.
22812         (input_refs): Update.
22813         * ipa-ref-inline.h (ipa_ref_node): Update.
22814         (ipa_ref_varpool_node): Update.
22815         (ipa_ref_referring_node): Update.
22816         (ipa_ref_referring_varpool_node): Update.
22817         (ipa_ref_referring_ref_list): Update.
22818         (ipa_ref_referred_ref_list): Update.
22819         (ipa_ref_list_first_referring): Update.
22820         (ipa_empty_ref_list): Update.
22821         (ipa_ref_list_refering_iterate): Rename to ...
22822         (ipa_ref_list_referring_iterate): ... this one.
22823         * cse.c: Update comment.
22824         * ipa-utils.c (ipa_reverse_postorder): Update.
22825         * tree-ssa-alias.c: Update.
22826         * ipa-inline.c (reset_edge_caches): Update.
22827         (update_caller_keys): Update.
22828         * ipa-inline.h: Update comments.
22829         * jump.c: Update comment.
22830         * alias.c: Likewise.
22831         * ipa.c (process_references): Update.
22832         (cgraph_remove_unreachable_nodes): Likewise.
22833         (ipa_discover_readonly_nonaddressable_var): Likewise.
22834         (cgraph_address_taken_from_non_vtable_p): Likewise.
22835         * trans-mem.c (ipa_tm_execute): Update.
22836         * simplify-rtx.c: Fix comment.
22837         * rtl.c: Fix comment.
22838         * symtab.c (symtab_unregister_node): Update.
22839         * varpool.c (dump_varpool_node): Update.
22840         (varpool_analyze_pending_decls): Update.
22841         (assemble_aliases): Update.
22842         (varpool_for_node_and_aliases): Update.
22844 2012-04-18  Richard Guenther  <rguenther@suse.de>
22846         * cfgloop.h (estimate_numbers_of_iterations_loop): Remove
22847         use_undefined_p parameter.
22848         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
22849         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
22850         Likewise.
22851         (estimate_numbers_of_iterations): Likewise.
22852         (estimated_loop_iterations): Adjust.
22853         (max_loop_iterations): Likewise.
22854         (scev_probably_wraps_p): Likewise.
22855         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
22856         * tree-vrp.c (adjust_range_with_scev): Use max_stmt_executions,
22857         not max_loop_iterations.
22858         (execute_vrp): Remove explicit number of iterations estimation.
22860 2012-04-18  Enkovich Ilya  <ilya.enkovich@intel.com>
22862         * config/i386/linux-common.h: New.
22864         * config.gcc: Add i386/linux-common.h before
22865         all i386/linux.h and i386/linux64.h usages.
22867         * config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): New.
22868         (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
22869         * config/i386/gnu-user64.h: Likewise.
22871         * config/i386/gnu-user.common.h (GNU_USER_TARGET_CC1_SPEC): New.
22872         (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC.
22873         (GNU_USER_TARGET_MATHFILE_SPEC): New.
22874         (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC.
22876 2012-04-18  Jan Hubicka  <jh@suse.cz>
22878         * cgraph.c (cgraph_node_name): Remove.
22879         (dump_cgraph_node): Use dump_symtab_base; reformat.
22880         * cgraph.h (symtab_node_asm_name, symtab_node_name, dump_symtab,
22881         debug_symtab, dump_symtab_node, debug_symtab_node, dump_symtab_base):
22882         Declare.
22883         (cgraph_node_name, varpool_node_name): Remove.
22884         (cgraph_node_asm_name, varpool_node_asm_name,
22885         cgraph_node_name, varpool_node_name): New.
22886         * tree-pass.h (TODO_dump_cgraph): Rename to ...
22887         (TODO_dump_symtab): ... this one.
22888         * ipa-cp (pass_ipa_cp): Update.
22889         * ia-reference.c (generate_summary, read_write_all_from_decl,
22890         propagate, ipa_reference_read_optimization_summary): Update.
22891         * cgraphunit.c (cgraph_analyze_functions): Update.
22892         (cgraph_optimize): Update.
22893         * ipa-ref.c (ipa_dump_references): Update.
22894         (ipa_dump_refering): Update.
22895         * ipa-inline.c (pass_ipa_inline): Update.
22896         * matrix-reorg.c (pass_ipa_matrix_reorg): Update.
22897         * ipa.c (pass_ipa_function_visibility,
22898         pass_ipa_whole_program_visibility): Update.
22899         * tree-sra.c (pass_early_ipa_sra): Update.
22900         * symtab.c: Include langhooks.h
22901         (symtab_node_asm_name): New.
22902         (symtab_node_name): New.
22903         (symtab_type_names): New static var.
22904         (dump_symtab_base): New.
22905         (dump_symtab_node, dump_symtab): New.
22906         (debug_symtab_node,  debug_symtab): New.
22907         * tree-ssa-structalias.c: Dump symbol table.
22908         * pases.c (execute_todo): Handle TODO_dump_symtab instead
22909         of TODO_dump_cgraph.
22910         * varpoo.c (varpool_node_name): Remove.
22911         (dump_varpool_node): Use dump_symtab_base; reformat.
22913 2012-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22915         * doc/invoke.texi (Language Independent Options): @item should be
22916         before @opindex.
22918 2012-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
22920         PR bootstrap/53021
22921         * rtl.c (rtx_code_size): Handle ADDRESS.
22923 2012-04-17  Tom de Vries  <tom@codesourcery.com>
22925         * tree-iterator.c (append_to_statement_list_1): Handle case that *list_p
22926         is not a STMT_LIST.
22928 2012-04-17  Uros Bizjak  <ubizjak@gmail.com>
22930         PR target/53020
22931         * config/i386/sync.md (atomic_<code><mode>): Rename to
22932         atomic_<logic><mode>.
22934 2012-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
22936         * rtl.def (ADDRESS): Turn operand into a HOST_WIDE_INT.
22937         * alias.c (reg_base_value): Expand and update comment.
22938         (arg_base_value): New variable.
22939         (unique_id): Move up file.
22940         (unique_base_value, unique_base_value_p, known_base_value_p): New.
22941         (find_base_value): Use arg_base_value and known_base_value_p.
22942         (record_set): Document REG_NOALIAS handling.  Use unique_base_value.
22943         (find_base_term): Use known_base_value_p.
22944         (base_alias_check): Use unique_base_value_p.
22945         (init_alias_target): Initialize arg_base_value.  Use unique_base_value.
22946         (init_alias_analysis): Use 1 as the first id for REG_NOALIAS bases.
22948 2012-04-17  Pat Haugen <pthaugen@us.ibm.com>
22950         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Remove DImode.
22952 2012-04-17  Michael Matz  <matz@suse.de>
22954         PR tree-optimization/18437
22955         * tree-vectorizer.h (_stmt_vec_info.stride_load_p): New member.
22956         (STMT_VINFO_STRIDE_LOAD_P): New accessor.
22957         (vect_check_strided_load): Declare.
22958         * tree-vect-data-refs.c (vect_check_strided_load): New function.
22959         (vect_analyze_data_refs): Use it to accept strided loads.
22960         * tree-vect-stmts.c (vectorizable_load): Ditto and handle them.
22962 2012-04-17  Richard Guenther  <rguenther@suse.de>
22964         PR middle-end/53011
22965         * tree-eh.c (cleanup_empty_eh_merge_phis): Properly discard
22966         loops when redirecting an entry or latch edge.
22968 2012-04-17  Bernd Schmidt  <bernds@codesourcery.com>
22970         * sel-sched.c (sel_global_init): Revert previous change.
22972 2012-04-17  Richard Guenther  <rguenther@suse.de>
22974         * tree-flow.h (array_at_struct_end_p): Move declaration ...
22975         * tree.h (array_at_struct_end_p): ... here.
22976         * tree-ssa-loop-niter.c (array_at_struct_end_p): Move ...
22977         * expr.c (array_at_struct_end_p): ... here.  Rewrite.
22979 2012-04-17  Steven Bosscher  <steven@gcc.gnu.org>
22981         * stmt.c (cost_table_, use_cost_table, cost_table_initialize,
22982         COST_TABLE): Remove.
22983         (estimate_case_costs): Remove.
22984         (expand_case): Do not call estimate_case_costs
22985         to set use_cost_table.
22986         (balance_case_nodes): Do not use use_cost_table.
22988 2012-04-16  Jan Hubicka  <jh@suse.cz>
22990         * cgraph.c (cgraph_hash, assembler_name_hash): Remove.
22991         (hash_node, eq_node): Remove.
22992         (cgraph_create_node): Do not handle hashtable.
22993         (cgraph_get_node): Remove.
22994         (cgraph_insert_node_to_hashtable): Remove.
22995         (hash_node_by_assembler_name): Remove.
22996         (eq_assembler_name): Remove.
22997         (cgraph_node_for_asm): Rewrite.
22998         (cgraph_find_replacement_node): Break out from ...
22999         (cgraph_remove_node): ... here; do not maintain hashtables.
23000         (change_decl_assembler_name): Remove.
23001         (cgraph_clone_node): Do not maintain hashtables.
23002         * cgraph.h (const_symtab_node): New typedef.
23003         (cgraph_insert_node_to_hashtable): Remove.
23004         (symtab_get_node, symtab_node_for_asm,
23005         symtab_insert_node_to_hashtable): Declare.
23006         (cgraph_find_replacement_node): Declare.
23007         (cgraph_get_node, varpool_get_node): Turn into inlines.
23008         (cgraph, varpool): Work sanely on NULL pointers.
23009         (FOR_EACH_SYMBOL): New walker.
23010         * ipa-inline-transform.c (save_inline_function_body): Use
23011         symtab_insert_node_to_hashtable.
23012         * symtab.c: Include ggc.h and diagnostics.h
23013         (symtab_hash, assembler_name_hash): New static vars;
23014         (hash_node, eq_node, hash_node_by_assembler_name,
23015         eq_assembler_name, insert_to_assembler_name_hash,
23016         unlink_from_assembler_name_hash): New.
23017         (symtab_register_node): Update hashtables.
23018         (symtab_insert_node_to_hashtable): New.
23019         (symtab_unregister_node): Update hashtables.
23020         (symtab_get_node): New.
23021         (symtab_node_for_asm): New.
23022         (change_decl_assembler_name): New.
23023         * Makefile.in (symtab.o): Needs GTY.
23024         * varpool.c (varpool_hash): Remove.
23025         (hash_varpool_node, eq_varpool_node, varpool_get_node): Remove.
23026         (varpool_node): Rewrite using varpool_get_node.
23027         (varpool_remove_node): DO not maintain hashtables.
23028         (varpool_node_for_asm): Rewrite.
23030 2012-04-16  Sandra Loosemore  <sandra@codesourcery.com>
23032         * doc/invoke.texi:  Copy-edit to put verbs in the present tense
23033         when describing the current behavior of GCC.
23035 2012-04-16  Richard Sandiford  <rdsandiford@googlemail.com>
23037         * genemit.c (gen_exp): Remove ADDRESS handling.
23038         * genoutput.c (scan_operands): Likewise.
23039         * genpeep.c (match_rtx): Likewise.
23040         * genrecog.c (add_to_sequence): Likewise.
23042 2012-04-16  David Edelsohn  <dje.gcc@gmail.com>
23044         * doc/install.texi (Specific, *-ibm-aix*): Update assembler bug status.
23046 2012-04-16  Martin Jambor  <mjambor@suse.cz>
23048         * tree-sra.c (build_ref_for_model): Create COMPONENT_REFs only for
23049         bit-fields.
23051 2012-04-16  Ulrich Weigand  <ulrich.weigand@linaro.org>
23053         PR target/51819
23054         * config/arm/arm.c (arm_print_operand): Fix invalid alignment
23055         hints for 'A' operand types.
23057 2012-04-16  Jan Hubicka  <jh@suse.cz>
23059         * cgraph.h (symtab_node_base): Add next and previous pointers.
23060         (cgraph_node): Remove next and preivous pointers.
23061         (varpool_node): Likewise; remove next/previous GTY marker;
23062         it is not type safe.
23063         (symtab_node_def): Update GTY marker
23064         (x_cgraph_nodes, cgraph_nodes): Remove.
23065         (symtab_nodes): New function.
23066         (cgraph_order): Rename to ...
23067         (symtab_order): ... this one.
23068         (symtab_register_node, symtab_unregister_node, symtab_remove_node):
23069         Declare.
23070         (x_varpool_nodes, varpool_nodes): Remove.
23071         (FOR_EACH_STATIC_VARIABLE): Update.
23072         (symtab_function_p, symtab_variable_p): New function.
23073         (FOR_EACH_VARIABLE): Update.
23074         (varpool_first_variable, varpool_next_variable): New functions.
23075         (FOR_EACH_VARIABLE): Update.
23076         (cgraph_first_defined_function): Update.
23077         (cgraph_next_defined_function, cgraph_next_defined_function): Update.
23078         (FOR_EACH_DEFINED_FUNCTION, FOR_EACH_FUNCTION): Update.
23079         (cgraph_first_function, cgraph_next_function): New.
23080         (FOR_EACH_FUNCTION): Update.
23081         (cgraph_first_function_with_gimple_body,
23082         cgraph_next_function_with_gimple_body): Update.
23083         * symtab.c: New file.
23084         * cgraph.c: Update copyright dates.
23085         (x_cgraph_nodes, cgraph_order): Remove.
23086         (NEXT_FREE_NODE): Update.
23087         (SET_NEXT_FREE_NODE): New.
23088         (cgraph_create_node_1): Remove common code.
23089         (cgraph_create_node): Remove common code; call symtab_register_node.
23090         (cgraph_remove_node): Remove common code; call symtab_unregister-node.
23091         (cgraph_add_asm_node): Update.
23092         (cgraph_clone_node): Register new node.
23093         * cgraphunit.c (process_function_and_variable_attributes): Update.
23094         (cgraph_analyze_functions): Update.
23095         (cgraph_analyze_functions): Update.
23096         (cgraph_output_in_order): Update.
23097         * lto-cgraph.c (input_node, input_varpool_node, input_cgraph_1):
23098         Update.
23099         * ipa-inline.c (recursive_inlining): Update.
23100         * lto-streamer-in.c (lto_input_toplevel_asms): Update.
23101         * ipa.c (cgraph_remove_unreachable_nodes): Update.
23102         * Makefile.in: Add symtab.o
23103         * varpool.c (x_varpool_nodes): Remove
23104         (varpool_node): Remove common code; call symtab_register_node.
23105         (varpool_remove_node): Remove common code; call symtab_unregister_node.
23107 2012-04-16  Richard Guenther  <rguenther@suse.de>
23109         PR middle-end/52977
23110         * tree.h (VECTOR_CST_NELTS): Adjust.
23111         (struct tree_vector): Add explicit length field.
23112         (make_vector_stat): Declare.
23113         (make_vector): Define.
23114         * tree.c (make_vector_stat): New function.
23115         (build_vector_stat): Use it.
23116         * tree-streamer-in.c (streamer_alloc_tree): Likewise.
23118 2012-04-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23120         PR tree-optimization/52976
23121         * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): New function.
23122         (undistribute_ops_list): Ops with repeat counts aren't eligible for
23123         undistribution.
23124         (attempt_builtin_powi): Call add_to_ops_vec_max_rank.
23126 2012-04-16  Jan Hubicka  <jh@suse.cz>
23128         * cgraph.h (FOR_EACH_VARIABLE, FOR_EACH_VARIABLE, FOR_EACH_FUNCTION):
23129         New macros.
23130         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Use FOR_EACH
23131         walkers to walk cgraph and varpool.
23132         * cgraph.c (cgraph_node_for_asm): Likewise.
23133         (dump_cgraph): Likewise.
23134         * value-prof.c (init_node_map): Likewise.
23135         * tree.c (free_lang_data_in_cgraph): Likewise.
23136         * tree-emutls.c: (ipa_lower_emutls): Likewise.
23137         * ipa-reference.c (generate_summary, propagate): Likewise.
23138         * cgraphunit.c (verify_cgraph, cgraph_process_same_body_aliases,
23139         cgraph_mark_functions_to_output, cgraph_output_in_order,
23140         output_weakrefs, cgraph_materialize_all_clones,
23141         cgraph_optimize): Likewise.
23142         * lto-cgraph.c (merge_profile_summaries): Likewise.
23143         (input_cgraph): Likewise.
23144         * ipa-pure-const.c (generate_summary): Likewise.
23145         (propagate): Likwise.
23146         * ipa-utils.c (ipa_reduced_postorder): Likewise.
23147         (ipa_free_postorder_info): Likewise.
23148         (ipa_reverse_postorder): Likewise.
23149         * ipa-inline.c (ipa_inline): Likewise.
23150         * matrix-reorg.c (find_matrices_decl): Likewise.
23151         (matrix_reorg): Likewise.
23152         * tree-vectorizer.c (increase_alignment): Likewise.
23153         * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
23154         (function_and_variable_visibility): Likewise.
23155         (whole_program_function_and_variable_visibility): Likewise.
23156         (ipa_cdtor_merge): Likewise.
23157         * trans-mem.c (ipa_tm_execute): Likewise.
23158         * ipa-inline-analysis.c (dump_inline_summaries): Likewise.
23159         * ipa-prop.c (ipa_print_all_jump_functions): Likewise.
23160         (ipa_print_all_params): Likewise.
23161         (ipa_update_after_lto_read): Likewise.
23162         * tree-profie.c (tree_profiling): Likewise.
23163         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
23164         * passes.c (dump_passes): Likewise.
23165         (do_per_function): Likewise.
23166         (ipa_write_summaries): Likewise.
23167         * varpool.c (dump_varpool): Likewise.
23168         (varpool_node_for_asm): Likewise.
23169         (varpool_assemble_pending_decls): Likewise.
23171 2012-04-16  Richard Guenther  <rguenther@suse.de>
23173         PR tree-optimization/52975
23174         * tree-if-conv.c (predicate_bbs): Do not simplify inverted
23175         condition but always mark it with TRUTH_NOT_EXPR.
23177 2012-04-16  Richard Guenther  <rguenther@suse.de>
23179         PR tree-optimization/52975
23180         * tree-ssa-forwprop.c (combine_cond_exprs): New function.
23181         (ssa_forward_propagate_and_combine): Call it for COND_EXPRs
23182         and VEC_COND_EXPRs.  Also combine into VEC_COND_EXPRs condition.
23183         * fold-const.c (operand_equal_p): Handle TARGET_MEM_REF.
23185 2012-04-14  Uros Bizjak  <ubizjak@gmail.com>
23187         * config/i386/sse.md (ssse3_plusminus): New code iterator.
23188         (avx2_ph<plusminus_mnemonic>wv16hi3): Macroize insn from
23189         avx2_ph{add,adds,sub,subs}wv16hi3 using ssse3_plusminus code iterator.
23190         (ssse3_ph<plusminus_mnemonic>wv8hi3): Macroize insn from
23191         ssse3_ph{add,adds,sub,subs}wv8hi3 using ssse3_plusminus code iterator.
23192         (ssse3_ph<plusminus_mnemonic>wv4hi3): Macroize insn from
23193         ssse3_ph{add,adds,sub,subs}wv4hi3 using ssse3_plusminus code iterator.
23195         (avx2_ph<plusminus_mnemonic>dv8si3): Macroize insn from
23196         avx2_ph{add,adds,sub,subs}dv8si3 using plusminus code iterator.
23197         (ssse3_ph<plusminus_mnemonic>dv4si3): Macroize insn from
23198         ssse3_ph{add,adds,sub,subs}dv4si3 using plusminus code iterator.
23199         (ssse3_ph<plusminus_mnemonic>dv2si3): Macroize insn from
23200         ssse3_ph{add,adds,sub,subs}dv2si3 using plusminus code iterator.
23202         (xop_plus): New code iterator.
23203         (macs): New code attribute.
23204         (macds): Ditto.
23205         (xop_p<macs><ssemodesuffix><ssemodesuffix>): Macroize insn from
23206         xop_pmacs{,s}{ww,dd} using xop_plus code iterator and VI24_128 mode
23207         iterator.
23208         (xop_p<macs>dql): Macroize insn from xop_pmacs{,s}dql using
23209         xop_plus code iterator.
23210         (xop_p<macs>dqh): Macroize insn from xop_pmacs{,s}dqh using
23211         xop_plus code iterator.
23212         (xop_p<macs>wd): Macroize insn from xop_pmacs{,s}wd using
23213         xop_plus code iterator.
23214         (xop_p<madcs>wd): Macroize insn from xop_pmadcs{,s}wd using
23215         xop_plus code iterator.
23217         (xop_phadd<u>bw): Macroize insn from xop_phadd{,u}bw usign
23218         any_extend code iterator.
23219         (xop_phadd<u>bd): Macroize insn from xop_phadd{,u}bd usign
23220         any_extend code iterator.
23221         (xop_phadd<u>bq): Macroize insn from xop_phadd{,u}bq usign
23222         any_extend code iterator.
23223         (xop_phadd<u>wd): Macroize insn from xop_phadd{,u}wd usign
23224         any_extend code iterator.
23225         (xop_phadd<u>wq): Macroize insn from xop_phadd{,u}wq usign
23226         any_extend code iterator.
23227         (xop_phadd<u>dq): Macroize insn from xop_phadd{,u}dq usign
23228         any_extend code iterator.
23230 2012-04-14  Tom de Vries  <tom@codesourcery.com>
23232         * cfgcleanup.c (try_optimize_cfg): Replace call to delete_insn_chain by
23233         call to delete_insn.  Remove code to reorder BASIC_BLOCK note and
23234         DELETED_LABEL note, and move it to ...
23235         * cfgrtl.c (delete_insn): ... here.  Change return type to void.
23236         (delete_insn_and_edges): Likewise.
23237         (delete_insn_chain): Handle new return type of delete_insn.  Delete
23238         chain backwards rather than forwards.
23239         * rtl.h (delete_insn, delete_insn_and_edges): Change return type to
23240         void.
23241         * cfglayout.c (fixup_reorder_chain): Delete unused label.
23243 2012-04-14  Jan Hubicka  <jh@suse.cz>
23245         * cgraph.h: Update copyrights;
23246         (symtab_node): Turn to union typedef.
23247         (symtab_node_base): New structure.
23248         (symtab_type): Add SYMTAB_SYMBOL tag.
23249         (cgraph_node): Annotate some pinters with nested_ptr.
23250         (varpool_node): Likewise.
23251         (cgraph_local_info): Remove lto_file_data
23252         and externally_visible.
23253         (cgraph_node): Remove decl; same_comdat_group list;
23254         aux; ref_list; order; address_taken; reachable_from_other_parittion,
23255         in_other_partition; resolution.
23256         (varpool_node): Remove decl; same_comdat_group;
23257         ref_list; lto_file_data; aux; order; resolution; externally_visible;
23258         used_from_other_partition; in_other_partition.
23259         (symtab_node_def): New union.
23260         (cgraph, varpool): Update.
23261         (varpool_first_static_initializer, varpool_next_static_initializer,
23262         cgraph_only_called_directly_or_aliased_p,
23263         varpool_can_remove_if_no_refs, varpool_can_remove_if_no_refs,
23264         varpool_all_refs_explicit_p, cgraph_alias_aliased_node,
23265         varpool_alias_aliased_node, cgraph_edge_recursive_p): Update
23266         field references.
23267         * cgraph.c: Likewise.
23268         (cgraph_hash, assembler_name_hash): Turn into symtab_node.
23269         * cgraphbuild.c: Likewise.
23270         * lto-symtab.c: Likewise.
23271         * c-gimplify.c: Likewise.
23272         * value-prof.c: Likewise.
23273         * tree.c: Likewise.
23274         * ipa-cp.c: Likewise.
23275         * tree-emutls.c: Likewise.
23276         * ipa-inline-transform.c: Likwise.
23277         * ipa-reference.c: Likewise.
23278         * cgraphunit.c: Likewise.
23279         * ipa-ref.c: Likewise.
23280         * lto-cgraph.c: Likewise.
23281         * ipa-ref-inline.h: Likewise.
23282         * ipa-pure-const.c: Likewise.
23283         * lto-streamer-out.c: Likewise.
23284         * ipa-utils.c: Likewise.
23285         * ipa-inline.c: Likewise.
23286         * matrix-reorg.c: Likewise.
23287         * tree-eh.c: Likewise.
23288         * tree-vectorizer.c: Likewise.
23289         * ipa-split.c: Likewise.
23290         * ipa.c: Likewise.
23291         * trans-mem.c: Likewise.
23292         * ipa-inline-analysis.c: Likewise.
23293         * gimplify.c: Likewise.
23294         * cfgexpand.c: Likewise.
23295         * tree-sra.c: Likewise.
23296         * ipa-prop.c: Likewise.
23297         * varasm.c: Likewise.
23298         * tree-nested.c: Likewise.
23299         * tree-inline.c: Likewise.
23300         * tree-profile.c: Likewise.
23301         * tree-ssa-structalias.c: Likewise.
23302         * passes.c: Likewise.
23303         * varpool.c: Likewise.
23305 2012-04-14  Tom de Vries  <tom@codesourcery.com>
23307         * tree-ssa-tail-merge.c (stmt_local_def): New function, factored out of
23308         same_succ_hash, with local_def inlined.  Use SINGLE_SSA_DEF_OPERAND.
23309         Use FOR_EACH_IMM_USE_FAST instead of FOR_EACH_IMM_USE_STMT.  Remove use
23310         of find_edge.
23311         (gsi_advance_fw_nondebug_nonlocal): New function.
23312         (local_def): Removed function.
23313         (same_succ_hash): Use stmt_local_def.
23314         (same_succ_equal): Use gsi_advance_fw_nondebug_nonlocal.
23315         (gsi_advance_bw_nondebug_nonlocal): Use stmt_local_def.
23317 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
23319         * config/i386/i386-c.c (ix86_target_macros): Define _ILP32
23320         and __ILP32__ for x32.
23322 2012-04-13  Martin Jambor  <mjambor@suse.cz>
23324         PR middle-end/52939
23325         * gimple-fold.c (gimple_get_virt_method_for_binfo): Bail out if
23326         fold_ctor_reference returns a zero constant.
23328 2012-04-13  Enkovich Ilya  <ilya.enkovich@intel.com>
23330         * config.gcc: Add i386/gnu-user-common.h before all
23331         i386/gnu-user.h and i386/gnu-user64.h usages.
23333         * config/i386/gnu-user-common.h: New.
23335         * config/i386/gnu-user.h (CPP_SPEC): Moved to gnu-user-common.h.
23336         (CC1_SPEC): Likewise.
23337         (ENDFILE_SPEC): Likewise.
23338         (DEFAULT_PCC_STRUCT_RETURN): Likewise.
23339         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Likewise.
23340         (TARGET_OS_CPP_BUILTINS): Likewise.
23341         (LIBGCC2_HAS_TF_MODE): Likewise.
23342         (LIBGCC2_TF_CEXT): Likewise.
23343         (TF_SIZE): Likewise.
23344         (TARGET_ASM_FILE_END): Likewise.
23345         (STACK_CHECK_MOVING_SP): Likewise.
23346         (STACK_CHECK_STATIC_BUILTIN): Likewise.
23347         * config/i386/gnu-user64.h: Likewise.
23349 2012-04-13  Martin Jambor  <mjambor@suse.cz>
23351         * expr.c (expand_expr_real_1): Pass type, not the expression, to
23352         set_mem_attributes for a memory temporary. Do not call the function
23353         for the memory temporary created for a bitfield.
23355 2012-04-13  Alexandre Oliva  <aoliva@redhat.com>
23357         PR debug/48866
23358         * df.h (enum debug_temp_where): New.
23359         (dead_debug_init, dead_debug_finish) Declare.
23360         (dead_debug_add, dead_debug_insert_temp): Declare.
23361         (struct dead_debug_use, struct dead_debug): Moved from...
23362         * df-problems.c: ... here.
23363         (df_set_unused_notes_for_mw): Bind debug uses of unused regno
23364         to a debug temp.
23365         (df_create_unused_note): Likewise.
23366         (df_set_dead_notes_for_mw): Move comment where it belongs.
23367         (dead_debug_init): Export.
23368         (dead_debug_reset_uses): New, factored out of...
23369         (dead_debug_finish): ...this.  Export.
23370         (dead_debug_reset): Remove.
23371         (dead_debug_add): Export.
23372         (dead_debug_insert_before): Rename to...
23373         (dead_debug_insert_temp): ... this.  Add where argument.  Export.
23374         Locate stored value for BEFORE_WITH_VALUE.  Avoid repeat inserts.
23375         Return insertion count.
23376         (df_note_bb_compute): Adjust.
23377         * dce.c (word_dce_process_block): Adjust dead debug uses.
23378         (dce_process_block): Likewise.
23380 2012-04-13  Alexandre Oliva  <aoliva@redhat.com>
23382         * df-problems.c (df_note_bb_compute): Do not take note of
23383         debug uses for whose REGs we won't emit DEAD or UNUSED notes.
23385 2012-04-13  Alexandre Oliva  <aoliva@redhat.com>
23387         PR debug/51570
23388         * var-tracking.c (expand_depth): New type.
23389         (onepart_aux, expand_loc_callback_data): Change depth type to it.
23390         (loc_exp_dep_alloc): Adjust initializer.
23391         (update_depth): Use new type.  Add entryvals.
23392         (vt_expand_var_loc_chain): Take note of expansions with
23393         ENTRY_VALUEs, but don't accept them right away.  Run an optional
23394         second pass accepting the minimum ENTRY_VALUE count found in the
23395         first pass.
23396         (vt_expand_loc_callback, INIT_ELCD): Adjust.
23398 2012-04-13  Tom de Vries  <tom@codesourcery.com>
23400         * tree-ssa-tail-merge.c (gsi_advance_bw_nondebug_nonlocal): Add
23401         parameters vuse and vuse_escaped.
23402         (find_duplicate): Init vuse1, vuse2 and vuse_escaped.  Pass to
23403         gsi_advance_bw_nondebug_nonlocal.  Return if vuse_escaped and
23404         vuse1 != vuse2.
23406 2012-04-13  Richard Guenther  <rguenther@suse.de>
23408         PR tree-optimization/52969
23409         * tree-if-conv.c (predicate_mem_writes): Properly gimplify
23410         the condition for the COND_EXPR and handle predicate negation
23411         by swapping the COND_EXPR arms.
23413 2012-04-13  Nick Clifton  <nickc@redhat.com>
23415         * config/rl78/rl78.c (rl78_devirt_pass): Remove use of
23416         TODO_dump_func flag.
23418 2012-04-13  Andrey Belevantsev  <abel@ispras.ru>
23420         PR rtl-optimization/52203
23421         PR rtl-optimization/52715
23423         Revert the 2012-03-07 fix for PR 52203.
23424         * sel-sched.c (reset_sched_cycles_in_current_ebb): Check that
23425         the insn does not modify DFA right before issuing, adjust
23426         issue_rate accordingly.
23428 2012-04-13  Richard Guenther  <rguenther@suse.de>
23430         PR c/52549
23431         * c-typeck.c (pointer_diff): Remove bogus assert.
23433 2012-04-13  Richard Guenther  <rguenther@suse.de>
23435         PR c/52862
23436         * convert.c (convert_to_pointer): Remove special-casing of zero.
23438 2012-04-13  Joey Ye  <joey.ye@arm.com>
23440         * config/arm/constraints.md (Pe): New constraint.
23441         * config/arm/arm.md: New split for imm 256-510.
23443 2012-04-13  Terry Guo  <terry.guo@arm.com>
23445         * config/arm/arm-cores.def: Added core cortex-m0plus.
23446         * config/arm/arm-tune.md: Regenerated.
23447         * config/arm/arm-tables.opt: Regenerated.
23448         * doc/invoke.texi: Added entry for cpu ARM cortex-m0plus.
23450 2012-04-13  Alan Modra  <amodra@gmail.com>
23452         PR target/52828
23453         * config/rs6000/rs6000.c (rs6000_emit_stack_tie): Rewrite with
23454         tie regs on destination of sets.  Delete forward declaration.
23455         (rs6000_emit_stack_reset): Update rs6000_emit_stack_tie calls.
23456         (rs6000_emit_prologue): Likewise.
23457         (rs6000_emit_epilogue): Likewise.  Use in place of gen_frame_tie
23458         and gen_stack_tie.
23459         (is_mem_ref): Use tie_operand to recognise stack ties.
23460         * config/rs6000/predicates.md (tie_operand): New.
23461         * config/rs6000/rs6000.md (restore_stack_block): Generate new
23462         stack tie rtl.
23463         (restore_stack_nonlocal): Likewise.
23464         (stack_tie): Update.
23465         (frame_tie): Delete.
23467 2012-04-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23469         * tree-ssa-reassoc.c (attempt_builtin_powi_stats): Change %ld to
23470         HOST_WIDE_INT_PRINT_DEC in format strings.
23472 2012-04-12  Uros Bizjak  <ubizjak@gmail.com>
23474         PR target/52932
23475         * config/i386/avx2intrin.h (_mm256_permutevar8x32_ps): Change second
23476         argument type to __m256i.  Update call to __builtin_ia32_permvarsf256.
23477         * config/i386/sse.md (UNSPEC_VPERMVAR): New.
23478         (UNSPEC_VPERMSI, UNSPEC_VPERMSF): Remove.
23479         (avx2_permvarv8sf, avx2_permvarv8si): Switch operands 1 and 2.
23480         (avx2_permvar<mode>): Macroize insn from avx2_permvarv8sf and
23481         avx2_permvarv8si using VI4F_256 mode iterator.
23482         * config/i386/i386.c (bdesc_args) <__builtin_ia32_permvarsf256>:
23483         Update builtin type to V8SF_FTYPE_V8SF_V8SI.
23484         (ix86_expand_vec_perm): Update calls to gen_avx2_permvarv8si and
23485         gen_avx2_permvarv8sf.
23486         (expand_vec_perm_pshufb): Ditto.
23488 2012-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
23490         PR target/52775
23491         * config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to
23492         the list of options to enable the FCFID instruction.
23493         (TARGET_EXTRA_BUILTINS): Adjust comment.
23495 2012-04-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23497         PR tree-optimization/18589
23498         * tree-ssa-reassoc.c (reassociate_stats): Add two fields.
23499         (operand_entry): Add count field.
23500         (add_repeat_to_ops_vec): New function.
23501         (completely_remove_stmt): Likewise.
23502         (remove_def_if_absorbed_call): Likewise.
23503         (remove_visited_stmt_chain): Remove feeding builtin pow/powi calls.
23504         (acceptable_pow_call): New function.
23505         (linearize_expr_tree): Look for builtin pow/powi calls and add operand
23506         entries with repeat counts when found.
23507         (repeat_factor_d): New struct and associated typedefs.
23508         (repeat_factor_vec): New static vector variable.
23509         (compare_repeat_factors): New function.
23510         (get_reassoc_pow_ssa_name): Likewise.
23511         (attempt_builtin_powi): Likewise.
23512         (reassociate_bb): Call attempt_builtin_powi.
23513         (fini_reassoc): Two new calls to statistics_counter_event.
23515 2012-04-12  Richard Guenther  <rguenther@suse.de>
23517         * Makefile.in (cgraphunit.o): Add $(EXCEPT_H) dependency.
23518         * cgraph.h (tree_rest_of_compilation): Remove.
23519         * cgraph.c (cgraph_add_new_function): Move ...
23520         * cgraphunit.c (cgraph_add_new_function): ... here.
23521         (tree_rest_of_compilation): Make static.
23522         (cgraph_expand_function): Do not set cgraph_function_flags_ready.
23523         * tree-optimize.c (gate_all_optimizations, pass_all_optimizations,
23524         gate_all_early_local_passes, execute_all_early_local_passes,
23525         pass_early_local_passes, gate_all_early_optimizations,
23526         pass_all_early_optimizations): Move ...
23527         * passes.c (gate_all_optimizations, pass_all_optimizations,
23528         gate_all_early_local_passes, execute_all_early_local_passes,
23529         pass_early_local_passes, gate_all_early_optimizations,
23530         pass_all_early_optimizations): ... here.
23531         * tree-optimize.c (execute_free_datastructures): Remove.
23532         * tree-flow.h (execute_free_datastructures): Remove.
23533         * tree-optimize.c (execute_init_datastructures,
23534         pass_init_datastructures): Move ...
23535         * tree-ssa.c (execute_init_datastructures,
23536         pass_init_datastructures): ... here.
23537         * cfgexpand.c (gimple_expand_cfg): Inline-expand call to
23538         execute_free_datastructures.
23540 2012-04-12  Bernd Schmidt  <bernds@codesourcery.com>
23542         * dbgcnt.def (ira_move): New counter.
23543         * ira-int.h (ira_create_new_reg): Declare function.
23544         (first_moveable_pseudo, last_moveable_pseudo): Declare variables.
23545         * ira-emit.c (ira_create_new_reg): Renamed from craete_new_reg and
23546         no longer static.  All callers changed.
23547         * ira.c: Include "dbgcnt.h".
23548         (rtx_moveable_p, insn_dominated_by_p, find_moveable_pseudos,
23549         move_unallocated_pseudos): New static functions.
23550         (first_moveable_pseudo, last_moveable_pseudo): New global variables.
23551         (pseudo_replaced_reg, pseudo_move_insn): New static variables.
23552         (ira): Call find_moveable_pseudos and move_unallocated_pseudos.
23553         * ira-costs.c (find_costs_and_classes): Assign a memory cost of zero
23554         to the pseudos generated in find_moveable_pseudos.
23555         * Makefile.in (ira.o): Add $(DBGCNT_H).
23557 2012-04-12  Richard Guenther  <rguenther@suse.de>
23559         PR tree-optimization/52943
23560         * tree-chrec.h (chrec_is_positive): Remove.
23561         * tree-scalar-evolution.c (chrec_is_positive): Move ...
23562         * tree-data-ref.c (chrec_is_positive): ... here.  Make static.
23563         Return false for a constant zero instead of negative.
23564         (analyze_siv_subscript_cst_affine): Handle zero difference
23565         in the initial condition explicitely.
23567 2012-04-12  Richard Guenther  <rguenther@suse.de>
23569         * tree-parloops.c (parallelize_loops): Also consult the upper
23570         bound for the number of iterations.
23571         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
23572         (loop_prefetch_arrays): Likewise.
23574 2012-04-12  Richard Guenther  <rguenther@suse.de>
23576         * cfgloop.h (estimated_loop_iterations_int): Ditch
23577         'conservative' parameter.
23578         (max_stmt_executions_int): Likewise.
23579         (estimated_loop_iterations): Likewise.
23580         (max_stmt_executions): Likewise.
23581         (max_loop_iterations): Declare.
23582         (max_loop_iterations_int): Likewise.
23583         (estimated_stmt_executions): Likewise.
23584         (estimated_stmt_executions_int): Likewise.
23585         * tree-ssa-loop-niter.c (estimated_loop_iterations):
23586         Split parts to ...
23587         (max_loop_iterations): ... this.
23588         (estimated_loop_iterations_int): Split parts to ...
23589         (max_loop_iterations_int): ... this.
23590         (max_stmt_executions_int): Split parts to ...
23591         (estimated_stmt_executions_int): ... this.
23592         (max_stmt_executions): Split parts to ...
23593         (estimated_stmt_executions): ... this.
23594         * graphite-sese-to-poly.c (build_loop_iteration_domains): Adjust.
23595         * predict.c (predict_loops): Likewise.
23596         * tree-data-ref.c (max_stmt_executions_tree): Likewise.
23597         (analyze_siv_subscript_cst_affine): Likewise.
23598         (compute_overlap_steps_for_affine_1_2): Likewise.
23599         (analyze_subscript_affine_affine): Likewise.
23600         (init_omega_for_ddr_1): Likewise.
23601         * tree-parloops.c (parallelize_loops): Likewise.
23602         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
23603         (may_eliminate_iv): Likewise.
23604         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
23605         (loop_prefetch_arrays): Likewise.
23606         * tree-vrp.c (adjust_range_with_scev): Likewise.
23608 2012-04-12  Oleg Endo  <olegendo@gcc.gnu.org>
23610         * config/sh/sh.h (RETURN_ADDR_RTX): Use NULL_RTX instead of 0.
23611         * config/sh/sh.c (INSN_REGMODE_WEIGHT, CURR_REGMODE_PRESSURE):
23612         Fix line width.
23613         (dump_table): Use bool type for need_align and have_df variables.
23614         (find_barrier, sfunc_uses_reg): Use NULL_RTX instead of 0.
23615         (regs_used): Remove register modifier.
23616         (barrier_align): Move variables slot, credit, jump_to_next
23617         into if block above for loop.  Use bool type for jump_to_next.
23618         (sh_function_arg): Use NULL_RTX instead of 0.
23620 2012-04-11  Andreas Schwab  <schwab@linux-m68k.org>
23622         * config/m68k/m68k.md (rotrhi3+1): Name it rotrhi_lowpart.
23623         (bswapsi2): New expander.
23625 2012-04-11  H.J. Lu  <hongjiu.lu@intel.com>
23627         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Defined to
23628         0x60000000 if __x86_64 is defined and __LP64__ isn't defined.
23630 2012-04-11  H.J. Lu  <hongjiu.lu@intel.com>
23632         PR rtl-optimization/52876
23633         * emit-rtl.c (set_reg_attrs_from_value): Handle arbitrary value.
23634         Don't call mark_reg_pointer for incompatible pointer sign extension.
23636         * reginfo.c (reg_scan_mark_refs): Call set_reg_attrs_from_value
23637         directly.
23639 2012-04-11  Bernd Schmidt  <bernds@codesourcery.com>
23641         * fold-const.c (fold_unary_loc): Use GET_MODE_PRECISION for
23642         comparisons against TYPE_PRECISION.
23643         * tree-ssa-forwprop.c (combine_conversions): Likewise.
23645 2012-04-11  Xinliang David Li  <davidxl@google.com>
23647         * tree-passes.h: Remove TODO_dump_func.
23648         * tree-ssa-tail-merge.c (tail_merge_optimize): Remove TODO_dump_func.
23649         * trans-mem.c: Remove TODO_dump_func.
23650         * ira.c: Remove TODO_dump_func.
23652 2012-04-11  H.J. Lu  <hongjiu.lu@intel.com>
23654         * config/i386/i386.c (ix86_option_override_internal): Check
23655         SUBTARGET_OVERRIDE_OPTIONS and SUBSUBTARGET_OVERRIDE_OPTIONS
23656         after TARGET_64BIT is updated.
23658 2012-04-11  Oleg Endo  <olegendo@gcc.gnu.org>
23660         * config/sh/sh.h: Remove old secondary reload code.
23662 2012-04-11  Oleg Endo  <olegendo@gcc.gnu.org>
23664         * config/sh/sh.c (SCHED_REORDER): Merge macro into ...
23665         (ready_reorder): ... this function.
23667 2012-04-11  Bernd Schmidt  <bernds@codesourcery.com>
23669         * sel-sched.c (sel_global_init): Swap order of sched_rgn_init and
23670         sched_init calls.
23672         * haifa-sched.c (prune_ready_list): Rework handling of SCHED_GROUP_P
23673         insns so that no other insn is queued for a time before them.
23675         * config/c6x/c6x.md (load_got_gotoff): Set op_pattern attribute to
23676         unknown.
23678 2012-04-11  Richard Guenther  <rguenther@suse.de>
23680         PR middle-end/52621
23681         * tree-chrec.c (evolution_function_is_invariant_rec_p): Properly
23682         consider loop nesting.
23683         (evolution_function_is_univariate_p): Properly check the remainder
23684         for chrecs.
23686 2012-04-11  Richard Guenther  <rguenther@suse.de>
23688         PR middle-end/52918
23689         * except.c (sjlj_emit_dispatch_table): Properly update loop structure.
23691 2012-04-11  Nick Clifton  <nickc@redhat.com>
23693         * config/rl78/rl78.c (rl78_expand_prologue): Set stack use
23694         information, if requested.
23696         * config/rx/rx.c (rx_expand_prologue): Likewise.
23698 2012-04-11  Peter Bergner  <bergner@vnet.ibm.com>
23699             Michael Matz  <matz@suse.de>
23701         PR target/16458
23702         * rtlanal.c (unsigned_reg_p): New function.
23703         Update copyright notice dates.
23704         * rtl.h (unsigned_reg_p): Prototype it.
23705         Update copyright notice dates.
23706         * config/rs6000/rs6000.c (rs6000_generate_compare): Use it.
23707         Update comment.
23708         * expr.c (expand_expr_real_1): Set register attributes.
23709         * stmt.c (expand_case): Likewise.
23711 2012-04-11  Oleg Endo  <olegendo@gcc.gnu.org>
23713         PR target/50751
23714         * config/sh/sh-protos.h (sh_legitimate_index_p): Add new arguments
23715         consider_sh2a and allow_zero.
23716         * config/sh/sh.c (sh_legitimate_index_p): Likewise.
23717         (disp_addr_displacement): New function.
23718         (sh_address_cost): Use disp_addr_displacement function instead
23719         of DISP_ADDR_OFFSET.
23720         (sh_legitimate_address_p): Adapt to changed
23721         sh_legitimate_index_p declaration.
23722         (sh_find_mov_disp_adjust): Remove HImode check.
23723         (sh_secondary_reload): Add HImode case.  Use satisfies_constraint_Sdd,
23724         disp_addr_displacement and max_mov_insn_displacement.
23725         (max_mov_insn_displacement): Remove HImode check.
23726         * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12,
23727         DISP_ADDR_P, DISP_ADDR_OFFSET): Remove.
23728         * config/sh/constraints.md (K05, K13): New constraints.
23729         (K12): Correct comment.
23730         (Sdd): Do not use DISP_ADDR_P macro.
23731         (Snd, Sbw): Use satisfies_constraint_Sdd.
23732         * config/sh/sh.md (extendhisi2): Remove constraints from expander.
23733         (*extendhisi2_compact, movhi_i): Remove.
23734         (*extendhisi2_compact_reg, *extendhisi2_compact_mem_disp,
23735         *extendhisi2_compact_mem_disp, *extendhisi2_compact_snd,
23736         *movhi_reg_reg, *movhi_store_mem_disp05, *movhi_store_mem_disp13,
23737         *movhi_load_mem_disp, *movhi_load_mem_disp, *movhi): New insns.
23738         (*extendqisi2_compact_mem_disp, *extendqisi2_compact_mem_disp,
23739         *movqi_store_mem_disp04, *movqi_store_mem_disp12, *movqi_load_mem_disp,
23740         *movqi_load_mem_disp): Use sh_legitimate_index_p instead of
23741         CONST_OK_FOR_Kxx.
23742         Add new peepholes for HImode displacement addressing.
23744 2012-04-11  Oleg Endo  <olegendo@gcc.gnu.org>
23746         * config/sh/sh.h (SIDI_OFF): Remove.
23747         * config/sh/sh.md: Use gen_highpart and gen_lowpart to access
23748         DImode subregs instead of gen_rtx_REG or simplifly_gen_subreg
23749         or operand_subword.
23751 2012-04-11  Eric Botcazou  <ebotcazou@adacore.com>
23753         PR target/52624
23754         * doc/extend.texi (Other Builtins): Document __builtin_bswap16.
23755         (PowerPC AltiVec/VSX Built-in Functions): Remove it.
23756         * doc/md.texi (Standard Names): Add bswap.
23757         * builtin-types.def (BT_UINT16): New primitive type.
23758         (BT_FN_UINT16_UINT16): New function type.
23759         * builtins.def (BUILT_IN_BSWAP16): New.
23760         * builtins.c (expand_builtin_bswap): Add TARGET_MODE argument.
23761         (expand_builtin) <BUILT_IN_BSWAP16>: New case.  Pass TARGET_MODE to
23762         expand_builtin_bswap.
23763         (fold_builtin_bswap): Add BUILT_IN_BSWAP16 case.
23764         (fold_builtin_1): Likewise.
23765         (is_inexpensive_builtin): Likewise.
23766         * optabs.c (expand_unop): Deal with bswap in HImode specially.  Add
23767         missing bits for bswap to libcall code.
23768         * tree.c (build_common_tree_nodes): Build uint16_type_node.
23769         * tree.h (enum tree_index): Add TI_UINT16_TYPE.
23770         (uint16_type_node): New define.
23771         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_BSWAP_HI): Delete.
23772         * config/rs6000/rs6000.c (rs6000_expand_builtin): Remove handling of
23773         above builtin.
23774         (rs6000_init_builtins): Likewise.
23775         * config/rs6000/rs6000.md (bswaphi2): Add TARGET_POWERPC predicate.
23777 2012-04-11  Tristan Gingold  <gingold@adacore.com>
23779         * doc/extend.texi (Type Attributes): Move paragraph.
23781 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23783         PR 24985
23784         * diagnostic.h (show_caret): Declare.
23785         (caret_max_width): Declare.
23786         (diagnostic_show_locus): Declare.
23787         * diagnostic.c (diagnostic_initialize): Initialize to false.
23788         (diagnostic_show_locus): New.
23789         (diagnostic_report_diagnostic): Call it.
23790         (getenv_columns): New.
23791         (adjust_line): New.
23792         (diagnostic_set_caret_max_width): New.
23793         * input.c (read_line): New.
23794         (location_get_source_line): New.
23795         * input.h (location_get_source_line): Declare.
23796         * toplev.c (general_init): Initialize show_caret from options.
23797         * dwarf2out.c (gen_producer_string): Handle fdiagnostics-show-caret.
23798         * opts.c (common_handle_option): Likewise.
23799         * pretty-print.h (pp_get_prefix): New.
23800         (pp_base_get_prefix): New.
23801         * common.opt (fdiagnostics-show-caret): New option.
23802         * doc/invoke.texi (fdiagnostics-show-caret): Document it.
23804 2012-04-11  Richard Guenther  <rguenther@suse.de>
23806         PR rtl-optimization/52881
23807         * ifcvt.c (find_if_case_2): Avoid speculating loop latches.
23809 2012-04-11  Richard Guenther  <rguenther@suse.de>
23811         PR tree-optimization/52912
23812         * tree-ssa-threadupdate.c (thread_block): Tell the cfg
23813         manipulation code we are threading through a loop header
23814         to an exit destination.
23816 2012-04-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23818         * tree.h (warn_if_unused_value): Move declaration from here.
23819         * stmt.c (warn_if_unused_value): Move definition from here.
23821 2012-04-10  Michael Matz  <matz@suse.de>
23823         * tree-vectorizer.h (_loop_vec_info.strided_stores): Rename to
23824         grouped_stores.
23825         (LOOP_VINFO_STRIDED_STORES): Rename to LOOP_VINFO_GROUPED_STORES.
23826         (struce _bb_vec_info.strided_stores): Rename to grouped_stores.
23827         (BB_VINFO_STRIDED_STORES): Rename to BB_VINFO_GROUPED_STORES.
23828         (STMT_VINFO_STRIDED_ACCESS): Rename to STMT_VINFO_GROUPED_ACCESS.
23829         (vect_strided_store_supported): Rename to vect_grouped_store_supported.
23830         (vect_strided_load_supported): Rename to vect_grouped_load_supported.
23831         (vect_transform_strided_load): Rename to vect_transform_grouped_load.
23832         (vect_record_strided_load_vectors): Rename to
23833         vect_record_grouped_load_vectors.
23834         * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
23835         Rename use of above macros.
23836         (vect_verify_datarefs_alignment): Ditto.
23837         (vector_alignment_reachable_p): Ditto.
23838         (vect_peeling_hash_get_lowest_cost): Ditto.
23839         (vect_enhance_data_refs_alignment): Ditto.
23840         (vect_analyze_group_access): Ditto and rename stride to groupsize.
23841         (vect_analyze_data_ref_access): Rename "strided" to "grouped".
23842         (vect_strided_store_supported): Rename to vect_grouped_store_supported.
23843         (vect_strided_load_supported): Rename to vect_grouped_load_supported.
23844         (vect_transform_strided_load): Rename to vect_transform_grouped_load.
23845         (vect_record_strided_load_vectors): Rename to
23846         vect_record_grouped_load_vectors.
23847         * tree-vect-loop.c (new_loop_vec_info): Rename use of above macros.
23848         (destroy_loop_vec_info): Ditto.
23849         (vect_transform_loop): Ditto and rename strided_store to grouped_store.
23850         * tree-vect-slp.c (vect_build_slp_tree): Rename use of above macros.
23851         (vect_analyze_slp): Ditto.
23852         (new_bb_vec_info): Ditto.
23853         (destroy_bb_vec_info): Ditto.
23854         (vect_schedule_slp_instance): Ditto and rename strided_store to
23855         grouped_store.
23856         * tree-vect-stmts.c (vect_cost_strided_group_size): Rename to
23857         vect_cost_group_size.
23858         (vect_model_store_cost): Rename use of above macros and call
23859         to vect_cost_strided_group_size.
23860         (vect_model_load_cost): Ditto.
23861         (vectorizable_store): Ditto, rename strided_store to grouped_store
23862         and calls to renamed tree-vectorizer.h functions.
23863         (vectorizable_load): Ditto.
23864         (vect_transform_stmt): Rename use of above macros and strided_store
23865         to grouped_store.
23867 2012-04-10  Jan Hubicka  <jh@suse.cz>
23869         * cgraph.h: Remove misledaing comment on ipa-ref.h.
23870         (symtab_type): New enum.
23871         (symtab_node): New structure.
23872         (cgraph_node, varpool_node): Add symbol base type.
23873         (cgraph, varpool): New accestor functions.
23874         * cgraph.c (cgraph_create_node_1): Set symbol type.
23875         * varpool.c (varpool_node): Set symbol type.
23877 2012-04-10  Ulrich Weigand  <ulrich.weigand@linaro.org>
23878             Richard Sandiford  <rdsandiford@googlemail.com>
23880         * fwprop.c (propagate_rtx): Also set PR_CAN_APPEAR for subregs.
23882 2012-04-10  Richard Guenther  <rguenther@suse.de>
23884         PR middle-end/52888
23885         * gimple-low.c (gimple_check_call_args): Properly account for
23886         compatible aggregate types.
23888 2012-04-10  Richard Guenther  <rguenther@suse.de>
23890         * toplev.h (tree_rest_of_compilation): Remove.
23891         * tree-optimize.c (tree_rest_of_compilation): Likewise.
23892         * cgraph.h (tree_rest_of_compilation): Declare.
23893         * tree-optimize.c (tree_rest_of_compilation): Move ...
23894         * cgraphunit.c (tree_rest_of_compilation): ... here.
23895         * cgraph.c (cgraph_add_new_function): Adjust.
23896         * Makefile.in (tree-optimize.o): Adjust.
23897         (cgraphunit.o): Likewise.
23899 2012-04-10  Ulrich Weigand  <ulrich.weigand@linaro.org>
23901         PR tree-optimization/52870
23902         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Verify that
23903         presumed pattern statement is within the same loop or basic block.
23905 2012-04-10  Tristan Gingold  <gingold@adacore.com>
23907         * gengtype.c (main): Make uintptr_t a known type.
23909 2012-04-10  Richard Guenther  <rguenther@suse.de>
23911         * tree-pass.h (tree_lowering_passes): Remove.
23912         * tree-optimize.c (tree_lowering_passes): Remove.
23913         * cgraph.c (cgraph_add_new_function): Inline relevant parts
23914         of tree_lowering_passes, avoid redundant call of early local passes.
23915         * cgraphunit.c (cgraph_lower_function): Fold into ...
23916         (cgraph_analyze_function): ... its single caller.  Inline
23917         relevant parts of tree_lowering_passes.
23919 2012-04-09  H.J. Lu  <hongjiu.lu@intel.com>
23921         PR other/52777
23922         * config/pa/pa.opt: Remove SIO and GNU_LD.
23924 2012-04-09  Jan Hubicka  <jh@suse.cz>
23926         PR lto/52722
23927         PR lto/51765
23928         PR lto/52634
23929         * lto-cgraph.c (compute_ltrans_boundary): When alias is in the
23930         boundary, add its target too.
23931         * lto.c (add_references_to_partition): Add also aliased nodes.
23932         (add_cgraph_node_to_partition,
23933         add_varpool_node_to_partition): Work on nodes, not functions/variables;
23934         when adding alias, add also the aliased object.
23936 2012-04-09  Uros Bizjak  <ubizjak@gmail.com>
23938         PR target/52883
23939         * config/i386/predicates.md (x86_64_zext_general_operand): Prevent
23940         VOIDmode immediate operands.
23941         * config/i386/constraints.md (Wz): New constraint.
23942         * config/i386/i386.md (*zero_extendsidi2_rex64): Use Wz instead of Z.
23944 2012-04-09  Eric Botcazou  <ebotcazou@adacore.com>
23946         PR target/52717
23947         * config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on
23948         the DECL generated for the special GOT helper.
23950 2012-04-09  Oleg Endo  <olegendo@gcc.gnu.org>
23952         * config/sh/constraints.md: Update list of constraints in
23953         comment block.
23954         (Sr0): Remove unused memory constraint.
23956 2012-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23958         * tree-pretty-print.h: Update comment.
23960 2012-04-08  Oleg Endo  <olegendo@gcc.gnu.org>
23962         * config/sh/sh.md: Use braced string notation where applicable.
23963         (*prefetch_i4, prefetch_m2a): Merge into ...
23964         (*prefetch): ... this new insn.
23966 2012-04-07  Oleg Endo  <olegendo@gcc.gnu.org>
23968         * config/sh/sh.h (high_life_started): Remove
23969         * config/sh/predicates.md (general_movdst_operand): Use
23970         'reload_in_progress' instead of 'high_life_started'.
23971         * config/sh/sh.md (divsi_inv_call, *divsi_inv_call_combine,
23972         divsi_inv_fp): Likewise.
23974 2012-04-07  Oleg Endo  <olegendo@gcc.gnu.org>
23976         * config/sh/sh-protos.h (prepare_move_operands): Return void
23977         instead of int.
23978         * config/sh/sh.c (prepare_move_operands): Likewise.
23979         * config/sh/sh.md: Remove return value checks of prepare_move_operands.
23981 2012-04-07  Oleg Endo  <olegendo@gcc.gnu.org>
23983         * config/sh/sh-protos.h (fp_int_operand, symbol_ref_operand,
23984         general_movsrc_operand, general_movdst_operand, arith_reg_operand,
23985         fp_arith_reg_operand, arith_operand, arith_reg_or_0_operand,
23986         logical_operand, fpscr_operand, fpul_operand, expand_fp_branch,
23987         commutative_float_operator, noncommutative_float_operator,
23988         sh_handle_pragma): Remove.
23990 2012-04-06  Sandra Loosemore  <sandra@codesourcery.com>
23992         * doc/invoke.texi:  Clean up Texinfo markup throughout the file.
23993         Use @option markup on command-line options.  Use @samp markup on
23994         literal keywords to options.  Use @code markup on code fragments.
23995         Use other markup in preference to quotation marks in the text.
23996         Add markup to some passages without any.
23998 2012-04-06  Mike Stump  <mikestump@comcast.net>
24000         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning.
24002 2012-04-06  Oleg Endo  <olegendo@gcc.gnu.org>
24004         * config/sh/sh.c (hi_const): Remove.
24005         (find_barrier, sh_reorg): Use satisfies_constraint_I16 instead
24006         of hi_const.
24008 2012-04-06  Oleg Endo  <olegendo@gcc.gnu.org>
24010         * config/sh/sh-protos.h (sh_expand_t_scc): Change return type from int
24011         to bool.
24012         * config/sh/sh.c (sh_expand_t_scc): Likewise.
24013         * config/sh/sh.md (cstoresi4, cstoredi4): Remove GET_CODE checks before
24014         calling sh_expand_t_scc.
24016 2012-04-06  Oleg Endo  <olegendo@gcc.gnu.org>
24018         * config/sh/sh-protos.h (fp_zero_operand, fp_one_operand,
24019         nonpic_symbol_mentioned_p, expand_block_move, expand_ashiftrt,
24020         sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext, system_reg_operand,
24021         reg_unused_after, sh_can_redirect_branch, sh_need_epilogue, fldi_ok,
24022         sh_hard_regno_rename_ok, sh_cfun_interrupt_handler_p,
24023         sh_cfun_resbank_handler_p, sh_attr_renesas_p, sh_cfun_attr_renesas_p,
24024         check_use_sfunc_addr, sh_contains_memref_p, sh_loads_bankedreg_p,
24025         sh2a_is_function_vector_call): Use bool as return type.
24026         (sh_pass_in_reg_p): Remove.
24027         * config/sh/sh.c (broken_move, mova_p, noncall_uses_reg, high_pressure,
24028         flow_dependent_p, sh2a_function_vector_p, expand_block_move,
24029         expand_ashiftrt, sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext,
24030         sh_need_epilogue, sh2a_is_function_vector_call, sh_attr_renesas_p,
24031         sh_cfun_attr_renesas_p, sh_cfun_interrupt_handler_p,
24032         sh_cfun_resbank_handler_p, system_reg_operand, fp_zero_operand,
24033         fp_one_operand, fldi_ok, reg_unused_after, sh_can_redirect_branch,
24034         sh_hard_regno_rename_ok, check_use_sfunc_addr, sh_contains_memref_p,
24035         sh_loads_bankedreg_p): Use bool as return type.
24036         (nonpic_symbol_mentioned_p): Use bool as return type.  Remove
24037         'register' modifier.
24039 2012-04-06  Matt Turner  <mattst88@gmail.com>
24041         * doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".
24043 2012-04-06  Eric Botcazou  <ebotcazou@adacore.com>
24045         * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member
24046         of the destination isn't also a FP_REGS register.
24048 2012-04-05  Teresa Johnson  <tejohnson@google.com>
24049             H.J. Lu  <hongjiu.lu@intel.com>
24051         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_LCP_STALL.
24052         * config/i386/i386.md (move immediate to memory peephole2):
24053         Add cases for HImode move when LCP stall avoidance is needed.
24054         * config/i386/i386.c (initial_ix86_tune_features): Initialize
24055         X86_TUNE_LCP_STALL entry.
24057 2012-04-05  Uros Bizjak  <ubizjak@gmail.com>
24059         PR target/52882
24060         * config/i386/i386.c (ix86_decompose_address): Allow VOIDmode
24061         CONST_INT operands, zero-extended with AND.
24063 2012-04-05  Oleg Endo  <olegendo@gcc.gnu.org>
24065         PR target/50751
24066         * config/sh/sh.c (sh_find_mov_disp_adjust): Take machine_mode as the
24067         first argument instead of mode size.  Move displacement calculations
24068         to ...
24069         (mov_insn_size, max_mov_insn_displacement, mov_insn_alignment_mask):
24070         ... these new functions.
24071         (disp_adjust): Remove max_mov_disp field.
24072         (sh_legitimate_index_p): Use max_mov_insn_displacement and
24073         mov_insn_alignment_mask.
24074         (sh_address_cost): Use max_mov_insn_displacement.
24076 2012-04-05  Andrew Stubbs  <ams@codesourcery.com>
24078         * config/arm/arm.md (arch): Add neon_onlya8 and neon_nota8.
24079         (arch_enabled): Handle new arch types.
24080         (one_cmpldi2): Add NEON support.
24082 2012-04-05  Richard Guenther  <rguenther@suse.de>
24084         * gimple.c (walk_gimple_op): Compute val_only for the LHS
24085         of an assigment in the canonical way, avoiding is_gimple_mem_rhs.
24086         (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): Move ...
24087         * gimplify.c (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
24088         ... here and make static.
24089         * gimple.h (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
24090         Remove.
24092 2012-04-05  Richard Guenther  <rguenther@suse.de>
24094         * tree-ssa-dse.c (dse_optimize_stmt): Remember the stmt
24095         basic-block before removing it.
24097 2012-04-05  Richard Guenther  <rguenther@suse.de>
24099         * tree-ssanames.c (release_dead_ssa_names): Compact the SSA
24100         version namespace as we release the freelist.
24102 2012-04-05  Richard Guenther  <rguenther@suse.de>
24104         * tree-nrv.c (tree_nrv): Release VDEFs.
24105         * tree-sra.c (sra_modify_constructor_assign): Likewise.
24106         (sra_modify_assign): Likewise.
24107         * tree-vect-stmts.c (vect_remove_stores): Likewise.
24108         * tree-vect-loop.c (vect_transform_loop): Likewise.
24109         * tree-ssa-dom.c (optimize_stmt): Likewise.
24110         * tree-vect-slp.c (vect_schedule_slp): Likewise.
24111         * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
24113 2012-04-05  Richard Guenther  <rguenther@suse.de>
24115         * gimple-iterator.c (gsi_remove): Return whether EH edges need to be
24116         cleanup.
24117         * gimple.h (gsi_remove): Adjust.
24118         * tree-ssa-operands.c (unlink_stmt_vdef): Optimize.
24119         * tree-ssa-dom.c (optimize_stmt): Use gsi_remove result.
24120         * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
24121         * tree-ssa-forwprop.c (remove_prop_source_from_use): Likewise.
24122         * tree-ssa-math-opts.c (execute_optimize_widening_mul): Likewise.
24123         * tree-ssa-pre.c (eliminate): Likewise.
24125 2012-04-04  Mike Stump  <mikestump@comcast.net>
24127         * doc/rtl.texi (const_double): Document as sign-extending.
24128         * expmed.c (expand_mult): Ensure we don't use shift incorrectly.
24129         * emit-rtl.c (immed_double_int_const): Refine to state the
24130         value is signed.
24131         * simplify-rtx.c (mode_signbit_p): Add a fixme for wider than
24132         CONST_DOUBLE integers.
24133         (simplify_const_unary_operation, UNSIGNED_FLOAT): Ensure no
24134         negative values are converted.  Fix conversions bigger than
24135         HOST_BITS_PER_WIDE_INT.
24136         (simplify_binary_operation_1): Ensure we don't use shift incorrectly.
24137         (simplify_immed_subreg): Sign-extend CONST_DOUBLEs.
24138         * explow.c (plus_constant_mode): Add.
24139         (plus_constant): Implement with plus_constant_mode.
24140         * rtl.h (plus_constant_mode): Add.
24142 2012-04-04  Richard Guenther  <rguenther@suse.de>
24144         PR tree-optimization/52808
24145         * tracer.c (tail_duplicate): Do not tail-duplicate loop header blocks.
24146         * Makefile.in (tracer.o): Depend on $(CFGLOOP_H).
24148 2012-04-04  Tristan Gingold  <gingold@adacore.com>
24150         * expr.c (expand_expr_real_2): Handle larger sizetype in
24151         POINTER_PLUS_EXPR.
24153 2012-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
24155         * config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only
24156         to m2a-single instead of m2e.
24158 2012-04-03  Eric Botcazou  <ebotcazou@adacore.com>
24160         * expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
24161         Change type of BITOFFSET to signed.  Make sure the lower bound of
24162         the computed range is non-negative by adjusting OFFSET and BITPOS.
24163         (expand_assignment): Adjust call to get_bit_range.
24165 2012-04-03  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
24167         * h8300/h8300.c (h8300_current_function_monitor_function_p):
24168         New function. Added to check monitor functions.
24169         (h8300_option_override): Modified to generate error/warning
24170         messages for invalid combinations of different command line
24171         options.
24172         * h8300/h8300.md: Generate 'rte' for monitor functions. Do not
24173         save EXR on stack for monitor function in case of H8S target
24174         when "-mno-exr" is passed.
24175         * h8300/h8300-protos.h (h8300_current_function_monitor_function_p):
24176         Add prototype.
24177         * doc/invoke.texi: Document H8S options.
24179 2012-04-03  Tristan Gingold  <gingold@adacore.com>
24181         * configure.ac: Use GCC_AC_FUNC_MMAP_BLACKLIST instead
24182         of gcc_AC_FUNC_MMAP_BLACKLIST.
24183         * acinclude.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Remove.
24184         * Makefile.in (aclocal_deps): Add mmap.m4.
24185         * configure: Regenerate.
24186         * aclocal.m4: Regenerate.
24188 2012-04-03  Richard Guenther  <rguenther@suse.de>
24190         PR tree-optimization/52808
24191         * tracer.c (tail_duplicate): Return whether we have duplicated
24192         any block.
24193         (tracer): If we have duplicated any block, cleanup the CFG.
24194         * cfghooks.c (duplicate_block): If we duplicated a loop
24195         header but not its loop, destroy the loop because it now has
24196         multiple entries.
24197         * tree-ssa-threadupdate.c (thread_through_loop_header): Tell
24198         the cfg manipulation routines we are not creating a multiple
24199         entry loop.
24201 2012-04-03  Tristan Gingold  <gingold@adacore.com>
24203         * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle
24204         'byte' alignment.
24205         (vms_c_common_override_options): Allow parameterless variadic
24206         functions.
24208 2012-04-03  Jakub Jelinek  <jakub@redhat.com>
24210         PR tree-optimization/52835
24211         * tree-data-ref.c (build_rdg): Return NULL if
24212         compute_data_dependences_for_loop failed.
24214 2012-04-03  Eric Botcazou  <ebotcazou@adacore.com>
24216         * varasm.c (initializer_constant_valid_for_bitfield_p): Return true
24217         for REAL_CST as well.
24218         (output_constructor): Use RECORD_OR_UNION_TYPE_P predicate.
24219         In the bitfield case, if the value is a REAL_CST, convert it first to
24220         an INTEGER_CST.
24222 2012-04-02  H.J. Lu  <hongjiu.lu@intel.com>
24224         * config.gcc: Use i386/biarchx32.h instead of i386/biarch64.h
24225         for --with-abi={x32|mx32} or --with-multilib-list=mx32.
24226         (supported_defaults): Add abi for i[34567]86-*-* and x86_64-*-*.
24228         * config/i386/biarchx32.h: New.
24230 2012-04-02  Anatoly Sokolov  <aesok@post.ru>
24232         * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Remove.
24233         * config/arm/arm.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
24234         (arm_preferred_reload_class): New function.
24236 2012-04-02  Richard Guenther  <rguenther@suse.de>
24238         PR tree-optimization/52756
24239         * tree-ssa-threadupdate.c (def_split_header_continue_p): New function.
24240         (thread_through_loop_header): After threading through the loop latch
24241         remove the split part from the loop and clear further threading
24242         opportunities that would create a multiple entry loop.
24244 2012-04-02  Richard Guenther  <rguenther@suse.de>
24246         PR rtl-optimization/52800
24247         * cprop.c (execute_rtl_cprop): Call cleanup_cfg with
24248         CLEANUP_CFG_CHANGED.
24250 2012-04-02  Richard Guenther  <rguenther@suse.de>
24252         PR middle-end/52803
24253         * loop-init.c (gate_handle_loop2): Destroy loops here if
24254         we don't enter RTL loop optimizers.
24256 2012-04-02  Uros Bizjak  <ubizjak@gmail.com>
24258         Partially revert:
24259         2012-03-29  Richard Guenther  <rguenther@suse.de>
24261         * rtl.h (extended_count): Remove.
24262         * combine.c (extended_count): Remove.
24264 2012-04-02  Dodji Seketeli  <dodji@redhat.com>
24266         PR c++/40942
24267         * pt.c (more_specialized_fn):  Don't apply decay conversion to
24268         types of function parameters.
24270 2012-04-02  Tristan Gingold  <gingold@adacore.com>
24272         * ggc-page.c (PAGE_L1_SIZE, PAGE_L2_SIZE, LOOKUP_L1, LOOKUP_L2)
24273         (ggc_allocated_p, lookup_page_table_entry, set_page_table_entry)
24274         (alloc_page, init_ggc, clear_marks, struct ggc_pch_data)
24275         (ggc_pch_this_base): Use uintptr_t instead of size_t.
24277 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
24279         PR bootstrap/52784
24280         * config/i386/i386.c (ix86_option_override_internal): Don't
24281         check TARGET_64BIT if TARGET_64BIT_DEFAULT is false.
24283 2012-03-31  Eric Botcazou  <ebotcazou@adacore.com>
24285         * tree-cfg.c (call_can_make_abnormal_goto): New predicate.
24286         (stmt_can_make_abnormal_goto): Use it.
24287         (is_ctrl_altering_stmt): Likewise.
24289 2012-03-30  Naveen H.S  <naveen.S@kpitcummins.com>
24290             Kaz Kojima  <kkojima@gcc.gnu.org>
24292         * config/sh/sh.c (push_regs): Skip banked registers when
24293         resbank attribute is specified.
24294         (sh_expand_epilogue): Likewise.
24296 2012-03-30  Richard Henderson  <rth@redhat.com>
24298         PR debug/52727
24299         * combine-stack-adj.c (prev_active_insn_bb): New.
24300         (next_active_insn_bb): New.
24301         (force_move_args_size_note): New.
24302         (combine_stack_adjustments_for_block): Use it.
24304 2012-03-30  Richard Henderson  <rth@redhat.com>
24306         * config/i386/i386.c (struct expand_vec_perm_d): Add one_operand_p.
24307         (ix86_expand_vector_init_duplicate): Initialize it.
24308         (expand_vec_perm_palignr): Likewise.
24309         (ix86_expand_vec_perm_const): Likewise.
24310         (ix86_vectorize_vec_perm_const_ok): Likewise.
24311         (expand_vec_perm_blend): Use it.
24312         (expand_vec_perm_vpermil): Likewise.
24313         (expand_vec_perm_pshufb): Likewise.
24314         (expand_vec_perm_1): Likewise.
24315         (expand_vec_perm_pshuflw_pshufhw): Likewise.
24316         (expand_vec_perm_interleave2): Likewise.
24317         (expand_vec_perm_vpermq_perm_1): Likewise.
24318         (expand_vec_perm_vperm2f128): Likewise.
24319         (expand_vec_perm_interleave3): Likewise.
24320         (expand_vec_perm_vperm2f128_vblend): Likewise.
24321         (expand_vec_perm_vpshufb2_vpermq): Likewise.
24322         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise,.
24323         (expand_vec_perm_broadcast): Likewise.
24324         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
24326 2012-03-30  Richard Henderson  <rth@redhat.com>
24328         * dwarf2out.c (gen_variable_die): Initialize off.
24330 2012-03-30  Tristan Gingold  <gingold@adacore.com>
24332         * config/vms/vms-f.c: New file.
24333         * config/vms/t-vms (vms-f.o): New rule.
24334         * config.gcc (*-*-*vms*): Define fortran_target_objs.
24336 2012-03-30  Richard Guenther  <rguenther@suse.de>
24338         PR tree-optimization/52754
24339         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
24340         propagate arbitrary addresses into really plain dereferences.
24342 2012-03-30  Richard Guenther <rguenther@suse.de>
24344         PR middle-end/52772
24345         * except.c (emit_to_new_bb_before): Move loop updating ...
24346         (dw2_build_landing_pads): ... here.  Use a proper block for
24347         querying the loop father.
24349 2012-03-30  Tristan Gingold  <gingold@adacore.com>
24351         * config/ia64/ia64.c (ia64_section_type_flags): Remove
24352         common_object attribute handling.
24353         (SECTION_VMS_OVERLAY): Remove
24354         (ia64_vms_common_object_attribute): Replace abort with an assert.
24355         Do not set DECL_SECTION_NAME.
24356         (ia64_vms_output_aligned_decl_common): Handle common_object
24357         attribute.
24358         (ia64_vms_elf_asm_named_section): Remove.
24359         * config/ia64/vms.h (TARGET_ASM_NAMED_SECTION): Remove.
24361 2012-03-30  Richard Guenther  <rguenther@suse.de>
24363         PR middle-end/52786
24364         * double-int.c (rshift_double): Remove not needed cast.
24366 2012-03-30  Richard Guenther  <rguenther@suse.de>
24368         * tree-affine.h (print_aff): Remove.
24369         * tree-affine.c (print_aff): Make static.
24370         * tree-data-ref.h (access_matrix_get_index_for_parameter): Remove.
24371         (get_references_in_stmt): Likewise.
24372         (print_direction_vector): Likewise.
24373         (print_dir_vectors): Likewise.
24374         (print_dist_vectors): Likewise.
24375         (dump_subscript): Likewise.
24376         (dump_ddrs): Likewise.
24377         (dump_dist_dir_vectors): Likewise.
24378         (dump_data_references): Likewise.
24379         (dump_data_dependence_relation): Likewise.
24380         (dump_data_dependence_direction): Likewise.
24381         (dump_rdg_vertex): Likewise.
24382         (dump_rdg_component): Likewise.
24383         (debug_ddrs): Declare.
24384         (struct data_ref_loc_d): Move ...
24385         * tree-data-ref.c (struct data_ref_loc_d): ... here.
24386         (get_references_in_stmt): Make static.
24387         (dump_data_references): Likewise.
24388         (dump_subscript): Likewise.
24389         (print_direction_vector): Likewise.
24390         (print_dir_vectors): Likewise.
24391         (print_dist_vectors): Likewise.
24392         (dump_data_dependence_relation): Likewise.
24393         (dump_dist_dir_vectors): Likewise.
24394         (dump_ddrs): Likewise.
24395         (dump_rdg_vertex): Likewise.
24396         (dump_rdg_component): Likewise.
24397         (debug_ddrs): New function.
24398         (access_matrix_get_index_for_parameter): Remove.
24400 2012-03-30  Tristan Gingold  <gingold@adacore.com>
24402         * config/vms/vms.c (VMS_CRTL_FLOAT32): Rename.
24403         (VMS_CRTL_FLOAT64, VMS_CRTL_FLOAT64_VAXD): New.
24404         (VMS_CRTL_FLOAT128, VMS_CRTL_DPML, VMS_CRTL_NODMPL)
24405         (VMS_CRTL_32ONLY, VMS_CRTL_G_MASK, VMS_CRTL_G_NONE)
24406         (VMS_CRTL_GA, VMS_CRTL_GL, VMS_CRTL_FLOATV2): New.
24407         (vms_patch_builtins): Handle new flags
24408         * config/vms/vms-crtlmap.map: Completed using nm on
24409         c and math system libraries.
24410         * config/vms/make-crtlmap.awk: Handle any number of flags.
24412 2012-03-30  Martin Jambor  <mjambor@suse.cz>
24414         * tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there
24415         is a builtin_stack_save in a dominating BB.
24417 2012-03-29  Uros Bizjak  <ubizjak@gmail.com>
24419         * config/i386/sse.md (avx_h<plusminus_insn>v4df3): Fix results
24420         crossing 128bit lane boundary.
24422 2012-03-29  Vladimir Makarov  <vmakarov@redhat.com>
24424         * ira-color.c (setup_left_conflict_sizes_p): Process all
24425         conflicting objects.
24427 2012-03-29  Jakub Jelinek  <jakub@redhat.com>
24429         PR tree-optimization/52760
24430         * tree-vect-slp.c (vect_get_constant_vectors): Convert constant_p
24431         shift count for {L,R}{SHIFT,ROTATE}_EXPR to TREE_TYPE (vector_type).
24433 2012-03-29  Richard Guenther  <rguenther@suse.de>
24435         * cgraph.h (cgraph_materialize_all_clones): Remove.
24436         (reset_inline_failed): Likewise.
24437         * cgraphunit.c (cgraph_materialize_all_clones): Make static.
24438         * cgraphbuild.c (reset_inline_failed): Remove.
24439         * rtl.h (cse_main): Remove.
24440         (extended_count): Likewise.
24441         * cse.c (dump_class): Mark as DEBUG_FUNCTION.
24442         (cse_main): Make static.
24443         * combine.c (extended_count): Remove.
24444         (dump_combine_stats): Mark as DEBUG_FUNCTION.
24445         * basic-block.h (reorder_basic_blocks): Remove.
24446         * bb-reorder.c (reorder_basic_blocks): Make static.
24447         * Makefile.in (dse.o): Remove dse.h dependency.
24448         * dse.h: Remove.
24449         * dse.c (gate_dse): Remove.
24450         (clear_alias_mode_eq): Likewise.
24451         (clear_alias_mode_hash): Likewise.
24452         (dse_record_singleton_alias_set): Likewise.
24453         (dse_invalidate_singleton_alias_set): Likewise.
24455 2012-03-29  H.J. Lu  <hongjiu.lu@intel.com>
24457         * config/linux-android.h (ANDROID_STARTFILE_SPEC): Use
24458         crtbegin_so%O%s for -shared.
24459         (ANDROID_ENDFILE_SPEC): Use crtend_so%O%s for -shared.
24461 2012-03-29  Richard Guenther  <rguenther@suse.de>
24463         * tree-flow.h (struct pre_expr_d): Remove forward declaration.
24464         (add_to_value): Remove.
24465         (print_value_expressions): Likewise.
24466         * tree-ssa-pre.c (add_to_value): Make static.
24467         (print_value_expressions): Likewise.
24468         * gimple.h (gimple_adjust_this_by_delta): Remove.
24469         * gimple-fold.c (gimple_adjust_this_by_delta): Likewise.
24471 2012-03-29  Richard Guenther  <rguenther@suse.de>
24473         PR middle-end/50708
24474         * double-int.h (rshift_double): Remove.
24475         * double-int.c (lshift_double): Use absu_hwi to make count positive.
24476         (rshift_double): Make static, take unsigned count argument,
24477         remove handling of negative count argument.
24478         (double_int_rshift): Dispatch to lshift_double.
24480 2012-03-28  H.J. Lu  <hongjiu.lu@intel.com>
24482         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Add
24483         OPTION_MASK_ABI_64.
24485         * config/i386/gnu-user64.h (SPEC_64): Support TARGET_BI_ARCH == 2.
24486         (SPEC_X32): Likewise.
24487         (MULTILIB_DEFAULTS): Likewise.
24489         * config/i386/i386.c (isa_opts): Remove -m64.
24490         (ix86_target_string): Properly handle -m32/-m64/-mx32.
24491         (ix86_option_override_internal): Properly
24492         set OPTION_MASK_ISA_64BIT and OPTION_MASK_ISA_X32 as well as
24493         handle -m32, -m64 and -mx32.
24495         * config/i386/i386.h (TARGET_X32): Replace OPTION_ISA_X32
24496         with OPTION_ABI_X32.  Moved after TARGET_LP64.
24497         (TARGET_LP64): Changed to OPTION_ABI_64.
24499         * config/i386/i386.opt (m64): Replace ISA_64BIT with ABI_64.
24500         (mx32): Replace ISA_X32 with ABI_X32.
24502 2012-03-28  Eric Botcazou  <ebotcazou@adacore.com>
24504         * tree.c (tree_size) <VECTOR_CST>: New case.
24506 2012-03-28  Uros Bizjak  <ubizjak@gmail.com>
24508         * config/i386/i386.c (ix86_modes_tieable_p): Handle 32bit AVX modes.
24509         (ix86_expand_vector_move_misalign): Remove un-needed gen_lowpart calls.
24511 2012-03-28  Jakub Jelinek  <jakub@redhat.com>
24513         PR middle-end/52691
24514         * tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize
24515         __builtin_va_start to __builtin_next_arg if the latter is
24516         builtin_decl_explicit_p rather than when it is not.
24518         PR middle-end/52750
24519         * tree-vect-generic.c (vector_element): Perform multiplication
24520         for pos in bitsizetype type instead of idx type.
24522 2012-03-28  Richard Guenther  <rguenther@suse.de>
24524         * loop-init.c (loop_optimizer_init): If loops are preserved
24525         perform incremental initialization of required loop features.
24526         (loop_optimizer_finalize): If loops are to be preserved only
24527         clean up optional loop features.
24528         (rtl_loop_done): Forcefully free loops here.
24529         * cgraph.c (cgraph_release_function_body): Forcefully free loops.
24530         * cfgexpand.c (expand_gimple_cond): Properly add new basic-blocks
24531         to existing loops.
24532         (construct_init_block): Likewise.
24533         (construct_exit_block): Likewise.
24534         (gimple_expand_cfg): Clear LOOP_CLOSED_SSA loop state.  Cleanup
24535         the CFG after expanding.
24536         * cfgloop.c (verify_loop_structure): Calculate or verify dominators.
24537         If we needed to calculate them, free them afterwards.
24538         * tree-pass.h (PROP_loops): New define.
24539         * tree-ssa-loop.c (pass_tree_loop_init): Provide PROP_loops.
24540         * basic-block.h (CLEANUP_CFG_CHANGED): New.
24541         * cfgcleanup.c (merge_blocks_move): Protect loop latches.
24542         (cleanup_cfg): If we did something and have loops around, fix them up.
24543         * cse.c (rest_of_handle_cse_after_global_opts): Call cleanup_cfg
24544         with CLEANUP_CFG_CHANGED.
24545         * cfghooks.c (merge_blocks): If we merge a loop header into
24546         its predecessor, update the loop structure.
24547         (duplicate_block): If we copy a loop latch, adjust loop state
24548         to note we may have multiple latches.
24549         (delete_basic_block): Mark loops for fixup if we remove a loop.
24550         * cfganal.c (forwarder_block_p): Protect loop latches, headers
24551         and preheaders.
24552         * cfgrtl.c (rtl_can_merge_blocks): Protect loop latches.
24553         (cfg_layout_can_merge_blocks_p): Likewise.
24554         * cprop.c (bypass_block): If we create a loop with multiple
24555         entries, mark it for removal.
24556         * except.c (emit_to_new_bb_before): Add the new basic-block
24557         to existing loops.
24558         * tree-eh.c (lower_resx): Likewise.
24559         * omp-low.c (finalize_task_copyfn): Do not copy PROP_loops.
24560         (expand_omp_taskreg): Likewise.
24561         * tree-inline.c (initialize_cfun): Likewise.
24562         * tree-mudflap.c (add_bb_to_loop): Prototype.
24563         (mf_build_check_statement_for): Properly add new basic-blocks
24564         to existing loops.
24565         * tree-ssa-threadupdate.c (thread_block): Mark loops for fixup
24566         if we remove a loop.
24567         (thread_through_loop_header): Likewise.
24568         * trans-mem.c (tm_log_emit_save_or_restores): Properly add
24569         new basic-blocks to existing loops.
24570         (expand_transaction): Likewise.
24571         * Makefile.in (except.o): Add $(CFGLOOP_H).
24572         (expr.o): Likewise.
24573         (cgraph.o): Likewise.
24574         (cprop.o): Likewise.
24575         (cfgexpand.o): Likewise.
24576         (cfganal.o): Likewise.
24577         (trans-mem.o): Likewise.
24578         (tree-eh.o): Likewise.
24580 2012-03-28  Georg-Johann Lay  <avr@gjlay.de>
24582         PR target/52692
24583         * config/avr/avr.c (TARGET_BUILTIN_DECL): New define.
24584         (avr_builtin_decl): New static function.
24585         (struct avr_builtin_description, avr_bdesc): Move up.
24586         Add GTY marker. Add field fndecl. Remove redundant field id.
24587         (avr_init_builtins): Initialize avr_bdesc[ID].fndecl.
24588         (avr_expand_builtin): Code cleanup because .id is removed.
24590 2012-03-28  Georg-Johann Lay  <avr@gjlay.de>
24592         PR target/52737
24593         * config.gcc (tm_file): Remove avr/multilib.h.
24595         * doc/invoke.texi (AVR Options): Adjust documentation of -mtiny-stack.
24597         * config/avr/genmultilib.awk: Remove code to generate multilib.h.
24598         (BEGIN): Use -msp8 as multilib option instead of -mtiny-stack.
24599         * config/avr/t-avr: Remove generation of multilib.h.
24600         * config/avr/t-multilib: Regenerate.
24601         * config/avr/multilib.h: Remove.
24602         * config/avr/avr.opt (-msp8): New option.
24603         (avr_sp8): New variable.
24604         * config/avr/driver-avr.c (avr_device_to_sp8): New function.
24605         * config/avr/avr.h (AVR_HAVE_SPH): New define.
24606         (AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8.
24607         (avr_device_to_sp8): New prototype.
24608         (EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 }
24609         (DRIVER_SELF_SPECS): New define.
24610         * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
24611         __AVR_SP8__, __AVR_HAVE_SPH__.
24612         * config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of
24613         AVR_HAVE_8BIT_SP to decide if SP_H is present.
24614         (avr_file_start): Ditto.
24616 2012-03-28  Jakub Jelinek  <jakub@redhat.com>
24618         PR target/52736
24619         * config/i386/sse.md (sse2_loadlpd splitter): Use offset 0
24620         instead of 8 in adjust_address.
24622 2012-03-27  Aurelien Buhrig  <aurelien.buhrig.gcc@gmail.com>
24624         PR middle-end/51893
24625         * expmed.c (store_bit_field_1): Fix wordnum value for big-endian
24626         targets.
24628 2012-03-27  Oleg Endo  <olegendo@gcc.gnu.org>
24630         PR target/50751
24631         * config/sh/sh.c (sh_legitimize_address, sh_legitimize_reload_address):
24632         Rearrange conditional logic.  Move displacement address calculations
24633         to ...
24634         (sh_find_mov_disp_adjust): ... this new function.
24636 2012-03-27  H.J. Lu  <hongjiu.lu@intel.com>
24638         * config/arm/arm.opt (mapcs): Remove MaskExists.
24639         * config/cris/linux.opt (mno-gotplt): Likewise.
24640         * config/i386/i386.opt (mhard-float): Likewise.
24641         (msse4): Likewise.
24642         (mno-sse4): Likewise.
24643         * config/m68k/m68k.opt (mhard-float): Likewise.
24644         * config/mep/mep.op (mcop32): Likewise.
24645         * config/pa/pa-hpux.opt (msio): Likewise.
24646         * config/pa/pa64-hpux.opt (mgnu-ld): Likewise.
24647         * config/picochip/picochip.opt (mlittle): Likewise.
24648         * config/sh/sh.opt (mrenesas): Likewise.
24649         * config/sparc/long-double-switch.opt (mlong-double-128): Likewise.
24650         * config/sparc/sparc.opt (mhard-float): Likewise.
24651         * config/v850/v850.opt (mv850es): Likewise.
24652         * config/vax/vax.opt (mg-float): Likewise.
24654 2012-03-27  Martin Jambor  <mjambor@suse.cz>
24656         PR middle-end/52693
24657         * tree-sra.c (sra_modify_assign): Do not call
24658         load_assign_lhs_subreplacements when working with an unscalarizable
24659         region.
24661 2012-03-27  Uros Bizjak  <ubizjak@gmail.com>
24663         PR target/52698
24664         * config/i386/i386-protos.h (ix86_legitimize_reload_address):
24665         New prototype.
24666         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): New define.
24667         * config/i386/i386.c: Include reload.h.
24668         (ix86_legitimize_reload_address): New function.
24670 2012-03-27  H.J. Lu  <hongjiu.lu@intel.com>
24672         * opth-gen.awk: Allocated a bit for Mask and InverseMask if it
24673         hasn't been allocated.  Define a target macro for Mask and
24674         InverseMask if it hasn't been defined.  Remove MaskExists handling.
24676         * doc/options.texi: Remove MaskExists.
24678 2012-03-27  Chung-Lin Tang  <cltang@codesourcery.com>
24680         PR target/52667
24681         * config/sh/sh.c (find_barrier): Add equality check of last_got
24682         to avoid going above orig insn. Update comments.
24684 2012-03-27  Richard Guenther  <rguenther@suse.de>
24686         PR middle-end/52720
24687         * fold-const.c (try_move_mult_to_index): Handle &x.array more
24688         explicitely.
24690 2012-03-27  Eric Botcazou  <ebotcazou@adacore.com>
24692         * expmed.c (store_bit_field): Assert that BITREGION_START is a multiple
24693         of a unit before computing the offset in units.
24694         * expr.c (get_bit_range): Return the null range if the enclosing record
24695         is part of a larger bit field.
24697 2012-03-27  Tristan Gingold  <gingold@adacore.com>
24699         * config/ia64/vms.h (CASE_VECTOR_MODE): Define.
24700         * config/ia64/ia64.md: Remove mode in template.
24701         Sign extend operand in expand_simple_binop.
24702         * config/ia64/ia64.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use
24703         CASE_VECTOR_MODE instead of TARGET_ILP32.
24704         (ADDR_VEC_ALIGN): Make it depends on CASE_VECTOR_MODE.
24706 2012-03-26  Steven Bosscher  <steven@gcc.gnu.org>
24708         * varasm.c (assemble_external): #if 0 out the new assert from the
24709         previous commit, it breaks the Java and Go front ends.
24711 2012-03-26  Steven Bosscher  <steven@gcc.gnu.org>
24713         * toplev.c (check_global_declaration_1): Do not call assemble_external.
24714         * expr.c (emit_block_move_libcall_fn): Likewise.
24715         (clear_storage_libcall_fn): Likewise.
24716         (expand_expr_addr_expr_1): Likewise.
24717         (expand_expr_real_1): Likewise.
24718         * calls.c (rtx_for_function_call): Likewise.
24720         * varasm.c (assemble_external): Assert this function is only called
24721         during or after expanding to RTL.
24723 2012-03-26  Martin Jambor  <mjambor@suse.cz>
24725         PR tree-optimization/50052
24726         * tree-sra.c (tree_non_aligned_mem_p): Removed.
24727         (tree_non_aligned_mem_for_access_p): Likewise.
24728         (build_accesses_from_assign): Removed strict alignment requirements
24729         checks.
24730         (access_precludes_ipa_sra_p): Likewise.
24732 2012-03-26  Richard Guenther  <rguenther@suse.de>
24734         PR tree-optimization/52701
24735         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always
24736         compute and set the evolution part of PHI nodes.
24738 2012-03-26  Richard Guenther  <rguenther@suse.de>
24740         PR tree-optimization/52721
24741         * tree-vect-stmts.c (vect_init_vector): Handle scalars.
24743 2012-03-26  Ulrich Weigand  <ulrich.weigand@linaro.org>
24745         PR tree-optimization/52686
24746         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
24747         WIDEN_LSHIFT_EXPR.
24749 2012-03-26  Tristan Gingold  <gingold@adacore.com>
24751         * config/alpha/vms.h (LINK_SPEC): Simplify.
24752         (STARTFILE_SPEC): Remove -mvms-return-codes handling.
24753         (NAME__MAIN, SYMBOL__MAIN): Remove.
24754         (VMS_DEBUG_MAIN_POINTER): Remove.
24755         * config/ia64/vms.h: Likewise.
24756         * config/alpha/alpha.c (alpha_start_function): Move vms_debug_main
24757         code to vms.c.  Call vms_start_function.
24758         * config/ia64/ia64.c (ia64_start_function): Likewise.
24759         * config/vms/vms-protos.h (vms_start_function): Declare.
24760         * config/vms/vms.c (vms_start_function): New function.
24761         * config/vms/vms.h (MATH_LIBRARY): Define.
24762         (VMS_DEBUG_MAIN_POINTER): Define.
24764 2012-03-26  Eric Botcazou  <ebotcazou@adacore.com>
24766         PR rtl-optimization/52629
24767         * reload1.c (count_pseudo): Short-circuit common case.
24768         (count_spilled_pseudo): Return early for pseudos without hard regs.
24769         Assert that the pseudo has got a hard reg before manipulating it.
24771 2012-03-24  Jan Hubicka  <jh@suse.cz>
24773         PR lto/51663
24774         * varpool.c (varpool_finalize_decl): Handle toplevel_reorder here.
24775         (decide_is_variable_needed): Do not handle toplevel reorder here.
24776         * cgraph.h (varpool_can_remove_if_no_refs): Likewise.
24777         * ipa.c (cgraph_remove_unreachable_nodes): Remove unreachable vars
24778         even at -O0.
24780 2012-03-24  Eric Botcazou  <ebotcazou@adacore.com>
24782         * expr.c (optimize_bitfield_assignment_op) <BIT_IOR_EXPR>: Use str_mode
24783         and str_bitsize instead of more convoluted expressions.
24785 2012-03-24  Eric Botcazou  <ebotcazou@adacore.com>
24787         PR target/52610
24788         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon.
24790 2012-03-24  Eric Botcazou  <ebotcazou@adacore.com>
24792         PR target/52656
24793         * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Fix pasto.
24795 2012-03-23  Martin Jambor  <mjambor@suse.cz>
24797         * tree-sra.c (build_accesses_from_assign): Remove FIXME comment.
24799 2012-03-23  Richard Guenther  <rguenther@suse.de>
24801         PR tree-optimization/52678
24802         * tree-vectorizer.h (struct _stmt_vec_info): Add
24803         loop_phi_evolution_part member.
24804         (STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define.
24805         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize
24806         STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
24807         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
24808         Use the cached evolution part and the PHI nodes value from
24809         the loop preheader edge instead of re-analyzing the evolution.
24811 2012-03-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
24813         * config/mips/mips-tables.opt: Update.
24814         * config/mips/mips.md (processor): Add xlp.
24815         * config/mips/mips-cpus.def: Add xlp.
24816         * config/mips/mips.c (mips_rtx_cost_data): Add costs for XLP, copy from
24817         5KF for now.
24818         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle xlp.
24819         * doc/invoke.texi: Mention XLP.
24821 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
24823         PR middle-end/52547
24824         * tree-nested.c (convert_tramp_reference_stmt): Call declare_vars
24825         on any new_local_var_chain vars declared during recursing on
24826         GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body.
24828 2012-03-22  Uros Bizjak  <ubizjak@gmail.com>
24830         * config/alpha/alpha.h (ASM_OUTPUT_ALIGN): Move to config/alpha/elf.h
24831         (ASM_OUTPUT_SKIP): Move to config/alpha/vms.h
24832         (ASM_OUTPUT_LOCAL): Ditto.
24833         (ASM_OUTPUT_COMMON): Remove.
24834         * config/alpha/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Use ASM_OUTPUT_DEF.
24835         * config/alpha/vms.h (ASM_OUTPUT_ALIGN): Do not undefine before define.
24837 2012-03-22  Jan Hubicka  <jh@suse.cz>
24839         PR middle-end/51737
24840         * cgraph.c (cgraph_remove_node_and_inline_clones): Add FORBIDDEN_NODE
24841         parameter.
24842         * cgraph.h (cgraph_remove_node_and_inline_clones): Update prototype.
24843         * ipa-inline-transform.c (save_inline_function_body): Remove
24844         copied clone if needed.
24845         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Update.
24847 2012-03-22  Richard Guenther  <rguenther@suse.de>
24849         PR middle-end/52666
24850         * fold-const.c (fold_ternary_loc): Fix typo.
24852 2012-03-22  Georg-Johann Lay  <avr@gjlay.de>
24854         PR target/52496
24855         * config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER.
24856         (unspecv): Add UNSPECV_MEMORY_BARRIER.
24857         (cli_sei): Use unspec_volatile instead of unspec for memory barrier.
24858         (delay_cycles_1, delay_cycles_2): Ditto.
24859         (delay_cycles_3, delay_cycles_4): Ditto.
24860         (nopv, *nopv): Ditto.
24861         (sleep, *sleep): Ditto.
24862         (wdr, *wdr): Ditto.
24864 2012-03-22  Richard Guenther  <rguenther@suse.de>
24866         PR tree-optimization/52548
24867         * tree-ssa-pre.c (valid_in_sets): Remove handling of invalidation
24868         because of clobbers.
24869         (prune_clobbered_mems): New function.
24870         (compute_antic_aux): Use it to prune ANTIC_OUT.
24871         (compute_partial_antic_aux): Use it to prune PA_IN.
24872         (compute_avail): Only insert expressions into EXP_GEN that are not
24873         invalidated when translated up to the beginning of the block.
24875 2012-03-22  Richard Guenther  <rguenther@suse.de>
24877         PR tree-optimization/52638
24878         * tree-vect-stmts.c (vect_init_vector_1): New function, split
24879         out from ...
24880         (vect_init_vector): ... here.  Handle scalar vector inits.
24881         (vect_get_vec_def_for_operand): Adjust.
24882         (vectorizable_load): Likewise.
24884 2012-03-22  Uros Bizjak  <ubizjak@gmail.com>
24886         * config.gcc (alpha*-*-linux*): Add elfos.h to tm_file.
24887         (alpha*-*-freebsd*): Ditto.
24888         (alpha*-*-netbsd*): Ditto.
24889         (alpha*-*-openbsd*): Ditto.
24890         * config/alpha/elf.h (OBJECT_FORMAT_ELF): Remove.
24891         (DWARF2_DEBUGGING_INFO): Remove.
24892         (PREFERRED_DEBUGGING_TYPE): Remove.
24893         (ASM_FINAL_SPEC): Remove.
24894         (IDENT_ASM_OP): Remove.
24895         (ASM_OUTPUT_IDENT): Remove.
24896         (SKIP_ASM_OP): Remove.
24897         (ASM_OUTPUT_SKIP): Remove.
24898         (ALIGN_ASM_OP): Remove.
24899         (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
24900         (ASM_OUTPUT_CASE_LABEL): Remove.
24901         (ASM_OUTPUT_EXTERNAL_LIBCALL): Remove.
24902         (COMMON_ASM_OP): Remove.
24903         (ASM_OUTPUT_ALIGNED_COMMON): Remove.
24904         (ASCII_DATA_ASM_OP): Remove.
24905         (READONLY_DATA_SECTION_ASM_OP): Remove.
24906         (INIT_SECTION_ASM_OP): Remove.
24907         (FINI_SECTION_ASM_OP): Remove.
24908         (ASM_SECTION_START_OP): Remove.
24909         (ASM_OUTPUT_SECTION_START_FILE): Remove.
24910         (TARGET_ASM_NAMED_SECTION): Remove.
24911         (TARGET_ASM_SELECT_SECTION): Remove.
24912         (MAKE_DECL_ONE_ONLY): Remove.
24913         (TYPE_ASM_OP): Remove.
24914         (SIZE_ASM_OP): Remove.
24915         (ASM_WEAKEN_LABEL): Remove.
24916         (TYPE_OPERAND_FMT): Remove.
24917         (ASM_DECLARE_RESULT): Remove.
24918         (ASM_DECLARE_OBJECT_NAME): Remove.
24919         (ASM_FINISH_DECLARE_OBJECT): Remove.
24920         (ELF_ASCII_ESCAPES): Remove.
24921         (ELF_STRING_LIMIT): Remove.
24922         (STRING_ASM_OP): Remove.
24923         (ASM_OUTPUT_EXTERNAL): Remove.
24924         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Redefine to false.
24925         * config/alpha/alpha.h (PCC_BITFIELD_TYPE_MATTERS): Undefine
24926         before define.
24927         (ASM_DECLARE_FUNCTION_NAME): Ditto.
24928         (ASM_DECLARE_FUNCTION_SIZE): Ditto.
24929         (ASM_GENERATE_INTERNAL_LABEL): Ditto.
24930         (ASM_OUTPUT_SKIP): Ditto.
24931         (READONLY_DATA_SECTION_ASM_OP): Remove.
24932         (USER_LABEL_PREFIX): Remove.
24933         (ASM_OUTPUT_ASCII): Remove.
24934         (ASM_OUTPUT_CASE_LABEL): Remove.
24935         (NO_DOLLAR_IN_LABEL): Undefine.
24937 2012-03-22  Richard Guenther  <rguenther@suse.de>
24939         PR tree-optimization/52459
24940         * tree-ssa-pre.c (inhibit_phi_insertion): Do not inhibit
24941         PHI insertion for calls.
24943 2012-03-21  Steven Bosscher  <steven@gcc.gnu.org>
24945         * cse.c (invalidate_from_sets_and_clobbers, try_back_substitute_reg,
24946         find_sets_in_insn, canonicalize_insn): Split out from ...
24947         (cse_insn): ... here.
24948         (invalidate_from_clobbers): Take an insn instead of the pattern.
24950 2012-03-21  Oleg Endo  <olegendo@gcc.gnu.org>
24952         PR target/52479
24953         * config/sh/sh-protos.h (sh_fsca_df2int): Remove.
24954         * config/sh/sh.c (sh_fsca_df2int_rtx, sh_fsca_df2int): Remove.
24955         * config/sh/sh.md (sindf2, cosdf2): Remove.
24957 2012-03-21  Kaz Kojima  <kkojima@gcc.gnu.org>
24959         PR target/52642
24960         * config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of
24961         prologue for unwinder and profiler.
24963 2012-03-21  Andreas Tobler  <andreast@fgznet.ch>
24965         * configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*.
24966         Introduce emul_name to select the right linker emulation for
24967         powerpc64-*-freebsd*.
24968         * configure: Regenerate.
24969         * config.gcc: Add bits to support powerpc64-*-freebsd*.
24970         * config/rs6000/freebsd.h (POWERPC_FREEBSD): Define.
24971         * config/rs6000/freebsd64.h: New file.
24972         * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
24973         POWERPC_FREEBSD.
24974         (rs6000_savres_strategy): Likewise.
24975         (rs6000_savres_routine_name): Likewise.
24976         (rs6000_elf_file_end): Likewise.
24977         * config/rs6000/t-freebsd64: New file.
24978         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set the
24979         rs6000_current_abi for 64-bit FreeBSD to ABI_AIX.
24981         * config/rs6000/freebsd64.h: Remove duplicated entries from last
24982         commit.
24983         * config/rs6000/t-freebsd64: Likewise.
24985 2012-03-21  Georg-Johann Lay  <avr@gjlay.de>
24987         PR rtl-optimization/52543
24988         PR target/52461
24989         * config/avr/avr-protos.h (avr_load_lpm): New prototype.
24990         * config/avr/avr.c (avr_mode_dependent_address_p): New function.
24991         (TARGET_MODE_DEPENDENT_ADDRESS_P): New define.
24992         (avr_load_libgcc_p): Restrict to __flash loads.
24993         (avr_out_lpm): Only handle 1-byte loads from __flash.
24994         (avr_load_lpm): New function.
24995         (avr_find_unused_d_reg): Remove.
24996         (avr_out_lpm_no_lpmx): Remove.
24997         (adjust_insn_length): Handle ADJUST_LEN_LOAD_LPM.
24998         * config/avr/avr.md (unspec): Add UNSPEC_LPM.
24999         (load_<mode>_libgcc): Use UNSPEC_LPM instead of MEM.
25000         (load_<mode>, load_<mode>_clobber): New insns.
25001         (mov<mode>): For multi-byte move from non-generic
25002         16-bit address spaces: Expand to load_<mode> resp.
25003         load_<mode>_clobber.
25004         (load<mode>_libgcc): Remove expander.
25005         (split-lpmx): Remove split.
25007 2012-03-21  Richard Earnshaw  <rearnsha@arm.com>
25009         * neon.md (neon_vget_lanev2di): Use gen_lowpart and gen_highpart.
25010         * config/arm/neon.ml (Fixed_return_reg): Renamed to fixed_vector_reg.
25011         All callers changed.
25012         (Fixed_core_reg): New feature.
25013         (Vget_lane [sizes S64 and U64]): Add Fixed_core_reg.  Allow fmrrd in
25014         disassembly.
25015         * neon-testgen.ml: Handle Fixed_core_reg.
25017 2012-03-21  Andrew Stubbs  <ams@codesourcery.com>
25019         * config/arm/arm.c (thumb2_reorg): Add complete support
25020         for 16-bit instructions.
25021         * config/arm/thumb2.md: Delete obsolete flag-clobbering peepholes.
25023 2012-03-21  Richard Guenther  <rguenther@suse.de>
25025         PR tree-optimizer/52636
25026         * tree-vect-slp.c (vect_get_constant_vectors): Convert constants
25027         to the appropriate type.
25029 2012-03-21  Richard Guenther  <rguenther@suse.de>
25031         * Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H)
25032         dependencies.
25033         * cfgexpand.c (gimple_expand_cfg): Fold in pass_init_function,
25034         pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
25035         * passes.c (init_optimization_passes): Remove pass_init_function,
25036         pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
25037         * tree-pass.h (pass_init_function): Remove.
25038         (pass_jump): Remove.
25039         (pass_initial_value_sets): Remove.
25040         (pass_unshare_all_rtl): Remove.
25041         * integrate.c (pass_initial_value_sets): Remove.
25042         * emit-rtl.c (pass_unshare_all_rtl): Remove.
25043         * tree.h (init_function_for_compilation): Remove.
25044         * function.c (init_function_for_compilation): Remove.
25045         (pass_init_function): Remove.
25046         * cfgcleanup.c (rest_of_handle_jump): Remove.
25047         (pass_jump): Remove.
25049 2012-03-20  Jason Merrill  <jason@redhat.com>
25051         * tree-streamer-in.c (streamer_alloc_tree): Call
25052         ggc_alloc_zone_cleared_tree_node instead of
25053         ggc_alloc_zone_cleared_tree_node_stat.
25055 2012-03-20  Jonathan Wakely  <jwakely.gcc@gmail.com>
25057         * doc/extend.texi (Template Instantiation): Remove anachronisms.
25059 2012-03-20  Jakub Jelinek  <jakub@redhat.com>
25061         PR target/52607
25062         * config/i386/i386.c (expand_vec_perm_vperm2f128): New function.
25063         (ix86_expand_vec_perm_const_1): Call it.
25065         * config/i386/i386.c (vselect_insn): New variable.
25066         (init_vselect_insn): New function.
25067         (expand_vselect, expand_vselect_insn): Add testing_p argument.
25068         Call init_vselect_insn if vselect_insn is NULL.  Adjust
25069         PATTERN (vselect_insn), instead of creating a new insn each time,
25070         only emit a copy of it if not testing and recog has been successful.
25071         (expand_vec_perm_pshufb, expand_vec_perm_1,
25072         expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_broadcast_1): Adjust
25073         callers.
25075         PR target/52607
25076         * config/i386/i386.md ("isa" attribute): Add avx2 and noavx2.
25077         ("enabled" attribute): Handle avx2 and noavx2 isas.
25078         * config/i386/sse.md (avx2_vec_dupv8sf_1, avx2_pbroadcast<mode>_1):
25079         New insns.
25080         (vec_dup<mode>): Add avx2 =x,x alternative.
25081         (vec_dup<mode> splitter): Don't split if TARGET_AVX2.
25082         (*avx_vperm_broadcast_<mode>): Don't split V4DFmode if TARGET_AVX2.
25083         For TARGET_AVX2, V8SFmode and elt == 0 split into vbroadcastss.
25084         * config/i386/i386.c (expand_vec_perm_pshufb): Emit also vpermps
25085         for V8SFmode.
25086         (expand_vec_perm_1): For broadcasts, use avx2_pbroadcast<mode>_1
25087         if possible, handle also V8SFmode.
25089 2012-03-20  Richard Earnshaw  <rearnsha@arm.com>
25091         * arm/predicates.md (zero_operand, reg_or_zero_operand): New predicates.
25092         * arm/neon.md (neon_vceq<mode>, neon_vcge<mode>): Use
25093         reg_or_zero_operand predicate.
25094         (neon_vcle<mode>, neon_vclt<mode>): Use zero_operand predicate.
25096 2012-03-20  Jakub Jelinek  <jakub@redhat.com>
25098         * config/i386/i386.c (ix86_decompose_address) <case ZERO_EXTEND>:
25099         If operand isn't UNSPEC, return 0.
25101 2012-03-20  Richard Guenther  <rguenther@suse.de>
25103         * tree-pass.h (pass_rtl_eh): Remove.
25104         * except.c (gate_handle_eh): Likewise.
25105         (rest_of_handle_eh): Likewise.
25106         (pass_rtl_eh): Likewise.
25107         (finish_eh_generation): Export.
25108         * except.h (finish_eh_generation): Declare.
25109         * passes.c (init_optimization_passes): Remove pass_rtl_eh.
25110         * cfgexpand.c (gimple_expand_cfg): Call finish_eh_generation
25111         after expanding stack alignment.  Instead of compacting blocks
25112         call cleanup_cfg.
25114 2012-03-20  Richard Guenther  <rguenther@suse.de>
25116         * stor-layout.c (finish_bitfield_representative): Fallback
25117         to conservative maximum size if the padding up to the next
25118         field cannot be computed as a constant.
25119         (finish_bitfield_layout): If we cannot compute the distance
25120         between the start of the bitfield representative and the
25121         bitfield member start a new representative.
25122         * expr.c (get_bit_range): The distance between the start of
25123         the bitfield representative and the bitfield member is zero
25124         if the field offsets are not constants.
25126 2012-03-20  Tristan Gingold  <gingold@adacore.com>
25128         * tree.h (enum size_type_kind): Add stk_ prefix to constants,
25129         convert in lowercase.
25130         (sizetype_tab, sizetype, bitsizetype, ssizetype, sbitsizetype)
25131         (size_int, ssize_int, bitsize_int, sbitsize_int): Adjust.
25132         * stor-layout.c (sizetype_tab): Adjust.
25133         (initialize_sizetypes): Use SIZETYPE instead of SIZE_TYPE.
25134         * tree-streamer.c (preload_common_nodes): Use stk_type_kind_last
25135         instead of type_kind_last.
25136         * tree-scalar-evolution.c (interpret_rhs_expr): Use size_int
25137         instead of size_int_kind.
25138         * doc/tm.texi.in (Type Layout): Document SIZETYPE.
25139         * doc/tm.texi: Regenerate.
25140         * defaults.h (SIZETYPE): Provide a default value.
25141         * config/vms/vms.h (SIZE_TYPE): Define as "unsigned int".
25142         (SIZETYPE): Define.
25144 2012-03-20  Oleg Endo  <olegendo@gcc.gnu.org>
25146         * config/sh/sh.md: Use braced string notation where applicable.
25148 2012-03-19  Uros Bizjak  <ubizjak@gmail.com>
25150         * config/i386/i386.md (allocate_stack): Simplify.
25152 2012-03-19  Uros Bizjak  <ubizjak@gmail.com>
25154         * builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of
25155         copy_to_mode_reg (Pmode, ...).
25156         (expand_builtin_frame_address): Ditto.
25157         * expr.c (emit_block_move_via_libcall): Ditto.
25158         (set_storage_via_libcall): Ditto.
25160         * config/i386/i386.c (ix86_expand_movmem): Ditto.
25161         (ix86_expand_setmem): Ditto.
25162         (ix86_trampoline_init): DItto.
25163         * config/i386/i386.md (cmpstrnsi): Ditto.
25165 2012-03-19  Sandra Loosemore  <sandra@codesourcery.com>
25167         * config/sh/sh.opt (madjust-unroll): Mark as ignored/obsolete.
25168         * config/sh/sh.h (TARGET_OPT_DEFAULT): Don't use MASK_ADJUST_UNROLL.
25169         * doc/invoke.texi (Option Summary): Remove -madjust-unroll.
25170         (SH Options): Likewise.
25172 2012-03-19  Uros Bizjak  <ubizjak@gmail.com>
25174         * config/i386/i386.c (get_thread_pointer): Add tp_mode argument.
25175         Generate ZERO_EXTEND in place if GET_MODE (tp) != tp_mode.
25176         (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>: Always generate
25177         DImode UNSPEC_GOTNTPOFF references on TARGET_64BIT.
25178         (ix86_decompose_address): Allow zero extended UNSPEC_TP references.
25180         Revert:
25181         2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
25183         * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
25184         * config/i386/i386.c (ix86_decompose_address): Use
25185         TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
25186         (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
25187         thread pointer to a register.
25189         Revert:
25190         2012-03-10  H.J. Lu  <hongjiu.lu@intel.com>
25192         * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
25193         if Pmode != word_mode.
25194         (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
25195         Pmode == SImode for TARGET_X32.
25197         * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
25198         (tls_initial_exec_x32): Likewise.
25200 2012-03-19  Oleg Endo  <olegendo@gcc.gnu.org>
25202         PR target/50751
25203         * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, DISP_ADDR_P,
25204         DISP_ADDR_OFFSET): New macros.
25205         * config/sh/sh.c (sh_address_cost): Add SH2A special case.
25206         (sh_legitimate_index_p): Allow QImode displacements for non-SH2A.
25207         (sh_legitimize_address): Add QImode displacement handling.
25208         (sh_cannot_change_mode_class): Disallow GENERAL_REGS for SFmode
25209         vector subregs.
25210         (sh_secondary_reload): Add QImode displacement handling.
25211         * config/sh/predicates.md (movsrc_no_disp_mem_operand): New predicate.
25212         * config/sh/constraints.md (K04, Snd, Sdd): New constraints.
25213         * config/sh/sh.md (extendqisi2): Remove constraints from expander.
25214         (*extendqisi2_compact): Rename to *extendqisi2_compact_reg, restrict
25215         to register operands only.
25216         (*extendqisi2_compact_mem_disp, *extendqisi2_compact_snd): New insns.
25217         (extendqihi2): Change insn to expander.
25218         (*extendqihi2_compact_reg): New insn.
25219         (movqi_i, movqi): Replace with ...
25220         (movqi, *movqi_reg_reg, *movqi_store_mem_disp12,
25221         *movqi_load_mem_disp, *movqi_load_mem_disp): ... these.
25222         Add new peepholes for QImode displacement addressing.
25224 2012-03-19  Paolo Carlini  <paolo.carlini@oracle.com>
25226         PR c++/14710
25227         * doc/invoke.texi: Document -Wuseless-cast.
25229 2012-03-19  Eric Botcazou  <ebotcazou@adacore.com>
25231         * tree.def (REALPART_EXPR, IMAGPART_EXPR, VIEW_CONVERT_EXPR): Move.
25232         * tree.h (handled_component_p): Reorder cases.
25233         * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref): Do
25234         not initialize unsignedp.
25235         (loc_list_from_tree): Likewise.
25236         (fortran_common): Likewise.
25237         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
25239 2012-03-19  Uros Bizjak  <ubizjak@gmail.com>
25241         * config/i386/i386.c (ix86_expand_prologue) <CM_LARGE_PIC>: Use Pmode
25242         mode consistently.  Use ix86_gen_add3.  Assert that Pmode == DImode.
25243         (ix86_expand_split_stack_prologue): Use ix86_gen_add3.
25244         (ix86_split_long_move): Ditto.
25245         (legitimize_tls_address): Use ix86_gen_sub3.
25246         (construct_plt_address): Assert that Pmode == DImode.
25248 2012-03-18  Uros Bizjak  <ubizjak@gmail.com>
25250         * config/i386/i386.md: Remove empty predicates and/or constraints.
25251         * config/i386/sync.md: Ditto.
25252         * config/i386/sse.md: Ditto.
25253         * config/i386/mmx.md: Ditto.
25254         * config/i386/pentium.md: Ditto.
25255         * config/i386/athlon.md: Ditto.
25257 2012-03-16  Richard Guenther  <rguenther@suse.de>
25259         PR tree-optimization/52603
25260         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Clarify
25261         comment.
25263         Revert
25264         2012-03-14  Richard Guenther  <rguenther@suse.de>
25266         PR tree-optimization/52571
25267         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
25268         flag_section_anchors check ...
25269         (vect_can_force_dr_alignment_p): ... here.
25271 2012-03-16  Martin Jambor  <mjambor@suse.cz>
25273         * expr.c (expand_expr_real_1): Handle misaligned scalar reads from
25274         memory through MEM_REFs by calling extract_bit_field.
25276 2012-03-16  Richard Guenther  <rguenther@suse.de>
25278         * fold-const.c (native_interpret_expr): Also support POINTER_TYPE
25279         and REFERENCE_TYPE interpretations.
25280         (can_native_interpret_type_p): New function.
25281         (fold_ternary_loc): Use native encode/interpret to fold
25282         BIT_FIELD_REFs of constants.
25284 2012-03-16  Richard Guenther  <rguenther@suse.de>
25286         PR middle-end/52584
25287         * fold-const.c (fold_ternary_loc): Fold vector typed BIT_FIELD_REFs
25288         of vector constants and constructors.
25290 2012-03-16  Richard Guenther  <rguenther@suse.de>
25292         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
25293         VIEW_CONVERT_EXPR to convert constants.
25294         (vect_is_simple_use): Treat all constants as vec_constant_def.
25296 2012-03-16  Richard Guenther  <rguenther@suse.de>
25297             Kai Tietz  <ktietz@redhat.com>
25299         PR middle-end/48814
25300         * gimplify.c (gimplify_self_mod_expr): Evaluate postfix
25301         side-effects completely in the pre-queue and use a temporary
25302         for the result.
25304 2012-03-16  Richard Guenther  <rguenther@suse.de>
25306         * stor-layout.c (finish_bitfield_representative): Fall back
25307         to the conservative maximum size if we cannot compute the
25308         size of the tail padding.
25310 2012-03-16  Tristan Gingold  <gingold@adacore.com>
25312         * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
25313         __CRTL_VER and __VMS_VER.
25314         * config/vms/vms-protos.h: Declare vms_c_get_crtl_ver
25315         and vms_c_get_vms_ver.
25316         * config/vms/vms-c.c (vms_c_get_crtl_ver, vms_c_get_vms_ver): New
25317         functions.
25318         * config/alpha/vms.h (VMS_DEFAULT_CRTL_VER)
25319         (VMS_DEFAULT_VMS_VER): Define.
25320         * config/ia64/vms.h (VMS_DEFAULT_CRTL_VER)
25321         (VMS_DEFAULT_VMS_VER): Define.
25323 2012-03-16  Richard Guenther  <rguenther@suse.de>
25325         * tree-vect-loop.c (get_initial_def_for_induction): Use
25326         build_constructor directly.
25327         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
25328         build_vector_from_val.
25329         * tree.c (build_vector_from_val): Avoid creating a constructor
25330         first when we want a constant vector.
25332 2012-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25334         * doc/install.texi (Specific, *-*-solaris2*): Improve wording.
25336 2012-03-16  Richard Guenther  <rguenther@suse.de>
25338         * tree.h (TREE_VECTOR_CST_ELTS): Remove.
25339         (VECTOR_CST_NELTS, VECTOR_CST_ELTS, VECTOR_CST_ELT): New defines.
25340         (struct tree_vector): Remove elements member, add variable size
25341         elts array member.
25342         (build_vector_stat): Declare.
25343         (build_vector): Define in terms of build_vector_stat.
25344         * tree.c (build_vector): Rename to ...
25345         (build_vector_stat): ... this.  Take array of trees as parameter.
25346         (build_vector_from_ctor): Adjust.
25347         (integer_zerop, integer_onep, integer_all_onesp, iterative_hash_expr,
25348         initializer_zerop): Adjust.
25349         * cfgexpand.c (expand_debug_expr): Likewise.
25350         * expr.c (categorize_ctor_elements_1, expand_expr_real_1,
25351         const_vector_from_tree): Likewise.
25352         * fold-const.c (const_binop, operand_equal_p, native_encode_vector,
25353         native_interpret_vector, fold_unary_loc, vec_cst_ctor_to_array,
25354         fold_vec_perm, fold_binary_loc, fold_ternary_loc): Likewise.
25355         * tree-streamer-in.c (streamer_alloc_tree): Handle TS_VECTOR.
25356         (lto_input_ts_vector_tree_pointers): Adjust.
25357         * tree-streamer-out.c (streamer_write_tree_header): Handle TS_VECTOR.
25358         (write_ts_vector_tree_pointers): Adjust.
25359         * varasm.c (const_hash_1, compare_constant, copy_constant,
25360         output_constant): Adjust.
25361         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Adjust.
25362         * print-tree.c (print_node): Adjust.
25363         * tree-pretty-print.c (dump_generic_node): Adjust.
25364         * tree-vect-generic.c (uniform_vector_p, vector_element,
25365         lower_vec_perm): Adjust.
25366         * tree-vect-loop.c (get_initial_def_for_reduction): Adjust.
25367         * tree-vect-slp.c (vect_get_constant_vectors,
25368         vect_transform_slp_perm_load): Adjust.
25369         * tree-vect-stmts.c (vect_gen_perm_mask): Adjust.
25370         * expmed.c (make_tree): Adjust.
25371         * config/i386/i386.c (ix86_expand_builtin): Adjust.
25372         * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Adjust interface
25373         and implementation.
25374         (sparc_fold_builtin): Adjust.
25376 2012-03-16  Tristan Gingold  <gingold@adacore.com>
25378         * config.gcc (*-*-*vms*): Define use_gcc_stdint and tm_file.
25379         * config/vms/vms-stdint.h: New file.
25381 2012-03-16  Tristan Gingold  <gingold@adacore.com>
25383         * config.host (alpha64-dec-*vms*, alpha*-dec-*vms*)
25384         (ia64-hp-*vms*): Replaced by ...
25385         (*-*-*vms*): ... This new entry.
25387 2012-03-15  Jakub Jelinek  <jakub@redhat.com>
25389         PR target/52568
25390         * config/i386/i386.c (expand_vec_perm_vperm2f128_vblend): New function.
25391         (ix86_expand_vec_perm_const_1): Use it.
25393         PR target/52568
25394         * config/i386/sse.md (UNSPEC_VPERMDF): Remove.
25395         (avx2_permv4df): Remove.
25396         (avx2_permv4di): Macroize into...
25397         (avx2_perm<mode>): ... this using VI8F_256 iterator.
25398         (avx2_permv4di_1): Macroize into...
25399         (avx2_perm<mode>_1): ... this using VI8F_256 iterator.
25401 2012-03-15  Ulrich Weigand  <ulrich.weigand@linaro.org>
25403         * combine.c (apply_distributive_law): Do not distribute SUBREG.
25405 2012-03-15  Ira Rosen  <irar@il.ibm.com>
25406             Ulrich Weigand  <ulrich.weigand@linaro.org>
25408         * tree-vect-patterns.c (widened_name_p): Rename to ...
25409         (type_conversion_p): ... this.  Add new argument to determine
25410         if it's a promotion or demotion operation.  Check for
25411         CONVERT_EXPR_CODE_P instead of NOP_EXPR.
25412         (vect_recog_dot_prod_pattern): Call type_conversion_p instead
25413         widened_name_p.
25414         (vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern,
25415         vect_operation_fits_smaller_type, vect_recog_widen_shift_pattern):
25416         Likewise.
25417         (vect_recog_mixed_size_cond_pattern): Likewise and allow
25418         non-constant then and else clauses.
25420 2012-03-15  Ira Rosen  <irar@il.ibm.com>
25421             Ulrich Weigand  <ulrich.weigand@linaro.org>
25423         * tree-vectorizer.h (vect_pattern_recog): Add new argument.
25424         * tree-vect-loop.c (vect_analyze_loop_2): Update call to
25425         vect_pattern_recog.
25426         * tree-vect-patterns.c (widened_name_p): Pass basic block
25427         info to vect_is_simple_use.
25428         (vect_recog_dot_prod_pattern): Fail for basic blocks.
25429         (vect_recog_widen_sum_pattern): Likewise.
25430         (vect_handle_widen_op_by_const): Support basic blocks.
25431         (vect_operation_fits_smaller_type,
25432         vect_recog_over_widening_pattern): Likewise.
25433         (vect_recog_vector_vector_shift_pattern): Support basic blocks.
25434         Update call to vect_is_simple_use.
25435         (vect_recog_mixed_size_cond_pattern): Support basic blocks.
25436         Add printing.
25437         (check_bool_pattern): Add an argument, update call to
25438         vect_is_simple_use and the recursive calls.
25439         (vect_recog_bool_pattern): Update relevant function calls.
25440         Add printing.
25441         (vect_mark_pattern_stmts): Update calls to new_stmt_vec_info.
25442         (vect_pattern_recog_1): Check for reduction only in loops.
25443         (vect_pattern_recog): Add new argument.  Support basic blocks.
25444         * tree-vect-stmts.c (vectorizable_conversion): Pass basic block
25445         info to vect_is_simple_use_1.
25446         * tree-vect-slp.c (vect_get_and_check_slp_defs): Support basic blocks.
25447         (vect_slp_analyze_bb_1): Call vect_pattern_recog.
25449 2012-03-15  Jakub Jelinek  <jakub@redhat.com>
25450             Andrew Pinski  <apinski@cavium.com>
25452         PR middle-end/52592
25453         * builtins.c (expand_builtin_int_roundingfn_2): If expanding
25454         BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}*
25455         calls instead of __builtin_ir{int,ound}*.
25457 2012-03-15  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
25459         * doc/sourcebuild.texi (cleanup-modules, keep-modules): Update
25460         documentation.
25462 2012-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
25464         * config.gcc (target_type_format_char): New. Document it. Set it for
25465         arm*-*-* .
25466         * configure.ac (gnu_unique_option): Use target_type_format_char
25467         in test.  Comment rationale.
25468         * configure: Regenerate .
25470 2012-03-15  Jakub Jelinek  <jakub@redhat.com>
25472         PR tree-optimization/52267
25473         * tree-vrp.c (masked_increment): New function.
25474         (register_edge_assert_for_2): Derive ASSERT_EXPRs
25475         from (X & CST1) cmp CST2 tests.
25477 2012-03-15  Richard Guenther  <rguenther@suse.de>
25479         PR middle-end/52580
25480         * tree-data-ref.c (subscript_dependence_tester_1): Check
25481         all dimensions for non-conflicting access functions.
25483 2012-03-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25485         PR c++/44783
25486         * doc/invoke.texi [C++ Language Options]: Document
25487         -ftemplate-backtrace-limit.
25489 2012-03-15  Tristan Gingold  <gingold@adacore.com>
25491         * c-parser.c (c_parser_parameter_declaration): Handle #pragma
25492         before a parameter.
25494 2012-03-15  Tristan Gingold  <gingold@adacore.com>
25496         * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to
25497         use DW_OP_call_frame_cfa.
25499 2012-03-14  H.J. Lu  <hongjiu.lu@intel.com>
25501         PR target/50797
25502         * config/i386/i386-opts.h (pmode): New.
25504         * config/i386/i386.c (ix86_option_override_internal): Properly
25505         check and set ix86_pmode.
25507         * config/i386/i386.h (Pmode): Check ix86_pmode instead of TARGET_64BIT.
25509         * config/i386/i386.opt (maddress-mode=): New.
25511         * doc/invoke.texi: Document -maddress-mode=short|long for x86.
25513 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25515         * dwarf2cfi.c (def_cfa_0): Remove MIPS_DEBUGGING_INFO handling.
25516         (dwarf2out_do_cfi_asm): Likewise.
25517         * dwarf2out.c (output_call_frame_info): Remove MIPS_DEBUGGING_INFO
25518         handling.
25519         (add_data_member_location_attribute): Likewise.
25520         (gen_array_type_die): Likewise.
25521         (gen_subprogram_die): Likewise.
25522         (gen_producer_string): Likewise.
25523         * sdbout.c (sdbout_begin_prologue): Declare unconditionally.
25524         Remove MIPS_DEBUGGING_INFO handling.
25525         (sdb_debug_hooks): Likewise.
25526         (sdbout_begin_block): Likewise.
25527         (sdbout_end_block): Likewise.
25528         (sdbout_begin_prologue): Likewise.
25529         (sdbout_start_source_file): Likewise.
25530         (sdbout_end_source_file): Likewise.
25531         (sdbout_init): Likewise.
25532         * system.h (MIPS_DEBUGGING_INFO): Poison.
25534 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25536         * config/alpha/alpha.c [HAVE_STAMP_H]: Remove.
25537         (alpha_file_start) [MS_STAMP]: Remove.
25539         * config/alpha/elf.h (TARGET_GAS): Remove.
25540         * config/alpha/freebsd.h (TARGET_DEFAULT): Remove.
25541         * config/alpha/linux.h (TARGET_DEFAULT): Remove.
25542         * config/alpha/netbsd.h (TARGET_DEFAULT): Remove.
25543         * config/alpha/vms.h (TARGET_DEFAULT): Remove.
25544         * config.gcc (alpha*-*-linux*): Remove target_cpu_default.
25545         (alpha*-*-freebsd*): Likewise.
25546         (alpha*-*-netbsd*): Likewise.
25547         (alpha*-*-openbsd*): Likewise.
25548         (alpha*-*-*): Remove target_cpu_default2.
25549         * config/alpha/alpha.c (alpha_output_filename): Remove !TARGET_GAS
25550         handling.
25551         * config/alpha/alpha.h (TARGET_AS_CAN_SUBTRACT_LABELS): Remove.
25552         (TARGET_AS_SLASH_BEFORE_SUFFIX): Remove.
25553         * config/alpha/alpha.c (print_operand): Always assume
25554         TARGET_AS_SLASH_BEFORE_SUFFIX.
25555         * config/alpha/alpha.md ("*builtin_setjmp_receiver_er_sl_1"):
25556         Remove TARGET_AS_CAN_SUBTRACT_LABELS.
25557         ("*builtin_setjmp_receiver_er_1"): Remove.
25558         * config/alpha/alpha.opt (malpha-as): Remove.
25559         (mgas): Ignore.
25560         * doc/invoke.texi (Option Summary, DEC Alpha Options): Remove
25561         -malpha-as, -mgas.
25562         Remove DEC Unix reference.
25564         * config/alpha/alpha.h (OBJECT_FORMAT_COFF): Remove.
25565         (EXTENDED_COFF): Remove.
25566         * config/alpha/elf.h (OBJECT_FORMAT_COFF): Don't undef.
25567         (EXTENDED_COFF): Don't undef.
25568         * config/alpha/alpha.c (alpha_file_start): Always assume
25569         OBJECT_FORMAT_ELF.
25570         Don't set targetm.asm_file_start_file_directive.
25571         [!OBJECT_FORMAT_ELF]: Remove.
25572         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
25574         * config/alpha/alpha.h (SDB_DEBUGGING_INFO): Remove.
25575         (DBX_DEBUGGING_INFO): Remove.
25576         (MIPS_DEBUGGING_INFO): Remove.
25577         (PREFERRED_DEBUGGING_TYPE): Remove.
25578         (DBX_OUTPUT_SOURCE_LINE): Remove.
25579         (SDB_OUTPUT_SOURCE_LINE): Remove.
25580         (DBX_CONTIN_LENGTH): Remove.
25581         (NO_DBX_FUNCTION_END): Remove.
25582         (ASM_STABS_OP): Remove.
25583         (ASM_STABN_OP): Remove.
25584         (ASM_STABD_OP): Remove.
25585         (SDB_ALLOW_FORWARD_REFERENCES): Remove.
25586         (SDB_ALLOW_UNKNOWN_REFERENCES): Remove.
25587         (PUT_SDB_DEF): Remove.
25588         (PUT_SDB_PLAIN_DEF): Remove.
25589         (PUT_SDB_TYPE): Remove.
25590         (sdb_label_count): Remove.
25591         (PUT_SDB_BLOCK_START): Remove.
25592         (PUT_SDB_BLOCK_END): Remove.
25593         (PUT_SDB_FUNCTION_START): Remove.
25594         (PUT_SDB_FUNCTION_END): Remove.
25595         (PUT_SDB_EPILOGUE_END): Remove.
25596         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Don't undef.
25597         (MIPS_DEBUGGING_INFO): Don't undef.
25598         (DBX_DEBUGGING_INFO): Don't undef.
25599         * config/alpha/vms.h (SDB_DEBUGGING_INFO): Don't undef.
25600         (MIPS_DEBUGGING_INFO): Don't undef.
25601         (DBX_DEBUGGING_INFO): Don't undef.
25602         * config/alpha/freebsd.h (DBX_CONTIN_CHAR): Remove.
25603         * config/alpha/alpha.c (alpha_option_override): Remove SDB_DEBUG
25604         handling.
25605         (alpha_start_function): Likewise.
25606         (sdb_label_count): Remove.
25607         (alpha_output_filename): Remove DBX_DEBUG handling.
25608         (alpha_file_start): Likewise.
25610 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25612         * config.gcc (enable_obsolete): Remove *-*-solaris2.8*.
25613         (*-*-solaris2.[0-8], *-*-solaris2.[0-8].*): Mark unsupported.
25614         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Remove
25615         Solaris 8 support.
25616         * configure.ac (gcc_cv_ld_hidden): Remove *-*-solaris2.8*.
25617         (ld_tls_support): Remove Solaris 8 references.
25618         (lwp_dir, lwp_spec): Remove support for alternate thread library.
25619         * acinclude.m4 (gcc_cv_initfini_array): Remove *-*-solaris2.* tests.
25620         * configure: Regenerate.
25621         * config.in: Regenerate.
25623         * config/sol2.h (LINK_SPEC): Remove LIB_THREAD_LDFLAGS_SPEC.
25624         * config/i386/sol2.h: Remove Solaris 8 references.
25626         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Rename to ...
25627         (i?86-*-solaris2.9): ... this.
25628         Remove Solaris 8 references.
25629         (Specific, *-*-solaris2*): Document Solaris 8 removal.
25630         Remove Solaris 8 references.
25632 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25634         * config.gcc (enable_obsolete): Remove mips-sgi-irix6.5.
25635         (mips-sgi-irix6.5*): Remove.
25636         * config.host (mips-sgi-irix*): Remove.
25637         * configure.ac (enable_fixed_point): Remove mips*-sgi-irix*.
25638         (set_have_as_tls): Remove *-*-irix6*.
25639         (gcc_cv_ld_static_dynamic): Remove mips-sgi-irix6*.
25640         * configure: Regenerate.
25642         * config/mips/iris6.h: Remove.
25643         * config/mips/iris6.opt: Remove.
25644         * config/mips/t-irix6: Remove.
25646         * config/mips/mips.h (TARGET_GPWORD): Remove IRIX 6 N64 handling.
25647         (TARGET_IRIX6): Remove.
25648         (TARGET_CPU_CPP_BUILTINS): Remove IRIX 6 handling.
25649         Don't define LANGUAGE_C, _LANGUAGE_C for Objective-C.
25650         * config/mips/mips.c (mips_build_builtin_va_list): Remove IRIX 6
25651         handling.
25652         (mips_file_start): Likewise.
25653         * config/mips/mips-protos.h (irix_asm_output_align): Remove.
25655         * config/mips/driver-native.c [__sgi__]: Remove.
25656         (host_detect_local_cpu) [__sgi__]: Remove.
25658         * config/mips/gnu-user.h: Remove iris5.h reference.
25660         * config/mips/mips-modes.def: Remove IRIX 6 reference.
25661         * config/mips/gnu-user64.h (MIPS_TFMODE_FORMAT): Remove.
25662         * config/mips/mips.c (mips_option_override) [MIPS_TFMODE_FORMAT]:
25663         Remove.
25665         * gcc.c (main): Move asm_debug initialization ...
25666         (asm_debug): ... here.
25668         * ginclude/stddef.h (__STDDEF_H__): Don't define.
25670         * defaults.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Remove.
25671         * system.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Poison.
25672         * collect2.c [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
25673         (main) [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
25674         [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES] (is_in_args): Remove.
25675         * doc/tm.texi.in (Driver, LINK_ELIMINATE_DUPLICATE_LDIRECTORIES):
25676         Remove.
25677         * doc/tm.texi: Regenerate.
25679         * doc/invoke.texi (Debugging Options, -gdwarf-<version>): Remove
25680         IRIX 6 reference.
25681         (MIPS Options, -march): Remove IRIX reference.
25682         * doc/install.texi (Binaries, SGI IRIX): Remove.
25683         (Specific, mips-sgi-irix6): Document IRIX 6.5 removal, remove rest
25684         of section.
25685         * doc/trouble.texi (Interoperation): Remove -lgl_s handling.
25687 2012-03-14  Martin Jambor  <mjambor@suse.cz>
25689         * expr.c (expand_assignment): Use expand_expr with EXPAND_WRITE
25690         when expanding MEM_REFs, MEM_TARGET_REFs and handled_component bases.
25691         (expand_expr_real_1): Do not handle misalignment if modifier is
25692         EXPAND_WRITE.
25694 2012-03-14  Richard Guenther  <rguenther@suse.de>
25696         PR middle-end/52584
25697         * tree-vect-generic.c (type_for_widest_vector_mode): Take
25698         element type instead of mode, use build_vector_type_for_mode
25699         instead of the langhook, build a vector of proper signedness.
25700         (expand_vector_operations_1): Adjust.
25702 2012-03-14  Richard Guenther  <rguenther@suse.de>
25704         PR middle-end/52582
25705         * gimple-fold.c (canonicalize_constructor_val): Make sure we have
25706         a cgraph node for a FUNCTION_DECL that comes from a constructor.
25707         (gimple_get_virt_method_for_binfo): Likewise.
25709 2012-03-14  Richard Guenther  <rguenther@suse.de>
25711         PR tree-optimization/52571
25712         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
25713         flag_section_anchors check ...
25714         (vect_can_force_dr_alignment_p): ... here.  Do not re-align
25715         DECL_COMMON variables.
25717 2012-03-14  Richard Guenther  <rguenther@suse.de>
25719         * tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define.
25720         * stor-layout.c (start_bitfield_representative): New function.
25721         (finish_bitfield_representative): Likewise.
25722         (finish_bitfield_layout): Likewise.
25723         (finish_record_layout): Call finish_bitfield_layout.
25724         * tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER
25725         for QUAL_UNION_TYPE fields.
25726         * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
25727         Stream DECL_BIT_FIELD_REPRESENTATIVE.
25728         * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
25730         PR middle-end/52080
25731         PR middle-end/52097
25732         PR middle-end/48124
25733         * expr.c (get_bit_range): Unconditionally extract bitrange
25734         from DECL_BIT_FIELD_REPRESENTATIVE.
25735         (expand_assignment): Adjust call to get_bit_range.
25737 2012-03-14  Richard Guenther  <rguenther@suse.de>
25739         PR middle-end/52578
25740         * fold-const.c (fold_unary_loc): Fold (T1)(T2)x to (T1)x if
25741         the outermost conversion is a sign-change only.
25742         (fold_binary_loc): Disregard widening and sign-changing
25743         conversions when we determine if two variables are equal
25744         for reassociation.
25745         * tree-ssa-forwprop.c (combine_conversions): Fold (T1)(T2)x to
25746         (T1)x if the outermost conversion is a sign-change only.
25748 2012-03-14  Uros Bizjak  <ubizjak@gmail.com>
25750         Revert:
25751         2012-03-14  Uros Bizjak  <ubizjak@gmail.com>
25753         * config/i386/predicates.md (constant_call_address_operand): Declare
25754         as special predicate.  Update all uses.
25756 2012-03-13  Jakub Jelinek  <jakub@redhat.com>
25758         PR c/52577
25759         * c-parser.c (c_parser_postfix_expression)
25760         <case RID_BUILTIN_SHUFFLE>: Call mark_exp_read on argument values.
25762         * config/i386/smmintrin.h: Avoid /* within a comment.
25763         * config/i386/nmmintrin.h: Likewise.
25765 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
25767         * config/i386/i386.md (xbegin): Remove constraint from expander.
25769 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
25771         * config/i386/predicates.md (constant_call_address_operand): Declare
25772         as special predicate.  Update all uses.
25773         * config/i386/i386.md: Remove mode from constant_call_address_operand
25774         predicates.
25775         * config/i386/i386.c (ix86_output_call_insn): Call
25776         constant_call_address_operand with VOIDmode.
25778 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
25780         * config/i386/i386.c (ix86_decompose_address): Handle subregs of
25781         AND zero extended address correctly.
25783 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
25785         * config/i386/predicates.md (tls_symbolic_operand): Declare as
25786         special predicate.
25787         (tls_modbase_operand): Ditto.
25788         * config/i386/i386.md: Remove mode from tls_symbolic_operand and
25789         tls_modbase_operand predicates.
25791 2012-03-13  Martin Jambor  <mjambor@suse.cz>
25793         * expr.c (expand_assignment): Handle misaligned scalar writes to
25794         memory through top-level MEM_REFs by calling store_bit_field.
25796 2012-03-13  Richard Guenther  <rguenther@suse.de>
25798         PR middle-end/52134
25799         * fold-const.c (fold_binary_loc): Fold (X * Y) & -(1 << CST) to X * Y
25800         if Y is a constant multiple of 1 << CST.
25802 2012-03-13  Georg-Johann Lay  <avr@gjlay.de>
25804         PR target/52488
25805         * config/avr/avr.c (avr_prologue_setup_frame): Cut down stack
25806         offset (size) to a value the insns can deal with.
25807         (expand_epilogue): Ditto.
25809 2012-03-13  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
25811         * config/arm/neon.ml (ops): Fixup expected instructions for
25812         unsigned vector compares.
25814 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
25816         * config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg)
25817         addresses only when %reg is not in word mode.
25819 2012-03-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25821         * config/microblaze/microblaze.md: Fix typo.
25822         * tree-if-conv.c: Likewise.
25823         * tree-vect-patterns.c: Likewise.
25825 2012-03-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25827         * config.gcc (extra_passes): Remove.
25828         * configure.ac (extra_passes): Don't substitute.
25829         * configure: Regenerate.
25830         * Makefile.in (EXTRA_PASSES): Remove.
25831         (GCC_PASSES): Remove $(EXTRA_PASSES).
25832         (MOSTLYCLEANFILES): Likewise.
25833         (native): Likewise.
25834         (install-common): Likewise.
25836 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
25838         * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
25839         * config/i386/i386.c (ix86_decompose_address): Use
25840         TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
25841         (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
25842         thread pointer to a register.
25844 2012-03-12  H.J. Lu  <hongjiu.lu@intel.com>
25846         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Remove :P
25847         on tls_symbolic_operand.
25848         (tls_global_dynamic_64_<mode>): Likewise.
25850 2012-03-12  Georg-Johann Lay  <avr@gjlay.de>
25852         PR other/52545
25853         * output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use
25854         SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE.
25856 2012-03-12  Georg-Johann Lay  <avr@gjlay.de>
25858         PR target/52499
25859         * config/avr/avr.c (avr_mode_code_base_reg_class): Change return
25860         type from reg_class_t to enum reg_class.
25861         * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
25863 2012-03-12  Andrew Pinski  <apinski@cavium.com>
25865         * tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function.
25866         (tree_ssa_phiopt_worker): Use single_non_singleton_phi_for_edges.
25867         (value_replacement): Likewise.
25868         (empty_block_p): Check also if the PHIs for the block are empty.
25870 2012-03-12  Georg-Johann Lay  <avr@gjlay.de>
25872         PR target/52148
25873         * config/avr/avr.c (avr_out_movmem): Fix typo in output template
25874         for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in
25875         r184615 from 2012-02-28.
25877 2012-03-12  H.J. Lu  <hongjiu.lu@intel.com>
25879         * config/i386/i386.c (ix86_gen_tls_global_dynamic_64): New.
25880         (ix86_gen_tls_local_dynamic_base_64): Likewise.
25881         (ix86_option_override_internal): Set ix86_gen_tls_global_dynamic_64
25882         and ix86_gen_tls_local_dynamic_base_64.
25883         (legitimize_tls_address): Use ix86_gen_tls_global_dynamic_64 and
25884         ix86_gen_tls_local_dynamic_base_64.
25886         * config/i386/i386.md (*tls_global_dynamic_64): Renamed to ...
25887         (*tls_global_dynamic_64_<mode>): This.
25888         (tls_global_dynamic_64): Renamed to ...
25889         (tls_global_dynamic_64_<mode>): This.
25890         (*tls_local_dynamic_base_64): Renamed to ...
25891         (*tls_local_dynamic_base_64_<mode>): This.
25892         (tls_local_dynamic_base_64): Renamed to ...
25893         (tls_local_dynamic_base_64_<mode>): This.
25895 2012-03-12  H.J. Lu  <hongjiu.lu@intel.com>
25897         * config/i386/i386.c (ix86_option_override_internal): Properly
25898         set ix86_gen_leave and ix86_gen_monitor.  Check Pmode == DImode,
25899         instead of TARGET_64BIT, to set ix86_gen_add3, ix86_gen_sub3,
25900         ix86_gen_one_cmpl2, ix86_gen_andsp, ix86_gen_allocate_stack_worker,
25901         ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
25903         * config/i386/sse.md (sse3_monitor64): Renamed to ...
25904         (sse3_monitor64_<mode>): This.
25906 2012-03-12  Tristan Gingold  <gingold@adacore.com>
25908         * config/ia64/ia64.c (ia64_function_arg_1): Move code around.
25909         (ia64_function_arg_advance): Ditto.
25911 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25913         * config.gcc (mips*-*-openbsd*): Remove.
25914         * config/mips/openbsd.h: Remove.
25915         * config/mips/sdb.h: Remove.
25917         * config/mips/mips.h (SDB_OUTPUT_SOURCE_LINE): Remove.
25918         * config/mips/mips.c (sdb_label_count): Remove.
25919         (mips_debugger_offset): Remove #if 0 code.
25920         (mips_output_function_prologue) [SDB_DEBUGGING_INFO]: Remove.
25921         * config/mips/sde.h (SDB_DEBUGGING_INFO): Don't undef.
25923 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25925         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Update
25926         binutils reference.
25927         (Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference.
25928         Update binutils references.
25929         (Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11.
25930         Update binutils reference.
25931         Update Sun as/GNU ld caveat.
25932         Document binutils largefile requirement for LTO plugin.
25933         Remove reference to alternate libpthread.
25935 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25937         * config.gcc (alpha*-dec-osf5.1*): Remove.
25938         * config.host (alpha*-dec-osf*): Remove.
25939         * configure.ac (*-*-osf*): Remove.
25940         (alpha*-dec-osf*): Remove.
25941         * configure: Regenerate.
25943         * config/alpha/host-osf.c, config/alpha/osf5.h, config/alpha/osf5.opt,
25944         config/alpha/va_list.h, config/alpha/x-osf: Remove.
25946         * config/alpha/alpha.h (TARGET_LD_BUGGY_LDGP): Remove.
25947         * config/alpha/alpha.c (struct machine_function): Update comment.
25948         (alpha_start_function): Remove Tru64 UNIX as handling for
25949         max_frame_size.
25950         * config/alpha/alpha.md ("exception_receiver"): Remove
25951         TARGET_LD_BUGGY_LDGP.
25952         ("*exception_receiver_2"): Likewise.
25953         * except.c (finish_eh_generation): Remove Tru64 reference.
25954         * ginclude/stdarg.h [_HIDDEN_VA_LIST]: Don't undef _VA_LIST.
25955         * system.h (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Poison.
25956         * target.def (handle_pragma_extern_prefix): Remove.
25958         * Makefile.in (mips-tfile.o-warn): Remove.
25959         (ALL_HOST_BACKEND_OBJS): Remove mips-tfile.o, mips-tdump.o.
25960         (mips-tfile, mips-tfile.o, mips-tdump, mips-tdump.o): Remove.
25961         * mips-tdump.c, mips-tfile.c: Remove.
25963         * doc/extend.texi (Symbol-Renaming Pragmas): Remove #pragma
25964         extern_prefix.
25965         * doc/install.texi (Binaries): Remove Tru64 UNIX reference.
25966         (Specific, alpha*-dec-osf5.1): Note removal.
25967         * doc/tm.texi.in (Misc, TARGET_HANDLE_PRAGMA_EXTERN_PREFIX):
25968         Remove.
25969         * doc/tm.texi: Regenerate.
25970         * doc/trouble.texi (Cross-Compiler Problems): Remove.
25972 2012-03-12  Richard Guenther  <rguenther@suse.de>
25974         * config/arm/arm.c (neon_dereference_pointer): Do not call
25975         covert during RTL expansion.
25977 2012-03-12  Tristan Gingold  <gingold@adacore.com>
25979         * doc/invoke.texi (VMS Options): Merge Alpha/VMS and IA-64/VMS
25980         Options.  Mention -mpointer-size.
25982 2012-03-12  Richard Guenther  <rguenther@suse.de>
25984         * config/alpha/alpha.c (alpha_gimplify_va_arg): Use
25985         build_nonstandard_integer_type.
25987 2012-03-12  Richard Guenther  <rguenther@suse.de>
25989         * tree.c (signed_or_unsigned_type_for): Use
25990         build_nonstandard_integer_type.
25991         (signed_type_for): Adjust documentation.
25992         (unsigned_type_for): Likewise.
25993         * tree-pretty-print.c (dump_generic_node): Use standard names
25994         for non-standard integer types if available.
25996 2012-03-12  Tristan Gingold  <gingold@adacore.com>
25998         * config/vms/vms.opt: Add vms-opts.h header.
25999         (mmalloc64): Use flag_vms_malloc64 flag instead of MALLOC64
26000         target mask.
26001         (-mvms-return-codes): Document.
26002         (-mpointer-size): New option.
26003         (vms_pointer_size): Add enumeration.
26004         * config/vms/vms-opts.h: New file.
26005         * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
26006         __INITIAL_POINTER_SIZE.
26007         (POINTER_SIZE, SIZE_TYPE, PTRDIFF_TYPE): Adjust definition.
26008         (C_COMMON_OVERRIDE_OPTIONS): Define.
26009         (DWARF2_ADDR_SIZE): Define.
26010         * config/vms/vms.c (vms_patch_builtins): Adjust condition.
26011         * config/vms/vms-protos.h (vms_c_common_override_options):
26012         New prototype.
26013         * config/vms/vms-c.c (vms_pragma_pointer_size): Ignore pragma
26014         if -mno-pointer-size.
26015         (vms_c_common_override_options): New function.
26016         * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
26017         * config/alpha/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
26018         (MALLOC_ABI_ALIGNMENT): Use flag_vms_malloc64
26019         and flag_vms_pointer_size.
26020         (MASK_RETURN_ADDR): Set according to flag_vms_pointer_size.
26021         * config.gcc (*-*-*vms*): Define xm_file.
26022         (alpha*-dec-*vms*): Do not define xm_file.
26023         (alpha64-dec-*vms*): Remove.
26024         (ia64-hp-*vms*): Do not define xm_file.  Simplify tm_file
26025         and tmake_file.
26027 2012-03-12  Jakub Jelinek  <jakub@redhat.com>
26029         PR tree-optimization/51721
26030         * tree-vrp.c (register_edge_assert_for_2): Add asserts for unsvar
26031         if (int) unsvar cmp CST.
26033 2012-03-12  Richard Guenther  <rguenther@suse.de>
26035         * tree-sra.c (create_access_replacement): Only rename the replacement
26036         if we can rewrite it into SSA form.  Properly mark register typed
26037         replacements that we cannot rewrite with TREE_ADDRESSABLE.
26038         * tree-cfg.c (verify_expr): Fix BIT_FIELD_REF verification
26039         for aggregate or BLKmode results.
26041 2012-03-12  Jakub Jelinek  <jakub@redhat.com>
26043         PR tree-optimization/52533
26044         * tree-vrp.c (register_edge_assert_for_2): Use double_int
26045         type for mask, only handle shifts by non-zero in-range
26046         shift count, for LE_EXPR and GT_EXPR if new_val is
26047         maximum, don't add the assertion.
26049 2012-02-12  Kirill Yukhin  <kirill.yukhin@intel.com>
26051         * doc/invoke.texi: Document -mrtm option.
26052         * common/config/i386/i386-common.c (OPTION_MASK_ISA_RTM_SET): New.
26053         (OPTION_MASK_ISA_RTM_UNSET): Ditto.
26054         (ix86_handle_option): Handle OPT_mrtm.
26055         * config.gcc (i[34567]86-*-*): Add rtmintrin.h and
26056         xtestintrin.h.
26057         (x86_64-*-*): Ditto.
26058         * i386-builtin-types.def (INT_FTYPE_VOID): New.
26059         * config/i386/i386-c.c (ix86_target_macros_internal): Define
26060         __RTM__ if needed.
26061         (ix86_target_string): Define -mrtm option.
26062         (PTA_RTM): New.
26063         (ix86_option_override_internal): Extend "corei7-avx" with RTM option.
26064         Handle new option.
26065         (ix86_valid_target_attribute_inner_p): Add OPT_mrtm.
26066         (ix86_builtins): Add IX86_BUILTIN_XBEGIN, IX86_BUILTIN_XEND,
26067         IX86_BUILTIN_XTEST.
26068         (bdesc_special_args): Ditto.
26069         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_XABORT.
26070         (ix86_expand_special_args_builtin): Handle new built-in type.
26071         (ix86_expand_builtin): Handle XABORT instruction.
26072         * config/i386/i386.h (TARGET_RTM): New.
26073         * config/i386/i386.md (UNSPECV_XBEGIN): New.
26074         (UNSPECV_XEND): Ditto.
26075         (UNSPECV_XABORT): Ditto.
26076         (UNSPECV_XTEST): Ditto.
26077         (xbegin): Ditto.
26078         (xbegin_1): Ditto.
26079         (xend): Ditto.
26080         (xabort): Ditto
26081         (xtest): Ditto.
26082         (xtest_1): Ditto.
26083         * config/i386/i386.opt (mrtm): New.
26084         * config/i386/immintrin.h: Include rtmintrin.h and xtestintrin.h.
26085         * config/i386/rtmintrin.h: New header.
26086         * config/i386/xtestintrin.h: Ditto.
26088 2012-03-12  Tristan Gingold  <gingold@adacore.com>
26090         * ginclude/stddef.h: Adjust previous patch.
26091         Use __VMS__ instead of VMS.
26093 2012-03-12  Uros Bizjak  <ubizjak@gmail.com>
26095         * config/i386/i386.md (setcc + movzbl to xor + setcc peephole2):
26096         Also convert sequences with CC setting arithmetic instruction.
26098 2012-03-11  Sandra Loosemore  <sandra@codesourcery.com>
26100         * doc/invoke.texi (Option Summary): Move -no-integrated-cpp
26101         from C Language Options to Preprocessor Options.
26102         (C Dialect Options): Move -no-integrated-cpp documentation
26103         from here...
26104         (Preprocessor Options): ...to here.  Rewrite the description
26105         so it makes more sense, and remove discussion of merging front ends.
26107 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
26109         * config/i386/i386.c (ix86_expand_movmem): Use word_mode for size
26110         needed for loop.
26111         (ix86_expand_setmem): Likewise.
26113 2012-03-11  Uros Bizjak  <ubizjak@gmail.com>
26115         * config/i386/i386.c (ix86_zero_extend_to_Pmode): Rewrite using
26116         convert_to_mode.
26118 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
26120         * config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if
26121         ptr_mode == SImode.  Replace DImode with Pmode or ptr_mode.
26123 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
26125         * config/i386/i386.c (x86_this_parameter): Replace DImode with Pmode.
26127 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
26129         * config/i386/i386.md (lwp_slwpcb): Check Pmode instead of
26130         TARGET_64BIT.
26132 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
26133             Uros Bizjak  <ubizjak@gmail.com>
26135         * config/i386/predicates.md (call_insn_operand): Allow
26136         constant_call_address_operand in Pmode only.
26137         (sibcall_insn_operand): Ditto.
26138         * config/i386/i386.md (*call): Use W mode iterator instead of P mode.
26139         (*call_vzeroupper): Ditto.
26140         (*sibcall): Ditto.
26141         (*sibcall_vzeroupper): Ditto.
26142         (*call_value): Ditto.
26143         (*call_value_vzeroupper): Ditto.
26144         (*sibcall_value): Ditto.
26145         (*sibcall_value_vzeroupper): Ditto.
26146         (*indirect_jump): Ditto.
26147         (*tablejump_1): Ditto.
26148         (indirect_jump): Convert memory address to word mode for TARGET_X32.
26149         (tablejump): Ditto.
26150         * config/i386/i386.c (ix86_expand_call): Convert indirect operands
26151         to word mode.
26153 2012-03-11  Oleg Endo  <olegendo@gcc.gnu.org>
26155         PR target/51244
26156         * config/sh/sh.md (movnegt): Expand into respective insns immediately.
26157         Use movrt_negc instead of negc pattern for non-SH2A.
26158         (*movnegt): Remove.
26159         (*movrt_negc, *negnegt, *movtt, *movt_qi): New insns and splits.
26161 2012-03-10  H.J. Lu  <hongjiu.lu@intel.com>
26163         * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
26164         if Pmode != word_mode.
26165         (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
26166         Pmode == SImode for TARGET_X32.
26168         * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
26169         (tls_initial_exec_x32): Likewise.
26171 2012-03-10  Chung-Lin Tang  <cltang@codesourcery.com>
26173         PR rtl-optimization/52528
26174         * combine.c (can_combine_p): Add setting of subst_low_luid
26175         before call to expand_field_assignment().
26177 2012-03-09  Sandra Loosemore  <sandra@codesourcery.com>
26179         * doc/invoke.texi: Use correct names/markup for "GCC", "GDB", "ld",
26180         and related program names.
26182 2012-03-09  Sandra Loosemore  <sandra@codesourcery.com>
26184         * doc/invoke.texi: Use correct names for "DWARF", "stabs", and "ELF".
26186 2012-03-09  Uros Bizjak  <ubizjak@gmail.com>
26188         PR target/52530
26189         * config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier.
26190         (ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback
26191         to set code to 'q'.
26192         * config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec.
26193         (*movdi_internal_rex64): Use %E operand modifier for lea.
26194         (*movsi_internal): Ditto.
26195         (*lea_1): Ditto.
26196         (*lea<mode>_2): Ditto.
26197         (*lea_{3,4,5,6}_zext): Ditto.
26198         (*tls_global_dynamic_32_gnu): Ditto.
26199         (*tls_global_dynamic_64): Ditto.
26200         (*tls_dynamic_gnu2_lea_32): Ditto.
26201         (*tls_dynamic_gnu2_lea_64): Ditto.
26202         (pro_epilogue_adjust_stack_<mode>_add): Ditto.
26204 2012-03-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
26206         * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
26207         redefine to be NULL if the current bit-size is different from the
26208         configured bit-size.
26210         * config/rs6000/rs6000.c (rs6000_option_override_internal): If the
26211         cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
26212         set the default tuning.  Add asserts to make sure the cpu and tune
26213         indexes are defined.  Fix tests for cpu/tune index to use >= 0 to
26214         test whether the index is set, instead of > 0.
26215         (rs6000_file_start): Do not reset the default cpu if the current
26216         bit-size is different from the configured bit-size.
26218 2012-03-09  Tristan Gingold  <gingold@adacore.com>
26220         * config/vms/vms-crtlmap.map: Add comments.
26221         Add entries needed to build Ada RTS.
26223 2012-03-09  Tristan Gingold  <gingold@adacore.com>
26225         * ginclude/stddef.h: Do not define __size_t on VMS.
26227 2012-03-09  Tristan Gingold  <gingold@adacore.com>
26229         * c-tree.h (c_default_pointer_mode): New variable.
26230         * c-decl.c (c_default_pointer_mode): New variable.
26231         (c_build_pointer_type): New function.
26232         (grokdeclarator): Call c_build_pointer_type instead
26233         of build_pointer_type.
26235         * config/vms/vms-c.c: Include c-tree.h
26236         (saved_pointer_mode): New variable.
26237         (handle_pragma_pointer_size): New function.
26238         (vms_pragma_pointer_size, vms_pragma_required_pointer_size): Likewise.
26239         (vms_c_register_pragma): Register __pointer_size and
26240         __required_pointer_size pragmas.
26242 2012-03-09  Tristan Gingold  <gingold@adacore.com>
26244         * config/vms/vms-c.c (vms_construct_include_filename): New function.
26245         (vms_c_register_includes): Reference it.
26247 2012-03-09  Andrew Pinski  <apinski@cavium.com>
26249         PR middle-end/51988
26250         * tree-ssa-phiopt.c: Include tree-pretty-print.h for
26251         print_generic_expr.
26252         (tree_ssa_phiopt_worker): Go through all the PHIs for
26253         value_replacement instead of just the singleton one.
26254         (value_replacement): Change return type to int.  Return 0 instead of
26255         false.
26256         Allow the middle basic block to contain more than just the defining
26257         statement.
26258         Handle non empty middle basic blocks.
26259         * Makefile.in (tree-ssa-phiopt.o): Add tree-pretty-print.h.
26261 2012-03-09  Jiangning Liu  <jiangning.liu@arm.com>
26263         * tree-scalar-evolution (interpret_rhs_expr): generate chrec for
26264         array reference and component reference.
26265         (analyze_scalar_evolution_for_address_of): New.
26267 2012-03-08  Jie Zhang  <jzhang918@gmail.com>
26269         PR target/49862
26270         * config/bfin/bfin.c (hwloop_optimize): Fix unused variable warnings.
26271         (hwloop_pattern_reg): Fix set but not used warning.
26272         (bfin_reorg_loops): Remove unused parameter.
26273         (bfin_reorg): Update use of bfin_reorg_loops.
26275 2012-03-08  H.J. Lu  <hongjiu.lu@intel.com>
26277         * config/i386/i386.c (setup_incoming_varargs_64): Use word_mode
26278         with integer parameters in registers.
26279         (gen_push): Push register in word_mode instead of Pmode.
26280         (ix86_emit_save_regs): Likewise.
26281         (ix86_emit_save_regs_using_mov): Save integer registers in word_mode.
26282         (gen_pop): Pop register in word_mode instead of Pmode.
26283         (ix86_emit_restore_regs_using_pop): Likewise.
26284         (ix86_expand_prologue): Replace Pmode with word_mode for push
26285         immediate.  Use ix86_gen_pro_epilogue_adjust_stack.  Save and
26286         restore RAX and R10 in word_mode.
26287         (ix86_emit_restore_regs_using_mov): Restore integer registers
26288         in word_mode.
26289         (ix86_expand_split_stack_prologue): Save R10_REG and restore in
26290         word_mode.
26291         (ix86_split_to_parts): Use word_mode with PUT_MODE for push.
26292         (ix86_split_long_move): Likewise.
26294         * config/i386/i386.md (W): New.
26295         (*push<mode>2_prologue): Replace :P with :W.
26296         (*pop<mode>1): Likewise.
26297         (*pop<mode>1_epilogue): Likewise.
26298         (push/pop peephole2): Use word_mode scratch registers.
26300 2012-03-08  Uros Bizjak  <ubizjak@gmail.com>
26302         * config/i386/predicates.md (indirect_branch_operand): Simplify.
26304 2012-03-08  Georg-Johann Lay  <avr@gjlay.de>
26306         * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
26307         for constants in [-63,63].
26309 2012-03-08  Uros Bizjak  <ubizjak@gmail.com>
26311         PR target/52530
26312         Revert:
26313         2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
26315         * config/i386/i386.c (ix86_print_operand_address): Only handle
26316         zero-extended DImode addresses.
26318 2012-03-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26320         * configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label.
26321         * configure: Regenerate.
26323 2012-03-08  Georg-Johann Lay  <avr@gjlay.de>
26325         PR target/52496
26326         * config/avr/avr.c (avr_mem_clobber): New static function.
26327         (avr_expand_delay_cycles): Add memory clobber operand to
26328         delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4.
26329         * config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER.
26330         (enable_interrupt, disable_interrupt): New expander.
26331         (nopv, sleep, wdr): New expanders.
26332         (delay_cycles_1): Add memory clobber.
26333         (delay_cycles_2): Add memory clobber.
26334         (delay_cycles_3): Add memory clobber.
26335         (delay_cycles_4): Add memory clobber.
26336         (cli_sei): New insn from former "enable_interrupt",
26337         "disable_interrupt" with memory clobber.
26338         (*wdt): New insn from former "wdt" with memory clobber.
26339         (*nopv): Similar, but for "nopv".
26340         (*sleep): Similar, but for "sleep".
26342 2012-03-07  Oleg Endo  <olegendo@gcc.gnu.org>
26343             Kaz Kojima  <kkojima@gcc.gnu.org>
26345         PR target/52503
26346         * config/sh/sh.opt (msoft-atomic): Use Var instead of Mask.
26347         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC.
26348         (SUBTARGET_OVERRIDE_OPTIONS): Define.
26350 2012-03-07  Uros Bizjak  <ubizjak@gmail.com>
26352         * config/i386/predicates.md (x86_64_zext_general_operand): New.
26353         * config/i386/i386.md (*zero_extendsidi2_rex64): Change operand 1
26354         predicate to x86_64_zext_general_operand.  Accept "Z" constraint.
26356 2012-03-07  Walter Lee  <walt@tilera.com>
26358         * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate
26359         REG_CFA_* notes for the stack pointer.
26360         (tilegx_expand_epilogue): Restore stack pointer by adjusting it by
26361         EH_RETURN_STACKADJ_RTX.
26362         * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't
26363         generate REG_CFA_* notes for the stack pointer.
26364         (tilepro_expand_epilogue): Restore stack pointer by adjusting it
26365         by EH_RETURN_STACKADJ_RTX.
26367 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
26369         * doc/invoke.texi (AVR Built-in Macros): Correct condition for
26370         when __AVR_3_BYTE_PC__ is defined.
26372 2012-03-07  Uros Bizjak  <ubizjak@gmail.com>
26374         * config/i386/i386.c (ix86_print_operand_punct_valid_p): Add '^'.
26375         (ix86_print_operand): Handle '^'.
26376         * config/i386/i386.md (*strmovdi_rex_1): Macroize memory operands
26377         using P mode iterator.  Add %^ to asm template to conditionally emit
26378         addr32 prefix.
26379         (*rep_movdi_rex64): Ditto.
26380         (*strsetdi_rex_1): Ditto.
26381         (*rep_stosdi_rex64): Ditto.
26382         (*strmov{si,hi,qi}_1): Add %^ to asm template to
26383         conditionally emit addr32 prefix.
26384         (*rep_mov{si,qi}): Ditto.
26385         (*strset{si,hi,qi}): Ditto.
26386         (*rep_stos{si,qi}): Ditto.
26387         (*cmpstrnqi_nz_1): Ditto.
26388         (*cmpstrnqi_1): Ditto.
26389         (*strlenqi_1): Ditto.
26391 2012-03-07  H.J. Lu  <hongjiu.lu@intel.com>
26393         * config/i386/i386.c (function_value_64): Return pointers in
26394         word_mode instead of Pmode.
26395         (ix86_promote_function_mode): Likewise.
26397 2012-03-07  Richard Guenther  <rguenther@suse.de>
26399         * coverage.c (get_gcov_type): Use type_for_mode.
26400         (get_gcov_unsigned_t): Likewise.
26401         * expr.c (store_constructor): Use type_for_mode.
26402         (try_casesi): Likewise.
26403         * tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size): Remove.
26404         (add_standard_iv_candidates): Use standard type trees.
26405         * dojump.c (do_jump): Remove dead code.
26407 2012-03-07  Richard Guenther  <rguenther@suse.de>
26409         * c-typeck.c (pointer_diff): Use c_common_type_for_size.
26411 2012-03-07  Richard Guenther  <rguenther@suse.de>
26413         * convert.c (strip_float_extensions): Move ...
26414         * tree.c (strip_float_extensions): ... here.
26416 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
26418         PR target/52484
26419         * config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.
26421 2012-03-07  Richard Guenther  <rguenther@suse.de>
26423         * omp-low.c (extract_omp_for_data): Use signed_type_for.
26424         (expand_omp_for_generic): Likewise.
26425         (expand_omp_for_static_nochunk): Likewise.
26426         (expand_omp_for_static_chunk): Likewise.
26427         * tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode.
26428         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
26429         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
26430         Use unsigned_type_for.
26431         (vect_create_cond_for_align_checks): Use signed_type_for.
26433 2012-03-07  Andrey Belevantsev  <abel@ispras.ru>
26435         PR rtl-optimization/52203
26436         * sel-sched.c (estimate_insn_cost): New parameter pempty.  Adjust
26437         all callers to pass NULL except ...
26438         (reset_sched_cycles_in_current_ebb): ... here, save the value
26439         in new variable 'empty'.  Increase issue_rate only for
26440         non-empty insns.
26442 2012-03-07  Ralf Corsépius  <ralf.corsepius@rtems.org>
26444         PR target/51417
26445         * Makefile.in: Let install-gcc-ar depend on installdirs,
26446         gcc-ar$(exeext), gcc-nm$(exeext), gcc-ranlib$(exeext).
26447         Don't double canonicalize if cross-compiling.
26449 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
26451         PR target/52506
26452         * config/avr/avr.c (expand_epilogue): Fix order of restoration
26453         to: RAMPZ, RAMPY, RAMPX, RAMPD.
26454         (expand_prologue): Only clear RAMPZ if it has effect on RAM-read.
26456 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
26458         PR target/52505
26459         * config/avr/avr.c (avr_out_xload): Don't read unintentionally
26460         from RAM.
26461         * config/avr/avr.md (xload_8): Adjust insn length.
26463 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
26465         PR target/52461
26466         * config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
26467         if RAMPZ affects reading from RAM.
26469 2012-03-07  Richard Guenther  <rguenther@suse.de>
26471         PR pch/52518
26472         PR pch/38987
26473         * doc/invoke.texi (Precompiled Headers): Remove sentence that
26474         suggests you can include PCHs from inside another header.
26476 2012-03-07  Richard Sandiford  <rdsandiford@googlemail.com>
26478         PR middle-end/52515
26479         * rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers.
26481 2012-03-07  Kai Tietz  <ktietz@redhat.com>
26483         * doc/invoke.texi (fwritable-relocated-rdata): Document
26484         new Cygwin/MinGW target option.
26485         * config/i386/winnt.c (i386_pe_unique_section): Ignore
26486         reloc if flag -fwritable-relocated-rdata is not set.
26487         (i386_pe_section_type_flags): Likewise.
26488         * config/i386/cygming.opt (fwritable-relocated-rdata):
26489         Add new flag variable flag_writable_rel_rdata.
26491 2012-03-07  Richard Guenther  <rguenther@suse.de>
26493         * tree-ssa-math-opts.c (convert_mult_to_widen): Check actual
26494         precision against gimple constraints.
26496 2012-03-06  Richard Sandiford  <rdsandiford@googlemail.com>
26498         PR middle-end/52372
26499         * rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as
26500         variables.
26501         (GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete.
26502         * emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New
26503         variables.
26504         (init_emit_regs): Move associated initialization to...
26505         (init_emit_once): ...here.
26507 2012-03-06  Richard Henderson  <rth@redhat.com>
26509         * config/m68k/m68k.h (ISA_HAS_TAS): New.
26510         * config/m68k/sync.md (atomic_test_and_set): Use it.
26511         (atomic_test_and_set_1): Likewise.
26513 2012-03-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
26515         PR target/50310
26516         * config/rs6000/vector.md (vector_uneq<mode>): Add support for
26517         UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
26518         (vector_ltgt<mode>): Likewise.
26519         (vector_ordered<mode>): Likewise.
26520         (vector_unordered<mode>): Likewise.
26521         * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
26523 2012-03-06  Aldy Hernandez  <aldyh@redhat.com>
26525         * trans-mem.c: New typedef for tm_region_p.
26526         Define vector types for tm_region_p.
26527         (tm_region_init): Replace region_worklist to a vector called
26528         bb_regions.
26530 2012-03-06  Richard Guenther  <rguenther@suse.de>
26532         * fold-const.c (build_fold_addr_expr_with_type_loc): Fold
26533         MEM_REF with constant pointer operand.
26535 2012-03-06  Richard Guenther  <rguenther@suse.de>
26537         PR middle-end/52493
26538         * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.
26540 2012-03-06  Tristan Gingold  <gingold@adacore.com>
26542         * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle octaword.
26543         (external_model_kind): Improve documentation.
26544         (vms_pragma_extern_model): Handle relaxed_redef.
26545         (vms_c_register_pragma): Allow expansion for nomember_alignment.
26547 2012-03-06  Georg-Johann Lay  <avr@gjlay.de>
26549         * doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
26550         Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc.
26551         Some more notes on EIND usage and reorder EIND subsection.
26553 2012-03-06  Tristan Gingold  <gingold@adacore.com>
26555         * config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
26556         * config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.
26558 2012-03-06  Tristan Gingold  <gingold@adacore.com>
26560         * config/vms/t-vmsnative (version): Define.
26561         * config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove.
26563 2012-03-06  Andrey Belevantsev  <abel@ispras.ru>
26565         PR rtl-optimization/52250
26566         * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
26567         to put note list into.  Unconditionally call move_bb_info.
26568         (move_bb_info): Do not assert the blocks being in the same region,
26569         just drop the note list if they are not.
26571 2012-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
26573         PR target/51244
26574         * config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case
26575         and use unified expansion logic.
26576         * config/sh/sh.md (xorsi3_movrt): Rename to movrt.  Move
26577         closer to the existing movt insn.
26578         (negc): Rename insn to *negc.  Add new expander.
26579         (movnegt): Use xor pattern for T bit negation.  Reserve helper
26580         constant for negc pattern.
26581         (*movnegt): New insn and splitter.
26583 2012-03-05  Bernd Schmidt  <bernds@codesourcery.com>
26585         * c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not
26586         PLUS_EXPR.
26588 2012-03-05  Richard Henderson  <rth@redhat.com>
26590         * genemit.c (main): Include "target.h" in insn-emit.c.
26591         * Makefile.in (insn-emit.o): Depend on TARGET_H.
26592         * config/sh/sync.md (atomic_test_and_set): Reference
26593         targetm.atomic_test_and_set_trueval instead of
26594         TARGET_ATOMIC_TEST_AND_SET_TRUEVAL.
26596 2012-03-05  Joern Rennecke  <joern.rennecke@embecosm.com>
26598         * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
26599         Make static.
26601 2012-03-05  Steven Bosscher  <steven@gcc.gnu.org>
26603         * langhooks.c (add_builtin_type): New function.
26604         * langhooks.h (add_builtin_type): Export it.
26605         * config/mep/mep.c (mep_init_builtins): Use it.
26606         * config/rs6000/rs6000.c (rs6000_init_builtins): Use it.
26608 2012-03-05  Jakub Jelinek  <jakub@redhat.com>
26610         PR debug/51902
26611         * tree.h (BLOCK_SAME_RANGE): Define.
26612         * function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE
26613         if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared.
26614         Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment
26615         isn't equal to supercontext fragment's fragment chain.
26616         Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's
26617         fragment origin.
26618         (blocks_nreverse_all): Likewise.
26619         (reorder_blocks_1): Compute BLOCK_SAME_RANGE bits.  Set
26620         BLOCK_SUPERCONTEXT to supercontext fragment instead of
26621         supercontext fragment's fragment origin.
26622         * dwarf2out.c (add_high_low_attributes): If stmt has the same
26623         range as its parent (or parents thereof etc.), use the parent's
26624         DW_AT_ranges value instead of creating a new .debug_ranges range.
26626 2012-03-05  Richard Henderson  <rth@redhat.com>
26628         PR tree-opt/52242
26629         Revert: 2011-11-26  Richard Henderson  <rth@redhat.com>
26630         * omp-low.c (expand_omp_atomic): Assume anything aligned to
26631         BIGGEST_ALIGNMENT is aligned.
26633 2012-03-05  Richard Henderson  <rth@redhat.com>
26635         * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
26636         * config/sh/sh.c: ... here.
26638 2012-03-05  Richard Henderson  <rth@redhat.com>
26640         PR target/52481
26641         * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
26642         instead of calling negqi2 directly.
26644 2012-03-05  Aldy Hernandez  <aldyh@redhat.com>
26646         PR middle-end/52463
26647         * trans-mem.c (tm_region_init): Use last_basic_block.
26649 2012-03-05  Oleg Endo  <olegendo@gcc.gnu.org>
26651         * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
26652         * config/sh/sync.md (atomic_test_and_set): New expander.
26653         (tasb, atomic_test_and_set_soft): New insns.
26654         * config/sh/sh.opt (menable-tas): New option.
26655         * doc/invoke.texi (SH Options): Document it.
26657 2012-03-05  Richard Guenther  <rguenther@suse.de>
26659         * cfgloop.c (verify_loop_structure): Verify dominators before
26660         using them.
26661         * graphite-clast-to-gimple.c (graphite_verify): Do not verify
26662         dominators from here.
26663         * graphite-scop-detection.c (create_sese_edges): Likewise.
26664         * loop-doloop.c (doloop_optimize_loops): Likewise.
26665         * loop-init.c (loop_optimizer_init): Likewise.
26666         * loop-unroll.c (unroll_and_peel_loops): Likewise.
26667         * loop-unswitch.c (unswitch_loops): Likewise.
26668         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
26669         * tree-parloops.c (parallelize_loops): Likewise.  Verify
26670         only when checking is enabled.
26671         * tree-loop-distribution.c (tree_loop_distribution): Likewise.
26673 2012-03-05  Bernd Schmidt  <bernds@codesourcery.com>
26675         * genautomata.c (parse_automata_opt): New static function.
26676         (initiate_automaton_gen): Remove all option handling code.  Remove
26677         argc argument.  All callers changed.
26678         (main): Call init_rtx_reader_args_cb with the new function as argument.
26680 2012-03-05  Richard Guenther  <rguenther@suse.de>
26682         * cfgexpand.c (gimple_expand_cfg): Free dominator info.
26683         * tree-if-conv.c (combine_blocks): Free post-dominator info
26684         after breaking it.
26685         * tree-parloops.c (create_parallel_loop): Free and re-compute
26686         dominator info after breaking it.
26688 2012-03-05  Richard Guenther  <rguenther@suse.de>
26690         PR middle-end/52353
26691         * optabs.h (trapv_unoptab_p): New function.
26692         (trapv_binoptab_p): Likewise.
26693         * optabs.c (expand_binop): Use emit_libcall_block_1 with
26694         a proper equiv_may_trap argument.
26695         (expand_unop): Likewise.
26696         (emit_libcall_block_1): Take extra argument whether the
26697         instruction may trap.  Renamed from ...
26698         (emit_libcall_block): ... this.  New wrapper.
26700 2012-03-05  Jakub Jelinek  <jakub@redhat.com>
26702         PR tree-optimization/51721
26703         * tree-vrp.c (register_edge_assert_for_2): If comparing
26704         lhs of right shift by constant with an integer constant,
26705         add ASSERT_EXPRs for the rhs1 of the right shift.
26707         * cfgrtl.c (cfg_layout_merge_blocks): Cleanup.
26709 2012-03-05  Richard Guenther  <rguenther@suse.de>
26711         * tree.c (integer_zerop): Handle VECTOR_CSTs.
26712         (integer_onep): Likewise.
26713         (integer_all_onesp): Likewise.
26715 2012-03-05  Georg-Johann Lay  <avr@gjlay.de>
26717         * config/avr/avr.md (*umaddqihi4.2): New insn-and-split.
26719 2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
26721         * config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
26722         instead of TARGET_64BIT.
26724 2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
26726         * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
26727         adjust_stack_insn.
26729 2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
26731         * config/i386/i386.c (ix86_print_operand_address): Only handle
26732         zero-extended DImode addresses.
26734 2012-03-04  Uros Bizjak  <ubizjak@gmail.com>
26736         * config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
26737         taken and cputaken as bool.
26739 2012-03-04  Uros Bizjak  <ubizjak@gmail.com>
26741         * config/i386/constraints.md (Ya): New internal constraint.
26742         * config/i386/i386.md (zero_extendsidi2): Remove expansion.
26743         (*zero_extendsidi2_rex64): Add x,x alternative.
26744         (*zero_extendsidi2): Ditto.  Add o,0 alternative.
26745         Remove flags reg clobber.  Adjust corresponding splits.
26746         (zero_extend<mode>si2): Macroize expander from zero_extendhisi2 and
26747         zero_extendqisi2 expanders using SWI12 mode iterator.
26748         (zero_extend<mode>si2_and): Macroize insn from
26749         zero_extendhisi2_and and zero_extendqisi2_and.  Merge corresponding
26750         splitters.
26751         (*zero_extend<mode>si2):  Macroize insn from
26752         *zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl.
26753         (*zero_extend*2_movzbl_and): Remove insn patterns.
26754         (zero_extendqihi2_and): Merge corresponding splitter.
26755         (*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl.
26756         (*zero_extend*2_movzbl_and): Remove insn patterns.
26757         (*anddi_1): Split TYPE_IMOVX instructions.
26758         (*andsi_1): Use Ya for alternative 2.  Split TYPE_IMOVX instructions.
26759         (*andhi_1): Ditto.
26760         (and->zext splitter): Add splitter pattern.
26761         (zero extend with andsi3 splitter): Adjust zero_extend pattern.
26763 2012-03-04  Sandra Loosemore  <sandra@codesourcery.com>
26765         * doc/invoke.texi (C++ Dialect Options): Minor copy-edits to
26766         x86-specific text.
26767         (Debugging Options): Likewise.
26768         (Optimize Options): Likewise.
26769         (i386 and x86-64 Options): Discuss -march before -mtune, consistently
26770         with other architectures.  Use official processor names with correct
26771         spelling/capitalization.  Fix formatting and grammar issues.
26772         (i386 and x86-64 Windows Options): Similar cleanup here.
26774 2012-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
26776         * config/sh/sh.md (abssi2): Add TARGET_SH1 condition.
26778 2012-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
26780         * config/sh/sh.c (sh_dwarf_register_span): Don't apply
26781         DBX_REGISTER_NUMBER.
26783 2012-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
26785         * config/sh/sh.c (shiftcosts): Return MAX_COST when the first
26786         operand is CONST_INT.  Take COSTS_N_INSNS into account.
26787         (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
26788         of shiftcosts.
26790 2012-03-02  Richard Henderson  <rth@redhat.com>
26792         * optabs.c (expand_atomic_test_and_set): Honor
26793         atomic_test_and_set_trueval even when atomic_test_and_set
26794         optab is not in use.
26796 2012-03-02  Kaz Kojima  <kkojima@gcc.gnu.org>
26798         PR target/48596
26799         PR target/48806
26800         * config/sh/sh.c (sh_register_move_cost): Increase cost between
26801         GENERAL_REGS and FP_REGS for SImode.
26803 2012-03-02  Oleg Endo  <olegendo@gcc.gnu.org>
26805         PR target/49486
26806         * config/sh/sh.md (negdi2): Add TARGET_SH1 condition.
26807         (absdi2): New expander.
26808         (*absdi2, *negabsdi2, negdi_cond): New insns and splits.
26810 2012-03-02  Oleg Endo  <olegendo@gcc.gnu.org>
26812         * config/sh/sync.md (atomic_exchange<mode>): New expander.
26813         (atomic_exchange<mode>_soft): New insn.
26815 2012-03-02  Oleg Endo  <olegendo@gcc.gnu.org>
26817         * config/sh/sync.md: Update copyright notice dates.
26818         (atomic_compare_and_swap<mode>): Use SImode for return value instead
26819         of QImode.
26820         (atomic_compare_and_swap<mode>_soft): Likewise.
26822 2012-03-02  Oleg Endo  <olegendo@gcc.gnu.org>
26824         PR target/31640
26825         * config/sh/sh.h (LOOP_ALIGN): Move logic to sh_loop_align.
26826         * config/sh/sh.c: Update copyright notice dates.
26827         (sh_loop_align): Add logic from LOOP_ALIGN.  Don't disable loop
26828         alignment for TARGET_HARD_SH4.
26829         (sh_option_override): Reduce default function alignment.  Set
26830         loop alignment to 4 bytes when not optimizing for size.
26832 2012-03-02  Maxim Kuvyrkov  <maxim@codesourcery.com>
26834         PR middle-end/50335
26835         * doc/invoke.texi (floop-flatten): Remove.
26836         * toplev.c (process_options): Remove references to flag_loop_flatten.
26837         * tree-ssa-loop.c (gate_graphite_transform): Same.
26838         * common.opt (floop-flatten): Obsolete.
26839         * graphite-poly.c (apply_poly_transforms): Remove reference to
26840         flag_loop_flatten.
26841         * Makefile.in (graphite-flattening.o): Remove.
26842         * graphite-flattening.c: Remove.
26844 2012-03-02  Uros Bizjak  <ubizjak@gmail.com>
26846         * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
26847         having mode compatible with the mode of previous compare.  Substitute
26848         compare mode of previous compare with the mode, compatible
26849         with eliminated and previous compare.
26851 2012-03-02  Peter Bergner  <bergner@vnet.ibm.com>
26853         * config/rs6000/dfp.md (floatdidd2): New define_insn.
26855 2012-03-02  Uros Bizjak  <ubizjak@gmail.com>
26857         * config/i386/i386.c (ix86_cc_modes_compatible): Declare CCZmode
26858         compatible with CCGOCmode and CCGCmode.
26860 2012-03-02  Peter Bergner  <bergner@vnet.ibm.com>
26862         * config/rs6000/vsx.md (vsx_set_<mode>): Reorder operands.
26864 2012-03-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
26866         * config/arm/arm.c (arm_sat_operator_match): New function.
26867         * config/arm/arm-protos.h (arm_sat_operator_match): Add prototype.
26868         * config/arm/arm.md ("insn" attribute): Add "sat" value.
26869         ("SAT", "SATrev"): New code iterators.
26870         ("SATlo", "SAThi"): New code iterator attributes.
26871         ("*satsi_<SAT:code>"): New pattern.
26872         ("*satsi_<SAT:code>_shift"): Likewise.
26873         * config/arm/arm-fixed.md ("arm_ssatsihi_shift"): Add "insn"
26874         and "shift" attributes.
26875         ("arm_usatsihi"): Add "insn" attribute.
26876         * config/arm/predicates.md (sat_shift_operator): Allow multiplication
26877         by powers of two.  Do not allow shift by 32.
26879 2012-03-02  Uros Bizjak  <ubizjak@gmail.com>
26881         PR target/46716
26882         * config/i386/i386.c (construct_container): Use gen_reg_or_parallel
26883         to pass the argument in the register of "natural" mode.
26885 2012-03-02  Richard Guenther  <rguenther@suse.de>
26887         PR tree-optimization/52406
26888         * tree-data-ref.h: Update documentation about DR_BASE_OBJECT.
26889         (struct indices): Add unconstrained_base member.
26890         (struct dr_alias): Remove unused vops member.
26891         (DR_UNCONSTRAINED_BASE): New define.
26892         * tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs
26893         add indices to allow their disambiguation.  Make DR_BASE_OBJECT
26894         be an artificial access that covers the whole indexed object,
26895         or mark it with DR_UNCONSTRAINED_BASE if we cannot do so.  Canonicalize
26896         plain decl base-objects to their MEM_REF variant.
26897         (dr_may_alias_p): When the base-object of either data reference
26898         has unknown size use only points-to information.
26899         (compute_affine_dependence): Make dumps easier to read and
26900         more verbose.
26901         * tree-vect-data-ref.c (vector_alignment_reachable_p): Use
26902         DR_REF when looking for packed references.
26903         (vect_supportable_dr_alignment): Likewise.
26905 2012-03-02  Greta Yorsh  <Greta.Yorsh@arm.com>
26907         * config/arm/arm-ldmstm.ml (write_ldm_commutative_peephole):
26908         Improve conditions for peepholes of loads followed by commutative
26909         operators.
26910         * config/arm/ldmstm.md: Regenerated.
26912 2012-03-02  Richard Guenther  <rguenther@suse.de>
26914         * BASE-VER: Set to 4.8.0.
26916 2012-03-01  Richard Earnshaw  <rearnsha@arm.com>
26918         * config.gcc (obsolete): Add all ARM targets using the FPA.
26919         (with_fpu): Obsolete selection of the FPA or Maverick on ARM.
26920         * doc/install.texi: Avoid references to obsolete ARM ports.
26922 2012-03-01  Joern Rennecke  <joern.rennecke@embecosm.com>
26924         * config/epiphany/epiphany.md (movmisalign<mode>): New patterns.
26926 2012-03-01  Jeremy Bennett  <jeremy.bennett@embecosm.com>
26927             Joern Rennecke  <joern.rennecke@embecosm.com>
26929         * doc/extend.texi: Expand and update information on interrupt
26930         attribute for Epiphany.
26932 2012-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
26934         * config/sh/sh-protos.h: Update copyright notice dates.
26935         * config/sh/sh.h: Likewise.
26936         * config/sh/sh.md: Likewise.
26937         * config/sh/constraints.md: Likewise.
26938         * config/sh/predicates.md: Likewise.
26940 2012-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
26942         * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead function.
26943         * config/sh/sh.c (tertiary_reload_operand): Likewise.
26945 2012-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
26947         * config/sh/constraints.md: Fix comment typo.
26949 2012-03-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26951         PR target/52408
26952         * config/pa/pa.md (zvdep_imm32): Change type of variable x from int to
26953         unsigned HOST_WIDE_INT.
26954         (zvdep_imm64): Likewise.
26955         (vdepi_ior): Change type of variable x from int to HOST_WIDE_INT.
26956         (vdepi_and): Likewise.
26957         Likewise for unamed 64-bit patterns.
26958         * config/pa/predicates.md (lhs_lshift_cint_operand): Update comment.
26960 2012-03-01  Alexandre Oliva  <aoliva@redhat.com>
26962         PR debug/52001
26963         PR rtl-optimization/52417
26964         * cselib.c (cselib_any_perm_equivs): New variable.
26965         (cselib_reset_table): Check that it's not set when not
26966         preserving constants.
26967         (cselib_add_permanent_equiv): Set it.
26968         (cselib_have_permanent_equivalences): New.
26969         (cselib_init, cselib_finish): Reset it.
26970         * cselib.h (cselib_have_permanent_equivalences): Declare.
26971         * alias.c (get_addr): Restore earlier behavior when there
26972         aren't permanent equivalences.
26974 2012-03-01  Steven Bosscher  <steven@gcc.gnu.org>
26976         * config/mn10300/mn10300-modes.def: Fix copyright notice.
26977         * config/v850/v850-modes.def: Fix copyright notice.
26979 2012-03-01  Georg-Johann Lay  <avr@gjlay.de>
26981         * doc/extend.texi (AVR Built-in Functions): Document
26982         __builtin_avr_flash_segment.
26984         * config/avr/builtins.def (__builtin_avr_flash_segment): New entry.
26985         * config/avr/avr.md (flash_segment, flash_segment1): New expanders.
26986         (*split.flash_segment): New insn-and-split.
26987         * config/avr/avr.c (avr_init_builtins): Add local variables:
26988         const_memx_void_node, const_memx_ptr_type_node,
26989         char_ftype_const_memx_ptr.
26991 2012-03-01  Jakub Jelinek  <jakub@redhat.com>
26993         PR tree-optimization/52445
26994         * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field,
26995         add ssa_name_ver, offset and size fields and change store field
26996         to bool.
26997         (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes.
26998         (add_or_mark_expr): Likewise.  Only consider previous stores
26999         with the same size and offset.
27000         (nt_init_block): Only look at gimple_assign_single_p stmts,
27001         doesn't look at rhs2.
27003 2012-03-01  Richard Guenther  <rguenther@suse.de>
27005         PR middle-end/52443
27006         * tree-cfg.c (verify_gimple_assign_unary): Allow any
27007         conversions from integral types to pointer types.
27009 2012-03-01  Georg-Johann Lay  <avr@gjlay.de>
27011         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in
27012         defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__
27013         unintentionally removed in r184616.
27015 2012-03-01  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
27017         * doc/invoke.texi: Document AMD bdver2 and remove mentioning
27018         3DNow from bdver1.
27020 2012-02-29  Jakub Jelinek  <jakub@redhat.com>
27021             Uros Bizjak  <ubizjak@gmail.com>
27023         PR target/52437
27024         * config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
27025         alternatives, add "e" constraint to the new last alternative
27026         and ! to last 3 alternatives.
27028 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
27030         * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and
27031         DW_AT_artificial attributes at the end of the processing.
27032         (gen_array_type_die): Likewise.
27033         (gen_enumeration_type_die): Likewise.
27034         (gen_struct_or_union_type_die): Likewise.
27035         (add_gnat_descriptive_type_attribute): Do not suppress debug info for
27036         the parent type.
27038 2012-02-29  Jakub Jelinek  <jakub@redhat.com>
27040         PR middle-end/52419
27041         * expr.c (expand_assignment): If doing misaligned store that doesn't
27042         cover all mode bits, perform a RMW cycle.
27044         PR tree-optimization/52429
27045         * tree-parloops.c (separate_decls_in_region_debug): Return early
27046         if var is LABEL_DECL.
27048 2012-02-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27050         PR tree-optimization/52424
27051         * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before
27052         calling dom_thread_across_edge.
27054 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
27056         * config/avr/avr.c: Move definition of TARGET macros to end of file.
27058 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
27060         * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
27061         * config/avr/avr.c (avr_output_bld): Remove unused function.
27062         (avr_out_sbxx_branch): Use "%T" to print bit position.
27064 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
27066         * config/avr/avr.md: Untabify.
27068 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
27070         * config/avr/avr.md (eqne): New code iterator.
27071         (*dec-and-branchsi): Use it in text peephole's condition.
27072         (*dec-and-branchhi): Ditto.
27073         (*dec-and-branchqi): Ditto.
27075 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
27077         PR target/49939
27078         * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
27079         the device does not have the skip-bug.
27081 2012-02-29  Oleg Endo  <olegendo@gcc.gnu.org>
27083         * doc/invoke.texi (-msoft-atomic): Add more detailed description.
27084         (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd
27085         -mpretend-cmove): New.
27087 2012-02-29  Jakub Jelinek  <jakub@redhat.com>
27089         PR bootstrap/52397
27090         * df.h (struct df_d): Adjust comment that hard_regs_live_count
27091         doesn't count DEBUG_INSN refs.
27092         * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE
27093         for DEBUG_INSN refs.
27095 2012-02-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27097         Partially revert:
27099         2012-02-20  Richard Guenther  <rguenther@suse.de>
27100         PR tree-optimization/52298
27101         * tree-vect-stmts.c (vectorizable_load): Properly use
27102         STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing outer loops.
27104 2012-02-28  Aldy Hernandez  <aldyh@redhat.com>
27106         PR middle-end/51752
27107         * gimple.h (gimple_in_transaction): New.
27108         (gimple_set_in_transaction): New.
27109         (struct gimple_statement_base): Add in_transaction field.
27110         * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
27111         transaction loads.
27112         (tree_ssa_lim_initialize): Compute transaction bits.
27113         * tree.h (compute_transaction_bits): Protoize.
27114         * trans-mem.c (tm_region_init): Use the heap to store BB
27115         auxilliary data.
27116         (compute_transaction_bits): New.
27118 2012-02-28  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
27120         * gcc.c (display_help): Document --help=common and sort entries
27121         alphabetically.
27123 2012-02-28  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
27125         * doc/install.texi: Document check-$LANG specific shortcuts
27127 2012-02-28  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
27129         PR target/51534
27130         * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu
27131         and vcgtu.
27132         * config/arm/arm_neon.h: Regenerate.
27133         * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU.
27134         (neon_vcgeu): New insn.
27135         (neon_vcgtu): Likewise.
27136         * config/arm/neon.ml (s_8_32, u_8_32): New lists.
27137         (ops): Unsigned comparison intrinsics call a different builtin.
27139 2012-02-28  Richard Guenther  <rguenther@suse.de>
27141         PR target/52407
27142         * config/i386/i386.c (ix86_expand_vector_set): Fix element
27143         ordering for the VEC_CONCAT for two element vectors for
27144         V2SFmode, V2SImode and V2DImode.
27146 2012-02-28  Richard Earnshaw  <rearnsha@arm.com>
27148         PR target/49448
27149         * config.gcc (arm*-*-linux*): Use an unambiguous pattern for
27150         detecting big-endian triplets.
27152 2012-02-28  Richard Earnshaw  <rearnsha@arm.com>
27154         * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine
27155         mode if there is no type information available.
27157 2012-02-28  Thomas Koenig  <tkoenig@gcc.gnu.org>
27159         PR tree-optimization/53207
27160         * doc/invoke.texi: Document as experimental and relying on graphite.
27162 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
27164         * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part
27165         of initializer to changes from r184614.
27167 2012-02-28  Richard Guenther  <rguenther@suse.de>
27169         PR tree-optimization/52395
27170         * tree-sra.c (build_ref_for_offset): Also look at the base
27171         TYPE_ALIGN when figuring out the alignment of the replacement.
27173 2012-02-28  Richard Guenther  <rguenther@suse.de>
27175         PR tree-optimization/52402
27176         * ipa-prop.c (ipa_modify_call_arguments): Properly use
27177         mis-aligned types when creating the accesses at the call site.
27179 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
27181         * config/avr/builtins.def: New file.
27182         * config/avr/t-avr (avr.o, avr-c.o): Depend on it.
27183         * config/avr/avr.c (enum avr_builtin_id): Use it.
27184         (avr_init_builtins): Use it. And use avr_bdesc.
27185         (bdesc_1arg): Remove.
27186         (bdesc_2arg): Remove.
27187         (bdesc_3arg): Remove.
27188         (struct avr_builtin_description): Add field n_args.
27189         (avr_bdesc): New static variable using builtins.def.
27190         (avr_expand_builtin): Use it.
27191         Don't call avr_expand_delay_cycles if op0 is not CONST_INT.
27192         (avr_fold_builtin): Fold AVR_BUILTIN_SWAP.
27193         Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST.
27195 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
27197         PR target/52148
27198         * config/avr/avr.md (movmem_<mode>): Replace match_operand that
27199         match only one single hard register with respective hard reg rtx.
27200         (movmemx_<mode>): Ditto.
27201         * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new
27202         insn anatomy of movmem[x]_<mode>.
27203         (avr_out_movmem): Same for printing assembler and operand usage.
27205 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
27207         PR target/49868
27208         PR target/52261
27209         * doc/extend.texi (AVR Named Address Spaces): No more try to fix
27210         address spaces located outside of device flash.
27212         * config/avr/avr.h (base_arch_s): Remove field n_segments.
27213         (mcu_type_s): Add field n_flash.
27214         * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments.
27215         Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5.
27216         (AVR_MCU): Add N_FLASH argument.
27217         * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash.
27218         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in
27219         macro __FLASH<n> if that address space makes sense for the device.
27220         * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces
27221         outside of target flash.
27222         (avr_asm_named_section): Ditto.
27223         (avr_asm_select_section): Ditto.
27224         (avr_addr_space_convert): Ditto.
27225         (avr_emit_movmemhi): Ditto.
27226         (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if
27227         address space is outside of device flash.
27228         (avr_insert_attributes): Ditto.
27229         (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of
27230         avr_current_arch->n_segments.
27232 2012-02-27  H.J. Lu  <hongjiu.lu@intel.com>
27234         PR target/52352
27235         * config/i386/i386.md (*movabs<mode>_1): Enable only for TARGET_LP64.
27236         (*movabs<mode>_2): Likewise.
27238 2012-02-27  Jakub Jelinek  <jakub@redhat.com>
27240         PR target/52375
27241         * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Use
27242         s_register_operand in the test instead of REG_P.  Don't call
27243         gen_reg_rtx if it won't be used.
27245         PR tree-optimization/52376
27246         * ipa-split.c (split_function): Ignore CLOBBER stmts.
27248 2012-02-27  Stuart Henderson  <shenders@gcc.gnu.org>
27250         * ifcvt.c (noce_get_condition): Check condition variable is not
27251         small_register_classes_for_mode_p before accepting.
27253 2012-02-27  Uros Bizjak  <ubizjak@gmail.com>
27255         * config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
27257 2012-02-27  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
27259         Revert:
27260         2012-01-09  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
27261         * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
27262         tuning parameters.
27263         * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
27265 2012-02-27  Oleg Endo  <olegendo@gcc.gnu.org>
27267         * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
27269 2012-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
27271         * config/sh/predicates.md: Remove blank lines.
27272         * config/sh/sh.c: Fix typos in comments.
27273         * config/sh/constraints.md: Likewise.
27274         * config/sh/sh.md: Remove blank lines.
27275         Fix typos in comments.  Use ;; as comment characters.
27277 2012-02-26  Walter Lee  <walt@tilera.com>
27279         * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern.
27280         (replace_mov_pcrel_step2): Ditto.
27282 2012-02-25  Alexandre Oliva  <aoliva@redhat.com>
27284         PR debug/52001
27285         * alias.c (refs_newer_value_cb, refs_newer_value_p): New.
27286         (get_addr): Walk canonical value's locs.  Avoid returning VALUEs
27287         and locs that reference values newer than the non-canonical value
27288         at hand.  Return the canonical value as a worst case.
27289         (memrefs_conflict_p): Walk canonical value's locs.
27291         PR debug/52001
27292         * cselib.c (preserve_only_constants): Rename to...
27293         (preserve_constants_and_equivs): ... this.  Split out...
27294         (invariant_or_equiv_p): ... this.  Preserve plus expressions
27295         of other preserved expressions too.
27296         (cselib_reset_table): Adjust.
27297         * var-tracking.c (reverse_op): Use canonical value to build
27298         reverse operation.
27300 2012-02-23  Kai Tietz  <ktietz@redhat.com>
27302         * config/i386/i386.c (ix86_delegitimize_address): Handle
27303         UNSPEC_PCREL plus displacement.
27305 2012-02-24  Georg-Johann Lay  <avr@gjlay.de>
27307         PR target/52261
27308         * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
27309         to test for unusedness in st X addressing.
27311 2012-02-24  Richard Guenther  <rguenther@suse.de>
27313         PR middle-end/52361
27314         * gimple.c (walk_gimple_op): Use predicates with less redundant tests.
27315         (is_gimple_reg_type): Move inline ...
27316         * gimple.h (is_gimple_reg_type): ... here.
27318 2012-02-24  Richard Guenther  <rguenther@suse.de>
27320         PR middle-end/52361
27321         * passes.c (execute_function_todo): When verifying SSA form
27322         verify gimple form first.
27323         * tree-ssa.c (verify_ssa): Do not verify gimple form here.
27325 2012-02-24  Richard Guenther  <rguenther@suse.de>
27327         PR middle-end/52355
27328         * fold-const.c (fold_addr_of_array_ref_difference): New function.
27329         (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding.
27331 2012-02-13  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
27333         * tree-if-conv (predicate_scalar_phi): Commentary typo fix.
27335 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
27337         * tree-phinodes.c (make_phi_node): Mark static.
27338         * tree-flow.h (make_phi_node): Remove extern decl.
27339         * doc/gimple.texi (make_phi_node): Remove documentation.
27341 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
27343         * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file.
27344         * tree-ssa-sccvn.c (print_scc): Ditto.
27346 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
27348         * doc/passes.texi (Full redundancy elimination): Fix typo.
27350 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
27352         * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries.
27354 2012-02-23  Eric Botcazou  <ebotcazou@adacore.com>
27356         PR bootstrap/52287
27357         * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns.
27359 2012-02-23  Uros Bizjak  <ubizjak@gmail.com>
27361         PR c/52290
27362         * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.
27364 2012-02-23  Georg-Johann Lay  <avr@gjlay.de>
27366         * config/avr/avr.md (code_stdname): Add ior, xor.
27367         (xior): New code iterator.
27368         (*<code_stdname><mode>qi.byte0): Use xior instead of ior.
27369         (*<code_stdname><mode>qi.byte1-3): Ditto.
27371 2012-02-23  Jakub Jelinek  <jakub@redhat.com>
27373         PR tree-optimization/52019
27374         * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore
27375         CLOBBER stmts.
27377 2012-02-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27379         * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
27380         HAVE_INITFINI_ARRAY to work around namespace pollution in
27381         certain versions of newlib system headers.
27382         * config.in: Regenerate.
27383         * configure: Regenerate.
27384         * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
27385         instead of HAVE_INITFINI_ARRAY.
27387 2012-02-22  Uros Bizjak  <ubizjak@gmail.com>
27389         PR target/52330
27390         * config/i386/i386.c (ix86_print_operand) <case 'H'>: Error out if x
27391         is not offsettable memory reference.
27393 2012-02-22  Georg-Johann Lay  <avr@gjlay.de>
27395         PR target/18145
27396         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip
27397         setting avr_need_clear_bss_p for __gnu_lto* symbols.
27399 2012-02-22  Georg-Johann Lay  <avr@gjlay.de>
27401         * config/avr/avr.h (avr_accumulate_outgoing_args): Return int.
27402         * config/avr/avr.c (avr_accumulate_outgoing_args): Return int.
27404 2012-02-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27406         * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread
27407         library on Solaris 8 even without TLS support.
27408         * configure: Regenerate.
27410 2012-02-22  Richard Guenther  <rguenther@suse.de>
27412         PR middle-end/52329
27413         * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
27414         for GIMPLE_DEBUG stmts.
27416 2012-02-22  Martin Jambor  <mjambor@suse.cz>
27418         PR middle-end/51782
27419         * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space
27420         according to the base object.
27422 2012-02-22  Georg-Johann Lay  <avr@gjlay.de>
27424         PR rtl-optimization/50063
27425         * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state)
27426         and 2 (8-bit SP) in operand 2.
27427         * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue
27428         setup to use movhi_sp_r instead of vanilla move to write SP.
27429         Adjust REG_CFA notes to superseed unspec.
27430         (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead
27431         of vanilla move.
27432         As function body might contain CLI or SEI: Use irq_state 0 (IRQ
27433         known to be off) only with TARGET_NO_INTERRUPTS. Never use
27434         irq_state 1 (IRQ known to be on) here.
27436 2012-02-21  Bernd Schmidt  <bernds@codesourcery.com>
27438         * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not
27439         WORDS_BIG_ENDIAN.
27440         * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p,
27441         assign_hard_reg): Likewise.
27443 2012-02-21  Georg-Johann Lay  <avr@gjlay.de>
27445         * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".
27447 2012-02-21  Georg-Johann Lay  <avr@gjlay.de>
27449         * config/avr/avr.md
27450         (*dec-and-branchhi!=-1.d.clobber): New text peephole.
27451         (*dec-and-branchhi!=-1.l.clobber): New text peephole.
27453 2012-02-21  Georg-Johann Lay  <avr@gjlay.de>
27455         * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move
27456         prototype from here to...
27457         * config/avr/avr.h: ...here.
27459 2012-02-21  Richard Earnshaw  <rearnsha@arm.com>
27461         PR target/52294
27462         * thumb2.md (thumb2_shiftsi3_short): Split register and
27463         immediate shifts.  For register shifts tie operands 0 and 1.
27464         (peephole2 for above): Check that register-controlled shifts
27465         have suitably tied operands.
27467 2012-02-21  Quentin Neill  <quentin.neill@amd.com>
27469         PR target/52137
27470         * config/i386/bdver1.md (bdver1_call, bdver1_push,
27471         bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul,
27472         bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem,
27473         bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov,
27474         bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore,
27475         bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store,
27476         bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf,
27477         bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load,
27478         bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn,
27479         bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc,
27480         bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load,
27481         bdver1_fcomi, bdver1_fcom_load, bdver1_fcom,
27482         bdver1_fxch, bdver1_ssevector_avx128_unaligned_load,
27483         bdver1_ssevector_avx256_unaligned_load,
27484         bdver1_ssevector_sse128_unaligned_load,
27485         bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load,
27486         bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load,
27487         bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load,
27488         bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store,
27489         bdver1_mmxsse_store_short, bdver1_ssevector_avx256,
27490         bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256,
27491         bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog,
27492         bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load,
27493         bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256,
27494         bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd,
27495         bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd,
27496         bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps,
27497         bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps,
27498         bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd,
27499         bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd,
27500         bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si,
27501         bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi,
27502         bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq,
27503         bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi,
27504         bdver1_ssemuladd_load_256, bdver1_ssemuladd_256,
27505         bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load,
27506         bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd,
27507         bdver1_ssediv_double_load_256, bdver1_ssediv_double_256,
27508         bdver1_ssediv_single_load_256, bdver1_ssediv_single_256,
27509         bdver1_ssediv_double_load, bdver1_ssediv_double,
27510         bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins):
27511         Add "bdver2" attribute.
27513 2012-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27515         * config/s390/s390.c (s390_option_override): Make -mhard-dfp the
27516         default if possible and not specified otherwise.
27518 2012-02-21  Richard Guenther  <rguenther@suse.de>
27520         PR middle-end/52314
27521         * gimplify.c (create_tmp_from_val): Use the main variant type
27522         for the type of the temporary we create.
27524 2012-02-21  Richard Guenther  <rguenther@suse.de>
27526         PR tree-optimization/52324
27527         * gimplify.c (gimplify_expr): When re-gimplifying expressions
27528         do not gimplify a MEM_REF address operand if it is already
27529         in suitable form.
27531 2012-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27533         * config/s390/s390.md ("fixuns_trunc<mode>si2"): Replace
27534         TARGET_HARD_FLOAT with TARGET_HARD_DFP.
27536 2012-02-21  Richard Guenther  <rguenther@suse.de>
27538         * tree-vect-stmts.c (vectorizable_load): Use pre-computed
27539         nested_in_vect_loop.
27541 2012-02-21  Jakub Jelinek  <jakub@redhat.com>
27543         PR tree-optimization/52318
27544         * gimple-fold.c (gimplify_and_update_call_from_tree): Add
27545         vdef also to non-pure/const call stmts in the sequence.
27547 2012-02-21  Tristan Gingold  <gingold@adacore.com>
27549         * config/vms/vms-ld.c (main): Fix IDENTIFICATION padding.
27551 2012-02-20  David S. Miller  <davem@davemloft.net>
27553         * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Explain why we
27554         don't use the "rd %pc" instruction on v9 for PIC register loads.
27556 2012-02-20  Aldy Hernandez  <aldyh@redhat.com>
27558         PR middle-end/52141
27559         * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's
27560         in a transaction safe function.
27562 2012-02-20  Kai Tietz  <ktietz@redhat.com>
27564         PR target/52238
27565         * stor-layout.c (place_field): Handle desired_align for
27566         ms-bitfields, too.
27568 2012-02-20  Richard Guenther  <rguenther@suse.de>
27570         PR tree-optimization/52298
27571         * tree-vect-stmts.c (vectorizable_store): Properly use
27572         STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
27573         outer loops.
27574         (vectorizable_load): Likewise.
27575         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
27576         Access DR_STEP after ensuring it is not NULL.
27578 2012-02-20  Jakub Jelinek  <jakub@redhat.com>
27580         PR tree-optimization/52286
27581         * fold-const.c (fold_binary_loc): For (X & C1) | C2
27582         optimization use double_int_to_tree instead of build_int_cst_wide,
27583         rewrite to use double_int vars.
27585 2012-02-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27587         PR target/50166
27588         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
27589         Define _start.
27590         Remove -e 0 from $gcc_cv_ld invocation.
27591         Only use __GLIBC_PREREQ if defined.
27592         Enable on Solaris since Solaris 8 patch.
27593         (gcc_SUN_LD_VERSION): New macro.
27594         * configure.ac (ld_ver) <*-*-solaris2*>: Refer to
27595         gcc_SUN_LD_VERSION for version number format.
27596         * configure: Regenerate.
27597         * varasm.c (get_elf_initfini_array_priority_section): Set
27598         SECTION_NOTYPE for non-default priority.
27599         Use get_section instead of get_unnamed_section to emit
27600         .init_array/.fini_array with default priority.
27602 2012-02-19  Richard Sandiford  <rdsandiford@googlemail.com>
27604         * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable.
27605         (mips_get_tp): Set it.  Record that __mips16_rdhwr binds locally.
27606         (mips_start_unique_function, mips_output_mips16_rdhwr)
27607         (mips_code_end): New functions.
27608         (TARGET_ASM_CODE_END): Define.
27610 2012-02-19  Richard Sandiford  <rdsandiford@googlemail.com>
27612         * config/mips/mips.c (mips16_build_call_stub): Add CFI information
27613         to stubs with non-sibling calls.
27615 2012-02-18  Sandra Loosemore  <sandra@codesourcery.com>
27617         * doc/invoke.texi (-fira-* options): Copy-edit.
27618         (ira-* parameters): Copy-edit.
27620 2012-02-17  Sandra Loosemore  <sandra@codesourcery.com>
27622         * doc/invoke.texi: Minor copy-edits to bring into conformance with
27623         GCC coding conventions.
27625 2012-02-17  Sandra Loosemore  <sandra@codesourcery.com>
27627         * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian"
27628         when used as adjectives.
27630 2012-02-16  Sandra Loosemore  <sandra@codesourcery.com>
27632         * doc/invoke.texi: Clean up "that"/"which" confusion.
27634 2012-02-17  Steven Bosscher  <steven@gcc.gnu.org>
27636         * system.h: Poison SMALL_REGISTER_CLASSES
27637         * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
27638         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.
27640 2012-02-16  Jakub Jelinek  <jakub@redhat.com>
27642         PR tree-optimization/52285
27643         * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts
27644         when deciding if a call is a tail call or tail recursion.
27646 2012-02-16  Kai Tietz  <ktietz@redhat.com>
27648         * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
27649         interger-constant displacement for UNSPEC_PCREL.
27651 2012-02-16  Jakub Jelinek  <jakub@redhat.com>
27653         PR rtl-optimization/52208
27654         * ira-costs.c (scan_one_insn): Don't decrease mem_cost
27655         for MEMs with REG_EQUIV, if the MEM isn't general_operand.
27657         PR tree-optimization/52255
27658         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If
27659         loop->header has virtual PHI, but exit_e->dest doesn't, add
27660         virtual PHI to exit_e->dest and adjust all uses after the loop.
27662         PR debug/52260
27663         * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
27664         children with clone_tree_hash, not after it.
27666 2012-02-16  Iain Sandoe  <iains@gcc.gnu.org>
27668         * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
27669         extended identifiers.
27671 2012-02-16  Jakub Jelinek  <jakub@redhat.com>
27673         PR middle-end/51929
27674         * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is
27675         a same_body_alias, also test whether e->callee isn't a former
27676         or current clone of the decl this is a same body alias of.
27678         PR translation/52264
27679         * cgraphunit.c (verify_cgraph_node): Fix a typo.
27681 2012-02-15  Sandra Loosemore  <sandra@codesourcery.com>
27683         * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers.
27685 2012-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
27687         PR target/52199
27688         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
27689         force_reg instead of copy_to_reg for better optimization.  Force
27690         non-register or memory operands into a register.
27692 2012-02-15  Andrew MacLeod  <amacleod@redhat.com>
27694         * extend.texi: Reserve upper bits of memory model for future use.
27696 2012-01-15  Georg-Johann Lay  <avr@gjlay.de>
27697             Anatoly Sokolov <aesok@post.ru>
27698             Eric Weddington <eric.weddington@atmel.com>
27700         PR target/52261
27701         * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
27702         avrxmega4, avrxmega5, avrxmega6, avrxmega7.
27703         Rewrite initializers for .macro.
27704         * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
27705         avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
27706         atxmega32d4, atxmega32x1.
27707         avrxmega4: atxmega64a3, atxmega64d3.
27708         avrxmega5: atxmega64a1, atxmega64a1u.
27709         avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
27710         atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
27711         avrxmega7: atxmega128a1, atxmega128a1u.
27712         * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
27713         ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
27714         (struct base_arch_s): Rename reserved to xmega_p.
27715         Rename reserved2 to have_rampd.
27716         (AVR_XMEGA): New define.
27717         (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
27718         (AVR_HAVE_RAMPZ): Change definition to fit xmega.
27719         * config/avr/predicates.md (io_address_operand): Take into
27720         account SFR offset.
27721         (low_io_address_operand): Ditto.
27722         (high_io_address_operand): Ditto.
27723         * config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
27724         (enabled, movhi_sp_r): Use them.
27725         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
27726         cpp_define_formatted to built-in define __AVR_ARCH__.
27727         (__AVR_XMEGA__): New built-in define.
27728         (__AVR_HAVE_RAMPD__): New built-in define.
27729         (__AVR_HAVE_RAMPX__): New built-in define.
27730         (__AVR_HAVE_RAMPY__): New built-in define.
27731         (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
27733         * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
27734         (avr_option_override): Initialize them.
27735         (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
27736         (avr_init_expanders): Initialize them. No more block several calls.
27737         (emit_push_sfr): New static function.
27738         (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
27739         Handle AVR_XMEGA.
27740         (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
27741         (avr_print_operand): Print addreeses as symbols for
27742         RAMPX, RAMPY, RAMPD, CCP.
27743         (output_movhi): Handle AVR_XMEGA when writing to SP.
27744         (avr_out_movhi_mr_r_xmega): New static function.
27745         (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
27746         (avr_file_start): Print symbol defines for __RAMPX__,  __RAMPY__,
27747         __RAMPD__,  __CCP__ as needed.
27749         * config/avr/multilib.h: Regenerate.
27750         * config/avr/t-multilib: Regenerate.
27751         * config/avr/avr-tables.opt: Regenerate.
27753 2012-02-15  Tobias Grosser <grosser@fim.uni-passau.de>
27755         PR tree-optimization/50561
27756         * graphite-flattening.c (lst_project_loop): Do not
27757         remove old scattering dimensions after flattening.
27758         (lst_do_flatten): Likewise.
27760 2012-02-15  Georg-Johann Lay  <avr@gjlay.de>
27762         * doc/extend.texi (AVR Built-in Functions): Remove doc for
27763         __builtin_avr_map8, __builtin_avr_map16.
27764         Document __builtin_avr_insert_bits.
27766         * config/avr/avr.md (map_bitsqi, map_bitshi): Remove.
27767         (insert_bits): New insn.
27768         (adjust_len.map_bits): Rename to insert_bits.
27769         (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS.
27770         * avr-protos.h (avr_out_map_bits): Remove.
27771         (avr_out_insert_bits, avr_has_nibble_0xf): New.
27772         * config/avr/constraints.md (Cxf,C0f): New.
27773         * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in
27774         defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
27775         New built-in define __BUILTIN_AVR_INSERT_BITS.
27776         * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define.
27777         (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS.
27778         (avr_move_bits): Rewrite.
27779         (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static
27780         functions.
27781         (avr_map_op_t): New typedef.
27782         (avr_map_op): New static variable.
27783         (avr_out_insert_bits, avr_has_nibble_0xf): New functions.
27784         (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS.
27785         (avr_init_builtins): Add definition for __builtin_avr_insert_bits.
27786         (bdesc_3arg, avr_expand_triop_builtin): New.
27787         (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS.
27788         (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove.
27789         (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove.
27790         (avr_map_equal_p, avr_map_sig_p): Remove.
27791         (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove.
27792         (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
27793         (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS.
27794         (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
27795         (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16.
27796         (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
27798 2012-02-14  Bernd Schmidt  <bernds@codesourcery.com>
27800         * config/c6x/c6x.md (reserve_cycles): New attribute.
27801         * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate
27802         don't reserve functional units after the branch occurs.
27804 2012-02-14  Aldy Hernandez  <aldyh@redhat.com>
27806         PR middle-end/52142
27807         * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure
27808         functions into non-tm_pure functions.
27810 2012-02-14  Eric Botcazou  <ebotcazou@adacore.com>
27812         PR lto/52178
27813         * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
27814         (iterative_hash_canonical_type): Likewise.
27815         * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
27816         the dead edges.
27818 2012-02-14  Bernd Schmidt  <bernds@codesourcery.com>
27820         * haifa-sched.c (prune_ready_list): Ensure that if there is a
27821         sched-group insn, it either remains alone or the entire list is pruned.
27823 2012-02-14  Jonathan Wakely  <jwakely.gcc@gmail.com>
27825         * doc/install.texi (Prerequisites): Fix grammar.
27826         (Configuration): Likewise.
27828 2012-02-14  Jonathan Wakely  <jwakely.gcc@gmail.com>
27830         * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and
27831         MPC as part of GCC before describing configuring with --with-gmp etc.
27832         (Installing GCC: Configuration): --with-gmp etc. aren't needed if
27833         sources are present.
27835 2012-02-14  Jakub Jelinek  <jakub@redhat.com>
27837         PR debug/51950
27838         * dwarf2out.c (clone_tree_hash): New function.
27839         (copy_decls_walk): Use it instead of clone_tree.
27841 2012-02-14  Richard Guenther  <rguenther@suse.de>
27843         PR tree-optimization/52244
27844         PR tree-optimization/51528
27845         * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE
27846         replacements for integral types.
27848 2012-02-14  Walter Lee  <walt@tilera.com>
27850         * config.gcc: Handle tilegx and tilepro.
27851         * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
27852         tilegx and tilepro.
27853         Add HAVE_AS_TLS check for tilegx and tilepro.
27854         * configure: Regenerate.
27855         * doc/contrib.texi: Add Mat Hostetter and self.
27856         * doc/extend.texi (TILE-Gx Built-in Functions): New node.
27857         Document instruction intrinsics and network accessing intrinsics.
27858         (TILEPro Built-in Functions): New node.  Document instruction
27859         intrinsics and network accessing intrinsics.
27860         * doc/install.texi (Specific, tilegx-*-linux*): Document it.
27861         (Specific, tilepro-*-linux*): Likewise.
27862         * doc/invoke.texi (TILE-Gx Options): New section.
27863         (TILEPro Options): New section.
27864         * doc/md.texi (TILE-Gx): New section.
27865         (TILEPro): New section.
27866         * common/config/tilegx/tilegx-common.c: New file.
27867         * common/config/tilepro/tilepro-common.c: New file.
27868         * config/tilegx/constraints.md: New file.
27869         * config/tilegx/linux.h: New file.
27870         * config/tilegx/mul-tables.c: New file.
27871         * config/tilegx/predicates.md: New file.
27872         * config/tilegx/sync.md: New file.
27873         * config/tilegx/t-tilegx: New file.
27874         * config/tilegx/tilegx-builtins.h: New file.
27875         * config/tilegx/tilegx-c.c: New file.
27876         * config/tilegx/tilegx-generic.md: New file.
27877         * config/tilegx/tilegx-modes.def: New file.
27878         * config/tilegx/tilegx-multiply.h: New file.
27879         * config/tilegx/tilegx-protos.h: New file.
27880         * config/tilegx/tilegx.c: New file.
27881         * config/tilegx/tilegx.h: New file.
27882         * config/tilegx/tilegx.md: New file.
27883         * config/tilegx/tilegx.opt: New file.
27884         * config/tilepro/constraints.md: New file.
27885         * config/tilepro/gen-mul-tables.cc: New file.
27886         * config/tilepro/linux.h: New file.
27887         * config/tilepro/mul-tables.c: New file.
27888         * config/tilepro/predicates.md: New file.
27889         * config/tilepro/t-tilepro: New file.
27890         * config/tilepro/tilepro-builtins.h: New file.
27891         * config/tilepro/tilepro-c.c: New file.
27892         * config/tilepro/tilepro-generic.md: New file.
27893         * config/tilepro/tilepro-modes.def: New file.
27894         * config/tilepro/tilepro-multiply.h: New file.
27895         * config/tilepro/tilepro-protos.h: New file.
27896         * config/tilepro/tilepro.c: New file.
27897         * config/tilepro/tilepro.h: New file.
27898         * config/tilepro/tilepro.md: New file.
27899         * config/tilepro/tilepro.opt: New file.
27901 2012-02-14  Jakub Jelinek  <jakub@redhat.com>
27903         PR tree-optimization/52210
27904         * tree-vect-slp.c (vect_get_and_check_slp_defs): Call
27905         vect_model_simple_cost with two entry vect_def_type array instead
27906         of an address of dt.
27908 2012-02-14  Richard Guenther  <rguenther@suse.de>
27910         PR lto/52178
27911         * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
27912         Do not stream DECL_QUALIFIER.
27913         * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
27914         * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER.
27915         (find_decls_types_r): Do not walk DECL_QUALIFIER.
27917 2012-02-14  Jakub Jelinek  <jakub@redhat.com>
27919         PR c/52181
27920         * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
27921         newdecl.
27923 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
27925         PR bootstrap/52172
27926         * cselib.h (cselib_subst_to_values_from_insn): New prototype.
27927         * cselib.c (cselib_subst_to_values_from_insn): New function.
27928         * sched-deps.c (add_insn_mem_dependence,
27929         sched_analyze_1, sched_analyze_2): Use it.
27931 2012-02-13  Jan Hubicka  <jh@suse.cz>
27933         PR middle-end/52214
27934         * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch.
27936 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
27938         * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
27939         (GTM_SELF_SPECS): Define if not already defined.
27940         (driver_self_specs): Add GTM_SELF_SPECS.
27941         * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm.
27942         (GTM_SELF_SPECS): Define.
27943         * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
27944         * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
27946 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
27948         * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right
27949         away if seen.
27951         * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL.
27953         PR middle-end/52230
27954         * omp-low.c (expand_omp_for): If a static schedule without chunk size
27955         has NULL region->cont, force fd.chunk_size to be integer_zero_node.
27957 2012-02-13  Andrew MacLeod  <amacleod@redhat.com>
27959         PR c/52190
27960         * doc/extend.texi : Fix another __atomic_compare_exchange typo.
27962 2012-02-13  Richard Guenther  <rguenther@suse.de>
27964         PR translation/52211
27965         * passes.c (enable_disable_pass): Fix typo.
27967 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
27969         PR middle-end/52209
27970         * expr.c (expand_expr_real_2) <case BIT_NOT_EXPR>: Only expand using
27971         XOR for reduce_bit_field if type is unsigned.
27973 2012-02-12  Eric Botcazou  <ebotcazou@adacore.com>
27975         * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
27976         disallow changes from SFmode to mode with different size in FP regs.
27978 2012-02-12  Robert Millan  <rmh@gnu.org>
27979             Gerald Pfeifer <gerald@pfeifer.com>
27981         * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define.
27982         Tweak comment.
27984 2012-02-11  Richard Sandiford  <rdsandiford@googlemail.com>
27986         PR rtl-optimization/52175
27987         * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
27988         to frame-related instructions.
27990 2012-02-10  Jason Merrill  <jason@redhat.com>
27992         PR c++/51910
27993         * tlink.c (demangled_hash_entry): Change mangled to a VEC.
27994         (demangle_new_symbols): Fill it.
27995         (scan_linker_output): Walk it.
27996         (start_tweaking): Split out from scan_linker_output.
27997         (maybe_tweak): Update sym->chosen.
27998         * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o
28000 2012-02-11  Jakub Jelinek  <jakub@redhat.com>
28002         PR debug/52132
28003         * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg.
28005 2012-02-11  Uros Bizjak  <ubizjak@gmail.com>
28007         * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
28008         having the same mode as previous compare.
28010 2012-02-10  Eric Botcazou  <ebotcazou@adacore.com>
28012         * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use.
28013         * config/sparc/sparc.md (UNSPECV_GOTO): Delete.
28014         (nonlocal_goto_internal): Likewise.
28015         (nonlocal_goto): Emit a use and an indirect jump directly.
28017 2012-02-10  Andrew MacLeod  <amacleod@redhat.com>
28019         PR c/52190
28020         * doc/extend.texi : Update comments for __atomic_compare_exchange and
28021         __atomic_{is,always}_lock_free.
28023 2012-02-10  Uros Bizjak  <ubizjak@gmail.com>
28025         PR target/52146
28026         * config/i386/i386.c (ix86_legitimate_address_p): Disallow
28027         negative constant address for TARGET_X32.
28029 2012-02-10  Richard Henderson  <rth@redhat.com>
28031         * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
28032         * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands
28033         for GIMPLE_TRANSACTION.  Tidy if's into a switch.
28035 2012-02-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28036             Ira Rosen  <irar@il.ibm.com>
28038         PR tree-optimization/50031
28039         * targhooks.c (default_builtin_vectorization_cost): Handle
28040         vec_promote_demote.
28041         * target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
28042         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
28043         all types of reduction and pattern statements.
28044         (vect_estimate_min_profitable_iters): Likewise.
28045         * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
28046         (vect_get_load_cost): Use vec_perm for permutations; add dump logic
28047         for explicit realigns.
28048         (vectorizable_conversion): Call vect_model_promotion_demotion_cost.
28049         * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
28050         vec_promote_demote.
28051         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
28052         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
28053         vec_perm for VSX and handle vec_promote_demote.
28055 2012-02-10  Jakub Jelinek  <jakub@redhat.com>
28057         PR middle-end/52177
28058         * builtins.c (fold_builtin_atomic_always_lock_free,
28059         expand_builtin_atomic_always_lock_free,
28060         fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
28061         Return and/or test boolean_true_node/boolean_false_node instead of
28062         integer_one_node/integer_zero_node.
28064 2012-02-10  Jan Hubicka  <jh@suse.cz>
28066         PR middle-end/48600
28067         * predict.c (predict_paths_for_bb): Prevent looping.
28068         (predict_paths_leading_to_edge, predict_paths_leading_to): Update.
28070 2012-02-10  Roman Zhuykov  <zhroma@ispras.ru>
28072         * config/arm/arm.c (output_move_double): In one case properly
28073         count number of instructions that will be emitted.
28075 2012-02-10  Richard Guenther  <rguenther@suse.de>
28077         PR translation/52193
28078         * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo.
28080 2012-02-09  Peter Bergner  <bergner@vnet.ibm.com>
28082         PR middle-end/52140
28083         * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
28085 2012-02-09  Jakub Jelinek  <jakub@redhat.com>
28087         PR debug/52165
28088         * var-tracking.c (emit_note_insn_var_location): If
28089         EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
28090         emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
28091         non-NOTE_DURING_CALL_P insn.
28093 2012-02-09  Bin Cheng  <bin.cheng@arm.com>
28095         PR middle-end/51867
28096         * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P.
28098 2012-02-08  Magnus Granberg  <zorry@gentoo.org>
28100         PR driver/48524
28101         * gcc.c (switch_matches) Support switches with separated form,
28102         -D and -U.
28104 2012-02-08  Georg-Johann Lay  <avr@gjlay.de>
28106         * config/avr/avr.md (SREG_ADDR): Remove constant definition.
28107         (SP_ADDR): Ditto.
28108         (RAMPZ_ADDR): Ditto.
28109         * config/avr/avr.c (avr_addr_t): New typedef.
28110         (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG.
28111         (avr_init_expanders): Initialize it.
28112         (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR,
28113         SREG_ADDR.
28114         (expand_epilogue): Ditto.
28115         (avr_print_operand): Ditto.
28116         (avr_file_start): Ditto.
28117         (avr_emit_movmemhi): Ditto.
28119 2012-02-08  Richard Guenther  <rguenther@suse.de>
28121         PR tree-optimization/46886
28122         * tree-flow.h (do_while_loop_p): Declare.
28123         * tree-ssa-loop-ch.c (do_while_loop_p): Export.
28124         * tree-parloops.c (parallelize_loops): Only parallelize do-while loops.
28126 2012-02-08  Andrew MacLeod  <amacleod@redhat.com>
28128         * optabs.c (expand_atomic_load): Do not assume compare_and_swap will
28129         always succeed for integers larger than a native word.
28131 2012-02-08  Richard Guenther  <rguenther@suse.de>
28133         PR rtl-optimization/52170
28134         * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
28135         properly handle integer vector modes.
28137 2012-02-08  Jakub Jelinek  <jakub@redhat.com>
28139         PR gcov-profile/52150
28140         * coverage.c: Include target.h.
28141         (build_var): Call targetm.strip_name_encoding on the assembler name.
28142         Change one _ into . or $ if the target allows it.
28143         * Makefile.in (coverage.o): Depend on $(TARGET_H).
28145         PR rtl-optimization/52139
28146         * cfgrtl.c (cfg_layout_merge_blocks): If BB_END
28147         is a BARRIER after emit_insn_after_noloc, move BB_END
28148         to the last non-BARRIER insn before it.
28150 2012-02-07  Richard Sandiford  <rdsandiford@googlemail.com>
28152         PR middle-end/24306
28153         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function.
28154         (mips_gimplify_va_arg_expr): Call it instead of
28155         std_gimplify_va_arg_expr.
28157 2012-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
28159         * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error
28160         message for -mno-pointers-to-nested-function.
28162 2012-02-07  Eric Botcazou  <ebotcazou@adacore.com>
28164         PR middle-end/51994
28165         * expr.c (get_inner_reference): If there is an offset, add a negative
28166         bit position to it (if any).
28168 2012-02-07  Jakub Jelinek  <jakub@redhat.com>
28170         PR rtl-optimization/52060
28171         * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
28172         copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
28173         before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
28174         and/or i0src_copy2 when needed.
28176 2012-02-07  Jakub Jelinek  <jakub@redhat.com>
28178         * gcc.c (main): Don't look for lto-wrapper or lto-wrapper
28179         or LTOPLUGINSONAME if have_c.
28181         * config/freebsd-spec.h: Add comment about what macros can be defined
28182         in this header.
28183         (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
28184         * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
28185         here instead.
28187 2012-02-07  Richard Guenther  <rguenther@suse.de>
28189         * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
28190         newline in -alias dumps.
28192 2012-02-07  Kai Tietz  <ktietz@redhat.com>
28193             Dave Korn  <dave.korn.cygwin@gmail.com>
28195         PR target/40068
28196         * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
28197         Take care that typinfo gets dllexport-attribute.
28199 2012-02-07  Jakub Jelinek  <jakub@redhat.com>
28201         PR middle-end/52074
28202         * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
28203         if modifier < EXPAND_SUM call force_operand on the result.
28205 2012-02-07  Joern Rennecke  <joern.rennecke@embecosm.com>
28207         * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
28208         adding __forwarder_dst__ prefix if a forwarder_section attribute is
28209         present.
28210         (epiphany_function_type): Replace types for specific interrupts with
28211         EPIPHANY_FUNCTION_INTERRUPT.
28212         (EPIPHANY_INTERRUPT_P): Update.
28213         * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
28214         New static function.
28215         (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
28216         <disinterrupt>: Affects type identity.
28217         (epiphany_handle_interrupt_attribute): Handle variable number of
28218         arguments.
28219         (epiphany_compute_function_type): Update for new
28220         epiphany_function_type definition.
28221         (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
28222         handlers with a longcall forwarder.
28223         (epiphany_start_function): Handle multiple interrupt arguments and/or
28224         forwarder_section attribute.
28226         * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after
28227         libgloss.
28229 2012-02-07  Alan Modra  <amodra@gmail.com>
28231         PR target/52107
28232         * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
28233         subregs of TFmode.
28235 2012-02-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28237         PR tree-optimization/50969
28238         * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
28239         use vec_perm rather than vector_stmt.
28240         (vect_model_load_cost): Likewise.
28241         * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
28242         vec_perm to be the same as other vector statements.
28243         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
28244         cost of vec_perm for TARGET_VSX.
28246 2012-02-06  Richard Guenther  <rguenther@suse.de>
28248         PR tree-optimization/52115
28249         * tree-sra.c (access_has_replacements_p): New function.
28250         (sra_modify_assign): Use it to decide whether a use is uninitialized.
28252 2012-02-06  Patrick Marlier  <patrick.marlier@gmail.com>
28254         PR middle-end/52047
28255         * trans-mem.c (expand_call_tm): Add an assertion.
28256         * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
28257         functions.
28259 2012-02-06  Richard Guenther  <rguenther@suse.de>
28261         PR tree-optimization/50955
28262         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
28263         raise cost of expressions that replace an address with an
28264         expression based on a different pointer.
28266 2012-02-06  Jakub Jelinek  <jakub@redhat.com>
28268         PR target/52129
28269         * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
28270         CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
28272 2012-02-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
28274         PR c++/48680
28275         * doc/invoke.texi (C++ Dialect Options): Use @option markup for
28276         -Weffc++ and specify guidelines come from second edition.
28278 2012-02-05  Richard Sandiford  <rdsandiford@googlemail.com>
28280         * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
28281         (sibcall_value_multiple_internal, call_split, call_internal_direct)
28282         (call_direct_split, call_value_split, call_value_internal_direct)
28283         (call_value_direct_split, call_value_multiple_split): Use jal and
28284         jal_macro attributes.
28286 2012-02-05  Richard Sandiford  <rdsandiford@googlemail.com>
28288         * reload1.c (reload_regs_reach_end_p): Replace with...
28289         (reload_reg_rtx_reaches_end_p): ...this function.
28290         (new_spill_reg_store): Update commentary.
28291         (emit_input_reload_insns): Don't clear new_spill_reg_store here.
28292         (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
28293         before setting new_spill_reg_store.
28294         (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
28295         Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
28296         Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
28297         for non-spill reload registers.
28299 2012-02-05  Ira Rosen  <irar@il.ibm.com>
28301         PR tree-optimization/52091
28302         * tree-vectorizer.h (vect_is_simple_use): Add an argument.
28303         (vect_is_simple_use_1): Likewise.
28304         * tree-vect-loop.c (vectorizable_reduction): Update calls
28305         to vect_is_simple_use_1 and vect_is_simple_use.
28306         (vectorizable_live_operation): Likewise.
28307         * tree-vect-patterns.c (widened_name_p,
28308         vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise.
28309         * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
28310         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
28311         vectorizable_shift,vectorizable_operation, vectorizable_store,
28312         vectorizable_load): Likewise.
28313         (vect_is_simple_cond): Add an argument, pass it to
28314         vect_is_simple_use_1.
28315         (vectorizable_condition): Update calls to vect_is_simple_cond,
28316         vect_is_simple_use.
28317         (vect_is_simple_use): Add an argument, the statement in which
28318         OPERAND is used.  Check that if OPERAND's def stmt is a double
28319         reduction phi node, the use is a phi node too.
28320         (vect_is_simple_use_1): Add an argument, pass it to
28321         vect_is_simple_use.
28322         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
28323         to vect_is_simple_use.
28325 2012-02-04  Jakub Jelinek  <jakub@redhat.com>
28327         PR rtl-optimization/52095
28328         * modulo-sched.c (dump_insn_locator): New function.
28329         (loop_canon_p, sms_schedule): Use it.
28331         PR rtl-optimization/52113
28332         * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
28333         even for decomposable shift/zext insns.
28335 2012-02-03  Jakub Jelinek  <jakub@redhat.com>
28336             Zdenek Dvorak  <ook@ucw.cz>
28338         PR rtl-optimization/52092
28339         * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
28340         on get_iv_value result.
28342 2012-02-02  Andrew Pinski  <apinski@cavium.com>
28344         PR middle-end/47982
28345         PR middle-end/43967
28346         * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
28348 2012-02-02  Jakub Jelinek  <jakub@redhat.com>
28350         PR middle-end/48071
28351         * diagnostic.c (diagnostic_finish): Remove trailing newlines.
28353 2012-02-02  Vladimir Makarov  <vmakarov@redhat.com>
28355         PR rtl-optimization/49800
28356         * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
28357         (sched_finish): Call regstat_free_n_sets_and_refs.
28359 2012-02-02  Jia Liu  <proljc@gmail.com>
28361         * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
28362         than operand 2.
28364 2012-02-02  Jan Hubicka  <jh@suse.cz>
28365             Tom de Vries  <tom@codesourcery.com>
28367         PR middle-end/51998
28368         * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
28369         * varpool.c (varpool_analyze_pending_decls): Likewise.
28371 2012-02-02  Sumanth G <sumanth.gundapaneni@kpitcummins.com>
28372             Jayant R Sonar <jayant.sonar@kpitcummins.com>
28374         * config.gcc: Add cr16-* support.
28376         * doc/extend.texi: Document cr16 extensions.
28377         * doc/install.texi: Document cr16 install.
28378         * doc/invoke.texi: Document cr16 options.
28379         * doc/md.texi: Document cr16 constraints.
28381         * common/config/cr16/cr16-common.c: New file.
28382         * config/cr16/cr16.c: New file.
28383         * config/cr16/cr16.h: New file.
28384         * config/cr16/cr16.md: New file.
28385         * config/cr16/cr16.opt: New file.
28386         * config/cr16/cr16-protos.h: New file.
28387         * config/cr16/predicates.md: New file.
28388         * config/cr16/constraints.md: New file.
28389         * config/cr16/t-cr16: New file.
28391 2012-02-02  Jakub Jelinek  <jakub@redhat.com>
28393         PR target/52086
28394         * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
28395         that operands[2] is either immediate, or q_regs_operand.
28397         PR tree-optimization/52073
28398         * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
28399         a pattern stmt for pattern uses, ignore uses outside of the loop.
28401 2012-02-01  Georg-Johann Lay  <avr@gjlay.de>
28403         * config/avr/avr.c: Resolve all AS1 and AS2 macros.
28404         * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
28405         (OUT_AS1, OUT_AS2): Remove.
28407 2012-02-01  Georg-Johann Lay  <avr@gjlay.de>
28409         PR rtl-optimization/51374
28410         * combine.c (can_combine_p): Don't allow volatile_refs_p insns
28411         to cross other volatile_refs_p insns.
28413 2012-02-01  Richard Guenther  <rguenther@suse.de>
28415         * doc/invoke.texi (fno-inline): Clarify documentation.
28416         (finline-small-functions): Likewise.
28417         (finline-functions): Likewise.
28418         * common.opt (finline): Adjust comment and documentation.
28419         (finline-small-functions): Clarify documentation.
28420         (finline-functions): Likewise.
28421         (finline-functions-called-once): Likewise.
28423 2012-02-01  Tristan Gingold  <gingold@adacore.com>
28425         * c-typeck.c (composite_type): Keep mode for pointers.
28427 2012-01-31  Richard Sandiford  <rdsandiford@googlemail.com>
28429         * function.h (regno_reg_rtx): Adjust comment.
28430         * reginfo.c (init_reg_modes_target): Only use the previous mode
28431         if it fits within one register.  Remove MIPS comment.
28433 2012-01-31  Jakub Jelinek  <jakub@redhat.com>
28435         PR bootstrap/52058
28436         * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
28438 2012-01-31  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28440         * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
28441         to srak instruction.
28443 2012-01-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
28445         * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition.
28447 2012-01-31  Jakub Jelinek  <jakub@redhat.com>
28449         PR bootstrap/52041
28450         PR bootstrap/52039
28451         PR target/51974
28452         * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
28454 2012-01-31  Richard Guenther  <rguenther@suse.de>
28456         PR tree-optimization/51528
28457         * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
28458         assigns.
28460 2012-01-31  Jakub Jelinek  <jakub@redhat.com>
28462         PR bootstrap/52041
28463         PR bootstrap/52039
28464         PR target/51974
28465         * ree.c (add_removable_extension): Change def_map argument
28466         to unsigned *, store in def_map 1 + offset into *insn_list vector
28467         instead of pointers into the vector.
28468         (find_removable_extensions): Adjust caller.
28470 2012-01-30  Georg-Johann Lay  <avr@gjlay.de>
28472         * config/avr/avr.md: Resolve all AS1 and AS2 macros.
28473         Transform all "* quoted-c-code" to { c-code }.
28474         Remove redundant test for "optimize" in combine patterns.
28475         Move (include "avr-dimode.md") to end of file.
28477 2012-01-30  Bin Cheng  <bin.cheng@arm.com>
28479         PR target/51835
28480         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
28481         for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
28483 2012-01-30  Richard Guenther  <rguenther@suse.de>
28485         PR tree-optimization/52028
28486         * tree-loop-distribution.c (ldist_gen): Properly update
28487         virtual SSA form.
28489 2012-01-30  Jakub Jelinek  <jakub@redhat.com>
28491         PR debug/52027
28492         * dwarf2out.c (dwarf2out_switch_text_section): Don't call
28493         set_cur_line_info_table if not emitting debug info.
28495         PR tree-optimization/52046
28496         * tree-vect-patterns.c (check_bool_pattern): Give up if
28497         a comparison could throw.
28499         PR debug/52048
28500         * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
28502 2012-01-30  Richard Guenther  <rguenther@suse.de>
28504         PR tree-optimization/52045
28505         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
28506         SSA form if cfgcleanup did anything.
28508 2012-01-30  Richard Guenther  <rguenther@suse.de>
28510         PR tree-optimization/52045
28511         * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
28512         before computing final todo.
28514 2012-01-30  Richard Guenther  <rguenther@suse.de>
28516         PR tree-optimization/51528
28517         * tree-sra.c (sra_modify_assign): Re-factor in preparation
28518         for PR51528 fix.
28520 2012-01-30  Paolo Bonzini  <bonzini@gnu.org>
28522         * df-problems.c (df_kill_notes): Check that the use refers
28523         to the note under examination.
28525 2012-01-30  Eric Botcazou  <ebotcazou@adacore.com>
28527         PR target/51920
28528         * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
28529         parameter and use short-lived pseudos.
28530         (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
28531         (sparc_expand_vector_init): Const-ify local variables and adjust
28532         calls to above functions.
28534 2012-01-30  Georg-Johann Lay  <avr@gjlay.de>
28536         * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
28538 2012-01-29  Sandra Loosemore  <sandra@codesourcery.com>
28540         * doc/invoke.texi: Make usage of "compile time" and
28541         "run time"/"runtime" consistent throughout the file.
28543 2012-01-29  Uros Bizjak  <ubizjak@gmail.com>
28545         * config/alpha/alpha.c (alpha_option_override): Default to
28546         full IEEE compliance mode for Go language.
28548 2012-01-29  Tijl Coosemans  <tijl@coosemans.org>
28550         * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
28551         (LINK_SSP_SPEC): Define.
28553 2012-01-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28555         PR target/51871
28556         * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
28557         stubs.
28559 2012-01-28  Sandra Loosemore  <sandra@codesourcery.com>
28561         * doc/invoke.texi: Correct hyphenation of "floating point",
28562         "double precision", and related terminology throughout the file.
28564 2012-01-28  Jakub Jelinek  <jakub@redhat.com>
28566         PR target/52006
28567         * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
28568         arm_general_register_operand predicate for operand 2 instead of
28569         register_operand.
28571 2012-01-27  Ian Lance Taylor  <iant@google.com>
28573         PR go/47656
28574         * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
28575         * builtins.c (expand_builtin_init_trampoline): Add onstack
28576         parameter.  Change caller.
28577         (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
28578         * tree.c (build_common_builtin_nodes): Declare
28579         __builtin_init_heap_trampoline.
28581 2012-01-27  Georg-Johann Lay  <avr@gjlay.de>
28583         * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
28584         tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
28585         * config/avr/avr.c: Ditto.
28586         (avr_regnames): Remove because unused.
28587         * config/avr/avr.md (*cpse.ne): New peephole.
28588         (*cpse.eq): New peephole from former cpse peepholes.
28590 2012-01-27  Michael Eager  <eager@eagercon.com>
28592         * config/microblaze.c (microblaze_emit_compare): Correct
28593         test after pcmp instruction.
28595 2012-01-27  Richard Guenther  <rguenther@suse.de>
28597         PR tree-optimization/52020
28598         * tree-sra.c (sra_modify_assign): Do not transform clobbers.
28600 2012-01-27  Richard Guenther  <rguenther@suse.de>
28602         * ipa-pure-const.c (check_stmt): Clobbers do not make a
28603         function non-const/pure.
28605 2012-01-27  Richard Guenther  <rguenther@suse.de>
28607         PR tree-optimization/50444
28608         * tree-sra.c (build_ref_for_offset): Properly adjust the
28609         MEM_REF type for unaligned accesses.
28611 2012-01-27  Richard Guenther  <rguenther@suse.de>
28613         PR tree-optimization/50444
28614         * expr.c (mem_ref_refers_to_non_mem_p): New function.
28615         (expand_assignment): Use it.  Properly handle misaligned
28616         bases when expanding stores to component references.
28617         (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
28618         refactor that case.
28620 2012-01-27  Andrey Belevantsev  <abel@ispras.ru>
28622         PR middle-end/51389
28623         * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
28624         * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
28625         * tree-data-ref.c (find_data_references_in_loop): Make static.
28626         (compute_all_dependences): Change return type to bool.  Bail out
28627         for too many datarefs in a loop.  Move the hunk resetting the data
28628         dependences vector from ...
28629         (compute_data_dependences_for_loop): ... here.  Account for
28630         compute_all_dependences returning false.
28631         (compute_data_dependences_for_bb): Likewise.
28632         * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
28633         * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
28635 2012-01-27  Richard Guenther  <rguenther@suse.de>
28637         PR middle-end/51959
28638         * expr.c (store_field): Use the alias-set of the scratch memory
28639         for storing to it.
28641 2012-01-27  Tom de Vries  <tom@codesourcery.com>
28643         PR tree-optimization/51990
28644         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
28645         WITH_SIZE_EXPR.
28646         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
28648 2012-01-27  Jakub Jelinek  <jakub@redhat.com>
28650         PR debug/52001
28651         * var-tracking.c (reverse_op): Don't add any reverse operation
28652         if V already has any constant locations.
28654 2012-01-27  Sandra Loosemore  <sandra@codesourcery.com>
28656         * doc/invoke.texi: Correct usage of "command line" (noun)
28657         vs "command-line" (adjective) throughout.
28659 2012-01-27  Sandra Loosemore  <sandra@codesourcery.com>
28661         * doc/invoke.texi (Language Independent Options): Move
28662         -Wcoverage-mismatch blurb from here....
28663         (Warning Options): ...to here.
28665 2012-01-27  Peter Bergner  <bergner@vnet.ibm.com>
28667         * config/rs6000/rs6000.c (rs6000_option_override_internal):
28668         Set rs6000_always_hint to false for 476.
28670 2012-01-27  Matthias Klose  <doko@ubuntu.com>
28672         * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
28673           system root.
28674         * incpath.c (add_standard_paths): Likewise.
28676 2012-01-27  Richard Henderson  <rth@redhat.com>
28678         * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
28679         * config/m68k/sync.md (atomic_test_and_set): Rename from
28680         sync_test_and_setqi and adjust the operands.
28681         (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
28682         and unconditionally enable.
28684 2012-01-27  Richard Henderson  <rth@redhat.com>
28686         * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
28687         * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
28688         (ldstub): Rename from ldstubqi.
28689         (ldstub<I24MODE>): Remove.
28691 2012-01-27  Richard Henderson  <rth@redhat.com>
28693         * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
28694         * c-cppbuiltin.c (cpp_atomic_builtins): Define
28695         __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
28696         * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
28697         * doc/tm.texi: Rebuild.
28699 2012-01-27  Richard Henderson  <rth@redhat.com>
28701         * optabs.c (gen_atomic_test_and_set): Remove default.
28702         (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
28704 2012-01-26  Jakub Jelinek  <jakub@redhat.com>
28706         PR rtl-optimization/51978
28707         * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
28708         (combine_reaching_defs): Likewise.
28709         (struct re_info): Remove.
28710         (add_removable_extension): Remove x and data arguments,
28711         add insn, insn_list and def_map.  Use the arguments directly
28712         instead of using struct re_info.
28713         (find_removable_extensions): Don't call add_removable_extension
28714         through note_stores, instead just call it with single_set
28715         result if non-NULL.
28716         (find_and_remove_re): Pass curr_cand->expr instead of
28717         PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
28719 2012-01-26  Michael Matz  <matz@suse.de>
28721         PR tree-optimization/46590
28722         * cfgexpand.c: Revert last change (r183305).
28723         * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
28724         regs.
28725         * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
28726         checking for emptiness.
28728 2012-01-26  Jakub Jelinek  <jakub@redhat.com>
28730         PR middle-end/51895
28731         * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
28732         non-addressable non-BLKmode base correctly.
28734 2012-01-26  Michael Matz  <matz@suse.de>
28736         PR tree-optimization/48794
28737         * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
28738         regions referenced from RESX/EH_DISPATCH.
28740 2012-01-26  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28742         * config/s390/s390.h: Make BRANCH_COST an option.
28743         * config/s390/s390.opt: New option -mbranch-cost.
28745 2012-01-26  Richard Henderson  <rth@redhat.com>
28747         Revert 2012-01-24 change:
28748         * trans-mem.c (requires_barrier): Do not instrument thread local
28749         variables and emit save/restore for them.
28751 2012-01-25  Jakub Jelinek  <jakub@redhat.com>
28753         PR middle-end/51986
28754         * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
28755         for pat == 0.
28757 2012-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
28759         * config/mips/mips.c (mips_small_data_pattern_1): Don't process
28760         ASM_OPERANDS.
28762 2012-01-25  Georg-Johann Lay  <avr@gjlay.de>
28764         PR target/49868
28765         Rename __pgm to __flash.
28766         Rename __pgm1 to __flash1.
28767         Rename __pgm2 to __flash2.
28768         Rename __pgm3 to __flash3.
28769         Rename __pgm4 to __flash4.
28770         Rename __pgm5 to __flash5.
28771         Rename __pgmx to __memx.
28772         * doc/extend.texi (AVR Named Address Spaces)
28773         Rename address space names as indicated above.
28774         * config/avr/avr.c (avr_addrspace): Ditto.
28776         * config/avr/avr-protos.h
28777         (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
28778         (avr_mem_pgm_p): Rename to avr_mem_flash_p.
28779         * config/avr/predicates.md: Ditto.
28780         * config/avr/avr.c Ditto, and
28781         (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
28782         (avr_decl_pgm_p): Rename to avr_decl_flash_p.
28784         * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
28785         (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
28786         (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
28787         (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
28788         (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
28789         (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
28790         (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
28791         * config/avr/avr.c: Ditto.
28792         * config/avr/avr.md: Ditto.
28794 2012-01-25  Jason Merrill  <jason@redhat.com>
28796         PR c++/51992
28797         * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
28799 2012-01-25  Jakub Jelinek  <jakub@redhat.com>
28801         PR tree-optimization/51987
28802         * tree-data-ref.c (get_references_in_stmt): Handle references in
28803         non-volatile GIMPLE_ASM.
28805 2012-01-25  Richard Guenther  <rguenther@suse.de>
28807         * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
28808         bases are dereferenced.
28810 2012-01-25  Andrey Belevantsev  <abel@ispras.ru>
28812         PR rtl-optimization/48374
28813         * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
28815 2012-01-25  Andrey Belevantsev  <abel@ispras.ru>
28817         * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
28818         compute_data_dependences_for_loop returns false.
28819         * tree-parloops.c (loop_parallel_p): Likewise.
28821 2012-01-25  Richard Guenther  <rguenther@suse.de>
28823         * tree.h (get_pointer_alignment_1): Declare.
28824         * builtins.c (get_pointer_alignment_1): New function.
28825         (get_pointer_alignment): Use it.
28827 2012-01-25  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
28829         PR rtl-optimization/48308
28830         * combine.c (enum undo_kind): Add UNDO_LINKS.
28831         (struct undo): Add member l to other_contents and where.
28832         (do_SUBST_LINK): New.
28833         (SUBST_LINK): New.
28834         (try_combine): Handle LOG_LINKS for the dummy i1 case.
28835         (undo_all): Handle UNDO_LINKS.
28837 2012-01-25  Richard Henderson  <rth@redhat.com>
28839         * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
28840         mem inputs.
28842 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
28844         * optabs.c (gen_atomic_test_and_set): Use each argument.
28846 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
28848         * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
28849         (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
28850         (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
28851         (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
28852         (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
28853         TARGET_PAIRED_SINGLE_FLOAT.
28855 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
28857         * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
28858         (in_struct, return_val): Remove MEM documentation.
28859         * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
28860         (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
28861         (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
28862         and MEM_SCALAR.
28863         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
28864         * cfgexpand.c (add_alias_set_conflicts): Likewise.
28865         * expr.c (store_field): Likewise.
28866         * function.c (assign_stack_temp_for_type): Likewise.
28867         * ifcvt.c (noce_try_cmove_arith): Likewise.
28868         * reload1.c (reload): Likewise.
28869         * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
28870         (alpha_set_memflags): Likewise.
28871         * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
28873 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
28875         * rtl.h (true_dependence, canon_true_dependence): Remove varies
28876         parameter.
28877         * alias.c (fixed_scalar_and_varying_struct_p): Delete.
28878         (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
28879         (true_dependence_1, true_dependence, canon_true_dependence): Remove
28880         varies parameter.
28881         * cselib.c (cselib_rtx_varies_p): Delete.
28882         (cselib_invalidate_mem): Update call to canon_true_dependence.
28883         * dse.c (record_store, check_mem_read_rtx): Likewise.
28884         (scan_reads_nospill): Likewise.
28885         * cse.c (check_dependence): Likewise.
28886         (cse_rtx_varies_p): Delete.
28887         * expr.c (safe_from_p): Update call to true_dependence.
28888         * ira.c (validate_equiv_mem_from_store): Likewise.
28889         (memref_referenced_p): Likewise.
28890         * postreload-gcse.c (find_mem_conflicts): Likewise.
28891         * sched-deps.c (sched_analyze_2): Likewise.
28892         * store-motion.c (load_kills_store): Likewise.
28893         * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
28894         * gcse.c (mems_conflict_for_gcse_p): Likewise.
28895         (compute_transp): Update call to canon_true_dependence.
28897 2012-01-25  Richard Henderson  <rth@redhat.com>
28899         * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
28900         (maybe_emit_atomic_test_and_set): New.
28901         (expand_sync_lock_test_and_set): Use it.
28902         (expand_atomic_test_and_set): Likewise.
28903         * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
28904         the implementation; clarify implementation defined details.
28905         * doc/md.texi (atomic_test_and_set): Document.
28907 2012-01-25  Richard Henderson  <rth@redhat.com>
28909         * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
28911 2012-01-25  Richard Henderson  <rth@redhat.com>
28913         PR target/51968
28914         * config/arm/arm.c (neon_split_vcombine): Emit deleted note
28915         to effect no-op split.
28917 2012-01-24  Aldy Hernandez  <aldyh@redhat.com>
28919         PR lto/51698
28920         * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
28921         (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
28922         (BT_FN_VOID_PTR_INT_SIZE): New.
28923         (BT_FN_UINT_UINT_VAR): Remove.
28924         (BT_FN_UINT32_UINT32_VAR): New.
28925         (BT_FN_DOUBLE_VPTR): Remove.
28926         (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
28928         * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
28929         (_ITM_changeTransactionMode): Same.
28930         (_ITM_memmoveRtWt): Change return type to void.
28931         (_ITM_memcpyRtWt): Same.
28932         (_ITM_memsetW): Same.
28933         (_ITM_RaRD): Change types to double.
28934         (_ITM_RD): Same.
28935         (_ITM_RaWD): Same.
28936         (_ITM_RfWD): Same.
28938         * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
28940 2012-01-24  Aldy Hernandez  <aldyh@redhat.com>
28941             Patrick Marlier  <patrick.marlier@gmail.com>
28943         * trans-mem.c (requires_barrier): Do not instrument thread local
28944         variables and emit save/restore for them.
28946 2012-01-24  Jason Merrill  <jason@redhat.com>
28948         PR c++/51812
28949         * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
28950         output static aliases.
28952 2012-01-24  Jakub Jelinek  <jakub@redhat.com>
28954         PR driver/47249
28955         * common.opt (-pie, -shared, pie, shared): Change from Common to
28956         Driver.
28957         * gcc.c (display_help): Display help for -pie and -shared.
28959 2012-01-24  Georg-Johann Lay  <avr@gjlay.de>
28961         PR target/49868
28962         * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
28963         Remove note on size/offset limitation.
28964         (AVR Variable Attributes): Add example how to read data located
28965         with progmem.  Refer to named address spaces.
28966         * doc/invoke.texi (AVR Options): Fix typo.
28968 2012-01-24  Richard Guenther  <rguenther@suse.de>
28970         Forward-port to trunk
28971         2010-09-21  Jakub Jelinek  <jakub@redhat.com>
28973         PR middle-end/45678
28974         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
28975         op0 isn't sufficiently aligned and there is movmisalignM
28976         insn for mode, use it to load op0 into a temporary register.
28978 2012-01-24  Jakub Jelinek  <jakub@redhat.com>
28980         PR target/51957
28981         * target.def (const_not_ok_for_debug_p): New hook.
28982         * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
28983         documentation.
28984         * doc/tm.texi: Regenerated.
28985         * dwarf2out.c (const_ok_for_output_1): If
28986         targetm.const_not_ok_for_debug_p returns true, fail.
28987         * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
28988         function.
28989         (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
28991 2012-01-23  Kai Tietz  <ktietz@redhat.com>
28993         PR target/51900
28994         * config/i386/predicates.md (symbolic_operand): Allow
28995         UNSPEC_PCREL as PIC expression for lea.
28996         * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
28997         * config/i386/i386.c (ix86_delegitimize_address): Handle
28998         UNSPEC_PCREL for none-MEM, too.
29000 2012-01-23  Aldy Hernandez  <aldyh@redhat.com>
29002         * trans-mem.c (ipa_tm_create_version): Set externally_visible.
29003         (ipa_tm_create_version_alias): Same.
29005 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
29007         PR libitm/51830
29008         * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
29009         * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
29011 2012-01-23  Aldy Hernandez  <aldyh@redhat.com>
29012             Patrick Marlier  <patrick.marlier@gmail.com>
29013             Iain Sandoe  <developer@sandoe-acoustics.co.uk>
29015         PR lto/51916
29016         * lto-wrapper.c (run_gcc): Pass the LTO section name to
29017         simple_object_start_read.
29019 2012-01-23  Richard Guenther  <rguenther@suse.de>
29022         PR tree-optimization/51895
29023         * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
29024         parameter decomposition into BLKmode components.
29026 2012-01-23  Eric Botcazou  <ebotcazou@adacore.com>
29028         * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
29029         fake variables for restrict-qualified pointers whose pointed-to type
29030         contains a placeholder.
29032 2012-01-23  Richard Guenther  <rguenther@suse.de>
29034         PR tree-optimization/51949
29035         * ipa-split.c (execute_split_functions): Do not split malloc functions.
29037 2012-01-23  Jakub Jelinek  <jakub@redhat.com>
29039         PR rtl-optimization/51933
29040         * ree.c (transform_ifelse): Return true right away if dstreg is
29041         already wider or equal to cand->mode.
29042         (enum ext_modified_kind, struct ext_modified, ext_state): New types.
29043         (make_defs_and_copies_lists): Remove defs_list and copies_list
29044         arguments, add state argument, just truncate state->work_list
29045         instead of always allocating and freeing the vector.  Assert that
29046         get_defs succeeds instead of returning 2.  Changed return type to bool.
29047         (merge_def_and_ext): Add state argument.  If SET_DEST doesn't
29048         have ext_src_mode, see if it has been modified already with the
29049         right kind of extension and has been extended before from the
29050         ext_src_mode.  If SET_DEST is already wider or equal to cand->mode,
29051         just return true.  Remember the original mode in state->modified array.
29052         (combine_reaching_defs): Add state argument.  Don't allocate and
29053         free here def_list, copied_list and vec vectors, instead just
29054         VEC_truncate the vectors in *state.  Don't handle outcome == 2 here.
29055         (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
29056         Add state variable, clear vectors in it, initialize state.modified
29057         if needed.  Free all the vectors at the end and state.modified too.
29058         Don't skip a candidate if the extension expression has been modified.
29060 2012-01-22  Douglas B Rupp  <rupp@gnat.com>
29062         PR target/47096
29063         * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
29064          configurations. Change triplet to i[34567]86-*-interix[3-9]*.
29065         (extra_options) interix.opt -> i386/interix.opt"
29066         (extra_objs):Add winnt-stubs.o
29067         * configure.ac: Add interix to target_os .comm on PE check.
29068         * configure: Regenerate.
29069         * config/interix3.h: Delete and move bits to..
29070         * config/interix.h: Delete and move bits to..
29071         * config/i386/i386-interix3.h: Delete and move bits to..
29072         * config/i386/i386-interix.h: ..here.
29073         (TARGET_CPU_DEFAULT): Remove redefinition.
29074         (TARGET_ASM_CONSTRUCTOR): Undefine.
29075         (SUBTARGET_SWITCHES): Define for ms-bitfields.
29076         (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
29077         (PTRDIFF_TYPE): Define.
29078         (LONG_DOUBLE_TYPE_SIZE): Define.
29079         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
29080         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
29081         (TARGET_SECTION_TYPE_FLAGS): Define.
29082         (ASM_DECLARE_FUNCTION_NAME): Define.
29083         (ASM_OUTPUT_EXTERNAL): Define.
29084         (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
29085         (ASM_OUTPUT_ALIGNED_BSS): Define.
29086         (PCC_BITFIELD_TYPE_MATTERS): Define.
29087         (USE_CONST_SECTION): Define.
29088         (SUBTARGET_ENCODE_SECTION_INFO): Remove.
29089         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
29090         (SUPPORTS_ONE_ONLY): Remove.
29091         (I386_PE_STRIP_ENCODING): Define.
29092         * config/interix.opt: Delete and move bits to..
29093         * config/i386/interix.opt: ..here. New.
29094         (mpe-aligned-commons): Add.
29095         * config/i386/t-interix: Add copyright header.
29096         (winnt-stubs.o): Add rule.
29098 2012-01-22  Jason Merrill  <jason@redhat.com>
29100         PR c++/51832
29101         * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
29102         for extra name aliases.
29104 2012-01-22  Eric Botcazou  <ebotcazou@adacore.com>
29106         PR rtl-optimization/51924
29107         * ree.c (combine_set_extension): Improve debugging message.
29108         (combine_reaching_defs): Likewise.
29109         (get_defs): Rename confusingly named variable.
29110         (find_and_remove_re): Skip a candidate if the extension expression has
29111         been modified.
29113 2012-01-21  Robert Millan  <rmh@gnu.org>
29114             Gerald Pfeifer  <gerald@pfeifer.com>
29116         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
29117         (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
29119 2012-01-20  Jakub Jelinek  <jakub@redhat.com>
29121         PR tree-optimization/51914
29122         * tree-vect-stmts.c (vectorizable_conversion): For
29123         cvt_type && modifier == WIDEN, put temporary with cvt_type
29124         at the beginning of vec_dsts and set vec_dest to temporary
29125         with vectype_out.
29127 2012-01-20  Eric Botcazou  <ebotcazou@adacore.com>
29129         * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
29131 2012-01-20  Tijl Coosemans  <tijl@coosemans.org>
29133         * config/i386/i386.c: Fix checks for !TARGET_MACHO.
29134         * config/rs6000/rs6000.c: Likewise.
29136 2012-01-20  Jakub Jelinek  <jakub@redhat.com>
29138         PR target/51915
29139         * config/arm/arm.c (arm_count_output_move_double_insns): Call
29140         output_move_double on a copy of operands array.
29142 2012-01-20  Cary Coutant  <ccoutant@google.com>
29143             Dodji Seketeli  <dodji@redhat.com>
29145         PR debug/45682
29146         * dwarf2out.c (copy_declaration_context): Return ref to parent
29147         of declaration DIE, if necessary.
29148         (remove_child_or_replace_with_skeleton): Add new parameter; update
29149         caller.  Place skeleton DIE under parent DIE of original declaration.
29150         Move call to copy_declaration_context to here ...
29151         (break_out_comdat_types): ... from here.
29153 2012-01-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29155         PR rtl-optimization/51856
29156         * reload.c (find_reloads_subreg_address): Set the address_reloaded
29157         flag to reloaded.
29159 2012-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
29161         PR target/51819
29162         * config/arm/arm.c (arm_print_operand): Correct output of alignment
29163         hints for neon loads and stores.
29165 2012-01-20  Georg-Johann Lay  <avr@gjlay.de>
29167         PR target/49868
29168         PR target/50887
29169         * doc/extend.texi (Named Address Spaces): Split into subsections.
29170         (AVR Named Address Spaces): New subsection.
29171         (M32C Named Address Spaces): New subsection.
29172         (RL78 Named Address Spaces): New subsection.
29173         (SPU Named Address Spaces): New subsection.
29174         (Variable Attributes): New anchor "AVR Variable Attributes".
29175         (AVR Variable Attributes): Rewrite and avoid wording
29176         "address space" in this context.
29177         * doc/invoke.texi (AVR Options): Rewrite and add documentation
29178         for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
29179         (AVR Built-in Macros): New subsubsection therein.
29180         * doc/md.texi (AVR constraints): Remove "C04", "R".
29182 2012-01-20  Richard Guenther  <rguenther@suse.de>
29184         PR tree-optimization/51903
29185         * tree-ssa-pre.c (eliminate): Properly purging of EH edges
29186         when removing stmts.
29188 2012-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
29190         PR target/50313
29191         * config/arm/arm.c (arm_load_pic_register): Use
29192         gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
29193         , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
29194         (arm_pic_static_addr): Likewise.
29195         (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
29196         (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
29197         * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
29198         (pic_load_addr_unified): New.
29200 2012-01-20  Andrey Belevantsev  <abel@ispras.ru>
29202         PR target/51106
29203         * function.c (instantiate_virtual_regs_in_insn): Use
29204         delete_insn_and_edges when removing a wrong asm insn.
29206 2012-01-19  Vladimir Makarov  <vmakarov@redhat.com>
29208         PR rtl-optimization/40761
29209         * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
29210         Add new member loop_num.
29211         (IRA_LOOP_NODE_BY_INDEX): Modify the check.
29212         (ira_build): Remove the parameter.
29214         * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
29215         (ira.c): Do not build CFG loops for one region allocation.  Remove
29216         argument from ira_build call.
29218         * ira-build.c (init_loop_tree_node): New function.
29219         (create_loop_tree_nodes): Use it.  Separate the case when CFG
29220         loops are not built.
29221         (more_one_region_p): Check current_loops.
29222         (finish_loop_tree_nodes): Separate the case when CFG loops are not
29223         built.
29224         (add_loop_to_tree): Process loop equal to NULL too.
29225         (form_loop_tree): Separate the case when CFG loops are not built.
29226         Use explicitly number for the root.
29227         (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
29228         an assertion.
29229         (ira_print_expanded_allocno, loop_compare_func): Use loop_num
29230         instead of loop->num.
29231         (mark_loops_for_removal): Ditto.  Use loop_num instead of loop->num.
29232         (mark_all_loops_for_removal): Ditto.
29233         (remove_unnecessary_regions): Separate the case when CFG loops
29234         are not built.
29235         (ira_build): Remove the parameter.  Use explicit number of regions
29236         when CFG loops are not built.
29238         * ira-color.c (print_loop_title): Separate the case for the root node.
29239         Use loop_num instead of loop->num.
29240         (move_spill_restore): Use loop_num instead of loop->num.
29242         * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
29243         (change_loop): Ditto.
29244         (change_loop): Use loop_num instead of loop->num.
29246         * ira-lives.c (process_bb_node_lives): Ditto.
29248         * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
29250         * ira-conflicts.c (print_allocno_conflicts): Ditto.
29252 2012-01-19  Jakub Jelinek  <jakub@redhat.com>
29254         PR libmudflap/40778
29255         * tree-mudflap.c (mf_artificial): New function.
29256         (execute_mudflap_function_ops, execute_mudflap_function_decls,
29257         mx_register_decls, mudflap_enqueue_decl): Use it.
29259         PR target/51876
29260         * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
29261         numbers in the insn pattern.
29263 2012-01-19  Michael Matz  <matz@suse.de>
29265         PR tree-optimization/46590
29266         * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
29267         use it in remembering which conflicts we already created.
29268         (add_scope_conflicts): Adjust call to above, (de)allocate helper
29269         bitmap.
29271 2012-01-19  Aldy Hernandez  <aldyh@redhat.com>
29273         PR lto/51280
29274         * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
29275         (merge_and_complain): Same.
29277 2012-01-19  Jakub Jelinek  <jakub@redhat.com>
29279         PR bootstrap/50237
29280         * config/initfini-array.h: Guard content of the header
29281         with #ifdef HAVE_INITFINI_ARRAY.
29282         * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
29283         Add initfini-array.h to tm_file here.
29284         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
29285         * config.gcc: Don't add initfini-array.h to tm_file here.
29286         * configure: Regenerated.
29288 2012-01-19  Andrey Belevantsev  <abel@ispras.ru>
29290         PR rtl-optimization/51505
29291         * df-problems.c (df_kill_notes): New parameter live. Update comment.
29292         Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
29293         (df_note_bb_compute): Update the call to df_kill_notes.
29295 2012-01-18  Aldy Hernandez  <aldyh@redhat.com>
29297         * trans-mem.c (requires_barrier): Remove call to is_global_var.
29299 2012-01-18  Richard Guenther  <rguenther@suse.de>
29301         * tree-ssa.c (useless_type_conversion_p): Remove special-casing
29302         of conversions to void *.
29304 2012-01-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29305             Richard Sandiford  <rdsandiford@googlemail.com>
29307         PR middle-end/50325
29308         PR middle-end/51192
29309         * optabs.h (simplify_expand_binop): Declare.
29310         * optabs.c (simplify_expand_binop): Make global.
29311         * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
29312         endian targets if the source cannot be exactly covered by word
29313         mode chunks.
29315 2012-01-17  Jakub Jelinek  <jakub@redhat.com>
29317         PR bootstrap/51872
29318         * hard-reg-set.h (struct hard_reg_set_container): New type.
29319         * target.h (struct hard_reg_set_container): Forward declare.
29320         * target.def (set_up_by_prologue): New target hook.
29321         * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
29322         * doc/tm.texi: Regenerated.
29323         * function.c (thread_prologue_and_epilogue_insns): Change
29324         set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
29325         Call targetm.set_up_by_prologue on it.
29326         * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
29327         (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
29329 2012-01-17  Nick Clifton  <nickc@redhat.com>
29331         * config/rx/rx.c (rx_can_use_simple_return): New function.
29332         * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
29333         * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
29335 2012-01-17  Richard Guenther  <rguenther@suse.de>
29337         PR middle-end/51782
29338         * expr.c (expand_assignment): Take address-space information
29339         from the address operand of MEM_REF and TARGET_MEM_REF.
29340         (expand_expr_real_1): Likewise.
29342 2012-01-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29344         * ira.c (do_reload): Make sure ira_dump_file is re-set if no
29345         reload dump is requested.
29347 2012-01-17  Aldy Hernandez  <aldyh@redhat.com>
29349         PR other/51165
29350         * trans-mem.c (requires_barrier): Call may_be_aliased.
29352 2012-01-17  Jakub Jelinek  <jakub@redhat.com>
29354         PR tree-optimization/51877
29355         * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
29356         call arguments and fndecls compare equal, instead return false if they
29357         don't.  Return true only if lhs1 and lhs2 are either both NULL, or
29358         both SSA_NAMEs that are valueized the same, or they satisfy
29359         operand_equal_p.
29361 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29363         * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
29364         Solaris 11+.
29365         * configure: Regenerate.
29367 2012-01-16  Jan Hubicka  <jh@suse.cz>
29369         PR c/12245
29370         PR c++/14179
29371         * convert.c (convert_to_integer): Use fold_convert for
29372         converting an INTEGER_CST to integer type.
29374 2012-01-16  Jason Merrill  <jason@redhat.com>
29376         PR c++/14179
29377         * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
29379 2012-01-16  Jakub Jelinek  <jakub@redhat.com>
29381         PR bootstrap/51860
29382         * config/s390/s390.c (s390_chunkify_start): Don't skip
29383         call insns followed by NOTE_INSN_CALL_ARG_LOCATION note.  Skip
29384         NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
29385         If insn is followed by NOTE_INSN_VAR_LOCATION or
29386         NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
29387         Don't use location of note insns.
29389         PR tree-optimization/51865
29390         * tree-inline.c (tree_function_versioning): Call remap_decl
29391         on DECL_RESULT whenever it has VOID_TYPE_P type.
29393 2012-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
29395         * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
29396         for calls to locally-binding MIPS16 functions if only the return
29397         type uses float regs.
29399 2012-01-15  Chung-Lin Tang  <cltang@codesourcery.com>
29400             Richard Sandiford  <rdsandiford@googlemail.com>
29402         * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
29403         (SYMBOL_32_HIGH): Likewise.
29404         (mips_output_tls_reloc_directive): Declare.
29405         * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
29406         (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
29407         * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
29408         (mips_lo_relocs, mips_hi_relocs): Make extern.
29409         (mips16_stub_function): Move up file.
29410         (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
29411         (mips_symbolic_constant_p): Likewise.  Remove SYMBOL_32_HIGH too.
29412         (mips_symbol_insns_1): Likewise.  Check mips_use_pcrel_pool_p.
29413         (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
29414         SYMBOL_FORCE_TO_MEM.  Only check mips_tls_symbol_ref_1 if it's false.
29415         (mips_get_tp): Add MIPS16 support.
29416         (mips_legitimize_tls_address): Remove MIPS16 sorry().
29417         Generalize DTPREL and TPREL handling.
29418         (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
29419         Add MIPS16 TLS support.
29420         (mips_output_tls_reloc_directive): New function.
29421         (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
29422         * config/mips/predicates.md (symbolic_operand_with_high)
29423         (tls_reloc_operand): New predicates.
29424         (force_to_mem_operand): Use mips_use_pcrel_pool_p.
29425         * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
29426         (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
29427         (*unshifted_high): New instruction.  Use it for MIPS16 high splitter.
29428         (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
29429         (*tls_get_tp_mips16_call_<mode>): Likewise.
29431 2012-01-15  Uros Bizjak  <ubizjak@gmail.com>
29433         PR rtl-optimization/51821
29434         * recog.c (peep2_find_free_register): Determine clobbered registers
29435         from insn pattern.
29437 2012-01-14  Denis Chertykov  <chertykov@gmail.com>
29439         PR target/50925
29440         * config/avr/avr-protos.h: Revert change of 2012-01-09.
29441         * config/avr/avr.c: Likewise.
29442         * config/avr/avr.h: Likewise.
29444 2012-01-13  Ian Lance Taylor  <iant@google.com>
29446         PR c++/50012
29447         * tree.h (TYPE_QUALS): Add cast to int.
29448         (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
29450 2012-01-13  Ian Lance Taylor  <iant@google.com>
29452         * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
29453         comparing param_index to VEC_length result.
29455 2012-01-13  Steven Bosscher  <steven@gcc.gnu.org>
29457         * c-decl.c: Do not include tree-mudflap.h
29458         * tree-optimize.c: Likewise.
29459         * Makefile.in: Update dependencies.
29461 2012-01-13  Richard Guenther  <rguenther@suse.de>
29463         PR middle-end/8081
29464         * gimplify.c (gimplify_modify_expr_rhs): For calls with a
29465         variable-sized result always use RSO.
29467 2012-01-12  DJ Delorie  <dj@redhat.com>
29469         * cfgexpand.c (convert_debug_memory_address): Allow any valid
29470         pointer type, not just the default pointer type.
29472 2012-01-09  Richard Henderson  <rth@redhat.com>
29473             Denis Chertykov  <chertykov@gmail.com>
29475         PR target/50925
29476         * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
29477         * config/avr/avr.c (avr_can_eliminate): Simplify.
29478         (avr_initial_elimination_offset): Likewise.
29479         (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
29480         (expand_epilogue): Likewise.
29481         (avr_legitimize_address): Gut.
29482         (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
29483         (avr_hard_regno_nregs): New.
29484         (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
29485         (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
29486         * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
29487         add soft frame pointer.
29488         (CALL_USED_REGISTERS): Likewise.
29489         (REG_CLASS_CONTENTS): Likewise.
29490         (REGISTER_NAMES): Likewise.
29491         (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
29492         (HARD_FRAME_POINTER_REGNUM): New.
29493         (FRAME_POINTER_REGNUM): Use soft frame pointer.
29494         (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
29495         remove the HARD_FRAME_POINTER self-elimination.
29497 2012-01-12  Georg-Johann Lay  <avr@gjlay.de>
29499         PR target/51756
29500         * config/avr/avr.c (avr_encode_section_info): Test for absence of
29501         DECL_EXTERNAL when checking for initializers of progmem variables.
29503 2012-01-12  Ira Rosen  <irar@il.ibm.com>
29505         PR tree-optimization/51799
29506         * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
29507         that the last operation is a type demotion.
29509 2012-01-12  Uros Bizjak  <ubizjak@gmail.com>
29511         * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
29512         (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
29514 2012-01-11  Jakub Jelinek  <jakub@redhat.com>
29516         PR bootstrap/51796
29517         * combine.c (distribute_notes): If i3 is a noreturn call,
29518         allow old_size to be equal to args_size and make sure the
29519         noreturn call gets REG_ARGS_SIZE note.
29520         * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
29521         on noreturn calls even when the delta is 0.
29523 2012-01-11  Nathan Sidwell  <nathan@acm.org>
29525         * gcov.c (STRING_SIZE): Remove.
29526         (generate_results): Erase annotations for source files with no
29527         coverage information.
29528         (read_line): New.
29529         (output_lines): Use it.
29531 2012-01-11  Eric Botcazou  <ebotcazou@adacore.com>
29533         * gimple.h (gimplify_body): Remove first argument.
29534         * gimplify.c (copy_if_shared): Add DATA argument.  Do not create the
29535         pointer set here, instead just pass DATA to walk_tree.
29536         (unshare_body): Remove BODY_P argument and adjust.  Create the pointer
29537         set here and invoke copy_if_shared on the size trees of DECL_RESULT.
29538         (unvisit_body): Likewise, but with unmark_visited.
29539         (gimplify_body): Remove BODY_P argument and adjust.
29540         (gimplify_function_tree): Adjust call to gimplify_body.
29541         * omp-low.c (finalize_task_copyfn): Likewise.
29543 2012-01-11  Eric Botcazou  <ebotcazou@adacore.com>
29545         * tree.h (build_function_decl_skip_args): Add boolean parameter.
29546         (build_function_type_skip_args): Delete.
29547         * tree.c (build_function_type_skip_args): Make static and add
29548         SKIP_RETURN parameter.  Fix thinko in the handling of variants.
29549         (build_function_decl_skip_args): Add SKIP_RETURN parameter and
29550         pass it to build_function_type_skip_args.
29551         * cgraph.h (cgraph_function_versioning): Add boolean parameter.
29552         (tree_function_versioning): Likewise.
29553         * cgraph.c (cgraph_create_virtual_clone): Adjust call to
29554         build_function_decl_skip_args.
29555         * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
29556         and pass it to build_function_decl_skip_args/tree_function_versioning.
29557         (cgraph_materialize_clone): Adjust call to tree_function_versioning.
29558         * ipa-inline-transform.c (save_inline_function_body): Likewise.
29559         * trans-mem.c (ipa_tm_create_version): Likewise.
29560         * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
29561         * tree-inline.c (declare_return_variable): Remove always-true test.
29562         (tree_function_versioning): Add SKIP_RETURN parameter.  If the function
29563         returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
29564         * ipa-split.c (split_function): Skip the return value for the split
29565         part if it doesn't return.
29567 2012-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29569         PR tree-optimization/49642
29570         * ipa-split.c (forbidden_dominators): New variable.
29571         (check_forbidden_calls): New function.
29572         (dominated_by_forbidden): Likewise.
29573         (consider_split): Check for forbidden dominators.
29574         (execute_split_functions): Initialize and free forbidden
29575         dominators info; call check_forbidden_calls.
29577 2012-01-11  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
29579         * config/arm/arm.md (mov_notscc): Use MVN for false condition.
29581 2012-01-11  Nick Clifton  <nickc@redhat.com>
29583         * config/rx/rx.md (return): Define pattern.
29585 2012-01-11  Richard Guenther  <rguenther@suse.de>
29587         * doc/extend.texi (malloc attribute): Adjust according to
29588         implementation.
29590 2012-01-10  Aldy Hernandez  <aldyh@redhat.com>
29591             Patrick Marlier  <patrick.marlier@gmail.com>
29593         PR middle-end/51516
29594         * trans-mem.c (get_cg_data): Traverse aliases if requested.
29595         (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
29596         (ipa_tm_note_irrevocable): Same.
29597         (ipa_tm_scan_irr_block): Same.
29598         (ipa_tm_decrement_clone_counts): Same.
29599         (ipa_tm_scan_irr_function): Same.
29600         (ipa_tm_create_version_alias): Same.
29601         (ipa_tm_create_version): Same.
29602         (ipa_tm_transform_calls_redirect): Same.
29603         (ipa_tm_transform_calls): Same.
29604         (ipa_tm_transform_transaction): Same.
29605         (ipa_tm_execute): Same.
29607 2012-01-10  Richard Guenther  <rguenther@suse.de>
29609         PR middle-end/51806
29610         * opts.c (common_handle_option): Handle -Werror.
29612 2012-01-10  Andreas Schwab  <schwab@linux-m68k.org>
29614         * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
29615         operand number.
29617 2012-01-10  Jason Merrill  <jason@redhat.com>
29619         * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
29620         information.
29622 2012-01-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29624         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
29625         supports R_386_TLS_GD_PLT reloc.
29626         (gcc_cv_as_ix86_tlsldmplt): Check if linker
29627         supports R_386_TLS_LDM_PLT reloc.
29628         * configure: Regenerate.
29629         * config.in: Regenerate.
29631 2012-01-10  Georg-Johann Lay  <avr@gjlay.de>
29633         PR target/49868
29634         Extend __pgmx semantics to linearize memory.
29635         * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
29636         determine if code comes inline or from libgcc.
29637         (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
29638         (movmem_qi, movmem_qi): Set constraint #2 to "n".
29639         (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
29640         (movmemx_qi, movmemx_hi): New insns.
29641         (xload_<mode>_libgcc): Rewrite to new insn condition.
29642         (xload_<mode>): Remove insns.
29643         * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
29644         cases that don't satisfy avr_xload_libgcc_p().
29645         (avr_addr_space_convert): Allow converting in any direction.
29646         (avr_addr_space_subset_p): Return always true.
29647         (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
29648         (avr_emit_movmemhi): Ditto.
29649         (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
29650         (avr_out_movmem): Ditto.
29651         (AVR_SYMBOL_FLAG_PROGMEM): New macro.
29652         (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
29653         (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
29654         (avr_encode_section_info): Encode 'progmem' in symbol flags.
29655         (output_reload_in_const): Don't zero-extend any 24-bit symbols.
29657 2012-01-10  Richard Guenther  <rguenther@suse.de>
29659         PR tree-optimization/50913
29660         * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
29661         Require data-refs to be representable by Graphite with respect
29662         to any loop nest.
29664 2012-01-10  Uros Bizjak  <ubizjak@gmail.com>
29666         * config/i386/constraints.md ("L"): Return true for 0xffffffff.
29667         * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
29669 2012-01-10  Tom de Vries  <tom@codesourcery.com>
29671         PR rtl-optimization/51271
29672         * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
29673         handling annulled branch.
29675 2012-01-10  Richard Henderson  <rth@redhat.com>
29677         * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
29678         TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
29679         struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
29680         arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
29681         arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
29682         arm_expand_vec_perm_const): New.
29683         * config/arm/arm-protos.h: Update.
29684         * config/arm/neon.md (UNSPEC_VCONCAT): New.
29685         (*neon_vswp<VDQX>): New.
29686         (neon_vcombine<VDX>): Use neon_split_vcombine.
29687         (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
29688         * config/arm/vec-common.md (vec_perm_const<VALL>): New.
29689         (vec_perm<VE>): New.
29691 2012-01-10  Richard Henderson  <rth@redhat.com>
29693         * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
29694         use it if reload_completed.
29695         (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
29696         arm_output_asm_insn, arm_process_output_memory_barrier,
29697         arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
29698         arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
29699         arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
29700         arm_process_output_sync_insn, arm_output_sync_insn,
29701         arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
29702         (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
29703         (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
29704         (emit_unlikely_jump): New.
29705         (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
29706         (arm_split_atomic_op): New.
29707         * config/arm/arm-protos.h: Update.
29708         * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
29709         (struct arm_sync_generator): Remove.
29710         * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
29711         VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
29712         (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
29713         (VUNSPEC_LL, VUNSPEC_SC): New.
29714         (sync_result, sync_memory, sync_required_value, sync_new_value,
29715         sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
29716         (attr length): Don't use arm_sync_loop_insns.
29717         (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
29718         (movsfcc, movdfcc): Likewise.
29719         * config/arm/constraints.md (Ua): New.
29720         * config/arm/prediates.md (mem_noofs_operand): New.
29721         (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
29722         (sync_clobber, sync_t2_reqd): Remove.
29723         (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
29724         (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
29725         (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
29726         (arm_sync_compare_and_swap<SIDI>): Remove.
29727         (arm_sync_compare_and_swap<NARROW>): Remove.
29728         (arm_sync_lock_test_and_set<SIDI>): Remove.
29729         (arm_sync_lock_test_and_set<NARROW>): Remove.
29730         (arm_sync_new_<syncop><SIDI>): Remove.
29731         (arm_sync_new_<syncop><NARROW>): Remove.
29732         (arm_sync_new_nand<SIDI>): Remove.
29733         (arm_sync_new_nand<NARROW>): Remove.
29734         (arm_sync_old_<syncop><SIDI>): Remove.
29735         (arm_sync_old_<syncop><NARROW>): Remove.
29736         (arm_sync_old_nand<SIDI>): Remove.
29737         (arm_sync_old_nand<NARROW>): Remove.
29738         (*memory_barrier): Merge arm_output_memory_barrier.
29739         (atomic_compare_and_swap<QHSD>): New.
29740         (atomic_compare_and_swap<NARROW>_1): New.
29741         (atomic_compare_and_swap<SIDI>_1): New.
29742         (atomic_exchange<QHSD>): New.
29743         (cas_cmp_operand, cas_cmp_str): New.
29744         (atomic_op_operand, atomic_op_str): New.
29745         (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
29746         (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
29747         (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
29748         (arm_load_exclusive<NARROW>): New.
29749         (arm_load_exclusivesi, arm_load_exclusivedi): New.
29750         (arm_store_exclusive<QHSD>): New.
29752 2012-01-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
29754         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
29755         reload patterns if -mvsx-scalar-memory.
29757         * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
29758         generated, even -mno-vsx-scalar-double was used.
29759         (vsx_xscvdpsp_scalar): Likewise.
29760         (vsx_xscvspdp_scalar2): Likewise.
29762 2012-01-09  Tom de Vries  <tom@codesourcery.com>
29763             Andrew Pinski  <apinski@cavium.com>
29765         PR debug/51471
29766         * reorg.c (fill_slots_from_thread): Don't speculate
29767         frame-related insns.
29769 2012-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
29771         * sched-int.h (bb_note): Move to...
29772         * basic-block.h: ...here.
29773         * haifa-sched.c (bb_note): Move to...
29774         * cfgrtl.c: ...here.
29775         * function.c (next_block_for_reg): New function.
29776         (move_insn_for_shrink_wrap): Likewise.
29777         (prepare_shrink_wrap): Rewrite to use the above.
29779 2012-01-09  Aldy Hernandez  <aldyh@redhat.com>
29781         * gimple.c (is_gimple_non_addressable): Remove.
29782         * gimple.h: Remove is_gimple_non_addressable.
29783         * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
29784         is_gimple_non_addressable.
29785         * trans-mem.c (expand_assign_tm): Same.
29787 2012-01-09  Richard Guenther  <rguenther@suse.de>
29789         PR tree-optimization/51775
29790         * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
29791         * tree-ssa-pre.c (eliminate): Properly fixup EH info.
29793 2012-01-09  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
29795         * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
29796         tuning parameters.
29797         * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
29799 2012-01-09  Richard Guenther  <rguenther@suse.de>
29801         * tree-streamer-out.c (write_ts_optimization): Fix spelling.
29803 2012-01-08  Jan Hubicka  <jh@suse.cz>
29805         PR tree-optimize/51680
29806         * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
29807         on when known_vals needs to be computed; cleanup.
29809 2012-01-08  Jan Hubicka  <jh@suse.cz>
29811         PR tree-optimize/51694
29812         * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
29814 2012-01-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
29816         * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
29817         for -std=c++98 and -std=c++11 too.
29819 2012-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
29821         * cfgloop.c (cancel_loop): Add free() of bbs array.
29823 2012-01-07  Jan Hubicka  <jh@suse.cz>
29825         PR tree-optimization/51600
29826         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
29827         that benefits small functions.
29829 2012-01-07  Jan Hubicka  <jh@suse.cz>
29831         * ipa-inline.c (want_inline_small_function_p): Fix formating.
29833 2012-01-07  Jan Hubicka  <jh@suse.cz>
29835         PR tree-optimization/51680
29836         * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
29837         whose inlining reduce unit size.
29839 2012-01-07  Alexandre Oliva  <aoliva@redhat.com>
29841         PR bootstrap/51725
29842         * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
29843         Add canonical node to containing_mem chain after the non-canonical
29844         one, even if there weren't any locs to propagate.
29845         (remove_useless_values): Keep only canonical values.
29846         (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
29847         (cselib_invalidate_mem): Likewise.  Ensure v is canonical, and
29848         canonicalize mem_chain elements that are not discarded.
29850 2012-01-06  Jakub Jelinek  <jakub@redhat.com>
29852         PR target/47333
29853         * cgraphunit.c (cgraph_optimize): Call output_weakrefs
29854         before emitting functions.
29856         PR gcov-profile/50127
29857         * bb-reorder.c (partition_hot_cold_basic_blocks): Call
29858         clear_aux_for_blocks.
29860 2012-01-06  Alexandre Oliva  <aoliva@redhat.com>
29862         PR debug/51746
29863         * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
29865 2012-01-06  Arnaud Charlet  <charlet@adacore.com>
29867         * c-decl.c (ext_block): Moved up.
29868         (collect_all_refs, for_each_global_decl): Take ext_block into account.
29870 2012-01-06  Han Shen  <shenhan@google.com>
29872         Translate built-in include paths for sysroot.
29873         * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
29874         (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
29876         * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
29877         GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
29879         * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
29880         control whether sysroot should be prepended to gxx include dir.
29882         * configure: Regenerate.
29884 2012-01-06  Torvald Riegel  <triegel@redhat.com>
29886         PR rtl-optimization/51771
29887         * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
29888         * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
29890 2012-01-05  Eric Botcazou  <ebotcazou@adacore.com>
29892         PR tree-optimization/51315
29893         * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
29894         (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
29896 2012-01-05  Uros Bizjak  <ubizjak@gmail.com>
29898         PR target/51681
29899         * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
29900         for shrp pattern.  Correctly handle and fixup shift variable.
29901         Return false when shift > nelt for BYTES_BIG_ENDIAN target.
29903 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
29905         PR debug/51762
29906         * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
29907         note when !ACCUMULATE_OUTGOING_ARGS.
29909 2012-01-05  Eric Botcazou  <ebotcazou@adacore.com>
29911         * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
29912         condition.
29913         (extract_range_from_unary_expr_1): Avoid useless computations.
29915 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
29917         PR rtl-optimization/51767
29918         * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
29919         of jump_block and add an extra edge for degenerated asm gotos.
29921         PR middle-end/51768
29922         * stmt.c (check_unique_operand_names): Don't ICE during error
29923         reporting if i is from labels chain.
29925         PR middle-end/44777
29926         * profile.c (branch_prob): Split bbs that have exit edge
29927         and need a fake entry edge too.
29929 2012-01-05  Jan Hubicka  <jh@suse.cz>
29931         PR middle-end/49710
29932         * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
29933         unlooping loops.
29935 2012-01-05  Richard Guenther  <rguenther@suse.de>
29937         PR lto/50490
29938         * tree-streamer-out.c (write_ts_optimization): New function.
29939         (streamer_write_tree_body): Call it.
29940         * tree-streamer-in.c (lto_input_ts_optimization): New function.
29941         (streamer_read_tree_body): Call it.
29942         * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
29944 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
29946         PR middle-end/51761
29947         * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
29948         * gimplify.c (gimplify_cleanup_point_expr): Save and set
29949         in_cleanup_point_expr before gimplify_stmt call and restore it
29950         afterwards.
29951         (gimplify_target_expr): Don't add {CLOBBER} cleanup if
29952         in_cleanup_point_expr is false.
29954 2012-01-05  Richard Guenther  <rguenther@suse.de>
29956         PR middle-end/51764
29957         * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
29958         to c.opt.
29959         * toplev.c (process_options): Reject combining mudflap and LTO.
29960         * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
29962 2012-01-05  Richard Guenther  <rguenther@suse.de>
29964         PR tree-optimization/51760
29965         * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
29966         not VARYING.
29967         (bit_value_unop): Handle UNDEFINED operands.
29968         (bit_value_binop): Likewise.
29970 2012-01-05  Georg-Johann Lay  <avr@gjlay.de>
29972         * config/avr/avr.c (avr_replace_prefix): Remove.
29973         (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
29974         (avr_asm_function_rodata_section): Ditto.
29975         (avr_asm_select_section): Ditto.
29977 2012-01-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
29979         * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
29980         insertion.
29982 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
29984         PR bootstrap/51648
29985         * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
29986         calls that have any non-fake successor edges.
29988         PR debug/51746
29989         * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
29991 2012-01-04  Eric Botcazou  <ebotcazou@adacore.com>
29993         PR tree-optimization/51624
29994         * tree-sra.c (build_ref_for_model): When replicating a chain of
29995         COMPONENT_REFs, stop as soon as the offset would become negative.
29997 2012-01-04  Jakub Jelinek  <jakub@redhat.com>
29999         PR debug/51695
30000         * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
30001         in .debug_loc on the floor.
30003 2012-01-04  Andrew Pinski  <apinski@cavium.com>
30005         * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
30007 2012-01-04  Andrew Pinski  <apinski@cavium.com>
30008             Adam Nemet  <anemet@caviumnetworks.com>
30010         * config/mips/mips.md (size): Add SI and DI.
30011         (SIZE): New mode attribute.
30012         (U): New code attribute.
30013         * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
30014         (mips_lbux_<mode>): Delete.
30015         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
30016         (mips_lhx): Use gen_mips_lhx_extsi.
30017         (mips_lhx_<mode>): Delete.
30018         (mips_lwx): Delete.
30019         (mips_l<size>x): New expand.
30020         (mips_lwx_<mode>): Delete.
30021         (mips_l<GPR:size>x_<P:mode>): New pattern.
30022         (*mips_lw<u>x_<P:mode>_ext): Likewise.
30023         * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
30024         * config/mips/mips.c (mips_lx_address_p): New function.
30025         (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
30026         (dsp64): New availability predicate.
30027         (mips_builtins): Add an entry for __builtin_mips_ldx.
30028         * config/mips/mips.h (ISA_HAS_LBX): New define.
30029         (ISA_HAS_LBUX): Likewise.
30030         (ISA_HAS_LHX): Likewise.
30031         (ISA_HAS_LHUX): Likewise.
30032         (ISA_HAS_LWX): Likewise.
30033         (ISA_HAS_LWUX): Likewise.
30034         (ISA_HAS_LDX): Likewise.
30035         * doc/extend.texi (__builtin_mips_ldx): Document.
30037 2012-01-04  Tristan Gingold  <gingold@adacore.com>
30039         * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
30040         when long pointers are used.
30041         * config.build (*-*-*vms*): Handle all OpenVMS targets.
30042         (alpha64-dec-*vms*, alpha*-dec-*vms*)
30043         (ia64-hp-*vms*): Remove.
30044         * config/vms/xm-vms64.h: Delete.
30046 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
30048         PR middle-end/51472
30049         * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
30051 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
30053         * opts.c (finish_options): Remove duplicate sorry.
30055 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
30057         PR middle-end/51696
30058         * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
30059         correctly.
30061 2012-01-04  Richard Guenther  <rguenther@suse.de>
30063         PR middle-end/51750
30064         * tree.c (size_low_cst): New function.
30065         * tree.h (size_low_cst): Declare.
30066         * fold-const.c (fold_comparison): Use it to extract the low
30067         part of the POINTER_PLUS_EXPR offset.
30069 2012-01-04  Georg-Johann Lay  <avr@gjlay.de>
30071         Fix clearing ZERO_REG
30072         * config/avr/avr.md (cc): Add alternative "ldi".
30073         (movqi_insn): Use it in cc attribute.
30074         * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
30075         (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
30076         (output_reload_insisf): Use ZERO_REG to pre-clear register.
30078 2012-01-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30080         * configure: Regenerate.
30082 2012-01-04  Richard Guenther  <rguenther@suse.de>
30084         PR tree-optimization/49651
30085         * tree-ssa-structalias.c (type_can_have_subvars): New function.
30086         (var_can_have_subvars): Use it.
30087         (get_constraint_for_1): Only consider subfields if there can be any.
30089 2012-01-03  Jakub Jelinek  <jakub@redhat.com>
30091         PR bootstrap/51725
30092         * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
30093         to its new canonical_cselib_val and the cselib_val was in
30094         first_containing_mem chain, but the canonical_cselib_val was not,
30095         add the latter into the chain.
30096         (cselib_invalidate_mem): Compare canonical_cselib_val of
30097         addr_list chain elt with v.
30099         PR pch/51722
30100         * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
30101         dwarf2out_undef): Allocate e.info using ggc_strdup instead
30102         of xstrdup.
30103         (output_macinfo_op): Don't ggc_strdup fd->filename.
30104         (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
30105         then ggc_strdup it.  Don't free inc->info or cur->info.
30106         (output_macinfo): Don't free ref->info or file->info.
30108 2012-01-03  Ira Rosen  <irar@il.ibm.com>
30110         PR tree-optimization/51269
30111         * tree-vect-loop-manip.c (set_prologue_iterations): Make
30112         first_niters a pointer.
30113         (slpeel_tree_peel_loop_to_edge): Likewise.
30114         (vect_do_peeling_for_loop_bound): Update call to
30115         slpeel_tree_peel_loop_to_edge.
30116         (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
30117         here.  Remove it from the parameters list.
30118         (vect_do_peeling_for_alignment): Update calls and compute
30119         wide_prolog_niters.
30121 2012-01-03  Richard Guenther  <rguenther@suse.de>
30123         PR tree-optimization/51070
30124         * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
30125         Properly handle calls.
30127 2012-01-03  Richard Guenther  <rguenther@suse.de>
30129         PR tree-optimization/51692
30130         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
30131         the LHS of allocation stmts.
30133 2012-01-03  Olivier Hainque  <hainque@adacore.com>
30135         * system.h: Prior to #define, #undef fopen and freopen unconditionally.
30137 2012-01-03  Olivier Hainque  <hainque@adacore.com>
30139         * collect2.c (main): In AIX specific computations for vector
30140         insertions, use CONST_CAST2 to cast from char ** to const char **.
30142 2012-01-03  Richard Guenther  <rguenther@suse.de>
30144         PR debug/51650
30145         * dwarf2out.c (dwarf2out_finish): Always create a DIE for
30146         the context of a limbo DIE when it does not already exist.
30148 2012-01-03  Jakub Jelinek  <jakub@redhat.com>
30150         PR tree-optimization/51719
30151         * value-prof.c (gimple_ic): When indirect call isn't noreturn,
30152         but direct call is, clear direct call's lhs and don't add fallthrough
30153         edge from dcall_bb to join_bb and PHIs.
30155 2012-01-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30157         * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
30158         the instructions emitted by the pattern.
30159         ("*TDC_insn_<mode>"): Add comment.
30161 2012-01-03  Richard Guenther  <rguenther@suse.de>
30163         PR middle-end/51730
30164         * fold-const.c (fold_comparison): Properly canonicalize
30165         tree offset and HOST_WIDE_INT bit position.
30167 2012-01-02  Uros Bizjak  <ubizjak@gmail.com>
30169         * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
30170         operands for extzv pattern.
30172 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
30174         PR bootstrap/51725
30175         * cselib.c (add_mem_for_addr): Call canonical_cselib_val
30176         on mem_elt first.
30178 2012-01-02  Sandra Loosemore  <sandra@codesourcery.com>
30180         * doc/invoke.texi (-flto and related options): Copy-edit.
30182 2012-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
30184         * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
30186 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
30188         * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
30189         New patterns.
30191 2012-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
30193         * expr.h (move_by_pieces_ninsns): Declare.
30194         * expr.c (move_by_pieces_ninsns): Make external.
30195         * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
30196         (mips_store_by_pieces_p): Likewise.
30197         * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
30198         (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
30199         * config/mips/mips.c (mips_move_by_pieces_p): New function.
30200         (mips_store_by_pieces_p): Likewise.
30202 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
30204         * passes.c (register_one_dump_file): Free full_name.
30206         * reload1.c (reload): Don't allocate reg_max_ref_width here.
30207         (calculate_elim_costs_all_insns): Free offsets_at and
30208         offsets_known_at at the end and clear the pointers.
30210 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
30212         * config/avr/avr.opt (-mbranch-cost): Fix double definition of
30213         this option introduced in r180739.
30215 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
30217         PR target/51345
30218         * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
30219         (tmake_file target=avr): Add avr/t-multilib.
30221         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
30222         to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
30223         * config/avr/genmultilib.awk: New file.
30224         * config/avr/t-multilib: New auto-generated file.
30225         * config/avr/multilib.h: New auto-generated file.
30226         * config/avr/t-avr (AVR_MCUS): New variable.
30227         (genopt.sh): Use it.
30228         (s-mlib): Depend on t-multilib.
30229         (t-multilib, multilib.h): New dependencies.
30230         (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
30231         (MULTILIB_OPTIONS): Remove.
30232         (MULTILIB_MATCHES): Remove.
30233         (MULTILIB_DIRNAMES): Remove.
30234         (MULTILIB_EXCEPTIONS): Remove:
30235         * config/avr/genopt.sh: Don't use hard coded file name;
30236         pass AVR_MCUS from t-avr instead.
30238 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
30240         * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
30242 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
30244         Implement light-weight DImode support.
30245         * config/avr/avr-dimode.md: New file.
30246         * config/avr/avr.md: Include it.
30247         (adjust_len): Add plus64, compare64.
30248         (HIDI): Remove code iterator.
30249         (code_stdname): New code attribute.
30250         (rotx, rotsmode): Remove DI.
30251         (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
30252         as code iterator.
30253         * config/avr/avr-protos.h (avr_have_dimode): New.
30254         (avr_out_plus64, avr_out_compare64): New.
30255         * config/avr/avr.c (avr_out_compare): Handle DImode.
30256         (avr_have_dimode): New variable definition and initialization.
30257         (avr_out_compare64, avr_out_plus64): New functions.
30258         (avr_out_plus_1): Use simplify_unary_operation to negate xval.
30259         (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
30260         (avr_compare_pattern): Skip DImode comparisons.
30262 2012-01-02  Revital Eres  <revital.eres@linaro.org>
30264         * ddg.c (def_has_ccmode_p): New function.
30265         (add_cross_iteration_register_deps,
30266         create_ddg_dep_from_intra_loop_link): Call it.
30268 2012-01-02  Richard Guenther  <rguenther@suse.de>
30270         PR other/51679
30271         * invoke.texi (fassociative-math): Remove spurious paranthesis.
30273 2012-01-01  Jakub Jelinek  <jakub@redhat.com>
30275         * gcc.c (process_command): Update copyright notice dates.
30276         * gcov.c (print_version): Likewise.
30277         * gcov-dump.c (print_version): Likewise.
30278         * mips-tfile.c (main): Likewise.
30279         * mips-tdump.c (main): Likewise.
30281 2012-01-01  Ira Rosen  <irar@il.ibm.com>
30283         PR tree-optimization/51704
30284         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
30285         a use is inside the basic block or loop before accessing its vect info.
30287 2012-01-01  Jan Hubicka  <jhjh@suse.cz>
30289         PR rtl-optimization/51069
30290         * cfgloopmanip.c (remove_path): Removing path making irreducible
30291         region unconditional makes BB part of the region.
30293 2012-01-01  Jakub Jelinek  <jakub@redhat.com>
30295         PR tree-optimization/51683
30296         * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
30297         calls with side-effects.
30298         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
30300 Copyright (C) 2012 Free Software Foundation, Inc.
30302 Copying and distribution of this file, with or without modification,
30303 are permitted in any medium without royalty provided the copyright
30304 notice and this notice are preserved.