OSDN Git Service

* sched-ebb.c (schedule_ebb): No longer static. Remove declaration.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
2
3         * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
4         modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
5         modulo_last_stage): New static variables.
6         (set_modulo_params, discard_delay_pairs_above): New functions.
7         (struct delay_pair): New member stages.
8         (htab_i2_traverse, htab_i1_traverse): New static functions.
9         (record_delay_slot_pair): New arg stages.  All callers changed.
10         Record it.
11         (pair_delay): Take stages into account.
12         (add_delay_dependencies): Don't do so for stage pairs.
13         (struct sched_block_state): New member modulo_epilogue.
14         (save_backtrack_point): Don't set SHADOW_P for stage pairs.
15         (unschedule_insns_until): Decrease modulo_insns_scheduled.
16         Set HARD_DEP without using or.
17         (resolve_dependencies): New static function.
18         (prune_ready_list): New arg modulo_epilogue_p.  All callers changed.
19         If it is true, allow only insns with INSN_EXACT_TICK set.
20         (schedule_block): Return bool, always true for normal scheduling,
21         true or false depending on modulo scheduling success otherwise.
22         Add bookkeeping for modulo scheduling, and call resolve_dependencies
23         on everything left over after a modulo schedule.
24         (haifa_sched_init): Remove check_cfg call.  Clear modulo_ii.
25         * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
26         declarations.
27         (set_modulo_params, discard_delay_pairs_above): Declare.
28         * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
29         * doc/invoke.texi (--param): Document it.
30
31         * sched-ebb.c (schedule_ebb): No longer static.  Remove declaration.
32         New arg modulo_scheduling.  All callers changed.  Move note handling
33         code here from schedule_ebbs.
34         (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
35         out of schedule_ebbs.
36         (schedule_ebbs): Call them.  Remove note handling code moved to
37         schedule_ebb.
38         * sched-int.h (schedule_ebb, schedule_ebbs_init,
39         schedule_ebbs_finish): Declare.
40
41 2011-09-30  Richard Guenther  <rguenther@suse.de>
42
43         PR middle-end/50574
44         * tree-cfg.c (verify_gimple_comparison): Compare component
45         mode sizes for vector comparisons.
46
47 2011-09-30  Revital Eres  <revital.eres@linaro.org>
48
49         * ddg.c (autoinc_var_is_used_p): New function.
50         (create_ddg_dep_from_intra_loop_link,
51         add_cross_iteration_register_deps): Call it.
52         * ddg.h (autoinc_var_is_used_p): Declare.
53         * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
54         (sms_schedule): Handle instructions with REG_INC.
55
56 2011-09-30  Revital Eres  <revital.eres@linaro.org>
57
58         * modulo-sched.c (generate_reg_moves): Skip instructions that
59         do not set a register and verify no regmoves are created for
60         !single_set instructions.
61
62 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
63
64         * hw-doloop.c (scan_loop): Compute register usage only for non-debug
65         insns.
66
67 2011-09-30  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
68
69         PR target/50099
70         * config/arm/iterators.md (qhs_zextenddi_cstr): New.
71         (qhs_zextenddi_op): New.
72         * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
73         * config/arm/predicates.md ("arm_extendqisi_mem_op"):
74         Distinguish between ARM and Thumb2 states.
75
76 2011-09-30  David S. Miller  <davem@davemloft.net>
77
78         * config/sparc/sparc.opt (VIS2): New option.
79         * doc/invoke.texi: Document it.
80         * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
81         UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
82         UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
83         (define_attr type): New insn type 'edgen'.
84         (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
85         edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
86         edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
87         patterns.
88         * niagara.md: Handle edgen.
89         * niagara2.md: Likewise.
90         * ultra1_2.md: Likewise.
91         * ultra3.md: Likewise.
92         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
93         to 0x200 when TARGET_VIS2.
94         * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
95         default when targetting capable cpus.  TARGET_VIS2 implies
96         TARGET_VIS, clear and it when TARGET_FPU is disabled.
97         (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
98         (sparc_expand_builtin): Fix predicate indexing when builtin returns
99         void.
100         (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
101         * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
102         __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
103         __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
104         __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
105         * doc/extend.texi: Document new VIS 2.0 builtins.
106
107 2011-09-29  Nick Clifton  <nickc@redhat.com>
108             Bernd Schmidt  <bernds@codesourcery.com>
109
110         * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header
111         file.
112         * config/frv/frvend.c: Likewise.
113         * config/frv/frv.c (frv_function_prologue): Move misplaced
114         CALL_ARG_LOCATION notes back to their proper locations.
115
116 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
117
118         PR target/50566
119         * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
120         * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
121         from avr_rtx_costs.
122         (avr_legitimate_address_p): Use avr_edump to print log information
123         filtered by avr_log.
124         (extra_constraint_Q): Ditto.
125         (avr_legitimize_address): Ditto.
126         (avr_rtx_costs): Ditto.  Rewrite as wrapper for avr_rtx_costs_1.
127         (final_prescan_insn): Use avr_log.rtx_costs as filter.
128
129 2011-09-29  Richard Sandiford  <richard.sandiford@linaro.org>
130
131         * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
132         * config/arm/arm.h (MODES_TIEABLE_P): Use it.
133         * config/arm/arm.c (arm_modes_tieable_p): New function.  Allow
134         NEON vector and structure modes to be tied.
135
136 2011-09-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
137
138         * graphite-scop-detection.c (make_close_phi_nodes_unique):  New
139         forward declaration.
140         (remove_duplicate_close_phi): Detect and repair creation of
141         duplicate close-phis for a containing loop.
142
143 2011-09-27   Andi Kleen <ak@linux.intel.com>
144
145         * gcc.c (get_local_tick). Rename to get_random_number.
146         Read from /dev/urandom.
147         Add getpid call.
148         (compare_debug_dump_opt_spec_function): Drop getpid call.
149
150 2011-09-26   Andi Kleen <ak@linux.intel.com>
151
152         * toplev.c (init_local_tick): Try reading random seed from /dev/urandom
153
154 2011-09-26   Andi Kleen <ak@linux.intel.com>
155
156         * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
157         * lto-streamer.c (lto_get_section_name): Remove crc32_string.
158         Handle numerical random seed.
159         * lto-streamer.h (lto_file_decl_data): Change id to unsigned HOST_WIDE_INT.
160         * toplev.c (random_seed): Add.
161         (init_random_seed): Change for numerical random seed.
162         (get_random_seed): Return as HOST_WIDE_INT.
163         (set_random_seed): Crc32 existing string.
164         * toplev.h (get_random_seed): Change to numercal return.
165         * tree.c (get_file_function_name): Remove CRC. Handle numerical random seed.
166
167 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
168
169         PR target/50566
170         * config.gcc (extra_objs): Add avr-log.o for $target in:
171         avr-*-rtems*, avr-*-*.
172         * config/avr/t-avr (avr-log.o): New rule to compile...
173         * config/avr/avr-log.c: ...this new file.
174         * config/avr/avr.opt (mlog=): New option.
175         * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
176         (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
177         (avr_log_set_avr_log): New prototype.
178         (avr_log_t): New typedef.
179         (avr_log): New declaration.
180         * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
181
182 2011-09-29  Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
183
184         * expr.c (do_store_flag): Expand vector comparison by
185         building an appropriate VEC_COND_EXPR.
186         * c-typeck.c (build_binary_op): Typecheck vector comparisons.
187         (c_objc_common_truthvalue_conversion): Adjust.
188         * tree-vect-generic.c (do_compare): Helper function.
189         (expand_vector_comparison): Check if hardware supports
190         vector comparison of the given type or expand vector
191         piecewise.
192         (expand_vector_operation): Treat comparison as binary
193         operation of vector type.
194         (expand_vector_operations_1): Adjust.
195
196 2011-09-29  Richard Guenther  <rguenther@suse.de>
197
198         * tree.c (build_opaque_vector_type): Make opaque vectors
199         variant types of the corresponding non-opaque type.  Make
200         sure to share opaque vector types properly.
201
202 2011-09-29  David S. Miller  <davem@davemloft.net>
203
204         * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
205         UNSPEC_ARRAY32): New unspec.
206         (define_attr type): New type 'array'.
207         (array{8,16,32}<P:mode>_vis): New patterns.
208         * config/sparc/ultra1_2.md: Add reservations for 'array'.
209         * config/sparc/ultra3.md: Likewise.
210         * config/sparc/niagara.md: Likewise.
211         * config/sparc/niagara2.md: Likewise.
212         * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
213         array builtins.
214         * config/sparc/visintrin.h (__vis_array8, __vis_array16,
215         __vis_array32): New.
216         * doc/extend.texi: Document new VIS builtins.
217
218         * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
219         (VIS pixel-compare insn): Just use <gcond:name>.
220
221         * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
222         code iterator used, so just use <code>.  There are two mode iterators
223         so explicitly use <GCM:gcm_name>.
224
225 2011-09-29  Iain Sandoe  <iains@gcc.gnu.org>
226
227         * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
228         Darwin >= 9.
229
230 2011-09-28  David S. Miller  <davem@davemloft.net>
231
232         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
233         UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
234         (UNSPEC_FCMP): New unspec.
235         (gcond): New code iterator.
236         (gcond_name): New code attr.
237         (GCM): New mode iterator.
238         (gcm_name): New mode attr.
239         (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
240
241 2011-09-28  Oleg Endo  <oleg.endo@t-online.de>
242
243         PR target/49486
244         * config/sh/sh.md (negdi2): Move expansion into split to
245         allow more combination options.  Add T_REG clobber.
246         (abssi2): New expander.
247         (*negdi2, *abssi2, *negabssi2): New insns.
248         (cneg): Change from insn to insn_and_split.  Rename to
249         negsi_cond.  Add alternative for non-SH4.
250
251 2011-09-28  Richard Sandiford  <richard.sandiford@linaro.org>
252
253         * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
254         (neon_move_hi_quad_<mode>): Likewise.
255         (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
256
257 2011-09-28  Nick Clifton  <nickc@redhat.com>
258
259         * config/rx/predicates.md (rx_minmax_operand): New predicate.
260         Accepts immediates and a restricted subset of MEMs.
261         * config/rx/rx.md (int_modes): New iterator.
262         (smaxsi3, sminsi3): Delete and replace with...
263         (smax<int_mode>3, smin<int_mode>3): New patterns.
264         (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
265
266 2011-09-28  Richard Guenther  <rguenther@suse.de>
267
268         PR middle-end/50460
269         * fold-const.c (try_move_mult_to_index): Handle &a.array the
270         same as &a.array[0].
271
272 2011-09-28  Kai Tietz  <ktietz@redhat.com>
273
274         * configure.ac: Add test for new section attribute
275         specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
276         * config.in: Regenerated.
277         * configure: Regenerated.
278         * config/i386/winnt.c (i386_pe_asm_named_section): Emit
279         new section flag "e" for excluded sections, if supported.
280         Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
281
282 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
283
284         * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
285         throughout file.
286
287 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
288
289         * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
290         throughout file.
291
292 2011-09-27  Sriraman Tallam  <tmsriram@google.com>
293
294         * output.h (SECTION_EXCLUDE): New macro.
295         * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
296
297 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
298
299         * fwprop.c (forward_propagate_and_simplify): After checking
300         reg/subreg combinations, check whether the modes are the same.
301
302 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
303             Richard Sandiford  <rdsandiford@googlemail.com>
304
305         * config/mips/mips.c (mips_add_cfa_restore): New function.
306         (mips16e_save_restore_reg): Use it.
307         (mips_restore_reg): Likewise.  Split double FPRs for
308         REG_CFA_RESTORE notes.
309
310 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
311
312         PR middle-end/50386
313         PR middle-end/50326
314         * tree-sra.c (build_ref_for_model): Use the type of the field as
315         the type of the COMPONENT_REF.
316
317 2011-09-27  Jeff Law  <law@redhat.com>
318
319         * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument.  Scale
320         non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
321         (find_if_case_1): Use the probability of the THEN clause when
322         determining if speculation is profitable.
323         (find_if_case_2): Similarly for the ELSE clause.
324
325 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
326
327         * common.opt: Add -foptimize-strlen option.
328         * Makefile.in (OBJS): Add tree-ssa-strlen.o.
329         (tree-sssa-strlen.o): Add dependencies.
330         * opts.c (default_options_table): Enable -foptimize-strlen
331         by default at -O2 if not -Os.
332         * passes.c (init_optimization_passes): Add pass_strlen
333         after pass_object_sizes.
334         * timevar.def (TV_TREE_STRLEN): New timevar.
335         * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
336         * tree-pass.h (pass_strlen): Declare.
337         * tree-ssa-strlen.c: New file.
338         * c-decl.c (merge_decls): If compatible stpcpy prototype
339         is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
340
341 2011-09-27  Tom de Vries  <tom@codesourcery.com>
342
343         PR middle-end/43864
344         * tree-ssa-tail-merge.c: New file.
345         (struct same_succ_def): Define.
346         (same_succ, const_same_succ): New typedef.
347         (struct bb_cluster_def): Define.
348         (bb_cluster, const_bb_cluster): New typedef.
349         (struct aux_bb_info): Define.
350         (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
351         (gvn_uses_equal): New function.
352         (same_succ_print, same_succ_print_traverse, update_dep_bb)
353         (stmt_update_dep_bb, local_def, same_succ_hash)
354         (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
355         (same_succ_reset): New function.
356         (same_succ_htab, same_succ_edge_flags)
357         (deleted_bbs, deleted_bb_preds): New var.
358         (debug_same_succ): New function.
359         (worklist): New var.
360         (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
361         (init_worklist, delete_worklist, delete_basic_block_same_succ)
362         (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
363         (print_cluster, debug_cluster, update_rep_bb)
364         (add_bb_to_cluster, new_cluster, delete_cluster): New function.
365         (all_clusters): New var.
366         (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
367         (merge_clusters, set_cluster): New function.
368         (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
369         (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
370         (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
371         (find_clusters_1, find_clusters): New function.
372         (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
373         (update_bbs): New var.
374         (apply_clusters): New function.
375         (update_debug_stmt, update_debug_stmts): New function.
376         (tail_merge_optimize): New function.
377         tree-pass.h (tail_merge_optimize): Declare.
378         * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
379         * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
380         (tree-ssa-tail-merge.o): New rule.
381         * opts.c (default_options_table): Set OPT_ftree_tail_merge by
382         default at OPT_LEVELS_2_PLUS.
383         * tree-ssa-sccvn.c (vn_valueize): Move to ...
384         * tree-ssa-sccvn.h (vn_valueize): Here.
385         * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
386         * common.opt (ftree-tail-merge): New switch.
387         * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
388         (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
389         * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
390         (-ftree-tail-merge, max-tail-merge-comparisons)
391         (max-tail-merge-iterations): New item.
392
393 2011-09-27  Jan Hubicka  <jh@suse.cz>
394
395         * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
396
397 2011-09-27  Jan Hubicka  <jh@suse.cz>
398
399         * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
400         parameters passed by reference; handle loads from non-SSA scalars
401         and update comments.
402
403 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
404
405         PR rtl-optimization/50249
406         * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
407         instead of opnum and type.  All callers changed.  Remove useless
408         declaration.
409         Search forward for other reloads of the same type for the same operand
410         using the same register; if any are found, return false.
411         (reload_regs_reach_end_p): Same argument changes; all callers changed.
412
413 2011-09-27  Andi Kleen  <ak@linux.intel.com>
414             Jan Hubicka  <jh@suse.cz>
415
416         * doc/invoke.texi (ffat-lto-objects): Document.
417         * toplev.c (compile_file): Do not output assembly when doing slim lto;
418         Output __gnu_slim_lto when doing slim lto.
419         * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
420         (cgraph_optimize): Return early when doing slim lto.
421         * opts.c (finish_options): Complain about lack of linker plugin
422         when doing slim lto.
423         * common.opt (ffat-lto-objects): New.
424
425 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
426
427         * ipa-inline-analysis.c (predicate_probability): Avoid comparison
428         between signed and unsigned.
429
430 2011-09-27  Ira Rosen  <ira.rosen@linaro.org>
431
432         * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
433         vectorization.
434         (vectorizable_type_promotion): Likewise.
435         (vect_analyze_stmt): Call vectorizable_type_demotion and
436         vectorizable_type_promotion for basic blocks.
437         (supportable_widening_operation): Don't assume loop vectorization.
438         * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
439         basic blocks.  Update vectorization factor for basic block
440         vectorization.
441         (vect_analyze_slp_instance): Allow multiple types for basic block
442         vectorization.  Recheck unrolling factor after construction of SLP
443         instance.
444
445 2011-09-27  Richard Guenther  <rguenther@suse.de>
446
447         * tree-object-size.c (compute_object_sizes): Fix dumping of
448         folded statement.
449
450 2011-09-27  Richard Guenther  <rguenther@suse.de>
451
452         PR tree-optimization/50363
453         * tree-ssa-pre.c (create_expression_by_pieces): Handle
454         pointer conversions in POINTER_PLUS_EXPRs properly.
455
456 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
457
458         * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
459         (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
460         (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
461         (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
462         that produce subreg moves.  Define using VQX iterators.
463
464 2011-09-27  Georg-Johann Lay  <avr@gjlay.de>
465
466         * config/avr/avr.md (ashrqi3): Split alternative "n"
467         into its remaining parts C03, C04, C05, C06, C07 and describe
468         impact in CC by attribute "cc" appropriately.
469         * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
470         by digging RTX.
471
472 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
473
474         * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
475         from 3 x MAX_MACHINE_MODE.
476         (CONSTM1_RTX): Define.
477         * emit-rtl.c (const_tiny_rtx): Change into array of
478         4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
479         (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
480         CONSTM1_RTX.
481         (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
482         MODE_VECTOR_INT modes.
483         * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
484         Optimize if one operand is CONSTM1_RTX.
485         * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
486         into mask | x.
487
488 2011-09-26  David S. Miller  <davem@davemloft.net>
489
490         * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
491         (fcmp{le,ne,gt,eq}{16,32}): Likewise.
492         * config/sparc/visintrin.h: Update edge and pixel-compare
493         intrinsics to return 'long' instead of 'int'.
494         * doc/extend.texi: Update documentation to match.
495         * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
496         flat, allow any instruction.  Otherwise, when V9 allow parallels
497         which consist only of sets to registers outside of %o0 to %o5.
498         (sparc_vis_init_builtins): Update VIS builtin types for edge
499         and pixel-compare.
500
501         * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
502         is enabled, mark %gsr as global.
503         * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
504         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
505
506         * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
507         which will now define __VIS and __VIS__ when -mvis is enabled.
508         * config/sparc/t-sparc: Likewise.
509         * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
510         and add t-sparc to tmake_file for all sparc targets.
511         * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
512         * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
513
514         * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
515         builtins for VIS vector addition and subtraction.
516         * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
517         __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
518         __vis_fpsub32, __vis_fpsub32s): New.
519         * doc/extend.texi: Document new VIS intrinsics.
520
521 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
522
523         * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
524         * config/avr/avr.c (avr_out_compare): Print shorter sequence for
525         EQ/NE comparisons against +/-1 in the case of unused-after,
526         non-ld-regs target.
527
528 2011-09-26  Jakub Jelinek  <jakub@redhat.com>
529
530         * gimple-fold.c (gimplify_and_update_call_from_tree): Set
531         gctx.into_ssa after push_gimplify_context.
532
533         * gimple.c (gimple_build_call_valist): New function.
534         * gimple.h (gimple_build_call_valist): New prototype.
535         * tree-ssa-propagate.c (finish_update_gimple_call): New function.
536         (update_gimple_call): Likewise.
537         (update_call_from_tree): Use finish_update_gimple_call.
538         * tree-ssa-propagate.h (update_gimple_call): New prototype.
539
540 2011-09-26  Richard Guenther  <rguenther@suse.de>
541
542         PR tree-optimization/50472
543         * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
544         volatile references.
545
546 2011-09-26  Bingfeng Mei <bmei@broadcom.com>
547
548         * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
549         * target.def: (addr_space_subset_p): Likewise.
550
551 2011-09-26  Tom de Vries  <tom@codesourcery.com>
552
553         * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
554         * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
555         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
556         of new var.
557
558 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
559
560         PR target/50465
561         * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
562         * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
563         output_reload_insisf.
564         (adjust_len): Set default to "no".
565         Remove alternative "yes".  Add alternatives: "mov8", "mov16",
566         "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
567         "lshrhi", "ashlsi, "ashrsi", "lshrsi".
568         (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
569         *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
570         *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
571         *lshrsi3_const): Set attribute "adjust_len".
572         * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
573         (output_movsisf): Don't pass insn to output_reload_insisf.
574         (adjust_insn_length): Handle new alternatives to adjust_len.
575         Remove handling of ADJUST_LEN_YES.  Clean-up code.
576
577 2011-09-26  Eric Botcazou  <ebotcazou@adacore.com>
578
579         * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
580         may_trap_p to detect loads that may trap of fault.
581
582 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
583
584         * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
585         * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
586         (*reload_inhi): Use it.  Adapt call to output_reload_inhi to new
587         prototype.
588         (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
589         * config/avr/avr.c: Rename output_reload_insisf_1 to
590         output_reload_in_const.
591         (avr_popcount_each_byte): Handle SFmode, too.
592         (output_reload_in_const): Change so it can handle HI loads, too.
593         Use avr_popcount_each_byte to work out if scratch register must be
594         created on the fly.
595         (output_reload_inhi): Rewrite using output_reload_in_const and...
596         (output_movhi): ...use it to print constants' loads.
597         (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
598
599 2011-09-25  David S. Miller  <davem@davemloft.net>
600
601         * config/sparc/constraints.md (C, P, Z): New constraints for
602         const_doube, const_int, and const_vector "all ones" values.
603         Make unused constraint letters comment match reality.
604         * config/sparc/predicates.md (const_all_ones_operand,
605         register_or_zero_or_all_ones_operand): New predicates.
606         * config/sparc/sparc.c (sparc_expand_move): Allow all ones
607         as well as zero constants when VIS.
608         (sparc_legitimate_constant_p): Likewise.
609         * config/sparc/sparc.md (movsi_insn): Add fones alternative.
610         (movsf_insn): Likewise
611         (movdi_insn_sp64): Add fone alternative.
612         (movdf_insn_sp32_v9): Likewise.
613         (movdf_insn_sp64): Likewise.
614
615         * configure.ac: Add feature check to make sure the assembler
616         supports the FMAF, HPC, and VIS 3.0 instructions found on
617         Niagara-3 and later cpus.
618         * configure: Rebuild.
619         * config.in: Likewise.
620         * config/sparc/sparc.opt: New option '-mfmaf'.
621         * config/sparc/sparc.md: Add float fused multiply-add patterns.
622         * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
623         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
624         * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
625         ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
626         * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
627         by default for Niagara-3 and later.  Turn it off if TARGET_FPU is
628         disabled.
629         (sparc_rtx_costs): Handle 'FMA'.
630         * doc/invoke.texi: Document -mfmaf.
631
632 2011-09-25  Jakub Jelinek  <jakub@redhat.com>
633
634         * tree-ssa-structalias.c (intra_create_variable_infos): Treat
635         TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
636         DECL_BY_REFERENCE parameters.
637
638 2011-09-25  Eric Botcazou  <ebotcazou@adacore.com>
639
640         * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
641         if there is no outgoing edge.
642
643         * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
644         integral types.
645
646 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
647
648         * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
649         of vect_analyze_bb here.
650         (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
651
652 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
653
654         * tree-data-ref.c (dr_analyze_innermost): Add new argument.
655         Allow not simple iv if analyzing basic block.
656         (create_data_ref): Update call to dr_analyze_innermost.
657         (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
658         * tree-loop-distribution.c (generate_memset_zero): Likewise.
659         * tree-predcom.c (find_looparound_phi): Likewise.
660         * tree-data-ref.h (dr_analyze_innermost): Add new argument.
661
662 2011-09-24  David S. Miller  <davem@davemloft.net>
663
664         * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
665         (SPARC_GSR_REG): Define.
666         (FIXED_REGISTERS): Mark GSR as fixed.
667         (CALL_USED_REGISTERS): Mark GSR as call used.
668         (HARD_REGNO_NREGS): GSR is always 1 register.
669         (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
670         (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
671         (REGISTER_NAMES): Add "%gsr".
672         * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
673         (UNSPEC_WRGSR): New unspec.
674         (GSR_REG): New constant.
675         (type): Add new insn type 'gsr'.
676         (fpack16_vis, fpackfix_vis, fpack32_vis,
677         faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
678         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
679         rdgsr_v8plus): New expanders and insns.
680         (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
681         using patterns which show that this is a plus in addition to a
682         modification of GSR_REG, instead of an unspec.
683         * config/sparc/ultra1_2.md: Handle 'gsr'.
684         * config/sparc/ultra3.md: Likewise.
685         * config/sparc/niagara.md: Likewise.
686         * config/sparc/niagara2.md: Likewise.
687         * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
688         end of table.
689         (sparc_option_override): Make -mvis imply -mv8plus.
690         (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
691         for %gsr.
692         (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
693         __builtin_vis_read_gsr.
694         (sparc_expand_buildin): Handle builtins that take one argument and
695         return void.
696         (sparc_fold_builtin): Never fold writes to %gsr.
697         * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
698         * doc/extend.texi: Document new VIS intrinsics.
699
700 2011-09-23  Jan Hubicka  <jh@suse.cz>
701
702         * ipa-inline-transform.c (inline_call): Add comment.
703         * ipa-inline.h (inline_param_summary): New structure and vector.
704         (struct inline_edge_summary): Add param field.
705         * ipa-inline-analysis.c (CHANGED): New constant.
706         (add_clause): Handle CHANGED and NOT_CONSTANT.
707         (predicate_probability): New function.
708         (dump_condition): Dump CHANGED predicate.
709         (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
710         of unknown function wide invariant.
711         (evaluate_conditions_for_edge): Handle change probabilities.
712         (inline_edge_duplication_hook): Copy param summaries.
713         (inline_edge_removal_hook): Free param summaries.
714         (dump_inline_edge_summary): Fix dumping of indirect edges and callee
715         sizes; dump param summaries.
716         (will_be_nonconstant_predicate): Use CHANGED predicate.
717         (record_modified_bb_info): New structure.
718         (record_modified): New function.
719         (param_change_prob): New function.
720         (estimate_function_body_sizes): Compute param summaries.
721         (estimate_edge_size_and_time): Add probability argument.
722         (estimate_node_size_and_time): Add inline_param_summary argument;
723         handle predicate probabilities.
724         (remap_predicate): Fix formating.
725         (remap_edge_change_prob): New function.
726         (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
727         (remap_edge_predicates): ... this one.
728         (inline_merge_summary): Remap edge summaries; handle predicate
729         probabilities; remove param summaries after we are done.
730         (do_estimate_edge_time): Update.
731         (do_estimate_edge_growth): Update.
732         (read_inline_edge_summary): Read param info.
733         (inline_read_summary): Fix formating.
734         (write_inline_edge_summary): Write param summaries.
735
736 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
737
738         * config/i386/i386.c (ix86_print_operand): Handle %~.
739         (ix86_print_operand_punct_valid_p): Return true also for '~'.
740         * config/i386/sse.md (i128): New mode_attr.
741         (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
742         avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
743         *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
744         vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
745         patterns, use "<sseinsnmode>" for "mode" attribute.
746         (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
747         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
748         %~128 in the patterns, use "OI" for "mode" attribute.
749
750 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
751
752         PR target/50447
753         * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
754         "tstsi", "compare".
755         (*cmpqi_sign_extend): Use s8_operand.
756         (*cmphi, *cmpsi): Rewrite using avr_out_compare.
757         * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
758         prototypes.
759         (out_tsthi, out_tstsi): Remove prototypes.
760         (avr_out_tsthi, avr_out_tstsi): New prototypes.
761         * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
762         (avr_asm_len): Negative length now sets *plen to -length.
763         (compare_sign_p): Return bool instead of int.
764         (compare_diff_p, compare_eq_p): Ditto and make static.
765         (avr_out_tsthi): New function.
766         (avr_out_tstsi): New function.
767         (avr_out_compare): New function.
768         (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
769         ADJUST_LEN_COMPARE.
770
771 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
772
773         PR target/50447
774         * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
775         (addsi3): Rewrite using QI scratch register.  Adjust text
776         peepholes using plus:SI.
777         (*addsi3_zero_extend.hi): New insn.
778         (*subsi3_zero_extend.hi): New insn.
779         (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
780         (*subsi3_zero_extend): Ditto.
781         (subsi3): Change predicate #2 to register_operand.
782         * config/avr/avr-protos.h (avr_out_plus): New prototype.
783         (avr_out_plus_1): New static function.
784         (avr_out_plus): New function.
785         (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
786
787 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
788
789         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
790         GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
791
792 2011-09-23  Ian Lance Taylor  <iant@google.com>
793
794         * godump.c (go_define): Treat a single character in single quotes,
795         or a string, as an operand.
796
797 2011-09-23  Martin Jambor  <mjambor@suse.cz>
798
799         * ipa-prop.h (jump_func_type): Updated comments.
800         (ipa_known_type_data): New type.
801         (ipa_jump_func): Use it to describe known type jump functions.
802         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
803         reflect the new known type jump function contents.
804         (compute_known_type_jump_func): Likewise.
805         (combine_known_type_and_ancestor_jfs): Likewise.
806         (try_make_edge_direct_virtual_call): Likewise.
807         (ipa_write_jump_function): Likewise.
808         (ipa_read_jump_function): Likewise.
809         * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
810         (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
811         (propagate_accross_jump_function): Likewise.
812
813 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
814
815         PR target/50446
816         * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
817         (rotlqi3_4): Turn insn into expander.
818         (*rotlqi3): New insn.
819         (rotlhi3, rotlsi3): Support rotate left/right by 1.
820         (*rotlhi2.1, *rotlhi2.15): New insns.
821         (*rotlsi2.1, *rotlsi2.31): New insns.
822         * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
823
824 2011-09-23  Bin Cheng  <bin.cheng@arm.com>
825
826         * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
827
828 2011-09-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
829
830         * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
831
832 2011-09-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
833
834         * reload.c (find_reloads): Set operand_mode to Pmode for address
835         operands consisting of just a CONST_INT.
836
837 2011-09-22  Uros Bizjak  <ubizjak@gmail.com>
838
839         PR target/50482
840         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
841         blendv, force op_true to register if it doesn't satisfy
842         nonimmediate_operand predicate.
843
844 2011-09-22  Richard Sandiford  <rdsandiford@googlemail.com>
845
846         PR middle-end/50113
847         PR middle-end/50061
848         * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
849         get the locate.where_pad value for register-only arguments.
850         * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
851         (arm_pad_reg_upward): Handle null types.
852
853 2011-09-22  Jan Hubicka  <jh@suse.cz>
854
855         * ipa-inline-analysis.c: Fix overly long lines.
856
857 2011-09-22  Jan Hubicka  <jh@suse.cz>
858
859         * ipa-inline-transform.c (inline_call): Always update jump functions
860         after inlining.
861         * ipa-inline.c (ipa_inline): Likewise; do not call
862         ipa_create_all_structures_for_iinln.
863         (ipa_inline): Always free jump functions.
864         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
865         (remap_edge_predicates): Fix pasto.
866         (inline_merge_summary): Remove nlined edge predicate; remove hack.
867         (inline_analyze_function): Always initialize jump functions.
868         (inline_generate_summary): Likewise.
869         (inline_write_summary): Always write jump functions when ipa-cp
870         is not doing that.
871         (inline_read_summary): Always read jump functions when ipa-cp
872         is not doing that.
873         * ipa-prop.c (iinlining_processed_edges): Remove.
874         (update_indirect_edges_after_inlining): Do not use
875         iinlining_processed_edges; instead set param_index to -1.
876         (propagate_info_to_inlined_callees): Only try to indirect inlining
877         when asked to do so; update jump functions of indirect calls, too;
878         remove jump functions of the inlined edge.
879         (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
880         (ipa_create_all_structures_for_iinln): Remove.
881         (ipa_free_all_structures_after_iinln): Do not free
882         iinlining_processed_edges.
883         * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
884
885 2011-09-22  Richard Sandiford  <richard.sandiford@linaro.org>
886
887         * config/arm/predicates.md (expandable_comparison_operator): New
888         predicate, extracted from...
889         (arm_comparison_operator): ...here.
890         * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
891         (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
892         (movdfcc): Use expandable_comparison_operator.
893
894 2011-09-22  Georg-Johann Lay  <avr@gjlay.de>
895
896         PR target/50447
897         PR target/50465
898         * config/avr/avr-protos.h (avr_out_bitop): New prototype.
899         (avr_popcount_each_byte): New prototype.
900         * config/avr/avr.c (avr_popcount): New static function.
901         (avr_popcount_each_byte): New function.
902         (avr_out_bitop): New function.
903         (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
904         avr_out_bitop.  Cleanup code.
905         * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
906         (Ca4, Co4, Cx4): New constraints.
907         * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
908         alternative.
909         (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
910         (andsi3, iorsi3, xorsi3): Ditto.
911         (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
912
913 2011-09-22  Ira Rosen  <ira.rosen@linaro.org>
914
915         PR tree-optimization/50451
916         * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
917         constant operands in reduction.
918         (vect_get_slp_defs): Don't create vector operand for NULL scalar
919         operand.
920
921 2011-09-22  David S. Miller  <davem@davemloft.net>
922
923         * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
924         fpack16, fpack32, fpackfix as const.
925
926         * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
927         I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
928         constants.  Use them everywhere.
929
930 2011-09-22  Oleg Endo  <oleg.endo@t-online.de>
931
932         * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
933         Added AND special case.  Adapted comments.
934         (sh_rtx_costs): Added XOR and IOR case.
935
936 2011-09-21  Jan Hubicka  <jh@suse.cz>
937
938         * ipa-inline-analsis.c (compute_inline_parameters): Set
939         cfun and current_function_decl.
940
941 2011-09-21  Jan Hubicka  <jh@suse.cz>
942
943         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
944         handled components in parameter of builtin_constant_p.
945         (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
946
947 2011-09-21  Jan Hubicka  <jh@suse.cz>
948
949         * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
950         * ipa-inline.h (estimate_edge_time): Fix pasto.
951         * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
952
953 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
954
955         * config/i386/i386.c (ix86_expand_sse_movcc): Use
956         blendvps, blendvpd and pblendvb if possible.
957
958 2011-09-21  Uros Bizjak  <ubizjak@gmail.com>
959
960         PR target/50464
961         * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
962         operand 1 predicate to register_operand and operand 2 predicate
963         to nonimmediate_operand.
964         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
965         xop_pcmov, force op_true to register.  Also, force op_false to
966         register if it doesn't satisfy nonimmediate_operand predicate.
967
968 2011-09-21  Kirill Yukhin  <kirill.yukhin@intel.com>
969
970         * config/i386/bmi2intrin.h (_mulx_u64): New.
971         (_mulx_u32): Ditto.
972
973 2011-09-21  Jan Hubicka  <jh@suse.cz>
974
975         PR tree-optimization/50433
976         * ipa-inline-analysis.c (eliminated_by_inlining_prob):
977         Use get_base_address.
978
979 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
980
981         * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
982         nonimmediate_operand instead of register_operand predicate for operands
983         1 and 2, force them into registers if expanding them as comparison.
984         (<code><mode>3 umaxmin:VI124_128 expander): Similarly.  For UMAX
985         V8HImode force into register just operand 1.
986
987 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
988
989         PR target/45099
990         * config/avr/avr.c (avr_function_arg_advance): Change error to
991         warning if a fixed register is needed as function argument.
992
993 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
994
995         PR target/50449
996         PR target/50465
997         * config/avr/avr.md (adjust_len): New insn attribute.
998         (*reload_insi, *reload_insf): Use it.
999         (*movsi, *movsf): Use new interface of output_movsisf.
1000         * config/avr/avr-protos.h (output_movsisf): Change prototype.
1001         * config/avr/avr.c (output_movsisf): Ditto.
1002         (adjust_insn_length): Use insn attribute "adjust_len" to adjust
1003         lengths of insns *reload_insi, *reload_insf.
1004         (output_reload_insisf_1): New static function.
1005         (output_reload_insisf): Use it.
1006
1007 2011-09-21  David S. Miller  <davem@davemloft.net>
1008
1009         * config/sparc/sparc.c (def_builtin): Change from macro into function.
1010         (def_builtin_const): New.
1011         (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
1012         other than alignaddr and falignaddr.
1013
1014         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
1015         UNSPEC_FCMPEQ): New unspec codes.
1016         (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
1017         fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
1018         * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
1019         new pixel compare VIS patterns.
1020         * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
1021         __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
1022         __vis_fcmpeq16, __vis_fcmpeq32): New.
1023         * doc/extend.texi: Document new pixel compare VIS intrinsics.
1024
1025 2011-09-21  Tom de Vries  <tom@codesourcery.com>
1026
1027         * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
1028
1029 2011-09-20  David S. Miller  <davem@davemloft.net>
1030
1031         * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
1032         (aligneddrl<P:mode>_vis): New pattern.
1033         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
1034         edge32l_vis): Adjust to take Pmode arguments, and return SImode.
1035         * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
1036         alignaddrl insn, and adjust edge operations for updated types.
1037         * config/sparc/visintrin.h: Likewise.
1038         * doc/extend.texi: Make typing in VIS documentation match reality.
1039
1040 2011-09-20  Terry Guo  <terry.guo@arm.com>
1041
1042         * config/arm/arm-arches.def: Add armv6s-m.
1043         * config/arm/arm-tables.opt: Regenerate.
1044
1045 2011-09-20  Wei Guozhi  <carrot@google.com>
1046
1047         PR rtl-optimization/49452
1048         * postreload.c (reload_combine): Invalidate use information when across
1049         volatile insn.
1050
1051 2011-09-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
1052
1053         * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
1054         Remove maintenance overhead.
1055         (haifa_sched_init, sched_finish): Update.
1056
1057 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
1058
1059         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
1060         to calculate unit, prefix_rep and prefix_data16 attributes.
1061         (*mov<mode>_internal): Ditto for unit attribute.
1062         (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
1063         (*movv2sf_internal): Ditto.
1064         * config/i386/sse.md (VI1248_256): Remove mode iterator.
1065         (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
1066         (*avx2_eq<mode>3): Ditto.
1067         (avx2_gt<mode>3): Ditto.
1068
1069 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
1070
1071         * config/i386/i386.md (maxmin): New code iterator.
1072         * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
1073         from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
1074         code iterator.
1075         (*avx2_<maxmin:code><mode>3): Macroize isn from
1076         *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
1077         maxmin code iterator.
1078         (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
1079         (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
1080         <umaxmin:code>v16qi3.
1081
1082 2011-09-19  Alan Modra  <amodra@gmail.com>
1083             Michael Meissner  <meissner@linux.vnet.ibm.com>
1084
1085         PR target/50341
1086         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
1087         split the load of the indirect function's TOC from the call to
1088         prevent the compiler from moving the load of the new TOC above
1089         code that references the current function's TOC.
1090         (call_indirect_aix<ptrsize>_internal): Ditto.
1091         (call_indirect_aix<ptrsize>_nor11): Ditto.
1092         (call_indirect_aix<ptrsize>_internal2): Ditto.
1093         (call_value_indirect_aix<ptrsize>): Ditto.
1094         (call_value_indirect_aix<ptrsize>_internal): Ditto.
1095         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
1096         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
1097
1098 2011-09-19  Jakub Jelinek  <jakub@redhat.com>
1099
1100         * config/i386/sse.md (*sse4_1_extractps): Change into
1101         define_insn_and_split, add =x 0 n and =x x n alternatives
1102         and split them after reload.
1103
1104 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
1105
1106         * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
1107
1108 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
1109
1110         * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
1111
1112 2011-09-19  Ira Rosen  <ira.rosen@linaro.org>
1113
1114         PR tree-optimization/50413
1115         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
1116         a basic block if one of its data-refs can't be analyzed.
1117
1118 2011-09-19  Paul Brook  <paul@codesourcery.com>
1119
1120         * config/arm/predicates.md (shift_amount_operand): Check constant
1121         shift count is in range.
1122         (const_shift_operand): Remove.
1123
1124 2011-09-18  Eric Botcazou  <ebotcazou@adacore.com>
1125             Iain Sandoe  <developer@sandoe-acoustics.co.uk>
1126
1127         PR target/50091
1128         * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
1129         * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
1130
1131 2011-09-18  H.J. Lu  <hongjiu.lu@intel.com>
1132
1133         * config/i386/bmiintrin.h: Remove tmp.
1134         * config/i386/tbmintrin.h: Likewise.
1135
1136 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
1137
1138         PR tree-optimization/50414
1139         * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
1140         MIN_EXPR.
1141
1142 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
1143
1144         PR tree-optimization/50412
1145         * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
1146         acceses that require epilogue loop if vectorizing outer loop.
1147
1148 2011-09-17  David S. Miller  <davem@davemloft.net>
1149
1150         * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
1151         UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
1152         New unspecs.
1153         (define_attr type): New type 'edge'.
1154         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
1155         edge32l_vis): New patterns.
1156         * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
1157         * config/sparc/ultra3.md: Likewise.
1158         * config/sparc/niagara.md: Likewise.
1159         * config/sparc/niagara2.md: Likewise.
1160         * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
1161         builtins for VIS edge instructions.
1162         * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
1163         (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
1164         intrinsics.
1165         (__v8qi, __v4qi): Make unsigned.
1166         (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
1167         __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
1168         __vis_fpack32): Fix types.
1169         * doc/extend.texi: Document new 'edge' VIS intrinsics.
1170
1171         * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
1172         divide costs.
1173         (niagara3_costs): New.
1174         (sparc_option_override): Use it.
1175         * gcc/config/sparc/niagara2.md: Adjust with more accurate
1176         Niagara-3 reservations.
1177
1178 2011-09-17  Jakub Jelinek  <jakub@redhat.com>
1179
1180         * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
1181         (sse2_avx, sseinsnmode): Add V2TI.
1182         (REDUC_SMINMAX_MODE): New mode iterator.
1183         (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
1184         reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
1185         (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
1186         (sse2_lshrv1ti3): Rename to...
1187         (<sse2_avx2>_lshr<mode>3): ... this.  Use VIMAX_AVX2 mode
1188         iterator.  Move before umaxmin expanders.
1189         * config/i386/i386.h (VALID_AVX256_REG_MODE,
1190         SSE_REG_MODE_P): Accept V2TImode.
1191         * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
1192         V16HImode, V8SImode and V4DImode.
1193
1194         * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
1195         and V4DImode.
1196         (ix86_build_signbit_mask): Likewise.
1197         (ix86_expand_int_vcond): Likewise.  Handle V16HImode and V32QImode.
1198         (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
1199         instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
1200         * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
1201         (<code><mode>3) ... this.
1202         (avx2_<code><mode>3 smaxmin expand): Rename to...
1203         (<code><mode>3) ... this.
1204         (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
1205         (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
1206         VI8_AVX2 mode iterator.
1207         (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
1208         VI8_AVX2 mode iterator.
1209         (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
1210         New expanders.
1211
1212 2011-09-17  Richard Sandiford  <rdsandiford@googlemail.com>
1213
1214         * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
1215         throughout file.
1216
1217 2011-09-16  David S. Miller  <davem@davemloft.net>
1218
1219         * config/sparc/visintrin.h: New file.
1220         * config.gcc: Add it to extra_headers on sparc.
1221
1222 2011-09-16  Jakub Jelinek  <jakub@redhat.com>
1223
1224         * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
1225         (ix86_expand_reduc): ... this.  Handle also V8SFmode and V4DFmode.
1226         * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
1227         reduc_smin_v4sf): Adjust callers.
1228         (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
1229         New expanders.
1230
1231         * config/i386/sse.md (vec_extract_hi_<mode>,
1232         vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
1233         vextracti128 instead of vextractf128 for -mavx2 and
1234         integer vectors.  For V4DFmode fix up mode attribute.
1235         (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
1236         (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
1237         instead of V8SF mode attribute.
1238         (avx2_extracti128): Change into define_expand.
1239         * config/i386/i386.c (ix86_expand_vector_extract): Handle
1240         32-byte vector modes if TARGET_AVX.
1241
1242 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
1243
1244         * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
1245         (umulqi3_highpart, smulqi3_highpart): Ditto.
1246         (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
1247         (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
1248         (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
1249
1250 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
1251
1252         PR target/50358
1253         * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
1254         (*maddqi4, *maddqi4.const): New insns.
1255         (*msubqi4, *msubqi4.const): New insns.
1256         * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
1257         PLUS:QI and MINUS:QI.  Increase costs of multiply-add/-sub for
1258         HImode by 1 in the case of multiplying with a CONST_INT.
1259         Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
1260
1261 2011-09-15   Jan Hubicka  <jh@suse.cz>
1262
1263         PR lto/50430
1264         * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
1265         error_mark_node in the DECL_INITIAL of vtable.
1266
1267 2011-09-15   Diego Novillo  <dnovillo@google.com>
1268
1269         * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
1270         @SYSROOT_CFLAGS_FOR_TARGET@.
1271         * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
1272         * configure: Regenerate.
1273         (site.exp): Add definition of TEST_ALWAYS_FLAGS.
1274         Remove setting of GCC_UNDER_TEST.
1275
1276 2011-09-15  Uros Bizjak  <ubizjak@gmail.com>
1277
1278         * config/i386/i386.c (output_fp_compare): Return %v prefixed
1279         instruction mnemonics for TARGET_AVX.
1280
1281         * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
1282         "type" attribute calculation.
1283         (*movdf_internal): Ditto.
1284         (*movsf_internal): Ditto.
1285
1286 2011-09-15  James Greenhalgh  <james.greenhalgh@arm.com>
1287
1288         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
1289
1290 2011-09-15  Jason Merrill  <jason@redhat.com>
1291
1292         PR c++/50361
1293         * expr.c (count_type_elements): Handle NULLPTR_TYPE.
1294
1295 2011-09-15  Jan Hubicka  <jh@suse.cz>
1296
1297         * ipa-inline-analysis.c (add_condition): Add conditions parameter;
1298         simplify obviously true clauses.
1299         (and_predicates, or_predicates): Add conditions parameter.
1300         (inline_duplication_hoook): Update.
1301         (mark_modified): New function.
1302         (unmodified_parm): New function.
1303         (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
1304         set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
1305         Use unmodified_parm.
1306         (estimate_function_body_sizes): Update.
1307         (remap_predicate): Update.
1308
1309 2011-09-15  Ira Rosen  <ira.rosen@linaro.org>
1310
1311         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
1312         read-after-read dependencies in basic block SLP.
1313
1314 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
1315
1316         * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
1317         throughout file.
1318
1319 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
1320
1321         * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
1322         throughout file.
1323
1324 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
1325
1326         * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
1327         throughout file.
1328
1329 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
1330
1331         * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
1332         throughout file.
1333         * config/rs6000/constraints.md: Likewise.
1334
1335 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
1336
1337         * config/microblaze/microblaze.md: Use match_test rather than
1338         eq/ne symbol_ref throughout file.
1339
1340 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
1341
1342         * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
1343         throughout file.
1344
1345 2011-09-14  Tom de Vries  <tom@codesourcery.com>
1346
1347         PR middle-end/50251
1348         * explow.c (emit_stack_restore): Set crtl->need_drap if
1349         stack_restore is emitted.
1350
1351 2011-09-14  Julian Brown  <julian@codesourcery.com>
1352
1353         * config/arm/arm.c (arm_override_options): Add unaligned_access
1354         support.
1355         (arm_file_start): Emit attribute for unaligned access as appropriate.
1356         * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
1357         (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
1358         (insv, extzv): Add unaligned-access support.
1359         (extv): Change to expander. Likewise.
1360         (extzv_t1, extv_regsi): Add helpers.
1361         (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
1362         (unaligned_storesi, unaligned_storehi): New.
1363         (*extv_reg): New (previous extv implementation).
1364         * config/arm/arm.opt (munaligned_access): Add option.
1365         * config/arm/constraints.md (Uw): New constraint.
1366         * expmed.c (store_bit_field_1): Adjust bitfield numbering according
1367         to size of access, not size of unit, when BITS_BIG_ENDIAN !=
1368         BYTES_BIG_ENDIAN. Don't use bitfield accesses for
1369         volatile accesses when -fstrict-volatile-bitfields is in effect.
1370         (extract_bit_field_1): Likewise.
1371
1372 2011-09-14  Richard Sandiford  <richard.sandiford@linaro.org>
1373
1374         * simplify-rtx.c (simplify_subreg): Check that the inner mode is
1375         a scalar integer before applying integer-only optimisations to
1376         inner arithmetic.
1377
1378 2011-09-14  Bernd Schmidt  <bernds@codesourcery.com>
1379
1380         * config/mips/mips.c (mips_expand_epilogue): Generate a
1381         simple_return only if the return address is in r31.
1382
1383 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
1384
1385         * cfgcleanup.c (try_head_merge_bb): If get_condition returns
1386         NULL for a jump that is a cc0 insn, pick the previous insn for
1387         move_before.
1388
1389 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
1390
1391         * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
1392         throughout file.
1393
1394 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
1395
1396         * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
1397         throughout file.
1398
1399 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
1400
1401         * config/mn10300/mn10300.md: Use match_test rather than eq/ne
1402         symbol_ref throughout file.
1403
1404 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
1405
1406         * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
1407         throughout file.
1408
1409 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
1410
1411         * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
1412         throughout file.
1413
1414 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
1415
1416         * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
1417         throughout file.
1418         * config/arm/neon.md: Likewise.
1419         * config/arm/vfp.md: Likewise.
1420         * config/arm/thumb2.md: Likewise.
1421         * config/arm/cortex-m4.md: Likewise.
1422
1423 2011-09-13  Sevak Sargsyan <sevak.sargsyan@ispras.ru>
1424
1425         * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
1426         define_insn patterns for combine.
1427
1428 2011-09-13  Giuseppe Scrivano  <gscrivano@gnu.org>
1429
1430         * reorg.c: Always define make_return_insns.
1431
1432 2011-09-13  Jan Hubicka  <jh@suse.cz>
1433
1434         PR other/49533
1435         * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
1436
1437 2011-09-13  Jan Hubicka  <jh@suse.cz>
1438
1439         PR other/49533
1440         * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
1441
1442 2011-09-13  Paul Brook  <paul@codesourcery.com>
1443
1444         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1445         (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
1446         * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
1447         * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
1448         * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
1449         * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
1450         * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
1451         * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
1452         enabling unwind tables.
1453         (c6x_debug_unwind_info): New function.
1454         (TARGET_ARM_EABI_UNWINDER): Define.
1455         (TARGET_DEBUG_UNWIND_INFO): Define.
1456         * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
1457         (TARGET_EXTRA_CFI_SECTION): Remove.
1458         * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
1459         * ginclude/unwind-arm-common.h: New file.
1460
1461 2011-09-13  Georg-Johann Lay  <avr@gjlay.de>
1462
1463         PR target/50358
1464         * config/avr/predicates.md (const_1_to_6_operand): New predicate.
1465         * config/avr/avr.md: (extend_s): New code attribute.
1466         (mul_r_d): New code attribute.
1467         (*maddqihi4, *umaddqihi4): New insns.
1468         (*msubqihi4, *umsubqihi4): New insns.
1469         (*usmaddqihi4, *sumaddqihi4): New insns.
1470         (*usmsubqihi4, *susubdqihi4): New insns.
1471         (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
1472         (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
1473         (*umsubqihi4.uconst.ashift): New insn-and-split.
1474         (*msubqihi4.sconst.ashift): New insn-and-split.
1475         (*sumaddqihi4.uconst): New insn-and-split.
1476         (*sumsubqihi4.uconst): New insn-and-split.
1477         * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
1478         PLUS:HI and MINUS:HI.
1479
1480 2011-09-13  Revital Eres  <revital.eres@linaro.org>
1481
1482         modulo-sched.c (remove_node_from_ps): Return void instead of bool.
1483         (optimize_sc): Adjust call to remove_node_from_ps.
1484         (sms_schedule): Add print info.
1485
1486 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
1487
1488         * rtl.c (copy_rtx): Do not handle frame_related, jump or call
1489         flags specially.
1490
1491 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
1492
1493         PR bootstrap/50010
1494         * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
1495         NOTE_INSN_CFI notes, with the exception of
1496         NOTE_INSN_SWITCH_TEXT_SECTIONS.
1497
1498 2011-09-12  Bernd Schmidt  <bernds@codesourcery.com>
1499             Richard Sandiford  <rdsandiford@googlemail.com>
1500
1501         * config/mips/mips.c (mips_epilogue): New structure.
1502         (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
1503         restoring registers.
1504         (mips_epilogue_emit_cfa_restores): New function.
1505         (mips_epilogue_set_cfa): Likewise.
1506         (mips_restore_reg): Queue REG_CFA_RESTORE notes.  When restoring
1507         the current CFA register from the stack, redefine the CFA in terms
1508         of the stack pointer.
1509         (mips_expand_epilogue): Set up mips_epilogue.  Attach CFA information
1510         to the epilogue instructions.
1511
1512 2011-09-12  Richard Sandiford  <rdsandiford@googlemail.com>
1513
1514         * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
1515         argument.
1516         (mips16e_build_save_restore): Update accordingly.
1517
1518 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
1519
1520         PR rtl-optimization/50212
1521         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
1522         Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
1523
1524         PR debug/50299
1525         * calls.c (load_register_parameters): Use use_reg_mode instead
1526         of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
1527         entry.
1528         (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
1529         for stack CALL_INSN_FUNCTION_USAGE uses.
1530         * expr.h (use_reg_mode): New prototype.
1531         (use_reg): Changed into inline around use_reg_mode.
1532         * expr.c (use_reg): Renamed to...
1533         (use_reg_mode): ... this.  Added MODE argument, set EXPR_LIST
1534         mode to that mode instead of VOIDmode.
1535         * var-tracking.c (prepare_call_arguments): Don't track parameters
1536         whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
1537         to it using lowpart_subreg.  Convert VALUE and REG/MEM to the
1538         EXPR_LIST mode.
1539
1540 2011-09-12  Georg-Johann Lay  <avr@gjlay.de>
1541
1542         PR target/43746
1543         * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
1544         (progmem_section): New Variable.
1545         (avr_asm_init_sections): Initialize it.
1546         (TARGET_ASM_SELECT_SECTION): Define to...
1547         (avr_asm_select_section): ... this new Function.
1548         (avr_replace_prefix): New Function.
1549         (avr_asm_function_rodata_section): Use it.
1550         (avr_insert_attributes): Don't add section attribute for PROGMEM.
1551         (avr_section_type_flags): Use avr_progmem_p instead of section
1552         name to detect if object is in PROGMEM.
1553         (avr_asm_named_section): Set section name prefix for objects in
1554         PROGMEM.
1555
1556 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
1557
1558         PR bootstrap/50352
1559         * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
1560         sprintf format string.
1561
1562 2011-09-12  Richard Guenther  <rguenther@suse.de>
1563
1564         PR tree-optimization/50343
1565         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
1566         that the reduction is over an SSA name before checking its definition.
1567
1568 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
1569
1570         * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
1571         throughout file.
1572
1573 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
1574
1575         * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
1576         throughout file.
1577         * config/mips/sb1.md: Likewise.
1578         * config/mips/predicates.md: Replace (match_test "!...")
1579         with (not (match_test "..."))
1580         * config/mips/constraints.md: Likewise.
1581
1582 2011-09-09  Andrew Stubbs  <ams@codesourcery.com>
1583
1584         * config/arm/arm-cores.def (generic-armv7-a): New architecture.
1585         * config/arm/arm-tables.opt: Regenerate.
1586         * config/arm/arm-tune.md: Regenerate.
1587         * config/arm/arm.c (arm_file_start): Output .arch directive when
1588         user passes -mcpu=generic-*.
1589         (arm_issue_rate): Add genericv7a support.
1590         * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
1591         (ASM_CPU_SPEC): New define.
1592         * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
1593         * config/arm/semi.h (ASM_SPEC): Likewise.
1594         * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
1595         and -mtune=generic-*.
1596
1597 2011-09-09  Richard Guenther  <rguenther@suse.de>
1598
1599         PR tree-optimization/50328
1600         * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
1601         constant or default-def operand.
1602
1603 2011-09-09  Richard Guenther  <rguenther@suse.de>
1604
1605         * tree-ssa-pre.c (create_expression_by_pieces): Fold the
1606         last statement.
1607
1608 2011-09-09  Richard Guenther  <rguenther@suse.de>
1609
1610         * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
1611         instead of a statement.
1612         * gimple-fold.c (fold_stmt_inplace): Likewise.
1613         * sese.c (graphite_copy_stmts_from_block): Adjust.
1614         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
1615         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
1616         fold_stmt.
1617         (forward_propagate_addr_into_variable_array_index): Likewise.
1618         (forward_propagate_addr_expr_1): adjust.
1619         (associate_plusminus): Likewise.
1620         (ssa_forward_propagate_and_combine): Likewise.
1621         * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
1622         (execute_cse_reciprocals): Likewise.
1623         * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
1624
1625 2011-09-09  Nick Clifton  <nickc@redhat.com>
1626
1627         * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
1628         Return a positive value to indicate that the bits at the
1629         bottom of the register should be cleared.
1630
1631 2011-09-09  Richard Guenther  <rguenther@suse.de>
1632
1633         * tree-ssa-operands.c (swap_tree_operands): Always adjust
1634         existing operand positions.
1635
1636 2011-09-09  Richard Guenther  <rguenther@suse.de>
1637
1638         PR middle-end/50333
1639         * tree-data-ref.c (split_constant_offset): Do not try to handle
1640         ternary ops.
1641
1642 2011-09-08  Andrew Stubbs  <ams@codesourcery.com>
1643
1644         PR tree-optimization/50318
1645         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
1646         typo in use of mult_rhs1 and mult_rhs2.
1647
1648 2011-09-08  Uros Bizjak  <ubizjak@gmail.com>
1649
1650         * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
1651         (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
1652
1653 2011-09-08  Bernd Schmidt  <bernds@codesourcery.com>
1654
1655         * config/arm/arm.md (push_multi): Emit predicates.
1656         (push_fp_multi): Likewise.
1657         * config/arm/arm.c (vfp_output_fstmd): Likewise.
1658
1659 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
1660
1661         PR c++/33255 - Support -Wunused-local-typedefs warning
1662         * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
1663         (pushdecl): Use the new record_locally_defined_typedef.
1664         (store_parm_decls): Allocate cfun->language.
1665         (finish_function): Use the new maybe_warn_unused_local_typedefs,
1666         and free cfun->language.
1667         (c_push_function_context): Allocate cfun->language here only if needed.
1668         (c_pop_function_context): Likewise, mark cfun->language
1669         for collection only when it should be done.
1670         * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
1671         * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
1672         maybe_record_local_typedef_use.
1673         * doc/invoke.texi: Update documentation for
1674         -Wunused-local-typedefs.
1675
1676 2011-09-08  Enkovich Ilya  <ilya.enkovich@intel.com>
1677
1678         * config/i386/i386-protos.h (ix86_lea_outperforms): New.
1679         (ix86_avoid_lea_for_add): Likewise.
1680         (ix86_avoid_lea_for_addr): Likewise.
1681         (ix86_split_lea_for_addr): Likewise.
1682
1683         * config/i386/i386.c (LEA_MAX_STALL): New.
1684         (increase_distance): Likewise.
1685         (insn_defines_reg): Likewise.
1686         (insn_uses_reg_mem): Likewise.
1687         (distance_non_agu_define_in_bb): Likewise.
1688         (distance_agu_use_in_bb): Likewise.
1689         (ix86_lea_outperforms): Likewise.
1690         (ix86_ok_to_clobber_flags): Likewise.
1691         (ix86_avoid_lea_for_add): Likewise.
1692         (ix86_avoid_lea_for_addr): Likewise.
1693         (ix86_split_lea_for_addr): Likewise.
1694         (distance_non_agu_define): Search in pred BBs added.
1695         (distance_agu_use): Search in succ BBs added.
1696         (IX86_LEA_PRIORITY): Value changed from 2 to 0.
1697         (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
1698         (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
1699
1700         * config/i386/i386.md: Split added to transform non destructive
1701         add into move and add.
1702         (lea_1): transformed into insn_and_split to avoid AGU stalls.
1703         (lea<mode>_2): Likewise.
1704
1705 2011-09-08  Martin Jambor  <mjambor@suse.cz>
1706
1707         PR tree-optimization/50287
1708         * ipa-split.c (split_function): Do not create SSA names for
1709         non-gimple-registers.
1710
1711 2011-09-08  Richard Guenther  <rguenther@suse.de>
1712
1713         PR tree-optimization/19831
1714         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
1715         skip builtins with vdefs that do not really store something.
1716         (propagate_necessity): For calls to free that we can associate
1717         with an allocation function do not mark the freed pointer
1718         definition necessary.
1719         (eliminate_unnecessary_stmts): Remove a call to free if
1720         the associated call to an allocation function is not necessary.
1721
1722 2011-09-08  Richard Guenther  <rguenther@suse.de>
1723
1724         PR tree-optimization/19831
1725         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
1726         allocation functions as necessary.
1727
1728 2011-09-08  Iain Sandoe  <iains@gcc.gnu.org>
1729
1730         * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
1731         cut from ...
1732         (darwin_default_min_version): Amended to provide defaults
1733         for the cross directory case.
1734         (darwin_driver_init): call darwin_default_min_version unconditionally.
1735         * config/darwin.h (DEF_MIN_OSX_VERSION): New.
1736         * config/darwin9.h: Likewise.
1737         * config/darwin10.h: Likewise.
1738         * config/rs6000/darwin7.h: Likewise.
1739
1740 2011-09-08  Jakub Jelinek  <jakub@redhat.com>
1741
1742         PR target/50310
1743         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
1744         code early if TARGET_AVX.
1745         (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
1746
1747 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
1748
1749         * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
1750         duplicates.
1751
1752         PR target/50310
1753         * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
1754         "mode" attribute computation.
1755
1756 2011-09-07  Bernd Schmidt  <bernds@codesourcery.com>
1757
1758         * regrename.c (struct du_head): Make nregs signed.
1759         (closed_chains): Remove.
1760         (create_new_chain): Return the new chain.
1761         (chain_from_id): New static function.
1762         (dump_def_use_chain): Change argument to be an int, indicating
1763         the first ID to print.  All callers changed.
1764         (merge_overlapping_regs): Use chain_from_id.  Assert that
1765         chains don't conflict with themselves.
1766         (rename_chains): Take no argument.  Iterate over id_to_chain
1767         rather to find chains to rename.  Clear tick before the main loop.
1768         (struct incoming_reg_info): New struct.
1769         (struct bb_rename_info): New struct.
1770         (init_rename_info, set_incoming_from_chain, merge_chains): New
1771         static functions.
1772         (regrename_analyze): New static function, broken out of
1773         regrename_optimize.  Record and make use of open chain information
1774         at basic block boundaries, and merge chains where possible.
1775         (scan_rtx_reg): Make this_nregs signed.  Don't update
1776         closed_chains.
1777         (build_def_use): Return a bool to indicate success.  All callers
1778         changed.  Don't initialize global data here.
1779         (regrename_optimize): Move most code out of here into
1780         regrename_analyze.
1781         * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
1782         range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
1783         static inline functions.
1784         * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
1785
1786         * bb-reorder.c (insert_section_boundary_note): Don't check
1787         optimize_function_for_speed_p.
1788         (gate_handle_partition_blocks): Do it here instead.
1789         (gate_handle_reorder_blocks): Move preliminary checks here ...
1790         (rest_of_handle_reorder_blocks): ... from here.
1791
1792 2011-09-07  Martin Jambor  <mjambor@suse.cz>
1793
1794         PR middle-end/50301
1795         * ipa-cp.c (find_more_values_for_callers_subset): Check jump
1796         function index bounds.
1797         (perhaps_add_new_callers): Likewise.
1798
1799 2011-09-07  Martin Jambor  <mjambor@suse.cz>
1800
1801         PR tree-optimization/49911
1802         * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
1803         enumerations to the corresponding plain integer type.
1804
1805 2011-09-07  Richard Guenther  <rguenther@suse.de>
1806
1807         PR tree-optimization/50319
1808         * tree-if-conv.c (set_bb_predicate): Assert we only set
1809         canonical predicates.
1810         (add_to_predicate_list): Simplify.  Allow TRUTH_NOT_EXPR
1811         around canonical predicates.
1812         (predicate_bbs): Do not re-gimplify already canonical
1813         predicates.  Properly unshare them though.
1814         (find_phi_replacement_condition): Simplify.
1815
1816 2011-09-07  Richard Sandiford  <richard.sandiford@linaro.org>
1817
1818         PR target/49030
1819         * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
1820         * config/arm/arm.c (maybe_get_arm_condition_code): New function,
1821         reusing the old code from get_arm_condition_code.  Return ARM_NV
1822         for invalid comparison codes.
1823         (get_arm_condition_code): Redefine in terms of
1824         maybe_get_arm_condition_code.
1825         * config/arm/predicates.md (arm_comparison_operator): Use
1826         maybe_get_arm_condition_code.
1827
1828 2011-09-07  Richard Guenther  <rguenther@suse.de>
1829
1830         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
1831         Canonicalize negated predicates by swapping edges.
1832         (forward_propagate_into_cond): Likewise.
1833
1834 2011-09-07  Richard Guenther  <rguenther@suse.de>
1835
1836         PR tree-optimization/50213
1837         * tree-flow.h (simple_iv_increment_p): Declare.
1838         * tree-ssa-dom.c (simple_iv_increment_p): Export.  Also handle
1839         POINTER_PLUS_EXPR.
1840         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
1841         not propagate simple IV counter increments.
1842
1843 2011-09-07  Eric Botcazou  <ebotcazou@adacore.com>
1844             Iain Sandoe  <iains@gcc.gnu.org>
1845
1846         * config/rs6000/rs6000.c (compute_save_world_info): Test
1847         cfun->has_nonlocal_label to determine if the out-of-line save
1848         world call may be used.
1849
1850 2011-09-07  Nick Clifton  <nickc@redhat.com>
1851
1852         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
1853         label on the parallel part of the insn.
1854
1855 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
1856
1857         PR debug/50191
1858         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
1859         avoid_constant_pool_reference first instead of last.
1860
1861 2011-09-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
1862
1863         * doc/configfiles.texi (Configuration Files): Update documentation
1864         about tm_p.h and remove FIXME comment.
1865
1866 2011-09-06  Uros Bizjak  <ubizjak@gmail.com>
1867
1868         * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
1869         (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
1870
1871 2011-09-06  Iain Sandoe  <iains@gcc.gnu.org>
1872
1873         * config/darwin10.h Remove duplicate LIB_SPEC.
1874
1875 2011-09-06  Enkovich Ilya  <ilya.enkovich@intel.com>
1876
1877         PR middle-end/44382
1878         * target.def (reassociation_width): New hook.
1879
1880         * doc/tm.texi.in (reassociation_width): Likewise.
1881
1882         * doc/tm.texi (reassociation_width): Likewise.
1883
1884         * doc/invoke.texi (tree-reassoc-width): New param documented.
1885
1886         * hooks.h (hook_int_uint_mode_1): New default hook.
1887
1888         * hooks.c (hook_int_uint_mode_1): Likewise.
1889
1890         * config/i386/i386.h (ix86_tune_indices): Add
1891         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
1892
1893         (TARGET_REASSOC_INT_TO_PARALLEL): New.
1894         (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
1895
1896         * config/i386/i386.c (initial_ix86_tune_features): Add
1897         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
1898
1899         (ix86_reassociation_width): New function.
1900
1901         * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
1902
1903         * tree-ssa-reassoc.c (get_required_cycles): New function.
1904         (get_reassociation_width): Likewise.
1905         (swap_ops_for_binary_stmt): Likewise.
1906         (rewrite_expr_tree_parallel): Likewise.
1907
1908         (rewrite_expr_tree): Refactored.  Part of code moved into
1909         swap_ops_for_binary_stmt.
1910
1911         (reassociate_bb): Now checks reassociation width to be used and
1912         call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
1913
1914 2011-09-06  Richard Guenther  <rguenther@suse.de>
1915
1916         PR tree-optimization/47025
1917         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
1918         uses nothing.
1919         (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
1920         BUILT_IN_FREE.
1921         (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
1922         definitely points to.
1923         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1924         BUILT_IN_VA_START doesn't let its va_list argument escape.
1925         * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
1926         not make any previous stores necessary.
1927
1928 2011-09-06  Martin Jambor  <mjambor@suse.cz>
1929
1930         * ipa-inline.h (struct inline_summary): Move versionable flag...
1931         * cgraph.h (struct cgraph_local_info): ...here
1932         * ipa-cp.c (determine_versionability): Use the new versionable flag.
1933         (determine_versionability): Likewise.
1934         (ipcp_versionable_function_p): Likewise.
1935         (ipcp_generate_summary): Likewise.
1936         * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
1937         versionable flag.
1938         (compute_inline_parameters): Do not clear the versionable flag.
1939         (inline_read_section): Do not stream the versionable flag.
1940         (inline_write_summary): Likewise.
1941         * lto-cgraph.c (lto_output_node): Stream the versionable flag.
1942         (input_overwrite_node): Likewise.
1943
1944 2011-09-06  Richard Guenther  <rguenther@suse.de>
1945
1946         PR tree-optimization/48149
1947         * tree-ssa-sccvn.c (vn_get_expr_for): Simplify.  Fix tuplification bug.
1948         (vn_valueize): Move earlier.
1949         (valueize_expr): Use vn_valueize.
1950         (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
1951         operands.
1952         (simplify_unary_expression): Simplify.
1953
1954 2011-09-06  Richard Guenther  <rguenther@suse.de>
1955
1956         PR tree-optimization/48317
1957         * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
1958         trailing array.
1959         (sizeof_vn_nary_op): New inline function.
1960         (vn_nary_op_lookup_pieces): Adjust.
1961         (vn_nary_op_insert_pieces): Likewise.
1962         * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
1963         (init_vn_nary_op_from_pieces): Adjust signature.  Deal with
1964         any number of operands.
1965         (vn_nary_length_from_stmt): New function.
1966         (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
1967         (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
1968         sized temporary.
1969         (vn_nary_op_lookup): Likewise.
1970         (vn_nary_op_lookup_stmt): Likewise.
1971         (vn_nary_op_insert_into): Likewise.
1972         (vn_nary_op_insert_stmt): Likewise.
1973         (visit_use): Handle CONSTRUCTOR as nary.
1974         * tree-ssa-pre.c (phi_translate_1): Adjust.
1975         (create_expression_by_pieces): Likewise.
1976         (compute_avail): Likewise.
1977
1978 2011-09-06  Ira Rosen  <ira.rosen@linaro.org>
1979
1980          * config/arm/arm.c (arm_preferred_simd_mode): Check
1981         TARGET_NEON_VECTORIZE_DOUBLE instead of
1982         TARGET_NEON_VECTORIZE_QUAD.
1983         (arm_autovectorize_vector_sizes): Likewise.
1984         * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
1985         mask of mvectorize-with-neon-double.  Add RejectNegative.
1986         (mvectorize-with-neon-double): New.
1987
1988 2011-09-06  Richard Guenther  <rguenther@suse.de>
1989
1990         * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
1991
1992 2011-09-06  Tom de Vries  <tom@codesourcery.com>
1993
1994         * recog.c (asm_labels_ok): New function.
1995         (check_asm_operands): Use asm_labels_ok.
1996
1997 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
1998
1999         PR target/49606
2000         * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
2001         (PMODE_INSN): New macro.
2002         * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
2003         (mips_got_load, mips_expand_synci_loop): Likewise.
2004         (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
2005         cprestore patterns.
2006         (mips_emit_loadgp): Use PMODE_INSN.  Handle SImode and DImode
2007         copygp_mips16 patterns.
2008         (mips_expand_prologue): Handle SImode and DImode potential_cprestore
2009         and use_cprestore patterns.
2010         (mips_override_options): Check for incompatible -mabi and -mlong
2011         combinations.
2012         * config/mips/mips.md (unspec_got<mode>): Rename to...
2013         (unspec_got_<mode>): ...this.
2014         (copygp_mips16): Use the Pmode iterator.
2015         (potential_cprestore, cprestore, use_cprestore): Likewise.
2016         (clear_cache, indirect_jump): Use PMODE_INSN.
2017         (indirect_jump<mode>): Rename to...
2018         (indirect_jump_<mode>): ...this.
2019         (tablejump): Use PMODE_INSN.
2020         (tablejump<mode>): Rename to...
2021         (tablejump_<mode>): ...this.
2022         (exception_receiver): Handle restore_gp_si and restore_gp_di.
2023         (restore_gp): Use the Pmode iterator.
2024         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
2025         PMODE_INSN.
2026
2027 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
2028
2029         * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
2030         Fix the type of the BIT_AND_EXPR.
2031
2032 2011-09-05  David S. Miller  <davem@davemloft.net>
2033
2034         * config.host: Add driver-sparc.o and sparc/x-sparc on
2035         native sparc*-*-linux* builds.
2036         * config/sparc/driver-sparc.c: Correct Linux strings.
2037         * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
2038         * config/sparc/linux64.h: Likewise.
2039         * doc/invoke.texi: Document that Linux also supports
2040         -mcpu=native and -mtune=native on sparc.
2041
2042         * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
2043         PROCESSOR_NIAGARA4): New.
2044         * config/sparc/sparc.opt: Handle new processor types.
2045         * config/sparc/sparc.md: Add to "cpu" attribute.
2046         * config/sparc/sparc.h (TARGET_CPU_niagara3,
2047         TARGET_CPU_niagara4): New, treat as niagara2.
2048         * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
2049         * config/sparc/sol2.h: Likewise.
2050         * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
2051         * config/sparc/sparc.c (sparc_option_override): Add
2052         niagara3 and niagara4 handling.
2053         (sparc32_initialize_trampoline): Likewise.
2054         (sparc64_initialize_trampoline): Likewise.
2055         (sparc_use_sched_lookahead): Likewise.
2056         (sparc_issue_rate): Likewise.
2057         (sparc_register_move_cost): Likewise.
2058         * config/sparc/driver-sparc.c (cpu_names): Use niagara3
2059         and niagara4 as appropriate.
2060         * doc/invoke.texi: Document new processor types.
2061         * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
2062         and --with-tune options.
2063
2064         * config/sparc/sol2-64.h: Move ...
2065         * config/sparc/default-64.h: ... to here.  Update comment.
2066         * config.gcc: Update Solaris sparc to use default-64.h, also
2067         prefix this header into the list on sparc64-*-linux.
2068         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
2069         TARGET_64BIT_DEFAULT is defined.  Remove commented out reference
2070         to MASK_HARD_QUAD.
2071
2072 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
2073
2074         PR target/50289
2075         * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
2076         that contain global register variable.
2077
2078 2011-09-05  Richard Guenther  <rguenther@suse.de>
2079
2080         * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
2081
2082 2011-09-05  Richard Guenther  <rguenther@suse.de>
2083
2084         * stor-layout.c (layout_type): Use size_binop for array size
2085         calculations.
2086
2087 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
2088
2089         * config/avr/avr.h (progmem_section): Remove Declaration.
2090         * config/avr/avr.c (progmem_section): Make static and rename to
2091         progmem_swtable_section.
2092         (avr_output_addr_vec_elt): No need to switch sections.
2093         (avr_asm_init_sections): Use output_section_asm_op as section
2094         callback for progmem_swtable_section.
2095         (avr_output_progmem_section_asm_op): Remove Function.
2096         (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
2097         (avr_asm_function_rodata_section): New static Function.
2098         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
2099         alignment 2**1 for jump tables.
2100
2101 2011-09-04  Jan Hubicka  <jh@suse.cz>
2102
2103         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
2104         parameter is SSA name.
2105
2106 2011-09-04  Richard Guenther  <rguenther@suse.de>
2107
2108         Revert
2109         2011-08-31  Richard Guenther  <rguenther@suse.de>
2110
2111         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
2112         special-casing.
2113
2114 2011-09-04  Iain Sandoe  <iains@gcc.gnu.org>
2115
2116         PR debug/49901
2117         * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
2118
2119 2011-09-04  Jakub Jelinek  <jakub@redhat.com>
2120             Ira Rosen  <ira.rosen@linaro.org>
2121
2122         PR tree-optimization/50208
2123         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
2124         argument.  Check that def_stmt is inside the loop.
2125         (vect_recog_widen_mult_pattern): Update calls to
2126         vect_handle_widen_mult_by_cons.
2127         (vect_operation_fits_smaller_type): Check that def_stmt is
2128         inside the loop.
2129
2130 2011-09-04  Ira Rosen  <ira.rosen@linaro.org>
2131
2132         * tree-vectorizer.c (vect_print_dump_info): Print line
2133         number when dumping to a file.
2134         (vectorize_loops): Add new messages to dump file.
2135
2136 2011-09-03  Martin Jambor  <mjambor@suse.cz>
2137
2138         * ipa-prop.h (ipa_jump_func_t): New typedef.
2139         (struct ipa_edge_args): Removed field argument_count, field
2140         jump_functions turned into a vector.
2141         (ipa_set_cs_argument_count): Removed.
2142         (ipa_get_cs_argument_count): Updated to work on vectors.
2143         (ipa_get_ith_jump_func): Likewise.
2144         * ipa-prop.c (ipa_count_arguments): Removed.
2145         (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
2146         jump functions.  Update caller.
2147         (compute_pass_through_member_ptrs): Likewise.
2148         (compute_cst_member_ptr_arguments): Likewise.
2149         (ipa_compute_jump_functions_for_edge): Get number of arguments from
2150         the statement, allocate vector.
2151         (ipa_compute_jump_functions): Do not call ipa_count_arguments.
2152         (duplicate_ipa_jump_func_array): Removed.
2153         (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
2154         (ipa_read_node_info): Allocate vector.
2155
2156 2011-09-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2157
2158         PR middle-end/50232
2159         * config/pa/pa.md (return): Define "return" insn pattern.
2160         (epilogue): Use it when no epilogue is needed.
2161         * config/pa/pa.c (pa_can_use_return_insn): New function.
2162         * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
2163
2164 2011-09-03  Eric Botcazou  <ebotcazou@adacore.com>
2165
2166         * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
2167         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
2168         Force at least BITS_PER_UNIT alignment on the new variable.
2169
2170 2011-09-02  Gary Funck <gary@intrepid.com>
2171
2172         * opts.c (print_specific_help): Fix off-by-one compare in
2173         assertion check.
2174         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
2175         CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
2176         Increase by +5 to allow for more languages.
2177         * optc-gen.awk: Generate #if that ensures that the number of
2178         languages is within the implementation-defined limit.
2179
2180 2011-09-02  Michael Matz  <matz@suse.de>
2181
2182         PR middle-end/50260
2183         * ipa-split.c (split_function): Call add_referenced_var.
2184
2185         * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
2186         (cond_if_else_store_replacement_1): Ditto.
2187         * tree-ssa-pre.c (get_representative_for): Ditto.
2188         (create_expression_by_pieces): Ditto.
2189         (insert_into_preds_of_block): Ditto.
2190         * tree-sra.c (create_access_replacement): Ditto.
2191         (get_replaced_param_substitute): Ditto.
2192
2193 2011-09-02  Bernd Schmidt  <bernds@codesourcery.com>
2194
2195         * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
2196         automata_options.
2197         (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
2198         (l1w, s1w, l2w, s2w): Define in the main automaton.
2199         (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
2200         units.
2201         * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
2202         (c6x_unit_names): Add the new units.
2203         (c6x_unit_codes): New static array.
2204         (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
2205         UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
2206         UNIT_QID_SIDE_OFFSET): New macros.
2207         (RESERVATION_S2): Adjust value.
2208         (c6x_option_override): Compute c6x_unit_codes.
2209         (assign_reservations): Take the unit_mask of the last instruction
2210         into account.  Detect floating point reservations by looking for
2211         the new units.  Don't assign reservations if the field is already
2212         nonzero.
2213         (struct c6x_sched_context): Add member prev_cycle_state_ctx.
2214         (init_sched_state): Initialize it.
2215         (c6x_clear_sched_context): Free it.
2216         (insn_set_clock): Clear reservation.
2217         (prev_cycle_state): New static variable.
2218         (c6x_init_sched_context): Save it.
2219         (c6x_sched_init): Allocate space for it and clear it.
2220         (c6x_sched_dfa_pre_cycle_insn): New static function.
2221         (c6x_dfa_new_cycle): Save state at the start of a new cycle.
2222         (c6x_variable_issue): Only record units in the unit_mask that
2223         were not set at the start of the cycle.
2224         (c6x_variable_issue): Compute and store the unit_mask from the
2225         current state.
2226         (reorg_split_calls): Ensure the new information remains correct.
2227         (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
2228         TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
2229         * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
2230         * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
2231         Add special reservations.
2232         * config/c6x/c6x-sched.md: Regenerate.
2233
2234 2011-09-02  Martin Jambor  <mjambor@suse.cz>
2235
2236         * ipa-prop.h (ipa_node_params): Removed fields
2237         called_with_var_arguments and node_versionable.
2238         (ipa_set_called_with_variable_arg): Removed.
2239         (ipa_is_called_with_var_arguments): Likewise.
2240         * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
2241         (determine_versionability): Do not check for type attributes and va
2242         builtins.  Record versionability into inline summary.
2243         (initialize_node_lattices): Do not check
2244         ipa_is_called_with_var_arguments.
2245         (propagate_constants_accross_call): Likewise, ignore arguments we do
2246         not have PARM_DECLs for, set variable flag for parameters that were
2247         not passed a value.
2248         (create_specialized_node): Dump info that we cannot change signature.
2249         * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
2250         number of arguments.
2251         (ipa_make_edge_direct_to_target): Likewise.
2252         (ipa_update_after_lto_read): Likewise.
2253         (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
2254         * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
2255         they were remapped.
2256
2257 2011-09-02  Richard Guenther  <rguenther@suse.de>
2258
2259         PR tree-optimization/27460
2260         PR middle-end/29269
2261         * doc/md.texi (vcond): Document.
2262         * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
2263         optab with two modes.
2264         * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
2265         (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
2266         (vcond_optab): Adjust.
2267         (vcondu_optab): Likewise.
2268         (expand_vec_cond_expr_p): Adjust prototype.
2269         * optabs.c (get_vcond_icode): Adjust.
2270         (expand_vec_cond_expr_p): Likewise.
2271         (expand_vec_cond_expr): Likewise.
2272         * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
2273         vector type.
2274         (vectorizable_condition): Allow differing types for comparison
2275         and result.
2276         * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
2277         for the comparison.
2278         * config/i386/sse.md (vcond<mode>): Split to
2279         vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
2280         vcond<V_128:mode><VI124_128:mode> and
2281         vcondu<V_128:mode><VI124_128:mode>.
2282         (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
2283         (vconduv2di): Likewise.
2284         * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
2285         (vcondu<mode>): Likewise.
2286         * config/ia64/vect.md (vcond<mode>): Likewise.
2287         (vcondu<mode>): Likewise.
2288         (vcondv2sf): Likewise.
2289         * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
2290         * config/rs6000/paired.md (vcondv2sf): Likewise.
2291         * config/rs6000/vector.md (vcond<mode>): Likewise.
2292         (vcondu<mode>): Likewise.
2293         * config/spu/spu.md (vcond<mode>): Likewise.
2294         (vcondu<mode>): Likewise.
2295
2296 2011-09-02  Richard Guenther  <rguenther@suse.de>
2297
2298         * pretty-print.h (pp_unsigned_wide_integer): New.
2299         * tree-pretty-print.c (dump_generic_node): Print unsigned
2300         host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
2301
2302 2011-09-02  Richard Sandiford  <richard.sandiford@linaro.org>
2303
2304         PR target/49987
2305         * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
2306         valid CONST_VECTOR operands.
2307         (rs6000_expand_vector_init): Likewise.
2308
2309 2011-09-02  Martin Jambor  <mjambor@suse.cz>
2310
2311         * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
2312         * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
2313         BINFO_VTABLE.  Parameter delta removed, all callers updated.
2314         * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
2315         BINFO_VTABLE.
2316         * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
2317         all calls.
2318         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
2319         handling of thunk_delta.
2320         * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
2321         (devirtualization_time_bonus): Do not handle thunk deltas.
2322         (ipcp_discover_new_direct_edges): Likewise.
2323         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
2324         (try_make_edge_direct_simple_call): Likewise.
2325         (try_make_edge_direct_virtual_call): Likewise.
2326         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
2327         parameter set as unused.
2328         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
2329         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
2330         parameter set as unused.
2331         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
2332         (input_edge_opt_summary): Likewise.
2333         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
2334         BINFO_VIRTUALS at all.
2335         * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
2336
2337 2011-09-02  Richard Guenther  <rguenther@suse.de>
2338
2339         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
2340         (ccp_fold_stmt): Continue replacing args when folding alloca fails.
2341
2342 2011-08-31  Richard Guenther  <rguenther@suse.de>
2343
2344         * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
2345         handling here, from ...
2346         (expand_expr_real_1): ... here.
2347         * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
2348         and VEC_COND_EXPR.
2349         * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
2350         a GIMPLE_TERNARY_RHS.
2351         * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
2352         and VEC_COND_EXPR here ...
2353         (verify_gimple_assign_single): ... not here.
2354         * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
2355         * tree-object-size.c (cond_expr_object_size): Adjust.
2356         (collect_object_sizes_for): Likewise.
2357         * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
2358         * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
2359         (ssa_forward_propagate_and_combine): Adjust.
2360         * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
2361         as ternary.
2362         * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
2363         * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
2364         * tree-vect-stmt.c (vectorizable_condition): Likewise.
2365         * tree-vrp.c (extract_range_from_cond_expr): Likewise.
2366         (extract_range_from_assignment): Likewise.
2367
2368 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
2369
2370         * config/i386/i386.md: Use (match_test ...) for attribute tests.
2371         * config/i386/mmx.md: Likewise.
2372         * config/i386/sse.md: Likewise.
2373         * config/i386/predicates.md (call_insn_operand): Use
2374         (not (match_test "...")) instead of (match_test "!...")
2375         * config/i386/constraints.md (w): Likewise.
2376
2377 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
2378
2379         * doc/md.texi: Describe the use of match_tests in attribute tests.
2380         * rtl.def (MATCH_TEST): Update commentary.
2381         * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
2382         (write_test_expr, walk_attr_value): Handle MATCH_TEST.
2383
2384 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
2385
2386         * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
2387         (attr_string): Use copy_md_ptr_loc.
2388
2389 2011-08-31  Martin Jambor  <mjambor@suse.cz>
2390
2391         PR middle-end/49886
2392         * ipa-inline-analysis.c (compute_inline_parameters): Set
2393         can_change_signature of noes with typde attributes.
2394         * ipa-split.c (split_function): Do not skip any arguments if
2395         can_change_signature is set.
2396
2397 2011-08-31  Martin Jambor  <mjambor@suse.cz>
2398
2399         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
2400         check removed.
2401
2402 2011-08-31  Richard Guenther  <rguenther@suse.de>
2403
2404         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
2405         special-casing.
2406
2407 2011-08-31  Marc Glisse  <marc.glisse@inria.fr>
2408
2409         * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
2410
2411 2011-08-31  Tom de Vries  <tom@codesourcery.com>
2412
2413         PR middle-end/43513
2414         * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
2415         * tree-ssa-ccp.c (params.h): Include.
2416         (fold_builtin_alloca_for_var): New function.
2417         (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
2418
2419 2011-08-30  Uros Bizjak  <ubizjak@gmail.com>
2420
2421         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
2422         Handle FMA option.
2423
2424 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
2425
2426         * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
2427         b3 and b4 unsigned.
2428
2429 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
2430
2431         * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
2432         when code is SET.
2433
2434 2011-08-30  Richard Guenther  <rguenther@suse.de>
2435
2436         PR middle-end/48571
2437         * gimple.h (maybe_fold_offset_to_address): Remove.
2438         (maybe_fold_offset_to_reference): Likewise.
2439         (maybe_fold_stmt_addition): Likewise.
2440         (may_propagate_address_into_dereference): Likewise.
2441         * tree-inline.c (remap_gimple_op_r): Do not reconstruct
2442         array references.
2443         * gimple-fold.c (canonicalize_constructor_val): Likewise.
2444         Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
2445         addresses instead.
2446         (may_propagate_address_into_dereference): Remove.
2447         (maybe_fold_offset_to_array_ref): Likewise.
2448         (maybe_fold_offset_to_reference): Likewise.
2449         (maybe_fold_offset_to_address): Likewise.
2450         (maybe_fold_stmt_addition): Likewise.
2451         (fold_gimple_assign): Do not reconstruct array references but
2452         instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
2453         MEM_REF addresses.
2454         (gimple_fold_stmt_to_constant_1): Likewise.
2455         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2456         * gimplify.c (gimplify_conversion): Likewise.
2457         (gimplify_expr): Likewise.
2458
2459 2011-08-30  Ilya Tocar  <ilya.tocar@intel.com>
2460
2461         * config/i386/fmaintrin.h: New.
2462         * config.gcc: Add fmaintrin.h.
2463         * config/i386/i386.c
2464         (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
2465         <IX86_BUILTIN_VFMADDSD3>: Likewise.
2466         * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
2467         (*fmai_fmadd_<mode>): Likewise.
2468         (*fmai_fmsub_<mode>): Likewise.
2469         (*fmai_fnmadd_<mode>): Likewise.
2470         (*fmai_fnmsub_<mode>): Likewise.
2471         * config/i386/immintrin.h: Add fmaintrin.h.
2472
2473 2011-08-30  Bernd Schmidt  <bernds@codesourcery.com>
2474
2475         * genautomata.c (NO_COMB_OPTION): New macro.
2476         (no_comb_flag): New static variable.
2477         (gen_automata_option): Handle NO_COMB_OPTION.
2478         (comb_vect_p): False if no_comb_flag.
2479         (add_vect): Move computation of min/max values.  Return early if
2480         no_comb_flag.
2481         * doc/md.texi (automata_option): Document no-comb-vect.
2482
2483         * config/i386/i386.c (get_pc_thunk_name): Change prefix to
2484         "__x86.get_pc_thunk".
2485
2486         * bb-reorder.c (insert_section_boundary_note): Only do it if
2487         we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
2488
2489 2011-08-30  Christian Bruel  <christian.bruel@st.com>
2490
2491         * coverage.c (coverage_init): Check flag_branch_probabilities instead of
2492         flag_profile_use.
2493
2494 2011-08-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
2495
2496         * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
2497         to off.  Document switch.
2498         * doc/invoke.texi (-msave-toc-indirect): Ditto.
2499
2500 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
2501
2502         * gthr-posix.h (__gthread_active_p): Do not use preprocessor
2503         conditionals and comments inside macro arguments.
2504
2505 2011-08-29  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
2506             Richard Guenther  <rguenther@suse.de>
2507
2508         * tree.h (constant_boolean_node): Adjust prototype.
2509         * fold-const.c (fold_convert_loc): Move aggregate conversion
2510         leeway down.
2511         (constant_boolean_node): Make value parameter boolean, add
2512         vector type handling.
2513         (fold_unary_loc): Use constant_boolean_node.
2514         (fold_binary_loc): Preserve types properly when folding
2515         COMPLEX_EXPR <__real x, __imag x>.
2516         * gimplify.c (gimplify_expr): Handle vector comparison.
2517         * tree.def (EQ_EXPR, ...): Document behavior on vector typed
2518         comparison.
2519         * tree-cfg.c (verify_gimple_comparison): Verify vector typed
2520         comparisons.
2521
2522 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
2523
2524         PR middle-end/48722
2525         * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
2526         reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
2527         (verify_rtl_sharing): Likewise and verify_rtx_sharing
2528         in there too.
2529         (unshare_all_rtl_in_chain): For CALL_INSNs
2530         copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
2531
2532 2011-08-29  Richard Guenther  <rguenther@suse.de>
2533
2534         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
2535         on the built ADDR_EXPR.
2536
2537 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
2538
2539         PR debug/50215
2540         * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
2541         before adding ENTRY_VALUE to val->locs.
2542
2543 2011-08-28  Mikael Pettersson  <mikpe@it.uu.se>
2544
2545         PR bootstrap/50218
2546         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
2547         comp.
2548
2549 2011-08-27  Bernd Schmidt  <bernds@codesourcery.com>
2550
2551         * doc/rtl.texi (simple_return): Document.
2552         (parallel, PATTERN): Here too.
2553         * doc/md.texi (return): Mention it's allowed to expand to simple_return
2554         in some cases.
2555         (simple_return): Document standard pattern.
2556         * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
2557         * final.c (final_scan_insn): Use ANY_RETURN_P on body.
2558         * reorg.c (function_return_label, function_simple_return_label):
2559         New static variables, replacing...
2560         (end_of_function_label): ... this.
2561         (simplejump_or_return_p): New static function.
2562         (optimize_skip, steal_delay_list_from_fallthrough,
2563         fill_slots_from_thread): Use it.
2564         (relax_delay_slots): Likewise.  Use ANY_RETURN_P on body.
2565         (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
2566         (find_end_label): Take a new arg which is one of the two return
2567         rtxs.  Depending on which, set either function_return_label or
2568         function_simple_return_label.  All callers changed.
2569         (make_return_insns): Make both kinds.
2570         (dbr_schedule): Adjust for two kinds of end labels.
2571         * function.c (emit_return_into_block): Set JUMP_LABEL properly.
2572         * genemit.c (gen_exp): Handle SIMPLE_RETURN.
2573         (gen_expand, gen_split): Use ANY_RETURN_P.
2574         * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
2575         * rtl.def (SIMPLE_RETURN): New code.
2576         * ifcvt.c (find_if_case_1): Be more careful about
2577         redirecting jumps to the EXIT_BLOCK.
2578         * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
2579         returnjump_p_1): Handle SIMPLE_RETURNs.
2580         * print-rtl.c (print_rtx): Likewise.
2581         * rtl.c (copy_rtx): Likewise.
2582         * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
2583         * combine.c (simplify_set): Likewise.
2584         * resource.c (find_dead_or_set_registers, mark_set_resources):
2585         Likewise.
2586         * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
2587         copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
2588         (init_emit_regs): Initialize simple_return_rtx.
2589         * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
2590         force_nonfallthru_and_redirect.
2591         * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
2592         (GR_SIMPLE_RETURN): New enum value.
2593         (simple_return_rtx): New macro.
2594         * basic-block.h (force_nonfallthru_and_redirect): Adjust
2595         declaration.
2596         * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
2597         argument.  All callers changed.  Be careful about what kinds of
2598         returnjumps to generate.
2599         * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
2600         ix86_pad_short_function): Likewise.
2601         * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
2602         of return.
2603         * config/mips/mips.md (any_return): New code_iterator.
2604         (optab): Add cases for return and simple_return.
2605         (return): Expand to a simple_return.
2606         (simple_return): New pattern.
2607         (*<optab>, *<optab>_internal for any_return): New patterns.
2608         (return_internal): Remove.
2609         * config/mips/mips.c (mips_expand_epilogue): Make the last insn
2610         a simple_return_internal.
2611
2612 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
2613
2614         * config/i386/sse.md (*absneg<mode>2): Fix split condition.
2615         (vec_extract_lo_<mode>): Prevent both operands in memory.
2616         (vec_extract_lo_v16hi): Ditto.
2617         (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
2618
2619 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
2620
2621         * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
2622         (*sse2_mulv4si3): Ditto.
2623         (mulv2di3): Ditto.
2624         * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
2625         notes to REG_EQUAL.
2626
2627 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
2628
2629         PR target/50202
2630         * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
2631         when all outputs are unused.
2632         (sse4_2_pcmpistr): Ditto.
2633
2634 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
2635
2636         * config/i386/i386.md (round<mode>2): New expander.
2637         * config/i386/i386.c (enum ix86_builtins): Add
2638         IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
2639         (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
2640         descriptions.
2641         (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
2642         (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
2643
2644 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
2645
2646         PR middle-end/50083
2647         * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
2648         only when TARGET_C99_FUNCTIONS.
2649         <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
2650         <BUILT_IN_RINT{,F,L}>: Ditto.
2651
2652 2011-08-26  Michael Matz  <matz@suse.de>
2653             Jakub Jelinek  <jakub@redhat.com>
2654
2655         PR lto/50165
2656         * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
2657         don't call strlen twice, use memcpy.
2658
2659 2011-08-26  H.J. Lu  <hongjiu.lu@intel.com>
2660
2661         * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
2662         * config/i386/bmiintrin.h: Likewise.
2663         * config/i386/lzcntintrin.h: Likewise.
2664
2665         * config/i386/immintrin.h: Include <lzcntintrin.h>,
2666         <bmiintrin.h> and <bmi2intrin.h>.
2667
2668 2011-08-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2669
2670         PR target/50166
2671         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
2672         * configure: Regenerate.
2673
2674 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
2675
2676         PR c/50179
2677         * c-typeck.c (c_process_expr_stmt): Skip over nops and
2678         call mark_exp_read even if exprv is ADDR_EXPR.
2679
2680 2011-08-26  Richard Sandiford  <richard.sandiford@linaro.org>
2681
2682         * df-problems.c (df_note_bb_compute): Pass uses rather than defs
2683         to df_set_dead_notes_for_mw.
2684
2685 2011-08-26  Richard Guenther  <rguenther@suse.de>
2686
2687         * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
2688
2689 2011-08-26  Zdenek Dvorak  <ook@ucw.cz>
2690             Tom de Vries  <tom@codesourcery.com>
2691
2692         * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
2693         (struct ivopts_data): Add loop_single_exit_p field.
2694         (niter_for_exit): Change parameter desc_p into return value.  Return
2695         desc if desc->may_be_zero.  Free desc if unused.
2696         (niter_for_single_dom_exit): Change return type.
2697         (find_induction_variables): Handle changed return type of
2698         niter_for_single_dom_exit.  Dump may_be_zero.
2699         (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
2700         (set_use_iv_cost): Add and handle comp parameter.
2701         (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
2702         comp argument to set_use_iv_cost.
2703         (strip_wrap_conserving_type_conversions, expr_equal_p)
2704         (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
2705         (may_eliminate_iv): Add comp parameter.  Handle new return type of
2706         niter_for_exit.  Use loop_single_exit_p.  Use iv_elimination_compare_lt.
2707         (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
2708         and may_eliminate_iv.
2709         (rewrite_use_compare): Move call to iv_elimination_compare to ...
2710         (may_eliminate_iv): Here.
2711         (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
2712
2713 2011-08-26  Tom de Vries  <tom@codesourcery.com>
2714
2715         * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
2716         accessing TREE_TYPE.
2717
2718 2011-08-26  Jiangning Liu  <jiangning.liu@arm.com>
2719
2720         * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
2721         (*ior_scc_scc_cmp): Likewise
2722         (*and_scc_scc): Likewise.
2723         (*and_scc_scc_cmp): Likewise.
2724         (*and_scc_scc_nodom): Likewise.
2725         (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
2726
2727 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
2728
2729         * rtlanal.c (nonzero_bits1): Handle CLRSB.
2730
2731 2011-08-26  Richard Guenther  <rguenther@suse.de>
2732
2733         * expr.c (string_constant): Handle &MEM_REF.
2734
2735 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
2736
2737         * config/arm/arm.c (struct four_ints): New type.
2738         (count_insns_for_constant): Delete function.
2739         (find_best_start): Delete function.
2740         (optimal_immediate_sequence): New function.
2741         (optimal_immediate_sequence_1): New function.
2742         (arm_gen_constant): Move constant splitting code to
2743         optimal_immediate_sequence.
2744         Rewrite constant negation/invertion code.
2745
2746 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
2747
2748         * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
2749         * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
2750         Remove prototype. Remove static function type.
2751         * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
2752         Add arch attribute.
2753         * config/arm/constraints.md (Pj, PJ): New constraints.
2754
2755 2011-08-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2756
2757         * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
2758         ("cortex_a9_multiply_long"): New and use above.  Handle all
2759         long multiply cases.
2760         ("cortex_a9_multiply"): Handle smmul and smmulr.
2761         ("cortex_a9_mac"): Handle smmla.
2762
2763 2011-08-25  Richard Henderson  <rth@redhat.com>
2764
2765         PR 50132
2766         PR 49864
2767         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
2768         non-constant stack adjutment.
2769         * expr.c (find_args_size_adjust): Break out from ...
2770         (fixup_args_size_notes): ... here.
2771         * rtl.h (find_args_size_adjust): Declare.
2772
2773 2011-08-25  Uros Bizjak  <ubizjak@gmail.com>
2774
2775         * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
2776         sse4 and sse4_noavx.
2777         (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
2778         (*pushdf_rex64): Change Y2 register constraint to x.
2779         (*movdf_internal_rex64): Ditto.
2780         (*zero_extendsidi2_rex64): Ditto.
2781         (*movdi_internal): Change Y2 register constraint to x
2782         and update "isa" attribute.
2783         (*pushdf): Ditto.
2784         (*movdf internal): Ditto.
2785         (zero_extendsidi2_1): Ditto.
2786         (*truncdfdf_mixed): Ditto.
2787         (*truncxfdf2_mixed): Ditto.
2788         * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
2789         register constraint to x.
2790         (*movv2sf_internal_rex64): Ditto.
2791         (*mov<mode>_internal): Change Y2 register constraint to x
2792         and add "isa" attribute.
2793         (*movv2sf_internal): Ditto.
2794         (*vec_extractv2si_1): Ditto.
2795         * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
2796         constraints to x and update "isa" attribute.
2797         (*vec_interleave_highv2df): Change Y3 registerconstraint
2798         to x and update "isa" attribute.
2799         (*vec_interleave_lowv2df): Ditto.
2800         (*vec_concatv2df): Change Y2 register constraint to x and
2801         update "isa" attribute.
2802         (sse2_loadld): Ditto.
2803         (*vec_extractv2di_1): Ditto.
2804         (*vec_dupv4si): Ditto.
2805         (*vec_dupv2di): Ditto.
2806         (*vec_concatv4si): Ditto.
2807         (vec_concatv2di): Ditto.
2808         * config/i386/constraints.md (Y2): Remove.
2809         (Y3): Ditto.
2810         (Y4): Ditto.
2811
2812 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
2813
2814         * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
2815         dump_def_use_chain): Don't declare.
2816         (mark_conflict, create_new_chain): Move before users.
2817         (regrename_optimize): Move to near end of file.
2818
2819 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
2820
2821         * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
2822         (secondary_input_reload_class): Remove Prototype.
2823         * config/avr/avr.c (byte_immediate_operand): Remove Function.
2824         * config/avr/avr.md (setmemhi): Use u8_operand.
2825         (strlenhi): Use const0_rtx for comparison.
2826         * config/avr/avr.h (avr_reg_order): Remove Declaration.
2827
2828 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
2829
2830         * config/avr/avr.c (reg_class_tab): Make local to
2831         avr_regno_reg_class.  Return smallest register class available.
2832
2833 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
2834
2835         * config/avr/avr.c (STR_PREFIX_P): New Define.
2836         (avr_asm_declare_function_name): Use it.
2837         (avr_asm_named_section): Use it.
2838         (avr_section_type_flags): Use it.
2839
2840 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
2841
2842         * doc/md.texi (automata_option): Document collapse-ndfa.
2843         * genautomata.c (COLLAPSE_OPTION): New macro.
2844         (collapse_flag): New static variable.
2845         (struct description): New member normal_decls_num.
2846         (struct automaton): New members advance_ainsn and collapse_ainsn.
2847         (gen_automata_option): Check for COLLAPSE_OPTION.
2848         (collapse_ndfa_insn_decl): New static variable.
2849         (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
2850         (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
2851         (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
2852         necessary.  Use normal_decls_num rather than decls_num, remove
2853         test for special decls.
2854         (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
2855         (make_automaton); Likewise.  Use the new advance_cycle_insn member
2856         of struct automaton.
2857         (create_composed_state): Disallow advance-cycle arcs if collapse_flag
2858         is set.
2859         (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
2860         transition.  Create the necessary transitions for it.
2861         (create_ainsns): Return void.  Take an automaton_t argument, and
2862         update its ainsn_list, advance_ainsn and collapse_ainsn members.  All
2863         callers changed.
2864         (COLLAPSE_NDFA_VALUE_NAME): New macro.
2865         (output_tables): Output code to define it.
2866         (output_internal_insn_code_evaluation): Output code to accept
2867         const0_rtx as collapse-ndfa transition.
2868         (output_default_latencies, output_print_reservation_func,
2869         output_print_description): Reorganize loops to use normal_decls_num
2870         as loop bound; remove special case for advance_cycle_insn_decl.
2871         (initiate_automaton_gen): Handle COLLAPSE_OPTION.
2872         (check_automata_insn_issues): Check for collapse_ainsn.
2873         (expand_automate): Allocate sufficient space.  Initialize
2874         normal_decls_num.
2875
2876 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
2877
2878         * config/avr/avr.md: Fix indentation from r177991.
2879
2880 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
2881
2882         * regrename.c (struct du_head): Remove member terminated.
2883         (create_new_chain): Don't initialize it.
2884         (scan_rtx_reg): Don't set or test it, test the open_chains_set
2885         bitmap instead.
2886         (tick, this_tick): New global variables, moved out of
2887         regrename_optimize.
2888         (current_id, open_chains, closed_chains, open_chains_set,
2889         live_in_chains, live_hard_regs): Reorder declarations.
2890         (dump_def_use_chain): Move function earlier in the file.
2891         (rename_chains): New static function, broken out of
2892         regrename_optimize.
2893         (regrename_optimize): Use it.  Remove #if 0'ed code.
2894
2895 2011-08-25  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
2896
2897         * varasm.c: (default_binds_local_p_1): Commentary typo fix.
2898
2899 2011-08-24  H.J. Lu  <hongjiu.lu@intel.com>
2900
2901         PR target/50172
2902         * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
2903
2904 2011-08-24  Richard Guenther  <rguenther@suse.de>
2905
2906         * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
2907         ref in the basic-block case.  Move stripping array-refs
2908         to the place we create an access-function for it.  Remove
2909         bogus stripping down a MEM_REF to its base.
2910
2911 2011-08-24  Richard Guenther  <rguenther@suse.de>
2912
2913         * fold-const.c (fold_comparison): Fold &a < &a + 4 even
2914         with -fno-strict-overflow.
2915
2916 2011-08-24  Richard Guenther  <rguenther@suse.de>
2917
2918         * tree-vectorizer.c (vect_print_dump_info): Avoid the
2919         file and location clutter when dumping to dump files.
2920
2921 2011-08-24  Simon Baldwin  <simonb@google.com>
2922
2923         * gengtype-state.c (write_state): Remove timestamped header line.
2924
2925 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
2926
2927         * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
2928         (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
2929         (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
2930         (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
2931         (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
2932         (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
2933         (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
2934         rules.
2935         (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
2936
2937 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
2938
2939         * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
2940
2941 2011-08-24  Richard Guenther  <rguenther@suse.de>
2942
2943         PR tree-optimization/50067
2944         * tree-data-ref.c (dr_analyze_indices): Do not add an access
2945         function for a MEM_REF base that has no evolution in the loop
2946         nest or that is not analyzable.
2947
2948 2011-08-23  Vladimir Makarov  <vmakarov@redhat.com>
2949
2950         * ira.c (ira_init_register_move_cost): Check small subclasses
2951         through ira_reg_class_max_nregs and ira_available_class_regs.
2952
2953 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
2954
2955         * config/i386/constraints.md (Yp): New register constraint.
2956         * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
2957         Yp register constraint.
2958         (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
2959         (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
2960         (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
2961
2962 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
2963
2964         * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
2965
2966 2011-08-23  Mark Heffernan  <meheff@google.com>
2967
2968         PR middle-end/38509
2969         * common.opt (Wfree-nonheap-object): New option.
2970         * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
2971         * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
2972         to warning.
2973         (expand_builtin): Make warning conditional.
2974
2975 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
2976
2977         * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
2978         (length_immediate): Handle imulx, ishiftx and rotatex.
2979         (imm_disp): Ditto.
2980         (isa): Add bmi2.
2981         (enabled): Handle bmi2.
2982         (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
2983         (*umul<mode><dwi>3): Ditto.  Add imulx BMI2 alternative.
2984         (*bmi2_umulditi3_1): New insn pattern.
2985         (*bmi2_umulsidi3_1): Ditto.
2986         (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
2987         (*bmi2_ashl<mode>3_1): New insn pattern.
2988         (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
2989         (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
2990         (*bmi2_ashlsi3_1_zext): New insn pattern.
2991         (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
2992         (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
2993         (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
2994         (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
2995         (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
2996         flags dependency.
2997         (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
2998         (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
2999         (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
3000         flags dependency.
3001         (*bmi2_rorx<mode>3_1): New insn pattern.
3002         (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
3003         (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
3004         (*rotatert<mode>3_1 splitter): Ditto.
3005         (*bmi2_rorxsi3_1_zext): New insn pattern.
3006         (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
3007         (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
3008         (*rotatertsi3_1_zext splitter): Ditto.
3009
3010 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
3011
3012         * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
3013         (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
3014         (ix86_handle_option): Handle OPT_mbmi2 case.
3015         * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
3016         (x86_64-*-*): Likewise.
3017         * config/i386/bmi2intrin.h: New file.
3018         * config/i386/cpuid.h (bit_BMI2): New.
3019         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3020         BMI2 feature.
3021         * config/i386/i386-c.c (ix86_target_macros_internal):
3022         Conditionally define __BMI2__.
3023         * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
3024         Handle BMI2 option.
3025         (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
3026         (print_reg): New code.
3027         (ix86_print_operand): Likewise.
3028         (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
3029         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
3030         IX86_BUILTIN_PEXT64.
3031         (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
3032         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
3033         IX86_BUILTIN_PEXT64.
3034         * config/i386/i386.h (TARGET_BMI2): New.
3035         * config/i386/i386.md (UNSPEC_PDEP): New.
3036         (UNSPEC_PEXT): Likewise.
3037         (*bmi2_bzhi_<mode>3): Likewise.
3038         (*bmi2_pdep_<mode>3): Likewise.
3039         (*bmi2_pext_<mode>3): Likewise.
3040         * config/i386/i386.opt (mbmi2): New.
3041         * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
3042         is defined.
3043         * doc/extend.texi: Document BMI2 built-in functions.
3044         * doc/invoke.texi: Document -mbmi2.
3045
3046 2011-08-23  Jakub Jelinek  <jakub@redhat.com>
3047
3048         PR middle-end/50161
3049         * simplify-rtx.c (simplify_const_unary_operation): If
3050         op is CONST_INT, don't look at op_mode, but use instead mode.
3051         * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
3052         CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
3053         operation and TRUNCATE/ZERO_EXTEND if needed.
3054         * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
3055         Document that operand mode must be same as operation mode,
3056         or VOIDmode.
3057         * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
3058         *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
3059         *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
3060         *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
3061         use the mode of operand for the operation and add truncate
3062         or zero_extend around if needed.
3063         * config/c6x/c6x.md (ctzdi2): Likewise.
3064         * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
3065
3066 2011-08-12  Michael Matz  <matz@suse.de>
3067
3068         * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
3069         (gimple_expand_cfg): Merge alignment info for coalesced pointer
3070         SSA names.
3071
3072 2011-08-23  Richard Guenther  <rguenther@suse.de>
3073
3074         * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
3075         * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
3076         * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
3077         from ...
3078         * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
3079         (mem_refs_may_alias_p): Adjust.
3080         * tree-data-ref.h (dr_may_alias_p): Adjust.
3081         * tree-data-ref.c: Include tree-affine.h.
3082         (dr_analyze_indices): Do nothing for the non-loop case.
3083         (dr_may_alias_p): Distinguish loop and non-loop case.  Disambiguate
3084         more cases in the non-loop case.
3085         * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
3086         calls to dr_may_alias_p.
3087         (write_alias_graph_to_ascii_ecc): Likewise.
3088         (write_alias_graph_to_ascii_dot): Likewise.
3089         (build_alias_set_optimal_p): Likewise.
3090
3091 2011-08-23  Richard Guenther  <rguenther@suse.de>
3092
3093         PR tree-optimization/50162
3094         * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
3095
3096 2011-08-23  Richard Guenther  <rguenther@suse.de>
3097
3098         * tree-data-ref.c (dr_analyze_indices): Add comments, handle
3099         REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
3100         (create_data_ref): Also dump access functions for the created data-ref.
3101
3102 2011-08-22  Uros Bizjak  <ubizjak@gmail.com>
3103             Kirill Yukhin  <kirill.yukhin@intel.com>
3104
3105         PR target/50155
3106         * config/i386/sse.md (VI_AVX2): New.
3107         (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
3108         (*<plusminus_insn><mode>3): Ditto.
3109         (<sse2_avx2>_andnot<mode>3): Ditto.
3110         (*andnot<mode>3): Fix order of cond operands.
3111         Add asserts for correct TARGET_xxx.
3112         (*<any_logic:code><mode>3): Ditto.
3113
3114 2011-08-22  Anatoly Sokolov  <aesok@post.ru>
3115
3116         * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
3117         * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
3118         * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
3119         regclass argument type to reg_class_t. Change 'max' and 'v' vars
3120         and return types to unsigned char. Use reg_class_contents instead
3121         of class_contents.
3122         (TARGET_CLASS_MAX_NREGS): Define.
3123
3124 2011-08-22  Bernd Schmidt  <bernds@codesourcery.com>
3125
3126         * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
3127         to make computed_jump_p return true.
3128
3129 2011-08-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3130
3131         * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
3132         (PICFLAG_FOR_TARGET): Substitute.
3133         * aclocal.m4: Regenerate.
3134         * configure: Regenerate.
3135
3136 2011-08-22  Dodji Seketeli  <dodji@redhat.com>
3137
3138         * c-family/c-pch.c (c_common_read_pch): Re-set line table right
3139         after reading in the pch.
3140
3141 2011-08-22  H.J. Lu  <hongjiu.lu@intel.com>
3142
3143         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
3144         * configure: Regenerated.
3145
3146 2011-08-22  Jakub Jelinek  <jakub@redhat.com>
3147
3148         PR tree-optimization/50133
3149         * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
3150         from stmt instead of some statement around gsi.
3151
3152         PR middle-end/50141
3153         * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
3154         innerdecl is a VAR_DECL.
3155
3156 2011-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
3157
3158         * config/i386/avx2intrin.h: New file.
3159         * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
3160         PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
3161         V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
3162         V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
3163         V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
3164         V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
3165         V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
3166         V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
3167         V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
3168         V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
3169         V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
3170         V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
3171         V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
3172         V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
3173         V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
3174         V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
3175         V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
3176         V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
3177         VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
3178         VOID_FTYPE_PV8SI_V8SI_V8SI,
3179         V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
3180         V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
3181         V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
3182         V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
3183         V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
3184         V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
3185         V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
3186         V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
3187         V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
3188         V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
3189         V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
3190         V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
3191         V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
3192         V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
3193         V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
3194         V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
3195         V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
3196         V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
3197         V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
3198         V4DI_FTYPE_V4DI_INT_CONVERT,
3199         V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
3200         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
3201         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
3202         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
3203         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
3204         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
3205         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
3206         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
3207         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
3208         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
3209         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
3210         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
3211         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
3212         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
3213         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
3214         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
3215         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
3216         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
3217         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
3218         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
3219         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
3220         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
3221         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
3222         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
3223         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
3224         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
3225         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
3226         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
3227         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
3228         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
3229         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
3230         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
3231         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
3232         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
3233         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
3234         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
3235         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
3236         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
3237         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
3238         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
3239         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
3240         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
3241         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
3242         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
3243         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
3244         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
3245         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
3246         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
3247         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
3248         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
3249         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
3250         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
3251         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
3252         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
3253         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
3254         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
3255         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
3256         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
3257         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
3258         IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
3259         IX86_BUILTIN_VBROADCASTSS_PS256,
3260         IX86_BUILTIN_VBROADCASTSD_PD256,
3261         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
3262         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
3263         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
3264         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
3265         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
3266         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
3267         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
3268         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
3269         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
3270         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
3271         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
3272         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
3273         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
3274         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
3275         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
3276         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
3277         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
3278         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
3279         IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
3280         IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
3281         IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
3282         IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
3283         IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
3284         IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
3285         IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
3286         IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
3287         (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
3288         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
3289         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
3290         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
3291         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
3292         (bdesc_args): Add  IX86_BUILTIN_MPSADBW256,
3293         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
3294         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
3295         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
3296         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
3297         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
3298         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
3299         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
3300         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
3301         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
3302         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
3303         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
3304         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
3305         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
3306         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
3307         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
3308         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
3309         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
3310         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
3311         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
3312         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
3313         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
3314         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
3315         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
3316         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
3317         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
3318         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
3319         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
3320         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
3321         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
3322         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
3323         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
3324         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
3325         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
3326         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
3327         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
3328         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
3329         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
3330         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
3331         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
3332         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
3333         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
3334         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
3335         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
3336         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
3337         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
3338         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
3339         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
3340         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
3341         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
3342         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
3343         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
3344         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
3345         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
3346         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
3347         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
3348         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
3349         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
3350         IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
3351         IX86_BUILTIN_VBROADCASTSD_PD256,
3352         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
3353         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
3354         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
3355         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
3356         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
3357         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
3358         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
3359         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
3360         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
3361         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
3362         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
3363         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
3364         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
3365         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
3366         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
3367         IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
3368         IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
3369         IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
3370         IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
3371         IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
3372         IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
3373         IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
3374         IX86_BUILTIN_GATHERDIV8SI.
3375         (ix86_preferred_simd_mode): Support AVX2 modes.
3376         (ix86_expand_args_builtin): Support AVX2 builtins.
3377         (ix86_expand_special_args_builtin): Likewise.
3378         (ix86_expand_builtin): Likewise.
3379         * config/i386/i386.md (UNSPEC_VPERMSI): New.
3380         (UNSPEC_VPERMDF): Likewise.
3381         (UNSPEC_VPERMSF): Likewise.
3382         (UNSPEC_VPERMDI): Likewise.
3383         (UNSPEC_VPERMTI): Likewise.
3384         (UNSPEC_GATHER): Likewise.
3385         (ssemodesuffix): Extend.
3386         * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
3387         is defined.
3388         * config/i386/predicates.md (const1248_operand): New.
3389         * config/i386/sse.md (VI1_AVX2): New mode iterator.
3390         (VI2_AVX2): Likewise.
3391         (VI4_AVX2): Likewise.
3392         (VI8_AVX2): Likewise.
3393         (VIMAX_AVX2): Likewise.
3394         (SSESCALARMODE): Likewise.
3395         (VI12_AVX2): Likewise.
3396         (VI24_AVX2): Likewise.
3397         (VI124_AVX2): Likewise.
3398         (VI248_AVX2): Likewise.
3399         (VI48_AVX2): Likewise.
3400         (VI4SD_AVX2): Likewise.
3401         (V48_AVX2): Likewise.
3402         (AVX256MODE2P): Likewise.
3403         (AVXMODE48P_DI): Likewise.
3404         (sse2_avx2): New mode attribute.
3405         (ssse3_avx2): Likewise.
3406         (sse4_1_avx2): Likewise.
3407         (avx_avx2): Likewise.
3408         (ssebytemode): Likewise.
3409         (AVXTOSSEMODE): Likewise.
3410         (AVXMODE48P_DI): Likewise.
3411         (gthrfirstp): Likewise.
3412         (gthrlastp): Likewise.
3413         (lshift): New code_iterator
3414         (lshift): New code attribute.
3415         (lshift): Likewise.
3416         (ssescalarmodesuffix): Update.
3417         (sseunpackmode): Likewise.
3418         (ssepackmode): Likewise.
3419         (avx2_vec_dupv4sf): New insn pattern.
3420         (avx2_vec_dupv8sf): Likewise.
3421         (avx2_interleave_highv4di): Likewise.
3422         (avx2_interleave_lowv4di): Likewise.
3423         (avx2_umulv4siv4di3): Likewise
3424         (*avx2_umulv4siv4di3): Likewise
3425         (avx2_pmaddwd): Likewise.
3426         (*avx2_pmaddwd): Likewise.
3427         (avx2_lshrqv4di3): Likewise.
3428         (avx2_lshlqv4di3): Likewise.
3429         (avx2_lshl<mode>3): Likewise.
3430         (avx2_<umaxmin:code><mode>3): Likewise.
3431         (*avx2_<umaxmin:code><mode>3): Likewise.
3432         (avx2_<smaxmin:code><mode>3): Likewise.
3433         (*avx2_<smaxmin:code><mode>3): Likewise.
3434         (avx2_eq<mode>3): Likewise.
3435         (*avx2_eq<mode>3): Likewise.
3436         (avx2_gt<mode>3): Likewise.
3437         (avx2_interleave_highv32qi): New.
3438         (avx2_interleave_lowv32qi): Likewise.
3439         (avx2_interleave_highv16hi): Likewise.
3440         (avx2_interleave_lowv16hi): Likewise.
3441         (avx2_interleave_highv8si): Likewise.
3442         (avx2_interleave_lowv8si): Likewise.
3443         (avx2_pshufd): Likewise.
3444         (avx2_pshufd_1): Likewise.
3445         (avx2_pshuflwv3): Likewise.
3446         (avx2_pshuflw_1): Likewise.
3447         (avx2_pshufhwv3): Likewise.
3448         (avx2_pshufhw_1): Likewise.
3449         (avx2_uavgv32qi3): Likewise.
3450         (*avx2_uavgv32qi3): Likewise.
3451         (avx2_uavgv16hi3): Likewise.
3452         (*avx2_uavgv16hi3): Likewise.
3453         (avx2_pmovmskb): Likewise.
3454         (avx2_phaddwv16hi3): Likewise.
3455         (avx2_phadddv8si3): Likewise.
3456         (avx2_phaddswv16hi3): Likewise.
3457         (avx2_phsubwv16hi3): Likewise.
3458         (avx2_phsubdv8si3): Likewise.
3459         (avx2_phsubswv16hi3): Likewise.
3460         (avx2_pmaddubsw256): Likewise.
3461         (avx2_umulhrswv16hi3): Likewise.
3462         (*avx2_umulhrswv16hi3): Likewise.
3463         (avx2_packusdw): Likewise.
3464         (avx2_pblendd<mode>): Likewise.
3465         (avx2_<code>v16qiv16hi2): Likewise.
3466         (avx2_<code>v8qiv8si2): Likewise.
3467         (avx2_<code>v8hiv8si2): Likewise.
3468         (avx2_<code>v4qiv4di2): Likewise.
3469         (avx2_<code>v4hiv4di2): Likewise.
3470         (avx2_<code>v4siv4di2): Likewise.
3471         (avx2_pbroadcast<mode>): Likewise.
3472         (avx2_permvarv8si): Likewise.
3473         (avx2_permv4df): Likewise.
3474         (avx2_permvarv8sf): Likewise.
3475         (avx2_permv4di): Likewise.
3476         (avx2_permv2ti): Likewise.
3477         (avx2_vec_dupv4df): Likewise.
3478         (avx2_vbroadcasti128_<mode>): Likewise.
3479         (avx2_vec_set_lo_v4di): Likewise.
3480         (avx2_vec_set_hi_v4di): Likewise.
3481         (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
3482         (avx2_extracti128): Likewise.
3483         (avx2_inserti128): Likewise.
3484         (avx2_ashrvv8si): Likewise.
3485         (avx2_ashrvv4si): Likewise.
3486         (avx2_<lshift>vv8si): Likewise.
3487         (avx2_<lshift>v<mode>): Likewise.
3488         (avx2_<lshift>vv2di): Likewise.
3489         (avx2_gathersi<mode>): Likewise.
3490         (*avx2_gathersi<mode>): Likewise.
3491         (avx2_gatherdi<mode>): Likewise.
3492         (*avx2_gatherdi<mode>): Likewise.
3493         (avx2_gatherdi<mode>256): Likewise.
3494         (*avx2_gatherdi<mode>256): Likewise.
3495         (<plusminus_insn><mode>3): Use VI mode iterator.
3496         (*<plusminus_insn><mode>3): Use VI mode iterator.
3497         (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
3498         sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
3499         (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
3500         *sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
3501         (mul<mode>3): Rename from mulv8hi3.  Use VI2_AVX2 mode iterator.
3502         (*mul<mode>3): Rename from *mulv8hi3.  Use VI2_AVX2 mode iterator.
3503         (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
3504         Use VI2_AVX2 mode iterator.
3505         (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
3506         Use VI2_AVX2 mode iterator.
3507         (mul<mode>3): Rename from mulv4si3.  Use VI4_AVX2 mode iterator.
3508         (*mul<mode>3): Rename from *mulv4si3.  Use VI4_AVX2 mode iterator.
3509         (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
3510         Use VI4_AVX2 mode iterator.
3511         (ashr<mode>3): Use VI24_AVX2 mode iterator.
3512         (lshr<mode>3): Use VI248_AVX2 mode iterator.
3513         (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
3514         Use VIMAX_AVX2 mode iterator.
3515         (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
3516         Use VI mode iterator.
3517         (*andnot<mode>3): Update for AVX2.
3518         (*<any_logic:code><mode>3): Likewise.
3519         (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
3520         Use VI1_AVX mode iterator.
3521         (<sse2_avx2>_packssdw):  Rename from sse2_packssdw.
3522         Use VI2_AVX mode iterator.
3523         (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
3524         Use VI1_AVX mode iterator.
3525         (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
3526         Use VI8_AVX2 mode iterator.
3527         (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
3528         Use VI1_AVX2 mode iterator.
3529         (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
3530         Use VI124_AVX2 mode iterator.
3531         (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
3532         Use SSESCALARMODE mode iterator.
3533         (abs<mode>2): Use VI124_AVX2 mode iterator.
3534         (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
3535         Use VI8_AVX2 mode iterator.
3536         (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
3537         Use VI1_AVX2 mode iterator.
3538         (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
3539         Use VI1_AVX2 mode iterator.
3540         (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
3541         Use VI2_AVX2 mode iterator.
3542         (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
3543         avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
3544         (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
3545         avx_maskstore<ssemodesuffix><avxsizesuffix>.
3546         Use V48_AVX2 mode iterator.
3547         * doc/extend.texi: Document AVX2 built-in functions.
3548         * doc/invoke.texi: Document -mavx2.
3549
3550 2011-08-22  Matthias Klose <doko@debian.org>
3551
3552         Revert:
3553         2011-07-11  Arthur Loiret  <aloiret@debian.org>
3554                     Matthias Klose <doko@debian.org>
3555         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
3556         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
3557         convention.
3558         * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
3559
3560 2011-08-22  Mikael Pettersson  <mikpe@it.uu.se>
3561
3562         PR bootstrap/50146
3563         * ira-color.c (assign_hard_reg): Move saved_nregs declaration
3564         to #ifndef HONOR_REG_ALLOC_ORDER block.
3565
3566 2011-08-21  Richard Henderson  <rth@redhat.com>
3567
3568         * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
3569         * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
3570         * resource.c (next_insn_no_annul): Likewise.
3571         (mark_set_resources): Likewise.
3572         * reorg.c (delete_from_delay_slot): Likewise.
3573         (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
3574         (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
3575
3576 2011-08-21  Uros Bizjak  <ubizjak@gmail.com>
3577
3578         * config/i386/i386.md (any_div): Remove.
3579         (sgnprefix): Update for removal.
3580         (u): Ditto.
3581
3582 2011-08-20  Vladimir Makarov  <vmakarov@redhat.com>
3583
3584         * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
3585         for ira_reg_class_max_nregs.  Increase pressure by 1.
3586         (mark_pseudo_regno_subword_dead): Use allocno class
3587         for ira_reg_class_max_nregs.
3588
3589 2011-08-20  Richard Henderson  <rth@redhat.com>
3590
3591         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
3592         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
3593         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
3594         config/c6x/ltf.c: Adjust include path for soft-fp.
3595
3596 2011-08-20  H.J. Lu  <hongjiu.lu@intel.com>
3597
3598         PR other/46770
3599         * config.gcc (tm_file): Add initfini-array.h if
3600         .init_arrary/.fini_array are supported.
3601
3602         * crtstuff.c: Don't generate .ctors nor .dtors sections if
3603         USE_INITFINI_ARRAY is defined.
3604
3605         * output.h (default_elf_init_array_asm_out_constructor): New.
3606         (default_elf_fini_array_asm_out_destructor): Likewise.
3607         * varasm.c (elf_init_array_section): Likewise.
3608         (elf_fini_array_section): Likewise.
3609         (get_elf_initfini_array_priority_section): Likewise.
3610         (default_elf_init_array_asm_out_constructor): Likewise.
3611         (default_elf_fini_array_asm_out_destructor): Likewise.
3612
3613         * config/initfini-array.h: New.
3614
3615 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
3616
3617         * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
3618         OK for ST_REGS and FP_REGS before taking those classes into account.
3619
3620 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
3621
3622         * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
3623         before checking for annulled branches.
3624
3625 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
3626
3627         * config/i386/i386.c (ix86_binary_operator_ok): Use
3628         satisfies_constraint_L.
3629
3630 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
3631             Michael Matz  <matz@suse.de>
3632
3633         * config/i386/i386.c (ix86_expand_round_sse4): Expand as
3634         trunc (a + copysign (nextafter (0.5, 0.0), a)).
3635
3636 2011-08-20  Anatoly Sokolov  <aesok@post.ru>
3637
3638         * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
3639         * doc/tm.texi: Regenerate.
3640         * targhooks.c (default_preferred_output_reload_class): Don't use
3641         PREFERRED_OUTPUT_RELOAD_CLASS macro.
3642         * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
3643
3644 2011-08-20  Jakub Jelinek  <jakub@redhat.com>
3645
3646         PR tree-optimization/48739
3647         * tree-ssa.c: Include cfgloop.h.
3648         (execute_update_addresses_taken): When updating ssa, if in loop closed
3649         SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
3650         * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
3651
3652 2011-08-19  Vladimir Makarov  <vmakarov@redhat.com>
3653
3654         PR rtl-optimization/49936
3655         * ira.c (ira_init_register_move_cost): Ignore too small subclasses
3656         for calculation of max register move costs.
3657
3658 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
3659
3660         * c-parser.c (c_parser_postfix_expression): Convert operands of
3661         __builtin_complex to their semantic types.
3662
3663 2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
3664
3665         PR middle-end/49721
3666         * explow.c (convert_memory_address_addr_space): Also permute the
3667         conversion and addition of constant for zero-extend.
3668
3669 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
3670
3671         * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
3672         * doc/extend.texi (__builtin_complex): Document.
3673
3674 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
3675
3676         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
3677         beyond conversions.
3678         (convert_mult_to_widen): Convert constant inputs to the right type.
3679         (convert_plusminus_to_widen): Don't automatically reject inputs that
3680         are not an SSA_NAME.
3681         Convert constant inputs to the right type.
3682
3683 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
3684
3685         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
3686         to the correct type.
3687
3688 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
3689
3690         * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
3691         unsigned inputs of different modes.
3692         (convert_plusminus_to_widen): Likewise.
3693
3694 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
3695
3696         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
3697         'type'.
3698         Use 'type' from caller, not inferred from 'rhs'.
3699         Don't reject non-conversion statements. Do return lhs in this case.
3700         (is_widening_mult_p): Add new argument 'type'.
3701         Use 'type' from caller, not inferred from 'stmt'.
3702         Pass type to is_widening_mult_rhs_p.
3703         (convert_mult_to_widen): Pass type to is_widening_mult_p.
3704         (convert_plusminus_to_widen): Likewise.
3705
3706 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
3707
3708         * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
3709         Ensure the the larger type is the first operand.
3710
3711 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
3712
3713         * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
3714         unsupported unsigned multiplies to signed.
3715         (convert_plusminus_to_widen): Likewise.
3716
3717 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
3718
3719         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
3720         conversion statement separating multiply-and-accumulate.
3721
3722 2011-08-19  Richard Guenther  <rguenther@suse.de>
3723
3724         PR tree-optimization/50067
3725         * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
3726         offset only if we accounted for it.
3727
3728 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
3729
3730         * config/arm/arm.md (maddhidi4): Remove '*' from name.
3731         * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
3732         * optabs.c (find_widening_optab_handler_and_mode): New function.
3733         (expand_widen_pattern_expr): Use find_widening_optab_handler.
3734         (expand_binop_directly): Likewise.
3735         (expand_binop): Likewise.
3736         * optabs.h (find_widening_optab_handler): New macro define.
3737         (find_widening_optab_handler_and_mode): New prototype.
3738         * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
3739         type precision rules.
3740         (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
3741         * tree-ssa-math-opts.c (build_and_insert_cast): New function.
3742         (is_widening_mult_rhs_p): Allow widening by more than one mode.
3743         Explicitly disallow mis-matched input types.
3744         (convert_mult_to_widen): Use find_widening_optab_handler, and cast
3745         input types to fit the new handler.
3746         (convert_plusminus_to_widen): Likewise.
3747
3748 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
3749
3750         * expr.c (expand_expr_real_2): Use widening_optab_handler.
3751         * genopinit.c (optabs): Use set_widening_optab_handler for $N.
3752         (gen_insn): $N now means $a must be wider than $b, not consecutive.
3753         * optabs.c (widened_mode): New function.
3754         (expand_widen_pattern_expr): Use widening_optab_handler.
3755         (expand_binop_directly): Likewise.
3756         (expand_binop): Likewise.
3757         * optabs.h (widening_optab_handlers): New struct.
3758         (optab_d): New member, 'widening'.
3759         (widening_optab_handler): New function.
3760         (set_widening_optab_handler): New function.
3761         * tree-ssa-math-opts.c (convert_mult_to_widen): Use
3762         widening_optab_handler.
3763         (convert_plusminus_to_widen): Likewise.
3764
3765 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
3766
3767         * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
3768         pedantic.
3769         * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
3770         * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
3771
3772 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
3773
3774         * opth-gen.awk: Do not declare target save/restore structures and
3775         functions if IN_RTS defined.
3776
3777 2011-08-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
3778
3779         PR target/49437
3780         * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
3781         when stack was realigned in interrupt handler prologue.
3782
3783 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
3784
3785         * c-decl.c (shadow_tag_warned): Check for _Noreturn.
3786         (quals_from_declspecs): Assert _Noreturn not present.
3787         (grokdeclarator): Handle _Noreturn.
3788         (build_null_declspecs): Initialize noreturn_p.
3789         (declspecs_add_scspec): Handle RID_NORETURN.
3790         * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
3791         (c_parser_attributes): Handle RID_NORETURN.
3792         * c-tree.h (struct c_declspecs): Add noreturn_p.
3793         * ginclude/stdnoreturn.h: New.
3794         * Makefile.in (USER_H): Add stdnoreturn.h.
3795
3796 2011-08-18  Kirill Yukhin  <kirill.yukhin@intel.com>
3797
3798         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
3799         (OPTION_MASK_ISA_AVX_UNSET): Update.
3800         (OPTION_MASK_ISA_AVX2_UNSET): New.
3801         (ix86_handle_option): Handle OPT_mavx2 case.
3802         * config/i386/cpuid.h (bit_AVX2): New.
3803         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3804         AVX2 feature.
3805         * config/i386/i386-c.c (ix86_target_macros_internal):
3806         Conditionally define __AVX2__.
3807         * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
3808         Define "core-avx2" processor alias.  Handle avx2 option.
3809         (ix86_valid_target_attribute_inner_p): Handle avx2 option.
3810         * config/i386/i386.h (TARGET_AVX2): New.
3811         * config/i386/i386.opt (mavx2): New.
3812         * doc/invoke.texi: Document -mavx2.
3813
3814 2011-08-18  Vladimir Makarov  <vmakarov@redhat.com>
3815
3816         PR rtl-optimization/49890
3817         * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
3818         subclasses of class which is superset of a pressure class.
3819
3820 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
3821             Igor Zamyatin <igor.zamyatin@intel.com>
3822
3823         * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
3824         with HOST_WIDE_INT for isa_flag.
3825         (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
3826         isa variables.
3827
3828         * config/i386/i386.c (ix86_target_string): Replace int with
3829         HOST_WIDE_INT for isa.  Use HOST_WIDE_INT_PRINT to print isa.
3830         (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
3831         (pta_flags): Removed.
3832         (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
3833         (pta): Use HOST_WIDE_INT on flags.
3834         (builtin_isa): Use HOST_WIDE_INT on isa.
3835         (ix86_add_new_builtins): Likewise.
3836         (def_builtin): Use HOST_WIDE_INT on mask.
3837         (def_builtin_const): Likewise.
3838         (builtin_description): Likewise.
3839
3840         * config/i386/i386.opt (ix86_isa_flags): Replace int with
3841         HOST_WIDE_INT.
3842         (ix86_isa_flags_explicit): Likewise.
3843         (x_ix86_isa_flags_explicit): Likewise.
3844
3845 2011-08-17  Vladimir Makarov  <vmakarov@redhat.com>
3846
3847         PR rtl-optimization/50107
3848         * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
3849         (ira_hard_reg_in_set_p): New.
3850
3851         * ira-color.c (calculate_saved_nregs): New.
3852         (assign_hard_reg): Use it.  Set up allocated_hard_reg_p for all
3853         hard regs.
3854         (allocno_reload_assign, fast_allocation): Use
3855         ira_hard_reg_set_intersection_p instead of
3856         ira_hard_reg_not_in_set_p.
3857
3858         * ira.c (setup_reg_renumber): Use
3859         ira_hard_reg_set_intersection_p instead of
3860         ira_hard_reg_not_in_set_p.
3861         (setup_allocno_assignment_flags, calculate_allocation_cost): Use
3862         ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
3863
3864         * ira-costs.c (ira_tune_allocno_costs): Use
3865         ira_hard_reg_set_intersection_p instead of
3866         ira_hard_reg_not_in_set_p.
3867
3868 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
3869             Igor Zamyatin <igor.zamyatin@intel.com>
3870
3871         * hwint.h (HOST_WIDE_INT_1): New.
3872
3873         * opt-functions.awk (switch_bit_fields): Initialize the
3874         host_wide_int field.
3875         (host_wide_int_var_name): New.
3876         (var_type_struct): Check and return HOST_WIDE_INT.
3877
3878         * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
3879
3880         * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
3881
3882         * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT.  Properly
3883         check masks for HOST_WIDE_INT.
3884
3885         * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
3886         (option_enabled): Likewise.
3887         (get_option_state): Likewise.
3888
3889         * opts.h (cl_option): Add cl_host_wide_int.  Change var_value
3890         to HOST_WIDE_INT.
3891
3892 2011-08-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3893             Marc Glisse  <marc.glisse@normalesup.org>
3894
3895         PR libstdc++-v3/1773
3896         * target.def (decl_mangling_context): New C++ hook.
3897         * doc/tm.texi: Regenerate.
3898         * config/sol2-cxx.c, config/sol2-stubs.c: New files.
3899         * config/sol2-protos.h: Group by source file.
3900         (solaris_cxx_decl_mangling_context): Declare.
3901         * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
3902         * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
3903         Use $<.
3904         * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
3905         Add sol2-stubs.o to extra_objs.
3906
3907 2011-08-18  Jakub Jelinek  <jakub@redhat.com>
3908
3909         PR target/50009
3910         * stor-layout.c (update_alignment_for_field): Don't ICE on
3911         packed flexible array members if ms_bitfield_layout_p.
3912
3913         PR target/50092
3914         * config/i386/i386.c (assign_386_stack_local): Call validize_mem
3915         on the result before returning it.
3916
3917         PR debug/50017
3918         * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
3919         is a debug stmt, use location of the first non-debug stmt after it.
3920
3921 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
3922
3923         * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
3924         (arm_size_rtx_costs): Likewise.
3925
3926 2011-08-18  Richard Guenther  <rguenther@suse.de>
3927
3928         * tree.h (tree_int_cst_msb): Remove.
3929         * tree.c (tree_int_cst_msb): Likewise.
3930         (tree_int_cst_sign_bit): Move from ...
3931         * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
3932
3933 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
3934
3935         * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
3936         * doc/tm.texi: Regenerate.
3937         * target.def (rtx_costs): Add an opno parameter.
3938         * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
3939         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
3940         * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
3941         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
3942         * cse.c (COST_IN): Add an opno parameter.
3943         (notreg_cost): Likewise.  Update call to rtx_cost.
3944         (COST, fold_rtx): Update accordingly.
3945         * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
3946         * expmed.c (emit_store_flag): Likewise.
3947         * optabs.c (avoid_expensive_constant): Add an opno parameter.
3948         Update call to rtx_cost.
3949         (expand_binop_directly, expand_binop): Likewise.
3950         (expand_twoval_binop, prepare_cmp_insn): Likewise.
3951         * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
3952         (set_src_cost, get_full_set_src_cost): Update accordingly.
3953         * rtlanal.c (rtx_cost): Add an opno parameter.  Update call
3954         to target hook.
3955         (get_full_rtx_cost): Add an opno paramter.  Update calls to rtx_cost.
3956         (default_adress_cost): Update calls to rtx_cost.
3957
3958         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
3959         (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
3960         (arm_rtx_costs): Add an opno parameter.
3961         * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
3962         adjust any recursive rtx-cost calls.
3963         * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
3964         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
3965         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
3966         * config/cris/cris.c (cris_rtx_costs): Likewise.
3967         * config/frv/frv.c (frv_rtx_costs): Likewise.
3968         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
3969         * config/i386/i386.c (ix86_rtx_costs): Likewise.
3970         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
3971         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
3972         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
3973         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
3974         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
3975         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
3976         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
3977         * config/mep/mep.c (mep_rtx_cost): Likewise.
3978         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
3979         * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
3980         (mips_zero_extend_cost): Add an opno parameter.
3981         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
3982         * config/mn10300/mn10300.c (mn10300_address_cost): Update call
3983         to rtx_cost.
3984         (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
3985         rtx-cost calls.
3986         * config/pa/pa.c (hppa_rtx_costs): Likewise.
3987         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
3988         * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
3989         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
3990         (rs6000_debug_rtx_costs): Likewise.
3991         * config/s390/s390.c (s390_rtx_costs): Likewise.
3992         * config/score/score-protos.h (score_rtx_costs): Likewise.
3993         * config/score/score.c (score_rtx_costs): Likewise.
3994         * config/sh/sh.c (andcosts): Update call to rtx_cost.
3995         (sh_rtx_costs): Add an opno parameter.
3996         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
3997         * config/spu/spu.c (spu_rtx_costs): Likewise.
3998         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
3999         * config/v850/v850.c (v850_rtx_costs): Likewise.
4000         * config/vax/vax.c (vax_rtx_costs): Likewise.
4001         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
4002
4003 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
4004
4005         * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
4006         * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
4007         rtx_cost.
4008         * calls.c (precompute_register_parameters): Likewise.
4009         * combine.c (expand_compound_operation, make_extraction): Likewise.
4010         (force_to_mode, distribute_and_simplify_rtx): Likewise.
4011         * dse.c (find_shift_sequence): Likewise.
4012         * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
4013         * expr.c (compress_float_constant): Likewise.
4014         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
4015         * gcse.c (want_to_gcse_p): Likewise.
4016         * ifcvt.c (noce_try_sign_mask): Likewise.
4017         * loop-doloop.c (doloop_optimize): Likewise.
4018         * loop-invariant.c (create_new_invariant): Likewise.
4019         * optabs.c (avoid_expensive_constant): Likewise.
4020         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
4021         (try_replace_in_use, reload_cse_move2add): Likewise.
4022         * reload1.c (calculate_elim_costs_all_insns): Likewise.
4023         (note_reg_elim_costly): Likewise.
4024         * rtlanal.c (insn_rtx_cost): Likewise.
4025         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
4026         * stmt.c (lshift_cheap_p): Likewise.
4027         * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
4028         * config/avr/avr.c (final_prescan_insn): Likewise.
4029         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
4030         * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
4031
4032 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
4033
4034         * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
4035         * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
4036         * cfgloopanal.c (seq_cost): Likewise.
4037         * loop-invariant.c (create_new_invariant): Likewise.
4038         * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
4039         (reload_cse_move2add): Use get_full_set_rtx_cost.
4040
4041 2011-08-18  Richard Guenther  <rguenther@suse.de>
4042
4043         * expr.c (get_inner_reference): Fix typo in last change.
4044
4045 2011-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
4046             Joseph Myers  <joseph@codesourcery.com>
4047
4048         PR tree-optimization/49963
4049         * hwint.c (absu_hwi): Define.
4050         * hwint.h (absu_hwi): Declare.
4051         * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
4052         of abs_hwi.
4053         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4054         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
4055
4056 2011-08-18  Richard Guenther  <rguenther@suse.de>
4057
4058         * expr.c (get_inner_reference): Sign-extend the constant
4059         twos-complement offset before doing arbitrary precision
4060         arithmetic on it.
4061         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
4062         (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
4063         to get_constraint_for_ptr_offset.
4064
4065 2011-08-17  Kaz Kojima  <kkojima@gcc.gnu.org>
4066
4067         PR target/50068
4068         * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
4069
4070 2011-08-17  Richard Guenther  <rguenther@suse.de>
4071
4072         * tree.h (convert_to_ptrofftype_loc): New function.
4073         (convert_to_ptrofftype): Define.
4074         * builtins.c (expand_builtin_bzero): Use size_type_node.
4075         (fold_builtin_bzero): Likewise.
4076         (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
4077         * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
4078         * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
4079         (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
4080         * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
4081         * fold-const.c (build_range_check): Negate using the original type.
4082         (fold_unary_loc): Use fold_build_pointer_plus_loc.
4083         * gimple-fold.c (gimple_adjust_this_by_delta): Use
4084         convert_to_ptrofftype.
4085         * gimplify.c (gimplify_self_mod_expr): Likewise.
4086         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
4087         (graphite_create_new_loop_guard): Likewise.
4088         * graphite-sese-to-poly.c (my_long_long): Remove.
4089         (scop_ivs_can_be_represented): Adjust.
4090         * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
4091         * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
4092         * tree-loop-distribution.c (build_size_arg_loc): Use
4093         size_type_node.
4094         (generate_memset_zero): Simplify.
4095         * tree-mudflap.c: Use fold_convert, not convert.
4096         * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
4097         its own type.
4098         (determine_offset): Likewise for DR_STEP.
4099         (valid_initializer_p): Likewise.
4100         * tree-profile.c (prepare_instrumented_value): Convert the pointer
4101         to an integer type of same size.
4102         * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
4103         to sizetype without need.
4104         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
4105         * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
4106         * tree-ssa-loop-manip.c (create_iv): Likewise.
4107         (determine_exit_conditions): Adjust comment.
4108         * tree-ssa-pre.c (create_expression_by_pieces): Use
4109         convert_to_ptrofftype.
4110         * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
4111         * varasm.c (array_size_for_constructor): Compute using double_ints.
4112
4113 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4114
4115         * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
4116         when generating an integer result where possible.  Short-cut
4117         comparison against 0 also for QImode.
4118
4119 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4120
4121         * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
4122         * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
4123         prototype.
4124         * config/spu/spu.c (spu_legitimize_reload_address): New function.
4125         (spu_legitimate_address_p): Do not check displacement if the base
4126         is an eliminable stack register.
4127
4128 2011-08-16  Anatoly Sokolov  <aesok@post.ru>
4129
4130         * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
4131         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
4132         * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
4133         m32c_preferred_output_reload_class): Remove.
4134         * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
4135         Change rclass argument and return types to reg_class_t. Use
4136         reg_class_subset_p instead of class_sizes.
4137         (m32c_preferred_output_reload_class): Make static. Change rclass
4138         argument and return types to reg_class_t.
4139         (TARGET_PREFERRED_RELOAD_CLASS,
4140         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4141
4142 2011-08-16  Kai Tietz  <ktietz@redhat.com>
4143
4144         * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
4145
4146 2011-08-16  Richard GUenther  <rguenther@suse.de>
4147
4148         PR tree-optimization/50082
4149         * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
4150         warnings here, instead of ...
4151         (ssa_forward_propagate_and_combine): ... here.
4152         (forward_propagate_into_comparison_1): Adjust.
4153         (forward_propagate_into_comparison): Likewise.
4154         (forward_propagate_into_gimple_cond): Likewise.
4155         (forward_propagate_into_cond): Likewise.
4156
4157 2011-08-16  Andreas Schwab  <schwab@redhat.com>
4158
4159         * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
4160         instead of ggc_alloc_zone_vec_rtvec_def.
4161
4162 2011-08-16  Richard Guenther  <rguenther@suse.de>
4163
4164         * tree.h (ptrofftype_p): New helper function.
4165         * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
4166         offset verification.
4167         (verify_gimple_assign_binary): Likewise.
4168         * tree.c (build2_stat): Likewise.
4169         * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
4170         (reset_evolution_in_loop): Likewise.
4171         * tree-chrec.h (build_polynomial_chrec): Likewise.
4172
4173 2011-08-16  Liang Wang  <lwang1@marvell.com>
4174
4175         * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
4176         ggc_alloc_zone_vec_rtvec_def.
4177
4178 2011-08-16  Richard Guenther  <rguenther@suse.de>
4179
4180         * tree-vrp.c (extract_range_from_multiplicative_op_1): New
4181         helper factored out from ...
4182         (extract_range_from_binary_expr_1): ... here.  Re-structure
4183         to not glob handling too different tree codes.
4184
4185 2011-08-15  Richard Henderson  <rth@redhat.com>
4186
4187         PR middle-end/50006
4188         * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
4189         setting out to include allocate_stack named pattern as well.
4190         * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
4191         * stmt.c (expand_stack_restore): Likewise.
4192
4193 2011-08-15  Richard Guenther  <rguenther@suse.de>
4194
4195         PR middle-end/50082
4196         * fold-const.c (maybe_canonicalize_comparison_1): Properly
4197         convert the modified operand to the other operand type.
4198         (fold_comparison): Call maybe_canonicalize_comparison_1 with
4199         useless conversions stripped from comparison operands.
4200
4201 2011-08-15  Richard Guenther  <rguenther@suse.de>
4202
4203         * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
4204         (extract_range_from_unary_expr_1): Restructure.
4205
4206 2011-08-15  Richard Guenther  <rguenther@suse.de>
4207
4208         PR tree-optimization/50058
4209         * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
4210         copy matching.
4211
4212 2011-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4213
4214         PR target/50022
4215         * config/arm/arm.c (output_move_double): Add 2 parameters
4216         to count the number of insns emitted and whether to emit or not.
4217         Use the flag to decide when to emit and count number of instructions
4218         that will be emitted.
4219         Handle case where output_move_double might be called for calculating
4220         lengths with an invalid constant.
4221         (arm_count_output_move_double_insns): Define.
4222         * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
4223         (output_move_double): Adjust prototype.
4224         * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
4225         output_move_double.
4226         ("*movdi_vfp_cortexa8"): Likewise and add attribute
4227         for ce_count.
4228         * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
4229         ("*movdf_soft_insn"): Likewise.
4230         * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
4231         ("*cirrus_thumb2_movdi"): Likewise.
4232         ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
4233         ("*cirrus_movdf_hard_insn"): Likewise.
4234         * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
4235         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
4236         ("mov<mode>_internal VMMX"): Likewise.
4237         * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
4238
4239 2011-08-14  Uros Bizjak  <ubizjak@gmail.com>
4240
4241         * config/i386/i386.c (ix86_expand_round_sse4): New function.
4242         * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
4243         * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
4244         for TARGET_ROUND.
4245
4246         (rint<mode>2): Simplify TARGET_ROUND check.
4247         (floor<mode>2): Ditto.
4248         (ceil<mode>2): Ditto.
4249         (btrunc<mode>2): Ditto.
4250
4251 2011-08-14  Anatoly Sokolov  <aesok@post.ru>
4252
4253         * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
4254         as mmix_preferred_output_reload_class.
4255
4256 2011-08-14  Georg-Johann Lay  <avr@gjlay.de>
4257
4258         * PR target/49903
4259         * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
4260         (branch_unspec): New insn.
4261         (branch): Beauty farm.
4262         * config/avr/avr.c (compare_condition): Use JUMP_P.  Test SET_SRC
4263         to be IF_THEN_ELSE.
4264         (avr_compare_pattern, avr_reorg_remove_redundant_compare):
4265         New static functions.
4266         (avr_reorg): Use them.  Use next_real_insn instead of NEXT_INSN.
4267         Use CONST_INT_P.  Beauty.
4268
4269 2011-08-12  Richard Henderson  <rth@redhat.com>
4270
4271         PR rtl-opt/49994
4272         * sched-init.h (struct deps_desc): Add sched_before_next_jump.
4273         * sched-deps.c (init_deps): Clear it.
4274         (deps_analyze_insn): Consume it.
4275         (sched_analyze_insn): Fill it.
4276
4277 2011-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4278
4279         PR target/48328
4280         * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
4281         for tbh instructions.
4282
4283 2011-08-12  Diego Novillo  <dnovillo@google.com>
4284
4285         * data-streamer.h (streamer_write_zero): Rename from output_zero.
4286         (streamer_write_uhwi): Rename from lto_output_uleb128.
4287         (streamer_write_hwi): Rename from output_sleb128.
4288         (streamer_write_string): Rename from lto_output_string.
4289         (streamer_string_index): Rename from lto_string_index.
4290         (streamer_write_string_with_length): Rename from
4291         lto_output_string_with_length.
4292         (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
4293         (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
4294         (streamer_read_string): Rename from lto_input_string.
4295         (streamer_read_indexed_string): Rename from input_string_internal.
4296         (streamer_read_uhwi): Rename from lto_input_uleb128.
4297         (streamer_read_hwi): Rename from lto_input_sleb128.
4298         (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
4299         (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
4300         (streamer_write_enum): Rename from lto_output_enum.
4301         (streamer_read_enum): Rename from lto_input_enum.
4302         (streamer_write_record_start): Rename from output_record_start.
4303         (streamer_read_record_start): Rename from input_record_start.
4304         (streamer_write_bitpack): Rename from lto_output_bitpack.
4305         (streamer_read_bitpack): Rename from lto_input_bitpack.
4306         (streamer_write_char_stream): Rename from lto_output_1_stream.
4307         (streamer_read_uchar): Rename from lto_input_1_unsigned.
4308         * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
4309         (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
4310         (streamer_read_string_cst): Rename from input_string_cst.
4311         (streamer_read_chain): Rename from lto_input_chain.
4312         (streamer_alloc_tree): Rename from lto_materialize_tree.
4313         (streamer_read_tree_body): Rename from lto_input_tree_pointers.
4314         (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
4315         (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
4316         (streamer_read_integer_cst): Rename from lto_input_integer_cst.
4317         (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
4318         (streamer_write_chain): Rename from lto_output_chain.
4319         (streamer_write_tree_header): Rename from lto_output_tree_header.
4320         (streamer_pack_tree_bitfields): Rename from pack_value_fields.
4321         (streamer_write_tree_body): Rename from lto_output_tree_pointers.
4322         (streamer_write_integer_cst): Rename from lto_output_integer_cst.
4323         (streamer_write_builtin): Rename from lto_output_builtin_tree.
4324         (streamer_check_handled_ts_structures): Rename from
4325         check_handled_ts_structures.
4326         (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
4327         (streamer_tree_cache_insert_at): Rename from
4328         lto_streamer_cache_insert_at.
4329         (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
4330         (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
4331         (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
4332         (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
4333         (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
4334         * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
4335         (write_identifier): Rename from output_identifier.
4336         (write_ts_common_tree_pointers): Rename from
4337         lto_output_ts_common_tree_pointers.
4338         (write_ts_vector_tree_pointers): Rename from
4339         lto_output_ts_vector_tree_pointers.
4340         (write_ts_complex_tree_pointers): Rename from
4341         lto_output_ts_complex_tree_pointers.
4342         (write_ts_decl_minimal_tree_pointers): Rename from
4343         lto_output_ts_decl_minimal_tree_pointers.
4344         (write_ts_decl_common_tree_pointers): Rename from
4345         lto_output_ts_decl_common_tree_pointers.
4346         (write_ts_decl_non_common_tree_pointers): Rename from
4347         lto_output_ts_decl_non_common_tree_pointers.
4348         (write_ts_decl_with_vis_tree_pointers): Rename from
4349         lto_output_ts_decl_with_vis_tree_pointers.
4350         (write_ts_field_decl_tree_pointers): Rename from
4351         lto_output_ts_field_decl_tree_pointers.
4352         (write_ts_function_decl_tree_pointers): Rename from
4353         lto_output_ts_function_decl_tree_pointers.
4354         (write_ts_type_common_tree_pointers): Rename from
4355         lto_output_ts_type_common_tree_pointers.
4356         (write_ts_type_non_common_tree_pointers): Rename from
4357         lto_output_ts_type_non_common_tree_pointers.
4358         (write_ts_list_tree_pointers): Rename from
4359         lto_output_ts_list_tree_pointers.
4360         (write_ts_vec_tree_pointers): Rename from
4361         lto_output_ts_vec_tree_pointers.
4362         (write_ts_exp_tree_pointers): Rename from
4363         lto_output_ts_exp_tree_pointers.
4364         (write_ts_block_tree_pointers): Rename from
4365         lto_output_ts_block_tree_pointers.
4366         (write_ts_binfo_tree_pointers): Rename from
4367         lto_output_ts_binfo_tree_pointers.
4368         (write_ts_constructor_tree_pointers): Rename from
4369         lto_output_ts_constructor_tree_pointers.
4370         (write_ts_target_option): Rename from lto_output_ts_target_option.
4371         (write_ts_translation_unit_decl_tree_pointers): Rename from
4372         lto_output_ts_translation_unit_decl_tree_pointers.
4373         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
4374         Rename from lto_streamer_cache_add_to_node_array.
4375         (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
4376         (record_common_node): Rename from lto_record_common_node.
4377
4378         * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
4379         declarations.
4380         * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
4381         function.
4382         * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
4383         unused function.
4384         * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
4385         (ipa-reference.o): Likewise.
4386         * lto-section-out.c: Include data-streamer.h.
4387         * ipa-reference.c: Include data-streamer.h.
4388
4389 2011-08-12  Nick Clifton  <nickc@redhat.com>
4390
4391         * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
4392         * doc/md.texi (cmpstrn): Note that the comparison stops if both
4393         fetched bytes are zero.
4394         (cmpstr): Likewise.
4395         (cmpmem): Note that the comparison does not stop if both of the
4396         fetched bytes are zero.
4397
4398 2011-08-12  Uros Bizjak  <ubizjak@gmail.com>
4399
4400         * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
4401         BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
4402         * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
4403         BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
4404         to integer_type_node.
4405         * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
4406         BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
4407         * builtins.c (expand_builtin_in): Ditto.
4408         (mathfn_built_in_1): Ditto.
4409         (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
4410         BUILT_IN_IFLOOR.
4411         (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
4412         BUILT_IN_IROUND.
4413         (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
4414         BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
4415         BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
4416
4417 2011-08-12  Richard Guenther  <rguenther@suse.de>
4418
4419         * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
4420
4421 2011-08-12  Romain Geissler  <romain.geissler@gmail.com>
4422
4423         * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
4424
4425 2011-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
4426
4427         * config/arm/arm.c (get_label_padding): New function.
4428         (create_fix_barrier, arm_reorg): Use it.
4429
4430 2011-08-11  Uros Bizjak  <ubizjak@gmail.com>
4431
4432         PR target/49781
4433         * config/i386/i386.md (*lea_5_zext): New.
4434         (*lea_6_zext): Ditto.
4435         * config/i386/predicates.md (const_32bit_mask): New predicate.
4436         (lea_address_operand): Reject AND.
4437         * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
4438         const_32bit_mask immediate.
4439         (ix86_print_operand_address): Handle AND.
4440         (memory_address_length): Ditto.
4441
4442 2011-08-11  Romain Geissler  <romain.geissler@gmail.com>
4443             Brian Hackett  <bhackett1024@gmail.com>
4444
4445         * plugin.def: Add event for finish_decl.
4446         * plugin.c (register_callback, invoke_plugin_callbacks): Same.
4447         * c-decl.c (finish_decl): Invoke callbacks on above event.
4448         * doc/plugins.texi: Document above event.
4449
4450 2011-08-11  Richard Guenther  <rguenther@suse.de>
4451
4452         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
4453         lookups, make looking through aggregate copies stronger.
4454
4455 2011-08-11  Richard Henderson  <rth@redhat.com>
4456
4457         PR bootstrap/50018
4458         * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
4459
4460 2011-08-11  Richard Guenther  <rguenther@suse.de>
4461
4462         * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
4463         * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
4464         (vrp_visit_stmt): Likewise.
4465
4466 2011-08-11  Richard Guenther  <rguenther@suse.de>
4467
4468         PR middle-end/50040
4469         * gimplify.c (gimplify_modify_expr_complex_part): Mark the
4470         load of the other piece with TREE_NO_WARNING.
4471         * tree-flow.h (warn_uninit): Adjust prototype.
4472         * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
4473         the base variable and the expression that is used separately.
4474         Properly query all TREE_NO_WARNING flags.
4475         (struct walk_data): Remove.
4476         (warn_uninitialized_var): Likewise.
4477         (warn_uninitialized_vars): Do not walk gimple pieces but simply
4478         look at all SSA uses of the statement.  Handle unused memory
4479         separately.
4480         * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
4481
4482 2011-08-11   Kazuhiro Inaoka  <kazuhiro.inaoka.ud@renesas.com>
4483
4484         * config/rx/rx.md (movsicc): Allow register to register transfers.
4485         (*movsicc): Likewise.
4486         (*stcc): Restrict this pattern to EQ and NE compares.
4487         (*stcc_reg): New pattern.  Works for any comparison but only for
4488         register transfers.
4489
4490 2011-08-11   Diego Novillo  <dnovillo@google.com>
4491
4492         * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
4493         Call stream_write_tree instead of output_record_start.
4494         (lto_output_ts_binfo_tree_pointers): Likewise.
4495
4496         * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
4497         Convert it to a macro.
4498         (stream_read_tree): Likewise.
4499
4500         * lto-streamer.h (lto_stream_as_builtin_p): Move ...
4501         * tree-streamer.h (lto_stream_as_builtin_p): ... here.
4502
4503         * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
4504         and tree_read_bitfields.
4505         * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
4506         (lto_write_tree): Call it.
4507         * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
4508         * streamer-hooks.h (struct streamer_hooks): Remove fields
4509         name, is_streamable and alloc_tree. Update all users.
4510         * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
4511         (lto_materialize_tree): ... here.
4512         Handle CALL_EXPR codes.
4513         Remove call to lto_streamer_cache_append.
4514         * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
4515         * tree-streamer.h (tree_read_bitfields): Declare.
4516
4517         * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
4518         (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
4519         * tree-streamer.h (stream_read_tree): New.  Replace all calls
4520         to lto_input_tree with it.
4521         (stream_write_tree): New.  Replace all calls to lto_output_tree,
4522         lto_output_tree_ref and lto_output_tree_or_ref with it.
4523         * lto-streamer-in.c (lto_read_tree): Inline code from
4524         lto_streamer_read_tree.
4525         (lto_input_tree): Move from tree-streamer-in.c.
4526         * lto-streamer-out.c (lto_output_tree_ref): Make static.
4527         Remove handling of NULL values for EXPR.
4528         Do not handle EXPRs that are not indexable.
4529         (lto_write_tree): Move from tree-streamer-out.c.
4530         Inline lto_streamer_write_tree.
4531         (lto_output_tree): Move from tree-streamer-out.c.
4532         If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
4533         * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
4534         (lto_preload_common_nodes): Likewise.
4535         Remove assertions and adjustments for nodes
4536         main_identifier_node, ptrdiff_type_node and fileptr_type_node.
4537         (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
4538         lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
4539         * lto-streamer.h (lto_input_tree): Declare.
4540         (lto_output_tree_ref): Remove.
4541         * streamer-hooks.h (struct streamer_hooks): Remove fields
4542         preload_common_nodes, indexable_with_decls_p,
4543         pack_value_fields, unpack_value_fields and output_tree_header.
4544         Update all users.
4545         * tree-streamer-in.c (lto_materialize_tree): Make extern.
4546         (lto_input_tree_pointers): Likewise.
4547         (lto_read_tree): Move to lto-streamer-in.c.
4548         (lto_input_integer_cst): Make extern.
4549         (lto_get_pickled_tree): Likewise.
4550         (lto_get_builtin_tree): Likewise.
4551         (lto_input_tree): Move to lto-streamer-in.c.
4552         * tree-streamer-out.c (pack_value_fields): Make extern.
4553         (lto_output_tree_or_ref): Remove.  Replace all callers with
4554         calls to stream_write_tree.
4555         (lto_output_builtin_tree): Make extern.
4556         (lto_streamer_write_tree): Inline into lto_write_tree.
4557         (lto_output_tree_pointers): Make extern.
4558         (lto_output_tree_header): Likewise.
4559         (lto_output_integer_cst): Likewise.
4560         (lto_write_tree): Move to lto-streamer-out.c.
4561         (lto_output_tree): Likewise.
4562         * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
4563         (preload_common_nodes): Likewise.
4564         (lto_streamer_cache_create): Call it.
4565         * tree-streamer.h: Include streamer-hooks.h.
4566         (stream_write_tree): New.
4567         (stream_read_tree): New.
4568         (lto_input_tree): Remove.
4569         (lto_materialize_tree): Declare.
4570         (lto_input_tree_pointers): Declare.
4571         (lto_get_pickled_tree): Declare.
4572         (lto_get_builtin_tree): Declare.
4573         (lto_input_integer_cst): Declare.
4574         (lto_output_tree_header): Declare.
4575         (pack_value_fields): Declare.
4576         (lto_output_tree_pointers): Declare.
4577         (lto_output_integer_cst): Declare.
4578         (lto_output_builtin_tree): Declare.
4579
4580 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
4581
4582         * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
4583         only if producer writes to the register given by regno.
4584
4585 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
4586             Alexander Monakov  <amonakov@ispras.ru>
4587
4588         * sched-deps.c (sched_get_condition_with_rev): Rename to ...
4589         (sched_get_condition_with_rev_uncached): ... this.  Factor out
4590         condition caching logic into ...
4591         (sched_get_condition_with_rev): ... this.  Reimplement.  Do not
4592         attempt to use cache for instructions with zero luid.
4593         (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
4594         * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
4595
4596 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
4597
4598         * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
4599         get_seqno_for_a_jump.  Update the caller.
4600         (get_seqno_by_succs): New.  Use it ...
4601         (get_seqno_for_a_jump): ... here to find a seqno if looking at
4602         predecessors was not sufficient.
4603         (get_seqno_by_preds): Include head in iteration range, exclude insn.
4604
4605 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
4606
4607         * sel-sched-ir.c (invalidate_av_set): Remove the assert.
4608
4609 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
4610
4611         * sel-sched-ir.h (register_unavailable_p): Declare.
4612         * sel-sched-ir.c (register_unavailable_p): New.  Use it...
4613         (set_unavailable_target_for_expr): ... here to properly test
4614         availability of a register.
4615         (speculate_expr): Ditto.
4616         * sel-sched.c (substitute_reg_in_expr): Ditto.
4617         (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
4618
4619 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
4620
4621         * sel-sched.c (verify_target_availability): Fix usage of
4622         hard_regno_nregs.
4623
4624 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
4625
4626         * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
4627         recognized by cannot_copy_insn_p hook and volatile instructions.
4628
4629 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
4630
4631         * sel-sched-ir.c (merge_expr_data): Take maximum spec.
4632
4633 2011-08-11  Richard Sandiford  <richard.sandiford@linaro.org>
4634
4635         * doc/md.texi (define_bypass): Say that the instruction names can
4636         be filename-style globs.
4637         * Makefile.in (FNMATCH_H): Define.
4638         (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
4639         * genattrtab.c: Include fnmatch.h.
4640         (bypass_list): Change field name from "insn" to "pattern".
4641         (gen_bypass_1): Update accordingly.
4642         (process_bypasses): Use fnmatch to check for matches between
4643         insn reservations and define_bypasses.
4644         * genautomata.c: Include fnmatch.h.
4645         (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
4646         and out_pattern respectively.
4647         (gen_bypass, insert_bypass): Update accordingly.
4648         (for_each_matching_insn, process_bypass_2, process_bypass_1)
4649         (process_bypass): New functions.
4650         (process_decls): Use process_bypass.  Update after field name changes.
4651
4652 2011-08-11  Georg-Johann Lay  <avr@gjlay.de>
4653
4654         PR target/49687
4655         * config/avr/avr.md (smulqi3_highpart): New insn.
4656         (umulqi3_highpart): New insn.
4657         (*subqi3.ashiftrt7): New insn.
4658         (smulhi3_highpart): New expander.
4659         (umulhi3_highpart): Nex expander.
4660         (*smulhi3_highpart_call): New insn.
4661         (*umulhi3_highpart_call): New insn.
4662         (extend_u): New code attribute.
4663         (extend_prefix): Rename code attribute to extend_su.
4664         * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
4665         widening QI/HI multiply.
4666
4667 2011-08-11  Ira Rosen  <ira.rosen@linaro.org>
4668
4669         PR tree-optimization/50039
4670         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
4671         that DEF_STMT has a stmt_vec_info.
4672
4673 2011-08-10  Richard Guenther  <rguenther@suse.de>
4674
4675         * tree.h (can_trust_pointer_alignment): Remove.
4676         * builtins.c (can_trust_pointer_alignment): Remove.
4677
4678 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4679
4680         * c-typeck.c (scalar_to_vector): New function. Try scalar to
4681         vector conversion.
4682         (stv_conv): New enum for scalar_to_vector return type.
4683         (build_binary_op): Adjust.
4684         * doc/extend.texi: Description of scalar to vector expansion.
4685
4686 2011-08-10  Richard Guenther  <rguenther@suse.de>
4687
4688         * tree.h (get_pointer_alignment): Remove max-align argument.
4689         (get_object_alignment): Likewise.
4690         * builtins.c (get_object_alignment_1): Adjust.
4691         (get_object_alignment): Remove max-align argument.
4692         (get_pointer_alignment): Likewise.
4693         (expand_builtin_strlen): Adjust.
4694         (expand_builtin_memcpy): Likewise.
4695         (expand_builtin_mempcpy_args): Likewise.
4696         (expand_builtin_strncpy): Likewise.
4697         (expand_builtin_memset_args): Likewise.
4698         (expand_builtin_memcmp): Likewise.
4699         (expand_builtin_strcmp): Likewise.
4700         (expand_builtin_strncmp): Likewise.
4701         (get_builtin_sync_mem): Likewise.
4702         (fold_builtin_memset): Likewise.
4703         (fold_builtin_memory_op): Likewise.
4704         (expand_builtin_memory_chk): Likewise.
4705         * emit-rtl.c (get_mem_align_offset): Likewise.
4706         (set_mem_attributes_minus_bitpos): Likewise.
4707         * expr.c (expand_assignment): Likewise.
4708         (expand_expr_real_1): Likewise.
4709         * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
4710         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
4711         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
4712         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
4713         * value-prof.c (gimple_stringops_transform): Likewise.
4714
4715 2011-08-10  Paulo J. Matos  <paulo.matos@csr.com>
4716
4717         * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
4718         * doc/tm.texi: Regenerate.
4719
4720 2011-08-10  Georg-Johann Lay  <avr@gjlay.de>
4721
4722         PR target/29560
4723         * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
4724         (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
4725         (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
4726         Add peephole2 to map ashlhi3 to ashlqi3 if high part of
4727         shift target is unused.
4728
4729 2011-08-10  Richard Guenther  <rguenther@suse.de>
4730
4731         PR tree-optimization/49937
4732         * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
4733         using get_object_alignment_1.
4734
4735 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
4736
4737         * config/i386/i386.c (ix86_emit_i387_round): New function.
4738         * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
4739         * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
4740         Use ix86_emit_i387_round to expand round function for i387 math.
4741         (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
4742         Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
4743
4744 2011-08-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4745
4746         * config/sync.c: Move to ../libgcc.
4747         * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
4748         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
4749         Remove.
4750
4751 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
4752
4753         * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
4754         * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
4755         * config/mmix/mmix.c (mmix_register_move_cost): Make static.
4756         Change 'from' and 'to' arguments type to reg_class_t.
4757         (TARGET_REGISTER_MOVE_COST): Define.
4758
4759 2011-08-09  Vladimir Makarov  <vmakarov@redhat.com>
4760
4761         PR target/50026
4762         Revert:
4763         PR rtl-optimization/49990
4764         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
4765         ignore classes which can not change mode.
4766         (find_costs_and_classes): Ditto.
4767
4768 2011-08-09  Richard Guenther  <rguenther@suse.de>
4769
4770         * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
4771         information for ranges with only negative values.
4772         (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
4773         BIT_AND_EXPR handling to handle ranges with negative values.
4774
4775 2011-08-09  Kirill Yukhin  <kirill.yukhin@intel.com>
4776
4777         * config/i386/i386.c: Remove traling spaces.
4778         * config/i386/sse.md: Likewise.
4779         (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
4780         (*fma_fmsub_<mode>): Likewise.
4781         (*fma_fnmadd_<mode>): Likewise.
4782         (*fma_fnmsub_<mode>): Likewise.
4783
4784 2011-08-09  Nick Clifton  <nickc@redhat.com>
4785
4786         * config/rx/rx.md: Disable extender peepholes at -O3.
4787
4788 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
4789
4790         PR target/49781
4791         * config/i386/i386.md (reload_noff_load): New.
4792         (reload_noff_store): Ditto.
4793         * config/i386/i386.c (ix86_secondary_reload): Use
4794         CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
4795         double-word moves from/to non-offsetable addresses instead of
4796         generating XMM temporary.
4797
4798 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
4799
4800         * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
4801
4802 2011-08-09  Ira Rosen  <ira.rosen@linaro.org>
4803
4804         PR tree-optimization/50014
4805         * tree-vect-loop.c (vectorizable_reduction): Get def type before
4806         calling vect_get_vec_def_for_stmt_copy ().
4807
4808 2011-08-08  Vladimir Makarov  <vmakarov@redhat.com>
4809
4810         PR rtl-optimization/49990
4811         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
4812         ignore classes which can not change mode.
4813         (find_costs_and_classes): Ditto.
4814
4815 2011-08-08  Richard Henderson  <rth@redhat.com>
4816
4817         PR middle-end/49990
4818         * config/i386/i386.c (ix86_expand_prologue): Call
4819         for SEH target gen_prologue_use instead of gen_blockage
4820         at prologue's end.
4821
4822 2011-08-08  Martin Jambor  <mjambor@suse.cz>
4823
4824         PR middle-end/49923
4825         * tree-sra.c (access_precludes_ipa_sra_p): Also check access
4826         memory alignment.
4827
4828 2011-08-08   Diego Novillo  <dnovillo@google.com>
4829
4830         * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
4831         (DATA_STREAMER_H): New.
4832         (GIMPLE_STREAMER_H): New.
4833         (TREE_STREAMER_H): New.
4834         (STREAMER_HOOKS_H): New.
4835         (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
4836         gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
4837         tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
4838         (data-streamer.o): New.
4839         (data-streamer-in.o): New.
4840         (data-streamer-out.o): New.
4841         (gimple-streamer-in.o): New.
4842         (gimple-streamer-out.o): New.
4843         (streamer-hooks.o): New.
4844         (tree-streamer.o): New.
4845         (tree-streamer-in.o): New.
4846         (tree-streamer-out.o): New.
4847         (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
4848         (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
4849         GIMPLE_STREAMER_H and TREE_STREAMER_H.
4850         (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
4851         GIMPLE_STREAMER_H and TREE_STREAMER_H.
4852         (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
4853         (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
4854         (ipa-inline-analysis.o): Likewise.
4855         (ipa-pure-const.o): Likewise.
4856         * data-streamer-in.c: New.
4857         * data-streamer-out.c: New.
4858         * data-streamer.c: New.
4859         * data-streamer.h: New.
4860         * gimple-streamer-in.c: New.
4861         * gimple-streamer-out.c: New.
4862         * gimple-streamer.h: New.
4863         * ipa-inline-analysis.c: Include data-streamer.h.
4864         * ipa-prop.c: Include data-streamer.h.
4865         * ipa-pure-const.c: Include data-streamer.h.
4866         * lto-cgraph.c: Include data-streamer.h.
4867         * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
4868         (lto_input_widest_uint_uleb128): Likewise.
4869         (lto_input_sleb128): Likewise.
4870         (bp_unpack_var_len_unsigned): Likewise.
4871         (bp_unpack_var_len_int): Likewise.
4872         * lto-section-out.c (lto_output_uleb128_stream): Move to
4873         data-streamer-out.c.
4874         (lto_output_widest_uint_uleb128_stream): Likewise.
4875         (lto_output_sleb128_stream): Likewise.
4876         (bp_pack_var_len_unsigned): Likewise.
4877         (bp_pack_var_len_int): Likewise.
4878         * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
4879         (struct string_slot): Remove.  Update all users.
4880         (lto_tag_check_set): Make extern.
4881         (lto_tag_check_range): Move to lto-streamer.h.
4882         (lto_tag_check): Likewise.
4883         (hash_string_slot_node): Remove.  Update all users.
4884         (eq_string_slot_node): Remove.  Update all users.
4885         (string_for_index): Move to data-streamer-in.c
4886         (input_string_internal): Likewise.
4887         (input_string_cst): Move to tree-streamer-in.c.
4888         (input_identifier): Likewise.
4889         (lto_input_string): Move to data-streamer-in.c
4890         (input_record_start): Move to data-streamer.h
4891         (canon_file_name): Use new definition of struct string_slot
4892         from data-streamer.h.  Set S_SLOT.LEN.
4893         (lto_input_location): Make extern.
4894         (lto_input_chain): Move to tree-streamer-in.c.
4895         (lto_init_eh): Make extern.
4896         (input_phi): Move to gimple-streamer-in.c.
4897         (input_gimple_stmt): Likewise.
4898         (input_bb): Likewise.
4899         (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
4900         (unpack_ts_real_cst_value_fields): Likewise.
4901         (unpack_ts_fixed_cst_value_fields): Likewise.
4902         (unpack_ts_decl_common_value_fields): Likewise.
4903         (unpack_ts_decl_wrtl_value_fields): Likewise.
4904         (unpack_ts_decl_with_vis_value_fields): Likewise.
4905         (unpack_ts_function_decl_value_fields): Likewise.
4906         (unpack_ts_type_common_value_fields): Likewise.
4907         (unpack_ts_block_value_fields): Likewise.
4908         (unpack_ts_translation_unit_decl_value_fields): Likewise.
4909         (unpack_value_fields): Likewise.
4910         (lto_materialize_tree): Likewise.
4911         (lto_input_ts_common_tree_pointers): Likewise.
4912         (lto_input_ts_vector_tree_pointers): Likewise.
4913         (lto_input_ts_complex_tree_pointers): Likewise.
4914         (lto_input_ts_decl_minimal_tree_pointers): Likewise.
4915         (lto_input_ts_decl_common_tree_pointers): Likewise.
4916         (lto_input_ts_decl_non_common_tree_pointers): Likewise.
4917         (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
4918         (lto_input_ts_field_decl_tree_pointers): Likewise.
4919         (lto_input_ts_function_decl_tree_pointers): Likewise.
4920         (lto_input_ts_type_common_tree_pointers): Likewise.
4921         (lto_input_ts_type_non_common_tree_pointers): Likewise.
4922         (lto_input_ts_list_tree_pointers): Likewise.
4923         (lto_input_ts_vec_tree_pointers): Likewise.
4924         (lto_input_ts_exp_tree_pointers): Likewise.
4925         (lto_input_ts_block_tree_pointers): Likewise.
4926         (lto_input_ts_binfo_tree_pointers): Likewise.
4927         (lto_input_ts_constructor_tree_pointers): Likewise.
4928         (lto_input_ts_target_option): Likewise.
4929         (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
4930         (lto_input_tree_pointers): Likewise.
4931         (lto_get_pickled_tree): Likewise.
4932         (lto_get_builtin_tree): Likewise.
4933         (lto_read_tree): Likewise.
4934         (lto_input_integer_cst): Likewise.
4935         (lto_input_tree): Likewise.
4936         * lto-streamer-out.c: Include data-streamer.h,
4937         gimple-streamer.h and streamer-hooks.h.
4938         (struct string_slot): Move to data-streamer.h.
4939         (hash_string_slot_node): Likewise.
4940         (eq_string_slot_node): Likewise.
4941         (lto_string_index): Move to data-streamer-out.c.
4942         (lto_output_string_with_length): Likewise.
4943         (lto_output_string): Likewise.
4944         (output_string_cst): Move to tree-streamer-out.c.
4945         (output_identifier): Likewise.
4946         (output_zero): Move to data-streamer-out.c
4947         (output_uleb128): Likewise.
4948         (output_sleb128): Likewise.
4949         (output_record_start): Move to data-streamer.h
4950         (pack_ts_base_value_fields): Move to tree-streamer-out.c.
4951         (pack_ts_real_cst_value_fields): Likewise.
4952         (pack_ts_fixed_cst_value_fields): Likewise.
4953         (pack_ts_decl_common_value_fields): Likewise.
4954         (pack_ts_decl_wrtl_value_fields): Likewise.
4955         (pack_ts_decl_with_vis_value_fields): Likewise.
4956         (pack_ts_function_decl_value_fields): Likewise.
4957         (pack_ts_type_common_value_fields): Likewise.
4958         (pack_ts_block_value_fields): Likewise.
4959         (pack_ts_translation_unit_decl_value_fields): Likewise.
4960         (pack_value_fields): Likewise.
4961         (lto_output_chain): Likewise.
4962         (lto_output_ts_common_tree_pointers): Likewise.
4963         (lto_output_ts_vector_tree_pointers): Likewise.
4964         (lto_output_ts_complex_tree_pointers): Likewise.
4965         (lto_output_ts_decl_minimal_tree_pointers): Likewise.
4966         (lto_output_ts_decl_common_tree_pointers): Likewise.
4967         (lto_output_ts_decl_non_common_tree_pointers): Likewise.
4968         (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
4969         (lto_output_ts_field_decl_tree_pointers): Likewise.
4970         (lto_output_ts_function_decl_tree_pointers): Likewise.
4971         (lto_output_ts_type_common_tree_pointers): Likewise.
4972         (lto_output_ts_type_non_common_tree_pointers): Likewise.
4973         (lto_output_ts_list_tree_pointers): Likewise.
4974         (lto_output_ts_vec_tree_pointers): Likewise.
4975         (lto_output_ts_exp_tree_pointers): Likewise.
4976         (lto_output_ts_block_tree_pointers): Likewise.
4977         (lto_output_ts_binfo_tree_pointers): Likewise.
4978         (lto_output_ts_constructor_tree_pointers): Likewise.
4979         (lto_output_ts_target_option): Likewise.
4980         (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
4981         (lto_output_tree_pointers): Likewise.
4982         (lto_output_tree_header): Likewise.
4983         (lto_output_builtin_tree): Likewise.
4984         (lto_write_tree): Likewise.
4985         (lto_output_integer_cst): Likewise.
4986         (lto_output_tree): Likewise.
4987         (output_phi): Move to gimple-streamer-out.c.
4988         (output_gimple_stmt): Likewise.
4989         (output_bb): Likewise.
4990         * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
4991         (streamer_hooks): Move to streamer-hooks.c.
4992         (check_handled_ts_structures): Move to tree-streamer.c
4993         (lto_streamer_cache_add_to_node_array): Likewise.
4994         (lto_streamer_cache_insert_1): Likewise.
4995         (lto_streamer_cache_insert): Likewise.
4996         (lto_streamer_cache_insert_at): Likewise.
4997         (lto_streamer_cache_append): Likewise.
4998         (lto_streamer_cache_lookup): Likewise.
4999         (lto_streamer_cache_get): Likewise.
5000         (lto_record_common_node): Likewise.
5001         (lto_preload_common_nodes): Likewise.
5002         (lto_streamer_cache_create): Likewise.
5003         (lto_streamer_cache_delete): Likewise.
5004         (streamer_hooks_init): Move to streamer-hooks.c.
5005         * lto-streamer.h: Include diagnostic.h
5006         (struct output_block, struct lto_input_block,
5007         struct data_in, struct bitpack_d): Remove forward declarations.
5008         (struct bitpack_d): Move to data-streamer.h.
5009         (struct lto_streamer_cache_d): Move to tree-streamer.h.
5010         (struct streamer_hooks): Move to streamer-hooks.h.
5011         (bp_pack_var_len_unsigned): Move to data-streamer.h.
5012         (bp_pack_var_len_int): Likewise.
5013         (bp_unpack_var_len_unsigned): Likewise.
5014         (bp_unpack_var_len_int): Likewise.
5015         (lto_input_location): Declare.
5016         (lto_tag_check_set): Declare.
5017         (lto_init_eh): Declare.
5018         (lto_output_tree_ref): Declare.
5019         (lto_output_location): Declare.
5020         (bitpack_create): Move to data-streamer.h.
5021         (bp_pack_value): Likewise.
5022         (lto_output_bitpack): Likewise.
5023         (lto_input_bitpack): Likewise.
5024         (bp_unpack_value): Likewise.
5025         (lto_output_1_stream): Likewise.
5026         (lto_input_1_unsigned): Likewise.
5027         (lto_output_int_in_range): Likewise.
5028         (lto_input_int_in_range): Likewise.
5029         (bp_pack_int_in_range): Likewise.
5030         (bp_unpack_int_in_range): Likewise.
5031         (lto_output_enum): Likewise.
5032         (lto_input_enum): Likewise.
5033         (bp_pack_enum): Likewise.
5034         (bp_unpack_enum): Likewise.
5035         * streamer-hooks.c: New.
5036         * streamer-hooks.h: New.
5037         * tree-streamer-in.c: New.
5038         * tree-streamer-out.c: New.
5039         * tree-streamer.c: New.
5040         * tree-streamer.h: New.
5041
5042 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5043
5044         * gthr-posix95.h: Remove.
5045         * gthr.h [_PTHREADS95]: Remove.
5046         * configure.ac (enable_threads): Remove posix95.
5047         * configure: Regenerate.
5048         * doc/install.texi (Configuration, --enable-threads): Remove posix95.
5049
5050 2011-08-08  Uros Bizjak  <ubizjak@gmail.com>
5051
5052         PR target/49781
5053         * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
5054         SImode addresses.
5055         (ix86_print_operand_address): Handle zero-extended addresses.
5056         (memory_address_length): Add length of addr32 prefix for
5057         zero-extended addresses.
5058         (ix86_secondary_reload): Handle moves to/from double-word general
5059         registers from/to zero-extended addresses.
5060         * config/i386/predicates.md (lea_address_operand): Reject
5061         zero-extended operands.
5062
5063 2011-08-08  H.J. Lu  <hongjiu.lu@intel.com>
5064
5065         PR other/48007
5066         * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
5067
5068         * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
5069         (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
5070
5071         * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
5072         (_Unwind_Context_Reg_Val): Likewise.
5073         (_Unwind_Get_Unwind_Word): Likewise.
5074         (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
5075         (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
5076         (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
5077         for EXTENDED_CONTEXT_BIT.
5078         (__frame_state_for): Likewise.
5079         (uw_init_context_1): Likewise.
5080         (_Unwind_GetGR): Updated.
5081         (_Unwind_SetGR): Likewise.
5082         (_Unwind_GetGRPtr): Likewise.
5083         (_Unwind_SetGRPtr): Likewise.
5084         (_Unwind_SetGRValue): Likewise.
5085         (_Unwind_GRByValue): Likewise.
5086         (uw_install_context_1): Likewise.
5087
5088         * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
5089         ASSUME_EXTENDED_UNWIND_CONTEXT.
5090         * doc/tm.texi: Regenerated.
5091
5092 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5093
5094         * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
5095
5096 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5097
5098         * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
5099         Linux/GNU-specific.
5100         (DEC Alpha Options, -mtune): Likewise.
5101         (MIPS Options, -march): native is supported on IRIX.
5102
5103 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5104
5105         * config/sparc/driver-sparc.c: New file.
5106         * config/sparc/x-sparc: New file.
5107         * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
5108         * config/sparc/sparc.opt (native): New value for enum processor_type.
5109         * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
5110         * config/sparc/sparc.c (sparc_option_override): Abort if
5111         PROCESSOR_NATIVE gets here.
5112         * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
5113         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
5114         DRIVER_SELF_SPECS): Define.
5115         * doc/invoke.texi (SPARC Options, -mcpu): Document native.
5116         (SPARC Options, -mtune): Likewise.
5117         * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
5118         Substitute result.
5119         * configure: Regenerate.
5120         * Makefile.in (EXTRA_GCC_LIBS): Set.
5121         (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
5122         (cpp$(exeext)): Likewise.
5123
5124 2011-08-08  Richard Guenther  <rguenther@suse.de>
5125
5126         * tree-vrp.c (extract_range_from_unary_expr_1): New function,
5127         split out from ...
5128         (extract_range_from_unary_expr): ... here.  Handle BIT_NOT_EXPR
5129         by composition.
5130
5131 2011-08-08  Mikael Pettersson  <mikpe@it.uu.se>
5132
5133         PR tree-optimization/50005
5134         * ipa-inline-analysis (remap_predicate): Add cast to
5135         silence signed/unsigned comparison warning.
5136
5137 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
5138
5139         * modulo-sched.c (get_sched_window): Use a table for the debug output.
5140         Print the current ii.
5141         (sms_schedule_by_order): Reduce whitespace in dump line.
5142
5143 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
5144
5145         * modulo-sched.c (get_sched_window): Use just one loop for predecessors
5146         and one loop for successors.  Fix upper bound of memory range.
5147
5148 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
5149
5150         PR target/50001
5151         * config/alpha/alpha.c (alpha_instantiate_decls): New function.
5152         (TARGET_INSTANTIATE_DECLS): New define.
5153
5154 2011-08-06  Paolo Bonzini  <bonzini@gnu.org>
5155             Mikael Morin   <mikael.morin@sfr.fr>
5156
5157         * Makefile.in (INCLUDES_FOR_TARGET): New.
5158         (LIBGCC2_CFLAGS): Use it.
5159         (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
5160
5161 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
5162
5163         * config/i386/i386.c (ix86_compute_frame_layout): Simplify
5164         frame->save_regs_using_mov calculation.
5165
5166 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
5167
5168         * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
5169         * config/i386/sse.md (castmode): New mode attribute.
5170         (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
5171         avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
5172
5173 2011-08-05  Jan Hubicka  <jh@suse.cz>
5174
5175         PR middle-end/49494
5176         * ipa-inline-analysis.c (remap_predicate): Add bounds check.
5177
5178 2011-08-05  Jan Hubicka  <jh@suse.cz>
5179
5180         PR middle-end/49500
5181         * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
5182         handle aliases.
5183         (create_emultls_var):New function.
5184         (ipa_lower_emutls): Handle aliases correctly.
5185
5186 2011-08-05  Jan Hubicka  <jh@suse.cz>
5187
5188         PR middle-end/49735
5189         * ipa-inline.c (recursive_inlining): Look through aliases.
5190
5191 2011-08-05  Jason Merrill  <jason@redhat.com>
5192
5193         * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
5194         declarations to beginning of function.
5195
5196 2011-08-05  Bernd Schmidt  <bernds@codesourcery.com>
5197
5198         PR rtl-optimization/49900
5199         * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
5200         ensure basic blocks stay in the same order.
5201
5202 2011-08-05  Aldy Hernandez  <aldyh@redhat.com>
5203
5204         * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
5205         store_bit_field.
5206         (s390_expand_atomic): Same.
5207
5208 2011-08-05  Richard Henderson  <rth@redhat.com>
5209
5210         PR rtl-opt/49977
5211         * dwarf2cfi.c (scan_insn_after): Split out of ...
5212         (scan_trace): ... here.  Correctly place notes wrt sequences.
5213
5214 2011-08-05  Kaz Kojima  <kkojima@gcc.gnu.org>
5215             Richard Henderson  <rth@redhat.com>
5216
5217         PR rtl-opt/49982
5218         * expr.c (fixup_args_size_notes): Look through no-op moves.
5219
5220 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
5221
5222         * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
5223         of "m" for operand 0.  Add type and mode attribute.
5224         (*pushxf_nointeger"): Use "<" constraint for operand 0.
5225         (*pushdf_rex64): New pattern, split out of *pushdf.  Use "m"
5226         constraint instead of "o" for opreand 1.
5227         (*pushdf): Disable for TARGET_64BIT.  Correct mode attribute.
5228         (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
5229         operand 0, alternative 4.
5230         (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
5231
5232 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
5233
5234         * config/i386/predicates.md (lea_address_operand): Rename from
5235         no_seg_address_operand.
5236         * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
5237         (*lea_1_zext): Ditto.
5238         (*lea_2): Ditto.
5239         (*lea_2_zext): Ditto.
5240
5241 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
5242
5243         * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
5244         parts.base and parts.index.
5245         * config/i386/predicates.md (aligned_operand): Ditto.
5246         (cmpxchg8b_pic_memory_operand): Ditto.
5247
5248 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5249
5250         * config/soft-fp: Move to ../libgcc.
5251         * Makefile.in (SFP_MACHINE): Remove.
5252         (libgcc-support): Remove $(SFP_MACHINE) dependency.
5253         * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
5254         * config/arm/t-arm-softfp: Move to
5255         ../libgcc/config/arm/t-softfp.
5256         * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
5257         * config/c6x/t-c6x-softfp: Remove.
5258         * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
5259         * config/i386/t-fprules-softfp: Move to
5260         ../libgcc/config/t-softfp-tf.
5261         * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
5262         * config/ia64/t-fprules-softfp: Remove.
5263         * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
5264         * config/lm32/t-fprules-softfp: Remove.
5265         * config/moxie/sfp-machine.h: Remove.
5266         * config/moxie/t-moxie-softfp: Remove.
5267         * config/rs6000/darwin-ldouble-format: Move to
5268         ../libgcc/config/rs6000/ibm-ldouble-format.
5269         * config/rs6000/darwin-ldouble.c: Move to
5270         ../libgcc/config/rs6000/ibm-ldouble.c
5271         * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
5272         * config/rs6000/libgcc-ppc64.ver: Likewise.
5273         * config/rs6000/sfp-machine.h: Likewise.
5274         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
5275         $(srcdir)/config/rs6000/libgcc-ppc64.ver.
5276         (LIB2FUNCS_EXTRA): Remove.
5277         (TARGET_LIBGCC2_CFLAGS): Remove.
5278         * config/rs6000/t-aix52: Likewise
5279         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
5280         $(srcdir)/config/rs6000/darwin-ldouble.c.
5281         (SHLIB_MAPFILES): Remove.
5282         * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
5283         $(srcdir)/config/rs6000/darwin-ldouble.c.
5284         * config/rs6000/t-fprules-softfp: Move to
5285         ../libgcc/config/t-softfp-sfdf.
5286         * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
5287         * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
5288         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
5289         $(srcdir)/config/rs6000/darwin-ldouble.c.
5290         * config/score/sfp-machine.h: Move to ../libgcc/config/score.
5291         * config/score/t-score-softfp: Remove.
5292         * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
5293         soft-fp/t-softfp from tmake_file.
5294         (arm*-*-uclinux*): Likewise.
5295         (arm*-*-ecos-elf): Likewise.
5296         (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
5297         (arm*-*-rtems*): Likewise.
5298         (arm*-*-elf): Likewise.
5299         (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
5300         tmake_file.
5301         (moxie-*-uclinux*): Likewise.
5302         (moxie-*-rtems*): Likewise.
5303         (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
5304         tmake_file.
5305         (lm32-*-rtems*): Likewise.
5306         (lm32-*-uclinux*): Likewise.
5307         (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
5308         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
5309         (powerpc-*-linux*, powerpc64-*-linux*): Remove
5310         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
5311         (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
5312         tmake_file.
5313         (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
5314         tmake_file.
5315         (tic6x-*-uclinux): Likewise.
5316         (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
5317         soft-fp/t-softfp from tmake_file.
5318         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
5319         (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
5320         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
5321         (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
5322         (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
5323
5324 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5325
5326         * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
5327         (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
5328         (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
5329         TPBIT, TPBIT_FUNCS.
5330         * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
5331         * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
5332         Remove.
5333         * config/arm/t-vxworks: Likewise.
5334         * config/arm/t-wince-pe: Likewise.
5335         * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
5336         * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5337         * config/bfin/t-bfin-elf: Likewise.
5338         * config/bfin/t-bfin-linux: Likewise.
5339         * config/bfin/t-bfin-uclinux: Likewise.
5340         * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
5341         Remove.
5342         * config/fr30/t-fr30: Likewise.
5343         * config/frv/t-frv: Likewise.
5344         * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
5345         * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5346         * config/m32c/t-m32c: Likewise.
5347         * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
5348         * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5349         * config/mcore/t-mcore: Likewise.
5350         * config/mep/t-mep: Likewise.
5351         * config/microblaze/t-microblaze: Likewise.
5352         * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
5353         * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5354         * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
5355         * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5356         * config/mn10300/t-linux: Remove.
5357         * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5358         * config/pdp11/t-pdp11: Likewise.
5359         * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
5360         * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
5361         * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5362         (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
5363         * config/rs6000/t-aix52: Likewise.
5364         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
5365         $(srcdir)/config/rs6000/ppc64-fp.c.
5366         * config/rs6000/t-fprules-fpbit: Remove.
5367         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
5368         * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5369         * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
5370         * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5371         * config/sparc/t-elf: Likewise.
5372         * config/sparc/t-leon: Likewise.
5373         * config/sparc/t-leon3: Likewise.
5374         * config/spu/t-spu-elf: Likewise.
5375         (DPBIT_FUNCS): Remove.
5376         * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5377         * config/v850/t-v850: Likewise.
5378         * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
5379         (avr-*-*): Likewise.
5380         (h8300-*-rtems*): Set libgcc_tm_file.
5381         (h8300-*-elf*): Likewise.
5382         (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
5383         tmake_file.
5384         (powerpc-*-eabisim*): Likewise.
5385         (powerpc-*-elf*): Likewise.
5386         (powerpc-*-eabialtivec*): Likewise.
5387         (powerpc-xilinx-eabi*): Likewise.
5388         (powerpc-*-eabi*): Likewise.
5389         (powerpc-*-rtems*): Likewise.
5390         (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
5391         (powerpcle-*-elf*): Likewise.
5392         (powerpcle-*-eabisim*): Likewise.
5393         (powerpcle-*-eabi*): Likewise.
5394         (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
5395         (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
5396         * doc/fragments.texi (Target Fragment, Floating Point Emulation):
5397         Remove.
5398
5399 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5400
5401         * Makefile.in (UNWIND_H): Remove.
5402         (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
5403         ../libgcc/Makefile.in.
5404         (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
5405         (LIBUNWINDDEP): Remove.
5406         (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
5407         (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
5408         LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
5409         (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
5410         Don't copy $(UNWIND_H).
5411         * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
5412         * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
5413         * aclocal.m4: Regenerate.
5414         * configure: Regenerate.
5415         * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
5416         unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
5417         unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
5418         unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
5419         * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
5420         * config/arm/libunwind.S, config/arm/pr-support.c,
5421         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
5422         ../libgcc/config/arm.
5423         * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
5424         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
5425         * config/frv/t-frv ($(T)frvbegin$(objext)): Use
5426         $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
5427         ($(T)frvend$(objext)): Likewise.
5428         * config/ia64/t-glibc (LIB2ADDEH): Remove.
5429         * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
5430         * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
5431         config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
5432         ../libgcc/config/ia64.
5433         * config/ia64/t-hpux (LIB2ADDEH): Remove.
5434         * config/ia64/t-ia64 (LIB2ADDEH): Remove.
5435         * config/ia64/t-vms (LIB2ADDEH): Remove.
5436         * config/ia64/vms.h (UNW_IVMS_MODE,
5437         MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
5438         * config/picochip/t-picochip (LIB2ADDEH): Remove.
5439         * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
5440         * config/rs6000/t-darwin (LIB2ADDEH): Remove.
5441         * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
5442         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
5443         $(srcdir)/../libgcc to refer to unwinder sources.
5444         * config/spu/t-spu-elf (LIB2ADDEH): Remove.
5445         * config/t-darwin (LIB2ADDEH): Remove.
5446         * config/t-freebsd (LIB2ADDEH): Remove.
5447         * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
5448         * config/t-libunwind-elf: Move to ../libgcc/config.
5449         * config/t-linux (LIB2ADDEH): Remove.
5450         * config/t-sol2 (LIB2ADDEH): Remove.
5451         * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
5452         * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
5453
5454 2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
5455
5456         * config/i386/i386.c (processor_alias_table): Add core-avx-i.
5457
5458         * doc/invoke.texi: Document core-avx-i.
5459
5460 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5461
5462         * tsystem.h (CONST_CAST2, CONST_CAST): Define.
5463
5464 2011-08-05  Ira Rosen  <ira.rosen@linaro.org>
5465
5466         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
5467         result of multiple results reduction when extracting the final
5468         value using scalar code.
5469
5470 2011-08-05  Richard Guenther  <rguenther@suse.de>
5471
5472         PR tree-optimization/49984
5473         * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
5474
5475 2011-08-05  Richard Guenther  <rguenther@suse.de>
5476
5477         * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
5478         return true for constant integer ranges.
5479         (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
5480         BIT_IOR_EXPR handling.
5481
5482 2011-08-04  Kai Tietz  <ktietz@redhat.com>
5483
5484         * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
5485         ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
5486
5487 2011-08-04  Ira Rosen  <ira.rosen@linaro.org>
5488
5489         * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
5490         pattern def statement, and its access macro.
5491         (NUM_PATTERNS): Set to 5.
5492         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
5493         pattern def statement.
5494         (vect_transform_loop): Likewise.
5495         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
5496         function vect_recog_over_widening_pattern ().
5497         (vect_operation_fits_smaller_type): New function.
5498         (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
5499         Likewise.
5500         (vect_pattern_recog_1): Move the code that marks pattern
5501         statements to vect_mark_pattern_stmts (), and call it.  Update
5502         documentation.
5503         * tree-vect-stmts.c (vect_supportable_shift): New function.
5504         (vect_analyze_stmt): Handle pattern def statement.
5505         (new_stmt_vec_info): Initialize pattern def statement.
5506
5507 2011-08-04  Richard Henderson  <rth@redhat.com>
5508
5509         PR target/49964
5510         * config/i386/i386.c (ix86_expand_call): Don't create nested
5511         PARALLELs for TARGET_VZEROUPPER.
5512         (ix86_split_call_vzeroupper): Fix extraction of the original call.
5513         * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
5514         recognize nested PARALLELs.
5515         (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
5516         *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
5517         *sibcall_value_pop_vzeroupper): Likewise.
5518
5519 2011-08-04  Richard Henderson  <rth@redhat.com>
5520
5521         PR middle-end/49968
5522         * calls.c (expand_call): Use fixup_args_size_notes for
5523         emit_stack_restore.
5524         * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
5525         in non-standard modes.
5526
5527 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
5528
5529         * gcc.c (self_spec): New variable.
5530         (static_specs): Add self_spec.
5531         (main): Call do_self_spec on "self_spec" specs after reading
5532         user specs files.  Move compare_debug handling right after that.
5533
5534 2011-08-04  Richard Guenther  <rguenther@suse.de>
5535
5536         * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
5537         (value_range_nonnegative_p): New function.
5538         (ssa_name_nonnegative_p): Use it.
5539         (value_range_constant_singleton): New function.
5540         (op_with_constant_singleton_value_range): Use it.
5541         (extract_range_from_binary_expr_1): New function, split out from ...
5542         (extract_range_from_binary_expr): ... this.  Remove fallback
5543         constant folding done here.
5544
5545 2011-08-04  Richard Guenther  <rguenther@suse.de>
5546
5547         PR tree-optimization/49806
5548         * tree-vrp.c (op_with_boolean_value_range_p): New function.
5549         (simplify_truth_ops_using_ranges): Simplify.  Allow inserting
5550         a new statement for a final conversion to bool.
5551
5552 2011-08-04  Romain Geissler  <romain.geissler@gmail.com>
5553
5554         * gengtype-state.c: Include "bconfig.h" if
5555         GENERATOR_FILE is defined, "config.h" otherwise.
5556         * gengtype.c: Likewise.
5557         * gengtype-lex.l: Likewise.
5558         * gengtype-parse.c: Likewise.
5559         * Makefile.in (gengtype-lex.o-warn): New variable.
5560         (plugin_resourcesdir): Likewise.
5561         (plugin_bindir): Likewise.
5562         (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
5563         (MOSTLYCLEANFILES): Add gengtype$(exeext).
5564         (native): Depend on gengtype$(exeext) is $enable_plugin
5565         is set to "yes".
5566         (gtype.state): Depend on s-gtype. Use temporary file.
5567         (gengtype-lex.o): New rule.
5568         (gengtype-parse.o): Likewise.
5569         (gengtype-state.o): Likewise.
5570         (gengtype$(exeext)): Likewise.
5571         (install-gengtype): Likewise.
5572         (gengtype.o): Likewise.
5573         (build/gengtype.o): Depend on version.h.
5574         (build/gengtype-state): Depend on double-int.h, version.h,
5575         $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
5576         (install-plugin): Depend on install-gengtype.
5577
5578 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
5579
5580         PR middle-end/49905
5581         * tree.h (init_attributes): New prototype.
5582         * attribs.c (init_attributes): No longer static.
5583
5584 2011-08-04  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5585
5586         * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
5587         maybe_suffix.
5588
5589 2011-08-03   David Li  <davidxl@google.com>
5590
5591         * tree-optimize.c (execute_fixup_cfg): Fix up entry
5592         outgoing edge counts after inlining.
5593
5594 2011-08-03   David Li  <davidxl@google.com>
5595
5596         * profile.c (compute_branch_probabilities): Compute
5597         function frequency after profile annotation.
5598
5599 2011-08-04  Alan Modra  <amodra@gmail.com>
5600
5601         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
5602         use_backchain_to_restore_sp initialisation.
5603         (rs6000_legitimate_offset_address_p): Simplify offset test.
5604
5605 2011-08-03  Richard Henderson  <rth@redhat.com>
5606
5607         * config/spu/spu.md: Use define_c_enum instead of define_constants.
5608         (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
5609         (UNSPECV_NOP): New.
5610
5611 2011-08-03  Richard Henderson  <rth@redhat.com>
5612
5613         PR target/34888
5614         * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
5615
5616 2011-08-03  Jakub Jelinek  <jakub@redhat.com>
5617
5618         PR tree-optimization/49948
5619         * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
5620
5621 2011-08-03  Anatoly Sokolov  <aesok@post.ru>
5622
5623         * config/m32c/m32c.c (class_sizes): Remove.
5624         (reduce_class): Change arguments and return type to reg_class_t.
5625         Change type cc var to HARD_REG_SET. Change type best var to
5626         reg_class_t. Change type best_size var to unsigned int. Remove
5627         initialization class_sizes var. Use reg_class_size array instead
5628         of class_sizes. Use reg_class_contents array instead
5629         of class_contents.
5630
5631 2011-08-03  Richard Guenther  <rguenther@suse.de>
5632
5633         PR middle-end/49958
5634         * fold-const.c (fold_binary_loc): Only associate
5635         (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
5636         overflow wraps.
5637
5638 2011-08-03  Alan Modra  <amodra@gmail.com>
5639
5640         PR rtl-optimization/49941
5641         * jump.c (mark_jump_label): Comment.
5642         (mark_jump_label_1): Set JUMP_LABEL for return jumps.
5643         * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
5644         (mark_used_flags): Don't mark RETURN.
5645
5646 2011-08-03  Richard Guenther  <rguenther@suse.de>
5647
5648         PR tree-optimization/49938
5649         * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
5650         deal with a POLYNOMIAL_CHREC.
5651
5652 2011-08-03  Revital Eres  <revital.eres@linaro.org>
5653
5654         * modulo-sched.c (calculate_stage_count,
5655         calculate_must_precede_follow, get_sched_window,
5656         try_scheduling_node_in_cycle, remove_node_from_ps): Add
5657         declaration.
5658         (update_node_sched_params, set_must_precede_follow, optimize_sc):
5659         New functions.
5660         (reset_sched_times): Call update_node_sched_params.
5661         (sms_schedule): Call optimize_sc.
5662         (get_sched_window): Change function arguments.
5663         (sms_schedule_by_order): Update call to get_sched_window.
5664         Call set_must_precede_follow.
5665         (calculate_stage_count): Add function argument.
5666
5667 2011-08-02  Richard Henderson  <rth@redhat.com>
5668
5669         PR target/49864
5670         PR target/49879
5671         * reg-notes.def (REG_ARGS_SIZE): New.
5672         * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
5673         (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
5674         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
5675         different stack levels.
5676         * combine-stack-adj.c (adjust_frame_related_expr): Remove.
5677         (maybe_move_args_size_note): New.
5678         (combine_stack_adjustments_for_block): Use it.
5679         * combine.c (distribute_notes): Place REG_ARGS_SIZE.
5680         * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
5681         (dw_trace_info): Add beg_true_args_size, end_true_args_size,
5682         beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
5683         (cur_cfa): New.
5684         (queued_args_size): Remove.
5685         (add_cfi_args_size): Assert size is non-negative.
5686         (stack_adjust_offset, dwarf2out_args_size): Remove.
5687         (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
5688         (notice_args_size, notice_eh_throw): New.
5689         (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
5690         (dwarf2out_frame_debug_adjust_cfa): Likewise.
5691         (dwarf2out_frame_debug_cfa_offset): Likewise.
5692         (dwarf2out_frame_debug_expr): Likewise.  Don't stack_adjust_offset.
5693         (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
5694         (change_cfi_row): Don't emit args_size.
5695         (maybe_record_trace_start_abnormal): Split out from ...
5696         (maybe_record_trace_start): Here.  Set args_size_undefined.
5697         (create_trace_edges): Update to match.
5698         (scan_trace): Handle REG_ARGS_SIZE.
5699         (connect_traces): Connect args_size between EH insns.
5700         * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
5701         * explow.c (suppress_reg_args_size): New.
5702         (adjust_stack_1): Split out from ...
5703         (adjust_stack): ... here.
5704         (anti_adjust_stack): Use it.
5705         (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
5706         * expr.c (mem_autoinc_base): New.
5707         (fixup_args_size_notes): New.
5708         (emit_single_push_insn_1): Rename from emit_single_push_insn.
5709         (emit_single_push_insn): New.  Generate REG_ARGS_SIZE.
5710         * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
5711         * reload1.c (reload_as_needed): Likewise.
5712         * rtl.h (fixup_args_size_notes): Declare.
5713
5714 2011-08-02  Paolo Carlini  <paolo.carlini@oracle.com>
5715
5716         PR bootstrap/49914
5717         * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
5718         of abs.
5719         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
5720         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
5721
5722 2011-08-02  Richard Henderson  <rth@redhat.com>
5723
5724         * config/h8300/h8300.c (push, pop): Return the insn.
5725         (h8300_swap_into_er6): Generate correct unwind info.
5726         (h8300_swap_out_of_er6): Likewise.
5727         * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
5728         complex cfa expression.
5729         (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
5730
5731 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
5732
5733         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
5734
5735 2011-08-02  Richard Henderson  <rth@redhat.com>
5736
5737         PR target/49878
5738         * config/h8300/h8300.c (h8300_move_ok): New.
5739         * config/h8300/h8300-protos.h: Declare it.
5740         * config/h8300/h8300.md (P): New mode iterator.
5741         (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
5742         (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
5743         (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
5744         (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
5745         (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
5746         and pushqi1_h8300hs_normal; use PRE_MODIFY and
5747         register_no_sp_elim_operand.
5748         (*pushhi1_h8300hs_<P>): Similarly.
5749         (pushqi1, pushhi1, pushhi1_h8300): Remove.
5750         * config/h8300/predicates.md (register_no_sp_elim_operand): New.
5751
5752 2011-08-02  Richard Henderson  <rth@redhat.com>
5753
5754         PR target/49881
5755         * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
5756
5757 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
5758
5759         * c-parser.c (enum c_parser_prec): New enum, moved from within
5760         c_parser_binary_expression.
5761         (c_parser_binary_expression): Add PREC argument.  Stop parsing
5762         if operator has lower or equal precedence than PREC.
5763         (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
5764         callers.
5765         (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
5766         Adjust c_finish_omp_atomic caller.
5767         (c_parser_omp_taskyield): New function.
5768         (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
5769         (c_parser_omp_clause_name): Handle final and mergeable clauses.
5770         (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
5771         functions.
5772         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
5773         and PRAGMA_OMP_CLAUSE_MERGEABLE.
5774         (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
5775         (c_parser_omp_clause_reduction): Handle min and max.
5776         * c-typeck.c (c_finish_omp_clauses): Don't complain about
5777         const qualified predetermined vars in firstprivate clause.
5778         andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
5779         Handle MIN_EXPR and MAX_EXPR.
5780         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
5781         and OMP_CLAUSE_MERGEABLE.
5782         (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
5783         and OMP_ATOMIC_CAPTURE_NEW.
5784         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
5785         OMP_CLAUSE_MERGEABLE.
5786         (omp_clause_code_name): Likewise.
5787         (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
5788         * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
5789         and OMP_CLAUSE_MERGEABLE.
5790         (OMP_CLAUSE_FINAL_EXPR): Define.
5791         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
5792         OMP_CLAUSE_MERGEABLE.
5793         (expand_task_call): Likewise.
5794         (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
5795         (expand_omp_atomic_fetch_op): Handle cases where old or new
5796         value is needed afterwards.
5797         (expand_omp_atomic): Call expand_omp_atomic_load resp.
5798         expand_omp_atomic_store.
5799         * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
5800         OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
5801         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
5802         OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
5803         * tree-nested.c (convert_nonlocal_omp_clauses,
5804         convert_local_omp_clauses): Likewise.
5805         * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
5806         OMP_ATOMIC_CAPTURE_NEW): New.
5807         * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
5808         (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
5809         New inlines.
5810         * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
5811         * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
5812         OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
5813
5814 2011-08-02  Kai Tietz  <ktietz@redhat.com>
5815
5816         * gimple.c (canonicalize_cond_expr_cond): Handle cast from
5817         boolean-type.
5818         (ssa_forward_propagate_and_combine): Interprete result of
5819         forward_propagate_comparison.
5820         * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
5821         boolean-typed operands for comparisons.
5822
5823 2011-08-02  Georg-Johann Lay  <avr@gjlay.de>
5824
5825         * config/avr/libgcc.S: Gather related function in the
5826         same input section.
5827         (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
5828         __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
5829         references.
5830         (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
5831         __udivmodsi4, __divmodsi4, __prologue_saves__,
5832         __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
5833         __do_copy_data, __do_clear_bss, __do_global_ctors,
5834         __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
5835
5836 2011-08-02  Uros Bizjak  <ubizjak@gmail.com>
5837
5838         PR target/47766
5839         * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
5840         (stack_protect_test): The pattern compares ptr_mode value.
5841
5842 2011-08-02  Alan Modra  <amodra@gmail.com>
5843
5844         * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
5845         note for save_LR_around_toc_setup sequence.
5846
5847 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
5848
5849         * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
5850
5851 2011-08-01  Sebastian Pop  <sebastian.pop@amd.com>
5852             Joseph Myers  <joseph@codesourcery.com>
5853
5854         * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
5855         * hwint.c: Include diagnostic-core.h.
5856         (abs_hwi): New.
5857         (gcd): Moved here...
5858         (pos_mul_hwi): New.
5859         (mul_hwi): New.
5860         (least_common_multiple): Moved here...
5861         * hwint.h (gcd): ... from here.
5862         (least_common_multiple): ... from here.
5863         (HOST_WIDE_INT_MIN): New.
5864         (HOST_WIDE_INT_MAX): New.
5865         (abs_hwi): Declared.
5866         (gcd): Declared.
5867         (pos_mul_hwi): Declared.
5868         (mul_hwi): Declared.
5869         (least_common_multiple): Declared.
5870         * omega.c (check_pos_mul): Removed.
5871         (check_mul): Removed.
5872         (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
5873         mul_hwi instead of check_mul.
5874
5875 2011-08-01  Richard Henderson  <rth@redhat.com>
5876
5877         PR target/49881
5878         * config/avr/avr.h (PUSH_ROUNDING): New.
5879         * config/avr/avr.md (pushqi1): Rename from *pushqi.
5880         (*pushhi, *pushsi, *pushsf): Remove.
5881         (MPUSH): New mode iterator.
5882         (push<MPUSH>1): New expander.
5883
5884 2011-08-01  Anatoly Sokolov  <aesok@post.ru>
5885
5886         * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
5887         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
5888         * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
5889         mmix_preferred_output_reload_class): Remove.
5890         * config/mmix/mmix.c (mmix_preferred_reload_class,
5891         mmix_preferred_output_reload_class): Make static. Change rclass
5892         argument and return type to reg_class_t.
5893         (TARGET_PREFERRED_RELOAD_CLASS,
5894         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
5895
5896 2011-08-01  Joern Rennecke  <joern.rennecke@embecosm.com>
5897
5898         * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
5899         handling.
5900
5901 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
5902
5903         PR target/47766
5904         * config/i386/i386.md (PTR): New.
5905         (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
5906         (stack_protect_test): Likewise.
5907         (stack_protect_set_<mode>): Replace ":P" with ":PTR".
5908         (stack_tls_protect_set_<mode>): Likewise.
5909         (stack_tls_protect_test_<mode>): Likewise.
5910
5911 2011-08-01  Uros Bizjak  <ubizjak@gmail.com>
5912
5913         PR target/49927
5914         * config/i386/i386.c (ix86_address_subreg_operand): New.
5915         (ix86_decompose_address): Use ix86_address_subreg_operand.
5916         (ix86_legitimate_address_p): Do not assert that subregs satisfy
5917         register_no_elim_operand in DImode.
5918
5919 2011-08-01  Ira Rosen  <ira.rosen@linaro.org>
5920
5921         PR tree-optimization/49926
5922         * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
5923         in a chain doesn't have uses both inside and outside the loop.
5924
5925 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
5926
5927         * config/avr/avr.h (mcu_type_s): Add errata_skip field.
5928         * config/avr/avr-devices.c (avr_mcu_types): Use it.
5929         * config/avr/avr-mcus.def (AVR_MCU): Use it.
5930         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
5931         define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
5932         * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
5933         Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
5934         to detect if XJMP must not be skipped.
5935
5936 2011-08-02  Alan Modra  <amodra@gmail.com>
5937
5938         * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
5939         Delete.
5940         * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
5941         (rs6000_emit_prologue): Don't prematurely return when
5942         TARGET_SINGLE_PIC_BASE.  Don't emit eh_frame info in
5943         save_toc_in_prologue case.
5944         (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
5945         calls_alloca.
5946
5947 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
5948
5949         * config/avr/avr-devices.c: Delete SVN property svn:executable.
5950         * config/avr/predicates.md: Ditto.
5951         * config/avr/driver-avr.c: Ditto.
5952         * config/avr/genopt.sh: Set SVN property svn:executable to *.
5953
5954 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
5955
5956         * calls.c (emit_library_call_value_1): Declare size only if
5957         BLOCK_REG_PADDING is defined.
5958
5959 2011-08-01  Kirill Yukhin  <kirill.yukhin@intel.com>
5960
5961         PR target/49547
5962         * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
5963         (x86_64-*-*): Likewise.
5964         * config/i386/i386.opt (mlzcnt): New.
5965         * config/i386/abmintrin.h: File removed.
5966         (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
5967         * config/i386/lzcntintrin.h: ... here.  New file.
5968         (__lzcnt): Rename to ...
5969         (__lzcnt32): ... this.
5970         * config/i386/bmiintrin.h (head): Update copyright year.
5971         (__lzcnt_u16): Removed.
5972         (__lzcnt_u32): Likewise.
5973         (__lzcnt_u64): Likewise.
5974         * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
5975         is defined, remove abmintrin.h.
5976         * config/i386/cpuid.h (bit_LZCNT): New.
5977         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5978         LZCNT feature.
5979         * config/i386/i386-c.c (ix86_target_macros_internal): Define
5980         __LZCNT__ if needed.
5981         * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
5982         (ix86_option_override_internal): Handle LZCNT option.
5983         (ix86_valid_target_attribute_inner_p): Likewise.
5984         (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
5985         * config/i386/i386.h (TARGET_LZCNT): New.
5986         (CLZ_DEFINED_VALUE_AT_ZERO): Update.
5987         * config/i386/i386.md (clz<mode>2): Update insn constraint.
5988         (clz<mode>2_lzcnt): Likewise.
5989         * doc/invoke.texi: Mention -mlzcnt option.
5990         * doc/extend.texi: Likewise.
5991
5992 2011-08-01  Julian Brown  <julian@codesourcery.com>
5993
5994         * configure.ac (fixed-point): Add ARM support.
5995         * configure: Regenerate.
5996         * config/arm/arm.c (arm_fixed_mode_set): New struct.
5997         (arm_set_fixed_optab_libfunc): New.
5998         (arm_set_fixed_conv_libfunc): New.
5999         (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
6000         ARM-specific names.
6001         (aapcs_libcall_value): Return sub-word-size fixed-point libcall
6002         return values in SImode.
6003         (arm_return_in_msb): Return fixed-point types in the msb.
6004         (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
6005         upwards.
6006         (arm_scalar_mode_supported_p): Support fixed-point modes.
6007         (arm_vector_mode_supported_p): Support vector fixed-point modes.
6008         * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
6009         (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
6010         (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
6011         (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
6012         * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
6013         New mode iterators.
6014         (qaddsub_suf): New mode attribute.
6015         * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
6016         vector modes.
6017         * config/arm/predicates.md (sat_shift_operator): New predicate.
6018         * config/arm/arm-fixed.md: New.
6019         * config/arm/arm.md: Include arm-fixed.md.
6020         * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
6021
6022 2011-08-01  Julian Brown  <julian@codesourcery.com>
6023
6024         * calls.c (emit_library_call_value_1): Support padding for libcall
6025         arguments and return values.
6026         * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
6027         downwards in big-endian mode.
6028
6029 2011-08-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6030
6031         PR debug/49887
6032         * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
6033         * config/sol2-protos.h: Likewise.
6034         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
6035         solaris_code_end.
6036         * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
6037         * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
6038         solaris_file_end.
6039         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
6040
6041 2011-08-01  Julian Brown  <julian@codesourcery.com>
6042
6043         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
6044
6045 2011-08-01  Julian Brown  <julian@codesourcery.com>
6046
6047         * final.c (output_addr_const): Print fixed-point constants as
6048         decimal not hex.
6049
6050 2011-08-01  Richard Guenther  <rguenther@suse.de>
6051
6052         * stor-layout.c (initialize_sizetypes): Properly sign-extend
6053         bitsiztype TYPE_MAX_VALUE.
6054
6055 2011-08-01  Julian Brown  <julian@codesourcery.com>
6056
6057         * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
6058         comparison helpers.
6059
6060 2011-07-31  Richard Henderson  <rth@redhat.com>
6061
6062         * config/h8300/crti.asm: Add flags to .section directive.
6063         * config/h8300/crtn.asm: Likewise.
6064
6065 2011-07-31  Richard Henderson  <rth@redhat.com>
6066
6067         * stor-layout.c (initialize_sizetypes): Handle unsigned short.
6068         * tree.c (build_common_tree_nodes): Likewise.
6069
6070 2011-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
6071
6072         PR target/49880
6073         * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
6074         (divsi3_i1): Likewise.
6075
6076 2011-07-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6077
6078         PR tree-optimization/49749
6079         * tree-ssa-reassoc.c (get_rank): New forward declaration.
6080         (PHI_LOOP_BIAS): New macro.
6081         (phi_rank): New function.
6082         (loop_carried_phi): Likewise.
6083         (propagate_rank): Likewise.
6084         (get_rank): Add calls to phi_rank and propagate_rank.
6085
6086 2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>
6087
6088         * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
6089         of TARGET_64BIT.
6090         (PTRDIFF_TYPE): Likewise.
6091
6092 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
6093
6094         PR target/49920
6095         * config/i386/i386.md (strset): Do not expand strset_singleop
6096         when %eax or $edi are fixed.
6097         (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
6098         (*strsetsi_1): Ditto.
6099         (*strsethi_1): Ditto.
6100         (*strsetqi_1): Ditto.
6101         (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
6102         (*rep_stossi): Ditto.
6103         (*rep_stosqi): Ditto.
6104         (*strlenqi_1): Ditto.
6105         (cmpstrnsi): Also fail when %ecx is fixed.
6106         (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
6107         (*cmpstrnqi_1): Ditto.
6108         (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
6109         (*strmovsi_1): Ditto.
6110         (*strmovhi_1): Ditto.
6111         (*strmovqi_1): Ditto.
6112         (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
6113         (*rep_movsi): Ditto.
6114         (*rep_movqi): Ditto.
6115
6116 2011-07-31  Mikael Pettersson  <mikpe@it.uu.se>
6117
6118         PR target/47908
6119         * config/m68k/m68k.c (m68k_override_options_after_change): New function.
6120         Disable instruction scheduling for non-ColdFire targets.
6121         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
6122
6123 2011-07-31  Revital Eres  <revital.eres@linaro.org>
6124
6125         * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
6126         of anti-dep edge from a branch.
6127         (add_cross_iteration_register_deps): Create anti-dep edge from
6128         a branch.
6129
6130 2011-07-31  Revital Eres  <revital.eres@linaro.org>
6131
6132         * modulo-sched.c: Change comment.
6133         (reset_sched_times): Fix print message.
6134         (print_partial_schedule): Add print info.
6135
6136 2011-07-31  Tom de Vries  <tom@codesourcery.com>
6137
6138         PR middle-end/43513
6139         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
6140         get_object_alignment and TYPE_ALIGN.
6141
6142 2011-07-30  Tom de Vries  <tom@codesourcery.com>
6143
6144         PR middle-end/43513
6145         * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
6146         (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
6147
6148 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6149
6150         * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
6151         <sys/sbd.h>.
6152         (cpu_types): New array.
6153         (cputype): New function.
6154         (host_detect_local_cpu): Only define buf, f if !__sgi__.
6155         Use scaninvent instead of /proc/cpuinfo if __sgi__.
6156         * config.host: Also use driver-native.o, mips/x-native on
6157         mips-sgi-irix*.
6158         * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
6159         (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
6160         (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
6161
6162 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
6163
6164         PR middle-end/49897
6165         PR middle-end/49898
6166         * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
6167         in nested parallel and outer is a gimple_reg, mark it as addressable
6168         and set its bit in task_shared_vars bitmap too.
6169
6170 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
6171
6172         * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
6173
6174 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6175
6176         * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
6177         IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
6178         (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
6179         AMASK_LOCKPFTCHOK): Define.
6180         (host_detect_local_cpu): Remove buf, f, cpu_names.
6181         Define cpu_types, implver, amask.
6182         Use __builtin_alpha_implver, __builtin_alpha_amask to determine
6183         native CPU.
6184         * config.host: Also use driver-alpha.o, alpha/x-alpha on
6185         alpha*-dec-osf*.
6186         * config/alpha/osf5.h [__alpha__ || __alpha]
6187         (host_detect_local_cpu): Declare.
6188         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
6189         (DRIVER_SELF_SPECS): Define.
6190
6191 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
6192
6193         PR target/47715
6194         * config/i386/i386.md (*load_tp_x32): New.
6195         (*load_tp_x32_zext): Ditto.
6196         (*add_tp_x32): Ditto.
6197         (*add_tp_x32_zext): Ditto.
6198         (*load_tp_<mode>): Disable for TARGET_X32 targets.
6199         (*add_tp_<mode>): Ditto.
6200         * config/i386/i386.c (get_thread_pointer): Load thread pointer in
6201         ptr_mode and convert to Pmode if needed.
6202
6203 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
6204
6205         PR target/49687
6206         * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
6207         muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
6208         *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
6209         Add X to register footprint: Clobber r26/r27.
6210
6211 2011-07-29  Richard Guenther  <rguenther@suse.de>
6212
6213         * builtins.c (fold_builtin_signbit): Build the comparison
6214         with a proper type.
6215
6216 2011-07-29  Richard Guenther  <rguenther@suse.de>
6217
6218         PR tree-optimization/49893
6219         * tree-predcom.c (suitable_reference_p): Volatile references
6220         are not suitable.
6221
6222 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
6223
6224         PR target/49313
6225         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
6226         (__ctzsi2): Result for 0 may be undefined.
6227         (__ctzhi2): Result for 0 may be undefined.
6228         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
6229         (__popcountsi2): Ditto. And don't clobber r26.
6230         (__popcountdi2): Ditto. And don't clobber r27.
6231         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
6232         (parityhi2): New expand.
6233         (paritysi2): New expand.
6234         (popcounthi2): New expand.
6235         (popcountsi2): New expand.
6236         (clzhi2): New expand.
6237         (clzsi2): New expand.
6238         (ctzhi2): New expand.
6239         (ctzsi2): New expand.
6240         (ffshi2): New expand.
6241         (ffssi2): New expand.
6242         (copysignsf3): New insn.
6243         (bswapsi2): New expand.
6244         (*parityhi2.libgcc): New insn.
6245         (*parityqihi2.libgcc): New insn.
6246         (*paritysihi2.libgcc): New insn.
6247         (*popcounthi2.libgcc): New insn.
6248         (*popcountsi2.libgcc): New insn.
6249         (*popcountqi2.libgcc): New insn.
6250         (*popcountqihi2.libgcc): New insn-and-split.
6251         (*clzhi2.libgcc): New insn.
6252         (*clzsihi2.libgcc): New insn.
6253         (*ctzhi2.libgcc): New insn.
6254         (*ctzsihi2.libgcc): New insn.
6255         (*ffshi2.libgcc): New insn.
6256         (*ffssihi2.libgcc): New insn.
6257         (*bswapsi2.libgcc): New insn.
6258
6259 2011-07-29  Richard Guenther  <rguenther@suse.de>
6260
6261         * tree-vrp.c (get_value_range): Only set parameter default
6262         definitions to varying, leave others at undefined.
6263         (extract_range_from_binary_expr): Fix undefined handling.
6264         (vrp_visit_phi_node): Handle merged undefined state.
6265
6266 2011-07-29  Wei Guozhi  <carrot@google.com>
6267
6268         PR rtl-optimization/49799
6269         * combine.c (make_compound_operation): Check if the bit field is valid
6270         before change it to bit field extraction.
6271
6272 2011-07-29  Bernd Schmidt  <bernds@codesourcery.com>
6273
6274         PR rtl-optimization/49891
6275         * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
6276         newly created returnjumps.
6277
6278 2011-07-28  DJ Delorie  <dj@redhat.com>
6279
6280         * expr.c (expand_expr_addr_expr_1): Detect a user request for a
6281         local frame in a naked function, and produce a suitable error for
6282         that specific case.
6283
6284         * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
6285         registers to be reloaded in HI classes when the target is HI.
6286
6287 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
6288
6289         * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
6290         bound_one, bound_two.
6291
6292 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
6293
6294         PR middle-end/48648
6295         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
6296         CLAST assignments.
6297         (translate_clast): Same.
6298         (translate_clast_assignment): New.
6299
6300 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
6301
6302         PR tree-optimization/49876
6303         * sese.c (rename_uses): Do not return false on gloog_error: set
6304         the new_expr to integer_zero_node and continue code generation.
6305         (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
6306
6307 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
6308
6309         PR debug/49846
6310         * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
6311         arguments also check if they aren't initialized with a MODE_INT
6312         mode of the same size.
6313
6314 2011-07-28  Aldy Hernandez  <aldyh@redhat.com>
6315
6316         * expr.c (get_bit_range): Handle *MEM_REF's.
6317
6318 2011-07-28  Bernd Schmidt  <bernds@codesourcery.com>
6319
6320         * rtlanal.c (tablejump_p): False for returns.
6321         * reorg.c (first_active_target_insn): New static function.
6322         (find_end_label): Set JUMP_LABEL for a new returnjump.
6323         (optimize_skip, get_jump_flags, rare_destination,
6324         mostly_true_jump, get_branch_condition,
6325         steal_delay_list_from_target, own_thread_p,
6326         fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
6327         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
6328         dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
6329         * jump.c (delete_related_insns): Likewise.
6330         (jump_to_label_p): New function.
6331         (redirect_target): New static function.
6332         (redirect_exp_1): Use it.  Adjust to handle ret_rtx in JUMP_LABELS.
6333         (redirect_jump_1): Assert that the new label is nonnull.
6334         (redirect_jump): Likewise.
6335         (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
6336         * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
6337         exit block.
6338         (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE.  All callers
6339         changed.  Ensure that the right label is passed to redirect_jump.
6340         * function.c (emit_return_into_block,
6341         thread_prologue_and_epilogue_insns): Ensure new returnjumps have
6342         ret_rtx in their JUMP_LABEL.
6343         * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
6344         * emit-rtl.c (skip_consecutive_labels): Allow the caller to
6345         pass ret_rtx as label.
6346         * cfglayout.c (fixup_reorder_chain): Use
6347         force_nonfallthru_and_redirect rather than force_nonfallthru.
6348         (duplicate_insn_chain): Copy JUMP_LABELs for returns.
6349         * rtl.h (ANY_RETURN_P): New macro.
6350         (jump_to_label_p): Declare.
6351         * resource.c (find_dead_or_set_registers): Handle ret_rtx in
6352         JUMP_LABELs.
6353         (mark_target_live_regs): Likewise.
6354         * basic-block.h (force_nonfallthru_and_redirect): Declare.
6355         * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
6356         * config/alpha/alpha.c (alpha_tablejump_addr_vec,
6357         alpha_tablejump_best_label): Remove functions.
6358         * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
6359         alpha_tablejump_best_label): Remove declarations.
6360         * config/sh/sh.c (barrier_align, split_branches): Adjust for
6361         ret_rtx in JUMP_LABELs.
6362         * config/arm/arm.c (is_jump_table): Likewise.
6363
6364 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
6365
6366         * config/i386/predicates.md (pic_32bit_opreand): Do not define as
6367         special predicate.  Remove explicit mode checks.
6368
6369 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
6370
6371         * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
6372         DW_AT_data_member_location containing just DW_OP_plus_uconst.
6373
6374         PR debug/49871
6375         * dwarf2out.c (size_of_die, value_format, output_die): Use
6376         DW_FORM_udata instead of DW_FORM_data[48] for
6377         dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
6378
6379 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
6380
6381         * config/i386/i386.md (*tls_global_dynamic_64): Update
6382         length attribute.
6383
6384 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
6385
6386         PR target/47715
6387         * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
6388         tls_symbolic_operand check.  Update code sequence for TARGET_X32.
6389         (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
6390         (tls_dynamic_gnu2_64): Ditto.
6391         (*tls_dynamic_gnu2_lea_64): Ditto.
6392         (*tls_dynamic_gnu2_call_64): Ditto.
6393         (*tls_dynamic_gnu2_combine_64): Ditto.
6394
6395 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
6396
6397         * config.gcc: Set need_64bit_hwint to yes for x86 targets.
6398
6399 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
6400
6401         PR target/47364
6402         * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
6403
6404 2011-07-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6405
6406         * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
6407         before the core constraints. Adjust attributes.
6408         ("*thumb2_movdf_vfp"): Likewise.
6409
6410 2011-07-28  Kai Tietz  <ktietz@redhat.com>
6411
6412         * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
6413         (simplify_truth_ops_using_ranges): Likewise.
6414         (build_assert_expr_for): Likewise.
6415         (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
6416         and handle BIT_NOT_EXPR for truth-operation.
6417
6418 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
6419
6420         PR target/49313
6421         Undo r176835 from trunk
6422         2011-07-27  Georg-Johann Lay
6423
6424 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
6425
6426         PR target/49687
6427         * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
6428         Add _muluhisi3, _mulshisi3, _usmulhisi3.
6429         * config/avr/libgcc.S (__mulsi3): Rewrite.
6430         (__mulhisi3): Rewrite.
6431         (__umulhisi3): Rewrite.
6432         (__usmulhisi3): New.
6433         (__muluhisi3): New.
6434         (__mulshisi3): New.
6435         (__mulohisi3): New.
6436         (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
6437         declare.
6438         * config/avr/predicates.md (pseudo_register_operand): Rewrite.
6439         (pseudo_register_or_const_int_operand): New.
6440         (combine_pseudo_register_operand): New.
6441         (u16_operand): New.
6442         (s16_operand): New.
6443         (o16_operand): New.
6444         * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
6445         * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
6446         (any_extend, any_extend2): New code iterators.
6447         (extend_prefix): New code attribute.
6448         (mulsi3): Rewrite. Turn insn to expander.
6449         (mulhisi3): Ditto.
6450         (umulhisi3): Ditto.
6451         (usmulhisi3): New expander.
6452         (*mulsi3): New insn-and-split.
6453         (mulu<mode>si3): New insn-and-split.
6454         (muls<mode>si3): New insn-and-split.
6455         (mulohisi3): New insn-and-split.
6456         (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
6457         *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
6458         *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
6459         *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
6460         insn-and-split.
6461         (*mulsi3_call): Rewrite.
6462         (*mulhisi3_call): Rewrite.
6463         (*umulhisi3_call): Rewrite.
6464         (*usmulhisi3_call): New insn.
6465         (*muluhisi3_call): New insn.
6466         (*mulshisi3_call): New insn.
6467         (*mulohisi3_call): New insn.
6468         (extendqihi2): Use combine_pseudo_register_operand as predicate
6469         for operand 1.
6470         (extendqisi2): Ditto.
6471         (zero_extendqihi2): Ditto.
6472         (zero_extendqisi2): Ditto.
6473         (zero_extendhisi2): Ditto.
6474         (extendhisi2): Ditto. Don't early-clobber operand 0.
6475
6476 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
6477
6478         * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
6479
6480 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
6481
6482         PR tree-optimization/49471
6483         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
6484         iv only when the largest type is unsigned.  Do not call
6485         lang_hooks.types.type_for_size.
6486
6487 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
6488
6489         PR middle-end/45450
6490         * graphite-poly.c (apply_poly_transforms): Disable legality check
6491         after an openscop read.
6492
6493 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
6494
6495         PR middle-end/47691
6496         * graphite-clast-to-gimple.c (translate_clast_user): Update use of
6497         copy_bb_and_scalar_dependences.
6498         * sese.c (rename_uses): Do not call gcc_assert.  Set gloog_error.
6499         (graphite_copy_stmts_from_block): Update call to rename_uses.
6500         (copy_bb_and_scalar_dependences): Update call to
6501         graphite_copy_stmts_from_block.
6502         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
6503
6504 2011-07-27  Georg-Johann Lay  <avr@gjlay.de>
6505
6506         PR target/49313
6507         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
6508         (__ctzsi2): Result for 0 may be undefined.
6509         (__ctzhi2): Result for 0 may be undefined.
6510         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
6511         (__popcountsi2): Ditto. And don't clobber r26.
6512         (__popcountdi2): Ditto. And don't clobber r27.
6513         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
6514         (parityhi2): New expand.
6515         (paritysi2): New expand.
6516         (popcounthi2): New expand.
6517         (popcountsi2): New expand.
6518         (clzhi2): New expand.
6519         (clzsi2): New expand.
6520         (ctzhi2): New expand.
6521         (ctzsi2): New expand.
6522         (ffshi2): New expand.
6523         (ffssi2): New expand.
6524         (copysignsf3): New insn.
6525         (bswapsi2): New expand.
6526         (*parityhi2.libgcc): New insn.
6527         (*parityqihi2.libgcc): New insn.
6528         (*paritysihi2.libgcc): New insn.
6529         (*popcounthi2.libgcc): New insn.
6530         (*popcountsi2.libgcc): New insn.
6531         (*popcountqi2.libgcc): New insn.
6532         (*popcountqihi2.libgcc): New insn-and-split.
6533         (*clzhi2.libgcc): New insn.
6534         (*clzsihi2.libgcc): New insn.
6535         (*ctzhi2.libgcc): New insn.
6536         (*ctzsihi2.libgcc): New insn.
6537         (*ffshi2.libgcc): New insn.
6538         (*ffssihi2.libgcc): New insn.
6539         (*bswapsi2.libgcc): New insn.
6540
6541 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
6542
6543         * config/i386/i386.c (ix86_expand_move): Do not explicitly check
6544         the mode of symbolic_opreand RTXes.
6545
6546 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
6547
6548         * config/i386/predicates.md (x86_64_movabs_operand): Return false
6549         for pic_32bit_operand RTXes.
6550         * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
6551         in DImode.
6552
6553 2011-07-27  Kai Tietz  <ktietz@redhat.com>
6554
6555         * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
6556         for 32-bit, too.
6557         (ix86_handle_abi_attribute): Allow function attributes
6558         ms_abi/sysv_abi in 32-bit mode, too.
6559         * doc/extend.texi: Adjust attribute documentation.
6560
6561         * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
6562         expression handling.
6563         (and_var_with_comparison_1): Likewise.
6564
6565 2011-07-27  Aldy Hernandez  <aldyh@redhat.com>
6566
6567         * params.h (ALLOW_STORE_DATA_RACES): New.
6568         * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
6569         * Makefile.in (expr.o): Depend on PARAMS_H.
6570         * machmode.h (get_best_mode): Add argument.
6571         * fold-const.c (optimize_bit_field_compare): Add argument to
6572         get_best_mode.
6573         (fold_truthop): Same.
6574         * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
6575         * expr.c (emit_group_store): Same.
6576         (copy_blkmode_from_reg): Same.
6577         (write_complex_part): Same.
6578         (optimize_bitfield_assignment_op): Add argument.
6579         Add argument to get_best_mode.
6580         (get_bit_range): New.
6581         (expand_assignment): Calculate maxbits and pass it down accordingly.
6582         (store_field): New argument.
6583         (expand_expr_real_2): New argument to store_field.  Include params.h.
6584         * expr.h (store_bit_field): New argument.
6585         * stor-layout.c (get_best_mode): Restrict mode expansion by taking
6586         into account maxbits.
6587         * calls.c (store_unaligned_arguments_into_pseudos): New argument
6588         to store_bit_field.
6589         * expmed.c (store_bit_field_1): New argument.  Use it.
6590         (store_bit_field): Same.
6591         (store_fixed_bit_field): Same.
6592         (store_split_bit_field): Same.
6593         (extract_bit_field_1): Pass new argument to get_best_mode.
6594         (extract_bit_field): Same.
6595         * stmt.c (store_bit_field): Pass new argument to store_bit_field.
6596         * doc/invoke.texi: Document parameter allow-store-data-races.
6597
6598 2011-07-27  Jakub Jelinek  <jakub@redhat.com>
6599
6600         * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
6601
6602 2011-07-27  Kai Tietz  <ktietz@redhat.com>
6603
6604         * tree-vrp.c (extract_range_from_binary_expr): Remove
6605         TRUTH-binary cases and add new bitwise-cases.
6606         (extract_range_from_assignment): Likewise.
6607         (register_edge_assert_for_1): Likeiwise.
6608         (register_edge_assert_for): Likewise.
6609         (simplify_truth_ops_using_ranges): Likewise.
6610         (simplify_stmt_using_ranges): Likewise.
6611
6612 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
6613
6614         PR target/47372
6615         * config/i386/i386.c (ix86_delegitimize_address): Call
6616         simplify_gen_subreg for PIC with mode of x only if modes of
6617         x and orig_x are different.
6618
6619 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
6620
6621         * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
6622         to GC allocated copy of the string.
6623         (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
6624         before .debug_line, not after it.
6625
6626 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
6627
6628         PR middle-end/47046
6629         * tree-chrec.h (evolution_function_is_affine_p): Recursively call
6630         evolution_function_is_affine_p on CHREC_RIGHT.
6631
6632 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
6633
6634         * tree-data-ref.c (max_stmt_executions_tree): Do not call
6635         lang_hooks.types.type_for_size.
6636
6637 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
6638
6639         PR middle-end/47653
6640         * graphite-scop-detection.c (graphite_can_represent_loop): Discard
6641         loops using wrapping semantics.
6642
6643 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
6644
6645         PR middle-end/48805
6646         * tree-scalar-evolution.c (instantiate_scev_r): Return
6647         chrec_dont_know for ADDR_EXPR.
6648
6649 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
6650             H.J. Lu  <hongjiu.lu@intel.com>
6651
6652         PR target/47369
6653         PR target/49853
6654         * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
6655         if legitimize_tls_address returned operand in wrong mode. Allow
6656         SImode and DImode symbolic operand for PIC.  Call convert_to_mode
6657         if legitimize_pic_address returned operand in wrong mode.
6658
6659 2011-07-26  Martin Jambor  <mjambor@suse.cz>
6660
6661         * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
6662         return false for invariants.
6663
6664 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
6665
6666         * config/i386/i386.md (add->lea splitter): Implement using SWI
6667         mode iterator.  Change operand 2 predicate to <nonmemory_operand>.
6668         (add->lea zext splitter): Change operand 2 predicate to
6669         x86_64_nonmemory_operand.
6670
6671 2011-07-26  Richard Guenther  <rguenther@suse.de>
6672
6673         * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
6674         frequency makes everything hot.
6675
6676 2011-07-26  Richard Guenther  <rguenther@suse.de>
6677
6678         PR tree-optimization/49840
6679         * tree-vrp.c (range_fits_type_p): Properly handle full
6680         double-int precision.
6681
6682 2011-07-26  Martin Jambor  <mjambor@suse.cz>
6683
6684         PR bootstrap/49786
6685         * ipa-cp.c (update_profiling_info): Avoid overflow when updating
6686         counts.
6687         (update_specialized_profile): Likewise.
6688
6689 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
6690             H.J. Lu  <hongjiu.lu@intel.com>
6691
6692         PR target/47381
6693         PR target/49832
6694         PR target/49833
6695         * config/i386/i386.md (i): Change SImode attribute to "e".
6696         (g): Change SImode attribute to "rme".
6697         (di): Change SImode attribute to "nF".
6698         (general_operand): Change SImode attribute to x86_64_general_operand.
6699         (general_szext_operand): Change SImode attribute to
6700         x86_64_szext_general_operand.
6701         (immediate_operand): Change SImode attribute to
6702         x86_64_immediate_operand.
6703         (nonmemory_operand): Change SImode attribute to
6704         x86_64_nonmemory_operand.
6705         (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
6706         (*movsi_internal): Ditto.  Use "e" constraint in alternative 2.
6707         (*lea_1): Use SWI48 mode iterator.
6708         (*lea_1_zext): New insn pattern.
6709         (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
6710         (*bt<mode>): Ditto.
6711         (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
6712         Update operand constraints.
6713         (addsi_1_zext): Ditto.
6714         (*add<mode>2): Ditto.
6715         (*addsi_3_zext): Ditto.
6716         (*subsi_1_zext): Ditto.
6717         (*subsi_2_zext): Ditto.
6718         (*subsi_3_zext): Ditto.
6719         (*addsi3_carry_zext): Ditto.
6720         (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
6721         (*mulsi3_1_zext): Ditto.
6722         (*andsi_1): Ditto.
6723         (*andsi_1_zext): Ditto.
6724         (*andsi_2_zext): Ditto.
6725         (*<any_or:code>si_1_zext): Ditto.
6726         (*<any_or:code>si_2_zext): Ditto.
6727         (*test<mode>_1): Use <general_operand> predicate for operand 1.
6728         (*and<mode>_2): Ditto.
6729         (mov<mode>cc): Use  <general_operand> predicate for operands 1 and 2.
6730         (add->lea splitter): Check operand modes in insn constraint.  Extend
6731         operands less than SImode wide to SImode.
6732         (add->lea zext splitter): Do not extend input operands to DImode.
6733         (*lea_general_1): Handle only QImode and HImode operands.
6734         (*lea_general_2): Ditto.
6735         (*lea_general_3): Ditto.
6736         (*lea_general_1_zext): Remove.
6737         (*lea_general_2_zext): Ditto.
6738         (*lea_general_3_zext): Ditto.
6739         (*lea_general_4): Check operand modes in insn constraint.  Extend
6740         operands less than SImode wide to SImode.
6741         (ashift->lea splitter): Ditto.
6742         * config/i386/i386.c (ix86_print_operand_address): Print address
6743         registers with 'q' modifier on 64bit targets.
6744         * config/i386/predicates.md (pic_32bit_opreand): Define as special
6745         predicate.  Reject non-SI and non-DI modes.
6746
6747 2011-07-25  Andrew Pinski  <apinski@cavium.com>
6748
6749         PR tree-opt/49671
6750         * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
6751         TREE_THIS_NOTRAP into the inner most MEM_REF.
6752         Always copy TREE_THIS_VOLATILE.
6753         * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
6754         arguments are not volatile references.
6755
6756 2011-07-25  Richard Henderson  <rth@redhat.com>
6757
6758         * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
6759         * final.c (final_scan_insn): Don't test for it.
6760         (rest_of_clean_state): Likewise.
6761
6762 2011-07-25  Richard Henderson  <rth@redhat.com>
6763
6764         PR debug/49841
6765         * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
6766         (emit_frame_save): Likewise.
6767         (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
6768         insn onto a dummy blockage insn after the join label.
6769
6770 2011-07-25  Richard Henderson  <rth@redhat.com>
6771
6772         * dwarf2cfi.c (dw_trace_info): Add ID member.
6773         (get_trace_index): Remove.  Change users to use ID member.
6774         (before_next_cfi_note): New.
6775         (connect_traces): Remove unreachable traces before the main loop.
6776         Look across one trace and generate remember/restore_state if needed.
6777
6778 2011-07-25  Richard Henderson  <rth@redhat.com>
6779
6780         * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
6781
6782 2011-07-25  Joern Rennecke  <joern.rennecke@embecosm.com>
6783
6784         * genattr.c (write_upcase, gen_attr <enum definition writing>):
6785         Move to ...
6786         * genattr-common.c ... here.
6787         (main): Call gen_attr.
6788         * optc-gen.awk: Make generated program include insn-attr-common.h .
6789         * Makefile.in (oprions.o): Depend on insn-attr-common.h
6790
6791 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
6792
6793         * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
6794         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
6795         * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
6796         m32c_print_operand, m32c_print_operand_address): Remove.
6797         * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
6798         Change return type to bool. Change argument type to bool.
6799         (m32c_print_operand, m32c_print_operand_address): Make static.
6800         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
6801         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6802
6803 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6804
6805         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
6806         attributes): Document mmap.
6807
6808 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
6809
6810         * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
6811         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
6812         * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
6813         mmix_print_operand, mmix_print_operand_address): Remove.
6814         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
6815         Change return type to bool. Change argument type to bool.
6816         (mmix_print_operand, mmix_print_operand_address): Make static.
6817         (mmix_intval, mmix_output_condition): Change 'x' argument type
6818         to const_rtx.
6819         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
6820         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6821
6822 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
6823
6824         PR target/39386
6825         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
6826         shift counter for x << x and x >> x shifts.
6827
6828 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6829
6830         PR target/47124
6831         * config.gcc: Reject *-*-solaris2 configuration.
6832
6833 2011-07-25  Richard Sandiford  <richard.sandiford@linaro.org>
6834
6835         PR tree-optimization/49809
6836         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
6837         gimple_get_lhs instead of gimple_assign_lhs.
6838
6839 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6840
6841         * system.h [__cplusplus]: Wrap C function declarations in extern "C".
6842
6843 2011-07-25  Richard Guenther  <rguenther@suse.de>
6844
6845         PR tree-optimization/49822
6846         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
6847         more.  Make sure to preserve stmts with side-effects.  Properly
6848         handle virtual defs, follow a longer def chain.
6849
6850 2011-07-22  Romain Geissler  <romain.geissler@gmail.com>
6851
6852         PR plugins/45348
6853         PR plugins/48425
6854         PR plugins/46577
6855         * Makefile.in: Do not flatten c-family directory when installing
6856         plugin headers.
6857
6858 2011-07-25  Eric Botcazou  <ebotcazou@adacore.com>
6859
6860         * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
6861         original nodes if we are dealing with virtual clones.
6862
6863 2011-07-25  Bernd Schmidt  <bernds@codesourcery.com>
6864
6865         * common/config/c6x/c6x-common.c: New file.
6866
6867 2011-07-25  Roman Zhuykov  <zhroma@ispras.ru>
6868
6869         * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
6870
6871 2011-07-25  Richard Guenther  <rguenther@suse.de>
6872
6873         PR tree-optimization/49715
6874         * tree-vrp.c: Include expr.h and optabs.h.
6875         (range_fits_type_): New function.
6876         (simplify_float_conversion_using_ranges): Likewise.
6877         (simplify_stmt_using_ranges): Call it.
6878         * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
6879         * optabs.c (can_float_p): Export.
6880         * optabs.h (can_float_p): Declare.
6881
6882 2011-07-25  Richard Guenther  <rguenther@suse.de>
6883
6884         * tree-vrp.c (num_vr_values, values_propagated): New global vars.
6885         (get_value_range): For out-of-range SSA names or names created
6886         after propagation return a read-only varying range.
6887         (dump_all_value_ranges): Adjust.
6888         (vrp_initialize): Likewise.
6889         (vrp_finalize): Likewise.
6890
6891 2011-07-24  Richard Henderson  <rth@redhat.com>
6892
6893         PR debug/49831
6894         * dwarf2cfi.c (connect_traces): Allow unvisited traces.  Skip
6895         them entirely.
6896
6897 2011-07-24  Richard Henderson  <rth@redhat.com>
6898
6899         PR debug/49825
6900         * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
6901         (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
6902
6903 2011-07-24  Richard Henderson  <rth@redhat.com>
6904
6905         PR debug/49827
6906         * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
6907
6908 2011-07-24  Richard Henderson  <rth@redhat.com>
6909
6910         * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
6911         Zero args_size for abnormal edges.  Adjust all callers.
6912
6913 2011-07-24  Richard Henderson  <rth@redhat.com>
6914
6915         PR debug/49825
6916         * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
6917
6918 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
6919
6920         PR bootstrap/49835
6921         * collect2.c (demangle_flag): Removed.
6922
6923 2011-07-24  Sandra Loosemore  <sandra@codesourcery.com>
6924
6925         * configure.ac (demangler_in_ld): Default to yes.
6926         * configure: Regenerated.
6927         * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
6928         mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
6929         --no-demangle options straight through to ld.  When
6930         HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
6931         way that has the intended effect on Windows.
6932
6933 2011-07-23  Richard Henderson  <rth@redhat.com>
6934
6935         * dwarf2cfi.c: Include basic-block.h.
6936         (dw_label_info): Remove.
6937         (trace_work_list, trace_index): New.
6938         (remember_row, emit_cfa_remember): Remove.
6939         (dw_trace_info_hash, dw_trace_info_eq): New.
6940         (get_trace_index, get_trace_info): New.
6941         (save_point_p): New.
6942         (free_cfi_row): Remove.
6943         (add_cfi): Do not emit DW_CFA_remember_state.
6944         (cfa_row_equal_p): New.
6945         (barrier_args_size): Remove.
6946         (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
6947         (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
6948         (maybe_record_trace_start, create_trace_edges, scan_trace): New.
6949         (dwarf2out_cfi_begin_epilogue): Remove.
6950         (dwarf2out_frame_debug_restore_state): Remove.
6951         (connect_traces, create_pseudo_cfg): New.
6952         (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
6953         * Makefile.in (dwarf2cfi.o): Update.
6954
6955 2011-07-23  Richard Henderson  <rth@redhat.com>
6956
6957         * dwarf2cfi.c (dw_trace_info): New.
6958         (dw_label_info): New.
6959         (cie_return_save): New.
6960         (cur_trace): New.
6961         (queued_args_size): Rename from args_size.  Update all users.
6962         (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
6963         (def_cfa_1): Use cur_trace instead of cfa_*.
6964         (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
6965         (clobbers_queued_reg_save, reg_saved_in): Likewise.
6966         (dwarf2out_frame_debug_expr): Likewise.
6967         (create_cie_data): Split out from ...
6968         (execute_dwarf2_frame): ... here.  Initialize cur_trace.
6969
6970 2011-07-23  Richard Henderson  <rth@redhat.com>
6971
6972         * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
6973         Update all users to match.
6974         (execute_dwarf2_frame): Free reg_saved_in_data.
6975
6976 2011-07-23  Richard Henderson  <rth@redhat.com>
6977
6978         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
6979         (queued_reg_saves): Don't GTY.  Change to a VEC.
6980         (queue_reg_save): Update to match.
6981         (dwarf2out_flush_queued_reg_saves): Likewise.
6982         (clobbers_queued_reg_save): Likewise.
6983         (reg_saved_in): Likewise.
6984         (execute_dwarf2_frame): Free queued_reg_saves.
6985
6986 2011-07-23  Richard Henderson  <rth@redhat.com>
6987
6988         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
6989
6990 2011-07-23  Richard Henderson  <rth@redhat.com>
6991
6992         * dwarf2cfi.c (add_cfi_args_size): Split out from...
6993         (dwarf2out_args_size): ... here.
6994         (add_cfi_restore): Split out from ...
6995         (dwarf2out_frame_debug_cfa_restore): ... here.
6996         (def_cfa_0): Split out from ...
6997         (def_cfa_1): ... here.
6998         (cfi_oprnd_equal_p, cfi_equal_p): New.
6999         (change_cfi_row): New.
7000         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
7001         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
7002         (output_cfis): Remove.
7003         * dwarf2out.c (output_fde): Simplify output_cfi loop.
7004         (dwarf2out_switch_text_section): Don't call output_cfis.
7005         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
7006         * dwarf2out.h: Update decls.
7007         (enum dw_val_class): Add dw_val_class_none.
7008
7009 2011-07-23  Richard Henderson  <rth@redhat.com>
7010
7011         * dwarf2cfi.c (update_row_reg_save): New.
7012         (dwarf2out_frame_debug_cfa_expression): Use it.
7013         (dwarf2out_frame_debug_cfa_restore): Likewise.
7014         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
7015
7016 2011-07-23  Richard Henderson  <rth@redhat.com>
7017
7018         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
7019
7020 2011-07-23  Richard Henderson  <rth@redhat.com>
7021
7022         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
7023         (cie_cfi_row): New.
7024         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
7025         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
7026         (cur_row, remember_row): New.
7027         (def_cfa_1): Use cur_row instead of the old_* variables.
7028         (dwarf2out_frame_debug_restore_state): Similarly.
7029         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
7030         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
7031         (dwarf2out_frame_debug_adjust_cfa): Likewise.
7032         (dwarf2out_frame_debug_cfa_offset): Likewise.
7033         (dwarf2out_frame_debug_expr): Likewise.
7034         (execute_dwarf2_frame): Set up cur_row.
7035         * dwarf2out.h (struct cfa_loc): Mark for GTY.
7036
7037 2011-07-23  Richard Henderson  <rth@redhat.com>
7038
7039         * basic-block.h (EDGE_PRESERVE): New.
7040         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
7041         * bb-reorder.c: Include except.h.
7042         (fix_up_crossing_landing_pad): New.
7043         (find_rarely_executed_basic_blocks_and_crossing_edges): Place
7044         landing pads in the right partition.  Duplicate as necessary.
7045         (partition_hot_cold_basic_blocks): Fix up DF info after
7046         duplicating landing pads.
7047         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
7048         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
7049         is set properly.  Validate that EH edges are not CROSSING.
7050         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
7051         (dw2_build_landing_pads): ... here.
7052         (convert_to_eh_region_ranges): Remove code to fixup crossing
7053         landing pads.
7054         * except.h (expand_dw2_landing_pad_for_region): Declare.
7055         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
7056
7057 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
7058
7059         PR target/49816
7060         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
7061
7062 2011-07-22  Jason Merrill  <jason@redhat.com>
7063
7064         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
7065
7066 2011-07-22  Richard Henderson  <rth@redhat.com>
7067
7068         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
7069
7070 2011-07-22  Richard Henderson  <rth@redhat.com>
7071
7072         * jump.c (maybe_propagate_label_ref): Split out of...
7073         (mark_all_labels): ... here.  Do not attempt label_ref
7074         propagation while in cfglayout mode.
7075
7076 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
7077
7078         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
7079         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
7080         (dwarf_attr_name): Handle DW_AT_GNU_macros.
7081         (dwarf2out_define): If the vector is empty and
7082         lineno is 0, emit a dummy entry first.
7083         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
7084         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
7085         optimize_macinfo_range): New functions.
7086         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
7087         mergeable, optimize longer strings using
7088         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
7089         optimize longer sequences of define/undef ops from headers
7090         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
7091         emit a section headers.
7092         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
7093         and macinfo_section_label to DEBUG_MACRO_SECTION
7094         resp. DEBUG_MACRO_SECTION_LABEL.
7095         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
7096         instead of DW_AT_macro_info.
7097
7098         PR other/32998
7099         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
7100         options.
7101         * dwarf2out.c: Include opts.h.
7102         (dchar_p): New typedef.  Define heap VEC for it.
7103         (producer_string): New variable.
7104         (gen_producer_string): New function.
7105         (gen_compile_unit_die): Use it.
7106         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
7107         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
7108         * doc/invoke.texi: Document -grecord-gcc-switches and
7109         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
7110         to -frecord-gcc-switches description.
7111
7112 2011-07-22  Jason Merrill  <jason@redhat.com>
7113
7114         PR c++/30112
7115         * c-decl.c (c_linkage_bindings): Define.
7116
7117 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
7118
7119         PR debug/49815
7120         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
7121
7122 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
7123
7124         * config/i386/i386.c (ix86_option_override_internal): Disallow
7125         MS ABI in x32 mode.
7126         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
7127         only for TARGET_LP64.
7128         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
7129
7130 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
7131
7132         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
7133         avoid warnings when GCC is built with a C++ compiler.
7134
7135 2011-07-22  Martin Jambor  <mjambor@suse.cz>
7136
7137         PR lto/49796
7138         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
7139         if decl node is in another partition, call cgraph_get_node only once.
7140
7141 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
7142
7143         * config.gcc (x86_64-*-linux*): Set
7144         default_gnu_indirect_function to yes.
7145
7146 2011-07-22  Richard Guenther  <rguenther@suse.de>
7147
7148         PR tree-optimization/45819
7149         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
7150         preserve volatile and notrap flags.
7151
7152 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7153             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7154
7155         PR bootstrap/49794
7156         * configure.ac: Test AM_ICONV with CXX.
7157         * configure: Regenerate.
7158         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
7159
7160 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7161
7162         PR bootstrap/49797
7163         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
7164         (set_cloog_options): Use it.
7165
7166 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
7167
7168         PR c++/49756
7169         * gcc.c (main): Call stack_limit_increase (64MB).
7170         * toplev.c (toplev_main): Likewise.
7171
7172 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
7173
7174         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
7175         instead of force_reg.
7176
7177 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
7178
7179         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
7180         needed and use force_reg after convert.
7181         (ix86_expand_call): Likewise.
7182         (ix86_expand_special_args_builtin): Likewise.
7183         (ix86_expand_builtin): Likewise.
7184
7185 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
7186
7187         PR middle-end/47654
7188         PR middle-end/49649
7189         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
7190         in parameter.  Initialize v1 and v2 based on the values returned
7191         by clast_name_to_lb_ub.
7192         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
7193         values.
7194         (type_for_clast_bin): Same.
7195         (type_for_clast_expr): Same.
7196         (type_for_clast_eq): Update calls to type_for_clast_expr.
7197         (type_for_clast_for): Same.
7198         (build_iv_mapping): Same.
7199         * graphite-ppl.h (value_min): New.
7200
7201 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
7202
7203         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
7204         types whenever possible.
7205
7206 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
7207
7208         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
7209         and ub fields.
7210         (new_clast_name_index): Add lb and ub parameters.
7211         (free_clast_name_index): New.
7212         (clast_name_to_lb_ub): New.
7213         (save_clast_name_index): Add lb and ub parameters.
7214         (compute_bounds_for_param): New.
7215         (type_for_level): Removed.
7216         (type_for_clast_for): Removed level parameter.  Do not call
7217         type_for_level.
7218         (graphite_create_new_loop): Store the lb and ub for the clast_name
7219         of the iterator of the loop that has been generated.
7220         (graphite_create_new_loop_guard): Remove parameter level.
7221         (create_params_index): Store the lb and ub of each parameter.
7222         (gloog): Use free_clast_name_index.  Pass to create_params_index
7223         the current scop.
7224
7225 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
7226
7227         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
7228         (max_precision_type): Inline max_signed_precision_type.
7229         (type_for_clast_red): Use max_precision_type.
7230         (type_for_clast_bin): Same.
7231         (type_for_clast_for): Same.
7232
7233 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
7234
7235         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
7236         type_for_interval.
7237         (gcc_type_for_value): Renamed type_for_value.
7238         (gcc_type_for_clast_term): Renamed type_for_clast_term.
7239         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
7240         (gcc_type_for_clast_red): Renamed type_for_clast_red.
7241         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
7242         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
7243         (graphite_translate_clast_equation): Update calls.
7244         (compute_type_for_level): Renamed type_for_level.
7245         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
7246         (build_iv_mapping): Update calls.
7247         (graphite_create_new_loop_guard): Same.
7248
7249 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
7250
7251         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
7252         comment.
7253
7254 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
7255
7256         * graphite-clast-to-gimple.c (struct ivs_params): New.
7257         (clast_name_to_gcc): Use ivs_params to pass around parameters.
7258         (clast_to_gcc_expression): Same.
7259         (clast_to_gcc_expression_red): Same.
7260         (gcc_type_for_clast_term): Same.
7261         (gcc_type_for_clast_expr): Same.
7262         (gcc_type_for_clast_red): Same.
7263         (gcc_type_for_clast_bin): Same.
7264         (gcc_type_for_clast_eq): Same.
7265         (graphite_translate_clast_equation): Same.
7266         (graphite_create_guard_cond_expr): Same.
7267         (graphite_create_new_guard): Same.
7268         (graphite_create_new_loop): Same.
7269         (build_iv_mapping): Same.
7270         (translate_clast_user): Same.
7271         (graphite_create_new_loop_guard): Same.
7272         (translate_clast): Same.
7273         (translate_clast_for_loop): Same.
7274         (translate_clast_for): Same.
7275         (translate_clast_guard): Same.
7276         (initialize_cloog_names): Fix typo.
7277         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
7278
7279 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
7280
7281         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
7282         (new_clast_name_index): Add level parameter.
7283         (clast_name_to_level): New.
7284         (save_clast_name_index): Add level parameter.
7285         (newivs_to_depth_to_newiv): Removed.
7286         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
7287         (graphite_create_new_loop): Add level parameter.  Pass level to
7288         save_clast_name_index.
7289         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
7290         (create_params_index): Pass level to save_clast_name_index.
7291
7292 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
7293
7294         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
7295         recompute type, lb, and ub.  Get them from...
7296         (graphite_create_new_loop_guard): ...here.  Pass in parameter
7297         pointers to type, lb, and ub.
7298         (translate_clast_for_loop): Update function calls.
7299         (translate_clast_for): Same.
7300
7301 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
7302
7303         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
7304         psct_dynamic_dim.
7305         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
7306         (gcc_type_for_iv_of_clast_loop): Update use of level.
7307         (gloog): Start counting nesting level from 0.
7308         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
7309         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
7310         psct_dynamic_dim on level.
7311
7312 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
7313
7314         * config/i386/i386.c (ix86_legitimize_address): Convert to
7315         Pmode if needed.
7316
7317 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
7318
7319         * config/i386/i386.c (function_value_64): Always return pointers
7320         in Pmode.
7321         (ix86_promote_function_mode): New.
7322         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
7323
7324 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7325
7326         PR tree-optimization/49749
7327         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
7328         remove no-longer-used maxrank variable.
7329
7330 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
7331
7332         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
7333
7334 2011-07-21  Jason Merrill  <jason@redhat.com>
7335
7336         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
7337         * recog.h (struct insn_data_d): Check it instead of
7338         HAVE_DESIGNATED_INITIALIZERS.
7339         * genoutput.c (output_insn_data): Likewise.
7340
7341 2011-07-21  Richard Guenther  <rguenther@suse.de>
7342
7343         PR tree-optimization/49770
7344         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
7345         valueized any operand.  Renamed from ...
7346         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
7347         (valueize_shared_reference_ops_from_ref): Return whether we
7348         valueized any operand.
7349         (vn_reference_lookup): Only when we valueized any operand
7350         use the valueized reference for alias analysis.  Do not preserve
7351         the original reference tree in this case.
7352
7353 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
7354
7355         * config/i386/i386.c (ix86_decompose_address): Reject all but
7356         register operands and subregs of DImode hard registers in index.
7357
7358 2011-07-21  Kai Tietz  <ktietz@redhat.com>
7359
7360         * fold-const.c (fold_unary_loc): Preserve indirect
7361         comparison cast to none-boolean type.
7362         * tree-ssa.c (useless_type_conversion_p): Preserve cast
7363         from/to boolean-type.
7364         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
7365         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
7366         * tree-cfg.c (verify_gimple_comparison): Check result
7367         type of comparison expression.
7368         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
7369         of condition result and disallow type-cast sinking into comparison.
7370
7371 2011-07-21  Richard Guenther  <rguenther@suse.de>
7372
7373         * tree-ssa-forwprop.c (combine_conversions): Return whether
7374         we have to run cfg-cleanup.  Properly remove dead stmts.
7375         (ssa_forward_propagate_and_combine): Adjust.
7376
7377 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
7378
7379         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
7380
7381 2011-07-21  Kai Tietz  <ktietz@redhat.com>
7382
7383         * tree-ssa-propagate.c (substitute_and_fold): Use
7384         do_dce flag to deside, if BB's statements are scanned
7385         in last to first, or first to last order.
7386
7387 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
7388
7389         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
7390
7391 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
7392             Uros Bizjak  <ubizjak@gmail.com>
7393             Richard Henderson  <rth@redhat.com>
7394
7395         * config/i386/constraints.md (w): New.
7396
7397         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
7398         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
7399
7400         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
7401         instead of TARGET_64BIT.
7402
7403         * config/i386/i386.md (indirect_jump): Replace
7404         nonimmediate_operand with indirect_branch_operand.
7405         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
7406         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
7407         Convert operand 0 to Pmode for x32 if not PIC.
7408         (*tablejump_1): Replace nonimmediate_operand with
7409         indirect_branch_operand.  Replace constraint "m" with "w".
7410         (*call_vzeroupper): Replace constraint "m" with "w".
7411         (*call): Likewise.
7412         (*call_rex64_ms_sysv_vzeroupper): Likewise.
7413         (*call_rex64_ms_sysv): Likewise.
7414         (*call_value_vzeroupper): Likewise.
7415         (*call_value): Likewise.
7416         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
7417         (*call_value_rex64_ms_sysv): Likewise.
7418         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
7419
7420         * config/i386/predicates.md (indirect_branch_operand): New.
7421         (call_insn_operand): Support x32.
7422
7423 2011-07-20  Michael Eager  <eager@eagercon.com>
7424
7425         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
7426
7427 2011-07-20  Richard Henderson  <rth@redhat.com>
7428
7429         * cfg.c (dump_bb_info): Dump basic_block->flags.
7430         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
7431
7432 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
7433
7434         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
7435         of DImode hard registers in index.
7436         (ix86_legitimate_address_p): Allow subregs of base and index to span
7437         more than a word.  Assert that subregs of base and index satisfy
7438         register_no_elim_operand predicates.  Reject addresses where
7439         base and index have different modes.
7440
7441 2011-07-20  Robert Millan  <rmh@gnu.org>
7442
7443         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
7444
7445 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7446
7447         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
7448         removing now-unnecessary assignment.
7449
7450 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7451
7452         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
7453         memory address space to the type's address space.
7454
7455 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
7456
7457         PR target/36467
7458         PR target/49687
7459         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
7460         and expand appropriately if there is a CONST_INT in operand2.
7461         (usmulqihi3): New insn.
7462         (*sumulqihi3): New insn.
7463         (*osmulqihi3): New insn.
7464         (*oumulqihi3): New insn.
7465         (*muluqihi3.uconst): New insn_and_split.
7466         (*muluqihi3.sconst): New insn_and_split.
7467         (*mulsqihi3.sconst): New insn_and_split.
7468         (*mulsqihi3.uconst): New insn_and_split.
7469         (*mulsqihi3.oconst): New insn_and_split.
7470         (*ashifthi3.signx.const): New insn_and_split.
7471         (*ashifthi3.signx.const7): New insn_and_split.
7472         (*ashifthi3.zerox.const): New insn_and_split.
7473         (mulsqihi3): New insn.
7474         (muluqihi3): New insn.
7475         (muloqihi3): New insn.
7476         * config/avr/predicates.md (const_2_to_7_operand): New.
7477         (const_2_to_6_operand): New.
7478         (u8_operand): New.
7479         (s8_operand): New.
7480         (o8_operand): New.
7481         (s9_operand): New.
7482         (register_or_s9_operand): New.
7483
7484 2011-07-20  Kai Tietz  <ktietz@redhat.com>
7485
7486         * builtins.c (fold_builtin_expect): See through the cast
7487         from truthvalue_type_node to long.
7488
7489 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
7490
7491         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
7492         where we can use them from the standard and altivec instruction
7493         sets, instead of always using the 3 operand VSX forms that require
7494         the destination to overlap one of the inputs.
7495         (vsx_fms*): Ditto.
7496         (vsx_fnma*): Ditto.
7497         (vsx_fnms*): Ditto.
7498
7499         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
7500         for DF types.
7501         (fmsdf4_fpr): Ditto.
7502         (nfmadf4_fpr): Ditto.
7503         (nfmsdf4_fpr): Ditto.
7504
7505 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
7506
7507         * genrecog.c (make_insn_sequence): Correct position numbering
7508         when filtering out match_scratch and match_dup.
7509
7510 2011-07-20  Richard Guenther  <rguenther@suse.de>
7511
7512         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
7513         against already removed statements.
7514         (forward_propagate_into_comparison): Remove dead defining stmts.
7515         (forward_propagate_into_gimple_cond): Likewise.
7516         (forward_propagate_into_cond): Simplify.
7517         (ssa_forward_propagate_and_combine): Handle changed cfg from
7518         forward_propagate_into_comparison.
7519         * tree-ssa-phiopt.c (conditional_replacement): Use proper
7520         locations for newly built statements.
7521
7522 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
7523
7524         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
7525
7526 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7527
7528         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
7529         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
7530
7531 2011-07-20  Richard Guenther  <rguenther@suse.de>
7532
7533         PR middle-end/18908
7534         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
7535         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
7536         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
7537
7538 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
7539
7540         * config/frv/frv.c (frv_register_move_cost): Define explicitly
7541         costs for subclasses of GR_REGS.
7542
7543 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
7544
7545         PR target/49780
7546         * config/i386/predicates.md (no_seg_addres_operand): No more special.
7547         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
7548         of DImode hard registers in base.
7549         (ix86_legitimate_address_p): Allow SImode and DImode base and index
7550         registers.
7551
7552 2011-07-20  Richard Guenther  <rguenther@suse.de>
7553
7554         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
7555         (unify_nodes): Deal with that.
7556         (solve_graph): Likewise.
7557
7558 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
7559
7560         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
7561         canonicalize left operand from ZERO_EXTEND to AND.
7562
7563 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
7564
7565         * target.def (class_max_nregs): New hook.
7566         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
7567         * doc/tm.texi: Regenerate.
7568         * targhooks.c (default_class_max_nregs): New function.
7569         * targhooks.h (default_class_max_nregs): Declare.
7570         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
7571         x_ira_reg_class_min_nregs arrays to unsigned char.
7572         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
7573         hook instead of CLASS_MAX_NREGS macro.
7574         * reginfo.c (restore_register_info): Ditto.
7575         * ira-conflicts.c (process_regs_for_copy): Use
7576         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
7577         Change type rclass and aclass vars to reg_class_t.
7578         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
7579         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
7580         reg_class_t.
7581         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
7582         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
7583
7584         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
7585         * config/i386/i386.c (ix86_class_max_nregs): New function.
7586         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
7587         instead of CLASS_MAX_NREGS macro.
7588         (TARGET_CLASS_MAX_NREGS): Define.
7589         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
7590         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
7591         * config/avr/avr.c (class_max_nregs): Remove function.
7592         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
7593         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
7594         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
7595         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
7596         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
7597         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
7598         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
7599         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
7600         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
7601         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
7602         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
7603         * config/score/score.h (CLASS_MAX_NREGS): Remove.
7604         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
7605         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
7606         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
7607
7608 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
7609
7610         * cif-code.def (OVERWRITABLE): Fix typo and move around.
7611         (TARGET_OPTIMIZATION_MISMATCH): Delete.
7612         (EH_PERSONALITY): Fix typo.
7613         (NON_CALL_EXCEPTIONS): Fix message.
7614         (OPTIMIZATION_MISMATCH): Adjust message.
7615         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
7616
7617 2011-07-19  Ian Lance Taylor  <iant@google.com>
7618
7619         * doc/install.texi (Configuration): Document
7620         --enable-build-poststage1-with-cxx.
7621
7622 2011-07-19  Robert Millan  <rmh@gnu.org>
7623
7624         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
7625         (GLIBC_DYNAMIC_LINKER): Remove.
7626
7627         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
7628         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
7629         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
7630         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
7631         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
7632         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
7633
7634         * config/mips/linux.h: Remove everything except for ...
7635         (GLIBC_DYNAMIC_LINKER): ... this macro.
7636
7637         * config/mips/linux64.h: Remove everything except for ...
7638         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
7639         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
7640         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
7641         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
7642         (GNU_USER_LINK_EMULATIONN32): New macros.
7643
7644         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
7645         Use the new headers.
7646
7647 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
7648
7649         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
7650         Add offset_known_p and size_known_p fields.
7651         (MEM_OFFSET_KNOWN_P): Update accordingly.
7652         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
7653         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
7654         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
7655         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
7656         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
7657         (init_emit_regs): Likewise.
7658
7659 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
7660
7661         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
7662         (MEM_OFFSET): Change from returning an rtx to returning a
7663         HOST_WIDE_INT.
7664         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
7665         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
7666         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
7667         (clear_mem_offset): Declare.
7668         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
7669         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
7670         MEM_OFFSET to get a HOST_WIDE_INT offset.
7671         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
7672         (adjust_offset_for_component_ref): Take a bool "known_p"
7673         parameter and a HOST_WIDE_INT "offset" parameter.
7674         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
7675         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
7676         than an rtx.  Use clear_mem_offset to clear the offset.
7677         * cfgcleanup.c (merge_memattrs): Likewise.
7678         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
7679         * function.c (assign_parm_find_stack_rtl): Likewise.
7680         (assign_parm_setup_stack): Likewise.
7681         * print-rtl.c (print_rtx): Likewise.
7682         * reload.c (find_reloads_subreg_address): Likewise.
7683         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
7684         * var-tracking.c (INT_MEM_OFFSET): Likewise.
7685         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
7686         (get_mem_align_offset): Likewise.
7687         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
7688         (clear_mem_offset): New function.
7689         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
7690         offset rather than an rtx.  Assume both the expressio and offset
7691         are available.
7692         (r10k_needs_protection_p_1): Update accordingly, checking the
7693         expression and offset availability here instead.
7694
7695 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
7696
7697         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
7698         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
7699         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
7700         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
7701         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
7702         (clear_mem_size): Declare.
7703         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
7704         (clear_mem_size): New function.
7705         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
7706         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
7707         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
7708         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
7709         to clear the size.
7710         (nonoverlapping_memrefs_p): Likewise.
7711         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
7712         (expand_builtin_init_trampoline): Likewise.
7713         * calls.c (compute_argument_addresses): Likewise.
7714         * cfgcleanup.c (merge_memattrs): Likewise.
7715         * dce.c (find_call_stack_args): Likewise.
7716         * dse.c (record_store, scan_insn): Likewise.
7717         * dwarf2out.c (dw_sra_loc_expr): Likewise.
7718         * expr.c (emit_block_move_hints): Likewise.
7719         * function.c (assign_parm_find_stack_rtl): Likewise.
7720         * print-rtl.c (print_rtx): Likewise.
7721         * reload.c (find_reloads_subreg_address): Likewise.
7722         * rtlanal.c (may_trap_p_1): Likewise.
7723         * var-tracking.c (track_expr_p): Likewise.
7724         * varasm.c (assemble_trampoline_template): Likewise.
7725         * config/arm/arm.c (arm_print_operand): Likewise.
7726         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
7727         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
7728         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
7729         (expand_constant_setmem_prologue): Likewise.
7730         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
7731         * config/rs6000/rs6000.c (expand_block_move): Likewise.
7732         (adjacent_mem_locations): Likewise.
7733         * config/s390/s390.c (s390_expand_setmem): Likewise.
7734         (s390_expand_insv): Likewise.
7735         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
7736         (*extendqi<mode>2_short_displ): Likewise.
7737         * config/sh/sh.c (expand_block_move): Likewise.
7738         * config/sh/sh.md (extv, extzv): Likewise.
7739
7740 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
7741
7742         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
7743         (mem_attrs_htab_eq): ...here.
7744         (find_mem_attrs): Replace with...
7745         (set_mem_attrs): ...this function.  Take a mem_attrs structure
7746         rather than individual fields.
7747         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
7748         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
7749         (set_mem_size, change_address, adjust_address_1, offset_address)
7750         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
7751         Update accordingly.
7752
7753 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
7754
7755         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
7756         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
7757         Provide a dummy definition of MEM_ADDR_SPACE for generators.
7758         (target_rtl): Add x_mode_mem_attrs.
7759         (mode_mem_attrs): New macro.
7760         (get_mem_attrs): New function.
7761         * emit-rtl.c (get_mem_attrs): Rename to...
7762         (find_mem_attrs): ...this.
7763         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
7764         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
7765         (set_mem_size, change_address, adjust_address_1, offset_address)
7766         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
7767         Update accordingly.
7768         (init_emit_regs): Initialize mode_mem_attrs.
7769
7770 2011-07-19  Richard Guenther  <rguenther@suse.de>
7771
7772         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
7773         TRUTH_*_EXPR handling.
7774         * tree-ssa-operands.c (get_expr_operands): Likewise.
7775         * tree-ssa-pre.c (fully_constant_expression): Likewise.
7776         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
7777         Likewise.
7778         (is_and_or_or): Likewise.
7779         (is_norm_cond_subset_of): Likewise.
7780
7781 2011-07-19  Richard Guenther  <rguenther@suse.de>
7782
7783         * tree.h (fold_build_pointer_plus_loc): New helper function.
7784         (fold_build_pointer_plus_hwi_loc): Likewise.
7785         (fold_build_pointer_plus): Define.
7786         (fold_build_pointer_plus_hwi): Likewise.
7787         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
7788         (fold_builtin_memory_op): Likewise.
7789         (fold_builtin_stpcpy): Likewise.
7790         (fold_builtin_memchr): Likewise.
7791         (fold_builtin_strstr): Likewise.
7792         (fold_builtin_strchr): Likewise.
7793         (fold_builtin_strrchr): Likewise.
7794         (fold_builtin_strpbrk): Likewise.
7795         (fold_builtin_strcat): Likewise.
7796         (expand_builtin_memory_chk): Likewise.
7797         (fold_builtin_memory_chk): Likewise.
7798         * c-typeck.c (build_unary_op): Likewise.
7799         * cgraphunit.c (thunk_adjust): Likewise.
7800         * fold-const.c (build_range_check): Likewise.
7801         (fold_binary_loc): Likewise.
7802         * omp-low.c (extract_omp_for_data): Likewise.
7803         (expand_omp_for_generic): Likewise.
7804         (expand_omp_for_static_nochunk): Likewise.
7805         (expand_omp_for_static_chunk): Likewise.
7806         * tree-affine.c (add_elt_to_tree): Likewise.
7807         * tree-data-ref.c (split_constant_offset_1): Likewise.
7808         * tree-loop-distribution.c (generate_memset_zero): Likewise.
7809         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
7810         * tree-predcom.c (ref_at_iteration): Likewise.
7811         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
7812         (add_to_parts): Likewise.
7813         (create_mem_ref): Likewise.
7814         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
7815         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
7816         (number_of_iterations_le): Likewise.
7817         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
7818         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7819         (vect_create_addr_base_for_vector_ref): Likewise.
7820         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
7821         (vect_create_cond_for_alias_checks): Likewise.
7822         * tree-vrp.c (extract_range_from_assert): Likewise.
7823         * config/alpha/alpha.c (alpha_va_start): Likewise.
7824         (alpha_gimplify_va_arg_1): Likewise.
7825         * config/i386/i386.c (ix86_va_start): Likewise.
7826         (ix86_gimplify_va_arg): Likewise.
7827         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
7828         * config/mep/mep.c (mep_expand_va_start): Likewise.
7829         (mep_gimplify_va_arg_expr): Likewise.
7830         * config/mips/mips.c (mips_va_start): Likewise.
7831         (mips_gimplify_va_arg_expr): Likewise.
7832         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
7833         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
7834         (rs6000_gimplify_va_arg): Likewise.
7835         * config/s390/s390.c (s390_va_start): Likewise.
7836         (s390_gimplify_va_arg): Likewise.
7837         * config/sh/sh.c (sh_va_start): Likewise.
7838         (sh_gimplify_va_arg_expr): Likewise.
7839         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
7840         * config/spu/spu.c (spu_va_start): Likewise.
7841         (spu_gimplify_va_arg_expr): Likewise.
7842         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
7843         Likewise.
7844         (xstormy16_gimplify_va_arg_expr): Likewise.
7845         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
7846         (xtensa_gimplify_va_arg_expr): Likewise.
7847
7848 2011-07-19  Richard Guenther  <rguenther@suse.de>
7849
7850         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
7851         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
7852         handling.
7853
7854         PR middle-end/18908
7855         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
7856         result of BIT_*_EXPR to bitfield precision.
7857
7858 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
7859
7860         PR tree-optimization/49742
7861         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
7862         as a potential write.
7863
7864 2011-07-19  Richard Guenther  <rguenther@suse.de>
7865
7866         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
7867         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
7868         (forward_propagate_comparison): Simplify, remove obsolete code.
7869
7870 2011-07-19  Richard Guenther  <rguenther@suse.de>
7871
7872         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
7873         BIT_XOR_EXPR, same as the RTL expander does.
7874         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
7875         (verify_gimple_assign_unary): Likewise.
7876         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
7877         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
7878         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
7879
7880 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
7881
7882         PR tree-optimization/49768
7883         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
7884         if offset is smaller than bitoffset, but offset+size is bigger
7885         than bitoffset.
7886
7887 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
7888
7889         PR tree-optimization/49771
7890         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
7891         zero step, set segment length to the size of the data-ref's type.
7892
7893 2011-07-18  Martin Jambor  <mjambor@suse.cz>
7894
7895         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
7896         comments.
7897         (ipcp_values_pool): Declare.
7898         (ipcp_sources_pool): Likewise.
7899         (ipcp_lattice): Changed to forward declaration.
7900         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
7901         cannot_devirtualize.
7902         (ipa_node_params): New fields descriptors, lattices, known_vals,
7903         clone_for_all_contexts and node dead, removed fields params and
7904         count_scale.
7905         (ipa_set_param_count): Removed.
7906         (ipa_get_param_count): Made to work with descriptors vector.
7907         (ipa_get_param): Updated.
7908         (ipa_param_cannot_devirtualize_p): Removed.
7909         (ipa_param_types_vec_empty): Likewise.
7910         (ipa_set_param_used): New function.
7911         (ipa_get_param_used): Updated to use descriptors vector.
7912         (ipa_func_list): Removed.
7913         (ipa_init_func_list): Removed declaration.
7914         (ipa_push_func_to_list_1): Likewise.
7915         (ipa_pop_func_from_list): Likewise.
7916         (ipa_push_func_to_list): Removed.
7917         (ipa_lattice_from_jfunc): Remove declaration.
7918         (ipa_get_jf_pass_through_result): Declare.
7919         (ipa_get_jf_ancestor_result): Likewise.
7920         (ipa_value_from_jfunc): Likewise.
7921         (ipa_get_lattice): Update.
7922         (ipa_lat_is_single_const): New function.
7923         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
7924         (ipa_init_func_list): Likewise.
7925         (ipa_pop_func_from_list): Likewise.
7926         (ipa_get_param_decl_index): Fix coding style.
7927         (count_formal_params): Removed.
7928         (count_formal_params_1): Renamed to count_formal_params.
7929         (ipa_populate_param_decls): Update to use descriptors vector.
7930         (ipa_initialize_node_params): Likewise.
7931         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
7932         (ipa_analyze_params_uses): Likewise.
7933         (ipa_free_node_params_substructures): Likewise and free also lattices
7934         and known values.
7935         (duplicate_array): Removed.
7936         (ipa_edge_duplication_hook): Add the new edge to the list of edge
7937         clones.
7938         (ipa_node_duplication_hook): Update to use new lattices.
7939         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
7940         (ipa_free_all_structures_after_iinln): Likewise.
7941         (ipa_write_node_info): Update to use new lattices.
7942         (ipa_read_node_info): Likewise.
7943         (ipa_get_jf_pass_through_result): New function.
7944         (ipa_get_jf_ancestor_result): Likewise.
7945         (ipa_value_from_jfunc): Likewise.
7946         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
7947         * ipa-cp.c: Reimplemented.
7948         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
7949         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
7950         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
7951         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
7952         * doc/invoke.texi (devirt-type-list-size): Removed description.
7953         (ipa-cp-value-list-size): Added description.
7954
7955 2011-07-18  Richard Henderson  <rth@redhat.com>
7956
7957         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
7958         before calling create_basic_block.
7959
7960 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
7961
7962         PR middle-end/49675
7963         * tree.c (build_common_builtin_nodes): Register
7964         __builtin_return_address, __cyg_profile_func_enter
7965         and __cyg_profile_func_exit.
7966
7967 2011-07-18  Richard Henderson  <rth@redhat.com>
7968
7969         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
7970         (add_labels_and_missing_jumps): ... here.
7971         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
7972
7973 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
7974
7975         PR target/47744
7976         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
7977         of DImode hard registers in PLUS address chains.
7978
7979 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7980
7981         PR bootstrap/49769
7982         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
7983         (alpha*-*-freebsd*): Likewise.
7984         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
7985         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
7986         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
7987         crtprec80.o, crtfastmath.o to extra_parts for all targets.
7988         (ia64*-*-elf*): Remove extra_parts.
7989         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
7990         (sparc64-*-linux*): Likewise.
7991         (sparc64-*-freebsd*): Likewise.
7992
7993         Revert:
7994         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
7995         (ia64*-*-linux*): Likewise.
7996         (mips64*-*-linux*): Likewise.
7997         (mips*-*-linux*): Likewise.
7998
7999 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
8000
8001         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
8002
8003 2011-07-18  Richard Guenther  <rguenther@suse.de>
8004
8005         * gimplify.c (gimplify_expr): Use input_location, not saved_location
8006         when building new trees.
8007
8008 2011-07-18  Richard Guenther  <rguenther@suse.de>
8009
8010         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
8011         expansion result to bitfield precision if required.
8012
8013 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8014
8015         * config.gcc (i[3456x]86-*-netware*): Remove.
8016
8017         * gthr-nks.h: Remove.
8018         * configure.ac (enable_threads): Remove nks.
8019         * configure: Regenerate.
8020
8021         * config/i386/i386.c (ix86_encode_section_info): Remove netware
8022         reference.
8023         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
8024         <netware.h> reference.
8025
8026         * config/i386/netware-libgcc.c,
8027         gcc/config/i386/netware-libgcc.def,
8028         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
8029         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
8030         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
8031         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
8032
8033         * doc/extend.texi (Function Attributes,
8034         callee_pop_aggregate_return): Remove i?86-netware reference.
8035         * doc/install.texi (Configuration, --enable-threads): Remove nks.
8036
8037 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8038
8039         PR target/49746
8040         Revert:
8041         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8042
8043         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
8044         patterns.
8045
8046 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
8047
8048         PR middle-end/49732
8049         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
8050
8051 2011-07-16  Matthias Klose  <doko@ubuntu.com>
8052
8053         * doc/install.texi: Document --enable-static-libjava.
8054
8055 2011-07-15  Richard Henderson  <rth@redhat.com>
8056
8057         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
8058         Replace all three arguments by returning a VEC of edges.
8059         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
8060         pointers and counts.
8061         (fix_edges_for_rarely_executed_code): Merge ...
8062         (rest_of_handle_partition_blocks): ... into...
8063         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
8064         any work was performed.
8065         (pass_partition_blocks): Clear todo_flags_finish.
8066
8067 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
8068             Jakub Jelinek  <jakub@redhat.com>
8069             Jonathan Wakely  <jwakely.gcc@gmail.com>
8070
8071         PR libstdc++/49745
8072         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
8073         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
8074
8075 2011-07-15  Jason Merrill  <jason@redhat.com>
8076
8077         PR testsuite/49741
8078         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
8079         rather than --tool_opts.
8080
8081 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
8082
8083         * doc/plugins.texi (Building GCC plugins): gengtype needs its
8084         corresponding gtype.state.
8085
8086 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8087
8088         PR target/49723
8089         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
8090
8091 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
8092
8093         PR target/48220
8094         * doc/md.texi (Standard Names): Document window_save.
8095         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
8096         expand_debug_expr and expand_debug_source_expr.  If the target has
8097         a window_save instruction, adjust the ENTRY_VALUE_EXP.
8098         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
8099         SSA_NAME_VAR is a parameter.
8100         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
8101         * var-tracking.c (parm_reg_t): New type and associated vector type.
8102         (windowed_parm_regs): New variable.
8103         (adjust_insn): If the target has a window_save instruction and this
8104         is the instruction, make its effect on parameter registers explicit.
8105         (next_non_note_insn_var_location): New function.
8106         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
8107         (vt_add_function_parameter): If the target has a window_save insn,
8108         adjust the incoming RTL and record that in windowed_parm_regs.
8109         (vt_finalize): Free windowed_parm_regs.
8110
8111 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
8112
8113         * doc/invoke.texi (C6X Options): New section.
8114         * doc/md.texi (TI C6X family): New section.
8115         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
8116         tic6x-*-uclinux.
8117         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
8118         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
8119         Provide C6X definitions.
8120         * config/c6x/c6x.md: New file.
8121         * config/c6x/constraints.md: New file.
8122         * config/c6x/predicates.md: New file.
8123         * config/c6x/c6x-sched.md.in: New file.
8124         * config/c6x/c6x-sched.md: New file.
8125         * config/c6x/gensched.sh: New file.
8126         * config/c6x/c6x-mult.md.in: New file.
8127         * config/c6x/genmult.sh: New file.
8128         * config/c6x/c6x-mult.md: New file.
8129         * config/c6x/sync.md: New file.
8130         * config/c6x/c6x-protos.h: New file.
8131         * config/c6x/sfp-machine.h: New file.
8132         * config/c6x/c6x.c: New file.
8133         * config/c6x/c6x.h: New file.
8134         * config/c6x/crti.s: New file.
8135         * config/c6x/crtn.s: New file.
8136         * config/c6x/lib1funcs.asm: New file.
8137         * config/c6x/c6x-modes.def: New file.
8138         * config/c6x/genopt.sh: New file.
8139         * config/c6x/c6x.opt: New file.
8140         * config/c6x/c6x-tables.opt: New file.
8141         * config/c6x/c6x-opts.h: New file.
8142         * config/c6x/c6x-isas.def: New file.
8143         * config/c6x/elf.h: New file.
8144         * config/c6x/elf-common.h: New file.
8145         * config/c6x/uclinux-elf.h: New file.
8146         * config/c6x/t-c6x: New file.
8147         * config/c6x/t-c6x-elf: New file.
8148         * config/c6x/t-c6x-uclinux: New file.
8149         * config/c6x/t-c6x-softfp: New file.
8150         * config/c6x/gtd.c: New file.
8151         * config/c6x/gtf.c: New file.
8152         * config/c6x/ltd.c: New file.
8153         * config/c6x/ltf.c: New file.
8154         * config/c6x/ged.c: New file.
8155         * config/c6x/gef.c: New file.
8156         * config/c6x/led.c: New file.
8157         * config/c6x/lef.c: New file.
8158         * config/c6x/eqd.c: New file.
8159         * config/c6x/eqf.c: New file.
8160         * config/c6x/libgcc-c6xeabi.ver: New file.
8161
8162         Revert
8163         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
8164         PR rtl-optimization/11320
8165         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
8166         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
8167         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
8168         current_sched_info->compute_jump_reg_dependencies. Record which
8169         registers are used and which registers are set by the jump.
8170         Clear deps->reg_conditional_sets after a barrier.
8171         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
8172         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
8173         (init_deps): Initialize reg_conditional_sets.
8174         (free_deps): Clear reg_conditional_sets.
8175         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
8176         Mark registers live on entry of the fallthrough block and conditionally
8177         set as set by the jump. Mark registers live on entry of non-fallthrough
8178         blocks as used by the jump.
8179         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
8180         Mark new parameters as unused.
8181
8182 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
8183
8184         PR tree-opt/49309
8185         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
8186         Use fold_build2_loc instead of build2.
8187         Use the correct type for the new tree.
8188
8189 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
8190
8191         PR rtl-optimization/11320
8192         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
8193         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
8194
8195 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
8196
8197         PR target/49487
8198         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
8199         of REG.
8200         (*rotw<mode>): Use const_int_operand for operand2.
8201         Use match_scatch for operand3.
8202         (*rotb<mode>): Ditto
8203         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
8204
8205 2011-07-14  Richard Guenther  <rguenther@suse.de>
8206
8207         PR tree-optimization/49651
8208         * tree-ssa-structalias.c (get_constraint_for_1): Properly
8209         handle dereferences with subvariables.
8210
8211 2011-07-14  Richard Guenther  <rguenther@suse.de>
8212
8213         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
8214         (fold_stmt_1): Do it here directly on gimple and as a first thing.
8215
8216 2011-07-14  Richard Guenther  <rguenther@suse.de>
8217
8218         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
8219         not bool_var when folding bool_var != 1 or bool_var == 0.
8220
8221 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
8222
8223         * haifa-sched.c (schedule_insns): Remove outdated comment.
8224         (schedule_block): When computing a known value for TODO_SPEC,
8225         just set it rather than using logical operations.
8226         (try_ready): Likewise.  Use a local variable rather than a
8227         pointer to TODO_SPEC.  Reorder an if statement to move the
8228         easy case to the then block.
8229         * sched-deps.c (dep_spec_p): New static function.
8230         (update_dep): Use it to decide whether to call
8231         change_spec_dep_to_hard.
8232         (get_back_and_forw_lists): Use it.
8233         (sd_resolve_dep): Likewise.
8234         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
8235         (haifa_note_mem_dep): Likewise.
8236         (check_dep): Likewise.
8237         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
8238         (sched_free_deps): Free in two passes.
8239
8240 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
8241
8242         PR middle-end/49736
8243         * expr.c (all_zeros_p): Undo bogus part of last change.
8244
8245 2011-07-14  Matthias Klose <doko@ubuntu.com>
8246
8247         * doc/extend.texi (optimize attribute): Fix typo.
8248
8249 2011-07-14  Richard Guenther  <rguenther@suse.de>
8250
8251         * gimplify.c (gimplify_expr): Only do required conversions.
8252
8253 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
8254
8255         PR target/43746
8256         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
8257         i.e. use default_elf_select_section.
8258         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
8259         (READONLY_DATA_SECTION_ASM_OP): Remove.
8260         (TARGET_ASM_NAMED_SECTION): Move from here...
8261         * config/avr/avr.c: ...to here.
8262         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
8263         (avr_asm_named_section): Make static.
8264
8265 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8266
8267         PR bootstrap/49739
8268         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
8269         and crtfastmath.o for Linux/x86.
8270
8271 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
8272
8273         * haifa-sched.c: Include "hashtab.h"
8274         (sched_no_dce): New global variable.
8275         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
8276         SHADOW_P): New macros.
8277         (last_clock_var, cycle_issued_insns): Move declarations.
8278         (must_backtrack): New static variable.
8279         (struct delay_pair): New structure.
8280         (delay_htab, delay_htab_i2): New static variables.
8281         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
8282         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
8283         functions.
8284         (dep_cost_1): If delay pairs exist, try to look up the insns and
8285         use the correct pair delay if we find them.
8286         (rank-for_schedule): Tweak priority for insns that must be scheduled
8287         soon to avoid backtracking.
8288         (queue_insn): Detect conditions which force backtracking.
8289         (ready_add): Likewise.
8290         (struct sched_block_state): Add member shadows_only_p.
8291         (struct haifa_save_data): New structure.
8292         (backtrack_queue): New static variable.
8293         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
8294         unschedule_insns_until, restore_last_backtrack_point,
8295         free_topmost_backtrack_point, free_backtrack_queue,
8296         estimate_insn_tick, estimate_shadow_tick): New functions.
8297         (prune_ready_list): New arg shadows_only_p.  All callers changed.
8298         If true, remove everything that isn't SHADOW_P.  Look up delay
8299         pairs and estimate ticks to avoid scheduling the first insn too early.
8300         (verify_shadows): New function.
8301         (schedule_block): Add machinery to enable backtracking.
8302         (sched_init): Take sched_no_dce into account when setting
8303         DF_LR_RUN_DCE.
8304         (free_delay_pairs): New function.
8305         (init_h_i_d): Initialize INSN_EXACT_TICK.
8306         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
8307         * sched-deps.c (sd_unresolve_dep): New function.
8308         * sched-int. (struct haifa_sched_info): New fields save_state
8309         and restore_state.
8310         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
8311         feeds_backtrack_insn and shadow_p.
8312         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
8313         (sched_no_dce): Declare variable.
8314         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
8315         sd_unresolve_dep): Declare functions.
8316         * modulo-sched.c (sms_sched_info): Clear the two new fields.
8317         * sched-rgn.c (rgn_const_sched_info): Likewise.
8318         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8319         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
8320         (ebb_sched_info): Add them for the two new fields.
8321         (add_deps_for_risky_insns): Call add_delay_dependencies.
8322
8323 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
8324
8325         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
8326         Rename -mr11.
8327         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
8328         (rs6000_call_indirect_aix): Ditto.
8329         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
8330         (call_indirect_aix<ptrsize>_internal): Ditto.
8331         (call_indirect_aix<ptrsize>_nor11): Ditto.
8332         (call_indirect_aix<ptrsize>_internal2): Ditto.
8333         (call_value_indirect_aix<ptrsize>): Ditto.
8334         (call_value_indirect_aix<ptrsize>_internal): Ditto.
8335         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
8336         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
8337         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
8338
8339 2011-07-13  Jason Merrill  <jason@redhat.com>
8340
8341         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
8342
8343 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8344
8345         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
8346         * config/spu/spu.md ("clrsb<mode>2"): New expander.
8347
8348 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
8349
8350         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
8351         * configure: Regenerate.
8352
8353 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8354
8355         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
8356         (asm_file_start): Remove.
8357         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
8358         free_bb_for_insn around code that modifies insns before
8359         restarting df analysis.
8360
8361 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8362
8363         PR target/49541
8364         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
8365         (LINK_SPEC): ... here.
8366
8367 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
8368
8369         * haifa-sched.c (struct sched_block_state): New.
8370         (schedule_block): Move some local variables into such a structure.
8371
8372 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8373
8374         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
8375         * config/i386/t-crtpc: Remove.
8376         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
8377         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
8378         tmake_file.
8379         (x86_64-*-darwin*): Likewise.
8380         (i[34567]86-*-linux*): Likewise.
8381         (x86_64-*-linux*): Likewise.
8382
8383         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
8384         Handle -mpc32, -mpc64, -mpc80.
8385
8386 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8387
8388         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
8389         * config/alpha/t-crtfm: Remove.
8390         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
8391         * config/i386/t-crtfm: Remove.
8392         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
8393         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
8394         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
8395         * config/sparc/t-crtfm: Remove.
8396
8397         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
8398         (alpha*-*-freebsd*): Likewise.
8399         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
8400         (x86_64-*-darwin*): Likewise.
8401         (i[34567]86-*-linux*): Likewise.
8402         (x86_64-*-linux*): Likewise.
8403         (x86_64-*-mingw*): Likewise.
8404         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
8405         (ia64*-*-freebsd*): Likewise.
8406         (ia64*-*-linux*): Likewise.
8407         (mips64*-*-linux*): Likewise.
8408         (mips*-*-linux*): Likewise.
8409         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
8410         (sparc64-*-linux*): Likewise.
8411         (sparc64-*-freebsd*): Likewise.
8412
8413 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8414
8415         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
8416         * config/darwin-crt3.c: Move to ../libgcc/config.
8417         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
8418         ($(T)crt3$(objext)): Remove.
8419         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
8420         ($(T)crt2$(objext)): Remove.
8421         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
8422         (powerpc64-*-darwin*): Likewise.
8423
8424 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
8425
8426         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
8427
8428         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
8429         (addsi_1_zext): This.
8430
8431 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
8432
8433         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
8434         * doc/tm.texi: Regenerate.
8435         * target.def (mergeable_rodata_prefix): New defhookpod.
8436         * varasm.c (mergeable_string_section, mergeable_constant_section):
8437         Use it. Allocate name with alloca.
8438
8439 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
8440
8441         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
8442
8443 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
8444
8445         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
8446         overlap check.
8447
8448 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
8449
8450         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
8451         (count_type_elements): Delete.
8452         (complete_ctor_at_level_p): Declare.
8453         * expr.c (flexible_array_member_p): New function, split out from...
8454         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
8455         parameter with for_ctor_p.  When for_ctor_p is true, return the
8456         number of elements that should appear in the top-level constructor,
8457         otherwise return an estimate of the number of scalars.
8458         (categorize_ctor_elements): Replace p_must_clear with p_complete.
8459         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
8460         (complete_ctor_at_level_p): New function, borrowing union logic
8461         from old categorize_ctor_elements_1.
8462         (mostly_zeros_p): Return true if the constructor is not complete.
8463         (all_zeros_p): Update call to categorize_ctor_elements.
8464         * gimplify.c (gimplify_init_constructor): Update call to
8465         categorize_ctor_elements.  Don't call count_type_elements.
8466         Unconditionally prevent clearing for variable-sized types,
8467         otherwise rely on categorize_ctor_elements to detect
8468         incomplete initializers.
8469
8470 2011-07-13  Richard Guenther  <rguenther@suse.de>
8471
8472         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
8473         the final type is integral.
8474
8475 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
8476
8477         * sched-int.h (struct _dep): Add member cost.
8478         (DEP_COST, UNKNOWN_DEP_COST): New macros.
8479         * sched-deps.c (init_dep_1): Initialize DEP_COST.
8480         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
8481         (sched_change_pattern): Reset it for dependent insns.
8482
8483 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8484
8485         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
8486         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
8487         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
8488         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
8489         (CRT0_S, MCRT0_S): Remove.
8490         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
8491         Remove.
8492         (s-crt0): Remove.
8493         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
8494
8495 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
8496
8497         * cse.c (insert_with_costs): Put semi-colon after empty loop body
8498         on the next line.
8499         * emit-rtl.c (push_to_sequence): Likewise.
8500         * haifa-sched.c (max_issue): Likewise.
8501         * matrix-reorg.c (add_allocation_site): Likewise.
8502         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
8503         * reload.c (alternative_allows_const_pool_ref): Likewise.
8504         * sched-rgn.c (rgn_add_block): Likewise.
8505         (rgn_fix_recovery_cfg): Likewise.
8506         * tree.c (attribute_list_contained): Likewise.
8507
8508 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
8509
8510         * config/i386/i386.c: Tidy processor feature bitmasks.
8511         (m_P4_NOCONA): New.
8512
8513 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
8514
8515         PR rtl-opt/49474
8516         * cprop.c (find_implicit_sets): Correct the condition.
8517
8518 2011-07-12  Richard Henderson  <rth@redhat.com>
8519
8520         PR target/49713
8521         * dwarf2out.h (dwarf_frame_regnum): Remove.
8522         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
8523         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
8524         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
8525         (execute_dwarf2_frame): Initialize them.
8526         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
8527         users of the macros with the variables.
8528         (expand_builtin_dwarf_sp_column): Revert last change.
8529         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
8530         result of DWARF_FRAME_REGNUM into a local variable.
8531
8532 2011-07-12  Richard Henderson  <rth@redhat.com>
8533
8534         PR target/49714
8535         * config/i386/i386.c (x86_output_mi_thunk): Use
8536         machopic_indirect_call_target instead of machopic_indirection_name
8537         directly.
8538
8539 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
8540             Eric Botcazou  <ebotcazou@adacore.com>
8541
8542         * prefix.h: Wrap up in extern "C" block.
8543
8544 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
8545
8546         AMD bdver2 Enablement
8547         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
8548         (case ${target}): Add bdver2.
8549         * config/i386/driver-i386.c (host_detect_local_cpu): Let
8550         -march=native recognize bdver2 processors.
8551         * config/i386/i386-c.c (ix86_target_macros_internal): Add
8552         bdver2 def_and_undef
8553         * config/i386/i386.c (struct processor_costs bdver2_cost): New
8554         bdver2 cost table.
8555         (m_BDVER2): New definition.
8556         (m_AMD_MULTIPLE): Includes m_BDVER2.
8557         (initial_ix86_tune_features): Add bdver2 tuning.
8558         (processor_target_table): Add bdver2 entry.
8559         (static const char *const cpu_names): Add bdver2 entry.
8560         (ix86_option_override_internal): Add bdver2 instruction sets.
8561         (ix86_issue_rate): Add bdver2.
8562         (ix86_adjust_cost): Add bdver2.
8563         (has_dispatch): Add bdver2.
8564         * config/i386/i386.h (TARGET_BDVER2): New definition.
8565         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
8566         (enum processor_type): Add PROCESSOR_BDVER2.
8567         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
8568         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
8569         description.
8570
8571 2011-07-12  Richard Henderson  <rth@redhat.com>
8572
8573         PR target/49714
8574         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
8575         destination address in memory on some paths.
8576
8577 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
8578
8579         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
8580         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
8581         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
8582         * function.c (locate_and_pad_parm): Take it into account.
8583         * target.def (function_arg_round_boundary): New hook.
8584         * targhooks.c (default_function_arg_round_boundary): New function.
8585         * targhooks.h (default_function_arg_round_boundary): Declare.
8586         * doc/tm.texi: Regenerate.
8587
8588 2011-07-12  Richard Guenther  <rguenther@suse.de>
8589
8590         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
8591         Do not perform no-op changes.
8592
8593 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
8594
8595         * config/arm/predicates.md (neon_struct_operand): Make a normal
8596         predicate.
8597         (neon_struct_or_register_operand): New predicate.
8598         * config/arm/neon.md (movmisalign<mode>): Replace predicates
8599         with neon_struct_or_register_operand.
8600         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
8601         neon_struct_operand instead of memory_operand.
8602
8603 2011-07-12  Martin Jambor  <mjambor@suse.cz>
8604
8605         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
8606         * cgraph.c (cgraph_get_node_or_alias): Removed.
8607         (change_decl_assembler_name): Changed all calls to
8608         cgraph_get_node_or_alias to a call to cgraph_get_node.
8609         (cgraph_make_decl_local): Likewise.
8610         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
8611         * varasm.c (default_binds_local_p_1): Likewise.
8612         (decl_binds_to_current_def_p): Likewise.
8613
8614 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
8615
8616         PR tree-optimization/49712
8617         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
8618
8619 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
8620
8621         * genautomata.c (add_arc): Return void.  All callers changed.
8622         (make_automaton): Remove dead code.
8623
8624 2011-07-11  Richard Henderson  <rth@redhat.com>
8625
8626         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
8627         (DW_FRAME_POINTER_REGNUM): New.
8628         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
8629         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
8630         (dwf_regno): New.
8631         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
8632         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
8633         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
8634         Use it.
8635         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
8636         * dwarf2out.h (dwarf_frame_regnum): New.
8637         (struct cfa_loc): Document the domain of the reg member.
8638
8639 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
8640
8641         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
8642         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
8643
8644 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
8645
8646         PR debug/49676
8647         * dwarf2out.c (int_shift_loc_descriptor): New function.
8648         (int_loc_descriptor): If shorter, emit i as
8649         (i >> shift), shift, DW_OP_shl for suitable shift value.
8650         Similarly, try to optimize large negative values using
8651         DW_OP_neg of a positive value if shorter.
8652         (size_of_int_shift_loc_descriptor): New function.
8653         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
8654         changes.
8655         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
8656         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
8657         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
8658         is shorter.
8659         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
8660         addend as added DW_OP_plus if it is shorter.
8661
8662 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8663
8664         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
8665         (DTORS_SECTION_ASM_OP): Define.
8666
8667 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8668
8669         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
8670         * config/t-dfprules: Move to ../libgcc/config.
8671         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
8672         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
8673         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
8674         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
8675         Likewise.
8676         (i[34567]86-*-cygwin*): Likewise.
8677         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
8678         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
8679         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
8680         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
8681         D64PBIT_FUNCS, D128PBIT_FUNCS.
8682
8683 2011-07-11  Richard Guenther  <rguenther@suse.de>
8684
8685         * tree-vrp.c (simplify_conversion_using_ranges): Manually
8686         translate the source value-range through the conversion chain.
8687
8688 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
8689
8690         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
8691
8692 2011-07-11  Arthur Loiret  <aloiret@debian.org>
8693
8694         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
8695         a bi-arch compiler defaulting to 31-bit. In this case:
8696         (tmake_file): Add s390/t-linux64.
8697         * doc/install.texi: Add s390-linux to the list of targets supporting
8698         --enable-targets=all.
8699
8700 2011-07-11  Arthur Loiret  <aloiret@debian.org>
8701             Matthias Klose <doko@debian.org>
8702
8703         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
8704         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
8705         (tm_file): Add mips/linux64.h.
8706         (tmake_file): Add mips/t-linux64.
8707         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
8708         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
8709         instead of hardcoded mabi=n32.
8710         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
8711         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
8712         convention.
8713
8714 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8715
8716         * passes.c (init_optimization_passes): Add invariant motion pass
8717         after induction variable optimization.
8718
8719 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
8720
8721         PR target/39633
8722         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
8723         offsets 1..5 set cc0 in a usable way.
8724
8725 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
8726
8727         * tree.h (call_expr_arg): Remove.
8728         (call_expr_argp): Likewise.
8729
8730 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
8731
8732         * config/sparc/sparc.md (save_register_window_1): Rename to...
8733         (window_save): ...this.
8734         * config/sparc/sparc.c (emit_save_register_window): Rename to...
8735         (emit_window_save): ...this.
8736         (sparc_expand_prologue): Adjust to above renaming.
8737
8738 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
8739
8740         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
8741         of movabs for x32.
8742
8743 2011-07-10  Richard Henderson  <rth@redhat.com>
8744
8745         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
8746         run final, instead of emitting text directly.
8747
8748 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
8749
8750         * config/i386/i386.c (ix86_option_override_internal): Turn on
8751         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
8752         small PIC models for TARGET_X32.
8753
8754 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
8755
8756         PR target/49684
8757         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
8758         $(LIBGCC2_CFLAGS).
8759
8760         PR bootstrap/49680
8761         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
8762         stray notes and debug insns by using prev_nonnote_nondebug_insn
8763         instead of PREV_INSN.
8764
8765 2011-07-09  Richard Henderson  <rth@redhat.com>
8766
8767         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
8768         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
8769         * dwarf2out.c: ... here.
8770         (output_all_cfis): Remove.
8771         (dwarf2out_switch_text_section): Use output_cfis directly.
8772         (size_of_locs): Export.
8773         (output_loc_sequence, output_loc_sequence_raw): Export.
8774         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
8775         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
8776         output_cfa_loc_raw): Move to ...
8777         * dwarfcfi.c: ... here.
8778         * dwarf2out.h: Update decls.
8779
8780 2011-07-09  Richard Henderson  <rth@redhat.com>
8781
8782         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
8783         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
8784         * dwarf2cfi.c: ... here.
8785         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
8786         (DWARF_ROUND, DWARF_CIE_ID): Remove.
8787         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
8788         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
8789         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
8790
8791 2011-07-09  Richard Henderson  <rth@redhat.com>
8792
8793         * dwarf2cfi.c (cie_return_save): New.
8794         (queue_reg_save): Use compare_reg_or_pc.
8795         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
8796         (dwarf2out_frame_debug_expr): Likewise.
8797         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
8798         (initial_return_save): Likewise.
8799         (execute_dwarf2_frame): Save and restore initial return save from
8800         the cie to the fde.
8801         * config/mips/mips.c (mips_frame_set): Remove special case for
8802         DWARF_FRAME_RETURN_COLUMN.
8803
8804 2011-07-09  Richard Henderson  <rth@redhat.com>
8805
8806         * dwarf2cfi.c (lookup_cfa): Remove.
8807         (execute_dwarf2_frame): Assert queues are empty on entry.
8808         Setup initial cfa directly, not via lookup_cfa.
8809         Don't clear args_size state here.
8810
8811 2011-07-09  Richard Henderson  <rth@redhat.com>
8812
8813         * dwarf2cfi.c (add_cfi_vec): New.
8814         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
8815         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
8816         (execute_dwarf2_frame): Set add_cfi_vec.
8817
8818 2011-07-09  Richard Henderson  <rth@redhat.com>
8819
8820         * defaults.h (ASM_COMMENT_START): Move here...
8821         * dwarf2asm.c: ... from here.
8822         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
8823         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
8824         * varasm.c: Likewise.
8825
8826 2011-07-09  Richard Henderson  <rth@redhat.com>
8827
8828         PR debug/49686
8829         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
8830         (create_cfi_notes): ... do it here instead.
8831
8832 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
8833
8834         PR debug/49676
8835         * dwarf2out.c (size_of_int_loc_descriptor): New function.
8836         (address_of_int_loc_descriptor): Use it.
8837         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
8838
8839 2011-07-09  Richard Henderson  <rth@redhat.com>
8840
8841         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
8842         (prologue, epilogue): New.
8843         (return, *rts): New.
8844         (blockage, setd, seti): New.
8845         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
8846         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
8847         (pdp11_saved_regno): New.
8848         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
8849         generate rtl instead of text.
8850         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
8851         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
8852         * config/pdp11/pdp11-protos.h: Update.
8853
8854 2011-07-09  Richard Henderson  <rth@redhat.com>
8855
8856         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
8857         try to insert an rtl prologue here.
8858         (rs6000_output_function_epilogue): Similarly.
8859         * config/rs6000/rs6000.md (prologue): Emit a barrier to
8860         satisfy !TARGET_SCHED_PROLOG.
8861         (epilogue, sibcall_epilogue): Likewise.
8862
8863 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
8864
8865         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
8866         (FP_REG_P): Delete.
8867         (IN_OR_GLOBAL_P): Likewise.
8868
8869 2011-07-08  Jason Merrill  <jason@redhat.com>
8870
8871         PR c++/45437
8872         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
8873         compound assignment.
8874
8875         * cgraph.c (cgraph_add_to_same_comdat_group): New.
8876         * cgraph.h: Declare it.
8877         * ipa.c (function_and_variable_visibility): Make sure thunks
8878         have the right visibility.
8879
8880 2011-07-08  Richard Henderson  <rth@redhat.com>
8881
8882         PR bootstrap/49680
8883         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
8884         any tablejump vector.
8885
8886         PR bootstrap/49680
8887         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
8888         end of the prologue.
8889
8890 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
8891
8892         PR target/49621
8893         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
8894         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
8895         * config/rs6000/vector.md (vector_select_<mode>,
8896         vector_select_<mode>_uns): Change second operand of NE to
8897         CONST0_RTX (<MODE>mode) instead of const0_rtx.
8898         * config/rs6000/altivec.md (*altivec_vsel<mode>,
8899         *altivec_vsel<mode>_uns): Expect second operand of NE to be
8900         zero_constant of the corresponding vector mode.
8901         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
8902         Likewise.
8903
8904 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
8905
8906         * graphite-dependences.c (build_alias_set_powerset): Remove
8907         continue from loop, add one more assert.
8908
8909 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
8910
8911         PR target/46779
8912         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
8913         In particular, allow 8-bit values in r28 and r29.
8914         (avr_hard_regno_scratch_ok): Disallow any register that might be
8915         part of the frame pointer.
8916         (avr_hard_regno_rename_ok): Same.
8917         (avr_legitimate_address_p): Don't allow SUBREGs.
8918
8919 2011-07-08  Julian Brown  <julian@codesourcery.com>
8920
8921         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
8922         big-endian mode.
8923         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
8924         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
8925         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
8926         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
8927         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
8928         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
8929         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
8930         registers in big-endian mode.
8931
8932 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
8933
8934         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
8935         in terms of another.
8936         (write_attr_value): Write a cast if necessary.
8937
8938         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
8939         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
8940         (REG_WORDS_BIG_ENDIAN): Document.
8941         * doc/tm.texi: Regenerate.
8942         * reload.c (operands_match_p): Take it into account.
8943         (reload_adjust_reg_for_mode): Likewise.
8944         * rtlanal.c (subreg_get_info): Likewise.
8945
8946 2011-07-08  Richard Guenther  <rguenther@suse.de>
8947
8948         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
8949         folding.
8950
8951 2011-07-08  Kai Tietz  <ktietz@redhat.com>
8952
8953         * fold-const.c (fold_truth_andor): Factored out truth_andor
8954         label from fold_binary as function.
8955         (fold_binary_loc): Replace truth_andor lable
8956         by function fold_truth_andor.
8957
8958 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
8959
8960         PR middle-end/49519
8961         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
8962         check if address is stored in register. If so - give up.
8963         (check_sibcall_argument_overlap_1): Do not perform check of
8964         overlapping when it is call to address.
8965
8966 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
8967
8968         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
8969         of magic '31'.
8970
8971 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
8972
8973         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
8974         GET_MODE_BITSIZE where appropriate.
8975         (widen_leading, expand_parity, expand_ctz, expand_ffs,
8976         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
8977         expand_float, expand_fix): Likewise.
8978         * expr.c (convert_move, convert_modes, expand_expr_real_2,
8979         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
8980         * stor-layout.c (get_mode_bounds): Likewise.
8981         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
8982         Likewise.
8983         * convert.c (convert_to_integer): Likewise.
8984         * expmed.c (expand_shift_1): Likewise.
8985
8986         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
8987         a bitsize.
8988
8989         * optabs.c (expand_binop): Tighten conditions for doubleword
8990         expansions.
8991         (widen_bswap): Assert that mode bitsize and precision are the same.
8992         * stor-layout.c (get_best_mode): Skip modes that have lower
8993         precision than bitsize.
8994         * recog.c (simplify_while_replacing): Assert that bitsize and
8995         precision are the same.
8996
8997 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8998
8999         * Makefile.in (LIBGCOV): Remove.
9000         (libgcc.mvars): Remove LIBGCOV.
9001         * libgov.c: Move to ../libgcc.
9002
9003 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9004
9005         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
9006
9007 2011-07-08  Martin Jambor  <mjambor@suse.cz>
9008
9009         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
9010         is too big for total scalarization.
9011
9012 2011-07-07  Richard Henderson  <rth@redhat.com>
9013
9014         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
9015         (DBX_DEBUGGING_INFO): Undef.
9016
9017 2011-07-07  Richard Henderson  <rth@redhat.com>
9018
9019         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
9020         Handle some opcodes specially for debugging.
9021         * print-rtl.c: Include dwarf2out.h
9022         (print_rtx): Handle NOTE_INSN_CFI.
9023         * Makefile.in (print-rtl.o): Update.
9024
9025 2011-07-07  Richard Henderson  <rth@redhat.com>
9026
9027         * tree-pass.h (pass_dwarf2_frame): Declare.
9028         * passes.c (init_optimization_passes): Add it.
9029         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
9030         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
9031         make static, do not call add_cfis_to_fde.
9032         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
9033         dwarf2out_frame_init): Merge into...
9034         (execute_dwarf2_frame): ... here.  New function.
9035         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
9036         saved_do_cfi_asm to a tri-state variable.
9037         (gate_dwarf2_frame, pass_dwarf2_frame): New.
9038         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
9039         if it has yet to be done.  Don't call dwarf2cfi_function_init.
9040         * dwarf2out.h, debug.h: Update decls.
9041         * final.c (final_start_function): Don't call
9042         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
9043         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
9044         * toplev.c (lang_dependent_init): Likewise.
9045
9046 2011-07-07  Richard Henderson  <rth@redhat.com>
9047
9048         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
9049         FDE_TABLE_INCREMENT): Replace with...
9050         (fde_vec): ... this, a new vector.
9051         (current_fde): Remove.  Replace all users with cfun->fde.
9052         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
9053         (size_of_aranges, dwarf2out_finish): Likewise.
9054         (dwarf2out_alloc_current_fde): Break out from ...
9055         (dwarf2out_begin_prologue): ... here.
9056         (dwarf2out_frame_init): Remove.
9057         * dwarf2cfi.c: Update all users of current_fde.
9058         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
9059         * dwarf2out.h: Update decls.
9060         (dw_fde_node): Add fde_index member.
9061         * function.h (struct function): Add fde member.
9062
9063 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
9064             Richard Henderson  <rth@redhat.com>
9065
9066         * dwarf2cfi.c (add_cfi): Remove.
9067         (dwarf2out_cfi_label): Remove force argument.  Only generate the
9068         label name.
9069         (add_fde_cfi): Simplify the different code paths.
9070         (add_cie_cfi): New.
9071         (old_cfa, old_cfa_remember): New.
9072         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
9073         (last_reg_save_label): Remove.
9074         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
9075         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
9076         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
9077         dwarf2out_frame_debug_cfa_expression,
9078         dwarf2out_frame_debug_cfa_restore,
9079         dwarf2out_frame_debug_cfa_window_save,
9080         dwarf2out_frame_debug_expr): Remove label parameter.
9081         (cfi_label_required_p, add_cfis_to_fde): New.
9082         (dwarf2out_frame_debug_after_prologue): New.
9083         (dwarf2cfi_frame_init): Initialize old_cfa.
9084         (dwarf2out_frame_debug_restore_state): Likewise.
9085         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
9086         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
9087         * final.c (final_start_function): Call
9088         dwarf2out_frame_debug_after_prologue.
9089
9090 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
9091             Richard Henderson  <rth@redhat.com>
9092
9093         * dwarf2cfi.c (cfi_insn): New.
9094         (dwarf2out_cfi_label): Don't emit cfi label here.
9095         (add_fde_cfi): Create a NOTE_INSN_CFI.
9096         (dwarf2out_frame_debug): Setup cfi_insn.
9097         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
9098         (dwarf2out_cfi_begin_epilogue): Make static.
9099         (dwarf2out_frame_debug_restore_state): Make static.
9100         * dwarf2out.c (output_cfi_directive): Make static.
9101         (dwarf2out_emit_cfi): New.
9102         * dwarf2out.h: Update.
9103         * final.c (final): Remove CFI notes.
9104         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
9105         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
9106         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
9107         * insn-notes.def (NOTE_INSN_CFI): New.
9108         (NOTE_INSN_CFI_LABEL): New.
9109         * rtl.h (union rtunion_def): Add rt_cfi member.
9110         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
9111
9112 2011-07-07  Richard Henderson  <rth@redhat.com>
9113
9114         * dwarf2cfi.c: New file.
9115         * Makefile.in (OBJS): Add it.
9116         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
9117         * gengtype.c (open_base_files): Include dwarf2out.h.
9118         * coretypes.h (enum var_init_status): Move from ...
9119         * rtl.h: ... here.
9120         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
9121         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
9122         expand_builtin_dwarf_sp_column, init_return_column_size,
9123         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
9124         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
9125         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
9126         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
9127         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
9128         compute_barrier_args_size, dwarf2out_args_size,
9129         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
9130         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
9131         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
9132         queue_reg_save, dwarf2out_flush_queued_reg_saves,
9133         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
9134         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
9135         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
9136         dwarf2out_frame_debug_cfa_expression,
9137         dwarf2out_frame_debug_cfa_restore,
9138         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
9139         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
9140         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
9141         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
9142         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
9143         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
9144         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
9145         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
9146         dw_loc_descr_node): Move to dwarf2out.h.
9147         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
9148         mem_loc_descriptor): Export.
9149         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
9150         (dwarf2out_frame_init): Extract CIE generation code to
9151         dwarf2cfi_frame_init.
9152
9153 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
9154
9155         PR target/49660
9156         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
9157         MASK_V8PLUS, remove commented out flag and reorder.
9158
9159 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
9160
9161         PR c/49644
9162         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
9163         one non-complex and one complex argument, call c_save_expr on both
9164         operands.
9165
9166 2011-07-07  Martin Jambor  <mjambor@suse.cz>
9167
9168         PR middle-end/49495
9169         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
9170         (verify_cgraph_node): Some functinality moved to
9171         verify_edge_corresponds_to_fndecl, call it.
9172
9173 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
9174
9175         * config.gcc (*local*): Remove.
9176         * doc/install-old.texi: Don't mention local configurations.
9177
9178 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
9179
9180         PR debug/49522
9181         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
9182         referencing debug insns that have been reset.
9183         (dead_debug_insert_before): Don't assert reg is non-NULL,
9184         instead return immediately if it is NULL.
9185
9186 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
9187
9188         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
9189
9190 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
9191
9192         * hw-doloop.c: New file.
9193         * hw-doloop.h: New file.
9194         * Makefile.in (OBJS): Add hw-doloop.o.
9195         (hw-doloop.o): New rule.
9196         ($(obj_out_file)): Add hw-doloop.h dependency.
9197         * config/bfin/bfin.c: Include "hw-doloop.h".
9198         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
9199         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
9200         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
9201         type changed to hwloop_info.  Return bool, true if the loop was
9202         successfully optimized.  Remove code that was moved to
9203         hw-doloop.c, and adjust other parts.
9204         (hwloop_fail): New static function, containing parts that used
9205         to be in bfin_optimize_loop.
9206         (bfin_discover_loop, bfin_discover_loops, free_loops,
9207         bfin_reorder_loops): Remove.
9208         (hwloop_pattern_reg): New static function.
9209         (bfin_doloop_hooks): New variable.
9210         (bfin_reorg_loops): Remove most code, call reorg_loops.
9211         * config/bfin/bfin.md (doloop_end splitter): Also enable if
9212         loop counter is a memory_operand.
9213
9214 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
9215
9216         * config.gcc: Support --with-multilib-list for x86 Linux targets.
9217
9218         * configure.ac: Mention x86-64 for --with-multilib-list.
9219         * configure: Regenerated.
9220
9221         * config/i386/gnu-user64.h (SPEC_64): Support x32.
9222         (SPEC_32): Likewise.
9223         (ASM_SPEC): Likewise.
9224         (LINK_SPEC): Likewise.
9225         (TARGET_THREAD_SSP_OFFSET): Likewise.
9226         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
9227         (SPEC_X32): New.
9228
9229         * config/i386/i386.h (TARGET_X32): New.
9230         (TARGET_LP64): New.
9231         (LONG_TYPE_SIZE): Likewise.
9232         (POINTER_SIZE): Likewise.
9233         (POINTERS_EXTEND_UNSIGNED): Likewise.
9234         (OPT_ARCH64): Support x32.
9235         (OPT_ARCH32): Likewise.
9236
9237         * config/i386/i386.opt (mx32): New.
9238
9239         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
9240         (GLIBC_DYNAMIC_LINKERX32): Likewise.
9241         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
9242         (GLIBC_DYNAMIC_LINKERX32): Likewise.
9243
9244         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
9245         (BIONIC_DYNAMIC_LINKERX32): Likewise.
9246         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
9247
9248         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
9249
9250         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
9251
9252         * doc/invoke.texi: Document -mx32.
9253
9254 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
9255
9256         * doc/invoke.texi (mwords-little-endian): Deprecate.
9257         * config/arm/arm.opt (mwords-little-endian): Likewise.
9258         * config/arm/arm.c (arm_option_override): Warn about the deprecation
9259         of -mwords-little-endian.
9260
9261 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
9262
9263         * reload1.c (choose_reload_regs): Use mode sizes to check whether
9264         an old reload register completely defines the required value.
9265
9266 2011-07-07  Richard Guenther  <rguenther@suse.de>
9267
9268         * fold-const.c (fold_unary_loc): Do not strip sign-changes
9269         for NEGATE_EXPR.
9270
9271 2011-07-07  Richard Guenther  <rguenther@suse.de>
9272
9273         * tree-vrp.c (simplify_conversion_using_ranges): New function.
9274         (simplify_stmt_using_ranges): Call it.
9275
9276 2011-07-07  Kai Tietz  <ktietz@redhat.com>
9277
9278         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
9279         (lookup_logical_inverted_value): Likewise.
9280         (simplify_bitwise_binary_1): Likewise.
9281         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
9282
9283 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
9284
9285         * gcc.c (%[Spec]): Don't document.
9286         (struct spec_list): Update comment.
9287         (do_spec_1): Don't handle %[Spec].
9288         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
9289
9290 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
9291
9292         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
9293         default based on TARGET_ASM_NAMED_SECTION.
9294         * common/common-target.def (have_named_sections): Default to true.
9295         * common/config/default-common.c: Don't include tm.h.
9296         * common/config/picochip/picochip-common.c
9297         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
9298         * common/config/m32c/m32c-common.c: Remove.
9299         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
9300         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9301         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9302         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9303         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9304         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9305         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9306
9307 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
9308
9309         PR middle-end/49640
9310         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
9311         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
9312
9313 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9314
9315         PR libmudflap/49550
9316         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
9317
9318 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9319
9320         PR target/39150
9321         * configure.ac (gcc_cv_as_hidden): Also accept
9322         x86_64-*-solaris2.1[0-9]*.
9323         (gcc_cv_as_cfi_directive): Likewise.
9324         (gcc_cv_as_comdat_group_group): Likewise.
9325         (set_have_as_tls): Likewise.
9326         * configure: Regenerate.
9327         * config.gcc (i[34567]86-*-solaris2*): Also handle
9328         x86_64-*-solaris2.1[0-9]*.
9329         * config.host (i[34567]86-*-solaris2*): Likewise.
9330         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
9331         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
9332         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
9333         (TARGET_LD_EMULATION): Use it.
9334         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
9335         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
9336         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
9337         (ASM_CPU64_DEFAULT_SPEC): Define.
9338         (ASM_CPU_SPEC): Use %(asm_cpu_default).
9339         (ASM_SPEC): Redefine.
9340         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
9341         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
9342         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
9343         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
9344         configuration.
9345         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
9346
9347 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9348
9349         * config/sol2.h (ASM_SPEC): Split into ...
9350         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
9351         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
9352         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
9353         (ASM_SPEC): Use ASM_SPEC_BASE.
9354         * config/sparc/sol2.h (ASM_SPEC): Redefine.
9355
9356 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
9357
9358         * config/avr/avr.md (*reload_insi): Change predicate #1 to
9359         const_int_operand.  Ditto for peep2 producing this insn.
9360         Add argument to output_reload_insisf call.
9361         (*movsi,*movsf): Add argument to output_movsisf call.
9362         (*reload_insf): New insn and new peep2 to produce it.
9363         * config/avr/avr-protos.h (output_movsisf): Change prototype.
9364         (output_reload_insisf): Change prototype.
9365         * config/avr/avr.c (avr_asm_len): New function.
9366         (output_reload_insisf): Rewrite.
9367         (output_movsisf): Change prototype.  output_reload_insisf for
9368         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
9369         (adjust_insn_length): Add argument to output_movsisf and
9370         output_reload_insisf call.
9371
9372 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
9373
9374         * emit-rtl.c (paradoxical_subreg_p): New function.
9375         * rtl.h (paradoxical_subreg_p): Declare.
9376         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
9377         apply_distributive_law, simplify_comparison, simplify_set): Use it.
9378         * cse.c (record_jump_cond, cse_insn): Likewise.
9379         * expr.c (force_operand): Likewise.
9380         * rtlanal.c (num_sign_bit_copies1): Likewise.
9381         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
9382         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
9383         (push_reload): Use precision to check for paradoxical subregs.
9384         * expmed.c (extract_bit_field_1): Likewise.
9385
9386         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
9387         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
9388         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
9389         simplify_set, simplify_logical, expand_compound_operation,
9390         make_extraction, force_to_mode, if_then_else_cond, extended_count,
9391         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
9392         record_value_for_reg): Likewise.
9393         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
9394         * simplify-rtx. c (simplify_unary_operation_1,
9395         simplify_binary_operation_1, simplify_const_relational_operation):
9396         Likewise.
9397
9398         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
9399         instead of GET_MODE_BITSIZE where appropriate.
9400         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
9401         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
9402         init_num_sign_bit_copies_in_rep): Likewise.
9403         * cse.c (fold_rtx, cse_insn): Likewise.
9404         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
9405         * simplify-rtx.c (simplify_unary_operation_1,
9406         simplify_const_unary_operation, simplify_binary_operation_1,
9407         simplify_const_binary_operation, simplify_ternary_operation,
9408         simplify_const_relational_operation, simplify_subreg): Likewise.
9409         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
9410         simplify_if_then_else, simplify_set, expand_compound_operation,
9411         expand_field_assignment, make_extraction, if_then_else_cond,
9412         make_compound_operation, force_to_mode, make_field_assignment,
9413         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
9414         extended_count, try_widen_shift_mode, simplify_shift_const_1,
9415         simplify_comparison, record_promoted_value, simplify_compare_const,
9416         record_dead_and_set_regs_1): Likewise.
9417
9418         Revert:
9419         * simplify-rtx.c (simplify_const_binary_operation): Use the
9420         shift_truncation_mask hook instead of performing modulo by width.
9421         Compare against mode precision, not bitsize.
9422         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
9423         Use shift_truncation_mask instead of constructing the value manually.
9424
9425 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
9426
9427         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
9428         declaration.
9429         (rs6000_save_toc_in_prologue_p): Ditto.
9430
9431         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
9432         up the static chain (r11) during indirect function calls.
9433         (-msave-toc-indirect): New undocumented debug switch.
9434
9435         * config/rs6000/rs6000.c (struct machine_function): Add
9436         save_toc_in_prologue field to note whether the prologue needs to
9437         save the TOC value in the reserved stack location.
9438         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
9439         to save the TOC in the prologue, do so.
9440         (rs6000_trampoline_init): Don't allow creating AIX style
9441         trampolines if -mno-r11 is in effect.
9442         (rs6000_call_indirect_aix): New function to create AIX style
9443         indirect calls, adding support for -mno-r11 to suppress loading
9444         the static chain, and saving the TOC in the prologue instead of
9445         the call body.
9446         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
9447         TOC in the prologue.
9448
9449         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
9450         register numbers.
9451         (TOC_REGNUM): Ditto.
9452         (STATIC_CHAIN_REGNUM): Ditto.
9453         (ARG_POINTER_REGNUM): Ditto.
9454         (SFP_REGNO): Delete, unused.
9455         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
9456         function descriptor offsets.
9457         (TOC_SAVE_OFFSET_64BIT): Ditto.
9458         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
9459         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
9460         (AIX_FUNC_DESC_SC_32BIT): Ditto.
9461         (AIX_FUNC_DESC_SC_64BIT): Ditto.
9462         (ptrload): New mode attribute for the appropriate load of a pointer.
9463         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
9464         (call_indirect_aix64): Ditto.
9465         (call_value_indirect_aix32): Ditto.
9466         (call_value_indirect_aix64): Ditto.
9467         (call_indirect_nonlocal_aix32_internal): Ditto.
9468         (call_indirect_nonlocal_aix32): Ditto.
9469         (call_indirect_nonlocal_aix64_internal): Ditto.
9470         (call_indirect_nonlocal_aix64): Ditto.
9471         (call): Rewrite AIX indirect function calls.  Add support for
9472         eliminating the static chain, and for moving the save of the TOC
9473         to the function prologue.
9474         (call_value): Ditto.
9475         (call_indirect_aix<ptrsize>): Ditto.
9476         (call_indirect_aix<ptrsize>_internal): Ditto.
9477         (call_indirect_aix<ptrsize>_internal2): Ditto.
9478         (call_indirect_aix<ptrsize>_nor11): Ditto.
9479         (call_value_indirect_aix<ptrsize>): Ditto.
9480         (call_value_indirect_aix<ptrsize>_internal): Ditto.
9481         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
9482         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
9483         (call_nonlocal_aix32): Relocate in the rs6000.md file.
9484         (call_nonlocal_aix64): Ditto.
9485
9486         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
9487         -mno-r11 documentation.
9488
9489 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
9490
9491         PR other/49658
9492         * doc/extend.texi (Compound Literals): Fix typo.
9493
9494 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
9495
9496         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
9497
9498 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
9499
9500         * configure.ac (plugin-version.h): Generate
9501         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
9502         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
9503         macros.
9504
9505         * configure: Regenerate.
9506
9507         * doc/plugins.texi (Building GCC plugins): Mention
9508         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
9509
9510 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
9511
9512         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
9513         * combine.c (make_extraction, gen_lowpart_or_truncate,
9514         apply_distributive_law, simplify_comparison,
9515         reg_truncated_to_mode, record_truncated_value): Use it.
9516         * cse.c (notreg_cost): Likewise.
9517         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
9518         * expr.c (convert_move, convert_modes): Likewise.
9519         * optabs.c (expand_binop, expand_unop): Likewise.
9520         * postreload.c (move2add_last_label): Likewise.
9521         * regmove.c (optimize_reg_copy_3): Likewise.
9522         * rtlhooks.c (gen_lowpart_general): Likewise.
9523         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
9524
9525 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
9526
9527         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
9528
9529 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
9530
9531         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
9532         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
9533         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
9534         (simplify_const_unary_operation, simplify_binary_operation_1,
9535         simplify_const_binary_operation, simplify_const_relational_operation):
9536         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
9537         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
9538         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
9539         simplify_shift_const_1, simplify_comparison): Likewise.
9540         * expr.c (convert_modes): Likewise.
9541         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
9542         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
9543         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
9544
9545         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
9546
9547 2011-07-06  Richard Guenther  <rguenther@suse.de>
9548
9549         PR tree-optimization/49645
9550         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
9551         register variables.
9552         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
9553         in type qualification here ...
9554         (copy_reference_ops_from_ref): ... not here.
9555         (vn_reference_lookup_3): ... or here.
9556         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
9557         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
9558
9559 2011-07-06  Ian Lance Taylor  <iant@google.com>
9560
9561         * doc/install.texi (Configuration): It's
9562         --enable-gnu-indirect-function, not --enable-indirect-function.
9563
9564 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
9565
9566         * simplify-rtx.c (simplify_const_binary_operation): Use the
9567         shift_truncation_mask hook instead of performing modulo by width.
9568         Compare against mode precision, not bitsize.
9569         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
9570         Use shift_truncation_mask instead of constructing the value manually.
9571
9572 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
9573
9574         PR middle-end/47383
9575         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
9576         address computation and convert to address_mode if needed.
9577
9578 2011-07-06  Richard Guenther  <rguenther@suse.de>
9579
9580         * tree.c (build_common_tree_nodes_2): Merge with
9581         build_common_tree_nodes.
9582         * tree.h (build_common_tree_nodes): Adjust prototype.
9583         (build_common_tree_nodes_2): Remove.
9584         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
9585         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
9586
9587 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
9588
9589         PR tree-optimization/49618
9590         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
9591         t recurse on the decl.
9592         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
9593         return true if expr isn't known to be defined in current
9594         TU or some other LTO partition.
9595
9596 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
9597
9598         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
9599         override CASE_VALUES_THRESHOLD.
9600
9601         * stmt.c (toplevel): Include params.h.
9602         (case_values_threshold): Use the --param case-values-threshold
9603         value if non-zero, otherwise use machine dependent value.
9604         (expand_case): Use case_values_threshold.
9605
9606         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
9607
9608         * doc/invoke.texi (--param case-values-threshold): Document.
9609
9610 2011-07-05  Richard Henderson  <rth@redhat.com>
9611
9612         * dwarf2out.c (dwarf2out_cfi_label): Make static.
9613         (dwarf2out_flush_queued_reg_saves): Make static.
9614         (dwarf2out_reg_save): Remove.
9615         (dwarf2out_return_save): Remove.
9616         (dwarf2out_return_reg): Remove.
9617         (dwarf2out_reg_save_reg): Remove.
9618         (dwarf2out_def_cfa): Merge into ...
9619         (dwarf2out_frame_init): ... here.
9620         * dwarf2out.h, tree.h: Remove declarations as necessary.
9621
9622 2011-07-05  Richard Henderson  <rth@redhat.com>
9623
9624         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
9625         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
9626         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
9627         the alloc insn.
9628
9629         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
9630         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
9631         (process_epilogue): Don't call dwarf2out_def_cfa.
9632
9633         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
9634         indicate the return address save.
9635         (process_cfa_register): Likewise.
9636
9637         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
9638         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
9639
9640         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
9641         for ar.pfs save at alloc insn.
9642
9643 2011-07-05  Richard Henderson  <rth@redhat.com>
9644
9645         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
9646         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
9647         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
9648         stack pointer save.
9649         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
9650         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
9651         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
9652         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
9653
9654 2011-07-05  Richard Henderson  <rth@redhat.com>
9655
9656         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
9657         VUNSPEC_* constants here instead of via define_constants.
9658         (VUNSPEC_PEM): New constant.
9659         (procedure_entry_mask): New insn.
9660         (prologue): New expander.
9661         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
9662         (vax_expand_prologue): Rename from vax_output_function_prologue;
9663         emit rtl instead of text.
9664         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
9665         (print_operand): Add 'x' prefix.
9666
9667 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
9668
9669         PR middle-end/47715
9670         * calls.c (precompute_register_parameters): Promote the function
9671         argument before checking non-legitimate constant.
9672
9673 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
9674
9675         PR tree-optimization/47654
9676         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
9677         (lst_do_strip_mine_loop): Return an int.
9678         (lst_do_strip_mine): Same.
9679         (scop_do_strip_mine): Same.
9680         (scop_do_block): Loop blocking should strip-mine at least two loops.
9681         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
9682         (scop_do_interchange): Same.
9683         * graphite-poly.h (scop_do_interchange): Update declaration.
9684         (scop_do_strip_mine): Same.
9685
9686 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
9687
9688         * graphite-clast-to-gimple.c (precision_for_value): Removed.
9689         (precision_for_interval): Removed.
9690         (gcc_type_for_interval): Use mpz_sizeinbase.
9691
9692 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
9693
9694         * graphite-ppl.h (value_max): Correct computation of max.
9695
9696 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
9697
9698         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
9699
9700 2011-07-05  Richard Guenther  <rguenther@suse.de>
9701
9702         * c-decl.c (c_init_decl_processing): Defer building common
9703         tree nodes to c_common_nodes_and_builtins.
9704
9705 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
9706
9707         PR tree-optimization/49580
9708         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
9709         the loop's number of iterations.
9710         * tree-parloops.c (transform_to_exit_first_loop): Add the
9711         handling of the loop's number of iterations before the call
9712         to gimple_duplicate_sese_tail.
9713         Insert the stmt caclculating the new rhs of the loop's
9714         condition stmt to the preheader instead of iters_bb.
9715
9716 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
9717
9718         PR rtl-optimization/47449
9719         * fwprop.c (forward_propagate_subreg): Don't propagate hard
9720         register nor zero/sign extended hard register.
9721
9722 2011-07-05  Richard Guenther  <rguenther@suse.de>
9723
9724         PR tree-optimization/49518
9725         PR tree-optimization/49628
9726         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
9727         irrelevant and invariant data-references.
9728         (vect_analyze_data_ref_access): For invariant loads clear the
9729         group association.
9730
9731 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
9732
9733         PR rtl-optimization/49619
9734         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
9735         pass VOIDmode as op0_mode to recursive call, and return temp even
9736         when different from tor, just if it is not IOR of the original
9737         PLUS arguments.
9738
9739         PR rtl-optimization/49472
9740         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
9741         negating MULT, negate the second operand instead of first.
9742         (simplify_binary_operation_1) <case MULT>: If one operand is
9743         a NEG and the other is MULT, don't attempt to optimize by negation
9744         of the MULT operand if it only moves the NEG operation around.
9745
9746         PR debug/49602
9747         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
9748         get_current_def return value if it can't be trusted to be
9749         the current value of the variable in the current bb.
9750
9751 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
9752
9753         PR target/49600
9754         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
9755         general register to memory for !TARGET_INTER_UNIT_MOVES.
9756
9757 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
9758
9759         PR target/44643
9760         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
9761         instead of TREE_READONLY.
9762
9763 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
9764
9765         * doc/extend.texi (AVR Built-in Functions): Update documentation
9766         of __builtin_avr_fmul*.
9767         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
9768         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
9769         * config/avr/avr.md (fmul): Rename to fmul_insn.
9770         (fmuls): Rename to fmuls_insn.
9771         (fmulsu): Rename to fmulsu_insn.
9772         (fmul,fmuls,fmulsu): New expander.
9773         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
9774         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
9775         * config/avr/libgcc.S (__fmul): New function.
9776         (__fmuls): New function.
9777         (__fmulsu,__fmulsu_exit): New function.
9778
9779 2011-07-04  Richard Guenther  <rguenther@suse.de>
9780
9781         PR tree-optimization/49615
9782         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
9783         basic-block index check.
9784
9785 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
9786
9787         * longlong.h (count_leading_zeros, count_trailing_zeros,
9788         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
9789         resp. 64.
9790
9791 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
9792
9793         PR tree-optimization/49610
9794         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
9795         a basic block.
9796
9797 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
9798             Olivier Hainque  <hainque@adacore.com>
9799             Nicolas Setton  <setton@adacore.com>
9800
9801         * tree.h (TYPE_ARTIFICIAL): New flag.
9802         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
9803         the DIE of the type if it is artificial.
9804         (gen_array_type_die): Likewise.
9805         (gen_enumeration_type_die): Likewise.
9806         (gen_struct_or_union_type_die): Likewise.
9807         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
9808         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
9809
9810 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
9811
9812         * tree-object-size.c (pass_through_call): Handle
9813         BUILT_IN_ASSUME_ALIGNED.
9814
9815 2011-07-01  Martin Jambor  <mjambor@suse.cz>
9816
9817         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
9818
9819 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
9820
9821         PR middle-end/48016
9822         * explow.c (update_nonlocal_goto_save_area): Use proper mode
9823         for stack save area.
9824         * function.c (expand_function_start): Likewise.
9825
9826 2011-07-01  Richard Guenther  <rguenther@suse.de>
9827
9828         PR middle-end/49596
9829         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
9830         may have unknown refs.
9831
9832 2011-07-01  Kai Tietz  <ktietz@redhat.com>
9833
9834         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
9835
9836 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9837
9838         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
9839         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
9840         (Specific, mips-sgi-irix6): Likewise.
9841
9842 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9843
9844         PR libmudflap/49549
9845         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
9846
9847 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
9848
9849         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
9850         [idx]= and [idx1 ... idx2]= before initializers if needed for
9851         array initializers.
9852
9853 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
9854
9855         * config.gcc (score-*-elf): Remove score7.o.
9856         * config/score/t-score-elf: Likewise.
9857         * config/score/score.c: Merge score7 to score.c and
9858         remove forwarding functions.
9859         * config/score/score7.c: Deleted.
9860         * config/score/score7.h: Deleted.
9861
9862 2011-07-01  Richard Guenther  <rguenther@suse.de>
9863
9864         PR tree-optimization/49603
9865         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
9866
9867 2011-06-30  Martin Jambor  <mjambor@suse.cz>
9868
9869         * tree-sra.c (struct access): Rename total_scalarization to
9870         grp_total_scalarization
9871         (completely_scalarize_var): New function.
9872         (sort_and_splice_var_accesses): Set total_scalarization in the
9873         representative access.
9874         (analyze_access_subtree): Propagate total scalarization accross the
9875         tree, no holes in totally scalarized trees, simplify coverage
9876         computation.
9877         (analyze_all_variable_accesses): Call completely_scalarize_var instead
9878         of completely_scalarize_record.
9879
9880 2011-06-30  Richard Henderson  <rth@redhat.com>
9881
9882         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
9883         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
9884         * config/i386/i386.c: Don't include dwarf2out.h.
9885         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
9886         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
9887         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
9888         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
9889         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
9890
9891 2011-06-30  Richard Henderson  <rth@redhat.com>
9892
9893         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
9894         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
9895         * final.c (final_scan_insn): Look for it, and invoke
9896         dwarf2out_frame_debug before the insn if found.
9897
9898 2011-06-30  Richard Henderson  <rth@redhat.com>
9899
9900         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
9901         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
9902
9903 2011-06-30  Richard Henderson  <rth@redhat.com>
9904
9905         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
9906         Define a vector of this type.
9907         (regs_saved_in_regs): Use a VEC.
9908         (num_regs_saved_in_regs): Remove.
9909         (compare_reg_or_pc): New.
9910         (record_reg_saved_in_reg): Split out from...
9911         (dwarf2out_flush_queued_reg_saves): ... here.
9912         (clobbers_queued_reg_save): Update for VEC.
9913         (reg_saved_in): Likewise.
9914         (dwarf2out_frame_debug_init): Likewise.
9915         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
9916         (dwarf2out_frame_debug_cfa_register): Likewise.
9917
9918 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
9919
9920         PR tree-optimization/49572
9921         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
9922         type of the RHS instead of that of the LHS for the expression type.
9923
9924 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
9925
9926         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
9927         unconditionally.
9928
9929 2011-06-30  Richard Guenther  <rguenther@suse.de>
9930
9931         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
9932         * tree-ssa-structalias.c (create_variable_info_for): Do not
9933         add initial constraints for non-var-decls.  Properly handle
9934         globals in other ltrans partitions.
9935         (intra_create_variable_infos): Manually create constraints for
9936         the fake no-alias parameter.
9937         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
9938         and assert there are no clones.
9939
9940 2011-06-30  Richard Guenther  <rguenther@suse.de>
9941
9942         PR tree-optimization/46787
9943         * tree-data-ref.c (dr_address_invariant_p): Remove.
9944         (find_data_references_in_stmt): Invariant accesses are ok now.
9945         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
9946         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
9947         invariant loads.
9948
9949 2011-06-30  Martin Jambor  <mjambor@suse.cz>
9950
9951         PR tree-optimization/49094
9952         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
9953         (build_accesses_from_assign): Use it.
9954
9955 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
9956
9957         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
9958         handling of BUILT_IN_ASSUME_ALIGNED.
9959
9960         PR debug/49364
9961         * dwarf2out.c (output_abbrev_section): Don't return early
9962         if abbrev_die_table_in_use is 1.
9963         (dwarf2out_finish): Instead don't call output_abbrev_section
9964         nor emit abbrev_section_label in that case.
9965
9966 2011-06-30  Nick Clifton  <nickc@redhat.com>
9967
9968         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
9969         for the V850E.
9970
9971 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
9972
9973         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
9974         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
9975
9976 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
9977
9978         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
9979         both pattern and original statements if necessary.
9980         (vect_transform_loop): Likewise.
9981         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
9982         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
9983         Mark the pattern statement only if the original statement doesn't
9984         have its own uses.
9985         (process_use): Call vect_mark_relevant with additional parameter.
9986         (vect_mark_stmts_to_be_vectorized): Likewise.
9987         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
9988         (vect_analyze_stmt): Handle both pattern and original statements
9989         if necessary.
9990         (vect_transform_stmt): Don't store vectorized pattern statement
9991         in the original statement.
9992         (vect_is_simple_use_1): Use related pattern statement only if the
9993         original statement is irrelevant.
9994         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
9995
9996 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
9997
9998         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
9999         option.
10000         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
10001         entry.
10002         (TARGET_AVX128_OPTIMAL): New definition.
10003         * config/i386/i386.c (initial_ix86_tune_features): Initialize
10004         X86_TUNE_AVX128_OPTIMAL entry.
10005         (ix86_option_override_internal): Enable the generation
10006         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
10007         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
10008         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
10009
10010 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
10011
10012         PR tree-optimization/49539
10013         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
10014         names by means of stmt_references_abnormal_ssa_name.
10015         (associate_plusminus): Call can_propagate_from before propagating
10016         from definition statements.
10017         (ssa_forward_propagate_and_combine): Remove superfluous newline.
10018
10019 2011-06-29  Richard Guenther  <rguenther@suse.de>
10020
10021         * doc/invoke.texi: Document -scev dump modifier.
10022         * tree-pass.h (TDF_SCEV): New dump flag.
10023         * tree-dump.c (dump_option_value_in): Add scev.
10024         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
10025         * tree-scalar-evolution.c: Likewise.
10026
10027 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
10028
10029         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
10030         (cxa_type_match): Correct declaration.
10031         (__gnu_unwind_pr_common): Reconstruct additional indirection
10032         when __cxa_type_match returns succeeded_with_ptr_to_base.
10033
10034 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10035
10036         PR rtl-optimization/49114
10037         * reload.c (struct replacement): Remove SUBREG_LOC member.
10038         (push_reload): Do not set it.
10039         (push_replacement): Likewise.
10040         (subst_reload): Remove dead code.
10041         (copy_replacements): Remove assertion.
10042         (copy_replacements_1): Do not handle SUBREG_LOC.
10043         (move_replacements): Likewise.
10044         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
10045         Detect subregs via recursive descent instead of via SUBREG_LOC.
10046
10047 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
10048
10049         * config/avr/avr.c (avr_encode_section_info): Dispatch to
10050         default_encode_section_info.
10051
10052 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
10053
10054         PR tree-optimization/49545
10055         * builtins.c (get_object_alignment_1): Update function comment.
10056         Do not use DECL_ALIGN for functions, but test
10057         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
10058         * fold-const.c (get_pointer_modulus_and_residue): Don't check
10059         for functions here.
10060         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
10061
10062 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
10063
10064         PR debug/49567
10065         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
10066         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
10067
10068 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
10069
10070         PR target/34734
10071         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
10072         about uninitialized data attributed 'progmem' from here...
10073         (avr_encode_section_info): ...to this new function.
10074         (TARGET_ENCODE_SECTION_INFO): New define.
10075         (avr_section_type_flags): For data in ".progmem.data", remove
10076         section flag SECTION_WRITE.
10077
10078 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
10079
10080         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
10081         _xmulhisi3_exit.
10082         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
10083         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
10084         (__umulhisi3): Ditto.
10085         * config/avr/avr.md (mulhisi3): New insn expender.
10086         (umulhisi3): New insn expender.
10087         (*mulhisi3_call): New insn.
10088         (*umulhisi3_call): New insn.
10089
10090 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
10091
10092         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
10093
10094 2011-06-28  Richard Henderson  <rth@redhat.com>
10095
10096         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
10097         all code and arguments that handled pushes.  Update all callers.
10098
10099 2011-06-28  Richard Henderson  <rth@redhat.com>
10100
10101         * config/arm/arm.c (arm_output_function_prologue): Don't call
10102         thumb1_output_function_prologue.
10103         (arm_expand_prologue): Avoid dead store.
10104         (number_of_first_bit_set): Use ctz_hwi.
10105         (thumb1_emit_multi_reg_push): New.
10106         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
10107         to emit the entire prologue as rtl.
10108         (thumb1_output_interwork): Split out from
10109         thumb1_output_function_prologue.
10110         (thumb1_output_function_prologue): Remove.
10111         (arm_attr_length_push_multi): Handle thumb1.
10112         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
10113         (prologue_thumb1_interwork): New.
10114         (*push_multi): Allow thumb1; use push_mult_memory_operand.
10115         * config/arm/predicates.md (push_mult_memory_operand): New.
10116
10117 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
10118
10119         * config/sparc/sync.md (*stbar): Delete.
10120         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
10121
10122 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
10123
10124         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
10125
10126 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10127
10128         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
10129         (TARGET_64BIT_DEFAULT): Define.
10130         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
10131         of tm_file.
10132         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
10133
10134 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
10135
10136         * common.opt (in_lto_p): New Variable entry.
10137         * flags.h (in_lto_p): Move to common.opt.
10138         * gcc.c: Include params.h.
10139         (set_option_handlers): Also use common_handle_option and
10140         target_handle_option.
10141         (main): Call global_init_params, finish_params and init_options_struct.
10142         * opts.c (debug_type_names): Move from toplev.c.
10143         (print_filtered_help): Access quiet_flag through opts pointer.
10144         (common_handle_option): Return early in the driver for some options.
10145         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
10146         opts pointer.
10147         * toplev.c (in_lto_p): Move to common.opt.
10148         (debug_type_names): Move to opts.c.
10149         * Makefile.in (OBJS): Remove opts.o.
10150         (OBJS-libcommon-target): Add opts.o.
10151         (gcc.o): Update dependencies.
10152
10153 2011-06-28  Kai Tietz  <ktietz@redhat.com>
10154
10155         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
10156
10157 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10158
10159         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
10160         with '=' constraint modifier.
10161         (*divdf3_vfp): Likewise.
10162         ("*mulsf3_vfp"): Likewise.
10163         ("*muldf3_vfp"): Likewise.
10164         ("*mulsf3negsf_vfp"): Likewise.
10165         ("*muldf3negdf_vfp"): Likewise.
10166
10167 2011-06-28  Nick Clifton  <nickc@redhat.com>
10168
10169         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
10170         relaxation when performing an incremental link.
10171
10172 2011-06-28  Kai Tietz  <ktietz@redhat.com>
10173
10174         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
10175         within BB from last to first.
10176
10177 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
10178
10179         * genattr-common.c: New.  Based on genattr.c.
10180         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
10181         (MOSTLYCLEANFILES): Add insn-attr-common.h.
10182         (opts.o): Update dependencies.
10183         (.PRECIOUS): Add insn-attr-common.h.
10184         (simple_rtl_generated_h): Add insn-attr-common.h.
10185         (build/genattr-common.o): New.
10186         (genprogrtl): Add attr-common.
10187         * genattr.c (main): Include insn-attr-common.h.  Don't generate
10188         definitions of DELAY_SLOTS or INSN_SCHEDULING.
10189         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
10190
10191 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
10192
10193         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
10194         avr-*-* and avr-*-rtems* targets.
10195
10196         * config/avr/elf.h: New file.
10197         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
10198         (TARGET_ASM_SELECT_SECTION): Define.
10199         (INIT_SECTION_ASM_OP): Undefine.
10200         (FINI_SECTION_ASM_OP): Undefine.
10201         (READONLY_DATA_SECTION_ASM_OP): Undefine.
10202         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
10203         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
10204         * config/avr/avr.h:
10205         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
10206         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
10207         (MAX_OFILE_ALIGNMENT): Move to elf.h.
10208         (STRING_LIMIT): Move to elf.h.
10209         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
10210         (ASM_DECLARE_OBJECT_NAME): Remove.
10211         (ESCAPES): Remove.
10212         (ASM_OUTPUT_SKIP): Remove.
10213         (DWARF2_DEBUGGING_INFO): Remove.
10214         (OBJECT_FORMAT_ELF): Remove.
10215         (USER_LABEL_PREFIX): Remove.
10216         (ASM_OUTPUT_EXTERNAL): Remove.
10217         (ASM_OUTPUT_ASCII): Remove.
10218         (TYPE_ASM_OP): Remove.
10219         (SIZE_ASM_OP): Remove.
10220         (WEAK_ASM_OP): Remove.
10221         (STRING_ASM_OP): Remove.
10222         (SET_ASM_OP): Remove.
10223         (ASM_WEAKEN_LABEL): Remove.
10224         (TYPE_OPERAND_FMT): Remove.
10225         (ASM_DECLARE_FUNCTION_SIZE): Remove.
10226         (ASM_FINISH_DECLARE_OBJECT): Remove.
10227         (NO_DOLLAR_IN_LABEL): Remove.
10228         (ASM_GENERATE_INTERNAL_LABEL): Remove.
10229         (ASM_OUTPUT_CASE_LABEL): Remove.
10230         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
10231         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
10232         (gas_output_ascii): Remove.
10233         (gas_output_limited_string): Remove.
10234         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
10235         * config/avr/avr-protos.h
10236         (gas_output_ascii): Remove prototye.
10237         (gas_output_limited_string): Remove prototype.
10238
10239 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
10240
10241         PR target/48637
10242         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
10243         asm operands.
10244
10245 2011-06-27  Jan Hubicka  <jh@suse.cz>
10246
10247         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
10248         node instead of references in node.
10249
10250 2011-06-27  Richard Henderson  <rth@redhat.com>
10251
10252         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
10253         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
10254         inside ifdef.
10255
10256 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
10257
10258         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
10259
10260         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
10261         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
10262         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
10263         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
10264         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
10265         (evaluate_stmt, execute_fold_all_builtins): Handle
10266         BUILT_IN_ASSUME_ALIGNED.
10267         * tree-ssa-dce.c (propagate_necessity): Likewise.
10268         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
10269         call_may_clobber_ref_p_1): Likewise.
10270         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
10271         (expand_builtin_assume_aligned): New function.
10272         * doc/extend.texi (__builtin_assume_aligned): Document.
10273
10274         PR debug/49544
10275         * cselib.c (promote_debug_loc): If cselib_preserve_constants
10276         and l has two DEBUG_INSN owned locs instead of just one, adjust
10277         the second location's setting_insn too.
10278
10279 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10280
10281         PR libmudflap/38738
10282         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
10283
10284 2011-06-27  Nick Clifton  <nickc@redhat.com>
10285
10286         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
10287         bit position of highest bit set into a count of the high zero bits.
10288
10289 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
10290
10291         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
10292
10293 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
10294
10295         PR lto/48492
10296         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
10297         to a NULL parent.
10298
10299 2011-06-27  Richard Guenther  <rguenther@suse.de>
10300
10301         PR tree-optimization/49394
10302         * passes.c (execute_one_pass): Restore current_pass after
10303         applying IPA transforms.
10304
10305 2011-06-27  Kai Tietz  <ktietz@redhat.com>
10306
10307         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
10308         out of type precision after operation.
10309         (find_bswap): Take for limit value the integer auto-promotion
10310         into account.
10311
10312 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
10313
10314         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
10315         forward scan as well.
10316
10317 2011-06-27  Tristan Gingold  <gingold@adacore.com>
10318
10319         PR target/44241
10320         * config/vms/vms-protos.h: New file.
10321         * config/vms/vms-crtlmap.map: New file.
10322         * config/vms/vms.c: New file.
10323         * config/vms/make-crtlmap.awk: New file.
10324         * config/vms/vms-crtl.h: File removed.
10325         * config/vms/vms-crtl-64.h: File removed.
10326         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
10327         * config/alpha/vms64.h: Do not include vms-crtl-64.h
10328         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
10329         clear some builtins on VMS.  Calls vms_patch_builtins.
10330         (avms_asm_output_external): Remove.
10331         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
10332         (struct crtl_name_spec): Remove
10333         (DO_CTRL_NAMES): Remove.
10334         * config/ia64/vms.h (struct crtl_name_spec): Remove
10335         (DO_CTRL_NAMES): Remove.
10336         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
10337         clear some builtins on VMS.  Calls vms_patch_builtins.
10338         (ia64_asm_output_external): Remove DO_CRTL_NAME.
10339         * config/ia64/vms64.h: Do not include vms-crtl-64.h
10340         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
10341
10342 2011-06-27  Tristan Gingold  <gingold@adacore.com>
10343
10344         * config/alpha/alpha.c (alpha_end_function): Always generate .end
10345         directive on VMS.
10346
10347 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
10348
10349         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
10350         the function receives nonlocal gotos.
10351
10352 2011-06-27  Richard Guenther  <rguenther@suse.de>
10353
10354         PR tree-optimization/49536
10355         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
10356         For non-scalar inner types use a scalar type according to
10357         the scalar inner mode.
10358
10359 2011-06-27  Richard Guenther  <rguenther@suse.de>
10360
10361         PR tree-optimization/49365
10362         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
10363
10364 2011-06-27  Richard Guenther  <rguenther@suse.de>
10365
10366         PR tree-optimization/49169
10367         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
10368         the alignment of function decls.
10369
10370 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
10371
10372         PR target/47997
10373         * config/darwin.c (darwin_mergeable_string_section): Place string
10374         constants in '.cstring' rather than '.const' when CF/NSStrings are
10375         active.
10376
10377 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
10378
10379         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
10380         (emit_save_register_window): Likewise.
10381         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
10382         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
10383         Swap back %o7/%i7 in register naming.
10384
10385 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
10386
10387         PR driver/49371
10388         * config/darwin.c (darwin_override_options): Improve warning when
10389         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
10390         is given with fpie/fPIE.
10391         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
10392         * config/darwin9.h (PIE_SPEC): New.
10393
10394 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
10395
10396         * timevar.c (timevar_print): Increase width for display of timevar
10397         name.
10398
10399 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
10400
10401         PR c++/46400
10402         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
10403         instead of TYPE_CHAIN for chain_next for types.
10404
10405 2011-06-24  Richard Henderson  <rth@redhat.com>
10406
10407         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
10408         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
10409         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
10410         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
10411         (sparc_flat_expand_prologue): Emit individual instructions
10412         instead of one of the above.
10413
10414 2011-06-24  Easwaran Raman  <eraman@google.com>
10415
10416         PR rtl-optimization/49429
10417         PR target/49454
10418         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
10419         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
10420         used to copy y into x.
10421         * calls.c (initialize_argument_information): Mark
10422         an argument addressable if it is passed by invisible reference.
10423         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
10424         if it is passed by reference.
10425
10426 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
10427
10428         PR rtl-optimization/49504
10429         * rtlanal.c (nonzero_bits1): Properly handle addition or
10430         subtraction of a pointer in Pmode if pointers extend unsigned.
10431         (num_sign_bit_copies1): Likewise.
10432
10433 2011-06-24  Martin Jambor  <mjambor@suse.cz>
10434
10435         PR tree-optimizations/49516
10436         * tree-sra.c (sra_modify_assign): Choose the safe path for
10437         aggregate copies if we also did scalar replacements.
10438
10439 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10440
10441         PR target/49335
10442         * config/arm/predicates.md (add_operator): New.
10443         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
10444
10445 2011-06-24  Andi Kleen  <ak@linux.intel.com>
10446
10447         * tree-sra.c (type_internals_preclude_sra_p): Add msg
10448         parameter. Split up ifs and report reason in *msg.
10449         (reject): Add.
10450         (find_var_candiate): Add msg variable.
10451         Split up ifs and report reason to reject.
10452         (find_param_candidates): Add msg variable.
10453         Pass msg to type_internals_preclude_sra_p.
10454
10455 2011-06-23  Jeff Law  <law@redhat.com>
10456
10457         PR middle-end/48770
10458         * reload.h (reload): Change to return a bool.
10459         * ira.c (ira): If requested by reload, run a fast DCE pass after
10460         reload has completed.  Fix comment typo.
10461         * reload1.c (need_dce): New file scoped static.
10462         (reload): Set reload_completed here.  Return whether or not a DCE
10463         pass after reload is needed.
10464         (delete_dead_insn): Set need_dce as needed.
10465
10466         PR middle-end/49465
10467         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
10468         to detect threading through joiner block.  If there was already
10469         an edge to the new target, then do not change the PHI nodes.
10470
10471 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
10472
10473         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
10474         get_pointer_alignment to see if base isn't sufficiently aligned.
10475
10476 2011-06-23  Jan Hubicka  <jh@suse.cz>
10477
10478         PR tree-optimize/49373
10479         * tree-pass.h (all_late_ipa_passes): Declare.
10480         * cgraphunit.c (init_lowered_empty_function): Fix properties.
10481         (cgraph_optimize): Execute late passes; remove unreachable funcions
10482         after materialization.
10483         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
10484         LTOing.
10485         * passes.c (all_late_ipa_passes): Declare.
10486         (dump_passes, register_pass): Handle late ipa passes.
10487         (init_optimization_passes): Move ipa_pta to late passes; schedule
10488         fixup_cfg at beggining of all_passes.
10489         (apply_ipa_transforms): New function.
10490         (execute_one_pass): When doing simple ipa pass, apply all transforms.
10491
10492 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
10493
10494         * params.c: Include common/common-target.h.  Don't include tm.h.
10495         (lang_independent_params): Move from toplev.c.
10496         (global_init_params): New.
10497         * params.h (global_init_params): Declare.
10498         * target.def (default_params): Move to common-target.def.
10499         * toplev.c (lang_independent_options): Remove.
10500         (lang_independent_params): Move to params.c.
10501         (general_init): Use global_init_params.
10502         * common/common-target.def (option_default_params): Move from
10503         target.def.
10504         * common/config/ia64/ia64-common.c: Include params.h.
10505         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
10506         from ia64.c.
10507         * common/config/rs6000/rs6000-common.c: Include params.h.
10508         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
10509         from rs6000.c.
10510         * common/config/sh/sh-common.c: Include params.h.
10511         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
10512         from sh.c.
10513         * common/config/spu/spu-common.c: Include params.h.
10514         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
10515         from spu.c.
10516         * config/ia64/ia64.c (ia64_option_default_params,
10517         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
10518         * config/rs6000/rs6000.c (rs6000_option_default_params,
10519         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
10520         * config/sh/sh.c (sh_option_default_params,
10521         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
10522         * config/spu/spu.c (spu_option_default_params,
10523         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
10524         * Makefile.in (OBJS): Remove params.o.
10525         (OBJS-libcommon-target): Add params.o.
10526         (params.o, $(common_out_object_file)): Update dependencies.
10527         * doc/tm.texi: Regenerate.
10528
10529 2011-06-23  Alan Modra  <amodra@gmail.com>
10530
10531         PR bootstrap/49383
10532         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
10533         invocation for 2011-06-09 changes.
10534
10535 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
10536
10537         PR libgomp/49490
10538         * omp-low.c (expand_omp_for_static_nochunk): Only
10539         use n ceil/ nthreads size for the first n % nthreads threads in the
10540         team instead of all threads except for the last few ones which
10541         get less work or none at all.
10542
10543         PR debug/49496
10544         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
10545         uses.
10546
10547 2011-06-22  Richard Guenther  <rguenther@suse.de>
10548
10549         PR tree-optimization/49493
10550         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
10551         Refer to the alias target of variables.
10552         (associate_varinfo_to_alias_1): Remove.
10553         (ipa_pta_execute): Do not associate aliases with anything.
10554         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
10555         (cgraph_function_node): Likewise.
10556         (cgraph_function_or_thunk_node): Likewise.
10557         (varpool_variable_node): Likewise.
10558
10559 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
10560
10561         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
10562         * config.gcc (arm*-*-linux*): Default to gnu tls.
10563         (arm*-*-*): Add --with-tls option.
10564         (all_defaults): Add 'tls'.
10565
10566 2011-06-22  Richard Henderson  <rth@redhat.com>
10567
10568         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
10569         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
10570         (dwarf2out_frame_debug_cfa_window_save): Rename from
10571         dwarf2out_window_save; make static.
10572         * tree.h (dwarf2out_window_save): Don't declare.
10573
10574         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
10575         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
10576         (emit_save_register_window): Rename from gen_save_register_window;
10577         emit the insn and add REG_CFA_* notes.
10578         (sparc_expand_prologue): Update to match.
10579         * config/sparc/sparc.md (save_register_window_1): Simplify from
10580         save_register_window<P:mode>.
10581
10582 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
10583
10584         PR target/49497
10585         * config/i386/i386.md (*lea_general_2): Always allow SImode.
10586         (*lea_general_2_zext): Likewise.
10587         (imul to lea peepholes): Use const359_operand and check
10588         TARGET_PARTIAL_REG_STALL.
10589
10590         * config/i386/predicates.md (const359_operand): New.
10591
10592 2011-06-22  Michael Matz  <matz@suse.de>
10593
10594         * cgraphunit.c (assemble_thunk): Use correct return type.
10595
10596 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
10597             Dmitry Melnik  <dm@ispras.ru>
10598
10599         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
10600         (neon_output_shift_immediate): Ditto.
10601         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
10602         prototype.
10603         (neon_output_shift_immediate): Ditto.
10604         * config/arm/neon.md (vashl<mode>3): Modified constraint.
10605         (vashr<mode>3_imm): New insn pattern.
10606         (vlshr<mode>3_imm): Ditto.
10607         (vashr<mode>3): Modified constraint.
10608         (vlshr<mode>3): Ditto.
10609         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
10610         predicate.
10611         (imm_for_neon_rshift_operand): Ditto.
10612         (imm_lshift_or_reg_neon): Ditto.
10613         (imm_rshift_or_reg_neon): Ditto.
10614
10615         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
10616
10617 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
10618
10619         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
10620         builtin calls even if likelyvalue is not CONSTANT.
10621         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
10622         Return get_value_for_expr of first operand
10623         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
10624         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
10625         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
10626         their non-checking counterparts.
10627         (call_may_clobber_ref_p_1): Likewise.
10628         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
10629         like their non-checking counterparts.
10630         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10631         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
10632         like their non-checking counterparts.
10633         (find_func_clobbers): Likewise.
10634         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
10635         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
10636
10637         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
10638         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
10639         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
10640         of base type reference as argument.
10641         (resolve_addr_in_expr): Likewise.  Fix keep computation.
10642         (convert_descriptor_to_signed): Renamed to...
10643         (convert_descriptor_to_mode): ... this.  For wider types convert to
10644         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
10645         (typed_binop): New function.
10646         (scompare_loc_descriptor, ucompare_loc_descriptor,
10647         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
10648         default to unsigned type instead of signed.
10649
10650         PR debug/47858
10651         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
10652         (gimple_build_debug_source_bind_stat): New prototype.
10653         (gimple_build_debug_source_bind): Define.
10654         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
10655         gimple_debug_source_bind_get_value,
10656         gimple_debug_source_bind_get_value_ptr,
10657         gimple_debug_source_bind_set_var,
10658         gimple_debug_source_bind_set_value): New inlines.
10659         * gimple.c (gimple_build_debug_source_bind_stat): New function.
10660         * gimple-pretty-print.c (dump_gimple_debug): Handle
10661         GIMPLE_DEBUG_SOURCE_BIND.
10662         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
10663         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
10664         * tree-parloops.c (eliminate_local_variables,
10665         separate_decls_in_region): Likewise.
10666         (separate_decls_in_region_debug): Renamed from
10667         separate_decls_in_region_debug_bind.  Handle
10668         gimple_debug_source_bind_p.
10669         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
10670         prototypes.
10671         (DECL_HAS_DEBUG_ARGS_P): Define.
10672         (struct tree_function_decl): Add has_debug_args_flag field.
10673         * tree.c (debug_args_for_decl): New variable.
10674         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
10675         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
10676         (rewrite_debug_stmt_uses): New function.
10677         (rewrite_stmt): Use it to rewrite debug stmt uses.
10678         * rtl.def (DEBUG_PARAMETER_REF): New.
10679         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
10680         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
10681         DEBUG_PARAMETER_REF.
10682         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
10683         * print-rtl.c (print_rtx): Likewise.
10684         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
10685         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
10686         debug stmts in the first bb.
10687         * tree-inline.c (remap_ssa_name): If remapping default def
10688         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
10689         a source bind debug stmt.
10690         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
10691         (maybe_move_debug_stmts_to_successors): Likewise.
10692         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
10693         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
10694         debug args vector from old_decl to new_decl.
10695         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
10696         or modified parameters, add debug bind stmts before call
10697         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
10698         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
10699         on DECL_DEBUG_EXPRs from debug args vector.
10700         (expand_debug_source_expr): New function.
10701         (expand_debug_locations): Use it for source bind insns.
10702         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
10703         * var-tracking.c (prepare_call_arguments): Add debug args
10704         to call_arguments if any.
10705         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
10706         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
10707         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
10708         (get_ref_die_offset, parameter_ref_descriptor): New functions.
10709         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
10710         (gen_subprogram_die): Handle parameters identified by
10711         DEBUG_PARAMETER_REF.
10712
10713 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
10714
10715         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
10716         * doc/install.texi (Configuration): Document --with-tls.
10717         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
10718         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
10719         (arm_tls_descseq_addr): New.
10720         (legitimize_tls_address): Add tlsdesc support.
10721         (arm_cannot_copy_insn_p): Check for tlscall.
10722         (arm_emit_tls_decoration): Likewise.
10723         * config/arm/arm.h (TARGET_GNU2_TLS): New.
10724         (OPTION_DEFAULT_SPECS): Add with-tls support.
10725         * config/arm/arm.md (R1_REGNUM): Define.
10726         (tlscall): New.
10727         * config/arm/arm.opt (tls_type): New enumeration type and values.
10728         (mtls-dialect): New switch.
10729         * config/arm/arm-opts.h (enum tls_type): New.
10730
10731 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
10732
10733         * attribs.c (register_attribute): Added assert to check that all
10734         attribute specs are registered with a name that is not empty and
10735         does not start with '_'.
10736         (decl_attributes): Avoid the lookup of the "naked" attribute spec
10737         if the function has no attributes.
10738         * tree.c (is_attribute_with_length_p): Removed.
10739         (is_attribute_p): Removed.
10740         (private_is_attribute_p): New.
10741         (private_lookup_attribute): New.
10742         (lookup_attribute): Removed.
10743         (lookup_ident_attribute): New.
10744         (remove_attribute): Require the first argument to be in the form
10745         'text', not '__text__'.  Updated asserts.
10746         (merge_attributes): Use lookup_ident_attributes instead of
10747         lookup_attribute.
10748         (merge_dllimport_decl_attributes): Use remove_attribute.
10749         (attribute_list_contained): Likewise.
10750         (attribute_list_equal): Immediately return 1 if the arguments are
10751         identical pointers.
10752         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
10753         'int'.  Require the first argument to be in the form 'text', not
10754         '__text__'.  Require the second argument to be an identifier.
10755         (lookup_attribute): Made inline.  Require the first argument to be
10756         in the form 'text', not '__text__'.
10757         (private_is_attribute_p, private_lookup_attribute): New.
10758         Updated comments.
10759
10760 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
10761
10762         * builtins.c: Add sync_ or SYNC__ to builtin names.
10763         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
10764         * omp-low.c: Add sync_ or SYNC__ to builtin names.
10765
10766 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
10767
10768         PR target/33049
10769         * config/avr/avr.md (extzv): New expander.
10770         (*extzv): New insn.
10771         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
10772         * config/avr/constraints.md (C04): New constraint.
10773         * doc/md.texi (Machine Constraints): Document it.
10774
10775 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
10776
10777         PR middle-end/49489
10778         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
10779         unsignedp argument instead of 1 for clrsb_optab.
10780         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
10781         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
10782         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
10783         * optabs.c (widen_leading): Call widen_operand and expand_unop
10784         with 0 as unsignedp argument instead of 1 for clrsb_optab.
10785         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
10786
10787 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
10788
10789         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
10790
10791 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
10792
10793         * gensupport.c (add_define_attr): New static function.
10794         (is_predicable): Allow multi-alternative lists for the "predicable"
10795         attribute.
10796         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
10797         (process_one_cond_exec): Call alter_attrs_for_insn.
10798         * doc/md.texi (Defining Attributes): Mention some standard names.
10799         (Conditional Execution): Update documentation for "predicable".
10800
10801         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
10802         __builtin_clrsbll): Document.
10803         * doc/rtl.texi (clrsb): New entry.
10804         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
10805         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
10806         (expand_unop): Handle clrsb_optab.
10807         (init_optabs): Initialize it.
10808         * optabs.h (enum optab_index): New entry OTI_clrsb.
10809         (clrsb_optab): Define.
10810         * genopinit.c (optabs): Add an entry for it.
10811         * builtins.c (expand_builtin): Handle clrsb builtin functions.
10812         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
10813         BUILT_IN_CLRSBLL): New.
10814         * rtl.def (CLRSB): New code.
10815         * dwarf2out.c (mem_loc_descriptor): Handle it.
10816         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
10817         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
10818         and popcount.
10819         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
10820         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
10821         (__ctzDI2): Move declaration.
10822         * config/bfin/bfin.md (clrsbsi2): New expander.
10823         (signbitssi2): Use the CLRSB rtx.
10824         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
10825         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
10826
10827 2011-06-21  Richard Guenther  <rguenther@suse.de>
10828
10829         * ipa-inline-transform.c (inline_transform): Fix previous change.
10830
10831 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
10832
10833         PR tree-optimization/49478
10834         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
10835         with constant operand.
10836
10837 2011-06-21  Richard Guenther  <rguenther@suse.de>
10838
10839         * ipa-inline-transform.c (inline_transform): Fix typo.
10840
10841 2011-06-21  Richard Guenther  <rguenther@suse.de>
10842
10843         PR tree-optimization/49483
10844         * tree-vect-stmts.c (vectorizable_assignment): Also handle
10845         VIEW_CONVERT_EXPR conversions.
10846
10847 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
10848
10849         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
10850         * config/avr/avr-tables.opt: New file (generated).
10851         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
10852         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
10853         avr-mcus.def.
10854         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
10855         (avr_option_override): Don't process -mmcu= argument here.  Set
10856         avr_current_device using avr_mcu_index.
10857         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
10858         * config/avr/avr.opt (mmcu=): Use Enum.
10859         * config/avr/t-avr (avr-devices.o): Update dependencies.
10860         ($(srcdir)/config/avr/avr-tables.opt): New.
10861         * target.def (help): Remove.
10862         * doc/tm.texi.in (TARGET_HELP): Remove.
10863         * doc/tm.texi: Regenerate.
10864         * opts.c: Don't include target.h.
10865         (common_handle_option): Don't call targetm.help.
10866         * system.h (TARGET_HELP): Poison.
10867         * Makefile.in (opts.o): Update dependencies.
10868
10869 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10870
10871         * config/usegld.h: New file.
10872         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
10873         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
10874         (LIB_SPEC): Likewise.  Search /lib.
10875         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
10876         (RDYNAMIC_SPEC): Handle GNU ld.
10877         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
10878         Define.
10879         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
10880         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
10881         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
10882         (STACK_CHECK_STATIC_BUILTIN): Define.
10883         * config/sol2.opt (compat-bsd): Remove.
10884         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
10885         * config/sol2-bi.h: New file.
10886         * config/sol2-gld.h: Remove.
10887         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
10888         (NO_DBX_BNSYM_ENSYM): Remove.
10889         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
10890         (STACK_CHECK_STATIC_BUILTIN): Remove.
10891         Test USE_GLD instead of TARGET_GNU_LD.
10892         * config/i386/sol2-10.h: Rename to ...
10893         * config/i386/sol2-bi.h .. this.
10894         (SUBTARGET_EXTRA_SPECS): Redefine.
10895         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
10896         (MULTILIB_DEFAULTS): Remove.
10897         (DEFAULT_ARCH32_P): Define.
10898         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
10899         (ARCH64_SUBDIR): Define.
10900         Test USE_GLD instead of TARGET_GNU_LD.
10901         (I386_EMULATION): Rename to ...
10902         (ARCH32_EMULATION): ... this.
10903         (X86_64_EMULATION): Rename to ...
10904         (ARCH64_EMULATION): ... this.
10905         (TARGET_LD_EMULATION): Remove.
10906         (LINK_ARCH_SPEC): Remove.
10907         * config/i386/sol2-gas.h: Remove.
10908         * config/i386/t-sol2-10: Rename to ...
10909         * config/i386/t-sol2-64: ... this.
10910         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
10911         (AS_SPARC64_FLAG): Define.
10912         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
10913         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
10914         depending on TARGET_CPU_DEFAULT.
10915         (CPP_CPU_SPEC): Redefine.
10916         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
10917         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
10918         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
10919         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
10920         ASM_ARCH_DEFAULT_SPEC): Redefine.
10921         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
10922         LINK_ARCH_DEFAULT_SPEC.
10923         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
10924         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
10925         (ARCH64_SUBDIR): Define.
10926         (LINK_ARCH64_SPEC): Redefine.
10927         (CC1_SPEC): Redefine.
10928         (OPTION_DEFAULT_SPECS): Redefine.
10929         (MULTILIB_DEFAULTS): Define.
10930         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
10931         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
10932         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
10933         (NO_DBX_BNSYM_ENSYM): Remove.
10934         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
10935         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
10936         (TARGET_ASM_NAMED_SECTION): Likewise.
10937         (STACK_CHECK_STATIC_BUILTIN): Remove.
10938         * config/sparc/sol2-bi.h: Remove.
10939         * config/sparc/sol2-gas-bi.h: Remove.
10940         * config/sparc/sol2-gas.h: Remove.
10941         * config/sparc/sol2-gld-bi.h: Remove.
10942         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
10943         common parts ...
10944         (*-*-solaris2*): ... here.
10945
10946 2011-06-21  Christian Bruel  <christian.bruel@st.com>
10947
10948         PR other/43564
10949         * ipa-inline.c (can_inline_edge_p): Check
10950         !DECL_DISREGARD_INLINE_LIMITS.
10951
10952 2011-06-21  Christian Bruel  <christian.bruel@st.com>
10953
10954         PR middle-end/49139
10955         * cgraphunit.c (process_function_and_variable_attributes): warn when
10956         always_inline functions that are not inline.
10957         * ipa-inline-transform.c (inline_transform): Always call
10958         optimize_inline.
10959         * tree-inline.c (tree_inlinable_function_p): Use error instead
10960         of sorry.
10961         (expand_call_inline): Likewise.
10962
10963 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
10964
10965         * Makefile.in (dg_target_exps): Set.
10966         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
10967         instead of 7, try to divide it more evenly.
10968
10969 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
10970
10971         PR target/49089
10972         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
10973         (avx256_split_unaligned_store): New definition.
10974         (ix86_option_override_internal): Enable avx256 unaligned load/store
10975         splitting only when avx256_split_unaligned_load/store is set.
10976
10977 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
10978
10979         * regrename.c (scan_rtx_reg): Handle the case where we write to an
10980         open chain in a smaller mode without failing the entire block.
10981
10982 2011-06-21  Alan Modra  <amodra@gmail.com>
10983
10984         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
10985         CONST high part large-toc address.
10986         (rs6000_tls_referenced_p): Make static.
10987         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
10988
10989 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10990
10991         PR target/49385
10992         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
10993         one of the operands is a register.
10994
10995 2011-06-20  Kai Tietz  <ktietz@redhat.com>
10996
10997         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
10998         operations in combination with binary and.
10999
11000 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
11001
11002         * regrename.c (do_replace): Don't update notes.
11003
11004 2011-06-20  Alan Modra  <amodra@gmail.com>
11005
11006         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
11007         of toc-relative address in CONST.
11008         (rs6000_delegitimize_address): Recognize changed address.
11009         (rs6000_legitimize_reload_address): Likewise.
11010         (rs6000_emit_move): Don't force these constants to memory.
11011         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
11012         toc-relative address in CONST.
11013         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
11014         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
11015
11016 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
11017
11018         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
11019         (count_trailing_zeros): Likewise.
11020
11021 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
11022
11023         PR other/49325
11024         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
11025         .init_array can be used with .ctors on targets.
11026         * configure: Regenerated.
11027
11028 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
11029
11030         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
11031         if the element type is volatile.
11032
11033 2011-06-18  Jan Hubicka  <jh@suse.cz>
11034
11035         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
11036         extra name aliases.
11037         (lto_symtab_resolve_can_prevail_p): Likewise.
11038         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
11039         * cgraphbuild.c (record_reference): Remove extra body alias code.
11040         (mark_load): Likewise.
11041         (mark_store): Likewise.
11042         * cgraph.h (varpool_node): Remove extra_name filed;
11043         add alias_of and extraname_alias.
11044         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
11045         (varpool_alias_aliased_node): New inline function.
11046         (varpool_variable_node): New function.
11047         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
11048         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
11049         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
11050         (input_varpool_node): Likewise.
11051         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
11052         (varpool_externally_visible_p): Remove extra body alias code.
11053         (function_and_variable_visibility): Likewise.
11054         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
11055         (ipa_pta_execute): Use it.
11056         * varpool.c (varpool_remove_node): Remove extra name alias code.
11057         (varpool_mark_needed_node): Likewise.
11058         (varpool_analyze_pending_decls): Analyze aliases.
11059         (assemble_aliases): New functoin.
11060         (varpool_assemble_decl): Use it.
11061         (varpool_create_variable_alias): New function.
11062         (varpool_extra_name_alias): Rewrite.
11063         (varpool_for_node_and_aliases): New function.
11064
11065 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
11066
11067         PR target/49411
11068         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
11069         last_arg_constant and last argument doesn't match its predicate,
11070         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
11071         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
11072         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
11073         spelling of error message.
11074         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
11075         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
11076         const_0_to_255_operand instead of const_int_operand.
11077
11078         Revert:
11079         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
11080
11081         * config/i386/sse.md (blendbits): Remove mode attribute.
11082         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
11083         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
11084         Check integer value of operand 3 in insn constraint.
11085
11086 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
11087
11088         PR rtl-optimization/48542
11089         * reload.c (find_equiv_reg): Stop looking when finding a
11090         setjmp-type call.
11091         * reload1.c (reload_as_needed): Invalidate all reload
11092         registers when crossing a setjmp-type call.
11093
11094 2011-06-16  Jeff Law  <law@redhat.com>
11095
11096         * tree-ssa-threadupdate.c (struct redirection_data): New field
11097         intermediate_edge.
11098         (THREAD_TARGET2): Define.
11099         (redirection_data_eq): Also check that the intermediate edge is equal.
11100         (lookup_redirection_data): Drop useless argument.  Extract the
11101         outgoing_edge and intermediate edge from E.  Callers updated.
11102         (copy_phi_args, update_destination_phis): New functions.
11103         (fix_duplicate_block_edges): Likewise.
11104         (create_edge_and_update_destination_phis): Duplicate all the edges
11105         hung off e->aux.  Use copy_phi_args.
11106         (create_duplicates): Use fix_duplicate_block_edges.
11107         (fixup_template_block): Likewise.
11108         (redirect_edges): If necessary, redirect the joiner block's incoming
11109         edge to the duplicate of the joiner block.
11110         (thread_block): Don't muck up loops when threading through a joiner
11111         block.
11112         (thread_through_loop_header): Handle threading through a joiner block.
11113         (mark_threaded_blocks, register_jump_thread): Likewise.
11114         * tree-flow.h (register_jump_thread): Add new argument.  Callers
11115         updated.
11116         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
11117         (thread_across_edge): Handle threading through a joiner block.
11118
11119 2011-06-16  Martin Jambor  <mjambor@suse.cz>
11120
11121         PR tree-optimization/49343
11122         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
11123         calculate offset, provide 2nd operand for the new COMPONENT_REF.
11124
11125 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
11126
11127         * config/darwin-protos.h (machopic_select_rtx_section): Move to
11128         inside RTX_CODE ifdef.
11129
11130 2011-06-16  Tom de Vries  <tom@codesourcery.com>
11131
11132         PR target/45098
11133         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
11134         Disallow NULL pointer for pointer arithmetic.
11135
11136 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11137
11138         PR target/49398
11139         Revert.
11140         2011-06-10  Wei Guozhi  <carrot@google.com>
11141
11142         PR target/45335
11143         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
11144         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
11145         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
11146         related peephole2.
11147         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
11148         related peephole2.
11149         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
11150         (arm_legitimate_ldrd_p): New prototype.
11151         (arm_output_ldrd): New prototype.
11152         * config/arm/arm.c (arm_check_ldrd_operands): New function.
11153         (arm_legitimate_ldrd_p): New function.
11154         (arm_output_ldrd): New function.
11155
11156 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
11157
11158         PR middle-end/46500
11159         * doc/tm.texi.in: Update Copyright date.
11160         * doc/tm.texi: Regenerate.
11161         * targhooks.c (default_setup_incoming_varargs): Replace
11162         CUMULATIVE_ARGS* argument type with cumulative_args_t.
11163         (default_pretend_outgoing_varargs_named): Likewise.
11164         (hook_pass_by_reference_must_pass_in_stack): Likewise.
11165         (hook_callee_copies_named): Likewise.
11166         (default_function_arg_advance): Likewise.
11167         (default_function_arg): Likewise.
11168         (default_function_incoming_arg): Likewise.
11169         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
11170         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
11171         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
11172         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
11173         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
11174         * targhooks.h (default_setup_incoming_varargs): Likewise.
11175         (default_pretend_outgoing_varargs_named): Likewise.
11176         (hook_pass_by_reference_must_pass_in_stack): Likewise.
11177         (hook_callee_copies_named): Likewise.
11178         (default_function_arg_advance): Likewise.
11179         (default_function_arg): Likewise.
11180         (default_function_incoming_arg): Likewise.
11181         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
11182         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
11183         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
11184         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
11185         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
11186         * target.def (pass_by_reference): Likewise.
11187         (setup_incoming_varargs, strict_argument_naming): Likewise.
11188         (pretend_outgoing_varargs_named, callee_copies): Likewise.
11189         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
11190         (function_incoming_arg): Likewise.
11191         * target.h: Don't include "tm.h" .
11192         (cumulative_args_t): New typedef.
11193         [GCC_TM_H] (get_cumulative_args): New static inline function.
11194         [GCC_TM_H] (pack_cumulative_args): Likewise.
11195         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
11196         argument type with cumulative_args_t.
11197         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
11198         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
11199         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
11200         (frv_arg_partial_bytes, frv_function_arg): Likewise.
11201         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
11202         (frv_function_arg_1): Likewise.
11203         * config/s390/s390.c (s390_pass_by_reference): Likewise.
11204         (s390_function_arg_advance, s390_function_arg): Likewise.
11205         * config/m32c/m32c.c (m32c_function_arg): Likewise.
11206         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
11207         (m32c_strict_argument_naming): Likewise.
11208         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
11209         (spu_function_arg_advance): Likewise.
11210         (spu_setup_incoming_varargs): Likewise.  Make static.
11211         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
11212         Remove prototype.
11213         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
11214         CUMULATIVE_ARGS* argument type with cumulative_args_t.
11215         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
11216         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
11217         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
11218         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
11219         (mep_pass_by_reference, mep_function_arg): Likewise.
11220         (mep_function_arg_advance): Likewise.
11221         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
11222         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
11223         (m32r_function_arg, m32r_function_arg_advance): Likewise.
11224         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
11225         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
11226         (ix86_function_arg, ix86_pass_by_reference): Likewise.
11227         (ix86_setup_incoming_varargs): Likewise.
11228         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
11229         (sh_strict_argument_naming): Likewise.
11230         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
11231         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
11232         (sh_function_arg_advance, sh_function_arg): Likewise.
11233         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
11234         (pdp11_function_arg_advance): Likewise.
11235         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
11236         Likewise.
11237         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
11238         * config/avr/avr.c (avr_function_arg): Likewise.
11239         (avr_function_arg_advance): Likewise.
11240         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
11241         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
11242         (xtensa_function_arg_1): Likewise.
11243         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
11244         Likewise.
11245         (xstormy16_function_arg): Likewise.
11246         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
11247         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
11248         (fr30_function_arg_advance): Likewise.
11249         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
11250         (lm32_function_arg, lm32_function_arg_advance): Likewise.
11251         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
11252         (moxie_function_arg, moxie_function_arg_advance): Likewise.
11253         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
11254         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
11255         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
11256         (cris_function_arg, cris_function_incoming_arg): Likewise.
11257         (cris_function_arg_advance, cris_function_arg_1): Likewise.
11258         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
11259         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
11260         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
11261         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
11262         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
11263         (mn10300_arg_partial_bytes): Likewise.
11264         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
11265         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
11266         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
11267         (ia64_function_arg_1): Likewise.
11268         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
11269         (m68k_function_arg): Likewise.
11270         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
11271         (rs6000_function_arg, setup_incoming_varargs): Likewise.
11272         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
11273         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
11274         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
11275         (picochip_arg_advance): Likewise.
11276         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
11277         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
11278         (mcore_function_arg_advance): Likewise.
11279         * config/score/score.c (score_pass_by_reference): Likewise.
11280         (score_function_arg_advance): Likewise.
11281         (score_arg_partial_bytes): Likewise.  Make static.
11282         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
11283         * config/arm/arm.c (arm_arg_partial_bytes): Replace
11284         CUMULATIVE_ARGS* argument type with cumulative_args_t.
11285         (arm_function_arg, arm_function_arg_advance): Likewise.
11286         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
11287         * config/pa/pa.c (pa_pass_by_reference): Likewise.
11288         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
11289         (pa_function_arg): Likewise.
11290         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
11291         (mips_function_arg, mips_function_arg_advance): Likewise.
11292         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
11293         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
11294         * config/vax/vax.c (vax_function_arg): Likewise.
11295         (vax_function_arg_advance): Likewise.
11296         * config/h8300/h8300.c (h8300_function_arg): Likewise.
11297         (h8300_function_arg_advance): Likewise.
11298         * config/v850/v850.c (v850_pass_by_reference): Likewise.
11299         (v850_strict_argument_naming, v850_function_arg): Likewise.
11300         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
11301         (v850_setup_incoming_varargs): Likewise.
11302         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
11303         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
11304         (mmix_function_arg, mmix_pass_by_reference): Likewise.
11305         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
11306         with const void *.
11307         * config/bfin/bfin.c (setup_incoming_varargs): Replace
11308         CUMULATIVE_ARGS* argument type with cumulative_args_t.
11309         (bfin_function_arg_advance, bfin_function_arg): Likewise.
11310         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
11311         * calls.c (emit_call_1): Change type of args_so_far to
11312         cumulative_args_t.  Changed all callers.
11313         (initialize_argument_information): Likewise.
11314         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
11315         * dse.c (get_call_args): Likewise.
11316         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
11317         * function.c (pass_by_reference, reference_callee_copied): Likewise.
11318         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
11319         New member args_so_far_v.  Changed all users.
11320         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
11321         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
11322         * config/mips/mips.c (mips_output_args_xfer): Likewise.
11323         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
11324         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
11325         * config/microblaze/microblaze.c (microblaze_expand_prologue):
11326         Likewise.
11327         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
11328         m32r_pass_by_reference.
11329
11330 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
11331
11332         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
11333         argument to be a VEC of statements.
11334         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
11335         assert that pattern statements have to have their vector type set.
11336         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
11337         Change the first argument to be a VEC of statements.  Update
11338         documentation.
11339         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
11340         (vect_handle_widen_mult_by_const): New function.
11341         (vect_recog_widen_mult_pattern):  Change the first argument to be a
11342         VEC of statements.  Update documentation.  Check that the constant is
11343         INTEGER_CST.  Support multiplication by a constant that fits an
11344         intermediate type - call vect_handle_widen_mult_by_const.
11345         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
11346         call.  Handle additional pattern statements if necessary.
11347
11348 2011-06-16  Nick Clifton  <nickc@redhat.com>
11349
11350         PR target/49427
11351         * config.gcc: Set cpu_type to v850 for any V850 architecture.
11352         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
11353         md_file, extra_modes, out_file and extra_options are these are all
11354         deduced from cpu_type.
11355
11356 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
11357
11358         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
11359         truncation mask to 63.
11360
11361 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
11362
11363         PR target/49313
11364         PR target/29524
11365         * longlong.h: Add AVR support:
11366         (count_leading_zeros): New macro.
11367         (count_trailing_zeros): New macro.
11368         (COUNT_LEADING_ZEROS_0): New macro.
11369         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
11370         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
11371         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
11372         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
11373         (LIB2FUNCS_EXCLUDE): Add _clz.
11374         * config/avr/libgcc.S (XCALL): Move up in file.
11375         (XJMP): New C Macro.
11376         (DEFUN): New asm macro.
11377         (ENDF): New asm macro.
11378         (__ffssi2): New function.
11379         (__ffshi2): New function.
11380         (__loop_ffsqi2): New function.
11381         (__ctzsi2): New function.
11382         (__ctzhi2): New function.
11383         (__clzdi2): New function.
11384         (__clzsi2): New function.
11385         (__clzhi2): New function.
11386         (__paritydi2): New function.
11387         (__paritysi2): New function.
11388         (__parityhi2): New function.
11389         (__parityqi2): New function.
11390         (__popcounthi2): New function.
11391         (__popcountsi2): New function.
11392         (__popcountdi2): New function.
11393         (__popcountqi2): New function.
11394         (__bswapsi2): New function.
11395         (__bswapdi2): New function.
11396         (__ashldi3): New function.
11397         (__ashrdi3): New function.
11398         (__lshrdi3): New function.
11399         Fix suspicous lines.
11400
11401 2011-06-16  Richard Guenther  <rguenther@suse.de>
11402
11403         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
11404         the same as x != 0.
11405         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
11406         to (bool) X & 1.
11407         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
11408         equality compares against zero for the lower bit.
11409
11410 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
11411
11412         PR tree-optimization/49419
11413         * tree-vrp.c (execute_vrp): Call init_range_assertions
11414         before estimate_numbers_of_iterations, call
11415         free_number_of_iterations_estimates before calling
11416         remove_range_assertions.
11417
11418 2011-06-16  Revital Eres  <revital.eres@linaro.org>
11419
11420         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
11421         (struct partial_schedule): Add rows_length field.
11422         (verify_partial_schedule): Check rows_length.
11423         (ps_insert_empty_row): Handle rows_length.
11424         (create_partial_schedule): Likewise.
11425         (free_partial_schedule): Likewise.
11426         (reset_partial_schedule): Likewise.
11427         (create_ps_insn): Remove rest_count argument.
11428         (remove_node_from_ps): Update rows_length.
11429         (add_node_to_ps): Update rows_length and call create_ps_insn
11430         without passing row_rest_count.
11431         (rotate_partial_schedule): Update rows_length.
11432
11433 2011-06-16  Revital Eres  <revital.eres@linaro.org>
11434
11435         * ddg.c (add_intra_loop_mem_dep): New function.
11436         (build_intra_loop_deps): Call it.
11437
11438 2011-06-13  Jeff Law  <law@redhat.com>
11439
11440         * df-problems.c (df_lr_local_compute): Manually CSE
11441         PIC_OFFSET_TABLE_REGNUM.
11442         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
11443         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
11444
11445 2011-06-13  Jan Hubicka  <jh@suse.cz>
11446
11447         * cgraphunit.c (handle_alias_pairs): New function.
11448         (cgraph_finalize_compilation_unit): Use it.
11449         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
11450         as externally visible.
11451
11452 2011-06-15  Richard Guenther  <rguenther@suse.de>
11453
11454         * expr.c (expand_expr_real_2): Reduce all integral types to
11455         bitfield precision.
11456         (expand_expr_real_1): Likewise.
11457
11458 2011-06-15  Martin Jambor  <mjambor@suse.cz>
11459
11460         PR tree-optimization/48613
11461         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
11462         ipa_node_params_vector is NULL.
11463
11464 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
11465
11466         PR debug/49382
11467         * dwarf2out.c (dw_loc_list_node): Add force field.
11468         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
11469         location in the list, even if it is modified before first real insn.
11470         (output_loc_list): Emit empty ranges with force flag set.
11471         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
11472
11473 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
11474
11475         PR target/49349
11476         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
11477         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
11478         above a fence.  Update comments.
11479         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
11480         placed just above it.  Do not allow NULL place_to_insert.
11481
11482 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
11483
11484         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
11485         (slpeel_tree_peel_loop_to_edge): Don't call
11486         remove_dead_stmts_from_loop.
11487         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
11488         remove irrelevant pattern statements.  For irrelevant statements
11489         check if it is the last statement of a detected pattern, use
11490         corresponding pattern statement instead.
11491         (destroy_loop_vec_info): No need to remove pattern statements,
11492         only free stmt_vec_info.
11493         (vect_transform_loop): For irrelevant statements check if it is
11494         the last statement of a detected pattern, use corresponding
11495         pattern statement instead.
11496         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
11497         pattern statements.  Set basic block for the new statement.
11498         (vect_pattern_recog): Update documentation.
11499         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
11500         operands of pattern statements.
11501         (vectorizable_call): Fix printing.  In case of a pattern statement
11502         use the lhs of the original statement when creating a dummy
11503         statement to replace the original call.
11504         (vect_analyze_stmt): For irrelevant statements check if it is
11505         the last statement of a detected pattern, use corresponding
11506         pattern statement instead.
11507         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
11508         statements use gsi of the original statement.
11509
11510 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
11511
11512         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
11513         common/common-target-def.h.
11514         * target.def (default_target_flags, handle_option,
11515         supports_split_stack, optimization_table, init_struct,
11516         except_unwind_info, unwind_tables_default, have_named_sections):
11517         Move to common/common-target.def.
11518         * target.h (enum opt_levels, struct default_options): Move to
11519         common/common-target.h.
11520         * targhooks.c (default_except_unwind_info,
11521         dwarf2_except_unwind_info, sjlj_except_unwind_info,
11522         default_target_handle_option, empty_optimization_table): Move to
11523         common/common-targhooks.c.
11524         * targhooks.h (default_except_unwind_info,
11525         dwarf2_except_unwind_info, sjlj_except_unwind_info,
11526         default_target_handle_option, empty_optimization_table): Move to
11527         common/common-targhooks.h.
11528         * common/common-target-def.h: Include common/common-targhooks.h.
11529         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
11530         defined.
11531         * common/common-target.def (handle_option, option_init_struct,
11532         option_optimization_table, default_target_flags,
11533         except_unwind_info, supports_split_stack, unwind_tables_default,
11534         have_named_sections): Move from target.def.
11535         (HOOK_PREFIX): Undefine at end of file.
11536         * common/common-target.h: Include input.h.
11537         (enum opt_levels, struct default_options): Move from target.h.
11538         * common/common-targhooks.c, common/common-targhooks.h: New.
11539         * config.gcc (target_has_targetm_common): Default to yes.
11540         (moxie*): Set target_has_targetm_common=no.
11541         (hppa*-*-*): Don't set target_has_targetm_common=yes.
11542         * doc/tm.texi: Regenerate.
11543         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
11544         (C_TARGET_DEF_H): Add common/common-targhooks.h.
11545         (GCC_OBJS): Remove vec.o.
11546         (OBJS): Remove hooks.o and vec.o.
11547         (OBJS-libcommon-target): Add vec.o, hooks.o and
11548         common/common-targhooks.o.
11549         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
11550         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
11551         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
11552         cfglayout.o, $(out_object_file), $(common_out_object_file)):
11553         Update dependencies.
11554         (common/common-targhooks.o): New.
11555         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
11556         * common/config/pa/pa-common.c: Include more headers.  Take
11557         copyright dates from pa.c.
11558         (pa_option_optimization_table, pa_handle_option,
11559         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
11560         TARGET_HANDLE_OPTION): Move from pa.c.
11561         * common/config/alpha/alpha-common.c,
11562         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
11563         common/config/bfin/bfin-common.c,
11564         common/config/cris/cris-common.c,
11565         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
11566         common/config/h8300/h8300-common.c,
11567         common/config/i386/i386-common.c,
11568         common/config/ia64/ia64-common.c,
11569         common/config/iq2000/iq2000-common.c,
11570         common/config/lm32/lm32-common.c,
11571         common/config/m32c/m32c-common.c,
11572         common/config/m32r/m32r-common.c,
11573         common/config/m68k/m68k-common.c,
11574         common/config/mcore/mcore-common.c,
11575         common/config/mep/mep-common.c,
11576         common/config/microblaze/microblaze-common.c,
11577         common/config/mips/mips-common.c,
11578         common/config/mmix/mmix-common.c,
11579         common/config/mn10300/mn10300-common.c,
11580         common/config/pdp11/pdp11-common.c,
11581         common/config/picochip/picochip-common.c,
11582         common/config/rs6000/rs6000-common.c,
11583         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
11584         common/config/score/score-common.c, common/config/sh/sh-common.c,
11585         common/config/sparc/sparc-common.c,
11586         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
11587         common/config/vax/vax-common.c,
11588         common/config/xstormy16/xstormy16-common.c,
11589         common/config/xtensa/xtensa-common.c: New.
11590         * config/alpha/alpha.c: Include common/common-target.h.
11591         (alpha_option_optimization_table, alpha_handle_option,
11592         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11593         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
11594         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
11595         * config/arm/arm.c (arm_option_optimization_table,
11596         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
11597         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
11598         arm-common.c.
11599         * config/avr/avr.c (avr_option_optimization_table,
11600         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
11601         to avr-common.c.
11602         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
11603         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
11604         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
11605         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
11606         * config/cris/cris.c (cris_option_optimization_table,
11607         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11608         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
11609         cris-common.c.
11610         * config/fr30/fr30.c (fr30_option_optimization_table,
11611         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
11612         to fr30-common.c.
11613         * config/frv/frv.c (frv_option_optimization_table,
11614         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
11615         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
11616         * config/h8300/h8300.c (h8300_option_optimization_table,
11617         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
11618         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
11619         * config/i386/i386-protos.h (ix86_handle_option): Declare.
11620         * config/i386/i386.c: Include common/common-target.h.
11621         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
11622         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
11623         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
11624         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
11625         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
11626         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
11627         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
11628         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
11629         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
11630         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
11631         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
11632         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
11633         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
11634         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
11635         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
11636         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
11637         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
11638         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
11639         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
11640         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
11641         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
11642         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
11643         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
11644         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
11645         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
11646         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
11647         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
11648         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
11649         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
11650         ix86_option_optimization_table, ix86_option_init_struct,
11651         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
11652         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
11653         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
11654         i386-common.c.
11655         * config/i386/t-i386 (i386.o): Update dependencies.
11656         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
11657         * config/ia64/ia64.c (ia64_option_optimization_table,
11658         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
11659         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11660         ia64_handle_option): Move to ia64-common.c.
11661         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
11662         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
11663         * config/lm32/lm32.c (lm32_option_optimization_table,
11664         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
11665         to lm32-common.c.
11666         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
11667         m32c-common.c.
11668         * config/m32r/m32r.c (m32r_option_optimization_table,
11669         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11670         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
11671         m32r_handle_option): Move to m32r-common.c.
11672         (m32r_memory_move_cost): Remove comment referring to
11673         TARGET_HANDLE_OPTION.
11674         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
11675         Move to m68k-common.c.
11676         * config/mcore/mcore.c (mcore_option_optimization_table,
11677         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
11678         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
11679         * config/mep/mep.c (mep_option_optimization_table,
11680         mep_handle_option, TARGET_HANDLE_OPTION,
11681         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
11682         Move to mep-common.c.
11683         * config/microblaze/microblaze.c
11684         (microblaze_option_optimization_table,
11685         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
11686         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
11687         * config/mips/mips.c (mips_handle_option,
11688         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
11689         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
11690         mips-common.c.
11691         * config/mmix/mmix.c (mmix_option_optimization_table,
11692         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
11693         Move to mmix-common.c.
11694         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
11695         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
11696         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11697         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
11698         * config/pa/pa.c: Include common/common-target.h.
11699         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
11700         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11701         pa_handle_option): Move to pa-common.c.
11702         (pa_option_override): Use targetm_common.except_unwind_info.
11703         (pa_asm_output_mi_thunk, pa_function_section): Use
11704         targetm_common.have_named_sections.
11705         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
11706         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11707         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
11708         pdp11_handle_option, pdp11_option_init_struct): Move to
11709         pdp11-common.c.
11710         * config/picochip/picochip.c (picochip_option_optimization_table,
11711         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
11712         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
11713         * config/rs6000/rs6000.c: Include common/common-target.h.
11714         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
11715         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
11716         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
11717         rs6000_handle_option): Move to rs6000-common.c.
11718         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
11719         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
11720         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
11721         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
11722         * config/s390/s390.c (processor_flags_table,
11723         s390_option_optimization_table, s390_option_init_struct,
11724         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
11725         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
11726         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
11727         * config/s390/s390.h (processor_flags_table): Declare.
11728         * config/score/score.c (score_option_optimization_table,
11729         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11730         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
11731         score_handle_option): Move to score-common.c.
11732         * config/sh/sh.c (sh_option_optimization_table,
11733         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
11734         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11735         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
11736         * config/sparc/sparc.c: Include common/common-target.h.
11737         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
11738         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
11739         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
11740         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
11741         spu_option_init_struct): Move to spu-common.c.
11742         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
11743         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
11744         * config/v850/v850.c (small_memory_physical_max,
11745         v850_handle_memory_optionn v850_handle_option,
11746         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
11747         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
11748         v850-common.c.
11749         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
11750         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
11751         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
11752         Move to xtensa-common.c.
11753         * cfglayout.c: Include common/common-target.h.
11754         (fixup_reorder_chain): Use targetm_common.have_named_sections.
11755         * cfgrtl.c: Include common/common-target.h.
11756         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
11757         targetm_common.have_named_sections.
11758         * dbxout.c: Include common/common-target.h.
11759         (dbxout_function_end): Use targetm_common.have_named_sections.
11760         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
11761         targetm_common.except_unwind_info.
11762         * dwarf2out.c: Include common/common-target.h.
11763         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
11764         dwarf2out_begin_prologue, dwarf2out_frame_init,
11765         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
11766         targetm_common.except_unwind_info.
11767         * except.c: Include common/common-target.h.
11768         (init_eh, finish_eh_generation,
11769         output_one_function_exception_table): Use
11770         targetm_common.except_unwind_info.
11771         (switch_to_exception_section): Use targetm_common.have_named_sections.
11772         * explow.c: Include common/common-target.h.
11773         * expr.c: Include common/common-target.h.
11774         (build_personality_function): Use targetm_common.except_unwind_info.
11775         * function.c: Include common/common-target.h.
11776         (expand_function_end): Use targetm_common.except_unwind_info.
11777         * haifa-sched.c: Include common/common-target.h.
11778         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
11779         * lto-opts.c: Include common/common-target.h instead of target.h.
11780         (lto_reissue_options): Use targetm_common.handle_option.
11781         * opts.c: Include common/common-target.h.
11782         (target_handle_option): Use targetm_common.handle_option.
11783         (init_options_struct): Update comment referring to
11784         targetm.target_option.optimization.  Use
11785         targetm_common.default_target_flags,
11786         targetm_common.unwind_tables_default and
11787         targetm_common.option_init_struct.
11788         (default_options_optimization): Use
11789         targetm_common.option_optimization_table.
11790         (finish_options): Use targetm_common.except_unwind_info,
11791         targetm_common.unwind_tables_default,
11792         targetm_common.have_named_sections and
11793         targetm_common.supports_split_stack.
11794         * toplev.c: Include common/common-target.h.
11795         (process_options): Use targetm_common.have_named_sections.
11796         * tree-tailcall.c: Include common/common-target.h.
11797         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
11798         * tree.c: Include common/common-target.h.
11799         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
11800         * varasm.c: Include common/common-target.h.
11801         (resolve_unique_section, hot_function_section,
11802         default_function_section): Use targetm_common.have_named_sections.
11803
11804 2011-06-14  Easwaran Raman  <eraman@google.com>
11805
11806         PR rtl-optimization/44194
11807         * dse.c: Include tree-flow.h
11808         (insn_info): Add new field non_frame_wild_read.
11809         (group_info): Add new fields escaped_n and escaped_p.
11810         (kill_on_calls): New variable.
11811         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
11812         (dse_step0): Initialize kill_on_calls.
11813         (can_escape): New function.
11814         (set_usage_bits): Add additional parameter; record information
11815         about escaped locations.
11816         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
11817         (dse_step2_nospill): Set kill_on_calls based on
11818         group->escaped_n and group->escaped_n.
11819         (add_wild_read): Refactor into...
11820         (reset_active_stores): ... New function, and
11821         (free_read_records): ... New function.
11822         (add_non_frame_wild_read): New function.
11823         (scan_insn): Call add_non_frame_wild_read on non-const calls.
11824         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
11825         (dse_step5_nospill): Call scan_reads_nospill for instructions
11826         marked as non_frame_wild_read.
11827         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
11828
11829 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
11830
11831         * common/common-target-def.h, common/common-target.def,
11832         common/common-target.h, common/config/default-common.c,
11833         common/config/pa/pa-common.c: New files.
11834         * Makefile.in (common_out_file, common_out_object_file,
11835         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
11836         (OBJS-libcommon-target): Include $(common_out_object_file).
11837         (prefix.o): Update dependencies.
11838         ($(common_out_object_file), common/common-target-hooks-def.h,
11839         s-common-target-hooks-def-h): New.
11840         (s-tm-texi): Also check timestamp on common-target.def.
11841         (build/genhooks.o): Update dependencies.
11842         * config.gcc (common_out_file, target_has_targetm_common): Define.
11843         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
11844         TARGET_ALWAYS_STRIP_DOTDOT.
11845         * configure.ac (common_out_object_file): Define.
11846         (common_out_file, common_out_object_file): Substitute.
11847         (common): Create directory.
11848         * configure: Regenerate.
11849         * doc/tm.texi.in (targetm_common): Document.
11850         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
11851         * doc/tm.texi: Regenerate.
11852         * genhooks.c (hook_array): Also include common/common-target.def.
11853         * prefix.c (tm.h): Don't include.
11854         (common/common-target.h): Include.
11855         (ALWAYS_STRIP_DOTDOT): Don't define.
11856         (update_path): Use targetm_common.always_strip_dotdot instead of
11857         ALWAYS_STRIP_DOTDOT.
11858         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
11859
11860 2011-06-14  David Li  <davidxl@google.com>
11861
11862         * passes.c (execute_function_todo): Remove TODO_dump_func.
11863         (execute_one_pass): Remove TODO_dump_func.
11864         (execute_function_dump): New function.
11865         * tree-vrp.c: Remove TODO_dump_func.
11866         * regrename.c: Remove TODO_dump_func.
11867         * fwprop.c: Remove TODO_dump_func.
11868         * tree-into-ssa.c: Remove TODO_dump_func.
11869         * tree-complex.c: Remove TODO_dump_func.
11870         * tracer.c: Remove TODO_dump_func.
11871         * tree-loop-distribution.c: Remove TODO_dump_func.
11872         * postreload-gcse.c: Remove TODO_dump_func.
11873         * postreload.c: Remove TODO_dump_func.
11874         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
11875         * tree-tailcall.c: Remove TODO_dump_func.
11876         * ipa-cp.c: Remove TODO_dump_func.
11877         * final.c: Remove TODO_dump_func.
11878         * tree-emutls.c: Remove TODO_dump_func.
11879         * omp-low.c: Remove TODO_dump_func.
11880         * tree-ssa-dse.c: Remove TODO_dump_func.
11881         * tree-ssa-uncprop.c: Remove TODO_dump_func.
11882         * auto-inc-dec.c: Remove TODO_dump_func.
11883         * reorg.c: Remove TODO_dump_func.
11884         * tree-ssa-copyrename.c: Remove TODO_dump_func.
11885         * tree-ssa-ccp.c: Remove TODO_dump_func.
11886         * compare-elim.c: Remove TODO_dump_func.
11887         * mode-switching.c: Remove TODO_dump_func.
11888         * modulo-sched.c: Remove TODO_dump_func.
11889         * tree-call-cdce.c: Remove TODO_dump_func.
11890         * cse.c: Remove TODO_dump_func.
11891         * web.c: Remove TODO_dump_func.
11892         * tree-stdarg.c: Remove TODO_dump_func.
11893         * lto-streamer-out.c: Remove TODO_dump_func.
11894         * tree-ssa-math-opts.c: Remove TODO_dump_func.
11895         * tree-ssa-dom.c: Remove TODO_dump_func.
11896         * tree-nrv.c: Remove TODO_dump_func.
11897         * loop-init.c: Remove TODO_dump_func.
11898         * gimple-low.c: Remove TODO_dump_func.
11899         * ipa-inline.c: Remove TODO_dump_func.
11900         * tree-ssa-sink.c: Remove TODO_dump_func.
11901         * jump.c: Remove TODO_dump_func.
11902         * ifcvt.c: Remove TODO_dump_func.
11903         * tree-ssa-loop.c: Remove TODO_dump_func.
11904         * recog.c: Remove TODO_dump_func.
11905         * dse.c: Remove TODO_dump_func.
11906         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
11907         * matrix-reorg.c: Remove TODO_dump_func.
11908         * tree-eh.c: Remove TODO_dump_func.
11909         * regmove.c: Remove TODO_dump_func.
11910         * function.c: Remove TODO_dump_func.
11911         * tree-vectorizer.c: Remove TODO_dump_func.
11912         * ipa-split.c: Remove TODO_dump_func.
11913         * gcse.c: Remove TODO_dump_func.
11914         * tree-if-conv.c: Remove TODO_dump_func.
11915         * init-regs.c: Remove TODO_dump_func.
11916         * tree-ssa-phiopt.c: Remove TODO_dump_func.
11917         * implicit-zee.c: Remove TODO_dump_func.
11918         * lower-subreg.c: Remove TODO_dump_func.
11919         * bt-load.c: Remove TODO_dump_func.
11920         * tree-dfa.c: Remove TODO_dump_func.
11921         * except.c: Remove TODO_dump_func.
11922         * emit-rtl.c: Remove TODO_dump_func.
11923         * store-motion.c: Remove TODO_dump_func.
11924         * cfgexpand.c: Remove TODO_dump_func.
11925         * tree-cfgcleanup.c: Remove TODO_dump_func.
11926         * cfgcleanup.c: Remove TODO_dump_func.
11927         * tree-ssa-pre.c: Remove TODO_dump_func.
11928         * tree-sra.c: Remove TODO_dump_func.
11929         * tree-mudflap.c: Remove TODO_dump_func.
11930         * tree-ssa-copy.c: Remove TODO_dump_func.
11931         * cfglayout.c: Remove TODO_dump_func.
11932         * tree-ssa-forwprop.c: Remove TODO_dump_func.
11933         * tree-ssa-dce.c: Remove TODO_dump_func.
11934         * ira.c: Remove TODO_dump_func.
11935         * tree-ssa.c: Remove TODO_dump_func.
11936         * integrate.c: Remove TODO_dump_func.
11937         * tree-optimize.c: Remove TODO_dump_func.
11938         * tree-ssa-phiprop.c: Remove TODO_dump_func.
11939         * tree-object-size.c: Remove TODO_dump_func.
11940         * combine.c: Remove TODO_dump_func.
11941         * bb-reorder.c: Remove TODO_dump_func.
11942         * cprop.c: Remove TODO_dump_func.
11943         * var-tracking.c: Remove TODO_dump_func.
11944         * tree-profile.c: Remove TODO_dump_func.
11945         * tree-vect-generic.c: Remove TODO_dump_func.
11946         * reg-stack.c: Remove TODO_dump_func.
11947         * sched-rgn.c: Remove TODO_dump_func.
11948         * tree-ssa-structalias.c: Remove TODO_dump_func.
11949         * tree-switch-conversion.c: Remove TODO_dump_func.
11950         * tree-cfg.c: Remove TODO_dump_func.
11951         * tree-ssa-reassoc.c: Remove TODO_dump_func.
11952         * combine-stack-adj.c: Remove TODO_dump_func.
11953         * dce.c: Remove TODO_dump_func.
11954         * tree-ssanames.c: Remove TODO_dump_func.
11955         * regcprop.c: Remove TODO_dump_func.
11956
11957 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
11958
11959         PR middle-end/47364
11960         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
11961         and properly handle result not in Pmode.
11962
11963 2011-06-14  Robert Millan  <rmh@gnu.org>
11964
11965         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
11966         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
11967         `config/linux.h'.
11968
11969         * config/i386/kfreebsd-gnu64.h: New file.
11970         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
11971         with `i386/kfreebsd-gnu64.h'.
11972
11973         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
11974         (GNU_USER_LINK_EMULATION64): New macros.
11975         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
11976         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
11977         of hardcoding `elf_i386' and `elf_x86_64'.
11978
11979 2011-06-14  Nick Clifton  <nickc@redhat.com>
11980
11981         PR target/49403
11982         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
11983
11984         PR target/49402
11985         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
11986
11987 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
11988
11989         PR fortran/49103
11990         * tree.h (DECL_NONSHAREABLE): Define.
11991         (struct tree_decl_common): Change decl_common_unused to
11992         decl_nonshareable_flag.
11993         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
11994         Ignore vars with DECL_NONSHAREABLE bit set.
11995         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
11996         on stores to automatic aggregate vars.
11997
11998         PR rtl-optimization/49390
11999         Revert:
12000         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
12001
12002         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
12003         MEM_ALIAS_SET.
12004
12005 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
12006             Tom de Vries  <tom@codesourcery.com>
12007
12008         PR target/45098
12009         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
12010         Document changed semantics.
12011         (max_stmt_executions, max_stmt_executions_int): Declare.
12012         * tree-data-ref.c (estimated_loop_iterations)
12013         (estimated_loop_iterations_int): Move functions...
12014         * tree-ssa-loop-niter.c (estimated_loop_iterations)
12015         (estimated_loop_iterations_int): here.
12016         (record_estimate): Change nb_iterations_upper_bound and
12017         nb_iterations_estimate semantics.
12018         (max_stmt_executions, max_stmt_executions_int): New function.
12019         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
12020         (max_stmt_executions_tree): this.
12021         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
12022         estimated_loop_iterations_tree.
12023         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
12024         max_stmt_executions_int instead of estimated_loop_iterations_int.
12025         * predict.c (predict_loops): Idem.
12026         * tree-parloops.c (parallelize_loops): Idem.
12027         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
12028         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
12029         (init_omega_for_ddr_1): Idem.
12030         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
12031         (loop_prefetch_arrays): Idem
12032         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
12033         max_stmt_executions instead of estimated_loop_iterations.
12034         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
12035         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
12036         instead of nb_iterations_upper_bound.
12037
12038 2011-06-13  Jan Hubicka  <jh@suse.cz>
12039
12040         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
12041
12042 2011-06-14  Richard Henderson  <rth@redhat.com>
12043
12044         PR debug/48459
12045         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
12046         (based_loc_descr): Assert it's true.
12047         (compute_frame_pointer_to_fb_displacement): Set it, rather than
12048         aborting immediately.
12049
12050 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
12051             Mingfeng Wu  <mingfeng@faraday-tech.com>
12052
12053         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
12054
12055 2011-06-13  Jan Hubicka  <jh@suse.cz>
12056
12057         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
12058
12059 2011-06-13  Jan Hubicka  <jh@suse.cz>
12060
12061         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
12062         similarly to DECL_COMDAT.
12063         * cgraphunit.c (cgraph_analyze_function): Likewise.
12064         * ipa.c (function_and_variable_visibility): Likewise.
12065
12066 2011-06-13  Jan Hubicka  <jh@suse.cz>
12067
12068         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
12069         BINFO_VIRTUALS when streaming for ltrans unit.
12070
12071 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
12072
12073         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
12074         (movdi_internal64): Same.
12075
12076 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
12077
12078         PR target/44618
12079         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
12080         a set of similar patterns, where the MATCH_OPERAND for the function
12081         argument is replaced with individual references to hardware registers.
12082         (save_fpregs_<mode>): Ditto
12083         (restore_gpregs_<mode>): Ditto
12084         (return_and_restore_gpregs_<mode>): Ditto
12085         (return_and_restore_fpregs_<mode>): Ditto
12086         (return_and_restore_fpregs_aix_<mode>): Ditto
12087
12088 2011-06-13  Jan Hubicka  <jh@suse.cz>
12089
12090         * ipa-utils.c (postorder_stack): New structure.
12091         (ipa_reverse_postorder): Handle aliases.
12092
12093 2011-06-13  Jan Hubicka  <jh@suse.cz>
12094
12095         * ipa-inline.c (reset_edge_caches): Walk aliases.
12096         (update_caller_keys): Do not test inlinability of aliases.
12097         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
12098         (do_estimate_growth): Fix typo.
12099
12100 2011-06-13  Jan Hubicka  <jh@suse.cz>
12101
12102         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
12103         (can_remove_node_now_p): ... here; handle same comdat groups.
12104         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
12105         (inline_call): Update use of can_remove_node_now_p.
12106
12107 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
12108
12109         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
12110         condition to disallow non-identical memory locations.
12111         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
12112         preference to bit manipulation instructions.
12113
12114 2011-06-13  Jan Hubicka  <jh@suse.cz>
12115
12116         * cgraph.c (cgraph_for_node_thunks_and_aliases,
12117         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
12118         (nonremovable_p): New function.
12119         (cgraph_can_remove_if_no_direct_calls_p): New function.
12120         (used_from_object_file_p): New functoin.
12121         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
12122         references from aliases.
12123         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
12124         * ipa-inline.c (check_caller_edge): New function.
12125         (want_inline_function_called_once_p): Use it; accept aliases called
12126         once, too.
12127         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
12128
12129 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12130
12131         PR target/48454
12132         * config/arm/neon.md (vec_pack_trunc): Set the lengths
12133         correctly for the case with Quad vectors.
12134
12135 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
12136            Ira Rosen  <ira.rosen@linaro.org>
12137
12138         PR tree-optimization/49352
12139         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
12140         all, make sure loop_use_stmt after the loop is a def stmt of a used
12141         SSA_NAME that is the only one defined inside of the loop.  Don't
12142         check for COND_EXPR and GIMPLE_BINARY_RHS.
12143         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
12144         check_reduction is true.
12145
12146 2011-06-11  Jan Hubicka  <jh@suse.cz>
12147
12148         PR middle-end/49373
12149         * ipa.c (cgraph_externally_visible_p): Check resolution info.
12150
12151 2011-06-11  Jan Hubicka  <jh@suse.cz>
12152
12153         PR middle-end/48836
12154         * ipa-inline-transform.c: Include tree-pass.h
12155         (inline_transform): Set TODO_update_ssa_only_virtuals.
12156         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
12157
12158 2011-06-11  Jan Hubicka  <jh@suse.cz>
12159
12160         PR middle-end/49378
12161         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
12162         aliases and thunks.
12163
12164 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
12165
12166         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
12167         Take number of iterations to peel into account for equally frequent
12168         misalignment values.
12169
12170 2011-06-11  Jan Hubicka  <jh@suse.cz>
12171
12172         * lto-streamer-out.c (produce_symtab): Stream out the newly
12173         represented aliases.
12174
12175 2011-06-11  Jan Hubicka  <jh@suse.cz>
12176
12177         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
12178         varying args.
12179         (ipa_update_after_lto_read): Likewise.
12180         (ipa_write_node_info): Do not sream call_with_var_arguments.
12181         (ipa_read_node_info): Likewise.
12182
12183 2011-06-11  Jan Hubicka  <jh@suse.cz>
12184
12185         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
12186
12187 2011-06-11  Jan Hubicka  <jh@suse.cz>
12188
12189         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
12190         (lto_symtab_resolve_can_prevail_p): Likewise.
12191         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
12192         * cgraph.c (same_body_aliases_done): New global var.
12193         (cgraph_same_body_alias_1): Rename to ...
12194         (cgraph_create_function_alias): ... this one; reorg to new
12195         representation.
12196         (cgraph_same_body_alias): Use cgraph_create_function_alias;
12197         record references when asked to.
12198         (cgraph_add_thunk): Fix formating.
12199         (cgraph_get_node): Kill same body alias code.
12200         (cgraph_node_for_asm): Likewise.
12201         (cgraph_remove_same_body_alias): Remove.
12202         (cgraph_remove_node): Kill same body alias code.
12203         (cgraph_mark_address_taken_node): Mark also the aliased function
12204         as having address taken.
12205         (dump_cgraph_node): Dump same body aliases.
12206         (cgraph_for_node_thunks_and_aliases): Update for new alias
12207         representation.
12208         (cgraph_for_node_and_aliases): Likewise.
12209         * cgraph.h (same_body): Kll pointer.
12210         (same_body_alias): Update comment.
12211         (same_body_aliases_done): Declare.
12212         (cgraph_remove_same_body_alias): Remove declaration.
12213         (cgraph_create_function_alias): Declare.
12214         (cgraph_process_same_body_aliases): Declare.
12215         (cgraph_function_with_gimple_body_p): Check for alias.
12216         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
12217         (cgraph_alias_aliased_node): New function.
12218         (cgraph_function_node): Update for new aliases.
12219         (cgraph_function_or_thunk_node): Likewise.
12220         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
12221         (inline_call): Remove dead aliases.
12222         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
12223         name hack for same body aliases.
12224         (clone_of_p): Look through aliases.
12225         (verify_cgraph_node): Verify aliases.
12226         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
12227         (cgraph_process_same_body_aliases): New function.
12228         (process_function_and_variable_attributes): Disable weakref warning on
12229         alias.
12230         (cgraph_analyze_functions): Handle aliases.
12231         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
12232         (assemble_thunks): Rename to ...
12233         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
12234         (cgraph_expand_function): Remove alias output code.
12235         (cgraph_output_in_order): Skip aliases.
12236         (cgraph_preserve_function_body_p): Aliases don't need preserving.
12237         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
12238         (ipa_record_reference): Do not assert on alias references.
12239         (ipa_ref_has_aliases_p): New function.
12240         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
12241         (ipa_ref_has_aliases_p): Declare.
12242         * lto-cgraph.c (lto_output_node): Handle aliases.
12243         (input_node): Likewise.
12244         * lto-streamer-out.c (lto_output): Skip aliases.
12245         (produce_symtab): Kill same_body_alias code.
12246         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
12247         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
12248         * ipa-inline.c (update_caller_keys): Walk aliases.
12249         (inline_small_functions): Fix thinko in previous patch.
12250         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
12251         (function_and_variable_visibility): Do not walk same body aliases.
12252         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
12253         (ipa_pta_execute): Use it.
12254
12255 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
12256
12257         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
12258         (*vec_dupv2df): Rename from vec_dupv2df.
12259         (vec_dupv2df): New expander.
12260
12261 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
12262
12263         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
12264
12265 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
12266
12267         * config/i386/i386.md: Use default value in "isa" attribute.
12268         * config/i386/sse.md: Ditto.
12269         * config/i386/mmx.md: Ditto.
12270
12271 2011-06-10  Wei Guozhi  <carrot@google.com>
12272
12273         PR target/45335
12274         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
12275         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
12276         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
12277         related peephole2.
12278         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
12279         related peephole2.
12280         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
12281         (arm_legitimate_ldrd_p): New prototype.
12282         (arm_output_ldrd): New prototype.
12283         * config/arm/arm.c (arm_check_ldrd_operands): New function.
12284         (arm_legitimate_ldrd_p): New function.
12285         (arm_output_ldrd): New function.
12286
12287 2011-06-10  David Li  <davidxl@google.com>
12288
12289         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
12290         * passes.c (passr_eq): New function.
12291         (create_pass_tab): New function.
12292         (pass_traverse): New function.
12293         (dump_one_pass): New function.
12294         (dump_pass_list): New function.
12295         (dump_passes): New function.
12296
12297 2011-06-10  Jan Hubicka  <jh@suse.cz>
12298
12299         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
12300         setting the nothrow flag.
12301         * ipa-reference.c (propagate): Skip aliases.
12302         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
12303         (propagate_nothrow): Skip aliases; do not update cgraph.
12304         (local_pure_const): Do not update cgraph.
12305         * tree-profile.c (tree_profiling): Do fixup_cfg.
12306
12307 2011-06-10  Jan Hubicka  <jh@suse.cz>
12308
12309         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
12310         (cgraph_local_node_p): ... here; handle aliases.
12311         (has_addr_references_p): Break out from ...;
12312         (cgraph_remove_unreachable_nodes) ... here.
12313
12314 2011-06-10  Jan Hubicka  <jh@suse.cz>
12315
12316         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
12317         * common.opt (flag_inline_functions_called_once): Do not
12318         initialize to 1.
12319
12320 2011-06-10  Jan Hubicka  <jh@suse.cz>
12321
12322         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
12323         (ipcp_initialize_node_lattices): Do not deal with aliases;
12324         Do not try to propagate through thunks.
12325         (ipcp_change_tops_to_bottom): Do not deal with aliases.
12326
12327 2011-06-10  Jan Hubicka  <jh@suse.cz>
12328
12329         * ipa-prop.c (ipa_write_node_info): Stream jump functions
12330         for indirect calls.
12331         (ipa_read_node_info): Likewise.
12332
12333 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12334
12335         PR lto/49302
12336         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
12337         (build_and_insert_call): Likewise.
12338         (build_and_insert_ref): New.
12339         (gimple_expand_builtin_pow): Minor cleanup.
12340         (gimple_expand_builtin_cabs): New.
12341         (execute_cse_sincos): Add case for BUILT_IN_CABS.
12342
12343 2011-06-10  Jan Hubicka  <jh@suse.cz>
12344
12345         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
12346         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
12347         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
12348         (ipcp_propagate_stage): Skip aliases when propagating.
12349         (ipcp_need_redirect_p): Skip aliases.
12350         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
12351         collect_callers_of_node.
12352         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
12353         for aliases.
12354         (ipa_compute_jump_functions): Look through aliases.
12355
12356 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12357
12358         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
12359
12360 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
12361
12362         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
12363         Adjust comments.
12364         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
12365
12366 2011-06-10  Jan Hubicka  <jh@suse.cz>
12367
12368         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
12369         Update call of gimple_get_virt_method_for_binfo.
12370         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
12371         refuse_thunks parameter.
12372         (gimple_fold_call): Update.
12373         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
12374
12375 2011-06-10  Jan Hubicka  <jh@suse.cz>
12376
12377         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
12378         (not_all_callers_have_enough_arguments_p): ... this one; turn into
12379         worker for cgraph_for_node_and_aliases.
12380         (convert_callers_for_node): Break out from ...
12381         (convert_callers): ... here.
12382         (modify_function): Use collect_callers_of_node.
12383         (ipa_early_sra): Use cgraph_for_node_and_aliases.
12384
12385 2011-06-10  Richard Guenther  <rguenther@suse.de>
12386
12387         PR tree-optimization/49361
12388         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
12389         when not already in gimple form.
12390
12391 2011-06-10  Richard Guenther  <rguenther@suse.de>
12392
12393         PR bootstrap/49344
12394         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
12395         FOR_EACH_PHI_OR_STMT_USE.
12396
12397 2011-06-10  Jan Hubicka  <jh@suse.cz>
12398
12399         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
12400         (clone_inlined_nodes): ... here.
12401         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
12402         to real destination prior inlining.
12403         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
12404         can_early_inline_edge_p, want_early_inline_function_p,
12405         want_early_inline_function_p, want_inline_small_function_p,
12406         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
12407         edge_badness, update_all_callee_keys, lookup_recursive_calls,
12408         add_new_edges_to_heap, inline_small_functions, flatten_function,
12409         inline_always_inline_functions, early_inline_small_functions): Use
12410         cgraph_function_or_thunk_node.
12411         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
12412         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
12413         (do_estimate_edge_growth_1): Break out from ...
12414         (do_estimate_growth) ... here; walk aliases.
12415         (inline_generate_summary): Skip aliases.
12416
12417 2011-06-10  Richard Guenther  <rguenther@suse.de>
12418
12419         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
12420         forward when combining, visit inserted stmts when a stmt was changed.
12421
12422 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
12423
12424         * tree.h (error_operand_p): Add.
12425         * dbxout.c (dbxout_type_fields): Use the latter.
12426         * c-decl.c (add_stmt): Likewise.
12427         * gimplify.c (omp_add_variable, omp_notice_variable,
12428         gimplify_scan_omp_clauses): Likewise.
12429
12430 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
12431
12432         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
12433         when a value is actually passed in regs.
12434
12435 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
12436             Laurent Rougé  <laurent.rouge@menta.fr>
12437
12438         * doc/invoke.texi (SPARC options): Add -mflat.
12439         * config/sparc/sparc.opt: Likewise.
12440         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
12441         (sparc_flat_expand_prologue): Declare.
12442         (sparc_flat_expand_epilogue): Likewise.
12443         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
12444         (CPP_ENDIAN_SPEC): Replace with...
12445         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
12446         (CPP_SPEC): Adjust to above change.
12447         (EXTRA_SPECS): Likewise.
12448         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
12449         (INCOMING_REGNO): Likewise.
12450         (OUTGOING_REGNO): Likewise.
12451         (LOCAL_REGNO): Likewise.
12452         (SETUP_FRAME_ADDRESSES): Likewise.
12453         (FIXED_REGISTERS): Set 0 for %fp.
12454         (CALL_USED_REGISTERS): Likewise.
12455         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
12456         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
12457         (RETURN_ADDR_REGNUM): Define.
12458         (RETURN_ADDR_RTX): Use it.
12459         (INCOMING_RETURN_ADDR_REGNUM): Define.
12460         (INCOMING_RETURN_ADDR_RTX): Use it.
12461         (DWARF_FRAME_RETURN_COLUMN): Likewise.
12462         (EH_RETURN_REGNUM): Define.
12463         (EH_RETURN_STACKADJ_RTX): Use it.
12464         (EH_RETURN_HANDLER_RTX): Delete.
12465         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
12466         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
12467         Delete.
12468         (struct machine_function): Add frame_size, apparent_frame_size,
12469         frame_base_reg, frame_base_offset, n_global_fp_regs and
12470         save_local_in_regs_p fields.
12471         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
12472         sparc_frame_base_offset, sparc_n_global_fp_regs,
12473         sparc_save_local_in_regs_p): New macros.
12474         (sparc_option_override): Error out if -fcall-saved-REG is specified
12475         for Out registers.
12476         (eligible_for_restore_insn): Fix formatting.
12477         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
12478         (eligible_for_sibcall_delay): Likewise.
12479         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
12480         (sparc_legitimate_address_p): Adjust to above change.
12481         (save_global_or_fp_reg_p): New predicate.
12482         (return_addr_reg_needed_p): Likewise.
12483         (save_local_or_in_reg_p): Likewise.
12484         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
12485         (SORR_SAVE, SORR_RESTORE): Delete.
12486         (sorr_pred_t): New typedef.
12487         (sorr_act_t): New enum.
12488         (save_or_restore_regs): Rename to...
12489         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
12490         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
12491         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
12492         mechanism.  Add CFI information for double-word saves in 32-bit mode.
12493         (emit_adjust_base_to_offset): New function extracted from...
12494         (emit_save_or_restore_regs): ...this.  Rename the rest to...
12495         (emit_save_or_restore_regs_global_fp_regs): ...this.
12496         (emit_save_or_restore_regs_local_in_regs): New function.
12497         (gen_create_flat_frame_[123]): New functions.
12498         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
12499         (sparc_flat_expand_prologue): New function.
12500         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
12501         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
12502         (sparc_flat_expand_epilogue): New function.
12503         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
12504         (output_return): Likewise.
12505         (output_sibcall): Likewise.
12506         (sparc_output_mi_thunk): Likewise.
12507         (sparc_frame_pointer_required): Likewise.
12508         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
12509         function optimization.
12510         * config/sparc/sparc.md (flat): New attribute.
12511         (prologue): Add TARGET_FLAT handling.
12512         (save_register_window): Disable if TARGET_FLAT.
12513         (create_flat_frame_[123]): New patterns.
12514         (epilogue): Add TARGET_FLAT handling.
12515         (sibcall_epilogue): Likewise.
12516         (eh_return): New expander.
12517         (eh_return_internal): New insn and splitter.
12518         (return_internal): Add TARGET_FLAT handling.
12519         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
12520         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
12521         (nonlocal_goto): Add TARGET_FLAT handling.
12522         * config/sparc/t-elf: Add -mflat multilib.
12523         * config/sparc/t-leon: Likewise.
12524
12525 2011-06-10  Jan Hubicka  <jh@suse.cz>
12526
12527         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
12528         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
12529         (self_recursive_p): Use cgraph_function_node.
12530         (propagate_pure_const): Likewise.
12531         (propagate_nothrow): Likewise.
12532         * ipa-reference.c (ipa_reference_get_not_read_global): Use
12533         cgraph_function_node.
12534         (propagate_bits): Likewise.
12535         (propagate): Likewise.
12536
12537 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12538             Richard Earnshaw  <rearnsha@arm.com>
12539
12540         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
12541         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
12542         (*thumb2_movdi_vfp): Delete.
12543         (*arm_movdi_vfp_cortexa8): Delete.
12544         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
12545         (*movdi_vfp_cortexa8): Likewise.
12546
12547 2011-06-10  Richard Guenther  <rguenther@suse.de>
12548
12549         * stor-layout.c (initialize_sizetypes): Give names to all
12550         sizetype kinds.
12551
12552 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
12553
12554         PR tree-optimization/49318
12555         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
12556         irrelevant pattern statements.
12557
12558 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
12559
12560         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
12561
12562         PR bootstrap/49354
12563         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
12564         to last assignment.
12565
12566 2011-06-09  Jan Hubicka  <jh@suse.cz>
12567
12568         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
12569         do not recompute reachable flag.
12570         (cgraph_finalize_function, cgraph_analyze_functions): Set
12571         redefined_extern_inline here.
12572
12573 2011-06-09  Jan Hubicka  <jh@suse.cz>
12574
12575         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
12576         (cgraph_only_called_directly_p): ... this one; bring offline.
12577         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
12578         varpool_used_from_object_file_p): Drop names from the declaratoin.
12579         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
12580         collect_callers_of_node): New.
12581         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
12582         (cgraph_edge_recursive_p): Use cgraph_function_node.
12583         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
12584         (cgraph_node_cannot_be_local_p_1): Break out from ...
12585         (cgraph_node_can_be_local_p): ... here; walk aliases.
12586         (cgraph_for_node_thunks_and_aliases): New function.
12587         (cgraph_for_node_and_aliases): New function.
12588         (cgraph_make_node_local_1): Break out from ...
12589         (cgraph_make_node_local) ... here; use
12590         cgraph_for_node_thunks_and_aliases.
12591         (cgraph_set_nothrow_flag_1): Break out from ...
12592         (cgraph_set_nothrow_flag) ... here;
12593         use cgraph_for_node_thunks_and_aliases.
12594         (cgraph_set_const_flag_1): Break out from ...
12595         (cgraph_set_const_flag) ... here;
12596         use cgraph_for_node_thunks_and_aliases.
12597         (cgraph_set_pure_flag_1): Break out from ...
12598         (cgraph_set_pure_flag) ... here;
12599         use cgraph_for_node_thunks_and_aliases.
12600         (cgraph_propagate_frequency_1): Break out from ...
12601         (cgraph_propagate_frequency) ... here; use
12602         cgraph_for_node_thunks_and_aliases.
12603         (cgraph_used_from_object_file_p): Do not care about aliases.
12604         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
12605         New functions.
12606         (collect_callers_of_node_1, collect_callers_of_node): New functions.
12607
12608 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
12609
12610         PR rtl-optimization/49154
12611         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
12612         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
12613         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
12614         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
12615         * config/cris/cris.h (cris_register_move_cost): Remove
12616         !TARGET_V32 code.  Tweak comments.
12617
12618 2011-06-09  Jan Hubicka  <jh@suse.cz>
12619
12620         * cgraphbuild.c (record_eh_tables): Mark personality function as having
12621         address taken.
12622
12623 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
12624
12625         PR rtl-optimization/49154
12626         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
12627         is a matching slot in the hashtable, assign it to classes_ptr.
12628
12629         PR rtl-optimization/49154
12630         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
12631         register classes.
12632         * doc/tm.texi: Regenerate.
12633
12634 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
12635
12636         PR target/49307
12637         * config/sh/sh.md (UNSPEC_CHKADD): New.
12638         (chk_guard_add): New define_insn_and_split.
12639         (symGOT_load): Use chk_guard_add instead of blockage.
12640
12641 2011-06-09  Kai Tietz  <ktietz@redhat.com>
12642
12643         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
12644
12645 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
12646
12647         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
12648
12649 2011-06-09  Wei Guozhi  <carrot@google.com>
12650
12651         PR target/46975
12652         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
12653         (peephole2 for conditional move): Generate 16 bit instructions.
12654
12655 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
12656
12657         * config/i386/i386.md (*movdi_internal_rex64): Merge
12658         alternatives 6 and 8.
12659
12660 2011-06-09  David Li  <davidxl@google.com>
12661
12662         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
12663         * passes.c (passr_eq): New function.
12664         (create_pass_tab): New function.
12665         (pass_traverse): New function.
12666         (dump_one_pass): New function.
12667         (dump_pass_list): New function.
12668         (dump_passes): New function.
12669
12670 2011-06-09  David Li  <davidxl@google.com>
12671
12672         * tree-complex.c (tree_lower_complex): Gate cleanup.
12673         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
12674         (execute_optimize_stdarg): Ditto.
12675         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
12676         (execute_cleanup_eh_1): Ditto.
12677         (execute_cleanup_eh): Ditto.
12678         * gcse.c (gate_rtl_pre): Ditto.
12679         (execute_rtl_pre): Ditto.
12680         * except.c (finish_eh_generation): Ditto.
12681         (convert_to_eh_region_ranges): Ditto.
12682         * cprop.c (one_cprop_pass): Ditto.
12683
12684 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
12685
12686         PR target/48673
12687         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
12688         in all basic blocks.
12689
12690 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12691
12692         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
12693         (HAVE_ENABLE_EXECUTE_STACK): Define.
12694         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
12695         (HAVE_ENABLE_EXECUTE_STACK): Define.
12696         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
12697         (HAVE_ENABLE_EXECUTE_STACK): Define.
12698         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
12699         (ENABLE_EXECUTE_STACK): Remove.
12700         (HAVE_ENABLE_EXECUTE_STACK): Define.
12701         [IN_LIBGCC2]: Don't include <windows.h>.
12702         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
12703         (HAVE_ENABLE_EXECUTE_STACK): Define.
12704         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
12705         (HAVE_ENABLE_EXECUTE_STACK): Define.
12706         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
12707         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
12708         (HAVE_ENABLE_EXECUTE_STACK): Define.
12709         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
12710         (HAVE_ENABLE_EXECUTE_STACK): Define.
12711         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
12712         (HAVE_ENABLE_EXECUTE_STACK): Define.
12713         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
12714         (HAVE_ENABLE_EXECUTE_STACK): Define.
12715         * config/alpha/alpha.c (alpha_trampoline_init): Test
12716         HAVE_ENABLE_EXECUTE_STACK.
12717         * config/i386/i386.c (ix86_trampoline_init): Likewise.
12718         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
12719         (sparc64_initialize_trampoline): Likewise.
12720         * libgcc2.c [L_enable_execute_stack]: Remove.
12721         * system.h (ENABLE_EXECUTE_STACK): Poison.
12722         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
12723         * doc/tm.texi: Regenerate.
12724         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
12725
12726 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
12727
12728         PR middle-end/49308
12729         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
12730         variable.  After resetting and rescanning insn continue with previous
12731         statement.
12732
12733 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12734
12735         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
12736         (gcc_cv_ld_hidden): Likewise.
12737         * configure: Regenerate.
12738         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
12739         (ix86_stack_protect_fail): Mark unused.
12740         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
12741         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
12742         [TARGET_MACHO]: Don't define.
12743         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
12744         (TARGET_STACK_PROTECT_FAIL): Likewise.
12745         (rs6000_stack_protect_fail): Mark unused.
12746         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
12747         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
12748
12749 2011-06-08  Andi Kleen  <ak@linux.intel.com>
12750
12751         * varasm.c (get_section): Print location of other conflict
12752         for section conflicts.
12753
12754 2011-06-08  Andi Kleen  <ak@linux.intel.com>
12755
12756         * config/i386/driver-i386.c (host_detect_local_cpu):
12757         Add model 0x2d Intel CPU.
12758
12759 2011-06-08  Andi Kleen  <ak@linux.intel.com>
12760
12761         * reginfo.c (global_regs_decl): Add.
12762         (globalize_reg): Add decl parameter. Compute location.  Pass location
12763         to warnings and add inform. Store decl in global_regs_decl.
12764         * rtl.h (globalize_reg): Update prototype.
12765         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
12766
12767 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
12768
12769         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
12770
12771 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
12772
12773         PR target/49305
12774         * config/sh/predicates.md (general_movsrc_operand): Check
12775         mode for memory with indexed address for QI and HImode.
12776         (general_movdst_operand): Likewise.
12777
12778 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
12779
12780         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
12781
12782 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
12783
12784         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
12785         (num_ssa_operands): Likewise.
12786         (op_iter_init_phiuse): Forward-declare.
12787         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
12788
12789 2011-06-08  Nick Clifton  <nickc@redhat.com>
12790
12791         * doc/invoke.texi (ARM Options): Update description of
12792         -mthumb-interwork.
12793
12794 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
12795
12796         * config/i386/driver-i386.c (host_detect_local_cpu): Support
12797         unknown Intel family 0x6 CPUs.
12798
12799 2011-06-08  Martin Jambor  <mjambor@suse.cz>
12800
12801         * tree-sra.c (mark_rw_status): Removed.
12802         (analyze_access_subtree): New parameter parent instead of
12803         mark_read and mark_write, propagate from that.
12804
12805 2011-06-08  Julian Brown  <julian@codesourcery.com>
12806
12807         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
12808         for double-precision helper functions in hard-float mode if only
12809         single-precision arithmetic is supported in hardware.
12810
12811 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
12812
12813         PR rtl-optimization/49303
12814         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
12815         code_motion_path_driver returned 0 or 1.
12816         (sel_region_finish): Clear h_d_i_d.
12817
12818 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
12819
12820         * config/sh/sh.c (prepare_move_operands): Set pic register
12821         appropriately for global and local dynamic tls models even
12822         if flag_pic is unset.
12823
12824 2011-06-07  Jason Merrill  <jason@redhat.com>
12825
12826         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
12827
12828 2011-06-07  Xinliang David Li  <davidxl@google.com>
12829         * passes.c (enable_disable_pass): Handle assembler name.
12830         (is_pass_explicitly_enabled_or_disabled): Ditto.
12831
12832 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12833
12834         PR tree-optimization/48497
12835         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
12836
12837 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12838
12839         PR tree-optimization/46728
12840         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
12841         to use gimple_val_nonnegative_real_p.
12842         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
12843         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
12844
12845 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
12846
12847         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
12848
12849 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
12850
12851         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
12852         constant vectors.
12853
12854 2011-06-07  Richard Guenther  <rguenther@suse.de>
12855
12856         * stor-layout.c (initialize_sizetypes): Initialize all
12857         sizetypes based on target definitions.
12858         (set_sizetype): Remove.
12859         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
12860         * tree.h (set_sizetype): Remove.
12861
12862 2011-06-07  Nick Clifton  <nickc@redhat.com>
12863
12864         * config.gcc: Unify V850 architecture options and add support for
12865         newer V850 architectures.
12866         * config/v850/t-v850e: Delete.
12867
12868 2011-06-07  Richard Guenther  <rguenther@suse.de>
12869
12870         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
12871         Call set_sizetype from here.
12872
12873 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
12874
12875         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
12876         (*maddhisi4tb, *maddhisi4tt): New define_insns.
12877
12878 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
12879             Andrew Stubbs  <ams@codesourcery.com>
12880
12881         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
12882         multiplies.
12883         * doc/md.texi (Canonicalization of Instructions): Document widening
12884         multiply canonicalization.
12885
12886 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
12887
12888         PR gcov-profile/49299
12889         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
12890
12891 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
12892
12893         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
12894         a pointer.
12895         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
12896         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
12897         vect_recog_pow_pattern): Likewise.
12898         (vect_pattern_recog_1): Remove declaration.
12899         (widened_name_p): Remove declaration.  Add new argument to specify
12900         whether to check that both types are either signed or unsigned.
12901         (vect_recog_widen_mult_pattern): Update documentation.  Handle
12902         unsigned patterns and multiplication by constants.
12903         (vect_pattern_recog_1): Update vect_recog_func references.  Use
12904         statement information from the statement returned from pattern
12905         detection functions.
12906         (vect_pattern_recog): Update vect_recog_func reference.
12907         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
12908         multiplication by a constant use the type of the other operand.
12909
12910 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
12911
12912         PR rtl-optimization/49145
12913         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
12914
12915 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
12916
12917         PR debug/49262
12918         * dwarf2out.c (native_encode_initializer): Decrement count in each
12919         iteration.
12920
12921         PR debug/49294
12922         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
12923         non-MODE_INT modes.
12924
12925         PR c++/49264
12926         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
12927         if stmt folded into nothing.
12928         * tree-inline.c (fold_marked_statements): If a builtin at the end of
12929         a bb folded into nothing, just update cgraph edges and move to next bb.
12930         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
12931         to be NULL.  Don't compute count and frequency if new_call is NULL.
12932
12933 2011-06-04  Diego Novillo  <dnovillo@google.com>
12934
12935         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
12936         (cgraph.o): Likewise.
12937         (cgraphunit.o): Likewise.
12938         * cgraphunit.c: Include lto-streamer.h
12939         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
12940         if LTO is enabled.
12941         * lto-streamer-in.c (unpack_value_fields): Call
12942         streamer_hooks.unpack_value_fields if set.
12943         (lto_materialize_tree): For unhandled nodes, first try to
12944         call lto_streamer_hooks.alloc_tree, if it exists.
12945         (lto_input_ts_decl_common_tree_pointers): Move reading of
12946         DECL_INITIAL to lto_streamer_read_tree.
12947         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
12948         (lto_streamer_read_tree): New.
12949         (lto_reader_init): Rename from lto_init_reader.
12950         Move initialization code to lto/lto.c.
12951         * lto-streamer-out.c (pack_value_fields): Call
12952         streamer_hooks.pack_value_fields if set.
12953         (lto_output_tree_ref): For tree nodes that are not normally indexable,
12954         call streamer_hooks.indexable_with_decls_p before giving up.
12955         (lto_output_ts_decl_common_tree_pointers): Move handling
12956         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
12957         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
12958         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
12959         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
12960         (lto_streamer_write_tree): New.
12961         (lto_output): Call lto_streamer_init directly.
12962         (lto_writer_init): Remove.
12963         * lto-streamer.c (streamer_hooks): New.
12964         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
12965         instead of lto_preload_common_nodes.
12966         (lto_is_streamable): Move from lto-streamer.h
12967         (lto_streamer_hooks_init): New.
12968         (streamer_hooks): New.
12969         (streamer_hooks_init): New.
12970         * lto-streamer.h (struct output_block): Forward declare.
12971         (struct lto_input_block): Likewise.
12972         (struct data_in): Likewise.
12973         (struct bitpack_d): Likewise.
12974         (struct streamer_hooks): Declare.
12975         (streamer_hooks): Declare.
12976         (lto_streamer_hooks_init): Declare.
12977         (lto_streamer_write_tree): Declare.
12978         (lto_streamer_read_tree): Declare.
12979         (streamer_hooks_init): Declare.
12980         (lto_is_streamable): Move to lto-streamer.c
12981
12982 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12983
12984         * longlong.h (smul_ppmm): The resulting register pair contains the
12985         higher order word first.
12986
12987 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12988
12989         PR tree-optimization/46728
12990         * builtins.c (powi_table): Remove.
12991         (powi_lookup_cost): Remove.
12992         (powi_cost): Remove.
12993         (expand_powi_1): Remove.
12994         (expand_powi): Remove.
12995         (expand_builtin_pow_root): Remove.
12996         (expand_builtin_pow): Remove.
12997         (expand_builtin_powi): Eliminate handling of constant exponent.
12998         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
12999
13000 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
13001
13002         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
13003
13004 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
13005
13006         * dce.c (reset_unmarked_insns_debug_uses): New.
13007         (delete_unmarked_insns): Skip debug insns.
13008         (prescan_insns_for_dce): Likewise.
13009         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
13010         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
13011         active reg can be found.
13012         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
13013         (convert_regs_1): Use it.
13014
13015 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
13016
13017         * tree-pretty-print.c (dump_function_header): Add flags.
13018         Don't dump decl_uid with nouid.
13019         * tree-pretty-print.h (dump_function_header): Adjust.
13020         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
13021         * passes.c (pass_init_dump_file): Pass dump_flags on.
13022         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
13023
13024 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
13025
13026         PR bootstrap/49270
13027         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
13028
13029 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
13030
13031         PR tree-optimization/49243
13032         * calls.c (setjmp_call_p): Also check if fndecl has the
13033         returns_twice attribute.
13034
13035 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13036
13037         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
13038         -ffast-math etc.
13039
13040 2011-06-06  Richard Henderson  <rth@redhat.com>
13041             Georg-Johann Lay  <avr@gjlay.de>
13042
13043         PR target/42210
13044         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
13045         New predicates.
13046         * config/avr/avr.md ("insv"): New insn expander.
13047         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
13048         "*insv.not.io", "*insv.reg"): New insns.
13049
13050 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
13051
13052         PR target/49285
13053         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
13054         to nonimmediate_operand from memory_operand for the operand that is to
13055         be forced to memory by the expander.  Lose the constraints.
13056
13057 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
13058
13059         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
13060         EH return when delayed branches are disabled.
13061
13062 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
13063
13064         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
13065         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
13066         calculation.
13067         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
13068         Simplify MODE_V1DF and MODE_V2SF handling.
13069         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
13070         Simplify MODE_SF handling.
13071
13072 2011-06-04  Jan Hubicka  <jh@suse.cz>
13073
13074         PR tree-optimization/48893
13075         PR tree-optimization/49091
13076         PR tree-optimization/49179
13077         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
13078         Bounds check.
13079
13080 2011-06-04  Jan Hubicka  <jh@suse.cz>
13081
13082         PR lto/48954
13083         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
13084         bitmaps.
13085
13086 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
13087
13088         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
13089
13090 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
13091
13092         PR target/49281
13093         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
13094         to be strictly smaller than 1 << shiftcount.
13095
13096 2011-06-04  Jan Hubicka  <jh@suse.cz>
13097
13098         PR tree-optimize/48929
13099         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
13100         of empty predicate.
13101
13102 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
13103
13104         PR debug/48333
13105         * calls.c (emit_call_1): Prefer the __builtin declaration of
13106         builtin functions.
13107
13108 2011-06-03   Diego Novillo  <dnovillo@google.com>
13109
13110         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
13111         (lto_input_tree_pointers): Likewise.
13112         * lto-streamer-out.c (pack_value_fields): Likewise.
13113         (lto_output_tree_pointers): Likewise.
13114         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
13115         and OPTIMIZATION_NODE.
13116
13117 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13118
13119         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
13120         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
13121         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
13122         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
13123         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
13124         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
13125         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
13126         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
13127         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
13128         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
13129         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
13130         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
13131         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
13132         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
13133         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
13134         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
13135         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
13136         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
13137         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
13138         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
13139         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
13140         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
13141         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
13142         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
13143         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
13144         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
13145         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
13146         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
13147         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
13148         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
13149         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
13150         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
13151         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
13152         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
13153         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
13154         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
13155         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
13156         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
13157         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
13158         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
13159         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
13160         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
13161         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
13162         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
13163         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
13164         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
13165         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
13166         * system.h (MD_UNWIND_SUPPORT): Poison.
13167         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
13168         * doc/tm.texi: Regenerate.
13169         * unwind-dw2.c: Include md-unwind-support.h instead of
13170         MD_UNWIND_SUPPORT.
13171         * config/ia64/unwind-ia64.c: Likewise.
13172         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
13173
13174 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
13175
13176         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
13177
13178 2011-06-03  Richard Henderson  <rth@redhat.com>
13179             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13180
13181         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
13182         (sigill_hdlr): Correct insn, insn size.
13183         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
13184
13185 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13186
13187         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
13188         t-slibgcc-dummy.
13189         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
13190         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
13191         * config/mips/t-iris: Remove.
13192         * config/mips/t-irix6: New file.
13193         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
13194
13195 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13196
13197         * Makefile.in (LIB2ADDEHDEP): Remove.
13198         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
13199         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
13200         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
13201         * config/t-darwin (LIB2ADDEHDEP): Remove.
13202         * config/t-freebsd (LIB2ADDEHDEP): Remove.
13203         * config/t-linux (LIB2ADDEHDEP): Remove.
13204
13205 2011-06-03  Diego Novillo  <dnovillo@google.com>
13206
13207         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
13208         (lto_register_var_decl_in_symtab): Likewise.
13209         (lto_register_function_decl_in_symtab): Likewise.
13210         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
13211         logic to uniquify_nodes.
13212
13213 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13214
13215         * config/alpha/t-osf5: Remove.
13216         * config/alpha/t-osf-pthread: Remove.
13217         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
13218         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
13219
13220 2011-06-03  Julian Brown  <julian@codesourcery.com>
13221
13222         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
13223         (strongarm1110): Use strongarm tuning.
13224         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
13225         * config/arm/arm.c (arm_strongarm_tune): New.
13226         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
13227         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
13228         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
13229         setting, using previous defaults or 1 for Cortex-A5.
13230         (arm_option_override): Set max_insns_skipped from current tuning.
13231
13232 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
13233
13234         * doc/install.texi (Options specification): Document --with-specs.
13235
13236 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13237
13238         * config/arm/neon.md (orndi3_neon): Actually split it.
13239
13240 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
13241
13242         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
13243         * var-tracking.c (reverse_op): Limite recurse depth to 5.
13244
13245 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
13246
13247         PR debug/47590
13248         * target.def (delay_sched2, delay_vartrack): New.
13249         * doc/tm.texi.in: Update.
13250         * doc/tm.texi: Rebuild.
13251         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
13252         * var-tracking.c (gate_handle_var_tracking): Likewise.
13253         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
13254         (bfin_flag_var_tracking): Drop.
13255         (output_file_start): Don't save and override flag_var_tracking.
13256         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
13257         (bfin_reorg): Test original variables.
13258         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
13259         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
13260         (ia64_flag_var_tracking): Drop.
13261         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
13262         (ia64_file_start): Don't save and override flag_var_tracking.
13263         (ia64_override_options_after_change): Ditto
13264         flag_schedule_insns_after_reload.
13265         (ia64_reorg): Test original variables.
13266         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
13267         (picochip_flag_var_tracking): Drop.
13268         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
13269         (picochip_option_override): Don't save and override
13270         flag_schedule_insns_after_reload.
13271         (picochip_asm_file_start): Ditto flag_var_tracking.
13272         (picochip_reorg): Test original variables.
13273         * config/spu/spu.c (spu_flag_var_tracking): Drop.
13274         (TARGET_DELAY_VARTRACK): Define.
13275         (spu_var_tracking): New.
13276         (spu_machine_dependent_reorg): Call it.
13277         (asm_file_start): Don't save and override flag_var_tracking.
13278
13279 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
13280
13281         PR target/49163
13282         * config/sh/predicates.md (general_movsrc_operand): Return 0
13283         for memory and memory subreg of which address is an invalid
13284         indexed address for QI and HImode.
13285         (general_movdst_operand): Likewise.
13286
13287 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
13288
13289         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
13290         edges only, when there is a non-local label in the function.
13291         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
13292
13293 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
13294
13295         * config/i386/constraints.md (Y3): New register constraint.
13296         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
13297         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
13298         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
13299         *sse2_interleave_lowv2df.
13300
13301 2011-06-02  Julian Brown  <julian@codesourcery.com>
13302
13303         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
13304         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
13305         (arm_cortex_a5_tune): New.
13306
13307 2011-06-02  Julian Brown  <julian@codesourcery.com>
13308
13309         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
13310         * config/arm/arm.c (arm_default_branch_cost): New.
13311         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
13312         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
13313         (arm_fa726_tune): Set branch_cost field using
13314         arm_default_branch_cost.
13315         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
13316         current_tune structure.
13317         * dojump.c (tm_p.h): Include file.
13318
13319 2011-06-02  Julian Brown  <julian@codesourcery.com>
13320
13321         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
13322         tuning.
13323         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
13324         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
13325         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
13326         field.
13327         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
13328         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
13329         (arm_fa726te_tune): Add prefer_constant_pool setting.
13330         (arm_v6t2_tune, arm_cortex_tune): New.
13331         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
13332         prefer_constant_pool setting.
13333
13334 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
13335
13336         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
13337         switch statement.
13338         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
13339         (*movdf_internal) <case 6,7,8>: Ditto.
13340
13341         * config/i386/constraints.md (Y4): New register constraint.
13342         * config/i386/sse.md (vec_set<mode>_0): Merge with
13343         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
13344         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
13345         *vec_extractv2di_1_sse.
13346         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
13347         and *vec_concatv2di_rex64_sse.
13348
13349 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
13350
13351         PR target/48807
13352         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
13353         of cgraph_local_info for null before attempting to use it.
13354
13355 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
13356
13357         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
13358         (current_function_dynamic_alloc_count): Delete.
13359         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
13360         (expand_builtin_nonlocal_goto): Remove obsolete comment.
13361         (expand_builtin_update_setjmp_buf): Remove dead code.
13362         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
13363         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
13364         support.
13365         * function.c (instantiate_virtual_regs): Likewise.
13366         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
13367         for a block with a single abnormal incoming edge.
13368         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
13369         (SETJMP_VIA_SAVE_AREA): Delete.
13370         * config/sparc/sparc-protos.h (load_got_register): Declare.
13371         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
13372         (load_got_register): Make global.
13373         (sparc_frame_pointer_required): Add 'static'.
13374         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
13375         (sparc_builtin_setjmp_frame_value): New function.
13376         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
13377         (save_stack_nonlocal): New expander.
13378         (restore_stack_nonlocal): Likewise.
13379         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
13380         (nonlocal_goto_internal): New insn.
13381         (goto_handler_and_restore): Delete.
13382         (builtin_setjmp_setup): Likewise.
13383         (do_builtin_setjmp_setup): Likewise.
13384         (setjmp): Likewise.
13385         (builtin_setjmp_receiver): New expander.
13386
13387 2011-06-01  David Li  <davidxl@google.com>
13388
13389         PR middle-end/49261
13390         * tree-pretty-print.c (dump_function_header): Format cleanup.
13391
13392 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
13393
13394         PR target/49238
13395         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
13396         needed when original operands are used for msw_skip comparison.
13397
13398 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
13399
13400         PR debug/49250
13401         * var-tracking.c (add_uses, add_stores): Don't call
13402         cselib_subst_to_values on ENTRY_VALUE.
13403
13404 2011-06-01  Diego Novillo  <dnovillo@google.com>
13405
13406         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
13407         output_record_start with LTO_null instead of output_zero.
13408         (lto_output_ts_binfo_tree_pointers): Likewise.
13409         (lto_output_tree): Likewise.
13410         (output_eh_try_list): Likewise.
13411         (output_eh_region): Likewise.
13412         (output_eh_lp): Likewise.
13413         (output_eh_regions): Likewise.
13414         (output_bb): Likewise.
13415         (output_function): Likewise.
13416         (output_unreferenced_globals): Likewise.
13417         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
13418         instead of NUM_TREE_CODES.
13419         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
13420         (lto_output_int_in_range): Change << to >> when shifting VAL.
13421
13422 2011-06-01  Diego Novillo  <dnovillo@google.com>
13423
13424         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
13425         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
13426
13427 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
13428
13429         PR target/45074
13430         * optabs.h (valid_multiword_target_p): Declare.
13431         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
13432         doing multi-word operations.
13433         * optabs.c (expand_binop): Likewise.
13434         (expand_doubleword_bswap): Likewise.
13435         (expand_absneg_bit): Likewise.
13436         (expand_unop): Likewise.
13437         (expand_copysign_bit): Likewise.
13438         (multiword_target_p): New function.
13439
13440 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
13441
13442         PR rtl-optimization/48830
13443         PR rtl-optimization/48808
13444         PR rtl-optimization/48792
13445         * reload.c (push_reload): Check contains_reg_of_mode.
13446         * reload1.c (strip_paradoxical_subreg): New function.
13447         (gen_reload_chain_without_interm_reg_p): Use it to handle
13448         paradoxical subregs.
13449         (emit_output_reload_insns, gen_reload): Likewise.
13450
13451 2011-06-01  David Li  <davidxl@google.com>
13452
13453         * predict.c : Change pass name
13454         * ipa.c: Ditto.
13455         * dce.c: Ditto.
13456         * tree-profile.c: Ditto.
13457         * except.c: Ditto.
13458
13459 2011-06-01  David Li  <davidxl@google.com>
13460
13461         * tree-pretty-print.c (dump_function_header): New function.
13462         * final.c (rest_of_clean_state): Use header dumper.
13463         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
13464         * passes.c (pass_init_dump_file): Use header dumper.
13465
13466 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
13467
13468         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
13469         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
13470         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
13471         New functions.
13472         (mem_loc_descriptor): Use them.
13473
13474         * var-tracking.c (create_entry_value): New function.
13475         (vt_add_function_parameter): Use it.
13476
13477 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13478
13479         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
13480         Include <signal.h>, <ucontext.h>.
13481         (sigill_caught): Define.
13482         (sigill_hdlr): New function.
13483         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
13484         insns can be executed.
13485         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
13486         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
13487
13488 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13489
13490         * config/t-slibgcc-darwin: Move to ...
13491         * config/t-slibgcc-dummy: ... this.  Clarify comments.
13492         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
13493         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
13494         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
13495         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
13496         Remove i386/t-crtstuff from tmake_file.
13497         (i[34567]86-*-solaris2*): Remove t-svr4,
13498         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
13499         t-slibgcc-dummy.
13500         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
13501         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
13502         sparc/t-crtfm from tmake_file.
13503         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
13504         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
13505         Remove extra_parts.
13506         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
13507         * config/i386/t-nwld (SHLIB_LINK): Remove.
13508         * config/i386/t-rtems-i386: Rename to ...
13509         * config/i386/t-rtems: ... this.
13510         ($(T)crti.o, $(T)crtn.o): Remove.
13511         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
13512         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
13513         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
13514         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
13515         EXTRA_MULTILIB_PARTS): Remove.
13516         * config/sparc/t-sol2-64: Likewise.
13517         * config/sparc/t-sol2: Remove.
13518         * config/sparc/t-crtin: Remove.
13519         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
13520         * config/i386/gmon-sol2.c: Remove.
13521         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
13522         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
13523         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
13524         * config/i386/sol2-gc1.asm: Remove.
13525         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
13526         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
13527         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
13528         * config/t-slibgcc-sld: Remove.
13529
13530 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
13531
13532         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
13533         base_type_for_mode with op_mode instead of mode.
13534
13535 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
13536
13537         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
13538         Cortex-A15.
13539         * config/arm/arm-tune.md: Regenerate.
13540         * config/arm/arm-tables.opt: Regenerate.
13541         * config/arm/arm.c (FL_DIV): Rename...
13542         (FL_THUMB_DIV): ... to this.
13543         (FL_ARM_DIV): Define.
13544         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
13545         (arm_arch_hwdiv): Remove.
13546         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
13547         (arm_issue_rate): Add cortexr5.
13548         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
13549         __ARM_ARCH_EXT_IDIV__.
13550         (TARGET_IDIV): Define.
13551         (arm_arch_hwdiv): Remove.
13552         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
13553         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
13554         (divsi3, udivsi3): New patterns.
13555         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
13556         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
13557
13558 2011-06-01  Martin Jambor  <mjambor@suse.cz>
13559
13560         * ipa-utils.c (ipa_dfs_info): New field scc_no.
13561         * ipa-utils.c (searchc): Set scc_no.
13562
13563 2011-06-01  Martin Jambor  <mjambor@suse.cz>
13564
13565         * ipa-utils.c (searchc_env): New field allow_overwritable.
13566         (searchc): do not ignore edges to overwritable nodes if indicated
13567         by env->allow_overwritable.
13568         (ipa_reduced_postorder): Set env.allow_overwritable.
13569
13570 2011-06-01  Richard Guenther  <rguenther@suse.de>
13571
13572         * tree.c (free_lang_data): Do not reset boolean_type_node nor
13573         char_type_node.
13574         * lto-streamer.c (lto_record_common_node): Take node pointer,
13575         do not register types.
13576         (lto_preload_common_nodes): Explicitly skip preloading nodes
13577         that differ between frontends.
13578
13579 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
13580
13581         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
13582         NON_FLOAT_REGS.
13583
13584 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
13585
13586         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
13587         parameter value for dump. Dump cost on outermost call only.
13588         (rs6000_memory_move_cost): Dump cost on outermost call only.
13589
13590 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
13591
13592         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
13593         DW_OP_GNU_convert ops.
13594
13595         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
13596         cselib_preserve_constants.
13597         (cselib_lookup_1): If cselib_preserve_constants,
13598         a new VALUE is being created for REG and there is a VALUE for the
13599         same register in wider mode, add another loc with lowpart SUBREG of
13600         the wider VALUE.
13601         (cselib_subst_to_values): Handle ENTRY_VALUE.
13602         * var-tracking.c  (replace_expr_with_values): Return NULL for
13603         ENTRY_VALUE too.
13604         * dwarf2out.c (convert_descriptor_to_signed): New function.
13605         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
13606         instead of two shifts.
13607         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
13608         the right mode if needed.
13609         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
13610         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
13611         convert_descriptor_to_signed.
13612         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
13613         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
13614
13615         PR target/48688
13616         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
13617
13618 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
13619
13620         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
13621         of X87MODEI12 and SWI48x instead of SSEMODEI24.
13622         (SWI248x): New mode iterator, rename from X87MODEI.
13623         (X87MODEI): Remove mode iterator.
13624         (X87MODEI12): Ditto.
13625         (SSEMODEI24): Ditto.
13626
13627 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
13628
13629         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
13630         * doc/invoke.texi: Document max-vartrack-expr-depth.
13631         * var-tracking.c (EXPR_DEPTH): New.
13632         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
13633
13634 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
13635
13636         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
13637         * config/i386/sse.md: Add n to negated FMA pattern names.
13638
13639 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
13640
13641         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
13642
13643 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
13644
13645         * gengtype-state.c (read_state_params_structs): Initialize previous.
13646
13647 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
13648
13649         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
13650         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
13651
13652 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
13653
13654         * config/i386/i386.md (*movtf_internal): Avoid allocating general
13655         registers.  Penalize F*r->o alternative to prevent partial memory
13656         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
13657         CONST_DOUBLE immediates when optimizing function for size.  Do not move
13658         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
13659         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
13660         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
13661         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
13662         alternatives.
13663         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
13664
13665         (fp_register_operand splitters): Use fp_register_operand
13666         constraint.  Do not use FP_REG_P in insn condition.
13667         (any_fp_register_operand splitters): Use any_fp_register_operand
13668         constraint.  Do not use ANY_FP_REG_P in insn condition.
13669
13670 2011-05-31  Jan Hubicka  <jh@suse.cz>
13671
13672         * cgraph.h (cgraph_inline_failed_t): Give enum a name
13673         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
13674         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
13675         (lto_output_edge): Use output_enum and var_len_unsigned.
13676         (lto_output_varpool_node): Likewise.
13677         (input_overwrite_node): Do not take resolution parameter;
13678         extract it from a bitpack.
13679         (input_node): Do not read resolution; use input_enum and
13680         var_len_unsigned.
13681         (input_varpool_node): Likewise.
13682         (input_edge): Likewise.
13683         (input_cgraph_1): Likewise.
13684
13685 2011-05-31  Richard Guenther  <rguenther@suse.de>
13686
13687         * gimple.c (gimple_register_canonical_type): Do not register
13688         any types via gimple_register_type.
13689
13690 2011-05-31  Jan Hubicka  <jh@suse.cz>
13691
13692         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
13693         of thunks.
13694
13695 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
13696
13697         PR rtl-optimization/49235
13698         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
13699         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
13700
13701 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
13702
13703         PR tree-optimization/49093
13704         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
13705         data references.
13706
13707 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
13708
13709         PR debug/49047
13710         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
13711         for concrete functions containing the code of cloned functions.
13712
13713 2011-05-31  Richard Guenther  <rguenther@suse.de>
13714
13715         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
13716         to ...
13717         (forward_propagate_into_comparison_1): ... this.
13718         (forward_propagate_comparison): Rename to ...
13719         (forward_propagate_into_comparison): ... this.  Split out
13720         real forward propagation code to ...
13721         (forward_propagate_comparison): ... this.
13722         (forward_propagate_into_gimple_cond): Remove looping.
13723         (forward_propagate_into_cond): Likewise.
13724         (simplify_not_neg_expr): Return whether we have done something.
13725         (simplify_gimple_switch): Likewise.
13726         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
13727         (ssa_forward_propagate_and_combine): ... this.  Re-structure
13728         to do a forward forward-propagation walk on BBs and a backward
13729         stmt combining walk on BBs.  Consistently re-scan changed statements.
13730         (pass_forwprop): Adjust.
13731
13732 2011-05-30  Ian Lance Taylor  <iant@google.com>
13733
13734         * godump.c (go_format_type): Correct length of name added to
13735         obstack for anonymous field.
13736
13737 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
13738
13739         PR target/49186
13740         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
13741         part of the second operand is 0.
13742
13743 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
13744
13745         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
13746         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
13747         to memory for !TARGET_MEMORY_MISMATCH_STALL.
13748         (*movdf_internal_rex64): Do not penalize F->r alternative.
13749         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
13750         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
13751         when optimizing function for size.  Do not move CONST_DOUBLEs
13752         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
13753         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
13754         SUBREGs.  Do not check for MEM_P operands in the insn condition,
13755         check for ANY_FP_REGNO_P instead.
13756         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
13757         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
13758         function for speed.
13759         * config/i386/i386.c (ix86_option_override_internal): Do not
13760         set TARGET_INTEGER_DFMODE_MOVES here.
13761
13762 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
13763
13764         PR target/49168
13765         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
13766
13767 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
13768
13769         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
13770         DW_TAG_rvalue_reference_type even for
13771         -gdwarf-4 -fno-debug-types-section.
13772
13773 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13774
13775         PR tree-optimization/46728
13776         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
13777         (build_and_insert_binop): New.
13778         (gimple_expand_builtin_pow): Reorder args for
13779         build_and_insert_call; use build_and_insert_binop; add more
13780         optimizations for fractional exponents.
13781
13782 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
13783
13784         PR bootstrap/49190
13785
13786         Revert:
13787         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
13788
13789         * tree.h (struct tree_identifier): Inherit from tree_typed, not
13790         tree_common.
13791         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
13792         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
13793         TS_BASE instead of TS_COMMON.
13794         * varasm.c (assemble_name): Remove assert.
13795
13796 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
13797
13798         * config.gcc: Keep obselete list sorted.
13799
13800 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
13801             Eric Botcazou  <ebotcazou@adacore.com>
13802
13803         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
13804         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
13805         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
13806         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
13807         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
13808
13809 2011-05-30  Richard Guenther  <rguenther@suse.de>
13810
13811         * gimple.c (gimple_types_compatible_p_1): Compare record
13812         and union type members properly.
13813
13814 2011-05-30  Richard Guenther  <rguenther@suse.de>
13815
13816         PR tree-optimization/49210
13817         * ipa-split.c (split_function): Care for the case where the call
13818         result is not trivially convertible to the result holding variable.
13819
13820 2011-05-30  Richard Guenther  <rguenther@suse.de>
13821
13822         PR tree-optimization/49218
13823         * tree-vrp.c (adjust_range_with_scev): Properly check whether
13824         overflow occured.
13825
13826 2011-05-30  Richard Guenther  <rguenther@suse.de>
13827
13828         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
13829         New function split out from ...
13830         (forward_propagate_into_gimple_cond): ... here.  Adjust.
13831         (forward_propagate_into_cond): Likewise.
13832         (forward_propagate_comparison): Also propagate into
13833         comparisons on assignment RHS.  Change return value to
13834         behave similar to forward_propagate_into_cond.
13835         (tree_ssa_forward_propagate_single_use_vars): Handle
13836         strict-overflow warnings properly for forward_propagate_comparison.
13837
13838 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13839
13840         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
13841         from plugin linker.
13842         * configure: Regenerate.
13843
13844 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
13845
13846         PR tree-optimization/49199
13847         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
13848         non-reduction operands are either defined in the loop or by induction.
13849
13850 2011-05-29  Xinliang David Li  <davidxl@google.com>
13851
13852         * opts-global.c (handle_common_deferred_options): Handle new options.
13853         * passes.c (register_one_dump_file): Call register_pass_name.
13854         (execute_one_pass): Check explicit enable/disable flag.
13855         (passr_hash): New function.
13856         (passr_eq): Ditto.
13857         (register_pass_name): Ditto.
13858         (get_pass_by_name): Ditto.
13859         (pass_hash): Ditto.
13860         (pass_eq): Ditto.
13861         (enable_pass): Ditto.
13862         (disable_pass): Ditto.
13863         (is_pass_explicitly_enabled_or_disabled): Ditto.
13864
13865 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
13866
13867         * config/i386/i386.md (*movoi_internal_avx): Use
13868         standard_sse_constant_opcode for alternative 0.
13869         (*movti_internal_sse): Ditto.
13870         (*movti_internal_rex64): Use standard_sse_constant_opcode for
13871         alternative 2.
13872         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
13873         sselog1 type moves.
13874         (*movsi_internal): Ditto.
13875         (*movdi_internal): Ditto.  Add ssecvt type moves.
13876
13877 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
13878
13879         PR target/48830
13880         * rtlanal.c (simplify_subreg_regno): Adjust comment.
13881
13882 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
13883
13884         PR rtl-optimization/49095
13885         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
13886         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
13887
13888 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
13889
13890         PR target/43995
13891         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
13892         recurse_p argument.  Only follow register copies if it is set,
13893         and prevent mips_find_pic_call_symbol from recursing.
13894         (mips_find_pic_call_symbol): Add a recurse_p argument.
13895         Pass it to mips_pic_call_symbol_from_set.
13896         (mips_annotate_pic_calls): Update accordingly.
13897
13898 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
13899
13900         * emit-rtl.c (try_split): Use a loop to search for
13901         NOTE_INSN_CALL_ARG_LOCATIONs.
13902
13903 2011-05-29  Richard Guenther  <rguenther@suse.de>
13904
13905         PR tree-optimization/49217
13906         * ipa-pure-const.c (propagate_pure_const): Fix typos.
13907
13908 2011-05-28  Jan Hubicka  <jh@suse.cz>
13909
13910         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
13911         length.
13912         (string_slot_free): Remove
13913         (create_output_block): Initialize obstack.
13914         (destroy_output_block): Free obstack.
13915         (lto_string_index): Add PERSISTENT parameter; do not duplicate
13916         the string unless it needs to be added into the hash.
13917         (lto_output_string_with_length): Add persistent attribute;
13918         handle NULL strings.
13919         (lto_output_string): Add PERSISTENT parameter.
13920         (output_string_cst, output_identifier): Simplify.
13921         (lto_output_location_bitpack): Update.
13922         (lto_output_builtin_tree): Update.
13923         * lto-streamer.h (struct output_block): Add obstack.
13924         (lto_output_string, lto_output_string_with_length): Remove
13925         declarations; functions are static now.
13926
13927 2011-05-28  Jan Hubicka  <jh@suse.cz>
13928
13929         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
13930         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
13931         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
13932         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
13933         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
13934         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
13935         unpack_ts_decl_with_vis_value_fields,
13936         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
13937         lto_get_builtin_tree): Use enum and variable length i/o.
13938         * basic-block.h (profile_status_d): Add PROFILE_LAST.
13939         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
13940         New functions.
13941         (bp_pack_enum, bp_unpack_enum): New macros.
13942
13943 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
13944
13945         * genrecog.c: Remove redundant forward declarations.
13946
13947 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
13948
13949         * config.gcc: Deprecate mips*-*-openbsd*.
13950
13951 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
13952
13953         PR bootstrap/49195
13954         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
13955         for match_op_dup.
13956
13957 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
13958
13959         PR middle-end/48981
13960         * gengtype.c (vec_prefix_type): New function.
13961         (note_def_vec): Use vec_prefix_type and change the length
13962         attribute to be based on the prefix.
13963         * vec.c: Include coretypes.h before vec.h.
13964         (struct vec_prefix): Remove.
13965         (vec_gc_p_reserve): Change the offsetof to sizeof.
13966         (vec_gc_p_reserve_exact): Likewise.
13967         (vec_heap_p_reserve): Likewise.
13968         (vec_heap_p_reserve_exact): Likewise.
13969         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
13970         (vec_stack_p_reserve): Change the offsetof to sizeof.
13971         (vec_stack_p_reserve_exact): Likewise.
13972         * vec.h (struct vec_prefix): New struct definition.
13973         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
13974         (VEC_T_GTY(T,B)): Likewise.
13975         (DEF_VEC_FUNC_P(T)): Use prefix field.
13976         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
13977         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
13978
13979 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13980
13981         PR tree-optimization/46728
13982         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
13983         (powi_as_mults): Add gimple_set_location.
13984         (build_and_insert_call): New.
13985         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
13986         0.5, 0.25, 0.75, 1./3., or 1./6.
13987
13988 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
13989
13990         * doc/contrib.texi: Update copyright years.
13991         (Contributors): Add Zdenek Sojka.
13992
13993 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
13994
13995         * c-decl.c (c_push_function_context): Copy the current statement
13996         list stack.
13997         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
13998         (finish_struct): Call building_stmt_list_p instead of checking
13999         cur_stmt_list.
14000         * c-parser.c (c_parser_postfix_expression): Likewise.
14001         * c-typeck.c (c_end_compound_stmt): Likewise.
14002         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
14003         * tree-iterator.c (stmt_list_cache): Change to a VEC.
14004         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
14005         (free_stmt_list): Likewise.
14006         * tree.h (struct tree_statement_list): Include typed_tree instead
14007         of tree_common.
14008         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
14009         as TS_TYPED instead of TS_COMMON.
14010
14011 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14012             Uros Bizjak  <ubizjak@gmail.com>
14013
14014         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
14015         (HAVE_AS_IX86_TLSGDPTL): Define.
14016         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
14017         (HAVE_AS_IX86_TLSLDMPLT): Define.
14018         * configure: Regenerate.
14019         * config.in: Regenerate.
14020         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
14021         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
14022         TARGET_SUN_TLS, use @tlsgdplt or @plt.
14023         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
14024         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
14025         @tlsldmplt or @plt.
14026         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
14027
14028 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
14029
14030         * sched-int.h (struct _haifa_deps_insn_data): New members cond
14031         and reverse_cond.
14032         (INSN_COND, INSN_REVERSE_COND): New macros.
14033         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
14034         once.
14035         (sched_get_condition_with_rev): Cache the results, and look them up
14036         if possible.
14037         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
14038         are clobbered by the current insn.
14039         * target.def (exposed_pipline): New sched data hook.
14040         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
14041         * doc/tm.texi: Regenerate.
14042
14043 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14044
14045         PR tree-optimization/49170
14046         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
14047         sincos or cexp.
14048
14049 2011-05-27  Richard Guenther  <rguenther@suse.de>
14050
14051         PR middle-end/49189
14052         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
14053         of comparisons.
14054
14055 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
14056
14057         * haifa-sched.c (sched_scan_info): Remove.
14058         (schedule_block): Call sched_extend_luids rather than sched_init_luids
14059         with NULL args.
14060         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
14061         Remove functions.
14062         (sched_scan): Remove.
14063         (sched_extend_luids): Renamed from luids_extend_insn and no longer
14064         static.  All callers changed.
14065         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
14066         static.  All callers changed.
14067         (sched_init_luids): Remove all arguments except the first.  All
14068         callers changed.  Don't use sched_scan.
14069         (haifa_init_h_i_d): Likewise.
14070         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
14071         manually rather than using sched_init_luids.  Likewise with
14072         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
14073         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
14074         rather than sched_init_luids with NULL args.
14075         * sel-sched-ir.c (new_insns): Remove variable.
14076         (sched_scan): New static function, previously in haifa-sched.c.  Remove
14077         all arguments but the first two; all callers changed.
14078         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
14079         rather than sched_init_luids.
14080         (sel_init_bbs): Remove second argument.  All callers changed.
14081         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
14082         with NULL arguments.
14083         (create_insn_rtx_from_pattern): Likewise.
14084         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
14085         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
14086         (sched_init_insn_luid, sched_extend_luids): Declare.
14087         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
14088         declarations.
14089
14090 2011-05-27  Richard Guenther  <rguenther@suse.de>
14091
14092         PR middle-end/49177
14093         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
14094         A CMP B ? (T) true : (T) false for non-integral types T again.
14095
14096 2011-05-27  Jan Hubicka  <jh@suse.cz>
14097
14098         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
14099         so 0 means NULL string.
14100         (lto_output_string_with_length): ... here.
14101         (lto_output_string, output_string_cst, output_identifier): Update
14102         handling of NULL strings.
14103         (lto_output_location_bitpack): New function.
14104         (lto_output_location): Use it.
14105         (lto_output_tree_ref): Use output_record_start.
14106         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
14107         len values.
14108         * lto-streamer-in.c (string_for_index): Break out from ...; offset
14109         values by 1.
14110         (input_string_internal): ... here;
14111         (input_string_cst, input_identifier, lto_input_string): Update handling
14112         of NULL strings.
14113         (lto_input_location_bitpack): New function
14114         (lto_input_location): Use it.
14115         (unpack_ts_type_common_value_fields): Pack align & alias in var len
14116         values.
14117         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
14118         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
14119         (bp_pack_value): Sanity check the value range.
14120         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
14121         New functions.
14122         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
14123         New functions.
14124
14125 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
14126
14127         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
14128         call_arg_location instructions down the floor.
14129
14130 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
14131
14132         PR rtl-optimization/49154
14133         * ira.c (setup_pressure_classes): Process class without sublcasses
14134         as a candidate for pressure classes.
14135
14136 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
14137
14138         PR rtl-optimization/48575
14139         * genrecog.c (position_type): New enum.
14140         (position): New structure.
14141         (decision): Use position structure instead of a string.
14142         (root_pos, peep2_insn_pos_list): New variables.
14143         (next_position, compare_positions): New functions.
14144         (new_decision): Use position structures instead of strings.
14145         (maybe_both_true): Likewise.
14146         (change_state): Likewise.
14147         (write_tree): Likewise.
14148         (make_insn_sequence): Likewise.
14149
14150 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
14151
14152         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
14153         TS_BASE instead of TS_COMMON.
14154         (find_decls_types_r): Check for TS_TYPED structure before looking at
14155         TREE_TYPE.
14156         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
14157         Add chain field.
14158         (BLOCK_CHAIN): Use new chain field.
14159
14160 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
14161
14162         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
14163         moves expensive on Power7 also.
14164
14165 2011-05-26  Richard Guenther  <rguenther@suse.de>
14166
14167         * fold-const.c (fold_unary_loc): Remove bogus code.
14168
14169 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
14170
14171         * tree.h (struct tree_identifier): Inherit from tree_typed, not
14172         tree_common.
14173         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
14174         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
14175         TS_BASE instead of TS_COMMON.
14176         * varasm.c (assemble_name): Remove assert.
14177
14178 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
14179
14180         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
14181         substituted first.
14182         * libgcc-std.ver: Delete file.
14183
14184 2011-05-26  Richard Guenther  <rguenther@suse.de>
14185
14186         PR tree-optimization/48702
14187         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
14188         only when we know the base address is within bounds.
14189         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
14190         assume the base address of TARGET_MEM_REFs is in bounds.
14191
14192 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14193
14194         PR target/49099
14195         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
14196         declaration in TARGET_SOLARIS.
14197
14198 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
14199
14200         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
14201         The instruction is then expanded explicitly.
14202         (supported_compare): Callable instruction.
14203         (compare): Likewise.
14204
14205 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
14206
14207         PR c++/49165
14208         * gimplify.c (shortcut_cond_r): Don't special case
14209         COND_EXPRs if they have void type on one of their arms.
14210
14211 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
14212
14213         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
14214         to reduce duplication, and to achieve a slightly more logical order
14215         of operations.
14216
14217 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
14218
14219         PR tree-optimization/49161
14220         * tree-vrp.c (struct case_info): New type.
14221         (compare_case_labels): Sort case_info structs instead of
14222         trees, and not primarily by CASE_LABEL uids but by
14223         label_for_block indexes.
14224         (find_switch_asserts): Put case labels into struct case_info
14225         array instead of TREE_VEC, adjust sorting, compare label_for_block
14226         values instead of CASE_LABELs.
14227
14228 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14229
14230         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
14231         ("orndi3_neon"): Likewise.
14232         ("bic<mode>3_neon"): Likewise.
14233
14234 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
14235
14236         PR tree-optimization/49038
14237         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
14238         Ensure at least one epilogue iteration if required by data
14239         accesses with gaps.
14240         * tree-vectorizer.h (struct _loop_vec_info): Add new field
14241         to mark loops that require peeling for gaps.
14242         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
14243         (vect_get_known_peeling_cost): Take peeling for gaps into
14244         account.
14245         (vect_transform_loop): Generate epilogue if required by data
14246         access with gaps.
14247         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
14248         loop as requiring an epilogue if there are gaps in the end of
14249         the strided group.
14250
14251 2011-05-25  Ian Lance Taylor  <iant@google.com>
14252
14253         * godump.c (go_format_type): Output the first field with a usable
14254         Go type, if any.
14255
14256 2011-05-25  Ian Lance Taylor  <iant@google.com>
14257
14258         * godump.c (go_format_type): Check for invalid type names, pointer
14259         target types, and struct field types.
14260
14261 2011-05-25  Jason Merrill  <jason@redhat.com>
14262
14263         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
14264
14265 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
14266
14267         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
14268
14269 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
14270
14271         * config/i386/i386.md (*movqi_extv_1)): Put back
14272         "register_operand" check in "type" calculation.
14273         (*movqi_extzv_2): Likewise.
14274
14275 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
14276
14277         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
14278
14279 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
14280
14281         PR bootstrap/49160
14282         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
14283         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
14284         __divxc3, __divtc3): Wrap definitions in #ifndef.
14285
14286 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
14287
14288         PR target/49142
14289         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
14290         "register_operand" check and replace q_regs_operand with
14291         QIreg_operand in "type" calculation.
14292         (*movqi_extv_1): Likewise.
14293         (*movqi_extzv_2_rex64): Likewise.
14294         (*movqi_extzv_2): Likewise.
14295
14296         * config/i386/predicates.md (QIreg_operand): New.
14297
14298 2011-05-25  Richard Guenther  <rguenther@suse.de>
14299
14300         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
14301         type-based offset disambiguation, streamline MEM_REF and
14302         TARGET_MEM_REF handling.
14303
14304 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
14305
14306         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
14307         (bdesc_special_args): Add pause intrinsic.
14308
14309         * config/i386/i386.md (UNSPEC_PAUSE): New.
14310         (pause): Likewise.
14311         (*pause): Likewise.
14312         * config/i386/ia32intrin.h (__pause): Likewise.
14313
14314         * doc/extend.texi (X86 Built-in Functions): Add documentation for
14315         pause intrinsic.
14316
14317 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14318
14319         PR tree-optimization/46728
14320         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
14321         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
14322
14323 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
14324
14325         * tree.h (struct tree_exp): Inherit from struct tree_typed.
14326         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
14327         instead of TS_COMMON.
14328
14329 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
14330
14331         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
14332         LIBGCC2_GNU_PREFIX is defined.
14333         (__N): New macro.
14334         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
14335         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
14336         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
14337         __clz_tab): Define using __N.
14338         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
14339         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
14340         * target.def (libfunc_gnu_prefix): New hook.
14341         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
14342         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
14343         * doc/tm.texi: Regenerate.
14344         * system.h (LIBGCC2_GNU_PREFIX): Poison.
14345         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
14346         account.
14347         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
14348         (init_optabs): Likewise for the bswap libfuncs.
14349         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
14350         and divide.
14351         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
14352         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
14353         * libgcc-std.ver: Remove.
14354         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
14355         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
14356         libgcc-std.ver.
14357         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
14358         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
14359         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
14360         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
14361         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
14362         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
14363         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
14364         * config/fixed-bit.h (FIXED_OP): Define differently depending on
14365         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
14366         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
14367
14368 2011-05-25  Jan Hubicka  <jh@suse.cz>
14369
14370         * lto-streamer-out.c (output_record_start): Use lto_output_enum
14371         (lto_output_tree): Use output_record_start.
14372         * lto-streamer-in.c (input_record_start): Use lto_input_enum
14373         (lto_get_pickled_tree): Use input_record_start.
14374         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
14375         (lto_value_range_error): New function.
14376         * lto-streamer.h (lto_value_range_error): Declare.
14377         (lto_output_int_in_range, lto_input_int_in_range): New functions.
14378         (lto_output_enum, lto_input_enum): New macros.
14379
14380 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
14381
14382         * common.opt (flag_stack_usage_info): New variable.
14383         (-Wstack-usage): New option.
14384         * doc/invoke.texi (Warning options): Document -Wstack-usage.
14385         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
14386         <OPT_fstack_usage>: Likewise.
14387         * toplev.c (output_stack_usage): Handle -Wstack-usage.
14388         * calls.c (expand_call): Test flag_stack_usage_info variable instead
14389         of flag_stack_usage.
14390         (emit_library_call_value_1): Likewise.
14391         * explow.c (allocate_dynamic_stack_space): Likewise.
14392         * function.c (instantiate_virtual_regs ): Likewise.
14393         (prepare_function_start): Likewise.
14394         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
14395         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
14396         * config/arm/arm.c (arm_expand_prologue): Likewise.
14397         (thumb1_expand_prologue): Likewise.
14398         * config/avr/avr.c (expand_prologue): Likewise.
14399         * config/i386/i386.c (ix86_expand_prologue): Likewise.
14400         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
14401         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
14402         * config/mips/mips.c (mips_expand_prologue): Likewise.
14403         * config/pa/pa.c (hppa_expand_prologue): Likewise.
14404         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
14405         * config/s390/s390.c (s390_emit_prologue): Likewise.
14406         * config/sh/sh.c (sh_expand_prologue): Likewise.
14407         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
14408         * config/spu/spu.c (spu_expand_prologue): Likewise.
14409
14410 2011-05-25  Richard Guenther  <rguenther@suse.de>
14411
14412         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
14413         (gimple_canonical_types_compatible_p): Likewise.
14414
14415 2011-05-25  Jan Hubicka  <jh@suse.cz>
14416
14417         PR middle-end/49062
14418         * ipa.c (function_and_variable_visibility): Only add to same
14419         comdat group list if DECL_ONE_ONLY.
14420
14421 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
14422
14423         PR rtl-optimization/49014
14424         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
14425
14426 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
14427
14428         PR target/49128
14429         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
14430
14431 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
14432
14433         PR rtl-optimization/48757
14434         * ira-build.c (loop_with_eh_edge_p): Rename to
14435         loop_with_complex_edge_p, check edges on complexity, make function
14436         conditional.
14437         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
14438         conditional.
14439
14440 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
14441
14442         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
14443         force flag_ira_share_save_slots to 0.
14444
14445 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
14446
14447         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
14448         (vt_initialize): Set PROLOGUE_BB unconditionally.
14449         Add block comment about CFA_BASE_RTX machinery.
14450         Reset FP_CFA_OFFSET to -1 on all invalid paths.
14451         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
14452
14453 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
14454
14455         PR objc/48187
14456         * c-parser.c (c_parser_objc_class_instance_variables): More robust
14457         parsing of syntax error in ObjC instance variable lists.  In
14458         particular, avoid an infinite loop if there is a stray ']'.
14459         Updated error message.
14460
14461 2011-05-24  Ian Lance Taylor  <iant@google.com>
14462
14463         * godump.c (go_define): Don't accept a string immediately after
14464         another operand.
14465
14466 2011-05-24  Ian Lance Taylor  <iant@google.com>
14467
14468         * godump.c (struct godump_container): Add invalid_hash field.
14469         (go_format_type): Return false if type is found in invalid_hash.
14470         (go_output_typedef): Add invalid type to invalid_hash.
14471         (go_finish): Create and delete invalid_hash.
14472
14473 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14474
14475         PR tree-optimization/46728
14476         * tree-ssa-math-opts.c (powi_table): New.
14477         (powi_lookup_cost): New.
14478         (powi_cost): New.
14479         (powi_as_mults_1): New.
14480         (powi_as_mults): New.
14481         (gimple_expand_builtin_powi): New.
14482         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
14483         (gate_cse_sincos): Remove sincos/cexp restriction.
14484
14485 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14486
14487         PR target/3746
14488         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
14489         mips-tdump native.
14490         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
14491         * mips-tdump.c: Likewise.
14492
14493 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
14494
14495         PR target/49128
14496         * config/i386/driver-i386.c (host_detect_local_cpu): Always
14497         add -mno-XXX.  Handle FMA.
14498
14499 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
14500
14501         PR rtl-optimization/48633
14502         * ira-build.c (loop_with_eh_edge_p): New function.
14503         (mark_loops_for_removal): Use it.
14504
14505 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
14506
14507         PR rtl-optimization/48971
14508         * ira.c (setup_pressure_classes): Don't check register move cost
14509         for classes with one registers.  Don't add pressure class if there
14510         is a pressure class with the same available hard registers.
14511         Check contains_reg_of_mode.  Fix a typo in collecting
14512         temp_hard_regset.  Ignore hard registers not belonging to a class.
14513
14514 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
14515
14516         PR target/49133
14517         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
14518
14519 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
14520             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14521
14522         PR gcov-profile/48845
14523         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
14524
14525 2011-05-24  Richard Guenther  <rguenther@suse.de>
14526
14527         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
14528         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
14529         (gimple_types_compatible_p_1): Adjust.
14530         (iterative_hash_canonical_type): Do not bother about complete vs.
14531         incomplete types.
14532         (gimple_canonical_types_compatible_p): Likewise.
14533
14534 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14535
14536         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
14537
14538 2011-05-24  Richard Guenther  <rguenther@suse.de>
14539
14540         PR bootstrap/49078
14541         * gimple.c (gimple_register_canonical_type): Revert
14542         previous change.
14543         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
14544         does not for a tree for the case where it matters.  Cache
14545         pointer-type alias-sets.
14546
14547 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
14548
14549         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
14550         (OBJS): Remove options.o, opts-common.o and prefix.o.
14551         (OBJS-libcommon-target): New.
14552         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
14553         (BACKEND): Include libcommon-target.a.
14554         (MOSTLYCLEANFILES): Include libcommon-target.a.
14555         (libcommon-target.a): New.
14556         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
14557         prefix.o.
14558
14559 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
14560
14561         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
14562         parts of output shared with the driver.
14563         * optc-gen.awk: Don't generate parts of output not shared with the
14564         driver.
14565         * opth-gen.awk: Remove GCC_DRIVER conditionals.
14566         * doc/options.texi (SourcerInclude): Mention options-save.c.
14567         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
14568         (OBJS): Add options-save.o.
14569         (options-save.c, options-save.o): New.
14570         (options.o): Update dependencies.
14571         (gcc-options.o): Remove.
14572         (mostlyclean): Remove options-save.c.
14573
14574 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
14575
14576         PR debug/49032
14577         * dbxout.c: Include cgraph.h.
14578         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
14579         and without value expr, return NULL if no varpool node exists for
14580         it or if it is not needed.
14581         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
14582
14583         PR c/49120
14584         * c-decl.c (start_decl): Convert expr to void_type_node.
14585
14586 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
14587
14588         PR rtl-optimization/48826
14589         * emit-rtl.c (try_split): When splitting a call that is followed
14590         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
14591
14592 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
14593
14594         * cfgexpand.c (expand_debug_expr): For unused non-addressable
14595         parameters passed in memory prefer using DECL_INCOMING_RTL over
14596         the pseudos it will be copied into.
14597
14598 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
14599
14600         PR target/47315
14601         * config/i386/i386.c (ix86_option_override_internal): Save the
14602         initial options after checking vzeroupper.
14603
14604 2011-05-23  David Li  <davidxl@google.com>
14605
14606         PR tree-optimization/48988
14607         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
14608         Initialize has_valid_pred for each pred chain.
14609
14610 2011-05-23  Richard Guenther  <rguenther@suse.de>
14611
14612         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
14613         (iterative_hash_gimple_type): Always hash type names.
14614
14615 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
14616
14617         * c-typeck.c (build_function_call_vec): Tweak call to
14618         check_function_arguments.
14619
14620 2011-05-23  Richard Guenther  <rguenther@suse.de>
14621
14622         PR tree-optimization/49115
14623         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
14624         is not necessarily carried out, do not claim it kills the ref.
14625         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
14626
14627 2011-05-23  Richard Guenther  <rguenther@suse.de>
14628
14629         PR middle-end/15419
14630         * builtins.c (fold_builtin_memory_op): Be less restrictive about
14631         what pointer types we accept for folding.
14632
14633 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14634
14635         * gthr-gnat.c: Remove.
14636         * gthr-gnat.h: Remove.
14637         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
14638         * config/t-freebsd (LIB2ADDEH): Likewise.
14639         * config/t-linux (LIB2ADDEH): Likewise.
14640         * config/t-sol2 (LIB2ADDEH): Likewise.
14641         * config/ia64/t-vms (LIB2ADDEH): Likewise.
14642         * configure.ac (target_thread_file): Remove gnat handling.
14643         * configure: Regenerate.
14644         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
14645
14646 2011-05-23  Tristan Gingold  <gingold@adacore.com>
14647             Eric Botcazou  <ebotcazou@adacore.com>
14648
14649         * gcov.c (create_file_names): If no object directory is specified,
14650         keep the directory of the file.
14651
14652 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14653
14654         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
14655         * configure: Regenerate.
14656
14657 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
14658
14659         PR middle-end/48973
14660         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
14661         failed and the comparison has a single bit signed type, use
14662         constm1_rtx instead of const1_rtx for true value.
14663         (do_store_flag): If ops->type is single bit signed type, disable
14664         signel bit test optimization and pass -1 instead of 1 as last
14665         parameter to emit_store_flag_force.
14666
14667 2011-05-23  Tom de Vries  <tom@codesourcery.com>
14668
14669         PR target/45098
14670         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
14671         function.
14672         (infer_loop_bounds_from_undefined): Use new function.
14673
14674 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
14675
14676         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
14677         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
14678         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
14679         and -O0 otherwise.
14680         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
14681
14682 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
14683
14684         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
14685         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
14686         returns true.
14687
14688 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
14689
14690         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
14691
14692 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
14693
14694         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
14695         UNSPEC_MOVE_PIC pattern.
14696
14697 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
14698
14699         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
14700         (sparc-*-rtems*): Likewise.
14701         (sparc64-*-elf*): Likewise.
14702         (sparc64-*-rtems*): Likewise.
14703         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
14704         * config/sparc/t-crtin: New file.
14705         * config/sparc/t-sol2 (crti.o): Delete rule.
14706         (crtn.o): Likewise.
14707         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
14708         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
14709         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
14710         (ENDFILE_SPEC): Add crtn.o.
14711
14712 2011-05-22  Tom de Vries  <tom@codesourcery.com>
14713
14714         PR middle-end/48689
14715         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
14716         CODE_CONTAINS_STRUCT (TS_COMMON).
14717
14718 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
14719
14720         PR middle-end/49029
14721         * expmed.c (extract_fixed_bit_field): Test whether target can be used
14722         only after deciding which mode to use.
14723
14724 2011-05-22  Tom de Vries  <tom@codesourcery.com>
14725
14726         PR target/45098
14727         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
14728         for call to get_shiftadd_cost.
14729
14730 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
14731
14732         PR target/49104
14733         * config/i386/cpuid.h (bit_MMXEXT): New define.
14734
14735 2011-05-22  Nick Clifton  <nickc@redhat.com>
14736
14737         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
14738         initialisation of non-existant args[2] element.  Use args[] array
14739         not arg[] array to pass arguments to build_function_type_list.
14740
14741 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
14742
14743         PR tree-optimization/49087
14744         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
14745
14746 2011-05-21  Jason Merrill  <jason@redhat.com>
14747
14748         PR c++/49092
14749         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
14750         static storage duration.
14751
14752 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
14753
14754         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
14755         frame pointer.
14756
14757 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
14758
14759         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
14760         false if there are call-saved registers here...
14761         (sparc_can_use_return_insn_p): ...but here instead.
14762         (save_or_restore_regs): Fix thinko.
14763         (sparc_expand_prologue): Use current_function_is_leaf.
14764         (sparc_frame_pointer_required): Likewise.
14765
14766 2011-05-21  Nick Clifton  <nickc@redhat.com>
14767
14768         PR target/49098
14769         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
14770
14771 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
14772
14773         * gengtype.c (walk_type): Implemented "atomic" GTY option.
14774         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
14775
14776 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
14777
14778         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
14779         * optc-gen.awk: Move common code to opt-read.awk.
14780         * opth-gen.awk: Likewise.
14781         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
14782
14783 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
14784
14785         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
14786
14787 2011-05-20  Tom de Vries  <tom@codesourcery.com>
14788
14789         PR target/45098
14790         * tree-ssa-loop-ivopts.c: Include expmed.h.
14791         (get_shiftadd_cost): New function.
14792         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
14793
14794 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
14795
14796         PR bootstrap/49086
14797         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
14798         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
14799
14800 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
14801
14802         * Makefile.in: Update comment referring to $(OBJS-common).
14803
14804 2011-05-20  Ian Lance Taylor  <iant@google.com>
14805
14806         * godump.c (go_output_typedef): Put enum constants in the macro
14807         hash table to avoid duplicate Go const definitions.
14808
14809 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
14810
14811         * Makefile.in (LIBDEPS): Add libcommon.a.
14812         (LIBS): Likewise.
14813         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
14814         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
14815         pretty-print.o and version.o.
14816         (OBJS-libcommon): New.
14817         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
14818         (BACKEND): Add libcommon.a.
14819         (MOSTLYCLEANFILES): Likewise.
14820         (libcommon.a): New.
14821         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
14822         (cpp$(exeext)): Likewise.
14823         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
14824         pretty-print.o and input.o.
14825         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
14826         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
14827         (errors.o): Remove.
14828         (mips-tfile): Don't explicitly use version.o.
14829         (mips-tdump): Likewise.
14830         (gcov.o): Depend on $(DIAGNOSTIC_H).
14831         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
14832         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
14833         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
14834         * gcov-dump.c: Include intl.h and diagnostic.h.
14835         (main): Initialize diagnostics.
14836         * gcov.c: Include diagnostic.h.
14837         (fnotice): Remove.
14838         (main): Initialize diagnostics.
14839         * lto-wrapper.c: Include diagnostic.h.
14840         (main): Initialize diagnostics.
14841
14842 2011-05-20  Michael Matz  <matz@suse.de>
14843
14844         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
14845
14846 2011-05-20  Michael Matz  <matz@suse.de>
14847             Richard Guenther  <rguenther@suse.de>
14848
14849         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
14850         use lto_streamer_cache_append directly instead of returning a VEC.
14851         (preload_common_node): Remove.
14852         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
14853         track seen nodes.
14854         (lto_streamer_cache_create): Call lto_preload_common_nodes.
14855
14856 2011-05-20  Richard Guenther  <rguenther@suse.de>
14857
14858         PR tree-optimization/49079
14859         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
14860         MEM_REFs correctly for the trailing array access detection.
14861         Special case constants the same way as decls for overall size
14862         constraining.
14863
14864 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
14865
14866         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
14867         argument expansion.
14868
14869 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
14870
14871         PR tree-optimization/49073
14872         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
14873         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
14874         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
14875
14876 2011-05-20  Richard Guenther  <rguenther@suse.de>
14877
14878         PR middle-end/48849
14879         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
14880         of pointer types the same way the middle-end does.
14881
14882 2011-05-20  Richard Guenther  <rguenther@suse.de>
14883
14884         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
14885         or pointer-to chains.  Delay all fixup to uniquify_nodes.
14886
14887 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
14888
14889         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
14890         (fma4_fmaddsub): Likewise
14891
14892 2011-05-19  Jan Hubicka  <jh@suse.cz>
14893
14894         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
14895         (GIMPLE_TYPE_PAIR_SIZE): New macro.
14896         (type_pair_cache): New static var.
14897         (lookup_type_pair): Use fixed sized custom hash; make inline.
14898         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
14899         calls of lookup_type_pair.
14900         (print_gimple_types_stats): Remove cache stats.
14901         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
14902         and gtc_ob.
14903
14904 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
14905
14906         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
14907         when TARGET_RDRND is active.
14908         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
14909         Generate dummy SImode target register when target is NULL.
14910
14911 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
14912
14913         * config/arm/arm-fpus.def: New.
14914         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
14915         arm-fpus.def.
14916         * config/arm/arm-tables.opt: Regenerate.
14917         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
14918         (arm_option_override): Don't decode FPU name to string here.
14919         * config/arm/arm.opt (mfpu=): Use Enum.
14920         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
14921         Update dependencies.
14922
14923 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
14924
14925         * collect2.c: Include diagnostic.h.
14926         (fatal_perror, fatal, error, fancy_abort): Remove.
14927         (main): Set progname.  Call xmalloc_set_program_name and
14928         diagnostic_initialize.
14929         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
14930         scan_libraries, resolve_lib_name): Call fatal_error instead of
14931         fatal and fatal_perror.
14932         * collect2.h (error, fatal, fatal_perror): Don't declare.
14933         * tlink.c: Include diagnostic-core.h.
14934         (recompile_files): Call fatal_error instead of fatal_perror.
14935         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
14936         pretty-print.o and input.o.
14937         (collect2.o, tlink.o): Update dependencies.
14938
14939 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14940
14941         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
14942
14943 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14944
14945         PR target/40483
14946         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
14947         COMDAT group syntax, both SPARC and x86 variants.
14948         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
14949         * configure: Regenerate.
14950         * config/sol2.h (TARGET_SOLARIS): Define.
14951         (PUSHSECTION_FORMAT): Remove.
14952         (SECTION_NAME_FORMAT): Define.
14953         * config/sol2.c: Include hashtab.h.
14954         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
14955         expansion, using SECTION_NAME_FORMAT.
14956         (solaris_comdat_htab): New variable.
14957         (struct comdat_entry): Define.
14958         (comdat_hash): New function.
14959         (comdat_eq): New function.
14960         (solaris_elf_asm_comdat_section): New function.
14961         (solaris_define_comdat_signature): New function.
14962         (solaris_code_end): New function.
14963         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
14964         (solaris_code_end): Declare.
14965         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
14966         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
14967         solaris_code_end.
14968         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
14969         Remove ATTRIBUTE_UNUSED.
14970         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
14971         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
14972         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
14973         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
14974         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
14975         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
14976         (PUSHSECTION_FORMAT): Remove.
14977         (SECTION_NAME_FORMAT): Redefine.
14978
14979 2011-05-19  Kai Tietz  <ktietz@redhat.com>
14980
14981         * tree-cfg.c (verify_gimple_assign_binary): Barf on
14982         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
14983         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
14984
14985 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
14986             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14987
14988         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
14989
14990 2011-05-19  Richard Guenther  <rguenther@suse.de>
14991
14992         PR middle-end/48985
14993         * tree-object-size.c (addr_object_size): If the pointed-to
14994         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
14995
14996 2011-05-19  Richard Guenther  <rguenther@suse.de>
14997
14998         * gimple.c (gimple_types_compatible_p_1): Compare names of
14999         the types themselves.
15000         (iterative_hash_gimple_type): And hash them that way.
15001         (gimple_register_type_1): If we register a main variant properly
15002         initialize the leader to ourselves.
15003
15004 2011-05-19  Tom de Vries  <tom@codesourcery.com>
15005
15006         PR target/45098
15007         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
15008         get_loop_invariant_expr_id.
15009         (get_loop_invariant_expr_id): Use get_expr_id.
15010         (parm_decl_cost): New function.
15011         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
15012         Improve bound cost estimation.  Use different inv_expr_id for elim and
15013         express cases.
15014
15015 2011-05-19  Tom de Vries  <tom@codesourcery.com>
15016
15017         PR target/45098
15018         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
15019         cost_base.cost == 0.
15020
15021 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
15022
15023         PR target/49002
15024         * config/i386/sse.md
15025         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
15026         load cast.
15027
15028 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
15029
15030         PR tree-optimization/49039
15031         * tree-vrp.c (extract_range_from_binary_expr): For
15032         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
15033         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
15034
15035 2011-05-18  Tom de Vries  <tom@codesourcery.com>
15036
15037         PR target/45098
15038         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
15039
15040 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
15041
15042         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
15043         (*tls_global_dynamic_64): Ditto.
15044         (*tls_local_dynamic_base_32_gnu): Ditto.
15045         (*tls_local_dynamic_base_64): Ditto.
15046         (tls_initial_exec_64_sun): Ditto.
15047
15048 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
15049
15050         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
15051         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
15052         bf592-none.
15053         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
15054         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
15055         * config/bfin/bfin.c (bfin_cpus): Add bf592.
15056         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
15057         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
15058         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
15059         * config/bfin/elf.h (LIB_SPEC): Add bf592.
15060
15061 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
15062
15063         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
15064         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
15065         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
15066         target_thread_pointer, arm_structure_size_boundary, struct
15067         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
15068         struct abi_name, arm_all_abis): Remove.
15069         (arm_option_override) Don't process most enumerated option values here.
15070         Don't process target_fpe_name here.  Work with integer not string for
15071         structure size boundary; use separate diagnostics for each case.
15072         * config/arm/arm.h (enum float_abi_type, enum
15073         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
15074         to arm-opts.h.
15075         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
15076         arm_structure_size_boundary): Remove.
15077         * config/arm/arm.opt (mabi=): Use Enum and Init.
15078         (arm_abi_type): New Enum and EnumValue entries.
15079         (mfloat-abi=): Use Enum and Init.
15080         (float_abi_type): New Enum and EnumValue entries.
15081         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
15082         (mfp16-format=): Use Enum and Init.
15083         (arm_fp16_format_type): New Enum and EnumValue entries.
15084         (mstructure-size-boundary=): Use UInteger and Init.
15085         (mtp=): Use Enum and Init.
15086         (arm_tp_type): New Enum and EnumValue entries.
15087
15088 2011-05-18  Richard Guenther  <rguenther@suse.de>
15089
15090         PR tree-optimization/49018
15091         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
15092         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
15093         gimple_has_side_effects.
15094
15095 2011-05-18  Richard Guenther  <rguenther@suse.de>
15096
15097         * gimple.c (gimple_register_type_1): New function, split out from ...
15098         (gimple_register_type): ... here.  Avoid infinite recursion.
15099
15100 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
15101
15102         PR tree-optimization/41881
15103         * tree-vectorizer.h (struct _loop_vec_info): Add new field
15104         reduction_chains along with a macro for its access.
15105         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
15106         (destroy_loop_vec_info): Free reduction chains.
15107         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
15108         (vect_is_slp_reduction): New function.
15109         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
15110         (vect_create_epilog_for_reduction): Support SLP reduction chains.
15111         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
15112         definition types for reduction chains.
15113         (vect_supported_load_permutation_p): Don't allow permutations for
15114         reduction chains.
15115         (vect_analyze_slp_instance): Support reduction chains.
15116         (vect_analyze_slp): Try to build SLP instance from reduction chains.
15117         (vect_get_constant_vectors):  Handle reduction chains.
15118         (vect_schedule_slp_instance): Mark the first statement of the
15119         reduction chain as reduction.
15120
15121 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
15122
15123         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
15124         names for group elements access.
15125         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
15126         reduction chains as well.  Remove data reference and interleaving
15127         related words from the fields names.
15128         * tree-vect-loop.c (vect_transform_loop): Use new names for group
15129         elements access.
15130         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
15131         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
15132         vect_update_interleaving_chain, vect_same_range_drs,
15133         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
15134         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
15135         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
15136         vect_analyze_group_access, vect_analyze_data_ref_access,
15137         vect_create_data_ref_ptr, vect_transform_strided_load,
15138         vect_record_strided_load_vectors): Likewise.
15139         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
15140         vect_model_load_cost, vectorizable_store, vectorizable_load,
15141         vect_remove_stores, new_stmt_vec_info): Likewise.
15142         * tree-vect-slp.c (vect_build_slp_tree,
15143         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
15144
15145 2011-05-18  Richard Guenther  <rguenther@suse.de>
15146
15147         PR middle-end/48989
15148         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
15149         operand verification.
15150         (verify_gimple_assign_binary): Likewise.
15151         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
15152         to non-1-precision BOOLEAN_TYPEs.
15153
15154 2011-05-18  Tom de Vries  <tom@codesourcery.com>
15155
15156         PR target/45098
15157         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
15158
15159 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
15160
15161         PR tree-optimization/49000
15162         * tree-ssa.c (execute_update_addresses_taken): Call
15163         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
15164         be rewritten and decl has been marked for renaming, reset
15165         the debug stmt.
15166
15167 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
15168
15169         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
15170         enum_opts_set when testing if attributes have set -mfpmath=.
15171
15172 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
15173
15174         * config/mips/mips.c (mips_handle_option): Remove unused variable.
15175
15176 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
15177
15178         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
15179         info->entry with 0
15180         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
15181         id.transform_lang_insert_block with NULL.
15182
15183 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
15184
15185         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
15186         (output_fp_compare): Change args 3 and 4 to bool.
15187         (ix86_expand_call): Change arg 6 to bool.
15188         (ix86_attr_length_immediate_default): Change arg 2 to bool.
15189         (ix86_attr_length_vex_default): Change arg 3 to bool.
15190         * config/i386/i386.md: Update all uses.
15191         * config/i386/i386.c: Ditto.
15192         (ix86_flags_dependent): Change return type to bool.
15193
15194 2011-05-17  Richard Guenther  <rguenther@suse.de>
15195
15196         * gimple.c (type_hash_pair_compare): Fix comparison.
15197
15198 2011-05-17  Richard Guenther  <rguenther@suse.de>
15199
15200         * gimple.c (iterative_hash_gimple_type): Simplify singleton
15201         case some more, fix final hash value of the non-singleton case.
15202
15203 2011-05-17  Richard Guenther  <rguenther@suse.de>
15204
15205         PR bootstrap/49013
15206         Revert
15207         2011-05-16  Richard Guenther  <rguenther@suse.de>
15208
15209         * gimple.c (gimple_types_compatible_p_1): Use names of the
15210         type itself, not its main variant.
15211         (iterative_hash_gimple_type): Likewise.
15212
15213 2011-05-17  Richard Guenther  <rguenther@suse.de>
15214
15215         * gimple.c (gimple_register_canonical_type): Use the main-variant
15216         leader for computing the canonical type.
15217
15218 2011-05-17  Nick Clifton  <nickc@redhat.com>
15219
15220         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
15221         moves.
15222
15223         * config/rx/rx.md: Add peephole to remove redundant extensions
15224         after loads.
15225         (bitset_in_memory): Use rx_restricted_mem_operand.
15226         (bitinvert_in_memory): Likewise.
15227         (bitclr_in_memory): Likewise.
15228
15229 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
15230             Nick Clifton  <nickc@redhat.com>
15231
15232         * config/rx/rx.md: Add peepholes to match a register move followed
15233         by a comparison of the moved register.  Replace these with an
15234         addition of zero that does both actions in one instruction.
15235
15236 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
15237
15238         PR target/48986
15239         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
15240         predicate to allow CONST_INT.
15241         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
15242
15243 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
15244
15245         * opts-common.c (opt_enum_arg_to_value): New.
15246         * opts.h (opt_enum_arg_to_value): Declare.
15247         * config/i386/i386.opt (fpmath): Remove.
15248         (mfpmath=): Use Enum, Init and Save.
15249         (fpmath_unit): New Enum and EnumValue entries.
15250         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
15251         name for function fpmath state.
15252         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
15253         * config/i386/i386.c: Include diagnostic.h.
15254         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
15255         (ix86_target_string): Take enum fpmath_unit value instead of string.
15256         (ix86_debug_options): Update call to ix86_target_string.
15257         (ix86_option_override_internal): Don't process fpmath strings here.
15258         (x86_function_specific_save, ix86_function_specific_restore):
15259         Don't handle fpmath state specially.
15260         (ix86_function_specific_print): Pass fpmath state to
15261         ix86_target_string instead of printing in this function.
15262         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
15263         Handle enum attributes.
15264         (IX86_ATTR_ENUM, ix86_opt_enum): New.
15265         (ix86_valid_target_attribute_tree): Update option_strings
15266         handling.  Handle fpmath as enum option.
15267         (ix86_can_inline_p): Update field names for function fpmath state.
15268         (ix86_expand_builtin): Update call to ix86_target_string.
15269         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
15270         (ix86_fpmath): Remove.
15271         * config/i386/t-i386 (i386.o): Update dependencies.
15272
15273 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
15274
15275         PR preprocessor/48677
15276         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
15277         from decoded_options[0], not from itself.
15278
15279 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
15280
15281         * config/i386/constraints.md (z): New constraint.
15282         * config/i386/i386.c (c): New mode attribute.
15283         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
15284         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
15285         constraint for operand 0.
15286         (*call_vzeroupper): Ditto.
15287         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
15288         (*call_rex64_ms_sysv_vzeroupper): Ditto.
15289         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
15290         Use "lzm" constraint for operand 0.
15291         (*call_pop_vzeroupper): Ditto.
15292         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
15293         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
15294         constraint for operand 0.
15295         (*sibcall_vzeroupper): Ditto.
15296         (*sibcall_rex64_ms_sysv): Ditto.
15297         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
15298         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
15299         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
15300         (*sibcall_pop_vzeroupper): Ditto.
15301         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
15302         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
15303         mode iterator.  Use "<c>zm" constraint for operand 1.
15304         (*call_value_vzeroupper): Ditto.
15305         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
15306         for operand 1.
15307         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
15308         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
15309         *call_value_pop_1.  Use "lzm" constraint for operand 1.
15310         (*call_value_pop_vzeroupper): Ditto.
15311         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
15312         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
15313         mode iterator.  Use "Uz" constraint for operand 1.
15314         (*sibcall_value_vzeroupper): Ditto.
15315         (*sibcall_value_rex64_ms_sysv): Ditto.
15316         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
15317         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
15318         constraint for operand 1.
15319         (*sibcall_value_pop_vzeroupper): Ditto.
15320         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
15321         and "z" constraint for operand 2.
15322         (*tls_global_dynamic_32_gnu): Ditto.
15323         (*tls_local_dynamic_base_32_gnu): Ditto.
15324         (*tls_local_dynamic_base_64): Ditto.
15325         (*tls_local_dynamic_32_once): Ditto.
15326         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
15327         Update all callers.
15328         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
15329
15330 2011-05-16  Richard Guenther  <rguenther@suse.de>
15331
15332         * gimple.c (gimple_types_compatible_p_1): Use names of the
15333         type itself, not its main variant.
15334         (iterative_hash_gimple_type): Likewise.
15335
15336 2011-05-16  Richard Guenther  <rguenther@suse.de>
15337
15338         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
15339         always visit pointer target and function result and argument types.
15340
15341 2011-05-16  Jason Merrill  <jason@redhat.com>
15342
15343         PR c++/48999
15344         * tree-inline.c (copy_statement_list): Put back recursion.
15345
15346 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
15347
15348         PR target/27663
15349         PR target/41076
15350         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
15351         * config/avr/avr.md ("*ior<mode>qi.byte0",
15352         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
15353
15354 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
15355
15356         PR target/45099
15357         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
15358         register is needed for a function argument.
15359
15360 2011-05-16  Richard Guenther  <rguenther@suse.de>
15361
15362         * gimple.c (struct type_hash_pair): New type.
15363         (type_hash_pair_compare): New function.
15364         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
15365
15366 2011-05-16  Revital Eres  <revital.eres@linaro.org>
15367
15368         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
15369
15370 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
15371
15372         * config/i386/i386.md (floating point move splitters): Fix
15373         usage of standard_80387_constant_p.
15374         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
15375
15376 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
15377
15378         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
15379
15380 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
15381
15382         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
15383         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
15384         (tree_ssa_lim_finalize): Likewise.
15385
15386 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
15387
15388         * config/i386/constraint.md (Yd, Yx): New register constraints.
15389         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
15390         Yd conditional register constraint.
15391         (*movtf_internal): Use standard_sse_constant_opcode.
15392         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
15393         Yx conditional register constraint.
15394         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
15395         Yd conditional register constraint.  Use standard_sse_constant_p to
15396         check for valid SSE constants and call standard_sse_constant_opcode to
15397         output SSE insn.
15398         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
15399         constants and call standard_sse_constant_opcode to output SSE insn.
15400         * config/i386/i386.c (ix86_option_ovverride_internal): Set
15401         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
15402         optimize_size is set.
15403         (standard_sse_constant_opcode): Output conditional AVX insn templates.
15404
15405 2011-05-14  Tobias Burnus  <burnus@net-b.de>
15406
15407         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
15408
15409 2011-05-13  Martin Jambor  <mjambor@suse.cz>
15410
15411         * ipa-prop.c (ipa_cst_from_jfunc): New function.
15412         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
15413         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
15414         (evaluate_conditions_for_ipcp_clone): Removed.
15415         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
15416         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
15417         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
15418
15419 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
15420
15421         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
15422         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
15423         lieu of MAY_HAVE_DEBUG_STMTS.
15424         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
15425         debug statements if !MAY_HAVE_DEBUG_STMTS.
15426
15427 2011-05-13  Martin Thuresson  <martint@google.com>
15428
15429         PR gcov-profile/47793
15430         * libgcov.c (gcov_exit): Support relative profile paths.
15431         * doc/invoke.texi (-fprofile-dir): Update for above change.
15432
15433 2011-05-13  Richard Guenther  <rguenther@suse.de>
15434
15435         * gimple.c (gimple_canonical_types_compatible_p): Do not use
15436         type-pair caching, do not compare hashes.
15437
15438 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
15439
15440         PR middle-end/48965
15441         * tree-cfg.c (edge_to_cases_cleanup): Return true.
15442         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
15443
15444 2011-05-13  Kai Tietz  <ktietz@redhat.com>
15445
15446         * gimplify.c (gimplify_expr): Make sure operand is boolified.
15447         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
15448         compatible type for TRUTH_NOT_EXPR.
15449
15450 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
15451
15452         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
15453         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
15454         can_create_pseudo_p ().
15455
15456 2011-05-13  Richard Guenther  <rguenther@suse.de>
15457
15458         PR lto/48978
15459         * gimple.c (iterative_hash_gimple_type): Revert change in
15460         pointer target and function result and argument hashing.
15461
15462 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
15463
15464         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
15465         (*movxf_internal_nointeger): Ditto.
15466         (*movdf_internal_rex64): Ditto.
15467         (*movdf_internal): Ditto.
15468         (*movdf_internal_nointeger): Ditto.
15469         (*movsf_internal): Ditto.
15470         (sincos splitters): Use can_create_pseudo ().
15471
15472 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
15473
15474         * config/i386/i386-opts.h: New.
15475         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
15476         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
15477         ix86_section_threshold): Remove.
15478         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
15479         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
15480         OPT_mbranch_cost_.
15481         (ix86_option_override_internal): Don't decode strings for options
15482         other than -march=, -mtune= and -mfpmath=.  Don't allow for
15483         __attribute__ uses in remaining diagnostics for options with
15484         string arguments.  Don't check for integer arguments being negative.
15485         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
15486         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
15487         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
15488         ix86_branch_cost, ix86_section_threshold): Remove.
15489         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
15490         HeaderInclude.
15491         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
15492         but not Var.
15493         (masm=): Use Enum and Init.
15494         (asm_dialect): New Enum and EnumValue entries.
15495         (mbranch-cost=): Use UInteger.
15496         (mlarge-data-threshold=): Use UInteger and Init.
15497         (mcmodel=): Use Enum and Init.
15498         (cmodel): New Enum and EnumValue entries.
15499         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
15500         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
15501         mregparm=): Use UInteger.
15502         (mstringop-strategy=): Use Enum and Init.
15503         (stringop_alg): New Enum and EnumValue entries.
15504         (mtls-dialect=): Use Enum and Init.
15505         (tls_dialect): New Enum and EnumValue entries.
15506         (mabi=): Use Enum and Init.
15507         (calling_abi): New Enum and EnumValue entries.
15508         (mveclibabi=): Use Enum and Init.
15509         (ix86_veclibabi): New Enum and EnumValue entries.
15510
15511 2011-05-13  Nick Clifton  <nickc@redhat.com>
15512
15513         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
15514         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
15515
15516 2011-05-13  Kai Tietz  <ktietz@redhat.com>
15517
15518         PR middle-end/48984
15519         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
15520         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
15521         (gimple_boolify): Check for cast for boolean_type_node instead for
15522         BOOLEAN_TYPE.
15523
15524 2011-05-13  Richard Guenther  <rguenther@suse.de>
15525
15526         PR tree-optimization/48172
15527         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
15528         multiplying by number of iterations for equal step.
15529         (vect_create_cond_for_alias_checks): Likewise.
15530
15531 2011-05-13  Andreas Schwab  <schwab@redhat.com>
15532
15533         * configure.ac: Use AS_HELP_STRING throughout.
15534         * configure: Regenerate.
15535
15536 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
15537
15538         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
15539         (ix86_emit_restore_regs_using_mov): Likewise.
15540         (ix86_emit_restore_sse_regs_using_mov): Likewise.
15541
15542 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
15543
15544         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
15545         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
15546         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
15547         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
15548         RTX_OK_FOR_OLO10_P): ...here.
15549         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
15550         SYMBOLIC_CONST.
15551
15552 2011-05-12  Kai Tietz  <ktietz@redhat.com>
15553
15554         * gimplify.c (gimple_boolify): Re-boolify expression
15555         arguments even if expression type is of kind BOOLEAN_TYPE.
15556         (gimplify_boolean_expr): Removed.
15557         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
15558         and XOR. Additional take care that we keep expression's type.
15559         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
15560         of TRUTH_AND|OR|XOR_EXPR.
15561
15562 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
15563
15564         PR tree-optimization/48975
15565         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
15566         on all bbs here and free and clear ifc_bbs at the end.
15567
15568 2011-05-12  Richard Guenther  <rguenther@suse.de>
15569
15570         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
15571         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
15572         until after simple checks.
15573         (gimple_types_compatible_p): Likewise.
15574         (iterative_hash_gimple_type): Always hash pointer targets
15575         and function return and argument types.
15576         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
15577         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
15578         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
15579         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
15580         completely in the simple compare section.
15581         (gimple_register_canonical_type): Query the cache again after
15582         registering.
15583
15584 2011-05-12  Richard Guenther  <rguenther@suse.de>
15585
15586         PR tree-optimization/48172
15587         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
15588         the number of iterations from the segment size calculation.
15589         (vect_create_cond_for_alias_checks): Adjust.
15590
15591 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
15592
15593         PR debug/48967
15594         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
15595         if validate_subreg fails.
15596
15597 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
15598
15599         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
15600         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
15601         early.
15602
15603 2011-05-12  DJ Delorie  <dj@redhat.com>
15604
15605         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
15606         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
15607         created builtin into rx_builtins array.
15608         (rx_builtin_decl): New function.
15609         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
15610
15611 2011-05-12  DJ Delorie  <dj@redhat.com>
15612             Nick Clifton  <nickc@redhat.com>
15613
15614         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
15615         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
15616         (rx_is_legitimate_address): Add pre-decrement and post-increment
15617         addressing in HImode and QImode.  Fix test for out of range
15618         REG+INT addressing.
15619         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
15620         (rx_align_for_label): Test label before extracting its usage count.
15621         (rx_adjust_insn_lengths): Fix selection of insn codes.
15622         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
15623
15624 2011-05-11  Jason Merrill  <jason@redhat.com>
15625
15626         * tree.c (type_hash_canon): Use struct tree_type_non_common.
15627
15628 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
15629
15630         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
15631         reindent the subsequent block.
15632
15633 2011-05-11  Satoru Takabayashi  <satorux@google.com>
15634             Paul Pluzhnikov  <ppluzhnikov@google.com>
15635
15636         * doc/install.texi (Configuration): Document --with-linker-hash-style.
15637         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
15638         * config.in: Add LINKER_HASH_STYLE.
15639         * configure.ac: Add --with-linker-hash-style.
15640         * configure: Regenerate.
15641
15642 2011-05-11  Richard Guenther  <rguenther@suse.de>
15643
15644         PR middle-end/48964
15645         * gimple.c (iterative_hash_canonical_type): Fix typo.
15646
15647 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
15648
15649         * config/i386/i386.c (legitimize_tls_address)
15650         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
15651         expanders directly for TARGET_GNU2_TLS.  Determine pic and
15652         __tls_get_addr symbol reference here.  Update call to
15653         gen_tls_global_dynamic_{32,64} for added arguments.
15654         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
15655         expanders directly for TARGET_GNU2_TLS.  Determine
15656         __tls_get_addr symbol reference here.  Update call to
15657         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
15658         unique UNSPEC REG_EQUIV to libcall block.
15659         (ix86_tls_get_addr): Declare static.
15660         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
15661         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
15662         Do not determine pic and __tls_get_addr symbol reference here. Do not
15663         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
15664         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
15665         (tls_global_dynamic_64): Add operand 2.  Do not determine
15666         __tls_get_addr symbol reference here.  Do not call
15667         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
15668         (tls_local_dynamic_base64): Ditto for operand 1.
15669
15670 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
15671
15672         * function.c (expand_function_start): Initialize stack_check_probe_note
15673         only if the generic stack checking mechanism is used.
15674
15675 2011-05-11  Richard Guenther  <rguenther@suse.de>
15676
15677         PR tree-optimization/15256
15678         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
15679         (A & B) | C, combine (A op CST1) op CST2.
15680         (tree_ssa_forward_propagate_single_use_vars): Only bother to
15681         visit assigns that have uses.
15682
15683 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
15684
15685         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
15686         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
15687         (unpack_ts_type_common_value_fields): ...this.  Update comment.
15688         (unpack_value_fields): Adjust for renaming.
15689         (lto_input_ts_type_tree_pointers): Split into...
15690         (lto_input_ts_type_common_tree_pointer): ...this and...
15691         (lto_input_ts_type_non_common_tree_pointers): ...this.
15692         (lto_input_tree_pointers): Adjust for above split.
15693         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
15694         (pack_ts_type_common_value_fields): ...this.  Update comment.
15695         (lto_output_ts_type_tree_pointers): Split into...
15696         (lto_output_ts_type_common_tree_pointers): ...this and...
15697         (lto_output_ts_type_non_common_tree_pointers): ...this.
15698         (lto_output_tree_pointers): Adjust for above split.
15699         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
15700         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
15701         * stor-layout.c (vector_type_mode): Adjust location of mode field.
15702         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
15703         Define.
15704         (struct tree_type): Split into...
15705         (struct tree_type_common: ...this and...
15706         (struct tree_type_with_lang_specific): ...this and...
15707         (struct tree_type_non_common): ...this.  Adjust accessor macros
15708         accordingly.
15709         (TYPE_VALUES_RAW): Define.
15710         (union tree_node): Update for above changes.
15711         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
15712         TS_TYPE_NON_COMMON.
15713         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
15714         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
15715         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
15716         * treestructu.def (TS_TYPE): Remove.
15717         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
15718         Define.
15719
15720 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
15721
15722         PR debug/48159
15723         * tree-ssa.c (reset_debug_uses): New function.
15724         * tree-flow.h (reset_debug_uses): New prototype.
15725         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
15726         * tree-loop-distribution.c (generate_loops_for_partition): Call
15727         reset_debug_uses on the stmts that will be removed.  Keep around
15728         all debug stmts, don't count them as bits in partition bitmap.
15729         (generate_builtin): Don't count debug stmts or labels as bits in
15730         partition bitmap.
15731
15732 2011-05-11  Richard Guenther  <rguenther@suse.de>
15733
15734         * gimple.c (gimple_type_hash_1): Merge with ...
15735         (gimple_type_hash): ... this.
15736         (gtc_visit): Remove mode parameter and simplify accordingly.
15737         (gimple_types_compatible_p_1): Likewise.
15738         (gimple_types_compatible_p): Likewise.
15739         (iterative_hash_gimple_type): Likewise.
15740         (visit): Likewise.
15741         (gimple_type_eq): Adjust.
15742
15743 2011-05-11  Revital Eres  <revital.eres@linaro.org>
15744
15745         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
15746         enters the branch create an anti edge in the opposite direction
15747         to prevent the creation of reg-moves.
15748         * modulo-sched.c: Adjust comment to reflect the fact we are
15749         scheduling closing branch.
15750         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
15751         (stage_count): New field in struct partial_schedule.
15752         (calculate_stage_count): New function.
15753         (normalize_sched_times): Rename to reset_sched_times and handle
15754         incrementing the sched time of the nodes by a constant value
15755         passed as parameter.
15756         (duplicate_insns_of_cycles): Skip closing branch.
15757         (sms_schedule_by_order): Schedule closing branch.
15758         (ps_insn_find_column): Handle closing branch.
15759         (sms_schedule): Call reset_sched_times and adjust the code to
15760         support scheduling of the closing branch.
15761         (ps_insert_empty_row): Update calls to normalize_sched_times
15762         and rotate_partial_schedule functions.
15763
15764 2011-05-11  Richard Guenther  <rguenther@suse.de>
15765
15766         PR middle-end/48953
15767         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
15768
15769 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
15770
15771         * opts.c (finish_options): Move warning settings from process_options.
15772         * toplev.c (process_options): Move warning settings to finish_options.
15773
15774 2011-05-11  Richard Guenther  <rguenther@suse.de>
15775
15776         PR tree-optimization/18041
15777         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
15778         (simplify_bitwise_binary): ... this.  Handle operand conversions
15779         by applying them to the result instead.
15780         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
15781
15782 2011-05-11  Richard Guenther  <rguenther@suse.de>
15783
15784         * gimple.c (gimple_canonical_types_compatible_p): Split out
15785         from gimple_types_compatible_p and friends.  Do not recurse
15786         to pointed-to types.
15787         (gimple_canonical_type_eq): Use it.
15788         (iterative_hash_canonical_type): Split out from
15789         iterative_hash_gimple_type and friends.  Do not recurse
15790         to pointed-to types.
15791         (gimple_canonical_type_hash): Use it, allocate the hash here.
15792
15793 2011-05-11  Revital Eres  <revital.eres@linaro.org>
15794
15795         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
15796         recognizing doloop.
15797
15798 2011-05-11  Revital Eres  <revital.eres@linaro.org>
15799
15800         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
15801         instead of PREV_INSN.
15802
15803 2011-05-11  Revital Eres  <revital.eres@linaro.org>
15804
15805         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
15806         * loop-doloop.c (doloop_condition_get): Likewise.
15807         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
15808         (doloop_end): New.
15809         * config/arm/arm.md (*addsi3_compare0): Remove "*".
15810
15811 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
15812
15813         * tree.def (CASE_LABEL_EXPR): Add an operand.
15814         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
15815
15816 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
15817
15818         * c-decl.c (c_override_global_bindings_to_false): Remove.
15819         (global_bindings_p): Don't check
15820         c_override_global_bindings_to_false.
15821         * c-tree.h (c_override_global_bindings_to_false): Remove.
15822         * c-typeck.c (composite_type): Don't set
15823         c_override_global_bindings_to_false.
15824
15825 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
15826
15827         PR target/48857, 48495
15828         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
15829         (VSX_MODE): Ditto.
15830         (VSX_MOVE_MODE): Ditto.
15831         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
15832         VSX vector types.  Add V2DImode.
15833         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
15834         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
15835         (MODES_TIEABLE_P): Ditto.
15836
15837         * config/rs6000/rs6000.c (rs6000_emit_move): Use
15838         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
15839         VSX_VECTOR_MODE.
15840         (init_cumulative_args): Ditto.
15841         (rs6000_function_arg_boundary): Ditto.
15842         (rs6000_function_arg_advance_1): Ditto.
15843         (rs6000_function_arg): Ditto.
15844         (rs6000_function_ok_for_sibcall): Ditto.
15845         (emit_frame_save): Ditto.
15846         (rs6000_function_value): Ditto.
15847         (rs6000_libcall_value): Ditto.
15848
15849 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
15850
15851         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
15852         i386/darwin-lib.h to $libgcc_tm_file.
15853         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
15854
15855 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
15856
15857         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
15858
15859 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
15860
15861         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
15862         * config/rs6000/rs6000-tables.opt: New file (generated).
15863         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
15864         rs6000/rs6000-tables.opt to extra_options.
15865         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
15866         * config/rs6000/rs6000.c (rs6000_select): Remove.
15867         (processor_target_table): Move contents to rs6000-cpus.def.
15868         (darwin_rs6000_override_options): Check
15869         global_options_set.x_rs6000_cpu_index instead of
15870         rs6000_select[1].string.
15871         (rs6000_option_override_internal): Likewise.
15872         (rs6000_handle_option): Don't assert that global structures are in
15873         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
15874         (rs6000_default_cpu): New variable.
15875         (rs6000_file_start): Set it instead of local default_cpu.  Check
15876         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
15877         global_options_set.x_rs6000_tune_index instead of rs6000_select.
15878         (rs6000_darwin_file_start): Check rs6000_default_cpu and
15879         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
15880         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
15881         rs6000_select): Remove.
15882         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
15883         Remove.
15884         (mcpu=, mtune=): Use Var, Init, Enum and Save.
15885         * config/rs6000/t-rs6000
15886         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
15887         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
15888         global_options_set.x_rs6000_cpu_index instead of
15889         rs6000_select[1].string.
15890         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
15891         global_options_set.x_rs6000_cpu_index instead of
15892         rs6000_select[1].string.
15893
15894 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
15895
15896         * config.gcc (libgcc_tm_file): Define instead of including files
15897         from ../../libgcc/config/ in tm_file.
15898         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
15899         * configure: Regenerate.
15900         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
15901         libgcc_tm.h, cs-libgcc_tm.h): New.
15902         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
15903         (clean): Remove libgcc_tm.h.
15904         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
15905         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
15906         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
15907
15908 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
15909
15910         PR target/48896
15911         * config/avr/avr.c (avr_ret_register): Return unsigned int
15912         instead of int.
15913         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
15914         it to avr_libcall_value.
15915         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
15916         expand_expr.
15917         (avr_expand_binop_builtin): Ditto.
15918         (avr_expand_unop_builtin): Ditto.
15919
15920 2011-05-10  DJ Delorie  <dj@redhat.com>
15921
15922         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
15923         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
15924         * config/rx/rx.c (rx_align_for_label): Add label and
15925         uses_threshold parameters.  Do not align when the label is not
15926         used enough.
15927         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
15928
15929 2011-05-10  Richard Guenther  <rguenther@suse.de>
15930
15931         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
15932         a series of conversions and apply foldings similar to what
15933         fold-const does.
15934         (tree_ssa_forward_propagate_single_use_vars): Call it.
15935
15936 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
15937
15938         PR tree-optimization/48611
15939         PR tree-optimization/48794
15940         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
15941         referenced from RESX or EH_DISPATCH arguments.
15942
15943         PR debug/48928
15944         * dfp.c (decimal_to_decnumber): Handle conversion from
15945         dconst{1,2,m1,half}.
15946
15947 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
15948
15949         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
15950         for !flag_prefer_avx128.
15951         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
15952
15953 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
15954
15955         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
15956         (fold_ternary_loc): Use expr_location_or.
15957
15958 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
15959
15960         PR debug/48853
15961         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
15962         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
15963         Pmode and mem_mode is not VOIDmode.
15964
15965 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
15966
15967         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
15968         TYPE_QUAL_RESTRICT): Convert to enum.
15969
15970 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
15971
15972         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
15973         (const_pow2_1_to_8_operand): Ditto.
15974         (const_pow2_1_to_128_operand): Ditto.
15975         (const_pow2_1_to_32768_operand): Ditto.
15976         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
15977         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
15978         in insn constraint to check integer value of operand 3.
15979         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
15980
15981         (PINSR_MODE): New mode iterator.
15982         (sse2p4_1): New mode attribute.
15983         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
15984         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
15985         iterator.  Use const_int_operand instead of
15986         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
15987         exact_log2 in insn constraint to check integer value of operand 3.
15988
15989 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
15990
15991         * config/i386/sse.md (blendbits): Remove mode attribute.
15992         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
15993         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
15994         Check integer value of operand 3 in insn constraint.
15995
15996 2011-05-09  Richard Guenther  <rguenther@suse.de>
15997
15998         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
15999         for diagnostics.
16000         (lto_symtab_merge): Likewise.  Do not register types here.
16001         (lto_symtab_merge_decls_2): Likewise.
16002         (lto_symtab_merge_decls_1): Likewise.
16003         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
16004         * gimple.c (enum gtc_mode): Declare.
16005         (gimple_types_compatible_p): Make static.
16006
16007 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16008
16009         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
16010         temporary register to match Pmode.
16011
16012 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
16013
16014         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
16015         and *vec_concatv4si_1_avx.
16016
16017 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
16018
16019         PR rtl-optimization/48927
16020         * ira-conflicts.c (commutative_constraint_p): Use
16021         recog_data.alternative_enabled_p to disable alternatives where
16022         "enabled" attribute is false.
16023         (get_dup_num): Ditto.
16024         * ira-lives.c (single_reg_class): Ditto.
16025         (ira_implicitly_set_insn_hard_regs): Ditto.
16026
16027 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
16028
16029         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
16030         (dataflow_set_preserve_mem_locs): Likewise.
16031
16032 2011-05-09  Philipp Thomas  <pth@suse.de>
16033
16034         * config/mep/mep.c (mep_validate_vliw): Syntax description
16035         should not be translated.
16036
16037 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
16038
16039         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
16040         * config/mips/mips-tables.opt: New file (generated).
16041         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
16042         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
16043         MIPS_ARCH_OPTION_NATIVE): Define.
16044         * config/mips/mips.c (mips_cpu_info_table): Move contents to
16045         mips-cpus.def.
16046         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
16047         mips_parse_cpu): Remove.
16048         (mips_cpu_info_from_opt, mips_default_arch): New.
16049         (mips_handle_option): Don't assert that global structures are in
16050         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
16051         (mips_option_override): Use new variables and functions to set
16052         state of these options.  Use strcmp to check for individual CPU names.
16053         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
16054         definition.
16055         * config/mips/mips.opt (march=): Use ToLower and Enum.
16056         (mips): Use ToLower, Enum and Var.
16057         (mtune=): Use ToLower and Enum.
16058         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
16059
16060 2011-05-08  Jan Hubicka  <jh@suse.cz>
16061
16062         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
16063         Arrange type pairs to be UID ordered.
16064         (gimple_lookup_type_leader): Make inline.
16065
16066 2011-05-09  Nick Clifton  <nickc@redhat.com>
16067
16068         PR target/48899
16069         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
16070         PROCESSOR_DEFAULT.
16071
16072         PR target/48897
16073         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
16074         variable 's'.
16075
16076 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
16077
16078         * combine.c (simplify_comparison): Abstract out parts into...
16079         (simplify_compare_const): ... new function.
16080         (try_combine): Generalize parallel arithmetic/compare combining
16081         to call simplify_compare_const() and CANONICALIZE_COMPARE().
16082
16083 2011-05-08  Jan Hubicka  <jh@suse.cz>
16084
16085         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
16086         (cgraph_create_virtual_clone): Call hooks once virtual clone
16087         is finished.
16088         * cgraph.h (cgraph_clone_node): Update prototype.
16089         * ipa-cp.c (ipcp_estimate_growth): Use
16090         estimate_ipcp_clone_size_and_time.
16091         * ipa-inline-transform.c (clone_inlined_nodes): Update.
16092         * lto-cgraph.c (input_node): Update.
16093         * ipa-inline.c (recursive_inlining): Update.
16094         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
16095         (evaluate_conditions_for_known_args): Break out from ...
16096         (evaluate_conditions_for_edge): ... here.
16097         (evaluate_conditions_for_ipcp_clone): New function.
16098         (inline_node_duplication_hook): Update clone summary based
16099         on parameter map.
16100         (estimate_callee_size_and_time): Rename to ...
16101         (estimate_node_size_and_time): take NODE instead of EDGE;
16102         take POSSIBLE_TRUTHS as argument.
16103         (estimate_callee_size_and_time): Update.
16104         (estimate_ipcp_clone_size_and_time): New function.
16105         (do_estimate_edge_time): Update.
16106
16107 2011-05-08  Richard Guenther  <rguenther@suse.de>
16108
16109         PR middle-end/48908
16110         PR middle-end/48905
16111         * expmed.c (expand_shift_1): Compute adjusted constant shift
16112         amount manually.
16113
16114 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
16115
16116         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
16117
16118 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
16119
16120         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
16121
16122 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
16123
16124         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
16125
16126 2011-05-07  Jan Hubicka  <jh@suse.cz>
16127
16128         * ipa-inline-transform.c (inline_call): Account when program size
16129         decreases.
16130         * ipa-inline.c (relative_time_benefit): New function.
16131         (edge_badness): Reorganize to be power 2 based; fix thinko when
16132         computing badness for negative growth; update comments to match
16133         reality; better dumps.
16134
16135 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
16136
16137         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
16138         type to bool and adjust comment.
16139         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
16140         (fold_mathfn_compare): Remove calls to global_bindings_p.
16141         (fold_inf_compare): Likewise.
16142         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
16143         * c-tree.h (global_bindings_p): Adjust prototype.
16144         * c-decl.c (global_bindings_p): Return bool and simplify.
16145
16146 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
16147
16148         PR tree-optimization/48837
16149         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
16150         when accumulator transformation is performed.
16151
16152 2011-05-06  Jan Hubicka  <jh@suse.cz>
16153
16154         * i386.h (ix86_tune_indices): Add
16155         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
16156         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
16157         * i386.c (initial_ix86_tune_features): Add
16158         X86_SOFTARE_PREFETCHING_BENEFICIAL.
16159         (software_prefetching_beneficial_p): Remove predicate.
16160         (ix86_option_override_internal): Use new macro.
16161
16162 2011-05-06  Jan Hubicka  <jh@suse.cz>
16163
16164         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
16165
16166 2011-05-06  Jan Hubicka  <jh@suse.cz>
16167
16168         * cgraph.c (cgraph_add_thunk): Create real function node instead
16169         of alias node; finalize it and mark needed/reachale; arrange visibility
16170         to be right and add it into the corresponding same comdat group list.
16171         (dump_cgraph_node): Dump thunks.
16172         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
16173         cgraph_function_with_gimple_body_p,
16174         cgraph_first_function_with_gimple_body,
16175         cgraph_next_function_with_gimple_body): New functions.
16176         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
16177         New macros.
16178         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
16179         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
16180         * cgraphunit.c (cgraph_finalize_function): Only look into possible
16181         devirtualization when optimizing.
16182         (verify_cgraph_node): Verify thunks.
16183         (cgraph_analyze_function): Analyze thunks.
16184         (cgraph_mark_functions_to_output): Output thunks only in combination
16185         with function they are assigned to.
16186         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
16187         alias into normal node.
16188         (assemble_thunks): New functoin.
16189         (cgraph_expand_function): Use it.
16190         * lto-cgraph.c (lto_output_node): Stream thunks.
16191         (input_overwrite_node): Stream in thunks.
16192         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
16193         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
16194         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
16195         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
16196         (inline_analyze_function): Do not care about thunk jump functions.
16197         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
16198         * ipa-prop.c (ipa_prop_write_jump_functions): Use
16199         cgraph_function_with_gimple_body_p.
16200         * passes.c (do_per_function_toporder): Use
16201         cgraph_function_with_gimple_body_p.
16202         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
16203         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
16204         (function_called_by_processed_nodes_p): Likewise.
16205
16206 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
16207
16208         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
16209         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
16210         entries.
16211         (mabi=): Replace with separate entries for mabi=altivec,
16212         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
16213         mabi=ieeelongdouble and mabi=ibmlongdouble.
16214         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
16215         check for -mabi=spe without SPE ABI support here.
16216         (rs6000_handle_option): Replace OPT_mabi_ handling with
16217         OPT_mabi_altivec and OPT_mabi_spe handling.
16218
16219 2011-05-06  Cary Coutant  <ccoutant@google.com>
16220
16221         * dwarf2out.c (contains_subprogram_definition): New function.
16222         (should_move_die_to_comdat): Call it.
16223
16224 2011-05-06  Jeff Law  <law@redhat.com>
16225
16226         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
16227         remove_ctrl_stmt_and_useless_edges.
16228         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
16229         (fixup_template_block, thread_single_edge): Likewise.
16230         (mark_threaded_blocks): Use THREAD_TARGET.
16231
16232 2011-05-06  Alan Modra  <amodra@gmail.com>
16233
16234         PR target/48900
16235         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
16236         const0_rtx as the arg to the dummy __tls_get_addr libcall.
16237
16238 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
16239
16240         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
16241         constraint modifier to "r".
16242
16243 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
16244
16245         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
16246         fall through for OPT_mcmodel_.
16247
16248 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16249
16250         * config/s390/s390.c (s390_asm_trampoline_template): Comment
16251         instruction sizes.
16252         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
16253
16254 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
16255
16256         PR target/47930
16257         * config/arm/arm.opt (marm): Document it.
16258         (mthumb): Reject negative variant.
16259
16260 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
16261
16262         PR target/48898
16263         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
16264         Fix typo in "ccvt" variable name.
16265
16266 2011-05-06  Tristan Gingold  <gingold@adacore.com>
16267
16268         PR target/48895
16269         * config/vms/vms-ar.c (main): Remove cwd variable.
16270
16271 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
16272
16273         PR debug/48902
16274         * var-tracking.c (prepare_call_arguments): Move else before #endif.
16275
16276 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
16277
16278         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
16279         * gimplify.c (gimplify_switch_expr): Likewise.
16280         * omp-low.c (expand_omp_sections): Likewise.
16281         * tree-eh.c (lower_try_finally_switch): Likewise.
16282         (lower_eh_dispatch): Likewise.
16283         * tree.h (build_case_label): Declare.
16284         * tree.c (build_case_label): Define.
16285
16286 2011-05-05  Jason Merrill  <jason@redhat.com>
16287
16288         PR c++/40975
16289         * tree-inline.c (copy_tree_r): Use copy_statement_list.
16290         (copy_statement_list): Don't recurse.
16291         * stor-layout.c (copy_self_referential_tree_r): Don't allow
16292         STATEMENT_LIST.
16293
16294 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
16295
16296         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
16297         through from -mfpu= handling.
16298         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
16299
16300 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
16301
16302         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
16303         POST_MODIFY.
16304
16305 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
16306
16307         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
16308         for 11.31.
16309         (hppa[12]*-*-hpux11*): Ditto.
16310         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
16311         * config/ia64/hpux-unix2003.h: New.
16312         * config/pa/pa-hpux1131.opt: New.
16313         * config/pa/pa-hpux1131.h: New.
16314         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
16315         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
16316         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
16317
16318 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
16319
16320         PR debug/48853
16321         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
16322         instead of mode as 3rd argument to recursive call.
16323         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
16324         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
16325         VOIDmode.
16326         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
16327         don't give up if mode is Pmode and mem_mode is not VOIDmode.
16328         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
16329         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
16330
16331 2011-05-05  Julian Brown  <julian@codesourcery.com>
16332
16333         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
16334         parenthesis in D-register case.
16335
16336 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
16337
16338         * opt-functions.awk (var_type_struct): Handle Enum options.
16339         * optc-gen.awk: Don't check range of variables of character type.
16340         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
16341         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
16342         rs6000_sdata_name, rs6000_explicit_options): Remove.
16343         (rs6000_option_override_internal): Check for -malign-power here.
16344         Use global_options_set instead of rs6000_explicit_options.
16345         (rs6000_parse_fpu_option): Remove.
16346         (rs6000_handle_option): Access variables via opts and opts_set
16347         pointers.  Use error_at and warning_at.  Add fall-through
16348         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
16349         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
16350         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
16351         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
16352         here.  Don't use rs6000_parse_fpu_option.
16353         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
16354         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
16355         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
16356         (mrecip=): Use Var.
16357         (mspe): Use Var and Save.
16358         (mtraceback=): Use Enum and Var.
16359         (rs6000_traceback_type): New Enum and EnumValue entries.
16360         (mfloat-gprs=): Use Enum, Var and Save.
16361         (rs6000_float_gprs): New Enum and EnumValue entries.
16362         (mlong-double-): use Var and Save.
16363         (msched-costly-dep=, minsert-sched-nops=): Use Var.
16364         (malign-): Use Enum and Var.
16365         (rs6000_alignment_flags): New Enum and EnumValue entries.
16366         (mfpu=): Use Enum.
16367         (fpu_type_t): New Enum and EnumValue entries.
16368         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
16369         global_options_set instead of rs6000_explicit_options.
16370         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
16371         global_options_set instead of rs6000_explicit_options.
16372         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
16373         global_options_set instead of rs6000_explicit_options.
16374         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
16375         global_options_set instead of rs6000_explicit_options.
16376         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
16377         global_options_set instead of rs6000_explicit_options.
16378         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
16379         global_options_set instead of rs6000_explicit_options.
16380         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
16381         definition.
16382         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
16383         global_options_set instead of rs6000_explicit_options.
16384         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
16385         (rs6000_cmodel): New Enum and EnumValue entries.
16386         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
16387         global_options_set instead of rs6000_explicit_options.
16388         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
16389         (mtls-size=): Use Enum and Var.
16390         (rs6000_tls_size): New Enum and EnumValue entries.
16391
16392 2011-05-05  Michael Matz  <matz@suse.de>
16393
16394         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
16395         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
16396         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
16397         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
16398         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
16399         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
16400         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
16401         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
16402         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
16403         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
16404         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
16405         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
16406         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
16407         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
16408         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
16409         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
16410
16411 2011-05-05  Richard Guenther  <rguenther@suse.de>
16412
16413         * expmed.c (expand_variable_shift): Rename to ...
16414         (expand_shift_1): ... this.  Take an expanded shift amount.
16415         For rotates recurse directly not building trees for the shift amount.
16416         (expand_variable_shift): Wrap around expand_shift_1.
16417         (expand_shift): Adjust.
16418
16419 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
16420
16421         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
16422
16423 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
16424
16425         * tree.h (get_pending_sizes): Remove prototype.
16426         (put_pending_size): Likewise.
16427         (put_pending_sizes): Likewise.
16428         * stor-layout.c (pending_sizes): Delete.
16429         (get_pending_sizes): Likewise.
16430         (put_pending_size): Likewise.
16431         (put_pending_sizes): Likewise.
16432         (variable_size): Do not call put_pending_size and tidy up.
16433         * function.h (struct function): Remove dont_save_pending_sizes_p.
16434         * lto-streamer-in.c (input_function): Do not stream it.
16435         * lto-streamer-out.c (output_function): Likewise.
16436         * tree-inline.c (initialize_cfun): Do not copy it.
16437         * c-decl.c (store_parm_decls): Do not set it.
16438         * omp-low.c (create_task_copyfn): Likewise.
16439         * tree-optimize.c (tree_rest_of_compilation): Likewise.
16440
16441 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
16442
16443         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
16444         conditions.
16445         (*movdf_internal): Ditto.
16446         (*movdf_internal_nointeger): Ditto.
16447         (*movsf_internal): Ditto.
16448
16449 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
16450
16451         * c-decl.c (finish_decl): Don't call get_pending_sizes.
16452         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
16453         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
16454         (c_variable_size): Remove.
16455         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
16456         call put_pending_sizes.
16457         (get_parm_info): Add parameter expr.  Use it to set
16458         arg_info->pending_sizes.
16459         (store_parm_decls): Use arg_info->pending_sizes instead or calling
16460         get_pending_sizes.
16461         * c-parser.c (c_parser_parms_declarator): Update call to
16462         c_parser_parms_list_declarator.
16463         (c_parser_parms_list_declarator): Take parameter expr.  Update
16464         call to push_parm_decl.  Update recursive call.  Don't call
16465         get_pending_sizes.  Update calls to get_parm_info.
16466         (c_parser_objc_method_definition): Update calls to
16467         c_parser_objc_method_decl and objc_start_method_definition.
16468         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
16469         (c_parser_objc_method_decl): Add parameter expr.  Update call to
16470         grokparm.
16471         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
16472         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
16473         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
16474
16475 2011-05-05  Michael Hope  <michael.hope@linaro.org>
16476
16477         PR pch/45979
16478         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
16479         __ARM_EABI__ hosts.
16480
16481 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16482
16483         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
16484         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
16485         (spu_output_mi_thunk): New function.
16486
16487 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16488
16489         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
16490         targetm.asm_out.print_operand.
16491         * config/sol2.c: Include target.h.
16492
16493 2011-05-04  Jan Hubicka  <jh@suse.cz>
16494
16495         * ipa-inline.c (reset_edge_caches): New function.
16496         (update_caller_keys): Add check_inlinablity_for; do not
16497         reset edge caches; remove now unnecesary loop.
16498         (update_callee_keys): Add comments; reset node_growth_cache of callee.
16499         (update_all_callee_keys): Likewise.
16500         (inline_small_functions): Sanity check cache; update code
16501         recomputing it.
16502
16503 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
16504
16505         PR rtl-optimization/47612
16506         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
16507         as the last insn of the sequence to be moved.
16508
16509 2011-05-04  Tobias Burnus  <burnus@net-b.de>
16510
16511         PR fortran/48864
16512         * doc/invoke.texi (Ofast): Document that it
16513         enables Fortran's -fno-protect-parens.
16514
16515 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
16516
16517         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
16518
16519 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
16520
16521         * stor-layout.c (variable_size): Do not issue errors.
16522
16523 2011-05-04  Richard Guenther  <rguenther@suse.de>
16524
16525         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
16526         for array-ref indices.
16527         (tree_coverage_counter_addr): Likewise.
16528         (build_fn_info_type): Use size_int for index types.
16529         (build_gcov_info): Likewise.
16530
16531 2011-05-04  Richard Guenther  <rguenther@suse.de>
16532
16533         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
16534         to build_int_cst.
16535         * c-typeck.c (really_start_incremental_init): Use bitsize_int
16536         for constructor indices.
16537         (push_init_level): Likewise.
16538
16539 2011-05-04  Richard Guenther  <rguenther@suse.de>
16540
16541         * explow.c (promote_mode): Move variable declarations before code.
16542
16543 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
16544
16545         * tree.h (build_function_type_array): Declare.
16546         (build_varargs_function_type_array): Declare.
16547         (build_function_type_vec, build_varargs_function_type_vec): Define.
16548         * tree.c (build_function_type_array_1): New function.
16549         (build_function_type_array): New function.
16550         (build_varargs_function_type_array): New function.
16551
16552 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
16553
16554         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
16555         before setting STMT_VINFO_TYPE.
16556
16557 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16558
16559         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
16560         instead of spu_pass_by_reference.
16561
16562 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16563
16564         * calls.c (emit_library_call_value_1): Invoke
16565         promote_function_mode hook on libcall arguments.
16566         * explow.c (promote_function_mode, promote_mode): Handle TYPE
16567         argument being NULL.
16568         * targhooks.c (default_promote_function_mode): Lisewise.
16569         * config/s390/s390.c (s390_promote_function_mode): Likewise.
16570         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
16571
16572         * doc/tm.texi: Document that TYPE argument might be NULL.
16573
16574 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
16575
16576         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
16577
16578 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
16579
16580         From Bernd Schmidt
16581         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
16582
16583 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16584
16585         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
16586         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
16587         Move ...
16588         * mips-tfile.c: ... here.
16589         Don't include coretypes.h, tm.h, filenames.h.
16590         (saber_stop): Remove definition and all calls.
16591         [__SABER__]: Remove.
16592         (__LINE__): Remove default.
16593         (Size_t, Ptrdiff_t): Remove definitions.
16594         Replace by size_t, ptrdiff_t.
16595         [!MIPS_DEBUGGING_INFO]: Remove.
16596         (SHASH_SIZE, THASH_SIZE): Remove defaults.
16597         (progname): Add const.
16598         (STATIC): Remove.
16599         Replace all uses by static.
16600         (ALIGN_SYMTABLE_OFFSET): Remove default.
16601         * mips-tdump.c: Don't include coretypes.h, tm.h.
16602         Remove !MIPS_IS_STAB guard.
16603         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
16604         $(TM_H), filenames.h dependencies.
16605         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
16606
16607 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
16608
16609         From Jie Zhang
16610         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
16611         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
16612
16613 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
16614
16615         From Bernd Schmidt
16616         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
16617         account and save/restore RETS.
16618         (PROFILE_BEFORE_PROLOGUE): Define.
16619         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
16620         the push insn to use predecrement.
16621
16622 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
16623
16624         From Jie Zhang
16625         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
16626
16627 2011-05-04  Nick Clifton  <nickc@redhat.com>
16628
16629         * config/mn10300/mn10300.c: Include cfgloop.h.
16630         (DUMP): New macro.
16631         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
16632         Lcc or a FLcc insn into the instruction stream.
16633         (mn10300_block_contains_call): New function.  Returns true if the
16634         given basic block contains a CALL insn.
16635         (mn10300_loop_contains_call_insn): New function.  Returns true if
16636         the given loop contains a CALL insn.
16637         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
16638         to use the SETLB and Lcc or FLcc insns.
16639         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
16640         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
16641         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
16642         disable the SETLB optimization.
16643         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
16644         __SETLB__ or __NO_SETLB__.
16645         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
16646         (movsf_internal): Handle MDR register.
16647         (cmpsi): Make visible.
16648         (setlb): New pattern.
16649         (Lcc): New pattern.
16650         (FLcc): New pattern.
16651
16652 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
16653
16654         PR target/48860
16655         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
16656         for reg<->xmm moves.
16657         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
16658         (vec_concatv2di_rex64_sse): Ditto.
16659         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
16660         (*vec_extractv2di_1_rex64): Ditto.
16661
16662         Revert:
16663         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
16664
16665         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
16666         reg<->xmm moves.
16667         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
16668
16669 2011-05-04  Richard Guenther  <rguenther@suse.de>
16670
16671         * tree.h (int_const_binop): Remove notrunc argument.
16672         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
16673         create integer constants that are properly truncated.
16674         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
16675         (const_binop): Remove zero notrunc argument to int_const_binop.
16676         (size_binop_loc): Likewise.
16677         (fold_div_compare): Likewise.
16678         (maybe_canonicalize_comparison_1): Likewise.
16679         (fold_comparison): Likewise.
16680         (fold_binary_loc): Likewise.
16681         (multiple_of_p): Likewise.
16682         * expr.c (store_constructor): Likewise.
16683         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
16684         (maybe_fold_stmt_addition): Likewise.
16685         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
16686         * stor-layout.c (layout_type): Likewise.
16687         * tree-data-ref.c (tree_fold_divides_p): Likewise.
16688         * tree-sra.c (build_ref_for_offset): Likewise.
16689         (build_user_friendly_ref_for_offset): Likewise.
16690         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
16691         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
16692         * tree-ssa-loop-niter.c (inverse): Likewise.
16693         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
16694         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
16695         * tree-switch-conversion.c (check_range): Likewise.
16696         (build_constructors): Likewise.
16697         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
16698         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
16699         (extract_range_from_assert): Likewise.
16700         (vrp_int_const_binop): Likewise.
16701         (extract_range_from_binary_expr): Likewise.
16702         (extract_range_from_unary_expr): Likewise.
16703         (check_array_ref): Likewise.
16704         (find_case_label_range): Likewise.
16705         (simplify_div_or_mod_using_ranges): Likewise.
16706         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
16707         comparing case labels for merging.
16708
16709 2011-05-03  Mark Wielaard  <mjw@redhat.com>
16710
16711         * dwarf2out.c (debug_str_hash_forced): Removed.
16712         (gen_label_for_indirect_string): Removed.
16713         (get_debug_string_label): Removed.
16714         (AT_string_form): Generate label directly.
16715         (output_indirect_string): Test indirect_string_node for
16716         DW_FORM_strp instead of checking label and refcount.
16717         (prune_indirect_string): Removed.
16718         (prune_unused_types): Don't check debug_str_hash_forced or
16719         call prune_indirect_string.
16720
16721 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
16722
16723         PR other/48093
16724         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
16725
16726 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
16727
16728         PR debug/47994
16729         PR debug/47919
16730         * combine.c (try_combine): Skip debug insns at m_split tests.
16731
16732 2011-04-26  Mark Wielaard  <mjw@redhat.com>
16733
16734         PR42288
16735         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
16736         when info_section_emitted.
16737
16738 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
16739
16740         * config/mips/mips-opts.h: New.
16741         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
16742         to mips-opts.h.
16743         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
16744         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
16745         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
16746         via opts pointer.
16747         * config/mips/mips.h (enum mips_code_readable_setting): Move to
16748         mips-opts.h.
16749         (mips_abi, mips_code_readable): Don't declare.
16750         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
16751         (mabi=): Use Enum and Var.
16752         (mips_abi): New Enum and EnumValue entries.
16753         (mcode-readable=): Use Enum and Var.
16754         (mips_code_readable_setting): New Enum and EnumValue entries.
16755         (mr10k-cache-barrier=): Use Enum and Var.
16756         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
16757
16758 2011-05-03  Jan Hubicka  <jh@suse.cz>
16759
16760         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
16761         replace hash by pointer map.
16762         (cgraph_node_set_element_def, cgraph_node_set_element,
16763         const_cgraph_node_set_element, varpool_node_set_element_def,
16764         varpool_node_set_element, const_varpool_node_set_element): Remove.
16765         (free_cgraph_node_set, free_varpool_node_set): New function.
16766         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
16767         * tree-emutls.c: Free varpool node set.
16768         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
16769         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
16770         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
16771         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
16772         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
16773         Move here from ipa.c; implement using pointer_map
16774         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
16775         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
16776         debug_cgraph_node_set, varpool_node_set_new,
16777         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
16778         dump_varpool_node_set, debug_varpool_node_set):
16779         Move to ipa-uitls.c.
16780         * passes.c (ipa_write_summaries): Update.
16781
16782 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
16783
16784         From Mike Frysinger:
16785         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
16786         bf542/bf544/bf547/bf548/bf549.
16787
16788 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
16789
16790         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
16791
16792 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
16793
16794         From Bernd Schmidt:
16795         * config/bfin/bfin.md (MOVCC): New mode_macro.
16796         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
16797         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
16798         comments from generated assembly.
16799
16800 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
16801
16802         From Bernd Schmidt
16803         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
16804         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
16805         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
16806         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
16807         * config/bfin/lib1funcs.asm (___muldi3): New function.
16808
16809 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16810
16811         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
16812         build_function_type_list instead of build_function_type.
16813         Rearrange initialization of `args' to do so.
16814
16815 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16816
16817         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
16818         instead of build_function_type.
16819
16820 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16821
16822         * config/rs6000/rs6000.c (spe_init_builtins): Call
16823         build_function_type_list instead of build_function_type.
16824         (paired_init_builtins, altivec_init_builtins): Likewise.
16825         (builtin_function_type): Likewise.
16826
16827 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16828
16829         * config/sh/sh.c (sh_media_init_builtins): Call
16830         build_function_type_list instead of build_function_type.
16831
16832 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16833
16834         * config/sparc/sparc.c (sparc_file_end): Call
16835         build_function_type_list instead of build_function_type.
16836
16837 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16838
16839         * config/alpha/alpha.c (alpha_init_builtins): Call
16840         build_function_type_list instead of build_function_type.
16841
16842 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16843
16844         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
16845         build_function_type_list instead of build_function_type.
16846
16847 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16848
16849         * config/iq2000/i2000.c (iq2000_init_builtins): Call
16850         build_function_type_list instead of build_function_type.
16851         Delete `endlink' variable.
16852
16853 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16854
16855         * config/avr/avr.c (avr_init_builtins): Call
16856         build_function_type_list instead of build_function_type.
16857
16858 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16859
16860         * config/picochip/picochip.c (picochip_init_builtins): Call
16861         build_function_type_list instead of build_function_type.
16862         Delete `endlink' variable.
16863
16864 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16865
16866         * config/bfin/bfin.c (bfin_init_builtins): Call
16867         build_function_type_list instead of build_function_type.
16868
16869 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
16870
16871         From Bernd Schmidt
16872         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
16873         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
16874
16875 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
16876
16877         From Jie Zhang:
16878         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
16879         libbffastfp overrides libgcc when -mfast-fp.
16880
16881 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
16882
16883         Originally from Bernd Schmidt
16884         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
16885         * config/bfin/bfin.c (override_options): Test it and error if
16886         TARGET_FDPIC.
16887
16888 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
16889
16890         Originally From Bernd Schmidt
16891         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
16892         FD-PIC.
16893
16894 2011-05-03  Jeff Law  <law@redhat.com>
16895
16896         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
16897         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
16898         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
16899         than accessing AUX field directly.  Free the AUX field before
16900         clearing it.
16901         (thread_block, thread_through_loop_header): Likewise.
16902         (thread_single_edge, mark_threaded_blocks): Likewise.
16903         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
16904         (register_jump_thread): Do not attempt to thread to a NULL edge.
16905
16906 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
16907
16908         * function.c (init_function_start): Call decide_function_section.
16909         * varasm.c (decide_function_section): New function.
16910         (assemble_start_function): When not using
16911         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
16912         or first_function_block_is_cold.
16913         * rtl.h (decide_function_section): Declare.
16914
16915 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
16916             Jakub Jelinek  <jakub@redhat.com>
16917
16918         PR target/48774
16919         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
16920         only succeed if req_mode is the same as set_mode.
16921
16922 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
16923
16924         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
16925         * genemit.c (gen_exp): Handle RETURN.
16926         * emit-rtl.c (verify_rtx_sharing): Likewise.
16927         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
16928         * rtl.c (copy_rtx): RETURN is shared.
16929         * rtl.h (enum global_rtl_index): Add GR_RETURN.
16930         (ret_rtx): New.
16931         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
16932         * config/s390/s390.c (s390_emit_epilogue): Likewise.
16933         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
16934         * config/cris/cris.c (cris_expand_return): Likewise.
16935         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
16936         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
16937         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
16938         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
16939         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
16940         Likewise.
16941         * config/v850/v850.c (expand_epilogue): Likewise.
16942         * config/bfin/bfin.c (bfin_expand_call): Likewise.
16943         * config/arm/arm.md (epilogue): Likewise.
16944         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
16945         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
16946         variable to ret_reg.
16947
16948 2011-05-03  Richard Guenther  <rguenther@suse.de>
16949
16950         PR lto/48846
16951         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
16952         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
16953         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
16954
16955 2011-05-03  Richard Guenther  <rguenther@suse.de>
16956
16957         * c-decl.c (grokdeclarator): Instead of looking at
16958         TREE_OVERFLOW check if the constant fits in the index type.
16959
16960 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
16961
16962         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
16963         (vec_store_lanes<mode><mode>): Likewise.
16964
16965 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
16966
16967         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
16968         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
16969         convert_optab_index values.
16970         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
16971         * genopinit.c (optabs): Initialize the new optabs.
16972         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
16973         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
16974         (expand_STORE_LANES): New functions.
16975         * tree.h (build_array_type_nelts): Declare.
16976         * tree.c (build_array_type_nelts): New function.
16977         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
16978         (vect_model_load_cost): Likewise.
16979         (vect_store_lanes_supported, vect_load_lanes_supported)
16980         (vect_record_strided_load_vectors): Declare.
16981         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
16982         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
16983         (vect_transform_strided_load): Split out statement recording into...
16984         (vect_record_strided_load_vectors): ...this new function.
16985         * tree-vect-stmts.c (create_vector_array, read_vector_array)
16986         (write_vector_array, create_array_ref): New functions.
16987         (vect_model_store_cost): Add store_lanes_p argument.
16988         (vect_model_load_cost): Add load_lanes_p argument.
16989         (vectorizable_store): Try to use store-lanes functions for
16990         interleaved stores.
16991         (vectorizable_load): Likewise load-lanes and loads.
16992         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
16993         to vect_model_store_cost.
16994         (vect_build_slp_tree): Likewise vect_model_load_cost.
16995
16996 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
16997
16998         * hooks.h (hook_bool_mode_uhwi_false): Declare.
16999         * hooks.c (hook_bool_mode_uhwi_false): New function.
17000         * target.def (array_mode_supported_p): New hook.
17001         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
17002         * doc/tm.texi: Regenerate.
17003         * stor-layout.c (mode_for_array): New function.
17004         (layout_type): Use it.
17005         * config/arm/arm.c (arm_array_mode_supported_p): New function.
17006         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
17007
17008 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
17009
17010         PR target/48723
17011         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
17012         for -fstack-check if the size to allocate is negative.
17013
17014 2011-05-02  Lawrence Crowl  <crowl@google.com>
17015
17016         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
17017         (timevar_cond_start): New for starting a timer only when it is not
17018         already running.
17019         (timevar_cond_stop): New for stopping a timer when it was not already
17020         running.
17021
17022         * timevar.c (timevar_stop): Enable start/stop timers to start again.
17023         (timevar_cond_start): New as above.
17024         (timevar_cond_stop): New as above.
17025
17026         * timevar.def: Add start/stop timers for compiler phases,
17027         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
17028         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
17029         and TV_PHASE_FINALIZE.
17030         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
17031         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
17032         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
17033         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
17034         Make unused TV_OVERLOAD into a start/stop timer.
17035
17036         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
17037         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
17038         to indicate that they are start/stop timers.
17039
17040         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
17041         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
17042         Move initialization to do_compile.
17043         (do_compile): Add initialization from above.
17044         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
17045
17046         * c-decl.c (c_write_global_declarations): Add start/stop of
17047         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
17048
17049         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
17050         or TV_PARSE_INLINE, as appropriate.
17051         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
17052         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
17053
17054 2011-05-02  Jason Merrill  <jason@redhat.com>
17055
17056         PR c++/40975
17057         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
17058
17059 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
17060
17061         PR c/35445
17062         * c-decl.c (finish_decl): Only create a composite if the types are
17063         compatible.
17064
17065 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
17066
17067         * config/fr30/fr30-protos.h (Mmode): Don't define.
17068         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
17069         definition where used.
17070         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
17071         define.  Expand definitions where used.
17072         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
17073         Expand definitions where used.
17074         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
17075         rx_function_arg, rx_function_arg_advance,
17076         rx_function_arg_boundary): Expand definitions of those macros.
17077         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
17078         definition where used.
17079
17080 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
17081
17082         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
17083         reg<->xmm moves.
17084         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
17085         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
17086         with *movv2sf_internal_rex64_avx.
17087         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
17088         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
17089         Use %v prefix in insn mnemonic to handle TARGET_AVX.
17090         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
17091         "vex" in "prefix" attribute calculation.
17092         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
17093
17094 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
17095
17096         PR target/47951
17097         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
17098         inputs match the output.
17099
17100 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
17101
17102         PR target/47955
17103         * config/m68k/m68k.c (m68k_expand_prologue): Set
17104         current_function_static_stack_size.
17105
17106 2011-05-02   Jan Hubicka  <jh@suse.cz>
17107
17108         * lto-streamer.c (lto_streamer_cache_insert_1,
17109         lto_streamer_cache_lookup, lto_streamer_cache_create,
17110         lto_streamer_cache_delete): Use pointer map instead of hashtable.
17111         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
17112
17113 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
17114
17115         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
17116         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
17117         config/m68k/t-opts: New files.
17118         * config/m68k/m68k-tables.opt: New file (generated).
17119         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
17120         extra_options and m68k/t-opts to tmake_file.
17121         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
17122         (all_isas): Initialize using m68k-isas.def.
17123         (all_microarchs): Initialize using m68k-microarchs.def.
17124         (m68k_find_selection): Remove.
17125         (m68k_handle_option): Don't assert that global structures are in
17126         use.  Use error_at.  Access variables via opts pointer.  Don't
17127         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
17128         directly for -m68020-40 and -m68020-60.
17129         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
17130         m68k_tune_entry here.
17131         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
17132         to m68k-opts.h.
17133         (m68k_library_id_string): Remove declaration.
17134         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
17135         (m68k_library_id_string): New Variable.
17136         (march=, mcpu=, mtune=): Use Enum and Var.
17137
17138 2011-05-02  Richard Guenther  <rguenther@suse.de>
17139
17140         * varasm.c (output_constructor_regular_field): Compute zero-based
17141         index with double-ints.  Make sure to ICE instead of producing
17142         wrong code.
17143         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
17144         in asserts.  Properly use a signed type.
17145
17146 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
17147
17148         * config/i386/sse.md (V): New mode iterator.
17149         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
17150         TARGET_SSE2.
17151         (V_256): Rename from AVX256MODE.
17152         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
17153         condition to all users.
17154         (VF1): Ditto.
17155         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
17156         condition to all users.
17157         (VF_128): Make V4SF mode unconditional.
17158         (VF_256): Rename from AVX256MODEF2P.
17159         (VI4F_128): Rename from SSEMODE4S.
17160         (VI8F_128): Rename from SSEMODE2D.
17161         (VI4F_256): Rename from AVX256MODE8P.
17162         (VI8F_256): Rename from AVX256MODE4P.
17163         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
17164         (ssescalarmodesuffix): Remove SF and DF modes.
17165         (SSEMODE124): Remove.
17166         (SSEMODE1248): Ditto.
17167         (SSEMODEF2P): Ditto.
17168         (AVXMODEF2P): Ditto.
17169         (AVXMODEFDP): Ditto.
17170         (AVXMODEFSP): Ditto.
17171         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
17172         unconditional.
17173         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
17174         unconditional.
17175         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
17176         xop_pcmov_<mode>256.  Use V mode iterator.
17177
17178         Adjust RTX patterns globally for renamed mode attributes.
17179
17180 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17181
17182         * haifa-sched.c (sched_emit_insn): Emit insn before first
17183         non-scheduled insn.  Inform back-end about new insn.  Add
17184         new insn to scheduled_insns list.
17185
17186 2011-05-02  Richard Guenther  <rguenther@suse.de>
17187
17188         PR tree-optimization/48822
17189         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
17190         (process_scc): Indicate which iteration we start.
17191
17192 2011-05-02  Jan Hubicka  <jh@suse.cz>
17193
17194         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
17195         (lto_section_overrun): New.
17196         * lto-section-out.c (append_block): Rename to ...
17197         (lto_append_block): ... this one; export.
17198         (lto_output_1_stream): Move lto lto-streamer.h
17199         (lto_output_data_stream): Update.
17200         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
17201         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
17202         functions.
17203
17204 2011-05-02  Richard Guenther  <rguenther@suse.de>
17205
17206         * tree.c (tree_code_counts): New global array.
17207         (record_node_allocation_statistics): Count individual tree codes.
17208         (dump_tree_statistics): Dump individual code stats.
17209
17210 2011-05-01  Jan Hubicka  <jh@suse.cz>
17211
17212         * ipa-inline.c (caller_growth_limits): Fix thinko when
17213         looking for largest stack frame.
17214         * ipa-inline.h (dump_inline_summary): Declare.
17215         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
17216         on stack usage.
17217         (dump_inline_summary): Export.
17218         (debug_inline_summary): Declare as DEBUG_FUNCTION.
17219
17220 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
17221
17222         * reginfo.c (memory_move_cost): Change rclass argument type form
17223         'enum reg_class' to reg_class_t.
17224         * reload.h (memory_move_cost): Update prototype.
17225         * postreload.c reload_cse_simplify_set): Change type dclass var to
17226         reg_class_t.
17227         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
17228         Update prototype.
17229         (ira_allocate_and_set_costs): Change aclass argument type form
17230         'enum reg_class' to reg_class_t.
17231         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
17232         Change aclass argument type to reg_class_t.
17233         (update_conflict_hard_reg_costs): Change type aclass and pref vars
17234         to reg_class_t.
17235         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
17236         memory_move_cost call.
17237
17238         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
17239         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
17240         Change type tmp var to reg_class_t.
17241
17242 2011-04-30  Jan Hubicka  <jh@suse.cz>
17243
17244         * ipa-inline.c (can_inline_edge_p): Disregard limits when
17245         inlining into function with flatten attribute.
17246         (want_inline_small_function_p): Be more realistic about inlining
17247         cold calls where callee size grows.
17248
17249 2011-04-30  Jan Hubicka  <jh@suse.cz>
17250
17251         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
17252         flags.
17253
17254 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
17255
17256         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
17257         PRINT_OPERAND_PUNCT_VALID_P): Remove.
17258         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
17259         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
17260         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
17261         (print_operand): Rename to...
17262         (sparc_print_operand): ...this. Make static. Adjust
17263         sparc_print_operand function call.
17264         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
17265         functions.
17266
17267 2011-04-30  Jan Hubicka  <jh@suse.cz>
17268
17269         PR middle-end/48752
17270         * ipa-inline.c (early_inliner): Disable when doing late
17271         addition of function.
17272
17273 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
17274
17275         * dwarf2out.c (get_address_mode): New inline.
17276         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
17277         if not dwarf_strict emit
17278         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
17279         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
17280         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
17281         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
17282         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
17283         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
17284         mem_loc_descriptor callers.
17285         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
17286         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
17287         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
17288         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
17289         (base_types): New variable.
17290         (get_base_type_offset, calc_base_type_die_sizes,
17291         base_type_for_mode, mark_base_types, base_type_cmp,
17292         move_marked_base_types): New functions.
17293         (calc_die_sizes): Assert that die_offset is 0 or equal to
17294         next_die_offset.
17295         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
17296         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
17297         callers.  If not dwarf_strict, call mem_loc_descriptor even for
17298         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
17299         (gen_subprogram_die): Don't give up on call site parameters
17300         with non-integral or large integral modes.  Adjust
17301         mem_loc_descriptor callers.
17302         (prune_unused_types): Call prune_unused_types_mark on base_types
17303         vector entries.
17304         (resolve_addr): Call mark_base_types.
17305         (dwarf2out_finish): Call move_marked_base_types.
17306
17307         PR tree-optimization/48809
17308         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
17309         type.
17310         (gen_inbound_check): Don't compute index_expr - range_min in utype
17311         again, instead reuse SSA_NAME initialized in build_arrays.
17312         Remove two useless gsi_for_stmt calls.
17313
17314 2011-04-29  Jeff Law  <law@redhat.com>
17315
17316         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
17317
17318 2011-04-29  Martin Jambor  <mjambor@suse.cz>
17319
17320         * cgraph.h (cgraph_postorder): Remove declaration.
17321         * ipa-utils.h (ipa_free_postorder_info): Declare.
17322         (ipa_reverse_postorder): Likewise.
17323         * cgraphunit.c: Include ipa-utils.h.
17324         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
17325         * ipa-inline.c: Include ipa-utils.h.
17326         (ipa_inline): Update call to ipa_reverse_postorder.
17327         * ipa-pure-const.c (propagate_pure_const): Update call to
17328         ipa_reduced_postorder and ipa_print_order.  Call
17329         ipa_free_postorder_info to clean up.
17330         (propagate_nothrow): Likewise.
17331         * ipa-reference.c (propagate): Removed a useless call to
17332         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
17333         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
17334         * ipa.c: Include ipa-utils.h.
17335         (ipa_profile): Update call to ipa_reverse_postorder.
17336         (cgraph_postorder): Moved to...
17337         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
17338         (ipa_utils_print_order): Renamed to ipa_print_order.
17339         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
17340         comments.
17341         (ipa_free_postorder_info): New function.
17342         * passes.c: Include ipa-utils.h.
17343         (do_per_function_toporder): Update call to ipa_reverse_postorder.
17344         (ipa_write_summaries): Likewise.
17345         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
17346         (cgraphunit.o): Likewise.
17347         (ipa.o): Likewise.
17348         (ipa-inline.o): Likewise.
17349
17350 2011-04-29  Jan Hubicka  <jh@suse.cz>
17351
17352         * gcc.dg/tree-ssa/inline-10.c: New testcase.
17353         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
17354         * ipa-inline.h (clause_t): Turn into unsigned int.
17355         * ipa-inline-analysis.c (add_clause): Do more simplification.
17356         (and_predicates): Shortcut more cases.
17357         (predicates_equal_p): Move forward; check that clauses are properly
17358         ordered.
17359         (or_predicates): Shortcut more cases.
17360         (edge_execution_predicate): Rewrite as...
17361         (set_cond_stmt_execution_predicate): ... this function; handle
17362         __builtin_constant_p.
17363         (set_switch_stmt_execution_predicate): New .
17364         (compute_bb_predicates): New.
17365         (will_be_nonconstant_predicate): Update TODO.
17366         (estimate_function_body_sizes): Use compute_bb_predicates
17367         and free them later, always try to estimate if stmt is constant.
17368         (estimate_time_after_inlining, estimate_size_after_inlining):
17369         Gracefully handle optimized out edges.
17370         (read_predicate): Fix off by one error.
17371
17372 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
17373
17374         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
17375
17376 2011-04-27  Xinliang David Li  <davidxl@google.com>
17377
17378         * tree-profile.c (init_ic_make_global_vars): Set
17379         tls attribute on ic vars.
17380         * coverage.c (coverage_end_function): Initialize
17381         function_list with zero.
17382
17383 2011-04-29  Richard Guenther  <rguenther@suse.de>
17384
17385         * builtins.c (fold_builtin_classify_type): Use integer_type_node
17386         for the type of the result.
17387         (fold_builtin_isascii): Likewise.
17388         (fold_builtin_toascii): Use integer_type_node where appropriate.
17389         (fold_builtin_logb): Likewise.
17390         (fold_builtin_frexp): Likewise.
17391         (fold_builtin_strstr): Likewise.
17392         (fold_builtin_strpbrk): Likewise.
17393         (fold_builtin_fputs): Likewise.
17394         (fold_builtin_sprintf): Likewise.
17395         (fold_builtin_snprintf): Likewise.
17396         (fold_builtin_printf): Likewise.
17397         (do_mpfr_remquo): Use a proper type for the assigned constant.
17398         (do_mpfr_lgamma_r): Likewise.
17399         * dwarf2out.c (resolve_one_addr): Use size_int.
17400         * except.c (init_eh): Likewise.
17401         (assign_filter_values): Use integer_type_node for filter values.
17402         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
17403         indices.
17404         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
17405         for EH region numbers.
17406         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
17407         for the shift amount.
17408
17409 2011-04-29  Richard Guenther  <rguenther@suse.de>
17410
17411         * expr.h (expand_shift): Rename to ...
17412         (expand_variable_shift): ... this.
17413         (expand_shift): Take a constant shift amount.
17414         * expmed.c (expand_shift): Rename to ...
17415         (expand_variable_shift): ... this.
17416         (expand_shift): New wrapper around expand_variable_shift.
17417         * expr.c (convert_move, emit_group_load_1, emit_group_store,
17418         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
17419         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
17420         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
17421         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
17422         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
17423         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
17424         emit_store_flag_1, emit_store_flag): Likewise.
17425         * builtins.c (expand_builtin_signbit): Likewise.
17426         * calls.c (load_register_parameters): Likewise.
17427         * function.c (assign_parm_setup_block): Likewise.
17428         * lower-subreg.c (resolve_shift_zext): Likewise.
17429         * optabs.c (widen_bswap, expand_abs_nojump,
17430         expand_one_cmpl_abs_nojump, expand_float): Likewise.
17431         * spu/spu.c (spu_expand_extv): Likewise.
17432         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
17433
17434 2011-04-29  Richard Guenther  <rguenther@suse.de>
17435
17436         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
17437         for the remapped region number.
17438         * predict.c (build_predict_expr): Use integer_type_node for the
17439         predict kind.
17440         * fold-const.c (fold_binary_loc): Use integer_type_node for
17441         the shift amount.  Use a proper type for the PLUS_EXPR operand.
17442
17443 2011-04-29  Michael Matz  <matz@suse.de>
17444
17445         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
17446         other trees that just builtins.
17447         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
17448
17449 2011-04-29  Richard Guenther  <rguenther@suse.de>
17450
17451         * tree-nested.c (get_trampoline_type): Use size_int.
17452         (get_nl_goto_field): Likewise.
17453         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
17454         for all indexes.
17455         (lower_eh_constructs_2): Likewise.
17456         (lower_resx): Likewise.
17457         (lower_eh_dispatch): Likewise.
17458         * tree-mudflap.c (mf_build_string): Use size_int.
17459         (mudflap_register_call): Use integer_type_node for the flag.
17460         (mudflap_enqueue_constant): Use size_int.
17461         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
17462         instead of rebuilding it.
17463
17464 2011-04-29  Richard Guenther  <rguenther@suse.de>
17465
17466         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
17467         Handle OBJ_TYPE_REF.
17468         (find_func_aliases_for_call): Use it more consistently.
17469
17470 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
17471
17472         * haifa-sched.c (last_nondebug_scheduled_insn): New.
17473         (rank_for_schedule): Use it.
17474         (schedule_block): Set it.
17475
17476 2011-04-28  David Li  <davidxl@google.com>
17477
17478         * tree.c (crc32_string): Use crc32_byte.
17479         (crc32_byte): New function.
17480         * tree.h (crc32_byte): New function.
17481         * gcov.c (read_graph_file): Handle new cfg_cksum.
17482         (read_count_file): Ditto.
17483         * profile.c (instrument_values): Ditto.
17484         (get_exec_counts): Ditto.
17485         (read_profile_edge_counts): Ditto.
17486         (compute_branch_probabilities): Ditto.
17487         (compute_value_histograms): Ditto.
17488         (branch_prob): Ditto.
17489         (end_branch_prob): Ditto.
17490         * coverage.c (read_counts_file): Ditto.
17491         (get_coverage_counts): Ditto.
17492         (tree_coverage_counter_addr): Ditto.
17493         (coverage_checksum_string): Ditto.
17494         (coverage_begin_output): Ditto.
17495         (coverage_end_function): Ditto.
17496         (build_fn_info_type): Ditto.
17497         (build_fn_info_value): Ditto.
17498         * libgcov.c (gcov_exit): Ditto.
17499         * gcov-dump.c (tag_function): Ditto.
17500         (compute_checksum): Remove.
17501
17502 2011-04-29  Alan Modra  <amodra@gmail.com>
17503
17504         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
17505         unspec plus offset.  Tidy macho code.
17506
17507 2011-04-29  Martin Jambor  <mjambor@suse.cz>
17508
17509         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
17510         node instead of a decl.  Update all callers.
17511         * cgraph.h: Update declaration.
17512
17513 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
17514
17515         PR tree-optimization/48765
17516         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
17517         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
17518         to indicate if loop aware SLP is being used.  Scan the statements
17519         and update the vectorization factor according to the type of
17520         vectorization before statement analysis.
17521         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
17522         pass it to vect_analyze_loop_operations.
17523         (vectorizable_reduction): Set number of copies to 1 in case of pure
17524         SLP statement.
17525         * tree-vect-stmts.c (vectorizable_conversion,
17526         vectorizable_assignment, vectorizable_shift,
17527         vectorizable_operation, vectorizable_type_demotion,
17528         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
17529         Likewise.
17530         (vectorizable_condition): Move the check that it is not SLP
17531         vectorization before the number of copies check.
17532         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
17533         to vectorize the loop using SLP.
17534
17535 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
17536
17537         PR middle-end/48597
17538         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
17539         inline asm.
17540
17541 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
17542
17543         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
17544         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
17545         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
17546         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
17547         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
17548         linux*.h headers.
17549         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
17550         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
17551         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
17552         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
17553         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
17554         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
17555         REG_NAME.
17556         * config/i386/linux.h (REG_NAME): Don't define.
17557         * config/i386/linux64.h (REG_NAME): Don't define.
17558         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
17559         Undefine before defining.
17560
17561 2011-04-28  Jan Hubicka  <jh@suse.cz>
17562
17563         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
17564         nonconstant_names array.
17565         (estimate_function_body_sizes): Build nonconstant_names array; handle
17566         BUILT_IN_CONSTANT_P.
17567
17568 2011-04-28  Richard Guenther  <rguenther@suse.de>
17569
17570         PR bootstrap/48804
17571         Revert
17572         2011-04-28  Richard Guenther  <rguenther@suse.de>
17573
17574         * tree-ssa-structalias.c (solve_constraints): Build succ graph
17575         as late as possible.
17576
17577 2011-04-28  Richard Guenther  <rguenther@suse.de>
17578
17579         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
17580         (debug_constraint): Do it here.
17581         (dump_constraints): And here.
17582         (rewrite_constraints): And here.
17583         (dump_constraint_edge): Remove.
17584         (dump_constraint_graph): Rewrite to produce DOT output.
17585         (solve_constraints): Build succ graph as late as possible.
17586         Dump constraint graphs before and after solving.
17587
17588 2011-04-28  Richard Guenther  <rguenther@suse.de>
17589
17590         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
17591         New function split out from ...
17592         (find_func_aliases): ... here.  Call it.
17593         (find_func_aliases_for_call): Likewise.
17594
17595 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
17596
17597         * internal-fn.h (internal_fn_name_array): Declare.
17598         (internal_fn_flags_array): Likewise.
17599
17600 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
17601
17602         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
17603         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
17604         Move from sse.md.
17605         (ssemodefsuffix): Remove.
17606         (ssevecmodesuffix): New mode attribute.
17607         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
17608         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
17609         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
17610         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
17611         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
17612         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
17613         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
17614         ssemodesuffix mode attribute.
17615         (float splitters): Use ssevecmodesuffix mode attribute.
17616         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
17617         (sseinsmode): Rename from avxvecmode.
17618         (avxsizesuffix): Rename from avxmodesuffix.
17619         (sseintvecmode): Rename from avxpermvecmode.
17620         (ssedoublevecmode): Rename from ssedoublesizemode.
17621         (ssehalfvecmode): Rename from avxhalfvecmode.
17622         (ssescalarmode): Rename from avxscalarmode.
17623         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
17624         templates for ssemodesuffix mode attribute.
17625         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
17626         mode attribute.
17627
17628         Adjust RTX patterns globally for renamed mode attributes.
17629
17630 2011-04-27  Jan Hubcika  <jh@suse.cz>
17631
17632         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
17633         * ipa-inline-analysis.c: Include alloc-pool.h.
17634         (edge_predicate_pool): New.
17635         (trye_predicate_p): New function
17636         (false_predicate_p): New function.
17637         (add_clause): Sanity check that false clauses are "optimized";
17638         never add clauses to predicate that is already known to be false.
17639         (and_predicate): Use flase_predicate_p.
17640         (evaulate_predicate): Rename to ...
17641         (evaluate_predicate): ... this one; update all callers; assert
17642         that false is not listed among possible truths.
17643         (dump_predicate): Use true_predicate_p.
17644         (account_size_time): Use false_predicate_p.
17645         (evaulate_conditions_for_edge): Rename to ...
17646         (evaluate_conditions_for_edge) ... this one.
17647         (edge_set_predicate): New function.
17648         (inline_edge_duplication_hook): Duplicate edge predicates.
17649         (inline_edge_removal_hook): Free edge predicates.
17650         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
17651         (dump_inline_summary): Update.
17652         (estimate_function_body_sizes): Set edge predicates.
17653         (estimate_calls_size_and_time): Handle predicates.
17654         (estimate_callee_size_and_time): Update.
17655         (remap_predicate): Add toplev_predicate; update comment.
17656         (remap_edge_predicates): New function.
17657         (inline_merge_summary): Compute toplev predicate; update.
17658         (read_predicate): New function.
17659         (read_inline_edge_summary): Use it.
17660         (inline_read_section): Likewise.
17661         (write_predicate): New function.
17662         (write_inline_edge_summary): Use it.
17663         (inline_write_summary): Likewise.
17664         (inline_free_summary): Free alloc pool and edge summary vec.
17665
17666 2011-04-27  Richard Guenther  <rguenther@suse.de>
17667
17668         * tree-ssa-structalias.c (changed_count): Remove.
17669         (changed): Use a bitmap.
17670         (unify_nodes): Adjust.
17671         (do_sd_constraint): Likewise.
17672         (do_ds_constraint): Likewise.
17673         (do_complex_constraint): Likewise.
17674         (solve_graph): Likewise.
17675
17676 2011-04-27  Jan Hubicka  <jh@suse.cz>
17677
17678         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
17679
17680 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
17681
17682         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
17683         (avx_vperm2f128_*_operand): Ditto.
17684         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
17685         Use avx_vpermilp_parallel in insn condition.
17686         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
17687         Use avx_vperm2f128_parallel in insn condition.
17688
17689 2011-04-27  Richard Guenther  <rguenther@suse.de>
17690
17691         * Makefile.in (tree-ssa-structalias.o): Remove
17692         gt-tree-ssa-structalias.h dependency.
17693         (GTFILES): Remove tree-ssa-structalias.c.
17694         * tree.c (allocate_decl_uid): New function.
17695         (make_node_stat): Use it.
17696         (copy_node_stat): Likewise.
17697         * tree.h (allocate_decl_uid): Declare.
17698         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
17699         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
17700         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
17701         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
17702         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
17703         (struct heapvar_map): Likewise.
17704         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
17705         heapvar_insert): Likewise.
17706         (make_heapvar_for): Rename to ...
17707         (make_heapvar): ... this.  Simplify.
17708         (fake_var_decl_obstack): New global var.
17709         (build_fake_var_decl): New function.
17710         (make_constraint_from_heapvar): Adjust.
17711         (handle_lhs_call): Likewise.
17712         (create_function_info_for): Likewise.
17713         (intra_create_variable_infos): Likewise.
17714         (init_alias_vars): Allocate fake_var_decl_obstack.
17715         (init_alias_heapvars, delete_alias_heapvars): Remove.
17716         (compute_points_to_sets): Do not call init_alias_heapvars.
17717         (ipa_pta_execute): Likewise.
17718         (delete_points_to_sets): Free fake_var_decl_obstack.
17719
17720 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17721
17722         * config/spu/divmovti4.c (union qword_UTItype): New data type.
17723         (si_from_UTItype, si_to_UTItype): New functions.
17724         (__udivmodti4): Use them to implement type-punning.
17725         * config/spu/multi3.c (union qword_TItype): New data type.
17726         (si_from_TItype, si_to_TItype): New functions.
17727         (__multi3): Use them to implement type-punning.
17728
17729 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17730
17731         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
17732
17733 2011-04-27  Jan Hubicka  <jh@suse.cz>
17734
17735         * ipa-prop.c (function_insertion_hook_holder): New holder.
17736         (ipa_add_new_function): New function.
17737         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
17738         Register/deregister holder.
17739
17740 2011-04-27  Richard Guenther  <rguenther@suse.de>
17741
17742         PR tree-optimization/48772
17743         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
17744
17745 2011-04-27  Richard Guenther  <rguenther@suse.de>
17746
17747         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
17748         TARGET_MEM_REF handling.
17749
17750 2011-04-27  Nick Clifton  <nickc@redhat.com>
17751
17752         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
17753         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
17754         (REG_CLASS_NAMES): Likewise.
17755         (REG_CLASS_CONTENTS): Likewise.
17756         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
17757         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
17758         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
17759         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
17760         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
17761         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
17762         duplicate register classes.
17763         (frv_class_likely_spilled_p): Likewise.
17764         (frv_register_move_cost): Likewise.
17765
17766         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
17767         end of the regno_reg_class array.
17768
17769 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
17770
17771         PR c/48742
17772         * c-typeck.c (build_binary_op): Don't wrap arguments if
17773         int_operands is true.
17774
17775 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
17776
17777         PR target/48767
17778         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
17779         targetm.calls.must_pass_in_stack for void type.
17780
17781 2011-04-26  Jan Hubicka  <jh@suse.cz>
17782
17783         * cgraphbuild.c (build_cgraph_edges): Update call
17784         of cgraph_create_edge and cgraph_create_indirect_edge.
17785         * cgraph.c (cgraph_create_edge_including_clones,
17786         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
17787         cgraph_update_edges_for_call_stmt_node): Do not take nest
17788         argument; do not initialize call_stmt_size/time.
17789         (dump_cgraph_node): Do not dump nest.
17790         (cgraph_clone_edge): Do not take loop_nest argument;
17791         do not propagate it; do not clone call_stmt_size/time.
17792         (cgraph_clone_node): Likewise.
17793         (cgraph_create_virtual_clone): Update.
17794         * cgraph.h (struct cgraph_edge): Remove
17795         call_stmt_size/call_stmt_time/loop_nest.
17796         (cgraph_create_edge, cgraph_create_indirect_edge,
17797         cgraph_create_edge_including_clones, cgraph_clone_node): Update
17798         prototype.
17799         * tree-emutls.c (gen_emutls_addr): Update.
17800         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
17801         loop_nest; handle indirect calls, too.
17802         (clone_inlined_nodes): Do not care about updating inline summaries.
17803         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
17804         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
17805         stream call_stmt_size/call_stmt_time/loop_nest.
17806         * ipa-inline.c (edge_badness): Update.
17807         (ipa_inline): dump summaries after inlining.
17808         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
17809         New.
17810         (inline_edge_summary): New function.
17811         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
17812         (inline_edge_removal_hook): Handle edge summaries.
17813         (inline_edge_duplication_hook): New hook.
17814         (inline_summary_alloc): Alloc hooks.
17815         (initialize_growth_caches): Do not register removal hooks.
17816         (free_growth_caches); Do not free removal hook.
17817         (dump_inline_edge_summary): New function.
17818         (dump_inline_summary): Use it.
17819         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
17820         (inline_update_callee_summaries): New function.
17821         (inline_merge_summary): Use it.
17822         (do_estimate_edge_time, do_estimate_edge_growth): Update.
17823         (read_inline_edge_summary): New function.
17824         (inline_read_section): Use it.
17825         (write_inline_edge_summary): New function.
17826         (inline_write_summary): Use it.
17827         (inline_free_summary): Free edge new holders.
17828         * tree-inline.c (copy_bb): Update.
17829
17830 2011-04-26  Jason Merrill  <jason@redhat.com>
17831
17832         * tree-eh.c (lower_try_finally_switch): Create the label along with
17833         the CASE_LABEL_EXPR.
17834
17835 2011-04-26  David S. Miller  <davem@davemloft.net>
17836             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17837
17838         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
17839         * configure: Regenerate.
17840
17841 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
17842
17843         PR target/48258
17844         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
17845         reduction.
17846         (VEC_reduc): New code iterator and splitters for vector reduction.
17847         (VEC_reduc_name): Ditto.
17848         (VEC_reduc_rtx): Ditto.
17849         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
17850         (reduc_<VEC_reduc_name>_v4sf): Ditto.
17851
17852         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
17853         support for extracting SF on VSX.
17854
17855         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
17856         generating xscvspdp.
17857         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
17858         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
17859         double add, minimum, maximum vector reduction.
17860         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
17861         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
17862         optimize double vector reduction.
17863         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
17864
17865 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
17866
17867         * config/fr30/fr30.h (inhibit_libc): Don't define.
17868         * config/m32r/m32r-protos.h: Correct comment.
17869         * config/v850/v850.h (GHS_default_section_names,
17870         GHS_current_section_names): Use tree, not union tree_node *.
17871
17872 2011-04-26  Xinliang David Li  <davidxl@google.com>
17873
17874         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
17875         * c-family/c-opts.c (c_common_handle_option): Set
17876         warn_maybe_uninitialized.
17877         * opts.c (common_handle_option): Ditto.
17878         * common.opt:  New option.
17879         * tree-ssa.c (warn_uninit): Add one more parameter.
17880         (warn_uninitialized_var): Pass warning code.
17881         * tree-flow.h: Interface change.
17882
17883 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17884
17885         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
17886         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
17887         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
17888
17889 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17890
17891         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
17892         * config/mips/mips.opt (mmips-tfile): Remove.
17893
17894         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
17895         mips-tdump reference to ...
17896         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
17897         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
17898         reference by Tru64 UNIX.
17899
17900 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
17901
17902         PR debug/48768
17903         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
17904         is error_mark_node, set value to NULL.
17905
17906         PR tree-optimization/48734
17907         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
17908         if return value from maybe_fold_*_comparsions isn't something
17909         the code is prepared to handle.
17910
17911 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
17912
17913         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
17914         mode check.
17915         (ext_QIreg_nomode_operands): Remove.
17916         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
17917         (*andsi_1): Ditto.
17918         (*andhi_1): Ditto.
17919
17920 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
17921
17922         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
17923
17924 2011-04-26  Richard Guenther  <rguenther@suse.de>
17925
17926         * c-typeck.c (build_unary_op): Do not expand array-refs via
17927         pointer arithmetic.  Only adjust qualifiers for function types.
17928
17929 2011-04-26  Richard Guenther  <rguenther@suse.de>
17930
17931         PR middle-end/48694
17932         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
17933         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
17934         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
17935         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
17936
17937 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
17938
17939         * doc/extend.texi: Document __underlying_type.
17940
17941 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
17942
17943         * config/rs6000/titan.md (automata_option "progress"): Remove.
17944
17945 2011-04-25  Jeff Law  <law@redhat.com>
17946
17947         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
17948
17949 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
17950
17951         * system.h (ENUM_BITFIELD): Remove.
17952
17953 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
17954             Eric Botcazou  <ebotcazou@adacore.com>
17955
17956         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
17957         for STORE_FLAG_VALUE==-1 case.
17958
17959 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
17960
17961         PR target/43804
17962         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
17963         LEGITIMATE_PIC_OPERAND_P.
17964
17965 2011-04-24  Jan Hubicka  <jh@suse.cz>
17966
17967         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
17968         WPA hack.
17969         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
17970         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
17971         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
17972         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
17973         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
17974         Sanity check predicate length.
17975         (remap_predicate): Likewise; sanity check jump functions.
17976         (inline_read_section, inline_write_summary): Sanity check
17977         predicate length.
17978
17979 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
17980
17981         PR other/48748
17982         * doc/extend.texi (Type Traits): Document __is_standard_layout,
17983         __is_literal_type, and __is_trivial; update throughout about
17984         possibly cv-qualified void types.
17985
17986 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
17987
17988         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
17989         testsuite and make it version agnostic.
17990
17991 2011-04-22  Jan Hubicka  <jh@suse.cz>
17992
17993         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
17994
17995 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
17996
17997         PR c/48685
17998         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
17999         to VOID_TYPE even around MODIFY_EXPR.
18000
18001 2011-04-22  Mike Stump  <mikestump@comcast.net>
18002
18003         * gensupport.c (read_md_rtx): Fix typo in comment.
18004         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
18005         comment.
18006
18007 2011-04-22  Jan Hubicka  <jh@suse.cz>
18008
18009         * gengtype.c (open_base_files): Add ipa-inline.h include.
18010         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
18011         ipa-prop.c; update all uses.
18012         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
18013         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
18014         merge summary of inlined function into former caller.
18015         * ipa-inline.c (max_benefit): Remove.
18016         (edge_badness): Compensate for removal of benefits.
18017         (update_caller_keys): Use
18018         reset_node_growth_cache/reset_edge_growth_cache.
18019         (update_callee_keys): Likewise.
18020         (update_all_callee_keys): Likewise.
18021         (inline_small_functions): Do not collect max_benefit; do not reset
18022         estimated_growth; call free_growth_caches and initialize_growth_caches.
18023         * ipa-inline.h (struct condition, type clause_t, struct predicate,
18024         struct size_time_entry): New structures.
18025         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
18026         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
18027         and estimated_growth.
18028         (edge_growth_cache_entry): New structure.
18029         (node_growth_cache, edge_growth_cache): New global vars.
18030         (estimate_growth): Turn into inline.
18031         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
18032         initialize_growth_caches, free_growth_caches): Declare.
18033         (estimate_edge_growth): Rewrite.
18034         (estimate_edge_time): Implement as inline cache lookup.
18035         (reset_node_growth_cache, reset_edge_growth_cache): New inline
18036         functions.
18037         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
18038         (NUM_CONDITIONS): New constant.
18039         (predicate_conditions): New enum.
18040         (IS_NOT_CONSTANT): New constant.
18041         (edge_removal_hook_holder): New var.
18042         (node_growth_cache, edge_growth_cache): New global vars.
18043         (true_predicate, single_cond_predicate, false_predicate,
18044         not_inlined_predicate, add_condition, add_clause, and_predicates,
18045         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
18046         dump_clause, dump_predicate, account_size_time,
18047         evaulate_conditions_for_edge): New functions.
18048         (inline_summary_alloc): Move to heap.
18049         (inline_node_removal_hook): Clear condition and entry vectors.
18050         (inline_edge_removal_hook): New function.
18051         (initialize_growth_caches, free_growth_caches): New function.
18052         (dump_inline_summary): Update.
18053         (edge_execution_predicate): New function.
18054         (will_be_nonconstant_predicate): New function.
18055         (estimate_function_body_sizes): Compute BB and constantness predicates.
18056         (compute_inline_parameters): Do not clear estimated_growth.
18057         (estimate_edge_size_and_time): New function.
18058         (estimate_calls_size_and_time): New function.
18059         (estimate_callee_size_and_time): New function.
18060         (remap_predicate): New function.
18061         (inline_merge_summary): New function.
18062         (do_estimate_edge_time): New function based on...
18063         (estimate_edge_time): ... this one.
18064         (do_estimate_edge_growth): New function.
18065         (do_estimate_growth): New function based on....
18066         (estimate_growth): ... this one.
18067         (inline_analyze_function): Analyze after deciding on jump functions.
18068         (inline_read_section): New function.
18069         (inline_read_summary): Use it.
18070         (inline_write_summary): Write all the new data.
18071         * ipa-prop.c (ipa_get_param_decl_index): Export.
18072         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
18073         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
18074         Declare.
18075         (ipa_get_lattice): Move here from ipa-cp.c
18076         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
18077         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
18078         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
18079         cgraph_edge_inlinable_p): Remove.
18080         * cgraphunit.c: Include ipainline.h
18081         (cgraph_process_new_functions): Update call of
18082         compute_inline_parameters.
18083
18084 2011-04-22  Richard Guenther  <rguenther@suse.de>
18085
18086         * tree.c (build_int_cst): Properly create canonicalized integer
18087         constants.
18088         (build_int_cst_type): Remove scary comments.
18089
18090 2011-04-22  Xinliang David Li  <davidxl@google.com>
18091
18092         * toplev.c (process_options): Enable -Werror=coverage-mismatch
18093         by default when -Wno-error is not specified.
18094         * opts-global.c (decode_options): Remove call to
18095         control_warning_options.
18096
18097 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
18098
18099         PR tree-optimization/48717
18100         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
18101         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
18102
18103 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
18104
18105         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
18106         definition where used.
18107
18108 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
18109
18110         PR c/48716
18111         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
18112         TREE_STATIC variables declared inside of some OpenMP construct.
18113
18114 2011-04-22  Martin Jambor  <mjambor@suse.cz>
18115
18116         PR middle-end/48585
18117         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
18118
18119 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
18120
18121         PR c/36750
18122         * c-typeck.c (pop_init_level): Do not warn about initializing
18123         with ` = {0}'.
18124
18125 2011-04-22  Alan Modra  <amodra@gmail.com>
18126
18127         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
18128         when returning call_cookie.
18129         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
18130         pointers, to functions with no more vector args than the current
18131         function, and some non-local calls for ABI_V4.
18132         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
18133         sibcall_nonlocal_aix64): Combine to ..
18134         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
18135         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
18136         (sibcall_value_nonlocal_aix<mode>): ..likewise.
18137         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
18138         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
18139         operand.
18140         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
18141         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
18142         sibcall_value_symbolic_64): Delete.
18143
18144 2011-04-21  Xinliang David Li  <davidxl@google.com>
18145
18146         * cgraph.h: Remove pid.
18147         * cgraph.c: Remove pid.
18148         * value-prof.c (init_node_map): New function.
18149         (del_node_map): New function.
18150         (find_func_by_funcdef_no): New function.
18151         (gimple_ic_transform): Call new function.
18152         * cgraphunit.c (cgraph_finalize_function): Remove pid.
18153         * function.c (get_last_funcdef_no): New function.
18154         * function.h (get_last_funcdef_no): New function.
18155         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
18156         to libgcov function.
18157         (tree-profiling): Call node map init and delete function.
18158
18159 2011-04-21  Ian Lance Taylor  <iant@google.com>
18160
18161         * godump.c (go_format_type): Use exported Go name for anonymous
18162         field name.
18163
18164 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
18165
18166         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
18167         Call builtin_function_type_list instead of builtin_function_type.
18168         (UNARY, BINARY, TRINARY, QUAD): Likewise.
18169
18170 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
18171
18172         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
18173         build_function_type_list instead of build_function_type.
18174         Delete variable `endlink'.
18175
18176 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
18177
18178         * config/s390/s390.c (s390_init_builtins): Call
18179         build_function_type_list instead of build_function_type.
18180
18181 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
18182
18183         * config/ia64/ia64.c (ia64_init_builtins): Call
18184         build_function_type_list instead of builtin_function_type.
18185
18186 2011-04-21  Easwaran Raman  <eraman@google.com>
18187
18188         * cfgexpand.c (stack_var): Remove OFFSET...
18189         (add_stack_var): ...and its reference here...
18190         (expand_stack_vars): ...and here.
18191         (stack_var_cmp): Sort by descending order of size.
18192         (partition_stack_vars): Change heuristic.
18193         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
18194         (dump_stack_var_partition): Add newline after each partition.
18195
18196 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
18197             Jeff Law  <law@redhat.com>
18198
18199         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
18200         * gengtype.c (matching_file_name_substitute): Likewise.
18201
18202 2011-04-21  Richard Guenther  <rguenther@suse.de>
18203
18204         PR lto/48703
18205         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
18206
18207 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
18208
18209         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
18210
18211 2011-04-21  Richard Guenther  <rguenther@suse.de>
18212
18213         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
18214         file name.
18215
18216 2011-04-21  Richard Guenther  <rguenther@suse.de>
18217
18218         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
18219         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
18220         Use DECL_P, not SSA_VAR_P.
18221         (ptr_derefs_may_alias_p): Likewise.
18222         (ptr_deref_may_alias_ref_p_1): Likewise.
18223         (decl_refs_may_alias_p): Likewise.
18224         (refs_may_alias_p_1): Likewise.
18225         (ref_maybe_used_by_call_p_1): Likewise.
18226         (call_may_clobber_ref_p_1): Likewise.
18227         (indirect_ref_may_alias_decl_p): Assume indirect refrences
18228         are either MEM_REF or TARGET_MEM_REF.
18229         (indirect_refs_may_alias_p): Likewise.
18230         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
18231         for MEM_EXPR of indirect calls.
18232
18233 2011-04-21  Tristan Gingold  <gingold@adacore.com>
18234
18235         * vmsdbgout.c (write_srccorr): Compute file length from the string.
18236         (dst_file_info_struct): Remove flen field.
18237         (lookup_filename): Remove code that set flen field.
18238
18239 2011-04-21  Tristan Gingold  <gingold@adacore.com>
18240
18241         * config/ia64/ia64.c (ia64_start_function): Add a guard.
18242
18243 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
18244
18245         PR target/48708
18246         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
18247         vec_extract and vec_concat for non-SSE4_1 targets.
18248
18249 2011-04-21  Richard Guenther  <rguenther@suse.de>
18250
18251         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
18252         return statements.
18253
18254 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
18255
18256         * config/i386/cygming.h (union tree_node, TREE): Don't define or
18257         undefine.
18258         (FILE): Don't undefine.
18259
18260 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
18261
18262         * config/alpha/alpha.c (struct machine_function): Use rtx, not
18263         struct rtx_def *.
18264         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
18265         struct rtx_def *.
18266         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
18267         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
18268         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
18269         rtx_def *.
18270         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
18271         definitions where used.
18272         * config/microblaze/microblaze.h (struct microblaze_args): Use
18273         rtx, not struct rtx_def *.
18274         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
18275         rtx_def *.
18276         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
18277         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
18278         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
18279         not struct rtx_def *.
18280         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
18281         struct rtx_def *.
18282         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
18283         rtx_def *.
18284         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
18285
18286 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
18287
18288         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
18289         operand_equal_p to compare DR_BASE_ADDRESSes.
18290         (vect_check_interleaving): Likewise.
18291
18292 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
18293
18294         PR target/46329
18295         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
18296         for all Neon struct constants.
18297
18298 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
18299
18300         * target.def (legitimate_constant_p): New hook.
18301         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
18302         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
18303         * doc/tm.texi: Regenerate.
18304         * hooks.h (hook_bool_mode_rtx_true): Declare.
18305         * hooks.c (hook_bool_mode_rtx_true): Define.
18306         * system.h (LEGITIMATE_CONSTANT_P): Poison.
18307         * calls.c (precompute_register_parameters): Replace uses of
18308         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
18309         (emit_library_call_value_1): Likewise.
18310         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
18311         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
18312         * ira-costs.c (scan_one_insn): Likewise.
18313         * recog.c (general_operand, immediate_operand): Likewise.
18314         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
18315         * reload1.c (init_eliminable_invariants): Likewise.
18316
18317         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
18318         mode argument.
18319         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
18320         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
18321         argument.
18322         (TARGET_LEGITIMATE_CONSTANT_P): Define.
18323         * config/alpha/predicates.md (input_operand): Update call to
18324         alpha_legitimate_constant_p.
18325
18326         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
18327         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
18328         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
18329         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18330         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
18331         (arm_legitimate_constant_p): New functions.
18332         (arm_cannot_force_const_mem): Make static.
18333
18334         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
18335
18336         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
18337         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
18338         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
18339         instead of bfin_legitimate_constant_p.
18340         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
18341         (TARGET_LEGITIMATE_CONSTANT_P): Define.
18342
18343         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
18344
18345         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
18346
18347         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
18348         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
18349         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18350         (frv_legitimate_constant_p): Make static.  Add a mode argument.
18351
18352         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
18353         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
18354         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
18355
18356         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
18357         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
18358         * config/i386/i386.c (legitimate_constant_p): Rename to...
18359         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
18360         argument.
18361         (ix86_cannot_force_const_mem): Update accordingly.
18362         (ix86_legitimate_address_p): Likewise.
18363         (TARGET_LEGITIMATE_CONSTANT_P): Define.
18364         * config/i386/i386.md: Update commentary.
18365
18366         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
18367         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
18368         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18369         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
18370
18371         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
18372
18373         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
18374         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
18375         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18376         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
18377
18378         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
18379         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
18380         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
18381
18382         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
18383         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18384         (m32r_legitimate_constant_p): New function.
18385
18386         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
18387         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
18388         LEGITIMATE_CONSTANT_P.
18389         (LEGITIMATE_CONSTANT_P): Delete.
18390         * config/m68k/m68k.c (m68k_expand_prologue): Call
18391         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
18392         (m68k_legitimate_constant_p): New function.
18393         * config/m68k/m68k.md: Update comments.
18394
18395         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
18396         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18397         (mcore_legitimate_constant_p): New function.
18398
18399         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
18400         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
18401         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
18402         Add a mode argument.
18403         (mep_legitimate_address): Update accordingly.
18404         (TARGET_LEGITIMATE_CONSTANT_P): Define.
18405
18406         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
18407         Delete.
18408         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
18409         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
18410         static.  Check OP's mode for VOIDmode.
18411         (microblaze_legitimate_constant_p): New function.
18412         (TARGET_LEGITIMATE_CONSTANT_P): Define.
18413
18414         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
18415         * config/mips/mips.c (mips_legitimate_constant_p): New function.
18416         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
18417         (TARGET_LEGITIMATE_CONSTANT_P): Define.
18418         * config/mips/predicates.md: Update comments.
18419
18420         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
18421         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
18422         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18423         (mmix_legitimate_constant_p): Make static, return a bool, and take
18424         a mode argument.
18425         (mmix_print_operand_address): Update accordingly.
18426
18427         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
18428         Delete.
18429         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
18430         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
18431         static.  Add a mode argument.
18432         (TARGET_LEGITIMATE_CONSTANT_P): Define.
18433
18434         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
18435
18436         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
18437         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18438         (pa_legitimate_constant_p): New function.
18439
18440         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
18441
18442         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
18443         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18444         (pdp11_legitimate_constant_p): New function.
18445
18446         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
18447         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18448         (rs6000_legitimate_constant_p): New function.
18449
18450         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
18451         (rx_legitimate_constant_p): ...this.
18452         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
18453         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
18454         (rx_legitimate_constant_p): ...this.
18455         (TARGET_LEGITIMATE_CONSTANT_P): Define.
18456         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
18457
18458         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
18459         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
18460         * config/s390/s390.c (legitimate_constant_p): Rename to...
18461         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
18462         and add a mode argument.
18463         (TARGET_LEGITIMATE_CONSTANT_P): Define.
18464
18465         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
18466
18467         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
18468         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18469         (sh_legitimate_constant_p): New function.
18470
18471         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
18472         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
18473         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18474         (legitimate_constant_p): Rename to...
18475         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
18476         argument.
18477         (constant_address_p): Update accordingly.
18478
18479         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
18480         argument and return a bool.
18481         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
18482         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18483         (spu_legitimate_constant_p): Add a mode argument and return a bool.
18484         (spu_rtx_costs): Update accordingly.
18485         * config/spu/predicates.md (vec_imm_operand): Likewise.
18486
18487         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
18488
18489         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
18490         * config/v850/v850.c (v850_legitimate_constant_p): New function.
18491         (TARGET_LEGITIMATE_CONSTANT_P): Define.
18492
18493         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
18494         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
18495         * config/vax/vax.c (legitimate_constant_p): Likewise.
18496
18497         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
18498         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18499         (xtensa_legitimate_constant_p): New function.
18500
18501 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
18502
18503         * target.def (cannot_force_const_mem): Add a mode argument.
18504         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
18505         * doc/tm.texi: Regenerate.
18506         * hooks.h (hook_bool_mode_rtx_false): Declare.
18507         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
18508         (hook_bool_mode_const_rtx_true): Likewise.
18509         (hook_bool_mode_rtx_false): New function.
18510         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
18511         to be non-VOID.  Update call to cannot_force_const_mem.
18512         (find_reloads): Update accordingly.
18513         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
18514         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
18515         argument.
18516         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
18517         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
18518         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
18519         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
18520         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
18521         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
18522         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
18523         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
18524         (m68k_cannot_force_const_mem): ...this new function.
18525         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
18526         argument.
18527         (mips_const_insns, mips_legitimize_const_move): Update calls.
18528         (mips_secondary_reload_class): Likewise.
18529         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
18530         (pa_cannot_force_const_mem): ...this new function.
18531         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
18532         (rs6000_cannot_force_const_mem): ...this new function.
18533         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
18534         argument.
18535         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
18536         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
18537         to...
18538         (xtensa_cannot_force_const_mem): ...this new function.
18539
18540 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
18541
18542         * config/mips/mips.c (mips16_build_function_stub): Call
18543         build_function_type_list instead of build_function_type.
18544         (mips16_build_call_stub): Likewise.
18545
18546 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
18547
18548         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
18549         instead of build_function_type.
18550
18551 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
18552
18553         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
18554         instead of build_function_type.
18555
18556 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
18557
18558         PR target/48678
18559         * config/i386/i386.md (insv): Change operand 0 constraint to
18560         "register_operand".  Change operand 1 and 2 constraint to
18561         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
18562         * config/i386/sse.md (sse4_1_pinsrb): Export.
18563         (sse2_pinsrw): Ditto.
18564         (sse4_1_pinsrd): Ditto.
18565         (sse4_1_pinsrq): Ditto.
18566         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
18567         * config/i386/i386.c (ix86_expand_pinsr): New.
18568
18569 2011-04-20  Easwaran Raman  <eraman@google.com>
18570
18571         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
18572         containing union type only with -fstrict-aliasing.
18573
18574 2011-04-20  Jim Meyering  <meyering@redhat.com>
18575
18576         Remove useless if-before-free tests.
18577         * calls.c (expand_call, save_area): Likewise.
18578         * cfgcleanup.c (try_forward_edges): Likewise.
18579         * collect2.c (collect_execute): Likewise.
18580         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
18581         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
18582         * coverage.c (coverage_checksum_string): Likewise.
18583         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
18584         * cselib.c (cselib_init): Likewise.
18585         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
18586         (df_set_clean_cfg): Likewise.
18587         * function.c (free_after_compilation): Likewise.
18588         * gcc.c (do_spec_1, main): Likewise.
18589         * gcov.c (create_file_names): Likewise.
18590         * gensupport.c (identify_predicable_attribute): Likewise.
18591         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
18592         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
18593         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
18594         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
18595         * ipa-pure-const.c (local_pure_const): Likewise.
18596         * ipa-reference.c (propagate): Likewise.
18597         * ira-costs.c (free_ira_costs): Likewise.
18598         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
18599         * matrix-reorg.c (mat_free): Likewise.
18600         * prefix.c (get_key_value): Likewise.
18601         * profile.c (compute_value_histograms): Likewise.
18602         * reload1.c (free_reg_equiv): Likewise.
18603         * sched-deps.c (free_deps): Likewise.
18604         * sel-sched-ir.c (fence_clear): Likewise.
18605         * sese.c (set_rename, if_region_set_false_region): Likewise.
18606         * tree-data-ref.c (free_rdg): Likewise.
18607         * tree-eh.c (lower_try_finally): Likewise.
18608         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
18609         * tree-ssa-live.c (delete_var_map): Likewise.
18610         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
18611         * tree-ssa-pre.c (phi_trans_add): Likewise.
18612
18613 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
18614
18615         PR tree-optimization/48611
18616         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
18617         beyond ERT_MUST_NOT_THROW region.
18618
18619 2011-04-20  Catherine Moore  <clm@codesourcery.com>
18620
18621         * config/mips/mips.opt (mfix-24k): New.
18622         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
18623         * config/mips/mips.md (length): Increase by 4 for stores if
18624         fixing 24K errata.
18625         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
18626         all noreorder if fixing 24K errata.
18627         * doc/invoke.texi: Document mfix-24k.
18628
18629 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
18630
18631         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
18632         quad-word modes, reduce to 9-bit index range when above 1016 limit.
18633
18634 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
18635
18636         * config/arm/arm.c (arm_gen_constant): Move movw support ....
18637         (const_ok_for_op): ... to here.
18638
18639 2011-04-20  Kai Tietz  <ktietz@redhat.com>
18640
18641         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
18642         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
18643
18644 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
18645
18646         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
18647
18648 2011-04-20  Richard Guenther  <rguenther@suse.de>
18649
18650         PR tree-optimization/47892
18651         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
18652         are if-convertible.
18653
18654 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
18655
18656         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
18657
18658 2011-04-20  Tristan Gingold  <gingold@adacore.com>
18659
18660         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
18661
18662 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
18663
18664         PR target/18145
18665
18666         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
18667         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
18668         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
18669         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
18670         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
18671
18672         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
18673         New prototype.
18674
18675         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
18676         (avr_asm_named_section, avr_asm_output_aligned_common,
18677         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
18678         New functions to update...
18679         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
18680         (avr_asm_init_sections): Overwrite section callbacks for
18681         data_section, bss_section.
18682         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
18683         from here to...
18684         (avr_file_end): ...here.
18685
18686 2011-04-20  Richard Guenther  <rguenther@suse.de>
18687
18688         PR middle-end/48695
18689         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
18690         objects and types here.  Adjust for their offset before comparing.
18691
18692 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
18693
18694         * tree-vect-stmts.c (vectorizable_store): Only chain one related
18695         statement per copy.
18696
18697 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
18698
18699         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
18700         (GIMPLE_H): Include $(INTERNAL_FN_H).
18701         (OBJS-common): Add internal-fn.o.
18702         (internal-fn.o): New rule.
18703         * internal-fn.def: New file.
18704         * internal-fn.h: Likewise.
18705         * internal-fn.c: Likewise.
18706         * gimple.h: Include internal-fn.h.
18707         (GF_CALL_INTERNAL): New gf_mask.
18708         (gimple_statement_call): Put fntype into a union with a new
18709         internal_fn field.
18710         (gimple_build_call_internal): Declare.
18711         (gimple_build_call_internal_vec): Likewise.
18712         (gimple_call_same_target_p): Likewise.
18713         (gimple_call_internal_p): New function.
18714         (gimple_call_internal_fn): Likewise.
18715         (gimple_call_fntype): Return null for internal calls.
18716         (gimple_call_set_fntype): Assert that the function is not internal.
18717         (gimple_call_set_fn): Likewise.
18718         (gimple_call_set_fndecl): Likewise.
18719         (gimple_call_set_internal_fn): New function.
18720         (gimple_call_addr_fndecl): Handle null functions.
18721         (gimple_call_return_type): Likewise null types.
18722         * gimple.c (gimple_build_call_internal_1): New function.
18723         (gimple_build_call_internal): Likewise.
18724         (gimple_build_call_internal_vec): Likewise.
18725         (gimple_call_same_target_p): Likewise.
18726         (gimple_call_flags): Handle calls to internal functions.
18727         (gimple_call_fnspec): New function.
18728         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
18729         (gimple_has_side_effects): Handle null functions.
18730         (gimple_rhs_has_side_effects): Likewise.
18731         (gimple_call_copy_skip_args): Handle calls to internal functions.
18732         * cfgexpand.c (expand_call_stmt): Likewise.
18733         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
18734         * gimple-fold.c (gimple_fold_call): Handle null functions.
18735         (gimple_fold_stmt_to_constant_1): Don't fold
18736         calls to internal functions.
18737         * gimple-low.c (gimple_check_call_args): Handle calls to internal
18738         functions.
18739         * gimple-pretty-print.c (dump_gimple_call): Likewise.
18740         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
18741         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
18742         (do_warn_unused_result): Likewise.
18743         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
18744         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
18745         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
18746         the target of a call.
18747         (initialize_hash_element): Update accordingly.
18748         (hashable_expr_equal_p): Use gimple_call_same_target_p.
18749         (iterative_hash_hashable_expr): Handle calls to internal functions.
18750         (print_expr_hash_elt): Likewise.
18751         * tree-ssa-pre.c (can_value_number_call): Likewise.
18752         (eliminate): Handle null functions.
18753         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
18754         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
18755         (find_func_aliases): Likewise.
18756         * value-prof.c (gimple_ic_transform): Likewise.
18757         (gimple_indirect_call_to_profile): Likewise.
18758         * lto-streamer-in.c (input_gimple_stmt): Likewise.
18759         * lto-streamer-out.c (output_gimple_stmt): Likewise.
18760
18761 2011-04-19  Jan Hubicka  <jh@suse.cz>
18762
18763         * ipa-inline-transform.c (save_inline_function_body): Add comments.
18764         * ipa-inline.c (inline_small_functions): Compute summaries first,
18765         populate heap later.
18766
18767 2011-04-19  Jan Hubicka  <jh@suse.cz>
18768
18769         * cgraph.h (save_inline_function_body): Remove.
18770         * ipa-inline-transform.c: New file, broke out of...
18771         * ipa-inline.c: ... this one; Update toplevel comment.
18772         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
18773         make global.
18774         (update_noncloned_frequencies): Move to ipa-inline-transform.c
18775         (cgraph_mark_inline_edge): Rename to inline_call; move to
18776         ipa-inline-transform.c.
18777         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
18778         move to ipa-inline-transform.c
18779         (recursive_inlining, inline_small_functions, flatten_function,
18780         ipa_inline, inline_always_inline_functions,
18781         early_inline_small_functions): Update.
18782         (inline_transform): Move to ipa-inline-transform.c.
18783         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
18784         Declare.
18785         * Makefile.in (ipa-inline-transform.o): New file.
18786         * cgraphunit.c (save_inline_function_body): Move to
18787         ipa-inline-transform.c
18788
18789 2011-04-19  DJ Delorie  <dj@redhat.com>
18790
18791         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
18792         registers if we already know there aren't any.
18793         (m32c_emit_epilogue): Don't emit a barrier here.
18794         (m32c_emit_eh_epilogue): Likewise.
18795         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
18796         operands at expand time.
18797         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
18798         int" wchar type.
18799         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
18800         duplicates.  Provide aliases instead.
18801         * config/m32c/prologue.md (eh_return): Emit a barrier here.
18802         (eh_epilogue): Add a "(return)" here as a hint to other parts of
18803         the compiler.
18804
18805 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
18806
18807         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
18808         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
18809         (general_or_i64_p, sparc_register_move_cost): New function.
18810
18811 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18812
18813         * doc/install.texi (Configuration, --enable-threads): Remove mach.
18814         Add lynx, mipssde.  Sort table.
18815
18816 2011-04-19  Xinliang David Li  <davidxl@google.com>
18817
18818         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
18819         not negative.
18820
18821 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
18822
18823         PR target/48678
18824         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
18825         is a SUBREG with non-MODE_INT mode inside of it.
18826
18827 2011-04-19  Martin Jambor  <mjambor@suse.cz>
18828
18829         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
18830         also according to actual contants.
18831         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
18832         (gimple_fold_call): Use it.
18833         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
18834
18835 2011-04-19  Martin Jambor  <mjambor@suse.cz>
18836
18837         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
18838         non-pointer assignments.
18839
18840 2011-04-19  Martin Jambor  <mjambor@suse.cz>
18841
18842         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
18843         account anc_offset and otr_type from the indirect edge info.
18844         * ipa-prop.c (get_ancestor_addr_info): New function.
18845         (compute_complex_ancestor_jump_func): Assignment analysis moved to
18846         get_ancestor_addr_info, call it.
18847         (ipa_note_param_call): Do not initialize information about polymorphic
18848         calls, return the indirect call graph edge.  Remove the last
18849         parameter, adjust all callers.
18850         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
18851         parameters.  Initialize polymorphic information in the indirect edge.
18852
18853 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
18854
18855         PR lto/48148
18856         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
18857         the types if they have different enumeration identifiers.
18858
18859 2011-04-19  Jan Hubicka  <jh@suse.cz>
18860
18861         * cgraph.h (cgraph_optimize_for_size_p): Declare.
18862         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
18863         * predict.c (cgraph_optimize_for_size_p): Break out from ...
18864         (optimize_function_for_size_p) ... here.
18865
18866 2011-04-19  Richard Guenther  <rguenther@suse.de>
18867
18868         PR lto/48207
18869         * tree.c (free_lang_data): Do not reset the decl-assembler-name
18870         langhook.
18871
18872 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
18873
18874         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
18875         if DECL_NO_INLINE_WARNING_P is set on the function.
18876
18877 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
18878
18879         PR fortran/47976
18880         * reload1.c (inc_for_reload): Return void. All callers changed.
18881         (emit_input_reload_insns): Don't try to delete previous output
18882         reloads to a register, or record spill_reg_store for autoincs.
18883
18884 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
18885
18886         * gengtype.h: Updated copyright year.
18887         (struct input_file_st): Add inpisplugin field.
18888         (type_fileloc): New function.
18889         * gengtype.c
18890         (write_typed_struct_alloc_def): Add gcc_assert.
18891         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
18892         (write_typed_alloc_defns): Don't output for plugin files.
18893         (input_file_by_name): Clear inpisplugin field.
18894         (main): Set inpisplugin field for plugin files.
18895
18896 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
18897
18898         * gengtype-state.c (string_eq): New.
18899         (read_state): Use string_eq instead of strcmp when creating the
18900         state_ident_tab.
18901
18902 2011-04-19  Wei Guozhi  <carrot@google.com>
18903
18904         PR target/47855
18905         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
18906         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
18907         linkage.
18908         * config/arm/constraints.md (Uu): New constraint.
18909         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
18910
18911 2011-04-19  Tristan Gingold  <gingold@adacore.com>
18912
18913         * config.gcc (-*-*-*vms): Added.
18914         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
18915         definitions moved.
18916         * config/vms/vms-ld.c: New file.
18917         * config/vms/vms-ar.c: New file.
18918         * config/vms/t-vmsnative: New file.
18919
18920 2011-04-18  Xinliang David Li  <davidxl@google.com>
18921
18922         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
18923
18924 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
18925
18926         PR middle-end/48661
18927         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
18928         if TREE_TYPE (v) is non-NULL.
18929
18930         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
18931         gimple_get_virt_mehtod_for_binfo.
18932         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
18933         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
18934         callers.
18935         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
18936
18937 2011-04-18  Michael Matz  <matz@suse.de>
18938             Steve Ellcey  <sje@cup.hp.com>
18939
18940         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
18941         use its mode as source mode if it isn't VOIDmode.
18942
18943 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
18944
18945         * doc/passes.texi: Fill crossref nodes.
18946
18947 2011-04-18  Jim Meyering  <meyering@redhat.com>
18948
18949         Fix doubled-word typos in comments and strings
18950         * config/alpha/vms-unwind.h: s/for for/for/
18951         * config/arm/unwind-arm.h: Likewise.
18952         * config/microblaze/microblaze.c: Likewise.
18953         * config/sh/constraints.md: s/in in/in/
18954         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
18955
18956 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
18957
18958         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
18959         (AVX_FLOAT_MODE_P): Ditto.
18960         (AVX128_VEC_FLOAT_MODE_P): Ditto.
18961         (AVX256_VEC_FLOAT_MODE_P): Ditto.
18962         (AVX_VEC_FLOAT_MODE_P): Ditto.
18963         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
18964         (UNSPEC_MASKSTORE): Ditto.
18965         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
18966         Merge from <sse>_movmsk<ssemodesuffix> and
18967         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
18968         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
18969         iterator.
18970         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
18971         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
18972         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
18973
18974 2011-04-18  Jan Hubicka  <jh@suse.cz>
18975
18976         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
18977
18978         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
18979         (want_inline_function_called_once_p): Break out the logic from
18980         ipa_inline.
18981         (edge_badness): Ensure that profile is not misupdated.
18982         (lookup_recursive_calls): Prioritize by call frequencies.
18983         (inline_small_functions): Move program size estimates here;
18984         actually process whole queue even when unit growth has been
18985         met. (to properly compute inline_failed reasons and for the
18986         case unit size decrease.) Revisit comments on recursive inlining.
18987         (ipa_inline): Remove unit summary code; first inline hot calls
18988         of functions called once, cold calls next.
18989         (order, nnodes): Remove unused variables.
18990         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
18991         (GTFILES): Remove ipa-inline.c
18992         * sel-sched.c (fill_insns): Silence uninitialized var warning.
18993
18994 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
18995
18996         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
18997
18998 2011-04-18  Jie Zhang  <jie@codesourcery.com>
18999             Richard Earnshaw  <rearnsha@arm.com>
19000
19001         * arm.c (neon_builtin_type_bits): Remove.
19002         (typedef enum neon_builtin_mode): New.
19003         (T_MAX): Don't define.
19004         (typedef enum neon_builtin_datum): Remove bits, codes[],
19005         num_vars and base_fcode.  Add mode, code and fcode.
19006         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
19007         VAR10): Change accordingly.
19008         (neon_builtin_data[]): Change accordingly
19009         (arm_init_neon_builtins): Change accordingly.
19010         (neon_builtin_compare): Remove.
19011         (locate_neon_builtin_icode): Remove.
19012         (arm_expand_neon_builtin): Change accordingly.
19013
19014         * arm.h (enum arm_builtins): Move to ...
19015         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
19016
19017         * arm.c (arm_builtin_decl): Declare.
19018         (TARGET_BUILTIN_DECL): Define.
19019         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
19020         (arm_builtin_decls[]): New.
19021         (arm_init_neon_builtins): Store builtin declarations in
19022         arm_builtin_decls[].
19023         (arm_init_tls_builtins): Likewise.
19024         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
19025         (arm_builtin_decl): New.
19026
19027 2011-04-18  Richard Guenther  <rguenther@suse.de>
19028
19029         * tree.c (upper_bound_in_type): Build properly canonicalized
19030         INTEGER_CSTs.
19031         (lower_bound_in_type): Likewise.
19032
19033 2011-04-18  Richard Guenther  <rguenther@suse.de>
19034
19035         * gimple.h (gimple_call_addr_fndecl): New function.
19036         (gimple_call_fndecl): Use it.
19037         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
19038         for direct calls.
19039         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
19040         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
19041
19042 2011-04-18  Richard Guenther  <rguenther@suse.de>
19043
19044         PR middle-end/48650
19045         * tree.c (build_string): STRING_CST is now derived from tree_typed.
19046
19047 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
19048
19049         PR lto/48492
19050         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
19051         DECL_IN_CONSTANT_POOL without RTL.
19052
19053 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
19054             Ira Rosen  <ira.rosen@linaro.org>
19055
19056         PR target/48252
19057         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
19058         to match neon_vzip/vuzp/vtrn_internal.
19059         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
19060         outputs explicitly dependent on both inputs.
19061         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
19062
19063 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
19064
19065         PR tree-optimization/48616
19066         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
19067         whether the shift is by scalar or vector based on whether all SLP
19068         scalar stmts have the same rhs.
19069
19070 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
19071
19072         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
19073         memory operands.
19074
19075 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
19076
19077         PR target/43700
19078         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
19079         registers.
19080
19081 2011-04-17  Jan Hubicka  <jh@suse.cz>
19082
19083         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
19084         * cgrpahunit.c (cgraph_finalize_function): Do not set
19085         finalized_by_frontend.
19086         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
19087         finalized_by_frontend.
19088
19089 2011-04-17  Jan Hubicka  <jh@suse.cz>
19090
19091         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
19092         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
19093         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
19094         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
19095         method.
19096         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
19097         gimple-fold.c
19098         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
19099
19100 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
19101
19102         PR lto/48538
19103         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
19104         is non-null before accessing it.
19105         (input_cgraph): Remove trailing spaces.
19106
19107 2011-04-17  Revital Eres  <revital.eres@linaro.org>
19108
19109         * params.def (sms-min-sc): New param flag.
19110         * modulo-sched.c (sms_schedule): Use it.
19111         * doc/invoke.texi (sms-min-sc): Document it.
19112
19113 2011-04-17  Jan Hubicka  <jh@suse.cz>
19114
19115         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
19116         present, also set gimple_call_set_cannot_inline.
19117         * ipa-inline.c: Update toplevel comment.
19118         (MAX_TIME): Remove.
19119         (cgraph_clone_inlined_nodes): Fix linebreaks.
19120         (cgraph_check_inline_limits): Restructure to ...
19121         (caller_growth_limits): ... this one; be more tolerant
19122         on growth in nested inline chains; add explanatory comment;
19123         fix stack accounting thinko introduced by previous patch.
19124         (cgraph_default_inline_p): Remove.
19125         (report_inline_failed_reason): New function.
19126         (can_inline_edge_p): New function.
19127         (can_early_inline_edge_p): New function.
19128         (leaf_node_p): Move upwards in file.
19129         (want_early_inline_function_p): New function.
19130         (want_inline_small_function_p): New function.
19131         (want_inline_self_recursive_call_p): New function.
19132         (cgraph_edge_badness): Rename to ...
19133         (edge_badness) ... this one; fix linebreaks.
19134         (update_edge_key): Update call of edge_baddness; add
19135         detailed dump about queue updates.
19136         (update_caller_keys): Use can_inline_edge_p and
19137         want_inline_small_function_p.
19138         (cgraph_decide_recursive_inlining): Rename to...
19139         (recursive_inlining): Use can_inline_edge_p and
19140         want_inline_self_recursive_call_p; simplify and remove no longer
19141         valid FIXME.
19142         (cgraph_set_inline_failed): Remove.
19143         (add_new_edges_to_heap): Use can_inline_edge_p and
19144         want_inline_small_function_p.
19145         (cgraph_decide_inlining_of_small_functions): Rename to ...
19146         (inline_small_functions): ... this one; cleanup; use
19147         can/want predicates; cleanup debug ouput; work edges till fibheap
19148         is exhausted and do not stop once unit growth is reached; remove
19149         later loop processing remaining edges.
19150         (cgraph_flatten): Rename to ...
19151         (flatten_function): ... this one; use can_inline_edge_p
19152         and can_early_inline_edge_p predicates.
19153         (cgraph_decide_inlining): Rename to ...
19154         (ipa_inline): ... this one; remove unreachable nodes before
19155         inlining functions called once; simplify the pass.
19156         (cgraph_perform_always_inlining): Rename to ...
19157         (inline_always_inline_functions): ... this one; use
19158         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
19159         (cgraph_decide_inlining_incrementally): Rename to ...
19160         (early_inline_small_functions): ... this one; simplify
19161         using new predicates; cleanup; make dumps prettier.
19162         (cgraph_early_inlining): Rename to ...
19163         (early_inliner): newer inline regular functions into always-inlines;
19164         fix updating of call stmt summaries.
19165         (pass_early_inline): Update for new names.
19166         (inline_transform): Fix formating.
19167         (gate_cgraph_decide_inlining): Rename to ...
19168         (pass_ipa_inline): ... this one.
19169         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
19170         * ipa-inline-analysis.c (dump_inline_summary): Update.
19171         (compute_inline_parameters): Do not compute disregard_inline_limits;
19172         look for mismatching arguments.
19173         (estimate_growth): Fix handlig of non-trivial self recursion.
19174         (inline_read_summary): Do not read info->disregard_inline_limits.
19175         (inline_write_summary): Do not write info->disregard_inline_limits.
19176         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
19177         and move all checks into can_inline_edge_p predicate; re-enable code
19178         comparing optimization levels.
19179         (expand_call_inline): Do not test inline_forbidden_into_p.
19180         * Makefile.in (ipa-inline.o): Update arguments.
19181
19182 2011-04-17  Revital Eres  <revital.eres@linaro.org>
19183
19184         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
19185
19186 2011-04-17  Revital Eres  <revital.eres@linaro.org>
19187
19188         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
19189
19190 2011-04-17  Michael Matz  <matz@suse.de>
19191
19192         PR tree-optimization/48622
19193         PR lto/48645
19194         * ipa-inline-analysis.c (inline_read_summary): Read size/time
19195         in same order as they're written.
19196
19197 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19198
19199         * config/pa/predicates.md: Reorganize and simplify predicates.
19200         Eliminate duplicate code checks.
19201         (arith_operand): Rename to arith14_operand
19202         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
19203         * config/pa/pa.md: Use renamed operands.
19204         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
19205         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
19206         arith11_operand, adddi3_operand, indexed_memory_operand,
19207         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
19208         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
19209         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
19210         move_dest_operand, move_src_operand, prefetch_cc_operand,
19211         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
19212         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
19213         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
19214         div_operand, int5_operand, movb_comparison_operator,
19215         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
19216         arith_double_operand, ireg_operand, lhs_lshift_operand,
19217         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
19218         integer_store_memory_operand): Likewise.
19219         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
19220         (integer_store_memory_operand, read_only_operand,
19221         function_label_operand, borx_reg_operand,
19222         non_hard_reg_operand): Likewise.
19223         (eq_neq_comparison_operator): Delete unused operator.
19224         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
19225         function_label_operand.
19226         (emit_move_sequence): Likewise.
19227
19228 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
19229
19230         * config/i386/sse.md (sseunpackmode): New mode attribute.
19231         (ssepackmode): Ditto.
19232         (vec_pack_trunc_<mode>): Macroize expander from
19233         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
19234         (vec_unpacks_lo_<mode>): Macroize expander from
19235         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19236         (vec_unpacks_hi_<mode>): Macroize expander from
19237         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19238         (vec_unpacku_lo_<mode>): Macroize expander from
19239         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19240         (vec_unpacku_hi_<mode>): Macroize expander from
19241         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19242         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
19243         ix86_expand_sse4_unpack.
19244         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
19245
19246 2011-04-16  Jan Hubicka  <jh@suse.cz>
19247
19248         * cgraphbuild.c: Include ipa-inline.h.
19249         (reset_inline_failed): Use initialize_inline_failed.
19250         * cgraph.c: Include ipa-inline.h.
19251         (cgraph_create_node_1): Do not initialize estimated_growth.
19252         (initialize_inline_failed): More to ipa-inline-analysis.c
19253         (dump_cgraph_node): Do not dump inline flags.
19254         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
19255         and disregard_inline_limits flags.
19256         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
19257         time, size, estimated_growth.
19258         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
19259         Update.
19260         * cgraphunit.c (cgraph_decide_is_function_needed): Use
19261         DECL_DISREGARD_INLINE_LIMITS.
19262         (cgraph_analyze_function): Do not initialize
19263         node->local.disregard_inline_limits.
19264         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
19265         inlinable, versionable and disregard_inline_limits.
19266         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
19267         cgraph_check_inline_limits, cgraph_default_inline_p,
19268         cgraph_edge_badness, update_caller_keys, update_callee_keys,
19269         add_new_edges_to_heap): Update.
19270         (cgraph_decide_inlining_of_small_function): Update; set
19271         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
19272         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
19273         cgraph_decide_inlining_incrementally): Update.
19274         * ipa-inline.h (inline_summary): Add inlinable, versionable,
19275         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
19276         time, size and estimated_growth parameters.
19277         (estimate_edge_growth): Update.
19278         (initialize_inline_failed): Declare.
19279         * ipa-split.c: Include ipa-inline.h
19280         (execute_split_functions): Update.
19281         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
19282         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
19283         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
19284         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
19285         estimated_growth to INT_MIN.
19286         (inline_node_duplication_hook): Likewise.
19287         (dump_inline_summary): Dump new fields.
19288         (compute_inline_parameters): Update.
19289         (estimate_edge_time, estimate_time_after_inlining,
19290         estimate_size_after_inlining, estimate_growth, inline_read_summary,
19291         inline_write_summary):
19292         (initialize_inline_failed): Move here from cgraph.c.
19293         * tree-sra.c: Include ipa-inline.h.
19294         (ipa_sra_preliminary_function_checks): Update.
19295         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
19296         ipa-inline.h.
19297
19298 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
19299
19300         * config/i386/sse.md (V16): New mode iterator.
19301         (VI1, VI8): Ditto.
19302         (AVXMODEQI, AVXMODEDI): Remove.
19303         (sse2, sse3): New mode attribute.
19304         (mov<mode>): Use V16 mode iterator.
19305         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
19306         (push<mode>1): Use V16 mode iterator.
19307         (movmisalign<mode>): Ditto.
19308         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
19309         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
19310         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
19311         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
19312         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
19313         avx_movdqu<avxmodesuffix>.
19314         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
19315         *avx_movdqu<avxmodesuffix>.
19316         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
19317         avx_lddqu<avxmodesuffix>.
19318         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
19319         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
19320         avx_movnt<AVXMODEDI:mode>.
19321         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
19322         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
19323
19324 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
19325
19326         PR target/48629
19327         * haifa-sched.c (prune_ready_list, schedule_block): Use
19328         sched_pressure_p rather than flag_sched_pressure.
19329
19330 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
19331
19332         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
19333         cgraph_get_node instead of cgraph_get_create_node.
19334
19335 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
19336
19337         * cfgexpand.c (expand_debug_expr): Use
19338         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
19339
19340 2011-04-15  Michael Matz  <matz@suse.de>
19341
19342         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
19343         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
19344         * function.c (gimplify_parameters): Ditto.
19345         * gimplify.c (gimplify_vla_decl): Ditto.
19346
19347         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
19348         (gimple_call_set_alloca_for_var): New inline function.
19349         (gimple_call_alloca_for_var_p): Ditto.
19350         * gimple.c (gimple_build_call_from_tree): Remember
19351         CALL_ALLOCA_FOR_VAR_P state.
19352         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
19353
19354         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
19355         calls if they were for VLA objects.
19356
19357 2011-04-15  Martin Jambor  <mjambor@suse.cz>
19358
19359         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
19360         of ADR_EXPRs.
19361
19362 2011-04-15  Martin Jambor  <mjambor@suse.cz>
19363
19364         PR middle-end/48601
19365         * tree-emutls.c (lower_emutls_function_body): Call
19366         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
19367         result is non-NULL.
19368
19369 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
19370
19371         * c-decl.c (detect_field_duplicates): Call
19372         objc_detect_field_duplicates instead of objc_get_interface_ivars.
19373
19374 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
19375
19376         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
19377         * gimple.c (gimple_asm_clobbers_memory_p): Define.
19378         * ipa-pure-const.c (check_stmt): Call it.
19379         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
19380
19381 2011-04-15  Richard Guenther  <rguenther@suse.de>
19382
19383         PR tree-optimization/48290
19384         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
19385         Properly decide inhibiting propagation based on the valueized
19386         operand.  Do loop-closed SSA form preserving here ...
19387         (init_copy_prop): ... not here.
19388
19389 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
19390
19391         PR target/48612
19392         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
19393         (*ieee_smax<mode>3): Likewise.
19394
19395 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19396
19397         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
19398         Replace match_operand with match_dup for the third operand in
19399         these expanders.
19400
19401 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
19402
19403         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
19404         to track processing of conditionals.  Update all callers.
19405         (try_combine, simplify_if_then_else): Update.
19406
19407 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
19408
19409         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
19410         -fsched-pressure.
19411
19412 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
19413
19414         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
19415         instead of match_operand for operand 3.
19416
19417 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
19418
19419         * recog.h (insn_operand_data): Add an "allows_mem" field.
19420         * genoutput.c (output_operand_data): Initialize it.
19421         * optabs.c (maybe_legitimize_operand_same_code): New function.
19422         (maybe_legitimize_operand): Use it when matching the original
19423         op->value.
19424
19425 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
19426
19427         * gimplify.c: Fix issues in comments throughout.
19428         (voidify_wrapper_expr): Fix long line.
19429         (build_stack_save_restore): Likewise.
19430         (gimplify_loop_expr): Likewise.
19431         (gimplify_compound_lval): Likewise.
19432         (gimplify_init_ctor_eval): Likewise.
19433         (gimplify_modify_expr_rhs): Likewise.
19434         (omp_notice_threadprivate_variable): Likewise.
19435
19436 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
19437
19438         * cfgexpand.c (expand_call_stmt): Convert the function type to the
19439         original one if this is not a builtin function.
19440
19441 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
19442
19443         PR target/48605
19444         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
19445         offset it as needed based on top 2 bits in operands[3], change
19446         MEM mode to SFmode and mask those 2 bits away from operands[3].
19447
19448 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
19449
19450         * c-parser.c (c_parser_objc_protocol_definition): Updated for
19451         change from objc_declare_protocols() to objc_declare_protocol().
19452
19453 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
19454
19455         * config/i386/sse.md (sse4_1): New mode attribute.
19456         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
19457         avx_blend<ssemodesuffix><avxmodesuffix> and
19458         sse4_1_blend<ssemodesuffix> using VF mode iterator.
19459         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
19460         avx_blendv<ssemodesuffix><avxmodesuffix> and
19461         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
19462         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
19463         avx_dp<ssemodesuffix><avxmodesuffix> and
19464         sse4_1_dp<ssemodesuffix> using VF mode iterator.
19465         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
19466         (sse4_1_packusdw): Merge with *avx_packusdw.
19467         (sse4_1_pblendvb): Merge with *avx_pblendvb.
19468         (sse4_1_pblendw): Merge with *avx_pblendw.
19469         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
19470         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
19471         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
19472         VF mode iterator.
19473         (sse4_1_round<ssescalarmodesuffix>): Merge with
19474         *avx_round<ssescalarmodesuffix>.
19475         (aesenc): Merge with *avx_aesenc.
19476         (aesenclast): Merge with *avx_aesenclast.
19477         (aesdec): Merge with *avx_aesdec.
19478         (aesdeclast): Merge with *avx_aesdeclast.
19479         (pclmulqdq): Merge with *pclmulqdq.
19480         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
19481         New predicate.
19482         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
19483
19484 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
19485
19486         PR middle-end/48608
19487         * cfgexpand.c (get_decl_align_unit): Renamed to ...
19488         (align_local_variable): This.  Update DECL_ALIGN.
19489         (add_stack_var): Updated.
19490         (expand_one_stack_var): Likewise.
19491
19492 2011-04-14  Richard Guenther  <rguenther@suse.de>
19493
19494         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
19495         Remove.
19496         (dse_initialize_block_local_data, dse_leave_block,
19497         record_voperand_set, get_stmt_uid): Likewise.
19498         (dse_possible_dead_store_p): Allow any kind of killing stmt.
19499         (dse_optimize_stmt): Remove voperand set handling code.
19500         Simplify and improve to handle any kind of killing stmt.
19501         (dse_record_phi): Remove.
19502         (dse_enter_block): Simplify.
19503         (tree_ssa_dse): Likewise.
19504         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
19505
19506 2011-04-14  Jan Hubicka  <jh@suse.cz>
19507
19508         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
19509         * cgraph.h (struct inline_summary): Move to ipa-inline.h
19510         (cgraph_local_info): Remove inline_summary.
19511         * ipa-cp.c: Include ipa-inline.h.
19512         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
19513         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
19514         accesor.
19515         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
19516         (input_overwrite_node): Do not set inline summary.
19517         (input_node): Do not stream inline summary.
19518         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
19519         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
19520         growth; we do not have inline parameters computed for that anyway.
19521         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
19522         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
19523         (inline_summary_t): New type and VECtor.
19524         (debug_inline_summary, dump_inline_summaries): Declare.
19525         (inline_summary): Use VOCtor.
19526         (estimate_edge_growth): Kill hack computing call stmt size directly.
19527         * lto-section-in.c (lto_section_name): Add inline section.
19528         * ipa-inline-analysis.c: Include lto-streamer.h
19529         (node_removal_hook_holder, node_duplication_hook_holder): New holders
19530         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
19531         (inline_summary_vec): Define.
19532         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
19533         dump_inline_summaries): New functions.
19534         (estimate_function_body_sizes): Properly compute size/time of outgoing
19535         calls.
19536         (compute_inline_parameters): Alloc inline_summary; do not compute
19537         size/time of incomming calls.
19538         (estimate_edge_time): Avoid missing time summary hack.
19539         (inline_read_summary): Read inline summary info.
19540         (inline_write_summary): Write inline summary info.
19541         (inline_free_summary): Free all hooks and inline summary vector.
19542         * lto-streamer.h: Add LTO_section_inline_summary section.
19543         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
19544         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
19545
19546 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
19547
19548         * tree-vectorizer.h (vect_strided_store_supported): Add a
19549         HOST_WIDE_INT argument.
19550         (vect_strided_load_supported): Likewise.
19551         (vect_permute_store_chain): Return void.
19552         (vect_transform_strided_load): Likewise.
19553         (vect_permute_load_chain): Delete.
19554         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
19555         count argument.  Check that the count is a power of two.
19556         (vect_strided_load_supported): Likewise.
19557         (vect_permute_store_chain): Return void.  Update after above changes.
19558         Assert that the access is supported.
19559         (vect_permute_load_chain): Likewise.
19560         (vect_transform_strided_load): Return void.
19561         * tree-vect-stmts.c (vectorizable_store): Update calls after
19562         above interface changes.
19563         (vectorizable_load): Likewise.
19564         (vect_analyze_stmt): Don't check for strided powers of two here.
19565
19566 2011-04-14  Richard Guenther  <rguenther@suse.de>
19567
19568         PR tree-optimization/48590
19569         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
19570         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
19571         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
19572         BUILT_IN_STACK_SAVE.
19573         * tree-ssa-dce.c (propagate_necessity): Handle
19574         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
19575
19576 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
19577
19578         * c-parser.c (c_parser_objc_class_declaration): Updated call to
19579         objc_declare_class.
19580
19581 2011-04-14  Richard Guenther  <rguenther@suse.de>
19582
19583         * tree.h (get_object_alignment_1): Declare.
19584         * builtins.c (get_object_alignment_1): Split out worker from ...
19585         (get_object_alignment): ... here.
19586         * fold-const.c (get_pointer_modulus_and_residue): Use
19587         get_object_alignment_1.
19588
19589 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
19590
19591         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
19592         type parameter.
19593         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
19594         parameter.  Generalise code to handle arrays as well as vectors.
19595         (vect_setup_realignment): Update accordingly.
19596         * tree-vect-stmts.c (vectorizable_store): Likewise.
19597         (vectorizable_load): Likewise.
19598
19599 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
19600
19601         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
19602         within the per-copy loop.
19603
19604 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
19605
19606         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
19607         in the dump file.
19608
19609 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
19610
19611         * doc/options.texi (Negative): Explicitly mention that the
19612         Negative chain must be circular.
19613
19614 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
19615
19616         * function.h (block_chainon): Declare.
19617         * function.c (block_chainon): Define.
19618
19619 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
19620             Eric Weddington  <eric.weddington@atmel.com>
19621             Georg-Johann Lay  <avr@gjlay.de>
19622
19623         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
19624         New Includes
19625         (avr_init_builtins, avr_expand_builtin,
19626         avr_expand_delay_cycles, avr_expand_unop_builtin,
19627         avr_expand_binop_builtin ): New functions.
19628         (avr_builtin_id): New enum
19629         (struct avr_builtin_description): New struct
19630         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
19631         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
19632
19633         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
19634         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
19635         UNSPECV_DELAY_CYCLES): new enumeration values
19636         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
19637         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
19638         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
19639         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
19640         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
19641         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
19642         "fmulsu"): New insns
19643
19644         * config/avr/avr-c.c: fix line endings
19645         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
19646         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
19647         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
19648         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
19649         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
19650
19651         * doc/extend.texi (AVR Built-in Functions): New node
19652         (Target Builtins): Add documentation of AVR
19653         built-in functions.
19654
19655 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
19656
19657         PR target/44643
19658         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
19659         alone. Error if non-const data has attribute progmem.
19660
19661 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
19662
19663         * tree.h (struct tree_constructor): Include tree_typed instead of
19664         tree_common.
19665         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
19666         TS_TYPED instead of TS_COMMON.
19667
19668 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
19669
19670         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
19671         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
19672         (sse2_psadbw): Merge with *avx_psadbw.
19673         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
19674         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
19675         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
19676         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
19677         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
19678         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
19679         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
19680         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
19681         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
19682         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
19683         (ssse3_palignrti): Merge with *avx_palignrti.
19684
19685 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
19686
19687         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
19688         * tree-ssanames.c (fini_ssanames): VEC_free it.
19689         (make_ssa_name_fn): Update for VECness of free_ssanames.
19690         (release_ssa_name, release_dead_ssa_names): Likewise.
19691         * tree.h (struct tree_ssa_name): Include tree_typed instead of
19692         tree_common.
19693         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
19694         TS_TYPED instead of TS_COMMON.
19695
19696 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
19697
19698         * postreload-gcse.c (gcse_after_reload_main): Add calls to
19699         statistics_counter_event.
19700         * tree-ssa-copyrename.c (stats): Define.
19701         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
19702         statistics_counter_event.
19703         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
19704         (bswap_stats, widen_mul_stats): Define.
19705         (insert_reciprocals): Increment rdivs_inserted.
19706         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
19707         rfuncs_inserted.  Add calls to statistics_counter_event.
19708         (execute_cse_sincos_1): Increment inserted.
19709         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
19710         statistics_counter_event.
19711         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
19712         of bswap_stats.  Add calls to statistics_counter_event.
19713         (convert_mult_to_widen): Increment widen_mults_inserted.
19714         (convert_plusminus_to_widen): Increment maccs_inserted.
19715         (convert_mult_to_fma): Increment fmas_inserted.
19716         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
19717         calls to statistics_counter_event.
19718
19719 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
19720
19721         PR rtl-optimization/48455
19722         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
19723         `temp_costs->mem_cost'.
19724
19725 2011-04-13  Jan Hubicka  <jh@suse.cz>
19726
19727         * ipa-inline.h: New file.
19728         * ipa-inline-analysis.c: New file. Broken out of ...
19729         * ipa-inline.c: ... this file; update toplevel comment;
19730         include ipa-inline.h
19731         (inline_summary): Move to ipa-inline.h
19732         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
19733         ipa-inline-analysis.c.
19734         (cgraph_estimate_time_after_inlining): Rename to
19735         estiamte_time_after_inlining; move to ipa-inline-analysis.c
19736         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
19737         to estimate_edge_growth.
19738         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
19739         rename to estimate_size_after_inlining.
19740         (cgraph_mark_inline_edge): Update for new naming convention.
19741         (cgraph_check_inline_limits): Likewise.
19742         (cgraph_edge_badness): Likewise.
19743         (cgraph_decide_recursive_inlining): Likewise.
19744         (cgraph_decide_inlining_of_small_functions): Likewise.
19745         (cgraph_decide_inlining_incrementally): Likewise.
19746         (cgraph_estimate_growth): Rename to estimate_growth; move to
19747         ipa-inline-analysis.c.
19748         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
19749         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
19750         (compute_inline_parameters): Likewise.
19751         (compute_inline_parameters_for_current): Likewise.
19752         (pass_inline_parameters): Likewise.
19753         (inline_indirect_intraprocedural_analysis): Likewise.
19754         (analyze_function): Rename to inline_analyze_function; likewise.
19755         (add_new_function): Move to ipa-inline-analysis.c.
19756         (inline_generate_summary): Likewise.
19757         (inline_read_summary): Likewise.
19758         (inline_write_summary): Likewise.
19759         * Makefile.in (ipa-inline-analysis.c): New file.
19760
19761 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19762
19763         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
19764         * configure: Regenerate.
19765
19766 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
19767
19768         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
19769         instead of tree_common.
19770         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
19771         Likewise.
19772         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
19773         TS_TYPED rather than TS_COMMON.
19774         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
19775
19776 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
19777
19778         PR target/45263
19779         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
19780         r20 around calls of __tablejump_elpm__
19781
19782 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
19783
19784         PR middle-end/48591
19785         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
19786         NULL.
19787         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
19788
19789 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
19790
19791         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
19792         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
19793         (cfi_vec): New typedef.
19794         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
19795         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
19796         (cie_cfi_vec): New static variable.
19797         (cie_cfi_head): Delete.
19798         (add_cfi): Accept a cfi_vec * as first argument. All callers and
19799         declaration changed. Use vector rather than list operations.
19800         (new_cfi): Don't initialize the dw_cfi_next field.
19801         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
19802         rather than list operations.
19803         (lookup_cfa): Use vector rather than list operations.
19804         (output_cfis): New argument upto. Accept a cfi_vec rather than
19805         a dw_cfi_ref list head as argument. All callers changed.
19806         Iterate over the vector using upto as a maximum index.
19807         (output_all_cfis): New static function.
19808         (output_fde): Use vector rather than list operations. Use the
19809         new upto argument for output_cfis rather than manipulating a
19810         list.
19811         (dwarf2out_begin_prologue): Change initializations to match
19812         new struct members.
19813         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
19814         from the vector length rather than searching for the end of a list.
19815         Use output_all_cfis.
19816         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
19817
19818 2011-04-13  Nick Clifton  <nickc@redhat.com>
19819
19820         * config/rx/rx.md (movmemsi): Do not use this pattern when
19821         volatile pointers are involved.
19822
19823 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
19824
19825         * config/i386/sse.md (pinsrbits): Remove.
19826         (sse2_packsswb): Merge with *avx_packsswb.
19827         (sse2_packssdw): Merge with *avx_packssdw.
19828         (sse2_packuswb): Merge with *avx_packuswb.
19829         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
19830         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
19831         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
19832         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
19833         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
19834         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
19835         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
19836         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
19837         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
19838         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
19839         (sse2_loadld): Merge with *avx_loadld.
19840         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
19841         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
19842         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
19843         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
19844         (vec_concatv2di): Merge with *vec_concatv2di_avx.
19845
19846 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
19847
19848         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
19849         calling TREE_CHAIN.
19850         * print-tree.c (print_node): Likewise.
19851         * tree-inline.c (copy_tree_r): Likewise.
19852         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
19853         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
19854         instead of TS_COMMON.
19855         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
19856         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
19857         (copy_node_stat): Zero TREE_CHAIN only if necessary.
19858         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
19859         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
19860         ...and these...
19861         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
19862         * tree.h: ...here.
19863         (TREE_CHAIN): Check for a TS_COMMON structure.
19864         (TREE_TYPE): Check for a TS_TYPED structure.
19865
19866 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
19867
19868         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
19869         cgraph_get_create_node instead of cgraph_node.
19870
19871 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
19872
19873         * c-parser.c (c_parser_initelt): Updated call to
19874         objc_build_message_expr.
19875         (c_parser_postfix_expression): Likewise.
19876
19877 2011-04-12  Kai Tietz  <ktietz@redhat.com>
19878
19879         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
19880         MASK_MS_BITFIELD_LAYOUT bit.
19881
19882 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
19883
19884         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
19885         assert it is always true.
19886         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
19887         moves.
19888
19889 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
19890
19891         * c-parser.c (c_lex_one_token): Rewritten conditional used when
19892         compiling Objective-C to be more efficient.
19893
19894 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
19895
19896         * opts-common.c (decode_cmdline_options_to_array): Remove variable
19897         argv_copied.
19898
19899 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
19900
19901         * recog.h, genoutput.c, optabs.c: Revert last patch.
19902
19903 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
19904
19905         PR target/48090
19906         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
19907
19908 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
19909
19910         * recog.h (insn_operand_data): Add an "allows_mem" field.
19911         * genoutput.c (output_operand_data): Initialize it.
19912         * optabs.c (maybe_legitimize_operand_same_code): New function.
19913         (maybe_legitimize_operand): Use it when matching the original
19914         op->value.
19915
19916 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
19917
19918         * genpreds.c (process_define_predicate): Move most processing
19919         to gensupport.c.  Continue to validate the expression.
19920         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
19921         (process_define_predicate): Move processing to gensupport.c.
19922         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
19923         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
19924         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
19925         argument.
19926         (valid_predicate_name_p): New function, split out from old
19927         genpreds.c:process_define_predicate.
19928         (process_define_predicate): New function, combining code from
19929         old genpreds.c and genrecog.c functions.
19930         (process_rtx): Call it for DEFINE_PREDICATE and
19931         DEFINE_SPECIAL_PREDICATE.
19932
19933 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
19934
19935         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
19936         size of a '%A' memory reference.
19937         (T_DREG, T_QREG): New neon_builtin_type_bits.
19938         (arm_init_neon_builtins): Assert that the load and store operands
19939         are neon_struct_operands.
19940         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
19941         (NEON_ARG_MEMORY): New builtin_arg.
19942         (neon_dereference_pointer): New function.
19943         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
19944         Handle NEON_ARG_MEMORY.
19945         (arm_expand_neon_builtin): Update after above interface changes.
19946         Use NEON_ARG_MEMORY for loads and stores.
19947         * config/arm/predicates.md (neon_struct_operand): New predicate.
19948         * config/arm/iterators.md (V_two_elem): Tweak formatting.
19949         (V_three_elem): Use BLKmode for accesses that have no associated mode.
19950         (V_four_elem): Tweak formatting.
19951         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
19952         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
19953         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
19954         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
19955         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
19956         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
19957         (neon_vst4<mode>): Replace pointer operand with a memory operand.
19958         Use %A in the output template.
19959         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
19960         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
19961         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
19962         the width of the memory access.  Remove post-increment.
19963         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
19964
19965 2011-04-12  Nick Clifton  <nickc@redhat.com>
19966
19967         * config/v850/v850.c (expand_prologue): Do not use the CALLT
19968         instruction for interrupt handlers if the target is the basic V850
19969         architecture.
19970         (expand_epilogue): Likewise.
19971
19972 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
19973
19974         PR rtl-optimization/48549
19975         * combine.c (propagate_for_debug): Also stop after BB_END of
19976         this_basic_block.  Process LAST and just stop processing after it.
19977         (combine_instructions): If last_combined_insn has been deleted,
19978         set last_combined_insn to its PREV_INSN.
19979
19980 2011-04-12  Richard Guenther  <rguenther@suse.de>
19981
19982         PR tree-optimization/46076
19983         * gimple.h (struct gimple_statement_call): Add fntype field.
19984         (gimple_call_fntype): Adjust.
19985         (gimple_call_set_fntype): New function.
19986         * gimple.c (gimple_build_call_1): Set the call function type.
19987         * gimplify.c (gimplify_call_expr): Preserve the function
19988         type the frontend used for the call.
19989         (gimplify_modify_expr): Likewise.
19990         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
19991         function type.
19992         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
19993         function type.
19994         * tree-ssa.c (useless_type_conversion_p): Function pointer
19995         conversions are useless.
19996
19997 2011-04-12  Martin Jambor  <mjambor@suse.cz>
19998
19999         * cgraph.h (cgraph_node): Remove function declaration.
20000         (cgraph_create_node): Declare.
20001         (cgraph_get_create_node): Likewise.
20002         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
20003         Updated all callers.
20004         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
20005         the decl does not already exist.  Call cgraph_get_create_node instead
20006         of cgraph_node.
20007         (cgraph_get_create_node): New function.
20008         (cgraph_same_body_alias): Update comment.
20009         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
20010         assert it does not return NULL.
20011         (cgraph_update_edges_for_call_stmt): Likewise.
20012         (cgraph_clone_edge): Likewise.
20013         (cgraph_create_virtual_clone): Likewise.
20014         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
20015         instead of cgraph_node.
20016         (cgraph_add_new_function): Call cgraph_create_node or
20017         cgraph_get_create_node instead of cgraph_node.
20018         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
20019         instead of cgraph_node.
20020         (record_eh_tables): Likewise.
20021         (mark_address): Likewise.
20022         (mark_load): Likewise.
20023         (build_cgraph_edges): Call cgraph_get_create_node instead
20024         of cgraph_node.
20025         (rebuild_cgraph_edges): Likewise.
20026         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
20027         instead of cgraph_node.
20028         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
20029         cgraph_node.
20030         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
20031         cgraph_create_node instead of cgraph_node.
20032         * c-decl.c (finish_function): Call cgraph_get_create_node instead
20033         of cgraph_node.
20034         * lto-cgraph.c (input_node): Likewise.
20035         * lto-streamer-in.c (input_function): Likewise.
20036         * varasm.c (mark_decl_referenced): Likewise.
20037         (assemble_alias): Likewise.
20038
20039 2011-04-12  Martin Jambor  <mjambor@suse.cz>
20040
20041         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
20042         instead of cgraph_node and assert it does not return NULL.
20043         * lto-streamer-in.c (lto_read_body): Likewise.
20044         * omp-low.c (new_omp_context): Likewise.
20045         (create_task_copyfn): Likewise.
20046         * tree-emutls.c (lower_emutls_function_body): Likewise.
20047         * matrix-reorg.c (transform_allocation_sites): Likewise.
20048
20049 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
20050
20051         PR c/48552
20052         * c-typeck.c (build_asm_expr): Error out on attempts to use
20053         void type outputs or inputs for constraints that allow reg or
20054         don't allow memory.
20055
20056 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
20057             Richard Earnshaw  <rearnsha@arm.com>
20058
20059         PR target/48250
20060         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
20061         to use sign-magnitude offsets. Reject unsupported unaligned
20062         cases. Add detailed description in comments.
20063         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
20064         condition from TARGET_32BIT to TARGET_ARM.
20065
20066 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
20067
20068         * tree.h (struct typed_tree): New.
20069         (struct tree_common): Include it instead of tree_base.
20070         (TREE_TYPE): Update for new location of type field.
20071         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
20072         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
20073         (union tree_node): Add typed field.
20074         * treestruct.def (TS_TYPED): New.
20075         * lto-streamer.c (check_handled_ts_structures): Handle it.
20076         * tree.c (MARK_TS_TYPED): New macro.
20077         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
20078
20079 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
20080
20081         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
20082         (force_nonfallthru): Do not alter the loop nest if no basic block
20083         was created.
20084
20085 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
20086
20087         * config/i386/sse.md (VI): New mode iterator.
20088         (SSEMODEI): Remove.
20089         (AVX256MODEI): Ditto.
20090         (AVXMODEF4P): Ditto.
20091         (avxvecpsmode): Ditto.
20092         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
20093         (sse2_andnot<mode>3): New expander.
20094         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
20095         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
20096         (<any_logic:code><mode>3): Use VI mode iterator.
20097         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
20098         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
20099         (*andnottf3): Handle AVX three-operand constraints.
20100         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
20101
20102 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
20103             Robert Millan  <rmh@gnu.org>
20104
20105         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
20106         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
20107         GNU_USER_DYNAMIC_LINKER64): Define.
20108         (REG_NAME): Don't undefine.
20109         (MD_UNWIND_SUPPORT): Undefine.
20110         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
20111         (REG_NAME): Don't undefine.
20112         (MD_UNWIND_SUPPORT): Undefine.
20113         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
20114
20115 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
20116
20117         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
20118         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
20119
20120 2011-04-11  Xinliang David Li  <davidxl@google.com>
20121
20122         * value-profile.c (check_ic_target): New function.
20123         (gimple_ic_transform): Sanity check indirect call target.
20124         * gimple-low.c (gimple_check_call_args): Interface change.
20125         (gimple_check_call_matching_types): New function.
20126         * tree-inline.c (tree_can_inline_p): Call new function.
20127
20128 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
20129
20130         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
20131         tree-pretty-print.h & realmpfr.h.
20132
20133 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
20134
20135         PR middle-end/48464
20136         * ira.c (setup_pressure_classes): Fix typo in loop condition.
20137         (setup_allocno_and_important_classes): Ditto.
20138
20139 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
20140
20141         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
20142         GNU_USER_DYNAMIC_LINKER.
20143         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
20144         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20145         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
20146         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20147         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
20148         GNU_USER_TARGET_OS_CPP_BUILTINS.
20149         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
20150         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20151         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
20152         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20153         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
20154         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20155         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
20156         GNU_USER_TARGET_OS_CPP_BUILTINS.
20157         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20158         GNU_USER_DYNAMIC_LINKER.
20159         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20160         GNU_USER_TARGET_OS_CPP_BUILTINS.
20161         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
20162         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20163         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
20164         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20165         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
20166         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
20167         GNU_USER_DYNAMIC_LINKER64): Remove.
20168         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
20169         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20170         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20171         GNU_USER_DYNAMIC_LINKER.
20172         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20173         GNU_USER_TARGET_OS_CPP_BUILTINS.
20174         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20175         GNU_USER_TARGET_OS_CPP_BUILTINS.
20176         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
20177         to GNU_USER_TARGET_OS_CPP_BUILTINS.
20178         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20179         GNU_USER_TARGET_OS_CPP_BUILTINS.
20180         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
20181         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
20182         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
20183         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
20184         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20185         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20186         GNU_USER_DYNAMIC_LINKER.
20187         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
20188         GNU_USER_TARGET_OS_CPP_BUILTINS.
20189         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
20190         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20191         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20192         GNU_USER_DYNAMIC_LINKER.
20193         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
20194         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20195         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
20196         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20197         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20198         GNU_USER_DYNAMIC_LINKER.
20199         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
20200         GNU_USER_DYNAMIC_LINKERN32.
20201         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
20202         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
20203         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
20204         GNU_USER_DYNAMIC_LINKER32.
20205         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
20206         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20207         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20208         GNU_USER_DYNAMIC_LINKER.
20209         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
20210         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20211         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
20212         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20213         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20214         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
20215         GNU_USER_DYNAMIC_LINKER32.
20216         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
20217         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
20218         GNU_USER_DYNAMIC_LINKER.
20219         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
20220         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20221         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
20222         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
20223         GNU_USER_DYNAMIC_LINKER64.
20224         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
20225         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20226         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20227         GNU_USER_DYNAMIC_LINKER.
20228         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
20229         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20230         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20231         GNU_USER_DYNAMIC_LINKER.
20232         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
20233         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20234         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
20235         GNU_USER_DYNAMIC_LINKER32.
20236         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
20237         GNU_USER_DYNAMIC_LINKER64.
20238         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
20239         GNU_USER_DYNAMIC_LINKER64.
20240         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
20241         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20242         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
20243         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20244         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20245
20246 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
20247
20248         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
20249         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
20250         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
20251         GNU_USER_DYNAMIC_LINKER.
20252         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
20253         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
20254         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
20255         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
20256         GNU_USER_DYNAMIC_LINKER64.
20257         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
20258         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
20259         GNU_USER_LINK_EMULATION.
20260         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
20261         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
20262         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
20263         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
20264         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
20265         CPP_SPEC, CC1_SPEC): Remove.
20266         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
20267         (GNU_USER_DYNAMIC_LINKER): Define.
20268         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
20269         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
20270         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
20271         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
20272         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
20273         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
20274         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
20275         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
20276         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
20277         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
20278         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
20279         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
20280         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
20281         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
20282         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
20283         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
20284         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
20285         GNU_USER_DYNAMIC_LINKER.
20286         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
20287         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
20288         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
20289         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
20290         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
20291         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
20292         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
20293         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
20294         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
20295         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
20296
20297 2011-04-11  Kai Tietz  <ktietz@redhat.com>
20298
20299         PR target/9601
20300         PR target/11772
20301         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
20302         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
20303         comment.
20304         (ix86_is_msabi_thiscall): Removed.
20305         (ix86_is_type_thiscall): Likewise.
20306         (ix86_get_callcvt): New function.
20307         (ix86_comp_type_attributes): Simplify check.
20308         (ix86_function_regparm): Use ix86_get_callcvt for calling
20309         convention attribute checks.
20310         (ix86_return_pops_args): Likewise.
20311         (ix86_static_chain): Likewise.
20312         (x86_this_parameter): Likewise.
20313         (x86_output_mi_thunk): Likewise.
20314         (ix86_function_type_abi): Optimize check for types without attributes.
20315         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
20316         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
20317         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
20318         by flag-values.
20319         (IX86_BASE_CALLCVT): Helper macro.
20320         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
20321         Use ix86_get_callcvt for calling convention attribute checks and avoid
20322         symbol-decoration for stdcall in TARGET_RTD case.
20323         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
20324         Likewise.
20325         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
20326         for declaration.
20327
20328 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
20329
20330         * config/i386/sse.md (VI_128): New mode iterator.
20331         (VI12_128): Rename from SSEMODE12.
20332         (VI14_128): Rename from SSEMODE14.
20333         (VI124_128): New mode iterator.
20334         (VI24_128): Rename from SSEMODE248.
20335         (VI248_128): Rename from SSEMODE248.
20336         (SSEMODE124C8): Remove.
20337         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
20338         (*sse2_<plusminus_insn><mode>3): Merge with
20339         *avx_<plusminus_insn><mode>3.
20340         (*mulv8hi3): Merge with *avx_mulv8hi3.
20341         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
20342         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
20343         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
20344         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
20345         (ashr<mode>3): Merge with *avx_ashr<mode>3.
20346         (lshr<mode>3): Merge with *avx_lshr<mode>3.
20347         (ashl<mode>3): Merge with *avx_ashl<mode>3.
20348         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
20349         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
20350         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
20351         (*<smaxmin:code>v8hi3): Ditto.
20352         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
20353         (*<smaxmin:code>v16qi3): Ditto.
20354         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
20355         (*sse2_eq<mode>3): Ditto.
20356         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
20357         (*sse2_gt<mode>3): Ditto.
20358         (vcondv2di): Split out of vcond<mode>.
20359         (vconduv2di): Split out of vcondu<mode>.
20360
20361 2011-04-11  Richard Guenther  <rguenther@suse.de>
20362
20363         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
20364         before calling tree_low_cst.
20365
20366 2011-04-11  Richard Guenther  <rguenther@suse.de>
20367
20368         * stor-layout.c (layout_type): Compute all array index size operations
20369         in the original type.
20370         (initialize_sizetypes): Add comment.
20371         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
20372
20373 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
20374
20375         * common.opt (Tbss=, Tdata=, Ttext=): New options.
20376
20377 2011-04-11  Martin Jambor  <mjambor@suse.cz>
20378
20379         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
20380         of cgraph_node, handle NULL return value.
20381         (cgraph_global_info): Likewise.
20382         (cgraph_rtl_info): Likewise.
20383         * tree-inline.c (estimate_num_insns): Likewise.
20384         * gimplify.c (unshare_body): Likewise.
20385         (unvisit_body): Likewise.
20386         (gimplify_body): Likewise.
20387         * predict.c (optimize_function_for_size_p): Likewise.
20388         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
20389         (call_may_clobber_ref_p_1): Likewise.
20390         * varasm.c (function_section_1): Likewise.
20391         (assemble_start_function): Likewise.
20392
20393 2011-04-11  Martin Jambor  <mjambor@suse.cz>
20394
20395         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
20396         of cgraph_node.
20397         * final.c (rest_of_clean_state): Likewise.
20398         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
20399         * passes.c (pass_init_dump_file): Likewise.
20400         (execute_all_ipa_transforms): Likewise.
20401         (function_called_by_processed_nodes_p): Likewise.
20402         * predict.c (maybe_hot_frequency_p): Likewise.
20403         (probably_never_executed_bb_p): Likewise.
20404         (compute_function_frequency): Likewise.
20405         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
20406         (unnest_nesting_tree_1): Likewise.
20407         (lower_nested_functions): Likewise.
20408         * tree-optimize.c (execute_fixup_cfg): Likewise.
20409         (tree_rest_of_compilation): Likewise.
20410         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
20411         * tree-sra.c (ipa_early_sra): Likewise.
20412         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
20413         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
20414         * ipa.c (record_cdtor_fn): Likewise.
20415         * ipa-inline.c (cgraph_early_inlining): Likewise.
20416         (compute_inline_parameters_for_current): Likewise.
20417         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
20418         * ipa-pure-const.c (local_pure_const): Likewise.
20419         * ipa-split.c (split_function): Likewise.
20420         (execute_split_functions): Likewise.
20421         * cgraphbuild.c (build_cgraph_edges): Likewise.
20422         (rebuild_cgraph_edges): Likewise.
20423         (cgraph_rebuild_references): Likewise.
20424         (remove_cgraph_callee_edges): Likewise.
20425         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
20426         (verify_cgraph_node): Likewise.
20427         (cgraph_analyze_functions): Likewise.
20428         (cgraph_preserve_function_body_p): Likewise.
20429         (save_inline_function_body): Likewise.
20430         (save_inline_function_body): Likewise.
20431         * tree-inline.c (copy_bb): Likewise.
20432         (optimize_inline_calls): Likewise.
20433
20434 2011-04-11  Martin Jambor  <mjambor@suse.cz>
20435
20436         PR tree-optimization/48195
20437         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
20438         ipa_check_create_edge_args.
20439         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
20440         ipa_check_create_edge_args.
20441         * ipa-inline.c (inline_generate_summary): Do not call
20442         ipa_check_create_node_params and ipa_check_create_edge_args.
20443         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
20444         ipa_check_create_edge_args.
20445
20446 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
20447
20448         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
20449         instead of loop.
20450         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
20451         * function.c (record_hard_reg_sets): Likewise.
20452         * ira.c (compute_regs_asm_clobbered): Likewise.
20453         * sched-deps.c (sched_analyze_1): Likewise.
20454         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
20455
20456 2011-04-09  Xinliang David Li  <davidxl@google.com>
20457
20458         PR tree-optimization/PR48484
20459         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
20460         has_valid_pred lazily
20461
20462 2011-04-09  Duncan Sands  <baldrick@free.fr>
20463
20464         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
20465
20466 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
20467
20468         * combine.c (combine_validate_cost): Adjust comments.  Set registered
20469         cost of I0 to zero at the end, if any.
20470
20471 2011-04-08  Xinliang David Li  <davidxl@google.com>
20472
20473         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
20474         to insane profile data.
20475
20476 2011-04-08  Xinliang David Li  <davidxl@google.com>
20477
20478         * ipa-cp.c (ipcp_update_profiling): Correct
20479          negative scale factor due to insane profile data.
20480
20481 2011-04-08  Xinliang David Li  <davidxl@google.com>
20482
20483         * final.c (dump_basic_block_info): New function.
20484         (final): Dump basic block.
20485         (final_scan_insn): Remove old dump.
20486
20487 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
20488
20489         PR target/47829
20490         * config.gcc (i386-*-freebsd): Disable unwind table generation for
20491         crtbegin/crtend.
20492
20493 2011-04-08  Michael Matz  <matz@suse.de>
20494
20495         PR middle-end/48389
20496         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
20497         functions.
20498         (rebuild_jump_labels): Call rebuild_jump_labels_1.
20499         * rtl.h (rebuild_jump_labels_chain): Declare.
20500         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
20501         insns inserted on edges.
20502
20503 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
20504
20505         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
20506         * config/arm/arm-arches.def: New.
20507         * config/arm/arm-opts.h: New.
20508         * config/arm/genopt.sh: New.
20509         * config/arm/arm-tables.opt: New (generated).
20510         * config/arm/arm.c (arm_handle_option, arm_target_help,
20511         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
20512         (all_architectures): Get most table contents from arm-arches.def.
20513         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
20514         arm_selected_tune here.
20515         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
20516         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
20517         (march=, mcpu=, mtune=): Use Enum and Var.
20518         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
20519         (arm.o): Update dependencies.
20520
20521 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
20522
20523         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
20524         of header_file.
20525         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
20526         (write_typed_alloc_defns): Likewise.
20527         (main): Calls write_typed_alloc_defns with output_header.
20528
20529 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
20530
20531         PR inline-asm/48435
20532         * ira-color.c (setup_profitable_hard_regs): Add comments.
20533         Don't take prohibited hard regs into account.
20534         (setup_conflict_profitable_regs): Rename to
20535         get_conflict_profitable_regs.
20536         (check_hard_reg_p): Check prohibited hard regs.
20537
20538 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
20539
20540         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
20541         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
20542         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
20543
20544 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20545
20546         PR target/48366
20547         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
20548         move from floating point to shift amount register.
20549         (emit_move_sequence): Remove secondary reload support for floating
20550         point to shift amount amount register copies.
20551         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
20552         amount register copies.
20553         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
20554         register, return false if mode isn't a scalar integer mode.
20555         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
20556
20557 2011-04-08  Richard Guenther  <rguenther@suse.de>
20558
20559         * gimple.c (gimple_call_flags): Remove kludge.
20560
20561 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
20562
20563         * sel-sched.c (sel_region_init): Move call to
20564         sel_setup_region_sched_flags after setup_current_loop_nest.
20565
20566 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
20567
20568         PR rtl-optimization/48272
20569         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
20570         init_insn_reg_pressure_info.  Adjust a caller.
20571         * sched-int.h (init_insn_reg_pressure_info): Declare.
20572         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
20573         when sched-pressure is enabled.
20574
20575 2011-04-08  Richard Guenther  <rguenther@suse.de>
20576
20577         * gimple.c (gimple_set_modified): Do not queue calls to
20578         MODIFIED_NORETURN_CALLS here ...
20579         * tree-ssa-operands.c (update_stmt_operands): ... but here.
20580
20581 2011-04-08  Richard Guenther  <rguenther@suse.de>
20582
20583         PR lto/48467
20584         * toplev.c (lang_dependent_init): Do not open asm_out_file
20585         in WPA mode, nor perform debug machinery initialization.
20586         (finalize): Do not unlink asm_out_file in WPA mode.
20587
20588 2011-04-08  Richard Guenther  <rguenther@suse.de>
20589
20590         * gimple.h (gimple_call_fntype): New function.
20591         (gimple_call_return_type): Use it.
20592         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
20593         * gimple-low.c (gimple_check_call_args): Likewise.
20594         * gimple.c (gimple_call_flags): Likewise.
20595         (gimple_call_arg_flags): Likewise.
20596         (gimple_call_return_flags): Likewise.
20597         * tree-cfg.c (verify_gimple_call): Likewise.
20598         (do_warn_unused_result): Likewise.
20599         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
20600         * value-prof.c (gimple_ic_transform): Fix fndecl check.
20601
20602 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
20603
20604         PR rtl-optimization/48235
20605         * sel-sched.c (code_motion_process_successors): Recompute the last
20606         insn in basic block if control flow changed.
20607         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
20608         Update condition for ilist_remove.
20609
20610 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
20611
20612         PR rtl-optimization/48302
20613         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
20614         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
20615         it to record added preheader blocks.
20616         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
20617         on to sel_add_loop_preheaders.
20618         (sel_region_init): Move call to setup_current_loop_nest after
20619         sel_init_bbs.
20620
20621 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
20622
20623         PR target/48273
20624         * cfgloop.h (loop_has_exit_edges): New helper.
20625         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
20626         non-clonable.
20627         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
20628         that have no exit edges.
20629
20630 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
20631
20632         PR rtl-optimization/48442
20633         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
20634         all callers.  Adjust assert.
20635
20636 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
20637
20638         PR tree-optimization/48377
20639         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
20640         is_packed to true even for types with smaller TYPE_ALIGN than
20641         TYPE_SIZE.
20642
20643 2011-04-08  Richard Guenther  <rguenther@suse.de>
20644
20645         PR bootstrap/48513
20646         * doc/tm.texi: Re-generate.
20647
20648 2011-04-08  Wei Guozhi  <carrot@google.com>
20649
20650         PR target/47855
20651         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
20652         * config/arm/arm.c (arm_attr_length_push_multi): New function.
20653         * config/arm/arm.md (*push_multi): Change the length computation to
20654         call a C function.
20655
20656 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
20657
20658         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
20659         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
20660         * doc/tm.texi: Regenerate.
20661         * system.h (ASM_OUTPUT_BSS): Poison.
20662         * varasm.c (asm_output_bss): Remove function.
20663         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
20664
20665         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
20666         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
20667         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
20668         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
20669         Likewise.
20670         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
20671         Likewise.
20672         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
20673         Likewise.
20674         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
20675
20676 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
20677
20678         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
20679         EnumValue lines.
20680
20681 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
20682
20683         * config/m68k/m68k.c (m68k_handle_option): Don't handle
20684         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
20685         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
20686         OPT_mcpu32.
20687         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
20688         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
20689         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
20690         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
20691         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
20692         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
20693         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
20694         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
20695         options.  Don't map other m68k options manually.  Don't handle
20696         old-style options as canonical.
20697         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
20698         * doc/install.texi (m68k-*-*): Document binutils version requirement.
20699
20700 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
20701
20702         * basic-block.h (force_nonfallthru): Move to...
20703         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
20704         (force_nonfallthru): ...here.
20705         * cfghooks.c (force_nonfallthru): New function.
20706         * cfgrtl.c (force_nonfallthru): Rename into...
20707         (rtl_force_nonfallthru): ...this.
20708         (commit_one_edge_insertion): Do not set AUX field.
20709         (commit_edge_insertions): Do not discover new basic blocks.
20710         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
20711         (cfg_layout_rtl_cfg_hooks): Likewise.
20712         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
20713         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
20714         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
20715
20716 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
20717
20718         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
20719         Remove macros.
20720
20721 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
20722
20723         * config/i386/sse.md: Update copyright year.
20724         (avxcvtvecmode): Remove.
20725         (sse_movhlps): Merge with *avx_movhlps.
20726         (sse_movlhps): Merge with *avx_movlhps.
20727         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
20728         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
20729         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
20730         (sse_loadhps): Merge with *avx_loadhps.
20731         (sse_storelps): Merge with *avx_storelps.
20732         (sse_loadlps): Merge with *avx_loadlps.
20733         (sse_movss): Merge with *avx_movss.
20734         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
20735         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
20736         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
20737         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
20738         (vec_set<mode>_0): Ditto.
20739         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
20740         (sse4_1_insertps): Merge with *avx_insertps.
20741         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
20742         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
20743         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
20744         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
20745         (sse2_storehpd): Merge with *avx_storehpd.
20746         (sse2_loadhpd): Merge with *avx_loadhpd.
20747         (sse2_loadlpd): Merge with *avx_loadlpd.
20748         (sse2_movsd): Merge with *avx_movsd.
20749         (*vec_concatv2df): Merge with *vec_concatv2df.
20750
20751 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
20752
20753         PR debug/48343
20754         * combine.c (combine_instructions): Add last_combined_insn,
20755         update it if insn is after it, pass it to all try_combine calls.
20756         (try_combine): Add last_combined_insn parameter, pass it instead of
20757         i3 to propagate_for_debug.
20758
20759 2011-04-07  Nick Clifton  <nickc@redhat.com>
20760
20761         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
20762         to handle MDR <-> data register transfers.
20763         (movhi_internal): Likewise.
20764
20765 2011-04-07  Alan Modra  <amodra@gmail.com>
20766
20767         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
20768         previous stack info.
20769
20770 2011-04-07  Tom de Vries  <tom@codesourcery.com>
20771
20772         PR target/43920
20773         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
20774         flow_find_cross_jump.  Swap variables to implement backward replacement.
20775         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
20776
20777 2011-04-07  Tom de Vries  <tom@codesourcery.com>
20778
20779         PR target/43920
20780         * cfgcleanup.c (walk_to_nondebug_insn): New function.
20781         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
20782         and bb2.
20783         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
20784         src1 or src2.  Redirect edges to the last basic block.  Update
20785         frequency and count on multiple basic blocks in case of fallthru.
20786
20787 2011-04-07  Tom de Vries  <tom@codesourcery.com>
20788
20789         PR target/43920
20790         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
20791         function.
20792         (old_insns_match_p): Change return type.  Replace return false/true
20793         with return dir_none/dir_both.  Use can_replace_by.
20794         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
20795         direction from dir_p.  Register replacement direction in dir, last_dir
20796         and afterlast_dir.  Handle new return type of old_insns_match_p using
20797         merge_dir.  Return replacement direction in dir_p.
20798         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
20799         return type of old_insns_match_p.
20800         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
20801         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
20802         flow_find_cross_jump.
20803         * basic-block.h (enum replace_direction): New type.
20804         (flow_find_cross_jump): Add parameter to declaration.
20805
20806 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
20807
20808         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
20809         (AVXMODEDCVTPS2DQ): Ditto.
20810         (VEC_FLOAT_MODE): Ditto.
20811         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
20812         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
20813         (<any_logic:code><mode>3): Use VF mode iterator.
20814         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
20815         Use VF mode iterator.
20816         (copysign<mode>3): Use VF mode iterator.
20817         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
20818         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
20819         (*<any_logic:code><MODEF:mode>3): Merge with
20820         *avx_<any_logic:code><MODEF:mode>3.
20821         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
20822         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
20823         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
20824         (avx_cvtdq2ps<avxmodesuffix>): Remove.
20825         (sse2_cvtdq2ps): Use %v modifier.
20826         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
20827         (avx_cvtps2dq<avxmodesuffix>): Remove.
20828         (sse2_cvtps2dq): Use %v modifier.
20829         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
20830         (avx_cvttps2dq<avxmodesuffix>): Remove.
20831         (sse2_cvttps2dq): Use %v modifier.
20832         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
20833         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
20834         (sse2_cvtsd2siq): Fix insn template.
20835         (sse2_cvtsd2siq_2): Ditto.
20836         (sse2_cvttsd2siq): Ditto.
20837         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
20838         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
20839
20840 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
20841
20842         * gcov-io.c: Use GCC Runtime Library Exception.
20843
20844 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
20845
20846         PR debug/48466
20847         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
20848         as base_reg whatever register reg has been eliminated to, instead
20849         of hardcoding STACK_POINTER_REGNUM.
20850
20851 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
20852
20853         * doc/tm.texi.in: Document C target hooks as separate from general
20854         target hooks.
20855         * doc/tm.texi: Regenerate.
20856         * genhooks.c (struct hook_desc): Add docname field.
20857         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
20858         docname field.
20859         (hook_array): Include c-target.def.
20860         (emit_documentation): Use docname field in output.
20861         (emit_init_macros): Take docname argument.  Only emit definitions
20862         for hooks matching docname.
20863         (main): Expect additional arguments in all cases.  Pass argument
20864         to emit_init_macros.
20865         * target.def: Move initial macro definitions and comments to
20866         target-hooks-macros.h.
20867         (gcc_targetcm): Move to c-family/c-target.def.
20868         * target.h (targetcm): Move declaration to c-family/c-target.h.
20869         * targhooks.c (default_handle_c_option): Move to
20870         c-family/c-opts.c.
20871         * targhooks.h (default_handle_c_option): Move declaration to
20872         c-family/c-common.h.
20873         * target-hooks-macros.h: New file.
20874         * config.gcc (target_has_targetcm): Define and use to add to
20875         c_target_objs and cxx_target_objs.
20876         * config/default-c.c: New file.
20877         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
20878         of target.h and target-def.h.
20879         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
20880         (darwin_objc_construct_string, darwin_cfstring_ref_p,
20881         darwin_check_cfstring_format_arg): Make static.
20882         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
20883         TARGET_STRING_OBJECT_REF_TYPE_P,
20884         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
20885         * config/darwin-protos.h (darwin_objc_construct_string,
20886         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
20887         declare.
20888         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
20889         TARGET_STRING_OBJECT_REF_TYPE_P,
20890         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
20891         * config/t-darwin (darwin-c.o): Update dependencies.
20892         * system.h (TARGET_HAS_TARGETCM): Poison.
20893         * Makefile.in (TARGET_H): Update.
20894         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
20895         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
20896         (default-c.o): New target.
20897         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
20898         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
20899         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
20900         c-target.def.
20901         (build/genhooks.o): Update dependencies.
20902
20903 2011-04-06  Richard Guenther  <rguenther@suse.de>
20904
20905         * ipa-inline.c (enum inlining_mode): Remove.
20906         (cgraph_flatten): Use some other token.
20907         (cgraph_edge_early_inlinable_p): New function, split out from ...
20908         (cgraph_perform_always_inlining): New function, split out from ...
20909         (cgraph_decide_inlining_incrementally): ... here.
20910         (cgraph_mark_inline_edge): Adjust.
20911         (cgraph_early_inlining): Re-structure.
20912         (pass_early_inline): Require SSA form.
20913
20914 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
20915             Julian Brown  <julian@codesourcery.com>
20916             Mark Shinwell  <shinwell@codesourcery.com>
20917
20918         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
20919         LO_REGS only for Thumb-1.
20920         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
20921         be used in short instructions when optimising for size on Thumb-2.
20922
20923 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
20924
20925         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
20926         associated with user returns to be preserved.
20927
20928 2011-04-06  Tristan Gingold  <gingold@adacore.com>
20929
20930         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
20931         symbol_queue_size, DBXOUT_DECR_NESTING,
20932         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
20933         if XCOFF_DEBUGGING_INFO.
20934
20935 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
20936
20937         * config/i386/i386.md (attribute isa): New.
20938         (attribute enabled): New.
20939         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
20940         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
20941         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
20942         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
20943         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
20944         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
20945         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
20946         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
20947
20948         * config/i386/sse.md (VF): New mode iterator.
20949         (VF1): Ditto.
20950         (VF2): Ditto.
20951         (VF_128): Ditto.
20952         (SSEMODEF4): Remove.
20953         (attribute sse): Handle V8SF and V4DF modes.
20954         (<absneg:code><mode>2): Use VF mode iterator.
20955         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
20956         mode iterator.
20957         (<plusminus_insn><mode>3): Use VF mode iterator.
20958         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
20959         Use VF mode iterator.
20960         (<sse>_vm<plusminus_insn><mode>3): Merge with
20961         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
20962         (mul<mode>3): Use VF mode iterator.
20963         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
20964         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
20965         mode iterator.
20966         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
20967         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
20968         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
20969         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
20970         mode iterator.
20971         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
20972         Use VF1 mode iterator.
20973         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
20974         (sqrt<VF2:mode>2): New expander.
20975         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
20976         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
20977         and sqrtv2df2.  Use VF mode iterator.
20978         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
20979         mode iterator.
20980         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
20981         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
20982         Use VF1 mode iterator.
20983         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
20984         (<smaxmin:code><mode>3): Use VF mode iterator.
20985         (*<smaxmin:code><mode>3_finite): Merge with
20986         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
20987         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
20988         (<sse>_vm<smaxmin:code><mode>2): Merge with
20989         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
20990         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
20991         mode iterator.
20992         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
20993         mode iterator.
20994         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
20995         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
20996         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
20997         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
20998         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
20999         VF mode iterator.
21000         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
21001         Use VF_128 mode iterator.
21002         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
21003         mode iterator.
21004         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
21005         VF_128 mode iterator.
21006         (vcond<mode>): Use VF mode iterator.
21007         * config/i386/predicates.md (sse_comparison_operator): Merge with
21008         avx_comparison_float_operator.  Do not declare as special_predicate.
21009         * config/i386/i386.c (struct builtin_description): Update for renamed
21010         compare patterns.
21011         (ix86_expand_args_builtin): Ditto.
21012         (ix86_expand_sse_compare_mask): Ditto.
21013
21014 2011-04-06  Richard Guenther  <rguenther@suse.de>
21015
21016         * tree-inline.c (estimate_num_insns): For calls simply account
21017         for all passed arguments and a used return value.
21018
21019 2011-04-06  Richard Guenther  <rguenther@suse.de>
21020
21021         PR tree-optimization/47663
21022         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
21023         call_stmt_time fields.
21024         (cgraph_edge_inlinable_p): Declare.
21025         (cgraph_edge_recursive_p): New inline function.
21026         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
21027         (cgraph_clone_edge): Copy it.
21028         * ipa-inline.c (cgraph_estimate_edge_time): New function.
21029         Account for call stmt time.
21030         (cgraph_estimate_time_after_inlining): Take edge argument.
21031         (cgraph_estimate_edge_growth): Account call stmt size.
21032         (cgraph_estimate_size_after_inlining): Take edge argument.
21033         (cgraph_mark_inline_edge): Adjust.
21034         (cgraph_check_inline_limits): Likewise.
21035         (cgraph_recursive_inlining_p): Remove.
21036         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
21037         (cgraph_decide_recursive_inlining): Take edge argument and
21038         adjust.
21039         (cgraph_decide_inlining_of_small_functions): Do not avoid
21040         diags for recursive inlining here.
21041         (cgraph_flatten): Adjust.
21042         (cgraph_decide_inlining_incrementally): Likewise.
21043         (estimate_function_body_sizes): Remove call cost handling.
21044         (compute_inline_parameters): Initialize caller edge call costs.
21045         (cgraph_estimate_edge_growth): New function.
21046         (cgraph_estimate_growth): Use it.
21047         (cgraph_edge_badness): Likewise.
21048         (cgraph_check_inline_limits): Take an edge argument.
21049         (cgraph_decide_inlining_of_small_functions): Adjust.
21050         (cgraph_decide_inlining): Likewise.
21051         * tree-inline.c (estimate_num_insns): Only account for call
21052         return value if it is used.
21053         (expand_call_inline): Avoid diagnostics on recursive inline
21054         functions here.
21055         * lto-cgraph.c (lto_output_edge): Output edge call costs.
21056         (input_edge): Input edge call costs.
21057
21058 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21059
21060         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
21061
21062 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
21063
21064         * doc/invoke.texi (Spec Files): Fix typo.
21065
21066 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
21067
21068         * profile.c (branch_prob): Move declaration of local variable.  Remove
21069         obsolete ??? comment.  Expand the location explicitly instead of using
21070         the LOCATION_FILE and LOCATION_LINE macros.
21071
21072 2011-04-06  Wei Guozhi  <carrot@google.com>
21073
21074         PR target/47855
21075         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
21076         (arm_cond_branch): Likewise.
21077         (arm_cond_branch_reversed): Likewise.
21078         (arm_jump): Likewise.
21079         (push_multi): Likewise.
21080         * config/arm/constraints.md (Py): New constraint.
21081
21082 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
21083
21084         PR bootstrap/48471
21085         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
21086         Move these...
21087         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
21088         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
21089         #ifdef DBX_DEBUGGING_INFO.
21090
21091 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
21092
21093         PR bootstrap/48403
21094         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
21095         if old and new states differ.
21096
21097 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
21098
21099         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
21100         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
21101         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
21102         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
21103         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
21104         mcfv4e): Use Alias.
21105         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
21106         ColdFire options to -mcpu= options.
21107
21108 2011-04-05  Jeff Law  <law@redhat.com>
21109
21110         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
21111         check if BB is a successor of LOOP->header and return
21112         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
21113
21114 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
21115
21116         * cprop.c (struct reg_use): Remove.
21117         (reg_use_table): Make an array of RTX.
21118         (find_used_regs, constprop_register, local_cprop_pass,
21119         bypass_block): Simplify users of reg_use_table.
21120         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
21121         on one of the uses found by find_used_regs.
21122
21123 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
21124
21125         PR bootstrap/48469
21126         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
21127         declaration.
21128
21129 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
21130
21131         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
21132         as an rtx.
21133         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
21134
21135 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
21136
21137         PR middle-end/48441
21138         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
21139
21140 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
21141
21142         * combine.c: Include obstack.h.
21143         (struct insn_link): Define.
21144         (uid_log_links): Adjust type.
21145         (FOR_EACH_LOG_LINK): New macro.
21146         (insn_link_obstack): Declare.
21147         (alloc_insn_link): Define.
21148         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
21149         type of link variables.
21150         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
21151         (try_combine, record_promoted_values, distribute_notes): Likewise.
21152         (distribute_links): Likewise.  Tweak prototype.
21153         (clear_log_links): Delete.
21154         (adjust_for_new_dest): Call alloc_insn_link.
21155         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
21156
21157 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
21158
21159         * gcse.c (modify_mem_list): Convert to an array of VECs.
21160         (canon_modify_mem_list, compute_transp): Tweak formatting.
21161         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
21162         (load_killed_in_block_p): Likewise.
21163         (record_last_mem_set_info): Likewise.
21164         (clear_modify_mem_tables): Likewise.
21165
21166 2011-04-05  Tom de Vries  <tom@codesourcery.com>
21167
21168         PR middle-end/48461
21169         * function.c (emit_use_return_register_into_block): Only define if
21170         HAVE_return.
21171
21172 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
21173
21174         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
21175
21176 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
21177
21178         * config/rx/rx-opts.h: New.
21179         * config/rx/rx.c (rx_cpu_type): Remove.
21180         (rx_handle_option): Don't assert that global structures are in
21181         use.  Access variables via opts pointer.  Defer most handling of
21182         OPT_mint_register_.  Use error_at.
21183         (rx_option_override): Handle deferred OPT_mint_register_ here.
21184         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
21185         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
21186         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
21187         (rx_cpu_types): New Enum and EnumValue entries.
21188         (mint-register=): Use Defer and use Var accordingly.
21189
21190 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
21191
21192         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
21193         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
21194         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
21195         Move these...
21196         (debug_free_queue, debug_nesting, symbol_queue_index):
21197         ...and these...
21198         * dbxout.c: ...to here.  Make static.
21199
21200 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
21201
21202         * gcse.c (modify_pair): Define.  Define a VEC of it.
21203         (canon_modify_mem_list): Convert to an array of VECs.
21204         (free_insn_expr_list_list): Delete.
21205         (clear_modify_mem_tables): Call VEC_free instead.
21206         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
21207         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
21208         (canon_list_insert, compute_transp): Likewise.
21209
21210 2011-04-05  Tom de Vries  <tom@codesourcery.com>
21211
21212         PR target/43920
21213         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
21214         for size.
21215
21216 2011-04-05  Tom de Vries  <tom@codesourcery.com>
21217
21218         PR target/43920
21219         * function.c (emit_use_return_register_into_block): New function.
21220         (thread_prologue_and_epilogue_insns): Use
21221         emit_use_return_register_into_block.
21222
21223 2011-04-05  Tom de Vries  <tom@codesourcery.com>
21224
21225         PR target/43920
21226         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
21227         insn.
21228
21229 2011-04-05  Tom de Vries  <tom@codesourcery.com>
21230
21231         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
21232
21233 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
21234
21235         * config/arm/arm.md (define_constants for unspec): Replace with
21236         define_c_enum.
21237         (define_constants for unspecv): Replace with define_c_enum.
21238         * config/arm/neon.md (define_constants for unspec): Replace with
21239         define_c_enum.
21240
21241 2011-04-04  Richard Henderson  <rth@redhat.com>
21242
21243         PR bootstrap/48400
21244         * dwarf2out.c (output_line_info): Always emit line info from
21245         at least one section.
21246         (dwarf2out_init): Create text_section_line_info here ...
21247         (set_cur_line_info_table): ... not here.
21248
21249 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
21250
21251         PR target/48380
21252         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
21253         not called.
21254
21255         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
21256
21257 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
21258
21259         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
21260         (expr_equiv_p): Remove.
21261         (insert_set_in_table): Look at <dest, src> pair instead of expr.
21262         (hash_scan_set): Update call to insert_set_in_table.
21263         (dump_hash_table): Dump <dest, src> pair.
21264         (lookup_set): Simplify.  Lookup <dest, src> pair.
21265         (compute_transp): Remove, fold heavily simplified code into...
21266         (compute_local_properties): ...here.  Expect COMP and TRANSP
21267         unconditionally.
21268         (find_avail_set): Take set directly from struct expr.
21269         (find_bypass-set): Likewise.
21270         (bypass_block): Likewise.
21271         (cprop_insn): Likewise.  Remove redundant INSN_P test.
21272
21273         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
21274         checks on form of COND from find_implicit_sets to here.
21275         (find_implicit_sets): Cleanup control flow. Split critical edges
21276         if it exposes implicit sets.  Allocate/resize implicit_sets as
21277         necessary.
21278         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
21279         changed something.  Run df_analyze after find_implicit_sets if any
21280         edges were split.  Do not allocate implicit_sets here.
21281
21282         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
21283         (gcse_obstack): Renamed to cprop_obstack.
21284         (GNEW, GNEWVEC, GNEWVAR): Remove.
21285         (gmalloc): Remove.
21286         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
21287         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
21288         (gcse_alloc): Likewise, and rename to cprop_alloc.
21289         (alloc_gcse_men, free_gcse_mem): Remove.
21290         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
21291         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
21292         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
21293
21294         * cprop.c (oprs_not_set_p): Remove.
21295         (mark_set, mark_clobber): Remove.
21296         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
21297         (reg_not_set_p): New function.
21298         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
21299         (cprop_insn): Likewise.
21300         (cprop_jump): Use FOR_EACH_EDGE.
21301
21302 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
21303
21304         PR bootstrap/48403
21305         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
21306         (rank_for_schedule): Use scheduled_insns vector instead of
21307         last_scheduled_insn.
21308         (ok_for_early_queue_removal): Likewise.
21309         (queue_to_ready): Search forward in nonscheduled_insns_begin if
21310         we have a dbg_cnt.
21311         (choose_ready): Likewise.
21312         (commit_schedule): Use VEC_iterate.
21313         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
21314         a dbg_cnt, use it and ensure the first insn is in the ready list.
21315         (haifa_sched_init): Allocate scheduled_insns.
21316         (sched_extend_ready_list): Don't allocate it; reserve space.
21317         (haifa_sched_finish): Free it.
21318
21319 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
21320
21321         * optc-gen.awk: Always remove type from Variable entry before
21322         recording in var_seen.
21323
21324 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
21325
21326         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
21327         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
21328         call to tidy_fallthru_edges.
21329
21330 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
21331
21332         * doc/options.texi (ToLower): Document.
21333         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
21334         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
21335         * opts.h (cl_option): Add cl_tolower field.
21336         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
21337         arguments with lowercase strings.
21338         * config/rx/rx.opt (mcpu=): Add ToLower.
21339         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
21340         argument.
21341
21342 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
21343
21344         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
21345
21346 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
21347
21348         * config/vax/vax.c: Include reload.h.
21349
21350 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
21351
21352         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
21353         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
21354         (sparc_preferred_reload_class): New function.
21355
21356 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
21357
21358         PR debug/48401
21359         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
21360         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
21361
21362 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
21363
21364         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
21365         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
21366
21367 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
21368
21369         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
21370         (ASM_OUTPUT_ALIGNED_BSS): Define.
21371
21372 2011-04-03  Michael Matz  <matz@suse.de>
21373
21374         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
21375         and next_slot members.
21376         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
21377         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
21378         (lto_streamer_cache_append): Declare.
21379         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
21380         unsigned index, remove offset parameter, ensure that we append
21381         or update existing entries.
21382         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
21383         parameter, update next_slot for append.
21384         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
21385         parameter.
21386         (lto_streamer_cache_insert_at): Likewise.
21387         (lto_streamer_cache_append): New function.
21388         (lto_streamer_cache_lookup): Use unsigned index.
21389         (lto_streamer_cache_get): Likewise.
21390         (lto_record_common_node): Don't test tree_node_can_be_shared.
21391         (preload_common_node): Adjust call to lto_streamer_cache_insert.
21392         (lto_streamer_cache_delete): Don't free offsets member.
21393         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
21394         (lto_output_string_with_length): Use lto_output_data_stream.
21395         (lto_output_tree_header): Remove ix parameter, don't write it.
21396         (lto_output_builtin_tree): Likewise.
21397         (lto_write_tree): Adjust callers to above, don't track and write
21398         offset, write unsigned index.
21399         (output_unreferenced_globals): Don't emit all global vars.
21400         (write_global_references): Use unsigned indices.
21401         (lto_output_decl_state_refs): Likewise.
21402         (write_symbol): Likewise.
21403         * lto-streamer-in.c (lto_input_chain): Move earlier.
21404         (input_function): Use unsigned index.
21405         (input_alias_pairs): Don't read and then ignore all global vars.
21406         (lto_materialize_tree): Remove ix_p parameter, don't read index,
21407         don't pass it back, use lto_streamer_cache_append.
21408         (lto_register_var_decl_in_symtab): Use unsigned index.
21409         (lto_register_function_decl_in_symtab): Likewise.
21410         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
21411         index.
21412         (lto_get_builtin_tree): Don't read index, use
21413         lto_streamer_cache_append.
21414         (lto_read_tree): Adjust call to lto_materialize_tree.
21415
21416         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
21417         don't use function calls in arguments to MIN.
21418
21419         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
21420         twice.
21421
21422         * gimple.c (gimple_type_leader_entry): Mark deletable.
21423
21424 2011-04-03  Alan Modra  <amodra@gmail.com>
21425
21426         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
21427
21428 2011-04-03  Michael Matz  <matz@suse.de>
21429
21430         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
21431         an integer.
21432         * tree.h (tree_decl_non_common.vindex): Adjust comment.
21433
21434 2011-04-03  Michael Matz  <matz@suse.de>
21435
21436         * cgraphbuild.c (record_reference): Canonicalize constructor values.
21437         * gimple-fold.c (canonicalize_constructor_val): Accept being called
21438         without function context.
21439         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
21440         current_function_decl and cfun.
21441
21442 2011-04-03  Michael Matz  <matz@suse.de>
21443
21444         * tree.c (decl_init_priority_insert): Don't create entry for
21445         default priority.
21446         (decl_fini_priority_insert): Ditto.
21447         (fields_compatible_p, find_compatible_field): Remove.
21448         * tree.h (fields_compatible_p, find_compatible_field): Remove.
21449         * gimple.c (gimple_compare_field_offset): Adjust block comment.
21450
21451 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
21452
21453         * combine.c (try_combine): Remove useless local variable.
21454
21455 2011-04-03  Richard Guenther  <rguenther@suse.de>
21456             Ira Rosen  <ira.rosen@linaro.org>
21457
21458         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
21459         non-variable offsets and compare the remaining bases of the two
21460         accesses instead of looking for exact same data-ref.
21461
21462 2011-04-02  Kai Tietz  <ktietz@redhat.com>
21463
21464         PR target/48416
21465         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
21466
21467         * i386.c (ix86_is_msabi_thiscall): New helper function.
21468         (ix86_is_type_thiscall): New helper function.
21469         (ix86_comp_type_attributes): Handle thiscall for method-functions
21470         special.
21471         (init_cumulative_args): Likewise.
21472         (find_drap_reg): Likewise.
21473         (ix86_static_chain): Likewise.
21474         (x86_this_parameter): Likewise.
21475         (x86_output_mi_thunk): Likewise.
21476
21477 2011-04-01  Olivier Hainque  <hainque@adacore.com>
21478             Nicolas Setton  <setton@adacore.com>
21479             Eric Botcazou  <ebotcazou@adacore.com>
21480
21481         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
21482         (add_gnat_descriptive_type_attribute): New function.
21483         (gen_array_type_die): Call it.
21484         (gen_enumeration_type_die): Likewise.
21485         (gen_struct_or_union_type_die): Likewise.
21486         (modified_type_die): Likewise.
21487         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
21488         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
21489         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
21490
21491 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
21492
21493         PR bootstrap/48148
21494         * dwarf2out.c (resolve_addr): Don't call force_decl_die
21495         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
21496
21497         Revert:
21498         2011-03-17  Richard Guenther  <rguenther@suse.de>
21499
21500         PR bootstrap/48148
21501         * lto-cgraph.c (input_overwrite_node): Clear the abstract
21502         origin for decls in other ltrans units.
21503         (input_varpool_node): Likewise.
21504
21505 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
21506
21507         PR middle-end/48335
21508         * expr.c (expand_assignment): Handle all possibilities
21509         if TO_RTX is CONCAT.
21510         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
21511         (store_split_bit_field): If SUBREG_REG (op0) or
21512         op0 itself has smaller mode than word, return it
21513         for offset 0 and const0_rtx for out-of-bounds stores.
21514         If word is const0_rtx, skip it.
21515
21516 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
21517
21518         * config/h8300/h8300.c (print_operand_address): Rename to...
21519         (h8300_print_operand_address): ...this. Make static. Adjust comments.
21520         Call h8300_print_operand and h8300_print_operand_address instead of
21521         print_operand and print_operand_address. Declare.
21522         (print_operand): Renake to...
21523         (h8300_print_operand): ...this. Make static. Adjust comments.
21524         Call h8300_print_operand instead of print_operand. Declare.
21525         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
21526         (h8300_register_move_cost): Likewise.
21527         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
21528         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
21529         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
21530         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
21531         * config/h8300/h8300-protos.h (print_operand): Delete.
21532         (print_operand_address): Delete.
21533
21534 2011-04-01  Richard Henderson  <rth@redhat.com>
21535
21536         PR 48400
21537         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
21538         in strict mode before dwarf4.  Re-order tests to early out
21539         before switching sections.
21540
21541 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
21542
21543         * config/h8300/constraints.md: New file.
21544         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
21545         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
21546         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
21547         * config/h8300/predicates.md (bit_operand): Likewise.
21548         (incdec_operand): Use satisfies_constraint_M and
21549         satisfies_constraint_O.  Don't use C code block.
21550         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
21551         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
21552         (compute_mov_length): Use satisfies_constraint_G.
21553         (fix_bit_operand): Use satisfies_constraint_U.
21554         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
21555         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
21556         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
21557         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
21558         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
21559         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
21560         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
21561         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
21562         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
21563         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
21564         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
21565         (EXTRA_MEMORY_CONSTRAINT): Delete.
21566
21567 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
21568             Michael Meissner  <meissner@linux.vnet.ibm.com>
21569
21570         PR target/48262
21571         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
21572         operands, as per the specifications.
21573
21574         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
21575         (vec_extract_evenv4sf): Ditto.
21576         (vec_extract_evenv8hi): Ditto.
21577         (vec_extract_evenv16qi): Ditto.
21578         (vec_extract_oddv4si): Ditto.
21579
21580 2011-03-31  Mark Wielaard  <mjw@redhat.com>
21581
21582         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
21583         high_pc attribute if the CU has no associated code. Only output
21584         DW_AT_entry_pc for CU if not generating strict dwarf and
21585         dwarf_version < 4.
21586
21587 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
21588
21589         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
21590         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
21591         out of ...
21592         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
21593         * final.c (final_start_function): Call the new function rather
21594         than using a NULL argument for dwarf2out_frame_debug.
21595
21596         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
21597         that contains the prologue.
21598
21599         * haifa-sched.c (queue_insn): New arg REASON.  All callers
21600         changed.  Print it in debugging output.
21601
21602         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
21603
21604         * sched-ebb.c (begin_schedule_ready): Remove second argument.
21605         Split most of the code into...
21606         (begin_move_insn): ... here.  New function.
21607         (ebb_sched_info): Add a pointer to it.
21608         * haifa-sched.c (scheduled_insns): New static variable.
21609         (sched_extend_ready_list): Allocate it.
21610         (schedule_block): Use it to record the order of scheduled insns.
21611         Perform RTL changes to move insns only after all scheduling
21612         decisions have been made.
21613         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
21614         begin_move_insn field.
21615         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
21616         * sched-int.h (struct haifa_sched_info): Remove second argument
21617         from begin_schedule_ready hook.  Add new member begin_move_insn.
21618         * sched-rgn.c (begin_schedule_ready): Remove second argument.
21619         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
21620
21621         * haifa-sched.c (prune_ready_list): New function, broken out of
21622         schedule_block.
21623         (schedule_block): Use it.
21624
21625 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21626
21627         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
21628
21629 2011-04-01  Kai Tietz  <ktietz@redhat.com>
21630
21631         * config.gcc (*-*-mingw*): Allow as option the
21632         posix threading model.
21633         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
21634         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
21635         definition.
21636         (CPP_SPEC): Add pthread/no-pthread handling.
21637         (LIB_SPEC): Likewise.
21638         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
21639         (LIB_SPEC): Likewise.
21640         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
21641         flag to pass -pthread option for shared libgcc build.
21642         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
21643         for shared libgcc build.
21644         * config/i386/t-mingw-pthread: New file.
21645         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
21646         New define to enable use of library pthread by default.
21647         * config/i386/mingw.opt (pthread): New driver option.
21648         (no-pthread): New driver option.
21649         * config/i386/cygming.opt: Make sure trailing empty line is retained.
21650         * config/i386/mingw-w64.opt: Likewise.
21651
21652 2011-04-01  Gary Funck  <gary@intrepid.com>
21653
21654         * c-decl.c (grokdeclarator): Fix formatting.
21655
21656 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
21657
21658         * expr.c (emit_block_move_via_movmem): Use n_generator_args
21659         instead of n_operands.
21660         (set_storage_via_setmem): Likewise.
21661         * optabs.c (maybe_gen_insn): Likewise.
21662         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
21663         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
21664         (mips_expand_builtin_direct): Likewise.
21665         * config/spu/spu.c (expand_builtin_args): Likewise.
21666
21667 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
21668
21669         * recog.h (insn_data_d): Add n_generator_args.
21670         * genoutput.c (data): Likewise.
21671         (output_insn_data): Print it.
21672         (max_opno, num_dups): Delete.
21673         (scan_operands): Just fill in "d->operand[...]".
21674         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
21675
21676 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
21677
21678         * gensupport.h (pattern_stats): New structure.
21679         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
21680         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
21681         (max_operand_1, max_operand_vec): Delete.
21682         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
21683
21684 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
21685
21686         * emit-rtl.c (emit_pattern_after_setloc): New function.
21687         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
21688         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
21689         (emit_pattern_after): New function.
21690         (emit_insn_after, emit_jump_insn_after): Call it.
21691         (emit_call_insn_after, emit_debug_insn_after): Likewise.
21692         (emit_pattern_before_setloc): New function.
21693         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
21694         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
21695         Likewise.
21696         (emit_pattern_before): New function.
21697         (emit_insn_before, emit_jump_insn_before): Call it.
21698         (emit_call_insn_before, emit_debug_insn_before): Likewise.
21699
21700 2011-03-31  Richard Henderson  <rth@redhat.com>
21701
21702         * dwarf2out.c (dw_separate_line_info_ref): Remove.
21703         (dw_separate_line_info_entry): Remove.
21704         (enum dw_line_info_opcode): New.
21705         (dw_line_info_entry): Use it.
21706         (dw_line_info_table, dw_line_info_table_p): New.
21707         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
21708         (line_info_table, line_info_label_num): Remove.
21709         (line_info_table_in_use): Remove.
21710         (separate_line_info_table): Remove.
21711         (separate_line_info_table_allocated): Remove.
21712         (separate_line_info_table_in_use): Remove.
21713         (LINE_INFO_TABLE_INCREMENT): Remove.
21714         (line_info_label_num): New.
21715         (cur_line_info_table): New.
21716         (text_section_line_info, cold_text_section_line_info): New.
21717         (separate_line_info): New.
21718         (SEPARATE_LINE_CODE_LABEL): Remove.
21719         (print_dwarf_line_table): Remove.
21720         (debug_dwarf): Don't dump it.
21721         (output_one_line_info_table): New.
21722         (output_line_info): Use it.
21723         (new_line_info_table): New.
21724         (set_cur_line_info_table): New.
21725         (dwarf2out_switch_text_section): Use it.
21726         (dwarf2out_begin_function): Likewise.
21727         (push_dw_line_info_entry): New.
21728         (dwarf2out_source_line): Rewrite for new line info tables.
21729         (dwarf2out_init): Remove dead initailizations.
21730
21731 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
21732
21733         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
21734         various flags.
21735         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
21736         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
21737         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
21738         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
21739         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
21740         * opt-functions.awk (flag_init, switch_bit_fields): New.
21741         (switch_flags): Don't handle flags moved to bit-fields.  Don't
21742         generate CL_MISSING_OK or CL_SAVE.
21743         * optc-gen.awk: Update to generate bit-field output as well as
21744         flags field.
21745         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
21746         bit-field instead of CL_REJECT_DRIVER flag.
21747         * opts-common.c (generate_canonical_option,
21748         decode_cmdline_option): Use bit-fields instead of CL_* flags.
21749         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
21750         instead of CL_REJECT_NEGATIVE flag.
21751         * toplev.c (print_switch_values): Use cl_report bit-field instead
21752         of CL_REPORT flag.
21753
21754 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
21755
21756         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
21757         a zero minimum index only if it is redundant.
21758
21759 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
21760
21761         PR rtl-optimization/48381
21762         * ira-color.c (assign_hard_reg): Use hard reg set intersection
21763         instead of ira_class_hard_reg_index for calculating conflicting
21764         hard registers.
21765
21766 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
21767
21768         * cprop.c: Clean up hash table building.
21769         (reg_avail_info): Remove.
21770         (oprs_available_p): Remove.
21771         (record_last_reg_set_info): Remove.
21772         (record_last_set_info): Remove.
21773         (reg_available_p): New function.
21774         (gcse_constant_p): Do not treat unfolded conditions as constants.
21775         (make_set_regs_unavailable): New function.
21776         (hash_scan_set): Simplify with new reg_available_p.
21777         (compute_hash_table_work): Traverse insns stream only once.
21778         Do not compute reg_avail_info. Traverse insns in reverse order.
21779         Record implicit sets after recording explicit sets from the block.
21780
21781 2011-03-31  Michael Matz  <matz@suse.de>
21782
21783         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
21784
21785 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
21786
21787         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
21788         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
21789         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
21790         (h8300_mode_dependent_address_p): New function.
21791         (h8300_get_index): Make static.
21792
21793 2011-03-31  Jeff Law  <law@redhat.com>
21794
21795         * reload1.c (elimination_effects): Fix typo in recent change.
21796
21797         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
21798         typo potentially leading to null pointer dereference.
21799
21800         * caller-save.c (new_saved_hard_reg): Eliminate return value.
21801         (setup_save_areas): Corresponding changes to avoid useless
21802         assignments.
21803
21804         * jump.c (reversed_comparison_code_parts): Avoid successive return
21805         statements when REVERSE_CONDITION is defined.
21806
21807         * expr.c (expand_assignment): Avoid useless assignments.
21808         (expand_expr_real_1): Likewise.
21809         (expand_expr_real_2): Avoid useless statements.
21810
21811         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
21812
21813         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
21814
21815         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
21816         statements.
21817
21818         * stmt.c (expand_expr_stmt): Avoid useless assignment.
21819
21820 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
21821
21822         PR target/47109
21823         * doc/tm.texi.in (TARGET_VERSION): Remove.
21824         * doc/tm.texi: Regenerate.
21825         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
21826         * collect2.c (main): Don't use TARGET_VERSION.
21827         * mips-tdump.c (main): Don't use TARGET_VERSION.
21828         * mips-tfile.c (main): Don't use TARGET_VERSION.
21829         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
21830         * config/rs6000/vxworksae.h: Remove.
21831         * config/alpha/alpha.h (TARGET_VERSION): Remove.
21832         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
21833         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
21834         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
21835         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
21836         * config/arm/arm.h (TARGET_VERSION): Remove.
21837         * config/arm/coff.h (TARGET_VERSION): Remove.
21838         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
21839         * config/arm/elf.h (TARGET_VERSION): Remove.
21840         * config/arm/freebsd.h (TARGET_VERSION): Remove.
21841         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
21842         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
21843         * config/arm/pe.h (TARGET_VERSION): Remove.
21844         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
21845         * config/arm/semi.h (TARGET_VERSION): Remove.
21846         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
21847         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
21848         * config/arm/vxworks.h (TARGET_VERSION): Remove.
21849         * config/avr/avr.h (TARGET_VERSION): Remove.
21850         * config/bfin/bfin.h (TARGET_VERSION): Remove.
21851         * config/fr30/fr30.h (TARGET_VERSION): Remove.
21852         * config/frv/frv.h (TARGET_VERSION): Remove.
21853         * config/h8300/h8300.h (TARGET_VERSION): Remove.
21854         * config/i386/cygwin.h (TARGET_VERSION): Remove.
21855         * config/i386/darwin.h (TARGET_VERSION): Remove.
21856         * config/i386/darwin64.h (TARGET_VERSION): Remove.
21857         * config/i386/djgpp.h (TARGET_VERSION): Remove.
21858         * config/i386/freebsd.h (TARGET_VERSION): Remove.
21859         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
21860         * config/i386/gnu.h (TARGET_VERSION): Remove.
21861         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
21862         * config/i386/i386elf.h (TARGET_VERSION): Remove.
21863         * config/i386/linux.h (TARGET_VERSION): Remove.
21864         * config/i386/linux64.h (TARGET_VERSION): Remove.
21865         * config/i386/lynx.h (TARGET_VERSION): Remove.
21866         * config/i386/mingw32.h (TARGET_VERSION): Remove.
21867         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
21868         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
21869         * config/i386/netware.h (TARGET_VERSION): Remove.
21870         * config/i386/nto.h (TARGET_VERSION): Remove.
21871         * config/i386/openbsd.h (TARGET_VERSION): Remove.
21872         * config/i386/vxworks.h (TARGET_VERSION): Remove.
21873         * config/ia64/elf.h (TARGET_VERSION): Remove.
21874         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
21875         * config/ia64/hpux.h (TARGET_VERSION): Remove.
21876         * config/ia64/linux.h (TARGET_VERSION): Remove.
21877         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
21878         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
21879         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
21880         * config/lm32/lm32.h (TARGET_VERSION): Remove.
21881         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
21882         * config/m32c/m32c.h (TARGET_VERSION): Remove.
21883         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
21884         * config/m32r/m32r.h (TARGET_VERSION): Remove.
21885         * config/m68k/linux.h (TARGET_VERSION): Remove.
21886         * config/m68k/m68k.h (TARGET_VERSION): Remove.
21887         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
21888         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
21889         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
21890         * config/mep/mep.h (TARGET_VERSION): Remove.
21891         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
21892         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
21893         * config/mips/iris6.h (MACHINE_TYPE): Remove.
21894         * config/mips/linux.h (TARGET_VERSION): Remove.
21895         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
21896         * config/mips/vxworks.h (TARGET_VERSION): Remove.
21897         * config/mmix/mmix.h (TARGET_VERSION): Remove.
21898         * config/mn10300/linux.h (TARGET_VERSION): Remove.
21899         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
21900         * config/pa/pa.h (TARGET_VERSION): Remove.
21901         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
21902         * config/picochip/picochip.h (TARGET_VERSION): Remove.
21903         * config/rs6000/aix.h (TARGET_VERSION): Remove.
21904         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
21905         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
21906         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
21907         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
21908         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
21909         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
21910         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
21911         * config/rs6000/linux.h (TARGET_VERSION): Remove.
21912         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
21913         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
21914         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
21915         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
21916         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
21917         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
21918         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
21919         * config/s390/linux.h (TARGET_VERSION): Remove.
21920         * config/s390/s390.h (TARGET_VERSION): Remove.
21921         * config/s390/tpf.h (TARGET_VERSION): Remove.
21922         * config/score/score.h (TARGET_VERSION): Remove.
21923         * config/sh/linux.h (TARGET_VERSION): Remove.
21924         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
21925         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
21926         * config/sh/sh.h (TARGET_VERSION): Remove.
21927         * config/sh/sh64.h (TARGET_VERSION): Remove.
21928         * config/sh/superh.h (TARGET_VERSION): Remove.
21929         * config/sh/vxworks.h (TARGET_VERSION): Remove.
21930         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
21931         * config/sparc/linux.h (TARGET_VERSION): Remove.
21932         * config/sparc/linux64.h (TARGET_VERSION): Remove.
21933         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
21934         TARGET_NAME32, TARGET_NAME): Remove.
21935         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
21936         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
21937         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
21938         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
21939         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
21940         * config/spu/spu.h (TARGET_VERSION): Remove.
21941         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
21942         * config/v850/v850.h (TARGET_VERSION): Remove.
21943         * config/vax/linux.h (TARGET_VERSION): Remove.
21944         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
21945         * config/xtensa/elf.h (TARGET_VERSION): Remove.
21946         * config/xtensa/linux.h (TARGET_VERSION): Remove.
21947
21948 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
21949
21950         PR target/48142
21951         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
21952         frame-related from frame-unrelated adjustments to the stack pointer.
21953
21954 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
21955
21956         * common.opt (fdebug-types-section): Move earlier.
21957         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
21958
21959 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
21960
21961         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
21962         var.
21963
21964 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
21965
21966         * tree.h (CASE_CHAIN): Define.
21967         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
21968         (gimple_redirect_edge_and_branch): Likewise.
21969
21970 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
21971
21972         PR middle-end/48367
21973         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
21974         calculation.
21975
21976 2011-03-30  Jeff Law  <law@redhat.com>
21977
21978         * PR bootstrap/48371
21979         * reload1.c (reload): Fix botch in last change.
21980
21981         * reload.h (struct reload): Fix typo introduced in last change.
21982
21983 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
21984
21985         * config/arm/arm.opt (mhard-float, msoft-float): Mark
21986         Undocumented.  Remove help text.
21987         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
21988         -mhard-float.
21989
21990 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
21991
21992         * doc/options.texi (NegativeAlias): Document.
21993         (Alias): Mention NegativeAlias.
21994         * opt-functions.awk: Handle NegativeAlias.
21995         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
21996         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
21997         * opts.h (CL_NEGATIVE_ALIAS): Define.
21998         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
21999         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
22000         OPT_mspe_.
22001         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
22002         Alias entries.
22003         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
22004         mno-spe and mno-isel instead of mspe=no and -misel=no.
22005
22006 2011-03-29  Mark Wielaard  <mjw@redhat.com>
22007
22008         * common.opt (fdebug-types-section): New flag.
22009         * doc/invoke.texi: Document new -fno-debug-types-section flag.
22010         * dwarf2out.c (use_debug_types): New define.
22011         (struct die_struct): Mark die_id with GTY desc use_debug_types.
22012         (print_die): Guard output of type unit signatures using
22013         use_debug_types.
22014         (build_abbrev_table): Replace assert of dwarf_version >= 4
22015         with assert on use_debug_types.
22016         (size_of_die): Likewise.
22017         (unmark_dies): Likewise.
22018         (value_format): Decide AT_ref_external form on use_debug_types.
22019         (output_die): Replace dwarf_version version check guard with
22020         use_debug_types where appropriate.
22021         (modified_type_die): Likewise.
22022         (gen_reference_type_die): Likewise.
22023         (dwarf2out_start_source_file): Likewise.
22024         (dwarf2out_end_source_file): Likewise.
22025         (prune_unused_types_walk_attribs): Likewise.
22026         (dwarf2out_finish): Likewise.
22027
22028 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
22029
22030         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
22031
22032 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
22033
22034         PR rtl-optimization/48332
22035         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
22036         mode of input operand N and modeN to its actual mode.
22037
22038 2011-03-30  Jeff Law  <law@redhat.com>
22039
22040         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
22041         define accessor macro.
22042         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
22043         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
22044         (reg_equiv_init): Likewise.
22045         (reg_equivs_size): New variable.
22046         (reg_equiv_init_size): Remove.
22047         (allocate_initial_values): Move prototype to here from....
22048         * integrate.h (allocate_initial_values): Remove prototype.
22049         * integrate.c: Include reload.h.
22050         (allocate_initial_values): Corresponding changes.
22051         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
22052         (fix_reg_equiv_init, no_equiv): Corresponding changes.
22053         (update_equiv_regs): Corresponding changes.
22054         (ira): Corresponding changes.
22055         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
22056         (push_secondary_reload): Corresponding changes.
22057         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
22058         (make_memloc, find_reloads_address): Corresponding changes.
22059         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
22060         (find_reloads_address_1): Corresponding changes.
22061         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
22062         (refers_to_regno_for_reload_p): Corresponding changes.
22063         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
22064         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
22065         * reload1.c: Include ggc.h.
22066         (grow_reg_equivs): New function.
22067         (replace_pseudos_in, reload): Corresponding changes.
22068         (calculate_needs_all_insns, alter_regs): Corresponding changes.
22069         (eliminate_regs_1, elimination_effects): Corresponding changes.
22070         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
22071         (delete_output_reload): Likewise.
22072         * caller-save.c (mark_referenced_regs): Corresponding changes.
22073         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
22074         * frv/predicates.md (frv_load_operand): Corresponding changes.
22075         * microblaze/microblaze.c (double_memory_operand): Corresponding
22076         changes.
22077         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
22078         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
22079         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
22080         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
22081         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
22082         changes.
22083         * pa/pa.c (emit_move_sequence): Corresponding changes.
22084         * vax/vax.c (nonindexed_address_p): Corresponding changes.
22085
22086 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
22087
22088         PR target/47551
22089         * config/arm/arm.c (coproc_secondary_reload_class): Handle
22090         structure modes.  Don't check neon_vector_mem_operand for
22091         vector or structure modes.
22092
22093 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
22094             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
22095
22096         PR target/43590
22097         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
22098         operand 1 and reshuffle the operands to match.
22099         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
22100
22101 2011-03-30  Christian Schüler  <cschueler@gmx.de>
22102
22103         PR driver/48208
22104         * config/c.opt (F): Added 'Driver' to -F option.
22105
22106         PR driver/48260
22107         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
22108           handler function.
22109         * config/darwin.opt: Added '-arch' option.
22110
22111 2011-03-30  Nick Clifton  <nickc@redhat.com>
22112
22113         * config/rx/rx.md: Add peepholes and patterns to combine
22114         extending loads and simple arithmetic instructions.
22115         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
22116         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
22117         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
22118         modes to use pre-decrement and post-increment addressing.
22119         (rx_is_restricted_memory_address): Add range checking of REG+INT
22120         addresses.
22121         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
22122         (rx_memory_move_cost): Adjust cost of stores.
22123         (rx_adjust_insn_length): New function.
22124
22125 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
22126
22127         PR c/48305
22128         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
22129         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
22130         matching arg00/arg01 types.
22131
22132 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
22133
22134         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
22135         last_location to UNKNOWN_LOCATION.
22136
22137 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
22138
22139         PR target/48349
22140         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
22141         FLOAT_SSE_REGS.
22142
22143 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
22144             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22145
22146         PR bootstrap/48337
22147         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
22148         Init(PROCESSOR_V7).
22149         (sparc_cpu): Likewise.
22150         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
22151         PROCESSOR_V7.
22152
22153 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
22154
22155         PR target/48336
22156         PR middle-end/48342
22157         PR rtl-optimization/48345
22158         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
22159         hard regs for given mode from profitable regs when doing secondary
22160         allocation.
22161
22162 2011-03-29  Jeff Law  <law@redhat.com>
22163
22164         PR bootstrap/48327
22165         * tree-ssa-threadupdate.c (struct redirection_data): Remove
22166         do_not_duplicate field.
22167         (lookup_redirection_data): Corresponding changes.
22168         (create_duplicates): Always create a template block.
22169         (redirect_edges): Remove code which reused the original block
22170         when it was going to become unreachable code.
22171         (thread_block): Don't set do_not_duplicate field.
22172
22173 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
22174
22175         * lto-opts.c (register_user_option_p, lto_register_user_option):
22176         Make type argument unsigned.
22177         * lto-streamer.h (lto_register_user_option): Make type argument
22178         unsigned.
22179         * opth-gen.awk: Make CL_* macros unsigned.
22180         * opts-common.c (find_opt): Make lang_mask argument unsigned.
22181         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
22182         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
22183         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
22184         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
22185         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
22186         (find_opt): Make lang_mask argument unsigned.
22187
22188 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
22189
22190         PR rtl-optimization/48331
22191         PR rtl-optimization/48334
22192         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
22193         for any used algorithm.
22194
22195 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
22196
22197         * ira-conflicts.c (build_object_conflicts): Add unused attribute
22198         to parent_max.
22199
22200 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
22201
22202         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
22203         (alpha_option_override): Don't set alpha_sr_alias_set.
22204         (emit_frame_store_1): Use gen_frame_mem rather than calling
22205         set_mem_alias_set.
22206         (alpha_expand_epilogue): Ditto.
22207
22208 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
22209
22210         PR tree-optimization/48290
22211         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
22212         vectorization, check that relevant phis in the basic block after
22213         the inner loop are really inner loop's exit phis.
22214
22215 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
22216
22217         PR debug/48190
22218         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
22219         (cached_dw_loc_list_def): New structure.
22220         (cached_dw_loc_list): New typedef.
22221         (cached_dw_loc_list_table): New variable.
22222         (cached_dw_loc_list_table_hash): New function.
22223         (cached_dw_loc_list_table_eq): Likewise.
22224         (add_location_or_const_value_attribute): Take a bool cache_p.
22225         Cache the list when the parameter is true.
22226         (gen_formal_parameter_die): Update caller.
22227         (gen_variable_die): Likewise.
22228         (dwarf2out_finish): Likewise.
22229         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
22230         while generating debug info for the decl.
22231         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
22232         (dwarf2out_init): Initialize cached_dw_loc_list_table.
22233         (resolve_addr): Cache the result of resolving a chain of
22234         location lists.
22235
22236 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
22237
22238         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
22239         conflict object hard regset nodes have intersecting hard reg sets.
22240
22241         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
22242         after regstat_init_n_sets_and_refs.
22243
22244         * ira.c: Add more comments at the top.
22245         (setup_stack_reg_pressure_class, setup_pressure_classes):
22246         Add comments how we compute the register pressure classes.
22247         (setup_allocno_and_important_classes): Add more comments.
22248         (setup_class_translate_array, reorder_important_classes)
22249         (setup_reg_class_relations): Add comments.
22250
22251         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
22252         start of the file.
22253
22254         * ira-color.c: Add 2011 to the Copyright line.
22255         (assign_hard_reg):  Add more comments.
22256         (improve_allocation): Ditto.
22257
22258         * ira-costs.c: Add 2011 to the Copyright line.
22259         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
22260         comments.
22261         (setup_regno_cost_classes_by_mode): Ditto.
22262
22263         Initial patches from ira-improv branch:
22264
22265         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
22266
22267         * ira-build.c (ira_create_object): Remove initialization of
22268         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
22269         (ira_create_allocno): Remove initialization of
22270         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
22271         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
22272         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
22273         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
22274         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
22275         Initialize ALLOCNO_ADD_DATA.
22276         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
22277         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
22278         ALLOCNO_REG.
22279         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
22280         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
22281
22282         * ira.c (ira_reallocate): Remove.
22283         (setup_pressure_classes): Call
22284         ira_init_register_move_cost_if_necessary.  Use
22285         ira_register_move_cost instead of ira_get_register_move_cost.
22286         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
22287         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
22288
22289         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
22290         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
22291         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
22292         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
22293         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
22294         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
22295         Fix formatting.
22296         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
22297         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
22298         (struct allocno_color_data): New.
22299         (allocno_color_data_t): New typedef.
22300         (allocno_color_data): New definition.
22301         (ALLOCNO_COLOR_DATA): New macro.
22302         (struct object_color_data): New.
22303         (object_color_data_t): New typedef.
22304         (object_color_data): New definition.
22305         (OBJECT_COLOR_DATA): New macro.
22306         (update_copy_costs, calculate_allocno_spill_cost): Call
22307         ira_init_register_move_cost_if_necessary.  Use
22308         ira_register_move_cost instead of ira_get_register_move_cost.
22309         (move_spill_restore, update_curr_costs): Ditto.
22310         (allocno_spill_priority): Make it inline.
22311         (color_pass): Allocate and free allocno_color_dat and object_color_data.
22312         (struct coalesce_data, coalesce_data_t): New.
22313         (allocno_coalesce_data): New definition.
22314         (ALLOCNO_COALESCE_DATA): New macro.
22315         (merge_allocnos, coalesced_allocno_conflict_p): Use
22316         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
22317         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
22318         (coalesce_allocnos): Ditto.
22319         (setup_coalesced_allocno_costs_and_nums): Ditto.
22320         (collect_spilled_coalesced_allocnos): Ditto.
22321         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
22322         (setup_slot_coalesced_allocno_live_ranges): Ditto.
22323         (coalesce_spill_slots): Ditto.
22324         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
22325         free allocno_coalesce_data.
22326
22327         * ira-conflicts.c: Fix formatting.
22328         (process_regs_for_copy): Call
22329         ira_init_register_move_cost_if_necessary.  Use
22330         ira_register_move_cost instead of ira_get_register_move_cost.
22331         (build_object_conflicts): Optimize.
22332
22333         * ira-costs.c (record_reg_classes): Optimize.  Call
22334         ira_init_register_move_cost_if_necessary.  Use
22335         ira_register_move_cost, ira_may_move_in_cost, and
22336         ira_may_move_out_cost instead of ira_get_register_move_cost and
22337         ira_get_may_move_cost.
22338         (record_address_regs): Ditto.
22339         (scan_one_insn): Optimize.
22340         (find_costs_and_classes): Optimize.
22341         (process_bb_node_for_hard_reg_moves): Call
22342         ira_init_register_move_cost_if_necessary.  Use
22343         ira_register_move_cost instead of ira_get_register_move_cost.
22344
22345         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
22346         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
22347         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
22348         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
22349         definitions.
22350         (ira_initiate_emit_data, ira_finish_emit_data)
22351         (create_new_allocno): New functions.
22352         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
22353         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
22354         Use ira_register_move_cost instead of ira_get_register_move_cost.
22355
22356         * ira-int.h: Fix some comments.
22357         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
22358         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
22359         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
22360         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
22361         add_data.
22362         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
22363         bitfield after mode.  Make hard_regno a short int.  Make
22364         hard_regno short.  Remove first_coalesced_allocno and
22365         next_coalesced_allocno.  Move mem_optimized_dest_p,
22366         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
22367         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
22368         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
22369         temp, colorable_p.  Add new member add_data.
22370         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
22371         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
22372         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
22373         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
22374         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
22375         (ALLOCNO_ADD_DATA): New macro.
22376         (ira_emit_data_t): New typedef.
22377         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
22378         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
22379         from struct ira_allocno.
22380         (ALLOCNO_EMIT_DATA): New macro.
22381         (ira_allocno_emit_data, allocno_emit_reg): New.
22382         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
22383         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
22384         (OBJECT_ADD_DATA): New macro.
22385         (ira_reallocate): Remove.
22386         (ira_initiate_emit_data, ira_finish_emit_data): New.
22387         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
22388         (ira_init_register_move_cost_if_necessary): New.
22389         (ira_object_conflict_iter_next): Merge into
22390         ira_object_conflict_iter_cond.
22391         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
22392
22393         * ira-live.c (process_single_reg_class_operands): Call
22394         ira_init_register_move_cost_if_necessary.  Use
22395         ira_register_move_cost instead of ira_get_register_move_cost.
22396
22397         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
22398
22399         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
22400
22401         * ira-costs.c: Fix formatting.
22402         (cost_classes, cost_classes_num): Remove.
22403         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
22404         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
22405         (cost_classes_del, cost_classes_htab): New.
22406         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
22407         (initiate_regno_cost_classes, setup_cost_classes): New.
22408         (setup_regno_cost_classes_by_aclass): New.
22409         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
22410         (record_reg_classes): Use regno_cost_classes instead of
22411         cost_classes.  Move checking opposite operand up.
22412         (record_address_regs): Use regno_cost_classes
22413         instead of cost_classes.
22414         (scan_one_insn): Ditto.  Use always general register.
22415         (print_allocno_costs): Use regno_cost_classes instead of
22416         cost_classes.
22417         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
22418         (find_costs_and_classes): Set up cost classes for each registers.
22419         Use also their mode for this.  Use regno_cost_classes instead of
22420         cost_classes.
22421         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
22422         cost_classes.
22423         (free_ira_costs, ira_init_costs): Don't use cost_classes.
22424         (ira_costs, ira_set_pseudo_classes): Call
22425         initiate_regno_cost_classes and finish_regno_cost_classes.
22426
22427         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
22428
22429         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
22430
22431         * target.def (ira_cover_classes): Remove.
22432
22433         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
22434
22435         * doc/tm.texi.in: Ditto.
22436
22437         * ira-conflicts.c: Remove mentioning cover classes from the file.
22438         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
22439         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
22440
22441         * targhooks.c (default_ira_cover_classes): Remove.
22442
22443         * targhooks.h (default_ira_cover_classes): Ditto.
22444
22445         * haifa-sched.c: Remove mentioning cover classes from the file.
22446         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
22447         ira_pressure_classes and ira_pressure_classes_num instead of
22448         ira_reg_class_cover_size and ira_reg_class_cover.  Use
22449         sched_regno_pressure_class instead of sched_regno_cover_class.
22450         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
22451         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
22452
22453         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
22454         classes from the file.
22455         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
22456         (struct object_hard_regs, struct object_hard_regs_node): New.
22457         (struct ira_object): New members profitable_hard_regs,
22458         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
22459         (struct ira_allocno): Rename cover_class to aclass.  Rename
22460         cover_class_cost and updated_cover_class_cost to class_cost and
22461         updated_class_cost.  Remove splay_removed_p and
22462         left_conflict_size.  Add new members colorable_p.
22463         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
22464         (ALLOCNO_COLORABLE_P): New macro.
22465         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
22466         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
22467         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
22468         (OBJECT_...): Rename parameter C to O.
22469         (OBJECT_PROFITABLE_HARD_REGS): New macro.
22470         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
22471         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
22472         (struct target_ira_int): New members x_ira_max_memory_move_cost,
22473         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
22474         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
22475         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
22476         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
22477         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
22478         x_ira_reg_class_subunion.
22479         (ira_max_memory_move_cost, ira_max_register_move_cost)
22480         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
22481         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
22482         (ira_important_class_nums, ira_reg_class_superunion): New macros.
22483         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
22484         (ira_reg_class_union): Rename to ira_reg_class_subunion.
22485         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
22486         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
22487         (ira_tune_allocno_costs_and_cover_classes): Rename to
22488         ira_tune_allocno_costs.
22489         (ira_debug_hard_regs_forest): New.
22490         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
22491         (ira_object_conflict_iter_next): Fix comments.
22492         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
22493         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
22494         cover_class to aclass.
22495         (ira_allocate_and_accumulate_costs): Ditto.
22496         (ira_allocate_and_set_or_copy_costs): Ditto.
22497
22498         * opts.c (decode_options): Remove ira_cover_class check.
22499
22500         * ira-color.c: Remove mentioning cover classes from the file.  Use
22501         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
22502         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
22503         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
22504         (splay-tree.h): Remove include.
22505         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
22506         before copy_freq_compare_func.
22507         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
22508         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
22509         New definitions.
22510         (hard_regs_roots, hard_regs_node_vec): Ditto.
22511         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
22512         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
22513         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
22514         (create_new_object_hard_regs_node): Ditto.
22515         (add_new_object_hard_regs_node_to_forest): Ditto.
22516         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
22517         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
22518         Ditto.
22519         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
22520         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
22521         (remove_unused_object_hard_regs_nodes): Ditto.
22522         (enumerate_object_hard_regs_nodes): Ditto.
22523         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
22524         (object_hard_regs_subnode_t): Ditto.
22525         (struct object_hard_regs_subnode): Ditto.
22526         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
22527         (setup_object_hard_regs_subnode_index): Ditto.
22528         (get_object_hard_regs_subnodes_num): Ditto.
22529         (form_object_hard_regs_nodes_forest): Ditto.
22530         (finish_object_hard_regs_nodes_tree): Ditto.
22531         (finish_object_hard_regs_nodes_forest): Ditto.
22532         (allocnos_have_intersected_live_ranges_p): Rename to
22533         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
22534         (pseudos_have_intersected_live_ranges_p): Rename to
22535         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
22536         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
22537         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
22538         (update_copy_costs): Remove assert.  Skip cost update if the hard
22539         reg does not belong the class.
22540         (assign_hard_reg): Process only profitable hard regs.
22541         (uncolorable_allocnos_num): Make it scalar.
22542         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
22543         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
22544         and ira_reg_class_max_nregs.
22545         (bucket_allocno_compare_func): Check frequency first.
22546         (sort_bucket): Add compare function as a parameter.
22547         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
22548         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
22549         (push_allocno_to_stack): Rewrite for checking new allocno
22550         colorability.
22551         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
22552         (push_only_colorable): Pass new parameter to sort_bucket.
22553         (push_allocno_to_spill): Remove.
22554         (allocno_spill_priority_compare): Make it inline and rewrite.
22555         (splay_tree_allocate, splay_tree_free): Remove.
22556         (allocno_spill_sort_compare): New function.
22557         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
22558         build and use splay tree.  Choose first allocno in uncolorable
22559         allocno bucket to spill.  Remove setting spill cost.
22560         (all_conflicting_hard_regs): Remove.
22561         (setup_allocno_available_regs_num): Check only profitable hard
22562         regs.  Print info about hard regs nodes.
22563         (setup_allocno_left_conflicts_size): Remove.
22564         (put_allocno_into_bucket): Don't call
22565         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
22566         (improve_allocation): New.
22567         (color_allocnos): Call setup_profitable_hard_regs,
22568         form_object_hard_regs_nodes_forest, improve_allocation,
22569         finish_object_hard_regs_nodes_forest.  Setup spill cost.
22570         (print_loop_title): Use pressure classes.
22571         (color_allocnso): Ditto.
22572         (do_coloring): Remove allocation and freeing splay_tree_node_pool
22573         and allocnos_for_spilling.
22574         (ira_sort_regnos_for_alter_reg): Don't setup members
22575         {first,next}_coalesced_allocno.
22576         (color): Remove allocating and freeing removed_splay_allocno_vec.
22577         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
22578         prohibited_class_mode_regs.
22579
22580         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
22581         formatting.
22582         (update_allocno_pressure_excess_length): Use pressure classes.
22583         (inc_register_pressure, dec_register_pressure): Check for pressure
22584         class.
22585         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
22586         pressure class.  Use ira_reg_class_nregs instead of
22587         ira_reg_class_max_nregs.
22588         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
22589         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
22590         (single_reg_class): Use ira_reg_class_nregs instead of
22591         ira_reg_class_max_nregs.
22592         (process_bb_node_lives): Use pressure classes.
22593
22594         * ira-emit.c: Remove mentioning cover classes from the file.  Use
22595         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
22596         (change_loop): Use pressure classes.
22597         (modify_move_list): Call ira_set_allocno_class instead of
22598         ira_set_allocno_cover_class.
22599
22600         * ira-build.c: Remove mentioning cover classes from the file.  Use
22601         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
22602         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
22603         ALLOCNO_UPDATED_CLASS_COST instead of
22604         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
22605         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
22606         (ira_create_allocno): Remove initialization of
22607         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
22608         ALLOCNO_COLORABLE_P.
22609         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
22610         Update conflict regs for the objects.
22611         (create_cap_allocno): Remove assert.  Don't propagate
22612         ALLOCNO_AVAILABLE_REGS_NUM.
22613         (ira_free_allocno_costs): New function.
22614         (finish_allocno): Change a part of code into call of
22615         ira_free_allocno_costs.
22616         (low_pressure_loop_node_p): Use pressure classes.
22617         (object_range_compare_func): Don't compare classes.
22618         (setup_min_max_conflict_allocno_ids): Ditto.
22619
22620         * loop-invariant.c: Remove mentioning cover classes from the file.
22621         Use ira_pressure_classes and ira_pressure_classes_num instead of
22622         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
22623         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
22624         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
22625         Use reg_allocno_class instead of reg_cover_class.
22626         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
22627         STACK_REG_COVER_CLASS.
22628         (get_regno_cover_class): Rename to get_regno_pressure_class.
22629         (move_loop_invariants): Initialize and finalize regstat.
22630
22631         * ira.c: Remove mentioning cover classes from the file.  Add
22632         comments about coloring without cover classes.  Use ALLOCNO_CLASS
22633         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
22634         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
22635         setup_class_subset_and_memory_move_costs.
22636         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
22637         (setup_cover_and_important_classes): Rename to
22638         setup_allocno_and_important_classes.
22639         (setup_class_translate_array): New.
22640         (setup_class_translate): Call it for allocno and pressure classes.
22641         (cover_class_order): Rename to allocno_class_order.
22642         (comp_reg_classes_func): Use ira_allocno_class_translate instead
22643         of ira_class_translate.
22644         (reorder_important_classes): Set up ira_important_class_nums.
22645         (setup_reg_class_relations): Set up ira_reg_class_superunion.
22646         (print_class_cover): Rename to print_classes.  Add parameter.
22647         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
22648         Print pressure classes too.
22649         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
22650         setup_reg_subclasses.
22651         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
22652         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
22653         (setup_prohibited_class_mode_regs): Use
22654         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
22655         (clarify_prohibited_class_mode_regs): New function.
22656         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
22657         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
22658         (ira_init_once): Initialize them.
22659         (free_register_move_costs): Process them.
22660         (ira_init): Move calls of find_reg_classes and
22661         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
22662         Call clarify_prohibited_class_mode_regs.
22663         (ira_no_alloc_reg): Remove.
22664         (too_high_register_pressure_p): Use pressure classes.
22665
22666         * sched-deps.c: Remove mentioning cover classes from the file.
22667         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
22668         ira_pressure_classes and ira_pressure_classes_num instead of
22669         ira_reg_class_cover_size and ira_reg_class_cover.
22670         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
22671         sched_regno_pressure_class instead of sched_regno_cover_class.
22672         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
22673         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
22674
22675         * ira.h: Add 2010 to Copyright.
22676         (ira_no_alloc_reg): Remove external.
22677         (struct target_ira): Rename x_ira_hard_regno_cover_class,
22678         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
22679         x_ira_class_translate to x_ira_hard_regno_allocno_class,
22680         x_ira_allocno_classes_num, x_ira_allocno_classes, and
22681         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
22682         x_ira_pressure_classes, x_ira_pressure_class_translate, and
22683         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
22684         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
22685         x_ira_no_alloc_regs.
22686         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
22687         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
22688         ira_allocno_classes_num and ira_allocno_classes.
22689         (ira_class_translate): Rename to ira_allocno_class_translate.
22690         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
22691         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
22692         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
22693         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
22694         (ira_no_alloc_regs): New.
22695
22696         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
22697         classes from the file.  Use ALLOCNO_CLASS instead of
22698         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
22699         ALLOCNO_COVER_CLASS_COST.
22700         (regno_cover_class): Rename to regno_aclass.
22701         (record_reg_classes): Use ira_reg_class_subunion instead of
22702         ira_reg_class_union.
22703         (record_address_regs): Check overflow.
22704         (scan_one_insn): Ditto.
22705         (print_allocno_costs): Print total mem cost fore regional allocation.
22706         (print_pseudo_costs): Use REG_N_REFS.
22707         (find_costs_and_classes): Use classes intersected with them on the
22708         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
22709         ira_reg_class_union.  Use ira_allocno_class_translate and
22710         regno_aclass instead of ira_class_translate and regno_cover_class.
22711         Modify code for finding regno_aclass.  Setup preferred classes for
22712         the next pass.
22713         (setup_allocno_cover_class_and_costs): Rename to
22714         setup_allocno_class_and_costs.  Use regno_aclass instead of
22715         regno_cover_class.  Use ira_set_allocno_class instead of
22716         ira_set_allocno_cover_class.
22717         (init_costs, finish_costs): Use regno_aclass instead of
22718         regno_cover_class.
22719         (ira_costs): Use setup_allocno_class_and_costs instead of
22720         setup_allocno_cover_class_and_costs.
22721         (ira_tune_allocno_costs_and_cover_classes): Rename to
22722         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
22723         by processing objects.  Use ira_reg_class_max_nregs instead of
22724         ira_reg_class_nregs.
22725
22726         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
22727
22728         * sched-int.h: Remove mentioning cover classes from the file.
22729         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
22730
22731         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
22732         classes from the file.
22733         (struct reg_pref): Rename coverclass into allocnoclass.
22734         (reg_cover_class): Rename to reg_allocno_class.
22735
22736         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
22737
22738         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
22739
22740         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
22741
22742         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
22743
22744         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
22745
22746         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
22747
22748         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
22749
22750         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
22751
22752         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
22753
22754         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
22755
22756         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
22757         (i386_ira_cover_classes): Ditto.
22758
22759         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
22760
22761         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
22762
22763         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
22764
22765         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
22766
22767         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
22768
22769         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
22770
22771         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
22772         (mips_ira_cover_classes): Ditto.
22773
22774         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
22775
22776         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
22777
22778         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
22779
22780         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
22781
22782         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
22783
22784         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
22785         (IRA_COVER_CLASSES_VSX): Ditto.
22786
22787         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
22788         (rs6000_ira_cover_classes): Ditto.
22789
22790         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
22791
22792         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
22793
22794         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
22795
22796         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
22797
22798         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
22799
22800         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
22801
22802         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
22803
22804         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
22805
22806         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
22807
22808         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
22809
22810 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
22811
22812         PR debug/48253
22813         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
22814         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
22815         dw_fde_unlikely_section_end_label, cold_in_std_section,
22816         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
22817         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
22818         fields.
22819         (output_fde): Use dw_fde_second_{begin,end} if second is
22820         true, otherwise dw_fde_{begin,end}.
22821         (output_call_frame_info): Test dw_fde_second_begin != NULL
22822         instead of dw_fde_switched_sections.
22823         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
22824         fields, initialize new fields.  Initialize in_std_section
22825         unconditionally from the first partition.
22826         (dwarf2out_end_epilogue): Don't override dw_fde_end when
22827         dw_fde_second_begin is non-NULL.
22828         (dwarf2out_switch_text_section): Stop initializing removed
22829         dw_fde_struct fields, initialize new fields, initialize
22830         also dw_fde_end here.  Set dw_fde_switch_cfi even when
22831         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
22832         (struct var_loc_list_def): Add last_before_switch field.
22833         (arange_table, arange_table_allocated, arange_table_in_use,
22834         ARANGE_TABLE_INCREMENT, add_arange): Removed.
22835         (size_of_aranges): Count !in_std_section and !second_in_std_section
22836         hunks in fdes, instead of looking at arange_table_in_use.
22837         (output_aranges): Add aranges_length argument, don't call
22838         size_of_aranges here.  Instead of using aranges_table*
22839         emit ranges for fdes when !in_std_section resp.
22840         !second_in_std_section.
22841         (dw_loc_list): Break ranges crossing section switch.
22842         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
22843         use dw_fde_second_end instead of dw_fde_end as end of last range.
22844         (gen_subprogram_die): Don't call add_arange.  Use
22845         dw_fde_{begin,end} for first partition and if switched
22846         section dw_fde_second_{begin,end} for the second.
22847         (var_location_switch_text_section_1,
22848         var_location_switch_text_section): New functions.
22849         (dwarf2out_begin_function): Initialize cold_text_section even
22850         when function_section () isn't text_section.
22851         (prune_unused_types): Don't walk arange_table.
22852         (dwarf2out_finish): Don't needlessly test
22853         flag_reorder_blocks_and_partition when testing cold_text_section_used.
22854         If info_section_emitted, call size_of_aranges and if it indicates
22855         non-empty .debug_aranges, call output_aranges with the computed
22856         size.  Stop using removed dw_fde_struct fields, use
22857         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
22858         for second.
22859
22860         PR debug/48203
22861         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
22862         create ENTRY_VALUE if incoming or address of incoming's MEM
22863         is a hard REG.
22864         * dwarf2out.c (mem_loc_descriptor): Don't emit
22865         DW_OP_GNU_entry_value of DW_OP_fbreg.
22866         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
22867         on ENTRY_VALUE is able to find the canonical parameter VALUE.
22868         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
22869         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
22870         ENTRY_VALUE_EXPs.
22871         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
22872         is a REG_P or MEM_P with REG_P address, compute hash directly
22873         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
22874         (preserve_only_constants): Don't clear VALUES forwaring
22875         ENTRY_VALUE to some other VALUE.
22876
22877 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
22878
22879         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
22880         instead of GEN_INT.
22881
22882 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
22883
22884         * cfgexpand.c (expand_gimple_cond): Always set the source location and
22885         block before expanding the statement.
22886         (expand_gimple_stmt_1): Likewise.  Set them here...
22887         (expand_gimple_stmt): ...and not here.  Tidy.
22888         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
22889         unknown.
22890
22891 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
22892
22893         * Makefile.in: New rule for cprop.o.
22894         * gcse.c: Move constant/copy propagation to cprop.c.
22895         (compute_local_properties): Only handle expression tables.
22896         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
22897         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
22898         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
22899         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
22900         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
22901         compute_cprop_data, find_used_regs, try_replace_reg,
22902         find_avail_set, cprop_jump, constprop_register, cprop_insn,
22903         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
22904         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
22905         find_bypass_set, reg_killed_on_edge, bypass_block,
22906         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
22907         execute_rtl_cprop, pass_rtl_cprop): Move to...
22908         * cprop.c: ...here.  New file, constant/copy propagation for RTL
22909         moved from gcse.c to here with minor cleanups in duplicated code.
22910
22911 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
22912
22913         * config/i386/i386.c (flag_opts): Fix a typo in
22914         -mavx256-split-unaligned-store.
22915
22916 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
22917
22918         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
22919         LIBCALL_VALUE): Remove macros.
22920         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
22921         TARGET_FUNCTION_VALUE_REGNO_P): Define.
22922         (h8300_function_value, h8300_libcall_value,
22923         h8300_function_value_regno_p): New functions.
22924
22925 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
22926
22927         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
22928
22929 2011-03-28  Jeff Law  <law@redhat.com>
22930
22931         * tree-ssa-threadupdate.c (redirect_edges): Call
22932         create_edge_and_update_destination_phis as needed.
22933         (create_edge_and_update_destination_phis): Accept new BB argument.
22934         All callers updated.
22935         (thread_block): Do not update the profile when threading around
22936         intermediate blocks.
22937         (thread_single_edge): Likewise.
22938         (determine_bb_domination_status): If BB is not a successor of the
22939         loop header, return NONDOMINATING.
22940         (register_jump_thread): Note when we register a jump thread around
22941         an intermediate block.
22942         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
22943         (thread_across_edge): Use it.
22944
22945 2011-03-28  Tristan Gingold  <gingold@adacore.com>
22946
22947         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
22948         when for_return is 2.
22949
22950 2011-03-28  Jeff Law  <law@redhat.com>
22951
22952         * var-tracking.c (canonicalize_values_mark): Delete unused
22953         lhs assignment.
22954         (canonicalize_values_star, set_variable_part): Likewise.
22955         (clobber_variable_part, delete_variable_part): Likewise.
22956
22957 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
22958
22959         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
22960
22961 2011-03-28  Martin Jambor  <mjambor@suse.cz>
22962
22963         * tree-inline.c (expand_call_inline): Do not check that destination
22964         node is analyzed.
22965         (optimize_inline_calls): Assert that destination node is analyzed.
22966         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
22967         not call tree_lowering_passes.
22968         * cgraph.h (cgraph_analyze_function): Declare.
22969         * cgraphunit.c (cgraph_analyze_function): Make public.
22970
22971 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
22972
22973         * config/sparc/sparc-opts.h: New.
22974         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
22975         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
22976         (sparc_option_override): Store processor_type enumeration rather
22977         than string in cpu_default.  Remove name and enumeration from
22978         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
22979         without using sparc_select.  Use target_flags_explicit instead of
22980         fpu_option_set.
22981         * config/sparc/sparc.h (enum processor_type): Move to
22982         sparc-opts.h.
22983         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
22984         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
22985         HeaderInclude entry.
22986         (mcpu=, mtune=): Use Var and Enum.
22987         (sparc_processor_type): New Enum and EnumValue entries.
22988
22989 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22990             Iain Sandoe  <iains@gcc.gnu.org>
22991
22992         PR target/48245
22993         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
22994
22995 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
22996
22997         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
22998         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
22999         Insert new statements at it in lieu of STMT.
23000         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
23001         * tree-vect-stmts.c (vectorizable_store): Likewise.
23002         (vectorizable_load): Likewise.
23003
23004 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
23005
23006         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
23007         (divtf3): Ditto.
23008         (multf3): Ditto.
23009         (subtf3): Ditto.
23010
23011 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
23012
23013         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
23014         unaligned 256bit load/store.
23015         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
23016         (*avx_movdqu<avxmodesuffix>): Likewise.
23017
23018 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23019
23020         PR target/48288
23021         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
23022         * config/pa/pa.md (iordi3): Use new predicate in expander.
23023         (iorsi3): Likewise.
23024
23025 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
23026
23027         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
23028         FUNCTION_VALUE_REGNO_P): Remove macros.
23029         * config/mips/mips-protos.h (mips_function_value): Remove.
23030         * config/mips/mips.c (mips_function_value): Rename to...
23031         (mips_function_value_1): ... this. Make static.  Handle receiving
23032         the function type in 'fn_decl_or_type' argument.
23033         (mips_function_value, mips_libcall_value,
23034         mips_function_value_regno_p): New function.
23035         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23036         TARGET_FUNCTION_VALUE_REGNO_P): Define.
23037
23038 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
23039
23040         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
23041         and -mavx256-split-unaligned-store.
23042         (ix86_option_override_internal): Split 32-byte AVX unaligned
23043         load/store by default.
23044         (ix86_avx256_split_vector_move_misalign): New.
23045         (ix86_expand_vector_move_misalign): Use it.
23046
23047         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
23048         -mavx256-split-unaligned-store.
23049
23050         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
23051         256bit load/store.  Generate unaligned store on misaligned memory
23052         operand.
23053         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
23054         256bit load/store.
23055         (*avx_movdqu<avxmodesuffix>): Likewise.
23056
23057         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
23058         -mavx256-split-unaligned-store.
23059
23060 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
23061
23062         PR target/38598
23063         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
23064         Update commentary.
23065
23066 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
23067
23068         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
23069         opno arguments with an expand_operand.  Use create_input_operand.
23070         (mips_prepare_builtin_target): Delete.
23071         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
23072         functions.
23073         (mips_expand_builtin_direct): Use create_output_operand and
23074         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
23075         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
23076         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
23077
23078 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
23079
23080         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
23081         function.
23082         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
23083
23084 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
23085
23086         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
23087         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
23088         basic blocks and call commit_edge_insertions directly.
23089         (fixup_abnormal_edges): Move from here to...
23090         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
23091         on the edges and return whether some have actually been inserted.
23092         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
23093         compensation code.
23094
23095 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
23096
23097         PR rtl-optimization/48144
23098         * sel-sched-ir.c (merge_history_vect): Factor out from ...
23099         (merge_expr_data): ... here.
23100         (av_set_intersect): Rename to av_set_code_motion_filter.
23101         Update all callers.  Call merge_history_vect when an expression
23102         is found in both sets.
23103         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
23104
23105 2011-03-26  Alan Modra  <amodra@gmail.com>
23106
23107         * config/rs6000/predicates.md (word_offset_memref_op): Handle
23108         cmodel medium addresses.
23109         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
23110         64-bit gpr loads and stores.
23111         (rs6000_secondary_reload_ppc64): New function.
23112         * config/rs6000/rs6000-protos.h: Declare it.
23113         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
23114
23115 2011-03-26  Alan Modra  <amodra@gmail.com>
23116
23117         PR target/47487
23118         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
23119         GNU Go in traceback table.
23120
23121 2011-03-25  Richard Henderson  <rth@redhat.com>
23122
23123         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
23124         if there are exactly 6 operands.
23125         (set_storage_via_setmem): Similarly.
23126
23127 2011-03-25  Kai Tietz  <ktietz@redhat.com>
23128
23129         * collect2.c (write_c_file_stat): Handle backslash
23130         as right-hand directory separator.
23131         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
23132         checking just for slash.
23133         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
23134         instead of checking for trailing slash.
23135         * gcc.c (record_temp_file): Use filename_cmp instead
23136         of strcmp.
23137         (do_spec_1): Likewise.
23138         (replace_outfile_spec_function): Likewise.
23139         (is_directory): Use filename_ncmp instead of strncmp.
23140         (print_multilib_info): Likewise.
23141         * gcov.c (find_source): Use filename_cmp instead
23142         instead of strcmp.
23143         (make_gcov_file_name): Fix order of slash/backslash
23144         checks.
23145         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
23146         (add_standard_paths): Likewise.
23147         * mips-tfile.c (saber_stop): Handle backslash.
23148         * prefix.c (update_path): Use filename_ncmp instead of
23149         strncmp.
23150         * profile.c (output_location): Use filename_cmp instead
23151         of strcmp.
23152         * read-md.c (handle_toplevel_file): Handle backslash.
23153         * tlink.c (frob_extension):  Likewise.
23154         * tree-cfg.c (same_line_p): Use filename_cmp instead of
23155         strcmp.
23156         * tree-dump.c (dequeue_and_dump): Handle backslash.
23157         * tree.c (get_file_function_name): Likewise.
23158         * gengtype.c (read_input_list): Likewise.
23159         (get_file_realbasename): Likewise.
23160         (get_output_file_with_visibility): Use filename_cmp
23161         instead of strcmp.
23162
23163 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
23164
23165         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
23166         case to VFPv1.
23167
23168 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
23169
23170         * fold-const.c (expr_location_or): New function.
23171         (fold_truth_not_expr): Call it.
23172
23173 2011-03-25  Jeff Law  <law@redhat.com>
23174
23175         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
23176         va_end.
23177         * c-family/c-common.c (def_fn_type): Likewise.
23178         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
23179         * emit-rtl.c (gen_rtvec): Likewise.
23180         * lto/lto-lang.c (def_fn_type): Likewise.
23181
23182 2011-03-25  Richard Guenther  <rguenther@suse.de>
23183
23184         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
23185         also generate copies.
23186         (fini_copy_prop): Handle constant values properly.
23187
23188 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
23189
23190         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
23191         mode size instead of bitsize with DWARF2_ADDR_SIZE.
23192         (hash_loc_operands, compare_loc_operands): Handle
23193         DW_OP_GNU_entry_value.
23194
23195 2011-03-25  Kai Tietz  <ktietz@redhat.com>
23196
23197         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
23198         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
23199         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
23200         comment and use macro TARGET_64BIT_MS_ABI instead.
23201         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
23202         and change default behavior for 32-bit MS_ABI.
23203         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
23204         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
23205         32-bit, too.
23206         (ix86_cfun_abi): Likewise.
23207         (ix86_maybe_switch_abi): Adjust comment.
23208         (init_cumulative_args): Check for bit-ness in MS_ABI case.
23209         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
23210         instead of checking for SYSV_ABI.
23211         (ix86_nsaved_sseregs): Likewise.
23212         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
23213         to 16 bytes.
23214         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
23215         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
23216         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
23217         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
23218         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
23219
23220 2011-03-25  Richard Guenther  <rguenther@suse.de>
23221
23222         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
23223         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
23224         (verify_gimple): Remove.
23225         * tree-cfg.c (verify_gimple_call): Merge verification
23226         from verify_stmts.
23227         (verify_gimple_phi): Merge verification from verify_stmts.
23228         (verify_gimple_label): New function.
23229         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
23230         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
23231         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
23232         (verify_stmts): Rename to verify_gimple_in_cfg.
23233         (verify_gimple_in_cfg): New function.
23234         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
23235         * tree-ssa.c (verify_ssa): Likewise.
23236         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
23237
23238 2011-03-25  Richard Guenther  <rguenther@suse.de>
23239
23240         * passes.c (init_optimization_passes): Add FRE pass after
23241         early SRA.
23242
23243 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
23244             Andrew Stubbs  <ams@codesourcery.com>
23245
23246         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
23247         for Cortex-A8.
23248         (arm_movdi_vfp_cortexa8): New pattern.
23249         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
23250         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
23251         instructions when tuning for Cortex-A8.  Set attribute "arch".
23252         * config/arm/arm.md: Move include arm-tune.md up a bit.
23253         (define_attr "arch"): Add "onlya8" and "nota8" values.
23254         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
23255
23256 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
23257
23258         PR bootstrap/48282
23259         Revert:
23260         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
23261
23262         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
23263         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
23264         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
23265         * passes.c (init_optimization_passes): Move
23266         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
23267
23268 2011-03-25  Kai Tietz  <ktietz@redhat.com>
23269
23270         * c-typeck.c (comptypes_internal): Replace target
23271         hook call of comp_type_attributes by version in tree.c file.
23272         * gimple.c (gimple_types_compatible_p_1): Likewise.
23273         * tree-ssa.c (useless_type_conversion_p): Likewise.
23274         * tree.c (build_type_attribute_qual_variant): Likewise.
23275         (attribute_value_equal): New static helper function.
23276         (comp_type_attributes): New function.
23277         (merge_attributes): Use attribute_value_equal for comparison.
23278         (attribute_list_contained): Likewise.
23279         * tree.h (comp_type_attributes): New prototype.
23280
23281 2011-03-25  Richard Guenther  <rguenther@suse.de>
23282
23283         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
23284         of complex types at -O0.
23285         (verify_gimple_assign_binary): Likewise.
23286         (verify_gimple_assign_ternary): Likewise.
23287
23288 2011-03-24  Mark Wielaard  <mjw@redhat.com>
23289
23290         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
23291         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
23292
23293 2011-03-24  Mark Wielaard  <mjw@redhat.com>
23294
23295         PR debug/48041
23296         * dwarf2out.c (output_abbrev_section): Only write table when
23297         abbrev_die_table_in_use > 1.
23298
23299 2011-02-24  Richard Henderson  <rth@redhat.com>
23300
23301         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
23302         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
23303         (alpha_expand_unaligned_load_words): Use extql.
23304         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
23305         (emit_insxl): Handle all modes for consistency.
23306
23307 2011-02-24  Richard Henderson  <rth@redhat.com>
23308
23309         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
23310         (alpha_expand_unaligned_load): Likewise.
23311         (alpha_expand_unaligned_store): Likewise.
23312         (alpha_expand_unaligned_load_words): Likewise.
23313         (alpha_expand_unaligned_store_words): Likewise.
23314         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
23315         (alpha_split_lock_test_and_set_12): Likewise.
23316         (print_operand, alpha_fold_builtin_extxx): Likewise.
23317         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
23318         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
23319         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
23320         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
23321         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
23322         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
23323         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
23324         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
23325         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
23326         (extwl, extll, extql): Similarly.
23327         (inswh, inslh, insqh): Similarly.
23328         (mskbl, mskwl, mskll, mskql): Similarly.
23329         (mskwh, msklh, mskqh): Similarly.
23330
23331 2011-02-24  Richard Henderson  <rth@redhat.com>
23332
23333         * config/alpha/alpha.md (attribute isa): Add er, ner.
23334         (attribute enabled): Handle them.
23335         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
23336
23337 2011-02-24  Richard Henderson  <rth@redhat.com>
23338
23339         * config/alpha/alpha.md (attribute isa): Add vms.
23340         (attribute enabled): Handle it.
23341         (*movsf): Merge *movsf_{nofix,fix,nofp}.
23342         (*movdf): Merge *movdf_{nofix,fix,nofp}.
23343         (*movtf): Rename from *movtf_internal for consistency.
23344         (*movsi): Merge with *movsi_nt_vms.
23345         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
23346         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
23347         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
23348         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
23349
23350 2011-02-24  Richard Henderson  <rth@redhat.com>
23351
23352         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
23353         (extendqisi2, extendhisi2): Likewise.
23354         (extendqidi2): Simplify BWX/non-BWX expansions.
23355         (extendhidi2): Similarly.
23356
23357 2011-02-24  Richard Henderson  <rth@redhat.com>
23358
23359         * config/alpha/alpha.md (attribute isa): New.
23360         (attribute enabled): New.
23361         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
23362         (zero_extendqisi2, zero_extendqidi2): Similarly.
23363         (zero_extendhisi2, zero_extendhidi2): Similarly.
23364         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
23365
23366 2011-02-24  Richard Henderson  <rth@redhat.com>
23367
23368         * config/alpha/predicates.md (input_operand): Revert last change;
23369         update comment to mention 32-bit VMS rather than Windows.
23370
23371 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
23372
23373         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
23374         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
23375         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
23376         * passes.c (init_optimization_passes): Move
23377         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
23378
23379 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
23380
23381         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
23382
23383 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
23384
23385         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
23386         correctly.
23387
23388 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
23389
23390         PR debug/48204
23391         * simplify-rtx.c (simplify_const_unary_operation): Call
23392         real_convert when changing mode class with FLOAT_EXTEND.
23393
23394 2011-03-24  Nick Clifton  <nickc@redhat.com>
23395
23396         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
23397         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
23398         * config/rx/rx.c (rx_option_override): Set align_jumps,
23399         align_loops and align_labels if not set by the user.
23400         (rx_align_for_label): New function.
23401         (rx_max_skip_for_label): New function.
23402         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
23403         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
23404         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
23405         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
23406         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
23407
23408 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
23409
23410         PR rtl-optimization/48263
23411         * optabs.c (expand_binop_directly): Reinstate convert_modes code
23412         and original commutative_p handling.  Use maybe_gen_insn.
23413
23414 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23415
23416         * reload.c (find_reloads_subreg_address): Add address_reloaded
23417         parameter and return true there if the full address has been
23418         reloaded.
23419         (find_reloads_toplev): Pass address_reloaded flag.
23420         (find_reloads_address_1): Don't use address_reloaded parameter.
23421
23422 2011-03-24  Jeff Law  <law@redhat.com>
23423
23424         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
23425         unused variable "ann".
23426         (remove_unused_locals): Likewise.
23427
23428         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
23429         statement.
23430
23431         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
23432         after it is freed.
23433
23434 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23435
23436         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
23437         for invalid symbolic addresses.
23438         (s390_secondary_reload): Don't use s390_check_symref_alignment for
23439         larl operands.
23440
23441 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
23442
23443         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
23444         the argument in calls to fold_truth_not_expr.
23445
23446 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
23447
23448         * tree.c (record_node_allocation_statistics): New function.
23449         (make_node_stat, copy_node_stat, build_string): Call it.
23450         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
23451         (build1_stat, build_omp_clause): Likewise.
23452
23453 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
23454
23455         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
23456         last commit.
23457
23458 2011-03-24  Richard Guenther  <rguenther@suse.de>
23459
23460         PR tree-optimization/48271
23461         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
23462         blocks that still exist.
23463
23464 2011-03-24  Richard Guenther  <rguenther@suse.de>
23465
23466         PR tree-optimization/48270
23467         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
23468         not free datarefs before ddrs.
23469
23470 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
23471
23472         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
23473         from the address built for a reference with variable offset.
23474
23475 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
23476
23477         PR target/48237
23478         * config/i386/i386.md (*movdf_internal_rex64): Do not split
23479         alternatives that can be handled with movq or movabsq insn.
23480         (*movdf_internal): Disable for !TARGET_64BIT.
23481         (*movdf_internal_nointeger): Ditto.
23482         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
23483
23484 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
23485
23486         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
23487         (FUNCTION_ARG_ADVANCE): Likewise.
23488         * tm.texi.in: Change references to them to hook references.
23489         * tm.texi: Regenerate.
23490         * targhooks.c (default_function_arg): Eliminate check for target macro.
23491         (default_function_incoming_arg): Likewise.
23492         (default_function_arg_advance): Likewise.
23493         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
23494         (function_arg_advance): Likewise.
23495         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
23496
23497 2011-03-24  Richard Guenther  <rguenther@suse.de>
23498
23499         PR middle-end/48269
23500         * tree-object-size.c (addr_object_size): Do not double-account
23501         for MEM_REF offsets.
23502
23503 2011-03-24  Diego Novillo  <dnovillo@google.com>
23504
23505         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
23506         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
23507         (lto_input_data_block): Move from lto-opts.c.  Make extern.
23508         Update all users.
23509         (lto_input_string): Rename from input_string.  Make extern.
23510         Update all users.
23511         * lto-streamer-out.c (lto_output_string_with_length): Rename from
23512         output_string_with_length.
23513         Output 0 to indicate a non-NULL string.  Update all callers to
23514         not emit 0.
23515         (lto_output_string): Rename from output_string.  Make extern.
23516         Update all users.
23517         (lto_output_decl_state_streams): Make extern.
23518         (lto_output_decl_state_refs): Make extern.
23519         * lto-streamer.h (lto_input_string): Declare.
23520         (lto_input_data_block): Declare.
23521         (lto_output_string): Declare.
23522         (lto_output_string_with_length): Declare.
23523         (lto_output_decl_state_streams): Declare.
23524         (lto_output_decl_state_refs): Declare.
23525
23526 2011-03-24  Richard Guenther  <rguenther@suse.de>
23527
23528         PR tree-optimization/46562
23529         * tree.c (build_invariant_address): New function.
23530         * tree.h (build_invariant_address): Declare.
23531         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
23532         a renamed function moved ...
23533         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
23534         Take valueization callback parameter.
23535         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
23536         * gimple-fold.h: New file.
23537         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
23538         (ccp_fold, fold_const_aggregate_ref,
23539         fold_ctor_reference, fold_nonarray_ctor_reference,
23540         fold_array_ctor_reference, fold_string_cst_ctor_reference,
23541         get_base_constructor): Move ...
23542         * gimple-fold.c: ... here.
23543         (gimple_fold_stmt_to_constant_1): New function
23544         split out from ccp_fold.  Take a valueization callback parameter.
23545         Valueize all operands.
23546         (gimple_fold_stmt_to_constant): New wrapper function.
23547         (fold_const_aggregate_ref_1): New function split out from
23548         fold_const_aggregate_ref.  Take a valueization callback parameter.
23549         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
23550         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
23551         invariant POINTER_PLUS_EXPRs to invariant form.
23552         (vn_valueize): New function.
23553         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
23554         * tree-vrp.c (vrp_valueize): New function.
23555         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
23556         to fold statements to constants.
23557         * tree-ssa-pre.c (eliminate): Properly guard propagation of
23558         function declarations.
23559         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
23560         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
23561
23562 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
23563
23564         * config/h8300/predicates.md (jump_address_operand): Fix register
23565         mode check.
23566
23567 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
23568
23569         * doc/invoke.texi (max-stores-to-sink): Document.
23570         * params.h (MAX_STORES_TO_SINK): Define.
23571         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
23572         if either vectorization or if-conversion is disabled.
23573         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
23574         tree-vect-data-refs.c vect_equal_offsets.
23575         (dr_equal_offsets_p): New function.
23576         (find_data_references_in_bb): Remove static.
23577         * tree-data-ref.h (find_data_references_in_bb): Declare.
23578         (dr_equal_offsets_p): Likewise.
23579         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
23580         (vect_drs_dependent_in_basic_block): Update calls to
23581         vect_equal_offsets.
23582         (vect_check_interleaving): Likewise.
23583         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
23584         (cond_if_else_store_replacement): Rename to...
23585         (cond_if_else_store_replacement_1): ... this.  Change arguments and
23586         documentation.
23587         (cond_if_else_store_replacement): New function.
23588         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
23589         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
23590
23591 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
23592
23593         PR target/46934
23594         * config/arm/arm.md (casesi): Use the gen_int_mode() function
23595         to subtract lower bound instead of GEN_INT().
23596
23597 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
23598
23599         PR other/48179
23600         PR other/48221
23601         PR other/48234
23602         * doc/extend.texi (Alignment): Move section to match order in TOC.
23603         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
23604         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
23605
23606 2011-03-23  Jeff Law  <law@redhat.com>
23607
23608         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
23609         before removing the edge.
23610
23611         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
23612         it may have been freed by redirect_branch_edge or
23613         redirect_edge_succ_nodup.
23614
23615 2011-03-23  Richard Guenther  <rguenther@suse.de>
23616
23617         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
23618         (check_va_list_escapes): Likewise.
23619         (check_all_va_list_escapes): Likewise.
23620
23621 2011-03-23  Richard Guenther  <rguenther@suse.de>
23622
23623         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
23624         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
23625         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
23626         (alias.o): Likewise.
23627         (ipa-type-escape.o): Remove.
23628         (ipa-struct-reorg.o): Likewise.
23629         (GTFILES): Remove ipa-struct-reorg.c.
23630         * alias.c: Do not include ipa-type-escape.h.
23631         * tree-ssa-alias.c: Likewise.
23632         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
23633         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
23634         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
23635         and ipa-type-escape passes.
23636         * tree-pass.h (pass_ipa_type_escape): Remove.
23637         (pass_ipa_struct_reorg): Likewise.
23638         * ipa-struct-reorg.h: Remove.
23639         * ipa-struct-reorg.c: Likewise.
23640         * ipa-type-escape.h: Likewise.
23641         * ipa-type-escape.c: Likewise.
23642         * doc/invoke.texi (-fipa-struct-reorg): Remove.
23643         (--param struct-reorg-cold-struct-ratio): Likewise.
23644         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
23645         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
23646         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
23647
23648 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23649
23650         * config/s390/2084.md: Enable all insn reservations also for z9_ec
23651         cpu attribute value.
23652         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
23653         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
23654         * config/s390/s390.c (processor_flags_table): New constant array.
23655         (s390_handle_arch_option): Remove.
23656         (s390_handle_option): Remove s390_handle_arch_option invocations
23657         and OPT_mwarn_framesize_ handling.
23658         (s390_option_override): Remove s390_handle_arch_option invocation.
23659         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
23660         warnings.
23661         * config/s390/s390.md (cpu attribute): Add z9_ec value.
23662         * config/s390/s390.opt (s390_tune, s390_arch)
23663         (march=): Replace s390_arch_option enum and values with
23664         processor_type.  Set variable name to s390_arch.  Set
23665         initialization value.
23666         (mtune=): Replace s390_arch_option with processor_type.  Set
23667         variable name to s390_tune.  Set initialization value.
23668
23669 2011-03-23  Julian Brown  <julian@codesourcery.com>
23670
23671         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
23672         accesses which are not naturally aligned.
23673
23674 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
23675
23676         PR target/47553
23677         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
23678
23679 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
23680
23681         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
23682         parameter from "int" to "enum insn_code".
23683         (expand_operand_type): New enum.
23684         (expand_operand): New structure.
23685         (create_expand_operand): New function.
23686         (create_fixed_operand, create_output_operand): Likewise
23687         (create_input_operand, create_convert_operand_to): Likewise.
23688         (create_convert_operand_from, create_address_operand): Likewise.
23689         (create_integer_operand): Likewise.
23690         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
23691         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
23692         (expand_insn, expand_jump_insn): Likewise.
23693         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
23694         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
23695         (expand_movstr, expand_builtin___clear_cache): Likewise.
23696         (expand_builtin_lock_release): Likewise.
23697         * explow.c (allocate_dynamic_stack_space): Likewise.
23698         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
23699         and use the default handling in that case.
23700         * expmed.c (check_predicate_volatile_ok): Delete.
23701         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
23702         (emit_cstore): Likewise.
23703         * expr.c (emit_block_move_via_movmem): Likewise.
23704         (set_storage_via_setmem, expand_assignment): Likewise.
23705         (emit_storent_insn, try_casesi): Likewise.
23706         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
23707         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
23708         (expand_vec_shift_expr, expand_binop_directly): Likewise.
23709         (expand_twoval_unop, expand_twoval_binop): Likewise.
23710         (expand_unop_direct, emit_indirect_jump): Likewise.
23711         (emit_conditional_move, vector_compare_rtx): Likewise.
23712         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
23713         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
23714         (expand_sync_lock_test_and_set): Likewise.
23715         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
23716         (emit_unop_insn): Likewise.
23717         (expand_copysign_absneg): Change icode to an insn_code.
23718         (create_convert_operand_from_type): New function.
23719         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
23720         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
23721         (expand_insn, expand_jump_insn): Likewise.
23722         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
23723         than const_int_operand for operand 2.
23724
23725 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23726
23727         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
23728         if possible.
23729
23730 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
23731
23732         * emit-rtl.c (emit_pattern_before_noloc): New function.
23733         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
23734         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
23735         (emit_pattern_after_noloc): New function.
23736         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
23737         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
23738
23739 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
23740
23741         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
23742         (__ffsDI2): Likewise.
23743
23744 2011-03-22  Richard Henderson  <rth@redhat.com>
23745
23746         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
23747         of !TARGET_ABI_OPEN_VMS.
23748         (alpha_trampoline_init, alpha_start_function): Likewise.
23749         (alpha_expand_epilogue, alpha_file_start): Likewise.
23750         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
23751         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
23752         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
23753         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
23754         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
23755
23756 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23757
23758         * config/s390/s390-opts.h: New.
23759         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
23760         s390_arch_flags, s390_warn_framesize, s390_stack_size,
23761         s390_stack_guard): Remove.
23762         (s390_handle_arch_option): Return void.  Take enum
23763         s390_arch_option value instead of string and searching array.
23764         (s390_handle_option): Don't assert that global structures are in
23765         use.  Access variables via opts pointer.  Use error_at.  Don't use
23766         sscanf for -mstack-guard= or -mstack-size=.  Update call to
23767         s390_handle_arch_option.
23768         (s390_option_override): Update call to s390_handle_arch_option.
23769         (s390_emit_prologue): Use %d format for s390_stack_size in
23770         diagnostic.  Use %wd for HOST_WIDE_INT.
23771         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
23772         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
23773         * config/s390/s390.opt (config/s390/s390-opts.h): New
23774         HeaderInclude entry.
23775         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
23776         s390_arch_flags, s390_warn_framesize): New Variable entries.
23777         (s390_arch_option): New Enum and EnumValue entries.
23778         (march=): Use Enum instead of Var.
23779         (mstack-guard=, mstack-size=): Use UInteger and Var.
23780         (mtune=): Use Enum.
23781
23782 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23783
23784         * config/score/score.c (score_handle_option): Don't assert that
23785         global structures are in use.  Access target_flags via opts
23786         pointer.  Use value of -march= option to determine target_flags
23787         settings.
23788         * config/score/score.opt (march=): Use Enum.
23789         (score_arch): New Enum and EnumValue entries.
23790
23791 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23792
23793         * config/mep/mep.c (option_mtiny_specified): Remove.
23794         (mep_option_override): Move register handling for -mivc2 from
23795         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
23796         instead of option_mtiny_specified.
23797         (mep_handle_option): Access target_flags via opts pointer.  Don't
23798         assert that global structures are in use.  Defer part of -mivc2
23799         handling and move it to mep_option_override.
23800         * config/mep/mep.opt (IVC2): New Mask entry.
23801         (mivc2): Use Var and Defer instead of Mask.
23802
23803 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23804
23805         * config/v850/v850-opts.h: New.
23806         * config/v850/v850.c (small_memory): Replace with
23807         small_memory_physical_max array.  Make that array static const.
23808         (v850_handle_memory_option): Take integer value of argument.  Take
23809         gcc_options pointer, option text and location.  Return void.
23810         Update for changes to small memory structures.
23811         (v850_handle_option): Access target_flags via opts pointer.  Don't
23812         assert that global structures are in use.  Update calls to
23813         v850_handle_memory_option.
23814         (v850_encode_data_area): Update references to small memory settings.
23815         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
23816         (enum small_memory_type): Move to v850-opts.h.
23817         * config/v850/v850.opt (config/v850/v850-opts.h): New
23818         HeaderInclude entry.
23819         (small_memory_max): New Variable entry.
23820         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
23821         (mtda, mzda): Likewise.
23822
23823 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23824
23825         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
23826         pointer.  Don't assert that global structures are in use.
23827
23828 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23829
23830         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
23831         via opts pointer.  Don't assert that global structures are in use.
23832
23833 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23834
23835         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
23836         (munix=93): Use Var.
23837         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
23838         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
23839         * config/pa/pa-opts.h: New.
23840         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
23841         (pa_handle_option): Don't assert that global structures are in
23842         use.  Access target_flags via opts pointer.  Don't handle
23843         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
23844         OPT_munix_98 here.
23845         (pa_option_override): Handle deferred OPT_mfixed_range_.
23846
23847 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23848
23849         * config/mn10300/mn10300-opts.h: New.
23850         * config/mn10300/mn10300.c (mn10300_processor,
23851         mn10300_tune_string): Remove.
23852         (mn10300_handle_option): Don't assert that global structures are
23853         in use.  Access mn10300_processor via opts pointer.  Don't handle
23854         OPT_mtune_ here.
23855         * config/mn10300/mn10300.h (enum processor_type): Move to
23856         mn10300-opts.h.
23857         (mn10300_processor): Remove.
23858         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
23859         HeaderInclude entry.
23860         (mn10300_processor): New Variable entry.
23861         (mtune=): Use Var.
23862
23863 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23864
23865         * config/microblaze/microblaze.c: Don't include opts.h.
23866         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
23867         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
23868         (mno-clearbss): Use Var and Warn.
23869
23870 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23871
23872         * config/m32r/m32r-opts.h: New.
23873         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
23874         (m32r_handle_option): Don't assert that global structures are in
23875         use.  Access target_flags and m32r_cache_flush_func via opts
23876         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
23877         OPT_mno_flush_trap here.
23878         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
23879         include of m32r-opts.h.
23880         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
23881         HeaderInclude entry.
23882         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
23883         (mmodel=): Use Enum and Var.
23884         (m32r_model): New Enum and EnumValue entries.
23885         (mno-flush-trap): Use Var.
23886         (msdata=): Use Enum and Var.
23887         (m32r_sdata): New Enum and EnumValue entries.
23888
23889 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23890
23891         * config/m32c/m32c.c: Don't include opts.h.
23892         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
23893         m32c_handle_option): Remove.
23894         (m32c_option_override): Check global_options_set.x_target_memregs
23895         instead of target_memregs_set.
23896         * config/m32c/m32c.h (target_memregs): Remove.
23897         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
23898         variable.
23899
23900 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23901
23902         * config/iq2000/iq2000-opts.h: New.
23903         * config/iq2000/iq2000.c: Don't include opts.h.
23904         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
23905         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
23906         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
23907         HeaderInclude entry.
23908         (iq2000_tune): New Variable entry.
23909         (march=): Add comment.  Use Enum.
23910         (iq2000_arch): New Enum and EnumValue entries.
23911         (mcpu=): Use Enum and Var.
23912         (iq2000_tune): New Enum and EnumValue entries.
23913
23914 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23915
23916         * config/ia64/ia64-opts.h: New.
23917         * config/ia64/ia64.c (ia64_tune): Remove.
23918         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
23919         here.  Use error_at.
23920         (ia64_option_override): Handle deferred OPT_mfixed_range_.
23921         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
23922         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
23923         HeaderInclude entry.
23924         (ia64_tune): New Variable entry.
23925         (mfixed-range=): Use Defer and Var.
23926         (mtune=): Use Enum and Var.
23927         (ia64_tune): New Enum and EnumValue entries.
23928
23929 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23930
23931         * config/frv/frv-opts.h: New.
23932         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
23933         frv-opts.h.
23934         (frv_cpu_type): Remove.
23935         * config/frv/frv.c: Don't include opts.h.
23936         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
23937         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
23938         (frv_cpu_type): New Variable entry.
23939         (frv_cpu): New Enum and EnumValue entries.
23940
23941 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23942
23943         * config/cris/cris.c (cris_handle_option): Access target_flags via
23944         opts pointer.  Don't assert that global structures are in use.
23945         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
23946         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
23947
23948 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23949
23950         * config/bfin/bfin-opts.h: New.
23951         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
23952         bfin_si_revision, bfin_workarounds): Remove.
23953         (bfin_cpus): Make static const.
23954         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
23955         not bfin_lib_id_given.
23956         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
23957         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
23958         pointer. Use error_at.  Don't assert that global structures are in use.
23959         * config/bfin/bfin.h: Include bfin-opts.h.
23960         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
23961         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
23962         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
23963         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
23964         entries.
23965
23966 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23967
23968         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
23969         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
23970         or -msoft-float here.
23971         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
23972         -msoft-float and -mhard-float.
23973         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
23974         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
23975         msoft-float.
23976         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
23977         -msoft-float.
23978         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
23979         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
23980         not mhard-float.
23981         (LIBGCC_SPEC): Don't handle -msoft-float.
23982         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
23983         -mhard-float.
23984         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
23985         msoft-float.
23986         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
23987         -mfloat-abi=*, not -msoft-float and -mhard-float.
23988         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
23989         -msoft-float.
23990         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
23991         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
23992         mhard-float and msoft-float.
23993         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
23994         mfloat-abi=soft in comments, not mhard-float and msoft-float.
23995         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
23996         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
23997         mhard-float.
23998         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
23999         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
24000         msoft-float.
24001         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
24002         not mhard-float.
24003         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
24004         not msoft-float.
24005
24006 2011-03-22  Richard Henderson  <rth@redhat.com>
24007
24008         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
24009         TARGET_ABI_WINDOWS_NT.
24010         (alpha_output_function_end_prologue): Likewise.
24011         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
24012         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
24013         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
24014         (trap, *movsi_nt_vms): Likewise.
24015         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
24016         (*tablejump_osf_nt_internal): Remove.
24017         * config/alpha/predicates.md (input_operand): Only test Pmode.
24018
24019 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24020
24021         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
24022         via opts pointer.  Use error_at.  Don't assert that global
24023         structures are in use.
24024
24025 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24026
24027         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
24028         (ix86_handle_option): Access ix86_isa_flags and
24029         ix86_isa_flags_explicit via opts pointer.  Don't assert that
24030         global structures are in use.
24031         (ix86_function_specific_save, ix86_function_specific_restore):
24032         Update ix86_isa_flags_explicit field name.
24033         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
24034         (ix86_isa_flags_explicit): Rename TargetSave entry to
24035         x_ix86_isa_flags_explicit.
24036
24037 2011-03-22  Richard Henderson  <rth@redhat.com>
24038
24039         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
24040         (alpha_option_override, direct_return): Likewise.
24041         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
24042         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
24043         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
24044         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
24045         (alpha_expand_epilogue, alpha_end_function): Likewise.
24046         (alpha_init_libfuncs): Likewise.
24047         (struct machine_function): Remove unicosmk members.
24048         (print_operand) ['t']: Remove.
24049         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
24050         unicosmk_output_module_name, unicosmk_output_common,
24051         current_section_align, unicosmk_output_text_section_asm_op,
24052         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
24053         unicosmk_section_type_flags, unicosmk_unique_section,
24054         unicosmk_asm_named_section, unicosmk_insert_attributes,
24055         unicosmk_output_align, unicosmk_defer_case_vector,
24056         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
24057         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
24058         unicosmk_output_ssib, unicosmk_add_call_info_word,
24059         unicosmk_extern_head, unicosmk_output_default_externs,
24060         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
24061         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
24062         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
24063         * config/alpha/alpha-protos.h: Update.
24064         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
24065         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
24066         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
24067         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
24068         (*mulsi_se, mulvsi3): Likewise.
24069         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
24070         (*divmodsi_internal, call, call_value, realign): Likewise.
24071         (moddi3, umoddi3): Likewise; remove duplicate expander.
24072         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
24073         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
24074         (*movdi_nofix): Remove r/U alternative.
24075         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
24076         * config/alpha/constraints.md ("U"): Remove.
24077         * config/alpha/predicates.md (call_operand"): Don't test
24078         TARGET_ABI_UNICOSMK.
24079
24080 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24081
24082         * target.def (handle_option): Take gcc_options and
24083         cl_decoded_option pointers and location_t.
24084         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
24085         * doc/tm.texi: Regenerate.
24086         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
24087         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
24088         * lto-opts.c (lto_reissue_options): Generate option structure for
24089         targetm.handle_option call.
24090         * opts.c (target_handle_option): Update call to
24091         targetm.handle_option.  Remove assertions about values now passed
24092         down to hook.
24093         * targhooks.c (default_target_handle_option): New.
24094         * targhooks.h (default_target_handle_option): Declare.
24095         * config/alpha/alpha.c: Include opts.h.
24096         (alpha_handle_option): Update to new hook interface.
24097         * config/arm/arm.c: Include opts.h.
24098         (arm_handle_option): Update to new hook interface.
24099         * config/arm/t-arm (arm.o): Update dependencies.
24100         * config/bfin/bfin.c: Include opts.h.
24101         (bfin_handle_option): Update to new hook interface.
24102         * config/cris/cris.c: Include opts.h.
24103         (cris_handle_option): Update to new hook interface.
24104         * config/frv/frv.c: Include opts.h.
24105         (frv_handle_option): Update to new hook interface.
24106         * config/i386/i386.c: Include opts.h.
24107         (ix86_handle_option): Update to new hook interface.
24108         (ix86_valid_target_attribute_inner_p): Generate option structure
24109         for call to ix86_handle_option.
24110         * config/i386/t-i386 (i386.o): Update dependencies.
24111         * config/ia64/ia64.c: Include opts.h.
24112         (ia64_handle_option): Update to new hook interface.
24113         * config/ia64/t-ia64 (ia64.o): Update dependencies.
24114         * config/iq2000/iq2000.c: Include opts.h.
24115         (iq2000_handle_option): Update to new hook interface.
24116         * config/m32c/m32c.c: Include opts.h.
24117         (m32c_handle_option): Update to new hook interface.
24118         * config/m32r/m32r.c: Include opts.h.
24119         (m32r_handle_option): Update to new hook interface.
24120         * config/m68k/m68k.c: Include opts.h.
24121         (m68k_handle_option): Update to new hook interface.
24122         * config/mep/mep.c: Include opts.h.
24123         (mep_handle_option): Update to new hook interface.
24124         * config/microblaze/microblaze.c: Include opts.h.
24125         (microblaze_handle_option): Update to new hook interface.
24126         * config/mips/mips.c: Include opts.h.
24127         (mips_handle_option): Update to new hook interface.
24128         * config/mn10300/mn10300.c: Include opts.h.
24129         (mn10300_handle_option): Update to new hook interface.
24130         * config/pa/pa.c: Include opts.h.
24131         (pa_handle_option): Update to new hook interface.
24132         * config/pdp11/pdp11.c: Include opts.h.
24133         (pdp11_handle_option): Update to new hook interface.
24134         * config/rs6000/rs6000.c: Include opts.h.
24135         (rs6000_handle_option): Update to new hook interface.
24136         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
24137         * config/rx/rx.c: Include opts.h.
24138         (rx_handle_option): Update to new hook interface.
24139         * config/s390/s390.c: Include opts.h.
24140         (s390_handle_option): Update to new hook interface.
24141         * config/score/score.c: Include opts.h.
24142         (score_handle_option): Update to new hook interface.
24143         * config/sh/sh.c: Include opts.h.
24144         (sh_handle_option): Update to new hook interface.
24145         * config/sparc/sparc.c: Include opts.h.
24146         (sparc_handle_option): Update to new hook interface.
24147         * config/v850/v850.c: Include opts.h.
24148         (v850_handle_option): Update to new hook interface.
24149
24150 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24151
24152         * gcc.c (driver_unknown_option_callback): Only permit and save
24153         unknown -Wno- options.
24154         (driver_wrong_lang_callback): Save options directly instead of via
24155         driver_unknown_option_callback.
24156
24157 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
24158
24159         * combine.c (simplify_set): Try harder to find the best CC mode when
24160         simplifying a nested COMPARE on the RHS.
24161
24162 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24163
24164         * config/alpha/gnu.h: Remove.
24165         * config/arc: Remove directory.
24166         * config/arm/netbsd.h: Remove.
24167         * config/arm/t-pe: Remove.
24168         * config/crx: Remove directory.
24169         * config/i386/netbsd.h: Remove.
24170         * config/m68hc11: Remove directory.
24171         * config/m68k/uclinux-oldabi.h: Remove.
24172         * config/mcore/mcore-pe.h: Remove.
24173         * config/mcore/t-mcore-pe: Remove.
24174         * config/netbsd-aout.h: Remove.
24175         * config/rs6000/gnu.h: Remove.
24176         * config/sh/sh-symbian.h: Remove.
24177         * config/sh/symbian-base.c: Remove.
24178         * config/sh/symbian-c.c: Remove.
24179         * config/sh/symbian-cxx.c: Remove.
24180         * config/sh/symbian-post.h: Remove.
24181         * config/sh/symbian-pre.h: Remove.
24182         * config/sh/t-symbian: Remove.
24183         * config/svr3.h: Remove.
24184         * config/vax/netbsd.h: Remove.
24185         * config.build: Don't handle i[34567]86-*-pe.
24186         * config.gcc: Remove handling of deprecations for most deprecated
24187         targets.
24188         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
24189         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
24190         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
24191         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
24192         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
24193         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
24194         Remove cases.
24195         * config.host: Don't handle i[34567]86-*-pe.
24196         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
24197         (ASM_SPEC32): Don't handle -mcall-gnu.
24198         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
24199         -mcall-gnu.
24200         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
24201         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
24202         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
24203         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
24204         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
24205         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
24206         conditional on SYMBIAN.
24207         * configure.ac: Don't handle powerpc*-*-gnu*.
24208         * configure: Regenerate.
24209         * doc/extend.texi (interrupt attribute): Don't mention CRX.
24210         * doc/install-old.texi (m6811, m6812): Don't mention.
24211         * doc/install.texi (arc-*-elf*): Don't document multilib option.
24212         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
24213         (m68k-uclinuxoldabi): Don't mention.
24214         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
24215         Remove.
24216         (-mcall-gnu): Remove.
24217         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
24218         families): Remove constraint documentation.
24219
24220 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
24221
24222         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
24223         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
24224         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
24225
24226 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
24227
24228         PR target/48226
24229         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
24230         vector when peeking at the next token for vector, don't expand the
24231         keywords.
24232
24233 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
24234
24235         * config/avr/avr-protos.h (expand_epilogue): Change prototype
24236         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
24237         * config/avr/avr.c (init_cumulative_args)
24238         (avr_function_arg_advance): Use it.
24239         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
24240         sibcall epilogues.
24241         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
24242         (avr_function_ok_for_sibcall): ...this new function.
24243         (avr_lookup_function_attribute1): New static Function.
24244         (avr_naked_function_p, interrupt_function_p)
24245         (signal_function_p, avr_OS_task_function_p)
24246         (avr_OS_main_function_p): Use it.
24247         * config/avr/avr.md ("sibcall", "sibcall_value")
24248         ("sibcall_epilogue"): New expander.
24249         ("*call_insn", "*call_value_insn"): New insn.
24250         ("call_insn", "call_value_insn"): Remove
24251         ("call", "call_value", "epilogue"): Change expander to handle
24252         sibling calls.
24253
24254 2011-03-21  Nick Clifton  <nickc@redhat.com>
24255
24256         * doc/invoke.texi (Overall Options): Move closing brace to end of
24257         options list.
24258         (Optimization Options): Add missing @gol.
24259         (Directory Options): Likewise.
24260         (i386 and x86-64 Options): Likewise.
24261         (RS6000 and PowerPC Options): Likewise.
24262         (i386 and x86-64 Windows Options): Likewise.
24263         (V850 Options): Add text missing from descriptions.
24264
24265 2011-03-22  Richard Henderson  <rth@redhat.com>
24266
24267         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
24268         (avr_incoming_return_addr_rtx): New.
24269         (emit_push_byte): New.
24270         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
24271         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
24272         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
24273         (emit_pop_byte): New.
24274         (expand_epilogue): Use it.  Pop frame pointer by bytes.
24275         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
24276         (INCOMING_RETURN_ADDR_RTX): New.
24277         (INCOMING_FRAME_SP_OFFSET): New.
24278         (ARG_POINTER_CFA_OFFSET): New.
24279         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
24280         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
24281         (pophi): Remove.
24282
24283         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
24284
24285 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
24286
24287         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
24288         (FUNCTION_ARG_ADVANCE): Likewise.
24289         * tm.texi.in: Change references to them to hook references.
24290         * tm.texi: Regenerate.
24291         * targhooks.c (default_function_arg): Eliminate check for target
24292         macro.
24293         (default_function_incoming_arg): Likewise.
24294         (default_function_arg_advance): Likewise.
24295         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
24296         (function_arg_advance): Likewise.
24297         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
24298
24299 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
24300
24301         * tree.c (build_call_1): New function.
24302         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
24303
24304 2011-03-22  Richard Guenther  <rguenther@suse.de>
24305
24306         PR tree-optimization/48228
24307         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
24308         for single-arg PHIs.
24309
24310 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
24311
24312         PR rtl-optimization/48143
24313         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
24314         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
24315         sse2_cvtps2pd): Likewise.
24316
24317 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24318
24319         * recog.c (canonicalize_change_group): Use validate_unshare_change.
24320
24321 2011-03-22  Richard Guenther  <rguenther@suse.de>
24322
24323         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
24324         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
24325         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
24326         and REALIGN_LOAD_EXPR.
24327         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
24328         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
24329         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
24330         DOT_PROD_EXPR case ...
24331         (expand_expr_real_2): ... here.
24332         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
24333         and REALIGN_LOAD_EXPR.
24334         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
24335         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
24336         (vect_create_epilog_for_reduction): Likewise.
24337         (vectorizable_reduction): Likewise.
24338         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
24339         * tree-vect-stmts.c (vectorizable_load): Likewise.
24340
24341 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
24342
24343         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
24344
24345 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24346
24347         * config/s390/s390.c (s390_delegitimize_address): Fix offset
24348         handling for PLTOFF/GOTOFF.
24349
24350 2011-03-22  Nick Clifton  <nickc@redhat.com>
24351
24352         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
24353         trailing backslash from the end of the macro definition.
24354
24355 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24356
24357         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
24358         and PLT unspecs.
24359
24360 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
24361
24362         * expr.h (prepare_operand): Move to...
24363         * optabs.h (prepare_operand): ...here and change the insn code
24364         parameter from "int" to "enum insn_code".
24365         (insn_operand_matches): Declare.
24366         * expr.c (init_expr_target): Use insn_operand_matches.
24367         (compress_float_constant): Likewise.
24368         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
24369         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
24370         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
24371         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
24372         Likewise.
24373         (gen_cond_trap): Likewise.
24374         (prepare_operand): Likewise.  Change icode to an insn_code.
24375         (insn_operand_matches): New function.
24376         * reload.c (find_reloads_address_1): Use insn_operand_matches.
24377         * reload1.c (gen_reload): Likewise.
24378         * targhooks.c (default_secondary_reload): Likewise.
24379
24380 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
24381
24382         * config/alpha/alpha.md (unspec): New define_c_enum.
24383         (unspecv): Ditto.
24384
24385 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
24386
24387         PR debug/48214
24388         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
24389         between a call and its CALL_ARG_LOCATION note.
24390
24391 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
24392
24393         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
24394
24395 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
24396
24397         PR c/42544
24398         PR c/48197
24399         * c-common.c (shorten_compare): If primopN is first sign-extended
24400         to opN and then zero-extended to result type, set primopN to opN.
24401
24402 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
24403
24404         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
24405         for barrier handlers.
24406
24407 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
24408
24409         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
24410         UNSPEC constants to be in the unspec enumeration, and redefine
24411         all UNSPECV constants to be in the unspecv enumeration, so that
24412         dumps print which unspec/unspec_volatile this is.
24413         * config/rs6000/vector.md (UNSPEC_*): Ditto.
24414         * config/rs6000/paired.md (UNSPEC_*): Ditto.
24415         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
24416         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
24417         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
24418
24419         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
24420         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
24421         UNSPECV_LWSYNC, since these are used as unspec_volatile.
24422         * config/rs6000/sync.md (isync, lwsync): Ditto.
24423
24424 2011-03-21  Richard Guenther  <rguenther@suse.de>
24425
24426         * params.def (lto-min-partition): Fix typo.
24427
24428 2011-03-21  Richard Guenther  <rguenther@suse.de>
24429
24430         PR c/47939
24431         * c-decl.c (grokdeclarator): Drop to the main variant only
24432         for array types.  Drop flag_gen_aux_info check.
24433
24434 2011-03-21  Richard Guenther  <rguenther@suse.de>
24435
24436         PR translation/47911
24437         * params.def (lto-partitions): Fix typo.
24438         (lto-min-partition): Fix wording.
24439
24440 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
24441
24442         * config/rs6000/t-freebsd: Remove duplication from file.
24443
24444 2011-03-21  Richard Guenther  <rguenther@suse.de>
24445
24446         PR middle-end/47661
24447         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
24448
24449 2011-03-21  Richard Guenther  <rguenther@suse.de>
24450
24451         PR lto/48210
24452         * params.def (lto-partitions): Require at least 1 partition.
24453
24454 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24455
24456         * gthr-solaris.h: Remove.
24457         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
24458         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
24459         (LIB_SPEC): Likewise.
24460         * config/sol2.opt (threads): Remove.
24461         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
24462         (sparc*-*-solaris2*): Likewise.
24463         * configure.ac (enable_threads): Enable solaris support.
24464         * configure: Regenerate.
24465         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
24466         * doc/install.texi (Configuration, --enable-threads=lib): Remove
24467         solaris.
24468
24469 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24470
24471         * config.gcc: Obsolete *-*-solaris2.8*.
24472         * doc/install.texi (Specific, *-*-solaris2*): Document it.
24473
24474 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24475
24476         PR bootstrap/48135
24477         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
24478         reference.  Solaris 8 perl works.
24479
24480 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24481
24482         PR bootstrap/48135
24483         * doc/install.texi (Prerequisites): Move jar etc. up.
24484         Explain support library version requirements.
24485
24486 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24487
24488         PR bootstrap/48135
24489         * doc/install.texi (Prerequisites): Move Perl to build
24490         requirements.  Always necessary on Solaris 2 with Sun ld.
24491
24492 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24493
24494         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
24495         binutils 2.21.
24496         (Specific, i?86-*-solaris2.[89]): Likewise.
24497         (Specific, i?86-*-solaris2.10): Likewise.
24498         (Specific, mips-sgi-irix6): Likewise.
24499         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
24500         Update for binutils 2.21.
24501
24502 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24503
24504         * configure.ac (gcc_cv_lto_plugin): Fix typo.
24505         Allow -fuse-linker-plugin for non-default plugin linker.
24506         * configure: Regenerate.
24507
24508 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
24509
24510         PR bootstrap/48167
24511         * gengtype.c (files_rules): Added rule for cp/parser.h.
24512
24513 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
24514
24515         PR target/48213
24516         * config/s390/s390.c (s390_delegitimize_address): Don't call
24517         lowpart_subreg if orig_x has BLKmode.
24518
24519 2011-03-21  Kai Tietz  <ktietz@redhat.com>
24520
24521         PR target/12171
24522         * doc/plugins.texi: Adjust documentation for plugin register_callback.
24523         * tree.h (attribute_spec): Add new member affects_type_identity.
24524         * attribs.c (empty_attribute_table): Adjust attribute_spec
24525         initializers.
24526         * config/alpha/alpha.c: Likewise.
24527         * config/arc/arc.c: Likewise.
24528         * config/arm/arm.c: Likewise.
24529         * config/avr/avr.c: Likewise.
24530         * config/bfin/bfin.c: Likewise.
24531         * config/crx/crx.c: Likewise.
24532         * config/darwin.h: Likewise.
24533         * config/h8300/h8300.c: Likewise.
24534         * config/i386/cygming.h: Likewise.
24535         * config/i386/i386.c: Likewise.
24536         * config/ia64/ia64.c: Likewise.
24537         * config/m32c/m32c.c: Likewise.
24538         * config/m32r/m32r.c: Likewise.
24539         * config/m68hc11/m68hc11.c: Likewise.
24540         * config/m68k/m68k.c: Likewise.
24541         * config/mcore/mcore.c: Likewise.
24542         * config/mep/mep.c: Likewise.
24543         * config/microblaze/microblaze.c: Likewise.
24544         * config/mips/mips.c: Likewise.
24545         * config/rs6000/rs6000.c: Likewise.
24546         * config/rx/rx.c: Likewise.
24547         * config/sh/sh.c: Likewise.
24548         * config/sol2.h: Likewise.
24549         * config/sparc/sparc.c: Likewise.
24550         * config/spu/spu.c: Likewise.
24551         * config/stormy16/stormy16.c: Likewise.
24552         * config/v850/v850.c: Likewise.
24553
24554 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
24555
24556         * simplify-rtx.c (simplify_binary_operation_1): Handle
24557         (xor (and A B) C) case when B and C are both constants.
24558
24559 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
24560
24561         * tree-dfa.c (add_referenced_var): Fix typo in comment.
24562
24563 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
24564
24565         PR bootstrap/48168
24566         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
24567
24568 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
24569
24570         PR rtl-optimization/48156
24571         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
24572         assume df and df_lr are not NULL.
24573
24574 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
24575
24576         PR debug/48023
24577         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
24578         between a call and its CALL_ARG_LOCATION note.
24579
24580 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
24581
24582         PR debug/48178
24583         * config/sh/sh.c (find_barrier): Don't emit a constant pool
24584         between a call and its corresponding CALL_ARG_LOCATION note.
24585
24586 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
24587
24588         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
24589         instead of loop. Use HARD_REGISTER_NUM_P predicate.
24590         * haifa-sched.c (setup_ref_regs): Ditto.
24591         * caller-save.c (add_used_regs_1): Ditto.
24592         * dse.c (look_for_hardregs): Ditto.
24593         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
24594         * sched-rgn.c (check_live_1): Ditto.
24595
24596 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
24597
24598         * c-decl.c (diagnose_mismatched_decls): Give an error for
24599         redefining a typedef with variably modified type.
24600
24601 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
24602
24603         * c-decl.c (grokfield): Don't allow typedefs for structures or
24604         unions with no tag by default.
24605         * doc/extend.texi (Unnamed Fields): Update.
24606
24607 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
24608
24609         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
24610         Rewrite using indirect functions.
24611         (lwp_slwpcb): Ditto.
24612         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
24613         (avx_vinsertf128<mode>): Ditto.
24614
24615 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24616
24617         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
24618         unspecs.
24619
24620 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24621
24622         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
24623         splitting between a call and its corresponding CALL_ARG_LOCATION note.
24624
24625 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
24626
24627         PR rtl-optimization/48170
24628         * gcse.c (hoist_code): Remove bogus asserts.
24629
24630 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
24631
24632         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
24633         computation for prologue/epilogue.
24634
24635 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24636
24637         * Makefile.in (check-consistency): Remove.
24638
24639 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
24640
24641         PR debug/48176
24642         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
24643         arange_table_in_use is 0, but either text_section_used or
24644         cold_text_section_used is true.  Don't call it if
24645         !info_section_emitted.
24646
24647 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
24648
24649         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
24650         FUNCTION_VALUE_REGNO_P): Remove.
24651         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
24652         Remove.
24653         * config/avr/avr.c (avr_ret_register): Make static inline.
24654         (avr_function_value_regno_p): New function.
24655         (avr_libcall_value): Make static. Add 'func' argument.
24656         (avr_function_value): Make static. Rename 'func' argument to
24657         'fn_decl_or_type', forward it to avr_libcall_value. Call
24658         avr_ret_register function instead of RET_REGISTER macro.
24659         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
24660
24661 2011-03-18  Jason Merrill  <jason@redhat.com>
24662
24663         PR c++/23372
24664         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
24665
24666 2011-03-18  Richard Guenther  <rguenther@suse.de>
24667
24668         * doc/install.texi (--enable-gold): Remove.
24669         (--with-plugin-ld): Document.
24670         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
24671
24672 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
24673
24674         PR middle-end/47790
24675         * expr.c (optimize_bitfield_assignment_op): Revamp to work
24676         again after expansion changes.
24677
24678 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
24679
24680         * combine.c (try_combine): Do simplification only call of
24681         subst() on i2 even when i1 is present. Update comments.
24682
24683 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
24684
24685         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
24686         and UNSPEC_PCREL_SYMOFF.
24687
24688 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24689
24690         * config/s390/s390.md: Use define_c_enum for the unspec constant
24691         definitions.
24692
24693 2011-03-18  Richard Henderson  <rth@redhat.com>
24694             Jakub Jelinek  <jakub@redhat.com>
24695
24696         PR bootstrap/48161
24697         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
24698         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
24699
24700 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
24701
24702         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
24703         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
24704         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
24705         Change return type to bool.
24706         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
24707
24708 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
24709
24710         PR debug/48163
24711         * var-tracking.c (prepare_call_arguments): If CALL target
24712         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
24713         pc instead of looking it up using cselib_lookup and use
24714         Pmode for it if x has VOIDmode.
24715         * dwarf2out.c (gen_subprogram_die): If also both first and
24716         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
24717
24718         PR debug/48163
24719         * function.c (assign_parms): For data.passed_pointer parms
24720         use MEM of data.entry_parm instead of data.entry_parm itself
24721         as DECL_INCOMING_RTL.
24722         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
24723         also when passed and declared mode is the same, DECL_RTL
24724         is a MEM with pseudo as address and DECL_INCOMING_RTL is
24725         a MEM too.
24726
24727 2011-03-16  Jeff Law  <law@redhat.com>
24728
24729         PR rtl-optimization/37273
24730         * ira-costs.c (scan_one_insn): Detect constants living in memory and
24731         handle them like argument loads from stack slots.  Do not double
24732         count memory for memory constants and argument loads from stack slots.
24733
24734 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
24735
24736         PR debug/48160
24737         * var-tracking.c (prepare_call_arguments): Check SUBREG.
24738
24739 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
24740
24741         PR target/48171
24742         * config/i386/i386.opt: Add Save to -mavx and -mfma.
24743
24744 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
24745
24746         PR bootstrap/48153
24747         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
24748         if dwarf_strict.
24749         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
24750         Clear call_arg_locations and call_arg_loc_last always.
24751
24752         PR middle-end/48152
24753         * var-tracking.c (prepare_call_arguments): If argument needs to be
24754         passed by reference, adjust argtype and mode.
24755
24756 2011-03-17  Richard Guenther  <rguenther@suse.de>
24757
24758         PR middle-end/48134
24759         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
24760         a value make sure to fold the statement.
24761
24762 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
24763
24764         PR target/43872
24765         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
24766         return condition with !cfun->calls_alloca.
24767
24768 2011-03-17  Richard Guenther  <rguenther@suse.de>
24769
24770         PR bootstrap/48148
24771         * lto-cgraph.c (input_overwrite_node): Clear the abstract
24772         origin for decls in other ltrans units.
24773         (input_varpool_node): Likewise.
24774
24775 2011-03-17  Richard Guenther  <rguenther@suse.de>
24776
24777         PR middle-end/48165
24778         * tree-object-size.c (compute_object_offset): Properly return
24779         the offset operand of MEM_REFs as sizetype.
24780
24781 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
24782
24783         PR rtl-optimization/48141
24784         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
24785         * dse.c: Include params.h.
24786         (active_local_stores_len): New variable.
24787         (add_wild_read, dse_step1): Clear it when setting active_local_stores
24788         to NULL.
24789         (record_store, check_mem_read_rtx): Decrease it when removing
24790         from the chain.
24791         (scan_insn): Likewise.  Increase it when adding to chain, if it
24792         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
24793         set active_local_stores to NULL before the addition.
24794         * Makefile.in (dse.o): Depend on $(PARAMS_H).
24795
24796         PR rtl-optimization/48141
24797         * dse.c (record_store): If no positions are needed in an insn
24798         that cannot be deleted, at least unchain it from active_local_stores.
24799
24800 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
24801
24802         PR debug/47510
24803         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
24804         (lookup_type_die_strip_naming_typedef): ... here.
24805         (get_context_die): Use it.
24806         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
24807         the anonymous struct named by the naming typedef.
24808
24809 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
24810
24811         PR target/48154
24812         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
24813         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
24814
24815 2011-03-16  Jeff Law  <law@redhat.com>
24816
24817         * tree-vrp.c (identify_jump_threads): Slightly simplify type
24818         check for operands of conditional.  Allow type to be a pointer.
24819
24820 2011-03-16  Richard Guenther  <rguenther@suse.de>
24821
24822         PR tree-optimization/48149
24823         * fold-const.c (fold_binary_loc): Fold
24824         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
24825
24826 2011-03-16  Richard Guenther  <rguenther@suse.de>
24827
24828         PR tree-optimization/26134
24829         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
24830         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
24831         (non_rewritable_mem_ref_base): Handle complex type component
24832         accesses, constrain offsets for vector and complex extracts
24833         more properly.
24834
24835 2011-03-16  Richard Guenther  <rguenther@suse.de>
24836
24837         PR tree-optimization/48146
24838         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
24839         operands avoiding the need for renaming.
24840
24841 2011-03-16  Richard Guenther  <rguenther@suse.de>
24842
24843         * gimple-fold.c (maybe_fold_reference): Open-code relevant
24844         constant folding.  Move MEM_REF canonicalization first.
24845         Rely on fold_const_aggregate_ref for initializer folding.
24846         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
24847
24848 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
24849
24850         PR middle-end/48136
24851         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
24852         arg0/arg1 or their arguments are always fold converted to matching
24853         types.
24854
24855         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
24856         to nargs.
24857
24858 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24859
24860         PR lto/46944
24861         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
24862         Handle in-tree gold.
24863         (ld_vers): Extract binutils version for gold.
24864         (gcc_cv_ld_hidden): Handle gold here.
24865         (gcc_cv_lto_plugin): Determine level of linker plugin support.
24866         * configure: Regenerate.
24867         * config.in: Regenerate.
24868         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
24869         -fuse-linker-plugin otherwise.
24870         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
24871         (LINK_COMMAND_SPEC): Use it.
24872         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
24873
24874 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
24875
24876         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
24877         * calls.c: Remove debug.h include.
24878         (emit_call_1): Don't call virtual_call_token debug hook.
24879         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
24880         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
24881         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
24882         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
24883         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
24884         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
24885         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
24886         dwarf2out_virtual_call): Remove.
24887         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
24888         copy_call_info and virtual_call hooks.
24889         (dwarf2out_init): Don't initialize vcall_insn_table,
24890         debug_dcall_section and debug_vcall_section.
24891         (prune_unused_types): Don't mark nodes from dcall_table.
24892         (dwarf2out_finish): Don't output dcall or vcall tables.
24893         * final.c (final_scan_insn): Don't call direct_call or
24894         virtual_call debug hooks.
24895         * debug.h (struct gcc_debug_hooks): Remove direct_call,
24896         virtual_call_token, copy_call_info and virtual_call hooks.
24897         (debug_nothing_uid): Remove prototype.
24898         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
24899         copy_call_info and virtual_call hooks.
24900         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
24901         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
24902         * debug.c (do_nothing_debug_hooks): Likewise.
24903         (debug_nothing_uid): Remove.
24904         * doc/invoke.texi (-fenable-icf-debug): Remove.
24905         * common.opt (-fenable-icf-debug): Likewise.
24906
24907         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
24908         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
24909         call's MEM.  Handle functions returning aggregate through a hidden
24910         first pointer.  For virtual calls add clobbered pc to call arguments
24911         chain.
24912         * dwarf2out.c (gen_subprogram_die): Emit
24913         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
24914         can't be emitted.
24915
24916         PR debug/45882
24917         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
24918         * rtl.h (ENTRY_VALUE_EXP): Define.
24919         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
24920         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
24921         * print-rtl.c (print_rtx): Likewise.
24922         * gengtype.c (adjust_field_rtx_def): Likewise.
24923         * var-tracking.c (vt_add_function_parameter): Adjust
24924         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
24925         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
24926         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
24927         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
24928         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
24929
24930         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
24931         Call var_location debug hook even on CALL_INSNs.
24932         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
24933         * rtl.def (ENTRY_VALUE): New.
24934         * dwarf2out.c: Include cfglayout.h.
24935         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
24936         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
24937         (struct call_arg_loc_node): New type.
24938         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
24939         tail_call_site_count): New variables.
24940         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
24941         DW_TAG_GNU_call_site_parameter.
24942         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
24943         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
24944         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
24945         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
24946         and DW_AT_GNU_all_source_call_sites.
24947         (mem_loc_descriptor): Handle ENTRY_VALUE.
24948         (add_src_coords_attributes): Don't add enything if
24949         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
24950         (dwarf2out_abstract_function): Save and clear call_arg_location,
24951         call_site_count and tail_call_site_count around dwarf2out_decl call.
24952         (gen_call_site_die): New function.
24953         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
24954         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
24955         (dwarf2out_function_decl): Clear call_arg_locations,
24956         call_arg_loc_last, set call_site_count and tail_call_site_count
24957         to -1 and free block_map.
24958         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
24959         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
24960         followed by any real instructions.
24961         (dwarf2out_begin_function): Set call_site_count and
24962         tail_call_site_count to 0.
24963         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
24964         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
24965         attempt to force a DIE for it and worst case remove the attribute.
24966         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
24967         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
24968         the decl itself.
24969         * var-tracking.c: Include tm_p.h.
24970         (vt_stack_adjustments): For calls call note_register_arguments.
24971         (argument_reg_set): New variable.
24972         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
24973         ensure the VALUE is resolved.
24974         (call_arguments): New variable.
24975         (prepare_call_arguments): New function.
24976         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
24977         (struct expand_loc_callback_data): Add ignore_cur_loc field.
24978         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
24979         always use the best expression.
24980         (vt_expand_loc): Add ignore_cur_loc argument.
24981         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
24982         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
24983         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
24984         note for all calls.
24985         (vt_add_function_parameter): Use cselib_lookup_from_insn.
24986         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
24987         argument.  Don't call cselib_preserve_only_values and
24988         cselib_reset_table.
24989         (note_register_arguments): New function.
24990         (vt_initialize): Compute argument_reg_set.  Call
24991         vt_add_function_parameters before processing basic blocks instead of
24992         afterwards.  For calls call prepare_call_arguments before calling
24993         cselib_process_insn.
24994         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
24995         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
24996         (var-tracking.o): Depend on $(TM_P_H).
24997         * cfglayout.h (insn_scope): New prototype.
24998         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
24999         * cfglayout.c (insn_scope): No longer static.
25000         * insn-notes.def (CALL_ARG_LOCATION): New.
25001         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
25002         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
25003         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
25004         nothing for DECL_EXTERNAL BLOCK_VARS.
25005
25006 2011-03-16  Alan Modra  <amodra@gmail.com>
25007
25008         PR target/45844
25009         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
25010         create invalid offset address for vsx splat insn.
25011         * config/rs6000/predicates.md (splat_input_operand): New.
25012         * config/rs6000/vsx.md (vsx_splat_*): Use it.
25013
25014 2011-03-15  Xinliang David Li  <davidxl@google.com>
25015
25016         PR c/47837
25017         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
25018         (normalize_preds): New function.
25019         (is_use_properly_guarded): Normalize def predicates.
25020
25021 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
25022
25023         PR target/46788
25024         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
25025         in the output template.
25026
25027 2011-03-15  Richard Guenther  <rguenther@suse.de>
25028
25029         PR middle-end/47650
25030         * tree-pretty-print.c (dump_function_declaration): Properly
25031         dump unprototyped and varargs function types.
25032
25033 2011-03-15  Richard Guenther  <rguenther@suse.de>
25034
25035         PR tree-optimization/13954
25036         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
25037         and friends.
25038
25039 2011-03-15  Richard Guenther  <rguenther@suse.de>
25040
25041         PR tree-optimization/48037
25042         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
25043         selects into BIT_FIELD_REFs.
25044         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
25045         vector select.
25046
25047 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
25048
25049         PR tree-optimization/48129
25050         * builtins.c (fold_builtin_snprintf): Convert to type of
25051         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
25052         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
25053
25054 2011-03-15  Richard Guenther  <rguenther@suse.de>
25055
25056         PR tree-optimization/41490
25057         * tree-ssa-dce.c (propagate_necessity): Handle returns without
25058         value but with VUSE.
25059         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
25060         return statements.
25061         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
25062         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
25063         * tree-tailcall.c (find_tail_calls): Ignore returns.
25064
25065 2011-03-15  Richard Guenther  <rguenther@suse.de>
25066
25067         PR middle-end/48031
25068         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
25069         or variable-indexed array accesses when in gimple form.
25070
25071 2011-03-15  Richard Guenther  <rguenther@suse.de>
25072
25073         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
25074
25075 2011-03-15  Alan Modra  <amodra@gmail.com>
25076
25077         PR target/48032
25078         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
25079         presume symbol_refs without a symbol_ref_decl are suitably
25080         aligned, nor other trees we may see here.  Handle anchor symbols.
25081         (legitimate_constant_pool_address_p): Comment.  Add mode param.
25082         Check cmodel=medium addresses.  Adjust all calls.
25083         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
25084         creating cmodel=medium optimized access to locals.
25085         * config/rs6000/constraints.md (R): Pass QImode to
25086         legitimate_constant_pool_address_p.
25087         * config/rs6000/predicates.md (input_operand): Pass mode to
25088         legitimate_constant_pool_address_p.
25089         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
25090         Update prototype.
25091
25092 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
25093
25094         PR target/48053
25095         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
25096         64-bit constants being loaded into registers other than GPRs such
25097         as loading 0 into a VSX register.
25098
25099 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25100
25101         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
25102
25103 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
25104
25105         PR middle-end/47917
25106         * builtins.c (fold_builtin_snprintf): New function.
25107         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
25108         (fold_builtin_4): Likewise.
25109
25110         PR middle-end/38878
25111         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
25112         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
25113         and C - X == X also strip nops from +/-/p+ operand.
25114         When optimizing -X == C, fold C to arg0's type.
25115
25116         PR debug/47946
25117         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
25118         emit it as add_AT_int instead of add_AT_unsigned.
25119
25120 2011-03-14  Tom Tromey  <tromey@redhat.com>
25121
25122         * unwind-dw2.c: Include sys/sdt.h if it exists.
25123         (_Unwind_DebugHook): Use STAP_PROBE2.
25124         * config.in, configure: Rebuild.
25125         * configure.ac: Check for sys/sdt.h.
25126
25127 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
25128
25129         * config/i386/i386.md (ROUND_FLOOR): New constant.
25130         (ROUND_CEIL): Ditto.
25131         (ROUND_TRUNC): Ditto.
25132         (ROUND_MXCSR): Ditto.
25133         (ROUND_NO_EXC): Ditto.
25134         (rint<mode>2): Use new defines instead of numerical constants.
25135         (floor<mode>2): Ditto.
25136         (ceil<mode>2): Ditto.
25137         (btrunc<mode>2): Ditto.
25138         * config/i386/i386-builtin-types.def: Define ROUND function type
25139         aliases.
25140         * config/i386/i386.c (enum ix86_builtins): Add
25141         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
25142         (struct builtin_description): Add
25143         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
25144         (ix86_expand_sse_round): New static function.
25145         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
25146         function types.
25147         (ix86_builtin_vectorized_function): Handle
25148         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
25149
25150 2011-03-14  Tom Tromey  <tromey@redhat.com>
25151
25152         * c-parser.c (c_parser_asm_string_literal): Clear
25153         warn_overlength_strings.
25154
25155 2011-03-14  Tom Tromey  <tromey@redhat.com>
25156
25157         * c-parser.c (disable_extension_diagnostics): Save
25158         warn_overlength_strings.
25159         (restore_extension_diagnostics): Restore warn_overlength_strings.
25160
25161 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
25162
25163         * BASE-VER: Change to 4.7.0.
25164
25165 2011-03-14  Richard Guenther  <rguenther@suse.de>
25166
25167         PR middle-end/48098
25168         * tree.c (build_vector_from_val): Adjust assert to requirements
25169         and reality.
25170
25171 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
25172
25173         PR bootstrap/48102
25174         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
25175
25176 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
25177
25178         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
25179         terms of target_flags_explicit. Adjust copyright year.
25180
25181         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
25182         * config/rs6000/t-freebsd: New file. Add override for
25183         LIB2FUNCS_EXTRA.
25184
25185 2011-03-13  Chris Demetriou  <cgd@google.com>
25186
25187         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
25188         (-fno-diagnostics-show-option): this, to reflect current default.
25189         (-Werror=): Update text about -fno-diagnostics-show-option.
25190
25191 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
25192
25193         PR target/48053
25194         * config/rs6000/predicates.md (easy_vector_constant_add_self,
25195         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
25196         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
25197         mode is not V2DImode or V2DFmode.
25198         (vspltis_constant): Do not handle V2DImode and V2DFmode.
25199         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
25200         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
25201         registers to 0.
25202         (movdi_internal64): Likewise.
25203
25204 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
25205
25206         PR tree-optimization/47127
25207         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
25208         parameter.
25209         (set_cloog_options): Same.
25210         (scop_to_clast): Same.
25211         (print_clast_stmt): Do not call cloog_state_malloc and
25212         cloog_state_free.
25213         (print_generated_program): Same.
25214         (gloog): Same.
25215         * graphite-clast-to-gimple.h (cloog_state): Declared.
25216         (scop_to_clast): Adjust declaration.
25217         * graphite.c (cloog_state): Defined here.
25218         (graphite_initialize): Call cloog_state_malloc.
25219         (graphite_finalize): Call cloog_state_free.
25220
25221 2011-03-11  Jason Merrill  <jason@redhat.com>
25222
25223         * attribs.c (lookup_attribute_spec): Take const_tree.
25224         * tree.h: Adjust.
25225
25226 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
25227
25228         * config/sparc/sparc.c (sparc_option_override): Use
25229         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
25230
25231 2011-03-11  Richard Guenther  <rguenther@suse.de>
25232
25233         PR tree-optimization/48067
25234         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
25235         multiplication result will be only used once on the target
25236         stmt.
25237
25238 2011-03-11  Richard Guenther  <rguenther@suse.de>
25239
25240         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
25241
25242 2011-03-11  Richard Guenther  <rguenther@suse.de>
25243
25244         PR lto/48073
25245         * tree.c (find_decls_types_r): Do not walk types only reachable
25246         from IDENTIFIER_NODEs.
25247
25248 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
25249
25250         PR middle-end/48044
25251         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
25252         all vnode->force_output nodes as needed.
25253
25254 2011-03-11  Jason Merrill  <jason@redhat.com>
25255
25256         PR c++/48069
25257         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
25258         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
25259
25260 2011-03-11  Martin Jambor  <mjambor@suse.cz>
25261
25262         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
25263         cgraph_node.
25264
25265 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
25266
25267         PR tree-optimization/48063
25268         * ipa-inline.c (cgraph_decide_inlining): Don't try to
25269         inline functions called once if !tree_can_inline_p (node->callers).
25270
25271 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
25272
25273         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
25274         extra_objs.
25275         * config/score/score3.c: Delete.
25276         * config/score/score3.h: Delete.
25277         * config/score/mul-div.S: Delete.
25278         * config/score/sfp-machine.h: Add new file.
25279         * config/score/constraints.md: Add new file.
25280         * config/score/t-score-softfp: Add new file.
25281         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
25282         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
25283         (score7_extra_constraint): Delete.
25284         (score7_option_override): Remove unused code.
25285         * config/score/score.c: Remove score3 and score5 define and code.
25286         * config/score/score.h: Remove score3 and score5 define and code.
25287         * config/score/score.md: Remove score3 template and unusual insn.
25288         * config/score/score.opt: Remove score3 and score5 options.
25289
25290 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25291
25292         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
25293         when _HPUX_SOURCE is defined.
25294         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
25295
25296 2011-03-10  Jason Merrill  <jason@redhat.com>
25297
25298         PR c++/48029
25299         * stor-layout.c (layout_type): Don't set structural equality
25300         on arrays of incomplete type.
25301         * tree.c (type_hash_eq): Handle comparing them properly.
25302
25303 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
25304
25305         PR debug/48043
25306         * config/s390/s390.c (s390_delegitimize_address): Make sure the
25307         result mode matches original rtl mode.
25308
25309 2011-03-10  Nick Clifton  <nickc@redhat.com>
25310
25311         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
25312         (andsi3, andsi3_flags): Fix timings for three operand alternative.
25313
25314 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
25315
25316         PR rtl-optimization/47866
25317         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
25318         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
25319         if target wasn't scalar.
25320         * function.c (assign_stack_temp_for_type): Assert that neither
25321         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
25322         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
25323         macro.
25324         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
25325
25326 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25327
25328         * config/s390/s390-protos.h (s390_label_align): New prototype.
25329         * config/s390/s390.c (s390_label_align): New function.
25330         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
25331
25332 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
25333
25334         PR target/47755
25335         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
25336         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
25337         (output_vec_const_move): Ditto.
25338
25339 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
25340
25341         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
25342         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
25343         * config/mips/mips.c (mips_preferred_reload_class): Make static.
25344         Change 'rclass' argument and result type to reg_class_t.
25345         (TARGET_PREFERRED_RELOAD_CLASS): Define.
25346
25347 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
25348
25349         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
25350         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
25351         (TARGET_MEMORY_MOVE_COST): Define.
25352         (avr_register_move_cost, avr_memory_move_cost): New Functions.
25353
25354 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
25355
25356         PR debug/47881
25357         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
25358         removed anything.
25359
25360         PR tree-optimization/48022
25361         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
25362         for EQ/NE_EXPR.
25363
25364 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
25365
25366         PR debug/47991
25367         * var-tracking.c (find_use_val): Return NULL for
25368         cui->sets && cui->store_p BLKmode MEMs.
25369
25370 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
25371
25372         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
25373         Remove.
25374         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
25375         xstormy16_print_operand_address): Remove.
25376         * config/stormy16/stormy16.c (xstormy16_print_operand,
25377         xstormy16_print_operand_address): Make static.
25378         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
25379
25380 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
25381
25382         PR target/47862
25383         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
25384         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
25385         before definition.
25386
25387 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
25388
25389         PR bootstrap/48000
25390         * cfgloopmanip.c (fix_bb_placements): Return immediately
25391         if FROM is BASE_LOOP's header.
25392
25393 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
25394
25395         * gimplify.c (gimplify_function_tree): Fix building calls
25396         to __builtin_return_address.
25397
25398 2011-03-07  Alan Modra  <amodra@gmail.com>
25399
25400         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
25401         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
25402         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
25403         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
25404         return_mode args.
25405         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
25406         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
25407         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
25408         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
25409         * config/rs6000/rs6000.c
25410         (rs6000_elf_end_indicate_exec_stack): Rename to..
25411         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
25412         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
25413         (rs6000_file_start): ..here.
25414         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
25415         file scope variables.
25416         (call_ABI_of_interest): New function.
25417         (init_cumulative_args): Set above vars when function return value
25418         is a float, vector, or small struct.
25419         (rs6000_function_arg_advance_1): Likewise for function args.
25420         (rs6000_va_start): Set rs6000_passes_float if variable arg function
25421         references float args.
25422
25423 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
25424
25425         * doc/cfg.texi: Remove "See" before @ref.
25426         * doc/invoke.texi: Likewise.
25427
25428 2011-03-05  Jason Merrill  <jason@redhat.com>
25429
25430         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
25431
25432 2011-03-05  Anthony Green  <green@moxielogic.com>
25433
25434         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
25435
25436 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
25437
25438         PR rtl-optimization/47899
25439         * cfgloopmanip.c (fix_bb_placements): Fix first argument
25440         to flow_loop_nested_p when moving the loop upward.
25441
25442 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
25443
25444         PR target/47719
25445         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
25446
25447 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
25448
25449         PR tree-optimization/47967
25450         * ipa-cp.c (build_const_val): Return NULL instead of creating
25451         VIEW_CONVERT_EXPR for mismatching sizes.
25452         (ipcp_create_replace_map): Return NULL if build_const_val failed.
25453         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
25454         give up on versioning.
25455
25456 2011-03-05  Alan Modra  <amodra@gmail.com>
25457
25458         PR target/47986
25459         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
25460         full cmodel medium/large lo_sum + high addresses.
25461
25462 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25463
25464         * config/s390/s390.c (s390_decompose_address): Reject non-literal
25465         pool references in UNSPEC_LTREL_OFFSET.
25466
25467 2011-03-04  Jan Hubicka  <jh@suse.cz>
25468
25469         PR lto/47497
25470         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
25471         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
25472         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
25473         Add node pointers.
25474         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
25475         cgraph_add_thunk): Add node pointers.
25476         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
25477         associated to right node.
25478         (input_node): Update use of cgraph_same_body_alias
25479         and cgraph_add_thunk.
25480
25481 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
25482
25483         * config/i386/i386.opt (mprefer-avx128): New flag.
25484         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
25485         modes when the flag -mprefer-avx128 is on.
25486
25487 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
25488
25489         * dwarf2out.c (compare_loc_operands): Fix address handling.
25490
25491 2011-03-04  Alan Modra  <amodra@gmail.com>
25492
25493         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
25494
25495 2011-03-04  Richard Guenther  <rguenther@suse.de>
25496
25497         PR middle-end/47968
25498         * expmed.c (extract_bit_field_1): Prefer vector modes that
25499         vec_extract patterns can handle.
25500
25501 2011-03-04  Richard Guenther  <rguenther@suse.de>
25502
25503         PR middle-end/47975
25504         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
25505
25506 2011-03-04  Richard Henderson  <rth@redhat.com>
25507
25508         * explow.c (emit_stack_save): Remove 'after' parameter.
25509         (emit_stack_restore): Likewise.
25510         * expr.h: Update to match.
25511         * builtins.c, calls.c, stmt.c: Likewise.
25512         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
25513         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
25514         * function.c (expand_function_end): Insert the emit_stack_save
25515         sequence before parm_birth_insn instead of after.
25516
25517 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
25518
25519         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
25520         (ssse3_pmaddubsw128): Ditto.
25521         (ssse3_pmaddubsw): Ditto.
25522
25523 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
25524
25525         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
25526
25527 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
25528
25529         PR c/47963
25530         * gimplify.c (omp_add_variable): Only call omp_notice_variable
25531         on TYPE_SIZE_UNIT if it is a DECL.
25532
25533         PR debug/47283
25534         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
25535         first operand is not is_gimple_mem_ref_addr, try to fold it.
25536         If the operand still isn't is_gimple_mem_ref_addr, clear
25537         MEM_EXPR on op0.
25538
25539 2011-03-03  Richard Guenther  <rguenther@suse.de>
25540
25541         PR middle-end/47283
25542         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
25543         match comment.
25544         (refs_may_alias_p_1): For release branches return true if
25545         we are confused by our input.
25546
25547 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25548
25549         * config/s390/s390.c (s390_function_value): Rename to ...
25550         (s390_function_and_libcall_value): ... this.
25551         (s390_function_value): New function.
25552         (s390_libcall_value): New function.
25553         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
25554         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
25555         target macro definitions.
25556         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
25557
25558 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
25559
25560         * config/i386/freebsd64.h (CC1_SPEC): Define.
25561         * config/i386/linux64.h (CC1_SPEC): Define.
25562         * config/i386/x86-64.h (CC1_SPEC): Don't define.
25563
25564 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
25565
25566         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
25567         Remove.
25568         * config/stormy16/stormy16.c: Include reload.h.
25569         (xstormy16_memory_move_cost): New function.
25570         (TARGET_MEMORY_MOVE_COST): Define.
25571
25572 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
25573
25574         PR rtl-optimization/47925
25575         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
25576         with side effects.  Remove the more-specific check for volatile asms.
25577
25578 2011-03-02  Alan Modra  <amodra@gmail.com>
25579
25580         PR target/47935
25581         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
25582         toc relative addresses for valid offsets.
25583
25584 2011-03-01  Richard Guenther  <rguenther@suse.de>
25585
25586         PR tree-optimization/47890
25587         * tree-vect-loop.c (get_initial_def_for_induction): Set
25588         related stmt properly.
25589
25590 2011-03-01  Richard Guenther  <rguenther@suse.de>
25591
25592         PR lto/47924
25593         * lto-streamer.c (lto_record_common_node): Also register
25594         the canonical type.
25595
25596 2011-03-01  Richard Guenther  <rguenther@suse.de>
25597
25598         PR lto/46911
25599         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
25600         Do not stream DECL_ABSTRACT_ORIGIN.
25601         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
25602         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
25603         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
25604         Do not stream DECL_ABSTRACT_ORIGIN.
25605         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
25606         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
25607
25608 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
25609
25610         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
25611         FUNCTION_VALUE_REGNO_P): Remove.
25612         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
25613         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
25614         Add 'outgoing' argument.
25615         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
25616         function.
25617         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
25618         TARGET_FUNCTION_VALUE_REGNO_P): Define.
25619
25620 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
25621
25622         PR debug/28047
25623         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
25624         (lookup_filename): Likewise.
25625         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
25626
25627 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
25628             Jakub Jelinek  <jakub@redhat.com>
25629
25630         PR middle-end/47893
25631         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
25632         (assign_stack_local_1): Change last argument type to int.
25633         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
25634         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
25635         don't record padding space into frame_space_list nor use those areas.
25636         (assign_stack_local): Adjust caller.
25637         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
25638         of assign_stack_local, pass 0 as last argument.
25639         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
25640         callers.
25641
25642 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
25643
25644         PR debug/47283
25645         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
25646         Use target address_mode and pointer_mode hooks instead of hardcoded
25647         Pmode and ptr_mode.  Handle some simple cases of extending if
25648         POINTERS_EXTEND_UNSIGNED < 0.
25649         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
25650         Call convert_debug_memory_address.
25651         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
25652         convert_debug_memory_address.
25653
25654         PR middle-end/46790
25655         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
25656         * configure: Regenerated.
25657         * config.in: Regenerated.
25658         * varasm.c (default_function_section): Return NULL
25659         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
25660
25661 2011-02-28  Martin Jambor  <mjambor@suse.cz>
25662
25663         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
25664         the description to match the printed values.
25665
25666 2011-02-28  Richard Guenther  <rguenther@suse.de>
25667
25668         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
25669         of the copied scope tree.
25670
25671 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25672
25673         * doc/extend.texi (Function Attributes): Avoid deeply (and
25674         wrongly) nested tables.
25675
25676 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
25677
25678         PR middle-end/47903
25679         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
25680         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
25681         r isn't op0 nor op1.
25682
25683 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
25684
25685         * config/avr/avr.md: Remove magic comment for emacs.
25686
25687 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
25688
25689         PR target/45261
25690         * config/avr/avr.c (avr_option_override): Use error on bad options.
25691         (avr_help): New function.
25692         (TARGET_HELP): Define.
25693
25694 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
25695
25696         PR target/42240
25697         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
25698         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
25699
25700 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
25701
25702         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
25703         (ARM Options): Ditto.
25704         (i386 and x86-64 Options): Ditto.
25705         (RX Options): Ditto.
25706         (SPARC Options): Ditto.
25707
25708 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
25709
25710         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
25711         FreeBSD 6 and later.  Generally use cpu generic.
25712
25713 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
25714
25715         * doc/cpp.texi: Update copyright years.
25716
25717 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
25718
25719         PR target/46898
25720         * config/lm32/lm32.md (ashrsi3): Added needed variable.
25721
25722 2011-02-25  Jon Beniston  <jon@beniston.com>
25723
25724         PR target/46898
25725         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
25726         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
25727         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
25728         (lm32_block_move_inline): Add type cast to remove warning.
25729         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
25730         (gen_int_relational): Move declarations to start of function.
25731
25732 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
25733
25734         PR tree-optimization/45470
25735         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
25736         can throw internally only.
25737         * tree-vect-stmts.c (vectorizable_call): Likewise.
25738
25739 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
25740
25741         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
25742         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
25743         * config/stormy16/stormy16-protos.h
25744         (xstormy16_preferred_reload_class): Remove.
25745         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
25746         static. Change 'rclass' argument and return type to reg_class_t.
25747         (TARGET_PREFERRED_RELOAD_CLASS,
25748         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
25749
25750 2011-02-24  Richard Guenther  <rguenther@suse.de>
25751
25752         * lto-streamer-in.c (input_bb): Do not find referenced vars
25753         in debug statements.
25754
25755 2011-02-23  Jason Merrill  <jason@redhat.com>
25756
25757         * common.opt (fabi-version): Document v5 and v6.
25758
25759 2011-02-23  Richard Guenther  <rguenther@suse.de>
25760
25761         PR tree-optimization/47849
25762         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
25763
25764 2011-02-23  Jie Zhang  <jie@codesourcery.com>
25765
25766         * opts-common.c (decode_cmdline_option): Print empty string
25767         argument as "" in decoded->orig_option_with_args_text.
25768         * gcc.c (execute): Print empty string argument as ""
25769         in the verbose output.
25770         (do_spec_1): Keep empty string argument.
25771
25772 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
25773
25774         * config.gcc: Declare score-* and crx-* obsolete.
25775
25776 2011-02-23  Jie Zhang  <jie@codesourcery.com>
25777
25778         PR rtl-optimization/47763
25779         * web.c (web_main): Ignore naked clobber when replacing register.
25780
25781 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
25782
25783         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
25784         Remove.
25785
25786 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
25787
25788         PR doc/47848
25789         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
25790
25791 2011-02-22  Mike Stump  <mikestump@comcast.net>
25792
25793         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
25794         assembler.
25795         * configure: Regenerate.
25796
25797 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
25798
25799         PR rtl-optimization/46002
25800         * ira-color.c (update_copy_costs): Change class intersection
25801         test to reg_class_contents[] test of 'hard_regno'.
25802
25803 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
25804
25805         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
25806         than Driver option.
25807         * config/hpux11.opt (mt): Likewise.
25808         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
25809         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
25810         * config/vax/elf.opt (mno-asm-pic): Likewise.
25811         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
25812
25813 2011-02-21  Mike Stump  <mikestump@comcast.net>
25814
25815         PR target/47822
25816         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
25817         tree so we can get save the type.
25818         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
25819         for CFString instead of trying to use past the end of the builtins.
25820         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
25821         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
25822         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
25823         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
25824         Rename to darwin_builtin_cfstring.
25825         (darwin_init_cfstring_builtins): Return the built type.
25826
25827 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
25828
25829         PR target/47840
25830         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
25831         (_mm256_insert_epi64): Use _mm_insert_epi64.
25832
25833 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
25834
25835         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
25836         * config/stormy16/stormy16-protos.h
25837         (xstormy16_mode_dependent_address_p): Remove.
25838         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
25839         Make static. Change return type to bool. Change argument type to
25840         const_rtx. Remove dead code.
25841         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
25842
25843 2011-02-21  Richard Guenther  <rguenther@suse.de>
25844
25845         PR lto/47820
25846         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
25847         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
25848         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
25849         TUs context.
25850         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
25851         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
25852
25853 2011-02-20  Richard Guenther  <rguenther@suse.de>
25854
25855         PR lto/47822
25856         * tree.c (free_lang_data_in_decl): Clean builtins from
25857         the TU decl BLOCK_VARS.
25858
25859 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
25860
25861         PR debug/47620
25862         PR debug/47630
25863         * haifa-sched.c (fix_tick_ready): Skip tick computation
25864         for debug insns.
25865
25866 2011-02-19  Richard Guenther  <rguenther@suse.de>
25867
25868         PR lto/47647
25869         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
25870         Remove lazy BLOCK_VARS streaming.
25871         (lto_input_ts_block_tree_pointers): Likewise.
25872         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
25873
25874 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
25875
25876         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
25877
25878 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
25879
25880         * config/i386/biarch32.h, config/i386/mach.h,
25881         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
25882
25883 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
25884
25885         PR target/47800
25886         * config/i386/i386.md (peephole2 for shift and plus): Use
25887         operands[1] original mode in the first insn.
25888
25889 2011-02-18  Mike Stump  <mikestump@comcast.net>
25890
25891         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
25892
25893 2011-02-18  Jan Hubicka  <jh@suse.cz>
25894
25895         PR middle-end/47788
25896         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
25897         to zero when the function is not inlinable at all.
25898
25899 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25900
25901         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
25902         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
25903         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
25904         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
25905         * config/pa/t-pa64: Likewise.
25906         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
25907
25908 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
25909
25910         PR driver/47787
25911         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
25912
25913 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25914
25915         PR target/47792
25916         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
25917
25918 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
25919
25920         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
25921         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
25922         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
25923         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
25924         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
25925         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
25926         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
25927         m32r_load_postinc_p, m32r_store_preinc_predec_p,
25928         m32r_legitimate_address_p): New functions.
25929         * config/m32r/constraints.md (constraint "S"): Don't use
25930         STORE_PREINC_PREDEC_P.
25931         (constraint "U"): Don't use LOAD_POSTINC_P.
25932
25933 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
25934
25935         PR rtl-optimization/46178
25936         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
25937         compute ira_hard_regno_cover_class[].
25938
25939 2011-02-18  Richard Guenther  <rguenther@suse.de>
25940
25941         PR lto/47798
25942         * lto-streamer.h (lto_global_var_decls): Declare.
25943         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
25944         statics for global var processing.
25945
25946 2011-02-18  Richard Guenther  <rguenther@suse.de>
25947
25948         PR tree-optimization/47737
25949         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
25950         edge dominance check.
25951
25952 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
25953
25954         PR debug/47780
25955         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
25956         avoid invalid rtx sharing.
25957
25958 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
25959
25960         * doc/cpp.texi (Obsolete Features): Add background on the
25961         origin of assertions.
25962
25963 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
25964
25965         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
25966         objc_abi == 2.
25967         * config/darwin.c (output_objc_section_asm_op): Added support for
25968         ABI v1 and v2.
25969         (is_objc_metadata): New.
25970         (darwin_objc2_section): New.
25971         (darwin_objc1_section): New.
25972         (machopic_select_section): Added support for ABI v1 and v2.
25973         (darwin_emit_objc_zeroed): New.
25974         (darwin_output_aligned_bss): Detect objc metadata and treat it
25975         appropriately.
25976         (darwin_asm_output_aligned_decl_common): Same.
25977         (darwin_asm_output_aligned_decl_local): Same.
25978         * config/darwin-sections.def: Updated for ABI v1 and v2.
25979         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
25980         compiling Objective-C code for the NeXT runtime, default to using
25981         ABI version 0 for 32-bit, and version 2 for 64-bit.
25982
25983 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
25984
25985         * common.opt (optimize_fast): New Variable.
25986         * opts.c (default_options_optimization): Use opts->x_optimize_fast
25987         instead of local variable ofast.
25988
25989 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
25990
25991         * doc/invoke.texi (fobjc-abi-version): Documented.
25992         (fobjc-nilcheck): Documented.
25993         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
25994         version.
25995
25996 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
25997
25998         PR driver/47390
25999         * common.opt (export-dynamic): New Driver option.
26000         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
26001
26002 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
26003
26004         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
26005
26006 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
26007             Jan Hubicka  <jh@suse.cz>
26008
26009         PR debug/47106
26010         PR debug/47402
26011         * cfgexpand.c (account_used_vars_for_block): Remove.
26012         (estimated_stack_frame_size): Use referenced vars.
26013         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
26014         that were referenced in the original function.  Test src_fn
26015         rather than cfun.  Drop redundant get_var_ann.
26016         (setup_one_parameter): Drop redundant get_var_ann.
26017         (declare_return_variable): Likewise.
26018         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
26019         (copy_arguments_for_versioning): Drop redundant get_var_ann.
26020         * ipa-inline.c (compute_inline_parameters): Do not compute
26021         disregard_inline_limits here.
26022         (compute_inlinable_for_current, pass_inlinable): New.
26023         (pass_inline_parameters): Require PROP_referenced_vars.
26024         * cgraphunit.c (cgraph_process_new_functions): Don't run
26025         compute_inline_parameters explicitly unless function is in SSA form.
26026         (cgraph_analyze_function): Set .disregard_inline_limits.
26027         * tree-sra.c (convert_callers): Compute inliner parameters
26028         only for functions already in SSA form.
26029
26030 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
26031
26032         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
26033         -mlittle-endian-data.
26034
26035 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
26036
26037         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
26038         -mno-fpu, not -fpu and -no-fpu.
26039         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
26040         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
26041
26042 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
26043
26044         PR target/43653
26045         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
26046         input reload with PLUS RTX.
26047
26048 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
26049
26050         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
26051         of InverseVar(MDMX).
26052
26053 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
26054
26055         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
26056         --m4-340.
26057
26058 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
26059
26060         * config/mn10300/mn10300.opt (mno-crt0): New.
26061
26062 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
26063
26064         * config/m68k/uclinux.opt (static-libc): New Driver option.
26065
26066 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
26067
26068         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
26069
26070 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
26071
26072         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
26073         %{muser-extend-enabled}.
26074
26075 2011-02-16  Richard Guenther  <rguenther@suse.de>
26076
26077         PR tree-optimization/47738
26078         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
26079         the TODO from tree_predictive_commoning.
26080
26081 2011-02-15  Jeff Law  <law@redhat.com>
26082
26083         Revert
26084         2011-01-25  Jeff Law  <law@redhat.com>
26085
26086         PR rtl-optimization/37273
26087         * ira-costs.c (scan_one_insn): Detect constants living in memory and
26088         handle them like argument loads from stack slots.  Do not double
26089         count memory for memory constants and argument loads from stack slots.
26090
26091 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
26092
26093         PR target/47755
26094         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
26095         mode for vector constants.  Remove code that checks for TImode.
26096
26097 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
26098
26099         PR debug/47106
26100         PR debug/47402
26101         * cgraph.h (compute_inline_parameters): Return void.
26102         * ipa-inline.c (compute_inline_parameters): Adjust.
26103
26104 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
26105
26106         PR debug/47106
26107         PR debug/47402
26108         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
26109         rather than decl.
26110         * cfgexpand.c (estimated_stack_frame_size): Likewise.
26111         * ipa-inline.c (compute_inline_parameters): Adjust.
26112
26113 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
26114
26115         PR debug/47106
26116         PR debug/47402
26117         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
26118         Adjust all users.  Pass FN to...
26119         * tree-flow-inline.h (first_referenced_var): ... this.  Add
26120         fn argument.
26121         * ipa-struct-reorg.c: Adjust.
26122         * tree-dfa.c: Adjust.
26123         * tree-into-ssa.c: Adjust.
26124         * tree-sra.c: Adjust.
26125         * tree-ssa-alias.c: Adjust.
26126         * tree-ssa-live.c: Adjust.
26127         * tree-ssa.c: Adjust.
26128         * tree-ssanames.c: Adjust.
26129         * tree-tailcall.c: Adjust.
26130
26131 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
26132
26133         PR debug/47106
26134         PR debug/47402
26135         * tree-flow.h (referenced_var_lookup): Add fn parameter.
26136         Adjust all callers.
26137         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
26138         * tree-flow-inline.h: Adjust.
26139         * gimple-pretty-print.c: Adjust.
26140         * tree-into-ssa.c: Adjust.
26141         * tree-ssa.c: Adjust.
26142         * cfgexpand.c: Adjust.
26143
26144 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
26145
26146         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
26147         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26148         (EXTRA_CONSTRAINT): Delete.
26149         * config/iq2000/constraints.md: New file.
26150         * config/iq2000/iq2000.md: Include it.
26151         (define_insn ""): Delete.
26152         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
26153         unsupported constraint letters from patterns.
26154         (call_value, call_value_internal1): Likewise.
26155         (call_value_multiple_internal1): Likewise.
26156
26157 2011-02-15  Nick Clifton  <nickc@redhat.com>
26158
26159         * config/mn10300/mn10300.c: Include tm-constrs.h.
26160         (struct liw_data): New data structure describing an LIW candidate
26161         instruction.
26162         (extract_bundle): Use struct liw_data.  Allow small integer
26163         operands for some instructions.
26164         (check_liw_constraints): Use struct liw_data.  Remove swapped
26165         parameter.  Add comments describing the checks.  Fix bug when
26166         assigning the source of liw1 to the source of liw2.
26167         (liw_candidate): Delete.  Code moved into extract_bundle.
26168         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
26169         before swapping.
26170         * config/mn10300/predicates.md (liw_operand): New predicate.
26171         Allows registers and small integer constants.
26172         * config/mn10300/constraints.md (O): New constraint.  Accetps
26173         integers in the range -8 to +7 inclusive.
26174         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
26175         for moving a small integer into a register.  Give this alternative
26176         LIW attributes.
26177         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
26178         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
26179         using the J,K,L and M constraints,
26180         (liw): Remove SI mode on second operands to allow for HI and QI
26181         mode values.
26182         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
26183         instruction.
26184
26185 2011-02-15  Richard Guenther  <rguenther@suse.de>
26186
26187         PR tree-optimization/47743
26188         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
26189         for a non-type-compatible VN lookup bail out.
26190
26191 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
26192
26193         * config/fr30/constraints.md: New file.
26194         * config/fr30/fr30.md: Include it.
26195         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
26196         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26197         (EXTRA_CONSTRAINT): Delete.
26198
26199 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
26200
26201         * config/frv/constraints.md: New file.
26202         * config/frv/predicates.md: Include it.
26203         * config/frv/frv.c (reg_class_from_letter): Delete.
26204         (frv_option_override): Don't initialize it.
26205         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
26206         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
26207         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
26208         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
26209         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
26210         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26211         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
26212         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
26213         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
26214         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
26215         (REG_CLASS_FROM_CONSTRAINT): Delete.
26216
26217 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
26218
26219         PR middle-end/47581
26220         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
26221         if frame size is 0 in a leaf function.
26222
26223 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26224
26225         PR pch/14940
26226         * config/alpha/host-osf.c: New file.
26227         * config/alpha/x-osf: New file.
26228         * config.host (alpha*-dec-osf*): Use it.
26229
26230 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
26231
26232         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
26233         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
26234         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
26235         (rx_mode_dependent_address_p): ...this. Make static. Change argument
26236         type to const_rtx.
26237         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
26238
26239 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
26240
26241         * config/stormy16/constraints.md: New file.
26242         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
26243         Use satisfies_constraint_Q and satisfies_constraint_R.
26244         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
26245         Delete.
26246         (xstormy16_legitiamte_address_p): Declare.
26247         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
26248         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26249         (EXTRA_CONSTRAINT): Delete.
26250         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
26251         Un-staticize.
26252         (xstormy16_extra_constraint_p): Delete.
26253
26254 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
26255
26256         PR tree-optimization/46494
26257         * loop-unroll.c (split_edge_and_insert): Adjust comment.
26258         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
26259         (pass_rtl_loop_done): Add TODO_verify_flow.
26260         * fwprop.c (pass_rtl_fwprop): Likewise.
26261         * modulo-sched.c (pass_sms): Likewise.
26262         * tree-ssa-dom.c (pass_dominator): Likewise.
26263         * tree-ssa-loop-ch.c (pass_ch): Likewise.
26264         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
26265         (pass_tree_loop_done): Likewise.
26266         * tree-ssa-pre.c (execute_pre): Likewise.
26267         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
26268         * tree-ssa-sink.c (pass_sink_code): Likewise.
26269         * tree-vrp.c (pass_vrp): Likewise.
26270
26271 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
26272
26273         * config/v850/constraints.md: New file.
26274         * config/v850/v850.md: Include it.
26275         * config/v850/predicates.md (reg_or_0_operand): Use
26276         satisfies_constraint_G.
26277         (special_symbolref_operand): Use satisfies_constraint_K.
26278         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
26279         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
26280         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
26281         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
26282         (EXTRA_CONSTRAINT): Delete.
26283         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
26284         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
26285         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
26286
26287 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
26288
26289         PR target/47696
26290         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
26291         description.
26292
26293 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
26294
26295         * config/mcore/constraints.md: New file.
26296         * config/mcore/mcore.md: Include it.
26297         * config/mcore/mcore.c (reg_class_from_letter): Delete.
26298         * config/mcore/mcore.h (reg_class_from_letter): Delete.
26299         (REG_CLASS_FROM_LETTER): Delete.
26300         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
26301         insn_const_int_ok_for_constraint.
26302         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
26303         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
26304         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26305         (EXTRA_CONSTRAINT): Delete.
26306
26307 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26308
26309         PR ada/41929
26310         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
26311         (IS_SIGHANDLER): Define.
26312         (sparc64_is_sighandler): New function, split off from
26313         sparc64_fallback_frame_state.
26314         (sparc_is_sighandler): New function, split off from
26315         sparc_fallback_frame_state.
26316         (sparc64_fallback_frame_state): Merge with ...
26317         (sparc_fallback_frame_state): ... this into ...
26318         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
26319         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
26320         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
26321         stack instead of hardcoded offsets.
26322
26323 2011-02-14  Andriy Gapon  <avg@freebsd.org>
26324
26325         PR target/45808
26326         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
26327
26328 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26329
26330         * configure: Regenerate.
26331
26332 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
26333
26334         PR driver/45731
26335         * gcc.c (asm_options): Correct spec matching --target-help.
26336
26337 2011-02-12  Martin Jambor  <mjambor@suse.cz>
26338
26339         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
26340         to gimple call error.
26341
26342 2011-02-12  Mike Stump  <mikestump@comcast.net>
26343
26344         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
26345         comments in backslash regions.
26346
26347 2011-02-12  Mike Stump  <mikestump@comcast.net>
26348             Jakub Jelinek  <jakub@redhat.com>
26349             Iain Sandoe  <iains@gcc.gnu.org>
26350
26351         PR target/47324
26352         * dwarf2out.c (output_cfa_loc): When required, apply the
26353         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
26354         (output_loc_sequence): Likewise.
26355         (output_loc_operands_raw): Likewise.
26356         (output_loc_sequence_raw): Likewise.
26357         (output_cfa_loc): Likewise.
26358         (output_loc_list): Suppress register number adjustment when
26359         calling output_loc_sequence()
26360         (output_die): Likewise.
26361
26362 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
26363
26364         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
26365         Remove macros.
26366         * config/xtensa/xtensa.c (xtensa_register_move_cost,
26367         xtensa_memory_move_cost): New functions.
26368         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
26369
26370 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
26371
26372         PR lto/47225
26373         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
26374         in the current directory.
26375         * configure: Rebuilt.
26376
26377 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
26378
26379         * config/darwin.c (darwin_override_options): Add a hunk missed
26380         from the commit of r168571.  Trim comment line lengths and
26381         correct indents of the preceding block.
26382
26383 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
26384
26385         * gcc.c (driver_handle_option): Concatenate the argument to -F with
26386         the switch.
26387
26388 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
26389
26390         * common.opt (nostartfiles): New Driver option.
26391
26392 2011-02-11  Xinliang David Li  <davidxl@google.com>
26393
26394         PR tree-optimization/47707
26395         * tree-chrec.c (convert_affine_scev): Keep type precision.
26396
26397 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
26398
26399         PR tree-optimization/47420
26400         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
26401
26402 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
26403
26404         PR rtl-optimization/47614
26405         * rtl.h (check_for_inc_dec): Declare.
26406         * dse.c (check_for_inc_dec): Externalize...
26407         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
26408         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
26409
26410 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
26411
26412         PR driver/47678
26413         * gcc.c (main): Do not compile inputs if there were errors in
26414         option handling.
26415         * opts-common.c (read_cmdline_option): Check for wrong language
26416         after other error checks.
26417
26418 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
26419
26420         * cgraph.c: Fix comment typos.
26421         * cgraph.h: Likewise.
26422         * cgraphunit.c: Likewise.
26423         * ipa-cp.c: Likewise.
26424         * ipa-inline.c: Likewise.
26425         * ipa-prop.c: Likewise.
26426         * ipa-pure-const.c: Likewise.
26427         * ipa-ref.c: Likewise.
26428         * ipa-reference.c: Likewise.
26429
26430 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
26431
26432         PR debug/47684
26433         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
26434
26435 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26436
26437         PR testsuite/47400
26438         * doc/sourcebuild.texi (Require Support): Document
26439         dg-require-ascii-locale.
26440
26441 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
26442
26443         * doc/lto.texi (Write summary): Fix missing parentheses.
26444
26445 2011-02-10  DJ Delorie  <dj@redhat.com>
26446
26447         * config/m32c/m32c.c (m32c_option_override): Disable
26448         -fcombine-stack-adjustments until flag value tracking and compare
26449         optimization can be rewritten.
26450
26451 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
26452
26453         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
26454         PROCESSOR_POWER7.
26455         (PROCESSOR_DEFAULT64): Likewise.
26456
26457 2011-02-10  Richard Henderson  <rth@redhat.com>
26458
26459         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
26460         change from 2011-02-03.
26461         * config/rx/rx.c (flags_from_code): Likewise.
26462         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
26463         is valid, n/pz otherwise.
26464         (rx_select_cc_mode): Return CCmode if Y is not zero.
26465
26466 2011-02-10  Richard Guenther  <rguenther@suse.de>
26467
26468         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
26469
26470 2011-02-10  Richard Guenther  <rguenther@suse.de>
26471
26472         PR tree-optimization/47677
26473         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
26474
26475 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
26476
26477         PR target/47665
26478         * combine.c (make_compound_operation): Only change shifts into
26479         multiplication for SCALAR_INT_MODE_P.
26480
26481 2011-02-10  Jie Zhang  <jie@codesourcery.com>
26482
26483         PR testsuite/47622
26484         Revert
26485         2011-02-05  Jie Zhang  <jie@codesourcery.com>
26486         PR debug/42631
26487         * web.c (entry_register): Don't clobber the number of the
26488         first uninitialized reference in used[].
26489
26490 2011-02-09  Richard Guenther  <rguenther@suse.de>
26491
26492         PR tree-optimization/47664
26493         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
26494         all edges again.
26495
26496 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
26497
26498         PR target/46481
26499         PR target/47032
26500         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
26501         PROCESSOR_POWER7.
26502         (PROCESSOR_DEFAULT64): Same.
26503         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
26504
26505 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26506
26507         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
26508
26509 2011-02-09  Martin Jambor  <mjambor@suse.cz>
26510
26511         PR middle-end/45505
26512         * tree-sra.c (struct access): New flags grp_scalar_read and
26513         grp_scalar_write.  Changed description of assignment read and write
26514         flags.
26515         (dump_access): Dump new flags, reorder all of them.
26516         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
26517         to detect multiple scalar reads.
26518         (analyze_access_subtree): Use the new scalar read write flags instead
26519         of the old flags.  Adjusted comments.
26520
26521 2011-02-08  DJ Delorie  <dj@redhat.com>
26522
26523         PR target/47548
26524         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
26525         patterns.
26526
26527 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
26528
26529         * config/m68k/uclinux.opt: New.
26530         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
26531
26532 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
26533
26534         * config/cris/elf.opt (sim): New Driver option.
26535
26536 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
26537
26538         * config/xtensa/elf.opt: New.
26539         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
26540
26541 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
26542
26543         * config/vax/elf.opt: New.
26544         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
26545
26546 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
26547
26548         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
26549
26550 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
26551
26552         * config/gnu-user.opt: New.
26553         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
26554         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
26555         *-*-uclinux*): Use gnu-user.opt.
26556
26557 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
26558
26559         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
26560         * config/i386/gnu.h (CPP_SPEC): Likewise.
26561
26562 2011-02-08  Ian Lance Taylor  <iant@google.com>
26563
26564         * common.opt (fcx-limited-range): Add SetByCombined flag.
26565         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
26566         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
26567         (fassociative-math, freciprocal-math): Likewise.
26568         (funsafe-math-optimizations): Likewise.
26569         * opth-gen.awk: Handle SetByCombined.
26570         * optc-gen.awk: Likewise.
26571         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
26572         (set_unsafe_math_optimizations_flags): Likewise.
26573         * doc/options.texi (Option properties): Document SetByCombined.
26574
26575 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
26576
26577         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
26578         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
26579         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
26580         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
26581         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
26582
26583 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
26584
26585         PR tree-optimization/46834
26586         PR tree-optimization/46994
26587         PR tree-optimization/46995
26588         * graphite-sese-to-poly.c (used_outside_reduction): New.
26589         (detect_commutative_reduction): Call used_outside_reduction.
26590         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
26591         translate_scalar_reduction_to_array only when at least one
26592         loop-phi/close-phi tuple has been detected.
26593
26594 2011-02-08  Richard Guenther  <rguenther@suse.de>
26595
26596         PR middle-end/47639
26597         * tree-vect-generic.c (expand_vector_operations_1): Update
26598         stmts here ...
26599         (expand_vector_operations): ... not here.  Cleanup EH info
26600         and the CFG if required.
26601
26602 2011-02-08  Richard Guenther  <rguenther@suse.de>
26603
26604         PR tree-optimization/47641
26605         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
26606         require type compatibility.
26607
26608 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26609
26610         * gimple-low.c (lower_function_body): Don't remove the location of
26611         the return statement here.
26612         (lower_gimple_return): Do it here instead but only if the return
26613         statement is actually used twice.
26614
26615 2011-02-08  Richard Guenther  <rguenther@suse.de>
26616
26617         PR tree-optimization/47632
26618         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
26619         unused up_to_stmt parameter, return whether cfg-cleanup is
26620         necessary, remove EH info properly.
26621         (forward_propagate_into_gimple_cond): Adjust caller.
26622         (forward_propagate_into_cond): Likewise.
26623         (forward_propagate_comparison): Likewise.
26624         (tree_ssa_forward_propagate_single_use_vars): Make
26625         forward_propagate_comparison case similar to the two others.
26626
26627 2011-02-08  Nick Clifton  <nickc@redhat.com>
26628
26629         * config/mn10300/mn10300.opt (mliw): New command line option.
26630         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
26631         (liw_bundling): New automaton.
26632         (liw): New attribute.
26633         (liw_op): New attribute.
26634         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
26635         (movsi_internal): Add LIW attributes.
26636         (andsi3): Likewise.
26637         (iorsi3): Likewise.
26638         (xorsi3): Likewise.
26639         (addsi3): Separate register and immediate alternatives.
26640         Add LIW attributes.
26641         (subsi3): Likewise.
26642         (cmpsi): Likewise.
26643         (aslsi3): Likewise.
26644         (lshrsi3): Likewise.
26645         (ashrsi3): Likewise.
26646         (liw): New pattern.
26647         * config/mn10300/mn10300.c (liw_op_names): New
26648         (mn10300_print_operand): Handle 'W' operand descriptor.
26649         (extract_bundle): New function.
26650         (check_liw_constraints): New function.
26651         (liw_candidate): New function.
26652         (mn10300_bundle_liw): New function.
26653         (mn10300_reorg): New function.
26654         (TARGET_MACHINE_DEPENDENT_REORG): Define.
26655         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
26656         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
26657         __LIW__ or __NO_LIW__.
26658         * doc/invoke.texi: Describe the -mliw command line option.
26659
26660 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26661
26662         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
26663         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
26664         pthread_mutex_unlock): Remove.
26665         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
26666         * config/pa/t-pa64: Likewise.
26667         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
26668         shared libc if not linking against libpthread.
26669         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
26670
26671 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
26672
26673         PR target/47558
26674         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
26675         on 10.6 and later to ensure that we always use the unwinder from
26676         the system.  Only add -no_compact_unwind when tarteting darwin
26677         10.6 or later.
26678
26679 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
26680
26681         PR target/46997
26682         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
26683         (vec_interleave_lowv2sf): Ditto.
26684         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
26685         (vec_extract_oddv2sf): Ditto.
26686
26687 2011-02-07  Mike Stump  <mikestump@comcast.net>
26688
26689         PR target/42333
26690         Add __ieee_divdc3 entry point.
26691         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
26692         entry point.
26693         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
26694         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
26695         * config/darwin.c (darwin_rename_builtins): Add.
26696         * config/darwin-protos.h (darwin_rename_builtins): Add.
26697
26698 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
26699
26700         PR target/47636
26701         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
26702         for the condition.
26703
26704 2011-02-07  Mike Stump  <mikestump@comcast.net>
26705
26706         * config/darwin.opt (mmacosx-version-min): Update default OS version.
26707
26708 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
26709
26710         PR target/47534
26711         * config/avr/libgcc.S (exit): Move .endfunc
26712
26713 2011-02-07  Richard Guenther  <rguenther@suse.de>
26714
26715         PR tree-optimization/47615
26716         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
26717         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
26718         (run_scc_vn): Initialize it.
26719         (visit_reference_op_load): Use it.
26720         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
26721
26722 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26723
26724         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
26725         DImode trapping arithmetic libfuncs.
26726
26727 2011-02-07  Richard Guenther  <rguenther@suse.de>
26728
26729         PR tree-optimization/47621
26730         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
26731         two duplicates ...
26732         (execute_update_addresses_taken): ... here.  Make it more
26733         conservative in what we accept.
26734
26735 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
26736
26737         * config/sparc/freebsd.h (ASM_SPEC): Define.
26738         * config/sparc/vxworks.h (ASM_SPEC): Define.
26739
26740 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
26741
26742         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
26743
26744 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
26745
26746         * doc/invoke.texi: Remove reference to compiler internals from
26747         user documentation.
26748
26749         * reg-notes.def: Remove REG_VALUE_PROFILE.
26750         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
26751
26752 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
26753
26754         PR middle-end/47610
26755         * varasm.c (default_section_type_flags): If decl is NULL,
26756         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
26757
26758 2011-02-05  Jie Zhang  <jie@codesourcery.com>
26759
26760         PR debug/42631
26761         * web.c (entry_register): Don't clobber the number of the
26762         first uninitialized reference in used[].
26763
26764 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
26765
26766         PR tree-optimization/46194
26767         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
26768         (build_classic_dist_vector_1): Do not represent classic distance
26769         vectors when the access functions are variating in different loops.
26770
26771 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
26772
26773         * config/mips/iris6.opt: New.
26774         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
26775
26776 2011-02-04  Richard Henderson  <rth@redhat.com>
26777             Steve Ellcey  <sje@cup.hp.com>
26778
26779         PR target/46997
26780         * config/ia64/predicates.md (mux1_brcst_element): New.
26781         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
26782         * config/ia64/ia64.c (ia64_unpack_assemble): New.
26783         (ia64_unpack_sign): New.
26784         (ia64_expand_unpack): Rewrite using new routines.
26785         (ia64_expand_widen_sum): Ditto.
26786         (ia64_expand_dot_prod_v8qi): Ditto.
26787         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
26788         routines, add endian check.
26789         (pmpy2_even): Rename from pmpy2_r, add endian check.
26790         (pmpy2_odd): Rename from pmpy2_l, add endian check.
26791         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
26792         (vec_widen_smult_hi_v4hi): Ditto.
26793         (vec_widen_umult_lo_v4hi): Ditto.
26794         (vec_widen_umult_hi_v4hi): Ditto.
26795         (mulv2si3): Change endian checks.
26796         (sdot_prodv4hi): Rewrite with new calls.
26797         (udot_prodv4hi): New.
26798         (vec_pack_ssat_v4hi): Add endian check.
26799         (vec_pack_usat_v4hi): Ditto.
26800         (vec_pack_ssat_v2si): Ditto.
26801         (max1_even): Rename from max1_r, add endian check.
26802         (max1_odd): Rename from max1_l, add endian check.
26803         (*mux1_rev): Format change.
26804         (*mux1_mix): Ditto.
26805         (*mux1_shuf): Ditto.
26806         (*mux1_alt): Ditto.
26807         (*mux1_brcst_v8qi): Use new predicate.
26808         (vec_extract_evenv8qi): Remove endian check.
26809         (vec_extract_oddv8qi): Ditto.
26810         (vec_interleave_lowv4hi): Format change.
26811         (vec_interleave_highv4hi): Ditto.
26812         (mix2_even): Rename from mix2_r, add endian check.
26813         (mix2_odd): Rename from mux2_l, add endian check.
26814         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
26815         (vec_extract_evenodd_helper): Format change.
26816         (vec_extract_evenv4hi): Remove endian check.
26817         (vec_extract_oddv4hi): Remove endian check.
26818         (vec_interleave_lowv2si): Format change.
26819         (vec_interleave_highv2si): Format change.
26820         (vec_initv2si): Remove endian check.
26821         (vecinit_v2si): Add endian check.
26822         (reduc_splus_v2sf): Add endian check.
26823         (reduc_smax_v2sf): Ditto.
26824         (reduc_smin_v2sf): Ditto.
26825         (vec_initv2sf): Remove endian check.
26826         (fpack): Add endian check.
26827         (fswap): Add endian check.
26828         (vec_interleave_highv2sf): Add endian check.
26829         (vec_interleave_lowv2sf): Add endian check.
26830         (fmix_lr): Add endian check.
26831         (vec_setv2sf): Format change.
26832         (*vec_extractv2sf_0_be): Use shift to extract operand.
26833         (*vec_extractv2sf_1_be): New.
26834         (vec_pack_trunc_v4hi): Add endian check.
26835         (vec_pack_trunc_v2si): Format change.
26836
26837 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
26838
26839         PR inline-asm/23200
26840         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
26841         do bb, locus and block comparison and disallow loads if it is not set.
26842         (stmt_is_replaceable_p): New function.
26843         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
26844         callers.
26845         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
26846         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
26847         SSA_NAME_DEF_STMT.
26848         * tree-flow.h (stmt_is_replaceable_p): New prototype.
26849
26850 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
26851
26852         * config/rs6000/xilinx.opt: New.
26853         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
26854
26855 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
26856
26857         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
26858
26859 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
26860
26861         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
26862         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
26863         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
26864         secondary_reload_info, xtensa_secondary_reload): Remove.
26865         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
26866         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
26867         (xtensa_preferred_reload_class): Make static. Change return and
26868         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
26869         Use CONST_DOUBLE_P predicate.
26870         (xtensa_preferred_output_reload_class): New function.
26871         (xtensa_secondary_reload): Make static.
26872
26873 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
26874
26875         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
26876         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
26877         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
26878
26879 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
26880
26881         PR middle-end/31490
26882         * output.h (SECTION_RELRO): Define.
26883         (SECTION_MACH_DEP): Adjust.
26884         (get_variable_section): New prototype.
26885         * varpool.c (varpool_finalize_named_section_flags): New function.
26886         (varpool_assemble_pending_decls): Call it.
26887         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
26888         * cgraphunit.c (cgraph_output_in_order): Call
26889         varpool_finalize_named_section_flags.
26890         * varasm.c (get_section): Allow section flags conflicts between
26891         relro and read-only sections if the section hasn't been declared yet.
26892         Set SECTION_OVERRIDE after diagnosing section type conflict.
26893         (get_variable_section): No longer static.
26894         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
26895         readonly sections that need relocations.
26896         (decl_readonly_section_1): New function.
26897         (decl_readonly_section): Use it.
26898
26899         Revert:
26900         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
26901                     Steve Ellcey  <sje@cup.hp.com>
26902
26903         PR middle-end/31490
26904         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
26905         if section attribute used.
26906
26907 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
26908
26909         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
26910         * config/darwin.c (SECTION_NO_ANCHOR): Define.
26911         (darwin_init_sections): Remove assertion.
26912
26913 2011-02-03  Nick Clifton  <nickc@redhat.com>
26914
26915         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
26916         lt and ge.
26917         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
26918         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
26919         instead of "n" and "pz".
26920         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
26921         CC_FLAG_S.
26922
26923 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
26924
26925         PR target/47312
26926         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
26927         fma, expand FMA_EXPR as fma{,f,l} call.
26928
26929         PR lto/47274
26930         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
26931         copy them into a unsigned char variable and pass address of it to
26932         lto_output_data_stream.
26933
26934         PR target/47564
26935         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
26936         around backend_init_target and lang_dependent_init_target calls.
26937         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
26938         (verify_cgraph_node): Don't call set_cfun here.  Use
26939         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
26940         Set error_found for incorrectly represented calls to thunks.
26941
26942 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
26943
26944         PR debug/43092
26945         PR rtl-optimization/43494
26946         * rtl.h (for_each_inc_dec_fn): New type.
26947         (for_each_inc_dec): Declare.
26948         * rtlanal.c (struct for_each_inc_dec_ops): New type.
26949         (for_each_inc_dec_find_inc_dec): New fn.
26950         (for_each_inc_dec_find_mem): New fn.
26951         (for_each_inc_dec): New fn.
26952         * dse.c (struct insn_size): Remove.
26953         (replace_inc_dec, replace_inc_dec_mem): Remove.
26954         (emit_inc_dec_insn_before): New fn.
26955         (check_for_inc_dec): Use it, along with for_each_inc_dec.
26956         (canon_address): Pass mem modes to cselib_lookup.
26957         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
26958         (cselib_lookup_from_insn): Likewise.
26959         (cselib_subst_to_values): Likewise.
26960         * cselib.c (find_slot_memmode): New var.
26961         (cselib_find_slot): New fn.  Use it instead of
26962         htab_find_slot_with_hash everywhere.
26963         (entry_and_rtx_equal_p): Use find_slot_memmode.
26964         (autoinc_split): New fn.
26965         (rtx_equal_for_cselib_p): Rename and implement in terms of...
26966         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
26967         Deal with autoinc.  Special-case recursion into MEMs.
26968         (cselib_hash_rtx): Likewise.
26969         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
26970         address and MEM modes.
26971         (cselib_subst_to_values): Add memmode, pass it on.
26972         Deal with autoinc.
26973         (cselib_lookup): Add memmode argument, pass it on.
26974         (cselib_lookup_from_insn): Add memmode.
26975         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
26976         (struct cselib_record_autoinc_data): New.
26977         (cselib_record_autoinc_cb): New fn.
26978         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
26979         mode to cselib_lookup.  Reset autoinced REGs here instead of...
26980         (cselib_process_insn): ... here.
26981         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
26982         to cselib_lookup.
26983         (add_uses): Likewise, also to cselib_subst_to_values.
26984         (add_stores): Likewise.
26985         * sched-deps.c (add_insn_mem_dependence): Pass mode to
26986         cselib_subst_to_values.
26987         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
26988         * gcse.c (do_local_cprop): Adjusted.
26989         * postreload.c (reload_cse_simplify_set): Adjusted.
26990         (reload_cse_simplify_operands): Adjusted.
26991         * sel-sched-dump (debug_mem_addr_value): Pass mode.
26992
26993 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
26994
26995         PR tree-optimization/45122
26996         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
26997         unsafe assumptions when there's more than one loop exit.
26998
26999 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
27000
27001         PR target/47272
27002         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27003         Document using vector double with the load/store builtins, and
27004         that the load/store builtins always use Altivec instructions.
27005
27006         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
27007         to use altivec memory instructions, even on VSX.
27008         (vector_altivec_store_<mode>): Ditto.
27009
27010         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
27011         function.
27012
27013         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
27014         V2DF, V2DI support to load/store overloaded builtins.
27015
27016         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
27017         altivec load/store builtins for V2DF/V2DI types.
27018
27019         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
27020         set avoid indexed addresses on power6 if -maltivec.
27021         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
27022         vector_altivec_load/vector_altivec_store builtins.
27023         (altivec_expand_st_builtin): Ditto.
27024         (altivec_expand_builtin): Add VSX memory builtins.
27025         (rs6000_init_builtins): Add V2DI types to internal types.
27026         (altivec_init_builtins): Add support for V2DF/V2DI altivec
27027         load/store builtins.
27028         (rs6000_address_for_altivec): Insure memory address is appropriate
27029         for Altivec.
27030
27031         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
27032         vec_vsx_ld and vec_vsx_st.
27033         (vsx_store_<mode>): Ditto.
27034
27035         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
27036         variables to hold long long types for VSX vector memory builtins.
27037         (RS6000_BTI_unsigned_long_long): Ditto.
27038         (long_long_integer_type_internal_node): Ditti.
27039         (long_long_unsigned_type_internal_node): Ditti.
27040
27041         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
27042         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
27043         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
27044
27045         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
27046         short cuts.
27047         (vec_vsx_st): Ditto.
27048
27049 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
27050
27051         * config/pa/pa-hpux10.opt: New.
27052         * config/hpux11.opt (pthread): New Driver option.
27053         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
27054         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
27055
27056 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
27057
27058         * config/ia64/vms.opt: New.
27059         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
27060
27061 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
27062
27063         PR target/47580
27064         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
27065         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
27066         generator functions.
27067         (vsx_floatuns<VSi><mode>2): Ditto.
27068         (vsx_fix_trunc<mode><VSi>2): Ditto.
27069         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
27070
27071 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
27072
27073         * config/i386/djgpp.opt (posix): New Driver option.
27074
27075 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
27076
27077         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
27078         Move to the unsupported targets list.
27079
27080 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
27081
27082         PR rtl-optimization/47525
27083         * df-scan.c: Update copyright years.
27084         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
27085         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
27086
27087 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27088
27089         * config/i386/sysv4.h (TARGET_VERSION): Remove.
27090         (SUBTARGET_RETURN_IN_MEMORY): Remove.
27091         (ASM_OUTPUT_ASCII): Remove.
27092         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
27093
27094 2011-02-02  Jeff Law  <law@redhat.com>
27095
27096         PR middle-end/47543
27097         * reload.c (find_reloads_address): Handle reg+d address where both
27098         components are invalid by reloading the entire address.
27099
27100 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
27101             Richard Guenther  <rguenther@suse.de>
27102
27103         PR tree-optimization/40979
27104         PR bootstrap/47044
27105         * passes.c (init_optimization_passes): After LIM call copy_prop
27106         and DCE to clean up.
27107         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
27108
27109 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
27110
27111         PR tree-optimization/47576
27112         PR tree-optimization/47555
27113         * doc/invoke.texi (scev-max-expr-complexity): Documented.
27114         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
27115         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
27116         * tree-scalar-evolution.c (follow_ssa_edge): Use
27117         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
27118
27119 2011-02-02  Richard Guenther  <rguenther@suse.de>
27120
27121         PR tree-optimization/47566
27122         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
27123
27124 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
27125
27126         PR debug/47106
27127         PR debug/47402
27128         * tree-inline.c (declare_return_variable): Remove unused caller
27129         variable.
27130
27131         PR debug/47106
27132         PR debug/47402
27133         * tree-flow-inline.h (clear_is_used, is_used_p): New.
27134         * cfgexpand.c (account_used_vars_for_block): Use them.
27135         * tree-nrv.c (tree_nrv): Likewise.
27136         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
27137         (dump_scope_block): Likewise.
27138         (remove_unused_locals): Likewise.
27139
27140         PR debug/47106
27141         PR debug/47402
27142         * tree-inline.c (declare_return_variable): Add result decl to
27143         local decls only once.
27144         * gimple-low.c (record_vars_into): Mark newly-created variables
27145         as referenced.
27146
27147 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
27148
27149         PR debug/47498
27150         PR debug/47501
27151         PR debug/45136
27152         PR debug/45130
27153         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
27154         debug insns.
27155         (no_real_insns_p, schedule_block, set_priorities): Drop special
27156         treatment of boundary debug insns.
27157         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
27158         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
27159         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
27160         (BOUNDARY_DEBUG_INSN_P): Likewise.
27161         (SCHEDULE_DEBUG_INSN_P): Likewise.
27162         * sched-rgn.c (init_ready_list): Drop special treatment of
27163         boundary debug insns.
27164         * final.c (rest_of_clean_state): Clear notes' BB.
27165
27166 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
27167
27168         * config/openbsd.opt (assert=): New Driver option.
27169
27170 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
27171
27172         * config/i386/nto.opt: New.
27173         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
27174
27175 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
27176
27177         * config/i386/netware.opt: New.
27178         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
27179
27180 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
27181
27182         * config/interix.opt (posix): New Driver option.
27183
27184 2011-02-01  DJ Delorie  <dj@redhat.com>
27185
27186         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
27187
27188         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
27189         class for A0/A1.
27190
27191 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
27192
27193         PR tree-optimization/47561
27194         * toplev.c (process_options): Print the Graphite flags.  Add
27195         flag_loop_flatten to the list of options requiring Graphite.
27196
27197 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
27198
27199         * config/i386/cygming.opt (posix): New Driver option.
27200
27201 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
27202
27203         * config/arm/vxworks.opt: New.
27204         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
27205
27206 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
27207
27208         * config/alpha/elf.opt: New.
27209         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
27210         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
27211
27212 2011-02-01  Richard Guenther  <rguenther@suse.de>
27213
27214         PR tree-optimization/47559
27215         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
27216         store-motion on references that can throw.
27217
27218 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
27219
27220         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
27221         * tree-pass.h (TDF_CSELIB): New macro.
27222         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
27223         cselib_lookup): Check for it rather than for TDF_DETAILS.
27224
27225 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
27226
27227         PR driver/47547
27228         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
27229         is HOST_BIT_BUCKET.
27230
27231         * opts.c (finish_options): Don't add x_aux_base_name if it is
27232         HOST_BIT_BUCKET.
27233
27234 2011-02-01  Richard Guenther  <rguenther@suse.de>
27235
27236         PR tree-optimization/47555
27237         Revert
27238         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
27239
27240         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
27241
27242 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
27243
27244         PR gcc/46692
27245         * config/lm32/t-lm32: Add multilib for all CPU options.
27246
27247 2011-02-01  Richard Guenther  <rguenther@suse.de>
27248
27249         PR tree-optimization/47541
27250         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
27251         sure to have a field at offset zero.
27252
27253 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
27254
27255         * config/arc/arc.opt (EB, EL): New Driver options.
27256
27257 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
27258
27259         * config/alpha/osf5.opt: New.
27260         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
27261
27262 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
27263
27264         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
27265
27266 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
27267
27268         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
27269         -floop-interchange.
27270         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
27271         is an alias of -floop-interchange and that it requires the
27272         Graphite infrastructure.
27273         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
27274         flag_loop_interchange based on the value of flag_tree_loop_linear.
27275
27276 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
27277             Richard Guenther  <rguenther@suse.de>
27278
27279         PR tree-optimization/47538
27280         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
27281         type instead of r1type, except for comparisons.  For right
27282         shifts and comparisons punt if there are mismatches in
27283         sizetype vs. non-sizetype types.
27284
27285 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27286
27287         * doc/sourcebuild.texi (Effective-Target Keywords): Document
27288         avx_runtime.
27289
27290 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27291
27292         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
27293         version number.
27294         * configure: Regenerate.
27295
27296 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27297
27298         * configure.ac (gcc_cv_ld_static_option): Define.
27299         (gcc_cv_ld_dynamic_option): Define.
27300         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
27301         instead.
27302         (HAVE_LD_STATIC_DYNAMIC): Update message.
27303         (LD_STATIC_OPTION): Define.
27304         (LD_DYNAMIC_OPTION): Define.
27305         * configure: Regenerate.
27306         * config.in: Regenerate.
27307         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
27308         HAVE_LD_STATIC_DYNAMIC]: Use them.
27309
27310 2011-01-31  Nick Clifton  <nickc@redhat.com>
27311
27312         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
27313         registers inside interrupt handlers if the handler is not a leaf
27314         function.
27315
27316 2011-01-31  Nick Clifton  <nickc@redhat.com>
27317
27318         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
27319         reg_renumber returning an INVALID_REGNUM.
27320
27321 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
27322
27323         PR libgcj/44341
27324         * doc/install.texi: Document host options discarded when cross
27325         configuring target libraries.
27326
27327 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
27328
27329         Reverted:
27330         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
27331         PR debug/45136
27332         PR debug/45130
27333         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
27334         debug insns.
27335         (no_real_insns_p, schedule_block, set_priorities): Drop special
27336         treatment of boundary debug insns.
27337         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
27338         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
27339         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
27340         (BOUNDARY_DEBUG_INSN_P): Likewise.
27341         (SCHEDULE_DEBUG_INSN_P): Likewise.
27342         * sched-rgn.c (init_ready_list): Drop special treatment of
27343         boundary debug insns.
27344         * final.c (rest_of_clean-state): Clear notes' BB.
27345
27346 2011-01-31  Alan Modra  <amodra@gmail.com>
27347
27348         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
27349         toc relative expressions as we do in print_operand_address.
27350
27351 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
27352
27353         * doc/extend.texi: Follow spelling conventions.
27354         * doc/invoke.texi: Fix a typo.
27355
27356 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
27357
27358         * config/hpux11.opt: New.
27359         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
27360         ia64*-*-hpux*): Use hpux11.opt.
27361
27362 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
27363
27364         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
27365         to tmake_file.
27366
27367 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
27368
27369         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
27370         support sites.
27371
27372 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
27373
27374         * doc/install.texi (Binaries): Remove outdated reference for
27375         Motorola 68HC11/68HC12 downloads.
27376
27377 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
27378
27379         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
27380         Drepper's paper.
27381
27382 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
27383
27384         PR bootstrap/47147
27385         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
27386         used by NetBSD.
27387
27388 2011-01-28  Ahmad Sharif  <asharif@google.com>
27389
27390         * value-prof.c (check_counter): Corrected error message.
27391
27392 2011-01-29  Jie Zhang  <jie@codesourcery.com>
27393
27394         * config/arm/arm.c (arm_legitimize_reload_address): New.
27395         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
27396         arm_legitimize_reload_address.
27397         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
27398
27399 2011-01-28  Ian Lance Taylor  <iant@google.com>
27400
27401         * godump.c (go_define): Ignore macros whose definitions include
27402         two adjacent operands.
27403
27404 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
27405
27406         PR target/42894
27407         * varasm.c (force_const_mem): Store copy of x in desc->constant
27408         instead of x itself.
27409         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
27410         itself into REG_EQUAL note.
27411
27412 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
27413
27414         * config/freebsd.opt (posix, rdynamic): New Driver options.
27415
27416 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27417
27418         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
27419         -Bstatic/-Bdynamic.
27420         * configure: Regenerate.
27421
27422 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
27423
27424         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
27425         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
27426
27427 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
27428
27429         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
27430         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
27431         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
27432         (s390_preferred_reload_class): Make static. Change return and
27433         'rclass' argument type to reg_class_t.
27434
27435 2011-01-27  Jan Hubicka  <jh@suse.cz>
27436
27437         PR middle-end/46949
27438         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
27439         (process_function_and_variable_attributes): Check defined weakrefs.
27440
27441 2011-01-27  Martin Jambor  <mjambor@suse.cz>
27442
27443         PR tree-optimization/47228
27444         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
27445         build_ref_for_offset.
27446
27447 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27448
27449         * config/spu/spu-elf.h (ASM_SPEC): Remove.
27450
27451 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
27452
27453         PR rtl-optimization/46856
27454         * postreload.c (reload_combine_recognize_const_pattern): Do not
27455         separate cc0 setter and user on cc0 targets.
27456
27457 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
27458
27459         PR c/43082
27460         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
27461         passed a VOID_TYPE expression, immediately emit an error and
27462         return error_mark_node.
27463
27464 2011-01-26  Jeff Law  <law@redhat.com>
27465
27466         PR rtl-optimization/47464
27467         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
27468         rather than may_trap_p as needed.
27469
27470 2011-01-26  DJ Delorie  <dj@redhat.com>
27471
27472         PR rtl-optimization/46878
27473         * combine.c (insn_a_feeds_b): Check for the implicit cc0
27474         setter/user dependency as well.
27475
27476 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
27477
27478         PR rtl-optimization/44469
27479         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
27480         after removing trivially dead basic blocks.
27481
27482 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
27483
27484         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
27485         * config/frv/frv.h (LINK_SPEC): Likewise.
27486         * config/i386/netware.h (LINK_SPEC): Likewise.
27487         * config/m68k/linux.h (ASM_SPEC): Likewise.
27488         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
27489         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
27490         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
27491         * config/sparc/linux.h (ASM_SPEC): Likewise.
27492         * config/sparc/linux64.h (ASM_SPEC): Likewise.
27493         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
27494
27495 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
27496
27497         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
27498         * config/frv/frv.h (ASM_SPEC): Likewise.
27499         * config/m68k/linux.h (ASM_SPEC): Likewise.
27500         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
27501         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
27502         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
27503         * config/sparc/linux.h (ASM_SPEC): Likewise.
27504         * config/sparc/linux64.h (ASM_SPEC): Likewise.
27505         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
27506
27507 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
27508
27509         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
27510         * config/frv/frv.h (LINK_SPEC): Likewise.
27511         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
27512
27513 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
27514
27515         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
27516         * config/frv/frv.h (ASM_SPEC): Likewise.
27517         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
27518         * config/m68k/linux.h (ASM_SPEC): Likewise.
27519         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
27520         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
27521         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
27522         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
27523         * config/sparc/linux.h (ASM_SPEC): Likewise.
27524         * config/sparc/linux64.h (ASM_SPEC): Likewise.
27525         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
27526         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
27527
27528 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
27529
27530         PR target/46997
27531         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
27532         (*mux2): Ditto.
27533         (vec_extract_evenodd_help): Ditto.
27534         (vec_extract_evenv4hi): Ditto.
27535         (vec_extract_oddv4hi): Ditto.
27536         (vec_interleave_lowv2si): Ditto.
27537         (vec_interleave_highv2si): Ditto.
27538         (vec_extract_evenv2si): Ditto.
27539         (vec_extract_oddv2si: Ditto.
27540         (vec_pack_trunc_v2si): Ditto.
27541
27542 2011-01-22  Jan Hubicka  <jh@suse.cz>
27543
27544         PR target/47237
27545         * cgraph.h (cgraph_local_info): New field can_change_signature.
27546         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
27547         signature can change.
27548         (ipcp_estimate_growth): Call sequence simplify only if calle signature
27549         can change.
27550         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
27551         (cgraph_function_versioning): We can not change signature of functions
27552         that don't allow that.
27553         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
27554         (lto_input_node): Likewise.
27555         * ipa-inline.c (compute_inline_parameters): Compute
27556         local.can_change_signature.
27557         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
27558         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
27559         functions that can not change signature.
27560         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
27561         init_cumulative_args): Do not use local calling conventions
27562         for functions that can not change signature.
27563
27564 2011-01-22  Jan Hubicka  <jh@suse.cz>
27565
27566         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
27567
27568 2011-01-26  Richard Guenther  <rguenther@suse.de>
27569
27570         PR tree-optimization/47190
27571         * cgraphunit.c (process_common_attributes): New function.
27572         (process_function_and_variable_attributes): Use it.
27573
27574 2011-01-26  Richard Guenther  <rguenther@suse.de>
27575
27576         PR lto/47423
27577         * cgraphbuild.c (record_eh_tables): Record reference to personality
27578         function.
27579
27580 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
27581
27582         PR debug/45454
27583         * sel-sched.c (moveup_expr): Don't let debug insns prevent
27584         non-debug insns from moving up.
27585
27586 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
27587
27588         PR target/40125
27589         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
27590         t-dlldir{,-x} fragment for build and add it to tmake_file.
27591         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
27592         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
27593         * config/i386/t-dlldir: New file.
27594         (SHLIB_DLLDIR): Define.
27595         * config/i386/t-dlldir-x: New file.
27596         (SHLIB_DLLDIR): Define.
27597         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
27598         (SHLIB_INSTALL): Use it.
27599
27600 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
27601
27602         PR target/47246
27603         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
27604         lower bound of the allowed Thumb-2 coprocessor load/store
27605         index range to -256. Add explaining comment.
27606
27607 2011-01-25  Ian Lance Taylor  <iant@google.com>
27608
27609         * godump.c (go_define): Improve lexing of macro expansion to only
27610         accept expressions which match Go spec.
27611
27612 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
27613
27614         PR c++/43601
27615         * tree.c (handle_dll_attribute): Handle it.
27616         * doc/extend.texi (@item dllexport): Mention it.
27617         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
27618
27619 2011-01-25  Ian Lance Taylor  <iant@google.com>
27620
27621         PR tree-optimization/26854
27622         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
27623         (decl_jump_unsafe): Move higher in file, with no other change.
27624         (bind): Set has_jump_unsafe_decl if appropriate.
27625         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
27626         (check_earlier_gotos): Likewise.
27627         (c_check_switch_jump_warnings): Likewise.
27628
27629 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
27630
27631         * doc/invoke.texi (Warning Options): Add missing hyphen.
27632         (-fprofile-dir): Minor grammatical fixes.
27633         (-fbranch-probabilities): Likewise.
27634
27635 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
27636
27637         PR debug/45136
27638         PR debug/45130
27639         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
27640         debug insns.
27641         (no_real_insns_p, schedule_block, set_priorities): Drop special
27642         treatment of boundary debug insns.
27643         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
27644         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
27645         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
27646         (BOUNDARY_DEBUG_INSN_P): Likewise.
27647         (SCHEDULE_DEBUG_INSN_P): Likewise.
27648         * sched-rgn.c (init_ready_list): Drop special treatment of
27649         boundary debug insns.
27650         * final.c (rest_of_clean-state): Clear notes' BB.
27651
27652 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27653
27654         * Makefile.in (LAMBDA_H): Removed.
27655         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
27656         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
27657         lambda-trans.o, and tree-loop-linear.o.
27658         (lto-symtab.o): Remove dependence on LAMBDA_H.
27659         (tree-loop-linear.o): Remove rule.
27660         (lambda-mat.o): Same.
27661         (lambda-trans.o): Same.
27662         (lambda-code.o): Same.
27663         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
27664         (tree-vect-slp.o): Same.
27665         * hwint.h (gcd): Moved here.
27666         (least_common_multiple): Same.
27667         * lambda-code.c: Removed.
27668         * lambda-mat.c: Removed.
27669         * lambda-trans.c: Removed.
27670         * lambda.h: Removed.
27671         * tree-loop-linear.c: Removed.
27672         * lto-symtab.c: Do not include lambda.h.
27673         * omega.c (gcd): Removed.
27674         * passes.c (init_optimization_passes): Remove pass_linear_transform.
27675         * tree-data-ref.c (print_lambda_vector): Moved here.
27676         (lambda_vector_copy): Same.
27677         (lambda_matrix_copy): Same.
27678         (lambda_matrix_id): Same.
27679         (lambda_vector_first_nz): Same.
27680         (lambda_matrix_row_add): Same.
27681         (lambda_matrix_row_exchange): Same.
27682         (lambda_vector_mult_const): Same.
27683         (lambda_vector_negate): Same.
27684         (lambda_matrix_row_negate): Same.
27685         (lambda_vector_equal): Same.
27686         (lambda_matrix_right_hermite): Same.
27687         * tree-data-ref.h: Do not include lambda.h.
27688         (lambda_vector): Moved here.
27689         (lambda_matrix): Same.
27690         (dependence_level): Same.
27691         (lambda_transform_legal_p): Removed declaration.
27692         (lambda_collect_parameters): Same.
27693         (lambda_compute_access_matrices): Same.
27694         (lambda_vector_gcd): Same.
27695         (lambda_vector_new): Same.
27696         (lambda_vector_clear): Same.
27697         (lambda_vector_lexico_pos): Same.
27698         (lambda_vector_zerop): Same.
27699         (lambda_matrix_new): Same.
27700         * tree-flow.h (least_common_multiple): Removed declaration.
27701         * tree-parloops.c (lambda_trans_matrix): Moved here.
27702         (LTM_MATRIX): Same.
27703         (LTM_ROWSIZE): Same.
27704         (LTM_COLSIZE): Same.
27705         (LTM_DENOMINATOR): Same.
27706         (lambda_trans_matrix_new): Same.
27707         (lambda_matrix_vector_mult): Same.
27708         (lambda_transform_legal_p): Same.
27709         * tree-pass.h (pass_linear_transform): Removed declaration.
27710         * tree-ssa-loop.c (tree_linear_transform): Removed.
27711         (gate_tree_linear_transform): Removed.
27712         (pass_linear_transform): Removed.
27713         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
27714         flag_loop_interchange.
27715
27716 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
27717
27718         PR tree-optimization/47265
27719         PR tree-optimization/47443
27720         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
27721         if name still has some uses.
27722
27723 2011-01-25  Martin Jambor  <mjambor@suse.cz>
27724
27725         PR tree-optimization/47382
27726         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
27727         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
27728
27729 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
27730
27731         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
27732         sjlj_except_unwind_info.
27733
27734 2011-01-25  Richard Guenther  <rguenther@suse.de>
27735
27736         PR tree-optimization/47426
27737         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
27738         visible functions results escape.
27739
27740 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
27741
27742         PR target/45701
27743         * config/arm/arm.c (any_sibcall_uses_r3): New function.
27744         (arm_get_frame_offsets): Use it.
27745
27746 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27747             Jakub Jelinek  <jakub@redhat.com>
27748
27749         PR tree-optimization/47271
27750         * tree-if-conv.c (bb_postdominates_preds): New.
27751         (if_convertible_bb_p): Call bb_postdominates_preds.
27752         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
27753         (predicate_scalar_phi): Call bb_postdominates_preds.
27754
27755 2011-01-25  Nick Clifton  <nickc@redhat.com>
27756
27757         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
27758         * config/rx/rx.c (rx_function_value): Likewise.
27759         (rx_promote_function_mode): Likewise.
27760         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
27761         in order to make it legitimate.
27762         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
27763         make sure that the first operand is the same as the result register.
27764         (addsi3_unspec): Delete.
27765         (subdi3): Do not accept immediate operands.
27766         (subdi3_internal): Likewise.
27767
27768 2011-01-25  Jeff Law  <law@redhat.com>
27769
27770         PR rtl-optimization/37273
27771         * ira-costs.c (scan_one_insn): Detect constants living in memory and
27772         handle them like argument loads from stack slots.  Do not double
27773         count memory for memory constants and argument loads from stack slots.
27774
27775 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
27776
27777         PR tree-optimization/47427
27778         PR tree-optimization/47428
27779         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
27780         coalesce if the new root var would be TREE_READONLY.
27781
27782 2011-01-25  Richard Guenther  <rguenther@suse.de>
27783
27784         PR middle-end/47414
27785         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
27786         correct type for TBAA.
27787
27788 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27789
27790         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
27791         (close_phi_written_to_memory): Call for_each_index with
27792         dr_indices_valid_in_loop.
27793
27794 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27795
27796         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
27797         when it is initialized.
27798
27799 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27800
27801         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
27802         call to graphite_find_data_references_in_stmt.
27803         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
27804         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
27805         call to graphite_find_data_references_in_stmt.
27806         (analyze_drs_in_stmts): Same.
27807         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
27808         in which the scalar analysis of indices is performed.
27809         (create_data_ref): Same.  Update call to dr_analyze_indices.
27810         (find_data_references_in_stmt): Update call to create_data_ref.
27811         (graphite_find_data_references_in_stmt): Same.
27812         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
27813         declaration.
27814         (create_data_ref): Same.
27815         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
27816         call to create_data_ref.
27817
27818 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27819
27820         * graphite-sese-to-poly.c (build_poly_scop): Move
27821         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
27822
27823 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27824
27825         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
27826         VAR_DECL, PARM_DECL, and RESULT_DECL.
27827
27828 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27829
27830         * graphite-dependences.c (reduction_dr_1): Allow several reductions
27831         in a reduction PBB.
27832         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
27833         that have already been marked as PBB_IS_REDUCTION.
27834
27835 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27836
27837         * graphite-scop-detection.c (same_close_phi_node): New.
27838         (remove_duplicate_close_phi): New.
27839         (make_close_phi_nodes_unique): New.
27840         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
27841
27842 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27843
27844         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
27845         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
27846         of both data references to be the same.
27847
27848 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27849
27850         * graphite-dependences.c (build_lexicographical_constraint): Remove
27851         the gdim parameter.
27852         (build_lexicographical_constraint): Adjust call to
27853         ppl_powerset_is_empty.
27854         (dependence_polyhedron): Same.
27855         (graphite_legal_transform_dr): Same.
27856         (graphite_carried_dependence_level_k): Same.
27857         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
27858         parameter.
27859         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
27860
27861 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27862
27863         * graphite-sese-to-poly.c
27864         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
27865         (close_phi_written_to_memory): New.
27866         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
27867         and unshare_expr.
27868
27869 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27870
27871         * doc/install.texi: Update the expected version number of PPL to 0.11.
27872         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
27873         #if PPL_VERSION_MINOR < 11.
27874
27875 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27876
27877         * graphite-dependences.c: Include graphite-cloog-util.h.
27878         (new_poly_ddr): Inlined into dependence_polyhedron.
27879         (free_poly_ddr): Moved close by new_poly_ddr.
27880         (dependence_polyhedron_1): Renamed dependence_polyhedron.
27881         Early return NULL when ppl_powerset_is_empty returns true.
27882         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
27883         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
27884         (graphite_legal_transform_dr): Call new_poly_ddr.
27885         (graphite_carried_dependence_level_k): Same.
27886         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
27887         (dot_transformed_deps_stmt_1): Removed.
27888         (dot_deps_stmt_1): Call dot_deps_stmt_2.
27889         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
27890         (dot_deps_1): Call dot_deps_2.
27891         * Makefile.in (graphite-dependences.o): Add missing dependence on
27892         graphite-cloog-util.h.
27893
27894 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27895
27896         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
27897         (build_lexicographical_constraint): Same.
27898         (dependence_polyhedron_1): Same.
27899         (graphite_legal_transform_dr): Same.
27900         (graphite_carried_dependence_level_k): Same.
27901         * graphite-ppl.c (ppl_powerset_is_empty): New.
27902         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
27903         * tree-data-ref.c (dump_data_reference): Print the basic block index.
27904
27905 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27906
27907         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
27908         the "a followed by b" relation and document it.
27909
27910 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27911
27912         * graphite-dependences.c (build_lexicographical_constraint): Stop the
27913         iteration when the bag of constraints is empty.
27914
27915 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27916
27917         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
27918
27919 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27920
27921         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
27922         nest and two loop depths as parameters.
27923         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
27924         lst_perfect_nestify.
27925
27926 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27927
27928         * graphite-dependences.c (print_pddr): Call
27929         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
27930
27931 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27932
27933         * graphite-ppl.c (debug_gmp_value): New.
27934         * graphite-ppl.h (debug_gmp_value): Declared.
27935
27936 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
27937
27938         * doc/install.texi: Document availability of cloog-0.16.
27939
27940 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
27941
27942         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
27943         invalid postdominance info.
27944
27945 2011-01-24  Jan Hubicka  <jh@suse.cz>
27946
27947         PR c/21659
27948         * doc/extend.texi (weak pragma): Drop claim that it must
27949         appear before definition.
27950         * varasm.c (merge_weak, declare_weak): Only sanity check
27951         that DECL is not output at a time it is declared weak.
27952
27953 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
27954
27955         * machmode.def: Fixed comments.
27956
27957 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
27958
27959         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
27960
27961 2011-01-24  Paul Koning  <ni1d@arrl.net>
27962
27963         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
27964         WORDS_BIG_ENDIAN.
27965
27966 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
27967
27968         PR target/46519
27969         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
27970         (block_info): Add scanned and prev.
27971         (move_or_delete_vzeroupper_2): Return if the basic block
27972         has been scanned and the upper 128bit state is unchanged
27973         from the last scan.
27974         (move_or_delete_vzeroupper_1): Return true if the exit
27975         state is changed.
27976         (move_or_delete_vzeroupper): Visit basic blocks using the
27977         work-list based algorithm based on vt_find_locations in
27978         var-tracking.c.
27979
27980         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
27981
27982 2011-01-24  Nick Clifton  <nickc@redhat.com>
27983
27984         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
27985         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
27986         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
27987         then define __v850e1__.
27988         * doc/invoke.texi: Document -mv850es.
27989
27990 2011-01-24  Richard Henderson  <rth@redhat.com>
27991
27992         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
27993         compound unordered comparisons.
27994         * config/rx/rx.c (rx_split_fp_compare): Remove.
27995         * config/rx/rx-protos.h: Update.
27996         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
27997         (cbranchsf4): Don't call rx_split_fp_compare.
27998         (*cbranchsf4): Use rx_split_cbranch.
27999         (*cmpsf): Don't accept "i" constraint.
28000         (*conditional_branch): Only valid after reload.
28001         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
28002
28003 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
28004
28005         PR target/47385
28006         * config/rs6000/altivec.md (vector constant splitters): Add
28007         support for creating vector single precision constants if -mvsx is
28008         used and we would create the constant using Altivec primitives.
28009
28010 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
28011             Richard Sandiford  <rdsandiford@googlemail.com>
28012
28013         PR rtl-optimization/47166
28014         * reload1.c (emit_reload_insns): Disable the spill_reg_store
28015         mechanism for PRE_MODIFY and POST_MODIFY.
28016         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
28017         reloadreg.
28018
28019 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
28020
28021         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
28022
28023 2011-01-22  Jan Hubicka  <jh@suse.cz>
28024
28025         PR lto/47333
28026         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
28027
28028 2011-01-22  Jan Hubicka  <jh@suse.cz>
28029
28030         PR tree-optimization/43884
28031         PR lto/44334
28032         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
28033         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
28034
28035 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
28036
28037         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
28038         * config/s390/s390.c (s390_register_move_cost,
28039         s390_memory_move_cost): New.
28040         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
28041
28042 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28043
28044         PR middle-end/47401
28045         * except.c (sjlj_assign_call_site_values): Move setting the
28046         crtl->uses_eh_lsda flag to ...
28047         (sjlj_mark_call_sites): ... here.
28048         (sjlj_emit_function_enter): Support NULL dispatch label.
28049         (sjlj_build_landing_pads): In a function with no landing pads
28050         that still has must-not-throw regions, generate code to register
28051         a personality function with empty LSDA.
28052
28053 2011-01-21  Richard Henderson  <rth@redhat.com>
28054
28055         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
28056
28057         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
28058
28059         * compare-elim.c: New file.
28060         * Makefile.in (OBJS-common): Add it.
28061         (compare-elim.o): New.
28062         * common.opt (fcompare-elim): New.
28063         * opts.c (default_options_table): Add OPT_fcompare_elim.
28064         * tree-pass.h (pass_compare_elim_after_reload): New.
28065         * passes.c (init_optimization_passes): Add it.
28066         * recog.h: Protect against re-inclusion.
28067         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
28068         * doc/invoke.texi (-fcompare-elim): Document it.
28069         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
28070         * doc/tm.texi: Rebuild.
28071
28072 2011-01-22  Nick Clifton  <nickc@redhat.com>
28073
28074         * config/rx/rx.md (cstoresf4): Pass comparison operator to
28075         rx_split_fp_compare.
28076
28077 2011-01-22  Nick Clifton  <nickc@redhat.com>
28078
28079         * config/rx/rx.md (UNSPEC_CONST): New.
28080         (deallocate_and_return): Wrap the amount popped off the stack in
28081         an UNSPEC_CONST in order to stop it being rejected by
28082         -mmax-constant-size.
28083         (pop_and_return): Add a "(return)" rtx.
28084         (call): Drop the immediate operand.
28085         (call_internal): Likewise.
28086         (call_value): Likewise.
28087         (call_value_internal): Likewise.
28088         (sibcall_internal): Likewise.
28089         (sibcall_value_internal): Likewise.
28090         (sibcall): Likewise.  Generate an explicit call using
28091         sibcall_internal.
28092         (sibcall_value): Likewise.
28093         (mov<>): FAIL if a constant operand is not legitimate.
28094         (addsi3_unpsec): New pattern.
28095
28096         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
28097         (ok_for_max_constant): New function.
28098         (gen_safe_add): New function.
28099         (rx_expand_prologue): Use gen_safe_add.
28100         (rx_expand_epilogue): Likewise.
28101         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
28102         UNSPEC CONSTs.
28103
28104 2011-01-21  Jeff Law  <law@redhat.com>
28105
28106         PR tree-optimization/47053
28107         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
28108         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
28109         statements are deleted.
28110         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
28111         is nonempty, then purge dead edges and cleanup the CFG.
28112
28113 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
28114
28115         PR debug/47402
28116         Temporarily revert:
28117         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
28118         PR debug/47106
28119         * tree-dfa.c (create_var_ann): Mark variable as used.
28120
28121 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
28122
28123         PR middle-end/45566
28124         * except.c (convert_to_eh_region_ranges): Emit queued no-region
28125         notes from other section in hot/cold partitioning even if
28126         last_action is -3.  Increment call_site_base.
28127
28128         PR rtl-optimization/47366
28129         * fwprop.c (forward_propagate_into): Return bool.  If
28130         any changes are made, -fnon-call-exceptions is used and
28131         REG_EH_REGION note is present, call purge_dead_edges
28132         and return true if it purged anything.
28133         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
28134         any EH edges were purged.
28135
28136 2011-01-21  Jeff Law  <law@redhat.com>
28137
28138         PR rtl-optimization/41619
28139         * caller-save.c (setup_save_areas): Break out code to determine
28140         which hard regs are live across calls by examining the reload chains
28141         so that it is always used.
28142         Eliminate code which checked REG_N_CALLS_CROSSED.
28143
28144 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
28145
28146         PR tree-optimization/47355
28147         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
28148         NOP has non-debug uses beyond PHIs in new_bb.
28149
28150 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
28151
28152         PR debug/47106
28153         * cfgexpand.c (account_used_vars_for_block): Only account vars
28154         that are annotated as used.
28155         (estimated_stack_frame_size): Don't set TREE_USED.
28156         * tree-dfa.c (create_var_ann): Mark variable as used.
28157
28158 2011-01-21  Richard Guenther  <rguenther@suse.de>
28159
28160         PR middle-end/47395
28161         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
28162
28163 2011-01-21  Richard Guenther  <rguenther@suse.de>
28164
28165         PR tree-optimization/47365
28166         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
28167         (vn_reference_lookup_pieces): Adjust.
28168         (vn_reference_lookup): Likewise.
28169         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
28170         (vn_reference_lookup_3): Only look through kills if in
28171         VN_WALKREWRITE mode.
28172         (vn_reference_lookup_pieces): Adjust.
28173         (vn_reference_lookup): Likewise.
28174         (visit_reference_op_load): Likewise.
28175         (visit_reference_op_store): Likewise.
28176         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
28177         (compute_avail): Likewise.
28178         (eliminate): Likewise.
28179
28180 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
28181
28182         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
28183         DECL_IGNORED_P non-reg vars if they are used.
28184
28185         PR tree-optimization/47391
28186         * varpool.c (const_value_known_p): Return false if
28187         decl is volatile.
28188
28189 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
28190
28191         PR bootstrap/47215
28192         * config/i386/i386.c (ix86_local_alignment): Handle
28193         case for va_list_type_node is nil.
28194         (ix86_canonical_va_list_type): Likewise.
28195
28196 2011-01-21  Alan Modra  <amodra@gmail.com>
28197
28198         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
28199         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
28200
28201 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28202
28203         * config/arm/arm.md (define_attr type): Rename f_load
28204         and f_store to f_fpa_load and f_fpa_store. Update.
28205         (write_conflict): Deal with rename fallout.
28206         (*push_fp_multi): Likewise.
28207         * config/arm/fpa.md (f_load): Use f_fpa_load.
28208         (f_store): Use f_fpa_store.
28209         (*movsf_fpa): Likewise.
28210         (*movdf_fpa): Likewise.
28211         (*movxf_fpa): Likewise.
28212         (*thumb2_movsf_fpa): Likewise.
28213         (*thumb2_movdf_fpa): Likewise.
28214         (*thumb2_movxf_fpa): Likewise.
28215         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
28216         f_loadd and f_stored.
28217         (*thumb2_movdi_vfp): Likewise.
28218         (*thumb2_movsf_vfp): Fix attribute to f_loads.
28219         (*thumb2_movsi_vfp): Likewise.
28220         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
28221         Use f_loads instead of f_load.
28222         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
28223
28224 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
28225
28226         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
28227         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
28228         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28229         (xtensa_mode_dependent_address_p): New function.
28230         (constantpool_address_p): Make static. Change return type to bool.
28231         Change argument type to const_rtx. Use CONST_INT_P predicate.
28232
28233 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
28234
28235         PR debug/46583
28236         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
28237
28238 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
28239
28240         PR debug/47283
28241         * cfgexpand.c (expand_debug_expr): Instead of generating
28242         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
28243         etc. handling.
28244
28245 2011-01-20  Richard Guenther  <rguenther@suse.de>
28246
28247         PR middle-end/47370
28248         * tree-inline.c (remap_gimple_op_r): Recurse manually for
28249         the pointer operand of MEM_REFs.
28250
28251 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
28252
28253         PR tree-optimization/46130
28254         * ipa-split.c (consider_split): If return_bb contains non-virtual
28255         PHIs other than for retval or if split_function would not adjust it,
28256         refuse to split.
28257
28258 2011-01-20  Richard Guenther  <rguenther@suse.de>
28259
28260         PR tree-optimization/47167
28261         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
28262         Revert previous change, only avoid enumeral type changes.
28263
28264 2011-01-19  Mike Stump  <mikestump@comcast.net>
28265
28266         * doc/tm.texi.in (BRANCH_COST): Englishify.
28267         * doc/tm.texi (BRANCH_COST): Likewise.
28268
28269 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
28270
28271         PR c++/47291
28272         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
28273         (gen_scheduled_generic_parms_dies): New functions.
28274         (gen_struct_or_union_type_die): Schedule template parameters DIEs
28275         generation for the end of CU compilation.
28276         (dwarf2out_finish): Generate template parameters DIEs here.
28277
28278 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
28279
28280         PR debug/46240
28281         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
28282         debug bind stmt on merge edges.
28283
28284 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
28285
28286         PR debug/47079
28287         PR debug/46724
28288         * function.c (instantiate_expr): Instantiate incoming rtl of
28289         implicit arguments, and recurse on VALUE_EXPRs.
28290         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
28291         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
28292
28293 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
28294
28295         * c-parser.c (c_parser_for_statement): Initialize
28296         collection_expression.
28297
28298 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
28299
28300         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
28301
28302 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
28303
28304         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
28305         (LINK_SHLIB_SPEC): Don't use %(link_path).
28306         (SUBTARGET_EXTRA_SPECS): Remove link_path.
28307
28308 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
28309
28310         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
28311         (NO_SHARED_LIB_SUPPORT): Remove.
28312         (LINK_SHLIB_SPEC): Remove one conditional definition.
28313
28314 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
28315
28316         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
28317         %{call_shared}.
28318         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
28319         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
28320         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
28321         %{call_shared} and conditionals on these options not being passed.
28322         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
28323         %{call_shared}.
28324
28325 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
28326
28327         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
28328         simplify.
28329
28330         * ipa-split.c: Spelling fixes.
28331
28332 2011-01-19  Richard Henderson  <rth@redhat.com>
28333
28334         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
28335         (*mulsi3): Likewise.
28336
28337         * longlong.h [__mn10300__] (count_leading_zeros): New.
28338         [__mn10300__] (umul_ppmm, smul_ppmm): New.
28339         [__mn10300__] (add_ssaaaa, subddmmss): New.
28340         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
28341         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
28342
28343 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28344
28345         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
28346
28347 2011-01-19  Richard Henderson  <rth@redhat.com>
28348
28349         * config/mn10300/mn10300.md (addsi3_flags): New.
28350         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
28351         (subsi3_flags, subc_internal, subdi3): New.
28352         (subdi3_internal, *subdi3_degenerate): New.
28353         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
28354
28355         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
28356         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
28357         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
28358         * config/mn10300/mn10300-protos.h: Update.
28359         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
28360         (return_ret): Likewise.  Rename from return_internal_regs.
28361         (return_internal): Remove.
28362
28363         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
28364         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
28365         (mn10300_legitimate_constant_p): Likewise.
28366         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
28367         (mn10300_frame_size): New.
28368         (mn10300_expand_prologue): Use it.
28369         (mn10300_expand_epilogue): Likewise.
28370         (mn10300_initial_offset): Likewise.
28371         * config/mn10300/mn10300-protos.h: Update.
28372         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
28373         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
28374         (prologue, epilogue, return_internal): Tidy output code.
28375         (mn10300_store_multiple_operation, return): Likewise.
28376         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
28377         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
28378         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
28379         (load_pic, am33_load_pic): New.
28380         (mn10300_load_pic0, mn10300_load_pic1): New.
28381
28382         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
28383         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
28384         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
28385         (cc_flags_for_mode, cc_flags_for_code): New.
28386         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
28387         overflow flag is not valid.  Validate that the flags we need
28388         for the comparison are valid.
28389         (mn10300_output_cmp): Remove.
28390         (mn10300_output_add): New.
28391         (mn10300_select_cc_mode): Use cc_flags_for_code.
28392         (mn10300_split_cbranch): New.
28393         (mn10300_match_ccmode): New.
28394         (mn10300_split_and_operand_count): New.
28395         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
28396         to the function.
28397         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
28398         (addsi3): ... here.  Use mn10300_output_add.
28399         (*addsi3_flags): New.
28400         (*am33_subsi3, *mn10300_subsi3): Merge...
28401         (subsi3): ... here.  Use attribute isa.
28402         (*subsi3_flags): New.
28403         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
28404         when possible.
28405         (*am33_andsi3, *mn10300_andsi3): Merge...
28406         (andsi3): ... here.
28407         (*andsi3_flags): New.
28408         (andsi3 splitters): New.
28409         (*am33_iorsi3, *mn10300_iorsi3): Merge...
28410         (iorsi3): ... here.
28411         (*iorsi3_flags): New.
28412         (*am33_xorsi3, *mn10300_xorsi3): Merge...
28413         (xorsi3): ... here.
28414         (*xorsi3_flags): New.
28415         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
28416         (one_cmplsi2): ... here.
28417         (*one_cmplsi2_flags): New.
28418         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
28419         instead of "dax" in constraints.  Use mn10300_split_cbranch.
28420         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
28421         use matching constraints to eliminate a self-comparison.
28422         (*integer_conditional_branch): Rename from integer_conditional_branch.
28423         Use int_mode_flags to match CC_REG.
28424         (*cbranchsi4_btst, *btstsi): New.
28425         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
28426         mn10300_split_cbranch.
28427         (*am33_cmpsf): Rename from am33_cmpsf.
28428         (*float_conditional_branch): Rename from float_conditional_branch.
28429         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
28430         (zero_extendqisi2): ... here.
28431         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
28432         (zero_extendhisi2): ... here.
28433         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
28434         (extendqisi2): ... here.
28435         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
28436         (extendhisi2): ... here.
28437         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
28438         (ashlsi3): ... here.
28439         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
28440         (lshrsi3): ... here.
28441         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
28442         (ashrsi3): ... here.
28443         (consecutive add peephole): Remove.
28444         * config/mn10300/predicates.md (label_ref_operand): New.
28445         (int_mode_flags): New.
28446         (CCZN_comparison_operator): New.
28447
28448         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
28449         (throughput_42_latency_43): New reservation.
28450         (mulsidi3, umulsidi3): New expanders.
28451         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
28452         the MDR register to allocation; separately allocate the low and
28453         high parts of the DImode result.
28454         (umulsidi3_internal): Similarly.
28455         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
28456         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
28457         (udivsi3, umodsi3): Remove.
28458         (udivmodsi4, divmodsi4): New expanders.
28459         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
28460         (*divmodsi4): Simiarly.
28461         (ext_internal): New.
28462
28463         * config/mn10300/constraints.md ("z"): New constraint.
28464         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
28465         (FIXED_REGISTERS): Don't fix MDR.
28466         (CALL_USED_REGSITERS): Reformat nicely.
28467         (REG_ALLOC_ORDER): Add MDR.
28468         (enum regclass): Add MDR_REGS.
28469         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
28470         (IRA_COVER_CLASSES): Add MDR_REGS.
28471         (REGNO_REG_CLASS): Handle MDR_REG.
28472         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
28473         (mn10300_register_move_cost): Likewise.
28474         * config/mn10300/mn10300.md (MDR_REG): New.
28475         (*movsi_internal): Handle moves to/from MDR_REGS.
28476
28477         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
28478         POST_MODIFY.
28479         (mn10300_secondary_reload): Tidy combination reload classes.
28480         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
28481         addresses for AM33.  Allow symbolic offsets for reg+imm.
28482         (mn10300_regno_in_class_p): New.
28483         (mn10300_legitimize_reload_address): New.
28484         * config/mn10300/mn10300.h (enum reg_class): Remove
28485         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
28486         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
28487         SP_OR_GENERAL_REGS.
28488         (REG_CLASS_NAMES): Update to match.
28489         (REG_CLASS_CONTENTS): Likewise.
28490         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
28491         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
28492         (REGNO_IN_RANGE_P): Remove.
28493         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
28494         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
28495         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
28496         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
28497         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
28498         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
28499         (REGNO_GENERAL_P): New.
28500         (HAVE_POST_MODIFY_DISP): New.
28501         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
28502         (LEGITIMIZE_RELOAD_ADDRESS): New.
28503         * config/mn10300/mn10300-protos.h: Update.
28504
28505         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
28506         DATA_REGS for AM33 stack-pointer destination.
28507         (mn10300_preferred_output_reload_class): Likewise.
28508         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
28509         into a form appropriate for ...
28510         (TARGET_SECONDARY_RELOAD): New.
28511         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
28512         * config/mn10300/mn10300-protos.h: Update.
28513         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
28514         reload_insi; use the "A" constraint for the scratch; handle AM33
28515         moves of sp to non-address registers.
28516
28517         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
28518         (*movqi_internal): ... here.
28519         (*am33_movhi, *mn10300_movhi): Merge into...
28520         (*movhi_internal): ... here.
28521         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
28522         as the source/destination of moves from/to SP.
28523         (movsf): Only allow for AM33-2.
28524         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
28525         any integer constant constraint.  Only allow for AM33-2.  Tidy
28526         all of the alternative outputs.
28527         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
28528         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
28529         for MN103.
28530         (udivsi3, umodsi3): New patterns for MN103 only.
28531
28532 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
28533
28534         * doc/tm.texi.in: Spell out that a lack of register class unions
28535         can lead to ICEs.
28536         * doc/tm.texi: Regenerate.
28537
28538 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
28539
28540         PR rtl-optimization/47337
28541         * dce.c (check_argument_store): New function.
28542         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
28543
28544         PR tree-optimization/47290
28545         * tree-eh.c (infinite_empty_loop_p): New function.
28546         (cleanup_empty_eh): Use it.
28547
28548 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
28549
28550         PR target/46997
28551         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
28552         (a64_expand_widen_sum): Ditto.
28553         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
28554         (vec_extract_evenodd_help): Ditto.
28555         (vec_extract_evenv4hi): Ditto.
28556         (vec_extract_oddv4hi): Ditto.
28557         (vec_extract_evenv2si): Ditto.
28558         (vec_extract_oddv2si): Ditto.
28559         (vec_extract_evenv2sf): Ditto.
28560         (vec_extract_oddv2sf): Ditto.
28561         (vec_pack_trunc_v4hi: Ditto.
28562         (vec_pack_trunc_v2si): Ditto.
28563         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
28564         (vec_interleave_highv8qi): Ditto.
28565         (mix1_r): Ditto.
28566         (vec_extract_oddv8qi): Ditto.
28567         (vec_interleave_lowv4hi): Ditto.
28568         (vec_interleave_highv4hi): Ditto.
28569         (vec_interleave_lowv2si): Ditto.
28570         (vec_interleave_highv2si): Ditto.
28571
28572 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28573
28574         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
28575         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
28576         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
28577         (pa_c_mode_for_suffix): New.
28578         (TARGET_EXPAND_BUILTIN): Define.
28579         (TARGET_C_MODE_FOR_SUFFIX): Define.
28580         (pa_builtins): Define.
28581         (pa_init_builtins): Register __float128 type and init new support
28582         builtins.
28583         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
28584         * config/pa/quadlib.c (_U_Qfcopysign): New.
28585
28586 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
28587
28588         PR middle-end/46894
28589         * explow.c (allocate_dynamic_stack_space): Do not assume more than
28590         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
28591         are defined.
28592
28593 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28594
28595         PR tree-optimization/47179
28596         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
28597         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
28598
28599 2011-01-18  Richard Guenther  <rguenther@suse.de>
28600
28601         PR rtl-optimization/47216
28602         * emit-rtl.c: Include tree-flow.h.
28603         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
28604         of replicating it with different semantics.
28605         * Makefile.in (emit-rtl.o): Adjust.
28606
28607 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28608
28609         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
28610         (cortex_a9_dp): Handle neon types correctly.
28611
28612 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
28613
28614         PR rtl-optimization/47299
28615         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
28616         subtarget.  Use normal multiplication if both operands are constants.
28617         * expmed.c (expand_widening_mult): Don't try to optimize constant
28618         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
28619         before using it.
28620
28621 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28622
28623         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
28624         spacing after 'e.g.', typos, comma, hyphenation.
28625
28626 2011-01-17  Richard Henderson  <rth@redhat.com>
28627
28628         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
28629         (rx_restricted_mem_operand): New.
28630         (rx_shift_operand): Use register_operand.
28631         (rx_source_operand, rx_compare_operand): Likewise.
28632         * config/rx/rx.md (addsi3_flags): New expander.
28633         (adddi3): Rewrite as expander.
28634         (adc_internal, *adc_flags, adddi3_internal): New patterns.
28635         (subsi3_flags): New expander.
28636         (subdi3): Rewrite as expander.
28637         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
28638
28639         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
28640         (rx_init_builtins): Remove sat builtin.
28641         (rx_expand_builtin): Likewise.
28642         * config/rx/rx.md (ssaddsi3): New.
28643         (*sat): Rename from sat.  Represent the CC_REG input.
28644
28645         * config/rx/predicates.md (rshift_operator): New.
28646         * config/rx/rx.c (rx_expand_insv): Remove.
28647         * config/rx/rx-protos.h: Update.
28648         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
28649         operand to the canonical position.
28650         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
28651         (*bitclr, *bitclr_in_memory): Similarly.
28652         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
28653         (insv): Retain the zero_extract in the expansion.
28654
28655         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
28656         (bswaphi2, bitinvert, revw): Likewise.
28657
28658         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
28659         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
28660         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
28661         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
28662         (bitset, bitset_in_memory): Likewise.
28663         (bitinvert, bitinvert_in_memory): Likewise.
28664         (bitclr, bitclr_in_memory): Likewise.
28665         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
28666         (rx_strend, rx_cmpstrn): Likewise.
28667         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
28668         (bitop peep2 patterns): Remove.
28669
28670         * config/rx/rx.c (rx_match_ccmode): New.
28671         * config/rx/rx-protos.h: Update.
28672         * config/rx/rx.md (abssi2): Clobber, don't set flags.
28673         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
28674         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
28675         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
28676         (fix_truncsfsi2, floatsisf2): Likewise.
28677         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
28678         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
28679         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
28680         (*subsi3_flags, *xorsi3_flags): New.
28681
28682         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
28683
28684         * config/rx/rx.c (rx_print_operand): Remove workaround for
28685         unsplit comparison operations.
28686
28687         * config/rx/rx.md (movsicc): Split after reload.
28688         (*movsicc): Merge *movsieq and *movsine via match_operator.
28689         (*stcc): New pattern.
28690
28691         * config/rx/rx.c (rx_float_compare_mode): Remove.
28692         * config/rx/rx.h (rx_float_compare_mode): Remove.
28693         * config/rx/rx.md (cstoresi4): Split after reload.
28694         (*sccc): New pattern.
28695
28696         * config/rx/predicates.md (label_ref_operand): New.
28697         (rx_z_comparison_operator): New.
28698         (rx_zs_comparison_operator): New.
28699         (rx_fp_comparison_operator): New.
28700         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
28701         Validate that the flags are set properly for the comparison.
28702         (rx_gen_cond_branch_template): Remove.
28703         (rx_cc_modes_compatible): Remove.
28704         (mode_from_flags): New.
28705         (flags_from_code): Rename from flags_needed_for_conditional.
28706         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
28707         (rx_select_cc_mode): Likewise.
28708         (rx_split_fp_compare): New.
28709         (rx_split_cbranch): New.
28710         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
28711         (*cbranchsi4): Use match_operator and rx_split_cbranch.
28712         (*cbranchsf4): Similarly.
28713         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
28714         match_operator and rx_split_cbranch.
28715         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
28716         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
28717         (*cmpsi): Rename from cmpsi.
28718         (*tstsi): Rename from tstsi.
28719         (*cmpsf): Rename from cmpsf; use CC_Fmode.
28720         (*conditional_branch): Rename from conditional_branch.
28721         (*reveresed_conditional_branch): Remove.
28722         (b<code>): Remove expander.
28723         * config/rx/rx-protos.h: Update.
28724
28725         * config/rx/rx.c (rx_compare_redundant): Remove.
28726         * config/rx/rx.md (cmpsi): Don't use it.
28727         * config/rx/rx-protos.h: Update.
28728
28729         * config/rx/rx-modes.def (CC_F): New mode.
28730         * config/rx/rx.c (rx_select_cc_mode): New.
28731         * config/rx/rx.h (SELECT_CC_MODE): Use it.
28732         * config/rx/rx-protos.h: Update.
28733
28734 2011-01-17  Richard Henderson  <rth@redhat.com>
28735
28736         * except.c (dump_eh_tree): Fix stray ; after for statement.
28737
28738 2011-01-17  Richard Guenther  <rguenther@suse.de>
28739
28740         PR tree-optimization/47313
28741         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
28742         handling before copying the body.  Properly deal with
28743         by-reference result in SSA form.
28744
28745 2011-01-17  Ian Lance Taylor  <iant@google.com>
28746
28747         PR target/47219
28748         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
28749         (struct_value_alias_set): Don't define.
28750         (sparc_option_override): Don't set sparc_sr_alias_set and
28751         struct_value_alias_set.
28752         (save_or_restore_regs): Use gen_frame_mem rather than calling
28753         set_mem_alias_set.
28754         (sparc_struct_value_rtx): Likewise.
28755
28756 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
28757
28758         PR target/47318
28759         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
28760         (_mm_maskstore_pd): Likewise.
28761         (_mm_maskload_ps): Likewise.
28762         (_mm_maskstore_ps): Likewise.
28763         (_mm256_maskload_pd): Change mask to __m256i.
28764         (_mm256_maskstore_pd): Likewise.
28765         (_mm256_maskload_ps): Likewise.
28766         (_mm256_maskstore_ps): Likewise.
28767
28768         * config/i386/i386-builtin-types.def: Updated.
28769         (ix86_expand_special_args_builtin): Likewise.
28770
28771         * config/i386/i386.c (bdesc_special_args): Update
28772         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
28773         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
28774         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
28775         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
28776
28777         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
28778         Use <avxpermvecmode> on mask register.
28779         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
28780
28781 2011-01-17  Olivier Hainque  <hainque@adacore.com>
28782             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
28783             Eric Botcazou  <ebotcazou@adacore.com>
28784
28785         PR target/46655
28786         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
28787         if <= USHRT_MAX in 32-bit mode.
28788
28789 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28790
28791         * doc/install.texi (Configuration, Specific): Wrap long
28792         lines in examples.  Allow line wrapping in long options
28793         and URLs where beneficial for PDF output.
28794
28795 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
28796
28797         * config/mips/mips.c (mips_classify_symbol): Don't return
28798         SYMBOL_PC_RELATIVE for nonlocal labels.
28799
28800 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
28801
28802         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
28803
28804 2011-01-15  Jan Hubicka  <jh@suse.cz>
28805
28806         PR tree-optimization/47276
28807         * ipa.c (function_and_variable_visibility): Do not try to mark alias
28808         declarations as needed.
28809
28810 2011-01-15  Martin Jambor  <mjambor@suse.cz>
28811
28812         * common.opt (fdevirtualize): New flag.
28813         * doc/invoke.texi (Option Summary): Document it.
28814         * opts.c (default_options_table): Add devirtualize flag.
28815         * ipa-prop.c (detect_type_change): Return immediately if
28816         devirtualize flag is not set.
28817         (detect_type_change_ssa): Likewise.
28818         (compute_known_type_jump_func): Likewise.
28819         (ipa_analyze_virtual_call_uses): Likewise.
28820
28821 2011-01-14  Martin Jambor  <mjambor@suse.cz>
28822
28823         PR tree-optimization/45934
28824         PR tree-optimization/46302
28825         * ipa-prop.c (type_change_info): New type.
28826         (stmt_may_be_vtbl_ptr_store): New function.
28827         (check_stmt_for_type_change): Likewise.
28828         (detect_type_change): Likewise.
28829         (detect_type_change_ssa): Likewise.
28830         (compute_complex_assign_jump_func): Check for dynamic type change.
28831         (compute_complex_ancestor_jump_func): Likewise.
28832         (compute_known_type_jump_func): Likewise.
28833         (compute_scalar_jump_functions): Likewise.
28834         (ipa_analyze_virtual_call_uses): Likewise.
28835         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
28836
28837 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28838
28839         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
28840         * config/i386/i386.opt (msse5): New Alias.
28841
28842 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28843
28844         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
28845         * config/sparc/linux64.h (CC1_SPEC): Likewise.
28846         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
28847         * config/sparc/sparc.h (CC1_SPEC): Likewise.
28848
28849 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28850
28851         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
28852         -mcpu options.
28853         * config/sparc/linux64.h (CC1_SPEC): Likewise.
28854         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
28855         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
28856         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
28857         Likewise.
28858         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
28859
28860 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28861
28862         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
28863
28864 2011-01-14  Mike Stump  <mikestump@comcast.net>
28865
28866         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
28867         * config/fr30/fr30.md: Likweise
28868         (movsi_push): Likewise.
28869         (movsi_pop): Likewise.
28870         (enter_func): Likewise.
28871         * config/moxie/moxie.md (movsi_push): Likewise.
28872         (movsi_pop): Likewise.
28873
28874 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28875
28876         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
28877         %{no_archive} %{exact_version}.
28878         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
28879         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
28880         %{no_archive} %{exact_version}.
28881         * config/mips/openbsd.h (LINK_SPEC): Likewise.
28882         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
28883         * config/mips/vxworks.h: Likewise.
28884
28885 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28886
28887         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
28888
28889 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28890
28891         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
28892         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
28893
28894 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28895
28896         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
28897         -nodefaultlib.
28898
28899 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28900
28901         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
28902         for mcpu not cpu.
28903         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
28904         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
28905         not cpu.
28906         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
28907         Don't handle -shlib.
28908
28909 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28910
28911         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
28912         (CC1_SPEC): Don't handle -profile.
28913
28914 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28915
28916         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
28917         * config/mips/mips.h (CC1_SPEC): Likewise.
28918
28919 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28920
28921         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
28922         * config/mips/mips.h (CC1_SPEC): Likewise.
28923
28924 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28925
28926         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
28927         * config/m32r/linux.h (LINK_SPEC): Likewise.
28928         * config/mips/linux.h (LINK_SPEC): Likewise.
28929         * config/mips/linux64.h (LINK_SPEC): Likewise.
28930         * config/sparc/linux.h (LINK_SPEC): Likewise.
28931         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
28932         LINK_SPEC): Likewise.
28933         * config/xtensa/linux.h (LINK_SPEC): Likewise.
28934
28935 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28936
28937         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
28938         %{version:-v}.
28939         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
28940
28941 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28942
28943         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
28944         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
28945
28946 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28947
28948         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
28949
28950 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28951
28952         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
28953         supports -Bstatic/-Bdynamic.
28954         * configure: Regenerate.
28955
28956 2011-01-14  Jan Hubicka  <jh@suse.cz>
28957             Jack Howarth  <howarth@bromo.med.uc.edu>
28958
28959         PR target/46037
28960         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
28961         when checking debug_info_level. Test write_symbols instead of
28962         debug_hooks->var_location when setting flag_var_tracking_uninit.
28963
28964 2011-01-14  Richard Guenther  <rguenther@suse.de>
28965
28966         PR tree-optimization/47179
28967         * target.def (ref_may_alias_errno): New target hook.
28968         * targhooks.h (default_ref_may_alias_errno): Declare.
28969         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
28970         (default_ref_may_alias_errno): New function.
28971         * target.h (struct ao_ref_s): Declare.
28972         * tree-ssa-alias.c: Include target.h.
28973         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
28974         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
28975         (targhooks.o): Likewise.
28976         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
28977         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
28978
28979 2011-01-14  Richard Guenther  <rguenther@suse.de>
28980
28981         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
28982
28983 2011-01-14  Richard Guenther  <rguenther@suse.de>
28984
28985         PR tree-optimization/47280
28986         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
28987         return CFG changes.
28988         (tree_ssa_forward_propagate_single_use_vars): Deal with
28989         CFG changes from associate_plusminus.
28990
28991 2011-01-14  Richard Guenther  <rguenther@suse.de>
28992
28993         PR middle-end/47281
28994         Revert
28995         2011-01-11  Richard Guenther  <rguenther@suse.de>
28996
28997         PR tree-optimization/46076
28998         * tree-ssa.c (useless_type_conversion_p): Conversions from
28999         unprototyped to empty argument list function types are useless.
29000
29001 2011-01-14  Richard Guenther  <rguenther@suse.de>
29002
29003         PR tree-optimization/47286
29004         * tree-ssa-structalias.c (new_var_info): Register variables are global.
29005
29006 2011-01-14  Martin Jambor  <mjambor@suse.cz>
29007
29008         PR middle-end/46823
29009         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
29010
29011 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
29012
29013         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
29014         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
29015         * config/xtensa/xtensa.c (xtensa_libcall_value,
29016         xtensa_function_value_regno_p): New functions.
29017         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
29018
29019 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
29020
29021         PR c++/47213
29022         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
29023         PE specific hook.
29024         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
29025         New function prototype.
29026         * config/i386/winnt.c (i386_pe_assemble_visibility):
29027         Warn only if attribute was specified by user.
29028
29029 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
29030
29031         PR target/47251
29032         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
29033         floating point.
29034         (floatunsdidf2_fcfidu): Ditto.
29035
29036 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29037
29038         * config/s390/s390.c (print_operand_address): Replace 'error' with
29039         'output_operand_lossage'.
29040         (print_operand): Likewise.
29041
29042 2011-01-13  Jeff Law  <law@redhat.com>
29043
29044         PR rtl-optimization/39077
29045         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
29046         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
29047         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
29048         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
29049         * gcse.c (prune_insertions_deletions): New function.
29050         (compute_pre_data): Use it.
29051
29052 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
29053
29054         PR debug/PR46973
29055         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
29056         static function.
29057         (prune_unused_types_mark): Use it.
29058
29059 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
29060
29061         PR rtl-optimization/45352
29062         * sel-sched.c: Update copyright years.
29063         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
29064         in the advancing loop when we have issued issue_rate insns.
29065
29066 2011-01-12  Richard Henderson  <rth@redhat.com>
29067
29068         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
29069         (TARGET_MD_ASM_CLOBBERS): New.
29070
29071         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
29072         (TARGET_DELEGITIMIZE_ADDRESS): New.
29073
29074         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
29075         (clzsi2, *bsch): New patterns.
29076
29077         * config/mn10300/mn10300.md (INT): New mode iterator.
29078         (*mov<INT>_clr): New pattern, and peep2 to generate it.
29079
29080         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
29081         flag_split_wide_types.
29082
29083         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
29084         (mn10300_trampoline_init): Rewrite without a template, an immediate
29085         load and a direct branch.
29086         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
29087
29088 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
29089
29090         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
29091         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
29092         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
29093         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
29094
29095 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
29096
29097         PR debug/47209
29098         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
29099         of type.
29100
29101 2011-01-12  Jan Hubicka  <jh@suse.cz>
29102
29103         PR driver/47244
29104         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
29105         (PLUGIN_COND_CLOSE): New macro.
29106         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
29107
29108 2011-01-12  Richard Guenther  <rguenther@suse.de>
29109
29110         PR lto/47259
29111         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
29112         register variables in a MEM_REF.
29113
29114 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
29115
29116         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
29117         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
29118         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
29119         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
29120         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
29121         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
29122         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
29123         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
29124         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
29125         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
29126         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
29127         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
29128         * config/gnu-user.h: New.  Copied from linux.h.
29129         (LINUX_TARGET_STARTFILE_SPEC): Rename to
29130         GNU_USER_TARGET_STARTFILE_SPEC.
29131         (LINUX_TARGET_ENDFILE_SPEC): Rename to
29132         GNU_USER_TARGET_ENDFILE_SPEC.
29133         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
29134         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
29135         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
29136         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
29137         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
29138         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
29139         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
29140         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
29141         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
29142         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
29143         * config/arm/linux-eabi.h (CC1_SPEC): Use
29144         GNU_USER_TARGET_CC1_SPEC.
29145         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
29146         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
29147         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
29148         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
29149         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
29150         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
29151         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
29152         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
29153
29154 2011-01-12  Richard Guenther  <rguenther@suse.de>
29155
29156         PR other/46946
29157         * doc/invoke.texi (ffast-math): Document it is turned on
29158         with -Ofast.
29159
29160 2011-01-12  Jan Hubicka  <jh@suse.cz>
29161
29162         PR tree-optimization/47233
29163         * opts.c (common_handle_option): Disable ipa-reference with profile
29164         feedback.
29165
29166 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
29167
29168         * c-parser.c (c_parser_objc_at_property_declaration): Improved
29169         error message.
29170
29171 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
29172
29173         * c-parser.c (c_lex_one_token): Updated and reindented some
29174         comments.  No changes in code.
29175
29176 2011-01-11  Ian Lance Taylor  <iant@google.com>
29177
29178         * godump.c (go_output_var): Don't output the variable if there is
29179         already a type with the same name.
29180
29181 2011-01-11  Ian Lance Taylor  <iant@google.com>
29182
29183         * godump.c (go_format_type): Don't generate float80.
29184
29185 2011-01-11  Richard Henderson  <rth@redhat.com>
29186
29187         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
29188         declaration.  Rewrite for both speed and size.
29189         (mn10300_address_cost_1): Remove.
29190         (mn10300_register_move_cost): New.
29191         (mn10300_memory_move_cost): New.
29192         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
29193         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
29194         extensions, shifts, BSWAP, CLZ.
29195         (mn10300_wide_const_load_uses_clr): Remove.
29196         (TARGET_REGISTER_MOVE_COST): New.
29197         (TARGET_MEMORY_MOVE_COST): New.
29198         * config/mn10300/mn10300-protos.h: Update.
29199         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
29200
29201         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
29202         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
29203         * config/mn10300/mn10300-protos.h: Update.
29204         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
29205         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
29206         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
29207         (*test_int_bitfield, *test_byte_bitfield): Remove.
29208         (*bit_test, *subreg_bit_test): Remove.
29209         * config/mn10300/predicates.md (const_8bit_operand): Remove.
29210
29211         * config/mn10300/constraints.md ("c"): Rename from "A".
29212         ("A", "D"): New constraint letters.
29213         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
29214         (fmssf4, fnmasf4, fnmssf4): Likewise.
29215
29216         * config/mn10300/mn10300.md (isa): New attribute.
29217         (enabled): New attribute.
29218
29219         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
29220         (abssf2, negsf2): Define only for hardware fp.
29221         (sqrtsf2): Reformat.
29222         (addsf3, subsf3, mulsf3): Merge expander and insn.
29223
29224         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
29225         (DEBUGGER_AUTO_OFFSET): Remove.
29226         (DEBUGGER_ARG_OFFSET): Remove.
29227
29228         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
29229         Emit register stores with the same offsets as the hardware.
29230         (mn10300_store_multiple_operation): Don't check that the register
29231         save offsets are monotonic.
29232         * config/mn10300/mn10300-protos.h: Update.
29233
29234         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
29235
29236         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
29237         in terms of the value on the stack, not the MDR register.
29238
29239 2011-01-11  Jan Hubicka  <jh@suse.cz>
29240
29241         PR lto/45721
29242         PR lto/45375
29243         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
29244         (symbol_alias_set_destroy, symbol_alias_set_contains,
29245         propagate_aliases_backward): Declare.
29246         * lto-streamer-out.c (struct sets): New sturcture.
29247         (trivally_defined_alias): New function.
29248         (output_alias_pair_p): Rewrite.
29249         (output_unreferenced_globals): Fix output of alias pairs.
29250         (produce_symtab): Likewise.
29251         * ipa.c (function_and_variable_visibility): Set weak alias destination
29252         as needed in lto.
29253         * varasm.c (symbol_alias_set_t): Remove.
29254         (symbol_alias_set_destroy): Export.
29255         (propagate_aliases_forward, propagate_aliases_backward): New functions
29256         based on ...
29257         (compute_visible_aliases): ... this one; remove.
29258         (trivially_visible_alias): New
29259         (trivially_defined_alias): New.
29260         (remove_unreachable_alias_pairs): Rewrite.
29261         (finish_aliases_1): Reorganize code checking if alias is defined.
29262         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
29263         in LTO mode.
29264
29265 2011-01-11  Richard Guenther  <rguenther@suse.de>
29266
29267         PR tree-optimization/46076
29268         * tree-ssa.c (useless_type_conversion_p): Conversions from
29269         unprototyped to empty argument list function types are useless.
29270
29271 2011-01-11  Richard Guenther  <rguenther@suse.de>
29272
29273         PR middle-end/45235
29274         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
29275         volatile MEMs as MEM_READONLY_P.
29276
29277 2011-01-11  Richard Guenther  <rguenther@suse.de>
29278
29279         PR tree-optimization/47239
29280         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
29281
29282 2011-01-11  Jeff Law  <law@redhat.com>
29283
29284         PR tree-optimization/47086
29285         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
29286         IVs from statements that might throw.
29287
29288 2011-01-10  Jan Hubicka  <jh@suse.cz>
29289
29290         PR lto/45375
29291         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
29292
29293 2011-01-10  Jan Hubicka  <jh@suse.cz>
29294
29295         PR lto/45375
29296         * profile.c (read_profile_edge_counts): Ignore profile inconistency
29297         when correcting profile.
29298
29299 2011-01-10  Jan Hubicka  <jh@suse.cz>
29300
29301         PR lto/46083
29302         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
29303         DECL_FINI_PRIORITY.
29304         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
29305         Restore DECL_FINI_PRIORITY.
29306
29307 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29308
29309         * doc/gimple.texi: Fix quoting of multi-word return values in
29310         @deftypefn statements.  Ensure presence of return value.  Wrap
29311         overlong @deftypefn lines.
29312         (is_gimple_operand, is_gimple_min_invariant_address): Remove
29313         descriptions of removed functions.
29314         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
29315         of multi-word return value in @deftypefn statement.
29316
29317 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29318
29319         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
29320         (Conditional Expressions, Logical Operators)
29321         (Statement and operand traversals): Do not indent smallexample
29322         code.  Fix duplicate function argument in example.
29323
29324 2011-01-10  Jeff Law  <law@redhat.com>
29325
29326         PR tree-optimization/47141
29327         * ipa-split.c (split_function): Handle case where we are
29328         returning a value and the return block has a virtual operand phi.
29329
29330 2011-01-10  Jan Hubicka  <jh@suse.cz>
29331
29332         PR tree-optimization/47234
29333         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
29334         (pass_feedback_split_functions): Declare.
29335         * passes.c (init_optimization_passes): Add ipa-split as subpass of
29336         tree-profile.
29337         * ipa-split.c (gate_split_functions): Update comments; disable
29338         split-functions for profile_arc_flag and branch_probabilities.
29339         (gate_feedback_split_functions): New function.
29340         (execute_feedback_split_functions): New function.
29341         (pass_feedback_split_functions): New global var.
29342
29343 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
29344
29345         PR lto/46760
29346         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
29347         calling gimple_call_set_cannot_inline.
29348
29349 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
29350
29351         * config/darwin-sections.def: Remove unused section.
29352
29353 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
29354
29355         PR c++/47218
29356         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
29357
29358 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
29359
29360         PR objc/47232
29361         * c-parser.c (c_parser_declaration_or_fndef): Improved
29362         error message.
29363
29364 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
29365
29366         * config/i386/winnt.c (i386_pe_start_function): Make sure
29367         to switch back to function's section.
29368
29369 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
29370
29371         PR gcc/46902
29372         PR testsuite/46912
29373         * plugin.c: Move include of dlfcn.h from here...
29374         * system.h: ... to here.
29375
29376 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29377
29378         * doc/cpp.texi (C++ Named Operators): Fix markup for header
29379         file name.
29380         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
29381         two extra empty pages in PDF output.
29382
29383 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
29384
29385         PR objc/47078
29386         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
29387         for error recovery purposes behave as if it was not specified so
29388         that the default type is usd.
29389
29390 2011-01-07  Jan Hubicka  <jh@suse.cz>
29391
29392         PR tree-optmization/46469
29393         * ipa.c (function_and_variable_visibility): Clear needed flags on
29394         nodes with external decls; handle weakrefs merging correctly.
29395
29396 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
29397
29398         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
29399         not false.
29400
29401 2011-01-07  Jan Hubicka  <jh@suse.cz>
29402
29403         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
29404         and no longer claim that gold is required for linker plugin.
29405         * configure: Regenerate.
29406         * gcc.c (PLUGIN_COND): New macro.
29407         (LINK_COMMAND_SPEC): Use it.
29408         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
29409         * config.in (HAVE_LTO_PLUGIN): New.
29410         * configure.ac (--with-lto-plugin): New parameter; autodetect
29411         HAVE_LTO_PLUGIN.
29412
29413 2011-01-07  Jan Hubicka  <jh@suse.cz>
29414
29415         PR tree-optimization/46367
29416         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
29417         when we can update original.
29418         (cgraph_mark_inline_edge): Sanity check.
29419         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
29420
29421 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29422
29423         * config/spu/spu.h (ASM_COMMENT_START): Define.
29424
29425 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
29426
29427         PR driver/42445
29428         * gcc.c (%>S): New.
29429         (SWITCH_KEEP_FOR_GCC): Likewise.
29430         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
29431         (do_spec_1): Handle "%>".
29432
29433         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
29434
29435 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
29436
29437         PR target/47201
29438         * config/i386/i386.c (ix86_delegitimize_address): If
29439         simplify_gen_subreg fails, return orig_x.
29440
29441         PR bootstrap/47187
29442         * value-prof.c (gimple_stringop_fixed_value): Handle
29443         lhs of the call properly.
29444
29445 2011-01-07  Jan Hubicka  <jh@suse.cz>
29446
29447         PR lto/45375
29448         * lto-opt.c (lto_reissue_options): Set flag_shlib.
29449
29450 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
29451
29452         * target.def (function_switched_text_sections): New hook.
29453         * doc/tm.texi: Regenerated.
29454         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
29455         * final.c (default_function_switched_text_sections): New.
29456         (final_scan_insn): Call function_switched_text_sections when a
29457         mid-function section change occurs.
29458         * output.h (default_function_switched_text_sections): Declare.
29459         * config/darwin-protos.h (darwin_function_switched_text_sections):
29460         Likewise.
29461         * config/darwin.c (darwin_function_switched_text_sections): New.
29462         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
29463
29464 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
29465
29466         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
29467         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
29468         the secondary code fragment when outputting for DWARF == 2.
29469
29470 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
29471
29472         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
29473         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
29474         Remove.
29475         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
29476         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
29477
29478 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
29479
29480         PR debug/46704
29481         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
29482         when it is not empty.
29483
29484 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
29485
29486         Bobcat Enablement
29487         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
29488         (case ${target}): Add btver1.
29489         * config/i386/driver-i386.c (host_detect_local_cpu): Let
29490         -march=native recognize btver1 processors.
29491         * config/i386/i386-c.c (ix86_target_macros_internal): Add
29492         btver1 def_and_undef
29493         * config/i386/i386.c (struct processor_costs btver1_cost): New
29494         btver1 cost table.
29495         (m_BTVER1): New definition.
29496         (m_AMD_MULTIPLE): Includes m_BTVER1.
29497         (initial_ix86_tune_features): Add btver1 tune.
29498         (processor_target_table): Add btver1 entry.
29499         (static const char *const cpu_names): Add btver1 entry.
29500         (software_prefetching_beneficial_p): Add btver1.
29501         (ix86_option_override_internal): Add btver1 instruction sets.
29502         (ix86_issue_rate): Add btver1.
29503         (ix86_adjust_cost): Add btver1.
29504         * config/i386/i386.h (TARGET_BTVER1): New definition.
29505         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
29506         (enum processor_type): Add PROCESSOR_BTVER1.
29507         * config/i386/i386.md (define_attr "cpu"): Add btver1.
29508
29509 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29510
29511         PR target/43309
29512         * config/i386/i386.c (legitimize_tls_address)
29513         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
29514         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
29515         (tls_initial_exec_64_sun): New pattern.
29516
29517 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
29518
29519         * doc/invoke.texi (Overall Options): Improve wording and markup
29520         of the description of -wrapper.
29521
29522 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
29523
29524         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
29525         rdynamic, threads): New Driver options.
29526
29527 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29528
29529         PR target/38118
29530         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
29531         if coming from .tdata.
29532         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
29533
29534 2011-01-06  Jan Hubicka  <jh@suse.cz>
29535
29536         PR lto/47188
29537         * collect2.c (main): Do not enable LTOmode when plugin is active.
29538
29539 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29540
29541         PR other/45915
29542         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
29543         --version output if supported.
29544         * configure: Regenerate.
29545
29546 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
29547
29548         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
29549         Driver options.
29550
29551 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
29552
29553         PR c/47150
29554         * c-convert.c (convert): When converting a complex expression
29555         other than COMPLEX_EXPR to a different complex type, ensure
29556         c_save_expr is called instead of save_expr, unless in_late_binary_op.
29557         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
29558         when converting COMPLEX_TYPE.
29559
29560 2011-01-06  Ira Rosen  <irar@il.ibm.com>
29561
29562         PR tree-optimization/47139
29563         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
29564         only the last reduction value is used outside the loop.  Update
29565         documentation.
29566
29567 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
29568
29569         * config/rtems.opt: New.
29570         * config.gcc (*-*-rtems*): Use rtems.opt.
29571
29572 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
29573
29574         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
29575         processors do not support 3DNow instructions.
29576
29577 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29578
29579         * config/spu/spu.c (spu_option_override): Set parameter
29580         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
29581
29582 2011-01-05  Jan Hubicka  <jh@suse.cz>
29583
29584         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
29585         at the command line.
29586
29587 2011-01-05  Martin Jambor  <mjambor@suse.cz>
29588
29589         PR lto/47162
29590         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
29591         deltas on streamed outgoing edges.
29592         (output_node_opt_summary): Output info for outgoing edges only when
29593         the node is in new parameter set.
29594         (output_cgraph_opt_summary): New parameter set, passed to the two
29595         aforementioned functions.  Update its forward declaration and its
29596         callee too.
29597
29598 2011-01-05  Tom Tromey  <tromey@redhat.com>
29599
29600         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
29601         operator to c_finish_omp_atomic.
29602         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
29603         (build_unary_op): Update.
29604         (build_modify_expr): Update.
29605         (build_asm_expr): Update.
29606
29607 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29608
29609         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
29610         newly inserted insns.
29611         (pad_bb): Likewise.
29612         (spu_emit_branch_hint): Likewise.
29613         (insert_hbrp_for_ilb_runout): Likewise.
29614         (spu_machine_dependent_reorg): Call df_finish_pass after
29615         schedule_insns returns.
29616
29617 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29618
29619         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
29620
29621 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
29622
29623         PR tree-optimization/47005
29624         * tree-sra.c (struct access): Add 'non_addressable' bit.
29625         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
29626         (decide_one_param_reduction): Return 0 if the parameter is passed by
29627         reference and one of the accesses in the group is non_addressable.
29628
29629 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
29630
29631         PR tree-optimization/47056
29632         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
29633         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
29634         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
29635
29636 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
29637
29638         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
29639         initializer.  Skip view conversions from aggregate types.
29640
29641 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
29642
29643         PR bootstrap/47055
29644         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
29645
29646 2011-01-04  Philipp Thomas  <pth@suse.de>
29647
29648         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
29649         obvious typo.
29650
29651 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29652
29653         * function.c (thread_prologue_and_epilogue_insns): Do not crash
29654         on empty epilogue sequences.
29655
29656 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
29657
29658         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
29659         non-static): New Driver options.
29660
29661 2011-01-04  Jie Zhang  <jie@codesourcery.com>
29662
29663         PR driver/47137
29664         * gcc.c (default_compilers[]): Set combinable field to 0
29665         for all assembly languages.
29666
29667 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
29668
29669         * config/mips/loongson3a.md: New file.
29670         * config/mips/mips.md: Include loongson3a.md.
29671         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
29672         TUNE_LOONGSON_3A.
29673
29674 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
29675
29676         PR middle-end/47017
29677         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
29678         instead of convert_memory_address_addr_space on the base expression.
29679
29680 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29681
29682         * config/spu/spu.c (spu_option_override): Update error text
29683         for bad -march= / -mtune= values.
29684
29685 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29686
29687         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
29688         if branch-hint optimization will be performed.
29689
29690 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
29691
29692         PR tree-optimization/47148
29693         * ipa-split.c (split_function): Convert arguments to
29694         DECL_ARG_TYPE if possible.
29695
29696         PR tree-optimization/47155
29697         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
29698         when computing uns.
29699
29700         PR rtl-optimization/47157
29701         * combine.c (try_combine): If undobuf.other_insn becomes
29702         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
29703         and set *new_direct_jump_p too.
29704
29705 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
29706
29707         PR tree-optimization/47021
29708         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
29709
29710 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
29711
29712         * gcc.c (process_command): Update copyright notice dates.
29713         * gcov.c (print_version): Likewise.
29714         * gcov-dump.c (print_version): Likewise.
29715         * mips-tfile.c (main): Likewise.
29716         * mips-tdump.c (main): Likewise.
29717
29718 2011-01-03  Martin Jambor  <mjambor@suse.cz>
29719
29720         PR tree-optimization/46801
29721         * tree-sra.c (type_internals_preclude_sra_p): Check whether
29722         aggregate fields start at byte boundary instead of the bit-field flag.
29723
29724 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
29725
29726         PR driver/47137
29727         * gcc.c (main): Revert revision 168407.
29728
29729 2011-01-03  Martin Jambor  <mjambor@suse.cz>
29730
29731         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
29732
29733 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29734
29735         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
29736         vector optab to expand vector/scalar shift, update gimple to vector.
29737
29738 2011-01-03  Martin Jambor  <mjambor@suse.cz>
29739
29740         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
29741         a thunk.
29742
29743 2011-01-03  Martin Jambor  <mjambor@suse.cz>
29744
29745         PR tree-optimization/46984
29746         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
29747         HOST_WIDE_INT.
29748         (cgraph_create_indirect_edge): Fixed line length.
29749         (cgraph_indirect_call_info): Declare.
29750         (cgraph_make_edge_direct) Update declaration.
29751         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
29752         (cgraph_create_indirect_edge): Use it.
29753         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
29754         callees.
29755         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
29756         the new thunk_delta representation.
29757         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
29758         HOST_WIDE_INT.
29759         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
29760         (ipa_read_indirect_edge_info): Likewise.
29761         * lto-cgraph.c (output_edge_opt_summary): New function.
29762         (output_node_opt_summary): Call it on all outgoing edges.
29763         (input_edge_opt_summary): New function.
29764         (input_node_opt_summary): Call it on all outgoing edges.
29765
29766 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
29767
29768         PR driver/47137
29769         * gcc.c (main): Don't check have_o when settting combine_inputs.
29770
29771 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
29772
29773         * regrename.c: Add general comment describing the pass.
29774         (struct du_head): Remove 'length' field.
29775         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
29776         (regrename_optimize): Do not sort chains.  Rework comments, add others.
29777         Force renaming to the preferred class (if any) in the first pass and do
29778         not consider registers that belong to it in the second pass.
29779         (create_new_chain): Do not set 'length' field.
29780         (scan_rtx_reg): Likewise.
29781
29782 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
29783
29784         PR tree-optimization/47140
29785         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
29786         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
29787         to bit_value_binop.
29788
29789         PR rtl-optimization/47028
29790         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
29791         parm_birth_insn instead of at the beginning of first bb.
29792
29793 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
29794
29795         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
29796         Remove the word "see" before "@pxref".
29797         * doc/rtl.texi: Remove the word "see" before "@pxref".
29798
29799 2011-01-01  Jan Hubicka  <jh@suse.cz>
29800
29801         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
29802         memory.
29803
29804 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
29805
29806         PR target/38662
29807         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
29808
29809 \f
29810 Copyright (C) 2011 Free Software Foundation, Inc.
29811
29812 Copying and distribution of this file, with or without modification,
29813 are permitted in any medium without royalty provided the copyright
29814 notice and this notice are preserved.