OSDN Git Service

Add missing ','.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
2
3         * doc/extend.texi: Add missing ','.
4
5 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
6
7         * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
8         Enable -fmodulo-sched at -O2 and above.
9         * config/c6x/c6x.md (doloop_end): New expander.
10         (mvilc, sploop, spkernel, loop_end): New patterns.
11         (loop_end with memory destination splitter): New.
12         * config/c6x/c6x.c: Include "hw-doloop.h".
13         (enum unitreqs): New.
14         (unit_req_table): New typedef.
15         (unit_reqs): New static variable.
16         (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
17         res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
18         hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
19         hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
20         (struct c6x_sched_context): New member last_scheduled_iter0.
21         (init_sched_state): Initialize it.
22         (c6x_variable_issue): Update it.
23         (sploop_max_uid_iter0): New static variable.
24         (c6x_sched_reorder_1): Be careful about issuing sploop.
25         (c6x_reorg): Call c6x_hwlooops before the final schedule.
26
27 2011-09-30  Georg-Johann Lay  <avr@gjlay.de>
28
29         PR target/50566
30         * config/avr/avr-protos.h (avr_log_t): New field address_cost.
31         * config/avr/avr.c (avr_address_cost): Use it.
32         * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
33         (avr_log_vadump): Unknown %-codes finish printing.
34
35 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
36
37         PR inline-asm/50571
38         * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
39         input constraints allow mem and not reg, pass true instead of
40         false as second argument to maybe_fold_reference.
41
42         PR tree-optimization/46309
43         * fold-const.c (make_range, merge_ranges): Remove prototypes.
44         (make_range_step): New function.
45         (make_range): Use it.
46         * tree.h (make_range_step): New prototypes.
47         * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
48         * tree-ssa-reassoc.c: Include diagnostic-core.h.
49         (struct range_entry): New type.
50         (init_range_entry, range_entry_cmp, update_range_test,
51         optimize_range_tests): New functions.
52         (reassociate_bb): Call optimize_range_tests.
53
54 2011-09-30  Jakub Jelinek  <jakub@redhat.com>
55             Richard Guenther  <rguenther@suse.de>
56
57         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
58         BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
59         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise.  Fix
60         handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
61         (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
62         BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
63
64 2011-09-30  Jan Beulich  <jbeulich@suse.com>
65
66         * lto-cgraph.c (output_cgraph): Remove processing of
67         'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
68         (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
69         lto_input_toplevel_asms() instead.
70         * lto-section-in.c (lto_section_name): Add "asm" entry.
71         * lto-streamer-in.c (lto_input_toplevel_asms): New.
72         * lto-streamer-out.c (lto_output_toplevel_asms): New.
73         * lto-streamer.h (LTO_minor_version): Bump.
74         (enum lto_section_type): Add LTO_section_asm.
75         (struct lto_asm_header): New.
76         (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
77         * tree-streamer.h (streamer_write_string_cst): Declare.
78         * tree-streamer-out.c (write_string_cst): Rename to
79         streamer_write_string_cst and make global. Handle incoming string
80         being NULL.
81         (streamer_write_tree_header): Adjust call to renamed function.
82
83 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
84
85         * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
86         modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
87         modulo_last_stage): New static variables.
88         (set_modulo_params, discard_delay_pairs_above): New functions.
89         (struct delay_pair): New member stages.
90         (htab_i2_traverse, htab_i1_traverse): New static functions.
91         (record_delay_slot_pair): New arg stages.  All callers changed.
92         Record it.
93         (pair_delay): Take stages into account.
94         (add_delay_dependencies): Don't do so for stage pairs.
95         (struct sched_block_state): New member modulo_epilogue.
96         (save_backtrack_point): Don't set SHADOW_P for stage pairs.
97         (unschedule_insns_until): Decrease modulo_insns_scheduled.
98         Set HARD_DEP without using or.
99         (resolve_dependencies): New static function.
100         (prune_ready_list): New arg modulo_epilogue_p.  All callers changed.
101         If it is true, allow only insns with INSN_EXACT_TICK set.
102         (schedule_block): Return bool, always true for normal scheduling,
103         true or false depending on modulo scheduling success otherwise.
104         Add bookkeeping for modulo scheduling, and call resolve_dependencies
105         on everything left over after a modulo schedule.
106         (haifa_sched_init): Remove check_cfg call.  Clear modulo_ii.
107         * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
108         declarations.
109         (set_modulo_params, discard_delay_pairs_above): Declare.
110         * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
111         * doc/invoke.texi (--param): Document it.
112
113         * sched-ebb.c (schedule_ebb): No longer static.  Remove declaration.
114         New arg modulo_scheduling.  All callers changed.  Move note handling
115         code here from schedule_ebbs.
116         (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
117         out of schedule_ebbs.
118         (schedule_ebbs): Call them.  Remove note handling code moved to
119         schedule_ebb.
120         * sched-int.h (schedule_ebb, schedule_ebbs_init,
121         schedule_ebbs_finish): Declare.
122
123 2011-09-30  Richard Guenther  <rguenther@suse.de>
124
125         PR middle-end/50574
126         * tree-cfg.c (verify_gimple_comparison): Compare component
127         mode sizes for vector comparisons.
128
129 2011-09-30  Revital Eres  <revital.eres@linaro.org>
130
131         * ddg.c (autoinc_var_is_used_p): New function.
132         (create_ddg_dep_from_intra_loop_link,
133         add_cross_iteration_register_deps): Call it.
134         * ddg.h (autoinc_var_is_used_p): Declare.
135         * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
136         (sms_schedule): Handle instructions with REG_INC.
137
138 2011-09-30  Revital Eres  <revital.eres@linaro.org>
139
140         * modulo-sched.c (generate_reg_moves): Skip instructions that
141         do not set a register and verify no regmoves are created for
142         !single_set instructions.
143
144 2011-09-30  Bernd Schmidt  <bernds@codesourcery.com>
145
146         * hw-doloop.c (scan_loop): Compute register usage only for non-debug
147         insns.
148
149 2011-09-30  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
150
151         PR target/50099
152         * config/arm/iterators.md (qhs_zextenddi_cstr): New.
153         (qhs_zextenddi_op): New.
154         * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
155         * config/arm/predicates.md ("arm_extendqisi_mem_op"):
156         Distinguish between ARM and Thumb2 states.
157
158 2011-09-30  David S. Miller  <davem@davemloft.net>
159
160         * config/sparc/sparc.opt (VIS2): New option.
161         * doc/invoke.texi: Document it.
162         * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
163         UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
164         UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
165         (define_attr type): New insn type 'edgen'.
166         (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
167         edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
168         edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
169         patterns.
170         * niagara.md: Handle edgen.
171         * niagara2.md: Likewise.
172         * ultra1_2.md: Likewise.
173         * ultra3.md: Likewise.
174         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
175         to 0x200 when TARGET_VIS2.
176         * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
177         default when targetting capable cpus.  TARGET_VIS2 implies
178         TARGET_VIS, clear and it when TARGET_FPU is disabled.
179         (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
180         (sparc_expand_builtin): Fix predicate indexing when builtin returns
181         void.
182         (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
183         * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
184         __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
185         __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
186         __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
187         * doc/extend.texi: Document new VIS 2.0 builtins.
188
189 2011-09-29  Nick Clifton  <nickc@redhat.com>
190             Bernd Schmidt  <bernds@codesourcery.com>
191
192         * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header
193         file.
194         * config/frv/frvend.c: Likewise.
195         * config/frv/frv.c (frv_function_prologue): Move misplaced
196         CALL_ARG_LOCATION notes back to their proper locations.
197
198 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
199
200         PR target/50566
201         * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
202         * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
203         from avr_rtx_costs.
204         (avr_legitimate_address_p): Use avr_edump to print log information
205         filtered by avr_log.
206         (extra_constraint_Q): Ditto.
207         (avr_legitimize_address): Ditto.
208         (avr_rtx_costs): Ditto.  Rewrite as wrapper for avr_rtx_costs_1.
209         (final_prescan_insn): Use avr_log.rtx_costs as filter.
210
211 2011-09-29  Richard Sandiford  <richard.sandiford@linaro.org>
212
213         * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
214         * config/arm/arm.h (MODES_TIEABLE_P): Use it.
215         * config/arm/arm.c (arm_modes_tieable_p): New function.  Allow
216         NEON vector and structure modes to be tied.
217
218 2011-09-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
219
220         * graphite-scop-detection.c (make_close_phi_nodes_unique):  New
221         forward declaration.
222         (remove_duplicate_close_phi): Detect and repair creation of
223         duplicate close-phis for a containing loop.
224
225 2011-09-27   Andi Kleen <ak@linux.intel.com>
226
227         * gcc.c (get_local_tick). Rename to get_random_number.
228         Read from /dev/urandom.
229         Add getpid call.
230         (compare_debug_dump_opt_spec_function): Drop getpid call.
231
232 2011-09-26   Andi Kleen <ak@linux.intel.com>
233
234         * toplev.c (init_local_tick): Try reading random seed from /dev/urandom
235
236 2011-09-26   Andi Kleen <ak@linux.intel.com>
237
238         * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
239         * lto-streamer.c (lto_get_section_name): Remove crc32_string.
240         Handle numerical random seed.
241         * lto-streamer.h (lto_file_decl_data): Change id to unsigned HOST_WIDE_INT.
242         * toplev.c (random_seed): Add.
243         (init_random_seed): Change for numerical random seed.
244         (get_random_seed): Return as HOST_WIDE_INT.
245         (set_random_seed): Crc32 existing string.
246         * toplev.h (get_random_seed): Change to numercal return.
247         * tree.c (get_file_function_name): Remove CRC. Handle numerical random seed.
248
249 2011-09-29  Georg-Johann Lay  <avr@gjlay.de>
250
251         PR target/50566
252         * config.gcc (extra_objs): Add avr-log.o for $target in:
253         avr-*-rtems*, avr-*-*.
254         * config/avr/t-avr (avr-log.o): New rule to compile...
255         * config/avr/avr-log.c: ...this new file.
256         * config/avr/avr.opt (mlog=): New option.
257         * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
258         (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
259         (avr_log_set_avr_log): New prototype.
260         (avr_log_t): New typedef.
261         (avr_log): New declaration.
262         * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
263
264 2011-09-29  Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
265
266         * expr.c (do_store_flag): Expand vector comparison by
267         building an appropriate VEC_COND_EXPR.
268         * c-typeck.c (build_binary_op): Typecheck vector comparisons.
269         (c_objc_common_truthvalue_conversion): Adjust.
270         * tree-vect-generic.c (do_compare): Helper function.
271         (expand_vector_comparison): Check if hardware supports
272         vector comparison of the given type or expand vector
273         piecewise.
274         (expand_vector_operation): Treat comparison as binary
275         operation of vector type.
276         (expand_vector_operations_1): Adjust.
277
278 2011-09-29  Richard Guenther  <rguenther@suse.de>
279
280         * tree.c (build_opaque_vector_type): Make opaque vectors
281         variant types of the corresponding non-opaque type.  Make
282         sure to share opaque vector types properly.
283
284 2011-09-29  David S. Miller  <davem@davemloft.net>
285
286         * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
287         UNSPEC_ARRAY32): New unspec.
288         (define_attr type): New type 'array'.
289         (array{8,16,32}<P:mode>_vis): New patterns.
290         * config/sparc/ultra1_2.md: Add reservations for 'array'.
291         * config/sparc/ultra3.md: Likewise.
292         * config/sparc/niagara.md: Likewise.
293         * config/sparc/niagara2.md: Likewise.
294         * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
295         array builtins.
296         * config/sparc/visintrin.h (__vis_array8, __vis_array16,
297         __vis_array32): New.
298         * doc/extend.texi: Document new VIS builtins.
299
300         * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
301         (VIS pixel-compare insn): Just use <gcond:name>.
302
303         * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
304         code iterator used, so just use <code>.  There are two mode iterators
305         so explicitly use <GCM:gcm_name>.
306
307 2011-09-29  Iain Sandoe  <iains@gcc.gnu.org>
308
309         * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
310         Darwin >= 9.
311
312 2011-09-28  David S. Miller  <davem@davemloft.net>
313
314         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
315         UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
316         (UNSPEC_FCMP): New unspec.
317         (gcond): New code iterator.
318         (gcond_name): New code attr.
319         (GCM): New mode iterator.
320         (gcm_name): New mode attr.
321         (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
322
323 2011-09-28  Oleg Endo  <oleg.endo@t-online.de>
324
325         PR target/49486
326         * config/sh/sh.md (negdi2): Move expansion into split to
327         allow more combination options.  Add T_REG clobber.
328         (abssi2): New expander.
329         (*negdi2, *abssi2, *negabssi2): New insns.
330         (cneg): Change from insn to insn_and_split.  Rename to
331         negsi_cond.  Add alternative for non-SH4.
332
333 2011-09-28  Richard Sandiford  <richard.sandiford@linaro.org>
334
335         * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
336         (neon_move_hi_quad_<mode>): Likewise.
337         (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
338
339 2011-09-28  Nick Clifton  <nickc@redhat.com>
340
341         * config/rx/predicates.md (rx_minmax_operand): New predicate.
342         Accepts immediates and a restricted subset of MEMs.
343         * config/rx/rx.md (int_modes): New iterator.
344         (smaxsi3, sminsi3): Delete and replace with...
345         (smax<int_mode>3, smin<int_mode>3): New patterns.
346         (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
347
348 2011-09-28  Richard Guenther  <rguenther@suse.de>
349
350         PR middle-end/50460
351         * fold-const.c (try_move_mult_to_index): Handle &a.array the
352         same as &a.array[0].
353
354 2011-09-28  Kai Tietz  <ktietz@redhat.com>
355
356         * configure.ac: Add test for new section attribute
357         specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
358         * config.in: Regenerated.
359         * configure: Regenerated.
360         * config/i386/winnt.c (i386_pe_asm_named_section): Emit
361         new section flag "e" for excluded sections, if supported.
362         Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
363
364 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
365
366         * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
367         throughout file.
368
369 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
370
371         * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
372         throughout file.
373
374 2011-09-27  Sriraman Tallam  <tmsriram@google.com>
375
376         * output.h (SECTION_EXCLUDE): New macro.
377         * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
378
379 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
380
381         * fwprop.c (forward_propagate_and_simplify): After checking
382         reg/subreg combinations, check whether the modes are the same.
383
384 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
385             Richard Sandiford  <rdsandiford@googlemail.com>
386
387         * config/mips/mips.c (mips_add_cfa_restore): New function.
388         (mips16e_save_restore_reg): Use it.
389         (mips_restore_reg): Likewise.  Split double FPRs for
390         REG_CFA_RESTORE notes.
391
392 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
393
394         PR middle-end/50386
395         PR middle-end/50326
396         * tree-sra.c (build_ref_for_model): Use the type of the field as
397         the type of the COMPONENT_REF.
398
399 2011-09-27  Jeff Law  <law@redhat.com>
400
401         * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument.  Scale
402         non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
403         (find_if_case_1): Use the probability of the THEN clause when
404         determining if speculation is profitable.
405         (find_if_case_2): Similarly for the ELSE clause.
406
407 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
408
409         * common.opt: Add -foptimize-strlen option.
410         * Makefile.in (OBJS): Add tree-ssa-strlen.o.
411         (tree-sssa-strlen.o): Add dependencies.
412         * opts.c (default_options_table): Enable -foptimize-strlen
413         by default at -O2 if not -Os.
414         * passes.c (init_optimization_passes): Add pass_strlen
415         after pass_object_sizes.
416         * timevar.def (TV_TREE_STRLEN): New timevar.
417         * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
418         * tree-pass.h (pass_strlen): Declare.
419         * tree-ssa-strlen.c: New file.
420         * c-decl.c (merge_decls): If compatible stpcpy prototype
421         is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
422
423 2011-09-27  Tom de Vries  <tom@codesourcery.com>
424
425         PR middle-end/43864
426         * tree-ssa-tail-merge.c: New file.
427         (struct same_succ_def): Define.
428         (same_succ, const_same_succ): New typedef.
429         (struct bb_cluster_def): Define.
430         (bb_cluster, const_bb_cluster): New typedef.
431         (struct aux_bb_info): Define.
432         (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
433         (gvn_uses_equal): New function.
434         (same_succ_print, same_succ_print_traverse, update_dep_bb)
435         (stmt_update_dep_bb, local_def, same_succ_hash)
436         (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
437         (same_succ_reset): New function.
438         (same_succ_htab, same_succ_edge_flags)
439         (deleted_bbs, deleted_bb_preds): New var.
440         (debug_same_succ): New function.
441         (worklist): New var.
442         (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
443         (init_worklist, delete_worklist, delete_basic_block_same_succ)
444         (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
445         (print_cluster, debug_cluster, update_rep_bb)
446         (add_bb_to_cluster, new_cluster, delete_cluster): New function.
447         (all_clusters): New var.
448         (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
449         (merge_clusters, set_cluster): New function.
450         (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
451         (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
452         (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
453         (find_clusters_1, find_clusters): New function.
454         (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
455         (update_bbs): New var.
456         (apply_clusters): New function.
457         (update_debug_stmt, update_debug_stmts): New function.
458         (tail_merge_optimize): New function.
459         tree-pass.h (tail_merge_optimize): Declare.
460         * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
461         * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
462         (tree-ssa-tail-merge.o): New rule.
463         * opts.c (default_options_table): Set OPT_ftree_tail_merge by
464         default at OPT_LEVELS_2_PLUS.
465         * tree-ssa-sccvn.c (vn_valueize): Move to ...
466         * tree-ssa-sccvn.h (vn_valueize): Here.
467         * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
468         * common.opt (ftree-tail-merge): New switch.
469         * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
470         (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
471         * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
472         (-ftree-tail-merge, max-tail-merge-comparisons)
473         (max-tail-merge-iterations): New item.
474
475 2011-09-27  Jan Hubicka  <jh@suse.cz>
476
477         * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
478
479 2011-09-27  Jan Hubicka  <jh@suse.cz>
480
481         * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
482         parameters passed by reference; handle loads from non-SSA scalars
483         and update comments.
484
485 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
486
487         PR rtl-optimization/50249
488         * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
489         instead of opnum and type.  All callers changed.  Remove useless
490         declaration.
491         Search forward for other reloads of the same type for the same operand
492         using the same register; if any are found, return false.
493         (reload_regs_reach_end_p): Same argument changes; all callers changed.
494
495 2011-09-27  Andi Kleen  <ak@linux.intel.com>
496             Jan Hubicka  <jh@suse.cz>
497
498         * doc/invoke.texi (ffat-lto-objects): Document.
499         * toplev.c (compile_file): Do not output assembly when doing slim lto;
500         Output __gnu_slim_lto when doing slim lto.
501         * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
502         (cgraph_optimize): Return early when doing slim lto.
503         * opts.c (finish_options): Complain about lack of linker plugin
504         when doing slim lto.
505         * common.opt (ffat-lto-objects): New.
506
507 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
508
509         * ipa-inline-analysis.c (predicate_probability): Avoid comparison
510         between signed and unsigned.
511
512 2011-09-27  Ira Rosen  <ira.rosen@linaro.org>
513
514         * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
515         vectorization.
516         (vectorizable_type_promotion): Likewise.
517         (vect_analyze_stmt): Call vectorizable_type_demotion and
518         vectorizable_type_promotion for basic blocks.
519         (supportable_widening_operation): Don't assume loop vectorization.
520         * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
521         basic blocks.  Update vectorization factor for basic block
522         vectorization.
523         (vect_analyze_slp_instance): Allow multiple types for basic block
524         vectorization.  Recheck unrolling factor after construction of SLP
525         instance.
526
527 2011-09-27  Richard Guenther  <rguenther@suse.de>
528
529         * tree-object-size.c (compute_object_sizes): Fix dumping of
530         folded statement.
531
532 2011-09-27  Richard Guenther  <rguenther@suse.de>
533
534         PR tree-optimization/50363
535         * tree-ssa-pre.c (create_expression_by_pieces): Handle
536         pointer conversions in POINTER_PLUS_EXPRs properly.
537
538 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
539
540         * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
541         (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
542         (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
543         (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
544         that produce subreg moves.  Define using VQX iterators.
545
546 2011-09-27  Georg-Johann Lay  <avr@gjlay.de>
547
548         * config/avr/avr.md (ashrqi3): Split alternative "n"
549         into its remaining parts C03, C04, C05, C06, C07 and describe
550         impact in CC by attribute "cc" appropriately.
551         * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
552         by digging RTX.
553
554 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
555
556         * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
557         from 3 x MAX_MACHINE_MODE.
558         (CONSTM1_RTX): Define.
559         * emit-rtl.c (const_tiny_rtx): Change into array of
560         4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
561         (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
562         CONSTM1_RTX.
563         (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
564         MODE_VECTOR_INT modes.
565         * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
566         Optimize if one operand is CONSTM1_RTX.
567         * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
568         into mask | x.
569
570 2011-09-26  David S. Miller  <davem@davemloft.net>
571
572         * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
573         (fcmp{le,ne,gt,eq}{16,32}): Likewise.
574         * config/sparc/visintrin.h: Update edge and pixel-compare
575         intrinsics to return 'long' instead of 'int'.
576         * doc/extend.texi: Update documentation to match.
577         * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
578         flat, allow any instruction.  Otherwise, when V9 allow parallels
579         which consist only of sets to registers outside of %o0 to %o5.
580         (sparc_vis_init_builtins): Update VIS builtin types for edge
581         and pixel-compare.
582
583         * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
584         is enabled, mark %gsr as global.
585         * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
586         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
587
588         * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
589         which will now define __VIS and __VIS__ when -mvis is enabled.
590         * config/sparc/t-sparc: Likewise.
591         * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
592         and add t-sparc to tmake_file for all sparc targets.
593         * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
594         * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
595
596         * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
597         builtins for VIS vector addition and subtraction.
598         * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
599         __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
600         __vis_fpsub32, __vis_fpsub32s): New.
601         * doc/extend.texi: Document new VIS intrinsics.
602
603 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
604
605         * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
606         * config/avr/avr.c (avr_out_compare): Print shorter sequence for
607         EQ/NE comparisons against +/-1 in the case of unused-after,
608         non-ld-regs target.
609
610 2011-09-26  Jakub Jelinek  <jakub@redhat.com>
611
612         * gimple-fold.c (gimplify_and_update_call_from_tree): Set
613         gctx.into_ssa after push_gimplify_context.
614
615         * gimple.c (gimple_build_call_valist): New function.
616         * gimple.h (gimple_build_call_valist): New prototype.
617         * tree-ssa-propagate.c (finish_update_gimple_call): New function.
618         (update_gimple_call): Likewise.
619         (update_call_from_tree): Use finish_update_gimple_call.
620         * tree-ssa-propagate.h (update_gimple_call): New prototype.
621
622 2011-09-26  Richard Guenther  <rguenther@suse.de>
623
624         PR tree-optimization/50472
625         * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
626         volatile references.
627
628 2011-09-26  Bingfeng Mei <bmei@broadcom.com>
629
630         * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
631         * target.def: (addr_space_subset_p): Likewise.
632
633 2011-09-26  Tom de Vries  <tom@codesourcery.com>
634
635         * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
636         * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
637         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
638         of new var.
639
640 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
641
642         PR target/50465
643         * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
644         * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
645         output_reload_insisf.
646         (adjust_len): Set default to "no".
647         Remove alternative "yes".  Add alternatives: "mov8", "mov16",
648         "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
649         "lshrhi", "ashlsi, "ashrsi", "lshrsi".
650         (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
651         *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
652         *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
653         *lshrsi3_const): Set attribute "adjust_len".
654         * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
655         (output_movsisf): Don't pass insn to output_reload_insisf.
656         (adjust_insn_length): Handle new alternatives to adjust_len.
657         Remove handling of ADJUST_LEN_YES.  Clean-up code.
658
659 2011-09-26  Eric Botcazou  <ebotcazou@adacore.com>
660
661         * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
662         may_trap_p to detect loads that may trap of fault.
663
664 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
665
666         * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
667         * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
668         (*reload_inhi): Use it.  Adapt call to output_reload_inhi to new
669         prototype.
670         (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
671         * config/avr/avr.c: Rename output_reload_insisf_1 to
672         output_reload_in_const.
673         (avr_popcount_each_byte): Handle SFmode, too.
674         (output_reload_in_const): Change so it can handle HI loads, too.
675         Use avr_popcount_each_byte to work out if scratch register must be
676         created on the fly.
677         (output_reload_inhi): Rewrite using output_reload_in_const and...
678         (output_movhi): ...use it to print constants' loads.
679         (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
680
681 2011-09-25  David S. Miller  <davem@davemloft.net>
682
683         * config/sparc/constraints.md (C, P, Z): New constraints for
684         const_doube, const_int, and const_vector "all ones" values.
685         Make unused constraint letters comment match reality.
686         * config/sparc/predicates.md (const_all_ones_operand,
687         register_or_zero_or_all_ones_operand): New predicates.
688         * config/sparc/sparc.c (sparc_expand_move): Allow all ones
689         as well as zero constants when VIS.
690         (sparc_legitimate_constant_p): Likewise.
691         * config/sparc/sparc.md (movsi_insn): Add fones alternative.
692         (movsf_insn): Likewise
693         (movdi_insn_sp64): Add fone alternative.
694         (movdf_insn_sp32_v9): Likewise.
695         (movdf_insn_sp64): Likewise.
696
697         * configure.ac: Add feature check to make sure the assembler
698         supports the FMAF, HPC, and VIS 3.0 instructions found on
699         Niagara-3 and later cpus.
700         * configure: Rebuild.
701         * config.in: Likewise.
702         * config/sparc/sparc.opt: New option '-mfmaf'.
703         * config/sparc/sparc.md: Add float fused multiply-add patterns.
704         * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
705         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
706         * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
707         ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
708         * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
709         by default for Niagara-3 and later.  Turn it off if TARGET_FPU is
710         disabled.
711         (sparc_rtx_costs): Handle 'FMA'.
712         * doc/invoke.texi: Document -mfmaf.
713
714 2011-09-25  Jakub Jelinek  <jakub@redhat.com>
715
716         * tree-ssa-structalias.c (intra_create_variable_infos): Treat
717         TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
718         DECL_BY_REFERENCE parameters.
719
720 2011-09-25  Eric Botcazou  <ebotcazou@adacore.com>
721
722         * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
723         if there is no outgoing edge.
724
725         * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
726         integral types.
727
728 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
729
730         * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
731         of vect_analyze_bb here.
732         (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
733
734 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
735
736         * tree-data-ref.c (dr_analyze_innermost): Add new argument.
737         Allow not simple iv if analyzing basic block.
738         (create_data_ref): Update call to dr_analyze_innermost.
739         (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
740         * tree-loop-distribution.c (generate_memset_zero): Likewise.
741         * tree-predcom.c (find_looparound_phi): Likewise.
742         * tree-data-ref.h (dr_analyze_innermost): Add new argument.
743
744 2011-09-24  David S. Miller  <davem@davemloft.net>
745
746         * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
747         (SPARC_GSR_REG): Define.
748         (FIXED_REGISTERS): Mark GSR as fixed.
749         (CALL_USED_REGISTERS): Mark GSR as call used.
750         (HARD_REGNO_NREGS): GSR is always 1 register.
751         (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
752         (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
753         (REGISTER_NAMES): Add "%gsr".
754         * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
755         (UNSPEC_WRGSR): New unspec.
756         (GSR_REG): New constant.
757         (type): Add new insn type 'gsr'.
758         (fpack16_vis, fpackfix_vis, fpack32_vis,
759         faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
760         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
761         rdgsr_v8plus): New expanders and insns.
762         (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
763         using patterns which show that this is a plus in addition to a
764         modification of GSR_REG, instead of an unspec.
765         * config/sparc/ultra1_2.md: Handle 'gsr'.
766         * config/sparc/ultra3.md: Likewise.
767         * config/sparc/niagara.md: Likewise.
768         * config/sparc/niagara2.md: Likewise.
769         * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
770         end of table.
771         (sparc_option_override): Make -mvis imply -mv8plus.
772         (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
773         for %gsr.
774         (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
775         __builtin_vis_read_gsr.
776         (sparc_expand_buildin): Handle builtins that take one argument and
777         return void.
778         (sparc_fold_builtin): Never fold writes to %gsr.
779         * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
780         * doc/extend.texi: Document new VIS intrinsics.
781
782 2011-09-23  Jan Hubicka  <jh@suse.cz>
783
784         * ipa-inline-transform.c (inline_call): Add comment.
785         * ipa-inline.h (inline_param_summary): New structure and vector.
786         (struct inline_edge_summary): Add param field.
787         * ipa-inline-analysis.c (CHANGED): New constant.
788         (add_clause): Handle CHANGED and NOT_CONSTANT.
789         (predicate_probability): New function.
790         (dump_condition): Dump CHANGED predicate.
791         (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
792         of unknown function wide invariant.
793         (evaluate_conditions_for_edge): Handle change probabilities.
794         (inline_edge_duplication_hook): Copy param summaries.
795         (inline_edge_removal_hook): Free param summaries.
796         (dump_inline_edge_summary): Fix dumping of indirect edges and callee
797         sizes; dump param summaries.
798         (will_be_nonconstant_predicate): Use CHANGED predicate.
799         (record_modified_bb_info): New structure.
800         (record_modified): New function.
801         (param_change_prob): New function.
802         (estimate_function_body_sizes): Compute param summaries.
803         (estimate_edge_size_and_time): Add probability argument.
804         (estimate_node_size_and_time): Add inline_param_summary argument;
805         handle predicate probabilities.
806         (remap_predicate): Fix formating.
807         (remap_edge_change_prob): New function.
808         (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
809         (remap_edge_predicates): ... this one.
810         (inline_merge_summary): Remap edge summaries; handle predicate
811         probabilities; remove param summaries after we are done.
812         (do_estimate_edge_time): Update.
813         (do_estimate_edge_growth): Update.
814         (read_inline_edge_summary): Read param info.
815         (inline_read_summary): Fix formating.
816         (write_inline_edge_summary): Write param summaries.
817
818 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
819
820         * config/i386/i386.c (ix86_print_operand): Handle %~.
821         (ix86_print_operand_punct_valid_p): Return true also for '~'.
822         * config/i386/sse.md (i128): New mode_attr.
823         (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
824         avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
825         *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
826         vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
827         patterns, use "<sseinsnmode>" for "mode" attribute.
828         (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
829         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
830         %~128 in the patterns, use "OI" for "mode" attribute.
831
832 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
833
834         PR target/50447
835         * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
836         "tstsi", "compare".
837         (*cmpqi_sign_extend): Use s8_operand.
838         (*cmphi, *cmpsi): Rewrite using avr_out_compare.
839         * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
840         prototypes.
841         (out_tsthi, out_tstsi): Remove prototypes.
842         (avr_out_tsthi, avr_out_tstsi): New prototypes.
843         * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
844         (avr_asm_len): Negative length now sets *plen to -length.
845         (compare_sign_p): Return bool instead of int.
846         (compare_diff_p, compare_eq_p): Ditto and make static.
847         (avr_out_tsthi): New function.
848         (avr_out_tstsi): New function.
849         (avr_out_compare): New function.
850         (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
851         ADJUST_LEN_COMPARE.
852
853 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
854
855         PR target/50447
856         * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
857         (addsi3): Rewrite using QI scratch register.  Adjust text
858         peepholes using plus:SI.
859         (*addsi3_zero_extend.hi): New insn.
860         (*subsi3_zero_extend.hi): New insn.
861         (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
862         (*subsi3_zero_extend): Ditto.
863         (subsi3): Change predicate #2 to register_operand.
864         * config/avr/avr-protos.h (avr_out_plus): New prototype.
865         (avr_out_plus_1): New static function.
866         (avr_out_plus): New function.
867         (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
868
869 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
870
871         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
872         GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
873
874 2011-09-23  Ian Lance Taylor  <iant@google.com>
875
876         * godump.c (go_define): Treat a single character in single quotes,
877         or a string, as an operand.
878
879 2011-09-23  Martin Jambor  <mjambor@suse.cz>
880
881         * ipa-prop.h (jump_func_type): Updated comments.
882         (ipa_known_type_data): New type.
883         (ipa_jump_func): Use it to describe known type jump functions.
884         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
885         reflect the new known type jump function contents.
886         (compute_known_type_jump_func): Likewise.
887         (combine_known_type_and_ancestor_jfs): Likewise.
888         (try_make_edge_direct_virtual_call): Likewise.
889         (ipa_write_jump_function): Likewise.
890         (ipa_read_jump_function): Likewise.
891         * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
892         (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
893         (propagate_accross_jump_function): Likewise.
894
895 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
896
897         PR target/50446
898         * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
899         (rotlqi3_4): Turn insn into expander.
900         (*rotlqi3): New insn.
901         (rotlhi3, rotlsi3): Support rotate left/right by 1.
902         (*rotlhi2.1, *rotlhi2.15): New insns.
903         (*rotlsi2.1, *rotlsi2.31): New insns.
904         * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
905
906 2011-09-23  Bin Cheng  <bin.cheng@arm.com>
907
908         * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
909
910 2011-09-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
911
912         * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
913
914 2011-09-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
915
916         * reload.c (find_reloads): Set operand_mode to Pmode for address
917         operands consisting of just a CONST_INT.
918
919 2011-09-22  Uros Bizjak  <ubizjak@gmail.com>
920
921         PR target/50482
922         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
923         blendv, force op_true to register if it doesn't satisfy
924         nonimmediate_operand predicate.
925
926 2011-09-22  Richard Sandiford  <rdsandiford@googlemail.com>
927
928         PR middle-end/50113
929         PR middle-end/50061
930         * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
931         get the locate.where_pad value for register-only arguments.
932         * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
933         (arm_pad_reg_upward): Handle null types.
934
935 2011-09-22  Jan Hubicka  <jh@suse.cz>
936
937         * ipa-inline-analysis.c: Fix overly long lines.
938
939 2011-09-22  Jan Hubicka  <jh@suse.cz>
940
941         * ipa-inline-transform.c (inline_call): Always update jump functions
942         after inlining.
943         * ipa-inline.c (ipa_inline): Likewise; do not call
944         ipa_create_all_structures_for_iinln.
945         (ipa_inline): Always free jump functions.
946         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
947         (remap_edge_predicates): Fix pasto.
948         (inline_merge_summary): Remove nlined edge predicate; remove hack.
949         (inline_analyze_function): Always initialize jump functions.
950         (inline_generate_summary): Likewise.
951         (inline_write_summary): Always write jump functions when ipa-cp
952         is not doing that.
953         (inline_read_summary): Always read jump functions when ipa-cp
954         is not doing that.
955         * ipa-prop.c (iinlining_processed_edges): Remove.
956         (update_indirect_edges_after_inlining): Do not use
957         iinlining_processed_edges; instead set param_index to -1.
958         (propagate_info_to_inlined_callees): Only try to indirect inlining
959         when asked to do so; update jump functions of indirect calls, too;
960         remove jump functions of the inlined edge.
961         (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
962         (ipa_create_all_structures_for_iinln): Remove.
963         (ipa_free_all_structures_after_iinln): Do not free
964         iinlining_processed_edges.
965         * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
966
967 2011-09-22  Richard Sandiford  <richard.sandiford@linaro.org>
968
969         * config/arm/predicates.md (expandable_comparison_operator): New
970         predicate, extracted from...
971         (arm_comparison_operator): ...here.
972         * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
973         (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
974         (movdfcc): Use expandable_comparison_operator.
975
976 2011-09-22  Georg-Johann Lay  <avr@gjlay.de>
977
978         PR target/50447
979         PR target/50465
980         * config/avr/avr-protos.h (avr_out_bitop): New prototype.
981         (avr_popcount_each_byte): New prototype.
982         * config/avr/avr.c (avr_popcount): New static function.
983         (avr_popcount_each_byte): New function.
984         (avr_out_bitop): New function.
985         (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
986         avr_out_bitop.  Cleanup code.
987         * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
988         (Ca4, Co4, Cx4): New constraints.
989         * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
990         alternative.
991         (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
992         (andsi3, iorsi3, xorsi3): Ditto.
993         (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
994
995 2011-09-22  Ira Rosen  <ira.rosen@linaro.org>
996
997         PR tree-optimization/50451
998         * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
999         constant operands in reduction.
1000         (vect_get_slp_defs): Don't create vector operand for NULL scalar
1001         operand.
1002
1003 2011-09-22  David S. Miller  <davem@davemloft.net>
1004
1005         * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
1006         fpack16, fpack32, fpackfix as const.
1007
1008         * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
1009         I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
1010         constants.  Use them everywhere.
1011
1012 2011-09-22  Oleg Endo  <oleg.endo@t-online.de>
1013
1014         * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
1015         Added AND special case.  Adapted comments.
1016         (sh_rtx_costs): Added XOR and IOR case.
1017
1018 2011-09-21  Jan Hubicka  <jh@suse.cz>
1019
1020         * ipa-inline-analsis.c (compute_inline_parameters): Set
1021         cfun and current_function_decl.
1022
1023 2011-09-21  Jan Hubicka  <jh@suse.cz>
1024
1025         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
1026         handled components in parameter of builtin_constant_p.
1027         (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
1028
1029 2011-09-21  Jan Hubicka  <jh@suse.cz>
1030
1031         * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
1032         * ipa-inline.h (estimate_edge_time): Fix pasto.
1033         * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
1034
1035 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
1036
1037         * config/i386/i386.c (ix86_expand_sse_movcc): Use
1038         blendvps, blendvpd and pblendvb if possible.
1039
1040 2011-09-21  Uros Bizjak  <ubizjak@gmail.com>
1041
1042         PR target/50464
1043         * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
1044         operand 1 predicate to register_operand and operand 2 predicate
1045         to nonimmediate_operand.
1046         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
1047         xop_pcmov, force op_true to register.  Also, force op_false to
1048         register if it doesn't satisfy nonimmediate_operand predicate.
1049
1050 2011-09-21  Kirill Yukhin  <kirill.yukhin@intel.com>
1051
1052         * config/i386/bmi2intrin.h (_mulx_u64): New.
1053         (_mulx_u32): Ditto.
1054
1055 2011-09-21  Jan Hubicka  <jh@suse.cz>
1056
1057         PR tree-optimization/50433
1058         * ipa-inline-analysis.c (eliminated_by_inlining_prob):
1059         Use get_base_address.
1060
1061 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
1062
1063         * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
1064         nonimmediate_operand instead of register_operand predicate for operands
1065         1 and 2, force them into registers if expanding them as comparison.
1066         (<code><mode>3 umaxmin:VI124_128 expander): Similarly.  For UMAX
1067         V8HImode force into register just operand 1.
1068
1069 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
1070
1071         PR target/45099
1072         * config/avr/avr.c (avr_function_arg_advance): Change error to
1073         warning if a fixed register is needed as function argument.
1074
1075 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
1076
1077         PR target/50449
1078         PR target/50465
1079         * config/avr/avr.md (adjust_len): New insn attribute.
1080         (*reload_insi, *reload_insf): Use it.
1081         (*movsi, *movsf): Use new interface of output_movsisf.
1082         * config/avr/avr-protos.h (output_movsisf): Change prototype.
1083         * config/avr/avr.c (output_movsisf): Ditto.
1084         (adjust_insn_length): Use insn attribute "adjust_len" to adjust
1085         lengths of insns *reload_insi, *reload_insf.
1086         (output_reload_insisf_1): New static function.
1087         (output_reload_insisf): Use it.
1088
1089 2011-09-21  David S. Miller  <davem@davemloft.net>
1090
1091         * config/sparc/sparc.c (def_builtin): Change from macro into function.
1092         (def_builtin_const): New.
1093         (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
1094         other than alignaddr and falignaddr.
1095
1096         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
1097         UNSPEC_FCMPEQ): New unspec codes.
1098         (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
1099         fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
1100         * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
1101         new pixel compare VIS patterns.
1102         * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
1103         __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
1104         __vis_fcmpeq16, __vis_fcmpeq32): New.
1105         * doc/extend.texi: Document new pixel compare VIS intrinsics.
1106
1107 2011-09-21  Tom de Vries  <tom@codesourcery.com>
1108
1109         * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
1110
1111 2011-09-20  David S. Miller  <davem@davemloft.net>
1112
1113         * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
1114         (aligneddrl<P:mode>_vis): New pattern.
1115         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
1116         edge32l_vis): Adjust to take Pmode arguments, and return SImode.
1117         * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
1118         alignaddrl insn, and adjust edge operations for updated types.
1119         * config/sparc/visintrin.h: Likewise.
1120         * doc/extend.texi: Make typing in VIS documentation match reality.
1121
1122 2011-09-20  Terry Guo  <terry.guo@arm.com>
1123
1124         * config/arm/arm-arches.def: Add armv6s-m.
1125         * config/arm/arm-tables.opt: Regenerate.
1126
1127 2011-09-20  Wei Guozhi  <carrot@google.com>
1128
1129         PR rtl-optimization/49452
1130         * postreload.c (reload_combine): Invalidate use information when across
1131         volatile insn.
1132
1133 2011-09-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
1134
1135         * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
1136         Remove maintenance overhead.
1137         (haifa_sched_init, sched_finish): Update.
1138
1139 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
1140
1141         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
1142         to calculate unit, prefix_rep and prefix_data16 attributes.
1143         (*mov<mode>_internal): Ditto for unit attribute.
1144         (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
1145         (*movv2sf_internal): Ditto.
1146         * config/i386/sse.md (VI1248_256): Remove mode iterator.
1147         (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
1148         (*avx2_eq<mode>3): Ditto.
1149         (avx2_gt<mode>3): Ditto.
1150
1151 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
1152
1153         * config/i386/i386.md (maxmin): New code iterator.
1154         * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
1155         from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
1156         code iterator.
1157         (*avx2_<maxmin:code><mode>3): Macroize isn from
1158         *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
1159         maxmin code iterator.
1160         (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
1161         (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
1162         <umaxmin:code>v16qi3.
1163
1164 2011-09-19  Alan Modra  <amodra@gmail.com>
1165             Michael Meissner  <meissner@linux.vnet.ibm.com>
1166
1167         PR target/50341
1168         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
1169         split the load of the indirect function's TOC from the call to
1170         prevent the compiler from moving the load of the new TOC above
1171         code that references the current function's TOC.
1172         (call_indirect_aix<ptrsize>_internal): Ditto.
1173         (call_indirect_aix<ptrsize>_nor11): Ditto.
1174         (call_indirect_aix<ptrsize>_internal2): Ditto.
1175         (call_value_indirect_aix<ptrsize>): Ditto.
1176         (call_value_indirect_aix<ptrsize>_internal): Ditto.
1177         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
1178         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
1179
1180 2011-09-19  Jakub Jelinek  <jakub@redhat.com>
1181
1182         * config/i386/sse.md (*sse4_1_extractps): Change into
1183         define_insn_and_split, add =x 0 n and =x x n alternatives
1184         and split them after reload.
1185
1186 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
1187
1188         * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
1189
1190 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
1191
1192         * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
1193
1194 2011-09-19  Ira Rosen  <ira.rosen@linaro.org>
1195
1196         PR tree-optimization/50413
1197         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
1198         a basic block if one of its data-refs can't be analyzed.
1199
1200 2011-09-19  Paul Brook  <paul@codesourcery.com>
1201
1202         * config/arm/predicates.md (shift_amount_operand): Check constant
1203         shift count is in range.
1204         (const_shift_operand): Remove.
1205
1206 2011-09-18  Eric Botcazou  <ebotcazou@adacore.com>
1207             Iain Sandoe  <developer@sandoe-acoustics.co.uk>
1208
1209         PR target/50091
1210         * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
1211         * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
1212
1213 2011-09-18  H.J. Lu  <hongjiu.lu@intel.com>
1214
1215         * config/i386/bmiintrin.h: Remove tmp.
1216         * config/i386/tbmintrin.h: Likewise.
1217
1218 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
1219
1220         PR tree-optimization/50414
1221         * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
1222         MIN_EXPR.
1223
1224 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
1225
1226         PR tree-optimization/50412
1227         * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
1228         acceses that require epilogue loop if vectorizing outer loop.
1229
1230 2011-09-17  David S. Miller  <davem@davemloft.net>
1231
1232         * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
1233         UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
1234         New unspecs.
1235         (define_attr type): New type 'edge'.
1236         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
1237         edge32l_vis): New patterns.
1238         * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
1239         * config/sparc/ultra3.md: Likewise.
1240         * config/sparc/niagara.md: Likewise.
1241         * config/sparc/niagara2.md: Likewise.
1242         * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
1243         builtins for VIS edge instructions.
1244         * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
1245         (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
1246         intrinsics.
1247         (__v8qi, __v4qi): Make unsigned.
1248         (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
1249         __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
1250         __vis_fpack32): Fix types.
1251         * doc/extend.texi: Document new 'edge' VIS intrinsics.
1252
1253         * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
1254         divide costs.
1255         (niagara3_costs): New.
1256         (sparc_option_override): Use it.
1257         * gcc/config/sparc/niagara2.md: Adjust with more accurate
1258         Niagara-3 reservations.
1259
1260 2011-09-17  Jakub Jelinek  <jakub@redhat.com>
1261
1262         * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
1263         (sse2_avx, sseinsnmode): Add V2TI.
1264         (REDUC_SMINMAX_MODE): New mode iterator.
1265         (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
1266         reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
1267         (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
1268         (sse2_lshrv1ti3): Rename to...
1269         (<sse2_avx2>_lshr<mode>3): ... this.  Use VIMAX_AVX2 mode
1270         iterator.  Move before umaxmin expanders.
1271         * config/i386/i386.h (VALID_AVX256_REG_MODE,
1272         SSE_REG_MODE_P): Accept V2TImode.
1273         * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
1274         V16HImode, V8SImode and V4DImode.
1275
1276         * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
1277         and V4DImode.
1278         (ix86_build_signbit_mask): Likewise.
1279         (ix86_expand_int_vcond): Likewise.  Handle V16HImode and V32QImode.
1280         (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
1281         instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
1282         * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
1283         (<code><mode>3) ... this.
1284         (avx2_<code><mode>3 smaxmin expand): Rename to...
1285         (<code><mode>3) ... this.
1286         (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
1287         (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
1288         VI8_AVX2 mode iterator.
1289         (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
1290         VI8_AVX2 mode iterator.
1291         (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
1292         New expanders.
1293
1294 2011-09-17  Richard Sandiford  <rdsandiford@googlemail.com>
1295
1296         * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
1297         throughout file.
1298
1299 2011-09-16  David S. Miller  <davem@davemloft.net>
1300
1301         * config/sparc/visintrin.h: New file.
1302         * config.gcc: Add it to extra_headers on sparc.
1303
1304 2011-09-16  Jakub Jelinek  <jakub@redhat.com>
1305
1306         * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
1307         (ix86_expand_reduc): ... this.  Handle also V8SFmode and V4DFmode.
1308         * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
1309         reduc_smin_v4sf): Adjust callers.
1310         (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
1311         New expanders.
1312
1313         * config/i386/sse.md (vec_extract_hi_<mode>,
1314         vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
1315         vextracti128 instead of vextractf128 for -mavx2 and
1316         integer vectors.  For V4DFmode fix up mode attribute.
1317         (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
1318         (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
1319         instead of V8SF mode attribute.
1320         (avx2_extracti128): Change into define_expand.
1321         * config/i386/i386.c (ix86_expand_vector_extract): Handle
1322         32-byte vector modes if TARGET_AVX.
1323
1324 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
1325
1326         * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
1327         (umulqi3_highpart, smulqi3_highpart): Ditto.
1328         (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
1329         (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
1330         (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
1331
1332 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
1333
1334         PR target/50358
1335         * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
1336         (*maddqi4, *maddqi4.const): New insns.
1337         (*msubqi4, *msubqi4.const): New insns.
1338         * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
1339         PLUS:QI and MINUS:QI.  Increase costs of multiply-add/-sub for
1340         HImode by 1 in the case of multiplying with a CONST_INT.
1341         Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
1342
1343 2011-09-15   Jan Hubicka  <jh@suse.cz>
1344
1345         PR lto/50430
1346         * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
1347         error_mark_node in the DECL_INITIAL of vtable.
1348
1349 2011-09-15   Diego Novillo  <dnovillo@google.com>
1350
1351         * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
1352         @SYSROOT_CFLAGS_FOR_TARGET@.
1353         * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
1354         * configure: Regenerate.
1355         (site.exp): Add definition of TEST_ALWAYS_FLAGS.
1356         Remove setting of GCC_UNDER_TEST.
1357
1358 2011-09-15  Uros Bizjak  <ubizjak@gmail.com>
1359
1360         * config/i386/i386.c (output_fp_compare): Return %v prefixed
1361         instruction mnemonics for TARGET_AVX.
1362
1363         * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
1364         "type" attribute calculation.
1365         (*movdf_internal): Ditto.
1366         (*movsf_internal): Ditto.
1367
1368 2011-09-15  James Greenhalgh  <james.greenhalgh@arm.com>
1369
1370         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
1371
1372 2011-09-15  Jason Merrill  <jason@redhat.com>
1373
1374         PR c++/50361
1375         * expr.c (count_type_elements): Handle NULLPTR_TYPE.
1376
1377 2011-09-15  Jan Hubicka  <jh@suse.cz>
1378
1379         * ipa-inline-analysis.c (add_condition): Add conditions parameter;
1380         simplify obviously true clauses.
1381         (and_predicates, or_predicates): Add conditions parameter.
1382         (inline_duplication_hoook): Update.
1383         (mark_modified): New function.
1384         (unmodified_parm): New function.
1385         (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
1386         set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
1387         Use unmodified_parm.
1388         (estimate_function_body_sizes): Update.
1389         (remap_predicate): Update.
1390
1391 2011-09-15  Ira Rosen  <ira.rosen@linaro.org>
1392
1393         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
1394         read-after-read dependencies in basic block SLP.
1395
1396 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
1397
1398         * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
1399         throughout file.
1400
1401 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
1402
1403         * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
1404         throughout file.
1405
1406 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
1407
1408         * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
1409         throughout file.
1410
1411 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
1412
1413         * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
1414         throughout file.
1415         * config/rs6000/constraints.md: Likewise.
1416
1417 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
1418
1419         * config/microblaze/microblaze.md: Use match_test rather than
1420         eq/ne symbol_ref throughout file.
1421
1422 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
1423
1424         * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
1425         throughout file.
1426
1427 2011-09-14  Tom de Vries  <tom@codesourcery.com>
1428
1429         PR middle-end/50251
1430         * explow.c (emit_stack_restore): Set crtl->need_drap if
1431         stack_restore is emitted.
1432
1433 2011-09-14  Julian Brown  <julian@codesourcery.com>
1434
1435         * config/arm/arm.c (arm_override_options): Add unaligned_access
1436         support.
1437         (arm_file_start): Emit attribute for unaligned access as appropriate.
1438         * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
1439         (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
1440         (insv, extzv): Add unaligned-access support.
1441         (extv): Change to expander. Likewise.
1442         (extzv_t1, extv_regsi): Add helpers.
1443         (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
1444         (unaligned_storesi, unaligned_storehi): New.
1445         (*extv_reg): New (previous extv implementation).
1446         * config/arm/arm.opt (munaligned_access): Add option.
1447         * config/arm/constraints.md (Uw): New constraint.
1448         * expmed.c (store_bit_field_1): Adjust bitfield numbering according
1449         to size of access, not size of unit, when BITS_BIG_ENDIAN !=
1450         BYTES_BIG_ENDIAN. Don't use bitfield accesses for
1451         volatile accesses when -fstrict-volatile-bitfields is in effect.
1452         (extract_bit_field_1): Likewise.
1453
1454 2011-09-14  Richard Sandiford  <richard.sandiford@linaro.org>
1455
1456         * simplify-rtx.c (simplify_subreg): Check that the inner mode is
1457         a scalar integer before applying integer-only optimisations to
1458         inner arithmetic.
1459
1460 2011-09-14  Bernd Schmidt  <bernds@codesourcery.com>
1461
1462         * config/mips/mips.c (mips_expand_epilogue): Generate a
1463         simple_return only if the return address is in r31.
1464
1465 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
1466
1467         * cfgcleanup.c (try_head_merge_bb): If get_condition returns
1468         NULL for a jump that is a cc0 insn, pick the previous insn for
1469         move_before.
1470
1471 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
1472
1473         * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
1474         throughout file.
1475
1476 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
1477
1478         * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
1479         throughout file.
1480
1481 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
1482
1483         * config/mn10300/mn10300.md: Use match_test rather than eq/ne
1484         symbol_ref throughout file.
1485
1486 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
1487
1488         * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
1489         throughout file.
1490
1491 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
1492
1493         * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
1494         throughout file.
1495
1496 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
1497
1498         * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
1499         throughout file.
1500         * config/arm/neon.md: Likewise.
1501         * config/arm/vfp.md: Likewise.
1502         * config/arm/thumb2.md: Likewise.
1503         * config/arm/cortex-m4.md: Likewise.
1504
1505 2011-09-13  Sevak Sargsyan <sevak.sargsyan@ispras.ru>
1506
1507         * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
1508         define_insn patterns for combine.
1509
1510 2011-09-13  Giuseppe Scrivano  <gscrivano@gnu.org>
1511
1512         * reorg.c: Always define make_return_insns.
1513
1514 2011-09-13  Jan Hubicka  <jh@suse.cz>
1515
1516         PR other/49533
1517         * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
1518
1519 2011-09-13  Jan Hubicka  <jh@suse.cz>
1520
1521         PR other/49533
1522         * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
1523
1524 2011-09-13  Paul Brook  <paul@codesourcery.com>
1525
1526         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1527         (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
1528         * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
1529         * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
1530         * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
1531         * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
1532         * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
1533         * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
1534         enabling unwind tables.
1535         (c6x_debug_unwind_info): New function.
1536         (TARGET_ARM_EABI_UNWINDER): Define.
1537         (TARGET_DEBUG_UNWIND_INFO): Define.
1538         * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
1539         (TARGET_EXTRA_CFI_SECTION): Remove.
1540         * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
1541         * ginclude/unwind-arm-common.h: New file.
1542
1543 2011-09-13  Georg-Johann Lay  <avr@gjlay.de>
1544
1545         PR target/50358
1546         * config/avr/predicates.md (const_1_to_6_operand): New predicate.
1547         * config/avr/avr.md: (extend_s): New code attribute.
1548         (mul_r_d): New code attribute.
1549         (*maddqihi4, *umaddqihi4): New insns.
1550         (*msubqihi4, *umsubqihi4): New insns.
1551         (*usmaddqihi4, *sumaddqihi4): New insns.
1552         (*usmsubqihi4, *susubdqihi4): New insns.
1553         (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
1554         (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
1555         (*umsubqihi4.uconst.ashift): New insn-and-split.
1556         (*msubqihi4.sconst.ashift): New insn-and-split.
1557         (*sumaddqihi4.uconst): New insn-and-split.
1558         (*sumsubqihi4.uconst): New insn-and-split.
1559         * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
1560         PLUS:HI and MINUS:HI.
1561
1562 2011-09-13  Revital Eres  <revital.eres@linaro.org>
1563
1564         modulo-sched.c (remove_node_from_ps): Return void instead of bool.
1565         (optimize_sc): Adjust call to remove_node_from_ps.
1566         (sms_schedule): Add print info.
1567
1568 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
1569
1570         * rtl.c (copy_rtx): Do not handle frame_related, jump or call
1571         flags specially.
1572
1573 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
1574
1575         PR bootstrap/50010
1576         * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
1577         NOTE_INSN_CFI notes, with the exception of
1578         NOTE_INSN_SWITCH_TEXT_SECTIONS.
1579
1580 2011-09-12  Bernd Schmidt  <bernds@codesourcery.com>
1581             Richard Sandiford  <rdsandiford@googlemail.com>
1582
1583         * config/mips/mips.c (mips_epilogue): New structure.
1584         (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
1585         restoring registers.
1586         (mips_epilogue_emit_cfa_restores): New function.
1587         (mips_epilogue_set_cfa): Likewise.
1588         (mips_restore_reg): Queue REG_CFA_RESTORE notes.  When restoring
1589         the current CFA register from the stack, redefine the CFA in terms
1590         of the stack pointer.
1591         (mips_expand_epilogue): Set up mips_epilogue.  Attach CFA information
1592         to the epilogue instructions.
1593
1594 2011-09-12  Richard Sandiford  <rdsandiford@googlemail.com>
1595
1596         * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
1597         argument.
1598         (mips16e_build_save_restore): Update accordingly.
1599
1600 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
1601
1602         PR rtl-optimization/50212
1603         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
1604         Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
1605
1606         PR debug/50299
1607         * calls.c (load_register_parameters): Use use_reg_mode instead
1608         of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
1609         entry.
1610         (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
1611         for stack CALL_INSN_FUNCTION_USAGE uses.
1612         * expr.h (use_reg_mode): New prototype.
1613         (use_reg): Changed into inline around use_reg_mode.
1614         * expr.c (use_reg): Renamed to...
1615         (use_reg_mode): ... this.  Added MODE argument, set EXPR_LIST
1616         mode to that mode instead of VOIDmode.
1617         * var-tracking.c (prepare_call_arguments): Don't track parameters
1618         whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
1619         to it using lowpart_subreg.  Convert VALUE and REG/MEM to the
1620         EXPR_LIST mode.
1621
1622 2011-09-12  Georg-Johann Lay  <avr@gjlay.de>
1623
1624         PR target/43746
1625         * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
1626         (progmem_section): New Variable.
1627         (avr_asm_init_sections): Initialize it.
1628         (TARGET_ASM_SELECT_SECTION): Define to...
1629         (avr_asm_select_section): ... this new Function.
1630         (avr_replace_prefix): New Function.
1631         (avr_asm_function_rodata_section): Use it.
1632         (avr_insert_attributes): Don't add section attribute for PROGMEM.
1633         (avr_section_type_flags): Use avr_progmem_p instead of section
1634         name to detect if object is in PROGMEM.
1635         (avr_asm_named_section): Set section name prefix for objects in
1636         PROGMEM.
1637
1638 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
1639
1640         PR bootstrap/50352
1641         * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
1642         sprintf format string.
1643
1644 2011-09-12  Richard Guenther  <rguenther@suse.de>
1645
1646         PR tree-optimization/50343
1647         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
1648         that the reduction is over an SSA name before checking its definition.
1649
1650 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
1651
1652         * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
1653         throughout file.
1654
1655 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
1656
1657         * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
1658         throughout file.
1659         * config/mips/sb1.md: Likewise.
1660         * config/mips/predicates.md: Replace (match_test "!...")
1661         with (not (match_test "..."))
1662         * config/mips/constraints.md: Likewise.
1663
1664 2011-09-09  Andrew Stubbs  <ams@codesourcery.com>
1665
1666         * config/arm/arm-cores.def (generic-armv7-a): New architecture.
1667         * config/arm/arm-tables.opt: Regenerate.
1668         * config/arm/arm-tune.md: Regenerate.
1669         * config/arm/arm.c (arm_file_start): Output .arch directive when
1670         user passes -mcpu=generic-*.
1671         (arm_issue_rate): Add genericv7a support.
1672         * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
1673         (ASM_CPU_SPEC): New define.
1674         * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
1675         * config/arm/semi.h (ASM_SPEC): Likewise.
1676         * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
1677         and -mtune=generic-*.
1678
1679 2011-09-09  Richard Guenther  <rguenther@suse.de>
1680
1681         PR tree-optimization/50328
1682         * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
1683         constant or default-def operand.
1684
1685 2011-09-09  Richard Guenther  <rguenther@suse.de>
1686
1687         * tree-ssa-pre.c (create_expression_by_pieces): Fold the
1688         last statement.
1689
1690 2011-09-09  Richard Guenther  <rguenther@suse.de>
1691
1692         * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
1693         instead of a statement.
1694         * gimple-fold.c (fold_stmt_inplace): Likewise.
1695         * sese.c (graphite_copy_stmts_from_block): Adjust.
1696         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
1697         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
1698         fold_stmt.
1699         (forward_propagate_addr_into_variable_array_index): Likewise.
1700         (forward_propagate_addr_expr_1): adjust.
1701         (associate_plusminus): Likewise.
1702         (ssa_forward_propagate_and_combine): Likewise.
1703         * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
1704         (execute_cse_reciprocals): Likewise.
1705         * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
1706
1707 2011-09-09  Nick Clifton  <nickc@redhat.com>
1708
1709         * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
1710         Return a positive value to indicate that the bits at the
1711         bottom of the register should be cleared.
1712
1713 2011-09-09  Richard Guenther  <rguenther@suse.de>
1714
1715         * tree-ssa-operands.c (swap_tree_operands): Always adjust
1716         existing operand positions.
1717
1718 2011-09-09  Richard Guenther  <rguenther@suse.de>
1719
1720         PR middle-end/50333
1721         * tree-data-ref.c (split_constant_offset): Do not try to handle
1722         ternary ops.
1723
1724 2011-09-08  Andrew Stubbs  <ams@codesourcery.com>
1725
1726         PR tree-optimization/50318
1727         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
1728         typo in use of mult_rhs1 and mult_rhs2.
1729
1730 2011-09-08  Uros Bizjak  <ubizjak@gmail.com>
1731
1732         * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
1733         (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
1734
1735 2011-09-08  Bernd Schmidt  <bernds@codesourcery.com>
1736
1737         * config/arm/arm.md (push_multi): Emit predicates.
1738         (push_fp_multi): Likewise.
1739         * config/arm/arm.c (vfp_output_fstmd): Likewise.
1740
1741 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
1742
1743         PR c++/33255 - Support -Wunused-local-typedefs warning
1744         * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
1745         (pushdecl): Use the new record_locally_defined_typedef.
1746         (store_parm_decls): Allocate cfun->language.
1747         (finish_function): Use the new maybe_warn_unused_local_typedefs,
1748         and free cfun->language.
1749         (c_push_function_context): Allocate cfun->language here only if needed.
1750         (c_pop_function_context): Likewise, mark cfun->language
1751         for collection only when it should be done.
1752         * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
1753         * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
1754         maybe_record_local_typedef_use.
1755         * doc/invoke.texi: Update documentation for
1756         -Wunused-local-typedefs.
1757
1758 2011-09-08  Enkovich Ilya  <ilya.enkovich@intel.com>
1759
1760         * config/i386/i386-protos.h (ix86_lea_outperforms): New.
1761         (ix86_avoid_lea_for_add): Likewise.
1762         (ix86_avoid_lea_for_addr): Likewise.
1763         (ix86_split_lea_for_addr): Likewise.
1764
1765         * config/i386/i386.c (LEA_MAX_STALL): New.
1766         (increase_distance): Likewise.
1767         (insn_defines_reg): Likewise.
1768         (insn_uses_reg_mem): Likewise.
1769         (distance_non_agu_define_in_bb): Likewise.
1770         (distance_agu_use_in_bb): Likewise.
1771         (ix86_lea_outperforms): Likewise.
1772         (ix86_ok_to_clobber_flags): Likewise.
1773         (ix86_avoid_lea_for_add): Likewise.
1774         (ix86_avoid_lea_for_addr): Likewise.
1775         (ix86_split_lea_for_addr): Likewise.
1776         (distance_non_agu_define): Search in pred BBs added.
1777         (distance_agu_use): Search in succ BBs added.
1778         (IX86_LEA_PRIORITY): Value changed from 2 to 0.
1779         (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
1780         (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
1781
1782         * config/i386/i386.md: Split added to transform non destructive
1783         add into move and add.
1784         (lea_1): transformed into insn_and_split to avoid AGU stalls.
1785         (lea<mode>_2): Likewise.
1786
1787 2011-09-08  Martin Jambor  <mjambor@suse.cz>
1788
1789         PR tree-optimization/50287
1790         * ipa-split.c (split_function): Do not create SSA names for
1791         non-gimple-registers.
1792
1793 2011-09-08  Richard Guenther  <rguenther@suse.de>
1794
1795         PR tree-optimization/19831
1796         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
1797         skip builtins with vdefs that do not really store something.
1798         (propagate_necessity): For calls to free that we can associate
1799         with an allocation function do not mark the freed pointer
1800         definition necessary.
1801         (eliminate_unnecessary_stmts): Remove a call to free if
1802         the associated call to an allocation function is not necessary.
1803
1804 2011-09-08  Richard Guenther  <rguenther@suse.de>
1805
1806         PR tree-optimization/19831
1807         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
1808         allocation functions as necessary.
1809
1810 2011-09-08  Iain Sandoe  <iains@gcc.gnu.org>
1811
1812         * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
1813         cut from ...
1814         (darwin_default_min_version): Amended to provide defaults
1815         for the cross directory case.
1816         (darwin_driver_init): call darwin_default_min_version unconditionally.
1817         * config/darwin.h (DEF_MIN_OSX_VERSION): New.
1818         * config/darwin9.h: Likewise.
1819         * config/darwin10.h: Likewise.
1820         * config/rs6000/darwin7.h: Likewise.
1821
1822 2011-09-08  Jakub Jelinek  <jakub@redhat.com>
1823
1824         PR target/50310
1825         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
1826         code early if TARGET_AVX.
1827         (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
1828
1829 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
1830
1831         * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
1832         duplicates.
1833
1834         PR target/50310
1835         * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
1836         "mode" attribute computation.
1837
1838 2011-09-07  Bernd Schmidt  <bernds@codesourcery.com>
1839
1840         * regrename.c (struct du_head): Make nregs signed.
1841         (closed_chains): Remove.
1842         (create_new_chain): Return the new chain.
1843         (chain_from_id): New static function.
1844         (dump_def_use_chain): Change argument to be an int, indicating
1845         the first ID to print.  All callers changed.
1846         (merge_overlapping_regs): Use chain_from_id.  Assert that
1847         chains don't conflict with themselves.
1848         (rename_chains): Take no argument.  Iterate over id_to_chain
1849         rather to find chains to rename.  Clear tick before the main loop.
1850         (struct incoming_reg_info): New struct.
1851         (struct bb_rename_info): New struct.
1852         (init_rename_info, set_incoming_from_chain, merge_chains): New
1853         static functions.
1854         (regrename_analyze): New static function, broken out of
1855         regrename_optimize.  Record and make use of open chain information
1856         at basic block boundaries, and merge chains where possible.
1857         (scan_rtx_reg): Make this_nregs signed.  Don't update
1858         closed_chains.
1859         (build_def_use): Return a bool to indicate success.  All callers
1860         changed.  Don't initialize global data here.
1861         (regrename_optimize): Move most code out of here into
1862         regrename_analyze.
1863         * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
1864         range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
1865         static inline functions.
1866         * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
1867
1868         * bb-reorder.c (insert_section_boundary_note): Don't check
1869         optimize_function_for_speed_p.
1870         (gate_handle_partition_blocks): Do it here instead.
1871         (gate_handle_reorder_blocks): Move preliminary checks here ...
1872         (rest_of_handle_reorder_blocks): ... from here.
1873
1874 2011-09-07  Martin Jambor  <mjambor@suse.cz>
1875
1876         PR middle-end/50301
1877         * ipa-cp.c (find_more_values_for_callers_subset): Check jump
1878         function index bounds.
1879         (perhaps_add_new_callers): Likewise.
1880
1881 2011-09-07  Martin Jambor  <mjambor@suse.cz>
1882
1883         PR tree-optimization/49911
1884         * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
1885         enumerations to the corresponding plain integer type.
1886
1887 2011-09-07  Richard Guenther  <rguenther@suse.de>
1888
1889         PR tree-optimization/50319
1890         * tree-if-conv.c (set_bb_predicate): Assert we only set
1891         canonical predicates.
1892         (add_to_predicate_list): Simplify.  Allow TRUTH_NOT_EXPR
1893         around canonical predicates.
1894         (predicate_bbs): Do not re-gimplify already canonical
1895         predicates.  Properly unshare them though.
1896         (find_phi_replacement_condition): Simplify.
1897
1898 2011-09-07  Richard Sandiford  <richard.sandiford@linaro.org>
1899
1900         PR target/49030
1901         * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
1902         * config/arm/arm.c (maybe_get_arm_condition_code): New function,
1903         reusing the old code from get_arm_condition_code.  Return ARM_NV
1904         for invalid comparison codes.
1905         (get_arm_condition_code): Redefine in terms of
1906         maybe_get_arm_condition_code.
1907         * config/arm/predicates.md (arm_comparison_operator): Use
1908         maybe_get_arm_condition_code.
1909
1910 2011-09-07  Richard Guenther  <rguenther@suse.de>
1911
1912         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
1913         Canonicalize negated predicates by swapping edges.
1914         (forward_propagate_into_cond): Likewise.
1915
1916 2011-09-07  Richard Guenther  <rguenther@suse.de>
1917
1918         PR tree-optimization/50213
1919         * tree-flow.h (simple_iv_increment_p): Declare.
1920         * tree-ssa-dom.c (simple_iv_increment_p): Export.  Also handle
1921         POINTER_PLUS_EXPR.
1922         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
1923         not propagate simple IV counter increments.
1924
1925 2011-09-07  Eric Botcazou  <ebotcazou@adacore.com>
1926             Iain Sandoe  <iains@gcc.gnu.org>
1927
1928         * config/rs6000/rs6000.c (compute_save_world_info): Test
1929         cfun->has_nonlocal_label to determine if the out-of-line save
1930         world call may be used.
1931
1932 2011-09-07  Nick Clifton  <nickc@redhat.com>
1933
1934         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
1935         label on the parallel part of the insn.
1936
1937 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
1938
1939         PR debug/50191
1940         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
1941         avoid_constant_pool_reference first instead of last.
1942
1943 2011-09-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
1944
1945         * doc/configfiles.texi (Configuration Files): Update documentation
1946         about tm_p.h and remove FIXME comment.
1947
1948 2011-09-06  Uros Bizjak  <ubizjak@gmail.com>
1949
1950         * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
1951         (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
1952
1953 2011-09-06  Iain Sandoe  <iains@gcc.gnu.org>
1954
1955         * config/darwin10.h Remove duplicate LIB_SPEC.
1956
1957 2011-09-06  Enkovich Ilya  <ilya.enkovich@intel.com>
1958
1959         PR middle-end/44382
1960         * target.def (reassociation_width): New hook.
1961
1962         * doc/tm.texi.in (reassociation_width): Likewise.
1963
1964         * doc/tm.texi (reassociation_width): Likewise.
1965
1966         * doc/invoke.texi (tree-reassoc-width): New param documented.
1967
1968         * hooks.h (hook_int_uint_mode_1): New default hook.
1969
1970         * hooks.c (hook_int_uint_mode_1): Likewise.
1971
1972         * config/i386/i386.h (ix86_tune_indices): Add
1973         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
1974
1975         (TARGET_REASSOC_INT_TO_PARALLEL): New.
1976         (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
1977
1978         * config/i386/i386.c (initial_ix86_tune_features): Add
1979         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
1980
1981         (ix86_reassociation_width): New function.
1982
1983         * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
1984
1985         * tree-ssa-reassoc.c (get_required_cycles): New function.
1986         (get_reassociation_width): Likewise.
1987         (swap_ops_for_binary_stmt): Likewise.
1988         (rewrite_expr_tree_parallel): Likewise.
1989
1990         (rewrite_expr_tree): Refactored.  Part of code moved into
1991         swap_ops_for_binary_stmt.
1992
1993         (reassociate_bb): Now checks reassociation width to be used and
1994         call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
1995
1996 2011-09-06  Richard Guenther  <rguenther@suse.de>
1997
1998         PR tree-optimization/47025
1999         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
2000         uses nothing.
2001         (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
2002         BUILT_IN_FREE.
2003         (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
2004         definitely points to.
2005         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2006         BUILT_IN_VA_START doesn't let its va_list argument escape.
2007         * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
2008         not make any previous stores necessary.
2009
2010 2011-09-06  Martin Jambor  <mjambor@suse.cz>
2011
2012         * ipa-inline.h (struct inline_summary): Move versionable flag...
2013         * cgraph.h (struct cgraph_local_info): ...here
2014         * ipa-cp.c (determine_versionability): Use the new versionable flag.
2015         (determine_versionability): Likewise.
2016         (ipcp_versionable_function_p): Likewise.
2017         (ipcp_generate_summary): Likewise.
2018         * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
2019         versionable flag.
2020         (compute_inline_parameters): Do not clear the versionable flag.
2021         (inline_read_section): Do not stream the versionable flag.
2022         (inline_write_summary): Likewise.
2023         * lto-cgraph.c (lto_output_node): Stream the versionable flag.
2024         (input_overwrite_node): Likewise.
2025
2026 2011-09-06  Richard Guenther  <rguenther@suse.de>
2027
2028         PR tree-optimization/48149
2029         * tree-ssa-sccvn.c (vn_get_expr_for): Simplify.  Fix tuplification bug.
2030         (vn_valueize): Move earlier.
2031         (valueize_expr): Use vn_valueize.
2032         (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
2033         operands.
2034         (simplify_unary_expression): Simplify.
2035
2036 2011-09-06  Richard Guenther  <rguenther@suse.de>
2037
2038         PR tree-optimization/48317
2039         * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
2040         trailing array.
2041         (sizeof_vn_nary_op): New inline function.
2042         (vn_nary_op_lookup_pieces): Adjust.
2043         (vn_nary_op_insert_pieces): Likewise.
2044         * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
2045         (init_vn_nary_op_from_pieces): Adjust signature.  Deal with
2046         any number of operands.
2047         (vn_nary_length_from_stmt): New function.
2048         (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
2049         (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
2050         sized temporary.
2051         (vn_nary_op_lookup): Likewise.
2052         (vn_nary_op_lookup_stmt): Likewise.
2053         (vn_nary_op_insert_into): Likewise.
2054         (vn_nary_op_insert_stmt): Likewise.
2055         (visit_use): Handle CONSTRUCTOR as nary.
2056         * tree-ssa-pre.c (phi_translate_1): Adjust.
2057         (create_expression_by_pieces): Likewise.
2058         (compute_avail): Likewise.
2059
2060 2011-09-06  Ira Rosen  <ira.rosen@linaro.org>
2061
2062          * config/arm/arm.c (arm_preferred_simd_mode): Check
2063         TARGET_NEON_VECTORIZE_DOUBLE instead of
2064         TARGET_NEON_VECTORIZE_QUAD.
2065         (arm_autovectorize_vector_sizes): Likewise.
2066         * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
2067         mask of mvectorize-with-neon-double.  Add RejectNegative.
2068         (mvectorize-with-neon-double): New.
2069
2070 2011-09-06  Richard Guenther  <rguenther@suse.de>
2071
2072         * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
2073
2074 2011-09-06  Tom de Vries  <tom@codesourcery.com>
2075
2076         * recog.c (asm_labels_ok): New function.
2077         (check_asm_operands): Use asm_labels_ok.
2078
2079 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
2080
2081         PR target/49606
2082         * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
2083         (PMODE_INSN): New macro.
2084         * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
2085         (mips_got_load, mips_expand_synci_loop): Likewise.
2086         (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
2087         cprestore patterns.
2088         (mips_emit_loadgp): Use PMODE_INSN.  Handle SImode and DImode
2089         copygp_mips16 patterns.
2090         (mips_expand_prologue): Handle SImode and DImode potential_cprestore
2091         and use_cprestore patterns.
2092         (mips_override_options): Check for incompatible -mabi and -mlong
2093         combinations.
2094         * config/mips/mips.md (unspec_got<mode>): Rename to...
2095         (unspec_got_<mode>): ...this.
2096         (copygp_mips16): Use the Pmode iterator.
2097         (potential_cprestore, cprestore, use_cprestore): Likewise.
2098         (clear_cache, indirect_jump): Use PMODE_INSN.
2099         (indirect_jump<mode>): Rename to...
2100         (indirect_jump_<mode>): ...this.
2101         (tablejump): Use PMODE_INSN.
2102         (tablejump<mode>): Rename to...
2103         (tablejump_<mode>): ...this.
2104         (exception_receiver): Handle restore_gp_si and restore_gp_di.
2105         (restore_gp): Use the Pmode iterator.
2106         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
2107         PMODE_INSN.
2108
2109 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
2110
2111         * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
2112         Fix the type of the BIT_AND_EXPR.
2113
2114 2011-09-05  David S. Miller  <davem@davemloft.net>
2115
2116         * config.host: Add driver-sparc.o and sparc/x-sparc on
2117         native sparc*-*-linux* builds.
2118         * config/sparc/driver-sparc.c: Correct Linux strings.
2119         * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
2120         * config/sparc/linux64.h: Likewise.
2121         * doc/invoke.texi: Document that Linux also supports
2122         -mcpu=native and -mtune=native on sparc.
2123
2124         * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
2125         PROCESSOR_NIAGARA4): New.
2126         * config/sparc/sparc.opt: Handle new processor types.
2127         * config/sparc/sparc.md: Add to "cpu" attribute.
2128         * config/sparc/sparc.h (TARGET_CPU_niagara3,
2129         TARGET_CPU_niagara4): New, treat as niagara2.
2130         * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
2131         * config/sparc/sol2.h: Likewise.
2132         * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
2133         * config/sparc/sparc.c (sparc_option_override): Add
2134         niagara3 and niagara4 handling.
2135         (sparc32_initialize_trampoline): Likewise.
2136         (sparc64_initialize_trampoline): Likewise.
2137         (sparc_use_sched_lookahead): Likewise.
2138         (sparc_issue_rate): Likewise.
2139         (sparc_register_move_cost): Likewise.
2140         * config/sparc/driver-sparc.c (cpu_names): Use niagara3
2141         and niagara4 as appropriate.
2142         * doc/invoke.texi: Document new processor types.
2143         * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
2144         and --with-tune options.
2145
2146         * config/sparc/sol2-64.h: Move ...
2147         * config/sparc/default-64.h: ... to here.  Update comment.
2148         * config.gcc: Update Solaris sparc to use default-64.h, also
2149         prefix this header into the list on sparc64-*-linux.
2150         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
2151         TARGET_64BIT_DEFAULT is defined.  Remove commented out reference
2152         to MASK_HARD_QUAD.
2153
2154 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
2155
2156         PR target/50289
2157         * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
2158         that contain global register variable.
2159
2160 2011-09-05  Richard Guenther  <rguenther@suse.de>
2161
2162         * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
2163
2164 2011-09-05  Richard Guenther  <rguenther@suse.de>
2165
2166         * stor-layout.c (layout_type): Use size_binop for array size
2167         calculations.
2168
2169 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
2170
2171         * config/avr/avr.h (progmem_section): Remove Declaration.
2172         * config/avr/avr.c (progmem_section): Make static and rename to
2173         progmem_swtable_section.
2174         (avr_output_addr_vec_elt): No need to switch sections.
2175         (avr_asm_init_sections): Use output_section_asm_op as section
2176         callback for progmem_swtable_section.
2177         (avr_output_progmem_section_asm_op): Remove Function.
2178         (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
2179         (avr_asm_function_rodata_section): New static Function.
2180         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
2181         alignment 2**1 for jump tables.
2182
2183 2011-09-04  Jan Hubicka  <jh@suse.cz>
2184
2185         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
2186         parameter is SSA name.
2187
2188 2011-09-04  Richard Guenther  <rguenther@suse.de>
2189
2190         Revert
2191         2011-08-31  Richard Guenther  <rguenther@suse.de>
2192
2193         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
2194         special-casing.
2195
2196 2011-09-04  Iain Sandoe  <iains@gcc.gnu.org>
2197
2198         PR debug/49901
2199         * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
2200
2201 2011-09-04  Jakub Jelinek  <jakub@redhat.com>
2202             Ira Rosen  <ira.rosen@linaro.org>
2203
2204         PR tree-optimization/50208
2205         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
2206         argument.  Check that def_stmt is inside the loop.
2207         (vect_recog_widen_mult_pattern): Update calls to
2208         vect_handle_widen_mult_by_cons.
2209         (vect_operation_fits_smaller_type): Check that def_stmt is
2210         inside the loop.
2211
2212 2011-09-04  Ira Rosen  <ira.rosen@linaro.org>
2213
2214         * tree-vectorizer.c (vect_print_dump_info): Print line
2215         number when dumping to a file.
2216         (vectorize_loops): Add new messages to dump file.
2217
2218 2011-09-03  Martin Jambor  <mjambor@suse.cz>
2219
2220         * ipa-prop.h (ipa_jump_func_t): New typedef.
2221         (struct ipa_edge_args): Removed field argument_count, field
2222         jump_functions turned into a vector.
2223         (ipa_set_cs_argument_count): Removed.
2224         (ipa_get_cs_argument_count): Updated to work on vectors.
2225         (ipa_get_ith_jump_func): Likewise.
2226         * ipa-prop.c (ipa_count_arguments): Removed.
2227         (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
2228         jump functions.  Update caller.
2229         (compute_pass_through_member_ptrs): Likewise.
2230         (compute_cst_member_ptr_arguments): Likewise.
2231         (ipa_compute_jump_functions_for_edge): Get number of arguments from
2232         the statement, allocate vector.
2233         (ipa_compute_jump_functions): Do not call ipa_count_arguments.
2234         (duplicate_ipa_jump_func_array): Removed.
2235         (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
2236         (ipa_read_node_info): Allocate vector.
2237
2238 2011-09-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2239
2240         PR middle-end/50232
2241         * config/pa/pa.md (return): Define "return" insn pattern.
2242         (epilogue): Use it when no epilogue is needed.
2243         * config/pa/pa.c (pa_can_use_return_insn): New function.
2244         * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
2245
2246 2011-09-03  Eric Botcazou  <ebotcazou@adacore.com>
2247
2248         * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
2249         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
2250         Force at least BITS_PER_UNIT alignment on the new variable.
2251
2252 2011-09-02  Gary Funck <gary@intrepid.com>
2253
2254         * opts.c (print_specific_help): Fix off-by-one compare in
2255         assertion check.
2256         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
2257         CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
2258         Increase by +5 to allow for more languages.
2259         * optc-gen.awk: Generate #if that ensures that the number of
2260         languages is within the implementation-defined limit.
2261
2262 2011-09-02  Michael Matz  <matz@suse.de>
2263
2264         PR middle-end/50260
2265         * ipa-split.c (split_function): Call add_referenced_var.
2266
2267         * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
2268         (cond_if_else_store_replacement_1): Ditto.
2269         * tree-ssa-pre.c (get_representative_for): Ditto.
2270         (create_expression_by_pieces): Ditto.
2271         (insert_into_preds_of_block): Ditto.
2272         * tree-sra.c (create_access_replacement): Ditto.
2273         (get_replaced_param_substitute): Ditto.
2274
2275 2011-09-02  Bernd Schmidt  <bernds@codesourcery.com>
2276
2277         * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
2278         automata_options.
2279         (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
2280         (l1w, s1w, l2w, s2w): Define in the main automaton.
2281         (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
2282         units.
2283         * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
2284         (c6x_unit_names): Add the new units.
2285         (c6x_unit_codes): New static array.
2286         (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
2287         UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
2288         UNIT_QID_SIDE_OFFSET): New macros.
2289         (RESERVATION_S2): Adjust value.
2290         (c6x_option_override): Compute c6x_unit_codes.
2291         (assign_reservations): Take the unit_mask of the last instruction
2292         into account.  Detect floating point reservations by looking for
2293         the new units.  Don't assign reservations if the field is already
2294         nonzero.
2295         (struct c6x_sched_context): Add member prev_cycle_state_ctx.
2296         (init_sched_state): Initialize it.
2297         (c6x_clear_sched_context): Free it.
2298         (insn_set_clock): Clear reservation.
2299         (prev_cycle_state): New static variable.
2300         (c6x_init_sched_context): Save it.
2301         (c6x_sched_init): Allocate space for it and clear it.
2302         (c6x_sched_dfa_pre_cycle_insn): New static function.
2303         (c6x_dfa_new_cycle): Save state at the start of a new cycle.
2304         (c6x_variable_issue): Only record units in the unit_mask that
2305         were not set at the start of the cycle.
2306         (c6x_variable_issue): Compute and store the unit_mask from the
2307         current state.
2308         (reorg_split_calls): Ensure the new information remains correct.
2309         (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
2310         TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
2311         * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
2312         * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
2313         Add special reservations.
2314         * config/c6x/c6x-sched.md: Regenerate.
2315
2316 2011-09-02  Martin Jambor  <mjambor@suse.cz>
2317
2318         * ipa-prop.h (ipa_node_params): Removed fields
2319         called_with_var_arguments and node_versionable.
2320         (ipa_set_called_with_variable_arg): Removed.
2321         (ipa_is_called_with_var_arguments): Likewise.
2322         * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
2323         (determine_versionability): Do not check for type attributes and va
2324         builtins.  Record versionability into inline summary.
2325         (initialize_node_lattices): Do not check
2326         ipa_is_called_with_var_arguments.
2327         (propagate_constants_accross_call): Likewise, ignore arguments we do
2328         not have PARM_DECLs for, set variable flag for parameters that were
2329         not passed a value.
2330         (create_specialized_node): Dump info that we cannot change signature.
2331         * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
2332         number of arguments.
2333         (ipa_make_edge_direct_to_target): Likewise.
2334         (ipa_update_after_lto_read): Likewise.
2335         (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
2336         * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
2337         they were remapped.
2338
2339 2011-09-02  Richard Guenther  <rguenther@suse.de>
2340
2341         PR tree-optimization/27460
2342         PR middle-end/29269
2343         * doc/md.texi (vcond): Document.
2344         * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
2345         optab with two modes.
2346         * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
2347         (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
2348         (vcond_optab): Adjust.
2349         (vcondu_optab): Likewise.
2350         (expand_vec_cond_expr_p): Adjust prototype.
2351         * optabs.c (get_vcond_icode): Adjust.
2352         (expand_vec_cond_expr_p): Likewise.
2353         (expand_vec_cond_expr): Likewise.
2354         * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
2355         vector type.
2356         (vectorizable_condition): Allow differing types for comparison
2357         and result.
2358         * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
2359         for the comparison.
2360         * config/i386/sse.md (vcond<mode>): Split to
2361         vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
2362         vcond<V_128:mode><VI124_128:mode> and
2363         vcondu<V_128:mode><VI124_128:mode>.
2364         (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
2365         (vconduv2di): Likewise.
2366         * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
2367         (vcondu<mode>): Likewise.
2368         * config/ia64/vect.md (vcond<mode>): Likewise.
2369         (vcondu<mode>): Likewise.
2370         (vcondv2sf): Likewise.
2371         * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
2372         * config/rs6000/paired.md (vcondv2sf): Likewise.
2373         * config/rs6000/vector.md (vcond<mode>): Likewise.
2374         (vcondu<mode>): Likewise.
2375         * config/spu/spu.md (vcond<mode>): Likewise.
2376         (vcondu<mode>): Likewise.
2377
2378 2011-09-02  Richard Guenther  <rguenther@suse.de>
2379
2380         * pretty-print.h (pp_unsigned_wide_integer): New.
2381         * tree-pretty-print.c (dump_generic_node): Print unsigned
2382         host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
2383
2384 2011-09-02  Richard Sandiford  <richard.sandiford@linaro.org>
2385
2386         PR target/49987
2387         * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
2388         valid CONST_VECTOR operands.
2389         (rs6000_expand_vector_init): Likewise.
2390
2391 2011-09-02  Martin Jambor  <mjambor@suse.cz>
2392
2393         * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
2394         * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
2395         BINFO_VTABLE.  Parameter delta removed, all callers updated.
2396         * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
2397         BINFO_VTABLE.
2398         * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
2399         all calls.
2400         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
2401         handling of thunk_delta.
2402         * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
2403         (devirtualization_time_bonus): Do not handle thunk deltas.
2404         (ipcp_discover_new_direct_edges): Likewise.
2405         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
2406         (try_make_edge_direct_simple_call): Likewise.
2407         (try_make_edge_direct_virtual_call): Likewise.
2408         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
2409         parameter set as unused.
2410         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
2411         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
2412         parameter set as unused.
2413         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
2414         (input_edge_opt_summary): Likewise.
2415         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
2416         BINFO_VIRTUALS at all.
2417         * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
2418
2419 2011-09-02  Richard Guenther  <rguenther@suse.de>
2420
2421         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
2422         (ccp_fold_stmt): Continue replacing args when folding alloca fails.
2423
2424 2011-08-31  Richard Guenther  <rguenther@suse.de>
2425
2426         * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
2427         handling here, from ...
2428         (expand_expr_real_1): ... here.
2429         * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
2430         and VEC_COND_EXPR.
2431         * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
2432         a GIMPLE_TERNARY_RHS.
2433         * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
2434         and VEC_COND_EXPR here ...
2435         (verify_gimple_assign_single): ... not here.
2436         * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
2437         * tree-object-size.c (cond_expr_object_size): Adjust.
2438         (collect_object_sizes_for): Likewise.
2439         * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
2440         * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
2441         (ssa_forward_propagate_and_combine): Adjust.
2442         * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
2443         as ternary.
2444         * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
2445         * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
2446         * tree-vect-stmt.c (vectorizable_condition): Likewise.
2447         * tree-vrp.c (extract_range_from_cond_expr): Likewise.
2448         (extract_range_from_assignment): Likewise.
2449
2450 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
2451
2452         * config/i386/i386.md: Use (match_test ...) for attribute tests.
2453         * config/i386/mmx.md: Likewise.
2454         * config/i386/sse.md: Likewise.
2455         * config/i386/predicates.md (call_insn_operand): Use
2456         (not (match_test "...")) instead of (match_test "!...")
2457         * config/i386/constraints.md (w): Likewise.
2458
2459 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
2460
2461         * doc/md.texi: Describe the use of match_tests in attribute tests.
2462         * rtl.def (MATCH_TEST): Update commentary.
2463         * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
2464         (write_test_expr, walk_attr_value): Handle MATCH_TEST.
2465
2466 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
2467
2468         * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
2469         (attr_string): Use copy_md_ptr_loc.
2470
2471 2011-08-31  Martin Jambor  <mjambor@suse.cz>
2472
2473         PR middle-end/49886
2474         * ipa-inline-analysis.c (compute_inline_parameters): Set
2475         can_change_signature of noes with typde attributes.
2476         * ipa-split.c (split_function): Do not skip any arguments if
2477         can_change_signature is set.
2478
2479 2011-08-31  Martin Jambor  <mjambor@suse.cz>
2480
2481         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
2482         check removed.
2483
2484 2011-08-31  Richard Guenther  <rguenther@suse.de>
2485
2486         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
2487         special-casing.
2488
2489 2011-08-31  Marc Glisse  <marc.glisse@inria.fr>
2490
2491         * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
2492
2493 2011-08-31  Tom de Vries  <tom@codesourcery.com>
2494
2495         PR middle-end/43513
2496         * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
2497         * tree-ssa-ccp.c (params.h): Include.
2498         (fold_builtin_alloca_for_var): New function.
2499         (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
2500
2501 2011-08-30  Uros Bizjak  <ubizjak@gmail.com>
2502
2503         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
2504         Handle FMA option.
2505
2506 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
2507
2508         * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
2509         b3 and b4 unsigned.
2510
2511 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
2512
2513         * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
2514         when code is SET.
2515
2516 2011-08-30  Richard Guenther  <rguenther@suse.de>
2517
2518         PR middle-end/48571
2519         * gimple.h (maybe_fold_offset_to_address): Remove.
2520         (maybe_fold_offset_to_reference): Likewise.
2521         (maybe_fold_stmt_addition): Likewise.
2522         (may_propagate_address_into_dereference): Likewise.
2523         * tree-inline.c (remap_gimple_op_r): Do not reconstruct
2524         array references.
2525         * gimple-fold.c (canonicalize_constructor_val): Likewise.
2526         Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
2527         addresses instead.
2528         (may_propagate_address_into_dereference): Remove.
2529         (maybe_fold_offset_to_array_ref): Likewise.
2530         (maybe_fold_offset_to_reference): Likewise.
2531         (maybe_fold_offset_to_address): Likewise.
2532         (maybe_fold_stmt_addition): Likewise.
2533         (fold_gimple_assign): Do not reconstruct array references but
2534         instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
2535         MEM_REF addresses.
2536         (gimple_fold_stmt_to_constant_1): Likewise.
2537         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2538         * gimplify.c (gimplify_conversion): Likewise.
2539         (gimplify_expr): Likewise.
2540
2541 2011-08-30  Ilya Tocar  <ilya.tocar@intel.com>
2542
2543         * config/i386/fmaintrin.h: New.
2544         * config.gcc: Add fmaintrin.h.
2545         * config/i386/i386.c
2546         (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
2547         <IX86_BUILTIN_VFMADDSD3>: Likewise.
2548         * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
2549         (*fmai_fmadd_<mode>): Likewise.
2550         (*fmai_fmsub_<mode>): Likewise.
2551         (*fmai_fnmadd_<mode>): Likewise.
2552         (*fmai_fnmsub_<mode>): Likewise.
2553         * config/i386/immintrin.h: Add fmaintrin.h.
2554
2555 2011-08-30  Bernd Schmidt  <bernds@codesourcery.com>
2556
2557         * genautomata.c (NO_COMB_OPTION): New macro.
2558         (no_comb_flag): New static variable.
2559         (gen_automata_option): Handle NO_COMB_OPTION.
2560         (comb_vect_p): False if no_comb_flag.
2561         (add_vect): Move computation of min/max values.  Return early if
2562         no_comb_flag.
2563         * doc/md.texi (automata_option): Document no-comb-vect.
2564
2565         * config/i386/i386.c (get_pc_thunk_name): Change prefix to
2566         "__x86.get_pc_thunk".
2567
2568         * bb-reorder.c (insert_section_boundary_note): Only do it if
2569         we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
2570
2571 2011-08-30  Christian Bruel  <christian.bruel@st.com>
2572
2573         * coverage.c (coverage_init): Check flag_branch_probabilities instead of
2574         flag_profile_use.
2575
2576 2011-08-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
2577
2578         * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
2579         to off.  Document switch.
2580         * doc/invoke.texi (-msave-toc-indirect): Ditto.
2581
2582 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
2583
2584         * gthr-posix.h (__gthread_active_p): Do not use preprocessor
2585         conditionals and comments inside macro arguments.
2586
2587 2011-08-29  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
2588             Richard Guenther  <rguenther@suse.de>
2589
2590         * tree.h (constant_boolean_node): Adjust prototype.
2591         * fold-const.c (fold_convert_loc): Move aggregate conversion
2592         leeway down.
2593         (constant_boolean_node): Make value parameter boolean, add
2594         vector type handling.
2595         (fold_unary_loc): Use constant_boolean_node.
2596         (fold_binary_loc): Preserve types properly when folding
2597         COMPLEX_EXPR <__real x, __imag x>.
2598         * gimplify.c (gimplify_expr): Handle vector comparison.
2599         * tree.def (EQ_EXPR, ...): Document behavior on vector typed
2600         comparison.
2601         * tree-cfg.c (verify_gimple_comparison): Verify vector typed
2602         comparisons.
2603
2604 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
2605
2606         PR middle-end/48722
2607         * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
2608         reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
2609         (verify_rtl_sharing): Likewise and verify_rtx_sharing
2610         in there too.
2611         (unshare_all_rtl_in_chain): For CALL_INSNs
2612         copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
2613
2614 2011-08-29  Richard Guenther  <rguenther@suse.de>
2615
2616         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
2617         on the built ADDR_EXPR.
2618
2619 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
2620
2621         PR debug/50215
2622         * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
2623         before adding ENTRY_VALUE to val->locs.
2624
2625 2011-08-28  Mikael Pettersson  <mikpe@it.uu.se>
2626
2627         PR bootstrap/50218
2628         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
2629         comp.
2630
2631 2011-08-27  Bernd Schmidt  <bernds@codesourcery.com>
2632
2633         * doc/rtl.texi (simple_return): Document.
2634         (parallel, PATTERN): Here too.
2635         * doc/md.texi (return): Mention it's allowed to expand to simple_return
2636         in some cases.
2637         (simple_return): Document standard pattern.
2638         * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
2639         * final.c (final_scan_insn): Use ANY_RETURN_P on body.
2640         * reorg.c (function_return_label, function_simple_return_label):
2641         New static variables, replacing...
2642         (end_of_function_label): ... this.
2643         (simplejump_or_return_p): New static function.
2644         (optimize_skip, steal_delay_list_from_fallthrough,
2645         fill_slots_from_thread): Use it.
2646         (relax_delay_slots): Likewise.  Use ANY_RETURN_P on body.
2647         (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
2648         (find_end_label): Take a new arg which is one of the two return
2649         rtxs.  Depending on which, set either function_return_label or
2650         function_simple_return_label.  All callers changed.
2651         (make_return_insns): Make both kinds.
2652         (dbr_schedule): Adjust for two kinds of end labels.
2653         * function.c (emit_return_into_block): Set JUMP_LABEL properly.
2654         * genemit.c (gen_exp): Handle SIMPLE_RETURN.
2655         (gen_expand, gen_split): Use ANY_RETURN_P.
2656         * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
2657         * rtl.def (SIMPLE_RETURN): New code.
2658         * ifcvt.c (find_if_case_1): Be more careful about
2659         redirecting jumps to the EXIT_BLOCK.
2660         * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
2661         returnjump_p_1): Handle SIMPLE_RETURNs.
2662         * print-rtl.c (print_rtx): Likewise.
2663         * rtl.c (copy_rtx): Likewise.
2664         * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
2665         * combine.c (simplify_set): Likewise.
2666         * resource.c (find_dead_or_set_registers, mark_set_resources):
2667         Likewise.
2668         * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
2669         copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
2670         (init_emit_regs): Initialize simple_return_rtx.
2671         * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
2672         force_nonfallthru_and_redirect.
2673         * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
2674         (GR_SIMPLE_RETURN): New enum value.
2675         (simple_return_rtx): New macro.
2676         * basic-block.h (force_nonfallthru_and_redirect): Adjust
2677         declaration.
2678         * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
2679         argument.  All callers changed.  Be careful about what kinds of
2680         returnjumps to generate.
2681         * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
2682         ix86_pad_short_function): Likewise.
2683         * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
2684         of return.
2685         * config/mips/mips.md (any_return): New code_iterator.
2686         (optab): Add cases for return and simple_return.
2687         (return): Expand to a simple_return.
2688         (simple_return): New pattern.
2689         (*<optab>, *<optab>_internal for any_return): New patterns.
2690         (return_internal): Remove.
2691         * config/mips/mips.c (mips_expand_epilogue): Make the last insn
2692         a simple_return_internal.
2693
2694 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
2695
2696         * config/i386/sse.md (*absneg<mode>2): Fix split condition.
2697         (vec_extract_lo_<mode>): Prevent both operands in memory.
2698         (vec_extract_lo_v16hi): Ditto.
2699         (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
2700
2701 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
2702
2703         * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
2704         (*sse2_mulv4si3): Ditto.
2705         (mulv2di3): Ditto.
2706         * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
2707         notes to REG_EQUAL.
2708
2709 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
2710
2711         PR target/50202
2712         * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
2713         when all outputs are unused.
2714         (sse4_2_pcmpistr): Ditto.
2715
2716 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
2717
2718         * config/i386/i386.md (round<mode>2): New expander.
2719         * config/i386/i386.c (enum ix86_builtins): Add
2720         IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
2721         (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
2722         descriptions.
2723         (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
2724         (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
2725
2726 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
2727
2728         PR middle-end/50083
2729         * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
2730         only when TARGET_C99_FUNCTIONS.
2731         <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
2732         <BUILT_IN_RINT{,F,L}>: Ditto.
2733
2734 2011-08-26  Michael Matz  <matz@suse.de>
2735             Jakub Jelinek  <jakub@redhat.com>
2736
2737         PR lto/50165
2738         * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
2739         don't call strlen twice, use memcpy.
2740
2741 2011-08-26  H.J. Lu  <hongjiu.lu@intel.com>
2742
2743         * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
2744         * config/i386/bmiintrin.h: Likewise.
2745         * config/i386/lzcntintrin.h: Likewise.
2746
2747         * config/i386/immintrin.h: Include <lzcntintrin.h>,
2748         <bmiintrin.h> and <bmi2intrin.h>.
2749
2750 2011-08-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2751
2752         PR target/50166
2753         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
2754         * configure: Regenerate.
2755
2756 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
2757
2758         PR c/50179
2759         * c-typeck.c (c_process_expr_stmt): Skip over nops and
2760         call mark_exp_read even if exprv is ADDR_EXPR.
2761
2762 2011-08-26  Richard Sandiford  <richard.sandiford@linaro.org>
2763
2764         * df-problems.c (df_note_bb_compute): Pass uses rather than defs
2765         to df_set_dead_notes_for_mw.
2766
2767 2011-08-26  Richard Guenther  <rguenther@suse.de>
2768
2769         * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
2770
2771 2011-08-26  Zdenek Dvorak  <ook@ucw.cz>
2772             Tom de Vries  <tom@codesourcery.com>
2773
2774         * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
2775         (struct ivopts_data): Add loop_single_exit_p field.
2776         (niter_for_exit): Change parameter desc_p into return value.  Return
2777         desc if desc->may_be_zero.  Free desc if unused.
2778         (niter_for_single_dom_exit): Change return type.
2779         (find_induction_variables): Handle changed return type of
2780         niter_for_single_dom_exit.  Dump may_be_zero.
2781         (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
2782         (set_use_iv_cost): Add and handle comp parameter.
2783         (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
2784         comp argument to set_use_iv_cost.
2785         (strip_wrap_conserving_type_conversions, expr_equal_p)
2786         (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
2787         (may_eliminate_iv): Add comp parameter.  Handle new return type of
2788         niter_for_exit.  Use loop_single_exit_p.  Use iv_elimination_compare_lt.
2789         (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
2790         and may_eliminate_iv.
2791         (rewrite_use_compare): Move call to iv_elimination_compare to ...
2792         (may_eliminate_iv): Here.
2793         (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
2794
2795 2011-08-26  Tom de Vries  <tom@codesourcery.com>
2796
2797         * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
2798         accessing TREE_TYPE.
2799
2800 2011-08-26  Jiangning Liu  <jiangning.liu@arm.com>
2801
2802         * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
2803         (*ior_scc_scc_cmp): Likewise
2804         (*and_scc_scc): Likewise.
2805         (*and_scc_scc_cmp): Likewise.
2806         (*and_scc_scc_nodom): Likewise.
2807         (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
2808
2809 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
2810
2811         * rtlanal.c (nonzero_bits1): Handle CLRSB.
2812
2813 2011-08-26  Richard Guenther  <rguenther@suse.de>
2814
2815         * expr.c (string_constant): Handle &MEM_REF.
2816
2817 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
2818
2819         * config/arm/arm.c (struct four_ints): New type.
2820         (count_insns_for_constant): Delete function.
2821         (find_best_start): Delete function.
2822         (optimal_immediate_sequence): New function.
2823         (optimal_immediate_sequence_1): New function.
2824         (arm_gen_constant): Move constant splitting code to
2825         optimal_immediate_sequence.
2826         Rewrite constant negation/invertion code.
2827
2828 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
2829
2830         * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
2831         * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
2832         Remove prototype. Remove static function type.
2833         * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
2834         Add arch attribute.
2835         * config/arm/constraints.md (Pj, PJ): New constraints.
2836
2837 2011-08-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2838
2839         * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
2840         ("cortex_a9_multiply_long"): New and use above.  Handle all
2841         long multiply cases.
2842         ("cortex_a9_multiply"): Handle smmul and smmulr.
2843         ("cortex_a9_mac"): Handle smmla.
2844
2845 2011-08-25  Richard Henderson  <rth@redhat.com>
2846
2847         PR 50132
2848         PR 49864
2849         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
2850         non-constant stack adjutment.
2851         * expr.c (find_args_size_adjust): Break out from ...
2852         (fixup_args_size_notes): ... here.
2853         * rtl.h (find_args_size_adjust): Declare.
2854
2855 2011-08-25  Uros Bizjak  <ubizjak@gmail.com>
2856
2857         * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
2858         sse4 and sse4_noavx.
2859         (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
2860         (*pushdf_rex64): Change Y2 register constraint to x.
2861         (*movdf_internal_rex64): Ditto.
2862         (*zero_extendsidi2_rex64): Ditto.
2863         (*movdi_internal): Change Y2 register constraint to x
2864         and update "isa" attribute.
2865         (*pushdf): Ditto.
2866         (*movdf internal): Ditto.
2867         (zero_extendsidi2_1): Ditto.
2868         (*truncdfdf_mixed): Ditto.
2869         (*truncxfdf2_mixed): Ditto.
2870         * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
2871         register constraint to x.
2872         (*movv2sf_internal_rex64): Ditto.
2873         (*mov<mode>_internal): Change Y2 register constraint to x
2874         and add "isa" attribute.
2875         (*movv2sf_internal): Ditto.
2876         (*vec_extractv2si_1): Ditto.
2877         * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
2878         constraints to x and update "isa" attribute.
2879         (*vec_interleave_highv2df): Change Y3 registerconstraint
2880         to x and update "isa" attribute.
2881         (*vec_interleave_lowv2df): Ditto.
2882         (*vec_concatv2df): Change Y2 register constraint to x and
2883         update "isa" attribute.
2884         (sse2_loadld): Ditto.
2885         (*vec_extractv2di_1): Ditto.
2886         (*vec_dupv4si): Ditto.
2887         (*vec_dupv2di): Ditto.
2888         (*vec_concatv4si): Ditto.
2889         (vec_concatv2di): Ditto.
2890         * config/i386/constraints.md (Y2): Remove.
2891         (Y3): Ditto.
2892         (Y4): Ditto.
2893
2894 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
2895
2896         * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
2897         dump_def_use_chain): Don't declare.
2898         (mark_conflict, create_new_chain): Move before users.
2899         (regrename_optimize): Move to near end of file.
2900
2901 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
2902
2903         * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
2904         (secondary_input_reload_class): Remove Prototype.
2905         * config/avr/avr.c (byte_immediate_operand): Remove Function.
2906         * config/avr/avr.md (setmemhi): Use u8_operand.
2907         (strlenhi): Use const0_rtx for comparison.
2908         * config/avr/avr.h (avr_reg_order): Remove Declaration.
2909
2910 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
2911
2912         * config/avr/avr.c (reg_class_tab): Make local to
2913         avr_regno_reg_class.  Return smallest register class available.
2914
2915 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
2916
2917         * config/avr/avr.c (STR_PREFIX_P): New Define.
2918         (avr_asm_declare_function_name): Use it.
2919         (avr_asm_named_section): Use it.
2920         (avr_section_type_flags): Use it.
2921
2922 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
2923
2924         * doc/md.texi (automata_option): Document collapse-ndfa.
2925         * genautomata.c (COLLAPSE_OPTION): New macro.
2926         (collapse_flag): New static variable.
2927         (struct description): New member normal_decls_num.
2928         (struct automaton): New members advance_ainsn and collapse_ainsn.
2929         (gen_automata_option): Check for COLLAPSE_OPTION.
2930         (collapse_ndfa_insn_decl): New static variable.
2931         (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
2932         (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
2933         (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
2934         necessary.  Use normal_decls_num rather than decls_num, remove
2935         test for special decls.
2936         (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
2937         (make_automaton); Likewise.  Use the new advance_cycle_insn member
2938         of struct automaton.
2939         (create_composed_state): Disallow advance-cycle arcs if collapse_flag
2940         is set.
2941         (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
2942         transition.  Create the necessary transitions for it.
2943         (create_ainsns): Return void.  Take an automaton_t argument, and
2944         update its ainsn_list, advance_ainsn and collapse_ainsn members.  All
2945         callers changed.
2946         (COLLAPSE_NDFA_VALUE_NAME): New macro.
2947         (output_tables): Output code to define it.
2948         (output_internal_insn_code_evaluation): Output code to accept
2949         const0_rtx as collapse-ndfa transition.
2950         (output_default_latencies, output_print_reservation_func,
2951         output_print_description): Reorganize loops to use normal_decls_num
2952         as loop bound; remove special case for advance_cycle_insn_decl.
2953         (initiate_automaton_gen): Handle COLLAPSE_OPTION.
2954         (check_automata_insn_issues): Check for collapse_ainsn.
2955         (expand_automate): Allocate sufficient space.  Initialize
2956         normal_decls_num.
2957
2958 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
2959
2960         * config/avr/avr.md: Fix indentation from r177991.
2961
2962 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
2963
2964         * regrename.c (struct du_head): Remove member terminated.
2965         (create_new_chain): Don't initialize it.
2966         (scan_rtx_reg): Don't set or test it, test the open_chains_set
2967         bitmap instead.
2968         (tick, this_tick): New global variables, moved out of
2969         regrename_optimize.
2970         (current_id, open_chains, closed_chains, open_chains_set,
2971         live_in_chains, live_hard_regs): Reorder declarations.
2972         (dump_def_use_chain): Move function earlier in the file.
2973         (rename_chains): New static function, broken out of
2974         regrename_optimize.
2975         (regrename_optimize): Use it.  Remove #if 0'ed code.
2976
2977 2011-08-25  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
2978
2979         * varasm.c: (default_binds_local_p_1): Commentary typo fix.
2980
2981 2011-08-24  H.J. Lu  <hongjiu.lu@intel.com>
2982
2983         PR target/50172
2984         * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
2985
2986 2011-08-24  Richard Guenther  <rguenther@suse.de>
2987
2988         * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
2989         ref in the basic-block case.  Move stripping array-refs
2990         to the place we create an access-function for it.  Remove
2991         bogus stripping down a MEM_REF to its base.
2992
2993 2011-08-24  Richard Guenther  <rguenther@suse.de>
2994
2995         * fold-const.c (fold_comparison): Fold &a < &a + 4 even
2996         with -fno-strict-overflow.
2997
2998 2011-08-24  Richard Guenther  <rguenther@suse.de>
2999
3000         * tree-vectorizer.c (vect_print_dump_info): Avoid the
3001         file and location clutter when dumping to dump files.
3002
3003 2011-08-24  Simon Baldwin  <simonb@google.com>
3004
3005         * gengtype-state.c (write_state): Remove timestamped header line.
3006
3007 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
3008
3009         * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
3010         (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
3011         (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
3012         (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
3013         (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
3014         (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
3015         (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
3016         rules.
3017         (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
3018
3019 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
3020
3021         * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
3022
3023 2011-08-24  Richard Guenther  <rguenther@suse.de>
3024
3025         PR tree-optimization/50067
3026         * tree-data-ref.c (dr_analyze_indices): Do not add an access
3027         function for a MEM_REF base that has no evolution in the loop
3028         nest or that is not analyzable.
3029
3030 2011-08-23  Vladimir Makarov  <vmakarov@redhat.com>
3031
3032         * ira.c (ira_init_register_move_cost): Check small subclasses
3033         through ira_reg_class_max_nregs and ira_available_class_regs.
3034
3035 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
3036
3037         * config/i386/constraints.md (Yp): New register constraint.
3038         * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
3039         Yp register constraint.
3040         (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
3041         (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
3042         (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
3043
3044 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
3045
3046         * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
3047
3048 2011-08-23  Mark Heffernan  <meheff@google.com>
3049
3050         PR middle-end/38509
3051         * common.opt (Wfree-nonheap-object): New option.
3052         * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
3053         * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
3054         to warning.
3055         (expand_builtin): Make warning conditional.
3056
3057 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
3058
3059         * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
3060         (length_immediate): Handle imulx, ishiftx and rotatex.
3061         (imm_disp): Ditto.
3062         (isa): Add bmi2.
3063         (enabled): Handle bmi2.
3064         (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
3065         (*umul<mode><dwi>3): Ditto.  Add imulx BMI2 alternative.
3066         (*bmi2_umulditi3_1): New insn pattern.
3067         (*bmi2_umulsidi3_1): Ditto.
3068         (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
3069         (*bmi2_ashl<mode>3_1): New insn pattern.
3070         (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
3071         (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
3072         (*bmi2_ashlsi3_1_zext): New insn pattern.
3073         (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
3074         (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
3075         (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
3076         (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
3077         (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
3078         flags dependency.
3079         (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
3080         (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
3081         (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
3082         flags dependency.
3083         (*bmi2_rorx<mode>3_1): New insn pattern.
3084         (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
3085         (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
3086         (*rotatert<mode>3_1 splitter): Ditto.
3087         (*bmi2_rorxsi3_1_zext): New insn pattern.
3088         (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
3089         (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
3090         (*rotatertsi3_1_zext splitter): Ditto.
3091
3092 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
3093
3094         * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
3095         (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
3096         (ix86_handle_option): Handle OPT_mbmi2 case.
3097         * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
3098         (x86_64-*-*): Likewise.
3099         * config/i386/bmi2intrin.h: New file.
3100         * config/i386/cpuid.h (bit_BMI2): New.
3101         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3102         BMI2 feature.
3103         * config/i386/i386-c.c (ix86_target_macros_internal):
3104         Conditionally define __BMI2__.
3105         * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
3106         Handle BMI2 option.
3107         (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
3108         (print_reg): New code.
3109         (ix86_print_operand): Likewise.
3110         (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
3111         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
3112         IX86_BUILTIN_PEXT64.
3113         (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
3114         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
3115         IX86_BUILTIN_PEXT64.
3116         * config/i386/i386.h (TARGET_BMI2): New.
3117         * config/i386/i386.md (UNSPEC_PDEP): New.
3118         (UNSPEC_PEXT): Likewise.
3119         (*bmi2_bzhi_<mode>3): Likewise.
3120         (*bmi2_pdep_<mode>3): Likewise.
3121         (*bmi2_pext_<mode>3): Likewise.
3122         * config/i386/i386.opt (mbmi2): New.
3123         * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
3124         is defined.
3125         * doc/extend.texi: Document BMI2 built-in functions.
3126         * doc/invoke.texi: Document -mbmi2.
3127
3128 2011-08-23  Jakub Jelinek  <jakub@redhat.com>
3129
3130         PR middle-end/50161
3131         * simplify-rtx.c (simplify_const_unary_operation): If
3132         op is CONST_INT, don't look at op_mode, but use instead mode.
3133         * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
3134         CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
3135         operation and TRUNCATE/ZERO_EXTEND if needed.
3136         * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
3137         Document that operand mode must be same as operation mode,
3138         or VOIDmode.
3139         * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
3140         *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
3141         *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
3142         *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
3143         use the mode of operand for the operation and add truncate
3144         or zero_extend around if needed.
3145         * config/c6x/c6x.md (ctzdi2): Likewise.
3146         * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
3147
3148 2011-08-12  Michael Matz  <matz@suse.de>
3149
3150         * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
3151         (gimple_expand_cfg): Merge alignment info for coalesced pointer
3152         SSA names.
3153
3154 2011-08-23  Richard Guenther  <rguenther@suse.de>
3155
3156         * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
3157         * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
3158         * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
3159         from ...
3160         * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
3161         (mem_refs_may_alias_p): Adjust.
3162         * tree-data-ref.h (dr_may_alias_p): Adjust.
3163         * tree-data-ref.c: Include tree-affine.h.
3164         (dr_analyze_indices): Do nothing for the non-loop case.
3165         (dr_may_alias_p): Distinguish loop and non-loop case.  Disambiguate
3166         more cases in the non-loop case.
3167         * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
3168         calls to dr_may_alias_p.
3169         (write_alias_graph_to_ascii_ecc): Likewise.
3170         (write_alias_graph_to_ascii_dot): Likewise.
3171         (build_alias_set_optimal_p): Likewise.
3172
3173 2011-08-23  Richard Guenther  <rguenther@suse.de>
3174
3175         PR tree-optimization/50162
3176         * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
3177
3178 2011-08-23  Richard Guenther  <rguenther@suse.de>
3179
3180         * tree-data-ref.c (dr_analyze_indices): Add comments, handle
3181         REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
3182         (create_data_ref): Also dump access functions for the created data-ref.
3183
3184 2011-08-22  Uros Bizjak  <ubizjak@gmail.com>
3185             Kirill Yukhin  <kirill.yukhin@intel.com>
3186
3187         PR target/50155
3188         * config/i386/sse.md (VI_AVX2): New.
3189         (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
3190         (*<plusminus_insn><mode>3): Ditto.
3191         (<sse2_avx2>_andnot<mode>3): Ditto.
3192         (*andnot<mode>3): Fix order of cond operands.
3193         Add asserts for correct TARGET_xxx.
3194         (*<any_logic:code><mode>3): Ditto.
3195
3196 2011-08-22  Anatoly Sokolov  <aesok@post.ru>
3197
3198         * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
3199         * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
3200         * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
3201         regclass argument type to reg_class_t. Change 'max' and 'v' vars
3202         and return types to unsigned char. Use reg_class_contents instead
3203         of class_contents.
3204         (TARGET_CLASS_MAX_NREGS): Define.
3205
3206 2011-08-22  Bernd Schmidt  <bernds@codesourcery.com>
3207
3208         * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
3209         to make computed_jump_p return true.
3210
3211 2011-08-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3212
3213         * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
3214         (PICFLAG_FOR_TARGET): Substitute.
3215         * aclocal.m4: Regenerate.
3216         * configure: Regenerate.
3217
3218 2011-08-22  Dodji Seketeli  <dodji@redhat.com>
3219
3220         * c-family/c-pch.c (c_common_read_pch): Re-set line table right
3221         after reading in the pch.
3222
3223 2011-08-22  H.J. Lu  <hongjiu.lu@intel.com>
3224
3225         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
3226         * configure: Regenerated.
3227
3228 2011-08-22  Jakub Jelinek  <jakub@redhat.com>
3229
3230         PR tree-optimization/50133
3231         * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
3232         from stmt instead of some statement around gsi.
3233
3234         PR middle-end/50141
3235         * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
3236         innerdecl is a VAR_DECL.
3237
3238 2011-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
3239
3240         * config/i386/avx2intrin.h: New file.
3241         * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
3242         PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
3243         V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
3244         V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
3245         V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
3246         V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
3247         V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
3248         V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
3249         V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
3250         V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
3251         V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
3252         V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
3253         V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
3254         V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
3255         V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
3256         V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
3257         V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
3258         V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
3259         VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
3260         VOID_FTYPE_PV8SI_V8SI_V8SI,
3261         V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
3262         V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
3263         V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
3264         V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
3265         V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
3266         V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
3267         V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
3268         V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
3269         V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
3270         V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
3271         V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
3272         V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
3273         V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
3274         V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
3275         V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
3276         V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
3277         V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
3278         V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
3279         V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
3280         V4DI_FTYPE_V4DI_INT_CONVERT,
3281         V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
3282         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
3283         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
3284         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
3285         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
3286         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
3287         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
3288         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
3289         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
3290         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
3291         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
3292         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
3293         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
3294         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
3295         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
3296         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
3297         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
3298         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
3299         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
3300         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
3301         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
3302         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
3303         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
3304         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
3305         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
3306         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
3307         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
3308         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
3309         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
3310         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
3311         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
3312         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
3313         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
3314         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
3315         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
3316         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
3317         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
3318         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
3319         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
3320         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
3321         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
3322         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
3323         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
3324         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
3325         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
3326         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
3327         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
3328         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
3329         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
3330         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
3331         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
3332         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
3333         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
3334         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
3335         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
3336         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
3337         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
3338         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
3339         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
3340         IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
3341         IX86_BUILTIN_VBROADCASTSS_PS256,
3342         IX86_BUILTIN_VBROADCASTSD_PD256,
3343         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
3344         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
3345         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
3346         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
3347         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
3348         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
3349         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
3350         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
3351         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
3352         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
3353         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
3354         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
3355         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
3356         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
3357         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
3358         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
3359         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
3360         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
3361         IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
3362         IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
3363         IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
3364         IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
3365         IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
3366         IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
3367         IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
3368         IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
3369         (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
3370         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
3371         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
3372         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
3373         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
3374         (bdesc_args): Add  IX86_BUILTIN_MPSADBW256,
3375         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
3376         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
3377         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
3378         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
3379         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
3380         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
3381         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
3382         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
3383         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
3384         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
3385         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
3386         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
3387         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
3388         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
3389         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
3390         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
3391         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
3392         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
3393         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
3394         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
3395         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
3396         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
3397         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
3398         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
3399         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
3400         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
3401         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
3402         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
3403         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
3404         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
3405         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
3406         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
3407         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
3408         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
3409         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
3410         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
3411         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
3412         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
3413         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
3414         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
3415         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
3416         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
3417         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
3418         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
3419         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
3420         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
3421         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
3422         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
3423         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
3424         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
3425         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
3426         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
3427         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
3428         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
3429         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
3430         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
3431         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
3432         IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
3433         IX86_BUILTIN_VBROADCASTSD_PD256,
3434         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
3435         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
3436         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
3437         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
3438         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
3439         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
3440         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
3441         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
3442         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
3443         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
3444         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
3445         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
3446         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
3447         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
3448         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
3449         IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
3450         IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
3451         IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
3452         IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
3453         IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
3454         IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
3455         IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
3456         IX86_BUILTIN_GATHERDIV8SI.
3457         (ix86_preferred_simd_mode): Support AVX2 modes.
3458         (ix86_expand_args_builtin): Support AVX2 builtins.
3459         (ix86_expand_special_args_builtin): Likewise.
3460         (ix86_expand_builtin): Likewise.
3461         * config/i386/i386.md (UNSPEC_VPERMSI): New.
3462         (UNSPEC_VPERMDF): Likewise.
3463         (UNSPEC_VPERMSF): Likewise.
3464         (UNSPEC_VPERMDI): Likewise.
3465         (UNSPEC_VPERMTI): Likewise.
3466         (UNSPEC_GATHER): Likewise.
3467         (ssemodesuffix): Extend.
3468         * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
3469         is defined.
3470         * config/i386/predicates.md (const1248_operand): New.
3471         * config/i386/sse.md (VI1_AVX2): New mode iterator.
3472         (VI2_AVX2): Likewise.
3473         (VI4_AVX2): Likewise.
3474         (VI8_AVX2): Likewise.
3475         (VIMAX_AVX2): Likewise.
3476         (SSESCALARMODE): Likewise.
3477         (VI12_AVX2): Likewise.
3478         (VI24_AVX2): Likewise.
3479         (VI124_AVX2): Likewise.
3480         (VI248_AVX2): Likewise.
3481         (VI48_AVX2): Likewise.
3482         (VI4SD_AVX2): Likewise.
3483         (V48_AVX2): Likewise.
3484         (AVX256MODE2P): Likewise.
3485         (AVXMODE48P_DI): Likewise.
3486         (sse2_avx2): New mode attribute.
3487         (ssse3_avx2): Likewise.
3488         (sse4_1_avx2): Likewise.
3489         (avx_avx2): Likewise.
3490         (ssebytemode): Likewise.
3491         (AVXTOSSEMODE): Likewise.
3492         (AVXMODE48P_DI): Likewise.
3493         (gthrfirstp): Likewise.
3494         (gthrlastp): Likewise.
3495         (lshift): New code_iterator
3496         (lshift): New code attribute.
3497         (lshift): Likewise.
3498         (ssescalarmodesuffix): Update.
3499         (sseunpackmode): Likewise.
3500         (ssepackmode): Likewise.
3501         (avx2_vec_dupv4sf): New insn pattern.
3502         (avx2_vec_dupv8sf): Likewise.
3503         (avx2_interleave_highv4di): Likewise.
3504         (avx2_interleave_lowv4di): Likewise.
3505         (avx2_umulv4siv4di3): Likewise
3506         (*avx2_umulv4siv4di3): Likewise
3507         (avx2_pmaddwd): Likewise.
3508         (*avx2_pmaddwd): Likewise.
3509         (avx2_lshrqv4di3): Likewise.
3510         (avx2_lshlqv4di3): Likewise.
3511         (avx2_lshl<mode>3): Likewise.
3512         (avx2_<umaxmin:code><mode>3): Likewise.
3513         (*avx2_<umaxmin:code><mode>3): Likewise.
3514         (avx2_<smaxmin:code><mode>3): Likewise.
3515         (*avx2_<smaxmin:code><mode>3): Likewise.
3516         (avx2_eq<mode>3): Likewise.
3517         (*avx2_eq<mode>3): Likewise.
3518         (avx2_gt<mode>3): Likewise.
3519         (avx2_interleave_highv32qi): New.
3520         (avx2_interleave_lowv32qi): Likewise.
3521         (avx2_interleave_highv16hi): Likewise.
3522         (avx2_interleave_lowv16hi): Likewise.
3523         (avx2_interleave_highv8si): Likewise.
3524         (avx2_interleave_lowv8si): Likewise.
3525         (avx2_pshufd): Likewise.
3526         (avx2_pshufd_1): Likewise.
3527         (avx2_pshuflwv3): Likewise.
3528         (avx2_pshuflw_1): Likewise.
3529         (avx2_pshufhwv3): Likewise.
3530         (avx2_pshufhw_1): Likewise.
3531         (avx2_uavgv32qi3): Likewise.
3532         (*avx2_uavgv32qi3): Likewise.
3533         (avx2_uavgv16hi3): Likewise.
3534         (*avx2_uavgv16hi3): Likewise.
3535         (avx2_pmovmskb): Likewise.
3536         (avx2_phaddwv16hi3): Likewise.
3537         (avx2_phadddv8si3): Likewise.
3538         (avx2_phaddswv16hi3): Likewise.
3539         (avx2_phsubwv16hi3): Likewise.
3540         (avx2_phsubdv8si3): Likewise.
3541         (avx2_phsubswv16hi3): Likewise.
3542         (avx2_pmaddubsw256): Likewise.
3543         (avx2_umulhrswv16hi3): Likewise.
3544         (*avx2_umulhrswv16hi3): Likewise.
3545         (avx2_packusdw): Likewise.
3546         (avx2_pblendd<mode>): Likewise.
3547         (avx2_<code>v16qiv16hi2): Likewise.
3548         (avx2_<code>v8qiv8si2): Likewise.
3549         (avx2_<code>v8hiv8si2): Likewise.
3550         (avx2_<code>v4qiv4di2): Likewise.
3551         (avx2_<code>v4hiv4di2): Likewise.
3552         (avx2_<code>v4siv4di2): Likewise.
3553         (avx2_pbroadcast<mode>): Likewise.
3554         (avx2_permvarv8si): Likewise.
3555         (avx2_permv4df): Likewise.
3556         (avx2_permvarv8sf): Likewise.
3557         (avx2_permv4di): Likewise.
3558         (avx2_permv2ti): Likewise.
3559         (avx2_vec_dupv4df): Likewise.
3560         (avx2_vbroadcasti128_<mode>): Likewise.
3561         (avx2_vec_set_lo_v4di): Likewise.
3562         (avx2_vec_set_hi_v4di): Likewise.
3563         (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
3564         (avx2_extracti128): Likewise.
3565         (avx2_inserti128): Likewise.
3566         (avx2_ashrvv8si): Likewise.
3567         (avx2_ashrvv4si): Likewise.
3568         (avx2_<lshift>vv8si): Likewise.
3569         (avx2_<lshift>v<mode>): Likewise.
3570         (avx2_<lshift>vv2di): Likewise.
3571         (avx2_gathersi<mode>): Likewise.
3572         (*avx2_gathersi<mode>): Likewise.
3573         (avx2_gatherdi<mode>): Likewise.
3574         (*avx2_gatherdi<mode>): Likewise.
3575         (avx2_gatherdi<mode>256): Likewise.
3576         (*avx2_gatherdi<mode>256): Likewise.
3577         (<plusminus_insn><mode>3): Use VI mode iterator.
3578         (*<plusminus_insn><mode>3): Use VI mode iterator.
3579         (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
3580         sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
3581         (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
3582         *sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
3583         (mul<mode>3): Rename from mulv8hi3.  Use VI2_AVX2 mode iterator.
3584         (*mul<mode>3): Rename from *mulv8hi3.  Use VI2_AVX2 mode iterator.
3585         (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
3586         Use VI2_AVX2 mode iterator.
3587         (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
3588         Use VI2_AVX2 mode iterator.
3589         (mul<mode>3): Rename from mulv4si3.  Use VI4_AVX2 mode iterator.
3590         (*mul<mode>3): Rename from *mulv4si3.  Use VI4_AVX2 mode iterator.
3591         (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
3592         Use VI4_AVX2 mode iterator.
3593         (ashr<mode>3): Use VI24_AVX2 mode iterator.
3594         (lshr<mode>3): Use VI248_AVX2 mode iterator.
3595         (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
3596         Use VIMAX_AVX2 mode iterator.
3597         (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
3598         Use VI mode iterator.
3599         (*andnot<mode>3): Update for AVX2.
3600         (*<any_logic:code><mode>3): Likewise.
3601         (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
3602         Use VI1_AVX mode iterator.
3603         (<sse2_avx2>_packssdw):  Rename from sse2_packssdw.
3604         Use VI2_AVX mode iterator.
3605         (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
3606         Use VI1_AVX mode iterator.
3607         (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
3608         Use VI8_AVX2 mode iterator.
3609         (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
3610         Use VI1_AVX2 mode iterator.
3611         (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
3612         Use VI124_AVX2 mode iterator.
3613         (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
3614         Use SSESCALARMODE mode iterator.
3615         (abs<mode>2): Use VI124_AVX2 mode iterator.
3616         (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
3617         Use VI8_AVX2 mode iterator.
3618         (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
3619         Use VI1_AVX2 mode iterator.
3620         (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
3621         Use VI1_AVX2 mode iterator.
3622         (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
3623         Use VI2_AVX2 mode iterator.
3624         (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
3625         avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
3626         (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
3627         avx_maskstore<ssemodesuffix><avxsizesuffix>.
3628         Use V48_AVX2 mode iterator.
3629         * doc/extend.texi: Document AVX2 built-in functions.
3630         * doc/invoke.texi: Document -mavx2.
3631
3632 2011-08-22  Matthias Klose <doko@debian.org>
3633
3634         Revert:
3635         2011-07-11  Arthur Loiret  <aloiret@debian.org>
3636                     Matthias Klose <doko@debian.org>
3637         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
3638         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
3639         convention.
3640         * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
3641
3642 2011-08-22  Mikael Pettersson  <mikpe@it.uu.se>
3643
3644         PR bootstrap/50146
3645         * ira-color.c (assign_hard_reg): Move saved_nregs declaration
3646         to #ifndef HONOR_REG_ALLOC_ORDER block.
3647
3648 2011-08-21  Richard Henderson  <rth@redhat.com>
3649
3650         * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
3651         * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
3652         * resource.c (next_insn_no_annul): Likewise.
3653         (mark_set_resources): Likewise.
3654         * reorg.c (delete_from_delay_slot): Likewise.
3655         (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
3656         (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
3657
3658 2011-08-21  Uros Bizjak  <ubizjak@gmail.com>
3659
3660         * config/i386/i386.md (any_div): Remove.
3661         (sgnprefix): Update for removal.
3662         (u): Ditto.
3663
3664 2011-08-20  Vladimir Makarov  <vmakarov@redhat.com>
3665
3666         * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
3667         for ira_reg_class_max_nregs.  Increase pressure by 1.
3668         (mark_pseudo_regno_subword_dead): Use allocno class
3669         for ira_reg_class_max_nregs.
3670
3671 2011-08-20  Richard Henderson  <rth@redhat.com>
3672
3673         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
3674         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
3675         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
3676         config/c6x/ltf.c: Adjust include path for soft-fp.
3677
3678 2011-08-20  H.J. Lu  <hongjiu.lu@intel.com>
3679
3680         PR other/46770
3681         * config.gcc (tm_file): Add initfini-array.h if
3682         .init_arrary/.fini_array are supported.
3683
3684         * crtstuff.c: Don't generate .ctors nor .dtors sections if
3685         USE_INITFINI_ARRAY is defined.
3686
3687         * output.h (default_elf_init_array_asm_out_constructor): New.
3688         (default_elf_fini_array_asm_out_destructor): Likewise.
3689         * varasm.c (elf_init_array_section): Likewise.
3690         (elf_fini_array_section): Likewise.
3691         (get_elf_initfini_array_priority_section): Likewise.
3692         (default_elf_init_array_asm_out_constructor): Likewise.
3693         (default_elf_fini_array_asm_out_destructor): Likewise.
3694
3695         * config/initfini-array.h: New.
3696
3697 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
3698
3699         * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
3700         OK for ST_REGS and FP_REGS before taking those classes into account.
3701
3702 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
3703
3704         * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
3705         before checking for annulled branches.
3706
3707 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
3708
3709         * config/i386/i386.c (ix86_binary_operator_ok): Use
3710         satisfies_constraint_L.
3711
3712 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
3713             Michael Matz  <matz@suse.de>
3714
3715         * config/i386/i386.c (ix86_expand_round_sse4): Expand as
3716         trunc (a + copysign (nextafter (0.5, 0.0), a)).
3717
3718 2011-08-20  Anatoly Sokolov  <aesok@post.ru>
3719
3720         * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
3721         * doc/tm.texi: Regenerate.
3722         * targhooks.c (default_preferred_output_reload_class): Don't use
3723         PREFERRED_OUTPUT_RELOAD_CLASS macro.
3724         * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
3725
3726 2011-08-20  Jakub Jelinek  <jakub@redhat.com>
3727
3728         PR tree-optimization/48739
3729         * tree-ssa.c: Include cfgloop.h.
3730         (execute_update_addresses_taken): When updating ssa, if in loop closed
3731         SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
3732         * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
3733
3734 2011-08-19  Vladimir Makarov  <vmakarov@redhat.com>
3735
3736         PR rtl-optimization/49936
3737         * ira.c (ira_init_register_move_cost): Ignore too small subclasses
3738         for calculation of max register move costs.
3739
3740 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
3741
3742         * c-parser.c (c_parser_postfix_expression): Convert operands of
3743         __builtin_complex to their semantic types.
3744
3745 2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
3746
3747         PR middle-end/49721
3748         * explow.c (convert_memory_address_addr_space): Also permute the
3749         conversion and addition of constant for zero-extend.
3750
3751 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
3752
3753         * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
3754         * doc/extend.texi (__builtin_complex): Document.
3755
3756 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
3757
3758         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
3759         beyond conversions.
3760         (convert_mult_to_widen): Convert constant inputs to the right type.
3761         (convert_plusminus_to_widen): Don't automatically reject inputs that
3762         are not an SSA_NAME.
3763         Convert constant inputs to the right type.
3764
3765 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
3766
3767         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
3768         to the correct type.
3769
3770 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
3771
3772         * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
3773         unsigned inputs of different modes.
3774         (convert_plusminus_to_widen): Likewise.
3775
3776 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
3777
3778         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
3779         'type'.
3780         Use 'type' from caller, not inferred from 'rhs'.
3781         Don't reject non-conversion statements. Do return lhs in this case.
3782         (is_widening_mult_p): Add new argument 'type'.
3783         Use 'type' from caller, not inferred from 'stmt'.
3784         Pass type to is_widening_mult_rhs_p.
3785         (convert_mult_to_widen): Pass type to is_widening_mult_p.
3786         (convert_plusminus_to_widen): Likewise.
3787
3788 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
3789
3790         * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
3791         Ensure the the larger type is the first operand.
3792
3793 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
3794
3795         * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
3796         unsupported unsigned multiplies to signed.
3797         (convert_plusminus_to_widen): Likewise.
3798
3799 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
3800
3801         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
3802         conversion statement separating multiply-and-accumulate.
3803
3804 2011-08-19  Richard Guenther  <rguenther@suse.de>
3805
3806         PR tree-optimization/50067
3807         * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
3808         offset only if we accounted for it.
3809
3810 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
3811
3812         * config/arm/arm.md (maddhidi4): Remove '*' from name.
3813         * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
3814         * optabs.c (find_widening_optab_handler_and_mode): New function.
3815         (expand_widen_pattern_expr): Use find_widening_optab_handler.
3816         (expand_binop_directly): Likewise.
3817         (expand_binop): Likewise.
3818         * optabs.h (find_widening_optab_handler): New macro define.
3819         (find_widening_optab_handler_and_mode): New prototype.
3820         * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
3821         type precision rules.
3822         (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
3823         * tree-ssa-math-opts.c (build_and_insert_cast): New function.
3824         (is_widening_mult_rhs_p): Allow widening by more than one mode.
3825         Explicitly disallow mis-matched input types.
3826         (convert_mult_to_widen): Use find_widening_optab_handler, and cast
3827         input types to fit the new handler.
3828         (convert_plusminus_to_widen): Likewise.
3829
3830 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
3831
3832         * expr.c (expand_expr_real_2): Use widening_optab_handler.
3833         * genopinit.c (optabs): Use set_widening_optab_handler for $N.
3834         (gen_insn): $N now means $a must be wider than $b, not consecutive.
3835         * optabs.c (widened_mode): New function.
3836         (expand_widen_pattern_expr): Use widening_optab_handler.
3837         (expand_binop_directly): Likewise.
3838         (expand_binop): Likewise.
3839         * optabs.h (widening_optab_handlers): New struct.
3840         (optab_d): New member, 'widening'.
3841         (widening_optab_handler): New function.
3842         (set_widening_optab_handler): New function.
3843         * tree-ssa-math-opts.c (convert_mult_to_widen): Use
3844         widening_optab_handler.
3845         (convert_plusminus_to_widen): Likewise.
3846
3847 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
3848
3849         * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
3850         pedantic.
3851         * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
3852         * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
3853
3854 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
3855
3856         * opth-gen.awk: Do not declare target save/restore structures and
3857         functions if IN_RTS defined.
3858
3859 2011-08-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
3860
3861         PR target/49437
3862         * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
3863         when stack was realigned in interrupt handler prologue.
3864
3865 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
3866
3867         * c-decl.c (shadow_tag_warned): Check for _Noreturn.
3868         (quals_from_declspecs): Assert _Noreturn not present.
3869         (grokdeclarator): Handle _Noreturn.
3870         (build_null_declspecs): Initialize noreturn_p.
3871         (declspecs_add_scspec): Handle RID_NORETURN.
3872         * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
3873         (c_parser_attributes): Handle RID_NORETURN.
3874         * c-tree.h (struct c_declspecs): Add noreturn_p.
3875         * ginclude/stdnoreturn.h: New.
3876         * Makefile.in (USER_H): Add stdnoreturn.h.
3877
3878 2011-08-18  Kirill Yukhin  <kirill.yukhin@intel.com>
3879
3880         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
3881         (OPTION_MASK_ISA_AVX_UNSET): Update.
3882         (OPTION_MASK_ISA_AVX2_UNSET): New.
3883         (ix86_handle_option): Handle OPT_mavx2 case.
3884         * config/i386/cpuid.h (bit_AVX2): New.
3885         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3886         AVX2 feature.
3887         * config/i386/i386-c.c (ix86_target_macros_internal):
3888         Conditionally define __AVX2__.
3889         * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
3890         Define "core-avx2" processor alias.  Handle avx2 option.
3891         (ix86_valid_target_attribute_inner_p): Handle avx2 option.
3892         * config/i386/i386.h (TARGET_AVX2): New.
3893         * config/i386/i386.opt (mavx2): New.
3894         * doc/invoke.texi: Document -mavx2.
3895
3896 2011-08-18  Vladimir Makarov  <vmakarov@redhat.com>
3897
3898         PR rtl-optimization/49890
3899         * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
3900         subclasses of class which is superset of a pressure class.
3901
3902 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
3903             Igor Zamyatin <igor.zamyatin@intel.com>
3904
3905         * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
3906         with HOST_WIDE_INT for isa_flag.
3907         (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
3908         isa variables.
3909
3910         * config/i386/i386.c (ix86_target_string): Replace int with
3911         HOST_WIDE_INT for isa.  Use HOST_WIDE_INT_PRINT to print isa.
3912         (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
3913         (pta_flags): Removed.
3914         (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
3915         (pta): Use HOST_WIDE_INT on flags.
3916         (builtin_isa): Use HOST_WIDE_INT on isa.
3917         (ix86_add_new_builtins): Likewise.
3918         (def_builtin): Use HOST_WIDE_INT on mask.
3919         (def_builtin_const): Likewise.
3920         (builtin_description): Likewise.
3921
3922         * config/i386/i386.opt (ix86_isa_flags): Replace int with
3923         HOST_WIDE_INT.
3924         (ix86_isa_flags_explicit): Likewise.
3925         (x_ix86_isa_flags_explicit): Likewise.
3926
3927 2011-08-17  Vladimir Makarov  <vmakarov@redhat.com>
3928
3929         PR rtl-optimization/50107
3930         * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
3931         (ira_hard_reg_in_set_p): New.
3932
3933         * ira-color.c (calculate_saved_nregs): New.
3934         (assign_hard_reg): Use it.  Set up allocated_hard_reg_p for all
3935         hard regs.
3936         (allocno_reload_assign, fast_allocation): Use
3937         ira_hard_reg_set_intersection_p instead of
3938         ira_hard_reg_not_in_set_p.
3939
3940         * ira.c (setup_reg_renumber): Use
3941         ira_hard_reg_set_intersection_p instead of
3942         ira_hard_reg_not_in_set_p.
3943         (setup_allocno_assignment_flags, calculate_allocation_cost): Use
3944         ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
3945
3946         * ira-costs.c (ira_tune_allocno_costs): Use
3947         ira_hard_reg_set_intersection_p instead of
3948         ira_hard_reg_not_in_set_p.
3949
3950 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
3951             Igor Zamyatin <igor.zamyatin@intel.com>
3952
3953         * hwint.h (HOST_WIDE_INT_1): New.
3954
3955         * opt-functions.awk (switch_bit_fields): Initialize the
3956         host_wide_int field.
3957         (host_wide_int_var_name): New.
3958         (var_type_struct): Check and return HOST_WIDE_INT.
3959
3960         * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
3961
3962         * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
3963
3964         * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT.  Properly
3965         check masks for HOST_WIDE_INT.
3966
3967         * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
3968         (option_enabled): Likewise.
3969         (get_option_state): Likewise.
3970
3971         * opts.h (cl_option): Add cl_host_wide_int.  Change var_value
3972         to HOST_WIDE_INT.
3973
3974 2011-08-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3975             Marc Glisse  <marc.glisse@normalesup.org>
3976
3977         PR libstdc++-v3/1773
3978         * target.def (decl_mangling_context): New C++ hook.
3979         * doc/tm.texi: Regenerate.
3980         * config/sol2-cxx.c, config/sol2-stubs.c: New files.
3981         * config/sol2-protos.h: Group by source file.
3982         (solaris_cxx_decl_mangling_context): Declare.
3983         * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
3984         * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
3985         Use $<.
3986         * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
3987         Add sol2-stubs.o to extra_objs.
3988
3989 2011-08-18  Jakub Jelinek  <jakub@redhat.com>
3990
3991         PR target/50009
3992         * stor-layout.c (update_alignment_for_field): Don't ICE on
3993         packed flexible array members if ms_bitfield_layout_p.
3994
3995         PR target/50092
3996         * config/i386/i386.c (assign_386_stack_local): Call validize_mem
3997         on the result before returning it.
3998
3999         PR debug/50017
4000         * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
4001         is a debug stmt, use location of the first non-debug stmt after it.
4002
4003 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
4004
4005         * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
4006         (arm_size_rtx_costs): Likewise.
4007
4008 2011-08-18  Richard Guenther  <rguenther@suse.de>
4009
4010         * tree.h (tree_int_cst_msb): Remove.
4011         * tree.c (tree_int_cst_msb): Likewise.
4012         (tree_int_cst_sign_bit): Move from ...
4013         * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
4014
4015 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
4016
4017         * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
4018         * doc/tm.texi: Regenerate.
4019         * target.def (rtx_costs): Add an opno parameter.
4020         * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
4021         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
4022         * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
4023         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
4024         * cse.c (COST_IN): Add an opno parameter.
4025         (notreg_cost): Likewise.  Update call to rtx_cost.
4026         (COST, fold_rtx): Update accordingly.
4027         * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
4028         * expmed.c (emit_store_flag): Likewise.
4029         * optabs.c (avoid_expensive_constant): Add an opno parameter.
4030         Update call to rtx_cost.
4031         (expand_binop_directly, expand_binop): Likewise.
4032         (expand_twoval_binop, prepare_cmp_insn): Likewise.
4033         * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
4034         (set_src_cost, get_full_set_src_cost): Update accordingly.
4035         * rtlanal.c (rtx_cost): Add an opno parameter.  Update call
4036         to target hook.
4037         (get_full_rtx_cost): Add an opno paramter.  Update calls to rtx_cost.
4038         (default_adress_cost): Update calls to rtx_cost.
4039
4040         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
4041         (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
4042         (arm_rtx_costs): Add an opno parameter.
4043         * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
4044         adjust any recursive rtx-cost calls.
4045         * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
4046         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
4047         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
4048         * config/cris/cris.c (cris_rtx_costs): Likewise.
4049         * config/frv/frv.c (frv_rtx_costs): Likewise.
4050         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
4051         * config/i386/i386.c (ix86_rtx_costs): Likewise.
4052         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
4053         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
4054         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
4055         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
4056         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
4057         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
4058         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
4059         * config/mep/mep.c (mep_rtx_cost): Likewise.
4060         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
4061         * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
4062         (mips_zero_extend_cost): Add an opno parameter.
4063         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
4064         * config/mn10300/mn10300.c (mn10300_address_cost): Update call
4065         to rtx_cost.
4066         (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
4067         rtx-cost calls.
4068         * config/pa/pa.c (hppa_rtx_costs): Likewise.
4069         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
4070         * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
4071         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
4072         (rs6000_debug_rtx_costs): Likewise.
4073         * config/s390/s390.c (s390_rtx_costs): Likewise.
4074         * config/score/score-protos.h (score_rtx_costs): Likewise.
4075         * config/score/score.c (score_rtx_costs): Likewise.
4076         * config/sh/sh.c (andcosts): Update call to rtx_cost.
4077         (sh_rtx_costs): Add an opno parameter.
4078         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
4079         * config/spu/spu.c (spu_rtx_costs): Likewise.
4080         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
4081         * config/v850/v850.c (v850_rtx_costs): Likewise.
4082         * config/vax/vax.c (vax_rtx_costs): Likewise.
4083         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
4084
4085 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
4086
4087         * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
4088         * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
4089         rtx_cost.
4090         * calls.c (precompute_register_parameters): Likewise.
4091         * combine.c (expand_compound_operation, make_extraction): Likewise.
4092         (force_to_mode, distribute_and_simplify_rtx): Likewise.
4093         * dse.c (find_shift_sequence): Likewise.
4094         * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
4095         * expr.c (compress_float_constant): Likewise.
4096         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
4097         * gcse.c (want_to_gcse_p): Likewise.
4098         * ifcvt.c (noce_try_sign_mask): Likewise.
4099         * loop-doloop.c (doloop_optimize): Likewise.
4100         * loop-invariant.c (create_new_invariant): Likewise.
4101         * optabs.c (avoid_expensive_constant): Likewise.
4102         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
4103         (try_replace_in_use, reload_cse_move2add): Likewise.
4104         * reload1.c (calculate_elim_costs_all_insns): Likewise.
4105         (note_reg_elim_costly): Likewise.
4106         * rtlanal.c (insn_rtx_cost): Likewise.
4107         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
4108         * stmt.c (lshift_cheap_p): Likewise.
4109         * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
4110         * config/avr/avr.c (final_prescan_insn): Likewise.
4111         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
4112         * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
4113
4114 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
4115
4116         * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
4117         * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
4118         * cfgloopanal.c (seq_cost): Likewise.
4119         * loop-invariant.c (create_new_invariant): Likewise.
4120         * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
4121         (reload_cse_move2add): Use get_full_set_rtx_cost.
4122
4123 2011-08-18  Richard Guenther  <rguenther@suse.de>
4124
4125         * expr.c (get_inner_reference): Fix typo in last change.
4126
4127 2011-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
4128             Joseph Myers  <joseph@codesourcery.com>
4129
4130         PR tree-optimization/49963
4131         * hwint.c (absu_hwi): Define.
4132         * hwint.h (absu_hwi): Declare.
4133         * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
4134         of abs_hwi.
4135         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4136         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
4137
4138 2011-08-18  Richard Guenther  <rguenther@suse.de>
4139
4140         * expr.c (get_inner_reference): Sign-extend the constant
4141         twos-complement offset before doing arbitrary precision
4142         arithmetic on it.
4143         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
4144         (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
4145         to get_constraint_for_ptr_offset.
4146
4147 2011-08-17  Kaz Kojima  <kkojima@gcc.gnu.org>
4148
4149         PR target/50068
4150         * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
4151
4152 2011-08-17  Richard Guenther  <rguenther@suse.de>
4153
4154         * tree.h (convert_to_ptrofftype_loc): New function.
4155         (convert_to_ptrofftype): Define.
4156         * builtins.c (expand_builtin_bzero): Use size_type_node.
4157         (fold_builtin_bzero): Likewise.
4158         (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
4159         * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
4160         * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
4161         (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
4162         * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
4163         * fold-const.c (build_range_check): Negate using the original type.
4164         (fold_unary_loc): Use fold_build_pointer_plus_loc.
4165         * gimple-fold.c (gimple_adjust_this_by_delta): Use
4166         convert_to_ptrofftype.
4167         * gimplify.c (gimplify_self_mod_expr): Likewise.
4168         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
4169         (graphite_create_new_loop_guard): Likewise.
4170         * graphite-sese-to-poly.c (my_long_long): Remove.
4171         (scop_ivs_can_be_represented): Adjust.
4172         * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
4173         * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
4174         * tree-loop-distribution.c (build_size_arg_loc): Use
4175         size_type_node.
4176         (generate_memset_zero): Simplify.
4177         * tree-mudflap.c: Use fold_convert, not convert.
4178         * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
4179         its own type.
4180         (determine_offset): Likewise for DR_STEP.
4181         (valid_initializer_p): Likewise.
4182         * tree-profile.c (prepare_instrumented_value): Convert the pointer
4183         to an integer type of same size.
4184         * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
4185         to sizetype without need.
4186         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
4187         * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
4188         * tree-ssa-loop-manip.c (create_iv): Likewise.
4189         (determine_exit_conditions): Adjust comment.
4190         * tree-ssa-pre.c (create_expression_by_pieces): Use
4191         convert_to_ptrofftype.
4192         * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
4193         * varasm.c (array_size_for_constructor): Compute using double_ints.
4194
4195 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4196
4197         * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
4198         when generating an integer result where possible.  Short-cut
4199         comparison against 0 also for QImode.
4200
4201 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4202
4203         * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
4204         * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
4205         prototype.
4206         * config/spu/spu.c (spu_legitimize_reload_address): New function.
4207         (spu_legitimate_address_p): Do not check displacement if the base
4208         is an eliminable stack register.
4209
4210 2011-08-16  Anatoly Sokolov  <aesok@post.ru>
4211
4212         * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
4213         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
4214         * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
4215         m32c_preferred_output_reload_class): Remove.
4216         * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
4217         Change rclass argument and return types to reg_class_t. Use
4218         reg_class_subset_p instead of class_sizes.
4219         (m32c_preferred_output_reload_class): Make static. Change rclass
4220         argument and return types to reg_class_t.
4221         (TARGET_PREFERRED_RELOAD_CLASS,
4222         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4223
4224 2011-08-16  Kai Tietz  <ktietz@redhat.com>
4225
4226         * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
4227
4228 2011-08-16  Richard GUenther  <rguenther@suse.de>
4229
4230         PR tree-optimization/50082
4231         * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
4232         warnings here, instead of ...
4233         (ssa_forward_propagate_and_combine): ... here.
4234         (forward_propagate_into_comparison_1): Adjust.
4235         (forward_propagate_into_comparison): Likewise.
4236         (forward_propagate_into_gimple_cond): Likewise.
4237         (forward_propagate_into_cond): Likewise.
4238
4239 2011-08-16  Andreas Schwab  <schwab@redhat.com>
4240
4241         * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
4242         instead of ggc_alloc_zone_vec_rtvec_def.
4243
4244 2011-08-16  Richard Guenther  <rguenther@suse.de>
4245
4246         * tree.h (ptrofftype_p): New helper function.
4247         * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
4248         offset verification.
4249         (verify_gimple_assign_binary): Likewise.
4250         * tree.c (build2_stat): Likewise.
4251         * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
4252         (reset_evolution_in_loop): Likewise.
4253         * tree-chrec.h (build_polynomial_chrec): Likewise.
4254
4255 2011-08-16  Liang Wang  <lwang1@marvell.com>
4256
4257         * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
4258         ggc_alloc_zone_vec_rtvec_def.
4259
4260 2011-08-16  Richard Guenther  <rguenther@suse.de>
4261
4262         * tree-vrp.c (extract_range_from_multiplicative_op_1): New
4263         helper factored out from ...
4264         (extract_range_from_binary_expr_1): ... here.  Re-structure
4265         to not glob handling too different tree codes.
4266
4267 2011-08-15  Richard Henderson  <rth@redhat.com>
4268
4269         PR middle-end/50006
4270         * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
4271         setting out to include allocate_stack named pattern as well.
4272         * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
4273         * stmt.c (expand_stack_restore): Likewise.
4274
4275 2011-08-15  Richard Guenther  <rguenther@suse.de>
4276
4277         PR middle-end/50082
4278         * fold-const.c (maybe_canonicalize_comparison_1): Properly
4279         convert the modified operand to the other operand type.
4280         (fold_comparison): Call maybe_canonicalize_comparison_1 with
4281         useless conversions stripped from comparison operands.
4282
4283 2011-08-15  Richard Guenther  <rguenther@suse.de>
4284
4285         * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
4286         (extract_range_from_unary_expr_1): Restructure.
4287
4288 2011-08-15  Richard Guenther  <rguenther@suse.de>
4289
4290         PR tree-optimization/50058
4291         * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
4292         copy matching.
4293
4294 2011-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4295
4296         PR target/50022
4297         * config/arm/arm.c (output_move_double): Add 2 parameters
4298         to count the number of insns emitted and whether to emit or not.
4299         Use the flag to decide when to emit and count number of instructions
4300         that will be emitted.
4301         Handle case where output_move_double might be called for calculating
4302         lengths with an invalid constant.
4303         (arm_count_output_move_double_insns): Define.
4304         * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
4305         (output_move_double): Adjust prototype.
4306         * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
4307         output_move_double.
4308         ("*movdi_vfp_cortexa8"): Likewise and add attribute
4309         for ce_count.
4310         * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
4311         ("*movdf_soft_insn"): Likewise.
4312         * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
4313         ("*cirrus_thumb2_movdi"): Likewise.
4314         ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
4315         ("*cirrus_movdf_hard_insn"): Likewise.
4316         * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
4317         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
4318         ("mov<mode>_internal VMMX"): Likewise.
4319         * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
4320
4321 2011-08-14  Uros Bizjak  <ubizjak@gmail.com>
4322
4323         * config/i386/i386.c (ix86_expand_round_sse4): New function.
4324         * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
4325         * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
4326         for TARGET_ROUND.
4327
4328         (rint<mode>2): Simplify TARGET_ROUND check.
4329         (floor<mode>2): Ditto.
4330         (ceil<mode>2): Ditto.
4331         (btrunc<mode>2): Ditto.
4332
4333 2011-08-14  Anatoly Sokolov  <aesok@post.ru>
4334
4335         * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
4336         as mmix_preferred_output_reload_class.
4337
4338 2011-08-14  Georg-Johann Lay  <avr@gjlay.de>
4339
4340         * PR target/49903
4341         * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
4342         (branch_unspec): New insn.
4343         (branch): Beauty farm.
4344         * config/avr/avr.c (compare_condition): Use JUMP_P.  Test SET_SRC
4345         to be IF_THEN_ELSE.
4346         (avr_compare_pattern, avr_reorg_remove_redundant_compare):
4347         New static functions.
4348         (avr_reorg): Use them.  Use next_real_insn instead of NEXT_INSN.
4349         Use CONST_INT_P.  Beauty.
4350
4351 2011-08-12  Richard Henderson  <rth@redhat.com>
4352
4353         PR rtl-opt/49994
4354         * sched-init.h (struct deps_desc): Add sched_before_next_jump.
4355         * sched-deps.c (init_deps): Clear it.
4356         (deps_analyze_insn): Consume it.
4357         (sched_analyze_insn): Fill it.
4358
4359 2011-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4360
4361         PR target/48328
4362         * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
4363         for tbh instructions.
4364
4365 2011-08-12  Diego Novillo  <dnovillo@google.com>
4366
4367         * data-streamer.h (streamer_write_zero): Rename from output_zero.
4368         (streamer_write_uhwi): Rename from lto_output_uleb128.
4369         (streamer_write_hwi): Rename from output_sleb128.
4370         (streamer_write_string): Rename from lto_output_string.
4371         (streamer_string_index): Rename from lto_string_index.
4372         (streamer_write_string_with_length): Rename from
4373         lto_output_string_with_length.
4374         (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
4375         (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
4376         (streamer_read_string): Rename from lto_input_string.
4377         (streamer_read_indexed_string): Rename from input_string_internal.
4378         (streamer_read_uhwi): Rename from lto_input_uleb128.
4379         (streamer_read_hwi): Rename from lto_input_sleb128.
4380         (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
4381         (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
4382         (streamer_write_enum): Rename from lto_output_enum.
4383         (streamer_read_enum): Rename from lto_input_enum.
4384         (streamer_write_record_start): Rename from output_record_start.
4385         (streamer_read_record_start): Rename from input_record_start.
4386         (streamer_write_bitpack): Rename from lto_output_bitpack.
4387         (streamer_read_bitpack): Rename from lto_input_bitpack.
4388         (streamer_write_char_stream): Rename from lto_output_1_stream.
4389         (streamer_read_uchar): Rename from lto_input_1_unsigned.
4390         * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
4391         (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
4392         (streamer_read_string_cst): Rename from input_string_cst.
4393         (streamer_read_chain): Rename from lto_input_chain.
4394         (streamer_alloc_tree): Rename from lto_materialize_tree.
4395         (streamer_read_tree_body): Rename from lto_input_tree_pointers.
4396         (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
4397         (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
4398         (streamer_read_integer_cst): Rename from lto_input_integer_cst.
4399         (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
4400         (streamer_write_chain): Rename from lto_output_chain.
4401         (streamer_write_tree_header): Rename from lto_output_tree_header.
4402         (streamer_pack_tree_bitfields): Rename from pack_value_fields.
4403         (streamer_write_tree_body): Rename from lto_output_tree_pointers.
4404         (streamer_write_integer_cst): Rename from lto_output_integer_cst.
4405         (streamer_write_builtin): Rename from lto_output_builtin_tree.
4406         (streamer_check_handled_ts_structures): Rename from
4407         check_handled_ts_structures.
4408         (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
4409         (streamer_tree_cache_insert_at): Rename from
4410         lto_streamer_cache_insert_at.
4411         (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
4412         (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
4413         (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
4414         (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
4415         (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
4416         * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
4417         (write_identifier): Rename from output_identifier.
4418         (write_ts_common_tree_pointers): Rename from
4419         lto_output_ts_common_tree_pointers.
4420         (write_ts_vector_tree_pointers): Rename from
4421         lto_output_ts_vector_tree_pointers.
4422         (write_ts_complex_tree_pointers): Rename from
4423         lto_output_ts_complex_tree_pointers.
4424         (write_ts_decl_minimal_tree_pointers): Rename from
4425         lto_output_ts_decl_minimal_tree_pointers.
4426         (write_ts_decl_common_tree_pointers): Rename from
4427         lto_output_ts_decl_common_tree_pointers.
4428         (write_ts_decl_non_common_tree_pointers): Rename from
4429         lto_output_ts_decl_non_common_tree_pointers.
4430         (write_ts_decl_with_vis_tree_pointers): Rename from
4431         lto_output_ts_decl_with_vis_tree_pointers.
4432         (write_ts_field_decl_tree_pointers): Rename from
4433         lto_output_ts_field_decl_tree_pointers.
4434         (write_ts_function_decl_tree_pointers): Rename from
4435         lto_output_ts_function_decl_tree_pointers.
4436         (write_ts_type_common_tree_pointers): Rename from
4437         lto_output_ts_type_common_tree_pointers.
4438         (write_ts_type_non_common_tree_pointers): Rename from
4439         lto_output_ts_type_non_common_tree_pointers.
4440         (write_ts_list_tree_pointers): Rename from
4441         lto_output_ts_list_tree_pointers.
4442         (write_ts_vec_tree_pointers): Rename from
4443         lto_output_ts_vec_tree_pointers.
4444         (write_ts_exp_tree_pointers): Rename from
4445         lto_output_ts_exp_tree_pointers.
4446         (write_ts_block_tree_pointers): Rename from
4447         lto_output_ts_block_tree_pointers.
4448         (write_ts_binfo_tree_pointers): Rename from
4449         lto_output_ts_binfo_tree_pointers.
4450         (write_ts_constructor_tree_pointers): Rename from
4451         lto_output_ts_constructor_tree_pointers.
4452         (write_ts_target_option): Rename from lto_output_ts_target_option.
4453         (write_ts_translation_unit_decl_tree_pointers): Rename from
4454         lto_output_ts_translation_unit_decl_tree_pointers.
4455         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
4456         Rename from lto_streamer_cache_add_to_node_array.
4457         (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
4458         (record_common_node): Rename from lto_record_common_node.
4459
4460         * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
4461         declarations.
4462         * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
4463         function.
4464         * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
4465         unused function.
4466         * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
4467         (ipa-reference.o): Likewise.
4468         * lto-section-out.c: Include data-streamer.h.
4469         * ipa-reference.c: Include data-streamer.h.
4470
4471 2011-08-12  Nick Clifton  <nickc@redhat.com>
4472
4473         * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
4474         * doc/md.texi (cmpstrn): Note that the comparison stops if both
4475         fetched bytes are zero.
4476         (cmpstr): Likewise.
4477         (cmpmem): Note that the comparison does not stop if both of the
4478         fetched bytes are zero.
4479
4480 2011-08-12  Uros Bizjak  <ubizjak@gmail.com>
4481
4482         * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
4483         BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
4484         * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
4485         BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
4486         to integer_type_node.
4487         * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
4488         BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
4489         * builtins.c (expand_builtin_in): Ditto.
4490         (mathfn_built_in_1): Ditto.
4491         (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
4492         BUILT_IN_IFLOOR.
4493         (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
4494         BUILT_IN_IROUND.
4495         (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
4496         BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
4497         BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
4498
4499 2011-08-12  Richard Guenther  <rguenther@suse.de>
4500
4501         * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
4502
4503 2011-08-12  Romain Geissler  <romain.geissler@gmail.com>
4504
4505         * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
4506
4507 2011-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
4508
4509         * config/arm/arm.c (get_label_padding): New function.
4510         (create_fix_barrier, arm_reorg): Use it.
4511
4512 2011-08-11  Uros Bizjak  <ubizjak@gmail.com>
4513
4514         PR target/49781
4515         * config/i386/i386.md (*lea_5_zext): New.
4516         (*lea_6_zext): Ditto.
4517         * config/i386/predicates.md (const_32bit_mask): New predicate.
4518         (lea_address_operand): Reject AND.
4519         * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
4520         const_32bit_mask immediate.
4521         (ix86_print_operand_address): Handle AND.
4522         (memory_address_length): Ditto.
4523
4524 2011-08-11  Romain Geissler  <romain.geissler@gmail.com>
4525             Brian Hackett  <bhackett1024@gmail.com>
4526
4527         * plugin.def: Add event for finish_decl.
4528         * plugin.c (register_callback, invoke_plugin_callbacks): Same.
4529         * c-decl.c (finish_decl): Invoke callbacks on above event.
4530         * doc/plugins.texi: Document above event.
4531
4532 2011-08-11  Richard Guenther  <rguenther@suse.de>
4533
4534         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
4535         lookups, make looking through aggregate copies stronger.
4536
4537 2011-08-11  Richard Henderson  <rth@redhat.com>
4538
4539         PR bootstrap/50018
4540         * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
4541
4542 2011-08-11  Richard Guenther  <rguenther@suse.de>
4543
4544         * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
4545         * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
4546         (vrp_visit_stmt): Likewise.
4547
4548 2011-08-11  Richard Guenther  <rguenther@suse.de>
4549
4550         PR middle-end/50040
4551         * gimplify.c (gimplify_modify_expr_complex_part): Mark the
4552         load of the other piece with TREE_NO_WARNING.
4553         * tree-flow.h (warn_uninit): Adjust prototype.
4554         * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
4555         the base variable and the expression that is used separately.
4556         Properly query all TREE_NO_WARNING flags.
4557         (struct walk_data): Remove.
4558         (warn_uninitialized_var): Likewise.
4559         (warn_uninitialized_vars): Do not walk gimple pieces but simply
4560         look at all SSA uses of the statement.  Handle unused memory
4561         separately.
4562         * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
4563
4564 2011-08-11   Kazuhiro Inaoka  <kazuhiro.inaoka.ud@renesas.com>
4565
4566         * config/rx/rx.md (movsicc): Allow register to register transfers.
4567         (*movsicc): Likewise.
4568         (*stcc): Restrict this pattern to EQ and NE compares.
4569         (*stcc_reg): New pattern.  Works for any comparison but only for
4570         register transfers.
4571
4572 2011-08-11   Diego Novillo  <dnovillo@google.com>
4573
4574         * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
4575         Call stream_write_tree instead of output_record_start.
4576         (lto_output_ts_binfo_tree_pointers): Likewise.
4577
4578         * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
4579         Convert it to a macro.
4580         (stream_read_tree): Likewise.
4581
4582         * lto-streamer.h (lto_stream_as_builtin_p): Move ...
4583         * tree-streamer.h (lto_stream_as_builtin_p): ... here.
4584
4585         * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
4586         and tree_read_bitfields.
4587         * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
4588         (lto_write_tree): Call it.
4589         * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
4590         * streamer-hooks.h (struct streamer_hooks): Remove fields
4591         name, is_streamable and alloc_tree. Update all users.
4592         * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
4593         (lto_materialize_tree): ... here.
4594         Handle CALL_EXPR codes.
4595         Remove call to lto_streamer_cache_append.
4596         * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
4597         * tree-streamer.h (tree_read_bitfields): Declare.
4598
4599         * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
4600         (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
4601         * tree-streamer.h (stream_read_tree): New.  Replace all calls
4602         to lto_input_tree with it.
4603         (stream_write_tree): New.  Replace all calls to lto_output_tree,
4604         lto_output_tree_ref and lto_output_tree_or_ref with it.
4605         * lto-streamer-in.c (lto_read_tree): Inline code from
4606         lto_streamer_read_tree.
4607         (lto_input_tree): Move from tree-streamer-in.c.
4608         * lto-streamer-out.c (lto_output_tree_ref): Make static.
4609         Remove handling of NULL values for EXPR.
4610         Do not handle EXPRs that are not indexable.
4611         (lto_write_tree): Move from tree-streamer-out.c.
4612         Inline lto_streamer_write_tree.
4613         (lto_output_tree): Move from tree-streamer-out.c.
4614         If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
4615         * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
4616         (lto_preload_common_nodes): Likewise.
4617         Remove assertions and adjustments for nodes
4618         main_identifier_node, ptrdiff_type_node and fileptr_type_node.
4619         (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
4620         lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
4621         * lto-streamer.h (lto_input_tree): Declare.
4622         (lto_output_tree_ref): Remove.
4623         * streamer-hooks.h (struct streamer_hooks): Remove fields
4624         preload_common_nodes, indexable_with_decls_p,
4625         pack_value_fields, unpack_value_fields and output_tree_header.
4626         Update all users.
4627         * tree-streamer-in.c (lto_materialize_tree): Make extern.
4628         (lto_input_tree_pointers): Likewise.
4629         (lto_read_tree): Move to lto-streamer-in.c.
4630         (lto_input_integer_cst): Make extern.
4631         (lto_get_pickled_tree): Likewise.
4632         (lto_get_builtin_tree): Likewise.
4633         (lto_input_tree): Move to lto-streamer-in.c.
4634         * tree-streamer-out.c (pack_value_fields): Make extern.
4635         (lto_output_tree_or_ref): Remove.  Replace all callers with
4636         calls to stream_write_tree.
4637         (lto_output_builtin_tree): Make extern.
4638         (lto_streamer_write_tree): Inline into lto_write_tree.
4639         (lto_output_tree_pointers): Make extern.
4640         (lto_output_tree_header): Likewise.
4641         (lto_output_integer_cst): Likewise.
4642         (lto_write_tree): Move to lto-streamer-out.c.
4643         (lto_output_tree): Likewise.
4644         * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
4645         (preload_common_nodes): Likewise.
4646         (lto_streamer_cache_create): Call it.
4647         * tree-streamer.h: Include streamer-hooks.h.
4648         (stream_write_tree): New.
4649         (stream_read_tree): New.
4650         (lto_input_tree): Remove.
4651         (lto_materialize_tree): Declare.
4652         (lto_input_tree_pointers): Declare.
4653         (lto_get_pickled_tree): Declare.
4654         (lto_get_builtin_tree): Declare.
4655         (lto_input_integer_cst): Declare.
4656         (lto_output_tree_header): Declare.
4657         (pack_value_fields): Declare.
4658         (lto_output_tree_pointers): Declare.
4659         (lto_output_integer_cst): Declare.
4660         (lto_output_builtin_tree): Declare.
4661
4662 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
4663
4664         * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
4665         only if producer writes to the register given by regno.
4666
4667 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
4668             Alexander Monakov  <amonakov@ispras.ru>
4669
4670         * sched-deps.c (sched_get_condition_with_rev): Rename to ...
4671         (sched_get_condition_with_rev_uncached): ... this.  Factor out
4672         condition caching logic into ...
4673         (sched_get_condition_with_rev): ... this.  Reimplement.  Do not
4674         attempt to use cache for instructions with zero luid.
4675         (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
4676         * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
4677
4678 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
4679
4680         * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
4681         get_seqno_for_a_jump.  Update the caller.
4682         (get_seqno_by_succs): New.  Use it ...
4683         (get_seqno_for_a_jump): ... here to find a seqno if looking at
4684         predecessors was not sufficient.
4685         (get_seqno_by_preds): Include head in iteration range, exclude insn.
4686
4687 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
4688
4689         * sel-sched-ir.c (invalidate_av_set): Remove the assert.
4690
4691 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
4692
4693         * sel-sched-ir.h (register_unavailable_p): Declare.
4694         * sel-sched-ir.c (register_unavailable_p): New.  Use it...
4695         (set_unavailable_target_for_expr): ... here to properly test
4696         availability of a register.
4697         (speculate_expr): Ditto.
4698         * sel-sched.c (substitute_reg_in_expr): Ditto.
4699         (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
4700
4701 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
4702
4703         * sel-sched.c (verify_target_availability): Fix usage of
4704         hard_regno_nregs.
4705
4706 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
4707
4708         * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
4709         recognized by cannot_copy_insn_p hook and volatile instructions.
4710
4711 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
4712
4713         * sel-sched-ir.c (merge_expr_data): Take maximum spec.
4714
4715 2011-08-11  Richard Sandiford  <richard.sandiford@linaro.org>
4716
4717         * doc/md.texi (define_bypass): Say that the instruction names can
4718         be filename-style globs.
4719         * Makefile.in (FNMATCH_H): Define.
4720         (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
4721         * genattrtab.c: Include fnmatch.h.
4722         (bypass_list): Change field name from "insn" to "pattern".
4723         (gen_bypass_1): Update accordingly.
4724         (process_bypasses): Use fnmatch to check for matches between
4725         insn reservations and define_bypasses.
4726         * genautomata.c: Include fnmatch.h.
4727         (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
4728         and out_pattern respectively.
4729         (gen_bypass, insert_bypass): Update accordingly.
4730         (for_each_matching_insn, process_bypass_2, process_bypass_1)
4731         (process_bypass): New functions.
4732         (process_decls): Use process_bypass.  Update after field name changes.
4733
4734 2011-08-11  Georg-Johann Lay  <avr@gjlay.de>
4735
4736         PR target/49687
4737         * config/avr/avr.md (smulqi3_highpart): New insn.
4738         (umulqi3_highpart): New insn.
4739         (*subqi3.ashiftrt7): New insn.
4740         (smulhi3_highpart): New expander.
4741         (umulhi3_highpart): Nex expander.
4742         (*smulhi3_highpart_call): New insn.
4743         (*umulhi3_highpart_call): New insn.
4744         (extend_u): New code attribute.
4745         (extend_prefix): Rename code attribute to extend_su.
4746         * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
4747         widening QI/HI multiply.
4748
4749 2011-08-11  Ira Rosen  <ira.rosen@linaro.org>
4750
4751         PR tree-optimization/50039
4752         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
4753         that DEF_STMT has a stmt_vec_info.
4754
4755 2011-08-10  Richard Guenther  <rguenther@suse.de>
4756
4757         * tree.h (can_trust_pointer_alignment): Remove.
4758         * builtins.c (can_trust_pointer_alignment): Remove.
4759
4760 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4761
4762         * c-typeck.c (scalar_to_vector): New function. Try scalar to
4763         vector conversion.
4764         (stv_conv): New enum for scalar_to_vector return type.
4765         (build_binary_op): Adjust.
4766         * doc/extend.texi: Description of scalar to vector expansion.
4767
4768 2011-08-10  Richard Guenther  <rguenther@suse.de>
4769
4770         * tree.h (get_pointer_alignment): Remove max-align argument.
4771         (get_object_alignment): Likewise.
4772         * builtins.c (get_object_alignment_1): Adjust.
4773         (get_object_alignment): Remove max-align argument.
4774         (get_pointer_alignment): Likewise.
4775         (expand_builtin_strlen): Adjust.
4776         (expand_builtin_memcpy): Likewise.
4777         (expand_builtin_mempcpy_args): Likewise.
4778         (expand_builtin_strncpy): Likewise.
4779         (expand_builtin_memset_args): Likewise.
4780         (expand_builtin_memcmp): Likewise.
4781         (expand_builtin_strcmp): Likewise.
4782         (expand_builtin_strncmp): Likewise.
4783         (get_builtin_sync_mem): Likewise.
4784         (fold_builtin_memset): Likewise.
4785         (fold_builtin_memory_op): Likewise.
4786         (expand_builtin_memory_chk): Likewise.
4787         * emit-rtl.c (get_mem_align_offset): Likewise.
4788         (set_mem_attributes_minus_bitpos): Likewise.
4789         * expr.c (expand_assignment): Likewise.
4790         (expand_expr_real_1): Likewise.
4791         * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
4792         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
4793         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
4794         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
4795         * value-prof.c (gimple_stringops_transform): Likewise.
4796
4797 2011-08-10  Paulo J. Matos  <paulo.matos@csr.com>
4798
4799         * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
4800         * doc/tm.texi: Regenerate.
4801
4802 2011-08-10  Georg-Johann Lay  <avr@gjlay.de>
4803
4804         PR target/29560
4805         * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
4806         (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
4807         (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
4808         Add peephole2 to map ashlhi3 to ashlqi3 if high part of
4809         shift target is unused.
4810
4811 2011-08-10  Richard Guenther  <rguenther@suse.de>
4812
4813         PR tree-optimization/49937
4814         * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
4815         using get_object_alignment_1.
4816
4817 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
4818
4819         * config/i386/i386.c (ix86_emit_i387_round): New function.
4820         * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
4821         * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
4822         Use ix86_emit_i387_round to expand round function for i387 math.
4823         (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
4824         Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
4825
4826 2011-08-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4827
4828         * config/sync.c: Move to ../libgcc.
4829         * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
4830         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
4831         Remove.
4832
4833 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
4834
4835         * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
4836         * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
4837         * config/mmix/mmix.c (mmix_register_move_cost): Make static.
4838         Change 'from' and 'to' arguments type to reg_class_t.
4839         (TARGET_REGISTER_MOVE_COST): Define.
4840
4841 2011-08-09  Vladimir Makarov  <vmakarov@redhat.com>
4842
4843         PR target/50026
4844         Revert:
4845         PR rtl-optimization/49990
4846         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
4847         ignore classes which can not change mode.
4848         (find_costs_and_classes): Ditto.
4849
4850 2011-08-09  Richard Guenther  <rguenther@suse.de>
4851
4852         * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
4853         information for ranges with only negative values.
4854         (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
4855         BIT_AND_EXPR handling to handle ranges with negative values.
4856
4857 2011-08-09  Kirill Yukhin  <kirill.yukhin@intel.com>
4858
4859         * config/i386/i386.c: Remove traling spaces.
4860         * config/i386/sse.md: Likewise.
4861         (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
4862         (*fma_fmsub_<mode>): Likewise.
4863         (*fma_fnmadd_<mode>): Likewise.
4864         (*fma_fnmsub_<mode>): Likewise.
4865
4866 2011-08-09  Nick Clifton  <nickc@redhat.com>
4867
4868         * config/rx/rx.md: Disable extender peepholes at -O3.
4869
4870 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
4871
4872         PR target/49781
4873         * config/i386/i386.md (reload_noff_load): New.
4874         (reload_noff_store): Ditto.
4875         * config/i386/i386.c (ix86_secondary_reload): Use
4876         CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
4877         double-word moves from/to non-offsetable addresses instead of
4878         generating XMM temporary.
4879
4880 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
4881
4882         * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
4883
4884 2011-08-09  Ira Rosen  <ira.rosen@linaro.org>
4885
4886         PR tree-optimization/50014
4887         * tree-vect-loop.c (vectorizable_reduction): Get def type before
4888         calling vect_get_vec_def_for_stmt_copy ().
4889
4890 2011-08-08  Vladimir Makarov  <vmakarov@redhat.com>
4891
4892         PR rtl-optimization/49990
4893         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
4894         ignore classes which can not change mode.
4895         (find_costs_and_classes): Ditto.
4896
4897 2011-08-08  Richard Henderson  <rth@redhat.com>
4898
4899         PR middle-end/49990
4900         * config/i386/i386.c (ix86_expand_prologue): Call
4901         for SEH target gen_prologue_use instead of gen_blockage
4902         at prologue's end.
4903
4904 2011-08-08  Martin Jambor  <mjambor@suse.cz>
4905
4906         PR middle-end/49923
4907         * tree-sra.c (access_precludes_ipa_sra_p): Also check access
4908         memory alignment.
4909
4910 2011-08-08   Diego Novillo  <dnovillo@google.com>
4911
4912         * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
4913         (DATA_STREAMER_H): New.
4914         (GIMPLE_STREAMER_H): New.
4915         (TREE_STREAMER_H): New.
4916         (STREAMER_HOOKS_H): New.
4917         (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
4918         gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
4919         tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
4920         (data-streamer.o): New.
4921         (data-streamer-in.o): New.
4922         (data-streamer-out.o): New.
4923         (gimple-streamer-in.o): New.
4924         (gimple-streamer-out.o): New.
4925         (streamer-hooks.o): New.
4926         (tree-streamer.o): New.
4927         (tree-streamer-in.o): New.
4928         (tree-streamer-out.o): New.
4929         (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
4930         (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
4931         GIMPLE_STREAMER_H and TREE_STREAMER_H.
4932         (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
4933         GIMPLE_STREAMER_H and TREE_STREAMER_H.
4934         (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
4935         (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
4936         (ipa-inline-analysis.o): Likewise.
4937         (ipa-pure-const.o): Likewise.
4938         * data-streamer-in.c: New.
4939         * data-streamer-out.c: New.
4940         * data-streamer.c: New.
4941         * data-streamer.h: New.
4942         * gimple-streamer-in.c: New.
4943         * gimple-streamer-out.c: New.
4944         * gimple-streamer.h: New.
4945         * ipa-inline-analysis.c: Include data-streamer.h.
4946         * ipa-prop.c: Include data-streamer.h.
4947         * ipa-pure-const.c: Include data-streamer.h.
4948         * lto-cgraph.c: Include data-streamer.h.
4949         * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
4950         (lto_input_widest_uint_uleb128): Likewise.
4951         (lto_input_sleb128): Likewise.
4952         (bp_unpack_var_len_unsigned): Likewise.
4953         (bp_unpack_var_len_int): Likewise.
4954         * lto-section-out.c (lto_output_uleb128_stream): Move to
4955         data-streamer-out.c.
4956         (lto_output_widest_uint_uleb128_stream): Likewise.
4957         (lto_output_sleb128_stream): Likewise.
4958         (bp_pack_var_len_unsigned): Likewise.
4959         (bp_pack_var_len_int): Likewise.
4960         * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
4961         (struct string_slot): Remove.  Update all users.
4962         (lto_tag_check_set): Make extern.
4963         (lto_tag_check_range): Move to lto-streamer.h.
4964         (lto_tag_check): Likewise.
4965         (hash_string_slot_node): Remove.  Update all users.
4966         (eq_string_slot_node): Remove.  Update all users.
4967         (string_for_index): Move to data-streamer-in.c
4968         (input_string_internal): Likewise.
4969         (input_string_cst): Move to tree-streamer-in.c.
4970         (input_identifier): Likewise.
4971         (lto_input_string): Move to data-streamer-in.c
4972         (input_record_start): Move to data-streamer.h
4973         (canon_file_name): Use new definition of struct string_slot
4974         from data-streamer.h.  Set S_SLOT.LEN.
4975         (lto_input_location): Make extern.
4976         (lto_input_chain): Move to tree-streamer-in.c.
4977         (lto_init_eh): Make extern.
4978         (input_phi): Move to gimple-streamer-in.c.
4979         (input_gimple_stmt): Likewise.
4980         (input_bb): Likewise.
4981         (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
4982         (unpack_ts_real_cst_value_fields): Likewise.
4983         (unpack_ts_fixed_cst_value_fields): Likewise.
4984         (unpack_ts_decl_common_value_fields): Likewise.
4985         (unpack_ts_decl_wrtl_value_fields): Likewise.
4986         (unpack_ts_decl_with_vis_value_fields): Likewise.
4987         (unpack_ts_function_decl_value_fields): Likewise.
4988         (unpack_ts_type_common_value_fields): Likewise.
4989         (unpack_ts_block_value_fields): Likewise.
4990         (unpack_ts_translation_unit_decl_value_fields): Likewise.
4991         (unpack_value_fields): Likewise.
4992         (lto_materialize_tree): Likewise.
4993         (lto_input_ts_common_tree_pointers): Likewise.
4994         (lto_input_ts_vector_tree_pointers): Likewise.
4995         (lto_input_ts_complex_tree_pointers): Likewise.
4996         (lto_input_ts_decl_minimal_tree_pointers): Likewise.
4997         (lto_input_ts_decl_common_tree_pointers): Likewise.
4998         (lto_input_ts_decl_non_common_tree_pointers): Likewise.
4999         (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
5000         (lto_input_ts_field_decl_tree_pointers): Likewise.
5001         (lto_input_ts_function_decl_tree_pointers): Likewise.
5002         (lto_input_ts_type_common_tree_pointers): Likewise.
5003         (lto_input_ts_type_non_common_tree_pointers): Likewise.
5004         (lto_input_ts_list_tree_pointers): Likewise.
5005         (lto_input_ts_vec_tree_pointers): Likewise.
5006         (lto_input_ts_exp_tree_pointers): Likewise.
5007         (lto_input_ts_block_tree_pointers): Likewise.
5008         (lto_input_ts_binfo_tree_pointers): Likewise.
5009         (lto_input_ts_constructor_tree_pointers): Likewise.
5010         (lto_input_ts_target_option): Likewise.
5011         (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
5012         (lto_input_tree_pointers): Likewise.
5013         (lto_get_pickled_tree): Likewise.
5014         (lto_get_builtin_tree): Likewise.
5015         (lto_read_tree): Likewise.
5016         (lto_input_integer_cst): Likewise.
5017         (lto_input_tree): Likewise.
5018         * lto-streamer-out.c: Include data-streamer.h,
5019         gimple-streamer.h and streamer-hooks.h.
5020         (struct string_slot): Move to data-streamer.h.
5021         (hash_string_slot_node): Likewise.
5022         (eq_string_slot_node): Likewise.
5023         (lto_string_index): Move to data-streamer-out.c.
5024         (lto_output_string_with_length): Likewise.
5025         (lto_output_string): Likewise.
5026         (output_string_cst): Move to tree-streamer-out.c.
5027         (output_identifier): Likewise.
5028         (output_zero): Move to data-streamer-out.c
5029         (output_uleb128): Likewise.
5030         (output_sleb128): Likewise.
5031         (output_record_start): Move to data-streamer.h
5032         (pack_ts_base_value_fields): Move to tree-streamer-out.c.
5033         (pack_ts_real_cst_value_fields): Likewise.
5034         (pack_ts_fixed_cst_value_fields): Likewise.
5035         (pack_ts_decl_common_value_fields): Likewise.
5036         (pack_ts_decl_wrtl_value_fields): Likewise.
5037         (pack_ts_decl_with_vis_value_fields): Likewise.
5038         (pack_ts_function_decl_value_fields): Likewise.
5039         (pack_ts_type_common_value_fields): Likewise.
5040         (pack_ts_block_value_fields): Likewise.
5041         (pack_ts_translation_unit_decl_value_fields): Likewise.
5042         (pack_value_fields): Likewise.
5043         (lto_output_chain): Likewise.
5044         (lto_output_ts_common_tree_pointers): Likewise.
5045         (lto_output_ts_vector_tree_pointers): Likewise.
5046         (lto_output_ts_complex_tree_pointers): Likewise.
5047         (lto_output_ts_decl_minimal_tree_pointers): Likewise.
5048         (lto_output_ts_decl_common_tree_pointers): Likewise.
5049         (lto_output_ts_decl_non_common_tree_pointers): Likewise.
5050         (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
5051         (lto_output_ts_field_decl_tree_pointers): Likewise.
5052         (lto_output_ts_function_decl_tree_pointers): Likewise.
5053         (lto_output_ts_type_common_tree_pointers): Likewise.
5054         (lto_output_ts_type_non_common_tree_pointers): Likewise.
5055         (lto_output_ts_list_tree_pointers): Likewise.
5056         (lto_output_ts_vec_tree_pointers): Likewise.
5057         (lto_output_ts_exp_tree_pointers): Likewise.
5058         (lto_output_ts_block_tree_pointers): Likewise.
5059         (lto_output_ts_binfo_tree_pointers): Likewise.
5060         (lto_output_ts_constructor_tree_pointers): Likewise.
5061         (lto_output_ts_target_option): Likewise.
5062         (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
5063         (lto_output_tree_pointers): Likewise.
5064         (lto_output_tree_header): Likewise.
5065         (lto_output_builtin_tree): Likewise.
5066         (lto_write_tree): Likewise.
5067         (lto_output_integer_cst): Likewise.
5068         (lto_output_tree): Likewise.
5069         (output_phi): Move to gimple-streamer-out.c.
5070         (output_gimple_stmt): Likewise.
5071         (output_bb): Likewise.
5072         * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
5073         (streamer_hooks): Move to streamer-hooks.c.
5074         (check_handled_ts_structures): Move to tree-streamer.c
5075         (lto_streamer_cache_add_to_node_array): Likewise.
5076         (lto_streamer_cache_insert_1): Likewise.
5077         (lto_streamer_cache_insert): Likewise.
5078         (lto_streamer_cache_insert_at): Likewise.
5079         (lto_streamer_cache_append): Likewise.
5080         (lto_streamer_cache_lookup): Likewise.
5081         (lto_streamer_cache_get): Likewise.
5082         (lto_record_common_node): Likewise.
5083         (lto_preload_common_nodes): Likewise.
5084         (lto_streamer_cache_create): Likewise.
5085         (lto_streamer_cache_delete): Likewise.
5086         (streamer_hooks_init): Move to streamer-hooks.c.
5087         * lto-streamer.h: Include diagnostic.h
5088         (struct output_block, struct lto_input_block,
5089         struct data_in, struct bitpack_d): Remove forward declarations.
5090         (struct bitpack_d): Move to data-streamer.h.
5091         (struct lto_streamer_cache_d): Move to tree-streamer.h.
5092         (struct streamer_hooks): Move to streamer-hooks.h.
5093         (bp_pack_var_len_unsigned): Move to data-streamer.h.
5094         (bp_pack_var_len_int): Likewise.
5095         (bp_unpack_var_len_unsigned): Likewise.
5096         (bp_unpack_var_len_int): Likewise.
5097         (lto_input_location): Declare.
5098         (lto_tag_check_set): Declare.
5099         (lto_init_eh): Declare.
5100         (lto_output_tree_ref): Declare.
5101         (lto_output_location): Declare.
5102         (bitpack_create): Move to data-streamer.h.
5103         (bp_pack_value): Likewise.
5104         (lto_output_bitpack): Likewise.
5105         (lto_input_bitpack): Likewise.
5106         (bp_unpack_value): Likewise.
5107         (lto_output_1_stream): Likewise.
5108         (lto_input_1_unsigned): Likewise.
5109         (lto_output_int_in_range): Likewise.
5110         (lto_input_int_in_range): Likewise.
5111         (bp_pack_int_in_range): Likewise.
5112         (bp_unpack_int_in_range): Likewise.
5113         (lto_output_enum): Likewise.
5114         (lto_input_enum): Likewise.
5115         (bp_pack_enum): Likewise.
5116         (bp_unpack_enum): Likewise.
5117         * streamer-hooks.c: New.
5118         * streamer-hooks.h: New.
5119         * tree-streamer-in.c: New.
5120         * tree-streamer-out.c: New.
5121         * tree-streamer.c: New.
5122         * tree-streamer.h: New.
5123
5124 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5125
5126         * gthr-posix95.h: Remove.
5127         * gthr.h [_PTHREADS95]: Remove.
5128         * configure.ac (enable_threads): Remove posix95.
5129         * configure: Regenerate.
5130         * doc/install.texi (Configuration, --enable-threads): Remove posix95.
5131
5132 2011-08-08  Uros Bizjak  <ubizjak@gmail.com>
5133
5134         PR target/49781
5135         * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
5136         SImode addresses.
5137         (ix86_print_operand_address): Handle zero-extended addresses.
5138         (memory_address_length): Add length of addr32 prefix for
5139         zero-extended addresses.
5140         (ix86_secondary_reload): Handle moves to/from double-word general
5141         registers from/to zero-extended addresses.
5142         * config/i386/predicates.md (lea_address_operand): Reject
5143         zero-extended operands.
5144
5145 2011-08-08  H.J. Lu  <hongjiu.lu@intel.com>
5146
5147         PR other/48007
5148         * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
5149
5150         * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
5151         (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
5152
5153         * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
5154         (_Unwind_Context_Reg_Val): Likewise.
5155         (_Unwind_Get_Unwind_Word): Likewise.
5156         (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
5157         (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
5158         (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
5159         for EXTENDED_CONTEXT_BIT.
5160         (__frame_state_for): Likewise.
5161         (uw_init_context_1): Likewise.
5162         (_Unwind_GetGR): Updated.
5163         (_Unwind_SetGR): Likewise.
5164         (_Unwind_GetGRPtr): Likewise.
5165         (_Unwind_SetGRPtr): Likewise.
5166         (_Unwind_SetGRValue): Likewise.
5167         (_Unwind_GRByValue): Likewise.
5168         (uw_install_context_1): Likewise.
5169
5170         * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
5171         ASSUME_EXTENDED_UNWIND_CONTEXT.
5172         * doc/tm.texi: Regenerated.
5173
5174 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5175
5176         * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
5177
5178 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5179
5180         * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
5181         Linux/GNU-specific.
5182         (DEC Alpha Options, -mtune): Likewise.
5183         (MIPS Options, -march): native is supported on IRIX.
5184
5185 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5186
5187         * config/sparc/driver-sparc.c: New file.
5188         * config/sparc/x-sparc: New file.
5189         * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
5190         * config/sparc/sparc.opt (native): New value for enum processor_type.
5191         * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
5192         * config/sparc/sparc.c (sparc_option_override): Abort if
5193         PROCESSOR_NATIVE gets here.
5194         * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
5195         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
5196         DRIVER_SELF_SPECS): Define.
5197         * doc/invoke.texi (SPARC Options, -mcpu): Document native.
5198         (SPARC Options, -mtune): Likewise.
5199         * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
5200         Substitute result.
5201         * configure: Regenerate.
5202         * Makefile.in (EXTRA_GCC_LIBS): Set.
5203         (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
5204         (cpp$(exeext)): Likewise.
5205
5206 2011-08-08  Richard Guenther  <rguenther@suse.de>
5207
5208         * tree-vrp.c (extract_range_from_unary_expr_1): New function,
5209         split out from ...
5210         (extract_range_from_unary_expr): ... here.  Handle BIT_NOT_EXPR
5211         by composition.
5212
5213 2011-08-08  Mikael Pettersson  <mikpe@it.uu.se>
5214
5215         PR tree-optimization/50005
5216         * ipa-inline-analysis (remap_predicate): Add cast to
5217         silence signed/unsigned comparison warning.
5218
5219 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
5220
5221         * modulo-sched.c (get_sched_window): Use a table for the debug output.
5222         Print the current ii.
5223         (sms_schedule_by_order): Reduce whitespace in dump line.
5224
5225 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
5226
5227         * modulo-sched.c (get_sched_window): Use just one loop for predecessors
5228         and one loop for successors.  Fix upper bound of memory range.
5229
5230 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
5231
5232         PR target/50001
5233         * config/alpha/alpha.c (alpha_instantiate_decls): New function.
5234         (TARGET_INSTANTIATE_DECLS): New define.
5235
5236 2011-08-06  Paolo Bonzini  <bonzini@gnu.org>
5237             Mikael Morin   <mikael.morin@sfr.fr>
5238
5239         * Makefile.in (INCLUDES_FOR_TARGET): New.
5240         (LIBGCC2_CFLAGS): Use it.
5241         (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
5242
5243 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
5244
5245         * config/i386/i386.c (ix86_compute_frame_layout): Simplify
5246         frame->save_regs_using_mov calculation.
5247
5248 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
5249
5250         * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
5251         * config/i386/sse.md (castmode): New mode attribute.
5252         (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
5253         avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
5254
5255 2011-08-05  Jan Hubicka  <jh@suse.cz>
5256
5257         PR middle-end/49494
5258         * ipa-inline-analysis.c (remap_predicate): Add bounds check.
5259
5260 2011-08-05  Jan Hubicka  <jh@suse.cz>
5261
5262         PR middle-end/49500
5263         * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
5264         handle aliases.
5265         (create_emultls_var):New function.
5266         (ipa_lower_emutls): Handle aliases correctly.
5267
5268 2011-08-05  Jan Hubicka  <jh@suse.cz>
5269
5270         PR middle-end/49735
5271         * ipa-inline.c (recursive_inlining): Look through aliases.
5272
5273 2011-08-05  Jason Merrill  <jason@redhat.com>
5274
5275         * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
5276         declarations to beginning of function.
5277
5278 2011-08-05  Bernd Schmidt  <bernds@codesourcery.com>
5279
5280         PR rtl-optimization/49900
5281         * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
5282         ensure basic blocks stay in the same order.
5283
5284 2011-08-05  Aldy Hernandez  <aldyh@redhat.com>
5285
5286         * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
5287         store_bit_field.
5288         (s390_expand_atomic): Same.
5289
5290 2011-08-05  Richard Henderson  <rth@redhat.com>
5291
5292         PR rtl-opt/49977
5293         * dwarf2cfi.c (scan_insn_after): Split out of ...
5294         (scan_trace): ... here.  Correctly place notes wrt sequences.
5295
5296 2011-08-05  Kaz Kojima  <kkojima@gcc.gnu.org>
5297             Richard Henderson  <rth@redhat.com>
5298
5299         PR rtl-opt/49982
5300         * expr.c (fixup_args_size_notes): Look through no-op moves.
5301
5302 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
5303
5304         * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
5305         of "m" for operand 0.  Add type and mode attribute.
5306         (*pushxf_nointeger"): Use "<" constraint for operand 0.
5307         (*pushdf_rex64): New pattern, split out of *pushdf.  Use "m"
5308         constraint instead of "o" for opreand 1.
5309         (*pushdf): Disable for TARGET_64BIT.  Correct mode attribute.
5310         (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
5311         operand 0, alternative 4.
5312         (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
5313
5314 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
5315
5316         * config/i386/predicates.md (lea_address_operand): Rename from
5317         no_seg_address_operand.
5318         * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
5319         (*lea_1_zext): Ditto.
5320         (*lea_2): Ditto.
5321         (*lea_2_zext): Ditto.
5322
5323 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
5324
5325         * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
5326         parts.base and parts.index.
5327         * config/i386/predicates.md (aligned_operand): Ditto.
5328         (cmpxchg8b_pic_memory_operand): Ditto.
5329
5330 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5331
5332         * config/soft-fp: Move to ../libgcc.
5333         * Makefile.in (SFP_MACHINE): Remove.
5334         (libgcc-support): Remove $(SFP_MACHINE) dependency.
5335         * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
5336         * config/arm/t-arm-softfp: Move to
5337         ../libgcc/config/arm/t-softfp.
5338         * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
5339         * config/c6x/t-c6x-softfp: Remove.
5340         * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
5341         * config/i386/t-fprules-softfp: Move to
5342         ../libgcc/config/t-softfp-tf.
5343         * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
5344         * config/ia64/t-fprules-softfp: Remove.
5345         * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
5346         * config/lm32/t-fprules-softfp: Remove.
5347         * config/moxie/sfp-machine.h: Remove.
5348         * config/moxie/t-moxie-softfp: Remove.
5349         * config/rs6000/darwin-ldouble-format: Move to
5350         ../libgcc/config/rs6000/ibm-ldouble-format.
5351         * config/rs6000/darwin-ldouble.c: Move to
5352         ../libgcc/config/rs6000/ibm-ldouble.c
5353         * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
5354         * config/rs6000/libgcc-ppc64.ver: Likewise.
5355         * config/rs6000/sfp-machine.h: Likewise.
5356         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
5357         $(srcdir)/config/rs6000/libgcc-ppc64.ver.
5358         (LIB2FUNCS_EXTRA): Remove.
5359         (TARGET_LIBGCC2_CFLAGS): Remove.
5360         * config/rs6000/t-aix52: Likewise
5361         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
5362         $(srcdir)/config/rs6000/darwin-ldouble.c.
5363         (SHLIB_MAPFILES): Remove.
5364         * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
5365         $(srcdir)/config/rs6000/darwin-ldouble.c.
5366         * config/rs6000/t-fprules-softfp: Move to
5367         ../libgcc/config/t-softfp-sfdf.
5368         * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
5369         * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
5370         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
5371         $(srcdir)/config/rs6000/darwin-ldouble.c.
5372         * config/score/sfp-machine.h: Move to ../libgcc/config/score.
5373         * config/score/t-score-softfp: Remove.
5374         * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
5375         soft-fp/t-softfp from tmake_file.
5376         (arm*-*-uclinux*): Likewise.
5377         (arm*-*-ecos-elf): Likewise.
5378         (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
5379         (arm*-*-rtems*): Likewise.
5380         (arm*-*-elf): Likewise.
5381         (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
5382         tmake_file.
5383         (moxie-*-uclinux*): Likewise.
5384         (moxie-*-rtems*): Likewise.
5385         (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
5386         tmake_file.
5387         (lm32-*-rtems*): Likewise.
5388         (lm32-*-uclinux*): Likewise.
5389         (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
5390         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
5391         (powerpc-*-linux*, powerpc64-*-linux*): Remove
5392         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
5393         (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
5394         tmake_file.
5395         (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
5396         tmake_file.
5397         (tic6x-*-uclinux): Likewise.
5398         (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
5399         soft-fp/t-softfp from tmake_file.
5400         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
5401         (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
5402         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
5403         (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
5404         (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
5405
5406 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5407
5408         * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
5409         (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
5410         (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
5411         TPBIT, TPBIT_FUNCS.
5412         * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
5413         * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
5414         Remove.
5415         * config/arm/t-vxworks: Likewise.
5416         * config/arm/t-wince-pe: Likewise.
5417         * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
5418         * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5419         * config/bfin/t-bfin-elf: Likewise.
5420         * config/bfin/t-bfin-linux: Likewise.
5421         * config/bfin/t-bfin-uclinux: Likewise.
5422         * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
5423         Remove.
5424         * config/fr30/t-fr30: Likewise.
5425         * config/frv/t-frv: Likewise.
5426         * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
5427         * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5428         * config/m32c/t-m32c: Likewise.
5429         * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
5430         * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5431         * config/mcore/t-mcore: Likewise.
5432         * config/mep/t-mep: Likewise.
5433         * config/microblaze/t-microblaze: Likewise.
5434         * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
5435         * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5436         * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
5437         * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5438         * config/mn10300/t-linux: Remove.
5439         * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5440         * config/pdp11/t-pdp11: Likewise.
5441         * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
5442         * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
5443         * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5444         (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
5445         * config/rs6000/t-aix52: Likewise.
5446         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
5447         $(srcdir)/config/rs6000/ppc64-fp.c.
5448         * config/rs6000/t-fprules-fpbit: Remove.
5449         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
5450         * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5451         * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
5452         * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5453         * config/sparc/t-elf: Likewise.
5454         * config/sparc/t-leon: Likewise.
5455         * config/sparc/t-leon3: Likewise.
5456         * config/spu/t-spu-elf: Likewise.
5457         (DPBIT_FUNCS): Remove.
5458         * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5459         * config/v850/t-v850: Likewise.
5460         * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
5461         (avr-*-*): Likewise.
5462         (h8300-*-rtems*): Set libgcc_tm_file.
5463         (h8300-*-elf*): Likewise.
5464         (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
5465         tmake_file.
5466         (powerpc-*-eabisim*): Likewise.
5467         (powerpc-*-elf*): Likewise.
5468         (powerpc-*-eabialtivec*): Likewise.
5469         (powerpc-xilinx-eabi*): Likewise.
5470         (powerpc-*-eabi*): Likewise.
5471         (powerpc-*-rtems*): Likewise.
5472         (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
5473         (powerpcle-*-elf*): Likewise.
5474         (powerpcle-*-eabisim*): Likewise.
5475         (powerpcle-*-eabi*): Likewise.
5476         (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
5477         (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
5478         * doc/fragments.texi (Target Fragment, Floating Point Emulation):
5479         Remove.
5480
5481 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5482
5483         * Makefile.in (UNWIND_H): Remove.
5484         (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
5485         ../libgcc/Makefile.in.
5486         (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
5487         (LIBUNWINDDEP): Remove.
5488         (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
5489         (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
5490         LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
5491         (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
5492         Don't copy $(UNWIND_H).
5493         * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
5494         * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
5495         * aclocal.m4: Regenerate.
5496         * configure: Regenerate.
5497         * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
5498         unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
5499         unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
5500         unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
5501         * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
5502         * config/arm/libunwind.S, config/arm/pr-support.c,
5503         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
5504         ../libgcc/config/arm.
5505         * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
5506         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
5507         * config/frv/t-frv ($(T)frvbegin$(objext)): Use
5508         $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
5509         ($(T)frvend$(objext)): Likewise.
5510         * config/ia64/t-glibc (LIB2ADDEH): Remove.
5511         * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
5512         * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
5513         config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
5514         ../libgcc/config/ia64.
5515         * config/ia64/t-hpux (LIB2ADDEH): Remove.
5516         * config/ia64/t-ia64 (LIB2ADDEH): Remove.
5517         * config/ia64/t-vms (LIB2ADDEH): Remove.
5518         * config/ia64/vms.h (UNW_IVMS_MODE,
5519         MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
5520         * config/picochip/t-picochip (LIB2ADDEH): Remove.
5521         * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
5522         * config/rs6000/t-darwin (LIB2ADDEH): Remove.
5523         * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
5524         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
5525         $(srcdir)/../libgcc to refer to unwinder sources.
5526         * config/spu/t-spu-elf (LIB2ADDEH): Remove.
5527         * config/t-darwin (LIB2ADDEH): Remove.
5528         * config/t-freebsd (LIB2ADDEH): Remove.
5529         * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
5530         * config/t-libunwind-elf: Move to ../libgcc/config.
5531         * config/t-linux (LIB2ADDEH): Remove.
5532         * config/t-sol2 (LIB2ADDEH): Remove.
5533         * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
5534         * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
5535
5536 2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
5537
5538         * config/i386/i386.c (processor_alias_table): Add core-avx-i.
5539
5540         * doc/invoke.texi: Document core-avx-i.
5541
5542 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5543
5544         * tsystem.h (CONST_CAST2, CONST_CAST): Define.
5545
5546 2011-08-05  Ira Rosen  <ira.rosen@linaro.org>
5547
5548         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
5549         result of multiple results reduction when extracting the final
5550         value using scalar code.
5551
5552 2011-08-05  Richard Guenther  <rguenther@suse.de>
5553
5554         PR tree-optimization/49984
5555         * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
5556
5557 2011-08-05  Richard Guenther  <rguenther@suse.de>
5558
5559         * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
5560         return true for constant integer ranges.
5561         (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
5562         BIT_IOR_EXPR handling.
5563
5564 2011-08-04  Kai Tietz  <ktietz@redhat.com>
5565
5566         * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
5567         ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
5568
5569 2011-08-04  Ira Rosen  <ira.rosen@linaro.org>
5570
5571         * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
5572         pattern def statement, and its access macro.
5573         (NUM_PATTERNS): Set to 5.
5574         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
5575         pattern def statement.
5576         (vect_transform_loop): Likewise.
5577         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
5578         function vect_recog_over_widening_pattern ().
5579         (vect_operation_fits_smaller_type): New function.
5580         (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
5581         Likewise.
5582         (vect_pattern_recog_1): Move the code that marks pattern
5583         statements to vect_mark_pattern_stmts (), and call it.  Update
5584         documentation.
5585         * tree-vect-stmts.c (vect_supportable_shift): New function.
5586         (vect_analyze_stmt): Handle pattern def statement.
5587         (new_stmt_vec_info): Initialize pattern def statement.
5588
5589 2011-08-04  Richard Henderson  <rth@redhat.com>
5590
5591         PR target/49964
5592         * config/i386/i386.c (ix86_expand_call): Don't create nested
5593         PARALLELs for TARGET_VZEROUPPER.
5594         (ix86_split_call_vzeroupper): Fix extraction of the original call.
5595         * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
5596         recognize nested PARALLELs.
5597         (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
5598         *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
5599         *sibcall_value_pop_vzeroupper): Likewise.
5600
5601 2011-08-04  Richard Henderson  <rth@redhat.com>
5602
5603         PR middle-end/49968
5604         * calls.c (expand_call): Use fixup_args_size_notes for
5605         emit_stack_restore.
5606         * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
5607         in non-standard modes.
5608
5609 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
5610
5611         * gcc.c (self_spec): New variable.
5612         (static_specs): Add self_spec.
5613         (main): Call do_self_spec on "self_spec" specs after reading
5614         user specs files.  Move compare_debug handling right after that.
5615
5616 2011-08-04  Richard Guenther  <rguenther@suse.de>
5617
5618         * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
5619         (value_range_nonnegative_p): New function.
5620         (ssa_name_nonnegative_p): Use it.
5621         (value_range_constant_singleton): New function.
5622         (op_with_constant_singleton_value_range): Use it.
5623         (extract_range_from_binary_expr_1): New function, split out from ...
5624         (extract_range_from_binary_expr): ... this.  Remove fallback
5625         constant folding done here.
5626
5627 2011-08-04  Richard Guenther  <rguenther@suse.de>
5628
5629         PR tree-optimization/49806
5630         * tree-vrp.c (op_with_boolean_value_range_p): New function.
5631         (simplify_truth_ops_using_ranges): Simplify.  Allow inserting
5632         a new statement for a final conversion to bool.
5633
5634 2011-08-04  Romain Geissler  <romain.geissler@gmail.com>
5635
5636         * gengtype-state.c: Include "bconfig.h" if
5637         GENERATOR_FILE is defined, "config.h" otherwise.
5638         * gengtype.c: Likewise.
5639         * gengtype-lex.l: Likewise.
5640         * gengtype-parse.c: Likewise.
5641         * Makefile.in (gengtype-lex.o-warn): New variable.
5642         (plugin_resourcesdir): Likewise.
5643         (plugin_bindir): Likewise.
5644         (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
5645         (MOSTLYCLEANFILES): Add gengtype$(exeext).
5646         (native): Depend on gengtype$(exeext) is $enable_plugin
5647         is set to "yes".
5648         (gtype.state): Depend on s-gtype. Use temporary file.
5649         (gengtype-lex.o): New rule.
5650         (gengtype-parse.o): Likewise.
5651         (gengtype-state.o): Likewise.
5652         (gengtype$(exeext)): Likewise.
5653         (install-gengtype): Likewise.
5654         (gengtype.o): Likewise.
5655         (build/gengtype.o): Depend on version.h.
5656         (build/gengtype-state): Depend on double-int.h, version.h,
5657         $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
5658         (install-plugin): Depend on install-gengtype.
5659
5660 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
5661
5662         PR middle-end/49905
5663         * tree.h (init_attributes): New prototype.
5664         * attribs.c (init_attributes): No longer static.
5665
5666 2011-08-04  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5667
5668         * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
5669         maybe_suffix.
5670
5671 2011-08-03   David Li  <davidxl@google.com>
5672
5673         * tree-optimize.c (execute_fixup_cfg): Fix up entry
5674         outgoing edge counts after inlining.
5675
5676 2011-08-03   David Li  <davidxl@google.com>
5677
5678         * profile.c (compute_branch_probabilities): Compute
5679         function frequency after profile annotation.
5680
5681 2011-08-04  Alan Modra  <amodra@gmail.com>
5682
5683         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
5684         use_backchain_to_restore_sp initialisation.
5685         (rs6000_legitimate_offset_address_p): Simplify offset test.
5686
5687 2011-08-03  Richard Henderson  <rth@redhat.com>
5688
5689         * config/spu/spu.md: Use define_c_enum instead of define_constants.
5690         (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
5691         (UNSPECV_NOP): New.
5692
5693 2011-08-03  Richard Henderson  <rth@redhat.com>
5694
5695         PR target/34888
5696         * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
5697
5698 2011-08-03  Jakub Jelinek  <jakub@redhat.com>
5699
5700         PR tree-optimization/49948
5701         * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
5702
5703 2011-08-03  Anatoly Sokolov  <aesok@post.ru>
5704
5705         * config/m32c/m32c.c (class_sizes): Remove.
5706         (reduce_class): Change arguments and return type to reg_class_t.
5707         Change type cc var to HARD_REG_SET. Change type best var to
5708         reg_class_t. Change type best_size var to unsigned int. Remove
5709         initialization class_sizes var. Use reg_class_size array instead
5710         of class_sizes. Use reg_class_contents array instead
5711         of class_contents.
5712
5713 2011-08-03  Richard Guenther  <rguenther@suse.de>
5714
5715         PR middle-end/49958
5716         * fold-const.c (fold_binary_loc): Only associate
5717         (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
5718         overflow wraps.
5719
5720 2011-08-03  Alan Modra  <amodra@gmail.com>
5721
5722         PR rtl-optimization/49941
5723         * jump.c (mark_jump_label): Comment.
5724         (mark_jump_label_1): Set JUMP_LABEL for return jumps.
5725         * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
5726         (mark_used_flags): Don't mark RETURN.
5727
5728 2011-08-03  Richard Guenther  <rguenther@suse.de>
5729
5730         PR tree-optimization/49938
5731         * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
5732         deal with a POLYNOMIAL_CHREC.
5733
5734 2011-08-03  Revital Eres  <revital.eres@linaro.org>
5735
5736         * modulo-sched.c (calculate_stage_count,
5737         calculate_must_precede_follow, get_sched_window,
5738         try_scheduling_node_in_cycle, remove_node_from_ps): Add
5739         declaration.
5740         (update_node_sched_params, set_must_precede_follow, optimize_sc):
5741         New functions.
5742         (reset_sched_times): Call update_node_sched_params.
5743         (sms_schedule): Call optimize_sc.
5744         (get_sched_window): Change function arguments.
5745         (sms_schedule_by_order): Update call to get_sched_window.
5746         Call set_must_precede_follow.
5747         (calculate_stage_count): Add function argument.
5748
5749 2011-08-02  Richard Henderson  <rth@redhat.com>
5750
5751         PR target/49864
5752         PR target/49879
5753         * reg-notes.def (REG_ARGS_SIZE): New.
5754         * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
5755         (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
5756         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
5757         different stack levels.
5758         * combine-stack-adj.c (adjust_frame_related_expr): Remove.
5759         (maybe_move_args_size_note): New.
5760         (combine_stack_adjustments_for_block): Use it.
5761         * combine.c (distribute_notes): Place REG_ARGS_SIZE.
5762         * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
5763         (dw_trace_info): Add beg_true_args_size, end_true_args_size,
5764         beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
5765         (cur_cfa): New.
5766         (queued_args_size): Remove.
5767         (add_cfi_args_size): Assert size is non-negative.
5768         (stack_adjust_offset, dwarf2out_args_size): Remove.
5769         (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
5770         (notice_args_size, notice_eh_throw): New.
5771         (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
5772         (dwarf2out_frame_debug_adjust_cfa): Likewise.
5773         (dwarf2out_frame_debug_cfa_offset): Likewise.
5774         (dwarf2out_frame_debug_expr): Likewise.  Don't stack_adjust_offset.
5775         (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
5776         (change_cfi_row): Don't emit args_size.
5777         (maybe_record_trace_start_abnormal): Split out from ...
5778         (maybe_record_trace_start): Here.  Set args_size_undefined.
5779         (create_trace_edges): Update to match.
5780         (scan_trace): Handle REG_ARGS_SIZE.
5781         (connect_traces): Connect args_size between EH insns.
5782         * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
5783         * explow.c (suppress_reg_args_size): New.
5784         (adjust_stack_1): Split out from ...
5785         (adjust_stack): ... here.
5786         (anti_adjust_stack): Use it.
5787         (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
5788         * expr.c (mem_autoinc_base): New.
5789         (fixup_args_size_notes): New.
5790         (emit_single_push_insn_1): Rename from emit_single_push_insn.
5791         (emit_single_push_insn): New.  Generate REG_ARGS_SIZE.
5792         * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
5793         * reload1.c (reload_as_needed): Likewise.
5794         * rtl.h (fixup_args_size_notes): Declare.
5795
5796 2011-08-02  Paolo Carlini  <paolo.carlini@oracle.com>
5797
5798         PR bootstrap/49914
5799         * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
5800         of abs.
5801         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
5802         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
5803
5804 2011-08-02  Richard Henderson  <rth@redhat.com>
5805
5806         * config/h8300/h8300.c (push, pop): Return the insn.
5807         (h8300_swap_into_er6): Generate correct unwind info.
5808         (h8300_swap_out_of_er6): Likewise.
5809         * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
5810         complex cfa expression.
5811         (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
5812
5813 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
5814
5815         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
5816
5817 2011-08-02  Richard Henderson  <rth@redhat.com>
5818
5819         PR target/49878
5820         * config/h8300/h8300.c (h8300_move_ok): New.
5821         * config/h8300/h8300-protos.h: Declare it.
5822         * config/h8300/h8300.md (P): New mode iterator.
5823         (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
5824         (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
5825         (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
5826         (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
5827         (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
5828         and pushqi1_h8300hs_normal; use PRE_MODIFY and
5829         register_no_sp_elim_operand.
5830         (*pushhi1_h8300hs_<P>): Similarly.
5831         (pushqi1, pushhi1, pushhi1_h8300): Remove.
5832         * config/h8300/predicates.md (register_no_sp_elim_operand): New.
5833
5834 2011-08-02  Richard Henderson  <rth@redhat.com>
5835
5836         PR target/49881
5837         * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
5838
5839 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
5840
5841         * c-parser.c (enum c_parser_prec): New enum, moved from within
5842         c_parser_binary_expression.
5843         (c_parser_binary_expression): Add PREC argument.  Stop parsing
5844         if operator has lower or equal precedence than PREC.
5845         (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
5846         callers.
5847         (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
5848         Adjust c_finish_omp_atomic caller.
5849         (c_parser_omp_taskyield): New function.
5850         (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
5851         (c_parser_omp_clause_name): Handle final and mergeable clauses.
5852         (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
5853         functions.
5854         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
5855         and PRAGMA_OMP_CLAUSE_MERGEABLE.
5856         (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
5857         (c_parser_omp_clause_reduction): Handle min and max.
5858         * c-typeck.c (c_finish_omp_clauses): Don't complain about
5859         const qualified predetermined vars in firstprivate clause.
5860         andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
5861         Handle MIN_EXPR and MAX_EXPR.
5862         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
5863         and OMP_CLAUSE_MERGEABLE.
5864         (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
5865         and OMP_ATOMIC_CAPTURE_NEW.
5866         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
5867         OMP_CLAUSE_MERGEABLE.
5868         (omp_clause_code_name): Likewise.
5869         (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
5870         * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
5871         and OMP_CLAUSE_MERGEABLE.
5872         (OMP_CLAUSE_FINAL_EXPR): Define.
5873         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
5874         OMP_CLAUSE_MERGEABLE.
5875         (expand_task_call): Likewise.
5876         (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
5877         (expand_omp_atomic_fetch_op): Handle cases where old or new
5878         value is needed afterwards.
5879         (expand_omp_atomic): Call expand_omp_atomic_load resp.
5880         expand_omp_atomic_store.
5881         * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
5882         OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
5883         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
5884         OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
5885         * tree-nested.c (convert_nonlocal_omp_clauses,
5886         convert_local_omp_clauses): Likewise.
5887         * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
5888         OMP_ATOMIC_CAPTURE_NEW): New.
5889         * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
5890         (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
5891         New inlines.
5892         * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
5893         * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
5894         OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
5895
5896 2011-08-02  Kai Tietz  <ktietz@redhat.com>
5897
5898         * gimple.c (canonicalize_cond_expr_cond): Handle cast from
5899         boolean-type.
5900         (ssa_forward_propagate_and_combine): Interprete result of
5901         forward_propagate_comparison.
5902         * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
5903         boolean-typed operands for comparisons.
5904
5905 2011-08-02  Georg-Johann Lay  <avr@gjlay.de>
5906
5907         * config/avr/libgcc.S: Gather related function in the
5908         same input section.
5909         (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
5910         __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
5911         references.
5912         (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
5913         __udivmodsi4, __divmodsi4, __prologue_saves__,
5914         __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
5915         __do_copy_data, __do_clear_bss, __do_global_ctors,
5916         __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
5917
5918 2011-08-02  Uros Bizjak  <ubizjak@gmail.com>
5919
5920         PR target/47766
5921         * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
5922         (stack_protect_test): The pattern compares ptr_mode value.
5923
5924 2011-08-02  Alan Modra  <amodra@gmail.com>
5925
5926         * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
5927         note for save_LR_around_toc_setup sequence.
5928
5929 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
5930
5931         * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
5932
5933 2011-08-01  Sebastian Pop  <sebastian.pop@amd.com>
5934             Joseph Myers  <joseph@codesourcery.com>
5935
5936         * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
5937         * hwint.c: Include diagnostic-core.h.
5938         (abs_hwi): New.
5939         (gcd): Moved here...
5940         (pos_mul_hwi): New.
5941         (mul_hwi): New.
5942         (least_common_multiple): Moved here...
5943         * hwint.h (gcd): ... from here.
5944         (least_common_multiple): ... from here.
5945         (HOST_WIDE_INT_MIN): New.
5946         (HOST_WIDE_INT_MAX): New.
5947         (abs_hwi): Declared.
5948         (gcd): Declared.
5949         (pos_mul_hwi): Declared.
5950         (mul_hwi): Declared.
5951         (least_common_multiple): Declared.
5952         * omega.c (check_pos_mul): Removed.
5953         (check_mul): Removed.
5954         (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
5955         mul_hwi instead of check_mul.
5956
5957 2011-08-01  Richard Henderson  <rth@redhat.com>
5958
5959         PR target/49881
5960         * config/avr/avr.h (PUSH_ROUNDING): New.
5961         * config/avr/avr.md (pushqi1): Rename from *pushqi.
5962         (*pushhi, *pushsi, *pushsf): Remove.
5963         (MPUSH): New mode iterator.
5964         (push<MPUSH>1): New expander.
5965
5966 2011-08-01  Anatoly Sokolov  <aesok@post.ru>
5967
5968         * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
5969         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
5970         * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
5971         mmix_preferred_output_reload_class): Remove.
5972         * config/mmix/mmix.c (mmix_preferred_reload_class,
5973         mmix_preferred_output_reload_class): Make static. Change rclass
5974         argument and return type to reg_class_t.
5975         (TARGET_PREFERRED_RELOAD_CLASS,
5976         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
5977
5978 2011-08-01  Joern Rennecke  <joern.rennecke@embecosm.com>
5979
5980         * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
5981         handling.
5982
5983 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
5984
5985         PR target/47766
5986         * config/i386/i386.md (PTR): New.
5987         (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
5988         (stack_protect_test): Likewise.
5989         (stack_protect_set_<mode>): Replace ":P" with ":PTR".
5990         (stack_tls_protect_set_<mode>): Likewise.
5991         (stack_tls_protect_test_<mode>): Likewise.
5992
5993 2011-08-01  Uros Bizjak  <ubizjak@gmail.com>
5994
5995         PR target/49927
5996         * config/i386/i386.c (ix86_address_subreg_operand): New.
5997         (ix86_decompose_address): Use ix86_address_subreg_operand.
5998         (ix86_legitimate_address_p): Do not assert that subregs satisfy
5999         register_no_elim_operand in DImode.
6000
6001 2011-08-01  Ira Rosen  <ira.rosen@linaro.org>
6002
6003         PR tree-optimization/49926
6004         * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
6005         in a chain doesn't have uses both inside and outside the loop.
6006
6007 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
6008
6009         * config/avr/avr.h (mcu_type_s): Add errata_skip field.
6010         * config/avr/avr-devices.c (avr_mcu_types): Use it.
6011         * config/avr/avr-mcus.def (AVR_MCU): Use it.
6012         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
6013         define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
6014         * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
6015         Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
6016         to detect if XJMP must not be skipped.
6017
6018 2011-08-02  Alan Modra  <amodra@gmail.com>
6019
6020         * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
6021         Delete.
6022         * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
6023         (rs6000_emit_prologue): Don't prematurely return when
6024         TARGET_SINGLE_PIC_BASE.  Don't emit eh_frame info in
6025         save_toc_in_prologue case.
6026         (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
6027         calls_alloca.
6028
6029 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
6030
6031         * config/avr/avr-devices.c: Delete SVN property svn:executable.
6032         * config/avr/predicates.md: Ditto.
6033         * config/avr/driver-avr.c: Ditto.
6034         * config/avr/genopt.sh: Set SVN property svn:executable to *.
6035
6036 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
6037
6038         * calls.c (emit_library_call_value_1): Declare size only if
6039         BLOCK_REG_PADDING is defined.
6040
6041 2011-08-01  Kirill Yukhin  <kirill.yukhin@intel.com>
6042
6043         PR target/49547
6044         * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
6045         (x86_64-*-*): Likewise.
6046         * config/i386/i386.opt (mlzcnt): New.
6047         * config/i386/abmintrin.h: File removed.
6048         (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
6049         * config/i386/lzcntintrin.h: ... here.  New file.
6050         (__lzcnt): Rename to ...
6051         (__lzcnt32): ... this.
6052         * config/i386/bmiintrin.h (head): Update copyright year.
6053         (__lzcnt_u16): Removed.
6054         (__lzcnt_u32): Likewise.
6055         (__lzcnt_u64): Likewise.
6056         * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
6057         is defined, remove abmintrin.h.
6058         * config/i386/cpuid.h (bit_LZCNT): New.
6059         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
6060         LZCNT feature.
6061         * config/i386/i386-c.c (ix86_target_macros_internal): Define
6062         __LZCNT__ if needed.
6063         * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
6064         (ix86_option_override_internal): Handle LZCNT option.
6065         (ix86_valid_target_attribute_inner_p): Likewise.
6066         (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
6067         * config/i386/i386.h (TARGET_LZCNT): New.
6068         (CLZ_DEFINED_VALUE_AT_ZERO): Update.
6069         * config/i386/i386.md (clz<mode>2): Update insn constraint.
6070         (clz<mode>2_lzcnt): Likewise.
6071         * doc/invoke.texi: Mention -mlzcnt option.
6072         * doc/extend.texi: Likewise.
6073
6074 2011-08-01  Julian Brown  <julian@codesourcery.com>
6075
6076         * configure.ac (fixed-point): Add ARM support.
6077         * configure: Regenerate.
6078         * config/arm/arm.c (arm_fixed_mode_set): New struct.
6079         (arm_set_fixed_optab_libfunc): New.
6080         (arm_set_fixed_conv_libfunc): New.
6081         (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
6082         ARM-specific names.
6083         (aapcs_libcall_value): Return sub-word-size fixed-point libcall
6084         return values in SImode.
6085         (arm_return_in_msb): Return fixed-point types in the msb.
6086         (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
6087         upwards.
6088         (arm_scalar_mode_supported_p): Support fixed-point modes.
6089         (arm_vector_mode_supported_p): Support vector fixed-point modes.
6090         * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
6091         (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
6092         (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
6093         (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
6094         * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
6095         New mode iterators.
6096         (qaddsub_suf): New mode attribute.
6097         * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
6098         vector modes.
6099         * config/arm/predicates.md (sat_shift_operator): New predicate.
6100         * config/arm/arm-fixed.md: New.
6101         * config/arm/arm.md: Include arm-fixed.md.
6102         * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
6103
6104 2011-08-01  Julian Brown  <julian@codesourcery.com>
6105
6106         * calls.c (emit_library_call_value_1): Support padding for libcall
6107         arguments and return values.
6108         * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
6109         downwards in big-endian mode.
6110
6111 2011-08-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6112
6113         PR debug/49887
6114         * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
6115         * config/sol2-protos.h: Likewise.
6116         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
6117         solaris_code_end.
6118         * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
6119         * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
6120         solaris_file_end.
6121         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
6122
6123 2011-08-01  Julian Brown  <julian@codesourcery.com>
6124
6125         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
6126
6127 2011-08-01  Julian Brown  <julian@codesourcery.com>
6128
6129         * final.c (output_addr_const): Print fixed-point constants as
6130         decimal not hex.
6131
6132 2011-08-01  Richard Guenther  <rguenther@suse.de>
6133
6134         * stor-layout.c (initialize_sizetypes): Properly sign-extend
6135         bitsiztype TYPE_MAX_VALUE.
6136
6137 2011-08-01  Julian Brown  <julian@codesourcery.com>
6138
6139         * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
6140         comparison helpers.
6141
6142 2011-07-31  Richard Henderson  <rth@redhat.com>
6143
6144         * config/h8300/crti.asm: Add flags to .section directive.
6145         * config/h8300/crtn.asm: Likewise.
6146
6147 2011-07-31  Richard Henderson  <rth@redhat.com>
6148
6149         * stor-layout.c (initialize_sizetypes): Handle unsigned short.
6150         * tree.c (build_common_tree_nodes): Likewise.
6151
6152 2011-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
6153
6154         PR target/49880
6155         * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
6156         (divsi3_i1): Likewise.
6157
6158 2011-07-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6159
6160         PR tree-optimization/49749
6161         * tree-ssa-reassoc.c (get_rank): New forward declaration.
6162         (PHI_LOOP_BIAS): New macro.
6163         (phi_rank): New function.
6164         (loop_carried_phi): Likewise.
6165         (propagate_rank): Likewise.
6166         (get_rank): Add calls to phi_rank and propagate_rank.
6167
6168 2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>
6169
6170         * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
6171         of TARGET_64BIT.
6172         (PTRDIFF_TYPE): Likewise.
6173
6174 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
6175
6176         PR target/49920
6177         * config/i386/i386.md (strset): Do not expand strset_singleop
6178         when %eax or $edi are fixed.
6179         (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
6180         (*strsetsi_1): Ditto.
6181         (*strsethi_1): Ditto.
6182         (*strsetqi_1): Ditto.
6183         (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
6184         (*rep_stossi): Ditto.
6185         (*rep_stosqi): Ditto.
6186         (*strlenqi_1): Ditto.
6187         (cmpstrnsi): Also fail when %ecx is fixed.
6188         (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
6189         (*cmpstrnqi_1): Ditto.
6190         (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
6191         (*strmovsi_1): Ditto.
6192         (*strmovhi_1): Ditto.
6193         (*strmovqi_1): Ditto.
6194         (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
6195         (*rep_movsi): Ditto.
6196         (*rep_movqi): Ditto.
6197
6198 2011-07-31  Mikael Pettersson  <mikpe@it.uu.se>
6199
6200         PR target/47908
6201         * config/m68k/m68k.c (m68k_override_options_after_change): New function.
6202         Disable instruction scheduling for non-ColdFire targets.
6203         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
6204
6205 2011-07-31  Revital Eres  <revital.eres@linaro.org>
6206
6207         * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
6208         of anti-dep edge from a branch.
6209         (add_cross_iteration_register_deps): Create anti-dep edge from
6210         a branch.
6211
6212 2011-07-31  Revital Eres  <revital.eres@linaro.org>
6213
6214         * modulo-sched.c: Change comment.
6215         (reset_sched_times): Fix print message.
6216         (print_partial_schedule): Add print info.
6217
6218 2011-07-31  Tom de Vries  <tom@codesourcery.com>
6219
6220         PR middle-end/43513
6221         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
6222         get_object_alignment and TYPE_ALIGN.
6223
6224 2011-07-30  Tom de Vries  <tom@codesourcery.com>
6225
6226         PR middle-end/43513
6227         * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
6228         (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
6229
6230 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6231
6232         * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
6233         <sys/sbd.h>.
6234         (cpu_types): New array.
6235         (cputype): New function.
6236         (host_detect_local_cpu): Only define buf, f if !__sgi__.
6237         Use scaninvent instead of /proc/cpuinfo if __sgi__.
6238         * config.host: Also use driver-native.o, mips/x-native on
6239         mips-sgi-irix*.
6240         * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
6241         (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
6242         (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
6243
6244 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
6245
6246         PR middle-end/49897
6247         PR middle-end/49898
6248         * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
6249         in nested parallel and outer is a gimple_reg, mark it as addressable
6250         and set its bit in task_shared_vars bitmap too.
6251
6252 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
6253
6254         * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
6255
6256 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6257
6258         * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
6259         IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
6260         (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
6261         AMASK_LOCKPFTCHOK): Define.
6262         (host_detect_local_cpu): Remove buf, f, cpu_names.
6263         Define cpu_types, implver, amask.
6264         Use __builtin_alpha_implver, __builtin_alpha_amask to determine
6265         native CPU.
6266         * config.host: Also use driver-alpha.o, alpha/x-alpha on
6267         alpha*-dec-osf*.
6268         * config/alpha/osf5.h [__alpha__ || __alpha]
6269         (host_detect_local_cpu): Declare.
6270         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
6271         (DRIVER_SELF_SPECS): Define.
6272
6273 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
6274
6275         PR target/47715
6276         * config/i386/i386.md (*load_tp_x32): New.
6277         (*load_tp_x32_zext): Ditto.
6278         (*add_tp_x32): Ditto.
6279         (*add_tp_x32_zext): Ditto.
6280         (*load_tp_<mode>): Disable for TARGET_X32 targets.
6281         (*add_tp_<mode>): Ditto.
6282         * config/i386/i386.c (get_thread_pointer): Load thread pointer in
6283         ptr_mode and convert to Pmode if needed.
6284
6285 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
6286
6287         PR target/49687
6288         * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
6289         muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
6290         *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
6291         Add X to register footprint: Clobber r26/r27.
6292
6293 2011-07-29  Richard Guenther  <rguenther@suse.de>
6294
6295         * builtins.c (fold_builtin_signbit): Build the comparison
6296         with a proper type.
6297
6298 2011-07-29  Richard Guenther  <rguenther@suse.de>
6299
6300         PR tree-optimization/49893
6301         * tree-predcom.c (suitable_reference_p): Volatile references
6302         are not suitable.
6303
6304 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
6305
6306         PR target/49313
6307         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
6308         (__ctzsi2): Result for 0 may be undefined.
6309         (__ctzhi2): Result for 0 may be undefined.
6310         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
6311         (__popcountsi2): Ditto. And don't clobber r26.
6312         (__popcountdi2): Ditto. And don't clobber r27.
6313         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
6314         (parityhi2): New expand.
6315         (paritysi2): New expand.
6316         (popcounthi2): New expand.
6317         (popcountsi2): New expand.
6318         (clzhi2): New expand.
6319         (clzsi2): New expand.
6320         (ctzhi2): New expand.
6321         (ctzsi2): New expand.
6322         (ffshi2): New expand.
6323         (ffssi2): New expand.
6324         (copysignsf3): New insn.
6325         (bswapsi2): New expand.
6326         (*parityhi2.libgcc): New insn.
6327         (*parityqihi2.libgcc): New insn.
6328         (*paritysihi2.libgcc): New insn.
6329         (*popcounthi2.libgcc): New insn.
6330         (*popcountsi2.libgcc): New insn.
6331         (*popcountqi2.libgcc): New insn.
6332         (*popcountqihi2.libgcc): New insn-and-split.
6333         (*clzhi2.libgcc): New insn.
6334         (*clzsihi2.libgcc): New insn.
6335         (*ctzhi2.libgcc): New insn.
6336         (*ctzsihi2.libgcc): New insn.
6337         (*ffshi2.libgcc): New insn.
6338         (*ffssihi2.libgcc): New insn.
6339         (*bswapsi2.libgcc): New insn.
6340
6341 2011-07-29  Richard Guenther  <rguenther@suse.de>
6342
6343         * tree-vrp.c (get_value_range): Only set parameter default
6344         definitions to varying, leave others at undefined.
6345         (extract_range_from_binary_expr): Fix undefined handling.
6346         (vrp_visit_phi_node): Handle merged undefined state.
6347
6348 2011-07-29  Wei Guozhi  <carrot@google.com>
6349
6350         PR rtl-optimization/49799
6351         * combine.c (make_compound_operation): Check if the bit field is valid
6352         before change it to bit field extraction.
6353
6354 2011-07-29  Bernd Schmidt  <bernds@codesourcery.com>
6355
6356         PR rtl-optimization/49891
6357         * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
6358         newly created returnjumps.
6359
6360 2011-07-28  DJ Delorie  <dj@redhat.com>
6361
6362         * expr.c (expand_expr_addr_expr_1): Detect a user request for a
6363         local frame in a naked function, and produce a suitable error for
6364         that specific case.
6365
6366         * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
6367         registers to be reloaded in HI classes when the target is HI.
6368
6369 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
6370
6371         * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
6372         bound_one, bound_two.
6373
6374 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
6375
6376         PR middle-end/48648
6377         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
6378         CLAST assignments.
6379         (translate_clast): Same.
6380         (translate_clast_assignment): New.
6381
6382 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
6383
6384         PR tree-optimization/49876
6385         * sese.c (rename_uses): Do not return false on gloog_error: set
6386         the new_expr to integer_zero_node and continue code generation.
6387         (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
6388
6389 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
6390
6391         PR debug/49846
6392         * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
6393         arguments also check if they aren't initialized with a MODE_INT
6394         mode of the same size.
6395
6396 2011-07-28  Aldy Hernandez  <aldyh@redhat.com>
6397
6398         * expr.c (get_bit_range): Handle *MEM_REF's.
6399
6400 2011-07-28  Bernd Schmidt  <bernds@codesourcery.com>
6401
6402         * rtlanal.c (tablejump_p): False for returns.
6403         * reorg.c (first_active_target_insn): New static function.
6404         (find_end_label): Set JUMP_LABEL for a new returnjump.
6405         (optimize_skip, get_jump_flags, rare_destination,
6406         mostly_true_jump, get_branch_condition,
6407         steal_delay_list_from_target, own_thread_p,
6408         fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
6409         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
6410         dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
6411         * jump.c (delete_related_insns): Likewise.
6412         (jump_to_label_p): New function.
6413         (redirect_target): New static function.
6414         (redirect_exp_1): Use it.  Adjust to handle ret_rtx in JUMP_LABELS.
6415         (redirect_jump_1): Assert that the new label is nonnull.
6416         (redirect_jump): Likewise.
6417         (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
6418         * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
6419         exit block.
6420         (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE.  All callers
6421         changed.  Ensure that the right label is passed to redirect_jump.
6422         * function.c (emit_return_into_block,
6423         thread_prologue_and_epilogue_insns): Ensure new returnjumps have
6424         ret_rtx in their JUMP_LABEL.
6425         * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
6426         * emit-rtl.c (skip_consecutive_labels): Allow the caller to
6427         pass ret_rtx as label.
6428         * cfglayout.c (fixup_reorder_chain): Use
6429         force_nonfallthru_and_redirect rather than force_nonfallthru.
6430         (duplicate_insn_chain): Copy JUMP_LABELs for returns.
6431         * rtl.h (ANY_RETURN_P): New macro.
6432         (jump_to_label_p): Declare.
6433         * resource.c (find_dead_or_set_registers): Handle ret_rtx in
6434         JUMP_LABELs.
6435         (mark_target_live_regs): Likewise.
6436         * basic-block.h (force_nonfallthru_and_redirect): Declare.
6437         * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
6438         * config/alpha/alpha.c (alpha_tablejump_addr_vec,
6439         alpha_tablejump_best_label): Remove functions.
6440         * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
6441         alpha_tablejump_best_label): Remove declarations.
6442         * config/sh/sh.c (barrier_align, split_branches): Adjust for
6443         ret_rtx in JUMP_LABELs.
6444         * config/arm/arm.c (is_jump_table): Likewise.
6445
6446 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
6447
6448         * config/i386/predicates.md (pic_32bit_opreand): Do not define as
6449         special predicate.  Remove explicit mode checks.
6450
6451 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
6452
6453         * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
6454         DW_AT_data_member_location containing just DW_OP_plus_uconst.
6455
6456         PR debug/49871
6457         * dwarf2out.c (size_of_die, value_format, output_die): Use
6458         DW_FORM_udata instead of DW_FORM_data[48] for
6459         dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
6460
6461 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
6462
6463         * config/i386/i386.md (*tls_global_dynamic_64): Update
6464         length attribute.
6465
6466 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
6467
6468         PR target/47715
6469         * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
6470         tls_symbolic_operand check.  Update code sequence for TARGET_X32.
6471         (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
6472         (tls_dynamic_gnu2_64): Ditto.
6473         (*tls_dynamic_gnu2_lea_64): Ditto.
6474         (*tls_dynamic_gnu2_call_64): Ditto.
6475         (*tls_dynamic_gnu2_combine_64): Ditto.
6476
6477 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
6478
6479         * config.gcc: Set need_64bit_hwint to yes for x86 targets.
6480
6481 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
6482
6483         PR target/47364
6484         * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
6485
6486 2011-07-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6487
6488         * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
6489         before the core constraints. Adjust attributes.
6490         ("*thumb2_movdf_vfp"): Likewise.
6491
6492 2011-07-28  Kai Tietz  <ktietz@redhat.com>
6493
6494         * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
6495         (simplify_truth_ops_using_ranges): Likewise.
6496         (build_assert_expr_for): Likewise.
6497         (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
6498         and handle BIT_NOT_EXPR for truth-operation.
6499
6500 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
6501
6502         PR target/49313
6503         Undo r176835 from trunk
6504         2011-07-27  Georg-Johann Lay
6505
6506 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
6507
6508         PR target/49687
6509         * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
6510         Add _muluhisi3, _mulshisi3, _usmulhisi3.
6511         * config/avr/libgcc.S (__mulsi3): Rewrite.
6512         (__mulhisi3): Rewrite.
6513         (__umulhisi3): Rewrite.
6514         (__usmulhisi3): New.
6515         (__muluhisi3): New.
6516         (__mulshisi3): New.
6517         (__mulohisi3): New.
6518         (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
6519         declare.
6520         * config/avr/predicates.md (pseudo_register_operand): Rewrite.
6521         (pseudo_register_or_const_int_operand): New.
6522         (combine_pseudo_register_operand): New.
6523         (u16_operand): New.
6524         (s16_operand): New.
6525         (o16_operand): New.
6526         * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
6527         * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
6528         (any_extend, any_extend2): New code iterators.
6529         (extend_prefix): New code attribute.
6530         (mulsi3): Rewrite. Turn insn to expander.
6531         (mulhisi3): Ditto.
6532         (umulhisi3): Ditto.
6533         (usmulhisi3): New expander.
6534         (*mulsi3): New insn-and-split.
6535         (mulu<mode>si3): New insn-and-split.
6536         (muls<mode>si3): New insn-and-split.
6537         (mulohisi3): New insn-and-split.
6538         (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
6539         *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
6540         *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
6541         *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
6542         insn-and-split.
6543         (*mulsi3_call): Rewrite.
6544         (*mulhisi3_call): Rewrite.
6545         (*umulhisi3_call): Rewrite.
6546         (*usmulhisi3_call): New insn.
6547         (*muluhisi3_call): New insn.
6548         (*mulshisi3_call): New insn.
6549         (*mulohisi3_call): New insn.
6550         (extendqihi2): Use combine_pseudo_register_operand as predicate
6551         for operand 1.
6552         (extendqisi2): Ditto.
6553         (zero_extendqihi2): Ditto.
6554         (zero_extendqisi2): Ditto.
6555         (zero_extendhisi2): Ditto.
6556         (extendhisi2): Ditto. Don't early-clobber operand 0.
6557
6558 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
6559
6560         * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
6561
6562 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
6563
6564         PR tree-optimization/49471
6565         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
6566         iv only when the largest type is unsigned.  Do not call
6567         lang_hooks.types.type_for_size.
6568
6569 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
6570
6571         PR middle-end/45450
6572         * graphite-poly.c (apply_poly_transforms): Disable legality check
6573         after an openscop read.
6574
6575 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
6576
6577         PR middle-end/47691
6578         * graphite-clast-to-gimple.c (translate_clast_user): Update use of
6579         copy_bb_and_scalar_dependences.
6580         * sese.c (rename_uses): Do not call gcc_assert.  Set gloog_error.
6581         (graphite_copy_stmts_from_block): Update call to rename_uses.
6582         (copy_bb_and_scalar_dependences): Update call to
6583         graphite_copy_stmts_from_block.
6584         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
6585
6586 2011-07-27  Georg-Johann Lay  <avr@gjlay.de>
6587
6588         PR target/49313
6589         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
6590         (__ctzsi2): Result for 0 may be undefined.
6591         (__ctzhi2): Result for 0 may be undefined.
6592         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
6593         (__popcountsi2): Ditto. And don't clobber r26.
6594         (__popcountdi2): Ditto. And don't clobber r27.
6595         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
6596         (parityhi2): New expand.
6597         (paritysi2): New expand.
6598         (popcounthi2): New expand.
6599         (popcountsi2): New expand.
6600         (clzhi2): New expand.
6601         (clzsi2): New expand.
6602         (ctzhi2): New expand.
6603         (ctzsi2): New expand.
6604         (ffshi2): New expand.
6605         (ffssi2): New expand.
6606         (copysignsf3): New insn.
6607         (bswapsi2): New expand.
6608         (*parityhi2.libgcc): New insn.
6609         (*parityqihi2.libgcc): New insn.
6610         (*paritysihi2.libgcc): New insn.
6611         (*popcounthi2.libgcc): New insn.
6612         (*popcountsi2.libgcc): New insn.
6613         (*popcountqi2.libgcc): New insn.
6614         (*popcountqihi2.libgcc): New insn-and-split.
6615         (*clzhi2.libgcc): New insn.
6616         (*clzsihi2.libgcc): New insn.
6617         (*ctzhi2.libgcc): New insn.
6618         (*ctzsihi2.libgcc): New insn.
6619         (*ffshi2.libgcc): New insn.
6620         (*ffssihi2.libgcc): New insn.
6621         (*bswapsi2.libgcc): New insn.
6622
6623 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
6624
6625         * config/i386/i386.c (ix86_expand_move): Do not explicitly check
6626         the mode of symbolic_opreand RTXes.
6627
6628 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
6629
6630         * config/i386/predicates.md (x86_64_movabs_operand): Return false
6631         for pic_32bit_operand RTXes.
6632         * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
6633         in DImode.
6634
6635 2011-07-27  Kai Tietz  <ktietz@redhat.com>
6636
6637         * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
6638         for 32-bit, too.
6639         (ix86_handle_abi_attribute): Allow function attributes
6640         ms_abi/sysv_abi in 32-bit mode, too.
6641         * doc/extend.texi: Adjust attribute documentation.
6642
6643         * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
6644         expression handling.
6645         (and_var_with_comparison_1): Likewise.
6646
6647 2011-07-27  Aldy Hernandez  <aldyh@redhat.com>
6648
6649         * params.h (ALLOW_STORE_DATA_RACES): New.
6650         * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
6651         * Makefile.in (expr.o): Depend on PARAMS_H.
6652         * machmode.h (get_best_mode): Add argument.
6653         * fold-const.c (optimize_bit_field_compare): Add argument to
6654         get_best_mode.
6655         (fold_truthop): Same.
6656         * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
6657         * expr.c (emit_group_store): Same.
6658         (copy_blkmode_from_reg): Same.
6659         (write_complex_part): Same.
6660         (optimize_bitfield_assignment_op): Add argument.
6661         Add argument to get_best_mode.
6662         (get_bit_range): New.
6663         (expand_assignment): Calculate maxbits and pass it down accordingly.
6664         (store_field): New argument.
6665         (expand_expr_real_2): New argument to store_field.  Include params.h.
6666         * expr.h (store_bit_field): New argument.
6667         * stor-layout.c (get_best_mode): Restrict mode expansion by taking
6668         into account maxbits.
6669         * calls.c (store_unaligned_arguments_into_pseudos): New argument
6670         to store_bit_field.
6671         * expmed.c (store_bit_field_1): New argument.  Use it.
6672         (store_bit_field): Same.
6673         (store_fixed_bit_field): Same.
6674         (store_split_bit_field): Same.
6675         (extract_bit_field_1): Pass new argument to get_best_mode.
6676         (extract_bit_field): Same.
6677         * stmt.c (store_bit_field): Pass new argument to store_bit_field.
6678         * doc/invoke.texi: Document parameter allow-store-data-races.
6679
6680 2011-07-27  Jakub Jelinek  <jakub@redhat.com>
6681
6682         * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
6683
6684 2011-07-27  Kai Tietz  <ktietz@redhat.com>
6685
6686         * tree-vrp.c (extract_range_from_binary_expr): Remove
6687         TRUTH-binary cases and add new bitwise-cases.
6688         (extract_range_from_assignment): Likewise.
6689         (register_edge_assert_for_1): Likeiwise.
6690         (register_edge_assert_for): Likewise.
6691         (simplify_truth_ops_using_ranges): Likewise.
6692         (simplify_stmt_using_ranges): Likewise.
6693
6694 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
6695
6696         PR target/47372
6697         * config/i386/i386.c (ix86_delegitimize_address): Call
6698         simplify_gen_subreg for PIC with mode of x only if modes of
6699         x and orig_x are different.
6700
6701 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
6702
6703         * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
6704         to GC allocated copy of the string.
6705         (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
6706         before .debug_line, not after it.
6707
6708 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
6709
6710         PR middle-end/47046
6711         * tree-chrec.h (evolution_function_is_affine_p): Recursively call
6712         evolution_function_is_affine_p on CHREC_RIGHT.
6713
6714 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
6715
6716         * tree-data-ref.c (max_stmt_executions_tree): Do not call
6717         lang_hooks.types.type_for_size.
6718
6719 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
6720
6721         PR middle-end/47653
6722         * graphite-scop-detection.c (graphite_can_represent_loop): Discard
6723         loops using wrapping semantics.
6724
6725 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
6726
6727         PR middle-end/48805
6728         * tree-scalar-evolution.c (instantiate_scev_r): Return
6729         chrec_dont_know for ADDR_EXPR.
6730
6731 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
6732             H.J. Lu  <hongjiu.lu@intel.com>
6733
6734         PR target/47369
6735         PR target/49853
6736         * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
6737         if legitimize_tls_address returned operand in wrong mode. Allow
6738         SImode and DImode symbolic operand for PIC.  Call convert_to_mode
6739         if legitimize_pic_address returned operand in wrong mode.
6740
6741 2011-07-26  Martin Jambor  <mjambor@suse.cz>
6742
6743         * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
6744         return false for invariants.
6745
6746 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
6747
6748         * config/i386/i386.md (add->lea splitter): Implement using SWI
6749         mode iterator.  Change operand 2 predicate to <nonmemory_operand>.
6750         (add->lea zext splitter): Change operand 2 predicate to
6751         x86_64_nonmemory_operand.
6752
6753 2011-07-26  Richard Guenther  <rguenther@suse.de>
6754
6755         * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
6756         frequency makes everything hot.
6757
6758 2011-07-26  Richard Guenther  <rguenther@suse.de>
6759
6760         PR tree-optimization/49840
6761         * tree-vrp.c (range_fits_type_p): Properly handle full
6762         double-int precision.
6763
6764 2011-07-26  Martin Jambor  <mjambor@suse.cz>
6765
6766         PR bootstrap/49786
6767         * ipa-cp.c (update_profiling_info): Avoid overflow when updating
6768         counts.
6769         (update_specialized_profile): Likewise.
6770
6771 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
6772             H.J. Lu  <hongjiu.lu@intel.com>
6773
6774         PR target/47381
6775         PR target/49832
6776         PR target/49833
6777         * config/i386/i386.md (i): Change SImode attribute to "e".
6778         (g): Change SImode attribute to "rme".
6779         (di): Change SImode attribute to "nF".
6780         (general_operand): Change SImode attribute to x86_64_general_operand.
6781         (general_szext_operand): Change SImode attribute to
6782         x86_64_szext_general_operand.
6783         (immediate_operand): Change SImode attribute to
6784         x86_64_immediate_operand.
6785         (nonmemory_operand): Change SImode attribute to
6786         x86_64_nonmemory_operand.
6787         (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
6788         (*movsi_internal): Ditto.  Use "e" constraint in alternative 2.
6789         (*lea_1): Use SWI48 mode iterator.
6790         (*lea_1_zext): New insn pattern.
6791         (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
6792         (*bt<mode>): Ditto.
6793         (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
6794         Update operand constraints.
6795         (addsi_1_zext): Ditto.
6796         (*add<mode>2): Ditto.
6797         (*addsi_3_zext): Ditto.
6798         (*subsi_1_zext): Ditto.
6799         (*subsi_2_zext): Ditto.
6800         (*subsi_3_zext): Ditto.
6801         (*addsi3_carry_zext): Ditto.
6802         (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
6803         (*mulsi3_1_zext): Ditto.
6804         (*andsi_1): Ditto.
6805         (*andsi_1_zext): Ditto.
6806         (*andsi_2_zext): Ditto.
6807         (*<any_or:code>si_1_zext): Ditto.
6808         (*<any_or:code>si_2_zext): Ditto.
6809         (*test<mode>_1): Use <general_operand> predicate for operand 1.
6810         (*and<mode>_2): Ditto.
6811         (mov<mode>cc): Use  <general_operand> predicate for operands 1 and 2.
6812         (add->lea splitter): Check operand modes in insn constraint.  Extend
6813         operands less than SImode wide to SImode.
6814         (add->lea zext splitter): Do not extend input operands to DImode.
6815         (*lea_general_1): Handle only QImode and HImode operands.
6816         (*lea_general_2): Ditto.
6817         (*lea_general_3): Ditto.
6818         (*lea_general_1_zext): Remove.
6819         (*lea_general_2_zext): Ditto.
6820         (*lea_general_3_zext): Ditto.
6821         (*lea_general_4): Check operand modes in insn constraint.  Extend
6822         operands less than SImode wide to SImode.
6823         (ashift->lea splitter): Ditto.
6824         * config/i386/i386.c (ix86_print_operand_address): Print address
6825         registers with 'q' modifier on 64bit targets.
6826         * config/i386/predicates.md (pic_32bit_opreand): Define as special
6827         predicate.  Reject non-SI and non-DI modes.
6828
6829 2011-07-25  Andrew Pinski  <apinski@cavium.com>
6830
6831         PR tree-opt/49671
6832         * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
6833         TREE_THIS_NOTRAP into the inner most MEM_REF.
6834         Always copy TREE_THIS_VOLATILE.
6835         * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
6836         arguments are not volatile references.
6837
6838 2011-07-25  Richard Henderson  <rth@redhat.com>
6839
6840         * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
6841         * final.c (final_scan_insn): Don't test for it.
6842         (rest_of_clean_state): Likewise.
6843
6844 2011-07-25  Richard Henderson  <rth@redhat.com>
6845
6846         PR debug/49841
6847         * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
6848         (emit_frame_save): Likewise.
6849         (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
6850         insn onto a dummy blockage insn after the join label.
6851
6852 2011-07-25  Richard Henderson  <rth@redhat.com>
6853
6854         * dwarf2cfi.c (dw_trace_info): Add ID member.
6855         (get_trace_index): Remove.  Change users to use ID member.
6856         (before_next_cfi_note): New.
6857         (connect_traces): Remove unreachable traces before the main loop.
6858         Look across one trace and generate remember/restore_state if needed.
6859
6860 2011-07-25  Richard Henderson  <rth@redhat.com>
6861
6862         * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
6863
6864 2011-07-25  Joern Rennecke  <joern.rennecke@embecosm.com>
6865
6866         * genattr.c (write_upcase, gen_attr <enum definition writing>):
6867         Move to ...
6868         * genattr-common.c ... here.
6869         (main): Call gen_attr.
6870         * optc-gen.awk: Make generated program include insn-attr-common.h .
6871         * Makefile.in (oprions.o): Depend on insn-attr-common.h
6872
6873 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
6874
6875         * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
6876         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
6877         * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
6878         m32c_print_operand, m32c_print_operand_address): Remove.
6879         * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
6880         Change return type to bool. Change argument type to bool.
6881         (m32c_print_operand, m32c_print_operand_address): Make static.
6882         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
6883         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6884
6885 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6886
6887         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
6888         attributes): Document mmap.
6889
6890 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
6891
6892         * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
6893         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
6894         * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
6895         mmix_print_operand, mmix_print_operand_address): Remove.
6896         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
6897         Change return type to bool. Change argument type to bool.
6898         (mmix_print_operand, mmix_print_operand_address): Make static.
6899         (mmix_intval, mmix_output_condition): Change 'x' argument type
6900         to const_rtx.
6901         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
6902         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6903
6904 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
6905
6906         PR target/39386
6907         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
6908         shift counter for x << x and x >> x shifts.
6909
6910 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6911
6912         PR target/47124
6913         * config.gcc: Reject *-*-solaris2 configuration.
6914
6915 2011-07-25  Richard Sandiford  <richard.sandiford@linaro.org>
6916
6917         PR tree-optimization/49809
6918         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
6919         gimple_get_lhs instead of gimple_assign_lhs.
6920
6921 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6922
6923         * system.h [__cplusplus]: Wrap C function declarations in extern "C".
6924
6925 2011-07-25  Richard Guenther  <rguenther@suse.de>
6926
6927         PR tree-optimization/49822
6928         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
6929         more.  Make sure to preserve stmts with side-effects.  Properly
6930         handle virtual defs, follow a longer def chain.
6931
6932 2011-07-22  Romain Geissler  <romain.geissler@gmail.com>
6933
6934         PR plugins/45348
6935         PR plugins/48425
6936         PR plugins/46577
6937         * Makefile.in: Do not flatten c-family directory when installing
6938         plugin headers.
6939
6940 2011-07-25  Eric Botcazou  <ebotcazou@adacore.com>
6941
6942         * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
6943         original nodes if we are dealing with virtual clones.
6944
6945 2011-07-25  Bernd Schmidt  <bernds@codesourcery.com>
6946
6947         * common/config/c6x/c6x-common.c: New file.
6948
6949 2011-07-25  Roman Zhuykov  <zhroma@ispras.ru>
6950
6951         * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
6952
6953 2011-07-25  Richard Guenther  <rguenther@suse.de>
6954
6955         PR tree-optimization/49715
6956         * tree-vrp.c: Include expr.h and optabs.h.
6957         (range_fits_type_): New function.
6958         (simplify_float_conversion_using_ranges): Likewise.
6959         (simplify_stmt_using_ranges): Call it.
6960         * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
6961         * optabs.c (can_float_p): Export.
6962         * optabs.h (can_float_p): Declare.
6963
6964 2011-07-25  Richard Guenther  <rguenther@suse.de>
6965
6966         * tree-vrp.c (num_vr_values, values_propagated): New global vars.
6967         (get_value_range): For out-of-range SSA names or names created
6968         after propagation return a read-only varying range.
6969         (dump_all_value_ranges): Adjust.
6970         (vrp_initialize): Likewise.
6971         (vrp_finalize): Likewise.
6972
6973 2011-07-24  Richard Henderson  <rth@redhat.com>
6974
6975         PR debug/49831
6976         * dwarf2cfi.c (connect_traces): Allow unvisited traces.  Skip
6977         them entirely.
6978
6979 2011-07-24  Richard Henderson  <rth@redhat.com>
6980
6981         PR debug/49825
6982         * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
6983         (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
6984
6985 2011-07-24  Richard Henderson  <rth@redhat.com>
6986
6987         PR debug/49827
6988         * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
6989
6990 2011-07-24  Richard Henderson  <rth@redhat.com>
6991
6992         * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
6993         Zero args_size for abnormal edges.  Adjust all callers.
6994
6995 2011-07-24  Richard Henderson  <rth@redhat.com>
6996
6997         PR debug/49825
6998         * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
6999
7000 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
7001
7002         PR bootstrap/49835
7003         * collect2.c (demangle_flag): Removed.
7004
7005 2011-07-24  Sandra Loosemore  <sandra@codesourcery.com>
7006
7007         * configure.ac (demangler_in_ld): Default to yes.
7008         * configure: Regenerated.
7009         * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
7010         mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
7011         --no-demangle options straight through to ld.  When
7012         HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
7013         way that has the intended effect on Windows.
7014
7015 2011-07-23  Richard Henderson  <rth@redhat.com>
7016
7017         * dwarf2cfi.c: Include basic-block.h.
7018         (dw_label_info): Remove.
7019         (trace_work_list, trace_index): New.
7020         (remember_row, emit_cfa_remember): Remove.
7021         (dw_trace_info_hash, dw_trace_info_eq): New.
7022         (get_trace_index, get_trace_info): New.
7023         (save_point_p): New.
7024         (free_cfi_row): Remove.
7025         (add_cfi): Do not emit DW_CFA_remember_state.
7026         (cfa_row_equal_p): New.
7027         (barrier_args_size): Remove.
7028         (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
7029         (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
7030         (maybe_record_trace_start, create_trace_edges, scan_trace): New.
7031         (dwarf2out_cfi_begin_epilogue): Remove.
7032         (dwarf2out_frame_debug_restore_state): Remove.
7033         (connect_traces, create_pseudo_cfg): New.
7034         (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
7035         * Makefile.in (dwarf2cfi.o): Update.
7036
7037 2011-07-23  Richard Henderson  <rth@redhat.com>
7038
7039         * dwarf2cfi.c (dw_trace_info): New.
7040         (dw_label_info): New.
7041         (cie_return_save): New.
7042         (cur_trace): New.
7043         (queued_args_size): Rename from args_size.  Update all users.
7044         (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
7045         (def_cfa_1): Use cur_trace instead of cfa_*.
7046         (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
7047         (clobbers_queued_reg_save, reg_saved_in): Likewise.
7048         (dwarf2out_frame_debug_expr): Likewise.
7049         (create_cie_data): Split out from ...
7050         (execute_dwarf2_frame): ... here.  Initialize cur_trace.
7051
7052 2011-07-23  Richard Henderson  <rth@redhat.com>
7053
7054         * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
7055         Update all users to match.
7056         (execute_dwarf2_frame): Free reg_saved_in_data.
7057
7058 2011-07-23  Richard Henderson  <rth@redhat.com>
7059
7060         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
7061         (queued_reg_saves): Don't GTY.  Change to a VEC.
7062         (queue_reg_save): Update to match.
7063         (dwarf2out_flush_queued_reg_saves): Likewise.
7064         (clobbers_queued_reg_save): Likewise.
7065         (reg_saved_in): Likewise.
7066         (execute_dwarf2_frame): Free queued_reg_saves.
7067
7068 2011-07-23  Richard Henderson  <rth@redhat.com>
7069
7070         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
7071
7072 2011-07-23  Richard Henderson  <rth@redhat.com>
7073
7074         * dwarf2cfi.c (add_cfi_args_size): Split out from...
7075         (dwarf2out_args_size): ... here.
7076         (add_cfi_restore): Split out from ...
7077         (dwarf2out_frame_debug_cfa_restore): ... here.
7078         (def_cfa_0): Split out from ...
7079         (def_cfa_1): ... here.
7080         (cfi_oprnd_equal_p, cfi_equal_p): New.
7081         (change_cfi_row): New.
7082         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
7083         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
7084         (output_cfis): Remove.
7085         * dwarf2out.c (output_fde): Simplify output_cfi loop.
7086         (dwarf2out_switch_text_section): Don't call output_cfis.
7087         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
7088         * dwarf2out.h: Update decls.
7089         (enum dw_val_class): Add dw_val_class_none.
7090
7091 2011-07-23  Richard Henderson  <rth@redhat.com>
7092
7093         * dwarf2cfi.c (update_row_reg_save): New.
7094         (dwarf2out_frame_debug_cfa_expression): Use it.
7095         (dwarf2out_frame_debug_cfa_restore): Likewise.
7096         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
7097
7098 2011-07-23  Richard Henderson  <rth@redhat.com>
7099
7100         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
7101
7102 2011-07-23  Richard Henderson  <rth@redhat.com>
7103
7104         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
7105         (cie_cfi_row): New.
7106         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
7107         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
7108         (cur_row, remember_row): New.
7109         (def_cfa_1): Use cur_row instead of the old_* variables.
7110         (dwarf2out_frame_debug_restore_state): Similarly.
7111         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
7112         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
7113         (dwarf2out_frame_debug_adjust_cfa): Likewise.
7114         (dwarf2out_frame_debug_cfa_offset): Likewise.
7115         (dwarf2out_frame_debug_expr): Likewise.
7116         (execute_dwarf2_frame): Set up cur_row.
7117         * dwarf2out.h (struct cfa_loc): Mark for GTY.
7118
7119 2011-07-23  Richard Henderson  <rth@redhat.com>
7120
7121         * basic-block.h (EDGE_PRESERVE): New.
7122         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
7123         * bb-reorder.c: Include except.h.
7124         (fix_up_crossing_landing_pad): New.
7125         (find_rarely_executed_basic_blocks_and_crossing_edges): Place
7126         landing pads in the right partition.  Duplicate as necessary.
7127         (partition_hot_cold_basic_blocks): Fix up DF info after
7128         duplicating landing pads.
7129         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
7130         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
7131         is set properly.  Validate that EH edges are not CROSSING.
7132         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
7133         (dw2_build_landing_pads): ... here.
7134         (convert_to_eh_region_ranges): Remove code to fixup crossing
7135         landing pads.
7136         * except.h (expand_dw2_landing_pad_for_region): Declare.
7137         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
7138
7139 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
7140
7141         PR target/49816
7142         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
7143
7144 2011-07-22  Jason Merrill  <jason@redhat.com>
7145
7146         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
7147
7148 2011-07-22  Richard Henderson  <rth@redhat.com>
7149
7150         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
7151
7152 2011-07-22  Richard Henderson  <rth@redhat.com>
7153
7154         * jump.c (maybe_propagate_label_ref): Split out of...
7155         (mark_all_labels): ... here.  Do not attempt label_ref
7156         propagation while in cfglayout mode.
7157
7158 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
7159
7160         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
7161         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
7162         (dwarf_attr_name): Handle DW_AT_GNU_macros.
7163         (dwarf2out_define): If the vector is empty and
7164         lineno is 0, emit a dummy entry first.
7165         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
7166         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
7167         optimize_macinfo_range): New functions.
7168         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
7169         mergeable, optimize longer strings using
7170         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
7171         optimize longer sequences of define/undef ops from headers
7172         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
7173         emit a section headers.
7174         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
7175         and macinfo_section_label to DEBUG_MACRO_SECTION
7176         resp. DEBUG_MACRO_SECTION_LABEL.
7177         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
7178         instead of DW_AT_macro_info.
7179
7180         PR other/32998
7181         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
7182         options.
7183         * dwarf2out.c: Include opts.h.
7184         (dchar_p): New typedef.  Define heap VEC for it.
7185         (producer_string): New variable.
7186         (gen_producer_string): New function.
7187         (gen_compile_unit_die): Use it.
7188         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
7189         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
7190         * doc/invoke.texi: Document -grecord-gcc-switches and
7191         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
7192         to -frecord-gcc-switches description.
7193
7194 2011-07-22  Jason Merrill  <jason@redhat.com>
7195
7196         PR c++/30112
7197         * c-decl.c (c_linkage_bindings): Define.
7198
7199 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
7200
7201         PR debug/49815
7202         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
7203
7204 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
7205
7206         * config/i386/i386.c (ix86_option_override_internal): Disallow
7207         MS ABI in x32 mode.
7208         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
7209         only for TARGET_LP64.
7210         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
7211
7212 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
7213
7214         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
7215         avoid warnings when GCC is built with a C++ compiler.
7216
7217 2011-07-22  Martin Jambor  <mjambor@suse.cz>
7218
7219         PR lto/49796
7220         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
7221         if decl node is in another partition, call cgraph_get_node only once.
7222
7223 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
7224
7225         * config.gcc (x86_64-*-linux*): Set
7226         default_gnu_indirect_function to yes.
7227
7228 2011-07-22  Richard Guenther  <rguenther@suse.de>
7229
7230         PR tree-optimization/45819
7231         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
7232         preserve volatile and notrap flags.
7233
7234 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7235             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7236
7237         PR bootstrap/49794
7238         * configure.ac: Test AM_ICONV with CXX.
7239         * configure: Regenerate.
7240         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
7241
7242 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7243
7244         PR bootstrap/49797
7245         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
7246         (set_cloog_options): Use it.
7247
7248 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
7249
7250         PR c++/49756
7251         * gcc.c (main): Call stack_limit_increase (64MB).
7252         * toplev.c (toplev_main): Likewise.
7253
7254 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
7255
7256         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
7257         instead of force_reg.
7258
7259 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
7260
7261         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
7262         needed and use force_reg after convert.
7263         (ix86_expand_call): Likewise.
7264         (ix86_expand_special_args_builtin): Likewise.
7265         (ix86_expand_builtin): Likewise.
7266
7267 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
7268
7269         PR middle-end/47654
7270         PR middle-end/49649
7271         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
7272         in parameter.  Initialize v1 and v2 based on the values returned
7273         by clast_name_to_lb_ub.
7274         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
7275         values.
7276         (type_for_clast_bin): Same.
7277         (type_for_clast_expr): Same.
7278         (type_for_clast_eq): Update calls to type_for_clast_expr.
7279         (type_for_clast_for): Same.
7280         (build_iv_mapping): Same.
7281         * graphite-ppl.h (value_min): New.
7282
7283 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
7284
7285         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
7286         types whenever possible.
7287
7288 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
7289
7290         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
7291         and ub fields.
7292         (new_clast_name_index): Add lb and ub parameters.
7293         (free_clast_name_index): New.
7294         (clast_name_to_lb_ub): New.
7295         (save_clast_name_index): Add lb and ub parameters.
7296         (compute_bounds_for_param): New.
7297         (type_for_level): Removed.
7298         (type_for_clast_for): Removed level parameter.  Do not call
7299         type_for_level.
7300         (graphite_create_new_loop): Store the lb and ub for the clast_name
7301         of the iterator of the loop that has been generated.
7302         (graphite_create_new_loop_guard): Remove parameter level.
7303         (create_params_index): Store the lb and ub of each parameter.
7304         (gloog): Use free_clast_name_index.  Pass to create_params_index
7305         the current scop.
7306
7307 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
7308
7309         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
7310         (max_precision_type): Inline max_signed_precision_type.
7311         (type_for_clast_red): Use max_precision_type.
7312         (type_for_clast_bin): Same.
7313         (type_for_clast_for): Same.
7314
7315 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
7316
7317         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
7318         type_for_interval.
7319         (gcc_type_for_value): Renamed type_for_value.
7320         (gcc_type_for_clast_term): Renamed type_for_clast_term.
7321         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
7322         (gcc_type_for_clast_red): Renamed type_for_clast_red.
7323         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
7324         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
7325         (graphite_translate_clast_equation): Update calls.
7326         (compute_type_for_level): Renamed type_for_level.
7327         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
7328         (build_iv_mapping): Update calls.
7329         (graphite_create_new_loop_guard): Same.
7330
7331 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
7332
7333         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
7334         comment.
7335
7336 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
7337
7338         * graphite-clast-to-gimple.c (struct ivs_params): New.
7339         (clast_name_to_gcc): Use ivs_params to pass around parameters.
7340         (clast_to_gcc_expression): Same.
7341         (clast_to_gcc_expression_red): Same.
7342         (gcc_type_for_clast_term): Same.
7343         (gcc_type_for_clast_expr): Same.
7344         (gcc_type_for_clast_red): Same.
7345         (gcc_type_for_clast_bin): Same.
7346         (gcc_type_for_clast_eq): Same.
7347         (graphite_translate_clast_equation): Same.
7348         (graphite_create_guard_cond_expr): Same.
7349         (graphite_create_new_guard): Same.
7350         (graphite_create_new_loop): Same.
7351         (build_iv_mapping): Same.
7352         (translate_clast_user): Same.
7353         (graphite_create_new_loop_guard): Same.
7354         (translate_clast): Same.
7355         (translate_clast_for_loop): Same.
7356         (translate_clast_for): Same.
7357         (translate_clast_guard): Same.
7358         (initialize_cloog_names): Fix typo.
7359         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
7360
7361 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
7362
7363         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
7364         (new_clast_name_index): Add level parameter.
7365         (clast_name_to_level): New.
7366         (save_clast_name_index): Add level parameter.
7367         (newivs_to_depth_to_newiv): Removed.
7368         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
7369         (graphite_create_new_loop): Add level parameter.  Pass level to
7370         save_clast_name_index.
7371         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
7372         (create_params_index): Pass level to save_clast_name_index.
7373
7374 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
7375
7376         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
7377         recompute type, lb, and ub.  Get them from...
7378         (graphite_create_new_loop_guard): ...here.  Pass in parameter
7379         pointers to type, lb, and ub.
7380         (translate_clast_for_loop): Update function calls.
7381         (translate_clast_for): Same.
7382
7383 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
7384
7385         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
7386         psct_dynamic_dim.
7387         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
7388         (gcc_type_for_iv_of_clast_loop): Update use of level.
7389         (gloog): Start counting nesting level from 0.
7390         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
7391         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
7392         psct_dynamic_dim on level.
7393
7394 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
7395
7396         * config/i386/i386.c (ix86_legitimize_address): Convert to
7397         Pmode if needed.
7398
7399 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
7400
7401         * config/i386/i386.c (function_value_64): Always return pointers
7402         in Pmode.
7403         (ix86_promote_function_mode): New.
7404         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
7405
7406 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7407
7408         PR tree-optimization/49749
7409         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
7410         remove no-longer-used maxrank variable.
7411
7412 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
7413
7414         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
7415
7416 2011-07-21  Jason Merrill  <jason@redhat.com>
7417
7418         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
7419         * recog.h (struct insn_data_d): Check it instead of
7420         HAVE_DESIGNATED_INITIALIZERS.
7421         * genoutput.c (output_insn_data): Likewise.
7422
7423 2011-07-21  Richard Guenther  <rguenther@suse.de>
7424
7425         PR tree-optimization/49770
7426         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
7427         valueized any operand.  Renamed from ...
7428         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
7429         (valueize_shared_reference_ops_from_ref): Return whether we
7430         valueized any operand.
7431         (vn_reference_lookup): Only when we valueized any operand
7432         use the valueized reference for alias analysis.  Do not preserve
7433         the original reference tree in this case.
7434
7435 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
7436
7437         * config/i386/i386.c (ix86_decompose_address): Reject all but
7438         register operands and subregs of DImode hard registers in index.
7439
7440 2011-07-21  Kai Tietz  <ktietz@redhat.com>
7441
7442         * fold-const.c (fold_unary_loc): Preserve indirect
7443         comparison cast to none-boolean type.
7444         * tree-ssa.c (useless_type_conversion_p): Preserve cast
7445         from/to boolean-type.
7446         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
7447         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
7448         * tree-cfg.c (verify_gimple_comparison): Check result
7449         type of comparison expression.
7450         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
7451         of condition result and disallow type-cast sinking into comparison.
7452
7453 2011-07-21  Richard Guenther  <rguenther@suse.de>
7454
7455         * tree-ssa-forwprop.c (combine_conversions): Return whether
7456         we have to run cfg-cleanup.  Properly remove dead stmts.
7457         (ssa_forward_propagate_and_combine): Adjust.
7458
7459 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
7460
7461         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
7462
7463 2011-07-21  Kai Tietz  <ktietz@redhat.com>
7464
7465         * tree-ssa-propagate.c (substitute_and_fold): Use
7466         do_dce flag to deside, if BB's statements are scanned
7467         in last to first, or first to last order.
7468
7469 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
7470
7471         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
7472
7473 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
7474             Uros Bizjak  <ubizjak@gmail.com>
7475             Richard Henderson  <rth@redhat.com>
7476
7477         * config/i386/constraints.md (w): New.
7478
7479         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
7480         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
7481
7482         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
7483         instead of TARGET_64BIT.
7484
7485         * config/i386/i386.md (indirect_jump): Replace
7486         nonimmediate_operand with indirect_branch_operand.
7487         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
7488         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
7489         Convert operand 0 to Pmode for x32 if not PIC.
7490         (*tablejump_1): Replace nonimmediate_operand with
7491         indirect_branch_operand.  Replace constraint "m" with "w".
7492         (*call_vzeroupper): Replace constraint "m" with "w".
7493         (*call): Likewise.
7494         (*call_rex64_ms_sysv_vzeroupper): Likewise.
7495         (*call_rex64_ms_sysv): Likewise.
7496         (*call_value_vzeroupper): Likewise.
7497         (*call_value): Likewise.
7498         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
7499         (*call_value_rex64_ms_sysv): Likewise.
7500         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
7501
7502         * config/i386/predicates.md (indirect_branch_operand): New.
7503         (call_insn_operand): Support x32.
7504
7505 2011-07-20  Michael Eager  <eager@eagercon.com>
7506
7507         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
7508
7509 2011-07-20  Richard Henderson  <rth@redhat.com>
7510
7511         * cfg.c (dump_bb_info): Dump basic_block->flags.
7512         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
7513
7514 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
7515
7516         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
7517         of DImode hard registers in index.
7518         (ix86_legitimate_address_p): Allow subregs of base and index to span
7519         more than a word.  Assert that subregs of base and index satisfy
7520         register_no_elim_operand predicates.  Reject addresses where
7521         base and index have different modes.
7522
7523 2011-07-20  Robert Millan  <rmh@gnu.org>
7524
7525         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
7526
7527 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7528
7529         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
7530         removing now-unnecessary assignment.
7531
7532 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7533
7534         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
7535         memory address space to the type's address space.
7536
7537 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
7538
7539         PR target/36467
7540         PR target/49687
7541         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
7542         and expand appropriately if there is a CONST_INT in operand2.
7543         (usmulqihi3): New insn.
7544         (*sumulqihi3): New insn.
7545         (*osmulqihi3): New insn.
7546         (*oumulqihi3): New insn.
7547         (*muluqihi3.uconst): New insn_and_split.
7548         (*muluqihi3.sconst): New insn_and_split.
7549         (*mulsqihi3.sconst): New insn_and_split.
7550         (*mulsqihi3.uconst): New insn_and_split.
7551         (*mulsqihi3.oconst): New insn_and_split.
7552         (*ashifthi3.signx.const): New insn_and_split.
7553         (*ashifthi3.signx.const7): New insn_and_split.
7554         (*ashifthi3.zerox.const): New insn_and_split.
7555         (mulsqihi3): New insn.
7556         (muluqihi3): New insn.
7557         (muloqihi3): New insn.
7558         * config/avr/predicates.md (const_2_to_7_operand): New.
7559         (const_2_to_6_operand): New.
7560         (u8_operand): New.
7561         (s8_operand): New.
7562         (o8_operand): New.
7563         (s9_operand): New.
7564         (register_or_s9_operand): New.
7565
7566 2011-07-20  Kai Tietz  <ktietz@redhat.com>
7567
7568         * builtins.c (fold_builtin_expect): See through the cast
7569         from truthvalue_type_node to long.
7570
7571 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
7572
7573         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
7574         where we can use them from the standard and altivec instruction
7575         sets, instead of always using the 3 operand VSX forms that require
7576         the destination to overlap one of the inputs.
7577         (vsx_fms*): Ditto.
7578         (vsx_fnma*): Ditto.
7579         (vsx_fnms*): Ditto.
7580
7581         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
7582         for DF types.
7583         (fmsdf4_fpr): Ditto.
7584         (nfmadf4_fpr): Ditto.
7585         (nfmsdf4_fpr): Ditto.
7586
7587 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
7588
7589         * genrecog.c (make_insn_sequence): Correct position numbering
7590         when filtering out match_scratch and match_dup.
7591
7592 2011-07-20  Richard Guenther  <rguenther@suse.de>
7593
7594         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
7595         against already removed statements.
7596         (forward_propagate_into_comparison): Remove dead defining stmts.
7597         (forward_propagate_into_gimple_cond): Likewise.
7598         (forward_propagate_into_cond): Simplify.
7599         (ssa_forward_propagate_and_combine): Handle changed cfg from
7600         forward_propagate_into_comparison.
7601         * tree-ssa-phiopt.c (conditional_replacement): Use proper
7602         locations for newly built statements.
7603
7604 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
7605
7606         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
7607
7608 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7609
7610         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
7611         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
7612
7613 2011-07-20  Richard Guenther  <rguenther@suse.de>
7614
7615         PR middle-end/18908
7616         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
7617         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
7618         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
7619
7620 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
7621
7622         * config/frv/frv.c (frv_register_move_cost): Define explicitly
7623         costs for subclasses of GR_REGS.
7624
7625 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
7626
7627         PR target/49780
7628         * config/i386/predicates.md (no_seg_addres_operand): No more special.
7629         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
7630         of DImode hard registers in base.
7631         (ix86_legitimate_address_p): Allow SImode and DImode base and index
7632         registers.
7633
7634 2011-07-20  Richard Guenther  <rguenther@suse.de>
7635
7636         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
7637         (unify_nodes): Deal with that.
7638         (solve_graph): Likewise.
7639
7640 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
7641
7642         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
7643         canonicalize left operand from ZERO_EXTEND to AND.
7644
7645 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
7646
7647         * target.def (class_max_nregs): New hook.
7648         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
7649         * doc/tm.texi: Regenerate.
7650         * targhooks.c (default_class_max_nregs): New function.
7651         * targhooks.h (default_class_max_nregs): Declare.
7652         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
7653         x_ira_reg_class_min_nregs arrays to unsigned char.
7654         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
7655         hook instead of CLASS_MAX_NREGS macro.
7656         * reginfo.c (restore_register_info): Ditto.
7657         * ira-conflicts.c (process_regs_for_copy): Use
7658         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
7659         Change type rclass and aclass vars to reg_class_t.
7660         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
7661         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
7662         reg_class_t.
7663         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
7664         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
7665
7666         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
7667         * config/i386/i386.c (ix86_class_max_nregs): New function.
7668         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
7669         instead of CLASS_MAX_NREGS macro.
7670         (TARGET_CLASS_MAX_NREGS): Define.
7671         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
7672         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
7673         * config/avr/avr.c (class_max_nregs): Remove function.
7674         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
7675         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
7676         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
7677         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
7678         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
7679         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
7680         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
7681         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
7682         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
7683         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
7684         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
7685         * config/score/score.h (CLASS_MAX_NREGS): Remove.
7686         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
7687         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
7688         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
7689
7690 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
7691
7692         * cif-code.def (OVERWRITABLE): Fix typo and move around.
7693         (TARGET_OPTIMIZATION_MISMATCH): Delete.
7694         (EH_PERSONALITY): Fix typo.
7695         (NON_CALL_EXCEPTIONS): Fix message.
7696         (OPTIMIZATION_MISMATCH): Adjust message.
7697         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
7698
7699 2011-07-19  Ian Lance Taylor  <iant@google.com>
7700
7701         * doc/install.texi (Configuration): Document
7702         --enable-build-poststage1-with-cxx.
7703
7704 2011-07-19  Robert Millan  <rmh@gnu.org>
7705
7706         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
7707         (GLIBC_DYNAMIC_LINKER): Remove.
7708
7709         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
7710         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
7711         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
7712         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
7713         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
7714         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
7715
7716         * config/mips/linux.h: Remove everything except for ...
7717         (GLIBC_DYNAMIC_LINKER): ... this macro.
7718
7719         * config/mips/linux64.h: Remove everything except for ...
7720         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
7721         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
7722         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
7723         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
7724         (GNU_USER_LINK_EMULATIONN32): New macros.
7725
7726         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
7727         Use the new headers.
7728
7729 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
7730
7731         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
7732         Add offset_known_p and size_known_p fields.
7733         (MEM_OFFSET_KNOWN_P): Update accordingly.
7734         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
7735         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
7736         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
7737         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
7738         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
7739         (init_emit_regs): Likewise.
7740
7741 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
7742
7743         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
7744         (MEM_OFFSET): Change from returning an rtx to returning a
7745         HOST_WIDE_INT.
7746         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
7747         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
7748         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
7749         (clear_mem_offset): Declare.
7750         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
7751         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
7752         MEM_OFFSET to get a HOST_WIDE_INT offset.
7753         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
7754         (adjust_offset_for_component_ref): Take a bool "known_p"
7755         parameter and a HOST_WIDE_INT "offset" parameter.
7756         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
7757         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
7758         than an rtx.  Use clear_mem_offset to clear the offset.
7759         * cfgcleanup.c (merge_memattrs): Likewise.
7760         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
7761         * function.c (assign_parm_find_stack_rtl): Likewise.
7762         (assign_parm_setup_stack): Likewise.
7763         * print-rtl.c (print_rtx): Likewise.
7764         * reload.c (find_reloads_subreg_address): Likewise.
7765         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
7766         * var-tracking.c (INT_MEM_OFFSET): Likewise.
7767         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
7768         (get_mem_align_offset): Likewise.
7769         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
7770         (clear_mem_offset): New function.
7771         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
7772         offset rather than an rtx.  Assume both the expressio and offset
7773         are available.
7774         (r10k_needs_protection_p_1): Update accordingly, checking the
7775         expression and offset availability here instead.
7776
7777 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
7778
7779         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
7780         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
7781         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
7782         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
7783         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
7784         (clear_mem_size): Declare.
7785         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
7786         (clear_mem_size): New function.
7787         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
7788         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
7789         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
7790         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
7791         to clear the size.
7792         (nonoverlapping_memrefs_p): Likewise.
7793         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
7794         (expand_builtin_init_trampoline): Likewise.
7795         * calls.c (compute_argument_addresses): Likewise.
7796         * cfgcleanup.c (merge_memattrs): Likewise.
7797         * dce.c (find_call_stack_args): Likewise.
7798         * dse.c (record_store, scan_insn): Likewise.
7799         * dwarf2out.c (dw_sra_loc_expr): Likewise.
7800         * expr.c (emit_block_move_hints): Likewise.
7801         * function.c (assign_parm_find_stack_rtl): Likewise.
7802         * print-rtl.c (print_rtx): Likewise.
7803         * reload.c (find_reloads_subreg_address): Likewise.
7804         * rtlanal.c (may_trap_p_1): Likewise.
7805         * var-tracking.c (track_expr_p): Likewise.
7806         * varasm.c (assemble_trampoline_template): Likewise.
7807         * config/arm/arm.c (arm_print_operand): Likewise.
7808         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
7809         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
7810         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
7811         (expand_constant_setmem_prologue): Likewise.
7812         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
7813         * config/rs6000/rs6000.c (expand_block_move): Likewise.
7814         (adjacent_mem_locations): Likewise.
7815         * config/s390/s390.c (s390_expand_setmem): Likewise.
7816         (s390_expand_insv): Likewise.
7817         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
7818         (*extendqi<mode>2_short_displ): Likewise.
7819         * config/sh/sh.c (expand_block_move): Likewise.
7820         * config/sh/sh.md (extv, extzv): Likewise.
7821
7822 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
7823
7824         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
7825         (mem_attrs_htab_eq): ...here.
7826         (find_mem_attrs): Replace with...
7827         (set_mem_attrs): ...this function.  Take a mem_attrs structure
7828         rather than individual fields.
7829         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
7830         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
7831         (set_mem_size, change_address, adjust_address_1, offset_address)
7832         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
7833         Update accordingly.
7834
7835 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
7836
7837         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
7838         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
7839         Provide a dummy definition of MEM_ADDR_SPACE for generators.
7840         (target_rtl): Add x_mode_mem_attrs.
7841         (mode_mem_attrs): New macro.
7842         (get_mem_attrs): New function.
7843         * emit-rtl.c (get_mem_attrs): Rename to...
7844         (find_mem_attrs): ...this.
7845         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
7846         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
7847         (set_mem_size, change_address, adjust_address_1, offset_address)
7848         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
7849         Update accordingly.
7850         (init_emit_regs): Initialize mode_mem_attrs.
7851
7852 2011-07-19  Richard Guenther  <rguenther@suse.de>
7853
7854         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
7855         TRUTH_*_EXPR handling.
7856         * tree-ssa-operands.c (get_expr_operands): Likewise.
7857         * tree-ssa-pre.c (fully_constant_expression): Likewise.
7858         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
7859         Likewise.
7860         (is_and_or_or): Likewise.
7861         (is_norm_cond_subset_of): Likewise.
7862
7863 2011-07-19  Richard Guenther  <rguenther@suse.de>
7864
7865         * tree.h (fold_build_pointer_plus_loc): New helper function.
7866         (fold_build_pointer_plus_hwi_loc): Likewise.
7867         (fold_build_pointer_plus): Define.
7868         (fold_build_pointer_plus_hwi): Likewise.
7869         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
7870         (fold_builtin_memory_op): Likewise.
7871         (fold_builtin_stpcpy): Likewise.
7872         (fold_builtin_memchr): Likewise.
7873         (fold_builtin_strstr): Likewise.
7874         (fold_builtin_strchr): Likewise.
7875         (fold_builtin_strrchr): Likewise.
7876         (fold_builtin_strpbrk): Likewise.
7877         (fold_builtin_strcat): Likewise.
7878         (expand_builtin_memory_chk): Likewise.
7879         (fold_builtin_memory_chk): Likewise.
7880         * c-typeck.c (build_unary_op): Likewise.
7881         * cgraphunit.c (thunk_adjust): Likewise.
7882         * fold-const.c (build_range_check): Likewise.
7883         (fold_binary_loc): Likewise.
7884         * omp-low.c (extract_omp_for_data): Likewise.
7885         (expand_omp_for_generic): Likewise.
7886         (expand_omp_for_static_nochunk): Likewise.
7887         (expand_omp_for_static_chunk): Likewise.
7888         * tree-affine.c (add_elt_to_tree): Likewise.
7889         * tree-data-ref.c (split_constant_offset_1): Likewise.
7890         * tree-loop-distribution.c (generate_memset_zero): Likewise.
7891         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
7892         * tree-predcom.c (ref_at_iteration): Likewise.
7893         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
7894         (add_to_parts): Likewise.
7895         (create_mem_ref): Likewise.
7896         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
7897         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
7898         (number_of_iterations_le): Likewise.
7899         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
7900         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7901         (vect_create_addr_base_for_vector_ref): Likewise.
7902         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
7903         (vect_create_cond_for_alias_checks): Likewise.
7904         * tree-vrp.c (extract_range_from_assert): Likewise.
7905         * config/alpha/alpha.c (alpha_va_start): Likewise.
7906         (alpha_gimplify_va_arg_1): Likewise.
7907         * config/i386/i386.c (ix86_va_start): Likewise.
7908         (ix86_gimplify_va_arg): Likewise.
7909         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
7910         * config/mep/mep.c (mep_expand_va_start): Likewise.
7911         (mep_gimplify_va_arg_expr): Likewise.
7912         * config/mips/mips.c (mips_va_start): Likewise.
7913         (mips_gimplify_va_arg_expr): Likewise.
7914         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
7915         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
7916         (rs6000_gimplify_va_arg): Likewise.
7917         * config/s390/s390.c (s390_va_start): Likewise.
7918         (s390_gimplify_va_arg): Likewise.
7919         * config/sh/sh.c (sh_va_start): Likewise.
7920         (sh_gimplify_va_arg_expr): Likewise.
7921         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
7922         * config/spu/spu.c (spu_va_start): Likewise.
7923         (spu_gimplify_va_arg_expr): Likewise.
7924         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
7925         Likewise.
7926         (xstormy16_gimplify_va_arg_expr): Likewise.
7927         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
7928         (xtensa_gimplify_va_arg_expr): Likewise.
7929
7930 2011-07-19  Richard Guenther  <rguenther@suse.de>
7931
7932         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
7933         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
7934         handling.
7935
7936         PR middle-end/18908
7937         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
7938         result of BIT_*_EXPR to bitfield precision.
7939
7940 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
7941
7942         PR tree-optimization/49742
7943         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
7944         as a potential write.
7945
7946 2011-07-19  Richard Guenther  <rguenther@suse.de>
7947
7948         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
7949         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
7950         (forward_propagate_comparison): Simplify, remove obsolete code.
7951
7952 2011-07-19  Richard Guenther  <rguenther@suse.de>
7953
7954         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
7955         BIT_XOR_EXPR, same as the RTL expander does.
7956         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
7957         (verify_gimple_assign_unary): Likewise.
7958         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
7959         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
7960         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
7961
7962 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
7963
7964         PR tree-optimization/49768
7965         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
7966         if offset is smaller than bitoffset, but offset+size is bigger
7967         than bitoffset.
7968
7969 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
7970
7971         PR tree-optimization/49771
7972         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
7973         zero step, set segment length to the size of the data-ref's type.
7974
7975 2011-07-18  Martin Jambor  <mjambor@suse.cz>
7976
7977         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
7978         comments.
7979         (ipcp_values_pool): Declare.
7980         (ipcp_sources_pool): Likewise.
7981         (ipcp_lattice): Changed to forward declaration.
7982         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
7983         cannot_devirtualize.
7984         (ipa_node_params): New fields descriptors, lattices, known_vals,
7985         clone_for_all_contexts and node dead, removed fields params and
7986         count_scale.
7987         (ipa_set_param_count): Removed.
7988         (ipa_get_param_count): Made to work with descriptors vector.
7989         (ipa_get_param): Updated.
7990         (ipa_param_cannot_devirtualize_p): Removed.
7991         (ipa_param_types_vec_empty): Likewise.
7992         (ipa_set_param_used): New function.
7993         (ipa_get_param_used): Updated to use descriptors vector.
7994         (ipa_func_list): Removed.
7995         (ipa_init_func_list): Removed declaration.
7996         (ipa_push_func_to_list_1): Likewise.
7997         (ipa_pop_func_from_list): Likewise.
7998         (ipa_push_func_to_list): Removed.
7999         (ipa_lattice_from_jfunc): Remove declaration.
8000         (ipa_get_jf_pass_through_result): Declare.
8001         (ipa_get_jf_ancestor_result): Likewise.
8002         (ipa_value_from_jfunc): Likewise.
8003         (ipa_get_lattice): Update.
8004         (ipa_lat_is_single_const): New function.
8005         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
8006         (ipa_init_func_list): Likewise.
8007         (ipa_pop_func_from_list): Likewise.
8008         (ipa_get_param_decl_index): Fix coding style.
8009         (count_formal_params): Removed.
8010         (count_formal_params_1): Renamed to count_formal_params.
8011         (ipa_populate_param_decls): Update to use descriptors vector.
8012         (ipa_initialize_node_params): Likewise.
8013         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
8014         (ipa_analyze_params_uses): Likewise.
8015         (ipa_free_node_params_substructures): Likewise and free also lattices
8016         and known values.
8017         (duplicate_array): Removed.
8018         (ipa_edge_duplication_hook): Add the new edge to the list of edge
8019         clones.
8020         (ipa_node_duplication_hook): Update to use new lattices.
8021         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
8022         (ipa_free_all_structures_after_iinln): Likewise.
8023         (ipa_write_node_info): Update to use new lattices.
8024         (ipa_read_node_info): Likewise.
8025         (ipa_get_jf_pass_through_result): New function.
8026         (ipa_get_jf_ancestor_result): Likewise.
8027         (ipa_value_from_jfunc): Likewise.
8028         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
8029         * ipa-cp.c: Reimplemented.
8030         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
8031         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
8032         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
8033         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
8034         * doc/invoke.texi (devirt-type-list-size): Removed description.
8035         (ipa-cp-value-list-size): Added description.
8036
8037 2011-07-18  Richard Henderson  <rth@redhat.com>
8038
8039         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
8040         before calling create_basic_block.
8041
8042 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
8043
8044         PR middle-end/49675
8045         * tree.c (build_common_builtin_nodes): Register
8046         __builtin_return_address, __cyg_profile_func_enter
8047         and __cyg_profile_func_exit.
8048
8049 2011-07-18  Richard Henderson  <rth@redhat.com>
8050
8051         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
8052         (add_labels_and_missing_jumps): ... here.
8053         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
8054
8055 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
8056
8057         PR target/47744
8058         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
8059         of DImode hard registers in PLUS address chains.
8060
8061 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8062
8063         PR bootstrap/49769
8064         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
8065         (alpha*-*-freebsd*): Likewise.
8066         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
8067         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
8068         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
8069         crtprec80.o, crtfastmath.o to extra_parts for all targets.
8070         (ia64*-*-elf*): Remove extra_parts.
8071         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
8072         (sparc64-*-linux*): Likewise.
8073         (sparc64-*-freebsd*): Likewise.
8074
8075         Revert:
8076         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
8077         (ia64*-*-linux*): Likewise.
8078         (mips64*-*-linux*): Likewise.
8079         (mips*-*-linux*): Likewise.
8080
8081 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
8082
8083         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
8084
8085 2011-07-18  Richard Guenther  <rguenther@suse.de>
8086
8087         * gimplify.c (gimplify_expr): Use input_location, not saved_location
8088         when building new trees.
8089
8090 2011-07-18  Richard Guenther  <rguenther@suse.de>
8091
8092         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
8093         expansion result to bitfield precision if required.
8094
8095 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8096
8097         * config.gcc (i[3456x]86-*-netware*): Remove.
8098
8099         * gthr-nks.h: Remove.
8100         * configure.ac (enable_threads): Remove nks.
8101         * configure: Regenerate.
8102
8103         * config/i386/i386.c (ix86_encode_section_info): Remove netware
8104         reference.
8105         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
8106         <netware.h> reference.
8107
8108         * config/i386/netware-libgcc.c,
8109         gcc/config/i386/netware-libgcc.def,
8110         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
8111         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
8112         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
8113         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
8114
8115         * doc/extend.texi (Function Attributes,
8116         callee_pop_aggregate_return): Remove i?86-netware reference.
8117         * doc/install.texi (Configuration, --enable-threads): Remove nks.
8118
8119 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8120
8121         PR target/49746
8122         Revert:
8123         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8124
8125         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
8126         patterns.
8127
8128 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
8129
8130         PR middle-end/49732
8131         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
8132
8133 2011-07-16  Matthias Klose  <doko@ubuntu.com>
8134
8135         * doc/install.texi: Document --enable-static-libjava.
8136
8137 2011-07-15  Richard Henderson  <rth@redhat.com>
8138
8139         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
8140         Replace all three arguments by returning a VEC of edges.
8141         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
8142         pointers and counts.
8143         (fix_edges_for_rarely_executed_code): Merge ...
8144         (rest_of_handle_partition_blocks): ... into...
8145         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
8146         any work was performed.
8147         (pass_partition_blocks): Clear todo_flags_finish.
8148
8149 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
8150             Jakub Jelinek  <jakub@redhat.com>
8151             Jonathan Wakely  <jwakely.gcc@gmail.com>
8152
8153         PR libstdc++/49745
8154         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
8155         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
8156
8157 2011-07-15  Jason Merrill  <jason@redhat.com>
8158
8159         PR testsuite/49741
8160         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
8161         rather than --tool_opts.
8162
8163 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
8164
8165         * doc/plugins.texi (Building GCC plugins): gengtype needs its
8166         corresponding gtype.state.
8167
8168 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8169
8170         PR target/49723
8171         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
8172
8173 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
8174
8175         PR target/48220
8176         * doc/md.texi (Standard Names): Document window_save.
8177         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
8178         expand_debug_expr and expand_debug_source_expr.  If the target has
8179         a window_save instruction, adjust the ENTRY_VALUE_EXP.
8180         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
8181         SSA_NAME_VAR is a parameter.
8182         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
8183         * var-tracking.c (parm_reg_t): New type and associated vector type.
8184         (windowed_parm_regs): New variable.
8185         (adjust_insn): If the target has a window_save instruction and this
8186         is the instruction, make its effect on parameter registers explicit.
8187         (next_non_note_insn_var_location): New function.
8188         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
8189         (vt_add_function_parameter): If the target has a window_save insn,
8190         adjust the incoming RTL and record that in windowed_parm_regs.
8191         (vt_finalize): Free windowed_parm_regs.
8192
8193 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
8194
8195         * doc/invoke.texi (C6X Options): New section.
8196         * doc/md.texi (TI C6X family): New section.
8197         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
8198         tic6x-*-uclinux.
8199         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
8200         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
8201         Provide C6X definitions.
8202         * config/c6x/c6x.md: New file.
8203         * config/c6x/constraints.md: New file.
8204         * config/c6x/predicates.md: New file.
8205         * config/c6x/c6x-sched.md.in: New file.
8206         * config/c6x/c6x-sched.md: New file.
8207         * config/c6x/gensched.sh: New file.
8208         * config/c6x/c6x-mult.md.in: New file.
8209         * config/c6x/genmult.sh: New file.
8210         * config/c6x/c6x-mult.md: New file.
8211         * config/c6x/sync.md: New file.
8212         * config/c6x/c6x-protos.h: New file.
8213         * config/c6x/sfp-machine.h: New file.
8214         * config/c6x/c6x.c: New file.
8215         * config/c6x/c6x.h: New file.
8216         * config/c6x/crti.s: New file.
8217         * config/c6x/crtn.s: New file.
8218         * config/c6x/lib1funcs.asm: New file.
8219         * config/c6x/c6x-modes.def: New file.
8220         * config/c6x/genopt.sh: New file.
8221         * config/c6x/c6x.opt: New file.
8222         * config/c6x/c6x-tables.opt: New file.
8223         * config/c6x/c6x-opts.h: New file.
8224         * config/c6x/c6x-isas.def: New file.
8225         * config/c6x/elf.h: New file.
8226         * config/c6x/elf-common.h: New file.
8227         * config/c6x/uclinux-elf.h: New file.
8228         * config/c6x/t-c6x: New file.
8229         * config/c6x/t-c6x-elf: New file.
8230         * config/c6x/t-c6x-uclinux: New file.
8231         * config/c6x/t-c6x-softfp: New file.
8232         * config/c6x/gtd.c: New file.
8233         * config/c6x/gtf.c: New file.
8234         * config/c6x/ltd.c: New file.
8235         * config/c6x/ltf.c: New file.
8236         * config/c6x/ged.c: New file.
8237         * config/c6x/gef.c: New file.
8238         * config/c6x/led.c: New file.
8239         * config/c6x/lef.c: New file.
8240         * config/c6x/eqd.c: New file.
8241         * config/c6x/eqf.c: New file.
8242         * config/c6x/libgcc-c6xeabi.ver: New file.
8243
8244         Revert
8245         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
8246         PR rtl-optimization/11320
8247         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
8248         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
8249         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
8250         current_sched_info->compute_jump_reg_dependencies. Record which
8251         registers are used and which registers are set by the jump.
8252         Clear deps->reg_conditional_sets after a barrier.
8253         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
8254         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
8255         (init_deps): Initialize reg_conditional_sets.
8256         (free_deps): Clear reg_conditional_sets.
8257         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
8258         Mark registers live on entry of the fallthrough block and conditionally
8259         set as set by the jump. Mark registers live on entry of non-fallthrough
8260         blocks as used by the jump.
8261         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
8262         Mark new parameters as unused.
8263
8264 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
8265
8266         PR tree-opt/49309
8267         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
8268         Use fold_build2_loc instead of build2.
8269         Use the correct type for the new tree.
8270
8271 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
8272
8273         PR rtl-optimization/11320
8274         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
8275         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
8276
8277 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
8278
8279         PR target/49487
8280         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
8281         of REG.
8282         (*rotw<mode>): Use const_int_operand for operand2.
8283         Use match_scatch for operand3.
8284         (*rotb<mode>): Ditto
8285         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
8286
8287 2011-07-14  Richard Guenther  <rguenther@suse.de>
8288
8289         PR tree-optimization/49651
8290         * tree-ssa-structalias.c (get_constraint_for_1): Properly
8291         handle dereferences with subvariables.
8292
8293 2011-07-14  Richard Guenther  <rguenther@suse.de>
8294
8295         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
8296         (fold_stmt_1): Do it here directly on gimple and as a first thing.
8297
8298 2011-07-14  Richard Guenther  <rguenther@suse.de>
8299
8300         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
8301         not bool_var when folding bool_var != 1 or bool_var == 0.
8302
8303 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
8304
8305         * haifa-sched.c (schedule_insns): Remove outdated comment.
8306         (schedule_block): When computing a known value for TODO_SPEC,
8307         just set it rather than using logical operations.
8308         (try_ready): Likewise.  Use a local variable rather than a
8309         pointer to TODO_SPEC.  Reorder an if statement to move the
8310         easy case to the then block.
8311         * sched-deps.c (dep_spec_p): New static function.
8312         (update_dep): Use it to decide whether to call
8313         change_spec_dep_to_hard.
8314         (get_back_and_forw_lists): Use it.
8315         (sd_resolve_dep): Likewise.
8316         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
8317         (haifa_note_mem_dep): Likewise.
8318         (check_dep): Likewise.
8319         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
8320         (sched_free_deps): Free in two passes.
8321
8322 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
8323
8324         PR middle-end/49736
8325         * expr.c (all_zeros_p): Undo bogus part of last change.
8326
8327 2011-07-14  Matthias Klose <doko@ubuntu.com>
8328
8329         * doc/extend.texi (optimize attribute): Fix typo.
8330
8331 2011-07-14  Richard Guenther  <rguenther@suse.de>
8332
8333         * gimplify.c (gimplify_expr): Only do required conversions.
8334
8335 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
8336
8337         PR target/43746
8338         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
8339         i.e. use default_elf_select_section.
8340         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
8341         (READONLY_DATA_SECTION_ASM_OP): Remove.
8342         (TARGET_ASM_NAMED_SECTION): Move from here...
8343         * config/avr/avr.c: ...to here.
8344         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
8345         (avr_asm_named_section): Make static.
8346
8347 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8348
8349         PR bootstrap/49739
8350         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
8351         and crtfastmath.o for Linux/x86.
8352
8353 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
8354
8355         * haifa-sched.c: Include "hashtab.h"
8356         (sched_no_dce): New global variable.
8357         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
8358         SHADOW_P): New macros.
8359         (last_clock_var, cycle_issued_insns): Move declarations.
8360         (must_backtrack): New static variable.
8361         (struct delay_pair): New structure.
8362         (delay_htab, delay_htab_i2): New static variables.
8363         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
8364         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
8365         functions.
8366         (dep_cost_1): If delay pairs exist, try to look up the insns and
8367         use the correct pair delay if we find them.
8368         (rank-for_schedule): Tweak priority for insns that must be scheduled
8369         soon to avoid backtracking.
8370         (queue_insn): Detect conditions which force backtracking.
8371         (ready_add): Likewise.
8372         (struct sched_block_state): Add member shadows_only_p.
8373         (struct haifa_save_data): New structure.
8374         (backtrack_queue): New static variable.
8375         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
8376         unschedule_insns_until, restore_last_backtrack_point,
8377         free_topmost_backtrack_point, free_backtrack_queue,
8378         estimate_insn_tick, estimate_shadow_tick): New functions.
8379         (prune_ready_list): New arg shadows_only_p.  All callers changed.
8380         If true, remove everything that isn't SHADOW_P.  Look up delay
8381         pairs and estimate ticks to avoid scheduling the first insn too early.
8382         (verify_shadows): New function.
8383         (schedule_block): Add machinery to enable backtracking.
8384         (sched_init): Take sched_no_dce into account when setting
8385         DF_LR_RUN_DCE.
8386         (free_delay_pairs): New function.
8387         (init_h_i_d): Initialize INSN_EXACT_TICK.
8388         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
8389         * sched-deps.c (sd_unresolve_dep): New function.
8390         * sched-int. (struct haifa_sched_info): New fields save_state
8391         and restore_state.
8392         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
8393         feeds_backtrack_insn and shadow_p.
8394         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
8395         (sched_no_dce): Declare variable.
8396         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
8397         sd_unresolve_dep): Declare functions.
8398         * modulo-sched.c (sms_sched_info): Clear the two new fields.
8399         * sched-rgn.c (rgn_const_sched_info): Likewise.
8400         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8401         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
8402         (ebb_sched_info): Add them for the two new fields.
8403         (add_deps_for_risky_insns): Call add_delay_dependencies.
8404
8405 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
8406
8407         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
8408         Rename -mr11.
8409         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
8410         (rs6000_call_indirect_aix): Ditto.
8411         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
8412         (call_indirect_aix<ptrsize>_internal): Ditto.
8413         (call_indirect_aix<ptrsize>_nor11): Ditto.
8414         (call_indirect_aix<ptrsize>_internal2): Ditto.
8415         (call_value_indirect_aix<ptrsize>): Ditto.
8416         (call_value_indirect_aix<ptrsize>_internal): Ditto.
8417         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
8418         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
8419         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
8420
8421 2011-07-13  Jason Merrill  <jason@redhat.com>
8422
8423         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
8424
8425 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8426
8427         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
8428         * config/spu/spu.md ("clrsb<mode>2"): New expander.
8429
8430 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
8431
8432         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
8433         * configure: Regenerate.
8434
8435 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8436
8437         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
8438         (asm_file_start): Remove.
8439         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
8440         free_bb_for_insn around code that modifies insns before
8441         restarting df analysis.
8442
8443 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8444
8445         PR target/49541
8446         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
8447         (LINK_SPEC): ... here.
8448
8449 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
8450
8451         * haifa-sched.c (struct sched_block_state): New.
8452         (schedule_block): Move some local variables into such a structure.
8453
8454 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8455
8456         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
8457         * config/i386/t-crtpc: Remove.
8458         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
8459         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
8460         tmake_file.
8461         (x86_64-*-darwin*): Likewise.
8462         (i[34567]86-*-linux*): Likewise.
8463         (x86_64-*-linux*): Likewise.
8464
8465         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
8466         Handle -mpc32, -mpc64, -mpc80.
8467
8468 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8469
8470         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
8471         * config/alpha/t-crtfm: Remove.
8472         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
8473         * config/i386/t-crtfm: Remove.
8474         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
8475         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
8476         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
8477         * config/sparc/t-crtfm: Remove.
8478
8479         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
8480         (alpha*-*-freebsd*): Likewise.
8481         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
8482         (x86_64-*-darwin*): Likewise.
8483         (i[34567]86-*-linux*): Likewise.
8484         (x86_64-*-linux*): Likewise.
8485         (x86_64-*-mingw*): Likewise.
8486         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
8487         (ia64*-*-freebsd*): Likewise.
8488         (ia64*-*-linux*): Likewise.
8489         (mips64*-*-linux*): Likewise.
8490         (mips*-*-linux*): Likewise.
8491         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
8492         (sparc64-*-linux*): Likewise.
8493         (sparc64-*-freebsd*): Likewise.
8494
8495 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8496
8497         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
8498         * config/darwin-crt3.c: Move to ../libgcc/config.
8499         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
8500         ($(T)crt3$(objext)): Remove.
8501         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
8502         ($(T)crt2$(objext)): Remove.
8503         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
8504         (powerpc64-*-darwin*): Likewise.
8505
8506 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
8507
8508         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
8509
8510         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
8511         (addsi_1_zext): This.
8512
8513 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
8514
8515         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
8516         * doc/tm.texi: Regenerate.
8517         * target.def (mergeable_rodata_prefix): New defhookpod.
8518         * varasm.c (mergeable_string_section, mergeable_constant_section):
8519         Use it. Allocate name with alloca.
8520
8521 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
8522
8523         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
8524
8525 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
8526
8527         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
8528         overlap check.
8529
8530 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
8531
8532         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
8533         (count_type_elements): Delete.
8534         (complete_ctor_at_level_p): Declare.
8535         * expr.c (flexible_array_member_p): New function, split out from...
8536         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
8537         parameter with for_ctor_p.  When for_ctor_p is true, return the
8538         number of elements that should appear in the top-level constructor,
8539         otherwise return an estimate of the number of scalars.
8540         (categorize_ctor_elements): Replace p_must_clear with p_complete.
8541         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
8542         (complete_ctor_at_level_p): New function, borrowing union logic
8543         from old categorize_ctor_elements_1.
8544         (mostly_zeros_p): Return true if the constructor is not complete.
8545         (all_zeros_p): Update call to categorize_ctor_elements.
8546         * gimplify.c (gimplify_init_constructor): Update call to
8547         categorize_ctor_elements.  Don't call count_type_elements.
8548         Unconditionally prevent clearing for variable-sized types,
8549         otherwise rely on categorize_ctor_elements to detect
8550         incomplete initializers.
8551
8552 2011-07-13  Richard Guenther  <rguenther@suse.de>
8553
8554         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
8555         the final type is integral.
8556
8557 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
8558
8559         * sched-int.h (struct _dep): Add member cost.
8560         (DEP_COST, UNKNOWN_DEP_COST): New macros.
8561         * sched-deps.c (init_dep_1): Initialize DEP_COST.
8562         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
8563         (sched_change_pattern): Reset it for dependent insns.
8564
8565 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8566
8567         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
8568         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
8569         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
8570         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
8571         (CRT0_S, MCRT0_S): Remove.
8572         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
8573         Remove.
8574         (s-crt0): Remove.
8575         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
8576
8577 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
8578
8579         * cse.c (insert_with_costs): Put semi-colon after empty loop body
8580         on the next line.
8581         * emit-rtl.c (push_to_sequence): Likewise.
8582         * haifa-sched.c (max_issue): Likewise.
8583         * matrix-reorg.c (add_allocation_site): Likewise.
8584         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
8585         * reload.c (alternative_allows_const_pool_ref): Likewise.
8586         * sched-rgn.c (rgn_add_block): Likewise.
8587         (rgn_fix_recovery_cfg): Likewise.
8588         * tree.c (attribute_list_contained): Likewise.
8589
8590 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
8591
8592         * config/i386/i386.c: Tidy processor feature bitmasks.
8593         (m_P4_NOCONA): New.
8594
8595 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
8596
8597         PR rtl-opt/49474
8598         * cprop.c (find_implicit_sets): Correct the condition.
8599
8600 2011-07-12  Richard Henderson  <rth@redhat.com>
8601
8602         PR target/49713
8603         * dwarf2out.h (dwarf_frame_regnum): Remove.
8604         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
8605         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
8606         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
8607         (execute_dwarf2_frame): Initialize them.
8608         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
8609         users of the macros with the variables.
8610         (expand_builtin_dwarf_sp_column): Revert last change.
8611         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
8612         result of DWARF_FRAME_REGNUM into a local variable.
8613
8614 2011-07-12  Richard Henderson  <rth@redhat.com>
8615
8616         PR target/49714
8617         * config/i386/i386.c (x86_output_mi_thunk): Use
8618         machopic_indirect_call_target instead of machopic_indirection_name
8619         directly.
8620
8621 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
8622             Eric Botcazou  <ebotcazou@adacore.com>
8623
8624         * prefix.h: Wrap up in extern "C" block.
8625
8626 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
8627
8628         AMD bdver2 Enablement
8629         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
8630         (case ${target}): Add bdver2.
8631         * config/i386/driver-i386.c (host_detect_local_cpu): Let
8632         -march=native recognize bdver2 processors.
8633         * config/i386/i386-c.c (ix86_target_macros_internal): Add
8634         bdver2 def_and_undef
8635         * config/i386/i386.c (struct processor_costs bdver2_cost): New
8636         bdver2 cost table.
8637         (m_BDVER2): New definition.
8638         (m_AMD_MULTIPLE): Includes m_BDVER2.
8639         (initial_ix86_tune_features): Add bdver2 tuning.
8640         (processor_target_table): Add bdver2 entry.
8641         (static const char *const cpu_names): Add bdver2 entry.
8642         (ix86_option_override_internal): Add bdver2 instruction sets.
8643         (ix86_issue_rate): Add bdver2.
8644         (ix86_adjust_cost): Add bdver2.
8645         (has_dispatch): Add bdver2.
8646         * config/i386/i386.h (TARGET_BDVER2): New definition.
8647         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
8648         (enum processor_type): Add PROCESSOR_BDVER2.
8649         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
8650         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
8651         description.
8652
8653 2011-07-12  Richard Henderson  <rth@redhat.com>
8654
8655         PR target/49714
8656         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
8657         destination address in memory on some paths.
8658
8659 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
8660
8661         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
8662         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
8663         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
8664         * function.c (locate_and_pad_parm): Take it into account.
8665         * target.def (function_arg_round_boundary): New hook.
8666         * targhooks.c (default_function_arg_round_boundary): New function.
8667         * targhooks.h (default_function_arg_round_boundary): Declare.
8668         * doc/tm.texi: Regenerate.
8669
8670 2011-07-12  Richard Guenther  <rguenther@suse.de>
8671
8672         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
8673         Do not perform no-op changes.
8674
8675 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
8676
8677         * config/arm/predicates.md (neon_struct_operand): Make a normal
8678         predicate.
8679         (neon_struct_or_register_operand): New predicate.
8680         * config/arm/neon.md (movmisalign<mode>): Replace predicates
8681         with neon_struct_or_register_operand.
8682         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
8683         neon_struct_operand instead of memory_operand.
8684
8685 2011-07-12  Martin Jambor  <mjambor@suse.cz>
8686
8687         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
8688         * cgraph.c (cgraph_get_node_or_alias): Removed.
8689         (change_decl_assembler_name): Changed all calls to
8690         cgraph_get_node_or_alias to a call to cgraph_get_node.
8691         (cgraph_make_decl_local): Likewise.
8692         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
8693         * varasm.c (default_binds_local_p_1): Likewise.
8694         (decl_binds_to_current_def_p): Likewise.
8695
8696 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
8697
8698         PR tree-optimization/49712
8699         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
8700
8701 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
8702
8703         * genautomata.c (add_arc): Return void.  All callers changed.
8704         (make_automaton): Remove dead code.
8705
8706 2011-07-11  Richard Henderson  <rth@redhat.com>
8707
8708         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
8709         (DW_FRAME_POINTER_REGNUM): New.
8710         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
8711         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
8712         (dwf_regno): New.
8713         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
8714         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
8715         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
8716         Use it.
8717         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
8718         * dwarf2out.h (dwarf_frame_regnum): New.
8719         (struct cfa_loc): Document the domain of the reg member.
8720
8721 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
8722
8723         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
8724         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
8725
8726 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
8727
8728         PR debug/49676
8729         * dwarf2out.c (int_shift_loc_descriptor): New function.
8730         (int_loc_descriptor): If shorter, emit i as
8731         (i >> shift), shift, DW_OP_shl for suitable shift value.
8732         Similarly, try to optimize large negative values using
8733         DW_OP_neg of a positive value if shorter.
8734         (size_of_int_shift_loc_descriptor): New function.
8735         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
8736         changes.
8737         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
8738         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
8739         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
8740         is shorter.
8741         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
8742         addend as added DW_OP_plus if it is shorter.
8743
8744 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8745
8746         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
8747         (DTORS_SECTION_ASM_OP): Define.
8748
8749 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8750
8751         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
8752         * config/t-dfprules: Move to ../libgcc/config.
8753         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
8754         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
8755         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
8756         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
8757         Likewise.
8758         (i[34567]86-*-cygwin*): Likewise.
8759         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
8760         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
8761         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
8762         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
8763         D64PBIT_FUNCS, D128PBIT_FUNCS.
8764
8765 2011-07-11  Richard Guenther  <rguenther@suse.de>
8766
8767         * tree-vrp.c (simplify_conversion_using_ranges): Manually
8768         translate the source value-range through the conversion chain.
8769
8770 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
8771
8772         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
8773
8774 2011-07-11  Arthur Loiret  <aloiret@debian.org>
8775
8776         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
8777         a bi-arch compiler defaulting to 31-bit. In this case:
8778         (tmake_file): Add s390/t-linux64.
8779         * doc/install.texi: Add s390-linux to the list of targets supporting
8780         --enable-targets=all.
8781
8782 2011-07-11  Arthur Loiret  <aloiret@debian.org>
8783             Matthias Klose <doko@debian.org>
8784
8785         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
8786         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
8787         (tm_file): Add mips/linux64.h.
8788         (tmake_file): Add mips/t-linux64.
8789         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
8790         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
8791         instead of hardcoded mabi=n32.
8792         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
8793         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
8794         convention.
8795
8796 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8797
8798         * passes.c (init_optimization_passes): Add invariant motion pass
8799         after induction variable optimization.
8800
8801 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
8802
8803         PR target/39633
8804         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
8805         offsets 1..5 set cc0 in a usable way.
8806
8807 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
8808
8809         * tree.h (call_expr_arg): Remove.
8810         (call_expr_argp): Likewise.
8811
8812 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
8813
8814         * config/sparc/sparc.md (save_register_window_1): Rename to...
8815         (window_save): ...this.
8816         * config/sparc/sparc.c (emit_save_register_window): Rename to...
8817         (emit_window_save): ...this.
8818         (sparc_expand_prologue): Adjust to above renaming.
8819
8820 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
8821
8822         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
8823         of movabs for x32.
8824
8825 2011-07-10  Richard Henderson  <rth@redhat.com>
8826
8827         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
8828         run final, instead of emitting text directly.
8829
8830 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
8831
8832         * config/i386/i386.c (ix86_option_override_internal): Turn on
8833         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
8834         small PIC models for TARGET_X32.
8835
8836 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
8837
8838         PR target/49684
8839         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
8840         $(LIBGCC2_CFLAGS).
8841
8842         PR bootstrap/49680
8843         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
8844         stray notes and debug insns by using prev_nonnote_nondebug_insn
8845         instead of PREV_INSN.
8846
8847 2011-07-09  Richard Henderson  <rth@redhat.com>
8848
8849         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
8850         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
8851         * dwarf2out.c: ... here.
8852         (output_all_cfis): Remove.
8853         (dwarf2out_switch_text_section): Use output_cfis directly.
8854         (size_of_locs): Export.
8855         (output_loc_sequence, output_loc_sequence_raw): Export.
8856         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
8857         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
8858         output_cfa_loc_raw): Move to ...
8859         * dwarfcfi.c: ... here.
8860         * dwarf2out.h: Update decls.
8861
8862 2011-07-09  Richard Henderson  <rth@redhat.com>
8863
8864         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
8865         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
8866         * dwarf2cfi.c: ... here.
8867         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
8868         (DWARF_ROUND, DWARF_CIE_ID): Remove.
8869         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
8870         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
8871         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
8872
8873 2011-07-09  Richard Henderson  <rth@redhat.com>
8874
8875         * dwarf2cfi.c (cie_return_save): New.
8876         (queue_reg_save): Use compare_reg_or_pc.
8877         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
8878         (dwarf2out_frame_debug_expr): Likewise.
8879         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
8880         (initial_return_save): Likewise.
8881         (execute_dwarf2_frame): Save and restore initial return save from
8882         the cie to the fde.
8883         * config/mips/mips.c (mips_frame_set): Remove special case for
8884         DWARF_FRAME_RETURN_COLUMN.
8885
8886 2011-07-09  Richard Henderson  <rth@redhat.com>
8887
8888         * dwarf2cfi.c (lookup_cfa): Remove.
8889         (execute_dwarf2_frame): Assert queues are empty on entry.
8890         Setup initial cfa directly, not via lookup_cfa.
8891         Don't clear args_size state here.
8892
8893 2011-07-09  Richard Henderson  <rth@redhat.com>
8894
8895         * dwarf2cfi.c (add_cfi_vec): New.
8896         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
8897         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
8898         (execute_dwarf2_frame): Set add_cfi_vec.
8899
8900 2011-07-09  Richard Henderson  <rth@redhat.com>
8901
8902         * defaults.h (ASM_COMMENT_START): Move here...
8903         * dwarf2asm.c: ... from here.
8904         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
8905         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
8906         * varasm.c: Likewise.
8907
8908 2011-07-09  Richard Henderson  <rth@redhat.com>
8909
8910         PR debug/49686
8911         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
8912         (create_cfi_notes): ... do it here instead.
8913
8914 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
8915
8916         PR debug/49676
8917         * dwarf2out.c (size_of_int_loc_descriptor): New function.
8918         (address_of_int_loc_descriptor): Use it.
8919         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
8920
8921 2011-07-09  Richard Henderson  <rth@redhat.com>
8922
8923         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
8924         (prologue, epilogue): New.
8925         (return, *rts): New.
8926         (blockage, setd, seti): New.
8927         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
8928         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
8929         (pdp11_saved_regno): New.
8930         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
8931         generate rtl instead of text.
8932         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
8933         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
8934         * config/pdp11/pdp11-protos.h: Update.
8935
8936 2011-07-09  Richard Henderson  <rth@redhat.com>
8937
8938         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
8939         try to insert an rtl prologue here.
8940         (rs6000_output_function_epilogue): Similarly.
8941         * config/rs6000/rs6000.md (prologue): Emit a barrier to
8942         satisfy !TARGET_SCHED_PROLOG.
8943         (epilogue, sibcall_epilogue): Likewise.
8944
8945 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
8946
8947         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
8948         (FP_REG_P): Delete.
8949         (IN_OR_GLOBAL_P): Likewise.
8950
8951 2011-07-08  Jason Merrill  <jason@redhat.com>
8952
8953         PR c++/45437
8954         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
8955         compound assignment.
8956
8957         * cgraph.c (cgraph_add_to_same_comdat_group): New.
8958         * cgraph.h: Declare it.
8959         * ipa.c (function_and_variable_visibility): Make sure thunks
8960         have the right visibility.
8961
8962 2011-07-08  Richard Henderson  <rth@redhat.com>
8963
8964         PR bootstrap/49680
8965         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
8966         any tablejump vector.
8967
8968         PR bootstrap/49680
8969         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
8970         end of the prologue.
8971
8972 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
8973
8974         PR target/49621
8975         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
8976         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
8977         * config/rs6000/vector.md (vector_select_<mode>,
8978         vector_select_<mode>_uns): Change second operand of NE to
8979         CONST0_RTX (<MODE>mode) instead of const0_rtx.
8980         * config/rs6000/altivec.md (*altivec_vsel<mode>,
8981         *altivec_vsel<mode>_uns): Expect second operand of NE to be
8982         zero_constant of the corresponding vector mode.
8983         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
8984         Likewise.
8985
8986 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
8987
8988         * graphite-dependences.c (build_alias_set_powerset): Remove
8989         continue from loop, add one more assert.
8990
8991 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
8992
8993         PR target/46779
8994         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
8995         In particular, allow 8-bit values in r28 and r29.
8996         (avr_hard_regno_scratch_ok): Disallow any register that might be
8997         part of the frame pointer.
8998         (avr_hard_regno_rename_ok): Same.
8999         (avr_legitimate_address_p): Don't allow SUBREGs.
9000
9001 2011-07-08  Julian Brown  <julian@codesourcery.com>
9002
9003         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
9004         big-endian mode.
9005         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
9006         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
9007         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
9008         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
9009         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
9010         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
9011         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
9012         registers in big-endian mode.
9013
9014 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
9015
9016         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
9017         in terms of another.
9018         (write_attr_value): Write a cast if necessary.
9019
9020         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
9021         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
9022         (REG_WORDS_BIG_ENDIAN): Document.
9023         * doc/tm.texi: Regenerate.
9024         * reload.c (operands_match_p): Take it into account.
9025         (reload_adjust_reg_for_mode): Likewise.
9026         * rtlanal.c (subreg_get_info): Likewise.
9027
9028 2011-07-08  Richard Guenther  <rguenther@suse.de>
9029
9030         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
9031         folding.
9032
9033 2011-07-08  Kai Tietz  <ktietz@redhat.com>
9034
9035         * fold-const.c (fold_truth_andor): Factored out truth_andor
9036         label from fold_binary as function.
9037         (fold_binary_loc): Replace truth_andor lable
9038         by function fold_truth_andor.
9039
9040 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
9041
9042         PR middle-end/49519
9043         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
9044         check if address is stored in register. If so - give up.
9045         (check_sibcall_argument_overlap_1): Do not perform check of
9046         overlapping when it is call to address.
9047
9048 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
9049
9050         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
9051         of magic '31'.
9052
9053 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
9054
9055         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
9056         GET_MODE_BITSIZE where appropriate.
9057         (widen_leading, expand_parity, expand_ctz, expand_ffs,
9058         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
9059         expand_float, expand_fix): Likewise.
9060         * expr.c (convert_move, convert_modes, expand_expr_real_2,
9061         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
9062         * stor-layout.c (get_mode_bounds): Likewise.
9063         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
9064         Likewise.
9065         * convert.c (convert_to_integer): Likewise.
9066         * expmed.c (expand_shift_1): Likewise.
9067
9068         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
9069         a bitsize.
9070
9071         * optabs.c (expand_binop): Tighten conditions for doubleword
9072         expansions.
9073         (widen_bswap): Assert that mode bitsize and precision are the same.
9074         * stor-layout.c (get_best_mode): Skip modes that have lower
9075         precision than bitsize.
9076         * recog.c (simplify_while_replacing): Assert that bitsize and
9077         precision are the same.
9078
9079 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9080
9081         * Makefile.in (LIBGCOV): Remove.
9082         (libgcc.mvars): Remove LIBGCOV.
9083         * libgov.c: Move to ../libgcc.
9084
9085 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9086
9087         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
9088
9089 2011-07-08  Martin Jambor  <mjambor@suse.cz>
9090
9091         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
9092         is too big for total scalarization.
9093
9094 2011-07-07  Richard Henderson  <rth@redhat.com>
9095
9096         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
9097         (DBX_DEBUGGING_INFO): Undef.
9098
9099 2011-07-07  Richard Henderson  <rth@redhat.com>
9100
9101         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
9102         Handle some opcodes specially for debugging.
9103         * print-rtl.c: Include dwarf2out.h
9104         (print_rtx): Handle NOTE_INSN_CFI.
9105         * Makefile.in (print-rtl.o): Update.
9106
9107 2011-07-07  Richard Henderson  <rth@redhat.com>
9108
9109         * tree-pass.h (pass_dwarf2_frame): Declare.
9110         * passes.c (init_optimization_passes): Add it.
9111         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
9112         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
9113         make static, do not call add_cfis_to_fde.
9114         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
9115         dwarf2out_frame_init): Merge into...
9116         (execute_dwarf2_frame): ... here.  New function.
9117         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
9118         saved_do_cfi_asm to a tri-state variable.
9119         (gate_dwarf2_frame, pass_dwarf2_frame): New.
9120         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
9121         if it has yet to be done.  Don't call dwarf2cfi_function_init.
9122         * dwarf2out.h, debug.h: Update decls.
9123         * final.c (final_start_function): Don't call
9124         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
9125         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
9126         * toplev.c (lang_dependent_init): Likewise.
9127
9128 2011-07-07  Richard Henderson  <rth@redhat.com>
9129
9130         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
9131         FDE_TABLE_INCREMENT): Replace with...
9132         (fde_vec): ... this, a new vector.
9133         (current_fde): Remove.  Replace all users with cfun->fde.
9134         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
9135         (size_of_aranges, dwarf2out_finish): Likewise.
9136         (dwarf2out_alloc_current_fde): Break out from ...
9137         (dwarf2out_begin_prologue): ... here.
9138         (dwarf2out_frame_init): Remove.
9139         * dwarf2cfi.c: Update all users of current_fde.
9140         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
9141         * dwarf2out.h: Update decls.
9142         (dw_fde_node): Add fde_index member.
9143         * function.h (struct function): Add fde member.
9144
9145 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
9146             Richard Henderson  <rth@redhat.com>
9147
9148         * dwarf2cfi.c (add_cfi): Remove.
9149         (dwarf2out_cfi_label): Remove force argument.  Only generate the
9150         label name.
9151         (add_fde_cfi): Simplify the different code paths.
9152         (add_cie_cfi): New.
9153         (old_cfa, old_cfa_remember): New.
9154         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
9155         (last_reg_save_label): Remove.
9156         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
9157         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
9158         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
9159         dwarf2out_frame_debug_cfa_expression,
9160         dwarf2out_frame_debug_cfa_restore,
9161         dwarf2out_frame_debug_cfa_window_save,
9162         dwarf2out_frame_debug_expr): Remove label parameter.
9163         (cfi_label_required_p, add_cfis_to_fde): New.
9164         (dwarf2out_frame_debug_after_prologue): New.
9165         (dwarf2cfi_frame_init): Initialize old_cfa.
9166         (dwarf2out_frame_debug_restore_state): Likewise.
9167         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
9168         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
9169         * final.c (final_start_function): Call
9170         dwarf2out_frame_debug_after_prologue.
9171
9172 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
9173             Richard Henderson  <rth@redhat.com>
9174
9175         * dwarf2cfi.c (cfi_insn): New.
9176         (dwarf2out_cfi_label): Don't emit cfi label here.
9177         (add_fde_cfi): Create a NOTE_INSN_CFI.
9178         (dwarf2out_frame_debug): Setup cfi_insn.
9179         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
9180         (dwarf2out_cfi_begin_epilogue): Make static.
9181         (dwarf2out_frame_debug_restore_state): Make static.
9182         * dwarf2out.c (output_cfi_directive): Make static.
9183         (dwarf2out_emit_cfi): New.
9184         * dwarf2out.h: Update.
9185         * final.c (final): Remove CFI notes.
9186         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
9187         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
9188         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
9189         * insn-notes.def (NOTE_INSN_CFI): New.
9190         (NOTE_INSN_CFI_LABEL): New.
9191         * rtl.h (union rtunion_def): Add rt_cfi member.
9192         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
9193
9194 2011-07-07  Richard Henderson  <rth@redhat.com>
9195
9196         * dwarf2cfi.c: New file.
9197         * Makefile.in (OBJS): Add it.
9198         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
9199         * gengtype.c (open_base_files): Include dwarf2out.h.
9200         * coretypes.h (enum var_init_status): Move from ...
9201         * rtl.h: ... here.
9202         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
9203         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
9204         expand_builtin_dwarf_sp_column, init_return_column_size,
9205         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
9206         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
9207         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
9208         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
9209         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
9210         compute_barrier_args_size, dwarf2out_args_size,
9211         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
9212         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
9213         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
9214         queue_reg_save, dwarf2out_flush_queued_reg_saves,
9215         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
9216         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
9217         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
9218         dwarf2out_frame_debug_cfa_expression,
9219         dwarf2out_frame_debug_cfa_restore,
9220         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
9221         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
9222         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
9223         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
9224         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
9225         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
9226         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
9227         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
9228         dw_loc_descr_node): Move to dwarf2out.h.
9229         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
9230         mem_loc_descriptor): Export.
9231         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
9232         (dwarf2out_frame_init): Extract CIE generation code to
9233         dwarf2cfi_frame_init.
9234
9235 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
9236
9237         PR target/49660
9238         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
9239         MASK_V8PLUS, remove commented out flag and reorder.
9240
9241 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
9242
9243         PR c/49644
9244         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
9245         one non-complex and one complex argument, call c_save_expr on both
9246         operands.
9247
9248 2011-07-07  Martin Jambor  <mjambor@suse.cz>
9249
9250         PR middle-end/49495
9251         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
9252         (verify_cgraph_node): Some functinality moved to
9253         verify_edge_corresponds_to_fndecl, call it.
9254
9255 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
9256
9257         * config.gcc (*local*): Remove.
9258         * doc/install-old.texi: Don't mention local configurations.
9259
9260 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
9261
9262         PR debug/49522
9263         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
9264         referencing debug insns that have been reset.
9265         (dead_debug_insert_before): Don't assert reg is non-NULL,
9266         instead return immediately if it is NULL.
9267
9268 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
9269
9270         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
9271
9272 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
9273
9274         * hw-doloop.c: New file.
9275         * hw-doloop.h: New file.
9276         * Makefile.in (OBJS): Add hw-doloop.o.
9277         (hw-doloop.o): New rule.
9278         ($(obj_out_file)): Add hw-doloop.h dependency.
9279         * config/bfin/bfin.c: Include "hw-doloop.h".
9280         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
9281         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
9282         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
9283         type changed to hwloop_info.  Return bool, true if the loop was
9284         successfully optimized.  Remove code that was moved to
9285         hw-doloop.c, and adjust other parts.
9286         (hwloop_fail): New static function, containing parts that used
9287         to be in bfin_optimize_loop.
9288         (bfin_discover_loop, bfin_discover_loops, free_loops,
9289         bfin_reorder_loops): Remove.
9290         (hwloop_pattern_reg): New static function.
9291         (bfin_doloop_hooks): New variable.
9292         (bfin_reorg_loops): Remove most code, call reorg_loops.
9293         * config/bfin/bfin.md (doloop_end splitter): Also enable if
9294         loop counter is a memory_operand.
9295
9296 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
9297
9298         * config.gcc: Support --with-multilib-list for x86 Linux targets.
9299
9300         * configure.ac: Mention x86-64 for --with-multilib-list.
9301         * configure: Regenerated.
9302
9303         * config/i386/gnu-user64.h (SPEC_64): Support x32.
9304         (SPEC_32): Likewise.
9305         (ASM_SPEC): Likewise.
9306         (LINK_SPEC): Likewise.
9307         (TARGET_THREAD_SSP_OFFSET): Likewise.
9308         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
9309         (SPEC_X32): New.
9310
9311         * config/i386/i386.h (TARGET_X32): New.
9312         (TARGET_LP64): New.
9313         (LONG_TYPE_SIZE): Likewise.
9314         (POINTER_SIZE): Likewise.
9315         (POINTERS_EXTEND_UNSIGNED): Likewise.
9316         (OPT_ARCH64): Support x32.
9317         (OPT_ARCH32): Likewise.
9318
9319         * config/i386/i386.opt (mx32): New.
9320
9321         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
9322         (GLIBC_DYNAMIC_LINKERX32): Likewise.
9323         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
9324         (GLIBC_DYNAMIC_LINKERX32): Likewise.
9325
9326         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
9327         (BIONIC_DYNAMIC_LINKERX32): Likewise.
9328         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
9329
9330         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
9331
9332         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
9333
9334         * doc/invoke.texi: Document -mx32.
9335
9336 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
9337
9338         * doc/invoke.texi (mwords-little-endian): Deprecate.
9339         * config/arm/arm.opt (mwords-little-endian): Likewise.
9340         * config/arm/arm.c (arm_option_override): Warn about the deprecation
9341         of -mwords-little-endian.
9342
9343 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
9344
9345         * reload1.c (choose_reload_regs): Use mode sizes to check whether
9346         an old reload register completely defines the required value.
9347
9348 2011-07-07  Richard Guenther  <rguenther@suse.de>
9349
9350         * fold-const.c (fold_unary_loc): Do not strip sign-changes
9351         for NEGATE_EXPR.
9352
9353 2011-07-07  Richard Guenther  <rguenther@suse.de>
9354
9355         * tree-vrp.c (simplify_conversion_using_ranges): New function.
9356         (simplify_stmt_using_ranges): Call it.
9357
9358 2011-07-07  Kai Tietz  <ktietz@redhat.com>
9359
9360         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
9361         (lookup_logical_inverted_value): Likewise.
9362         (simplify_bitwise_binary_1): Likewise.
9363         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
9364
9365 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
9366
9367         * gcc.c (%[Spec]): Don't document.
9368         (struct spec_list): Update comment.
9369         (do_spec_1): Don't handle %[Spec].
9370         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
9371
9372 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
9373
9374         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
9375         default based on TARGET_ASM_NAMED_SECTION.
9376         * common/common-target.def (have_named_sections): Default to true.
9377         * common/config/default-common.c: Don't include tm.h.
9378         * common/config/picochip/picochip-common.c
9379         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
9380         * common/config/m32c/m32c-common.c: Remove.
9381         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
9382         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9383         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9384         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9385         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9386         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9387         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9388
9389 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
9390
9391         PR middle-end/49640
9392         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
9393         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
9394
9395 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9396
9397         PR libmudflap/49550
9398         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
9399
9400 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9401
9402         PR target/39150
9403         * configure.ac (gcc_cv_as_hidden): Also accept
9404         x86_64-*-solaris2.1[0-9]*.
9405         (gcc_cv_as_cfi_directive): Likewise.
9406         (gcc_cv_as_comdat_group_group): Likewise.
9407         (set_have_as_tls): Likewise.
9408         * configure: Regenerate.
9409         * config.gcc (i[34567]86-*-solaris2*): Also handle
9410         x86_64-*-solaris2.1[0-9]*.
9411         * config.host (i[34567]86-*-solaris2*): Likewise.
9412         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
9413         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
9414         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
9415         (TARGET_LD_EMULATION): Use it.
9416         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
9417         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
9418         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
9419         (ASM_CPU64_DEFAULT_SPEC): Define.
9420         (ASM_CPU_SPEC): Use %(asm_cpu_default).
9421         (ASM_SPEC): Redefine.
9422         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
9423         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
9424         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
9425         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
9426         configuration.
9427         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
9428
9429 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9430
9431         * config/sol2.h (ASM_SPEC): Split into ...
9432         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
9433         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
9434         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
9435         (ASM_SPEC): Use ASM_SPEC_BASE.
9436         * config/sparc/sol2.h (ASM_SPEC): Redefine.
9437
9438 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
9439
9440         * config/avr/avr.md (*reload_insi): Change predicate #1 to
9441         const_int_operand.  Ditto for peep2 producing this insn.
9442         Add argument to output_reload_insisf call.
9443         (*movsi,*movsf): Add argument to output_movsisf call.
9444         (*reload_insf): New insn and new peep2 to produce it.
9445         * config/avr/avr-protos.h (output_movsisf): Change prototype.
9446         (output_reload_insisf): Change prototype.
9447         * config/avr/avr.c (avr_asm_len): New function.
9448         (output_reload_insisf): Rewrite.
9449         (output_movsisf): Change prototype.  output_reload_insisf for
9450         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
9451         (adjust_insn_length): Add argument to output_movsisf and
9452         output_reload_insisf call.
9453
9454 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
9455
9456         * emit-rtl.c (paradoxical_subreg_p): New function.
9457         * rtl.h (paradoxical_subreg_p): Declare.
9458         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
9459         apply_distributive_law, simplify_comparison, simplify_set): Use it.
9460         * cse.c (record_jump_cond, cse_insn): Likewise.
9461         * expr.c (force_operand): Likewise.
9462         * rtlanal.c (num_sign_bit_copies1): Likewise.
9463         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
9464         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
9465         (push_reload): Use precision to check for paradoxical subregs.
9466         * expmed.c (extract_bit_field_1): Likewise.
9467
9468         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
9469         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
9470         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
9471         simplify_set, simplify_logical, expand_compound_operation,
9472         make_extraction, force_to_mode, if_then_else_cond, extended_count,
9473         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
9474         record_value_for_reg): Likewise.
9475         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
9476         * simplify-rtx. c (simplify_unary_operation_1,
9477         simplify_binary_operation_1, simplify_const_relational_operation):
9478         Likewise.
9479
9480         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
9481         instead of GET_MODE_BITSIZE where appropriate.
9482         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
9483         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
9484         init_num_sign_bit_copies_in_rep): Likewise.
9485         * cse.c (fold_rtx, cse_insn): Likewise.
9486         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
9487         * simplify-rtx.c (simplify_unary_operation_1,
9488         simplify_const_unary_operation, simplify_binary_operation_1,
9489         simplify_const_binary_operation, simplify_ternary_operation,
9490         simplify_const_relational_operation, simplify_subreg): Likewise.
9491         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
9492         simplify_if_then_else, simplify_set, expand_compound_operation,
9493         expand_field_assignment, make_extraction, if_then_else_cond,
9494         make_compound_operation, force_to_mode, make_field_assignment,
9495         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
9496         extended_count, try_widen_shift_mode, simplify_shift_const_1,
9497         simplify_comparison, record_promoted_value, simplify_compare_const,
9498         record_dead_and_set_regs_1): Likewise.
9499
9500         Revert:
9501         * simplify-rtx.c (simplify_const_binary_operation): Use the
9502         shift_truncation_mask hook instead of performing modulo by width.
9503         Compare against mode precision, not bitsize.
9504         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
9505         Use shift_truncation_mask instead of constructing the value manually.
9506
9507 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
9508
9509         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
9510         declaration.
9511         (rs6000_save_toc_in_prologue_p): Ditto.
9512
9513         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
9514         up the static chain (r11) during indirect function calls.
9515         (-msave-toc-indirect): New undocumented debug switch.
9516
9517         * config/rs6000/rs6000.c (struct machine_function): Add
9518         save_toc_in_prologue field to note whether the prologue needs to
9519         save the TOC value in the reserved stack location.
9520         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
9521         to save the TOC in the prologue, do so.
9522         (rs6000_trampoline_init): Don't allow creating AIX style
9523         trampolines if -mno-r11 is in effect.
9524         (rs6000_call_indirect_aix): New function to create AIX style
9525         indirect calls, adding support for -mno-r11 to suppress loading
9526         the static chain, and saving the TOC in the prologue instead of
9527         the call body.
9528         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
9529         TOC in the prologue.
9530
9531         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
9532         register numbers.
9533         (TOC_REGNUM): Ditto.
9534         (STATIC_CHAIN_REGNUM): Ditto.
9535         (ARG_POINTER_REGNUM): Ditto.
9536         (SFP_REGNO): Delete, unused.
9537         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
9538         function descriptor offsets.
9539         (TOC_SAVE_OFFSET_64BIT): Ditto.
9540         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
9541         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
9542         (AIX_FUNC_DESC_SC_32BIT): Ditto.
9543         (AIX_FUNC_DESC_SC_64BIT): Ditto.
9544         (ptrload): New mode attribute for the appropriate load of a pointer.
9545         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
9546         (call_indirect_aix64): Ditto.
9547         (call_value_indirect_aix32): Ditto.
9548         (call_value_indirect_aix64): Ditto.
9549         (call_indirect_nonlocal_aix32_internal): Ditto.
9550         (call_indirect_nonlocal_aix32): Ditto.
9551         (call_indirect_nonlocal_aix64_internal): Ditto.
9552         (call_indirect_nonlocal_aix64): Ditto.
9553         (call): Rewrite AIX indirect function calls.  Add support for
9554         eliminating the static chain, and for moving the save of the TOC
9555         to the function prologue.
9556         (call_value): Ditto.
9557         (call_indirect_aix<ptrsize>): Ditto.
9558         (call_indirect_aix<ptrsize>_internal): Ditto.
9559         (call_indirect_aix<ptrsize>_internal2): Ditto.
9560         (call_indirect_aix<ptrsize>_nor11): Ditto.
9561         (call_value_indirect_aix<ptrsize>): Ditto.
9562         (call_value_indirect_aix<ptrsize>_internal): Ditto.
9563         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
9564         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
9565         (call_nonlocal_aix32): Relocate in the rs6000.md file.
9566         (call_nonlocal_aix64): Ditto.
9567
9568         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
9569         -mno-r11 documentation.
9570
9571 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
9572
9573         PR other/49658
9574         * doc/extend.texi (Compound Literals): Fix typo.
9575
9576 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
9577
9578         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
9579
9580 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
9581
9582         * configure.ac (plugin-version.h): Generate
9583         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
9584         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
9585         macros.
9586
9587         * configure: Regenerate.
9588
9589         * doc/plugins.texi (Building GCC plugins): Mention
9590         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
9591
9592 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
9593
9594         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
9595         * combine.c (make_extraction, gen_lowpart_or_truncate,
9596         apply_distributive_law, simplify_comparison,
9597         reg_truncated_to_mode, record_truncated_value): Use it.
9598         * cse.c (notreg_cost): Likewise.
9599         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
9600         * expr.c (convert_move, convert_modes): Likewise.
9601         * optabs.c (expand_binop, expand_unop): Likewise.
9602         * postreload.c (move2add_last_label): Likewise.
9603         * regmove.c (optimize_reg_copy_3): Likewise.
9604         * rtlhooks.c (gen_lowpart_general): Likewise.
9605         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
9606
9607 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
9608
9609         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
9610
9611 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
9612
9613         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
9614         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
9615         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
9616         (simplify_const_unary_operation, simplify_binary_operation_1,
9617         simplify_const_binary_operation, simplify_const_relational_operation):
9618         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
9619         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
9620         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
9621         simplify_shift_const_1, simplify_comparison): Likewise.
9622         * expr.c (convert_modes): Likewise.
9623         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
9624         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
9625         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
9626
9627         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
9628
9629 2011-07-06  Richard Guenther  <rguenther@suse.de>
9630
9631         PR tree-optimization/49645
9632         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
9633         register variables.
9634         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
9635         in type qualification here ...
9636         (copy_reference_ops_from_ref): ... not here.
9637         (vn_reference_lookup_3): ... or here.
9638         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
9639         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
9640
9641 2011-07-06  Ian Lance Taylor  <iant@google.com>
9642
9643         * doc/install.texi (Configuration): It's
9644         --enable-gnu-indirect-function, not --enable-indirect-function.
9645
9646 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
9647
9648         * simplify-rtx.c (simplify_const_binary_operation): Use the
9649         shift_truncation_mask hook instead of performing modulo by width.
9650         Compare against mode precision, not bitsize.
9651         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
9652         Use shift_truncation_mask instead of constructing the value manually.
9653
9654 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
9655
9656         PR middle-end/47383
9657         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
9658         address computation and convert to address_mode if needed.
9659
9660 2011-07-06  Richard Guenther  <rguenther@suse.de>
9661
9662         * tree.c (build_common_tree_nodes_2): Merge with
9663         build_common_tree_nodes.
9664         * tree.h (build_common_tree_nodes): Adjust prototype.
9665         (build_common_tree_nodes_2): Remove.
9666         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
9667         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
9668
9669 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
9670
9671         PR tree-optimization/49618
9672         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
9673         t recurse on the decl.
9674         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
9675         return true if expr isn't known to be defined in current
9676         TU or some other LTO partition.
9677
9678 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
9679
9680         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
9681         override CASE_VALUES_THRESHOLD.
9682
9683         * stmt.c (toplevel): Include params.h.
9684         (case_values_threshold): Use the --param case-values-threshold
9685         value if non-zero, otherwise use machine dependent value.
9686         (expand_case): Use case_values_threshold.
9687
9688         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
9689
9690         * doc/invoke.texi (--param case-values-threshold): Document.
9691
9692 2011-07-05  Richard Henderson  <rth@redhat.com>
9693
9694         * dwarf2out.c (dwarf2out_cfi_label): Make static.
9695         (dwarf2out_flush_queued_reg_saves): Make static.
9696         (dwarf2out_reg_save): Remove.
9697         (dwarf2out_return_save): Remove.
9698         (dwarf2out_return_reg): Remove.
9699         (dwarf2out_reg_save_reg): Remove.
9700         (dwarf2out_def_cfa): Merge into ...
9701         (dwarf2out_frame_init): ... here.
9702         * dwarf2out.h, tree.h: Remove declarations as necessary.
9703
9704 2011-07-05  Richard Henderson  <rth@redhat.com>
9705
9706         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
9707         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
9708         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
9709         the alloc insn.
9710
9711         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
9712         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
9713         (process_epilogue): Don't call dwarf2out_def_cfa.
9714
9715         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
9716         indicate the return address save.
9717         (process_cfa_register): Likewise.
9718
9719         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
9720         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
9721
9722         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
9723         for ar.pfs save at alloc insn.
9724
9725 2011-07-05  Richard Henderson  <rth@redhat.com>
9726
9727         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
9728         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
9729         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
9730         stack pointer save.
9731         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
9732         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
9733         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
9734         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
9735
9736 2011-07-05  Richard Henderson  <rth@redhat.com>
9737
9738         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
9739         VUNSPEC_* constants here instead of via define_constants.
9740         (VUNSPEC_PEM): New constant.
9741         (procedure_entry_mask): New insn.
9742         (prologue): New expander.
9743         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
9744         (vax_expand_prologue): Rename from vax_output_function_prologue;
9745         emit rtl instead of text.
9746         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
9747         (print_operand): Add 'x' prefix.
9748
9749 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
9750
9751         PR middle-end/47715
9752         * calls.c (precompute_register_parameters): Promote the function
9753         argument before checking non-legitimate constant.
9754
9755 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
9756
9757         PR tree-optimization/47654
9758         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
9759         (lst_do_strip_mine_loop): Return an int.
9760         (lst_do_strip_mine): Same.
9761         (scop_do_strip_mine): Same.
9762         (scop_do_block): Loop blocking should strip-mine at least two loops.
9763         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
9764         (scop_do_interchange): Same.
9765         * graphite-poly.h (scop_do_interchange): Update declaration.
9766         (scop_do_strip_mine): Same.
9767
9768 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
9769
9770         * graphite-clast-to-gimple.c (precision_for_value): Removed.
9771         (precision_for_interval): Removed.
9772         (gcc_type_for_interval): Use mpz_sizeinbase.
9773
9774 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
9775
9776         * graphite-ppl.h (value_max): Correct computation of max.
9777
9778 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
9779
9780         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
9781
9782 2011-07-05  Richard Guenther  <rguenther@suse.de>
9783
9784         * c-decl.c (c_init_decl_processing): Defer building common
9785         tree nodes to c_common_nodes_and_builtins.
9786
9787 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
9788
9789         PR tree-optimization/49580
9790         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
9791         the loop's number of iterations.
9792         * tree-parloops.c (transform_to_exit_first_loop): Add the
9793         handling of the loop's number of iterations before the call
9794         to gimple_duplicate_sese_tail.
9795         Insert the stmt caclculating the new rhs of the loop's
9796         condition stmt to the preheader instead of iters_bb.
9797
9798 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
9799
9800         PR rtl-optimization/47449
9801         * fwprop.c (forward_propagate_subreg): Don't propagate hard
9802         register nor zero/sign extended hard register.
9803
9804 2011-07-05  Richard Guenther  <rguenther@suse.de>
9805
9806         PR tree-optimization/49518
9807         PR tree-optimization/49628
9808         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
9809         irrelevant and invariant data-references.
9810         (vect_analyze_data_ref_access): For invariant loads clear the
9811         group association.
9812
9813 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
9814
9815         PR rtl-optimization/49619
9816         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
9817         pass VOIDmode as op0_mode to recursive call, and return temp even
9818         when different from tor, just if it is not IOR of the original
9819         PLUS arguments.
9820
9821         PR rtl-optimization/49472
9822         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
9823         negating MULT, negate the second operand instead of first.
9824         (simplify_binary_operation_1) <case MULT>: If one operand is
9825         a NEG and the other is MULT, don't attempt to optimize by negation
9826         of the MULT operand if it only moves the NEG operation around.
9827
9828         PR debug/49602
9829         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
9830         get_current_def return value if it can't be trusted to be
9831         the current value of the variable in the current bb.
9832
9833 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
9834
9835         PR target/49600
9836         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
9837         general register to memory for !TARGET_INTER_UNIT_MOVES.
9838
9839 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
9840
9841         PR target/44643
9842         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
9843         instead of TREE_READONLY.
9844
9845 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
9846
9847         * doc/extend.texi (AVR Built-in Functions): Update documentation
9848         of __builtin_avr_fmul*.
9849         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
9850         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
9851         * config/avr/avr.md (fmul): Rename to fmul_insn.
9852         (fmuls): Rename to fmuls_insn.
9853         (fmulsu): Rename to fmulsu_insn.
9854         (fmul,fmuls,fmulsu): New expander.
9855         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
9856         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
9857         * config/avr/libgcc.S (__fmul): New function.
9858         (__fmuls): New function.
9859         (__fmulsu,__fmulsu_exit): New function.
9860
9861 2011-07-04  Richard Guenther  <rguenther@suse.de>
9862
9863         PR tree-optimization/49615
9864         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
9865         basic-block index check.
9866
9867 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
9868
9869         * longlong.h (count_leading_zeros, count_trailing_zeros,
9870         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
9871         resp. 64.
9872
9873 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
9874
9875         PR tree-optimization/49610
9876         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
9877         a basic block.
9878
9879 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
9880             Olivier Hainque  <hainque@adacore.com>
9881             Nicolas Setton  <setton@adacore.com>
9882
9883         * tree.h (TYPE_ARTIFICIAL): New flag.
9884         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
9885         the DIE of the type if it is artificial.
9886         (gen_array_type_die): Likewise.
9887         (gen_enumeration_type_die): Likewise.
9888         (gen_struct_or_union_type_die): Likewise.
9889         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
9890         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
9891
9892 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
9893
9894         * tree-object-size.c (pass_through_call): Handle
9895         BUILT_IN_ASSUME_ALIGNED.
9896
9897 2011-07-01  Martin Jambor  <mjambor@suse.cz>
9898
9899         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
9900
9901 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
9902
9903         PR middle-end/48016
9904         * explow.c (update_nonlocal_goto_save_area): Use proper mode
9905         for stack save area.
9906         * function.c (expand_function_start): Likewise.
9907
9908 2011-07-01  Richard Guenther  <rguenther@suse.de>
9909
9910         PR middle-end/49596
9911         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
9912         may have unknown refs.
9913
9914 2011-07-01  Kai Tietz  <ktietz@redhat.com>
9915
9916         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
9917
9918 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9919
9920         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
9921         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
9922         (Specific, mips-sgi-irix6): Likewise.
9923
9924 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9925
9926         PR libmudflap/49549
9927         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
9928
9929 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
9930
9931         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
9932         [idx]= and [idx1 ... idx2]= before initializers if needed for
9933         array initializers.
9934
9935 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
9936
9937         * config.gcc (score-*-elf): Remove score7.o.
9938         * config/score/t-score-elf: Likewise.
9939         * config/score/score.c: Merge score7 to score.c and
9940         remove forwarding functions.
9941         * config/score/score7.c: Deleted.
9942         * config/score/score7.h: Deleted.
9943
9944 2011-07-01  Richard Guenther  <rguenther@suse.de>
9945
9946         PR tree-optimization/49603
9947         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
9948
9949 2011-06-30  Martin Jambor  <mjambor@suse.cz>
9950
9951         * tree-sra.c (struct access): Rename total_scalarization to
9952         grp_total_scalarization
9953         (completely_scalarize_var): New function.
9954         (sort_and_splice_var_accesses): Set total_scalarization in the
9955         representative access.
9956         (analyze_access_subtree): Propagate total scalarization accross the
9957         tree, no holes in totally scalarized trees, simplify coverage
9958         computation.
9959         (analyze_all_variable_accesses): Call completely_scalarize_var instead
9960         of completely_scalarize_record.
9961
9962 2011-06-30  Richard Henderson  <rth@redhat.com>
9963
9964         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
9965         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
9966         * config/i386/i386.c: Don't include dwarf2out.h.
9967         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
9968         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
9969         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
9970         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
9971         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
9972
9973 2011-06-30  Richard Henderson  <rth@redhat.com>
9974
9975         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
9976         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
9977         * final.c (final_scan_insn): Look for it, and invoke
9978         dwarf2out_frame_debug before the insn if found.
9979
9980 2011-06-30  Richard Henderson  <rth@redhat.com>
9981
9982         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
9983         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
9984
9985 2011-06-30  Richard Henderson  <rth@redhat.com>
9986
9987         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
9988         Define a vector of this type.
9989         (regs_saved_in_regs): Use a VEC.
9990         (num_regs_saved_in_regs): Remove.
9991         (compare_reg_or_pc): New.
9992         (record_reg_saved_in_reg): Split out from...
9993         (dwarf2out_flush_queued_reg_saves): ... here.
9994         (clobbers_queued_reg_save): Update for VEC.
9995         (reg_saved_in): Likewise.
9996         (dwarf2out_frame_debug_init): Likewise.
9997         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
9998         (dwarf2out_frame_debug_cfa_register): Likewise.
9999
10000 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
10001
10002         PR tree-optimization/49572
10003         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
10004         type of the RHS instead of that of the LHS for the expression type.
10005
10006 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
10007
10008         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
10009         unconditionally.
10010
10011 2011-06-30  Richard Guenther  <rguenther@suse.de>
10012
10013         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
10014         * tree-ssa-structalias.c (create_variable_info_for): Do not
10015         add initial constraints for non-var-decls.  Properly handle
10016         globals in other ltrans partitions.
10017         (intra_create_variable_infos): Manually create constraints for
10018         the fake no-alias parameter.
10019         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
10020         and assert there are no clones.
10021
10022 2011-06-30  Richard Guenther  <rguenther@suse.de>
10023
10024         PR tree-optimization/46787
10025         * tree-data-ref.c (dr_address_invariant_p): Remove.
10026         (find_data_references_in_stmt): Invariant accesses are ok now.
10027         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
10028         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
10029         invariant loads.
10030
10031 2011-06-30  Martin Jambor  <mjambor@suse.cz>
10032
10033         PR tree-optimization/49094
10034         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
10035         (build_accesses_from_assign): Use it.
10036
10037 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
10038
10039         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
10040         handling of BUILT_IN_ASSUME_ALIGNED.
10041
10042         PR debug/49364
10043         * dwarf2out.c (output_abbrev_section): Don't return early
10044         if abbrev_die_table_in_use is 1.
10045         (dwarf2out_finish): Instead don't call output_abbrev_section
10046         nor emit abbrev_section_label in that case.
10047
10048 2011-06-30  Nick Clifton  <nickc@redhat.com>
10049
10050         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
10051         for the V850E.
10052
10053 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
10054
10055         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
10056         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
10057
10058 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
10059
10060         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
10061         both pattern and original statements if necessary.
10062         (vect_transform_loop): Likewise.
10063         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
10064         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
10065         Mark the pattern statement only if the original statement doesn't
10066         have its own uses.
10067         (process_use): Call vect_mark_relevant with additional parameter.
10068         (vect_mark_stmts_to_be_vectorized): Likewise.
10069         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
10070         (vect_analyze_stmt): Handle both pattern and original statements
10071         if necessary.
10072         (vect_transform_stmt): Don't store vectorized pattern statement
10073         in the original statement.
10074         (vect_is_simple_use_1): Use related pattern statement only if the
10075         original statement is irrelevant.
10076         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
10077
10078 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
10079
10080         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
10081         option.
10082         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
10083         entry.
10084         (TARGET_AVX128_OPTIMAL): New definition.
10085         * config/i386/i386.c (initial_ix86_tune_features): Initialize
10086         X86_TUNE_AVX128_OPTIMAL entry.
10087         (ix86_option_override_internal): Enable the generation
10088         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
10089         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
10090         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
10091
10092 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
10093
10094         PR tree-optimization/49539
10095         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
10096         names by means of stmt_references_abnormal_ssa_name.
10097         (associate_plusminus): Call can_propagate_from before propagating
10098         from definition statements.
10099         (ssa_forward_propagate_and_combine): Remove superfluous newline.
10100
10101 2011-06-29  Richard Guenther  <rguenther@suse.de>
10102
10103         * doc/invoke.texi: Document -scev dump modifier.
10104         * tree-pass.h (TDF_SCEV): New dump flag.
10105         * tree-dump.c (dump_option_value_in): Add scev.
10106         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
10107         * tree-scalar-evolution.c: Likewise.
10108
10109 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
10110
10111         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
10112         (cxa_type_match): Correct declaration.
10113         (__gnu_unwind_pr_common): Reconstruct additional indirection
10114         when __cxa_type_match returns succeeded_with_ptr_to_base.
10115
10116 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10117
10118         PR rtl-optimization/49114
10119         * reload.c (struct replacement): Remove SUBREG_LOC member.
10120         (push_reload): Do not set it.
10121         (push_replacement): Likewise.
10122         (subst_reload): Remove dead code.
10123         (copy_replacements): Remove assertion.
10124         (copy_replacements_1): Do not handle SUBREG_LOC.
10125         (move_replacements): Likewise.
10126         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
10127         Detect subregs via recursive descent instead of via SUBREG_LOC.
10128
10129 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
10130
10131         * config/avr/avr.c (avr_encode_section_info): Dispatch to
10132         default_encode_section_info.
10133
10134 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
10135
10136         PR tree-optimization/49545
10137         * builtins.c (get_object_alignment_1): Update function comment.
10138         Do not use DECL_ALIGN for functions, but test
10139         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
10140         * fold-const.c (get_pointer_modulus_and_residue): Don't check
10141         for functions here.
10142         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
10143
10144 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
10145
10146         PR debug/49567
10147         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
10148         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
10149
10150 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
10151
10152         PR target/34734
10153         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
10154         about uninitialized data attributed 'progmem' from here...
10155         (avr_encode_section_info): ...to this new function.
10156         (TARGET_ENCODE_SECTION_INFO): New define.
10157         (avr_section_type_flags): For data in ".progmem.data", remove
10158         section flag SECTION_WRITE.
10159
10160 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
10161
10162         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
10163         _xmulhisi3_exit.
10164         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
10165         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
10166         (__umulhisi3): Ditto.
10167         * config/avr/avr.md (mulhisi3): New insn expender.
10168         (umulhisi3): New insn expender.
10169         (*mulhisi3_call): New insn.
10170         (*umulhisi3_call): New insn.
10171
10172 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
10173
10174         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
10175
10176 2011-06-28  Richard Henderson  <rth@redhat.com>
10177
10178         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
10179         all code and arguments that handled pushes.  Update all callers.
10180
10181 2011-06-28  Richard Henderson  <rth@redhat.com>
10182
10183         * config/arm/arm.c (arm_output_function_prologue): Don't call
10184         thumb1_output_function_prologue.
10185         (arm_expand_prologue): Avoid dead store.
10186         (number_of_first_bit_set): Use ctz_hwi.
10187         (thumb1_emit_multi_reg_push): New.
10188         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
10189         to emit the entire prologue as rtl.
10190         (thumb1_output_interwork): Split out from
10191         thumb1_output_function_prologue.
10192         (thumb1_output_function_prologue): Remove.
10193         (arm_attr_length_push_multi): Handle thumb1.
10194         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
10195         (prologue_thumb1_interwork): New.
10196         (*push_multi): Allow thumb1; use push_mult_memory_operand.
10197         * config/arm/predicates.md (push_mult_memory_operand): New.
10198
10199 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
10200
10201         * config/sparc/sync.md (*stbar): Delete.
10202         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
10203
10204 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
10205
10206         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
10207
10208 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10209
10210         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
10211         (TARGET_64BIT_DEFAULT): Define.
10212         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
10213         of tm_file.
10214         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
10215
10216 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
10217
10218         * common.opt (in_lto_p): New Variable entry.
10219         * flags.h (in_lto_p): Move to common.opt.
10220         * gcc.c: Include params.h.
10221         (set_option_handlers): Also use common_handle_option and
10222         target_handle_option.
10223         (main): Call global_init_params, finish_params and init_options_struct.
10224         * opts.c (debug_type_names): Move from toplev.c.
10225         (print_filtered_help): Access quiet_flag through opts pointer.
10226         (common_handle_option): Return early in the driver for some options.
10227         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
10228         opts pointer.
10229         * toplev.c (in_lto_p): Move to common.opt.
10230         (debug_type_names): Move to opts.c.
10231         * Makefile.in (OBJS): Remove opts.o.
10232         (OBJS-libcommon-target): Add opts.o.
10233         (gcc.o): Update dependencies.
10234
10235 2011-06-28  Kai Tietz  <ktietz@redhat.com>
10236
10237         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
10238
10239 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10240
10241         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
10242         with '=' constraint modifier.
10243         (*divdf3_vfp): Likewise.
10244         ("*mulsf3_vfp"): Likewise.
10245         ("*muldf3_vfp"): Likewise.
10246         ("*mulsf3negsf_vfp"): Likewise.
10247         ("*muldf3negdf_vfp"): Likewise.
10248
10249 2011-06-28  Nick Clifton  <nickc@redhat.com>
10250
10251         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
10252         relaxation when performing an incremental link.
10253
10254 2011-06-28  Kai Tietz  <ktietz@redhat.com>
10255
10256         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
10257         within BB from last to first.
10258
10259 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
10260
10261         * genattr-common.c: New.  Based on genattr.c.
10262         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
10263         (MOSTLYCLEANFILES): Add insn-attr-common.h.
10264         (opts.o): Update dependencies.
10265         (.PRECIOUS): Add insn-attr-common.h.
10266         (simple_rtl_generated_h): Add insn-attr-common.h.
10267         (build/genattr-common.o): New.
10268         (genprogrtl): Add attr-common.
10269         * genattr.c (main): Include insn-attr-common.h.  Don't generate
10270         definitions of DELAY_SLOTS or INSN_SCHEDULING.
10271         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
10272
10273 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
10274
10275         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
10276         avr-*-* and avr-*-rtems* targets.
10277
10278         * config/avr/elf.h: New file.
10279         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
10280         (TARGET_ASM_SELECT_SECTION): Define.
10281         (INIT_SECTION_ASM_OP): Undefine.
10282         (FINI_SECTION_ASM_OP): Undefine.
10283         (READONLY_DATA_SECTION_ASM_OP): Undefine.
10284         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
10285         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
10286         * config/avr/avr.h:
10287         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
10288         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
10289         (MAX_OFILE_ALIGNMENT): Move to elf.h.
10290         (STRING_LIMIT): Move to elf.h.
10291         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
10292         (ASM_DECLARE_OBJECT_NAME): Remove.
10293         (ESCAPES): Remove.
10294         (ASM_OUTPUT_SKIP): Remove.
10295         (DWARF2_DEBUGGING_INFO): Remove.
10296         (OBJECT_FORMAT_ELF): Remove.
10297         (USER_LABEL_PREFIX): Remove.
10298         (ASM_OUTPUT_EXTERNAL): Remove.
10299         (ASM_OUTPUT_ASCII): Remove.
10300         (TYPE_ASM_OP): Remove.
10301         (SIZE_ASM_OP): Remove.
10302         (WEAK_ASM_OP): Remove.
10303         (STRING_ASM_OP): Remove.
10304         (SET_ASM_OP): Remove.
10305         (ASM_WEAKEN_LABEL): Remove.
10306         (TYPE_OPERAND_FMT): Remove.
10307         (ASM_DECLARE_FUNCTION_SIZE): Remove.
10308         (ASM_FINISH_DECLARE_OBJECT): Remove.
10309         (NO_DOLLAR_IN_LABEL): Remove.
10310         (ASM_GENERATE_INTERNAL_LABEL): Remove.
10311         (ASM_OUTPUT_CASE_LABEL): Remove.
10312         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
10313         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
10314         (gas_output_ascii): Remove.
10315         (gas_output_limited_string): Remove.
10316         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
10317         * config/avr/avr-protos.h
10318         (gas_output_ascii): Remove prototye.
10319         (gas_output_limited_string): Remove prototype.
10320
10321 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
10322
10323         PR target/48637
10324         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
10325         asm operands.
10326
10327 2011-06-27  Jan Hubicka  <jh@suse.cz>
10328
10329         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
10330         node instead of references in node.
10331
10332 2011-06-27  Richard Henderson  <rth@redhat.com>
10333
10334         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
10335         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
10336         inside ifdef.
10337
10338 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
10339
10340         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
10341
10342         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
10343         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
10344         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
10345         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
10346         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
10347         (evaluate_stmt, execute_fold_all_builtins): Handle
10348         BUILT_IN_ASSUME_ALIGNED.
10349         * tree-ssa-dce.c (propagate_necessity): Likewise.
10350         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
10351         call_may_clobber_ref_p_1): Likewise.
10352         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
10353         (expand_builtin_assume_aligned): New function.
10354         * doc/extend.texi (__builtin_assume_aligned): Document.
10355
10356         PR debug/49544
10357         * cselib.c (promote_debug_loc): If cselib_preserve_constants
10358         and l has two DEBUG_INSN owned locs instead of just one, adjust
10359         the second location's setting_insn too.
10360
10361 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10362
10363         PR libmudflap/38738
10364         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
10365
10366 2011-06-27  Nick Clifton  <nickc@redhat.com>
10367
10368         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
10369         bit position of highest bit set into a count of the high zero bits.
10370
10371 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
10372
10373         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
10374
10375 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
10376
10377         PR lto/48492
10378         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
10379         to a NULL parent.
10380
10381 2011-06-27  Richard Guenther  <rguenther@suse.de>
10382
10383         PR tree-optimization/49394
10384         * passes.c (execute_one_pass): Restore current_pass after
10385         applying IPA transforms.
10386
10387 2011-06-27  Kai Tietz  <ktietz@redhat.com>
10388
10389         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
10390         out of type precision after operation.
10391         (find_bswap): Take for limit value the integer auto-promotion
10392         into account.
10393
10394 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
10395
10396         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
10397         forward scan as well.
10398
10399 2011-06-27  Tristan Gingold  <gingold@adacore.com>
10400
10401         PR target/44241
10402         * config/vms/vms-protos.h: New file.
10403         * config/vms/vms-crtlmap.map: New file.
10404         * config/vms/vms.c: New file.
10405         * config/vms/make-crtlmap.awk: New file.
10406         * config/vms/vms-crtl.h: File removed.
10407         * config/vms/vms-crtl-64.h: File removed.
10408         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
10409         * config/alpha/vms64.h: Do not include vms-crtl-64.h
10410         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
10411         clear some builtins on VMS.  Calls vms_patch_builtins.
10412         (avms_asm_output_external): Remove.
10413         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
10414         (struct crtl_name_spec): Remove
10415         (DO_CTRL_NAMES): Remove.
10416         * config/ia64/vms.h (struct crtl_name_spec): Remove
10417         (DO_CTRL_NAMES): Remove.
10418         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
10419         clear some builtins on VMS.  Calls vms_patch_builtins.
10420         (ia64_asm_output_external): Remove DO_CRTL_NAME.
10421         * config/ia64/vms64.h: Do not include vms-crtl-64.h
10422         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
10423
10424 2011-06-27  Tristan Gingold  <gingold@adacore.com>
10425
10426         * config/alpha/alpha.c (alpha_end_function): Always generate .end
10427         directive on VMS.
10428
10429 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
10430
10431         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
10432         the function receives nonlocal gotos.
10433
10434 2011-06-27  Richard Guenther  <rguenther@suse.de>
10435
10436         PR tree-optimization/49536
10437         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
10438         For non-scalar inner types use a scalar type according to
10439         the scalar inner mode.
10440
10441 2011-06-27  Richard Guenther  <rguenther@suse.de>
10442
10443         PR tree-optimization/49365
10444         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
10445
10446 2011-06-27  Richard Guenther  <rguenther@suse.de>
10447
10448         PR tree-optimization/49169
10449         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
10450         the alignment of function decls.
10451
10452 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
10453
10454         PR target/47997
10455         * config/darwin.c (darwin_mergeable_string_section): Place string
10456         constants in '.cstring' rather than '.const' when CF/NSStrings are
10457         active.
10458
10459 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
10460
10461         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
10462         (emit_save_register_window): Likewise.
10463         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
10464         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
10465         Swap back %o7/%i7 in register naming.
10466
10467 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
10468
10469         PR driver/49371
10470         * config/darwin.c (darwin_override_options): Improve warning when
10471         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
10472         is given with fpie/fPIE.
10473         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
10474         * config/darwin9.h (PIE_SPEC): New.
10475
10476 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
10477
10478         * timevar.c (timevar_print): Increase width for display of timevar
10479         name.
10480
10481 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
10482
10483         PR c++/46400
10484         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
10485         instead of TYPE_CHAIN for chain_next for types.
10486
10487 2011-06-24  Richard Henderson  <rth@redhat.com>
10488
10489         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
10490         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
10491         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
10492         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
10493         (sparc_flat_expand_prologue): Emit individual instructions
10494         instead of one of the above.
10495
10496 2011-06-24  Easwaran Raman  <eraman@google.com>
10497
10498         PR rtl-optimization/49429
10499         PR target/49454
10500         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
10501         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
10502         used to copy y into x.
10503         * calls.c (initialize_argument_information): Mark
10504         an argument addressable if it is passed by invisible reference.
10505         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
10506         if it is passed by reference.
10507
10508 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
10509
10510         PR rtl-optimization/49504
10511         * rtlanal.c (nonzero_bits1): Properly handle addition or
10512         subtraction of a pointer in Pmode if pointers extend unsigned.
10513         (num_sign_bit_copies1): Likewise.
10514
10515 2011-06-24  Martin Jambor  <mjambor@suse.cz>
10516
10517         PR tree-optimizations/49516
10518         * tree-sra.c (sra_modify_assign): Choose the safe path for
10519         aggregate copies if we also did scalar replacements.
10520
10521 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10522
10523         PR target/49335
10524         * config/arm/predicates.md (add_operator): New.
10525         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
10526
10527 2011-06-24  Andi Kleen  <ak@linux.intel.com>
10528
10529         * tree-sra.c (type_internals_preclude_sra_p): Add msg
10530         parameter. Split up ifs and report reason in *msg.
10531         (reject): Add.
10532         (find_var_candiate): Add msg variable.
10533         Split up ifs and report reason to reject.
10534         (find_param_candidates): Add msg variable.
10535         Pass msg to type_internals_preclude_sra_p.
10536
10537 2011-06-23  Jeff Law  <law@redhat.com>
10538
10539         PR middle-end/48770
10540         * reload.h (reload): Change to return a bool.
10541         * ira.c (ira): If requested by reload, run a fast DCE pass after
10542         reload has completed.  Fix comment typo.
10543         * reload1.c (need_dce): New file scoped static.
10544         (reload): Set reload_completed here.  Return whether or not a DCE
10545         pass after reload is needed.
10546         (delete_dead_insn): Set need_dce as needed.
10547
10548         PR middle-end/49465
10549         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
10550         to detect threading through joiner block.  If there was already
10551         an edge to the new target, then do not change the PHI nodes.
10552
10553 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
10554
10555         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
10556         get_pointer_alignment to see if base isn't sufficiently aligned.
10557
10558 2011-06-23  Jan Hubicka  <jh@suse.cz>
10559
10560         PR tree-optimize/49373
10561         * tree-pass.h (all_late_ipa_passes): Declare.
10562         * cgraphunit.c (init_lowered_empty_function): Fix properties.
10563         (cgraph_optimize): Execute late passes; remove unreachable funcions
10564         after materialization.
10565         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
10566         LTOing.
10567         * passes.c (all_late_ipa_passes): Declare.
10568         (dump_passes, register_pass): Handle late ipa passes.
10569         (init_optimization_passes): Move ipa_pta to late passes; schedule
10570         fixup_cfg at beggining of all_passes.
10571         (apply_ipa_transforms): New function.
10572         (execute_one_pass): When doing simple ipa pass, apply all transforms.
10573
10574 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
10575
10576         * params.c: Include common/common-target.h.  Don't include tm.h.
10577         (lang_independent_params): Move from toplev.c.
10578         (global_init_params): New.
10579         * params.h (global_init_params): Declare.
10580         * target.def (default_params): Move to common-target.def.
10581         * toplev.c (lang_independent_options): Remove.
10582         (lang_independent_params): Move to params.c.
10583         (general_init): Use global_init_params.
10584         * common/common-target.def (option_default_params): Move from
10585         target.def.
10586         * common/config/ia64/ia64-common.c: Include params.h.
10587         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
10588         from ia64.c.
10589         * common/config/rs6000/rs6000-common.c: Include params.h.
10590         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
10591         from rs6000.c.
10592         * common/config/sh/sh-common.c: Include params.h.
10593         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
10594         from sh.c.
10595         * common/config/spu/spu-common.c: Include params.h.
10596         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
10597         from spu.c.
10598         * config/ia64/ia64.c (ia64_option_default_params,
10599         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
10600         * config/rs6000/rs6000.c (rs6000_option_default_params,
10601         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
10602         * config/sh/sh.c (sh_option_default_params,
10603         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
10604         * config/spu/spu.c (spu_option_default_params,
10605         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
10606         * Makefile.in (OBJS): Remove params.o.
10607         (OBJS-libcommon-target): Add params.o.
10608         (params.o, $(common_out_object_file)): Update dependencies.
10609         * doc/tm.texi: Regenerate.
10610
10611 2011-06-23  Alan Modra  <amodra@gmail.com>
10612
10613         PR bootstrap/49383
10614         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
10615         invocation for 2011-06-09 changes.
10616
10617 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
10618
10619         PR libgomp/49490
10620         * omp-low.c (expand_omp_for_static_nochunk): Only
10621         use n ceil/ nthreads size for the first n % nthreads threads in the
10622         team instead of all threads except for the last few ones which
10623         get less work or none at all.
10624
10625         PR debug/49496
10626         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
10627         uses.
10628
10629 2011-06-22  Richard Guenther  <rguenther@suse.de>
10630
10631         PR tree-optimization/49493
10632         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
10633         Refer to the alias target of variables.
10634         (associate_varinfo_to_alias_1): Remove.
10635         (ipa_pta_execute): Do not associate aliases with anything.
10636         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
10637         (cgraph_function_node): Likewise.
10638         (cgraph_function_or_thunk_node): Likewise.
10639         (varpool_variable_node): Likewise.
10640
10641 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
10642
10643         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
10644         * config.gcc (arm*-*-linux*): Default to gnu tls.
10645         (arm*-*-*): Add --with-tls option.
10646         (all_defaults): Add 'tls'.
10647
10648 2011-06-22  Richard Henderson  <rth@redhat.com>
10649
10650         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
10651         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
10652         (dwarf2out_frame_debug_cfa_window_save): Rename from
10653         dwarf2out_window_save; make static.
10654         * tree.h (dwarf2out_window_save): Don't declare.
10655
10656         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
10657         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
10658         (emit_save_register_window): Rename from gen_save_register_window;
10659         emit the insn and add REG_CFA_* notes.
10660         (sparc_expand_prologue): Update to match.
10661         * config/sparc/sparc.md (save_register_window_1): Simplify from
10662         save_register_window<P:mode>.
10663
10664 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
10665
10666         PR target/49497
10667         * config/i386/i386.md (*lea_general_2): Always allow SImode.
10668         (*lea_general_2_zext): Likewise.
10669         (imul to lea peepholes): Use const359_operand and check
10670         TARGET_PARTIAL_REG_STALL.
10671
10672         * config/i386/predicates.md (const359_operand): New.
10673
10674 2011-06-22  Michael Matz  <matz@suse.de>
10675
10676         * cgraphunit.c (assemble_thunk): Use correct return type.
10677
10678 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
10679             Dmitry Melnik  <dm@ispras.ru>
10680
10681         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
10682         (neon_output_shift_immediate): Ditto.
10683         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
10684         prototype.
10685         (neon_output_shift_immediate): Ditto.
10686         * config/arm/neon.md (vashl<mode>3): Modified constraint.
10687         (vashr<mode>3_imm): New insn pattern.
10688         (vlshr<mode>3_imm): Ditto.
10689         (vashr<mode>3): Modified constraint.
10690         (vlshr<mode>3): Ditto.
10691         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
10692         predicate.
10693         (imm_for_neon_rshift_operand): Ditto.
10694         (imm_lshift_or_reg_neon): Ditto.
10695         (imm_rshift_or_reg_neon): Ditto.
10696
10697         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
10698
10699 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
10700
10701         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
10702         builtin calls even if likelyvalue is not CONSTANT.
10703         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
10704         Return get_value_for_expr of first operand
10705         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
10706         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
10707         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
10708         their non-checking counterparts.
10709         (call_may_clobber_ref_p_1): Likewise.
10710         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
10711         like their non-checking counterparts.
10712         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10713         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
10714         like their non-checking counterparts.
10715         (find_func_clobbers): Likewise.
10716         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
10717         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
10718
10719         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
10720         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
10721         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
10722         of base type reference as argument.
10723         (resolve_addr_in_expr): Likewise.  Fix keep computation.
10724         (convert_descriptor_to_signed): Renamed to...
10725         (convert_descriptor_to_mode): ... this.  For wider types convert to
10726         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
10727         (typed_binop): New function.
10728         (scompare_loc_descriptor, ucompare_loc_descriptor,
10729         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
10730         default to unsigned type instead of signed.
10731
10732         PR debug/47858
10733         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
10734         (gimple_build_debug_source_bind_stat): New prototype.
10735         (gimple_build_debug_source_bind): Define.
10736         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
10737         gimple_debug_source_bind_get_value,
10738         gimple_debug_source_bind_get_value_ptr,
10739         gimple_debug_source_bind_set_var,
10740         gimple_debug_source_bind_set_value): New inlines.
10741         * gimple.c (gimple_build_debug_source_bind_stat): New function.
10742         * gimple-pretty-print.c (dump_gimple_debug): Handle
10743         GIMPLE_DEBUG_SOURCE_BIND.
10744         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
10745         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
10746         * tree-parloops.c (eliminate_local_variables,
10747         separate_decls_in_region): Likewise.
10748         (separate_decls_in_region_debug): Renamed from
10749         separate_decls_in_region_debug_bind.  Handle
10750         gimple_debug_source_bind_p.
10751         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
10752         prototypes.
10753         (DECL_HAS_DEBUG_ARGS_P): Define.
10754         (struct tree_function_decl): Add has_debug_args_flag field.
10755         * tree.c (debug_args_for_decl): New variable.
10756         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
10757         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
10758         (rewrite_debug_stmt_uses): New function.
10759         (rewrite_stmt): Use it to rewrite debug stmt uses.
10760         * rtl.def (DEBUG_PARAMETER_REF): New.
10761         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
10762         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
10763         DEBUG_PARAMETER_REF.
10764         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
10765         * print-rtl.c (print_rtx): Likewise.
10766         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
10767         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
10768         debug stmts in the first bb.
10769         * tree-inline.c (remap_ssa_name): If remapping default def
10770         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
10771         a source bind debug stmt.
10772         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
10773         (maybe_move_debug_stmts_to_successors): Likewise.
10774         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
10775         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
10776         debug args vector from old_decl to new_decl.
10777         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
10778         or modified parameters, add debug bind stmts before call
10779         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
10780         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
10781         on DECL_DEBUG_EXPRs from debug args vector.
10782         (expand_debug_source_expr): New function.
10783         (expand_debug_locations): Use it for source bind insns.
10784         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
10785         * var-tracking.c (prepare_call_arguments): Add debug args
10786         to call_arguments if any.
10787         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
10788         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
10789         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
10790         (get_ref_die_offset, parameter_ref_descriptor): New functions.
10791         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
10792         (gen_subprogram_die): Handle parameters identified by
10793         DEBUG_PARAMETER_REF.
10794
10795 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
10796
10797         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
10798         * doc/install.texi (Configuration): Document --with-tls.
10799         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
10800         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
10801         (arm_tls_descseq_addr): New.
10802         (legitimize_tls_address): Add tlsdesc support.
10803         (arm_cannot_copy_insn_p): Check for tlscall.
10804         (arm_emit_tls_decoration): Likewise.
10805         * config/arm/arm.h (TARGET_GNU2_TLS): New.
10806         (OPTION_DEFAULT_SPECS): Add with-tls support.
10807         * config/arm/arm.md (R1_REGNUM): Define.
10808         (tlscall): New.
10809         * config/arm/arm.opt (tls_type): New enumeration type and values.
10810         (mtls-dialect): New switch.
10811         * config/arm/arm-opts.h (enum tls_type): New.
10812
10813 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
10814
10815         * attribs.c (register_attribute): Added assert to check that all
10816         attribute specs are registered with a name that is not empty and
10817         does not start with '_'.
10818         (decl_attributes): Avoid the lookup of the "naked" attribute spec
10819         if the function has no attributes.
10820         * tree.c (is_attribute_with_length_p): Removed.
10821         (is_attribute_p): Removed.
10822         (private_is_attribute_p): New.
10823         (private_lookup_attribute): New.
10824         (lookup_attribute): Removed.
10825         (lookup_ident_attribute): New.
10826         (remove_attribute): Require the first argument to be in the form
10827         'text', not '__text__'.  Updated asserts.
10828         (merge_attributes): Use lookup_ident_attributes instead of
10829         lookup_attribute.
10830         (merge_dllimport_decl_attributes): Use remove_attribute.
10831         (attribute_list_contained): Likewise.
10832         (attribute_list_equal): Immediately return 1 if the arguments are
10833         identical pointers.
10834         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
10835         'int'.  Require the first argument to be in the form 'text', not
10836         '__text__'.  Require the second argument to be an identifier.
10837         (lookup_attribute): Made inline.  Require the first argument to be
10838         in the form 'text', not '__text__'.
10839         (private_is_attribute_p, private_lookup_attribute): New.
10840         Updated comments.
10841
10842 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
10843
10844         * builtins.c: Add sync_ or SYNC__ to builtin names.
10845         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
10846         * omp-low.c: Add sync_ or SYNC__ to builtin names.
10847
10848 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
10849
10850         PR target/33049
10851         * config/avr/avr.md (extzv): New expander.
10852         (*extzv): New insn.
10853         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
10854         * config/avr/constraints.md (C04): New constraint.
10855         * doc/md.texi (Machine Constraints): Document it.
10856
10857 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
10858
10859         PR middle-end/49489
10860         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
10861         unsignedp argument instead of 1 for clrsb_optab.
10862         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
10863         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
10864         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
10865         * optabs.c (widen_leading): Call widen_operand and expand_unop
10866         with 0 as unsignedp argument instead of 1 for clrsb_optab.
10867         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
10868
10869 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
10870
10871         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
10872
10873 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
10874
10875         * gensupport.c (add_define_attr): New static function.
10876         (is_predicable): Allow multi-alternative lists for the "predicable"
10877         attribute.
10878         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
10879         (process_one_cond_exec): Call alter_attrs_for_insn.
10880         * doc/md.texi (Defining Attributes): Mention some standard names.
10881         (Conditional Execution): Update documentation for "predicable".
10882
10883         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
10884         __builtin_clrsbll): Document.
10885         * doc/rtl.texi (clrsb): New entry.
10886         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
10887         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
10888         (expand_unop): Handle clrsb_optab.
10889         (init_optabs): Initialize it.
10890         * optabs.h (enum optab_index): New entry OTI_clrsb.
10891         (clrsb_optab): Define.
10892         * genopinit.c (optabs): Add an entry for it.
10893         * builtins.c (expand_builtin): Handle clrsb builtin functions.
10894         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
10895         BUILT_IN_CLRSBLL): New.
10896         * rtl.def (CLRSB): New code.
10897         * dwarf2out.c (mem_loc_descriptor): Handle it.
10898         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
10899         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
10900         and popcount.
10901         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
10902         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
10903         (__ctzDI2): Move declaration.
10904         * config/bfin/bfin.md (clrsbsi2): New expander.
10905         (signbitssi2): Use the CLRSB rtx.
10906         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
10907         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
10908
10909 2011-06-21  Richard Guenther  <rguenther@suse.de>
10910
10911         * ipa-inline-transform.c (inline_transform): Fix previous change.
10912
10913 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
10914
10915         PR tree-optimization/49478
10916         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
10917         with constant operand.
10918
10919 2011-06-21  Richard Guenther  <rguenther@suse.de>
10920
10921         * ipa-inline-transform.c (inline_transform): Fix typo.
10922
10923 2011-06-21  Richard Guenther  <rguenther@suse.de>
10924
10925         PR tree-optimization/49483
10926         * tree-vect-stmts.c (vectorizable_assignment): Also handle
10927         VIEW_CONVERT_EXPR conversions.
10928
10929 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
10930
10931         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
10932         * config/avr/avr-tables.opt: New file (generated).
10933         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
10934         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
10935         avr-mcus.def.
10936         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
10937         (avr_option_override): Don't process -mmcu= argument here.  Set
10938         avr_current_device using avr_mcu_index.
10939         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
10940         * config/avr/avr.opt (mmcu=): Use Enum.
10941         * config/avr/t-avr (avr-devices.o): Update dependencies.
10942         ($(srcdir)/config/avr/avr-tables.opt): New.
10943         * target.def (help): Remove.
10944         * doc/tm.texi.in (TARGET_HELP): Remove.
10945         * doc/tm.texi: Regenerate.
10946         * opts.c: Don't include target.h.
10947         (common_handle_option): Don't call targetm.help.
10948         * system.h (TARGET_HELP): Poison.
10949         * Makefile.in (opts.o): Update dependencies.
10950
10951 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10952
10953         * config/usegld.h: New file.
10954         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
10955         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
10956         (LIB_SPEC): Likewise.  Search /lib.
10957         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
10958         (RDYNAMIC_SPEC): Handle GNU ld.
10959         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
10960         Define.
10961         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
10962         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
10963         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
10964         (STACK_CHECK_STATIC_BUILTIN): Define.
10965         * config/sol2.opt (compat-bsd): Remove.
10966         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
10967         * config/sol2-bi.h: New file.
10968         * config/sol2-gld.h: Remove.
10969         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
10970         (NO_DBX_BNSYM_ENSYM): Remove.
10971         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
10972         (STACK_CHECK_STATIC_BUILTIN): Remove.
10973         Test USE_GLD instead of TARGET_GNU_LD.
10974         * config/i386/sol2-10.h: Rename to ...
10975         * config/i386/sol2-bi.h .. this.
10976         (SUBTARGET_EXTRA_SPECS): Redefine.
10977         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
10978         (MULTILIB_DEFAULTS): Remove.
10979         (DEFAULT_ARCH32_P): Define.
10980         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
10981         (ARCH64_SUBDIR): Define.
10982         Test USE_GLD instead of TARGET_GNU_LD.
10983         (I386_EMULATION): Rename to ...
10984         (ARCH32_EMULATION): ... this.
10985         (X86_64_EMULATION): Rename to ...
10986         (ARCH64_EMULATION): ... this.
10987         (TARGET_LD_EMULATION): Remove.
10988         (LINK_ARCH_SPEC): Remove.
10989         * config/i386/sol2-gas.h: Remove.
10990         * config/i386/t-sol2-10: Rename to ...
10991         * config/i386/t-sol2-64: ... this.
10992         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
10993         (AS_SPARC64_FLAG): Define.
10994         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
10995         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
10996         depending on TARGET_CPU_DEFAULT.
10997         (CPP_CPU_SPEC): Redefine.
10998         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
10999         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
11000         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
11001         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
11002         ASM_ARCH_DEFAULT_SPEC): Redefine.
11003         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
11004         LINK_ARCH_DEFAULT_SPEC.
11005         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
11006         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
11007         (ARCH64_SUBDIR): Define.
11008         (LINK_ARCH64_SPEC): Redefine.
11009         (CC1_SPEC): Redefine.
11010         (OPTION_DEFAULT_SPECS): Redefine.
11011         (MULTILIB_DEFAULTS): Define.
11012         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
11013         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
11014         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
11015         (NO_DBX_BNSYM_ENSYM): Remove.
11016         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
11017         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
11018         (TARGET_ASM_NAMED_SECTION): Likewise.
11019         (STACK_CHECK_STATIC_BUILTIN): Remove.
11020         * config/sparc/sol2-bi.h: Remove.
11021         * config/sparc/sol2-gas-bi.h: Remove.
11022         * config/sparc/sol2-gas.h: Remove.
11023         * config/sparc/sol2-gld-bi.h: Remove.
11024         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
11025         common parts ...
11026         (*-*-solaris2*): ... here.
11027
11028 2011-06-21  Christian Bruel  <christian.bruel@st.com>
11029
11030         PR other/43564
11031         * ipa-inline.c (can_inline_edge_p): Check
11032         !DECL_DISREGARD_INLINE_LIMITS.
11033
11034 2011-06-21  Christian Bruel  <christian.bruel@st.com>
11035
11036         PR middle-end/49139
11037         * cgraphunit.c (process_function_and_variable_attributes): warn when
11038         always_inline functions that are not inline.
11039         * ipa-inline-transform.c (inline_transform): Always call
11040         optimize_inline.
11041         * tree-inline.c (tree_inlinable_function_p): Use error instead
11042         of sorry.
11043         (expand_call_inline): Likewise.
11044
11045 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
11046
11047         * Makefile.in (dg_target_exps): Set.
11048         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
11049         instead of 7, try to divide it more evenly.
11050
11051 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
11052
11053         PR target/49089
11054         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
11055         (avx256_split_unaligned_store): New definition.
11056         (ix86_option_override_internal): Enable avx256 unaligned load/store
11057         splitting only when avx256_split_unaligned_load/store is set.
11058
11059 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
11060
11061         * regrename.c (scan_rtx_reg): Handle the case where we write to an
11062         open chain in a smaller mode without failing the entire block.
11063
11064 2011-06-21  Alan Modra  <amodra@gmail.com>
11065
11066         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
11067         CONST high part large-toc address.
11068         (rs6000_tls_referenced_p): Make static.
11069         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
11070
11071 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11072
11073         PR target/49385
11074         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
11075         one of the operands is a register.
11076
11077 2011-06-20  Kai Tietz  <ktietz@redhat.com>
11078
11079         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
11080         operations in combination with binary and.
11081
11082 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
11083
11084         * regrename.c (do_replace): Don't update notes.
11085
11086 2011-06-20  Alan Modra  <amodra@gmail.com>
11087
11088         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
11089         of toc-relative address in CONST.
11090         (rs6000_delegitimize_address): Recognize changed address.
11091         (rs6000_legitimize_reload_address): Likewise.
11092         (rs6000_emit_move): Don't force these constants to memory.
11093         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
11094         toc-relative address in CONST.
11095         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
11096         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
11097
11098 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
11099
11100         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
11101         (count_trailing_zeros): Likewise.
11102
11103 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
11104
11105         PR other/49325
11106         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
11107         .init_array can be used with .ctors on targets.
11108         * configure: Regenerated.
11109
11110 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
11111
11112         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
11113         if the element type is volatile.
11114
11115 2011-06-18  Jan Hubicka  <jh@suse.cz>
11116
11117         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
11118         extra name aliases.
11119         (lto_symtab_resolve_can_prevail_p): Likewise.
11120         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
11121         * cgraphbuild.c (record_reference): Remove extra body alias code.
11122         (mark_load): Likewise.
11123         (mark_store): Likewise.
11124         * cgraph.h (varpool_node): Remove extra_name filed;
11125         add alias_of and extraname_alias.
11126         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
11127         (varpool_alias_aliased_node): New inline function.
11128         (varpool_variable_node): New function.
11129         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
11130         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
11131         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
11132         (input_varpool_node): Likewise.
11133         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
11134         (varpool_externally_visible_p): Remove extra body alias code.
11135         (function_and_variable_visibility): Likewise.
11136         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
11137         (ipa_pta_execute): Use it.
11138         * varpool.c (varpool_remove_node): Remove extra name alias code.
11139         (varpool_mark_needed_node): Likewise.
11140         (varpool_analyze_pending_decls): Analyze aliases.
11141         (assemble_aliases): New functoin.
11142         (varpool_assemble_decl): Use it.
11143         (varpool_create_variable_alias): New function.
11144         (varpool_extra_name_alias): Rewrite.
11145         (varpool_for_node_and_aliases): New function.
11146
11147 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
11148
11149         PR target/49411
11150         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
11151         last_arg_constant and last argument doesn't match its predicate,
11152         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
11153         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
11154         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
11155         spelling of error message.
11156         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
11157         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
11158         const_0_to_255_operand instead of const_int_operand.
11159
11160         Revert:
11161         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
11162
11163         * config/i386/sse.md (blendbits): Remove mode attribute.
11164         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
11165         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
11166         Check integer value of operand 3 in insn constraint.
11167
11168 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
11169
11170         PR rtl-optimization/48542
11171         * reload.c (find_equiv_reg): Stop looking when finding a
11172         setjmp-type call.
11173         * reload1.c (reload_as_needed): Invalidate all reload
11174         registers when crossing a setjmp-type call.
11175
11176 2011-06-16  Jeff Law  <law@redhat.com>
11177
11178         * tree-ssa-threadupdate.c (struct redirection_data): New field
11179         intermediate_edge.
11180         (THREAD_TARGET2): Define.
11181         (redirection_data_eq): Also check that the intermediate edge is equal.
11182         (lookup_redirection_data): Drop useless argument.  Extract the
11183         outgoing_edge and intermediate edge from E.  Callers updated.
11184         (copy_phi_args, update_destination_phis): New functions.
11185         (fix_duplicate_block_edges): Likewise.
11186         (create_edge_and_update_destination_phis): Duplicate all the edges
11187         hung off e->aux.  Use copy_phi_args.
11188         (create_duplicates): Use fix_duplicate_block_edges.
11189         (fixup_template_block): Likewise.
11190         (redirect_edges): If necessary, redirect the joiner block's incoming
11191         edge to the duplicate of the joiner block.
11192         (thread_block): Don't muck up loops when threading through a joiner
11193         block.
11194         (thread_through_loop_header): Handle threading through a joiner block.
11195         (mark_threaded_blocks, register_jump_thread): Likewise.
11196         * tree-flow.h (register_jump_thread): Add new argument.  Callers
11197         updated.
11198         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
11199         (thread_across_edge): Handle threading through a joiner block.
11200
11201 2011-06-16  Martin Jambor  <mjambor@suse.cz>
11202
11203         PR tree-optimization/49343
11204         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
11205         calculate offset, provide 2nd operand for the new COMPONENT_REF.
11206
11207 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
11208
11209         * config/darwin-protos.h (machopic_select_rtx_section): Move to
11210         inside RTX_CODE ifdef.
11211
11212 2011-06-16  Tom de Vries  <tom@codesourcery.com>
11213
11214         PR target/45098
11215         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
11216         Disallow NULL pointer for pointer arithmetic.
11217
11218 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11219
11220         PR target/49398
11221         Revert.
11222         2011-06-10  Wei Guozhi  <carrot@google.com>
11223
11224         PR target/45335
11225         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
11226         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
11227         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
11228         related peephole2.
11229         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
11230         related peephole2.
11231         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
11232         (arm_legitimate_ldrd_p): New prototype.
11233         (arm_output_ldrd): New prototype.
11234         * config/arm/arm.c (arm_check_ldrd_operands): New function.
11235         (arm_legitimate_ldrd_p): New function.
11236         (arm_output_ldrd): New function.
11237
11238 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
11239
11240         PR middle-end/46500
11241         * doc/tm.texi.in: Update Copyright date.
11242         * doc/tm.texi: Regenerate.
11243         * targhooks.c (default_setup_incoming_varargs): Replace
11244         CUMULATIVE_ARGS* argument type with cumulative_args_t.
11245         (default_pretend_outgoing_varargs_named): Likewise.
11246         (hook_pass_by_reference_must_pass_in_stack): Likewise.
11247         (hook_callee_copies_named): Likewise.
11248         (default_function_arg_advance): Likewise.
11249         (default_function_arg): Likewise.
11250         (default_function_incoming_arg): Likewise.
11251         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
11252         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
11253         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
11254         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
11255         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
11256         * targhooks.h (default_setup_incoming_varargs): Likewise.
11257         (default_pretend_outgoing_varargs_named): Likewise.
11258         (hook_pass_by_reference_must_pass_in_stack): Likewise.
11259         (hook_callee_copies_named): Likewise.
11260         (default_function_arg_advance): Likewise.
11261         (default_function_arg): Likewise.
11262         (default_function_incoming_arg): Likewise.
11263         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
11264         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
11265         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
11266         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
11267         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
11268         * target.def (pass_by_reference): Likewise.
11269         (setup_incoming_varargs, strict_argument_naming): Likewise.
11270         (pretend_outgoing_varargs_named, callee_copies): Likewise.
11271         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
11272         (function_incoming_arg): Likewise.
11273         * target.h: Don't include "tm.h" .
11274         (cumulative_args_t): New typedef.
11275         [GCC_TM_H] (get_cumulative_args): New static inline function.
11276         [GCC_TM_H] (pack_cumulative_args): Likewise.
11277         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
11278         argument type with cumulative_args_t.
11279         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
11280         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
11281         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
11282         (frv_arg_partial_bytes, frv_function_arg): Likewise.
11283         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
11284         (frv_function_arg_1): Likewise.
11285         * config/s390/s390.c (s390_pass_by_reference): Likewise.
11286         (s390_function_arg_advance, s390_function_arg): Likewise.
11287         * config/m32c/m32c.c (m32c_function_arg): Likewise.
11288         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
11289         (m32c_strict_argument_naming): Likewise.
11290         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
11291         (spu_function_arg_advance): Likewise.
11292         (spu_setup_incoming_varargs): Likewise.  Make static.
11293         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
11294         Remove prototype.
11295         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
11296         CUMULATIVE_ARGS* argument type with cumulative_args_t.
11297         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
11298         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
11299         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
11300         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
11301         (mep_pass_by_reference, mep_function_arg): Likewise.
11302         (mep_function_arg_advance): Likewise.
11303         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
11304         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
11305         (m32r_function_arg, m32r_function_arg_advance): Likewise.
11306         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
11307         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
11308         (ix86_function_arg, ix86_pass_by_reference): Likewise.
11309         (ix86_setup_incoming_varargs): Likewise.
11310         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
11311         (sh_strict_argument_naming): Likewise.
11312         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
11313         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
11314         (sh_function_arg_advance, sh_function_arg): Likewise.
11315         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
11316         (pdp11_function_arg_advance): Likewise.
11317         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
11318         Likewise.
11319         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
11320         * config/avr/avr.c (avr_function_arg): Likewise.
11321         (avr_function_arg_advance): Likewise.
11322         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
11323         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
11324         (xtensa_function_arg_1): Likewise.
11325         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
11326         Likewise.
11327         (xstormy16_function_arg): Likewise.
11328         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
11329         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
11330         (fr30_function_arg_advance): Likewise.
11331         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
11332         (lm32_function_arg, lm32_function_arg_advance): Likewise.
11333         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
11334         (moxie_function_arg, moxie_function_arg_advance): Likewise.
11335         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
11336         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
11337         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
11338         (cris_function_arg, cris_function_incoming_arg): Likewise.
11339         (cris_function_arg_advance, cris_function_arg_1): Likewise.
11340         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
11341         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
11342         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
11343         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
11344         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
11345         (mn10300_arg_partial_bytes): Likewise.
11346         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
11347         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
11348         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
11349         (ia64_function_arg_1): Likewise.
11350         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
11351         (m68k_function_arg): Likewise.
11352         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
11353         (rs6000_function_arg, setup_incoming_varargs): Likewise.
11354         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
11355         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
11356         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
11357         (picochip_arg_advance): Likewise.
11358         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
11359         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
11360         (mcore_function_arg_advance): Likewise.
11361         * config/score/score.c (score_pass_by_reference): Likewise.
11362         (score_function_arg_advance): Likewise.
11363         (score_arg_partial_bytes): Likewise.  Make static.
11364         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
11365         * config/arm/arm.c (arm_arg_partial_bytes): Replace
11366         CUMULATIVE_ARGS* argument type with cumulative_args_t.
11367         (arm_function_arg, arm_function_arg_advance): Likewise.
11368         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
11369         * config/pa/pa.c (pa_pass_by_reference): Likewise.
11370         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
11371         (pa_function_arg): Likewise.
11372         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
11373         (mips_function_arg, mips_function_arg_advance): Likewise.
11374         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
11375         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
11376         * config/vax/vax.c (vax_function_arg): Likewise.
11377         (vax_function_arg_advance): Likewise.
11378         * config/h8300/h8300.c (h8300_function_arg): Likewise.
11379         (h8300_function_arg_advance): Likewise.
11380         * config/v850/v850.c (v850_pass_by_reference): Likewise.
11381         (v850_strict_argument_naming, v850_function_arg): Likewise.
11382         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
11383         (v850_setup_incoming_varargs): Likewise.
11384         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
11385         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
11386         (mmix_function_arg, mmix_pass_by_reference): Likewise.
11387         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
11388         with const void *.
11389         * config/bfin/bfin.c (setup_incoming_varargs): Replace
11390         CUMULATIVE_ARGS* argument type with cumulative_args_t.
11391         (bfin_function_arg_advance, bfin_function_arg): Likewise.
11392         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
11393         * calls.c (emit_call_1): Change type of args_so_far to
11394         cumulative_args_t.  Changed all callers.
11395         (initialize_argument_information): Likewise.
11396         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
11397         * dse.c (get_call_args): Likewise.
11398         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
11399         * function.c (pass_by_reference, reference_callee_copied): Likewise.
11400         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
11401         New member args_so_far_v.  Changed all users.
11402         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
11403         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
11404         * config/mips/mips.c (mips_output_args_xfer): Likewise.
11405         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
11406         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
11407         * config/microblaze/microblaze.c (microblaze_expand_prologue):
11408         Likewise.
11409         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
11410         m32r_pass_by_reference.
11411
11412 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
11413
11414         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
11415         argument to be a VEC of statements.
11416         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
11417         assert that pattern statements have to have their vector type set.
11418         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
11419         Change the first argument to be a VEC of statements.  Update
11420         documentation.
11421         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
11422         (vect_handle_widen_mult_by_const): New function.
11423         (vect_recog_widen_mult_pattern):  Change the first argument to be a
11424         VEC of statements.  Update documentation.  Check that the constant is
11425         INTEGER_CST.  Support multiplication by a constant that fits an
11426         intermediate type - call vect_handle_widen_mult_by_const.
11427         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
11428         call.  Handle additional pattern statements if necessary.
11429
11430 2011-06-16  Nick Clifton  <nickc@redhat.com>
11431
11432         PR target/49427
11433         * config.gcc: Set cpu_type to v850 for any V850 architecture.
11434         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
11435         md_file, extra_modes, out_file and extra_options are these are all
11436         deduced from cpu_type.
11437
11438 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
11439
11440         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
11441         truncation mask to 63.
11442
11443 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
11444
11445         PR target/49313
11446         PR target/29524
11447         * longlong.h: Add AVR support:
11448         (count_leading_zeros): New macro.
11449         (count_trailing_zeros): New macro.
11450         (COUNT_LEADING_ZEROS_0): New macro.
11451         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
11452         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
11453         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
11454         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
11455         (LIB2FUNCS_EXCLUDE): Add _clz.
11456         * config/avr/libgcc.S (XCALL): Move up in file.
11457         (XJMP): New C Macro.
11458         (DEFUN): New asm macro.
11459         (ENDF): New asm macro.
11460         (__ffssi2): New function.
11461         (__ffshi2): New function.
11462         (__loop_ffsqi2): New function.
11463         (__ctzsi2): New function.
11464         (__ctzhi2): New function.
11465         (__clzdi2): New function.
11466         (__clzsi2): New function.
11467         (__clzhi2): New function.
11468         (__paritydi2): New function.
11469         (__paritysi2): New function.
11470         (__parityhi2): New function.
11471         (__parityqi2): New function.
11472         (__popcounthi2): New function.
11473         (__popcountsi2): New function.
11474         (__popcountdi2): New function.
11475         (__popcountqi2): New function.
11476         (__bswapsi2): New function.
11477         (__bswapdi2): New function.
11478         (__ashldi3): New function.
11479         (__ashrdi3): New function.
11480         (__lshrdi3): New function.
11481         Fix suspicous lines.
11482
11483 2011-06-16  Richard Guenther  <rguenther@suse.de>
11484
11485         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
11486         the same as x != 0.
11487         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
11488         to (bool) X & 1.
11489         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
11490         equality compares against zero for the lower bit.
11491
11492 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
11493
11494         PR tree-optimization/49419
11495         * tree-vrp.c (execute_vrp): Call init_range_assertions
11496         before estimate_numbers_of_iterations, call
11497         free_number_of_iterations_estimates before calling
11498         remove_range_assertions.
11499
11500 2011-06-16  Revital Eres  <revital.eres@linaro.org>
11501
11502         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
11503         (struct partial_schedule): Add rows_length field.
11504         (verify_partial_schedule): Check rows_length.
11505         (ps_insert_empty_row): Handle rows_length.
11506         (create_partial_schedule): Likewise.
11507         (free_partial_schedule): Likewise.
11508         (reset_partial_schedule): Likewise.
11509         (create_ps_insn): Remove rest_count argument.
11510         (remove_node_from_ps): Update rows_length.
11511         (add_node_to_ps): Update rows_length and call create_ps_insn
11512         without passing row_rest_count.
11513         (rotate_partial_schedule): Update rows_length.
11514
11515 2011-06-16  Revital Eres  <revital.eres@linaro.org>
11516
11517         * ddg.c (add_intra_loop_mem_dep): New function.
11518         (build_intra_loop_deps): Call it.
11519
11520 2011-06-13  Jeff Law  <law@redhat.com>
11521
11522         * df-problems.c (df_lr_local_compute): Manually CSE
11523         PIC_OFFSET_TABLE_REGNUM.
11524         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
11525         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
11526
11527 2011-06-13  Jan Hubicka  <jh@suse.cz>
11528
11529         * cgraphunit.c (handle_alias_pairs): New function.
11530         (cgraph_finalize_compilation_unit): Use it.
11531         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
11532         as externally visible.
11533
11534 2011-06-15  Richard Guenther  <rguenther@suse.de>
11535
11536         * expr.c (expand_expr_real_2): Reduce all integral types to
11537         bitfield precision.
11538         (expand_expr_real_1): Likewise.
11539
11540 2011-06-15  Martin Jambor  <mjambor@suse.cz>
11541
11542         PR tree-optimization/48613
11543         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
11544         ipa_node_params_vector is NULL.
11545
11546 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
11547
11548         PR debug/49382
11549         * dwarf2out.c (dw_loc_list_node): Add force field.
11550         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
11551         location in the list, even if it is modified before first real insn.
11552         (output_loc_list): Emit empty ranges with force flag set.
11553         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
11554
11555 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
11556
11557         PR target/49349
11558         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
11559         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
11560         above a fence.  Update comments.
11561         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
11562         placed just above it.  Do not allow NULL place_to_insert.
11563
11564 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
11565
11566         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
11567         (slpeel_tree_peel_loop_to_edge): Don't call
11568         remove_dead_stmts_from_loop.
11569         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
11570         remove irrelevant pattern statements.  For irrelevant statements
11571         check if it is the last statement of a detected pattern, use
11572         corresponding pattern statement instead.
11573         (destroy_loop_vec_info): No need to remove pattern statements,
11574         only free stmt_vec_info.
11575         (vect_transform_loop): For irrelevant statements check if it is
11576         the last statement of a detected pattern, use corresponding
11577         pattern statement instead.
11578         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
11579         pattern statements.  Set basic block for the new statement.
11580         (vect_pattern_recog): Update documentation.
11581         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
11582         operands of pattern statements.
11583         (vectorizable_call): Fix printing.  In case of a pattern statement
11584         use the lhs of the original statement when creating a dummy
11585         statement to replace the original call.
11586         (vect_analyze_stmt): For irrelevant statements check if it is
11587         the last statement of a detected pattern, use corresponding
11588         pattern statement instead.
11589         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
11590         statements use gsi of the original statement.
11591
11592 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
11593
11594         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
11595         common/common-target-def.h.
11596         * target.def (default_target_flags, handle_option,
11597         supports_split_stack, optimization_table, init_struct,
11598         except_unwind_info, unwind_tables_default, have_named_sections):
11599         Move to common/common-target.def.
11600         * target.h (enum opt_levels, struct default_options): Move to
11601         common/common-target.h.
11602         * targhooks.c (default_except_unwind_info,
11603         dwarf2_except_unwind_info, sjlj_except_unwind_info,
11604         default_target_handle_option, empty_optimization_table): Move to
11605         common/common-targhooks.c.
11606         * targhooks.h (default_except_unwind_info,
11607         dwarf2_except_unwind_info, sjlj_except_unwind_info,
11608         default_target_handle_option, empty_optimization_table): Move to
11609         common/common-targhooks.h.
11610         * common/common-target-def.h: Include common/common-targhooks.h.
11611         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
11612         defined.
11613         * common/common-target.def (handle_option, option_init_struct,
11614         option_optimization_table, default_target_flags,
11615         except_unwind_info, supports_split_stack, unwind_tables_default,
11616         have_named_sections): Move from target.def.
11617         (HOOK_PREFIX): Undefine at end of file.
11618         * common/common-target.h: Include input.h.
11619         (enum opt_levels, struct default_options): Move from target.h.
11620         * common/common-targhooks.c, common/common-targhooks.h: New.
11621         * config.gcc (target_has_targetm_common): Default to yes.
11622         (moxie*): Set target_has_targetm_common=no.
11623         (hppa*-*-*): Don't set target_has_targetm_common=yes.
11624         * doc/tm.texi: Regenerate.
11625         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
11626         (C_TARGET_DEF_H): Add common/common-targhooks.h.
11627         (GCC_OBJS): Remove vec.o.
11628         (OBJS): Remove hooks.o and vec.o.
11629         (OBJS-libcommon-target): Add vec.o, hooks.o and
11630         common/common-targhooks.o.
11631         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
11632         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
11633         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
11634         cfglayout.o, $(out_object_file), $(common_out_object_file)):
11635         Update dependencies.
11636         (common/common-targhooks.o): New.
11637         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
11638         * common/config/pa/pa-common.c: Include more headers.  Take
11639         copyright dates from pa.c.
11640         (pa_option_optimization_table, pa_handle_option,
11641         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
11642         TARGET_HANDLE_OPTION): Move from pa.c.
11643         * common/config/alpha/alpha-common.c,
11644         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
11645         common/config/bfin/bfin-common.c,
11646         common/config/cris/cris-common.c,
11647         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
11648         common/config/h8300/h8300-common.c,
11649         common/config/i386/i386-common.c,
11650         common/config/ia64/ia64-common.c,
11651         common/config/iq2000/iq2000-common.c,
11652         common/config/lm32/lm32-common.c,
11653         common/config/m32c/m32c-common.c,
11654         common/config/m32r/m32r-common.c,
11655         common/config/m68k/m68k-common.c,
11656         common/config/mcore/mcore-common.c,
11657         common/config/mep/mep-common.c,
11658         common/config/microblaze/microblaze-common.c,
11659         common/config/mips/mips-common.c,
11660         common/config/mmix/mmix-common.c,
11661         common/config/mn10300/mn10300-common.c,
11662         common/config/pdp11/pdp11-common.c,
11663         common/config/picochip/picochip-common.c,
11664         common/config/rs6000/rs6000-common.c,
11665         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
11666         common/config/score/score-common.c, common/config/sh/sh-common.c,
11667         common/config/sparc/sparc-common.c,
11668         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
11669         common/config/vax/vax-common.c,
11670         common/config/xstormy16/xstormy16-common.c,
11671         common/config/xtensa/xtensa-common.c: New.
11672         * config/alpha/alpha.c: Include common/common-target.h.
11673         (alpha_option_optimization_table, alpha_handle_option,
11674         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11675         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
11676         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
11677         * config/arm/arm.c (arm_option_optimization_table,
11678         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
11679         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
11680         arm-common.c.
11681         * config/avr/avr.c (avr_option_optimization_table,
11682         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
11683         to avr-common.c.
11684         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
11685         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
11686         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
11687         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
11688         * config/cris/cris.c (cris_option_optimization_table,
11689         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11690         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
11691         cris-common.c.
11692         * config/fr30/fr30.c (fr30_option_optimization_table,
11693         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
11694         to fr30-common.c.
11695         * config/frv/frv.c (frv_option_optimization_table,
11696         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
11697         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
11698         * config/h8300/h8300.c (h8300_option_optimization_table,
11699         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
11700         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
11701         * config/i386/i386-protos.h (ix86_handle_option): Declare.
11702         * config/i386/i386.c: Include common/common-target.h.
11703         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
11704         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
11705         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
11706         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
11707         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
11708         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
11709         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
11710         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
11711         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
11712         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
11713         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
11714         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
11715         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
11716         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
11717         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
11718         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
11719         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
11720         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
11721         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
11722         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
11723         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
11724         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
11725         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
11726         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
11727         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
11728         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
11729         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
11730         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
11731         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
11732         ix86_option_optimization_table, ix86_option_init_struct,
11733         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
11734         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
11735         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
11736         i386-common.c.
11737         * config/i386/t-i386 (i386.o): Update dependencies.
11738         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
11739         * config/ia64/ia64.c (ia64_option_optimization_table,
11740         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
11741         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11742         ia64_handle_option): Move to ia64-common.c.
11743         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
11744         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
11745         * config/lm32/lm32.c (lm32_option_optimization_table,
11746         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
11747         to lm32-common.c.
11748         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
11749         m32c-common.c.
11750         * config/m32r/m32r.c (m32r_option_optimization_table,
11751         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11752         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
11753         m32r_handle_option): Move to m32r-common.c.
11754         (m32r_memory_move_cost): Remove comment referring to
11755         TARGET_HANDLE_OPTION.
11756         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
11757         Move to m68k-common.c.
11758         * config/mcore/mcore.c (mcore_option_optimization_table,
11759         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
11760         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
11761         * config/mep/mep.c (mep_option_optimization_table,
11762         mep_handle_option, TARGET_HANDLE_OPTION,
11763         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
11764         Move to mep-common.c.
11765         * config/microblaze/microblaze.c
11766         (microblaze_option_optimization_table,
11767         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
11768         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
11769         * config/mips/mips.c (mips_handle_option,
11770         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
11771         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
11772         mips-common.c.
11773         * config/mmix/mmix.c (mmix_option_optimization_table,
11774         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
11775         Move to mmix-common.c.
11776         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
11777         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
11778         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11779         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
11780         * config/pa/pa.c: Include common/common-target.h.
11781         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
11782         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11783         pa_handle_option): Move to pa-common.c.
11784         (pa_option_override): Use targetm_common.except_unwind_info.
11785         (pa_asm_output_mi_thunk, pa_function_section): Use
11786         targetm_common.have_named_sections.
11787         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
11788         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11789         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
11790         pdp11_handle_option, pdp11_option_init_struct): Move to
11791         pdp11-common.c.
11792         * config/picochip/picochip.c (picochip_option_optimization_table,
11793         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
11794         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
11795         * config/rs6000/rs6000.c: Include common/common-target.h.
11796         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
11797         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
11798         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
11799         rs6000_handle_option): Move to rs6000-common.c.
11800         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
11801         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
11802         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
11803         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
11804         * config/s390/s390.c (processor_flags_table,
11805         s390_option_optimization_table, s390_option_init_struct,
11806         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
11807         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
11808         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
11809         * config/s390/s390.h (processor_flags_table): Declare.
11810         * config/score/score.c (score_option_optimization_table,
11811         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11812         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
11813         score_handle_option): Move to score-common.c.
11814         * config/sh/sh.c (sh_option_optimization_table,
11815         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
11816         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11817         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
11818         * config/sparc/sparc.c: Include common/common-target.h.
11819         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
11820         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
11821         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
11822         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
11823         spu_option_init_struct): Move to spu-common.c.
11824         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
11825         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
11826         * config/v850/v850.c (small_memory_physical_max,
11827         v850_handle_memory_optionn v850_handle_option,
11828         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
11829         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
11830         v850-common.c.
11831         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
11832         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
11833         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
11834         Move to xtensa-common.c.
11835         * cfglayout.c: Include common/common-target.h.
11836         (fixup_reorder_chain): Use targetm_common.have_named_sections.
11837         * cfgrtl.c: Include common/common-target.h.
11838         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
11839         targetm_common.have_named_sections.
11840         * dbxout.c: Include common/common-target.h.
11841         (dbxout_function_end): Use targetm_common.have_named_sections.
11842         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
11843         targetm_common.except_unwind_info.
11844         * dwarf2out.c: Include common/common-target.h.
11845         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
11846         dwarf2out_begin_prologue, dwarf2out_frame_init,
11847         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
11848         targetm_common.except_unwind_info.
11849         * except.c: Include common/common-target.h.
11850         (init_eh, finish_eh_generation,
11851         output_one_function_exception_table): Use
11852         targetm_common.except_unwind_info.
11853         (switch_to_exception_section): Use targetm_common.have_named_sections.
11854         * explow.c: Include common/common-target.h.
11855         * expr.c: Include common/common-target.h.
11856         (build_personality_function): Use targetm_common.except_unwind_info.
11857         * function.c: Include common/common-target.h.
11858         (expand_function_end): Use targetm_common.except_unwind_info.
11859         * haifa-sched.c: Include common/common-target.h.
11860         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
11861         * lto-opts.c: Include common/common-target.h instead of target.h.
11862         (lto_reissue_options): Use targetm_common.handle_option.
11863         * opts.c: Include common/common-target.h.
11864         (target_handle_option): Use targetm_common.handle_option.
11865         (init_options_struct): Update comment referring to
11866         targetm.target_option.optimization.  Use
11867         targetm_common.default_target_flags,
11868         targetm_common.unwind_tables_default and
11869         targetm_common.option_init_struct.
11870         (default_options_optimization): Use
11871         targetm_common.option_optimization_table.
11872         (finish_options): Use targetm_common.except_unwind_info,
11873         targetm_common.unwind_tables_default,
11874         targetm_common.have_named_sections and
11875         targetm_common.supports_split_stack.
11876         * toplev.c: Include common/common-target.h.
11877         (process_options): Use targetm_common.have_named_sections.
11878         * tree-tailcall.c: Include common/common-target.h.
11879         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
11880         * tree.c: Include common/common-target.h.
11881         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
11882         * varasm.c: Include common/common-target.h.
11883         (resolve_unique_section, hot_function_section,
11884         default_function_section): Use targetm_common.have_named_sections.
11885
11886 2011-06-14  Easwaran Raman  <eraman@google.com>
11887
11888         PR rtl-optimization/44194
11889         * dse.c: Include tree-flow.h
11890         (insn_info): Add new field non_frame_wild_read.
11891         (group_info): Add new fields escaped_n and escaped_p.
11892         (kill_on_calls): New variable.
11893         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
11894         (dse_step0): Initialize kill_on_calls.
11895         (can_escape): New function.
11896         (set_usage_bits): Add additional parameter; record information
11897         about escaped locations.
11898         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
11899         (dse_step2_nospill): Set kill_on_calls based on
11900         group->escaped_n and group->escaped_n.
11901         (add_wild_read): Refactor into...
11902         (reset_active_stores): ... New function, and
11903         (free_read_records): ... New function.
11904         (add_non_frame_wild_read): New function.
11905         (scan_insn): Call add_non_frame_wild_read on non-const calls.
11906         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
11907         (dse_step5_nospill): Call scan_reads_nospill for instructions
11908         marked as non_frame_wild_read.
11909         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
11910
11911 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
11912
11913         * common/common-target-def.h, common/common-target.def,
11914         common/common-target.h, common/config/default-common.c,
11915         common/config/pa/pa-common.c: New files.
11916         * Makefile.in (common_out_file, common_out_object_file,
11917         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
11918         (OBJS-libcommon-target): Include $(common_out_object_file).
11919         (prefix.o): Update dependencies.
11920         ($(common_out_object_file), common/common-target-hooks-def.h,
11921         s-common-target-hooks-def-h): New.
11922         (s-tm-texi): Also check timestamp on common-target.def.
11923         (build/genhooks.o): Update dependencies.
11924         * config.gcc (common_out_file, target_has_targetm_common): Define.
11925         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
11926         TARGET_ALWAYS_STRIP_DOTDOT.
11927         * configure.ac (common_out_object_file): Define.
11928         (common_out_file, common_out_object_file): Substitute.
11929         (common): Create directory.
11930         * configure: Regenerate.
11931         * doc/tm.texi.in (targetm_common): Document.
11932         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
11933         * doc/tm.texi: Regenerate.
11934         * genhooks.c (hook_array): Also include common/common-target.def.
11935         * prefix.c (tm.h): Don't include.
11936         (common/common-target.h): Include.
11937         (ALWAYS_STRIP_DOTDOT): Don't define.
11938         (update_path): Use targetm_common.always_strip_dotdot instead of
11939         ALWAYS_STRIP_DOTDOT.
11940         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
11941
11942 2011-06-14  David Li  <davidxl@google.com>
11943
11944         * passes.c (execute_function_todo): Remove TODO_dump_func.
11945         (execute_one_pass): Remove TODO_dump_func.
11946         (execute_function_dump): New function.
11947         * tree-vrp.c: Remove TODO_dump_func.
11948         * regrename.c: Remove TODO_dump_func.
11949         * fwprop.c: Remove TODO_dump_func.
11950         * tree-into-ssa.c: Remove TODO_dump_func.
11951         * tree-complex.c: Remove TODO_dump_func.
11952         * tracer.c: Remove TODO_dump_func.
11953         * tree-loop-distribution.c: Remove TODO_dump_func.
11954         * postreload-gcse.c: Remove TODO_dump_func.
11955         * postreload.c: Remove TODO_dump_func.
11956         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
11957         * tree-tailcall.c: Remove TODO_dump_func.
11958         * ipa-cp.c: Remove TODO_dump_func.
11959         * final.c: Remove TODO_dump_func.
11960         * tree-emutls.c: Remove TODO_dump_func.
11961         * omp-low.c: Remove TODO_dump_func.
11962         * tree-ssa-dse.c: Remove TODO_dump_func.
11963         * tree-ssa-uncprop.c: Remove TODO_dump_func.
11964         * auto-inc-dec.c: Remove TODO_dump_func.
11965         * reorg.c: Remove TODO_dump_func.
11966         * tree-ssa-copyrename.c: Remove TODO_dump_func.
11967         * tree-ssa-ccp.c: Remove TODO_dump_func.
11968         * compare-elim.c: Remove TODO_dump_func.
11969         * mode-switching.c: Remove TODO_dump_func.
11970         * modulo-sched.c: Remove TODO_dump_func.
11971         * tree-call-cdce.c: Remove TODO_dump_func.
11972         * cse.c: Remove TODO_dump_func.
11973         * web.c: Remove TODO_dump_func.
11974         * tree-stdarg.c: Remove TODO_dump_func.
11975         * lto-streamer-out.c: Remove TODO_dump_func.
11976         * tree-ssa-math-opts.c: Remove TODO_dump_func.
11977         * tree-ssa-dom.c: Remove TODO_dump_func.
11978         * tree-nrv.c: Remove TODO_dump_func.
11979         * loop-init.c: Remove TODO_dump_func.
11980         * gimple-low.c: Remove TODO_dump_func.
11981         * ipa-inline.c: Remove TODO_dump_func.
11982         * tree-ssa-sink.c: Remove TODO_dump_func.
11983         * jump.c: Remove TODO_dump_func.
11984         * ifcvt.c: Remove TODO_dump_func.
11985         * tree-ssa-loop.c: Remove TODO_dump_func.
11986         * recog.c: Remove TODO_dump_func.
11987         * dse.c: Remove TODO_dump_func.
11988         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
11989         * matrix-reorg.c: Remove TODO_dump_func.
11990         * tree-eh.c: Remove TODO_dump_func.
11991         * regmove.c: Remove TODO_dump_func.
11992         * function.c: Remove TODO_dump_func.
11993         * tree-vectorizer.c: Remove TODO_dump_func.
11994         * ipa-split.c: Remove TODO_dump_func.
11995         * gcse.c: Remove TODO_dump_func.
11996         * tree-if-conv.c: Remove TODO_dump_func.
11997         * init-regs.c: Remove TODO_dump_func.
11998         * tree-ssa-phiopt.c: Remove TODO_dump_func.
11999         * implicit-zee.c: Remove TODO_dump_func.
12000         * lower-subreg.c: Remove TODO_dump_func.
12001         * bt-load.c: Remove TODO_dump_func.
12002         * tree-dfa.c: Remove TODO_dump_func.
12003         * except.c: Remove TODO_dump_func.
12004         * emit-rtl.c: Remove TODO_dump_func.
12005         * store-motion.c: Remove TODO_dump_func.
12006         * cfgexpand.c: Remove TODO_dump_func.
12007         * tree-cfgcleanup.c: Remove TODO_dump_func.
12008         * cfgcleanup.c: Remove TODO_dump_func.
12009         * tree-ssa-pre.c: Remove TODO_dump_func.
12010         * tree-sra.c: Remove TODO_dump_func.
12011         * tree-mudflap.c: Remove TODO_dump_func.
12012         * tree-ssa-copy.c: Remove TODO_dump_func.
12013         * cfglayout.c: Remove TODO_dump_func.
12014         * tree-ssa-forwprop.c: Remove TODO_dump_func.
12015         * tree-ssa-dce.c: Remove TODO_dump_func.
12016         * ira.c: Remove TODO_dump_func.
12017         * tree-ssa.c: Remove TODO_dump_func.
12018         * integrate.c: Remove TODO_dump_func.
12019         * tree-optimize.c: Remove TODO_dump_func.
12020         * tree-ssa-phiprop.c: Remove TODO_dump_func.
12021         * tree-object-size.c: Remove TODO_dump_func.
12022         * combine.c: Remove TODO_dump_func.
12023         * bb-reorder.c: Remove TODO_dump_func.
12024         * cprop.c: Remove TODO_dump_func.
12025         * var-tracking.c: Remove TODO_dump_func.
12026         * tree-profile.c: Remove TODO_dump_func.
12027         * tree-vect-generic.c: Remove TODO_dump_func.
12028         * reg-stack.c: Remove TODO_dump_func.
12029         * sched-rgn.c: Remove TODO_dump_func.
12030         * tree-ssa-structalias.c: Remove TODO_dump_func.
12031         * tree-switch-conversion.c: Remove TODO_dump_func.
12032         * tree-cfg.c: Remove TODO_dump_func.
12033         * tree-ssa-reassoc.c: Remove TODO_dump_func.
12034         * combine-stack-adj.c: Remove TODO_dump_func.
12035         * dce.c: Remove TODO_dump_func.
12036         * tree-ssanames.c: Remove TODO_dump_func.
12037         * regcprop.c: Remove TODO_dump_func.
12038
12039 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
12040
12041         PR middle-end/47364
12042         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
12043         and properly handle result not in Pmode.
12044
12045 2011-06-14  Robert Millan  <rmh@gnu.org>
12046
12047         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
12048         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
12049         `config/linux.h'.
12050
12051         * config/i386/kfreebsd-gnu64.h: New file.
12052         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
12053         with `i386/kfreebsd-gnu64.h'.
12054
12055         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
12056         (GNU_USER_LINK_EMULATION64): New macros.
12057         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
12058         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
12059         of hardcoding `elf_i386' and `elf_x86_64'.
12060
12061 2011-06-14  Nick Clifton  <nickc@redhat.com>
12062
12063         PR target/49403
12064         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
12065
12066         PR target/49402
12067         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
12068
12069 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
12070
12071         PR fortran/49103
12072         * tree.h (DECL_NONSHAREABLE): Define.
12073         (struct tree_decl_common): Change decl_common_unused to
12074         decl_nonshareable_flag.
12075         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
12076         Ignore vars with DECL_NONSHAREABLE bit set.
12077         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
12078         on stores to automatic aggregate vars.
12079
12080         PR rtl-optimization/49390
12081         Revert:
12082         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
12083
12084         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
12085         MEM_ALIAS_SET.
12086
12087 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
12088             Tom de Vries  <tom@codesourcery.com>
12089
12090         PR target/45098
12091         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
12092         Document changed semantics.
12093         (max_stmt_executions, max_stmt_executions_int): Declare.
12094         * tree-data-ref.c (estimated_loop_iterations)
12095         (estimated_loop_iterations_int): Move functions...
12096         * tree-ssa-loop-niter.c (estimated_loop_iterations)
12097         (estimated_loop_iterations_int): here.
12098         (record_estimate): Change nb_iterations_upper_bound and
12099         nb_iterations_estimate semantics.
12100         (max_stmt_executions, max_stmt_executions_int): New function.
12101         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
12102         (max_stmt_executions_tree): this.
12103         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
12104         estimated_loop_iterations_tree.
12105         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
12106         max_stmt_executions_int instead of estimated_loop_iterations_int.
12107         * predict.c (predict_loops): Idem.
12108         * tree-parloops.c (parallelize_loops): Idem.
12109         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
12110         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
12111         (init_omega_for_ddr_1): Idem.
12112         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
12113         (loop_prefetch_arrays): Idem
12114         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
12115         max_stmt_executions instead of estimated_loop_iterations.
12116         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
12117         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
12118         instead of nb_iterations_upper_bound.
12119
12120 2011-06-13  Jan Hubicka  <jh@suse.cz>
12121
12122         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
12123
12124 2011-06-14  Richard Henderson  <rth@redhat.com>
12125
12126         PR debug/48459
12127         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
12128         (based_loc_descr): Assert it's true.
12129         (compute_frame_pointer_to_fb_displacement): Set it, rather than
12130         aborting immediately.
12131
12132 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
12133             Mingfeng Wu  <mingfeng@faraday-tech.com>
12134
12135         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
12136
12137 2011-06-13  Jan Hubicka  <jh@suse.cz>
12138
12139         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
12140
12141 2011-06-13  Jan Hubicka  <jh@suse.cz>
12142
12143         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
12144         similarly to DECL_COMDAT.
12145         * cgraphunit.c (cgraph_analyze_function): Likewise.
12146         * ipa.c (function_and_variable_visibility): Likewise.
12147
12148 2011-06-13  Jan Hubicka  <jh@suse.cz>
12149
12150         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
12151         BINFO_VIRTUALS when streaming for ltrans unit.
12152
12153 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
12154
12155         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
12156         (movdi_internal64): Same.
12157
12158 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
12159
12160         PR target/44618
12161         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
12162         a set of similar patterns, where the MATCH_OPERAND for the function
12163         argument is replaced with individual references to hardware registers.
12164         (save_fpregs_<mode>): Ditto
12165         (restore_gpregs_<mode>): Ditto
12166         (return_and_restore_gpregs_<mode>): Ditto
12167         (return_and_restore_fpregs_<mode>): Ditto
12168         (return_and_restore_fpregs_aix_<mode>): Ditto
12169
12170 2011-06-13  Jan Hubicka  <jh@suse.cz>
12171
12172         * ipa-utils.c (postorder_stack): New structure.
12173         (ipa_reverse_postorder): Handle aliases.
12174
12175 2011-06-13  Jan Hubicka  <jh@suse.cz>
12176
12177         * ipa-inline.c (reset_edge_caches): Walk aliases.
12178         (update_caller_keys): Do not test inlinability of aliases.
12179         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
12180         (do_estimate_growth): Fix typo.
12181
12182 2011-06-13  Jan Hubicka  <jh@suse.cz>
12183
12184         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
12185         (can_remove_node_now_p): ... here; handle same comdat groups.
12186         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
12187         (inline_call): Update use of can_remove_node_now_p.
12188
12189 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
12190
12191         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
12192         condition to disallow non-identical memory locations.
12193         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
12194         preference to bit manipulation instructions.
12195
12196 2011-06-13  Jan Hubicka  <jh@suse.cz>
12197
12198         * cgraph.c (cgraph_for_node_thunks_and_aliases,
12199         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
12200         (nonremovable_p): New function.
12201         (cgraph_can_remove_if_no_direct_calls_p): New function.
12202         (used_from_object_file_p): New functoin.
12203         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
12204         references from aliases.
12205         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
12206         * ipa-inline.c (check_caller_edge): New function.
12207         (want_inline_function_called_once_p): Use it; accept aliases called
12208         once, too.
12209         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
12210
12211 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12212
12213         PR target/48454
12214         * config/arm/neon.md (vec_pack_trunc): Set the lengths
12215         correctly for the case with Quad vectors.
12216
12217 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
12218            Ira Rosen  <ira.rosen@linaro.org>
12219
12220         PR tree-optimization/49352
12221         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
12222         all, make sure loop_use_stmt after the loop is a def stmt of a used
12223         SSA_NAME that is the only one defined inside of the loop.  Don't
12224         check for COND_EXPR and GIMPLE_BINARY_RHS.
12225         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
12226         check_reduction is true.
12227
12228 2011-06-11  Jan Hubicka  <jh@suse.cz>
12229
12230         PR middle-end/49373
12231         * ipa.c (cgraph_externally_visible_p): Check resolution info.
12232
12233 2011-06-11  Jan Hubicka  <jh@suse.cz>
12234
12235         PR middle-end/48836
12236         * ipa-inline-transform.c: Include tree-pass.h
12237         (inline_transform): Set TODO_update_ssa_only_virtuals.
12238         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
12239
12240 2011-06-11  Jan Hubicka  <jh@suse.cz>
12241
12242         PR middle-end/49378
12243         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
12244         aliases and thunks.
12245
12246 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
12247
12248         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
12249         Take number of iterations to peel into account for equally frequent
12250         misalignment values.
12251
12252 2011-06-11  Jan Hubicka  <jh@suse.cz>
12253
12254         * lto-streamer-out.c (produce_symtab): Stream out the newly
12255         represented aliases.
12256
12257 2011-06-11  Jan Hubicka  <jh@suse.cz>
12258
12259         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
12260         varying args.
12261         (ipa_update_after_lto_read): Likewise.
12262         (ipa_write_node_info): Do not sream call_with_var_arguments.
12263         (ipa_read_node_info): Likewise.
12264
12265 2011-06-11  Jan Hubicka  <jh@suse.cz>
12266
12267         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
12268
12269 2011-06-11  Jan Hubicka  <jh@suse.cz>
12270
12271         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
12272         (lto_symtab_resolve_can_prevail_p): Likewise.
12273         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
12274         * cgraph.c (same_body_aliases_done): New global var.
12275         (cgraph_same_body_alias_1): Rename to ...
12276         (cgraph_create_function_alias): ... this one; reorg to new
12277         representation.
12278         (cgraph_same_body_alias): Use cgraph_create_function_alias;
12279         record references when asked to.
12280         (cgraph_add_thunk): Fix formating.
12281         (cgraph_get_node): Kill same body alias code.
12282         (cgraph_node_for_asm): Likewise.
12283         (cgraph_remove_same_body_alias): Remove.
12284         (cgraph_remove_node): Kill same body alias code.
12285         (cgraph_mark_address_taken_node): Mark also the aliased function
12286         as having address taken.
12287         (dump_cgraph_node): Dump same body aliases.
12288         (cgraph_for_node_thunks_and_aliases): Update for new alias
12289         representation.
12290         (cgraph_for_node_and_aliases): Likewise.
12291         * cgraph.h (same_body): Kll pointer.
12292         (same_body_alias): Update comment.
12293         (same_body_aliases_done): Declare.
12294         (cgraph_remove_same_body_alias): Remove declaration.
12295         (cgraph_create_function_alias): Declare.
12296         (cgraph_process_same_body_aliases): Declare.
12297         (cgraph_function_with_gimple_body_p): Check for alias.
12298         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
12299         (cgraph_alias_aliased_node): New function.
12300         (cgraph_function_node): Update for new aliases.
12301         (cgraph_function_or_thunk_node): Likewise.
12302         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
12303         (inline_call): Remove dead aliases.
12304         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
12305         name hack for same body aliases.
12306         (clone_of_p): Look through aliases.
12307         (verify_cgraph_node): Verify aliases.
12308         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
12309         (cgraph_process_same_body_aliases): New function.
12310         (process_function_and_variable_attributes): Disable weakref warning on
12311         alias.
12312         (cgraph_analyze_functions): Handle aliases.
12313         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
12314         (assemble_thunks): Rename to ...
12315         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
12316         (cgraph_expand_function): Remove alias output code.
12317         (cgraph_output_in_order): Skip aliases.
12318         (cgraph_preserve_function_body_p): Aliases don't need preserving.
12319         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
12320         (ipa_record_reference): Do not assert on alias references.
12321         (ipa_ref_has_aliases_p): New function.
12322         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
12323         (ipa_ref_has_aliases_p): Declare.
12324         * lto-cgraph.c (lto_output_node): Handle aliases.
12325         (input_node): Likewise.
12326         * lto-streamer-out.c (lto_output): Skip aliases.
12327         (produce_symtab): Kill same_body_alias code.
12328         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
12329         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
12330         * ipa-inline.c (update_caller_keys): Walk aliases.
12331         (inline_small_functions): Fix thinko in previous patch.
12332         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
12333         (function_and_variable_visibility): Do not walk same body aliases.
12334         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
12335         (ipa_pta_execute): Use it.
12336
12337 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
12338
12339         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
12340         (*vec_dupv2df): Rename from vec_dupv2df.
12341         (vec_dupv2df): New expander.
12342
12343 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
12344
12345         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
12346
12347 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
12348
12349         * config/i386/i386.md: Use default value in "isa" attribute.
12350         * config/i386/sse.md: Ditto.
12351         * config/i386/mmx.md: Ditto.
12352
12353 2011-06-10  Wei Guozhi  <carrot@google.com>
12354
12355         PR target/45335
12356         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
12357         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
12358         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
12359         related peephole2.
12360         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
12361         related peephole2.
12362         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
12363         (arm_legitimate_ldrd_p): New prototype.
12364         (arm_output_ldrd): New prototype.
12365         * config/arm/arm.c (arm_check_ldrd_operands): New function.
12366         (arm_legitimate_ldrd_p): New function.
12367         (arm_output_ldrd): New function.
12368
12369 2011-06-10  David Li  <davidxl@google.com>
12370
12371         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
12372         * passes.c (passr_eq): New function.
12373         (create_pass_tab): New function.
12374         (pass_traverse): New function.
12375         (dump_one_pass): New function.
12376         (dump_pass_list): New function.
12377         (dump_passes): New function.
12378
12379 2011-06-10  Jan Hubicka  <jh@suse.cz>
12380
12381         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
12382         setting the nothrow flag.
12383         * ipa-reference.c (propagate): Skip aliases.
12384         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
12385         (propagate_nothrow): Skip aliases; do not update cgraph.
12386         (local_pure_const): Do not update cgraph.
12387         * tree-profile.c (tree_profiling): Do fixup_cfg.
12388
12389 2011-06-10  Jan Hubicka  <jh@suse.cz>
12390
12391         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
12392         (cgraph_local_node_p): ... here; handle aliases.
12393         (has_addr_references_p): Break out from ...;
12394         (cgraph_remove_unreachable_nodes) ... here.
12395
12396 2011-06-10  Jan Hubicka  <jh@suse.cz>
12397
12398         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
12399         * common.opt (flag_inline_functions_called_once): Do not
12400         initialize to 1.
12401
12402 2011-06-10  Jan Hubicka  <jh@suse.cz>
12403
12404         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
12405         (ipcp_initialize_node_lattices): Do not deal with aliases;
12406         Do not try to propagate through thunks.
12407         (ipcp_change_tops_to_bottom): Do not deal with aliases.
12408
12409 2011-06-10  Jan Hubicka  <jh@suse.cz>
12410
12411         * ipa-prop.c (ipa_write_node_info): Stream jump functions
12412         for indirect calls.
12413         (ipa_read_node_info): Likewise.
12414
12415 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12416
12417         PR lto/49302
12418         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
12419         (build_and_insert_call): Likewise.
12420         (build_and_insert_ref): New.
12421         (gimple_expand_builtin_pow): Minor cleanup.
12422         (gimple_expand_builtin_cabs): New.
12423         (execute_cse_sincos): Add case for BUILT_IN_CABS.
12424
12425 2011-06-10  Jan Hubicka  <jh@suse.cz>
12426
12427         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
12428         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
12429         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
12430         (ipcp_propagate_stage): Skip aliases when propagating.
12431         (ipcp_need_redirect_p): Skip aliases.
12432         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
12433         collect_callers_of_node.
12434         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
12435         for aliases.
12436         (ipa_compute_jump_functions): Look through aliases.
12437
12438 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12439
12440         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
12441
12442 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
12443
12444         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
12445         Adjust comments.
12446         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
12447
12448 2011-06-10  Jan Hubicka  <jh@suse.cz>
12449
12450         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
12451         Update call of gimple_get_virt_method_for_binfo.
12452         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
12453         refuse_thunks parameter.
12454         (gimple_fold_call): Update.
12455         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
12456
12457 2011-06-10  Jan Hubicka  <jh@suse.cz>
12458
12459         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
12460         (not_all_callers_have_enough_arguments_p): ... this one; turn into
12461         worker for cgraph_for_node_and_aliases.
12462         (convert_callers_for_node): Break out from ...
12463         (convert_callers): ... here.
12464         (modify_function): Use collect_callers_of_node.
12465         (ipa_early_sra): Use cgraph_for_node_and_aliases.
12466
12467 2011-06-10  Richard Guenther  <rguenther@suse.de>
12468
12469         PR tree-optimization/49361
12470         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
12471         when not already in gimple form.
12472
12473 2011-06-10  Richard Guenther  <rguenther@suse.de>
12474
12475         PR bootstrap/49344
12476         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
12477         FOR_EACH_PHI_OR_STMT_USE.
12478
12479 2011-06-10  Jan Hubicka  <jh@suse.cz>
12480
12481         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
12482         (clone_inlined_nodes): ... here.
12483         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
12484         to real destination prior inlining.
12485         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
12486         can_early_inline_edge_p, want_early_inline_function_p,
12487         want_early_inline_function_p, want_inline_small_function_p,
12488         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
12489         edge_badness, update_all_callee_keys, lookup_recursive_calls,
12490         add_new_edges_to_heap, inline_small_functions, flatten_function,
12491         inline_always_inline_functions, early_inline_small_functions): Use
12492         cgraph_function_or_thunk_node.
12493         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
12494         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
12495         (do_estimate_edge_growth_1): Break out from ...
12496         (do_estimate_growth) ... here; walk aliases.
12497         (inline_generate_summary): Skip aliases.
12498
12499 2011-06-10  Richard Guenther  <rguenther@suse.de>
12500
12501         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
12502         forward when combining, visit inserted stmts when a stmt was changed.
12503
12504 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
12505
12506         * tree.h (error_operand_p): Add.
12507         * dbxout.c (dbxout_type_fields): Use the latter.
12508         * c-decl.c (add_stmt): Likewise.
12509         * gimplify.c (omp_add_variable, omp_notice_variable,
12510         gimplify_scan_omp_clauses): Likewise.
12511
12512 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
12513
12514         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
12515         when a value is actually passed in regs.
12516
12517 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
12518             Laurent Rougé  <laurent.rouge@menta.fr>
12519
12520         * doc/invoke.texi (SPARC options): Add -mflat.
12521         * config/sparc/sparc.opt: Likewise.
12522         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
12523         (sparc_flat_expand_prologue): Declare.
12524         (sparc_flat_expand_epilogue): Likewise.
12525         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
12526         (CPP_ENDIAN_SPEC): Replace with...
12527         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
12528         (CPP_SPEC): Adjust to above change.
12529         (EXTRA_SPECS): Likewise.
12530         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
12531         (INCOMING_REGNO): Likewise.
12532         (OUTGOING_REGNO): Likewise.
12533         (LOCAL_REGNO): Likewise.
12534         (SETUP_FRAME_ADDRESSES): Likewise.
12535         (FIXED_REGISTERS): Set 0 for %fp.
12536         (CALL_USED_REGISTERS): Likewise.
12537         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
12538         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
12539         (RETURN_ADDR_REGNUM): Define.
12540         (RETURN_ADDR_RTX): Use it.
12541         (INCOMING_RETURN_ADDR_REGNUM): Define.
12542         (INCOMING_RETURN_ADDR_RTX): Use it.
12543         (DWARF_FRAME_RETURN_COLUMN): Likewise.
12544         (EH_RETURN_REGNUM): Define.
12545         (EH_RETURN_STACKADJ_RTX): Use it.
12546         (EH_RETURN_HANDLER_RTX): Delete.
12547         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
12548         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
12549         Delete.
12550         (struct machine_function): Add frame_size, apparent_frame_size,
12551         frame_base_reg, frame_base_offset, n_global_fp_regs and
12552         save_local_in_regs_p fields.
12553         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
12554         sparc_frame_base_offset, sparc_n_global_fp_regs,
12555         sparc_save_local_in_regs_p): New macros.
12556         (sparc_option_override): Error out if -fcall-saved-REG is specified
12557         for Out registers.
12558         (eligible_for_restore_insn): Fix formatting.
12559         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
12560         (eligible_for_sibcall_delay): Likewise.
12561         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
12562         (sparc_legitimate_address_p): Adjust to above change.
12563         (save_global_or_fp_reg_p): New predicate.
12564         (return_addr_reg_needed_p): Likewise.
12565         (save_local_or_in_reg_p): Likewise.
12566         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
12567         (SORR_SAVE, SORR_RESTORE): Delete.
12568         (sorr_pred_t): New typedef.
12569         (sorr_act_t): New enum.
12570         (save_or_restore_regs): Rename to...
12571         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
12572         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
12573         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
12574         mechanism.  Add CFI information for double-word saves in 32-bit mode.
12575         (emit_adjust_base_to_offset): New function extracted from...
12576         (emit_save_or_restore_regs): ...this.  Rename the rest to...
12577         (emit_save_or_restore_regs_global_fp_regs): ...this.
12578         (emit_save_or_restore_regs_local_in_regs): New function.
12579         (gen_create_flat_frame_[123]): New functions.
12580         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
12581         (sparc_flat_expand_prologue): New function.
12582         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
12583         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
12584         (sparc_flat_expand_epilogue): New function.
12585         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
12586         (output_return): Likewise.
12587         (output_sibcall): Likewise.
12588         (sparc_output_mi_thunk): Likewise.
12589         (sparc_frame_pointer_required): Likewise.
12590         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
12591         function optimization.
12592         * config/sparc/sparc.md (flat): New attribute.
12593         (prologue): Add TARGET_FLAT handling.
12594         (save_register_window): Disable if TARGET_FLAT.
12595         (create_flat_frame_[123]): New patterns.
12596         (epilogue): Add TARGET_FLAT handling.
12597         (sibcall_epilogue): Likewise.
12598         (eh_return): New expander.
12599         (eh_return_internal): New insn and splitter.
12600         (return_internal): Add TARGET_FLAT handling.
12601         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
12602         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
12603         (nonlocal_goto): Add TARGET_FLAT handling.
12604         * config/sparc/t-elf: Add -mflat multilib.
12605         * config/sparc/t-leon: Likewise.
12606
12607 2011-06-10  Jan Hubicka  <jh@suse.cz>
12608
12609         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
12610         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
12611         (self_recursive_p): Use cgraph_function_node.
12612         (propagate_pure_const): Likewise.
12613         (propagate_nothrow): Likewise.
12614         * ipa-reference.c (ipa_reference_get_not_read_global): Use
12615         cgraph_function_node.
12616         (propagate_bits): Likewise.
12617         (propagate): Likewise.
12618
12619 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12620             Richard Earnshaw  <rearnsha@arm.com>
12621
12622         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
12623         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
12624         (*thumb2_movdi_vfp): Delete.
12625         (*arm_movdi_vfp_cortexa8): Delete.
12626         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
12627         (*movdi_vfp_cortexa8): Likewise.
12628
12629 2011-06-10  Richard Guenther  <rguenther@suse.de>
12630
12631         * stor-layout.c (initialize_sizetypes): Give names to all
12632         sizetype kinds.
12633
12634 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
12635
12636         PR tree-optimization/49318
12637         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
12638         irrelevant pattern statements.
12639
12640 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
12641
12642         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
12643
12644         PR bootstrap/49354
12645         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
12646         to last assignment.
12647
12648 2011-06-09  Jan Hubicka  <jh@suse.cz>
12649
12650         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
12651         do not recompute reachable flag.
12652         (cgraph_finalize_function, cgraph_analyze_functions): Set
12653         redefined_extern_inline here.
12654
12655 2011-06-09  Jan Hubicka  <jh@suse.cz>
12656
12657         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
12658         (cgraph_only_called_directly_p): ... this one; bring offline.
12659         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
12660         varpool_used_from_object_file_p): Drop names from the declaratoin.
12661         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
12662         collect_callers_of_node): New.
12663         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
12664         (cgraph_edge_recursive_p): Use cgraph_function_node.
12665         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
12666         (cgraph_node_cannot_be_local_p_1): Break out from ...
12667         (cgraph_node_can_be_local_p): ... here; walk aliases.
12668         (cgraph_for_node_thunks_and_aliases): New function.
12669         (cgraph_for_node_and_aliases): New function.
12670         (cgraph_make_node_local_1): Break out from ...
12671         (cgraph_make_node_local) ... here; use
12672         cgraph_for_node_thunks_and_aliases.
12673         (cgraph_set_nothrow_flag_1): Break out from ...
12674         (cgraph_set_nothrow_flag) ... here;
12675         use cgraph_for_node_thunks_and_aliases.
12676         (cgraph_set_const_flag_1): Break out from ...
12677         (cgraph_set_const_flag) ... here;
12678         use cgraph_for_node_thunks_and_aliases.
12679         (cgraph_set_pure_flag_1): Break out from ...
12680         (cgraph_set_pure_flag) ... here;
12681         use cgraph_for_node_thunks_and_aliases.
12682         (cgraph_propagate_frequency_1): Break out from ...
12683         (cgraph_propagate_frequency) ... here; use
12684         cgraph_for_node_thunks_and_aliases.
12685         (cgraph_used_from_object_file_p): Do not care about aliases.
12686         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
12687         New functions.
12688         (collect_callers_of_node_1, collect_callers_of_node): New functions.
12689
12690 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
12691
12692         PR rtl-optimization/49154
12693         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
12694         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
12695         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
12696         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
12697         * config/cris/cris.h (cris_register_move_cost): Remove
12698         !TARGET_V32 code.  Tweak comments.
12699
12700 2011-06-09  Jan Hubicka  <jh@suse.cz>
12701
12702         * cgraphbuild.c (record_eh_tables): Mark personality function as having
12703         address taken.
12704
12705 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
12706
12707         PR rtl-optimization/49154
12708         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
12709         is a matching slot in the hashtable, assign it to classes_ptr.
12710
12711         PR rtl-optimization/49154
12712         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
12713         register classes.
12714         * doc/tm.texi: Regenerate.
12715
12716 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
12717
12718         PR target/49307
12719         * config/sh/sh.md (UNSPEC_CHKADD): New.
12720         (chk_guard_add): New define_insn_and_split.
12721         (symGOT_load): Use chk_guard_add instead of blockage.
12722
12723 2011-06-09  Kai Tietz  <ktietz@redhat.com>
12724
12725         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
12726
12727 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
12728
12729         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
12730
12731 2011-06-09  Wei Guozhi  <carrot@google.com>
12732
12733         PR target/46975
12734         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
12735         (peephole2 for conditional move): Generate 16 bit instructions.
12736
12737 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
12738
12739         * config/i386/i386.md (*movdi_internal_rex64): Merge
12740         alternatives 6 and 8.
12741
12742 2011-06-09  David Li  <davidxl@google.com>
12743
12744         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
12745         * passes.c (passr_eq): New function.
12746         (create_pass_tab): New function.
12747         (pass_traverse): New function.
12748         (dump_one_pass): New function.
12749         (dump_pass_list): New function.
12750         (dump_passes): New function.
12751
12752 2011-06-09  David Li  <davidxl@google.com>
12753
12754         * tree-complex.c (tree_lower_complex): Gate cleanup.
12755         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
12756         (execute_optimize_stdarg): Ditto.
12757         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
12758         (execute_cleanup_eh_1): Ditto.
12759         (execute_cleanup_eh): Ditto.
12760         * gcse.c (gate_rtl_pre): Ditto.
12761         (execute_rtl_pre): Ditto.
12762         * except.c (finish_eh_generation): Ditto.
12763         (convert_to_eh_region_ranges): Ditto.
12764         * cprop.c (one_cprop_pass): Ditto.
12765
12766 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
12767
12768         PR target/48673
12769         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
12770         in all basic blocks.
12771
12772 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12773
12774         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
12775         (HAVE_ENABLE_EXECUTE_STACK): Define.
12776         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
12777         (HAVE_ENABLE_EXECUTE_STACK): Define.
12778         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
12779         (HAVE_ENABLE_EXECUTE_STACK): Define.
12780         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
12781         (ENABLE_EXECUTE_STACK): Remove.
12782         (HAVE_ENABLE_EXECUTE_STACK): Define.
12783         [IN_LIBGCC2]: Don't include <windows.h>.
12784         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
12785         (HAVE_ENABLE_EXECUTE_STACK): Define.
12786         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
12787         (HAVE_ENABLE_EXECUTE_STACK): Define.
12788         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
12789         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
12790         (HAVE_ENABLE_EXECUTE_STACK): Define.
12791         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
12792         (HAVE_ENABLE_EXECUTE_STACK): Define.
12793         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
12794         (HAVE_ENABLE_EXECUTE_STACK): Define.
12795         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
12796         (HAVE_ENABLE_EXECUTE_STACK): Define.
12797         * config/alpha/alpha.c (alpha_trampoline_init): Test
12798         HAVE_ENABLE_EXECUTE_STACK.
12799         * config/i386/i386.c (ix86_trampoline_init): Likewise.
12800         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
12801         (sparc64_initialize_trampoline): Likewise.
12802         * libgcc2.c [L_enable_execute_stack]: Remove.
12803         * system.h (ENABLE_EXECUTE_STACK): Poison.
12804         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
12805         * doc/tm.texi: Regenerate.
12806         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
12807
12808 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
12809
12810         PR middle-end/49308
12811         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
12812         variable.  After resetting and rescanning insn continue with previous
12813         statement.
12814
12815 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12816
12817         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
12818         (gcc_cv_ld_hidden): Likewise.
12819         * configure: Regenerate.
12820         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
12821         (ix86_stack_protect_fail): Mark unused.
12822         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
12823         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
12824         [TARGET_MACHO]: Don't define.
12825         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
12826         (TARGET_STACK_PROTECT_FAIL): Likewise.
12827         (rs6000_stack_protect_fail): Mark unused.
12828         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
12829         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
12830
12831 2011-06-08  Andi Kleen  <ak@linux.intel.com>
12832
12833         * varasm.c (get_section): Print location of other conflict
12834         for section conflicts.
12835
12836 2011-06-08  Andi Kleen  <ak@linux.intel.com>
12837
12838         * config/i386/driver-i386.c (host_detect_local_cpu):
12839         Add model 0x2d Intel CPU.
12840
12841 2011-06-08  Andi Kleen  <ak@linux.intel.com>
12842
12843         * reginfo.c (global_regs_decl): Add.
12844         (globalize_reg): Add decl parameter. Compute location.  Pass location
12845         to warnings and add inform. Store decl in global_regs_decl.
12846         * rtl.h (globalize_reg): Update prototype.
12847         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
12848
12849 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
12850
12851         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
12852
12853 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
12854
12855         PR target/49305
12856         * config/sh/predicates.md (general_movsrc_operand): Check
12857         mode for memory with indexed address for QI and HImode.
12858         (general_movdst_operand): Likewise.
12859
12860 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
12861
12862         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
12863
12864 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
12865
12866         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
12867         (num_ssa_operands): Likewise.
12868         (op_iter_init_phiuse): Forward-declare.
12869         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
12870
12871 2011-06-08  Nick Clifton  <nickc@redhat.com>
12872
12873         * doc/invoke.texi (ARM Options): Update description of
12874         -mthumb-interwork.
12875
12876 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
12877
12878         * config/i386/driver-i386.c (host_detect_local_cpu): Support
12879         unknown Intel family 0x6 CPUs.
12880
12881 2011-06-08  Martin Jambor  <mjambor@suse.cz>
12882
12883         * tree-sra.c (mark_rw_status): Removed.
12884         (analyze_access_subtree): New parameter parent instead of
12885         mark_read and mark_write, propagate from that.
12886
12887 2011-06-08  Julian Brown  <julian@codesourcery.com>
12888
12889         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
12890         for double-precision helper functions in hard-float mode if only
12891         single-precision arithmetic is supported in hardware.
12892
12893 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
12894
12895         PR rtl-optimization/49303
12896         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
12897         code_motion_path_driver returned 0 or 1.
12898         (sel_region_finish): Clear h_d_i_d.
12899
12900 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
12901
12902         * config/sh/sh.c (prepare_move_operands): Set pic register
12903         appropriately for global and local dynamic tls models even
12904         if flag_pic is unset.
12905
12906 2011-06-07  Jason Merrill  <jason@redhat.com>
12907
12908         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
12909
12910 2011-06-07  Xinliang David Li  <davidxl@google.com>
12911         * passes.c (enable_disable_pass): Handle assembler name.
12912         (is_pass_explicitly_enabled_or_disabled): Ditto.
12913
12914 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12915
12916         PR tree-optimization/48497
12917         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
12918
12919 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12920
12921         PR tree-optimization/46728
12922         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
12923         to use gimple_val_nonnegative_real_p.
12924         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
12925         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
12926
12927 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
12928
12929         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
12930
12931 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
12932
12933         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
12934         constant vectors.
12935
12936 2011-06-07  Richard Guenther  <rguenther@suse.de>
12937
12938         * stor-layout.c (initialize_sizetypes): Initialize all
12939         sizetypes based on target definitions.
12940         (set_sizetype): Remove.
12941         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
12942         * tree.h (set_sizetype): Remove.
12943
12944 2011-06-07  Nick Clifton  <nickc@redhat.com>
12945
12946         * config.gcc: Unify V850 architecture options and add support for
12947         newer V850 architectures.
12948         * config/v850/t-v850e: Delete.
12949
12950 2011-06-07  Richard Guenther  <rguenther@suse.de>
12951
12952         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
12953         Call set_sizetype from here.
12954
12955 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
12956
12957         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
12958         (*maddhisi4tb, *maddhisi4tt): New define_insns.
12959
12960 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
12961             Andrew Stubbs  <ams@codesourcery.com>
12962
12963         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
12964         multiplies.
12965         * doc/md.texi (Canonicalization of Instructions): Document widening
12966         multiply canonicalization.
12967
12968 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
12969
12970         PR gcov-profile/49299
12971         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
12972
12973 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
12974
12975         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
12976         a pointer.
12977         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
12978         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
12979         vect_recog_pow_pattern): Likewise.
12980         (vect_pattern_recog_1): Remove declaration.
12981         (widened_name_p): Remove declaration.  Add new argument to specify
12982         whether to check that both types are either signed or unsigned.
12983         (vect_recog_widen_mult_pattern): Update documentation.  Handle
12984         unsigned patterns and multiplication by constants.
12985         (vect_pattern_recog_1): Update vect_recog_func references.  Use
12986         statement information from the statement returned from pattern
12987         detection functions.
12988         (vect_pattern_recog): Update vect_recog_func reference.
12989         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
12990         multiplication by a constant use the type of the other operand.
12991
12992 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
12993
12994         PR rtl-optimization/49145
12995         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
12996
12997 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
12998
12999         PR debug/49262
13000         * dwarf2out.c (native_encode_initializer): Decrement count in each
13001         iteration.
13002
13003         PR debug/49294
13004         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
13005         non-MODE_INT modes.
13006
13007         PR c++/49264
13008         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
13009         if stmt folded into nothing.
13010         * tree-inline.c (fold_marked_statements): If a builtin at the end of
13011         a bb folded into nothing, just update cgraph edges and move to next bb.
13012         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
13013         to be NULL.  Don't compute count and frequency if new_call is NULL.
13014
13015 2011-06-04  Diego Novillo  <dnovillo@google.com>
13016
13017         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
13018         (cgraph.o): Likewise.
13019         (cgraphunit.o): Likewise.
13020         * cgraphunit.c: Include lto-streamer.h
13021         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
13022         if LTO is enabled.
13023         * lto-streamer-in.c (unpack_value_fields): Call
13024         streamer_hooks.unpack_value_fields if set.
13025         (lto_materialize_tree): For unhandled nodes, first try to
13026         call lto_streamer_hooks.alloc_tree, if it exists.
13027         (lto_input_ts_decl_common_tree_pointers): Move reading of
13028         DECL_INITIAL to lto_streamer_read_tree.
13029         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
13030         (lto_streamer_read_tree): New.
13031         (lto_reader_init): Rename from lto_init_reader.
13032         Move initialization code to lto/lto.c.
13033         * lto-streamer-out.c (pack_value_fields): Call
13034         streamer_hooks.pack_value_fields if set.
13035         (lto_output_tree_ref): For tree nodes that are not normally indexable,
13036         call streamer_hooks.indexable_with_decls_p before giving up.
13037         (lto_output_ts_decl_common_tree_pointers): Move handling
13038         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
13039         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
13040         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
13041         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
13042         (lto_streamer_write_tree): New.
13043         (lto_output): Call lto_streamer_init directly.
13044         (lto_writer_init): Remove.
13045         * lto-streamer.c (streamer_hooks): New.
13046         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
13047         instead of lto_preload_common_nodes.
13048         (lto_is_streamable): Move from lto-streamer.h
13049         (lto_streamer_hooks_init): New.
13050         (streamer_hooks): New.
13051         (streamer_hooks_init): New.
13052         * lto-streamer.h (struct output_block): Forward declare.
13053         (struct lto_input_block): Likewise.
13054         (struct data_in): Likewise.
13055         (struct bitpack_d): Likewise.
13056         (struct streamer_hooks): Declare.
13057         (streamer_hooks): Declare.
13058         (lto_streamer_hooks_init): Declare.
13059         (lto_streamer_write_tree): Declare.
13060         (lto_streamer_read_tree): Declare.
13061         (streamer_hooks_init): Declare.
13062         (lto_is_streamable): Move to lto-streamer.c
13063
13064 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13065
13066         * longlong.h (smul_ppmm): The resulting register pair contains the
13067         higher order word first.
13068
13069 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13070
13071         PR tree-optimization/46728
13072         * builtins.c (powi_table): Remove.
13073         (powi_lookup_cost): Remove.
13074         (powi_cost): Remove.
13075         (expand_powi_1): Remove.
13076         (expand_powi): Remove.
13077         (expand_builtin_pow_root): Remove.
13078         (expand_builtin_pow): Remove.
13079         (expand_builtin_powi): Eliminate handling of constant exponent.
13080         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
13081
13082 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
13083
13084         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
13085
13086 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
13087
13088         * dce.c (reset_unmarked_insns_debug_uses): New.
13089         (delete_unmarked_insns): Skip debug insns.
13090         (prescan_insns_for_dce): Likewise.
13091         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
13092         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
13093         active reg can be found.
13094         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
13095         (convert_regs_1): Use it.
13096
13097 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
13098
13099         * tree-pretty-print.c (dump_function_header): Add flags.
13100         Don't dump decl_uid with nouid.
13101         * tree-pretty-print.h (dump_function_header): Adjust.
13102         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
13103         * passes.c (pass_init_dump_file): Pass dump_flags on.
13104         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
13105
13106 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
13107
13108         PR bootstrap/49270
13109         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
13110
13111 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
13112
13113         PR tree-optimization/49243
13114         * calls.c (setjmp_call_p): Also check if fndecl has the
13115         returns_twice attribute.
13116
13117 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13118
13119         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
13120         -ffast-math etc.
13121
13122 2011-06-06  Richard Henderson  <rth@redhat.com>
13123             Georg-Johann Lay  <avr@gjlay.de>
13124
13125         PR target/42210
13126         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
13127         New predicates.
13128         * config/avr/avr.md ("insv"): New insn expander.
13129         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
13130         "*insv.not.io", "*insv.reg"): New insns.
13131
13132 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
13133
13134         PR target/49285
13135         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
13136         to nonimmediate_operand from memory_operand for the operand that is to
13137         be forced to memory by the expander.  Lose the constraints.
13138
13139 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
13140
13141         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
13142         EH return when delayed branches are disabled.
13143
13144 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
13145
13146         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
13147         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
13148         calculation.
13149         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
13150         Simplify MODE_V1DF and MODE_V2SF handling.
13151         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
13152         Simplify MODE_SF handling.
13153
13154 2011-06-04  Jan Hubicka  <jh@suse.cz>
13155
13156         PR tree-optimization/48893
13157         PR tree-optimization/49091
13158         PR tree-optimization/49179
13159         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
13160         Bounds check.
13161
13162 2011-06-04  Jan Hubicka  <jh@suse.cz>
13163
13164         PR lto/48954
13165         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
13166         bitmaps.
13167
13168 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
13169
13170         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
13171
13172 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
13173
13174         PR target/49281
13175         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
13176         to be strictly smaller than 1 << shiftcount.
13177
13178 2011-06-04  Jan Hubicka  <jh@suse.cz>
13179
13180         PR tree-optimize/48929
13181         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
13182         of empty predicate.
13183
13184 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
13185
13186         PR debug/48333
13187         * calls.c (emit_call_1): Prefer the __builtin declaration of
13188         builtin functions.
13189
13190 2011-06-03   Diego Novillo  <dnovillo@google.com>
13191
13192         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
13193         (lto_input_tree_pointers): Likewise.
13194         * lto-streamer-out.c (pack_value_fields): Likewise.
13195         (lto_output_tree_pointers): Likewise.
13196         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
13197         and OPTIMIZATION_NODE.
13198
13199 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13200
13201         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
13202         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
13203         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
13204         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
13205         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
13206         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
13207         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
13208         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
13209         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
13210         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
13211         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
13212         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
13213         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
13214         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
13215         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
13216         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
13217         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
13218         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
13219         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
13220         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
13221         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
13222         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
13223         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
13224         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
13225         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
13226         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
13227         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
13228         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
13229         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
13230         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
13231         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
13232         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
13233         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
13234         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
13235         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
13236         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
13237         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
13238         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
13239         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
13240         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
13241         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
13242         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
13243         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
13244         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
13245         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
13246         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
13247         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
13248         * system.h (MD_UNWIND_SUPPORT): Poison.
13249         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
13250         * doc/tm.texi: Regenerate.
13251         * unwind-dw2.c: Include md-unwind-support.h instead of
13252         MD_UNWIND_SUPPORT.
13253         * config/ia64/unwind-ia64.c: Likewise.
13254         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
13255
13256 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
13257
13258         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
13259
13260 2011-06-03  Richard Henderson  <rth@redhat.com>
13261             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13262
13263         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
13264         (sigill_hdlr): Correct insn, insn size.
13265         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
13266
13267 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13268
13269         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
13270         t-slibgcc-dummy.
13271         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
13272         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
13273         * config/mips/t-iris: Remove.
13274         * config/mips/t-irix6: New file.
13275         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
13276
13277 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13278
13279         * Makefile.in (LIB2ADDEHDEP): Remove.
13280         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
13281         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
13282         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
13283         * config/t-darwin (LIB2ADDEHDEP): Remove.
13284         * config/t-freebsd (LIB2ADDEHDEP): Remove.
13285         * config/t-linux (LIB2ADDEHDEP): Remove.
13286
13287 2011-06-03  Diego Novillo  <dnovillo@google.com>
13288
13289         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
13290         (lto_register_var_decl_in_symtab): Likewise.
13291         (lto_register_function_decl_in_symtab): Likewise.
13292         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
13293         logic to uniquify_nodes.
13294
13295 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13296
13297         * config/alpha/t-osf5: Remove.
13298         * config/alpha/t-osf-pthread: Remove.
13299         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
13300         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
13301
13302 2011-06-03  Julian Brown  <julian@codesourcery.com>
13303
13304         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
13305         (strongarm1110): Use strongarm tuning.
13306         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
13307         * config/arm/arm.c (arm_strongarm_tune): New.
13308         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
13309         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
13310         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
13311         setting, using previous defaults or 1 for Cortex-A5.
13312         (arm_option_override): Set max_insns_skipped from current tuning.
13313
13314 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
13315
13316         * doc/install.texi (Options specification): Document --with-specs.
13317
13318 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13319
13320         * config/arm/neon.md (orndi3_neon): Actually split it.
13321
13322 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
13323
13324         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
13325         * var-tracking.c (reverse_op): Limite recurse depth to 5.
13326
13327 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
13328
13329         PR debug/47590
13330         * target.def (delay_sched2, delay_vartrack): New.
13331         * doc/tm.texi.in: Update.
13332         * doc/tm.texi: Rebuild.
13333         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
13334         * var-tracking.c (gate_handle_var_tracking): Likewise.
13335         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
13336         (bfin_flag_var_tracking): Drop.
13337         (output_file_start): Don't save and override flag_var_tracking.
13338         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
13339         (bfin_reorg): Test original variables.
13340         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
13341         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
13342         (ia64_flag_var_tracking): Drop.
13343         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
13344         (ia64_file_start): Don't save and override flag_var_tracking.
13345         (ia64_override_options_after_change): Ditto
13346         flag_schedule_insns_after_reload.
13347         (ia64_reorg): Test original variables.
13348         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
13349         (picochip_flag_var_tracking): Drop.
13350         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
13351         (picochip_option_override): Don't save and override
13352         flag_schedule_insns_after_reload.
13353         (picochip_asm_file_start): Ditto flag_var_tracking.
13354         (picochip_reorg): Test original variables.
13355         * config/spu/spu.c (spu_flag_var_tracking): Drop.
13356         (TARGET_DELAY_VARTRACK): Define.
13357         (spu_var_tracking): New.
13358         (spu_machine_dependent_reorg): Call it.
13359         (asm_file_start): Don't save and override flag_var_tracking.
13360
13361 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
13362
13363         PR target/49163
13364         * config/sh/predicates.md (general_movsrc_operand): Return 0
13365         for memory and memory subreg of which address is an invalid
13366         indexed address for QI and HImode.
13367         (general_movdst_operand): Likewise.
13368
13369 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
13370
13371         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
13372         edges only, when there is a non-local label in the function.
13373         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
13374
13375 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
13376
13377         * config/i386/constraints.md (Y3): New register constraint.
13378         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
13379         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
13380         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
13381         *sse2_interleave_lowv2df.
13382
13383 2011-06-02  Julian Brown  <julian@codesourcery.com>
13384
13385         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
13386         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
13387         (arm_cortex_a5_tune): New.
13388
13389 2011-06-02  Julian Brown  <julian@codesourcery.com>
13390
13391         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
13392         * config/arm/arm.c (arm_default_branch_cost): New.
13393         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
13394         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
13395         (arm_fa726_tune): Set branch_cost field using
13396         arm_default_branch_cost.
13397         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
13398         current_tune structure.
13399         * dojump.c (tm_p.h): Include file.
13400
13401 2011-06-02  Julian Brown  <julian@codesourcery.com>
13402
13403         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
13404         tuning.
13405         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
13406         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
13407         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
13408         field.
13409         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
13410         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
13411         (arm_fa726te_tune): Add prefer_constant_pool setting.
13412         (arm_v6t2_tune, arm_cortex_tune): New.
13413         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
13414         prefer_constant_pool setting.
13415
13416 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
13417
13418         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
13419         switch statement.
13420         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
13421         (*movdf_internal) <case 6,7,8>: Ditto.
13422
13423         * config/i386/constraints.md (Y4): New register constraint.
13424         * config/i386/sse.md (vec_set<mode>_0): Merge with
13425         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
13426         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
13427         *vec_extractv2di_1_sse.
13428         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
13429         and *vec_concatv2di_rex64_sse.
13430
13431 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
13432
13433         PR target/48807
13434         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
13435         of cgraph_local_info for null before attempting to use it.
13436
13437 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
13438
13439         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
13440         (current_function_dynamic_alloc_count): Delete.
13441         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
13442         (expand_builtin_nonlocal_goto): Remove obsolete comment.
13443         (expand_builtin_update_setjmp_buf): Remove dead code.
13444         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
13445         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
13446         support.
13447         * function.c (instantiate_virtual_regs): Likewise.
13448         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
13449         for a block with a single abnormal incoming edge.
13450         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
13451         (SETJMP_VIA_SAVE_AREA): Delete.
13452         * config/sparc/sparc-protos.h (load_got_register): Declare.
13453         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
13454         (load_got_register): Make global.
13455         (sparc_frame_pointer_required): Add 'static'.
13456         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
13457         (sparc_builtin_setjmp_frame_value): New function.
13458         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
13459         (save_stack_nonlocal): New expander.
13460         (restore_stack_nonlocal): Likewise.
13461         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
13462         (nonlocal_goto_internal): New insn.
13463         (goto_handler_and_restore): Delete.
13464         (builtin_setjmp_setup): Likewise.
13465         (do_builtin_setjmp_setup): Likewise.
13466         (setjmp): Likewise.
13467         (builtin_setjmp_receiver): New expander.
13468
13469 2011-06-01  David Li  <davidxl@google.com>
13470
13471         PR middle-end/49261
13472         * tree-pretty-print.c (dump_function_header): Format cleanup.
13473
13474 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
13475
13476         PR target/49238
13477         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
13478         needed when original operands are used for msw_skip comparison.
13479
13480 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
13481
13482         PR debug/49250
13483         * var-tracking.c (add_uses, add_stores): Don't call
13484         cselib_subst_to_values on ENTRY_VALUE.
13485
13486 2011-06-01  Diego Novillo  <dnovillo@google.com>
13487
13488         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
13489         output_record_start with LTO_null instead of output_zero.
13490         (lto_output_ts_binfo_tree_pointers): Likewise.
13491         (lto_output_tree): Likewise.
13492         (output_eh_try_list): Likewise.
13493         (output_eh_region): Likewise.
13494         (output_eh_lp): Likewise.
13495         (output_eh_regions): Likewise.
13496         (output_bb): Likewise.
13497         (output_function): Likewise.
13498         (output_unreferenced_globals): Likewise.
13499         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
13500         instead of NUM_TREE_CODES.
13501         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
13502         (lto_output_int_in_range): Change << to >> when shifting VAL.
13503
13504 2011-06-01  Diego Novillo  <dnovillo@google.com>
13505
13506         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
13507         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
13508
13509 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
13510
13511         PR target/45074
13512         * optabs.h (valid_multiword_target_p): Declare.
13513         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
13514         doing multi-word operations.
13515         * optabs.c (expand_binop): Likewise.
13516         (expand_doubleword_bswap): Likewise.
13517         (expand_absneg_bit): Likewise.
13518         (expand_unop): Likewise.
13519         (expand_copysign_bit): Likewise.
13520         (multiword_target_p): New function.
13521
13522 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
13523
13524         PR rtl-optimization/48830
13525         PR rtl-optimization/48808
13526         PR rtl-optimization/48792
13527         * reload.c (push_reload): Check contains_reg_of_mode.
13528         * reload1.c (strip_paradoxical_subreg): New function.
13529         (gen_reload_chain_without_interm_reg_p): Use it to handle
13530         paradoxical subregs.
13531         (emit_output_reload_insns, gen_reload): Likewise.
13532
13533 2011-06-01  David Li  <davidxl@google.com>
13534
13535         * predict.c : Change pass name
13536         * ipa.c: Ditto.
13537         * dce.c: Ditto.
13538         * tree-profile.c: Ditto.
13539         * except.c: Ditto.
13540
13541 2011-06-01  David Li  <davidxl@google.com>
13542
13543         * tree-pretty-print.c (dump_function_header): New function.
13544         * final.c (rest_of_clean_state): Use header dumper.
13545         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
13546         * passes.c (pass_init_dump_file): Use header dumper.
13547
13548 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
13549
13550         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
13551         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
13552         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
13553         New functions.
13554         (mem_loc_descriptor): Use them.
13555
13556         * var-tracking.c (create_entry_value): New function.
13557         (vt_add_function_parameter): Use it.
13558
13559 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13560
13561         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
13562         Include <signal.h>, <ucontext.h>.
13563         (sigill_caught): Define.
13564         (sigill_hdlr): New function.
13565         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
13566         insns can be executed.
13567         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
13568         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
13569
13570 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13571
13572         * config/t-slibgcc-darwin: Move to ...
13573         * config/t-slibgcc-dummy: ... this.  Clarify comments.
13574         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
13575         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
13576         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
13577         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
13578         Remove i386/t-crtstuff from tmake_file.
13579         (i[34567]86-*-solaris2*): Remove t-svr4,
13580         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
13581         t-slibgcc-dummy.
13582         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
13583         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
13584         sparc/t-crtfm from tmake_file.
13585         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
13586         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
13587         Remove extra_parts.
13588         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
13589         * config/i386/t-nwld (SHLIB_LINK): Remove.
13590         * config/i386/t-rtems-i386: Rename to ...
13591         * config/i386/t-rtems: ... this.
13592         ($(T)crti.o, $(T)crtn.o): Remove.
13593         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
13594         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
13595         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
13596         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
13597         EXTRA_MULTILIB_PARTS): Remove.
13598         * config/sparc/t-sol2-64: Likewise.
13599         * config/sparc/t-sol2: Remove.
13600         * config/sparc/t-crtin: Remove.
13601         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
13602         * config/i386/gmon-sol2.c: Remove.
13603         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
13604         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
13605         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
13606         * config/i386/sol2-gc1.asm: Remove.
13607         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
13608         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
13609         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
13610         * config/t-slibgcc-sld: Remove.
13611
13612 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
13613
13614         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
13615         base_type_for_mode with op_mode instead of mode.
13616
13617 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
13618
13619         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
13620         Cortex-A15.
13621         * config/arm/arm-tune.md: Regenerate.
13622         * config/arm/arm-tables.opt: Regenerate.
13623         * config/arm/arm.c (FL_DIV): Rename...
13624         (FL_THUMB_DIV): ... to this.
13625         (FL_ARM_DIV): Define.
13626         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
13627         (arm_arch_hwdiv): Remove.
13628         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
13629         (arm_issue_rate): Add cortexr5.
13630         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
13631         __ARM_ARCH_EXT_IDIV__.
13632         (TARGET_IDIV): Define.
13633         (arm_arch_hwdiv): Remove.
13634         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
13635         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
13636         (divsi3, udivsi3): New patterns.
13637         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
13638         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
13639
13640 2011-06-01  Martin Jambor  <mjambor@suse.cz>
13641
13642         * ipa-utils.c (ipa_dfs_info): New field scc_no.
13643         * ipa-utils.c (searchc): Set scc_no.
13644
13645 2011-06-01  Martin Jambor  <mjambor@suse.cz>
13646
13647         * ipa-utils.c (searchc_env): New field allow_overwritable.
13648         (searchc): do not ignore edges to overwritable nodes if indicated
13649         by env->allow_overwritable.
13650         (ipa_reduced_postorder): Set env.allow_overwritable.
13651
13652 2011-06-01  Richard Guenther  <rguenther@suse.de>
13653
13654         * tree.c (free_lang_data): Do not reset boolean_type_node nor
13655         char_type_node.
13656         * lto-streamer.c (lto_record_common_node): Take node pointer,
13657         do not register types.
13658         (lto_preload_common_nodes): Explicitly skip preloading nodes
13659         that differ between frontends.
13660
13661 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
13662
13663         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
13664         NON_FLOAT_REGS.
13665
13666 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
13667
13668         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
13669         parameter value for dump. Dump cost on outermost call only.
13670         (rs6000_memory_move_cost): Dump cost on outermost call only.
13671
13672 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
13673
13674         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
13675         DW_OP_GNU_convert ops.
13676
13677         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
13678         cselib_preserve_constants.
13679         (cselib_lookup_1): If cselib_preserve_constants,
13680         a new VALUE is being created for REG and there is a VALUE for the
13681         same register in wider mode, add another loc with lowpart SUBREG of
13682         the wider VALUE.
13683         (cselib_subst_to_values): Handle ENTRY_VALUE.
13684         * var-tracking.c  (replace_expr_with_values): Return NULL for
13685         ENTRY_VALUE too.
13686         * dwarf2out.c (convert_descriptor_to_signed): New function.
13687         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
13688         instead of two shifts.
13689         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
13690         the right mode if needed.
13691         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
13692         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
13693         convert_descriptor_to_signed.
13694         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
13695         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
13696
13697         PR target/48688
13698         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
13699
13700 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
13701
13702         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
13703         of X87MODEI12 and SWI48x instead of SSEMODEI24.
13704         (SWI248x): New mode iterator, rename from X87MODEI.
13705         (X87MODEI): Remove mode iterator.
13706         (X87MODEI12): Ditto.
13707         (SSEMODEI24): Ditto.
13708
13709 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
13710
13711         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
13712         * doc/invoke.texi: Document max-vartrack-expr-depth.
13713         * var-tracking.c (EXPR_DEPTH): New.
13714         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
13715
13716 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
13717
13718         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
13719         * config/i386/sse.md: Add n to negated FMA pattern names.
13720
13721 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
13722
13723         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
13724
13725 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
13726
13727         * gengtype-state.c (read_state_params_structs): Initialize previous.
13728
13729 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
13730
13731         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
13732         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
13733
13734 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
13735
13736         * config/i386/i386.md (*movtf_internal): Avoid allocating general
13737         registers.  Penalize F*r->o alternative to prevent partial memory
13738         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
13739         CONST_DOUBLE immediates when optimizing function for size.  Do not move
13740         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
13741         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
13742         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
13743         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
13744         alternatives.
13745         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
13746
13747         (fp_register_operand splitters): Use fp_register_operand
13748         constraint.  Do not use FP_REG_P in insn condition.
13749         (any_fp_register_operand splitters): Use any_fp_register_operand
13750         constraint.  Do not use ANY_FP_REG_P in insn condition.
13751
13752 2011-05-31  Jan Hubicka  <jh@suse.cz>
13753
13754         * cgraph.h (cgraph_inline_failed_t): Give enum a name
13755         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
13756         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
13757         (lto_output_edge): Use output_enum and var_len_unsigned.
13758         (lto_output_varpool_node): Likewise.
13759         (input_overwrite_node): Do not take resolution parameter;
13760         extract it from a bitpack.
13761         (input_node): Do not read resolution; use input_enum and
13762         var_len_unsigned.
13763         (input_varpool_node): Likewise.
13764         (input_edge): Likewise.
13765         (input_cgraph_1): Likewise.
13766
13767 2011-05-31  Richard Guenther  <rguenther@suse.de>
13768
13769         * gimple.c (gimple_register_canonical_type): Do not register
13770         any types via gimple_register_type.
13771
13772 2011-05-31  Jan Hubicka  <jh@suse.cz>
13773
13774         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
13775         of thunks.
13776
13777 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
13778
13779         PR rtl-optimization/49235
13780         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
13781         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
13782
13783 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
13784
13785         PR tree-optimization/49093
13786         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
13787         data references.
13788
13789 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
13790
13791         PR debug/49047
13792         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
13793         for concrete functions containing the code of cloned functions.
13794
13795 2011-05-31  Richard Guenther  <rguenther@suse.de>
13796
13797         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
13798         to ...
13799         (forward_propagate_into_comparison_1): ... this.
13800         (forward_propagate_comparison): Rename to ...
13801         (forward_propagate_into_comparison): ... this.  Split out
13802         real forward propagation code to ...
13803         (forward_propagate_comparison): ... this.
13804         (forward_propagate_into_gimple_cond): Remove looping.
13805         (forward_propagate_into_cond): Likewise.
13806         (simplify_not_neg_expr): Return whether we have done something.
13807         (simplify_gimple_switch): Likewise.
13808         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
13809         (ssa_forward_propagate_and_combine): ... this.  Re-structure
13810         to do a forward forward-propagation walk on BBs and a backward
13811         stmt combining walk on BBs.  Consistently re-scan changed statements.
13812         (pass_forwprop): Adjust.
13813
13814 2011-05-30  Ian Lance Taylor  <iant@google.com>
13815
13816         * godump.c (go_format_type): Correct length of name added to
13817         obstack for anonymous field.
13818
13819 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
13820
13821         PR target/49186
13822         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
13823         part of the second operand is 0.
13824
13825 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
13826
13827         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
13828         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
13829         to memory for !TARGET_MEMORY_MISMATCH_STALL.
13830         (*movdf_internal_rex64): Do not penalize F->r alternative.
13831         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
13832         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
13833         when optimizing function for size.  Do not move CONST_DOUBLEs
13834         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
13835         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
13836         SUBREGs.  Do not check for MEM_P operands in the insn condition,
13837         check for ANY_FP_REGNO_P instead.
13838         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
13839         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
13840         function for speed.
13841         * config/i386/i386.c (ix86_option_override_internal): Do not
13842         set TARGET_INTEGER_DFMODE_MOVES here.
13843
13844 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
13845
13846         PR target/49168
13847         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
13848
13849 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
13850
13851         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
13852         DW_TAG_rvalue_reference_type even for
13853         -gdwarf-4 -fno-debug-types-section.
13854
13855 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13856
13857         PR tree-optimization/46728
13858         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
13859         (build_and_insert_binop): New.
13860         (gimple_expand_builtin_pow): Reorder args for
13861         build_and_insert_call; use build_and_insert_binop; add more
13862         optimizations for fractional exponents.
13863
13864 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
13865
13866         PR bootstrap/49190
13867
13868         Revert:
13869         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
13870
13871         * tree.h (struct tree_identifier): Inherit from tree_typed, not
13872         tree_common.
13873         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
13874         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
13875         TS_BASE instead of TS_COMMON.
13876         * varasm.c (assemble_name): Remove assert.
13877
13878 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
13879
13880         * config.gcc: Keep obselete list sorted.
13881
13882 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
13883             Eric Botcazou  <ebotcazou@adacore.com>
13884
13885         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
13886         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
13887         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
13888         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
13889         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
13890
13891 2011-05-30  Richard Guenther  <rguenther@suse.de>
13892
13893         * gimple.c (gimple_types_compatible_p_1): Compare record
13894         and union type members properly.
13895
13896 2011-05-30  Richard Guenther  <rguenther@suse.de>
13897
13898         PR tree-optimization/49210
13899         * ipa-split.c (split_function): Care for the case where the call
13900         result is not trivially convertible to the result holding variable.
13901
13902 2011-05-30  Richard Guenther  <rguenther@suse.de>
13903
13904         PR tree-optimization/49218
13905         * tree-vrp.c (adjust_range_with_scev): Properly check whether
13906         overflow occured.
13907
13908 2011-05-30  Richard Guenther  <rguenther@suse.de>
13909
13910         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
13911         New function split out from ...
13912         (forward_propagate_into_gimple_cond): ... here.  Adjust.
13913         (forward_propagate_into_cond): Likewise.
13914         (forward_propagate_comparison): Also propagate into
13915         comparisons on assignment RHS.  Change return value to
13916         behave similar to forward_propagate_into_cond.
13917         (tree_ssa_forward_propagate_single_use_vars): Handle
13918         strict-overflow warnings properly for forward_propagate_comparison.
13919
13920 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13921
13922         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
13923         from plugin linker.
13924         * configure: Regenerate.
13925
13926 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
13927
13928         PR tree-optimization/49199
13929         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
13930         non-reduction operands are either defined in the loop or by induction.
13931
13932 2011-05-29  Xinliang David Li  <davidxl@google.com>
13933
13934         * opts-global.c (handle_common_deferred_options): Handle new options.
13935         * passes.c (register_one_dump_file): Call register_pass_name.
13936         (execute_one_pass): Check explicit enable/disable flag.
13937         (passr_hash): New function.
13938         (passr_eq): Ditto.
13939         (register_pass_name): Ditto.
13940         (get_pass_by_name): Ditto.
13941         (pass_hash): Ditto.
13942         (pass_eq): Ditto.
13943         (enable_pass): Ditto.
13944         (disable_pass): Ditto.
13945         (is_pass_explicitly_enabled_or_disabled): Ditto.
13946
13947 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
13948
13949         * config/i386/i386.md (*movoi_internal_avx): Use
13950         standard_sse_constant_opcode for alternative 0.
13951         (*movti_internal_sse): Ditto.
13952         (*movti_internal_rex64): Use standard_sse_constant_opcode for
13953         alternative 2.
13954         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
13955         sselog1 type moves.
13956         (*movsi_internal): Ditto.
13957         (*movdi_internal): Ditto.  Add ssecvt type moves.
13958
13959 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
13960
13961         PR target/48830
13962         * rtlanal.c (simplify_subreg_regno): Adjust comment.
13963
13964 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
13965
13966         PR rtl-optimization/49095
13967         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
13968         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
13969
13970 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
13971
13972         PR target/43995
13973         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
13974         recurse_p argument.  Only follow register copies if it is set,
13975         and prevent mips_find_pic_call_symbol from recursing.
13976         (mips_find_pic_call_symbol): Add a recurse_p argument.
13977         Pass it to mips_pic_call_symbol_from_set.
13978         (mips_annotate_pic_calls): Update accordingly.
13979
13980 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
13981
13982         * emit-rtl.c (try_split): Use a loop to search for
13983         NOTE_INSN_CALL_ARG_LOCATIONs.
13984
13985 2011-05-29  Richard Guenther  <rguenther@suse.de>
13986
13987         PR tree-optimization/49217
13988         * ipa-pure-const.c (propagate_pure_const): Fix typos.
13989
13990 2011-05-28  Jan Hubicka  <jh@suse.cz>
13991
13992         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
13993         length.
13994         (string_slot_free): Remove
13995         (create_output_block): Initialize obstack.
13996         (destroy_output_block): Free obstack.
13997         (lto_string_index): Add PERSISTENT parameter; do not duplicate
13998         the string unless it needs to be added into the hash.
13999         (lto_output_string_with_length): Add persistent attribute;
14000         handle NULL strings.
14001         (lto_output_string): Add PERSISTENT parameter.
14002         (output_string_cst, output_identifier): Simplify.
14003         (lto_output_location_bitpack): Update.
14004         (lto_output_builtin_tree): Update.
14005         * lto-streamer.h (struct output_block): Add obstack.
14006         (lto_output_string, lto_output_string_with_length): Remove
14007         declarations; functions are static now.
14008
14009 2011-05-28  Jan Hubicka  <jh@suse.cz>
14010
14011         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
14012         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
14013         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
14014         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
14015         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
14016         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
14017         unpack_ts_decl_with_vis_value_fields,
14018         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
14019         lto_get_builtin_tree): Use enum and variable length i/o.
14020         * basic-block.h (profile_status_d): Add PROFILE_LAST.
14021         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
14022         New functions.
14023         (bp_pack_enum, bp_unpack_enum): New macros.
14024
14025 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
14026
14027         * genrecog.c: Remove redundant forward declarations.
14028
14029 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
14030
14031         * config.gcc: Deprecate mips*-*-openbsd*.
14032
14033 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
14034
14035         PR bootstrap/49195
14036         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
14037         for match_op_dup.
14038
14039 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
14040
14041         PR middle-end/48981
14042         * gengtype.c (vec_prefix_type): New function.
14043         (note_def_vec): Use vec_prefix_type and change the length
14044         attribute to be based on the prefix.
14045         * vec.c: Include coretypes.h before vec.h.
14046         (struct vec_prefix): Remove.
14047         (vec_gc_p_reserve): Change the offsetof to sizeof.
14048         (vec_gc_p_reserve_exact): Likewise.
14049         (vec_heap_p_reserve): Likewise.
14050         (vec_heap_p_reserve_exact): Likewise.
14051         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
14052         (vec_stack_p_reserve): Change the offsetof to sizeof.
14053         (vec_stack_p_reserve_exact): Likewise.
14054         * vec.h (struct vec_prefix): New struct definition.
14055         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
14056         (VEC_T_GTY(T,B)): Likewise.
14057         (DEF_VEC_FUNC_P(T)): Use prefix field.
14058         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
14059         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
14060
14061 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14062
14063         PR tree-optimization/46728
14064         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
14065         (powi_as_mults): Add gimple_set_location.
14066         (build_and_insert_call): New.
14067         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
14068         0.5, 0.25, 0.75, 1./3., or 1./6.
14069
14070 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
14071
14072         * doc/contrib.texi: Update copyright years.
14073         (Contributors): Add Zdenek Sojka.
14074
14075 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
14076
14077         * c-decl.c (c_push_function_context): Copy the current statement
14078         list stack.
14079         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
14080         (finish_struct): Call building_stmt_list_p instead of checking
14081         cur_stmt_list.
14082         * c-parser.c (c_parser_postfix_expression): Likewise.
14083         * c-typeck.c (c_end_compound_stmt): Likewise.
14084         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
14085         * tree-iterator.c (stmt_list_cache): Change to a VEC.
14086         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
14087         (free_stmt_list): Likewise.
14088         * tree.h (struct tree_statement_list): Include typed_tree instead
14089         of tree_common.
14090         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
14091         as TS_TYPED instead of TS_COMMON.
14092
14093 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14094             Uros Bizjak  <ubizjak@gmail.com>
14095
14096         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
14097         (HAVE_AS_IX86_TLSGDPTL): Define.
14098         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
14099         (HAVE_AS_IX86_TLSLDMPLT): Define.
14100         * configure: Regenerate.
14101         * config.in: Regenerate.
14102         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
14103         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
14104         TARGET_SUN_TLS, use @tlsgdplt or @plt.
14105         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
14106         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
14107         @tlsldmplt or @plt.
14108         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
14109
14110 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
14111
14112         * sched-int.h (struct _haifa_deps_insn_data): New members cond
14113         and reverse_cond.
14114         (INSN_COND, INSN_REVERSE_COND): New macros.
14115         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
14116         once.
14117         (sched_get_condition_with_rev): Cache the results, and look them up
14118         if possible.
14119         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
14120         are clobbered by the current insn.
14121         * target.def (exposed_pipline): New sched data hook.
14122         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
14123         * doc/tm.texi: Regenerate.
14124
14125 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14126
14127         PR tree-optimization/49170
14128         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
14129         sincos or cexp.
14130
14131 2011-05-27  Richard Guenther  <rguenther@suse.de>
14132
14133         PR middle-end/49189
14134         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
14135         of comparisons.
14136
14137 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
14138
14139         * haifa-sched.c (sched_scan_info): Remove.
14140         (schedule_block): Call sched_extend_luids rather than sched_init_luids
14141         with NULL args.
14142         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
14143         Remove functions.
14144         (sched_scan): Remove.
14145         (sched_extend_luids): Renamed from luids_extend_insn and no longer
14146         static.  All callers changed.
14147         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
14148         static.  All callers changed.
14149         (sched_init_luids): Remove all arguments except the first.  All
14150         callers changed.  Don't use sched_scan.
14151         (haifa_init_h_i_d): Likewise.
14152         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
14153         manually rather than using sched_init_luids.  Likewise with
14154         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
14155         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
14156         rather than sched_init_luids with NULL args.
14157         * sel-sched-ir.c (new_insns): Remove variable.
14158         (sched_scan): New static function, previously in haifa-sched.c.  Remove
14159         all arguments but the first two; all callers changed.
14160         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
14161         rather than sched_init_luids.
14162         (sel_init_bbs): Remove second argument.  All callers changed.
14163         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
14164         with NULL arguments.
14165         (create_insn_rtx_from_pattern): Likewise.
14166         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
14167         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
14168         (sched_init_insn_luid, sched_extend_luids): Declare.
14169         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
14170         declarations.
14171
14172 2011-05-27  Richard Guenther  <rguenther@suse.de>
14173
14174         PR middle-end/49177
14175         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
14176         A CMP B ? (T) true : (T) false for non-integral types T again.
14177
14178 2011-05-27  Jan Hubicka  <jh@suse.cz>
14179
14180         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
14181         so 0 means NULL string.
14182         (lto_output_string_with_length): ... here.
14183         (lto_output_string, output_string_cst, output_identifier): Update
14184         handling of NULL strings.
14185         (lto_output_location_bitpack): New function.
14186         (lto_output_location): Use it.
14187         (lto_output_tree_ref): Use output_record_start.
14188         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
14189         len values.
14190         * lto-streamer-in.c (string_for_index): Break out from ...; offset
14191         values by 1.
14192         (input_string_internal): ... here;
14193         (input_string_cst, input_identifier, lto_input_string): Update handling
14194         of NULL strings.
14195         (lto_input_location_bitpack): New function
14196         (lto_input_location): Use it.
14197         (unpack_ts_type_common_value_fields): Pack align & alias in var len
14198         values.
14199         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
14200         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
14201         (bp_pack_value): Sanity check the value range.
14202         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
14203         New functions.
14204         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
14205         New functions.
14206
14207 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
14208
14209         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
14210         call_arg_location instructions down the floor.
14211
14212 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
14213
14214         PR rtl-optimization/49154
14215         * ira.c (setup_pressure_classes): Process class without sublcasses
14216         as a candidate for pressure classes.
14217
14218 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
14219
14220         PR rtl-optimization/48575
14221         * genrecog.c (position_type): New enum.
14222         (position): New structure.
14223         (decision): Use position structure instead of a string.
14224         (root_pos, peep2_insn_pos_list): New variables.
14225         (next_position, compare_positions): New functions.
14226         (new_decision): Use position structures instead of strings.
14227         (maybe_both_true): Likewise.
14228         (change_state): Likewise.
14229         (write_tree): Likewise.
14230         (make_insn_sequence): Likewise.
14231
14232 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
14233
14234         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
14235         TS_BASE instead of TS_COMMON.
14236         (find_decls_types_r): Check for TS_TYPED structure before looking at
14237         TREE_TYPE.
14238         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
14239         Add chain field.
14240         (BLOCK_CHAIN): Use new chain field.
14241
14242 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
14243
14244         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
14245         moves expensive on Power7 also.
14246
14247 2011-05-26  Richard Guenther  <rguenther@suse.de>
14248
14249         * fold-const.c (fold_unary_loc): Remove bogus code.
14250
14251 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
14252
14253         * tree.h (struct tree_identifier): Inherit from tree_typed, not
14254         tree_common.
14255         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
14256         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
14257         TS_BASE instead of TS_COMMON.
14258         * varasm.c (assemble_name): Remove assert.
14259
14260 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
14261
14262         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
14263         substituted first.
14264         * libgcc-std.ver: Delete file.
14265
14266 2011-05-26  Richard Guenther  <rguenther@suse.de>
14267
14268         PR tree-optimization/48702
14269         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
14270         only when we know the base address is within bounds.
14271         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
14272         assume the base address of TARGET_MEM_REFs is in bounds.
14273
14274 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14275
14276         PR target/49099
14277         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
14278         declaration in TARGET_SOLARIS.
14279
14280 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
14281
14282         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
14283         The instruction is then expanded explicitly.
14284         (supported_compare): Callable instruction.
14285         (compare): Likewise.
14286
14287 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
14288
14289         PR c++/49165
14290         * gimplify.c (shortcut_cond_r): Don't special case
14291         COND_EXPRs if they have void type on one of their arms.
14292
14293 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
14294
14295         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
14296         to reduce duplication, and to achieve a slightly more logical order
14297         of operations.
14298
14299 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
14300
14301         PR tree-optimization/49161
14302         * tree-vrp.c (struct case_info): New type.
14303         (compare_case_labels): Sort case_info structs instead of
14304         trees, and not primarily by CASE_LABEL uids but by
14305         label_for_block indexes.
14306         (find_switch_asserts): Put case labels into struct case_info
14307         array instead of TREE_VEC, adjust sorting, compare label_for_block
14308         values instead of CASE_LABELs.
14309
14310 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14311
14312         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
14313         ("orndi3_neon"): Likewise.
14314         ("bic<mode>3_neon"): Likewise.
14315
14316 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
14317
14318         PR tree-optimization/49038
14319         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
14320         Ensure at least one epilogue iteration if required by data
14321         accesses with gaps.
14322         * tree-vectorizer.h (struct _loop_vec_info): Add new field
14323         to mark loops that require peeling for gaps.
14324         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
14325         (vect_get_known_peeling_cost): Take peeling for gaps into
14326         account.
14327         (vect_transform_loop): Generate epilogue if required by data
14328         access with gaps.
14329         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
14330         loop as requiring an epilogue if there are gaps in the end of
14331         the strided group.
14332
14333 2011-05-25  Ian Lance Taylor  <iant@google.com>
14334
14335         * godump.c (go_format_type): Output the first field with a usable
14336         Go type, if any.
14337
14338 2011-05-25  Ian Lance Taylor  <iant@google.com>
14339
14340         * godump.c (go_format_type): Check for invalid type names, pointer
14341         target types, and struct field types.
14342
14343 2011-05-25  Jason Merrill  <jason@redhat.com>
14344
14345         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
14346
14347 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
14348
14349         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
14350
14351 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
14352
14353         * config/i386/i386.md (*movqi_extv_1)): Put back
14354         "register_operand" check in "type" calculation.
14355         (*movqi_extzv_2): Likewise.
14356
14357 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
14358
14359         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
14360
14361 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
14362
14363         PR bootstrap/49160
14364         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
14365         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
14366         __divxc3, __divtc3): Wrap definitions in #ifndef.
14367
14368 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
14369
14370         PR target/49142
14371         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
14372         "register_operand" check and replace q_regs_operand with
14373         QIreg_operand in "type" calculation.
14374         (*movqi_extv_1): Likewise.
14375         (*movqi_extzv_2_rex64): Likewise.
14376         (*movqi_extzv_2): Likewise.
14377
14378         * config/i386/predicates.md (QIreg_operand): New.
14379
14380 2011-05-25  Richard Guenther  <rguenther@suse.de>
14381
14382         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
14383         type-based offset disambiguation, streamline MEM_REF and
14384         TARGET_MEM_REF handling.
14385
14386 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
14387
14388         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
14389         (bdesc_special_args): Add pause intrinsic.
14390
14391         * config/i386/i386.md (UNSPEC_PAUSE): New.
14392         (pause): Likewise.
14393         (*pause): Likewise.
14394         * config/i386/ia32intrin.h (__pause): Likewise.
14395
14396         * doc/extend.texi (X86 Built-in Functions): Add documentation for
14397         pause intrinsic.
14398
14399 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14400
14401         PR tree-optimization/46728
14402         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
14403         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
14404
14405 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
14406
14407         * tree.h (struct tree_exp): Inherit from struct tree_typed.
14408         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
14409         instead of TS_COMMON.
14410
14411 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
14412
14413         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
14414         LIBGCC2_GNU_PREFIX is defined.
14415         (__N): New macro.
14416         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
14417         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
14418         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
14419         __clz_tab): Define using __N.
14420         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
14421         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
14422         * target.def (libfunc_gnu_prefix): New hook.
14423         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
14424         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
14425         * doc/tm.texi: Regenerate.
14426         * system.h (LIBGCC2_GNU_PREFIX): Poison.
14427         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
14428         account.
14429         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
14430         (init_optabs): Likewise for the bswap libfuncs.
14431         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
14432         and divide.
14433         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
14434         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
14435         * libgcc-std.ver: Remove.
14436         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
14437         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
14438         libgcc-std.ver.
14439         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
14440         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
14441         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
14442         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
14443         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
14444         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
14445         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
14446         * config/fixed-bit.h (FIXED_OP): Define differently depending on
14447         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
14448         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
14449
14450 2011-05-25  Jan Hubicka  <jh@suse.cz>
14451
14452         * lto-streamer-out.c (output_record_start): Use lto_output_enum
14453         (lto_output_tree): Use output_record_start.
14454         * lto-streamer-in.c (input_record_start): Use lto_input_enum
14455         (lto_get_pickled_tree): Use input_record_start.
14456         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
14457         (lto_value_range_error): New function.
14458         * lto-streamer.h (lto_value_range_error): Declare.
14459         (lto_output_int_in_range, lto_input_int_in_range): New functions.
14460         (lto_output_enum, lto_input_enum): New macros.
14461
14462 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
14463
14464         * common.opt (flag_stack_usage_info): New variable.
14465         (-Wstack-usage): New option.
14466         * doc/invoke.texi (Warning options): Document -Wstack-usage.
14467         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
14468         <OPT_fstack_usage>: Likewise.
14469         * toplev.c (output_stack_usage): Handle -Wstack-usage.
14470         * calls.c (expand_call): Test flag_stack_usage_info variable instead
14471         of flag_stack_usage.
14472         (emit_library_call_value_1): Likewise.
14473         * explow.c (allocate_dynamic_stack_space): Likewise.
14474         * function.c (instantiate_virtual_regs ): Likewise.
14475         (prepare_function_start): Likewise.
14476         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
14477         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
14478         * config/arm/arm.c (arm_expand_prologue): Likewise.
14479         (thumb1_expand_prologue): Likewise.
14480         * config/avr/avr.c (expand_prologue): Likewise.
14481         * config/i386/i386.c (ix86_expand_prologue): Likewise.
14482         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
14483         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
14484         * config/mips/mips.c (mips_expand_prologue): Likewise.
14485         * config/pa/pa.c (hppa_expand_prologue): Likewise.
14486         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
14487         * config/s390/s390.c (s390_emit_prologue): Likewise.
14488         * config/sh/sh.c (sh_expand_prologue): Likewise.
14489         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
14490         * config/spu/spu.c (spu_expand_prologue): Likewise.
14491
14492 2011-05-25  Richard Guenther  <rguenther@suse.de>
14493
14494         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
14495         (gimple_canonical_types_compatible_p): Likewise.
14496
14497 2011-05-25  Jan Hubicka  <jh@suse.cz>
14498
14499         PR middle-end/49062
14500         * ipa.c (function_and_variable_visibility): Only add to same
14501         comdat group list if DECL_ONE_ONLY.
14502
14503 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
14504
14505         PR rtl-optimization/49014
14506         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
14507
14508 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
14509
14510         PR target/49128
14511         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
14512
14513 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
14514
14515         PR rtl-optimization/48757
14516         * ira-build.c (loop_with_eh_edge_p): Rename to
14517         loop_with_complex_edge_p, check edges on complexity, make function
14518         conditional.
14519         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
14520         conditional.
14521
14522 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
14523
14524         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
14525         force flag_ira_share_save_slots to 0.
14526
14527 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
14528
14529         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
14530         (vt_initialize): Set PROLOGUE_BB unconditionally.
14531         Add block comment about CFA_BASE_RTX machinery.
14532         Reset FP_CFA_OFFSET to -1 on all invalid paths.
14533         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
14534
14535 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
14536
14537         PR objc/48187
14538         * c-parser.c (c_parser_objc_class_instance_variables): More robust
14539         parsing of syntax error in ObjC instance variable lists.  In
14540         particular, avoid an infinite loop if there is a stray ']'.
14541         Updated error message.
14542
14543 2011-05-24  Ian Lance Taylor  <iant@google.com>
14544
14545         * godump.c (go_define): Don't accept a string immediately after
14546         another operand.
14547
14548 2011-05-24  Ian Lance Taylor  <iant@google.com>
14549
14550         * godump.c (struct godump_container): Add invalid_hash field.
14551         (go_format_type): Return false if type is found in invalid_hash.
14552         (go_output_typedef): Add invalid type to invalid_hash.
14553         (go_finish): Create and delete invalid_hash.
14554
14555 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14556
14557         PR tree-optimization/46728
14558         * tree-ssa-math-opts.c (powi_table): New.
14559         (powi_lookup_cost): New.
14560         (powi_cost): New.
14561         (powi_as_mults_1): New.
14562         (powi_as_mults): New.
14563         (gimple_expand_builtin_powi): New.
14564         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
14565         (gate_cse_sincos): Remove sincos/cexp restriction.
14566
14567 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14568
14569         PR target/3746
14570         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
14571         mips-tdump native.
14572         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
14573         * mips-tdump.c: Likewise.
14574
14575 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
14576
14577         PR target/49128
14578         * config/i386/driver-i386.c (host_detect_local_cpu): Always
14579         add -mno-XXX.  Handle FMA.
14580
14581 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
14582
14583         PR rtl-optimization/48633
14584         * ira-build.c (loop_with_eh_edge_p): New function.
14585         (mark_loops_for_removal): Use it.
14586
14587 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
14588
14589         PR rtl-optimization/48971
14590         * ira.c (setup_pressure_classes): Don't check register move cost
14591         for classes with one registers.  Don't add pressure class if there
14592         is a pressure class with the same available hard registers.
14593         Check contains_reg_of_mode.  Fix a typo in collecting
14594         temp_hard_regset.  Ignore hard registers not belonging to a class.
14595
14596 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
14597
14598         PR target/49133
14599         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
14600
14601 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
14602             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14603
14604         PR gcov-profile/48845
14605         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
14606
14607 2011-05-24  Richard Guenther  <rguenther@suse.de>
14608
14609         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
14610         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
14611         (gimple_types_compatible_p_1): Adjust.
14612         (iterative_hash_canonical_type): Do not bother about complete vs.
14613         incomplete types.
14614         (gimple_canonical_types_compatible_p): Likewise.
14615
14616 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14617
14618         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
14619
14620 2011-05-24  Richard Guenther  <rguenther@suse.de>
14621
14622         PR bootstrap/49078
14623         * gimple.c (gimple_register_canonical_type): Revert
14624         previous change.
14625         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
14626         does not for a tree for the case where it matters.  Cache
14627         pointer-type alias-sets.
14628
14629 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
14630
14631         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
14632         (OBJS): Remove options.o, opts-common.o and prefix.o.
14633         (OBJS-libcommon-target): New.
14634         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
14635         (BACKEND): Include libcommon-target.a.
14636         (MOSTLYCLEANFILES): Include libcommon-target.a.
14637         (libcommon-target.a): New.
14638         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
14639         prefix.o.
14640
14641 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
14642
14643         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
14644         parts of output shared with the driver.
14645         * optc-gen.awk: Don't generate parts of output not shared with the
14646         driver.
14647         * opth-gen.awk: Remove GCC_DRIVER conditionals.
14648         * doc/options.texi (SourcerInclude): Mention options-save.c.
14649         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
14650         (OBJS): Add options-save.o.
14651         (options-save.c, options-save.o): New.
14652         (options.o): Update dependencies.
14653         (gcc-options.o): Remove.
14654         (mostlyclean): Remove options-save.c.
14655
14656 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
14657
14658         PR debug/49032
14659         * dbxout.c: Include cgraph.h.
14660         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
14661         and without value expr, return NULL if no varpool node exists for
14662         it or if it is not needed.
14663         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
14664
14665         PR c/49120
14666         * c-decl.c (start_decl): Convert expr to void_type_node.
14667
14668 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
14669
14670         PR rtl-optimization/48826
14671         * emit-rtl.c (try_split): When splitting a call that is followed
14672         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
14673
14674 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
14675
14676         * cfgexpand.c (expand_debug_expr): For unused non-addressable
14677         parameters passed in memory prefer using DECL_INCOMING_RTL over
14678         the pseudos it will be copied into.
14679
14680 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
14681
14682         PR target/47315
14683         * config/i386/i386.c (ix86_option_override_internal): Save the
14684         initial options after checking vzeroupper.
14685
14686 2011-05-23  David Li  <davidxl@google.com>
14687
14688         PR tree-optimization/48988
14689         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
14690         Initialize has_valid_pred for each pred chain.
14691
14692 2011-05-23  Richard Guenther  <rguenther@suse.de>
14693
14694         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
14695         (iterative_hash_gimple_type): Always hash type names.
14696
14697 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
14698
14699         * c-typeck.c (build_function_call_vec): Tweak call to
14700         check_function_arguments.
14701
14702 2011-05-23  Richard Guenther  <rguenther@suse.de>
14703
14704         PR tree-optimization/49115
14705         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
14706         is not necessarily carried out, do not claim it kills the ref.
14707         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
14708
14709 2011-05-23  Richard Guenther  <rguenther@suse.de>
14710
14711         PR middle-end/15419
14712         * builtins.c (fold_builtin_memory_op): Be less restrictive about
14713         what pointer types we accept for folding.
14714
14715 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14716
14717         * gthr-gnat.c: Remove.
14718         * gthr-gnat.h: Remove.
14719         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
14720         * config/t-freebsd (LIB2ADDEH): Likewise.
14721         * config/t-linux (LIB2ADDEH): Likewise.
14722         * config/t-sol2 (LIB2ADDEH): Likewise.
14723         * config/ia64/t-vms (LIB2ADDEH): Likewise.
14724         * configure.ac (target_thread_file): Remove gnat handling.
14725         * configure: Regenerate.
14726         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
14727
14728 2011-05-23  Tristan Gingold  <gingold@adacore.com>
14729             Eric Botcazou  <ebotcazou@adacore.com>
14730
14731         * gcov.c (create_file_names): If no object directory is specified,
14732         keep the directory of the file.
14733
14734 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14735
14736         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
14737         * configure: Regenerate.
14738
14739 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
14740
14741         PR middle-end/48973
14742         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
14743         failed and the comparison has a single bit signed type, use
14744         constm1_rtx instead of const1_rtx for true value.
14745         (do_store_flag): If ops->type is single bit signed type, disable
14746         signel bit test optimization and pass -1 instead of 1 as last
14747         parameter to emit_store_flag_force.
14748
14749 2011-05-23  Tom de Vries  <tom@codesourcery.com>
14750
14751         PR target/45098
14752         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
14753         function.
14754         (infer_loop_bounds_from_undefined): Use new function.
14755
14756 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
14757
14758         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
14759         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
14760         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
14761         and -O0 otherwise.
14762         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
14763
14764 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
14765
14766         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
14767         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
14768         returns true.
14769
14770 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
14771
14772         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
14773
14774 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
14775
14776         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
14777         UNSPEC_MOVE_PIC pattern.
14778
14779 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
14780
14781         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
14782         (sparc-*-rtems*): Likewise.
14783         (sparc64-*-elf*): Likewise.
14784         (sparc64-*-rtems*): Likewise.
14785         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
14786         * config/sparc/t-crtin: New file.
14787         * config/sparc/t-sol2 (crti.o): Delete rule.
14788         (crtn.o): Likewise.
14789         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
14790         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
14791         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
14792         (ENDFILE_SPEC): Add crtn.o.
14793
14794 2011-05-22  Tom de Vries  <tom@codesourcery.com>
14795
14796         PR middle-end/48689
14797         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
14798         CODE_CONTAINS_STRUCT (TS_COMMON).
14799
14800 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
14801
14802         PR middle-end/49029
14803         * expmed.c (extract_fixed_bit_field): Test whether target can be used
14804         only after deciding which mode to use.
14805
14806 2011-05-22  Tom de Vries  <tom@codesourcery.com>
14807
14808         PR target/45098
14809         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
14810         for call to get_shiftadd_cost.
14811
14812 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
14813
14814         PR target/49104
14815         * config/i386/cpuid.h (bit_MMXEXT): New define.
14816
14817 2011-05-22  Nick Clifton  <nickc@redhat.com>
14818
14819         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
14820         initialisation of non-existant args[2] element.  Use args[] array
14821         not arg[] array to pass arguments to build_function_type_list.
14822
14823 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
14824
14825         PR tree-optimization/49087
14826         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
14827
14828 2011-05-21  Jason Merrill  <jason@redhat.com>
14829
14830         PR c++/49092
14831         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
14832         static storage duration.
14833
14834 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
14835
14836         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
14837         frame pointer.
14838
14839 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
14840
14841         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
14842         false if there are call-saved registers here...
14843         (sparc_can_use_return_insn_p): ...but here instead.
14844         (save_or_restore_regs): Fix thinko.
14845         (sparc_expand_prologue): Use current_function_is_leaf.
14846         (sparc_frame_pointer_required): Likewise.
14847
14848 2011-05-21  Nick Clifton  <nickc@redhat.com>
14849
14850         PR target/49098
14851         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
14852
14853 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
14854
14855         * gengtype.c (walk_type): Implemented "atomic" GTY option.
14856         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
14857
14858 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
14859
14860         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
14861         * optc-gen.awk: Move common code to opt-read.awk.
14862         * opth-gen.awk: Likewise.
14863         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
14864
14865 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
14866
14867         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
14868
14869 2011-05-20  Tom de Vries  <tom@codesourcery.com>
14870
14871         PR target/45098
14872         * tree-ssa-loop-ivopts.c: Include expmed.h.
14873         (get_shiftadd_cost): New function.
14874         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
14875
14876 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
14877
14878         PR bootstrap/49086
14879         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
14880         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
14881
14882 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
14883
14884         * Makefile.in: Update comment referring to $(OBJS-common).
14885
14886 2011-05-20  Ian Lance Taylor  <iant@google.com>
14887
14888         * godump.c (go_output_typedef): Put enum constants in the macro
14889         hash table to avoid duplicate Go const definitions.
14890
14891 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
14892
14893         * Makefile.in (LIBDEPS): Add libcommon.a.
14894         (LIBS): Likewise.
14895         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
14896         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
14897         pretty-print.o and version.o.
14898         (OBJS-libcommon): New.
14899         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
14900         (BACKEND): Add libcommon.a.
14901         (MOSTLYCLEANFILES): Likewise.
14902         (libcommon.a): New.
14903         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
14904         (cpp$(exeext)): Likewise.
14905         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
14906         pretty-print.o and input.o.
14907         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
14908         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
14909         (errors.o): Remove.
14910         (mips-tfile): Don't explicitly use version.o.
14911         (mips-tdump): Likewise.
14912         (gcov.o): Depend on $(DIAGNOSTIC_H).
14913         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
14914         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
14915         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
14916         * gcov-dump.c: Include intl.h and diagnostic.h.
14917         (main): Initialize diagnostics.
14918         * gcov.c: Include diagnostic.h.
14919         (fnotice): Remove.
14920         (main): Initialize diagnostics.
14921         * lto-wrapper.c: Include diagnostic.h.
14922         (main): Initialize diagnostics.
14923
14924 2011-05-20  Michael Matz  <matz@suse.de>
14925
14926         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
14927
14928 2011-05-20  Michael Matz  <matz@suse.de>
14929             Richard Guenther  <rguenther@suse.de>
14930
14931         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
14932         use lto_streamer_cache_append directly instead of returning a VEC.
14933         (preload_common_node): Remove.
14934         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
14935         track seen nodes.
14936         (lto_streamer_cache_create): Call lto_preload_common_nodes.
14937
14938 2011-05-20  Richard Guenther  <rguenther@suse.de>
14939
14940         PR tree-optimization/49079
14941         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
14942         MEM_REFs correctly for the trailing array access detection.
14943         Special case constants the same way as decls for overall size
14944         constraining.
14945
14946 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
14947
14948         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
14949         argument expansion.
14950
14951 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
14952
14953         PR tree-optimization/49073
14954         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
14955         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
14956         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
14957
14958 2011-05-20  Richard Guenther  <rguenther@suse.de>
14959
14960         PR middle-end/48849
14961         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
14962         of pointer types the same way the middle-end does.
14963
14964 2011-05-20  Richard Guenther  <rguenther@suse.de>
14965
14966         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
14967         or pointer-to chains.  Delay all fixup to uniquify_nodes.
14968
14969 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
14970
14971         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
14972         (fma4_fmaddsub): Likewise
14973
14974 2011-05-19  Jan Hubicka  <jh@suse.cz>
14975
14976         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
14977         (GIMPLE_TYPE_PAIR_SIZE): New macro.
14978         (type_pair_cache): New static var.
14979         (lookup_type_pair): Use fixed sized custom hash; make inline.
14980         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
14981         calls of lookup_type_pair.
14982         (print_gimple_types_stats): Remove cache stats.
14983         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
14984         and gtc_ob.
14985
14986 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
14987
14988         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
14989         when TARGET_RDRND is active.
14990         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
14991         Generate dummy SImode target register when target is NULL.
14992
14993 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
14994
14995         * config/arm/arm-fpus.def: New.
14996         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
14997         arm-fpus.def.
14998         * config/arm/arm-tables.opt: Regenerate.
14999         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
15000         (arm_option_override): Don't decode FPU name to string here.
15001         * config/arm/arm.opt (mfpu=): Use Enum.
15002         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
15003         Update dependencies.
15004
15005 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
15006
15007         * collect2.c: Include diagnostic.h.
15008         (fatal_perror, fatal, error, fancy_abort): Remove.
15009         (main): Set progname.  Call xmalloc_set_program_name and
15010         diagnostic_initialize.
15011         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
15012         scan_libraries, resolve_lib_name): Call fatal_error instead of
15013         fatal and fatal_perror.
15014         * collect2.h (error, fatal, fatal_perror): Don't declare.
15015         * tlink.c: Include diagnostic-core.h.
15016         (recompile_files): Call fatal_error instead of fatal_perror.
15017         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
15018         pretty-print.o and input.o.
15019         (collect2.o, tlink.o): Update dependencies.
15020
15021 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15022
15023         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
15024
15025 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15026
15027         PR target/40483
15028         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
15029         COMDAT group syntax, both SPARC and x86 variants.
15030         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
15031         * configure: Regenerate.
15032         * config/sol2.h (TARGET_SOLARIS): Define.
15033         (PUSHSECTION_FORMAT): Remove.
15034         (SECTION_NAME_FORMAT): Define.
15035         * config/sol2.c: Include hashtab.h.
15036         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
15037         expansion, using SECTION_NAME_FORMAT.
15038         (solaris_comdat_htab): New variable.
15039         (struct comdat_entry): Define.
15040         (comdat_hash): New function.
15041         (comdat_eq): New function.
15042         (solaris_elf_asm_comdat_section): New function.
15043         (solaris_define_comdat_signature): New function.
15044         (solaris_code_end): New function.
15045         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
15046         (solaris_code_end): Declare.
15047         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
15048         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
15049         solaris_code_end.
15050         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
15051         Remove ATTRIBUTE_UNUSED.
15052         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
15053         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
15054         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
15055         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
15056         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
15057         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
15058         (PUSHSECTION_FORMAT): Remove.
15059         (SECTION_NAME_FORMAT): Redefine.
15060
15061 2011-05-19  Kai Tietz  <ktietz@redhat.com>
15062
15063         * tree-cfg.c (verify_gimple_assign_binary): Barf on
15064         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
15065         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
15066
15067 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
15068             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15069
15070         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
15071
15072 2011-05-19  Richard Guenther  <rguenther@suse.de>
15073
15074         PR middle-end/48985
15075         * tree-object-size.c (addr_object_size): If the pointed-to
15076         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
15077
15078 2011-05-19  Richard Guenther  <rguenther@suse.de>
15079
15080         * gimple.c (gimple_types_compatible_p_1): Compare names of
15081         the types themselves.
15082         (iterative_hash_gimple_type): And hash them that way.
15083         (gimple_register_type_1): If we register a main variant properly
15084         initialize the leader to ourselves.
15085
15086 2011-05-19  Tom de Vries  <tom@codesourcery.com>
15087
15088         PR target/45098
15089         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
15090         get_loop_invariant_expr_id.
15091         (get_loop_invariant_expr_id): Use get_expr_id.
15092         (parm_decl_cost): New function.
15093         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
15094         Improve bound cost estimation.  Use different inv_expr_id for elim and
15095         express cases.
15096
15097 2011-05-19  Tom de Vries  <tom@codesourcery.com>
15098
15099         PR target/45098
15100         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
15101         cost_base.cost == 0.
15102
15103 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
15104
15105         PR target/49002
15106         * config/i386/sse.md
15107         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
15108         load cast.
15109
15110 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
15111
15112         PR tree-optimization/49039
15113         * tree-vrp.c (extract_range_from_binary_expr): For
15114         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
15115         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
15116
15117 2011-05-18  Tom de Vries  <tom@codesourcery.com>
15118
15119         PR target/45098
15120         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
15121
15122 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
15123
15124         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
15125         (*tls_global_dynamic_64): Ditto.
15126         (*tls_local_dynamic_base_32_gnu): Ditto.
15127         (*tls_local_dynamic_base_64): Ditto.
15128         (tls_initial_exec_64_sun): Ditto.
15129
15130 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
15131
15132         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
15133         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
15134         bf592-none.
15135         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
15136         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
15137         * config/bfin/bfin.c (bfin_cpus): Add bf592.
15138         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
15139         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
15140         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
15141         * config/bfin/elf.h (LIB_SPEC): Add bf592.
15142
15143 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
15144
15145         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
15146         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
15147         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
15148         target_thread_pointer, arm_structure_size_boundary, struct
15149         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
15150         struct abi_name, arm_all_abis): Remove.
15151         (arm_option_override) Don't process most enumerated option values here.
15152         Don't process target_fpe_name here.  Work with integer not string for
15153         structure size boundary; use separate diagnostics for each case.
15154         * config/arm/arm.h (enum float_abi_type, enum
15155         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
15156         to arm-opts.h.
15157         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
15158         arm_structure_size_boundary): Remove.
15159         * config/arm/arm.opt (mabi=): Use Enum and Init.
15160         (arm_abi_type): New Enum and EnumValue entries.
15161         (mfloat-abi=): Use Enum and Init.
15162         (float_abi_type): New Enum and EnumValue entries.
15163         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
15164         (mfp16-format=): Use Enum and Init.
15165         (arm_fp16_format_type): New Enum and EnumValue entries.
15166         (mstructure-size-boundary=): Use UInteger and Init.
15167         (mtp=): Use Enum and Init.
15168         (arm_tp_type): New Enum and EnumValue entries.
15169
15170 2011-05-18  Richard Guenther  <rguenther@suse.de>
15171
15172         PR tree-optimization/49018
15173         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
15174         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
15175         gimple_has_side_effects.
15176
15177 2011-05-18  Richard Guenther  <rguenther@suse.de>
15178
15179         * gimple.c (gimple_register_type_1): New function, split out from ...
15180         (gimple_register_type): ... here.  Avoid infinite recursion.
15181
15182 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
15183
15184         PR tree-optimization/41881
15185         * tree-vectorizer.h (struct _loop_vec_info): Add new field
15186         reduction_chains along with a macro for its access.
15187         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
15188         (destroy_loop_vec_info): Free reduction chains.
15189         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
15190         (vect_is_slp_reduction): New function.
15191         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
15192         (vect_create_epilog_for_reduction): Support SLP reduction chains.
15193         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
15194         definition types for reduction chains.
15195         (vect_supported_load_permutation_p): Don't allow permutations for
15196         reduction chains.
15197         (vect_analyze_slp_instance): Support reduction chains.
15198         (vect_analyze_slp): Try to build SLP instance from reduction chains.
15199         (vect_get_constant_vectors):  Handle reduction chains.
15200         (vect_schedule_slp_instance): Mark the first statement of the
15201         reduction chain as reduction.
15202
15203 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
15204
15205         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
15206         names for group elements access.
15207         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
15208         reduction chains as well.  Remove data reference and interleaving
15209         related words from the fields names.
15210         * tree-vect-loop.c (vect_transform_loop): Use new names for group
15211         elements access.
15212         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
15213         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
15214         vect_update_interleaving_chain, vect_same_range_drs,
15215         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
15216         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
15217         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
15218         vect_analyze_group_access, vect_analyze_data_ref_access,
15219         vect_create_data_ref_ptr, vect_transform_strided_load,
15220         vect_record_strided_load_vectors): Likewise.
15221         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
15222         vect_model_load_cost, vectorizable_store, vectorizable_load,
15223         vect_remove_stores, new_stmt_vec_info): Likewise.
15224         * tree-vect-slp.c (vect_build_slp_tree,
15225         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
15226
15227 2011-05-18  Richard Guenther  <rguenther@suse.de>
15228
15229         PR middle-end/48989
15230         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
15231         operand verification.
15232         (verify_gimple_assign_binary): Likewise.
15233         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
15234         to non-1-precision BOOLEAN_TYPEs.
15235
15236 2011-05-18  Tom de Vries  <tom@codesourcery.com>
15237
15238         PR target/45098
15239         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
15240
15241 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
15242
15243         PR tree-optimization/49000
15244         * tree-ssa.c (execute_update_addresses_taken): Call
15245         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
15246         be rewritten and decl has been marked for renaming, reset
15247         the debug stmt.
15248
15249 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
15250
15251         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
15252         enum_opts_set when testing if attributes have set -mfpmath=.
15253
15254 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
15255
15256         * config/mips/mips.c (mips_handle_option): Remove unused variable.
15257
15258 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
15259
15260         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
15261         info->entry with 0
15262         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
15263         id.transform_lang_insert_block with NULL.
15264
15265 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
15266
15267         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
15268         (output_fp_compare): Change args 3 and 4 to bool.
15269         (ix86_expand_call): Change arg 6 to bool.
15270         (ix86_attr_length_immediate_default): Change arg 2 to bool.
15271         (ix86_attr_length_vex_default): Change arg 3 to bool.
15272         * config/i386/i386.md: Update all uses.
15273         * config/i386/i386.c: Ditto.
15274         (ix86_flags_dependent): Change return type to bool.
15275
15276 2011-05-17  Richard Guenther  <rguenther@suse.de>
15277
15278         * gimple.c (type_hash_pair_compare): Fix comparison.
15279
15280 2011-05-17  Richard Guenther  <rguenther@suse.de>
15281
15282         * gimple.c (iterative_hash_gimple_type): Simplify singleton
15283         case some more, fix final hash value of the non-singleton case.
15284
15285 2011-05-17  Richard Guenther  <rguenther@suse.de>
15286
15287         PR bootstrap/49013
15288         Revert
15289         2011-05-16  Richard Guenther  <rguenther@suse.de>
15290
15291         * gimple.c (gimple_types_compatible_p_1): Use names of the
15292         type itself, not its main variant.
15293         (iterative_hash_gimple_type): Likewise.
15294
15295 2011-05-17  Richard Guenther  <rguenther@suse.de>
15296
15297         * gimple.c (gimple_register_canonical_type): Use the main-variant
15298         leader for computing the canonical type.
15299
15300 2011-05-17  Nick Clifton  <nickc@redhat.com>
15301
15302         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
15303         moves.
15304
15305         * config/rx/rx.md: Add peephole to remove redundant extensions
15306         after loads.
15307         (bitset_in_memory): Use rx_restricted_mem_operand.
15308         (bitinvert_in_memory): Likewise.
15309         (bitclr_in_memory): Likewise.
15310
15311 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
15312             Nick Clifton  <nickc@redhat.com>
15313
15314         * config/rx/rx.md: Add peepholes to match a register move followed
15315         by a comparison of the moved register.  Replace these with an
15316         addition of zero that does both actions in one instruction.
15317
15318 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
15319
15320         PR target/48986
15321         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
15322         predicate to allow CONST_INT.
15323         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
15324
15325 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
15326
15327         * opts-common.c (opt_enum_arg_to_value): New.
15328         * opts.h (opt_enum_arg_to_value): Declare.
15329         * config/i386/i386.opt (fpmath): Remove.
15330         (mfpmath=): Use Enum, Init and Save.
15331         (fpmath_unit): New Enum and EnumValue entries.
15332         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
15333         name for function fpmath state.
15334         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
15335         * config/i386/i386.c: Include diagnostic.h.
15336         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
15337         (ix86_target_string): Take enum fpmath_unit value instead of string.
15338         (ix86_debug_options): Update call to ix86_target_string.
15339         (ix86_option_override_internal): Don't process fpmath strings here.
15340         (x86_function_specific_save, ix86_function_specific_restore):
15341         Don't handle fpmath state specially.
15342         (ix86_function_specific_print): Pass fpmath state to
15343         ix86_target_string instead of printing in this function.
15344         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
15345         Handle enum attributes.
15346         (IX86_ATTR_ENUM, ix86_opt_enum): New.
15347         (ix86_valid_target_attribute_tree): Update option_strings
15348         handling.  Handle fpmath as enum option.
15349         (ix86_can_inline_p): Update field names for function fpmath state.
15350         (ix86_expand_builtin): Update call to ix86_target_string.
15351         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
15352         (ix86_fpmath): Remove.
15353         * config/i386/t-i386 (i386.o): Update dependencies.
15354
15355 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
15356
15357         PR preprocessor/48677
15358         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
15359         from decoded_options[0], not from itself.
15360
15361 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
15362
15363         * config/i386/constraints.md (z): New constraint.
15364         * config/i386/i386.c (c): New mode attribute.
15365         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
15366         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
15367         constraint for operand 0.
15368         (*call_vzeroupper): Ditto.
15369         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
15370         (*call_rex64_ms_sysv_vzeroupper): Ditto.
15371         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
15372         Use "lzm" constraint for operand 0.
15373         (*call_pop_vzeroupper): Ditto.
15374         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
15375         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
15376         constraint for operand 0.
15377         (*sibcall_vzeroupper): Ditto.
15378         (*sibcall_rex64_ms_sysv): Ditto.
15379         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
15380         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
15381         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
15382         (*sibcall_pop_vzeroupper): Ditto.
15383         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
15384         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
15385         mode iterator.  Use "<c>zm" constraint for operand 1.
15386         (*call_value_vzeroupper): Ditto.
15387         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
15388         for operand 1.
15389         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
15390         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
15391         *call_value_pop_1.  Use "lzm" constraint for operand 1.
15392         (*call_value_pop_vzeroupper): Ditto.
15393         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
15394         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
15395         mode iterator.  Use "Uz" constraint for operand 1.
15396         (*sibcall_value_vzeroupper): Ditto.
15397         (*sibcall_value_rex64_ms_sysv): Ditto.
15398         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
15399         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
15400         constraint for operand 1.
15401         (*sibcall_value_pop_vzeroupper): Ditto.
15402         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
15403         and "z" constraint for operand 2.
15404         (*tls_global_dynamic_32_gnu): Ditto.
15405         (*tls_local_dynamic_base_32_gnu): Ditto.
15406         (*tls_local_dynamic_base_64): Ditto.
15407         (*tls_local_dynamic_32_once): Ditto.
15408         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
15409         Update all callers.
15410         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
15411
15412 2011-05-16  Richard Guenther  <rguenther@suse.de>
15413
15414         * gimple.c (gimple_types_compatible_p_1): Use names of the
15415         type itself, not its main variant.
15416         (iterative_hash_gimple_type): Likewise.
15417
15418 2011-05-16  Richard Guenther  <rguenther@suse.de>
15419
15420         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
15421         always visit pointer target and function result and argument types.
15422
15423 2011-05-16  Jason Merrill  <jason@redhat.com>
15424
15425         PR c++/48999
15426         * tree-inline.c (copy_statement_list): Put back recursion.
15427
15428 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
15429
15430         PR target/27663
15431         PR target/41076
15432         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
15433         * config/avr/avr.md ("*ior<mode>qi.byte0",
15434         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
15435
15436 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
15437
15438         PR target/45099
15439         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
15440         register is needed for a function argument.
15441
15442 2011-05-16  Richard Guenther  <rguenther@suse.de>
15443
15444         * gimple.c (struct type_hash_pair): New type.
15445         (type_hash_pair_compare): New function.
15446         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
15447
15448 2011-05-16  Revital Eres  <revital.eres@linaro.org>
15449
15450         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
15451
15452 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
15453
15454         * config/i386/i386.md (floating point move splitters): Fix
15455         usage of standard_80387_constant_p.
15456         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
15457
15458 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
15459
15460         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
15461
15462 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
15463
15464         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
15465         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
15466         (tree_ssa_lim_finalize): Likewise.
15467
15468 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
15469
15470         * config/i386/constraint.md (Yd, Yx): New register constraints.
15471         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
15472         Yd conditional register constraint.
15473         (*movtf_internal): Use standard_sse_constant_opcode.
15474         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
15475         Yx conditional register constraint.
15476         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
15477         Yd conditional register constraint.  Use standard_sse_constant_p to
15478         check for valid SSE constants and call standard_sse_constant_opcode to
15479         output SSE insn.
15480         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
15481         constants and call standard_sse_constant_opcode to output SSE insn.
15482         * config/i386/i386.c (ix86_option_ovverride_internal): Set
15483         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
15484         optimize_size is set.
15485         (standard_sse_constant_opcode): Output conditional AVX insn templates.
15486
15487 2011-05-14  Tobias Burnus  <burnus@net-b.de>
15488
15489         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
15490
15491 2011-05-13  Martin Jambor  <mjambor@suse.cz>
15492
15493         * ipa-prop.c (ipa_cst_from_jfunc): New function.
15494         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
15495         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
15496         (evaluate_conditions_for_ipcp_clone): Removed.
15497         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
15498         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
15499         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
15500
15501 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
15502
15503         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
15504         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
15505         lieu of MAY_HAVE_DEBUG_STMTS.
15506         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
15507         debug statements if !MAY_HAVE_DEBUG_STMTS.
15508
15509 2011-05-13  Martin Thuresson  <martint@google.com>
15510
15511         PR gcov-profile/47793
15512         * libgcov.c (gcov_exit): Support relative profile paths.
15513         * doc/invoke.texi (-fprofile-dir): Update for above change.
15514
15515 2011-05-13  Richard Guenther  <rguenther@suse.de>
15516
15517         * gimple.c (gimple_canonical_types_compatible_p): Do not use
15518         type-pair caching, do not compare hashes.
15519
15520 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
15521
15522         PR middle-end/48965
15523         * tree-cfg.c (edge_to_cases_cleanup): Return true.
15524         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
15525
15526 2011-05-13  Kai Tietz  <ktietz@redhat.com>
15527
15528         * gimplify.c (gimplify_expr): Make sure operand is boolified.
15529         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
15530         compatible type for TRUTH_NOT_EXPR.
15531
15532 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
15533
15534         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
15535         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
15536         can_create_pseudo_p ().
15537
15538 2011-05-13  Richard Guenther  <rguenther@suse.de>
15539
15540         PR lto/48978
15541         * gimple.c (iterative_hash_gimple_type): Revert change in
15542         pointer target and function result and argument hashing.
15543
15544 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
15545
15546         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
15547         (*movxf_internal_nointeger): Ditto.
15548         (*movdf_internal_rex64): Ditto.
15549         (*movdf_internal): Ditto.
15550         (*movdf_internal_nointeger): Ditto.
15551         (*movsf_internal): Ditto.
15552         (sincos splitters): Use can_create_pseudo ().
15553
15554 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
15555
15556         * config/i386/i386-opts.h: New.
15557         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
15558         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
15559         ix86_section_threshold): Remove.
15560         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
15561         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
15562         OPT_mbranch_cost_.
15563         (ix86_option_override_internal): Don't decode strings for options
15564         other than -march=, -mtune= and -mfpmath=.  Don't allow for
15565         __attribute__ uses in remaining diagnostics for options with
15566         string arguments.  Don't check for integer arguments being negative.
15567         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
15568         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
15569         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
15570         ix86_branch_cost, ix86_section_threshold): Remove.
15571         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
15572         HeaderInclude.
15573         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
15574         but not Var.
15575         (masm=): Use Enum and Init.
15576         (asm_dialect): New Enum and EnumValue entries.
15577         (mbranch-cost=): Use UInteger.
15578         (mlarge-data-threshold=): Use UInteger and Init.
15579         (mcmodel=): Use Enum and Init.
15580         (cmodel): New Enum and EnumValue entries.
15581         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
15582         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
15583         mregparm=): Use UInteger.
15584         (mstringop-strategy=): Use Enum and Init.
15585         (stringop_alg): New Enum and EnumValue entries.
15586         (mtls-dialect=): Use Enum and Init.
15587         (tls_dialect): New Enum and EnumValue entries.
15588         (mabi=): Use Enum and Init.
15589         (calling_abi): New Enum and EnumValue entries.
15590         (mveclibabi=): Use Enum and Init.
15591         (ix86_veclibabi): New Enum and EnumValue entries.
15592
15593 2011-05-13  Nick Clifton  <nickc@redhat.com>
15594
15595         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
15596         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
15597
15598 2011-05-13  Kai Tietz  <ktietz@redhat.com>
15599
15600         PR middle-end/48984
15601         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
15602         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
15603         (gimple_boolify): Check for cast for boolean_type_node instead for
15604         BOOLEAN_TYPE.
15605
15606 2011-05-13  Richard Guenther  <rguenther@suse.de>
15607
15608         PR tree-optimization/48172
15609         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
15610         multiplying by number of iterations for equal step.
15611         (vect_create_cond_for_alias_checks): Likewise.
15612
15613 2011-05-13  Andreas Schwab  <schwab@redhat.com>
15614
15615         * configure.ac: Use AS_HELP_STRING throughout.
15616         * configure: Regenerate.
15617
15618 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
15619
15620         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
15621         (ix86_emit_restore_regs_using_mov): Likewise.
15622         (ix86_emit_restore_sse_regs_using_mov): Likewise.
15623
15624 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
15625
15626         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
15627         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
15628         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
15629         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
15630         RTX_OK_FOR_OLO10_P): ...here.
15631         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
15632         SYMBOLIC_CONST.
15633
15634 2011-05-12  Kai Tietz  <ktietz@redhat.com>
15635
15636         * gimplify.c (gimple_boolify): Re-boolify expression
15637         arguments even if expression type is of kind BOOLEAN_TYPE.
15638         (gimplify_boolean_expr): Removed.
15639         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
15640         and XOR. Additional take care that we keep expression's type.
15641         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
15642         of TRUTH_AND|OR|XOR_EXPR.
15643
15644 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
15645
15646         PR tree-optimization/48975
15647         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
15648         on all bbs here and free and clear ifc_bbs at the end.
15649
15650 2011-05-12  Richard Guenther  <rguenther@suse.de>
15651
15652         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
15653         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
15654         until after simple checks.
15655         (gimple_types_compatible_p): Likewise.
15656         (iterative_hash_gimple_type): Always hash pointer targets
15657         and function return and argument types.
15658         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
15659         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
15660         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
15661         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
15662         completely in the simple compare section.
15663         (gimple_register_canonical_type): Query the cache again after
15664         registering.
15665
15666 2011-05-12  Richard Guenther  <rguenther@suse.de>
15667
15668         PR tree-optimization/48172
15669         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
15670         the number of iterations from the segment size calculation.
15671         (vect_create_cond_for_alias_checks): Adjust.
15672
15673 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
15674
15675         PR debug/48967
15676         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
15677         if validate_subreg fails.
15678
15679 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
15680
15681         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
15682         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
15683         early.
15684
15685 2011-05-12  DJ Delorie  <dj@redhat.com>
15686
15687         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
15688         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
15689         created builtin into rx_builtins array.
15690         (rx_builtin_decl): New function.
15691         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
15692
15693 2011-05-12  DJ Delorie  <dj@redhat.com>
15694             Nick Clifton  <nickc@redhat.com>
15695
15696         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
15697         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
15698         (rx_is_legitimate_address): Add pre-decrement and post-increment
15699         addressing in HImode and QImode.  Fix test for out of range
15700         REG+INT addressing.
15701         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
15702         (rx_align_for_label): Test label before extracting its usage count.
15703         (rx_adjust_insn_lengths): Fix selection of insn codes.
15704         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
15705
15706 2011-05-11  Jason Merrill  <jason@redhat.com>
15707
15708         * tree.c (type_hash_canon): Use struct tree_type_non_common.
15709
15710 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
15711
15712         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
15713         reindent the subsequent block.
15714
15715 2011-05-11  Satoru Takabayashi  <satorux@google.com>
15716             Paul Pluzhnikov  <ppluzhnikov@google.com>
15717
15718         * doc/install.texi (Configuration): Document --with-linker-hash-style.
15719         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
15720         * config.in: Add LINKER_HASH_STYLE.
15721         * configure.ac: Add --with-linker-hash-style.
15722         * configure: Regenerate.
15723
15724 2011-05-11  Richard Guenther  <rguenther@suse.de>
15725
15726         PR middle-end/48964
15727         * gimple.c (iterative_hash_canonical_type): Fix typo.
15728
15729 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
15730
15731         * config/i386/i386.c (legitimize_tls_address)
15732         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
15733         expanders directly for TARGET_GNU2_TLS.  Determine pic and
15734         __tls_get_addr symbol reference here.  Update call to
15735         gen_tls_global_dynamic_{32,64} for added arguments.
15736         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
15737         expanders directly for TARGET_GNU2_TLS.  Determine
15738         __tls_get_addr symbol reference here.  Update call to
15739         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
15740         unique UNSPEC REG_EQUIV to libcall block.
15741         (ix86_tls_get_addr): Declare static.
15742         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
15743         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
15744         Do not determine pic and __tls_get_addr symbol reference here. Do not
15745         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
15746         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
15747         (tls_global_dynamic_64): Add operand 2.  Do not determine
15748         __tls_get_addr symbol reference here.  Do not call
15749         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
15750         (tls_local_dynamic_base64): Ditto for operand 1.
15751
15752 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
15753
15754         * function.c (expand_function_start): Initialize stack_check_probe_note
15755         only if the generic stack checking mechanism is used.
15756
15757 2011-05-11  Richard Guenther  <rguenther@suse.de>
15758
15759         PR tree-optimization/15256
15760         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
15761         (A & B) | C, combine (A op CST1) op CST2.
15762         (tree_ssa_forward_propagate_single_use_vars): Only bother to
15763         visit assigns that have uses.
15764
15765 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
15766
15767         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
15768         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
15769         (unpack_ts_type_common_value_fields): ...this.  Update comment.
15770         (unpack_value_fields): Adjust for renaming.
15771         (lto_input_ts_type_tree_pointers): Split into...
15772         (lto_input_ts_type_common_tree_pointer): ...this and...
15773         (lto_input_ts_type_non_common_tree_pointers): ...this.
15774         (lto_input_tree_pointers): Adjust for above split.
15775         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
15776         (pack_ts_type_common_value_fields): ...this.  Update comment.
15777         (lto_output_ts_type_tree_pointers): Split into...
15778         (lto_output_ts_type_common_tree_pointers): ...this and...
15779         (lto_output_ts_type_non_common_tree_pointers): ...this.
15780         (lto_output_tree_pointers): Adjust for above split.
15781         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
15782         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
15783         * stor-layout.c (vector_type_mode): Adjust location of mode field.
15784         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
15785         Define.
15786         (struct tree_type): Split into...
15787         (struct tree_type_common: ...this and...
15788         (struct tree_type_with_lang_specific): ...this and...
15789         (struct tree_type_non_common): ...this.  Adjust accessor macros
15790         accordingly.
15791         (TYPE_VALUES_RAW): Define.
15792         (union tree_node): Update for above changes.
15793         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
15794         TS_TYPE_NON_COMMON.
15795         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
15796         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
15797         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
15798         * treestructu.def (TS_TYPE): Remove.
15799         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
15800         Define.
15801
15802 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
15803
15804         PR debug/48159
15805         * tree-ssa.c (reset_debug_uses): New function.
15806         * tree-flow.h (reset_debug_uses): New prototype.
15807         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
15808         * tree-loop-distribution.c (generate_loops_for_partition): Call
15809         reset_debug_uses on the stmts that will be removed.  Keep around
15810         all debug stmts, don't count them as bits in partition bitmap.
15811         (generate_builtin): Don't count debug stmts or labels as bits in
15812         partition bitmap.
15813
15814 2011-05-11  Richard Guenther  <rguenther@suse.de>
15815
15816         * gimple.c (gimple_type_hash_1): Merge with ...
15817         (gimple_type_hash): ... this.
15818         (gtc_visit): Remove mode parameter and simplify accordingly.
15819         (gimple_types_compatible_p_1): Likewise.
15820         (gimple_types_compatible_p): Likewise.
15821         (iterative_hash_gimple_type): Likewise.
15822         (visit): Likewise.
15823         (gimple_type_eq): Adjust.
15824
15825 2011-05-11  Revital Eres  <revital.eres@linaro.org>
15826
15827         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
15828         enters the branch create an anti edge in the opposite direction
15829         to prevent the creation of reg-moves.
15830         * modulo-sched.c: Adjust comment to reflect the fact we are
15831         scheduling closing branch.
15832         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
15833         (stage_count): New field in struct partial_schedule.
15834         (calculate_stage_count): New function.
15835         (normalize_sched_times): Rename to reset_sched_times and handle
15836         incrementing the sched time of the nodes by a constant value
15837         passed as parameter.
15838         (duplicate_insns_of_cycles): Skip closing branch.
15839         (sms_schedule_by_order): Schedule closing branch.
15840         (ps_insn_find_column): Handle closing branch.
15841         (sms_schedule): Call reset_sched_times and adjust the code to
15842         support scheduling of the closing branch.
15843         (ps_insert_empty_row): Update calls to normalize_sched_times
15844         and rotate_partial_schedule functions.
15845
15846 2011-05-11  Richard Guenther  <rguenther@suse.de>
15847
15848         PR middle-end/48953
15849         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
15850
15851 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
15852
15853         * opts.c (finish_options): Move warning settings from process_options.
15854         * toplev.c (process_options): Move warning settings to finish_options.
15855
15856 2011-05-11  Richard Guenther  <rguenther@suse.de>
15857
15858         PR tree-optimization/18041
15859         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
15860         (simplify_bitwise_binary): ... this.  Handle operand conversions
15861         by applying them to the result instead.
15862         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
15863
15864 2011-05-11  Richard Guenther  <rguenther@suse.de>
15865
15866         * gimple.c (gimple_canonical_types_compatible_p): Split out
15867         from gimple_types_compatible_p and friends.  Do not recurse
15868         to pointed-to types.
15869         (gimple_canonical_type_eq): Use it.
15870         (iterative_hash_canonical_type): Split out from
15871         iterative_hash_gimple_type and friends.  Do not recurse
15872         to pointed-to types.
15873         (gimple_canonical_type_hash): Use it, allocate the hash here.
15874
15875 2011-05-11  Revital Eres  <revital.eres@linaro.org>
15876
15877         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
15878         recognizing doloop.
15879
15880 2011-05-11  Revital Eres  <revital.eres@linaro.org>
15881
15882         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
15883         instead of PREV_INSN.
15884
15885 2011-05-11  Revital Eres  <revital.eres@linaro.org>
15886
15887         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
15888         * loop-doloop.c (doloop_condition_get): Likewise.
15889         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
15890         (doloop_end): New.
15891         * config/arm/arm.md (*addsi3_compare0): Remove "*".
15892
15893 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
15894
15895         * tree.def (CASE_LABEL_EXPR): Add an operand.
15896         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
15897
15898 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
15899
15900         * c-decl.c (c_override_global_bindings_to_false): Remove.
15901         (global_bindings_p): Don't check
15902         c_override_global_bindings_to_false.
15903         * c-tree.h (c_override_global_bindings_to_false): Remove.
15904         * c-typeck.c (composite_type): Don't set
15905         c_override_global_bindings_to_false.
15906
15907 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
15908
15909         PR target/48857, 48495
15910         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
15911         (VSX_MODE): Ditto.
15912         (VSX_MOVE_MODE): Ditto.
15913         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
15914         VSX vector types.  Add V2DImode.
15915         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
15916         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
15917         (MODES_TIEABLE_P): Ditto.
15918
15919         * config/rs6000/rs6000.c (rs6000_emit_move): Use
15920         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
15921         VSX_VECTOR_MODE.
15922         (init_cumulative_args): Ditto.
15923         (rs6000_function_arg_boundary): Ditto.
15924         (rs6000_function_arg_advance_1): Ditto.
15925         (rs6000_function_arg): Ditto.
15926         (rs6000_function_ok_for_sibcall): Ditto.
15927         (emit_frame_save): Ditto.
15928         (rs6000_function_value): Ditto.
15929         (rs6000_libcall_value): Ditto.
15930
15931 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
15932
15933         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
15934         i386/darwin-lib.h to $libgcc_tm_file.
15935         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
15936
15937 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
15938
15939         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
15940
15941 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
15942
15943         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
15944         * config/rs6000/rs6000-tables.opt: New file (generated).
15945         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
15946         rs6000/rs6000-tables.opt to extra_options.
15947         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
15948         * config/rs6000/rs6000.c (rs6000_select): Remove.
15949         (processor_target_table): Move contents to rs6000-cpus.def.
15950         (darwin_rs6000_override_options): Check
15951         global_options_set.x_rs6000_cpu_index instead of
15952         rs6000_select[1].string.
15953         (rs6000_option_override_internal): Likewise.
15954         (rs6000_handle_option): Don't assert that global structures are in
15955         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
15956         (rs6000_default_cpu): New variable.
15957         (rs6000_file_start): Set it instead of local default_cpu.  Check
15958         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
15959         global_options_set.x_rs6000_tune_index instead of rs6000_select.
15960         (rs6000_darwin_file_start): Check rs6000_default_cpu and
15961         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
15962         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
15963         rs6000_select): Remove.
15964         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
15965         Remove.
15966         (mcpu=, mtune=): Use Var, Init, Enum and Save.
15967         * config/rs6000/t-rs6000
15968         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
15969         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
15970         global_options_set.x_rs6000_cpu_index instead of
15971         rs6000_select[1].string.
15972         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
15973         global_options_set.x_rs6000_cpu_index instead of
15974         rs6000_select[1].string.
15975
15976 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
15977
15978         * config.gcc (libgcc_tm_file): Define instead of including files
15979         from ../../libgcc/config/ in tm_file.
15980         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
15981         * configure: Regenerate.
15982         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
15983         libgcc_tm.h, cs-libgcc_tm.h): New.
15984         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
15985         (clean): Remove libgcc_tm.h.
15986         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
15987         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
15988         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
15989
15990 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
15991
15992         PR target/48896
15993         * config/avr/avr.c (avr_ret_register): Return unsigned int
15994         instead of int.
15995         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
15996         it to avr_libcall_value.
15997         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
15998         expand_expr.
15999         (avr_expand_binop_builtin): Ditto.
16000         (avr_expand_unop_builtin): Ditto.
16001
16002 2011-05-10  DJ Delorie  <dj@redhat.com>
16003
16004         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
16005         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
16006         * config/rx/rx.c (rx_align_for_label): Add label and
16007         uses_threshold parameters.  Do not align when the label is not
16008         used enough.
16009         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
16010
16011 2011-05-10  Richard Guenther  <rguenther@suse.de>
16012
16013         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
16014         a series of conversions and apply foldings similar to what
16015         fold-const does.
16016         (tree_ssa_forward_propagate_single_use_vars): Call it.
16017
16018 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
16019
16020         PR tree-optimization/48611
16021         PR tree-optimization/48794
16022         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
16023         referenced from RESX or EH_DISPATCH arguments.
16024
16025         PR debug/48928
16026         * dfp.c (decimal_to_decnumber): Handle conversion from
16027         dconst{1,2,m1,half}.
16028
16029 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
16030
16031         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
16032         for !flag_prefer_avx128.
16033         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
16034
16035 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
16036
16037         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
16038         (fold_ternary_loc): Use expr_location_or.
16039
16040 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
16041
16042         PR debug/48853
16043         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
16044         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
16045         Pmode and mem_mode is not VOIDmode.
16046
16047 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
16048
16049         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
16050         TYPE_QUAL_RESTRICT): Convert to enum.
16051
16052 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
16053
16054         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
16055         (const_pow2_1_to_8_operand): Ditto.
16056         (const_pow2_1_to_128_operand): Ditto.
16057         (const_pow2_1_to_32768_operand): Ditto.
16058         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
16059         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
16060         in insn constraint to check integer value of operand 3.
16061         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
16062
16063         (PINSR_MODE): New mode iterator.
16064         (sse2p4_1): New mode attribute.
16065         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
16066         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
16067         iterator.  Use const_int_operand instead of
16068         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
16069         exact_log2 in insn constraint to check integer value of operand 3.
16070
16071 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
16072
16073         * config/i386/sse.md (blendbits): Remove mode attribute.
16074         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
16075         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
16076         Check integer value of operand 3 in insn constraint.
16077
16078 2011-05-09  Richard Guenther  <rguenther@suse.de>
16079
16080         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
16081         for diagnostics.
16082         (lto_symtab_merge): Likewise.  Do not register types here.
16083         (lto_symtab_merge_decls_2): Likewise.
16084         (lto_symtab_merge_decls_1): Likewise.
16085         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
16086         * gimple.c (enum gtc_mode): Declare.
16087         (gimple_types_compatible_p): Make static.
16088
16089 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16090
16091         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
16092         temporary register to match Pmode.
16093
16094 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
16095
16096         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
16097         and *vec_concatv4si_1_avx.
16098
16099 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
16100
16101         PR rtl-optimization/48927
16102         * ira-conflicts.c (commutative_constraint_p): Use
16103         recog_data.alternative_enabled_p to disable alternatives where
16104         "enabled" attribute is false.
16105         (get_dup_num): Ditto.
16106         * ira-lives.c (single_reg_class): Ditto.
16107         (ira_implicitly_set_insn_hard_regs): Ditto.
16108
16109 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
16110
16111         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
16112         (dataflow_set_preserve_mem_locs): Likewise.
16113
16114 2011-05-09  Philipp Thomas  <pth@suse.de>
16115
16116         * config/mep/mep.c (mep_validate_vliw): Syntax description
16117         should not be translated.
16118
16119 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
16120
16121         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
16122         * config/mips/mips-tables.opt: New file (generated).
16123         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
16124         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
16125         MIPS_ARCH_OPTION_NATIVE): Define.
16126         * config/mips/mips.c (mips_cpu_info_table): Move contents to
16127         mips-cpus.def.
16128         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
16129         mips_parse_cpu): Remove.
16130         (mips_cpu_info_from_opt, mips_default_arch): New.
16131         (mips_handle_option): Don't assert that global structures are in
16132         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
16133         (mips_option_override): Use new variables and functions to set
16134         state of these options.  Use strcmp to check for individual CPU names.
16135         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
16136         definition.
16137         * config/mips/mips.opt (march=): Use ToLower and Enum.
16138         (mips): Use ToLower, Enum and Var.
16139         (mtune=): Use ToLower and Enum.
16140         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
16141
16142 2011-05-08  Jan Hubicka  <jh@suse.cz>
16143
16144         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
16145         Arrange type pairs to be UID ordered.
16146         (gimple_lookup_type_leader): Make inline.
16147
16148 2011-05-09  Nick Clifton  <nickc@redhat.com>
16149
16150         PR target/48899
16151         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
16152         PROCESSOR_DEFAULT.
16153
16154         PR target/48897
16155         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
16156         variable 's'.
16157
16158 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
16159
16160         * combine.c (simplify_comparison): Abstract out parts into...
16161         (simplify_compare_const): ... new function.
16162         (try_combine): Generalize parallel arithmetic/compare combining
16163         to call simplify_compare_const() and CANONICALIZE_COMPARE().
16164
16165 2011-05-08  Jan Hubicka  <jh@suse.cz>
16166
16167         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
16168         (cgraph_create_virtual_clone): Call hooks once virtual clone
16169         is finished.
16170         * cgraph.h (cgraph_clone_node): Update prototype.
16171         * ipa-cp.c (ipcp_estimate_growth): Use
16172         estimate_ipcp_clone_size_and_time.
16173         * ipa-inline-transform.c (clone_inlined_nodes): Update.
16174         * lto-cgraph.c (input_node): Update.
16175         * ipa-inline.c (recursive_inlining): Update.
16176         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
16177         (evaluate_conditions_for_known_args): Break out from ...
16178         (evaluate_conditions_for_edge): ... here.
16179         (evaluate_conditions_for_ipcp_clone): New function.
16180         (inline_node_duplication_hook): Update clone summary based
16181         on parameter map.
16182         (estimate_callee_size_and_time): Rename to ...
16183         (estimate_node_size_and_time): take NODE instead of EDGE;
16184         take POSSIBLE_TRUTHS as argument.
16185         (estimate_callee_size_and_time): Update.
16186         (estimate_ipcp_clone_size_and_time): New function.
16187         (do_estimate_edge_time): Update.
16188
16189 2011-05-08  Richard Guenther  <rguenther@suse.de>
16190
16191         PR middle-end/48908
16192         PR middle-end/48905
16193         * expmed.c (expand_shift_1): Compute adjusted constant shift
16194         amount manually.
16195
16196 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
16197
16198         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
16199
16200 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
16201
16202         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
16203
16204 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
16205
16206         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
16207
16208 2011-05-07  Jan Hubicka  <jh@suse.cz>
16209
16210         * ipa-inline-transform.c (inline_call): Account when program size
16211         decreases.
16212         * ipa-inline.c (relative_time_benefit): New function.
16213         (edge_badness): Reorganize to be power 2 based; fix thinko when
16214         computing badness for negative growth; update comments to match
16215         reality; better dumps.
16216
16217 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
16218
16219         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
16220         type to bool and adjust comment.
16221         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
16222         (fold_mathfn_compare): Remove calls to global_bindings_p.
16223         (fold_inf_compare): Likewise.
16224         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
16225         * c-tree.h (global_bindings_p): Adjust prototype.
16226         * c-decl.c (global_bindings_p): Return bool and simplify.
16227
16228 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
16229
16230         PR tree-optimization/48837
16231         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
16232         when accumulator transformation is performed.
16233
16234 2011-05-06  Jan Hubicka  <jh@suse.cz>
16235
16236         * i386.h (ix86_tune_indices): Add
16237         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
16238         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
16239         * i386.c (initial_ix86_tune_features): Add
16240         X86_SOFTARE_PREFETCHING_BENEFICIAL.
16241         (software_prefetching_beneficial_p): Remove predicate.
16242         (ix86_option_override_internal): Use new macro.
16243
16244 2011-05-06  Jan Hubicka  <jh@suse.cz>
16245
16246         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
16247
16248 2011-05-06  Jan Hubicka  <jh@suse.cz>
16249
16250         * cgraph.c (cgraph_add_thunk): Create real function node instead
16251         of alias node; finalize it and mark needed/reachale; arrange visibility
16252         to be right and add it into the corresponding same comdat group list.
16253         (dump_cgraph_node): Dump thunks.
16254         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
16255         cgraph_function_with_gimple_body_p,
16256         cgraph_first_function_with_gimple_body,
16257         cgraph_next_function_with_gimple_body): New functions.
16258         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
16259         New macros.
16260         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
16261         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
16262         * cgraphunit.c (cgraph_finalize_function): Only look into possible
16263         devirtualization when optimizing.
16264         (verify_cgraph_node): Verify thunks.
16265         (cgraph_analyze_function): Analyze thunks.
16266         (cgraph_mark_functions_to_output): Output thunks only in combination
16267         with function they are assigned to.
16268         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
16269         alias into normal node.
16270         (assemble_thunks): New functoin.
16271         (cgraph_expand_function): Use it.
16272         * lto-cgraph.c (lto_output_node): Stream thunks.
16273         (input_overwrite_node): Stream in thunks.
16274         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
16275         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
16276         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
16277         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
16278         (inline_analyze_function): Do not care about thunk jump functions.
16279         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
16280         * ipa-prop.c (ipa_prop_write_jump_functions): Use
16281         cgraph_function_with_gimple_body_p.
16282         * passes.c (do_per_function_toporder): Use
16283         cgraph_function_with_gimple_body_p.
16284         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
16285         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
16286         (function_called_by_processed_nodes_p): Likewise.
16287
16288 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
16289
16290         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
16291         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
16292         entries.
16293         (mabi=): Replace with separate entries for mabi=altivec,
16294         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
16295         mabi=ieeelongdouble and mabi=ibmlongdouble.
16296         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
16297         check for -mabi=spe without SPE ABI support here.
16298         (rs6000_handle_option): Replace OPT_mabi_ handling with
16299         OPT_mabi_altivec and OPT_mabi_spe handling.
16300
16301 2011-05-06  Cary Coutant  <ccoutant@google.com>
16302
16303         * dwarf2out.c (contains_subprogram_definition): New function.
16304         (should_move_die_to_comdat): Call it.
16305
16306 2011-05-06  Jeff Law  <law@redhat.com>
16307
16308         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
16309         remove_ctrl_stmt_and_useless_edges.
16310         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
16311         (fixup_template_block, thread_single_edge): Likewise.
16312         (mark_threaded_blocks): Use THREAD_TARGET.
16313
16314 2011-05-06  Alan Modra  <amodra@gmail.com>
16315
16316         PR target/48900
16317         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
16318         const0_rtx as the arg to the dummy __tls_get_addr libcall.
16319
16320 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
16321
16322         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
16323         constraint modifier to "r".
16324
16325 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
16326
16327         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
16328         fall through for OPT_mcmodel_.
16329
16330 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16331
16332         * config/s390/s390.c (s390_asm_trampoline_template): Comment
16333         instruction sizes.
16334         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
16335
16336 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
16337
16338         PR target/47930
16339         * config/arm/arm.opt (marm): Document it.
16340         (mthumb): Reject negative variant.
16341
16342 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
16343
16344         PR target/48898
16345         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
16346         Fix typo in "ccvt" variable name.
16347
16348 2011-05-06  Tristan Gingold  <gingold@adacore.com>
16349
16350         PR target/48895
16351         * config/vms/vms-ar.c (main): Remove cwd variable.
16352
16353 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
16354
16355         PR debug/48902
16356         * var-tracking.c (prepare_call_arguments): Move else before #endif.
16357
16358 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
16359
16360         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
16361         * gimplify.c (gimplify_switch_expr): Likewise.
16362         * omp-low.c (expand_omp_sections): Likewise.
16363         * tree-eh.c (lower_try_finally_switch): Likewise.
16364         (lower_eh_dispatch): Likewise.
16365         * tree.h (build_case_label): Declare.
16366         * tree.c (build_case_label): Define.
16367
16368 2011-05-05  Jason Merrill  <jason@redhat.com>
16369
16370         PR c++/40975
16371         * tree-inline.c (copy_tree_r): Use copy_statement_list.
16372         (copy_statement_list): Don't recurse.
16373         * stor-layout.c (copy_self_referential_tree_r): Don't allow
16374         STATEMENT_LIST.
16375
16376 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
16377
16378         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
16379         through from -mfpu= handling.
16380         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
16381
16382 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
16383
16384         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
16385         POST_MODIFY.
16386
16387 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
16388
16389         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
16390         for 11.31.
16391         (hppa[12]*-*-hpux11*): Ditto.
16392         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
16393         * config/ia64/hpux-unix2003.h: New.
16394         * config/pa/pa-hpux1131.opt: New.
16395         * config/pa/pa-hpux1131.h: New.
16396         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
16397         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
16398         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
16399
16400 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
16401
16402         PR debug/48853
16403         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
16404         instead of mode as 3rd argument to recursive call.
16405         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
16406         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
16407         VOIDmode.
16408         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
16409         don't give up if mode is Pmode and mem_mode is not VOIDmode.
16410         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
16411         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
16412
16413 2011-05-05  Julian Brown  <julian@codesourcery.com>
16414
16415         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
16416         parenthesis in D-register case.
16417
16418 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
16419
16420         * opt-functions.awk (var_type_struct): Handle Enum options.
16421         * optc-gen.awk: Don't check range of variables of character type.
16422         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
16423         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
16424         rs6000_sdata_name, rs6000_explicit_options): Remove.
16425         (rs6000_option_override_internal): Check for -malign-power here.
16426         Use global_options_set instead of rs6000_explicit_options.
16427         (rs6000_parse_fpu_option): Remove.
16428         (rs6000_handle_option): Access variables via opts and opts_set
16429         pointers.  Use error_at and warning_at.  Add fall-through
16430         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
16431         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
16432         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
16433         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
16434         here.  Don't use rs6000_parse_fpu_option.
16435         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
16436         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
16437         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
16438         (mrecip=): Use Var.
16439         (mspe): Use Var and Save.
16440         (mtraceback=): Use Enum and Var.
16441         (rs6000_traceback_type): New Enum and EnumValue entries.
16442         (mfloat-gprs=): Use Enum, Var and Save.
16443         (rs6000_float_gprs): New Enum and EnumValue entries.
16444         (mlong-double-): use Var and Save.
16445         (msched-costly-dep=, minsert-sched-nops=): Use Var.
16446         (malign-): Use Enum and Var.
16447         (rs6000_alignment_flags): New Enum and EnumValue entries.
16448         (mfpu=): Use Enum.
16449         (fpu_type_t): New Enum and EnumValue entries.
16450         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
16451         global_options_set instead of rs6000_explicit_options.
16452         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
16453         global_options_set instead of rs6000_explicit_options.
16454         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
16455         global_options_set instead of rs6000_explicit_options.
16456         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
16457         global_options_set instead of rs6000_explicit_options.
16458         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
16459         global_options_set instead of rs6000_explicit_options.
16460         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
16461         global_options_set instead of rs6000_explicit_options.
16462         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
16463         definition.
16464         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
16465         global_options_set instead of rs6000_explicit_options.
16466         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
16467         (rs6000_cmodel): New Enum and EnumValue entries.
16468         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
16469         global_options_set instead of rs6000_explicit_options.
16470         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
16471         (mtls-size=): Use Enum and Var.
16472         (rs6000_tls_size): New Enum and EnumValue entries.
16473
16474 2011-05-05  Michael Matz  <matz@suse.de>
16475
16476         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
16477         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
16478         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
16479         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
16480         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
16481         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
16482         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
16483         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
16484         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
16485         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
16486         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
16487         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
16488         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
16489         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
16490         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
16491         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
16492
16493 2011-05-05  Richard Guenther  <rguenther@suse.de>
16494
16495         * expmed.c (expand_variable_shift): Rename to ...
16496         (expand_shift_1): ... this.  Take an expanded shift amount.
16497         For rotates recurse directly not building trees for the shift amount.
16498         (expand_variable_shift): Wrap around expand_shift_1.
16499         (expand_shift): Adjust.
16500
16501 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
16502
16503         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
16504
16505 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
16506
16507         * tree.h (get_pending_sizes): Remove prototype.
16508         (put_pending_size): Likewise.
16509         (put_pending_sizes): Likewise.
16510         * stor-layout.c (pending_sizes): Delete.
16511         (get_pending_sizes): Likewise.
16512         (put_pending_size): Likewise.
16513         (put_pending_sizes): Likewise.
16514         (variable_size): Do not call put_pending_size and tidy up.
16515         * function.h (struct function): Remove dont_save_pending_sizes_p.
16516         * lto-streamer-in.c (input_function): Do not stream it.
16517         * lto-streamer-out.c (output_function): Likewise.
16518         * tree-inline.c (initialize_cfun): Do not copy it.
16519         * c-decl.c (store_parm_decls): Do not set it.
16520         * omp-low.c (create_task_copyfn): Likewise.
16521         * tree-optimize.c (tree_rest_of_compilation): Likewise.
16522
16523 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
16524
16525         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
16526         conditions.
16527         (*movdf_internal): Ditto.
16528         (*movdf_internal_nointeger): Ditto.
16529         (*movsf_internal): Ditto.
16530
16531 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
16532
16533         * c-decl.c (finish_decl): Don't call get_pending_sizes.
16534         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
16535         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
16536         (c_variable_size): Remove.
16537         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
16538         call put_pending_sizes.
16539         (get_parm_info): Add parameter expr.  Use it to set
16540         arg_info->pending_sizes.
16541         (store_parm_decls): Use arg_info->pending_sizes instead or calling
16542         get_pending_sizes.
16543         * c-parser.c (c_parser_parms_declarator): Update call to
16544         c_parser_parms_list_declarator.
16545         (c_parser_parms_list_declarator): Take parameter expr.  Update
16546         call to push_parm_decl.  Update recursive call.  Don't call
16547         get_pending_sizes.  Update calls to get_parm_info.
16548         (c_parser_objc_method_definition): Update calls to
16549         c_parser_objc_method_decl and objc_start_method_definition.
16550         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
16551         (c_parser_objc_method_decl): Add parameter expr.  Update call to
16552         grokparm.
16553         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
16554         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
16555         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
16556
16557 2011-05-05  Michael Hope  <michael.hope@linaro.org>
16558
16559         PR pch/45979
16560         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
16561         __ARM_EABI__ hosts.
16562
16563 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16564
16565         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
16566         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
16567         (spu_output_mi_thunk): New function.
16568
16569 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16570
16571         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
16572         targetm.asm_out.print_operand.
16573         * config/sol2.c: Include target.h.
16574
16575 2011-05-04  Jan Hubicka  <jh@suse.cz>
16576
16577         * ipa-inline.c (reset_edge_caches): New function.
16578         (update_caller_keys): Add check_inlinablity_for; do not
16579         reset edge caches; remove now unnecesary loop.
16580         (update_callee_keys): Add comments; reset node_growth_cache of callee.
16581         (update_all_callee_keys): Likewise.
16582         (inline_small_functions): Sanity check cache; update code
16583         recomputing it.
16584
16585 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
16586
16587         PR rtl-optimization/47612
16588         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
16589         as the last insn of the sequence to be moved.
16590
16591 2011-05-04  Tobias Burnus  <burnus@net-b.de>
16592
16593         PR fortran/48864
16594         * doc/invoke.texi (Ofast): Document that it
16595         enables Fortran's -fno-protect-parens.
16596
16597 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
16598
16599         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
16600
16601 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
16602
16603         * stor-layout.c (variable_size): Do not issue errors.
16604
16605 2011-05-04  Richard Guenther  <rguenther@suse.de>
16606
16607         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
16608         for array-ref indices.
16609         (tree_coverage_counter_addr): Likewise.
16610         (build_fn_info_type): Use size_int for index types.
16611         (build_gcov_info): Likewise.
16612
16613 2011-05-04  Richard Guenther  <rguenther@suse.de>
16614
16615         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
16616         to build_int_cst.
16617         * c-typeck.c (really_start_incremental_init): Use bitsize_int
16618         for constructor indices.
16619         (push_init_level): Likewise.
16620
16621 2011-05-04  Richard Guenther  <rguenther@suse.de>
16622
16623         * explow.c (promote_mode): Move variable declarations before code.
16624
16625 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
16626
16627         * tree.h (build_function_type_array): Declare.
16628         (build_varargs_function_type_array): Declare.
16629         (build_function_type_vec, build_varargs_function_type_vec): Define.
16630         * tree.c (build_function_type_array_1): New function.
16631         (build_function_type_array): New function.
16632         (build_varargs_function_type_array): New function.
16633
16634 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
16635
16636         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
16637         before setting STMT_VINFO_TYPE.
16638
16639 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16640
16641         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
16642         instead of spu_pass_by_reference.
16643
16644 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16645
16646         * calls.c (emit_library_call_value_1): Invoke
16647         promote_function_mode hook on libcall arguments.
16648         * explow.c (promote_function_mode, promote_mode): Handle TYPE
16649         argument being NULL.
16650         * targhooks.c (default_promote_function_mode): Lisewise.
16651         * config/s390/s390.c (s390_promote_function_mode): Likewise.
16652         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
16653
16654         * doc/tm.texi: Document that TYPE argument might be NULL.
16655
16656 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
16657
16658         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
16659
16660 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
16661
16662         From Bernd Schmidt
16663         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
16664
16665 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16666
16667         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
16668         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
16669         Move ...
16670         * mips-tfile.c: ... here.
16671         Don't include coretypes.h, tm.h, filenames.h.
16672         (saber_stop): Remove definition and all calls.
16673         [__SABER__]: Remove.
16674         (__LINE__): Remove default.
16675         (Size_t, Ptrdiff_t): Remove definitions.
16676         Replace by size_t, ptrdiff_t.
16677         [!MIPS_DEBUGGING_INFO]: Remove.
16678         (SHASH_SIZE, THASH_SIZE): Remove defaults.
16679         (progname): Add const.
16680         (STATIC): Remove.
16681         Replace all uses by static.
16682         (ALIGN_SYMTABLE_OFFSET): Remove default.
16683         * mips-tdump.c: Don't include coretypes.h, tm.h.
16684         Remove !MIPS_IS_STAB guard.
16685         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
16686         $(TM_H), filenames.h dependencies.
16687         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
16688
16689 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
16690
16691         From Jie Zhang
16692         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
16693         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
16694
16695 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
16696
16697         From Bernd Schmidt
16698         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
16699         account and save/restore RETS.
16700         (PROFILE_BEFORE_PROLOGUE): Define.
16701         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
16702         the push insn to use predecrement.
16703
16704 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
16705
16706         From Jie Zhang
16707         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
16708
16709 2011-05-04  Nick Clifton  <nickc@redhat.com>
16710
16711         * config/mn10300/mn10300.c: Include cfgloop.h.
16712         (DUMP): New macro.
16713         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
16714         Lcc or a FLcc insn into the instruction stream.
16715         (mn10300_block_contains_call): New function.  Returns true if the
16716         given basic block contains a CALL insn.
16717         (mn10300_loop_contains_call_insn): New function.  Returns true if
16718         the given loop contains a CALL insn.
16719         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
16720         to use the SETLB and Lcc or FLcc insns.
16721         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
16722         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
16723         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
16724         disable the SETLB optimization.
16725         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
16726         __SETLB__ or __NO_SETLB__.
16727         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
16728         (movsf_internal): Handle MDR register.
16729         (cmpsi): Make visible.
16730         (setlb): New pattern.
16731         (Lcc): New pattern.
16732         (FLcc): New pattern.
16733
16734 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
16735
16736         PR target/48860
16737         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
16738         for reg<->xmm moves.
16739         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
16740         (vec_concatv2di_rex64_sse): Ditto.
16741         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
16742         (*vec_extractv2di_1_rex64): Ditto.
16743
16744         Revert:
16745         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
16746
16747         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
16748         reg<->xmm moves.
16749         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
16750
16751 2011-05-04  Richard Guenther  <rguenther@suse.de>
16752
16753         * tree.h (int_const_binop): Remove notrunc argument.
16754         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
16755         create integer constants that are properly truncated.
16756         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
16757         (const_binop): Remove zero notrunc argument to int_const_binop.
16758         (size_binop_loc): Likewise.
16759         (fold_div_compare): Likewise.
16760         (maybe_canonicalize_comparison_1): Likewise.
16761         (fold_comparison): Likewise.
16762         (fold_binary_loc): Likewise.
16763         (multiple_of_p): Likewise.
16764         * expr.c (store_constructor): Likewise.
16765         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
16766         (maybe_fold_stmt_addition): Likewise.
16767         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
16768         * stor-layout.c (layout_type): Likewise.
16769         * tree-data-ref.c (tree_fold_divides_p): Likewise.
16770         * tree-sra.c (build_ref_for_offset): Likewise.
16771         (build_user_friendly_ref_for_offset): Likewise.
16772         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
16773         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
16774         * tree-ssa-loop-niter.c (inverse): Likewise.
16775         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
16776         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
16777         * tree-switch-conversion.c (check_range): Likewise.
16778         (build_constructors): Likewise.
16779         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
16780         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
16781         (extract_range_from_assert): Likewise.
16782         (vrp_int_const_binop): Likewise.
16783         (extract_range_from_binary_expr): Likewise.
16784         (extract_range_from_unary_expr): Likewise.
16785         (check_array_ref): Likewise.
16786         (find_case_label_range): Likewise.
16787         (simplify_div_or_mod_using_ranges): Likewise.
16788         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
16789         comparing case labels for merging.
16790
16791 2011-05-03  Mark Wielaard  <mjw@redhat.com>
16792
16793         * dwarf2out.c (debug_str_hash_forced): Removed.
16794         (gen_label_for_indirect_string): Removed.
16795         (get_debug_string_label): Removed.
16796         (AT_string_form): Generate label directly.
16797         (output_indirect_string): Test indirect_string_node for
16798         DW_FORM_strp instead of checking label and refcount.
16799         (prune_indirect_string): Removed.
16800         (prune_unused_types): Don't check debug_str_hash_forced or
16801         call prune_indirect_string.
16802
16803 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
16804
16805         PR other/48093
16806         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
16807
16808 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
16809
16810         PR debug/47994
16811         PR debug/47919
16812         * combine.c (try_combine): Skip debug insns at m_split tests.
16813
16814 2011-04-26  Mark Wielaard  <mjw@redhat.com>
16815
16816         PR42288
16817         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
16818         when info_section_emitted.
16819
16820 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
16821
16822         * config/mips/mips-opts.h: New.
16823         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
16824         to mips-opts.h.
16825         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
16826         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
16827         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
16828         via opts pointer.
16829         * config/mips/mips.h (enum mips_code_readable_setting): Move to
16830         mips-opts.h.
16831         (mips_abi, mips_code_readable): Don't declare.
16832         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
16833         (mabi=): Use Enum and Var.
16834         (mips_abi): New Enum and EnumValue entries.
16835         (mcode-readable=): Use Enum and Var.
16836         (mips_code_readable_setting): New Enum and EnumValue entries.
16837         (mr10k-cache-barrier=): Use Enum and Var.
16838         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
16839
16840 2011-05-03  Jan Hubicka  <jh@suse.cz>
16841
16842         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
16843         replace hash by pointer map.
16844         (cgraph_node_set_element_def, cgraph_node_set_element,
16845         const_cgraph_node_set_element, varpool_node_set_element_def,
16846         varpool_node_set_element, const_varpool_node_set_element): Remove.
16847         (free_cgraph_node_set, free_varpool_node_set): New function.
16848         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
16849         * tree-emutls.c: Free varpool node set.
16850         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
16851         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
16852         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
16853         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
16854         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
16855         Move here from ipa.c; implement using pointer_map
16856         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
16857         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
16858         debug_cgraph_node_set, varpool_node_set_new,
16859         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
16860         dump_varpool_node_set, debug_varpool_node_set):
16861         Move to ipa-uitls.c.
16862         * passes.c (ipa_write_summaries): Update.
16863
16864 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
16865
16866         From Mike Frysinger:
16867         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
16868         bf542/bf544/bf547/bf548/bf549.
16869
16870 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
16871
16872         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
16873
16874 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
16875
16876         From Bernd Schmidt:
16877         * config/bfin/bfin.md (MOVCC): New mode_macro.
16878         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
16879         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
16880         comments from generated assembly.
16881
16882 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
16883
16884         From Bernd Schmidt
16885         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
16886         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
16887         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
16888         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
16889         * config/bfin/lib1funcs.asm (___muldi3): New function.
16890
16891 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16892
16893         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
16894         build_function_type_list instead of build_function_type.
16895         Rearrange initialization of `args' to do so.
16896
16897 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16898
16899         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
16900         instead of build_function_type.
16901
16902 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16903
16904         * config/rs6000/rs6000.c (spe_init_builtins): Call
16905         build_function_type_list instead of build_function_type.
16906         (paired_init_builtins, altivec_init_builtins): Likewise.
16907         (builtin_function_type): Likewise.
16908
16909 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16910
16911         * config/sh/sh.c (sh_media_init_builtins): Call
16912         build_function_type_list instead of build_function_type.
16913
16914 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16915
16916         * config/sparc/sparc.c (sparc_file_end): Call
16917         build_function_type_list instead of build_function_type.
16918
16919 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16920
16921         * config/alpha/alpha.c (alpha_init_builtins): Call
16922         build_function_type_list instead of build_function_type.
16923
16924 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16925
16926         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
16927         build_function_type_list instead of build_function_type.
16928
16929 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16930
16931         * config/iq2000/i2000.c (iq2000_init_builtins): Call
16932         build_function_type_list instead of build_function_type.
16933         Delete `endlink' variable.
16934
16935 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16936
16937         * config/avr/avr.c (avr_init_builtins): Call
16938         build_function_type_list instead of build_function_type.
16939
16940 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16941
16942         * config/picochip/picochip.c (picochip_init_builtins): Call
16943         build_function_type_list instead of build_function_type.
16944         Delete `endlink' variable.
16945
16946 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16947
16948         * config/bfin/bfin.c (bfin_init_builtins): Call
16949         build_function_type_list instead of build_function_type.
16950
16951 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
16952
16953         From Bernd Schmidt
16954         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
16955         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
16956
16957 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
16958
16959         From Jie Zhang:
16960         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
16961         libbffastfp overrides libgcc when -mfast-fp.
16962
16963 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
16964
16965         Originally from Bernd Schmidt
16966         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
16967         * config/bfin/bfin.c (override_options): Test it and error if
16968         TARGET_FDPIC.
16969
16970 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
16971
16972         Originally From Bernd Schmidt
16973         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
16974         FD-PIC.
16975
16976 2011-05-03  Jeff Law  <law@redhat.com>
16977
16978         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
16979         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
16980         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
16981         than accessing AUX field directly.  Free the AUX field before
16982         clearing it.
16983         (thread_block, thread_through_loop_header): Likewise.
16984         (thread_single_edge, mark_threaded_blocks): Likewise.
16985         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
16986         (register_jump_thread): Do not attempt to thread to a NULL edge.
16987
16988 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
16989
16990         * function.c (init_function_start): Call decide_function_section.
16991         * varasm.c (decide_function_section): New function.
16992         (assemble_start_function): When not using
16993         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
16994         or first_function_block_is_cold.
16995         * rtl.h (decide_function_section): Declare.
16996
16997 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
16998             Jakub Jelinek  <jakub@redhat.com>
16999
17000         PR target/48774
17001         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
17002         only succeed if req_mode is the same as set_mode.
17003
17004 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
17005
17006         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
17007         * genemit.c (gen_exp): Handle RETURN.
17008         * emit-rtl.c (verify_rtx_sharing): Likewise.
17009         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
17010         * rtl.c (copy_rtx): RETURN is shared.
17011         * rtl.h (enum global_rtl_index): Add GR_RETURN.
17012         (ret_rtx): New.
17013         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
17014         * config/s390/s390.c (s390_emit_epilogue): Likewise.
17015         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
17016         * config/cris/cris.c (cris_expand_return): Likewise.
17017         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
17018         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
17019         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
17020         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
17021         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
17022         Likewise.
17023         * config/v850/v850.c (expand_epilogue): Likewise.
17024         * config/bfin/bfin.c (bfin_expand_call): Likewise.
17025         * config/arm/arm.md (epilogue): Likewise.
17026         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
17027         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
17028         variable to ret_reg.
17029
17030 2011-05-03  Richard Guenther  <rguenther@suse.de>
17031
17032         PR lto/48846
17033         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
17034         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
17035         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
17036
17037 2011-05-03  Richard Guenther  <rguenther@suse.de>
17038
17039         * c-decl.c (grokdeclarator): Instead of looking at
17040         TREE_OVERFLOW check if the constant fits in the index type.
17041
17042 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
17043
17044         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
17045         (vec_store_lanes<mode><mode>): Likewise.
17046
17047 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
17048
17049         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
17050         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
17051         convert_optab_index values.
17052         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
17053         * genopinit.c (optabs): Initialize the new optabs.
17054         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
17055         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
17056         (expand_STORE_LANES): New functions.
17057         * tree.h (build_array_type_nelts): Declare.
17058         * tree.c (build_array_type_nelts): New function.
17059         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
17060         (vect_model_load_cost): Likewise.
17061         (vect_store_lanes_supported, vect_load_lanes_supported)
17062         (vect_record_strided_load_vectors): Declare.
17063         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
17064         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
17065         (vect_transform_strided_load): Split out statement recording into...
17066         (vect_record_strided_load_vectors): ...this new function.
17067         * tree-vect-stmts.c (create_vector_array, read_vector_array)
17068         (write_vector_array, create_array_ref): New functions.
17069         (vect_model_store_cost): Add store_lanes_p argument.
17070         (vect_model_load_cost): Add load_lanes_p argument.
17071         (vectorizable_store): Try to use store-lanes functions for
17072         interleaved stores.
17073         (vectorizable_load): Likewise load-lanes and loads.
17074         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
17075         to vect_model_store_cost.
17076         (vect_build_slp_tree): Likewise vect_model_load_cost.
17077
17078 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
17079
17080         * hooks.h (hook_bool_mode_uhwi_false): Declare.
17081         * hooks.c (hook_bool_mode_uhwi_false): New function.
17082         * target.def (array_mode_supported_p): New hook.
17083         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
17084         * doc/tm.texi: Regenerate.
17085         * stor-layout.c (mode_for_array): New function.
17086         (layout_type): Use it.
17087         * config/arm/arm.c (arm_array_mode_supported_p): New function.
17088         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
17089
17090 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
17091
17092         PR target/48723
17093         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
17094         for -fstack-check if the size to allocate is negative.
17095
17096 2011-05-02  Lawrence Crowl  <crowl@google.com>
17097
17098         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
17099         (timevar_cond_start): New for starting a timer only when it is not
17100         already running.
17101         (timevar_cond_stop): New for stopping a timer when it was not already
17102         running.
17103
17104         * timevar.c (timevar_stop): Enable start/stop timers to start again.
17105         (timevar_cond_start): New as above.
17106         (timevar_cond_stop): New as above.
17107
17108         * timevar.def: Add start/stop timers for compiler phases,
17109         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
17110         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
17111         and TV_PHASE_FINALIZE.
17112         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
17113         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
17114         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
17115         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
17116         Make unused TV_OVERLOAD into a start/stop timer.
17117
17118         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
17119         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
17120         to indicate that they are start/stop timers.
17121
17122         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
17123         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
17124         Move initialization to do_compile.
17125         (do_compile): Add initialization from above.
17126         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
17127
17128         * c-decl.c (c_write_global_declarations): Add start/stop of
17129         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
17130
17131         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
17132         or TV_PARSE_INLINE, as appropriate.
17133         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
17134         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
17135
17136 2011-05-02  Jason Merrill  <jason@redhat.com>
17137
17138         PR c++/40975
17139         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
17140
17141 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
17142
17143         PR c/35445
17144         * c-decl.c (finish_decl): Only create a composite if the types are
17145         compatible.
17146
17147 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
17148
17149         * config/fr30/fr30-protos.h (Mmode): Don't define.
17150         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
17151         definition where used.
17152         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
17153         define.  Expand definitions where used.
17154         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
17155         Expand definitions where used.
17156         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
17157         rx_function_arg, rx_function_arg_advance,
17158         rx_function_arg_boundary): Expand definitions of those macros.
17159         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
17160         definition where used.
17161
17162 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
17163
17164         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
17165         reg<->xmm moves.
17166         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
17167         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
17168         with *movv2sf_internal_rex64_avx.
17169         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
17170         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
17171         Use %v prefix in insn mnemonic to handle TARGET_AVX.
17172         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
17173         "vex" in "prefix" attribute calculation.
17174         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
17175
17176 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
17177
17178         PR target/47951
17179         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
17180         inputs match the output.
17181
17182 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
17183
17184         PR target/47955
17185         * config/m68k/m68k.c (m68k_expand_prologue): Set
17186         current_function_static_stack_size.
17187
17188 2011-05-02   Jan Hubicka  <jh@suse.cz>
17189
17190         * lto-streamer.c (lto_streamer_cache_insert_1,
17191         lto_streamer_cache_lookup, lto_streamer_cache_create,
17192         lto_streamer_cache_delete): Use pointer map instead of hashtable.
17193         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
17194
17195 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
17196
17197         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
17198         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
17199         config/m68k/t-opts: New files.
17200         * config/m68k/m68k-tables.opt: New file (generated).
17201         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
17202         extra_options and m68k/t-opts to tmake_file.
17203         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
17204         (all_isas): Initialize using m68k-isas.def.
17205         (all_microarchs): Initialize using m68k-microarchs.def.
17206         (m68k_find_selection): Remove.
17207         (m68k_handle_option): Don't assert that global structures are in
17208         use.  Use error_at.  Access variables via opts pointer.  Don't
17209         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
17210         directly for -m68020-40 and -m68020-60.
17211         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
17212         m68k_tune_entry here.
17213         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
17214         to m68k-opts.h.
17215         (m68k_library_id_string): Remove declaration.
17216         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
17217         (m68k_library_id_string): New Variable.
17218         (march=, mcpu=, mtune=): Use Enum and Var.
17219
17220 2011-05-02  Richard Guenther  <rguenther@suse.de>
17221
17222         * varasm.c (output_constructor_regular_field): Compute zero-based
17223         index with double-ints.  Make sure to ICE instead of producing
17224         wrong code.
17225         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
17226         in asserts.  Properly use a signed type.
17227
17228 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
17229
17230         * config/i386/sse.md (V): New mode iterator.
17231         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
17232         TARGET_SSE2.
17233         (V_256): Rename from AVX256MODE.
17234         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
17235         condition to all users.
17236         (VF1): Ditto.
17237         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
17238         condition to all users.
17239         (VF_128): Make V4SF mode unconditional.
17240         (VF_256): Rename from AVX256MODEF2P.
17241         (VI4F_128): Rename from SSEMODE4S.
17242         (VI8F_128): Rename from SSEMODE2D.
17243         (VI4F_256): Rename from AVX256MODE8P.
17244         (VI8F_256): Rename from AVX256MODE4P.
17245         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
17246         (ssescalarmodesuffix): Remove SF and DF modes.
17247         (SSEMODE124): Remove.
17248         (SSEMODE1248): Ditto.
17249         (SSEMODEF2P): Ditto.
17250         (AVXMODEF2P): Ditto.
17251         (AVXMODEFDP): Ditto.
17252         (AVXMODEFSP): Ditto.
17253         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
17254         unconditional.
17255         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
17256         unconditional.
17257         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
17258         xop_pcmov_<mode>256.  Use V mode iterator.
17259
17260         Adjust RTX patterns globally for renamed mode attributes.
17261
17262 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17263
17264         * haifa-sched.c (sched_emit_insn): Emit insn before first
17265         non-scheduled insn.  Inform back-end about new insn.  Add
17266         new insn to scheduled_insns list.
17267
17268 2011-05-02  Richard Guenther  <rguenther@suse.de>
17269
17270         PR tree-optimization/48822
17271         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
17272         (process_scc): Indicate which iteration we start.
17273
17274 2011-05-02  Jan Hubicka  <jh@suse.cz>
17275
17276         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
17277         (lto_section_overrun): New.
17278         * lto-section-out.c (append_block): Rename to ...
17279         (lto_append_block): ... this one; export.
17280         (lto_output_1_stream): Move lto lto-streamer.h
17281         (lto_output_data_stream): Update.
17282         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
17283         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
17284         functions.
17285
17286 2011-05-02  Richard Guenther  <rguenther@suse.de>
17287
17288         * tree.c (tree_code_counts): New global array.
17289         (record_node_allocation_statistics): Count individual tree codes.
17290         (dump_tree_statistics): Dump individual code stats.
17291
17292 2011-05-01  Jan Hubicka  <jh@suse.cz>
17293
17294         * ipa-inline.c (caller_growth_limits): Fix thinko when
17295         looking for largest stack frame.
17296         * ipa-inline.h (dump_inline_summary): Declare.
17297         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
17298         on stack usage.
17299         (dump_inline_summary): Export.
17300         (debug_inline_summary): Declare as DEBUG_FUNCTION.
17301
17302 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
17303
17304         * reginfo.c (memory_move_cost): Change rclass argument type form
17305         'enum reg_class' to reg_class_t.
17306         * reload.h (memory_move_cost): Update prototype.
17307         * postreload.c reload_cse_simplify_set): Change type dclass var to
17308         reg_class_t.
17309         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
17310         Update prototype.
17311         (ira_allocate_and_set_costs): Change aclass argument type form
17312         'enum reg_class' to reg_class_t.
17313         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
17314         Change aclass argument type to reg_class_t.
17315         (update_conflict_hard_reg_costs): Change type aclass and pref vars
17316         to reg_class_t.
17317         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
17318         memory_move_cost call.
17319
17320         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
17321         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
17322         Change type tmp var to reg_class_t.
17323
17324 2011-04-30  Jan Hubicka  <jh@suse.cz>
17325
17326         * ipa-inline.c (can_inline_edge_p): Disregard limits when
17327         inlining into function with flatten attribute.
17328         (want_inline_small_function_p): Be more realistic about inlining
17329         cold calls where callee size grows.
17330
17331 2011-04-30  Jan Hubicka  <jh@suse.cz>
17332
17333         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
17334         flags.
17335
17336 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
17337
17338         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
17339         PRINT_OPERAND_PUNCT_VALID_P): Remove.
17340         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
17341         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
17342         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
17343         (print_operand): Rename to...
17344         (sparc_print_operand): ...this. Make static. Adjust
17345         sparc_print_operand function call.
17346         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
17347         functions.
17348
17349 2011-04-30  Jan Hubicka  <jh@suse.cz>
17350
17351         PR middle-end/48752
17352         * ipa-inline.c (early_inliner): Disable when doing late
17353         addition of function.
17354
17355 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
17356
17357         * dwarf2out.c (get_address_mode): New inline.
17358         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
17359         if not dwarf_strict emit
17360         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
17361         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
17362         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
17363         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
17364         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
17365         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
17366         mem_loc_descriptor callers.
17367         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
17368         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
17369         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
17370         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
17371         (base_types): New variable.
17372         (get_base_type_offset, calc_base_type_die_sizes,
17373         base_type_for_mode, mark_base_types, base_type_cmp,
17374         move_marked_base_types): New functions.
17375         (calc_die_sizes): Assert that die_offset is 0 or equal to
17376         next_die_offset.
17377         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
17378         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
17379         callers.  If not dwarf_strict, call mem_loc_descriptor even for
17380         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
17381         (gen_subprogram_die): Don't give up on call site parameters
17382         with non-integral or large integral modes.  Adjust
17383         mem_loc_descriptor callers.
17384         (prune_unused_types): Call prune_unused_types_mark on base_types
17385         vector entries.
17386         (resolve_addr): Call mark_base_types.
17387         (dwarf2out_finish): Call move_marked_base_types.
17388
17389         PR tree-optimization/48809
17390         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
17391         type.
17392         (gen_inbound_check): Don't compute index_expr - range_min in utype
17393         again, instead reuse SSA_NAME initialized in build_arrays.
17394         Remove two useless gsi_for_stmt calls.
17395
17396 2011-04-29  Jeff Law  <law@redhat.com>
17397
17398         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
17399
17400 2011-04-29  Martin Jambor  <mjambor@suse.cz>
17401
17402         * cgraph.h (cgraph_postorder): Remove declaration.
17403         * ipa-utils.h (ipa_free_postorder_info): Declare.
17404         (ipa_reverse_postorder): Likewise.
17405         * cgraphunit.c: Include ipa-utils.h.
17406         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
17407         * ipa-inline.c: Include ipa-utils.h.
17408         (ipa_inline): Update call to ipa_reverse_postorder.
17409         * ipa-pure-const.c (propagate_pure_const): Update call to
17410         ipa_reduced_postorder and ipa_print_order.  Call
17411         ipa_free_postorder_info to clean up.
17412         (propagate_nothrow): Likewise.
17413         * ipa-reference.c (propagate): Removed a useless call to
17414         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
17415         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
17416         * ipa.c: Include ipa-utils.h.
17417         (ipa_profile): Update call to ipa_reverse_postorder.
17418         (cgraph_postorder): Moved to...
17419         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
17420         (ipa_utils_print_order): Renamed to ipa_print_order.
17421         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
17422         comments.
17423         (ipa_free_postorder_info): New function.
17424         * passes.c: Include ipa-utils.h.
17425         (do_per_function_toporder): Update call to ipa_reverse_postorder.
17426         (ipa_write_summaries): Likewise.
17427         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
17428         (cgraphunit.o): Likewise.
17429         (ipa.o): Likewise.
17430         (ipa-inline.o): Likewise.
17431
17432 2011-04-29  Jan Hubicka  <jh@suse.cz>
17433
17434         * gcc.dg/tree-ssa/inline-10.c: New testcase.
17435         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
17436         * ipa-inline.h (clause_t): Turn into unsigned int.
17437         * ipa-inline-analysis.c (add_clause): Do more simplification.
17438         (and_predicates): Shortcut more cases.
17439         (predicates_equal_p): Move forward; check that clauses are properly
17440         ordered.
17441         (or_predicates): Shortcut more cases.
17442         (edge_execution_predicate): Rewrite as...
17443         (set_cond_stmt_execution_predicate): ... this function; handle
17444         __builtin_constant_p.
17445         (set_switch_stmt_execution_predicate): New .
17446         (compute_bb_predicates): New.
17447         (will_be_nonconstant_predicate): Update TODO.
17448         (estimate_function_body_sizes): Use compute_bb_predicates
17449         and free them later, always try to estimate if stmt is constant.
17450         (estimate_time_after_inlining, estimate_size_after_inlining):
17451         Gracefully handle optimized out edges.
17452         (read_predicate): Fix off by one error.
17453
17454 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
17455
17456         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
17457
17458 2011-04-27  Xinliang David Li  <davidxl@google.com>
17459
17460         * tree-profile.c (init_ic_make_global_vars): Set
17461         tls attribute on ic vars.
17462         * coverage.c (coverage_end_function): Initialize
17463         function_list with zero.
17464
17465 2011-04-29  Richard Guenther  <rguenther@suse.de>
17466
17467         * builtins.c (fold_builtin_classify_type): Use integer_type_node
17468         for the type of the result.
17469         (fold_builtin_isascii): Likewise.
17470         (fold_builtin_toascii): Use integer_type_node where appropriate.
17471         (fold_builtin_logb): Likewise.
17472         (fold_builtin_frexp): Likewise.
17473         (fold_builtin_strstr): Likewise.
17474         (fold_builtin_strpbrk): Likewise.
17475         (fold_builtin_fputs): Likewise.
17476         (fold_builtin_sprintf): Likewise.
17477         (fold_builtin_snprintf): Likewise.
17478         (fold_builtin_printf): Likewise.
17479         (do_mpfr_remquo): Use a proper type for the assigned constant.
17480         (do_mpfr_lgamma_r): Likewise.
17481         * dwarf2out.c (resolve_one_addr): Use size_int.
17482         * except.c (init_eh): Likewise.
17483         (assign_filter_values): Use integer_type_node for filter values.
17484         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
17485         indices.
17486         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
17487         for EH region numbers.
17488         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
17489         for the shift amount.
17490
17491 2011-04-29  Richard Guenther  <rguenther@suse.de>
17492
17493         * expr.h (expand_shift): Rename to ...
17494         (expand_variable_shift): ... this.
17495         (expand_shift): Take a constant shift amount.
17496         * expmed.c (expand_shift): Rename to ...
17497         (expand_variable_shift): ... this.
17498         (expand_shift): New wrapper around expand_variable_shift.
17499         * expr.c (convert_move, emit_group_load_1, emit_group_store,
17500         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
17501         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
17502         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
17503         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
17504         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
17505         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
17506         emit_store_flag_1, emit_store_flag): Likewise.
17507         * builtins.c (expand_builtin_signbit): Likewise.
17508         * calls.c (load_register_parameters): Likewise.
17509         * function.c (assign_parm_setup_block): Likewise.
17510         * lower-subreg.c (resolve_shift_zext): Likewise.
17511         * optabs.c (widen_bswap, expand_abs_nojump,
17512         expand_one_cmpl_abs_nojump, expand_float): Likewise.
17513         * spu/spu.c (spu_expand_extv): Likewise.
17514         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
17515
17516 2011-04-29  Richard Guenther  <rguenther@suse.de>
17517
17518         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
17519         for the remapped region number.
17520         * predict.c (build_predict_expr): Use integer_type_node for the
17521         predict kind.
17522         * fold-const.c (fold_binary_loc): Use integer_type_node for
17523         the shift amount.  Use a proper type for the PLUS_EXPR operand.
17524
17525 2011-04-29  Michael Matz  <matz@suse.de>
17526
17527         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
17528         other trees that just builtins.
17529         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
17530
17531 2011-04-29  Richard Guenther  <rguenther@suse.de>
17532
17533         * tree-nested.c (get_trampoline_type): Use size_int.
17534         (get_nl_goto_field): Likewise.
17535         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
17536         for all indexes.
17537         (lower_eh_constructs_2): Likewise.
17538         (lower_resx): Likewise.
17539         (lower_eh_dispatch): Likewise.
17540         * tree-mudflap.c (mf_build_string): Use size_int.
17541         (mudflap_register_call): Use integer_type_node for the flag.
17542         (mudflap_enqueue_constant): Use size_int.
17543         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
17544         instead of rebuilding it.
17545
17546 2011-04-29  Richard Guenther  <rguenther@suse.de>
17547
17548         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
17549         Handle OBJ_TYPE_REF.
17550         (find_func_aliases_for_call): Use it more consistently.
17551
17552 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
17553
17554         * haifa-sched.c (last_nondebug_scheduled_insn): New.
17555         (rank_for_schedule): Use it.
17556         (schedule_block): Set it.
17557
17558 2011-04-28  David Li  <davidxl@google.com>
17559
17560         * tree.c (crc32_string): Use crc32_byte.
17561         (crc32_byte): New function.
17562         * tree.h (crc32_byte): New function.
17563         * gcov.c (read_graph_file): Handle new cfg_cksum.
17564         (read_count_file): Ditto.
17565         * profile.c (instrument_values): Ditto.
17566         (get_exec_counts): Ditto.
17567         (read_profile_edge_counts): Ditto.
17568         (compute_branch_probabilities): Ditto.
17569         (compute_value_histograms): Ditto.
17570         (branch_prob): Ditto.
17571         (end_branch_prob): Ditto.
17572         * coverage.c (read_counts_file): Ditto.
17573         (get_coverage_counts): Ditto.
17574         (tree_coverage_counter_addr): Ditto.
17575         (coverage_checksum_string): Ditto.
17576         (coverage_begin_output): Ditto.
17577         (coverage_end_function): Ditto.
17578         (build_fn_info_type): Ditto.
17579         (build_fn_info_value): Ditto.
17580         * libgcov.c (gcov_exit): Ditto.
17581         * gcov-dump.c (tag_function): Ditto.
17582         (compute_checksum): Remove.
17583
17584 2011-04-29  Alan Modra  <amodra@gmail.com>
17585
17586         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
17587         unspec plus offset.  Tidy macho code.
17588
17589 2011-04-29  Martin Jambor  <mjambor@suse.cz>
17590
17591         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
17592         node instead of a decl.  Update all callers.
17593         * cgraph.h: Update declaration.
17594
17595 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
17596
17597         PR tree-optimization/48765
17598         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
17599         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
17600         to indicate if loop aware SLP is being used.  Scan the statements
17601         and update the vectorization factor according to the type of
17602         vectorization before statement analysis.
17603         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
17604         pass it to vect_analyze_loop_operations.
17605         (vectorizable_reduction): Set number of copies to 1 in case of pure
17606         SLP statement.
17607         * tree-vect-stmts.c (vectorizable_conversion,
17608         vectorizable_assignment, vectorizable_shift,
17609         vectorizable_operation, vectorizable_type_demotion,
17610         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
17611         Likewise.
17612         (vectorizable_condition): Move the check that it is not SLP
17613         vectorization before the number of copies check.
17614         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
17615         to vectorize the loop using SLP.
17616
17617 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
17618
17619         PR middle-end/48597
17620         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
17621         inline asm.
17622
17623 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
17624
17625         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
17626         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
17627         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
17628         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
17629         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
17630         linux*.h headers.
17631         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
17632         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
17633         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
17634         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
17635         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
17636         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
17637         REG_NAME.
17638         * config/i386/linux.h (REG_NAME): Don't define.
17639         * config/i386/linux64.h (REG_NAME): Don't define.
17640         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
17641         Undefine before defining.
17642
17643 2011-04-28  Jan Hubicka  <jh@suse.cz>
17644
17645         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
17646         nonconstant_names array.
17647         (estimate_function_body_sizes): Build nonconstant_names array; handle
17648         BUILT_IN_CONSTANT_P.
17649
17650 2011-04-28  Richard Guenther  <rguenther@suse.de>
17651
17652         PR bootstrap/48804
17653         Revert
17654         2011-04-28  Richard Guenther  <rguenther@suse.de>
17655
17656         * tree-ssa-structalias.c (solve_constraints): Build succ graph
17657         as late as possible.
17658
17659 2011-04-28  Richard Guenther  <rguenther@suse.de>
17660
17661         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
17662         (debug_constraint): Do it here.
17663         (dump_constraints): And here.
17664         (rewrite_constraints): And here.
17665         (dump_constraint_edge): Remove.
17666         (dump_constraint_graph): Rewrite to produce DOT output.
17667         (solve_constraints): Build succ graph as late as possible.
17668         Dump constraint graphs before and after solving.
17669
17670 2011-04-28  Richard Guenther  <rguenther@suse.de>
17671
17672         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
17673         New function split out from ...
17674         (find_func_aliases): ... here.  Call it.
17675         (find_func_aliases_for_call): Likewise.
17676
17677 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
17678
17679         * internal-fn.h (internal_fn_name_array): Declare.
17680         (internal_fn_flags_array): Likewise.
17681
17682 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
17683
17684         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
17685         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
17686         Move from sse.md.
17687         (ssemodefsuffix): Remove.
17688         (ssevecmodesuffix): New mode attribute.
17689         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
17690         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
17691         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
17692         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
17693         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
17694         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
17695         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
17696         ssemodesuffix mode attribute.
17697         (float splitters): Use ssevecmodesuffix mode attribute.
17698         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
17699         (sseinsmode): Rename from avxvecmode.
17700         (avxsizesuffix): Rename from avxmodesuffix.
17701         (sseintvecmode): Rename from avxpermvecmode.
17702         (ssedoublevecmode): Rename from ssedoublesizemode.
17703         (ssehalfvecmode): Rename from avxhalfvecmode.
17704         (ssescalarmode): Rename from avxscalarmode.
17705         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
17706         templates for ssemodesuffix mode attribute.
17707         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
17708         mode attribute.
17709
17710         Adjust RTX patterns globally for renamed mode attributes.
17711
17712 2011-04-27  Jan Hubcika  <jh@suse.cz>
17713
17714         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
17715         * ipa-inline-analysis.c: Include alloc-pool.h.
17716         (edge_predicate_pool): New.
17717         (trye_predicate_p): New function
17718         (false_predicate_p): New function.
17719         (add_clause): Sanity check that false clauses are "optimized";
17720         never add clauses to predicate that is already known to be false.
17721         (and_predicate): Use flase_predicate_p.
17722         (evaulate_predicate): Rename to ...
17723         (evaluate_predicate): ... this one; update all callers; assert
17724         that false is not listed among possible truths.
17725         (dump_predicate): Use true_predicate_p.
17726         (account_size_time): Use false_predicate_p.
17727         (evaulate_conditions_for_edge): Rename to ...
17728         (evaluate_conditions_for_edge) ... this one.
17729         (edge_set_predicate): New function.
17730         (inline_edge_duplication_hook): Duplicate edge predicates.
17731         (inline_edge_removal_hook): Free edge predicates.
17732         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
17733         (dump_inline_summary): Update.
17734         (estimate_function_body_sizes): Set edge predicates.
17735         (estimate_calls_size_and_time): Handle predicates.
17736         (estimate_callee_size_and_time): Update.
17737         (remap_predicate): Add toplev_predicate; update comment.
17738         (remap_edge_predicates): New function.
17739         (inline_merge_summary): Compute toplev predicate; update.
17740         (read_predicate): New function.
17741         (read_inline_edge_summary): Use it.
17742         (inline_read_section): Likewise.
17743         (write_predicate): New function.
17744         (write_inline_edge_summary): Use it.
17745         (inline_write_summary): Likewise.
17746         (inline_free_summary): Free alloc pool and edge summary vec.
17747
17748 2011-04-27  Richard Guenther  <rguenther@suse.de>
17749
17750         * tree-ssa-structalias.c (changed_count): Remove.
17751         (changed): Use a bitmap.
17752         (unify_nodes): Adjust.
17753         (do_sd_constraint): Likewise.
17754         (do_ds_constraint): Likewise.
17755         (do_complex_constraint): Likewise.
17756         (solve_graph): Likewise.
17757
17758 2011-04-27  Jan Hubicka  <jh@suse.cz>
17759
17760         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
17761
17762 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
17763
17764         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
17765         (avx_vperm2f128_*_operand): Ditto.
17766         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
17767         Use avx_vpermilp_parallel in insn condition.
17768         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
17769         Use avx_vperm2f128_parallel in insn condition.
17770
17771 2011-04-27  Richard Guenther  <rguenther@suse.de>
17772
17773         * Makefile.in (tree-ssa-structalias.o): Remove
17774         gt-tree-ssa-structalias.h dependency.
17775         (GTFILES): Remove tree-ssa-structalias.c.
17776         * tree.c (allocate_decl_uid): New function.
17777         (make_node_stat): Use it.
17778         (copy_node_stat): Likewise.
17779         * tree.h (allocate_decl_uid): Declare.
17780         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
17781         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
17782         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
17783         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
17784         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
17785         (struct heapvar_map): Likewise.
17786         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
17787         heapvar_insert): Likewise.
17788         (make_heapvar_for): Rename to ...
17789         (make_heapvar): ... this.  Simplify.
17790         (fake_var_decl_obstack): New global var.
17791         (build_fake_var_decl): New function.
17792         (make_constraint_from_heapvar): Adjust.
17793         (handle_lhs_call): Likewise.
17794         (create_function_info_for): Likewise.
17795         (intra_create_variable_infos): Likewise.
17796         (init_alias_vars): Allocate fake_var_decl_obstack.
17797         (init_alias_heapvars, delete_alias_heapvars): Remove.
17798         (compute_points_to_sets): Do not call init_alias_heapvars.
17799         (ipa_pta_execute): Likewise.
17800         (delete_points_to_sets): Free fake_var_decl_obstack.
17801
17802 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17803
17804         * config/spu/divmovti4.c (union qword_UTItype): New data type.
17805         (si_from_UTItype, si_to_UTItype): New functions.
17806         (__udivmodti4): Use them to implement type-punning.
17807         * config/spu/multi3.c (union qword_TItype): New data type.
17808         (si_from_TItype, si_to_TItype): New functions.
17809         (__multi3): Use them to implement type-punning.
17810
17811 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17812
17813         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
17814
17815 2011-04-27  Jan Hubicka  <jh@suse.cz>
17816
17817         * ipa-prop.c (function_insertion_hook_holder): New holder.
17818         (ipa_add_new_function): New function.
17819         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
17820         Register/deregister holder.
17821
17822 2011-04-27  Richard Guenther  <rguenther@suse.de>
17823
17824         PR tree-optimization/48772
17825         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
17826
17827 2011-04-27  Richard Guenther  <rguenther@suse.de>
17828
17829         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
17830         TARGET_MEM_REF handling.
17831
17832 2011-04-27  Nick Clifton  <nickc@redhat.com>
17833
17834         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
17835         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
17836         (REG_CLASS_NAMES): Likewise.
17837         (REG_CLASS_CONTENTS): Likewise.
17838         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
17839         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
17840         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
17841         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
17842         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
17843         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
17844         duplicate register classes.
17845         (frv_class_likely_spilled_p): Likewise.
17846         (frv_register_move_cost): Likewise.
17847
17848         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
17849         end of the regno_reg_class array.
17850
17851 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
17852
17853         PR c/48742
17854         * c-typeck.c (build_binary_op): Don't wrap arguments if
17855         int_operands is true.
17856
17857 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
17858
17859         PR target/48767
17860         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
17861         targetm.calls.must_pass_in_stack for void type.
17862
17863 2011-04-26  Jan Hubicka  <jh@suse.cz>
17864
17865         * cgraphbuild.c (build_cgraph_edges): Update call
17866         of cgraph_create_edge and cgraph_create_indirect_edge.
17867         * cgraph.c (cgraph_create_edge_including_clones,
17868         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
17869         cgraph_update_edges_for_call_stmt_node): Do not take nest
17870         argument; do not initialize call_stmt_size/time.
17871         (dump_cgraph_node): Do not dump nest.
17872         (cgraph_clone_edge): Do not take loop_nest argument;
17873         do not propagate it; do not clone call_stmt_size/time.
17874         (cgraph_clone_node): Likewise.
17875         (cgraph_create_virtual_clone): Update.
17876         * cgraph.h (struct cgraph_edge): Remove
17877         call_stmt_size/call_stmt_time/loop_nest.
17878         (cgraph_create_edge, cgraph_create_indirect_edge,
17879         cgraph_create_edge_including_clones, cgraph_clone_node): Update
17880         prototype.
17881         * tree-emutls.c (gen_emutls_addr): Update.
17882         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
17883         loop_nest; handle indirect calls, too.
17884         (clone_inlined_nodes): Do not care about updating inline summaries.
17885         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
17886         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
17887         stream call_stmt_size/call_stmt_time/loop_nest.
17888         * ipa-inline.c (edge_badness): Update.
17889         (ipa_inline): dump summaries after inlining.
17890         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
17891         New.
17892         (inline_edge_summary): New function.
17893         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
17894         (inline_edge_removal_hook): Handle edge summaries.
17895         (inline_edge_duplication_hook): New hook.
17896         (inline_summary_alloc): Alloc hooks.
17897         (initialize_growth_caches): Do not register removal hooks.
17898         (free_growth_caches); Do not free removal hook.
17899         (dump_inline_edge_summary): New function.
17900         (dump_inline_summary): Use it.
17901         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
17902         (inline_update_callee_summaries): New function.
17903         (inline_merge_summary): Use it.
17904         (do_estimate_edge_time, do_estimate_edge_growth): Update.
17905         (read_inline_edge_summary): New function.
17906         (inline_read_section): Use it.
17907         (write_inline_edge_summary): New function.
17908         (inline_write_summary): Use it.
17909         (inline_free_summary): Free edge new holders.
17910         * tree-inline.c (copy_bb): Update.
17911
17912 2011-04-26  Jason Merrill  <jason@redhat.com>
17913
17914         * tree-eh.c (lower_try_finally_switch): Create the label along with
17915         the CASE_LABEL_EXPR.
17916
17917 2011-04-26  David S. Miller  <davem@davemloft.net>
17918             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17919
17920         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
17921         * configure: Regenerate.
17922
17923 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
17924
17925         PR target/48258
17926         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
17927         reduction.
17928         (VEC_reduc): New code iterator and splitters for vector reduction.
17929         (VEC_reduc_name): Ditto.
17930         (VEC_reduc_rtx): Ditto.
17931         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
17932         (reduc_<VEC_reduc_name>_v4sf): Ditto.
17933
17934         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
17935         support for extracting SF on VSX.
17936
17937         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
17938         generating xscvspdp.
17939         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
17940         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
17941         double add, minimum, maximum vector reduction.
17942         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
17943         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
17944         optimize double vector reduction.
17945         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
17946
17947 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
17948
17949         * config/fr30/fr30.h (inhibit_libc): Don't define.
17950         * config/m32r/m32r-protos.h: Correct comment.
17951         * config/v850/v850.h (GHS_default_section_names,
17952         GHS_current_section_names): Use tree, not union tree_node *.
17953
17954 2011-04-26  Xinliang David Li  <davidxl@google.com>
17955
17956         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
17957         * c-family/c-opts.c (c_common_handle_option): Set
17958         warn_maybe_uninitialized.
17959         * opts.c (common_handle_option): Ditto.
17960         * common.opt:  New option.
17961         * tree-ssa.c (warn_uninit): Add one more parameter.
17962         (warn_uninitialized_var): Pass warning code.
17963         * tree-flow.h: Interface change.
17964
17965 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17966
17967         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
17968         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
17969         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
17970
17971 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17972
17973         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
17974         * config/mips/mips.opt (mmips-tfile): Remove.
17975
17976         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
17977         mips-tdump reference to ...
17978         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
17979         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
17980         reference by Tru64 UNIX.
17981
17982 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
17983
17984         PR debug/48768
17985         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
17986         is error_mark_node, set value to NULL.
17987
17988         PR tree-optimization/48734
17989         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
17990         if return value from maybe_fold_*_comparsions isn't something
17991         the code is prepared to handle.
17992
17993 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
17994
17995         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
17996         mode check.
17997         (ext_QIreg_nomode_operands): Remove.
17998         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
17999         (*andsi_1): Ditto.
18000         (*andhi_1): Ditto.
18001
18002 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
18003
18004         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
18005
18006 2011-04-26  Richard Guenther  <rguenther@suse.de>
18007
18008         * c-typeck.c (build_unary_op): Do not expand array-refs via
18009         pointer arithmetic.  Only adjust qualifiers for function types.
18010
18011 2011-04-26  Richard Guenther  <rguenther@suse.de>
18012
18013         PR middle-end/48694
18014         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
18015         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
18016         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
18017         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
18018
18019 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
18020
18021         * doc/extend.texi: Document __underlying_type.
18022
18023 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
18024
18025         * config/rs6000/titan.md (automata_option "progress"): Remove.
18026
18027 2011-04-25  Jeff Law  <law@redhat.com>
18028
18029         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
18030
18031 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
18032
18033         * system.h (ENUM_BITFIELD): Remove.
18034
18035 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
18036             Eric Botcazou  <ebotcazou@adacore.com>
18037
18038         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
18039         for STORE_FLAG_VALUE==-1 case.
18040
18041 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
18042
18043         PR target/43804
18044         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
18045         LEGITIMATE_PIC_OPERAND_P.
18046
18047 2011-04-24  Jan Hubicka  <jh@suse.cz>
18048
18049         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
18050         WPA hack.
18051         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
18052         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
18053         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
18054         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
18055         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
18056         Sanity check predicate length.
18057         (remap_predicate): Likewise; sanity check jump functions.
18058         (inline_read_section, inline_write_summary): Sanity check
18059         predicate length.
18060
18061 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
18062
18063         PR other/48748
18064         * doc/extend.texi (Type Traits): Document __is_standard_layout,
18065         __is_literal_type, and __is_trivial; update throughout about
18066         possibly cv-qualified void types.
18067
18068 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
18069
18070         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
18071         testsuite and make it version agnostic.
18072
18073 2011-04-22  Jan Hubicka  <jh@suse.cz>
18074
18075         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
18076
18077 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
18078
18079         PR c/48685
18080         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
18081         to VOID_TYPE even around MODIFY_EXPR.
18082
18083 2011-04-22  Mike Stump  <mikestump@comcast.net>
18084
18085         * gensupport.c (read_md_rtx): Fix typo in comment.
18086         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
18087         comment.
18088
18089 2011-04-22  Jan Hubicka  <jh@suse.cz>
18090
18091         * gengtype.c (open_base_files): Add ipa-inline.h include.
18092         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
18093         ipa-prop.c; update all uses.
18094         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
18095         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
18096         merge summary of inlined function into former caller.
18097         * ipa-inline.c (max_benefit): Remove.
18098         (edge_badness): Compensate for removal of benefits.
18099         (update_caller_keys): Use
18100         reset_node_growth_cache/reset_edge_growth_cache.
18101         (update_callee_keys): Likewise.
18102         (update_all_callee_keys): Likewise.
18103         (inline_small_functions): Do not collect max_benefit; do not reset
18104         estimated_growth; call free_growth_caches and initialize_growth_caches.
18105         * ipa-inline.h (struct condition, type clause_t, struct predicate,
18106         struct size_time_entry): New structures.
18107         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
18108         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
18109         and estimated_growth.
18110         (edge_growth_cache_entry): New structure.
18111         (node_growth_cache, edge_growth_cache): New global vars.
18112         (estimate_growth): Turn into inline.
18113         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
18114         initialize_growth_caches, free_growth_caches): Declare.
18115         (estimate_edge_growth): Rewrite.
18116         (estimate_edge_time): Implement as inline cache lookup.
18117         (reset_node_growth_cache, reset_edge_growth_cache): New inline
18118         functions.
18119         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
18120         (NUM_CONDITIONS): New constant.
18121         (predicate_conditions): New enum.
18122         (IS_NOT_CONSTANT): New constant.
18123         (edge_removal_hook_holder): New var.
18124         (node_growth_cache, edge_growth_cache): New global vars.
18125         (true_predicate, single_cond_predicate, false_predicate,
18126         not_inlined_predicate, add_condition, add_clause, and_predicates,
18127         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
18128         dump_clause, dump_predicate, account_size_time,
18129         evaulate_conditions_for_edge): New functions.
18130         (inline_summary_alloc): Move to heap.
18131         (inline_node_removal_hook): Clear condition and entry vectors.
18132         (inline_edge_removal_hook): New function.
18133         (initialize_growth_caches, free_growth_caches): New function.
18134         (dump_inline_summary): Update.
18135         (edge_execution_predicate): New function.
18136         (will_be_nonconstant_predicate): New function.
18137         (estimate_function_body_sizes): Compute BB and constantness predicates.
18138         (compute_inline_parameters): Do not clear estimated_growth.
18139         (estimate_edge_size_and_time): New function.
18140         (estimate_calls_size_and_time): New function.
18141         (estimate_callee_size_and_time): New function.
18142         (remap_predicate): New function.
18143         (inline_merge_summary): New function.
18144         (do_estimate_edge_time): New function based on...
18145         (estimate_edge_time): ... this one.
18146         (do_estimate_edge_growth): New function.
18147         (do_estimate_growth): New function based on....
18148         (estimate_growth): ... this one.
18149         (inline_analyze_function): Analyze after deciding on jump functions.
18150         (inline_read_section): New function.
18151         (inline_read_summary): Use it.
18152         (inline_write_summary): Write all the new data.
18153         * ipa-prop.c (ipa_get_param_decl_index): Export.
18154         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
18155         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
18156         Declare.
18157         (ipa_get_lattice): Move here from ipa-cp.c
18158         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
18159         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
18160         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
18161         cgraph_edge_inlinable_p): Remove.
18162         * cgraphunit.c: Include ipainline.h
18163         (cgraph_process_new_functions): Update call of
18164         compute_inline_parameters.
18165
18166 2011-04-22  Richard Guenther  <rguenther@suse.de>
18167
18168         * tree.c (build_int_cst): Properly create canonicalized integer
18169         constants.
18170         (build_int_cst_type): Remove scary comments.
18171
18172 2011-04-22  Xinliang David Li  <davidxl@google.com>
18173
18174         * toplev.c (process_options): Enable -Werror=coverage-mismatch
18175         by default when -Wno-error is not specified.
18176         * opts-global.c (decode_options): Remove call to
18177         control_warning_options.
18178
18179 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
18180
18181         PR tree-optimization/48717
18182         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
18183         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
18184
18185 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
18186
18187         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
18188         definition where used.
18189
18190 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
18191
18192         PR c/48716
18193         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
18194         TREE_STATIC variables declared inside of some OpenMP construct.
18195
18196 2011-04-22  Martin Jambor  <mjambor@suse.cz>
18197
18198         PR middle-end/48585
18199         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
18200
18201 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
18202
18203         PR c/36750
18204         * c-typeck.c (pop_init_level): Do not warn about initializing
18205         with ` = {0}'.
18206
18207 2011-04-22  Alan Modra  <amodra@gmail.com>
18208
18209         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
18210         when returning call_cookie.
18211         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
18212         pointers, to functions with no more vector args than the current
18213         function, and some non-local calls for ABI_V4.
18214         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
18215         sibcall_nonlocal_aix64): Combine to ..
18216         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
18217         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
18218         (sibcall_value_nonlocal_aix<mode>): ..likewise.
18219         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
18220         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
18221         operand.
18222         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
18223         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
18224         sibcall_value_symbolic_64): Delete.
18225
18226 2011-04-21  Xinliang David Li  <davidxl@google.com>
18227
18228         * cgraph.h: Remove pid.
18229         * cgraph.c: Remove pid.
18230         * value-prof.c (init_node_map): New function.
18231         (del_node_map): New function.
18232         (find_func_by_funcdef_no): New function.
18233         (gimple_ic_transform): Call new function.
18234         * cgraphunit.c (cgraph_finalize_function): Remove pid.
18235         * function.c (get_last_funcdef_no): New function.
18236         * function.h (get_last_funcdef_no): New function.
18237         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
18238         to libgcov function.
18239         (tree-profiling): Call node map init and delete function.
18240
18241 2011-04-21  Ian Lance Taylor  <iant@google.com>
18242
18243         * godump.c (go_format_type): Use exported Go name for anonymous
18244         field name.
18245
18246 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
18247
18248         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
18249         Call builtin_function_type_list instead of builtin_function_type.
18250         (UNARY, BINARY, TRINARY, QUAD): Likewise.
18251
18252 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
18253
18254         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
18255         build_function_type_list instead of build_function_type.
18256         Delete variable `endlink'.
18257
18258 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
18259
18260         * config/s390/s390.c (s390_init_builtins): Call
18261         build_function_type_list instead of build_function_type.
18262
18263 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
18264
18265         * config/ia64/ia64.c (ia64_init_builtins): Call
18266         build_function_type_list instead of builtin_function_type.
18267
18268 2011-04-21  Easwaran Raman  <eraman@google.com>
18269
18270         * cfgexpand.c (stack_var): Remove OFFSET...
18271         (add_stack_var): ...and its reference here...
18272         (expand_stack_vars): ...and here.
18273         (stack_var_cmp): Sort by descending order of size.
18274         (partition_stack_vars): Change heuristic.
18275         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
18276         (dump_stack_var_partition): Add newline after each partition.
18277
18278 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
18279             Jeff Law  <law@redhat.com>
18280
18281         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
18282         * gengtype.c (matching_file_name_substitute): Likewise.
18283
18284 2011-04-21  Richard Guenther  <rguenther@suse.de>
18285
18286         PR lto/48703
18287         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
18288
18289 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
18290
18291         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
18292
18293 2011-04-21  Richard Guenther  <rguenther@suse.de>
18294
18295         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
18296         file name.
18297
18298 2011-04-21  Richard Guenther  <rguenther@suse.de>
18299
18300         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
18301         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
18302         Use DECL_P, not SSA_VAR_P.
18303         (ptr_derefs_may_alias_p): Likewise.
18304         (ptr_deref_may_alias_ref_p_1): Likewise.
18305         (decl_refs_may_alias_p): Likewise.
18306         (refs_may_alias_p_1): Likewise.
18307         (ref_maybe_used_by_call_p_1): Likewise.
18308         (call_may_clobber_ref_p_1): Likewise.
18309         (indirect_ref_may_alias_decl_p): Assume indirect refrences
18310         are either MEM_REF or TARGET_MEM_REF.
18311         (indirect_refs_may_alias_p): Likewise.
18312         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
18313         for MEM_EXPR of indirect calls.
18314
18315 2011-04-21  Tristan Gingold  <gingold@adacore.com>
18316
18317         * vmsdbgout.c (write_srccorr): Compute file length from the string.
18318         (dst_file_info_struct): Remove flen field.
18319         (lookup_filename): Remove code that set flen field.
18320
18321 2011-04-21  Tristan Gingold  <gingold@adacore.com>
18322
18323         * config/ia64/ia64.c (ia64_start_function): Add a guard.
18324
18325 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
18326
18327         PR target/48708
18328         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
18329         vec_extract and vec_concat for non-SSE4_1 targets.
18330
18331 2011-04-21  Richard Guenther  <rguenther@suse.de>
18332
18333         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
18334         return statements.
18335
18336 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
18337
18338         * config/i386/cygming.h (union tree_node, TREE): Don't define or
18339         undefine.
18340         (FILE): Don't undefine.
18341
18342 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
18343
18344         * config/alpha/alpha.c (struct machine_function): Use rtx, not
18345         struct rtx_def *.
18346         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
18347         struct rtx_def *.
18348         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
18349         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
18350         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
18351         rtx_def *.
18352         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
18353         definitions where used.
18354         * config/microblaze/microblaze.h (struct microblaze_args): Use
18355         rtx, not struct rtx_def *.
18356         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
18357         rtx_def *.
18358         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
18359         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
18360         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
18361         not struct rtx_def *.
18362         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
18363         struct rtx_def *.
18364         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
18365         rtx_def *.
18366         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
18367
18368 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
18369
18370         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
18371         operand_equal_p to compare DR_BASE_ADDRESSes.
18372         (vect_check_interleaving): Likewise.
18373
18374 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
18375
18376         PR target/46329
18377         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
18378         for all Neon struct constants.
18379
18380 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
18381
18382         * target.def (legitimate_constant_p): New hook.
18383         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
18384         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
18385         * doc/tm.texi: Regenerate.
18386         * hooks.h (hook_bool_mode_rtx_true): Declare.
18387         * hooks.c (hook_bool_mode_rtx_true): Define.
18388         * system.h (LEGITIMATE_CONSTANT_P): Poison.
18389         * calls.c (precompute_register_parameters): Replace uses of
18390         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
18391         (emit_library_call_value_1): Likewise.
18392         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
18393         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
18394         * ira-costs.c (scan_one_insn): Likewise.
18395         * recog.c (general_operand, immediate_operand): Likewise.
18396         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
18397         * reload1.c (init_eliminable_invariants): Likewise.
18398
18399         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
18400         mode argument.
18401         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
18402         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
18403         argument.
18404         (TARGET_LEGITIMATE_CONSTANT_P): Define.
18405         * config/alpha/predicates.md (input_operand): Update call to
18406         alpha_legitimate_constant_p.
18407
18408         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
18409         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
18410         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
18411         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18412         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
18413         (arm_legitimate_constant_p): New functions.
18414         (arm_cannot_force_const_mem): Make static.
18415
18416         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
18417
18418         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
18419         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
18420         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
18421         instead of bfin_legitimate_constant_p.
18422         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
18423         (TARGET_LEGITIMATE_CONSTANT_P): Define.
18424
18425         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
18426
18427         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
18428
18429         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
18430         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
18431         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18432         (frv_legitimate_constant_p): Make static.  Add a mode argument.
18433
18434         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
18435         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
18436         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
18437
18438         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
18439         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
18440         * config/i386/i386.c (legitimate_constant_p): Rename to...
18441         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
18442         argument.
18443         (ix86_cannot_force_const_mem): Update accordingly.
18444         (ix86_legitimate_address_p): Likewise.
18445         (TARGET_LEGITIMATE_CONSTANT_P): Define.
18446         * config/i386/i386.md: Update commentary.
18447
18448         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
18449         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
18450         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18451         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
18452
18453         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
18454
18455         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
18456         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
18457         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18458         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
18459
18460         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
18461         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
18462         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
18463
18464         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
18465         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18466         (m32r_legitimate_constant_p): New function.
18467
18468         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
18469         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
18470         LEGITIMATE_CONSTANT_P.
18471         (LEGITIMATE_CONSTANT_P): Delete.
18472         * config/m68k/m68k.c (m68k_expand_prologue): Call
18473         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
18474         (m68k_legitimate_constant_p): New function.
18475         * config/m68k/m68k.md: Update comments.
18476
18477         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
18478         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18479         (mcore_legitimate_constant_p): New function.
18480
18481         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
18482         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
18483         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
18484         Add a mode argument.
18485         (mep_legitimate_address): Update accordingly.
18486         (TARGET_LEGITIMATE_CONSTANT_P): Define.
18487
18488         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
18489         Delete.
18490         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
18491         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
18492         static.  Check OP's mode for VOIDmode.
18493         (microblaze_legitimate_constant_p): New function.
18494         (TARGET_LEGITIMATE_CONSTANT_P): Define.
18495
18496         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
18497         * config/mips/mips.c (mips_legitimate_constant_p): New function.
18498         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
18499         (TARGET_LEGITIMATE_CONSTANT_P): Define.
18500         * config/mips/predicates.md: Update comments.
18501
18502         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
18503         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
18504         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18505         (mmix_legitimate_constant_p): Make static, return a bool, and take
18506         a mode argument.
18507         (mmix_print_operand_address): Update accordingly.
18508
18509         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
18510         Delete.
18511         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
18512         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
18513         static.  Add a mode argument.
18514         (TARGET_LEGITIMATE_CONSTANT_P): Define.
18515
18516         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
18517
18518         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
18519         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18520         (pa_legitimate_constant_p): New function.
18521
18522         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
18523
18524         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
18525         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18526         (pdp11_legitimate_constant_p): New function.
18527
18528         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
18529         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18530         (rs6000_legitimate_constant_p): New function.
18531
18532         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
18533         (rx_legitimate_constant_p): ...this.
18534         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
18535         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
18536         (rx_legitimate_constant_p): ...this.
18537         (TARGET_LEGITIMATE_CONSTANT_P): Define.
18538         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
18539
18540         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
18541         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
18542         * config/s390/s390.c (legitimate_constant_p): Rename to...
18543         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
18544         and add a mode argument.
18545         (TARGET_LEGITIMATE_CONSTANT_P): Define.
18546
18547         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
18548
18549         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
18550         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18551         (sh_legitimate_constant_p): New function.
18552
18553         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
18554         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
18555         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18556         (legitimate_constant_p): Rename to...
18557         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
18558         argument.
18559         (constant_address_p): Update accordingly.
18560
18561         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
18562         argument and return a bool.
18563         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
18564         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18565         (spu_legitimate_constant_p): Add a mode argument and return a bool.
18566         (spu_rtx_costs): Update accordingly.
18567         * config/spu/predicates.md (vec_imm_operand): Likewise.
18568
18569         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
18570
18571         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
18572         * config/v850/v850.c (v850_legitimate_constant_p): New function.
18573         (TARGET_LEGITIMATE_CONSTANT_P): Define.
18574
18575         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
18576         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
18577         * config/vax/vax.c (legitimate_constant_p): Likewise.
18578
18579         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
18580         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18581         (xtensa_legitimate_constant_p): New function.
18582
18583 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
18584
18585         * target.def (cannot_force_const_mem): Add a mode argument.
18586         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
18587         * doc/tm.texi: Regenerate.
18588         * hooks.h (hook_bool_mode_rtx_false): Declare.
18589         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
18590         (hook_bool_mode_const_rtx_true): Likewise.
18591         (hook_bool_mode_rtx_false): New function.
18592         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
18593         to be non-VOID.  Update call to cannot_force_const_mem.
18594         (find_reloads): Update accordingly.
18595         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
18596         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
18597         argument.
18598         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
18599         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
18600         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
18601         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
18602         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
18603         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
18604         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
18605         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
18606         (m68k_cannot_force_const_mem): ...this new function.
18607         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
18608         argument.
18609         (mips_const_insns, mips_legitimize_const_move): Update calls.
18610         (mips_secondary_reload_class): Likewise.
18611         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
18612         (pa_cannot_force_const_mem): ...this new function.
18613         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
18614         (rs6000_cannot_force_const_mem): ...this new function.
18615         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
18616         argument.
18617         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
18618         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
18619         to...
18620         (xtensa_cannot_force_const_mem): ...this new function.
18621
18622 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
18623
18624         * config/mips/mips.c (mips16_build_function_stub): Call
18625         build_function_type_list instead of build_function_type.
18626         (mips16_build_call_stub): Likewise.
18627
18628 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
18629
18630         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
18631         instead of build_function_type.
18632
18633 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
18634
18635         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
18636         instead of build_function_type.
18637
18638 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
18639
18640         PR target/48678
18641         * config/i386/i386.md (insv): Change operand 0 constraint to
18642         "register_operand".  Change operand 1 and 2 constraint to
18643         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
18644         * config/i386/sse.md (sse4_1_pinsrb): Export.
18645         (sse2_pinsrw): Ditto.
18646         (sse4_1_pinsrd): Ditto.
18647         (sse4_1_pinsrq): Ditto.
18648         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
18649         * config/i386/i386.c (ix86_expand_pinsr): New.
18650
18651 2011-04-20  Easwaran Raman  <eraman@google.com>
18652
18653         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
18654         containing union type only with -fstrict-aliasing.
18655
18656 2011-04-20  Jim Meyering  <meyering@redhat.com>
18657
18658         Remove useless if-before-free tests.
18659         * calls.c (expand_call, save_area): Likewise.
18660         * cfgcleanup.c (try_forward_edges): Likewise.
18661         * collect2.c (collect_execute): Likewise.
18662         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
18663         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
18664         * coverage.c (coverage_checksum_string): Likewise.
18665         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
18666         * cselib.c (cselib_init): Likewise.
18667         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
18668         (df_set_clean_cfg): Likewise.
18669         * function.c (free_after_compilation): Likewise.
18670         * gcc.c (do_spec_1, main): Likewise.
18671         * gcov.c (create_file_names): Likewise.
18672         * gensupport.c (identify_predicable_attribute): Likewise.
18673         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
18674         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
18675         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
18676         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
18677         * ipa-pure-const.c (local_pure_const): Likewise.
18678         * ipa-reference.c (propagate): Likewise.
18679         * ira-costs.c (free_ira_costs): Likewise.
18680         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
18681         * matrix-reorg.c (mat_free): Likewise.
18682         * prefix.c (get_key_value): Likewise.
18683         * profile.c (compute_value_histograms): Likewise.
18684         * reload1.c (free_reg_equiv): Likewise.
18685         * sched-deps.c (free_deps): Likewise.
18686         * sel-sched-ir.c (fence_clear): Likewise.
18687         * sese.c (set_rename, if_region_set_false_region): Likewise.
18688         * tree-data-ref.c (free_rdg): Likewise.
18689         * tree-eh.c (lower_try_finally): Likewise.
18690         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
18691         * tree-ssa-live.c (delete_var_map): Likewise.
18692         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
18693         * tree-ssa-pre.c (phi_trans_add): Likewise.
18694
18695 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
18696
18697         PR tree-optimization/48611
18698         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
18699         beyond ERT_MUST_NOT_THROW region.
18700
18701 2011-04-20  Catherine Moore  <clm@codesourcery.com>
18702
18703         * config/mips/mips.opt (mfix-24k): New.
18704         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
18705         * config/mips/mips.md (length): Increase by 4 for stores if
18706         fixing 24K errata.
18707         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
18708         all noreorder if fixing 24K errata.
18709         * doc/invoke.texi: Document mfix-24k.
18710
18711 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
18712
18713         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
18714         quad-word modes, reduce to 9-bit index range when above 1016 limit.
18715
18716 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
18717
18718         * config/arm/arm.c (arm_gen_constant): Move movw support ....
18719         (const_ok_for_op): ... to here.
18720
18721 2011-04-20  Kai Tietz  <ktietz@redhat.com>
18722
18723         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
18724         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
18725
18726 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
18727
18728         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
18729
18730 2011-04-20  Richard Guenther  <rguenther@suse.de>
18731
18732         PR tree-optimization/47892
18733         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
18734         are if-convertible.
18735
18736 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
18737
18738         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
18739
18740 2011-04-20  Tristan Gingold  <gingold@adacore.com>
18741
18742         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
18743
18744 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
18745
18746         PR target/18145
18747
18748         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
18749         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
18750         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
18751         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
18752         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
18753
18754         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
18755         New prototype.
18756
18757         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
18758         (avr_asm_named_section, avr_asm_output_aligned_common,
18759         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
18760         New functions to update...
18761         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
18762         (avr_asm_init_sections): Overwrite section callbacks for
18763         data_section, bss_section.
18764         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
18765         from here to...
18766         (avr_file_end): ...here.
18767
18768 2011-04-20  Richard Guenther  <rguenther@suse.de>
18769
18770         PR middle-end/48695
18771         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
18772         objects and types here.  Adjust for their offset before comparing.
18773
18774 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
18775
18776         * tree-vect-stmts.c (vectorizable_store): Only chain one related
18777         statement per copy.
18778
18779 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
18780
18781         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
18782         (GIMPLE_H): Include $(INTERNAL_FN_H).
18783         (OBJS-common): Add internal-fn.o.
18784         (internal-fn.o): New rule.
18785         * internal-fn.def: New file.
18786         * internal-fn.h: Likewise.
18787         * internal-fn.c: Likewise.
18788         * gimple.h: Include internal-fn.h.
18789         (GF_CALL_INTERNAL): New gf_mask.
18790         (gimple_statement_call): Put fntype into a union with a new
18791         internal_fn field.
18792         (gimple_build_call_internal): Declare.
18793         (gimple_build_call_internal_vec): Likewise.
18794         (gimple_call_same_target_p): Likewise.
18795         (gimple_call_internal_p): New function.
18796         (gimple_call_internal_fn): Likewise.
18797         (gimple_call_fntype): Return null for internal calls.
18798         (gimple_call_set_fntype): Assert that the function is not internal.
18799         (gimple_call_set_fn): Likewise.
18800         (gimple_call_set_fndecl): Likewise.
18801         (gimple_call_set_internal_fn): New function.
18802         (gimple_call_addr_fndecl): Handle null functions.
18803         (gimple_call_return_type): Likewise null types.
18804         * gimple.c (gimple_build_call_internal_1): New function.
18805         (gimple_build_call_internal): Likewise.
18806         (gimple_build_call_internal_vec): Likewise.
18807         (gimple_call_same_target_p): Likewise.
18808         (gimple_call_flags): Handle calls to internal functions.
18809         (gimple_call_fnspec): New function.
18810         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
18811         (gimple_has_side_effects): Handle null functions.
18812         (gimple_rhs_has_side_effects): Likewise.
18813         (gimple_call_copy_skip_args): Handle calls to internal functions.
18814         * cfgexpand.c (expand_call_stmt): Likewise.
18815         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
18816         * gimple-fold.c (gimple_fold_call): Handle null functions.
18817         (gimple_fold_stmt_to_constant_1): Don't fold
18818         calls to internal functions.
18819         * gimple-low.c (gimple_check_call_args): Handle calls to internal
18820         functions.
18821         * gimple-pretty-print.c (dump_gimple_call): Likewise.
18822         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
18823         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
18824         (do_warn_unused_result): Likewise.
18825         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
18826         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
18827         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
18828         the target of a call.
18829         (initialize_hash_element): Update accordingly.
18830         (hashable_expr_equal_p): Use gimple_call_same_target_p.
18831         (iterative_hash_hashable_expr): Handle calls to internal functions.
18832         (print_expr_hash_elt): Likewise.
18833         * tree-ssa-pre.c (can_value_number_call): Likewise.
18834         (eliminate): Handle null functions.
18835         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
18836         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
18837         (find_func_aliases): Likewise.
18838         * value-prof.c (gimple_ic_transform): Likewise.
18839         (gimple_indirect_call_to_profile): Likewise.
18840         * lto-streamer-in.c (input_gimple_stmt): Likewise.
18841         * lto-streamer-out.c (output_gimple_stmt): Likewise.
18842
18843 2011-04-19  Jan Hubicka  <jh@suse.cz>
18844
18845         * ipa-inline-transform.c (save_inline_function_body): Add comments.
18846         * ipa-inline.c (inline_small_functions): Compute summaries first,
18847         populate heap later.
18848
18849 2011-04-19  Jan Hubicka  <jh@suse.cz>
18850
18851         * cgraph.h (save_inline_function_body): Remove.
18852         * ipa-inline-transform.c: New file, broke out of...
18853         * ipa-inline.c: ... this one; Update toplevel comment.
18854         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
18855         make global.
18856         (update_noncloned_frequencies): Move to ipa-inline-transform.c
18857         (cgraph_mark_inline_edge): Rename to inline_call; move to
18858         ipa-inline-transform.c.
18859         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
18860         move to ipa-inline-transform.c
18861         (recursive_inlining, inline_small_functions, flatten_function,
18862         ipa_inline, inline_always_inline_functions,
18863         early_inline_small_functions): Update.
18864         (inline_transform): Move to ipa-inline-transform.c.
18865         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
18866         Declare.
18867         * Makefile.in (ipa-inline-transform.o): New file.
18868         * cgraphunit.c (save_inline_function_body): Move to
18869         ipa-inline-transform.c
18870
18871 2011-04-19  DJ Delorie  <dj@redhat.com>
18872
18873         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
18874         registers if we already know there aren't any.
18875         (m32c_emit_epilogue): Don't emit a barrier here.
18876         (m32c_emit_eh_epilogue): Likewise.
18877         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
18878         operands at expand time.
18879         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
18880         int" wchar type.
18881         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
18882         duplicates.  Provide aliases instead.
18883         * config/m32c/prologue.md (eh_return): Emit a barrier here.
18884         (eh_epilogue): Add a "(return)" here as a hint to other parts of
18885         the compiler.
18886
18887 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
18888
18889         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
18890         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
18891         (general_or_i64_p, sparc_register_move_cost): New function.
18892
18893 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18894
18895         * doc/install.texi (Configuration, --enable-threads): Remove mach.
18896         Add lynx, mipssde.  Sort table.
18897
18898 2011-04-19  Xinliang David Li  <davidxl@google.com>
18899
18900         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
18901         not negative.
18902
18903 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
18904
18905         PR target/48678
18906         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
18907         is a SUBREG with non-MODE_INT mode inside of it.
18908
18909 2011-04-19  Martin Jambor  <mjambor@suse.cz>
18910
18911         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
18912         also according to actual contants.
18913         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
18914         (gimple_fold_call): Use it.
18915         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
18916
18917 2011-04-19  Martin Jambor  <mjambor@suse.cz>
18918
18919         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
18920         non-pointer assignments.
18921
18922 2011-04-19  Martin Jambor  <mjambor@suse.cz>
18923
18924         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
18925         account anc_offset and otr_type from the indirect edge info.
18926         * ipa-prop.c (get_ancestor_addr_info): New function.
18927         (compute_complex_ancestor_jump_func): Assignment analysis moved to
18928         get_ancestor_addr_info, call it.
18929         (ipa_note_param_call): Do not initialize information about polymorphic
18930         calls, return the indirect call graph edge.  Remove the last
18931         parameter, adjust all callers.
18932         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
18933         parameters.  Initialize polymorphic information in the indirect edge.
18934
18935 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
18936
18937         PR lto/48148
18938         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
18939         the types if they have different enumeration identifiers.
18940
18941 2011-04-19  Jan Hubicka  <jh@suse.cz>
18942
18943         * cgraph.h (cgraph_optimize_for_size_p): Declare.
18944         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
18945         * predict.c (cgraph_optimize_for_size_p): Break out from ...
18946         (optimize_function_for_size_p) ... here.
18947
18948 2011-04-19  Richard Guenther  <rguenther@suse.de>
18949
18950         PR lto/48207
18951         * tree.c (free_lang_data): Do not reset the decl-assembler-name
18952         langhook.
18953
18954 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
18955
18956         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
18957         if DECL_NO_INLINE_WARNING_P is set on the function.
18958
18959 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
18960
18961         PR fortran/47976
18962         * reload1.c (inc_for_reload): Return void. All callers changed.
18963         (emit_input_reload_insns): Don't try to delete previous output
18964         reloads to a register, or record spill_reg_store for autoincs.
18965
18966 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
18967
18968         * gengtype.h: Updated copyright year.
18969         (struct input_file_st): Add inpisplugin field.
18970         (type_fileloc): New function.
18971         * gengtype.c
18972         (write_typed_struct_alloc_def): Add gcc_assert.
18973         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
18974         (write_typed_alloc_defns): Don't output for plugin files.
18975         (input_file_by_name): Clear inpisplugin field.
18976         (main): Set inpisplugin field for plugin files.
18977
18978 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
18979
18980         * gengtype-state.c (string_eq): New.
18981         (read_state): Use string_eq instead of strcmp when creating the
18982         state_ident_tab.
18983
18984 2011-04-19  Wei Guozhi  <carrot@google.com>
18985
18986         PR target/47855
18987         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
18988         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
18989         linkage.
18990         * config/arm/constraints.md (Uu): New constraint.
18991         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
18992
18993 2011-04-19  Tristan Gingold  <gingold@adacore.com>
18994
18995         * config.gcc (-*-*-*vms): Added.
18996         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
18997         definitions moved.
18998         * config/vms/vms-ld.c: New file.
18999         * config/vms/vms-ar.c: New file.
19000         * config/vms/t-vmsnative: New file.
19001
19002 2011-04-18  Xinliang David Li  <davidxl@google.com>
19003
19004         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
19005
19006 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
19007
19008         PR middle-end/48661
19009         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
19010         if TREE_TYPE (v) is non-NULL.
19011
19012         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
19013         gimple_get_virt_mehtod_for_binfo.
19014         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
19015         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
19016         callers.
19017         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19018
19019 2011-04-18  Michael Matz  <matz@suse.de>
19020             Steve Ellcey  <sje@cup.hp.com>
19021
19022         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
19023         use its mode as source mode if it isn't VOIDmode.
19024
19025 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
19026
19027         * doc/passes.texi: Fill crossref nodes.
19028
19029 2011-04-18  Jim Meyering  <meyering@redhat.com>
19030
19031         Fix doubled-word typos in comments and strings
19032         * config/alpha/vms-unwind.h: s/for for/for/
19033         * config/arm/unwind-arm.h: Likewise.
19034         * config/microblaze/microblaze.c: Likewise.
19035         * config/sh/constraints.md: s/in in/in/
19036         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
19037
19038 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
19039
19040         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
19041         (AVX_FLOAT_MODE_P): Ditto.
19042         (AVX128_VEC_FLOAT_MODE_P): Ditto.
19043         (AVX256_VEC_FLOAT_MODE_P): Ditto.
19044         (AVX_VEC_FLOAT_MODE_P): Ditto.
19045         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
19046         (UNSPEC_MASKSTORE): Ditto.
19047         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
19048         Merge from <sse>_movmsk<ssemodesuffix> and
19049         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
19050         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
19051         iterator.
19052         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
19053         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
19054         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
19055
19056 2011-04-18  Jan Hubicka  <jh@suse.cz>
19057
19058         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
19059
19060         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
19061         (want_inline_function_called_once_p): Break out the logic from
19062         ipa_inline.
19063         (edge_badness): Ensure that profile is not misupdated.
19064         (lookup_recursive_calls): Prioritize by call frequencies.
19065         (inline_small_functions): Move program size estimates here;
19066         actually process whole queue even when unit growth has been
19067         met. (to properly compute inline_failed reasons and for the
19068         case unit size decrease.) Revisit comments on recursive inlining.
19069         (ipa_inline): Remove unit summary code; first inline hot calls
19070         of functions called once, cold calls next.
19071         (order, nnodes): Remove unused variables.
19072         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
19073         (GTFILES): Remove ipa-inline.c
19074         * sel-sched.c (fill_insns): Silence uninitialized var warning.
19075
19076 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
19077
19078         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
19079
19080 2011-04-18  Jie Zhang  <jie@codesourcery.com>
19081             Richard Earnshaw  <rearnsha@arm.com>
19082
19083         * arm.c (neon_builtin_type_bits): Remove.
19084         (typedef enum neon_builtin_mode): New.
19085         (T_MAX): Don't define.
19086         (typedef enum neon_builtin_datum): Remove bits, codes[],
19087         num_vars and base_fcode.  Add mode, code and fcode.
19088         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
19089         VAR10): Change accordingly.
19090         (neon_builtin_data[]): Change accordingly
19091         (arm_init_neon_builtins): Change accordingly.
19092         (neon_builtin_compare): Remove.
19093         (locate_neon_builtin_icode): Remove.
19094         (arm_expand_neon_builtin): Change accordingly.
19095
19096         * arm.h (enum arm_builtins): Move to ...
19097         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
19098
19099         * arm.c (arm_builtin_decl): Declare.
19100         (TARGET_BUILTIN_DECL): Define.
19101         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
19102         (arm_builtin_decls[]): New.
19103         (arm_init_neon_builtins): Store builtin declarations in
19104         arm_builtin_decls[].
19105         (arm_init_tls_builtins): Likewise.
19106         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
19107         (arm_builtin_decl): New.
19108
19109 2011-04-18  Richard Guenther  <rguenther@suse.de>
19110
19111         * tree.c (upper_bound_in_type): Build properly canonicalized
19112         INTEGER_CSTs.
19113         (lower_bound_in_type): Likewise.
19114
19115 2011-04-18  Richard Guenther  <rguenther@suse.de>
19116
19117         * gimple.h (gimple_call_addr_fndecl): New function.
19118         (gimple_call_fndecl): Use it.
19119         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
19120         for direct calls.
19121         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
19122         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
19123
19124 2011-04-18  Richard Guenther  <rguenther@suse.de>
19125
19126         PR middle-end/48650
19127         * tree.c (build_string): STRING_CST is now derived from tree_typed.
19128
19129 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
19130
19131         PR lto/48492
19132         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
19133         DECL_IN_CONSTANT_POOL without RTL.
19134
19135 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
19136             Ira Rosen  <ira.rosen@linaro.org>
19137
19138         PR target/48252
19139         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
19140         to match neon_vzip/vuzp/vtrn_internal.
19141         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
19142         outputs explicitly dependent on both inputs.
19143         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
19144
19145 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
19146
19147         PR tree-optimization/48616
19148         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
19149         whether the shift is by scalar or vector based on whether all SLP
19150         scalar stmts have the same rhs.
19151
19152 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
19153
19154         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
19155         memory operands.
19156
19157 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
19158
19159         PR target/43700
19160         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
19161         registers.
19162
19163 2011-04-17  Jan Hubicka  <jh@suse.cz>
19164
19165         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
19166         * cgrpahunit.c (cgraph_finalize_function): Do not set
19167         finalized_by_frontend.
19168         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
19169         finalized_by_frontend.
19170
19171 2011-04-17  Jan Hubicka  <jh@suse.cz>
19172
19173         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
19174         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
19175         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
19176         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
19177         method.
19178         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
19179         gimple-fold.c
19180         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
19181
19182 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
19183
19184         PR lto/48538
19185         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
19186         is non-null before accessing it.
19187         (input_cgraph): Remove trailing spaces.
19188
19189 2011-04-17  Revital Eres  <revital.eres@linaro.org>
19190
19191         * params.def (sms-min-sc): New param flag.
19192         * modulo-sched.c (sms_schedule): Use it.
19193         * doc/invoke.texi (sms-min-sc): Document it.
19194
19195 2011-04-17  Jan Hubicka  <jh@suse.cz>
19196
19197         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
19198         present, also set gimple_call_set_cannot_inline.
19199         * ipa-inline.c: Update toplevel comment.
19200         (MAX_TIME): Remove.
19201         (cgraph_clone_inlined_nodes): Fix linebreaks.
19202         (cgraph_check_inline_limits): Restructure to ...
19203         (caller_growth_limits): ... this one; be more tolerant
19204         on growth in nested inline chains; add explanatory comment;
19205         fix stack accounting thinko introduced by previous patch.
19206         (cgraph_default_inline_p): Remove.
19207         (report_inline_failed_reason): New function.
19208         (can_inline_edge_p): New function.
19209         (can_early_inline_edge_p): New function.
19210         (leaf_node_p): Move upwards in file.
19211         (want_early_inline_function_p): New function.
19212         (want_inline_small_function_p): New function.
19213         (want_inline_self_recursive_call_p): New function.
19214         (cgraph_edge_badness): Rename to ...
19215         (edge_badness) ... this one; fix linebreaks.
19216         (update_edge_key): Update call of edge_baddness; add
19217         detailed dump about queue updates.
19218         (update_caller_keys): Use can_inline_edge_p and
19219         want_inline_small_function_p.
19220         (cgraph_decide_recursive_inlining): Rename to...
19221         (recursive_inlining): Use can_inline_edge_p and
19222         want_inline_self_recursive_call_p; simplify and remove no longer
19223         valid FIXME.
19224         (cgraph_set_inline_failed): Remove.
19225         (add_new_edges_to_heap): Use can_inline_edge_p and
19226         want_inline_small_function_p.
19227         (cgraph_decide_inlining_of_small_functions): Rename to ...
19228         (inline_small_functions): ... this one; cleanup; use
19229         can/want predicates; cleanup debug ouput; work edges till fibheap
19230         is exhausted and do not stop once unit growth is reached; remove
19231         later loop processing remaining edges.
19232         (cgraph_flatten): Rename to ...
19233         (flatten_function): ... this one; use can_inline_edge_p
19234         and can_early_inline_edge_p predicates.
19235         (cgraph_decide_inlining): Rename to ...
19236         (ipa_inline): ... this one; remove unreachable nodes before
19237         inlining functions called once; simplify the pass.
19238         (cgraph_perform_always_inlining): Rename to ...
19239         (inline_always_inline_functions): ... this one; use
19240         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
19241         (cgraph_decide_inlining_incrementally): Rename to ...
19242         (early_inline_small_functions): ... this one; simplify
19243         using new predicates; cleanup; make dumps prettier.
19244         (cgraph_early_inlining): Rename to ...
19245         (early_inliner): newer inline regular functions into always-inlines;
19246         fix updating of call stmt summaries.
19247         (pass_early_inline): Update for new names.
19248         (inline_transform): Fix formating.
19249         (gate_cgraph_decide_inlining): Rename to ...
19250         (pass_ipa_inline): ... this one.
19251         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
19252         * ipa-inline-analysis.c (dump_inline_summary): Update.
19253         (compute_inline_parameters): Do not compute disregard_inline_limits;
19254         look for mismatching arguments.
19255         (estimate_growth): Fix handlig of non-trivial self recursion.
19256         (inline_read_summary): Do not read info->disregard_inline_limits.
19257         (inline_write_summary): Do not write info->disregard_inline_limits.
19258         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
19259         and move all checks into can_inline_edge_p predicate; re-enable code
19260         comparing optimization levels.
19261         (expand_call_inline): Do not test inline_forbidden_into_p.
19262         * Makefile.in (ipa-inline.o): Update arguments.
19263
19264 2011-04-17  Revital Eres  <revital.eres@linaro.org>
19265
19266         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
19267
19268 2011-04-17  Revital Eres  <revital.eres@linaro.org>
19269
19270         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
19271
19272 2011-04-17  Michael Matz  <matz@suse.de>
19273
19274         PR tree-optimization/48622
19275         PR lto/48645
19276         * ipa-inline-analysis.c (inline_read_summary): Read size/time
19277         in same order as they're written.
19278
19279 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19280
19281         * config/pa/predicates.md: Reorganize and simplify predicates.
19282         Eliminate duplicate code checks.
19283         (arith_operand): Rename to arith14_operand
19284         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
19285         * config/pa/pa.md: Use renamed operands.
19286         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
19287         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
19288         arith11_operand, adddi3_operand, indexed_memory_operand,
19289         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
19290         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
19291         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
19292         move_dest_operand, move_src_operand, prefetch_cc_operand,
19293         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
19294         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
19295         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
19296         div_operand, int5_operand, movb_comparison_operator,
19297         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
19298         arith_double_operand, ireg_operand, lhs_lshift_operand,
19299         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
19300         integer_store_memory_operand): Likewise.
19301         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
19302         (integer_store_memory_operand, read_only_operand,
19303         function_label_operand, borx_reg_operand,
19304         non_hard_reg_operand): Likewise.
19305         (eq_neq_comparison_operator): Delete unused operator.
19306         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
19307         function_label_operand.
19308         (emit_move_sequence): Likewise.
19309
19310 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
19311
19312         * config/i386/sse.md (sseunpackmode): New mode attribute.
19313         (ssepackmode): Ditto.
19314         (vec_pack_trunc_<mode>): Macroize expander from
19315         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
19316         (vec_unpacks_lo_<mode>): Macroize expander from
19317         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19318         (vec_unpacks_hi_<mode>): Macroize expander from
19319         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19320         (vec_unpacku_lo_<mode>): Macroize expander from
19321         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19322         (vec_unpacku_hi_<mode>): Macroize expander from
19323         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
19324         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
19325         ix86_expand_sse4_unpack.
19326         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
19327
19328 2011-04-16  Jan Hubicka  <jh@suse.cz>
19329
19330         * cgraphbuild.c: Include ipa-inline.h.
19331         (reset_inline_failed): Use initialize_inline_failed.
19332         * cgraph.c: Include ipa-inline.h.
19333         (cgraph_create_node_1): Do not initialize estimated_growth.
19334         (initialize_inline_failed): More to ipa-inline-analysis.c
19335         (dump_cgraph_node): Do not dump inline flags.
19336         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
19337         and disregard_inline_limits flags.
19338         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
19339         time, size, estimated_growth.
19340         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
19341         Update.
19342         * cgraphunit.c (cgraph_decide_is_function_needed): Use
19343         DECL_DISREGARD_INLINE_LIMITS.
19344         (cgraph_analyze_function): Do not initialize
19345         node->local.disregard_inline_limits.
19346         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
19347         inlinable, versionable and disregard_inline_limits.
19348         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
19349         cgraph_check_inline_limits, cgraph_default_inline_p,
19350         cgraph_edge_badness, update_caller_keys, update_callee_keys,
19351         add_new_edges_to_heap): Update.
19352         (cgraph_decide_inlining_of_small_function): Update; set
19353         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
19354         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
19355         cgraph_decide_inlining_incrementally): Update.
19356         * ipa-inline.h (inline_summary): Add inlinable, versionable,
19357         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
19358         time, size and estimated_growth parameters.
19359         (estimate_edge_growth): Update.
19360         (initialize_inline_failed): Declare.
19361         * ipa-split.c: Include ipa-inline.h
19362         (execute_split_functions): Update.
19363         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
19364         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
19365         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
19366         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
19367         estimated_growth to INT_MIN.
19368         (inline_node_duplication_hook): Likewise.
19369         (dump_inline_summary): Dump new fields.
19370         (compute_inline_parameters): Update.
19371         (estimate_edge_time, estimate_time_after_inlining,
19372         estimate_size_after_inlining, estimate_growth, inline_read_summary,
19373         inline_write_summary):
19374         (initialize_inline_failed): Move here from cgraph.c.
19375         * tree-sra.c: Include ipa-inline.h.
19376         (ipa_sra_preliminary_function_checks): Update.
19377         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
19378         ipa-inline.h.
19379
19380 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
19381
19382         * config/i386/sse.md (V16): New mode iterator.
19383         (VI1, VI8): Ditto.
19384         (AVXMODEQI, AVXMODEDI): Remove.
19385         (sse2, sse3): New mode attribute.
19386         (mov<mode>): Use V16 mode iterator.
19387         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
19388         (push<mode>1): Use V16 mode iterator.
19389         (movmisalign<mode>): Ditto.
19390         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
19391         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
19392         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
19393         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
19394         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
19395         avx_movdqu<avxmodesuffix>.
19396         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
19397         *avx_movdqu<avxmodesuffix>.
19398         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
19399         avx_lddqu<avxmodesuffix>.
19400         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
19401         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
19402         avx_movnt<AVXMODEDI:mode>.
19403         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
19404         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
19405
19406 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
19407
19408         PR target/48629
19409         * haifa-sched.c (prune_ready_list, schedule_block): Use
19410         sched_pressure_p rather than flag_sched_pressure.
19411
19412 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
19413
19414         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
19415         cgraph_get_node instead of cgraph_get_create_node.
19416
19417 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
19418
19419         * cfgexpand.c (expand_debug_expr): Use
19420         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
19421
19422 2011-04-15  Michael Matz  <matz@suse.de>
19423
19424         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
19425         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
19426         * function.c (gimplify_parameters): Ditto.
19427         * gimplify.c (gimplify_vla_decl): Ditto.
19428
19429         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
19430         (gimple_call_set_alloca_for_var): New inline function.
19431         (gimple_call_alloca_for_var_p): Ditto.
19432         * gimple.c (gimple_build_call_from_tree): Remember
19433         CALL_ALLOCA_FOR_VAR_P state.
19434         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
19435
19436         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
19437         calls if they were for VLA objects.
19438
19439 2011-04-15  Martin Jambor  <mjambor@suse.cz>
19440
19441         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
19442         of ADR_EXPRs.
19443
19444 2011-04-15  Martin Jambor  <mjambor@suse.cz>
19445
19446         PR middle-end/48601
19447         * tree-emutls.c (lower_emutls_function_body): Call
19448         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
19449         result is non-NULL.
19450
19451 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
19452
19453         * c-decl.c (detect_field_duplicates): Call
19454         objc_detect_field_duplicates instead of objc_get_interface_ivars.
19455
19456 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
19457
19458         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
19459         * gimple.c (gimple_asm_clobbers_memory_p): Define.
19460         * ipa-pure-const.c (check_stmt): Call it.
19461         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
19462
19463 2011-04-15  Richard Guenther  <rguenther@suse.de>
19464
19465         PR tree-optimization/48290
19466         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
19467         Properly decide inhibiting propagation based on the valueized
19468         operand.  Do loop-closed SSA form preserving here ...
19469         (init_copy_prop): ... not here.
19470
19471 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
19472
19473         PR target/48612
19474         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
19475         (*ieee_smax<mode>3): Likewise.
19476
19477 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19478
19479         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
19480         Replace match_operand with match_dup for the third operand in
19481         these expanders.
19482
19483 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
19484
19485         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
19486         to track processing of conditionals.  Update all callers.
19487         (try_combine, simplify_if_then_else): Update.
19488
19489 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
19490
19491         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
19492         -fsched-pressure.
19493
19494 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
19495
19496         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
19497         instead of match_operand for operand 3.
19498
19499 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
19500
19501         * recog.h (insn_operand_data): Add an "allows_mem" field.
19502         * genoutput.c (output_operand_data): Initialize it.
19503         * optabs.c (maybe_legitimize_operand_same_code): New function.
19504         (maybe_legitimize_operand): Use it when matching the original
19505         op->value.
19506
19507 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
19508
19509         * gimplify.c: Fix issues in comments throughout.
19510         (voidify_wrapper_expr): Fix long line.
19511         (build_stack_save_restore): Likewise.
19512         (gimplify_loop_expr): Likewise.
19513         (gimplify_compound_lval): Likewise.
19514         (gimplify_init_ctor_eval): Likewise.
19515         (gimplify_modify_expr_rhs): Likewise.
19516         (omp_notice_threadprivate_variable): Likewise.
19517
19518 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
19519
19520         * cfgexpand.c (expand_call_stmt): Convert the function type to the
19521         original one if this is not a builtin function.
19522
19523 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
19524
19525         PR target/48605
19526         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
19527         offset it as needed based on top 2 bits in operands[3], change
19528         MEM mode to SFmode and mask those 2 bits away from operands[3].
19529
19530 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
19531
19532         * c-parser.c (c_parser_objc_protocol_definition): Updated for
19533         change from objc_declare_protocols() to objc_declare_protocol().
19534
19535 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
19536
19537         * config/i386/sse.md (sse4_1): New mode attribute.
19538         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
19539         avx_blend<ssemodesuffix><avxmodesuffix> and
19540         sse4_1_blend<ssemodesuffix> using VF mode iterator.
19541         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
19542         avx_blendv<ssemodesuffix><avxmodesuffix> and
19543         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
19544         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
19545         avx_dp<ssemodesuffix><avxmodesuffix> and
19546         sse4_1_dp<ssemodesuffix> using VF mode iterator.
19547         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
19548         (sse4_1_packusdw): Merge with *avx_packusdw.
19549         (sse4_1_pblendvb): Merge with *avx_pblendvb.
19550         (sse4_1_pblendw): Merge with *avx_pblendw.
19551         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
19552         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
19553         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
19554         VF mode iterator.
19555         (sse4_1_round<ssescalarmodesuffix>): Merge with
19556         *avx_round<ssescalarmodesuffix>.
19557         (aesenc): Merge with *avx_aesenc.
19558         (aesenclast): Merge with *avx_aesenclast.
19559         (aesdec): Merge with *avx_aesdec.
19560         (aesdeclast): Merge with *avx_aesdeclast.
19561         (pclmulqdq): Merge with *pclmulqdq.
19562         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
19563         New predicate.
19564         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
19565
19566 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
19567
19568         PR middle-end/48608
19569         * cfgexpand.c (get_decl_align_unit): Renamed to ...
19570         (align_local_variable): This.  Update DECL_ALIGN.
19571         (add_stack_var): Updated.
19572         (expand_one_stack_var): Likewise.
19573
19574 2011-04-14  Richard Guenther  <rguenther@suse.de>
19575
19576         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
19577         Remove.
19578         (dse_initialize_block_local_data, dse_leave_block,
19579         record_voperand_set, get_stmt_uid): Likewise.
19580         (dse_possible_dead_store_p): Allow any kind of killing stmt.
19581         (dse_optimize_stmt): Remove voperand set handling code.
19582         Simplify and improve to handle any kind of killing stmt.
19583         (dse_record_phi): Remove.
19584         (dse_enter_block): Simplify.
19585         (tree_ssa_dse): Likewise.
19586         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
19587
19588 2011-04-14  Jan Hubicka  <jh@suse.cz>
19589
19590         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
19591         * cgraph.h (struct inline_summary): Move to ipa-inline.h
19592         (cgraph_local_info): Remove inline_summary.
19593         * ipa-cp.c: Include ipa-inline.h.
19594         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
19595         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
19596         accesor.
19597         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
19598         (input_overwrite_node): Do not set inline summary.
19599         (input_node): Do not stream inline summary.
19600         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
19601         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
19602         growth; we do not have inline parameters computed for that anyway.
19603         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
19604         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
19605         (inline_summary_t): New type and VECtor.
19606         (debug_inline_summary, dump_inline_summaries): Declare.
19607         (inline_summary): Use VOCtor.
19608         (estimate_edge_growth): Kill hack computing call stmt size directly.
19609         * lto-section-in.c (lto_section_name): Add inline section.
19610         * ipa-inline-analysis.c: Include lto-streamer.h
19611         (node_removal_hook_holder, node_duplication_hook_holder): New holders
19612         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
19613         (inline_summary_vec): Define.
19614         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
19615         dump_inline_summaries): New functions.
19616         (estimate_function_body_sizes): Properly compute size/time of outgoing
19617         calls.
19618         (compute_inline_parameters): Alloc inline_summary; do not compute
19619         size/time of incomming calls.
19620         (estimate_edge_time): Avoid missing time summary hack.
19621         (inline_read_summary): Read inline summary info.
19622         (inline_write_summary): Write inline summary info.
19623         (inline_free_summary): Free all hooks and inline summary vector.
19624         * lto-streamer.h: Add LTO_section_inline_summary section.
19625         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
19626         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
19627
19628 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
19629
19630         * tree-vectorizer.h (vect_strided_store_supported): Add a
19631         HOST_WIDE_INT argument.
19632         (vect_strided_load_supported): Likewise.
19633         (vect_permute_store_chain): Return void.
19634         (vect_transform_strided_load): Likewise.
19635         (vect_permute_load_chain): Delete.
19636         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
19637         count argument.  Check that the count is a power of two.
19638         (vect_strided_load_supported): Likewise.
19639         (vect_permute_store_chain): Return void.  Update after above changes.
19640         Assert that the access is supported.
19641         (vect_permute_load_chain): Likewise.
19642         (vect_transform_strided_load): Return void.
19643         * tree-vect-stmts.c (vectorizable_store): Update calls after
19644         above interface changes.
19645         (vectorizable_load): Likewise.
19646         (vect_analyze_stmt): Don't check for strided powers of two here.
19647
19648 2011-04-14  Richard Guenther  <rguenther@suse.de>
19649
19650         PR tree-optimization/48590
19651         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
19652         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
19653         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
19654         BUILT_IN_STACK_SAVE.
19655         * tree-ssa-dce.c (propagate_necessity): Handle
19656         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
19657
19658 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
19659
19660         * c-parser.c (c_parser_objc_class_declaration): Updated call to
19661         objc_declare_class.
19662
19663 2011-04-14  Richard Guenther  <rguenther@suse.de>
19664
19665         * tree.h (get_object_alignment_1): Declare.
19666         * builtins.c (get_object_alignment_1): Split out worker from ...
19667         (get_object_alignment): ... here.
19668         * fold-const.c (get_pointer_modulus_and_residue): Use
19669         get_object_alignment_1.
19670
19671 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
19672
19673         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
19674         type parameter.
19675         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
19676         parameter.  Generalise code to handle arrays as well as vectors.
19677         (vect_setup_realignment): Update accordingly.
19678         * tree-vect-stmts.c (vectorizable_store): Likewise.
19679         (vectorizable_load): Likewise.
19680
19681 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
19682
19683         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
19684         within the per-copy loop.
19685
19686 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
19687
19688         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
19689         in the dump file.
19690
19691 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
19692
19693         * doc/options.texi (Negative): Explicitly mention that the
19694         Negative chain must be circular.
19695
19696 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
19697
19698         * function.h (block_chainon): Declare.
19699         * function.c (block_chainon): Define.
19700
19701 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
19702             Eric Weddington  <eric.weddington@atmel.com>
19703             Georg-Johann Lay  <avr@gjlay.de>
19704
19705         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
19706         New Includes
19707         (avr_init_builtins, avr_expand_builtin,
19708         avr_expand_delay_cycles, avr_expand_unop_builtin,
19709         avr_expand_binop_builtin ): New functions.
19710         (avr_builtin_id): New enum
19711         (struct avr_builtin_description): New struct
19712         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
19713         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
19714
19715         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
19716         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
19717         UNSPECV_DELAY_CYCLES): new enumeration values
19718         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
19719         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
19720         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
19721         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
19722         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
19723         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
19724         "fmulsu"): New insns
19725
19726         * config/avr/avr-c.c: fix line endings
19727         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
19728         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
19729         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
19730         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
19731         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
19732
19733         * doc/extend.texi (AVR Built-in Functions): New node
19734         (Target Builtins): Add documentation of AVR
19735         built-in functions.
19736
19737 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
19738
19739         PR target/44643
19740         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
19741         alone. Error if non-const data has attribute progmem.
19742
19743 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
19744
19745         * tree.h (struct tree_constructor): Include tree_typed instead of
19746         tree_common.
19747         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
19748         TS_TYPED instead of TS_COMMON.
19749
19750 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
19751
19752         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
19753         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
19754         (sse2_psadbw): Merge with *avx_psadbw.
19755         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
19756         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
19757         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
19758         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
19759         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
19760         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
19761         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
19762         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
19763         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
19764         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
19765         (ssse3_palignrti): Merge with *avx_palignrti.
19766
19767 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
19768
19769         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
19770         * tree-ssanames.c (fini_ssanames): VEC_free it.
19771         (make_ssa_name_fn): Update for VECness of free_ssanames.
19772         (release_ssa_name, release_dead_ssa_names): Likewise.
19773         * tree.h (struct tree_ssa_name): Include tree_typed instead of
19774         tree_common.
19775         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
19776         TS_TYPED instead of TS_COMMON.
19777
19778 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
19779
19780         * postreload-gcse.c (gcse_after_reload_main): Add calls to
19781         statistics_counter_event.
19782         * tree-ssa-copyrename.c (stats): Define.
19783         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
19784         statistics_counter_event.
19785         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
19786         (bswap_stats, widen_mul_stats): Define.
19787         (insert_reciprocals): Increment rdivs_inserted.
19788         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
19789         rfuncs_inserted.  Add calls to statistics_counter_event.
19790         (execute_cse_sincos_1): Increment inserted.
19791         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
19792         statistics_counter_event.
19793         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
19794         of bswap_stats.  Add calls to statistics_counter_event.
19795         (convert_mult_to_widen): Increment widen_mults_inserted.
19796         (convert_plusminus_to_widen): Increment maccs_inserted.
19797         (convert_mult_to_fma): Increment fmas_inserted.
19798         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
19799         calls to statistics_counter_event.
19800
19801 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
19802
19803         PR rtl-optimization/48455
19804         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
19805         `temp_costs->mem_cost'.
19806
19807 2011-04-13  Jan Hubicka  <jh@suse.cz>
19808
19809         * ipa-inline.h: New file.
19810         * ipa-inline-analysis.c: New file. Broken out of ...
19811         * ipa-inline.c: ... this file; update toplevel comment;
19812         include ipa-inline.h
19813         (inline_summary): Move to ipa-inline.h
19814         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
19815         ipa-inline-analysis.c.
19816         (cgraph_estimate_time_after_inlining): Rename to
19817         estiamte_time_after_inlining; move to ipa-inline-analysis.c
19818         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
19819         to estimate_edge_growth.
19820         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
19821         rename to estimate_size_after_inlining.
19822         (cgraph_mark_inline_edge): Update for new naming convention.
19823         (cgraph_check_inline_limits): Likewise.
19824         (cgraph_edge_badness): Likewise.
19825         (cgraph_decide_recursive_inlining): Likewise.
19826         (cgraph_decide_inlining_of_small_functions): Likewise.
19827         (cgraph_decide_inlining_incrementally): Likewise.
19828         (cgraph_estimate_growth): Rename to estimate_growth; move to
19829         ipa-inline-analysis.c.
19830         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
19831         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
19832         (compute_inline_parameters): Likewise.
19833         (compute_inline_parameters_for_current): Likewise.
19834         (pass_inline_parameters): Likewise.
19835         (inline_indirect_intraprocedural_analysis): Likewise.
19836         (analyze_function): Rename to inline_analyze_function; likewise.
19837         (add_new_function): Move to ipa-inline-analysis.c.
19838         (inline_generate_summary): Likewise.
19839         (inline_read_summary): Likewise.
19840         (inline_write_summary): Likewise.
19841         * Makefile.in (ipa-inline-analysis.c): New file.
19842
19843 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19844
19845         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
19846         * configure: Regenerate.
19847
19848 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
19849
19850         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
19851         instead of tree_common.
19852         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
19853         Likewise.
19854         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
19855         TS_TYPED rather than TS_COMMON.
19856         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
19857
19858 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
19859
19860         PR target/45263
19861         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
19862         r20 around calls of __tablejump_elpm__
19863
19864 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
19865
19866         PR middle-end/48591
19867         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
19868         NULL.
19869         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
19870
19871 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
19872
19873         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
19874         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
19875         (cfi_vec): New typedef.
19876         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
19877         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
19878         (cie_cfi_vec): New static variable.
19879         (cie_cfi_head): Delete.
19880         (add_cfi): Accept a cfi_vec * as first argument. All callers and
19881         declaration changed. Use vector rather than list operations.
19882         (new_cfi): Don't initialize the dw_cfi_next field.
19883         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
19884         rather than list operations.
19885         (lookup_cfa): Use vector rather than list operations.
19886         (output_cfis): New argument upto. Accept a cfi_vec rather than
19887         a dw_cfi_ref list head as argument. All callers changed.
19888         Iterate over the vector using upto as a maximum index.
19889         (output_all_cfis): New static function.
19890         (output_fde): Use vector rather than list operations. Use the
19891         new upto argument for output_cfis rather than manipulating a
19892         list.
19893         (dwarf2out_begin_prologue): Change initializations to match
19894         new struct members.
19895         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
19896         from the vector length rather than searching for the end of a list.
19897         Use output_all_cfis.
19898         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
19899
19900 2011-04-13  Nick Clifton  <nickc@redhat.com>
19901
19902         * config/rx/rx.md (movmemsi): Do not use this pattern when
19903         volatile pointers are involved.
19904
19905 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
19906
19907         * config/i386/sse.md (pinsrbits): Remove.
19908         (sse2_packsswb): Merge with *avx_packsswb.
19909         (sse2_packssdw): Merge with *avx_packssdw.
19910         (sse2_packuswb): Merge with *avx_packuswb.
19911         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
19912         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
19913         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
19914         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
19915         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
19916         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
19917         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
19918         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
19919         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
19920         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
19921         (sse2_loadld): Merge with *avx_loadld.
19922         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
19923         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
19924         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
19925         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
19926         (vec_concatv2di): Merge with *vec_concatv2di_avx.
19927
19928 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
19929
19930         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
19931         calling TREE_CHAIN.
19932         * print-tree.c (print_node): Likewise.
19933         * tree-inline.c (copy_tree_r): Likewise.
19934         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
19935         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
19936         instead of TS_COMMON.
19937         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
19938         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
19939         (copy_node_stat): Zero TREE_CHAIN only if necessary.
19940         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
19941         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
19942         ...and these...
19943         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
19944         * tree.h: ...here.
19945         (TREE_CHAIN): Check for a TS_COMMON structure.
19946         (TREE_TYPE): Check for a TS_TYPED structure.
19947
19948 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
19949
19950         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
19951         cgraph_get_create_node instead of cgraph_node.
19952
19953 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
19954
19955         * c-parser.c (c_parser_initelt): Updated call to
19956         objc_build_message_expr.
19957         (c_parser_postfix_expression): Likewise.
19958
19959 2011-04-12  Kai Tietz  <ktietz@redhat.com>
19960
19961         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
19962         MASK_MS_BITFIELD_LAYOUT bit.
19963
19964 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
19965
19966         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
19967         assert it is always true.
19968         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
19969         moves.
19970
19971 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
19972
19973         * c-parser.c (c_lex_one_token): Rewritten conditional used when
19974         compiling Objective-C to be more efficient.
19975
19976 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
19977
19978         * opts-common.c (decode_cmdline_options_to_array): Remove variable
19979         argv_copied.
19980
19981 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
19982
19983         * recog.h, genoutput.c, optabs.c: Revert last patch.
19984
19985 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
19986
19987         PR target/48090
19988         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
19989
19990 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
19991
19992         * recog.h (insn_operand_data): Add an "allows_mem" field.
19993         * genoutput.c (output_operand_data): Initialize it.
19994         * optabs.c (maybe_legitimize_operand_same_code): New function.
19995         (maybe_legitimize_operand): Use it when matching the original
19996         op->value.
19997
19998 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
19999
20000         * genpreds.c (process_define_predicate): Move most processing
20001         to gensupport.c.  Continue to validate the expression.
20002         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
20003         (process_define_predicate): Move processing to gensupport.c.
20004         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
20005         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
20006         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
20007         argument.
20008         (valid_predicate_name_p): New function, split out from old
20009         genpreds.c:process_define_predicate.
20010         (process_define_predicate): New function, combining code from
20011         old genpreds.c and genrecog.c functions.
20012         (process_rtx): Call it for DEFINE_PREDICATE and
20013         DEFINE_SPECIAL_PREDICATE.
20014
20015 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
20016
20017         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
20018         size of a '%A' memory reference.
20019         (T_DREG, T_QREG): New neon_builtin_type_bits.
20020         (arm_init_neon_builtins): Assert that the load and store operands
20021         are neon_struct_operands.
20022         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
20023         (NEON_ARG_MEMORY): New builtin_arg.
20024         (neon_dereference_pointer): New function.
20025         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
20026         Handle NEON_ARG_MEMORY.
20027         (arm_expand_neon_builtin): Update after above interface changes.
20028         Use NEON_ARG_MEMORY for loads and stores.
20029         * config/arm/predicates.md (neon_struct_operand): New predicate.
20030         * config/arm/iterators.md (V_two_elem): Tweak formatting.
20031         (V_three_elem): Use BLKmode for accesses that have no associated mode.
20032         (V_four_elem): Tweak formatting.
20033         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
20034         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
20035         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
20036         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
20037         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
20038         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
20039         (neon_vst4<mode>): Replace pointer operand with a memory operand.
20040         Use %A in the output template.
20041         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
20042         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
20043         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
20044         the width of the memory access.  Remove post-increment.
20045         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
20046
20047 2011-04-12  Nick Clifton  <nickc@redhat.com>
20048
20049         * config/v850/v850.c (expand_prologue): Do not use the CALLT
20050         instruction for interrupt handlers if the target is the basic V850
20051         architecture.
20052         (expand_epilogue): Likewise.
20053
20054 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
20055
20056         PR rtl-optimization/48549
20057         * combine.c (propagate_for_debug): Also stop after BB_END of
20058         this_basic_block.  Process LAST and just stop processing after it.
20059         (combine_instructions): If last_combined_insn has been deleted,
20060         set last_combined_insn to its PREV_INSN.
20061
20062 2011-04-12  Richard Guenther  <rguenther@suse.de>
20063
20064         PR tree-optimization/46076
20065         * gimple.h (struct gimple_statement_call): Add fntype field.
20066         (gimple_call_fntype): Adjust.
20067         (gimple_call_set_fntype): New function.
20068         * gimple.c (gimple_build_call_1): Set the call function type.
20069         * gimplify.c (gimplify_call_expr): Preserve the function
20070         type the frontend used for the call.
20071         (gimplify_modify_expr): Likewise.
20072         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
20073         function type.
20074         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
20075         function type.
20076         * tree-ssa.c (useless_type_conversion_p): Function pointer
20077         conversions are useless.
20078
20079 2011-04-12  Martin Jambor  <mjambor@suse.cz>
20080
20081         * cgraph.h (cgraph_node): Remove function declaration.
20082         (cgraph_create_node): Declare.
20083         (cgraph_get_create_node): Likewise.
20084         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
20085         Updated all callers.
20086         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
20087         the decl does not already exist.  Call cgraph_get_create_node instead
20088         of cgraph_node.
20089         (cgraph_get_create_node): New function.
20090         (cgraph_same_body_alias): Update comment.
20091         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
20092         assert it does not return NULL.
20093         (cgraph_update_edges_for_call_stmt): Likewise.
20094         (cgraph_clone_edge): Likewise.
20095         (cgraph_create_virtual_clone): Likewise.
20096         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
20097         instead of cgraph_node.
20098         (cgraph_add_new_function): Call cgraph_create_node or
20099         cgraph_get_create_node instead of cgraph_node.
20100         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
20101         instead of cgraph_node.
20102         (record_eh_tables): Likewise.
20103         (mark_address): Likewise.
20104         (mark_load): Likewise.
20105         (build_cgraph_edges): Call cgraph_get_create_node instead
20106         of cgraph_node.
20107         (rebuild_cgraph_edges): Likewise.
20108         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
20109         instead of cgraph_node.
20110         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
20111         cgraph_node.
20112         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
20113         cgraph_create_node instead of cgraph_node.
20114         * c-decl.c (finish_function): Call cgraph_get_create_node instead
20115         of cgraph_node.
20116         * lto-cgraph.c (input_node): Likewise.
20117         * lto-streamer-in.c (input_function): Likewise.
20118         * varasm.c (mark_decl_referenced): Likewise.
20119         (assemble_alias): Likewise.
20120
20121 2011-04-12  Martin Jambor  <mjambor@suse.cz>
20122
20123         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
20124         instead of cgraph_node and assert it does not return NULL.
20125         * lto-streamer-in.c (lto_read_body): Likewise.
20126         * omp-low.c (new_omp_context): Likewise.
20127         (create_task_copyfn): Likewise.
20128         * tree-emutls.c (lower_emutls_function_body): Likewise.
20129         * matrix-reorg.c (transform_allocation_sites): Likewise.
20130
20131 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
20132
20133         PR c/48552
20134         * c-typeck.c (build_asm_expr): Error out on attempts to use
20135         void type outputs or inputs for constraints that allow reg or
20136         don't allow memory.
20137
20138 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
20139             Richard Earnshaw  <rearnsha@arm.com>
20140
20141         PR target/48250
20142         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
20143         to use sign-magnitude offsets. Reject unsupported unaligned
20144         cases. Add detailed description in comments.
20145         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
20146         condition from TARGET_32BIT to TARGET_ARM.
20147
20148 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
20149
20150         * tree.h (struct typed_tree): New.
20151         (struct tree_common): Include it instead of tree_base.
20152         (TREE_TYPE): Update for new location of type field.
20153         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
20154         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
20155         (union tree_node): Add typed field.
20156         * treestruct.def (TS_TYPED): New.
20157         * lto-streamer.c (check_handled_ts_structures): Handle it.
20158         * tree.c (MARK_TS_TYPED): New macro.
20159         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
20160
20161 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
20162
20163         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
20164         (force_nonfallthru): Do not alter the loop nest if no basic block
20165         was created.
20166
20167 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
20168
20169         * config/i386/sse.md (VI): New mode iterator.
20170         (SSEMODEI): Remove.
20171         (AVX256MODEI): Ditto.
20172         (AVXMODEF4P): Ditto.
20173         (avxvecpsmode): Ditto.
20174         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
20175         (sse2_andnot<mode>3): New expander.
20176         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
20177         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
20178         (<any_logic:code><mode>3): Use VI mode iterator.
20179         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
20180         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
20181         (*andnottf3): Handle AVX three-operand constraints.
20182         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
20183
20184 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
20185             Robert Millan  <rmh@gnu.org>
20186
20187         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
20188         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
20189         GNU_USER_DYNAMIC_LINKER64): Define.
20190         (REG_NAME): Don't undefine.
20191         (MD_UNWIND_SUPPORT): Undefine.
20192         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
20193         (REG_NAME): Don't undefine.
20194         (MD_UNWIND_SUPPORT): Undefine.
20195         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
20196
20197 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
20198
20199         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
20200         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
20201
20202 2011-04-11  Xinliang David Li  <davidxl@google.com>
20203
20204         * value-profile.c (check_ic_target): New function.
20205         (gimple_ic_transform): Sanity check indirect call target.
20206         * gimple-low.c (gimple_check_call_args): Interface change.
20207         (gimple_check_call_matching_types): New function.
20208         * tree-inline.c (tree_can_inline_p): Call new function.
20209
20210 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
20211
20212         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
20213         tree-pretty-print.h & realmpfr.h.
20214
20215 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
20216
20217         PR middle-end/48464
20218         * ira.c (setup_pressure_classes): Fix typo in loop condition.
20219         (setup_allocno_and_important_classes): Ditto.
20220
20221 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
20222
20223         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
20224         GNU_USER_DYNAMIC_LINKER.
20225         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
20226         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20227         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
20228         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20229         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
20230         GNU_USER_TARGET_OS_CPP_BUILTINS.
20231         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
20232         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20233         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
20234         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20235         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
20236         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20237         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
20238         GNU_USER_TARGET_OS_CPP_BUILTINS.
20239         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20240         GNU_USER_DYNAMIC_LINKER.
20241         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20242         GNU_USER_TARGET_OS_CPP_BUILTINS.
20243         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
20244         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20245         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
20246         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20247         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
20248         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
20249         GNU_USER_DYNAMIC_LINKER64): Remove.
20250         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
20251         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20252         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20253         GNU_USER_DYNAMIC_LINKER.
20254         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20255         GNU_USER_TARGET_OS_CPP_BUILTINS.
20256         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20257         GNU_USER_TARGET_OS_CPP_BUILTINS.
20258         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
20259         to GNU_USER_TARGET_OS_CPP_BUILTINS.
20260         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
20261         GNU_USER_TARGET_OS_CPP_BUILTINS.
20262         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
20263         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
20264         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
20265         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
20266         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20267         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20268         GNU_USER_DYNAMIC_LINKER.
20269         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
20270         GNU_USER_TARGET_OS_CPP_BUILTINS.
20271         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
20272         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20273         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20274         GNU_USER_DYNAMIC_LINKER.
20275         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
20276         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20277         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
20278         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20279         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20280         GNU_USER_DYNAMIC_LINKER.
20281         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
20282         GNU_USER_DYNAMIC_LINKERN32.
20283         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
20284         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
20285         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
20286         GNU_USER_DYNAMIC_LINKER32.
20287         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
20288         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20289         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20290         GNU_USER_DYNAMIC_LINKER.
20291         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
20292         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20293         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
20294         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20295         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20296         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
20297         GNU_USER_DYNAMIC_LINKER32.
20298         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
20299         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
20300         GNU_USER_DYNAMIC_LINKER.
20301         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
20302         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20303         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
20304         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
20305         GNU_USER_DYNAMIC_LINKER64.
20306         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
20307         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20308         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20309         GNU_USER_DYNAMIC_LINKER.
20310         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
20311         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20312         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
20313         GNU_USER_DYNAMIC_LINKER.
20314         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
20315         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20316         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
20317         GNU_USER_DYNAMIC_LINKER32.
20318         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
20319         GNU_USER_DYNAMIC_LINKER64.
20320         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
20321         GNU_USER_DYNAMIC_LINKER64.
20322         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
20323         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20324         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
20325         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
20326         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
20327
20328 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
20329
20330         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
20331         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
20332         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
20333         GNU_USER_DYNAMIC_LINKER.
20334         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
20335         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
20336         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
20337         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
20338         GNU_USER_DYNAMIC_LINKER64.
20339         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
20340         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
20341         GNU_USER_LINK_EMULATION.
20342         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
20343         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
20344         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
20345         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
20346         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
20347         CPP_SPEC, CC1_SPEC): Remove.
20348         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
20349         (GNU_USER_DYNAMIC_LINKER): Define.
20350         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
20351         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
20352         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
20353         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
20354         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
20355         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
20356         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
20357         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
20358         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
20359         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
20360         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
20361         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
20362         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
20363         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
20364         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
20365         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
20366         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
20367         GNU_USER_DYNAMIC_LINKER.
20368         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
20369         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
20370         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
20371         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
20372         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
20373         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
20374         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
20375         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
20376         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
20377         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
20378
20379 2011-04-11  Kai Tietz  <ktietz@redhat.com>
20380
20381         PR target/9601
20382         PR target/11772
20383         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
20384         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
20385         comment.
20386         (ix86_is_msabi_thiscall): Removed.
20387         (ix86_is_type_thiscall): Likewise.
20388         (ix86_get_callcvt): New function.
20389         (ix86_comp_type_attributes): Simplify check.
20390         (ix86_function_regparm): Use ix86_get_callcvt for calling
20391         convention attribute checks.
20392         (ix86_return_pops_args): Likewise.
20393         (ix86_static_chain): Likewise.
20394         (x86_this_parameter): Likewise.
20395         (x86_output_mi_thunk): Likewise.
20396         (ix86_function_type_abi): Optimize check for types without attributes.
20397         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
20398         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
20399         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
20400         by flag-values.
20401         (IX86_BASE_CALLCVT): Helper macro.
20402         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
20403         Use ix86_get_callcvt for calling convention attribute checks and avoid
20404         symbol-decoration for stdcall in TARGET_RTD case.
20405         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
20406         Likewise.
20407         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
20408         for declaration.
20409
20410 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
20411
20412         * config/i386/sse.md (VI_128): New mode iterator.
20413         (VI12_128): Rename from SSEMODE12.
20414         (VI14_128): Rename from SSEMODE14.
20415         (VI124_128): New mode iterator.
20416         (VI24_128): Rename from SSEMODE248.
20417         (VI248_128): Rename from SSEMODE248.
20418         (SSEMODE124C8): Remove.
20419         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
20420         (*sse2_<plusminus_insn><mode>3): Merge with
20421         *avx_<plusminus_insn><mode>3.
20422         (*mulv8hi3): Merge with *avx_mulv8hi3.
20423         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
20424         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
20425         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
20426         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
20427         (ashr<mode>3): Merge with *avx_ashr<mode>3.
20428         (lshr<mode>3): Merge with *avx_lshr<mode>3.
20429         (ashl<mode>3): Merge with *avx_ashl<mode>3.
20430         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
20431         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
20432         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
20433         (*<smaxmin:code>v8hi3): Ditto.
20434         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
20435         (*<smaxmin:code>v16qi3): Ditto.
20436         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
20437         (*sse2_eq<mode>3): Ditto.
20438         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
20439         (*sse2_gt<mode>3): Ditto.
20440         (vcondv2di): Split out of vcond<mode>.
20441         (vconduv2di): Split out of vcondu<mode>.
20442
20443 2011-04-11  Richard Guenther  <rguenther@suse.de>
20444
20445         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
20446         before calling tree_low_cst.
20447
20448 2011-04-11  Richard Guenther  <rguenther@suse.de>
20449
20450         * stor-layout.c (layout_type): Compute all array index size operations
20451         in the original type.
20452         (initialize_sizetypes): Add comment.
20453         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
20454
20455 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
20456
20457         * common.opt (Tbss=, Tdata=, Ttext=): New options.
20458
20459 2011-04-11  Martin Jambor  <mjambor@suse.cz>
20460
20461         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
20462         of cgraph_node, handle NULL return value.
20463         (cgraph_global_info): Likewise.
20464         (cgraph_rtl_info): Likewise.
20465         * tree-inline.c (estimate_num_insns): Likewise.
20466         * gimplify.c (unshare_body): Likewise.
20467         (unvisit_body): Likewise.
20468         (gimplify_body): Likewise.
20469         * predict.c (optimize_function_for_size_p): Likewise.
20470         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
20471         (call_may_clobber_ref_p_1): Likewise.
20472         * varasm.c (function_section_1): Likewise.
20473         (assemble_start_function): Likewise.
20474
20475 2011-04-11  Martin Jambor  <mjambor@suse.cz>
20476
20477         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
20478         of cgraph_node.
20479         * final.c (rest_of_clean_state): Likewise.
20480         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
20481         * passes.c (pass_init_dump_file): Likewise.
20482         (execute_all_ipa_transforms): Likewise.
20483         (function_called_by_processed_nodes_p): Likewise.
20484         * predict.c (maybe_hot_frequency_p): Likewise.
20485         (probably_never_executed_bb_p): Likewise.
20486         (compute_function_frequency): Likewise.
20487         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
20488         (unnest_nesting_tree_1): Likewise.
20489         (lower_nested_functions): Likewise.
20490         * tree-optimize.c (execute_fixup_cfg): Likewise.
20491         (tree_rest_of_compilation): Likewise.
20492         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
20493         * tree-sra.c (ipa_early_sra): Likewise.
20494         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
20495         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
20496         * ipa.c (record_cdtor_fn): Likewise.
20497         * ipa-inline.c (cgraph_early_inlining): Likewise.
20498         (compute_inline_parameters_for_current): Likewise.
20499         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
20500         * ipa-pure-const.c (local_pure_const): Likewise.
20501         * ipa-split.c (split_function): Likewise.
20502         (execute_split_functions): Likewise.
20503         * cgraphbuild.c (build_cgraph_edges): Likewise.
20504         (rebuild_cgraph_edges): Likewise.
20505         (cgraph_rebuild_references): Likewise.
20506         (remove_cgraph_callee_edges): Likewise.
20507         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
20508         (verify_cgraph_node): Likewise.
20509         (cgraph_analyze_functions): Likewise.
20510         (cgraph_preserve_function_body_p): Likewise.
20511         (save_inline_function_body): Likewise.
20512         (save_inline_function_body): Likewise.
20513         * tree-inline.c (copy_bb): Likewise.
20514         (optimize_inline_calls): Likewise.
20515
20516 2011-04-11  Martin Jambor  <mjambor@suse.cz>
20517
20518         PR tree-optimization/48195
20519         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
20520         ipa_check_create_edge_args.
20521         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
20522         ipa_check_create_edge_args.
20523         * ipa-inline.c (inline_generate_summary): Do not call
20524         ipa_check_create_node_params and ipa_check_create_edge_args.
20525         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
20526         ipa_check_create_edge_args.
20527
20528 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
20529
20530         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
20531         instead of loop.
20532         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
20533         * function.c (record_hard_reg_sets): Likewise.
20534         * ira.c (compute_regs_asm_clobbered): Likewise.
20535         * sched-deps.c (sched_analyze_1): Likewise.
20536         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
20537
20538 2011-04-09  Xinliang David Li  <davidxl@google.com>
20539
20540         PR tree-optimization/PR48484
20541         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
20542         has_valid_pred lazily
20543
20544 2011-04-09  Duncan Sands  <baldrick@free.fr>
20545
20546         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
20547
20548 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
20549
20550         * combine.c (combine_validate_cost): Adjust comments.  Set registered
20551         cost of I0 to zero at the end, if any.
20552
20553 2011-04-08  Xinliang David Li  <davidxl@google.com>
20554
20555         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
20556         to insane profile data.
20557
20558 2011-04-08  Xinliang David Li  <davidxl@google.com>
20559
20560         * ipa-cp.c (ipcp_update_profiling): Correct
20561          negative scale factor due to insane profile data.
20562
20563 2011-04-08  Xinliang David Li  <davidxl@google.com>
20564
20565         * final.c (dump_basic_block_info): New function.
20566         (final): Dump basic block.
20567         (final_scan_insn): Remove old dump.
20568
20569 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
20570
20571         PR target/47829
20572         * config.gcc (i386-*-freebsd): Disable unwind table generation for
20573         crtbegin/crtend.
20574
20575 2011-04-08  Michael Matz  <matz@suse.de>
20576
20577         PR middle-end/48389
20578         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
20579         functions.
20580         (rebuild_jump_labels): Call rebuild_jump_labels_1.
20581         * rtl.h (rebuild_jump_labels_chain): Declare.
20582         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
20583         insns inserted on edges.
20584
20585 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
20586
20587         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
20588         * config/arm/arm-arches.def: New.
20589         * config/arm/arm-opts.h: New.
20590         * config/arm/genopt.sh: New.
20591         * config/arm/arm-tables.opt: New (generated).
20592         * config/arm/arm.c (arm_handle_option, arm_target_help,
20593         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
20594         (all_architectures): Get most table contents from arm-arches.def.
20595         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
20596         arm_selected_tune here.
20597         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
20598         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
20599         (march=, mcpu=, mtune=): Use Enum and Var.
20600         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
20601         (arm.o): Update dependencies.
20602
20603 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
20604
20605         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
20606         of header_file.
20607         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
20608         (write_typed_alloc_defns): Likewise.
20609         (main): Calls write_typed_alloc_defns with output_header.
20610
20611 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
20612
20613         PR inline-asm/48435
20614         * ira-color.c (setup_profitable_hard_regs): Add comments.
20615         Don't take prohibited hard regs into account.
20616         (setup_conflict_profitable_regs): Rename to
20617         get_conflict_profitable_regs.
20618         (check_hard_reg_p): Check prohibited hard regs.
20619
20620 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
20621
20622         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
20623         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
20624         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
20625
20626 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20627
20628         PR target/48366
20629         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
20630         move from floating point to shift amount register.
20631         (emit_move_sequence): Remove secondary reload support for floating
20632         point to shift amount amount register copies.
20633         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
20634         amount register copies.
20635         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
20636         register, return false if mode isn't a scalar integer mode.
20637         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
20638
20639 2011-04-08  Richard Guenther  <rguenther@suse.de>
20640
20641         * gimple.c (gimple_call_flags): Remove kludge.
20642
20643 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
20644
20645         * sel-sched.c (sel_region_init): Move call to
20646         sel_setup_region_sched_flags after setup_current_loop_nest.
20647
20648 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
20649
20650         PR rtl-optimization/48272
20651         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
20652         init_insn_reg_pressure_info.  Adjust a caller.
20653         * sched-int.h (init_insn_reg_pressure_info): Declare.
20654         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
20655         when sched-pressure is enabled.
20656
20657 2011-04-08  Richard Guenther  <rguenther@suse.de>
20658
20659         * gimple.c (gimple_set_modified): Do not queue calls to
20660         MODIFIED_NORETURN_CALLS here ...
20661         * tree-ssa-operands.c (update_stmt_operands): ... but here.
20662
20663 2011-04-08  Richard Guenther  <rguenther@suse.de>
20664
20665         PR lto/48467
20666         * toplev.c (lang_dependent_init): Do not open asm_out_file
20667         in WPA mode, nor perform debug machinery initialization.
20668         (finalize): Do not unlink asm_out_file in WPA mode.
20669
20670 2011-04-08  Richard Guenther  <rguenther@suse.de>
20671
20672         * gimple.h (gimple_call_fntype): New function.
20673         (gimple_call_return_type): Use it.
20674         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
20675         * gimple-low.c (gimple_check_call_args): Likewise.
20676         * gimple.c (gimple_call_flags): Likewise.
20677         (gimple_call_arg_flags): Likewise.
20678         (gimple_call_return_flags): Likewise.
20679         * tree-cfg.c (verify_gimple_call): Likewise.
20680         (do_warn_unused_result): Likewise.
20681         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
20682         * value-prof.c (gimple_ic_transform): Fix fndecl check.
20683
20684 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
20685
20686         PR rtl-optimization/48235
20687         * sel-sched.c (code_motion_process_successors): Recompute the last
20688         insn in basic block if control flow changed.
20689         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
20690         Update condition for ilist_remove.
20691
20692 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
20693
20694         PR rtl-optimization/48302
20695         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
20696         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
20697         it to record added preheader blocks.
20698         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
20699         on to sel_add_loop_preheaders.
20700         (sel_region_init): Move call to setup_current_loop_nest after
20701         sel_init_bbs.
20702
20703 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
20704
20705         PR target/48273
20706         * cfgloop.h (loop_has_exit_edges): New helper.
20707         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
20708         non-clonable.
20709         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
20710         that have no exit edges.
20711
20712 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
20713
20714         PR rtl-optimization/48442
20715         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
20716         all callers.  Adjust assert.
20717
20718 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
20719
20720         PR tree-optimization/48377
20721         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
20722         is_packed to true even for types with smaller TYPE_ALIGN than
20723         TYPE_SIZE.
20724
20725 2011-04-08  Richard Guenther  <rguenther@suse.de>
20726
20727         PR bootstrap/48513
20728         * doc/tm.texi: Re-generate.
20729
20730 2011-04-08  Wei Guozhi  <carrot@google.com>
20731
20732         PR target/47855
20733         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
20734         * config/arm/arm.c (arm_attr_length_push_multi): New function.
20735         * config/arm/arm.md (*push_multi): Change the length computation to
20736         call a C function.
20737
20738 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
20739
20740         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
20741         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
20742         * doc/tm.texi: Regenerate.
20743         * system.h (ASM_OUTPUT_BSS): Poison.
20744         * varasm.c (asm_output_bss): Remove function.
20745         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
20746
20747         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
20748         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
20749         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
20750         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
20751         Likewise.
20752         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
20753         Likewise.
20754         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
20755         Likewise.
20756         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
20757
20758 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
20759
20760         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
20761         EnumValue lines.
20762
20763 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
20764
20765         * config/m68k/m68k.c (m68k_handle_option): Don't handle
20766         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
20767         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
20768         OPT_mcpu32.
20769         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
20770         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
20771         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
20772         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
20773         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
20774         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
20775         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
20776         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
20777         options.  Don't map other m68k options manually.  Don't handle
20778         old-style options as canonical.
20779         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
20780         * doc/install.texi (m68k-*-*): Document binutils version requirement.
20781
20782 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
20783
20784         * basic-block.h (force_nonfallthru): Move to...
20785         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
20786         (force_nonfallthru): ...here.
20787         * cfghooks.c (force_nonfallthru): New function.
20788         * cfgrtl.c (force_nonfallthru): Rename into...
20789         (rtl_force_nonfallthru): ...this.
20790         (commit_one_edge_insertion): Do not set AUX field.
20791         (commit_edge_insertions): Do not discover new basic blocks.
20792         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
20793         (cfg_layout_rtl_cfg_hooks): Likewise.
20794         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
20795         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
20796         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
20797
20798 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
20799
20800         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
20801         Remove macros.
20802
20803 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
20804
20805         * config/i386/sse.md: Update copyright year.
20806         (avxcvtvecmode): Remove.
20807         (sse_movhlps): Merge with *avx_movhlps.
20808         (sse_movlhps): Merge with *avx_movlhps.
20809         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
20810         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
20811         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
20812         (sse_loadhps): Merge with *avx_loadhps.
20813         (sse_storelps): Merge with *avx_storelps.
20814         (sse_loadlps): Merge with *avx_loadlps.
20815         (sse_movss): Merge with *avx_movss.
20816         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
20817         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
20818         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
20819         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
20820         (vec_set<mode>_0): Ditto.
20821         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
20822         (sse4_1_insertps): Merge with *avx_insertps.
20823         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
20824         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
20825         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
20826         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
20827         (sse2_storehpd): Merge with *avx_storehpd.
20828         (sse2_loadhpd): Merge with *avx_loadhpd.
20829         (sse2_loadlpd): Merge with *avx_loadlpd.
20830         (sse2_movsd): Merge with *avx_movsd.
20831         (*vec_concatv2df): Merge with *vec_concatv2df.
20832
20833 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
20834
20835         PR debug/48343
20836         * combine.c (combine_instructions): Add last_combined_insn,
20837         update it if insn is after it, pass it to all try_combine calls.
20838         (try_combine): Add last_combined_insn parameter, pass it instead of
20839         i3 to propagate_for_debug.
20840
20841 2011-04-07  Nick Clifton  <nickc@redhat.com>
20842
20843         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
20844         to handle MDR <-> data register transfers.
20845         (movhi_internal): Likewise.
20846
20847 2011-04-07  Alan Modra  <amodra@gmail.com>
20848
20849         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
20850         previous stack info.
20851
20852 2011-04-07  Tom de Vries  <tom@codesourcery.com>
20853
20854         PR target/43920
20855         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
20856         flow_find_cross_jump.  Swap variables to implement backward replacement.
20857         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
20858
20859 2011-04-07  Tom de Vries  <tom@codesourcery.com>
20860
20861         PR target/43920
20862         * cfgcleanup.c (walk_to_nondebug_insn): New function.
20863         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
20864         and bb2.
20865         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
20866         src1 or src2.  Redirect edges to the last basic block.  Update
20867         frequency and count on multiple basic blocks in case of fallthru.
20868
20869 2011-04-07  Tom de Vries  <tom@codesourcery.com>
20870
20871         PR target/43920
20872         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
20873         function.
20874         (old_insns_match_p): Change return type.  Replace return false/true
20875         with return dir_none/dir_both.  Use can_replace_by.
20876         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
20877         direction from dir_p.  Register replacement direction in dir, last_dir
20878         and afterlast_dir.  Handle new return type of old_insns_match_p using
20879         merge_dir.  Return replacement direction in dir_p.
20880         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
20881         return type of old_insns_match_p.
20882         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
20883         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
20884         flow_find_cross_jump.
20885         * basic-block.h (enum replace_direction): New type.
20886         (flow_find_cross_jump): Add parameter to declaration.
20887
20888 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
20889
20890         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
20891         (AVXMODEDCVTPS2DQ): Ditto.
20892         (VEC_FLOAT_MODE): Ditto.
20893         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
20894         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
20895         (<any_logic:code><mode>3): Use VF mode iterator.
20896         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
20897         Use VF mode iterator.
20898         (copysign<mode>3): Use VF mode iterator.
20899         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
20900         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
20901         (*<any_logic:code><MODEF:mode>3): Merge with
20902         *avx_<any_logic:code><MODEF:mode>3.
20903         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
20904         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
20905         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
20906         (avx_cvtdq2ps<avxmodesuffix>): Remove.
20907         (sse2_cvtdq2ps): Use %v modifier.
20908         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
20909         (avx_cvtps2dq<avxmodesuffix>): Remove.
20910         (sse2_cvtps2dq): Use %v modifier.
20911         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
20912         (avx_cvttps2dq<avxmodesuffix>): Remove.
20913         (sse2_cvttps2dq): Use %v modifier.
20914         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
20915         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
20916         (sse2_cvtsd2siq): Fix insn template.
20917         (sse2_cvtsd2siq_2): Ditto.
20918         (sse2_cvttsd2siq): Ditto.
20919         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
20920         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
20921
20922 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
20923
20924         * gcov-io.c: Use GCC Runtime Library Exception.
20925
20926 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
20927
20928         PR debug/48466
20929         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
20930         as base_reg whatever register reg has been eliminated to, instead
20931         of hardcoding STACK_POINTER_REGNUM.
20932
20933 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
20934
20935         * doc/tm.texi.in: Document C target hooks as separate from general
20936         target hooks.
20937         * doc/tm.texi: Regenerate.
20938         * genhooks.c (struct hook_desc): Add docname field.
20939         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
20940         docname field.
20941         (hook_array): Include c-target.def.
20942         (emit_documentation): Use docname field in output.
20943         (emit_init_macros): Take docname argument.  Only emit definitions
20944         for hooks matching docname.
20945         (main): Expect additional arguments in all cases.  Pass argument
20946         to emit_init_macros.
20947         * target.def: Move initial macro definitions and comments to
20948         target-hooks-macros.h.
20949         (gcc_targetcm): Move to c-family/c-target.def.
20950         * target.h (targetcm): Move declaration to c-family/c-target.h.
20951         * targhooks.c (default_handle_c_option): Move to
20952         c-family/c-opts.c.
20953         * targhooks.h (default_handle_c_option): Move declaration to
20954         c-family/c-common.h.
20955         * target-hooks-macros.h: New file.
20956         * config.gcc (target_has_targetcm): Define and use to add to
20957         c_target_objs and cxx_target_objs.
20958         * config/default-c.c: New file.
20959         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
20960         of target.h and target-def.h.
20961         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
20962         (darwin_objc_construct_string, darwin_cfstring_ref_p,
20963         darwin_check_cfstring_format_arg): Make static.
20964         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
20965         TARGET_STRING_OBJECT_REF_TYPE_P,
20966         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
20967         * config/darwin-protos.h (darwin_objc_construct_string,
20968         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
20969         declare.
20970         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
20971         TARGET_STRING_OBJECT_REF_TYPE_P,
20972         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
20973         * config/t-darwin (darwin-c.o): Update dependencies.
20974         * system.h (TARGET_HAS_TARGETCM): Poison.
20975         * Makefile.in (TARGET_H): Update.
20976         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
20977         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
20978         (default-c.o): New target.
20979         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
20980         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
20981         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
20982         c-target.def.
20983         (build/genhooks.o): Update dependencies.
20984
20985 2011-04-06  Richard Guenther  <rguenther@suse.de>
20986
20987         * ipa-inline.c (enum inlining_mode): Remove.
20988         (cgraph_flatten): Use some other token.
20989         (cgraph_edge_early_inlinable_p): New function, split out from ...
20990         (cgraph_perform_always_inlining): New function, split out from ...
20991         (cgraph_decide_inlining_incrementally): ... here.
20992         (cgraph_mark_inline_edge): Adjust.
20993         (cgraph_early_inlining): Re-structure.
20994         (pass_early_inline): Require SSA form.
20995
20996 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
20997             Julian Brown  <julian@codesourcery.com>
20998             Mark Shinwell  <shinwell@codesourcery.com>
20999
21000         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
21001         LO_REGS only for Thumb-1.
21002         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
21003         be used in short instructions when optimising for size on Thumb-2.
21004
21005 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
21006
21007         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
21008         associated with user returns to be preserved.
21009
21010 2011-04-06  Tristan Gingold  <gingold@adacore.com>
21011
21012         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
21013         symbol_queue_size, DBXOUT_DECR_NESTING,
21014         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
21015         if XCOFF_DEBUGGING_INFO.
21016
21017 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
21018
21019         * config/i386/i386.md (attribute isa): New.
21020         (attribute enabled): New.
21021         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
21022         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
21023         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
21024         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
21025         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
21026         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
21027         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
21028         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
21029
21030         * config/i386/sse.md (VF): New mode iterator.
21031         (VF1): Ditto.
21032         (VF2): Ditto.
21033         (VF_128): Ditto.
21034         (SSEMODEF4): Remove.
21035         (attribute sse): Handle V8SF and V4DF modes.
21036         (<absneg:code><mode>2): Use VF mode iterator.
21037         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
21038         mode iterator.
21039         (<plusminus_insn><mode>3): Use VF mode iterator.
21040         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
21041         Use VF mode iterator.
21042         (<sse>_vm<plusminus_insn><mode>3): Merge with
21043         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
21044         (mul<mode>3): Use VF mode iterator.
21045         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
21046         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
21047         mode iterator.
21048         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
21049         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
21050         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
21051         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
21052         mode iterator.
21053         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
21054         Use VF1 mode iterator.
21055         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
21056         (sqrt<VF2:mode>2): New expander.
21057         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
21058         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
21059         and sqrtv2df2.  Use VF mode iterator.
21060         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
21061         mode iterator.
21062         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
21063         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
21064         Use VF1 mode iterator.
21065         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
21066         (<smaxmin:code><mode>3): Use VF mode iterator.
21067         (*<smaxmin:code><mode>3_finite): Merge with
21068         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
21069         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
21070         (<sse>_vm<smaxmin:code><mode>2): Merge with
21071         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
21072         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
21073         mode iterator.
21074         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
21075         mode iterator.
21076         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
21077         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
21078         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
21079         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
21080         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
21081         VF mode iterator.
21082         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
21083         Use VF_128 mode iterator.
21084         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
21085         mode iterator.
21086         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
21087         VF_128 mode iterator.
21088         (vcond<mode>): Use VF mode iterator.
21089         * config/i386/predicates.md (sse_comparison_operator): Merge with
21090         avx_comparison_float_operator.  Do not declare as special_predicate.
21091         * config/i386/i386.c (struct builtin_description): Update for renamed
21092         compare patterns.
21093         (ix86_expand_args_builtin): Ditto.
21094         (ix86_expand_sse_compare_mask): Ditto.
21095
21096 2011-04-06  Richard Guenther  <rguenther@suse.de>
21097
21098         * tree-inline.c (estimate_num_insns): For calls simply account
21099         for all passed arguments and a used return value.
21100
21101 2011-04-06  Richard Guenther  <rguenther@suse.de>
21102
21103         PR tree-optimization/47663
21104         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
21105         call_stmt_time fields.
21106         (cgraph_edge_inlinable_p): Declare.
21107         (cgraph_edge_recursive_p): New inline function.
21108         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
21109         (cgraph_clone_edge): Copy it.
21110         * ipa-inline.c (cgraph_estimate_edge_time): New function.
21111         Account for call stmt time.
21112         (cgraph_estimate_time_after_inlining): Take edge argument.
21113         (cgraph_estimate_edge_growth): Account call stmt size.
21114         (cgraph_estimate_size_after_inlining): Take edge argument.
21115         (cgraph_mark_inline_edge): Adjust.
21116         (cgraph_check_inline_limits): Likewise.
21117         (cgraph_recursive_inlining_p): Remove.
21118         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
21119         (cgraph_decide_recursive_inlining): Take edge argument and
21120         adjust.
21121         (cgraph_decide_inlining_of_small_functions): Do not avoid
21122         diags for recursive inlining here.
21123         (cgraph_flatten): Adjust.
21124         (cgraph_decide_inlining_incrementally): Likewise.
21125         (estimate_function_body_sizes): Remove call cost handling.
21126         (compute_inline_parameters): Initialize caller edge call costs.
21127         (cgraph_estimate_edge_growth): New function.
21128         (cgraph_estimate_growth): Use it.
21129         (cgraph_edge_badness): Likewise.
21130         (cgraph_check_inline_limits): Take an edge argument.
21131         (cgraph_decide_inlining_of_small_functions): Adjust.
21132         (cgraph_decide_inlining): Likewise.
21133         * tree-inline.c (estimate_num_insns): Only account for call
21134         return value if it is used.
21135         (expand_call_inline): Avoid diagnostics on recursive inline
21136         functions here.
21137         * lto-cgraph.c (lto_output_edge): Output edge call costs.
21138         (input_edge): Input edge call costs.
21139
21140 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21141
21142         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
21143
21144 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
21145
21146         * doc/invoke.texi (Spec Files): Fix typo.
21147
21148 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
21149
21150         * profile.c (branch_prob): Move declaration of local variable.  Remove
21151         obsolete ??? comment.  Expand the location explicitly instead of using
21152         the LOCATION_FILE and LOCATION_LINE macros.
21153
21154 2011-04-06  Wei Guozhi  <carrot@google.com>
21155
21156         PR target/47855
21157         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
21158         (arm_cond_branch): Likewise.
21159         (arm_cond_branch_reversed): Likewise.
21160         (arm_jump): Likewise.
21161         (push_multi): Likewise.
21162         * config/arm/constraints.md (Py): New constraint.
21163
21164 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
21165
21166         PR bootstrap/48471
21167         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
21168         Move these...
21169         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
21170         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
21171         #ifdef DBX_DEBUGGING_INFO.
21172
21173 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
21174
21175         PR bootstrap/48403
21176         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
21177         if old and new states differ.
21178
21179 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
21180
21181         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
21182         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
21183         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
21184         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
21185         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
21186         mcfv4e): Use Alias.
21187         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
21188         ColdFire options to -mcpu= options.
21189
21190 2011-04-05  Jeff Law  <law@redhat.com>
21191
21192         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
21193         check if BB is a successor of LOOP->header and return
21194         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
21195
21196 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
21197
21198         * cprop.c (struct reg_use): Remove.
21199         (reg_use_table): Make an array of RTX.
21200         (find_used_regs, constprop_register, local_cprop_pass,
21201         bypass_block): Simplify users of reg_use_table.
21202         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
21203         on one of the uses found by find_used_regs.
21204
21205 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
21206
21207         PR bootstrap/48469
21208         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
21209         declaration.
21210
21211 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
21212
21213         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
21214         as an rtx.
21215         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
21216
21217 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
21218
21219         PR middle-end/48441
21220         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
21221
21222 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
21223
21224         * combine.c: Include obstack.h.
21225         (struct insn_link): Define.
21226         (uid_log_links): Adjust type.
21227         (FOR_EACH_LOG_LINK): New macro.
21228         (insn_link_obstack): Declare.
21229         (alloc_insn_link): Define.
21230         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
21231         type of link variables.
21232         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
21233         (try_combine, record_promoted_values, distribute_notes): Likewise.
21234         (distribute_links): Likewise.  Tweak prototype.
21235         (clear_log_links): Delete.
21236         (adjust_for_new_dest): Call alloc_insn_link.
21237         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
21238
21239 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
21240
21241         * gcse.c (modify_mem_list): Convert to an array of VECs.
21242         (canon_modify_mem_list, compute_transp): Tweak formatting.
21243         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
21244         (load_killed_in_block_p): Likewise.
21245         (record_last_mem_set_info): Likewise.
21246         (clear_modify_mem_tables): Likewise.
21247
21248 2011-04-05  Tom de Vries  <tom@codesourcery.com>
21249
21250         PR middle-end/48461
21251         * function.c (emit_use_return_register_into_block): Only define if
21252         HAVE_return.
21253
21254 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
21255
21256         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
21257
21258 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
21259
21260         * config/rx/rx-opts.h: New.
21261         * config/rx/rx.c (rx_cpu_type): Remove.
21262         (rx_handle_option): Don't assert that global structures are in
21263         use.  Access variables via opts pointer.  Defer most handling of
21264         OPT_mint_register_.  Use error_at.
21265         (rx_option_override): Handle deferred OPT_mint_register_ here.
21266         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
21267         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
21268         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
21269         (rx_cpu_types): New Enum and EnumValue entries.
21270         (mint-register=): Use Defer and use Var accordingly.
21271
21272 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
21273
21274         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
21275         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
21276         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
21277         Move these...
21278         (debug_free_queue, debug_nesting, symbol_queue_index):
21279         ...and these...
21280         * dbxout.c: ...to here.  Make static.
21281
21282 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
21283
21284         * gcse.c (modify_pair): Define.  Define a VEC of it.
21285         (canon_modify_mem_list): Convert to an array of VECs.
21286         (free_insn_expr_list_list): Delete.
21287         (clear_modify_mem_tables): Call VEC_free instead.
21288         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
21289         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
21290         (canon_list_insert, compute_transp): Likewise.
21291
21292 2011-04-05  Tom de Vries  <tom@codesourcery.com>
21293
21294         PR target/43920
21295         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
21296         for size.
21297
21298 2011-04-05  Tom de Vries  <tom@codesourcery.com>
21299
21300         PR target/43920
21301         * function.c (emit_use_return_register_into_block): New function.
21302         (thread_prologue_and_epilogue_insns): Use
21303         emit_use_return_register_into_block.
21304
21305 2011-04-05  Tom de Vries  <tom@codesourcery.com>
21306
21307         PR target/43920
21308         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
21309         insn.
21310
21311 2011-04-05  Tom de Vries  <tom@codesourcery.com>
21312
21313         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
21314
21315 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
21316
21317         * config/arm/arm.md (define_constants for unspec): Replace with
21318         define_c_enum.
21319         (define_constants for unspecv): Replace with define_c_enum.
21320         * config/arm/neon.md (define_constants for unspec): Replace with
21321         define_c_enum.
21322
21323 2011-04-04  Richard Henderson  <rth@redhat.com>
21324
21325         PR bootstrap/48400
21326         * dwarf2out.c (output_line_info): Always emit line info from
21327         at least one section.
21328         (dwarf2out_init): Create text_section_line_info here ...
21329         (set_cur_line_info_table): ... not here.
21330
21331 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
21332
21333         PR target/48380
21334         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
21335         not called.
21336
21337         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
21338
21339 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
21340
21341         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
21342         (expr_equiv_p): Remove.
21343         (insert_set_in_table): Look at <dest, src> pair instead of expr.
21344         (hash_scan_set): Update call to insert_set_in_table.
21345         (dump_hash_table): Dump <dest, src> pair.
21346         (lookup_set): Simplify.  Lookup <dest, src> pair.
21347         (compute_transp): Remove, fold heavily simplified code into...
21348         (compute_local_properties): ...here.  Expect COMP and TRANSP
21349         unconditionally.
21350         (find_avail_set): Take set directly from struct expr.
21351         (find_bypass-set): Likewise.
21352         (bypass_block): Likewise.
21353         (cprop_insn): Likewise.  Remove redundant INSN_P test.
21354
21355         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
21356         checks on form of COND from find_implicit_sets to here.
21357         (find_implicit_sets): Cleanup control flow. Split critical edges
21358         if it exposes implicit sets.  Allocate/resize implicit_sets as
21359         necessary.
21360         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
21361         changed something.  Run df_analyze after find_implicit_sets if any
21362         edges were split.  Do not allocate implicit_sets here.
21363
21364         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
21365         (gcse_obstack): Renamed to cprop_obstack.
21366         (GNEW, GNEWVEC, GNEWVAR): Remove.
21367         (gmalloc): Remove.
21368         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
21369         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
21370         (gcse_alloc): Likewise, and rename to cprop_alloc.
21371         (alloc_gcse_men, free_gcse_mem): Remove.
21372         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
21373         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
21374         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
21375
21376         * cprop.c (oprs_not_set_p): Remove.
21377         (mark_set, mark_clobber): Remove.
21378         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
21379         (reg_not_set_p): New function.
21380         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
21381         (cprop_insn): Likewise.
21382         (cprop_jump): Use FOR_EACH_EDGE.
21383
21384 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
21385
21386         PR bootstrap/48403
21387         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
21388         (rank_for_schedule): Use scheduled_insns vector instead of
21389         last_scheduled_insn.
21390         (ok_for_early_queue_removal): Likewise.
21391         (queue_to_ready): Search forward in nonscheduled_insns_begin if
21392         we have a dbg_cnt.
21393         (choose_ready): Likewise.
21394         (commit_schedule): Use VEC_iterate.
21395         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
21396         a dbg_cnt, use it and ensure the first insn is in the ready list.
21397         (haifa_sched_init): Allocate scheduled_insns.
21398         (sched_extend_ready_list): Don't allocate it; reserve space.
21399         (haifa_sched_finish): Free it.
21400
21401 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
21402
21403         * optc-gen.awk: Always remove type from Variable entry before
21404         recording in var_seen.
21405
21406 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
21407
21408         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
21409         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
21410         call to tidy_fallthru_edges.
21411
21412 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
21413
21414         * doc/options.texi (ToLower): Document.
21415         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
21416         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
21417         * opts.h (cl_option): Add cl_tolower field.
21418         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
21419         arguments with lowercase strings.
21420         * config/rx/rx.opt (mcpu=): Add ToLower.
21421         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
21422         argument.
21423
21424 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
21425
21426         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
21427
21428 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
21429
21430         * config/vax/vax.c: Include reload.h.
21431
21432 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
21433
21434         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
21435         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
21436         (sparc_preferred_reload_class): New function.
21437
21438 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
21439
21440         PR debug/48401
21441         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
21442         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
21443
21444 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
21445
21446         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
21447         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
21448
21449 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
21450
21451         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
21452         (ASM_OUTPUT_ALIGNED_BSS): Define.
21453
21454 2011-04-03  Michael Matz  <matz@suse.de>
21455
21456         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
21457         and next_slot members.
21458         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
21459         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
21460         (lto_streamer_cache_append): Declare.
21461         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
21462         unsigned index, remove offset parameter, ensure that we append
21463         or update existing entries.
21464         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
21465         parameter, update next_slot for append.
21466         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
21467         parameter.
21468         (lto_streamer_cache_insert_at): Likewise.
21469         (lto_streamer_cache_append): New function.
21470         (lto_streamer_cache_lookup): Use unsigned index.
21471         (lto_streamer_cache_get): Likewise.
21472         (lto_record_common_node): Don't test tree_node_can_be_shared.
21473         (preload_common_node): Adjust call to lto_streamer_cache_insert.
21474         (lto_streamer_cache_delete): Don't free offsets member.
21475         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
21476         (lto_output_string_with_length): Use lto_output_data_stream.
21477         (lto_output_tree_header): Remove ix parameter, don't write it.
21478         (lto_output_builtin_tree): Likewise.
21479         (lto_write_tree): Adjust callers to above, don't track and write
21480         offset, write unsigned index.
21481         (output_unreferenced_globals): Don't emit all global vars.
21482         (write_global_references): Use unsigned indices.
21483         (lto_output_decl_state_refs): Likewise.
21484         (write_symbol): Likewise.
21485         * lto-streamer-in.c (lto_input_chain): Move earlier.
21486         (input_function): Use unsigned index.
21487         (input_alias_pairs): Don't read and then ignore all global vars.
21488         (lto_materialize_tree): Remove ix_p parameter, don't read index,
21489         don't pass it back, use lto_streamer_cache_append.
21490         (lto_register_var_decl_in_symtab): Use unsigned index.
21491         (lto_register_function_decl_in_symtab): Likewise.
21492         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
21493         index.
21494         (lto_get_builtin_tree): Don't read index, use
21495         lto_streamer_cache_append.
21496         (lto_read_tree): Adjust call to lto_materialize_tree.
21497
21498         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
21499         don't use function calls in arguments to MIN.
21500
21501         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
21502         twice.
21503
21504         * gimple.c (gimple_type_leader_entry): Mark deletable.
21505
21506 2011-04-03  Alan Modra  <amodra@gmail.com>
21507
21508         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
21509
21510 2011-04-03  Michael Matz  <matz@suse.de>
21511
21512         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
21513         an integer.
21514         * tree.h (tree_decl_non_common.vindex): Adjust comment.
21515
21516 2011-04-03  Michael Matz  <matz@suse.de>
21517
21518         * cgraphbuild.c (record_reference): Canonicalize constructor values.
21519         * gimple-fold.c (canonicalize_constructor_val): Accept being called
21520         without function context.
21521         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
21522         current_function_decl and cfun.
21523
21524 2011-04-03  Michael Matz  <matz@suse.de>
21525
21526         * tree.c (decl_init_priority_insert): Don't create entry for
21527         default priority.
21528         (decl_fini_priority_insert): Ditto.
21529         (fields_compatible_p, find_compatible_field): Remove.
21530         * tree.h (fields_compatible_p, find_compatible_field): Remove.
21531         * gimple.c (gimple_compare_field_offset): Adjust block comment.
21532
21533 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
21534
21535         * combine.c (try_combine): Remove useless local variable.
21536
21537 2011-04-03  Richard Guenther  <rguenther@suse.de>
21538             Ira Rosen  <ira.rosen@linaro.org>
21539
21540         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
21541         non-variable offsets and compare the remaining bases of the two
21542         accesses instead of looking for exact same data-ref.
21543
21544 2011-04-02  Kai Tietz  <ktietz@redhat.com>
21545
21546         PR target/48416
21547         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
21548
21549         * i386.c (ix86_is_msabi_thiscall): New helper function.
21550         (ix86_is_type_thiscall): New helper function.
21551         (ix86_comp_type_attributes): Handle thiscall for method-functions
21552         special.
21553         (init_cumulative_args): Likewise.
21554         (find_drap_reg): Likewise.
21555         (ix86_static_chain): Likewise.
21556         (x86_this_parameter): Likewise.
21557         (x86_output_mi_thunk): Likewise.
21558
21559 2011-04-01  Olivier Hainque  <hainque@adacore.com>
21560             Nicolas Setton  <setton@adacore.com>
21561             Eric Botcazou  <ebotcazou@adacore.com>
21562
21563         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
21564         (add_gnat_descriptive_type_attribute): New function.
21565         (gen_array_type_die): Call it.
21566         (gen_enumeration_type_die): Likewise.
21567         (gen_struct_or_union_type_die): Likewise.
21568         (modified_type_die): Likewise.
21569         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
21570         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
21571         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
21572
21573 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
21574
21575         PR bootstrap/48148
21576         * dwarf2out.c (resolve_addr): Don't call force_decl_die
21577         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
21578
21579         Revert:
21580         2011-03-17  Richard Guenther  <rguenther@suse.de>
21581
21582         PR bootstrap/48148
21583         * lto-cgraph.c (input_overwrite_node): Clear the abstract
21584         origin for decls in other ltrans units.
21585         (input_varpool_node): Likewise.
21586
21587 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
21588
21589         PR middle-end/48335
21590         * expr.c (expand_assignment): Handle all possibilities
21591         if TO_RTX is CONCAT.
21592         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
21593         (store_split_bit_field): If SUBREG_REG (op0) or
21594         op0 itself has smaller mode than word, return it
21595         for offset 0 and const0_rtx for out-of-bounds stores.
21596         If word is const0_rtx, skip it.
21597
21598 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
21599
21600         * config/h8300/h8300.c (print_operand_address): Rename to...
21601         (h8300_print_operand_address): ...this. Make static. Adjust comments.
21602         Call h8300_print_operand and h8300_print_operand_address instead of
21603         print_operand and print_operand_address. Declare.
21604         (print_operand): Renake to...
21605         (h8300_print_operand): ...this. Make static. Adjust comments.
21606         Call h8300_print_operand instead of print_operand. Declare.
21607         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
21608         (h8300_register_move_cost): Likewise.
21609         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
21610         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
21611         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
21612         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
21613         * config/h8300/h8300-protos.h (print_operand): Delete.
21614         (print_operand_address): Delete.
21615
21616 2011-04-01  Richard Henderson  <rth@redhat.com>
21617
21618         PR 48400
21619         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
21620         in strict mode before dwarf4.  Re-order tests to early out
21621         before switching sections.
21622
21623 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
21624
21625         * config/h8300/constraints.md: New file.
21626         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
21627         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
21628         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
21629         * config/h8300/predicates.md (bit_operand): Likewise.
21630         (incdec_operand): Use satisfies_constraint_M and
21631         satisfies_constraint_O.  Don't use C code block.
21632         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
21633         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
21634         (compute_mov_length): Use satisfies_constraint_G.
21635         (fix_bit_operand): Use satisfies_constraint_U.
21636         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
21637         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
21638         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
21639         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
21640         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
21641         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
21642         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
21643         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
21644         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
21645         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
21646         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
21647         (EXTRA_MEMORY_CONSTRAINT): Delete.
21648
21649 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
21650             Michael Meissner  <meissner@linux.vnet.ibm.com>
21651
21652         PR target/48262
21653         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
21654         operands, as per the specifications.
21655
21656         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
21657         (vec_extract_evenv4sf): Ditto.
21658         (vec_extract_evenv8hi): Ditto.
21659         (vec_extract_evenv16qi): Ditto.
21660         (vec_extract_oddv4si): Ditto.
21661
21662 2011-03-31  Mark Wielaard  <mjw@redhat.com>
21663
21664         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
21665         high_pc attribute if the CU has no associated code. Only output
21666         DW_AT_entry_pc for CU if not generating strict dwarf and
21667         dwarf_version < 4.
21668
21669 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
21670
21671         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
21672         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
21673         out of ...
21674         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
21675         * final.c (final_start_function): Call the new function rather
21676         than using a NULL argument for dwarf2out_frame_debug.
21677
21678         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
21679         that contains the prologue.
21680
21681         * haifa-sched.c (queue_insn): New arg REASON.  All callers
21682         changed.  Print it in debugging output.
21683
21684         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
21685
21686         * sched-ebb.c (begin_schedule_ready): Remove second argument.
21687         Split most of the code into...
21688         (begin_move_insn): ... here.  New function.
21689         (ebb_sched_info): Add a pointer to it.
21690         * haifa-sched.c (scheduled_insns): New static variable.
21691         (sched_extend_ready_list): Allocate it.
21692         (schedule_block): Use it to record the order of scheduled insns.
21693         Perform RTL changes to move insns only after all scheduling
21694         decisions have been made.
21695         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
21696         begin_move_insn field.
21697         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
21698         * sched-int.h (struct haifa_sched_info): Remove second argument
21699         from begin_schedule_ready hook.  Add new member begin_move_insn.
21700         * sched-rgn.c (begin_schedule_ready): Remove second argument.
21701         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
21702
21703         * haifa-sched.c (prune_ready_list): New function, broken out of
21704         schedule_block.
21705         (schedule_block): Use it.
21706
21707 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21708
21709         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
21710
21711 2011-04-01  Kai Tietz  <ktietz@redhat.com>
21712
21713         * config.gcc (*-*-mingw*): Allow as option the
21714         posix threading model.
21715         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
21716         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
21717         definition.
21718         (CPP_SPEC): Add pthread/no-pthread handling.
21719         (LIB_SPEC): Likewise.
21720         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
21721         (LIB_SPEC): Likewise.
21722         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
21723         flag to pass -pthread option for shared libgcc build.
21724         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
21725         for shared libgcc build.
21726         * config/i386/t-mingw-pthread: New file.
21727         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
21728         New define to enable use of library pthread by default.
21729         * config/i386/mingw.opt (pthread): New driver option.
21730         (no-pthread): New driver option.
21731         * config/i386/cygming.opt: Make sure trailing empty line is retained.
21732         * config/i386/mingw-w64.opt: Likewise.
21733
21734 2011-04-01  Gary Funck  <gary@intrepid.com>
21735
21736         * c-decl.c (grokdeclarator): Fix formatting.
21737
21738 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
21739
21740         * expr.c (emit_block_move_via_movmem): Use n_generator_args
21741         instead of n_operands.
21742         (set_storage_via_setmem): Likewise.
21743         * optabs.c (maybe_gen_insn): Likewise.
21744         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
21745         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
21746         (mips_expand_builtin_direct): Likewise.
21747         * config/spu/spu.c (expand_builtin_args): Likewise.
21748
21749 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
21750
21751         * recog.h (insn_data_d): Add n_generator_args.
21752         * genoutput.c (data): Likewise.
21753         (output_insn_data): Print it.
21754         (max_opno, num_dups): Delete.
21755         (scan_operands): Just fill in "d->operand[...]".
21756         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
21757
21758 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
21759
21760         * gensupport.h (pattern_stats): New structure.
21761         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
21762         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
21763         (max_operand_1, max_operand_vec): Delete.
21764         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
21765
21766 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
21767
21768         * emit-rtl.c (emit_pattern_after_setloc): New function.
21769         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
21770         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
21771         (emit_pattern_after): New function.
21772         (emit_insn_after, emit_jump_insn_after): Call it.
21773         (emit_call_insn_after, emit_debug_insn_after): Likewise.
21774         (emit_pattern_before_setloc): New function.
21775         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
21776         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
21777         Likewise.
21778         (emit_pattern_before): New function.
21779         (emit_insn_before, emit_jump_insn_before): Call it.
21780         (emit_call_insn_before, emit_debug_insn_before): Likewise.
21781
21782 2011-03-31  Richard Henderson  <rth@redhat.com>
21783
21784         * dwarf2out.c (dw_separate_line_info_ref): Remove.
21785         (dw_separate_line_info_entry): Remove.
21786         (enum dw_line_info_opcode): New.
21787         (dw_line_info_entry): Use it.
21788         (dw_line_info_table, dw_line_info_table_p): New.
21789         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
21790         (line_info_table, line_info_label_num): Remove.
21791         (line_info_table_in_use): Remove.
21792         (separate_line_info_table): Remove.
21793         (separate_line_info_table_allocated): Remove.
21794         (separate_line_info_table_in_use): Remove.
21795         (LINE_INFO_TABLE_INCREMENT): Remove.
21796         (line_info_label_num): New.
21797         (cur_line_info_table): New.
21798         (text_section_line_info, cold_text_section_line_info): New.
21799         (separate_line_info): New.
21800         (SEPARATE_LINE_CODE_LABEL): Remove.
21801         (print_dwarf_line_table): Remove.
21802         (debug_dwarf): Don't dump it.
21803         (output_one_line_info_table): New.
21804         (output_line_info): Use it.
21805         (new_line_info_table): New.
21806         (set_cur_line_info_table): New.
21807         (dwarf2out_switch_text_section): Use it.
21808         (dwarf2out_begin_function): Likewise.
21809         (push_dw_line_info_entry): New.
21810         (dwarf2out_source_line): Rewrite for new line info tables.
21811         (dwarf2out_init): Remove dead initailizations.
21812
21813 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
21814
21815         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
21816         various flags.
21817         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
21818         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
21819         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
21820         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
21821         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
21822         * opt-functions.awk (flag_init, switch_bit_fields): New.
21823         (switch_flags): Don't handle flags moved to bit-fields.  Don't
21824         generate CL_MISSING_OK or CL_SAVE.
21825         * optc-gen.awk: Update to generate bit-field output as well as
21826         flags field.
21827         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
21828         bit-field instead of CL_REJECT_DRIVER flag.
21829         * opts-common.c (generate_canonical_option,
21830         decode_cmdline_option): Use bit-fields instead of CL_* flags.
21831         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
21832         instead of CL_REJECT_NEGATIVE flag.
21833         * toplev.c (print_switch_values): Use cl_report bit-field instead
21834         of CL_REPORT flag.
21835
21836 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
21837
21838         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
21839         a zero minimum index only if it is redundant.
21840
21841 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
21842
21843         PR rtl-optimization/48381
21844         * ira-color.c (assign_hard_reg): Use hard reg set intersection
21845         instead of ira_class_hard_reg_index for calculating conflicting
21846         hard registers.
21847
21848 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
21849
21850         * cprop.c: Clean up hash table building.
21851         (reg_avail_info): Remove.
21852         (oprs_available_p): Remove.
21853         (record_last_reg_set_info): Remove.
21854         (record_last_set_info): Remove.
21855         (reg_available_p): New function.
21856         (gcse_constant_p): Do not treat unfolded conditions as constants.
21857         (make_set_regs_unavailable): New function.
21858         (hash_scan_set): Simplify with new reg_available_p.
21859         (compute_hash_table_work): Traverse insns stream only once.
21860         Do not compute reg_avail_info. Traverse insns in reverse order.
21861         Record implicit sets after recording explicit sets from the block.
21862
21863 2011-03-31  Michael Matz  <matz@suse.de>
21864
21865         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
21866
21867 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
21868
21869         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
21870         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
21871         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
21872         (h8300_mode_dependent_address_p): New function.
21873         (h8300_get_index): Make static.
21874
21875 2011-03-31  Jeff Law  <law@redhat.com>
21876
21877         * reload1.c (elimination_effects): Fix typo in recent change.
21878
21879         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
21880         typo potentially leading to null pointer dereference.
21881
21882         * caller-save.c (new_saved_hard_reg): Eliminate return value.
21883         (setup_save_areas): Corresponding changes to avoid useless
21884         assignments.
21885
21886         * jump.c (reversed_comparison_code_parts): Avoid successive return
21887         statements when REVERSE_CONDITION is defined.
21888
21889         * expr.c (expand_assignment): Avoid useless assignments.
21890         (expand_expr_real_1): Likewise.
21891         (expand_expr_real_2): Avoid useless statements.
21892
21893         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
21894
21895         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
21896
21897         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
21898         statements.
21899
21900         * stmt.c (expand_expr_stmt): Avoid useless assignment.
21901
21902 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
21903
21904         PR target/47109
21905         * doc/tm.texi.in (TARGET_VERSION): Remove.
21906         * doc/tm.texi: Regenerate.
21907         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
21908         * collect2.c (main): Don't use TARGET_VERSION.
21909         * mips-tdump.c (main): Don't use TARGET_VERSION.
21910         * mips-tfile.c (main): Don't use TARGET_VERSION.
21911         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
21912         * config/rs6000/vxworksae.h: Remove.
21913         * config/alpha/alpha.h (TARGET_VERSION): Remove.
21914         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
21915         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
21916         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
21917         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
21918         * config/arm/arm.h (TARGET_VERSION): Remove.
21919         * config/arm/coff.h (TARGET_VERSION): Remove.
21920         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
21921         * config/arm/elf.h (TARGET_VERSION): Remove.
21922         * config/arm/freebsd.h (TARGET_VERSION): Remove.
21923         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
21924         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
21925         * config/arm/pe.h (TARGET_VERSION): Remove.
21926         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
21927         * config/arm/semi.h (TARGET_VERSION): Remove.
21928         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
21929         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
21930         * config/arm/vxworks.h (TARGET_VERSION): Remove.
21931         * config/avr/avr.h (TARGET_VERSION): Remove.
21932         * config/bfin/bfin.h (TARGET_VERSION): Remove.
21933         * config/fr30/fr30.h (TARGET_VERSION): Remove.
21934         * config/frv/frv.h (TARGET_VERSION): Remove.
21935         * config/h8300/h8300.h (TARGET_VERSION): Remove.
21936         * config/i386/cygwin.h (TARGET_VERSION): Remove.
21937         * config/i386/darwin.h (TARGET_VERSION): Remove.
21938         * config/i386/darwin64.h (TARGET_VERSION): Remove.
21939         * config/i386/djgpp.h (TARGET_VERSION): Remove.
21940         * config/i386/freebsd.h (TARGET_VERSION): Remove.
21941         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
21942         * config/i386/gnu.h (TARGET_VERSION): Remove.
21943         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
21944         * config/i386/i386elf.h (TARGET_VERSION): Remove.
21945         * config/i386/linux.h (TARGET_VERSION): Remove.
21946         * config/i386/linux64.h (TARGET_VERSION): Remove.
21947         * config/i386/lynx.h (TARGET_VERSION): Remove.
21948         * config/i386/mingw32.h (TARGET_VERSION): Remove.
21949         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
21950         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
21951         * config/i386/netware.h (TARGET_VERSION): Remove.
21952         * config/i386/nto.h (TARGET_VERSION): Remove.
21953         * config/i386/openbsd.h (TARGET_VERSION): Remove.
21954         * config/i386/vxworks.h (TARGET_VERSION): Remove.
21955         * config/ia64/elf.h (TARGET_VERSION): Remove.
21956         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
21957         * config/ia64/hpux.h (TARGET_VERSION): Remove.
21958         * config/ia64/linux.h (TARGET_VERSION): Remove.
21959         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
21960         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
21961         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
21962         * config/lm32/lm32.h (TARGET_VERSION): Remove.
21963         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
21964         * config/m32c/m32c.h (TARGET_VERSION): Remove.
21965         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
21966         * config/m32r/m32r.h (TARGET_VERSION): Remove.
21967         * config/m68k/linux.h (TARGET_VERSION): Remove.
21968         * config/m68k/m68k.h (TARGET_VERSION): Remove.
21969         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
21970         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
21971         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
21972         * config/mep/mep.h (TARGET_VERSION): Remove.
21973         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
21974         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
21975         * config/mips/iris6.h (MACHINE_TYPE): Remove.
21976         * config/mips/linux.h (TARGET_VERSION): Remove.
21977         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
21978         * config/mips/vxworks.h (TARGET_VERSION): Remove.
21979         * config/mmix/mmix.h (TARGET_VERSION): Remove.
21980         * config/mn10300/linux.h (TARGET_VERSION): Remove.
21981         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
21982         * config/pa/pa.h (TARGET_VERSION): Remove.
21983         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
21984         * config/picochip/picochip.h (TARGET_VERSION): Remove.
21985         * config/rs6000/aix.h (TARGET_VERSION): Remove.
21986         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
21987         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
21988         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
21989         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
21990         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
21991         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
21992         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
21993         * config/rs6000/linux.h (TARGET_VERSION): Remove.
21994         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
21995         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
21996         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
21997         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
21998         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
21999         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
22000         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
22001         * config/s390/linux.h (TARGET_VERSION): Remove.
22002         * config/s390/s390.h (TARGET_VERSION): Remove.
22003         * config/s390/tpf.h (TARGET_VERSION): Remove.
22004         * config/score/score.h (TARGET_VERSION): Remove.
22005         * config/sh/linux.h (TARGET_VERSION): Remove.
22006         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
22007         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
22008         * config/sh/sh.h (TARGET_VERSION): Remove.
22009         * config/sh/sh64.h (TARGET_VERSION): Remove.
22010         * config/sh/superh.h (TARGET_VERSION): Remove.
22011         * config/sh/vxworks.h (TARGET_VERSION): Remove.
22012         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
22013         * config/sparc/linux.h (TARGET_VERSION): Remove.
22014         * config/sparc/linux64.h (TARGET_VERSION): Remove.
22015         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
22016         TARGET_NAME32, TARGET_NAME): Remove.
22017         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
22018         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
22019         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
22020         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
22021         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
22022         * config/spu/spu.h (TARGET_VERSION): Remove.
22023         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
22024         * config/v850/v850.h (TARGET_VERSION): Remove.
22025         * config/vax/linux.h (TARGET_VERSION): Remove.
22026         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
22027         * config/xtensa/elf.h (TARGET_VERSION): Remove.
22028         * config/xtensa/linux.h (TARGET_VERSION): Remove.
22029
22030 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
22031
22032         PR target/48142
22033         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
22034         frame-related from frame-unrelated adjustments to the stack pointer.
22035
22036 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
22037
22038         * common.opt (fdebug-types-section): Move earlier.
22039         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
22040
22041 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
22042
22043         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
22044         var.
22045
22046 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
22047
22048         * tree.h (CASE_CHAIN): Define.
22049         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
22050         (gimple_redirect_edge_and_branch): Likewise.
22051
22052 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
22053
22054         PR middle-end/48367
22055         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
22056         calculation.
22057
22058 2011-03-30  Jeff Law  <law@redhat.com>
22059
22060         * PR bootstrap/48371
22061         * reload1.c (reload): Fix botch in last change.
22062
22063         * reload.h (struct reload): Fix typo introduced in last change.
22064
22065 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
22066
22067         * config/arm/arm.opt (mhard-float, msoft-float): Mark
22068         Undocumented.  Remove help text.
22069         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
22070         -mhard-float.
22071
22072 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
22073
22074         * doc/options.texi (NegativeAlias): Document.
22075         (Alias): Mention NegativeAlias.
22076         * opt-functions.awk: Handle NegativeAlias.
22077         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
22078         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
22079         * opts.h (CL_NEGATIVE_ALIAS): Define.
22080         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
22081         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
22082         OPT_mspe_.
22083         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
22084         Alias entries.
22085         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
22086         mno-spe and mno-isel instead of mspe=no and -misel=no.
22087
22088 2011-03-29  Mark Wielaard  <mjw@redhat.com>
22089
22090         * common.opt (fdebug-types-section): New flag.
22091         * doc/invoke.texi: Document new -fno-debug-types-section flag.
22092         * dwarf2out.c (use_debug_types): New define.
22093         (struct die_struct): Mark die_id with GTY desc use_debug_types.
22094         (print_die): Guard output of type unit signatures using
22095         use_debug_types.
22096         (build_abbrev_table): Replace assert of dwarf_version >= 4
22097         with assert on use_debug_types.
22098         (size_of_die): Likewise.
22099         (unmark_dies): Likewise.
22100         (value_format): Decide AT_ref_external form on use_debug_types.
22101         (output_die): Replace dwarf_version version check guard with
22102         use_debug_types where appropriate.
22103         (modified_type_die): Likewise.
22104         (gen_reference_type_die): Likewise.
22105         (dwarf2out_start_source_file): Likewise.
22106         (dwarf2out_end_source_file): Likewise.
22107         (prune_unused_types_walk_attribs): Likewise.
22108         (dwarf2out_finish): Likewise.
22109
22110 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
22111
22112         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
22113
22114 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
22115
22116         PR rtl-optimization/48332
22117         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
22118         mode of input operand N and modeN to its actual mode.
22119
22120 2011-03-30  Jeff Law  <law@redhat.com>
22121
22122         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
22123         define accessor macro.
22124         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
22125         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
22126         (reg_equiv_init): Likewise.
22127         (reg_equivs_size): New variable.
22128         (reg_equiv_init_size): Remove.
22129         (allocate_initial_values): Move prototype to here from....
22130         * integrate.h (allocate_initial_values): Remove prototype.
22131         * integrate.c: Include reload.h.
22132         (allocate_initial_values): Corresponding changes.
22133         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
22134         (fix_reg_equiv_init, no_equiv): Corresponding changes.
22135         (update_equiv_regs): Corresponding changes.
22136         (ira): Corresponding changes.
22137         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
22138         (push_secondary_reload): Corresponding changes.
22139         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
22140         (make_memloc, find_reloads_address): Corresponding changes.
22141         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
22142         (find_reloads_address_1): Corresponding changes.
22143         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
22144         (refers_to_regno_for_reload_p): Corresponding changes.
22145         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
22146         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
22147         * reload1.c: Include ggc.h.
22148         (grow_reg_equivs): New function.
22149         (replace_pseudos_in, reload): Corresponding changes.
22150         (calculate_needs_all_insns, alter_regs): Corresponding changes.
22151         (eliminate_regs_1, elimination_effects): Corresponding changes.
22152         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
22153         (delete_output_reload): Likewise.
22154         * caller-save.c (mark_referenced_regs): Corresponding changes.
22155         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
22156         * frv/predicates.md (frv_load_operand): Corresponding changes.
22157         * microblaze/microblaze.c (double_memory_operand): Corresponding
22158         changes.
22159         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
22160         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
22161         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
22162         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
22163         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
22164         changes.
22165         * pa/pa.c (emit_move_sequence): Corresponding changes.
22166         * vax/vax.c (nonindexed_address_p): Corresponding changes.
22167
22168 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
22169
22170         PR target/47551
22171         * config/arm/arm.c (coproc_secondary_reload_class): Handle
22172         structure modes.  Don't check neon_vector_mem_operand for
22173         vector or structure modes.
22174
22175 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
22176             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
22177
22178         PR target/43590
22179         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
22180         operand 1 and reshuffle the operands to match.
22181         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
22182
22183 2011-03-30  Christian Schüler  <cschueler@gmx.de>
22184
22185         PR driver/48208
22186         * config/c.opt (F): Added 'Driver' to -F option.
22187
22188         PR driver/48260
22189         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
22190           handler function.
22191         * config/darwin.opt: Added '-arch' option.
22192
22193 2011-03-30  Nick Clifton  <nickc@redhat.com>
22194
22195         * config/rx/rx.md: Add peepholes and patterns to combine
22196         extending loads and simple arithmetic instructions.
22197         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
22198         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
22199         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
22200         modes to use pre-decrement and post-increment addressing.
22201         (rx_is_restricted_memory_address): Add range checking of REG+INT
22202         addresses.
22203         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
22204         (rx_memory_move_cost): Adjust cost of stores.
22205         (rx_adjust_insn_length): New function.
22206
22207 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
22208
22209         PR c/48305
22210         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
22211         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
22212         matching arg00/arg01 types.
22213
22214 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
22215
22216         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
22217         last_location to UNKNOWN_LOCATION.
22218
22219 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
22220
22221         PR target/48349
22222         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
22223         FLOAT_SSE_REGS.
22224
22225 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
22226             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22227
22228         PR bootstrap/48337
22229         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
22230         Init(PROCESSOR_V7).
22231         (sparc_cpu): Likewise.
22232         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
22233         PROCESSOR_V7.
22234
22235 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
22236
22237         PR target/48336
22238         PR middle-end/48342
22239         PR rtl-optimization/48345
22240         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
22241         hard regs for given mode from profitable regs when doing secondary
22242         allocation.
22243
22244 2011-03-29  Jeff Law  <law@redhat.com>
22245
22246         PR bootstrap/48327
22247         * tree-ssa-threadupdate.c (struct redirection_data): Remove
22248         do_not_duplicate field.
22249         (lookup_redirection_data): Corresponding changes.
22250         (create_duplicates): Always create a template block.
22251         (redirect_edges): Remove code which reused the original block
22252         when it was going to become unreachable code.
22253         (thread_block): Don't set do_not_duplicate field.
22254
22255 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
22256
22257         * lto-opts.c (register_user_option_p, lto_register_user_option):
22258         Make type argument unsigned.
22259         * lto-streamer.h (lto_register_user_option): Make type argument
22260         unsigned.
22261         * opth-gen.awk: Make CL_* macros unsigned.
22262         * opts-common.c (find_opt): Make lang_mask argument unsigned.
22263         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
22264         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
22265         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
22266         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
22267         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
22268         (find_opt): Make lang_mask argument unsigned.
22269
22270 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
22271
22272         PR rtl-optimization/48331
22273         PR rtl-optimization/48334
22274         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
22275         for any used algorithm.
22276
22277 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
22278
22279         * ira-conflicts.c (build_object_conflicts): Add unused attribute
22280         to parent_max.
22281
22282 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
22283
22284         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
22285         (alpha_option_override): Don't set alpha_sr_alias_set.
22286         (emit_frame_store_1): Use gen_frame_mem rather than calling
22287         set_mem_alias_set.
22288         (alpha_expand_epilogue): Ditto.
22289
22290 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
22291
22292         PR tree-optimization/48290
22293         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
22294         vectorization, check that relevant phis in the basic block after
22295         the inner loop are really inner loop's exit phis.
22296
22297 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
22298
22299         PR debug/48190
22300         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
22301         (cached_dw_loc_list_def): New structure.
22302         (cached_dw_loc_list): New typedef.
22303         (cached_dw_loc_list_table): New variable.
22304         (cached_dw_loc_list_table_hash): New function.
22305         (cached_dw_loc_list_table_eq): Likewise.
22306         (add_location_or_const_value_attribute): Take a bool cache_p.
22307         Cache the list when the parameter is true.
22308         (gen_formal_parameter_die): Update caller.
22309         (gen_variable_die): Likewise.
22310         (dwarf2out_finish): Likewise.
22311         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
22312         while generating debug info for the decl.
22313         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
22314         (dwarf2out_init): Initialize cached_dw_loc_list_table.
22315         (resolve_addr): Cache the result of resolving a chain of
22316         location lists.
22317
22318 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
22319
22320         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
22321         conflict object hard regset nodes have intersecting hard reg sets.
22322
22323         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
22324         after regstat_init_n_sets_and_refs.
22325
22326         * ira.c: Add more comments at the top.
22327         (setup_stack_reg_pressure_class, setup_pressure_classes):
22328         Add comments how we compute the register pressure classes.
22329         (setup_allocno_and_important_classes): Add more comments.
22330         (setup_class_translate_array, reorder_important_classes)
22331         (setup_reg_class_relations): Add comments.
22332
22333         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
22334         start of the file.
22335
22336         * ira-color.c: Add 2011 to the Copyright line.
22337         (assign_hard_reg):  Add more comments.
22338         (improve_allocation): Ditto.
22339
22340         * ira-costs.c: Add 2011 to the Copyright line.
22341         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
22342         comments.
22343         (setup_regno_cost_classes_by_mode): Ditto.
22344
22345         Initial patches from ira-improv branch:
22346
22347         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
22348
22349         * ira-build.c (ira_create_object): Remove initialization of
22350         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
22351         (ira_create_allocno): Remove initialization of
22352         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
22353         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
22354         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
22355         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
22356         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
22357         Initialize ALLOCNO_ADD_DATA.
22358         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
22359         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
22360         ALLOCNO_REG.
22361         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
22362         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
22363
22364         * ira.c (ira_reallocate): Remove.
22365         (setup_pressure_classes): Call
22366         ira_init_register_move_cost_if_necessary.  Use
22367         ira_register_move_cost instead of ira_get_register_move_cost.
22368         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
22369         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
22370
22371         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
22372         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
22373         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
22374         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
22375         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
22376         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
22377         Fix formatting.
22378         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
22379         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
22380         (struct allocno_color_data): New.
22381         (allocno_color_data_t): New typedef.
22382         (allocno_color_data): New definition.
22383         (ALLOCNO_COLOR_DATA): New macro.
22384         (struct object_color_data): New.
22385         (object_color_data_t): New typedef.
22386         (object_color_data): New definition.
22387         (OBJECT_COLOR_DATA): New macro.
22388         (update_copy_costs, calculate_allocno_spill_cost): Call
22389         ira_init_register_move_cost_if_necessary.  Use
22390         ira_register_move_cost instead of ira_get_register_move_cost.
22391         (move_spill_restore, update_curr_costs): Ditto.
22392         (allocno_spill_priority): Make it inline.
22393         (color_pass): Allocate and free allocno_color_dat and object_color_data.
22394         (struct coalesce_data, coalesce_data_t): New.
22395         (allocno_coalesce_data): New definition.
22396         (ALLOCNO_COALESCE_DATA): New macro.
22397         (merge_allocnos, coalesced_allocno_conflict_p): Use
22398         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
22399         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
22400         (coalesce_allocnos): Ditto.
22401         (setup_coalesced_allocno_costs_and_nums): Ditto.
22402         (collect_spilled_coalesced_allocnos): Ditto.
22403         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
22404         (setup_slot_coalesced_allocno_live_ranges): Ditto.
22405         (coalesce_spill_slots): Ditto.
22406         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
22407         free allocno_coalesce_data.
22408
22409         * ira-conflicts.c: Fix formatting.
22410         (process_regs_for_copy): Call
22411         ira_init_register_move_cost_if_necessary.  Use
22412         ira_register_move_cost instead of ira_get_register_move_cost.
22413         (build_object_conflicts): Optimize.
22414
22415         * ira-costs.c (record_reg_classes): Optimize.  Call
22416         ira_init_register_move_cost_if_necessary.  Use
22417         ira_register_move_cost, ira_may_move_in_cost, and
22418         ira_may_move_out_cost instead of ira_get_register_move_cost and
22419         ira_get_may_move_cost.
22420         (record_address_regs): Ditto.
22421         (scan_one_insn): Optimize.
22422         (find_costs_and_classes): Optimize.
22423         (process_bb_node_for_hard_reg_moves): Call
22424         ira_init_register_move_cost_if_necessary.  Use
22425         ira_register_move_cost instead of ira_get_register_move_cost.
22426
22427         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
22428         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
22429         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
22430         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
22431         definitions.
22432         (ira_initiate_emit_data, ira_finish_emit_data)
22433         (create_new_allocno): New functions.
22434         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
22435         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
22436         Use ira_register_move_cost instead of ira_get_register_move_cost.
22437
22438         * ira-int.h: Fix some comments.
22439         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
22440         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
22441         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
22442         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
22443         add_data.
22444         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
22445         bitfield after mode.  Make hard_regno a short int.  Make
22446         hard_regno short.  Remove first_coalesced_allocno and
22447         next_coalesced_allocno.  Move mem_optimized_dest_p,
22448         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
22449         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
22450         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
22451         temp, colorable_p.  Add new member add_data.
22452         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
22453         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
22454         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
22455         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
22456         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
22457         (ALLOCNO_ADD_DATA): New macro.
22458         (ira_emit_data_t): New typedef.
22459         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
22460         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
22461         from struct ira_allocno.
22462         (ALLOCNO_EMIT_DATA): New macro.
22463         (ira_allocno_emit_data, allocno_emit_reg): New.
22464         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
22465         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
22466         (OBJECT_ADD_DATA): New macro.
22467         (ira_reallocate): Remove.
22468         (ira_initiate_emit_data, ira_finish_emit_data): New.
22469         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
22470         (ira_init_register_move_cost_if_necessary): New.
22471         (ira_object_conflict_iter_next): Merge into
22472         ira_object_conflict_iter_cond.
22473         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
22474
22475         * ira-live.c (process_single_reg_class_operands): Call
22476         ira_init_register_move_cost_if_necessary.  Use
22477         ira_register_move_cost instead of ira_get_register_move_cost.
22478
22479         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
22480
22481         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
22482
22483         * ira-costs.c: Fix formatting.
22484         (cost_classes, cost_classes_num): Remove.
22485         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
22486         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
22487         (cost_classes_del, cost_classes_htab): New.
22488         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
22489         (initiate_regno_cost_classes, setup_cost_classes): New.
22490         (setup_regno_cost_classes_by_aclass): New.
22491         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
22492         (record_reg_classes): Use regno_cost_classes instead of
22493         cost_classes.  Move checking opposite operand up.
22494         (record_address_regs): Use regno_cost_classes
22495         instead of cost_classes.
22496         (scan_one_insn): Ditto.  Use always general register.
22497         (print_allocno_costs): Use regno_cost_classes instead of
22498         cost_classes.
22499         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
22500         (find_costs_and_classes): Set up cost classes for each registers.
22501         Use also their mode for this.  Use regno_cost_classes instead of
22502         cost_classes.
22503         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
22504         cost_classes.
22505         (free_ira_costs, ira_init_costs): Don't use cost_classes.
22506         (ira_costs, ira_set_pseudo_classes): Call
22507         initiate_regno_cost_classes and finish_regno_cost_classes.
22508
22509         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
22510
22511         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
22512
22513         * target.def (ira_cover_classes): Remove.
22514
22515         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
22516
22517         * doc/tm.texi.in: Ditto.
22518
22519         * ira-conflicts.c: Remove mentioning cover classes from the file.
22520         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
22521         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
22522
22523         * targhooks.c (default_ira_cover_classes): Remove.
22524
22525         * targhooks.h (default_ira_cover_classes): Ditto.
22526
22527         * haifa-sched.c: Remove mentioning cover classes from the file.
22528         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
22529         ira_pressure_classes and ira_pressure_classes_num instead of
22530         ira_reg_class_cover_size and ira_reg_class_cover.  Use
22531         sched_regno_pressure_class instead of sched_regno_cover_class.
22532         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
22533         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
22534
22535         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
22536         classes from the file.
22537         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
22538         (struct object_hard_regs, struct object_hard_regs_node): New.
22539         (struct ira_object): New members profitable_hard_regs,
22540         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
22541         (struct ira_allocno): Rename cover_class to aclass.  Rename
22542         cover_class_cost and updated_cover_class_cost to class_cost and
22543         updated_class_cost.  Remove splay_removed_p and
22544         left_conflict_size.  Add new members colorable_p.
22545         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
22546         (ALLOCNO_COLORABLE_P): New macro.
22547         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
22548         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
22549         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
22550         (OBJECT_...): Rename parameter C to O.
22551         (OBJECT_PROFITABLE_HARD_REGS): New macro.
22552         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
22553         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
22554         (struct target_ira_int): New members x_ira_max_memory_move_cost,
22555         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
22556         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
22557         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
22558         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
22559         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
22560         x_ira_reg_class_subunion.
22561         (ira_max_memory_move_cost, ira_max_register_move_cost)
22562         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
22563         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
22564         (ira_important_class_nums, ira_reg_class_superunion): New macros.
22565         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
22566         (ira_reg_class_union): Rename to ira_reg_class_subunion.
22567         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
22568         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
22569         (ira_tune_allocno_costs_and_cover_classes): Rename to
22570         ira_tune_allocno_costs.
22571         (ira_debug_hard_regs_forest): New.
22572         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
22573         (ira_object_conflict_iter_next): Fix comments.
22574         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
22575         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
22576         cover_class to aclass.
22577         (ira_allocate_and_accumulate_costs): Ditto.
22578         (ira_allocate_and_set_or_copy_costs): Ditto.
22579
22580         * opts.c (decode_options): Remove ira_cover_class check.
22581
22582         * ira-color.c: Remove mentioning cover classes from the file.  Use
22583         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
22584         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
22585         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
22586         (splay-tree.h): Remove include.
22587         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
22588         before copy_freq_compare_func.
22589         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
22590         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
22591         New definitions.
22592         (hard_regs_roots, hard_regs_node_vec): Ditto.
22593         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
22594         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
22595         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
22596         (create_new_object_hard_regs_node): Ditto.
22597         (add_new_object_hard_regs_node_to_forest): Ditto.
22598         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
22599         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
22600         Ditto.
22601         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
22602         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
22603         (remove_unused_object_hard_regs_nodes): Ditto.
22604         (enumerate_object_hard_regs_nodes): Ditto.
22605         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
22606         (object_hard_regs_subnode_t): Ditto.
22607         (struct object_hard_regs_subnode): Ditto.
22608         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
22609         (setup_object_hard_regs_subnode_index): Ditto.
22610         (get_object_hard_regs_subnodes_num): Ditto.
22611         (form_object_hard_regs_nodes_forest): Ditto.
22612         (finish_object_hard_regs_nodes_tree): Ditto.
22613         (finish_object_hard_regs_nodes_forest): Ditto.
22614         (allocnos_have_intersected_live_ranges_p): Rename to
22615         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
22616         (pseudos_have_intersected_live_ranges_p): Rename to
22617         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
22618         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
22619         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
22620         (update_copy_costs): Remove assert.  Skip cost update if the hard
22621         reg does not belong the class.
22622         (assign_hard_reg): Process only profitable hard regs.
22623         (uncolorable_allocnos_num): Make it scalar.
22624         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
22625         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
22626         and ira_reg_class_max_nregs.
22627         (bucket_allocno_compare_func): Check frequency first.
22628         (sort_bucket): Add compare function as a parameter.
22629         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
22630         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
22631         (push_allocno_to_stack): Rewrite for checking new allocno
22632         colorability.
22633         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
22634         (push_only_colorable): Pass new parameter to sort_bucket.
22635         (push_allocno_to_spill): Remove.
22636         (allocno_spill_priority_compare): Make it inline and rewrite.
22637         (splay_tree_allocate, splay_tree_free): Remove.
22638         (allocno_spill_sort_compare): New function.
22639         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
22640         build and use splay tree.  Choose first allocno in uncolorable
22641         allocno bucket to spill.  Remove setting spill cost.
22642         (all_conflicting_hard_regs): Remove.
22643         (setup_allocno_available_regs_num): Check only profitable hard
22644         regs.  Print info about hard regs nodes.
22645         (setup_allocno_left_conflicts_size): Remove.
22646         (put_allocno_into_bucket): Don't call
22647         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
22648         (improve_allocation): New.
22649         (color_allocnos): Call setup_profitable_hard_regs,
22650         form_object_hard_regs_nodes_forest, improve_allocation,
22651         finish_object_hard_regs_nodes_forest.  Setup spill cost.
22652         (print_loop_title): Use pressure classes.
22653         (color_allocnso): Ditto.
22654         (do_coloring): Remove allocation and freeing splay_tree_node_pool
22655         and allocnos_for_spilling.
22656         (ira_sort_regnos_for_alter_reg): Don't setup members
22657         {first,next}_coalesced_allocno.
22658         (color): Remove allocating and freeing removed_splay_allocno_vec.
22659         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
22660         prohibited_class_mode_regs.
22661
22662         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
22663         formatting.
22664         (update_allocno_pressure_excess_length): Use pressure classes.
22665         (inc_register_pressure, dec_register_pressure): Check for pressure
22666         class.
22667         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
22668         pressure class.  Use ira_reg_class_nregs instead of
22669         ira_reg_class_max_nregs.
22670         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
22671         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
22672         (single_reg_class): Use ira_reg_class_nregs instead of
22673         ira_reg_class_max_nregs.
22674         (process_bb_node_lives): Use pressure classes.
22675
22676         * ira-emit.c: Remove mentioning cover classes from the file.  Use
22677         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
22678         (change_loop): Use pressure classes.
22679         (modify_move_list): Call ira_set_allocno_class instead of
22680         ira_set_allocno_cover_class.
22681
22682         * ira-build.c: Remove mentioning cover classes from the file.  Use
22683         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
22684         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
22685         ALLOCNO_UPDATED_CLASS_COST instead of
22686         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
22687         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
22688         (ira_create_allocno): Remove initialization of
22689         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
22690         ALLOCNO_COLORABLE_P.
22691         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
22692         Update conflict regs for the objects.
22693         (create_cap_allocno): Remove assert.  Don't propagate
22694         ALLOCNO_AVAILABLE_REGS_NUM.
22695         (ira_free_allocno_costs): New function.
22696         (finish_allocno): Change a part of code into call of
22697         ira_free_allocno_costs.
22698         (low_pressure_loop_node_p): Use pressure classes.
22699         (object_range_compare_func): Don't compare classes.
22700         (setup_min_max_conflict_allocno_ids): Ditto.
22701
22702         * loop-invariant.c: Remove mentioning cover classes from the file.
22703         Use ira_pressure_classes and ira_pressure_classes_num instead of
22704         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
22705         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
22706         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
22707         Use reg_allocno_class instead of reg_cover_class.
22708         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
22709         STACK_REG_COVER_CLASS.
22710         (get_regno_cover_class): Rename to get_regno_pressure_class.
22711         (move_loop_invariants): Initialize and finalize regstat.
22712
22713         * ira.c: Remove mentioning cover classes from the file.  Add
22714         comments about coloring without cover classes.  Use ALLOCNO_CLASS
22715         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
22716         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
22717         setup_class_subset_and_memory_move_costs.
22718         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
22719         (setup_cover_and_important_classes): Rename to
22720         setup_allocno_and_important_classes.
22721         (setup_class_translate_array): New.
22722         (setup_class_translate): Call it for allocno and pressure classes.
22723         (cover_class_order): Rename to allocno_class_order.
22724         (comp_reg_classes_func): Use ira_allocno_class_translate instead
22725         of ira_class_translate.
22726         (reorder_important_classes): Set up ira_important_class_nums.
22727         (setup_reg_class_relations): Set up ira_reg_class_superunion.
22728         (print_class_cover): Rename to print_classes.  Add parameter.
22729         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
22730         Print pressure classes too.
22731         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
22732         setup_reg_subclasses.
22733         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
22734         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
22735         (setup_prohibited_class_mode_regs): Use
22736         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
22737         (clarify_prohibited_class_mode_regs): New function.
22738         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
22739         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
22740         (ira_init_once): Initialize them.
22741         (free_register_move_costs): Process them.
22742         (ira_init): Move calls of find_reg_classes and
22743         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
22744         Call clarify_prohibited_class_mode_regs.
22745         (ira_no_alloc_reg): Remove.
22746         (too_high_register_pressure_p): Use pressure classes.
22747
22748         * sched-deps.c: Remove mentioning cover classes from the file.
22749         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
22750         ira_pressure_classes and ira_pressure_classes_num instead of
22751         ira_reg_class_cover_size and ira_reg_class_cover.
22752         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
22753         sched_regno_pressure_class instead of sched_regno_cover_class.
22754         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
22755         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
22756
22757         * ira.h: Add 2010 to Copyright.
22758         (ira_no_alloc_reg): Remove external.
22759         (struct target_ira): Rename x_ira_hard_regno_cover_class,
22760         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
22761         x_ira_class_translate to x_ira_hard_regno_allocno_class,
22762         x_ira_allocno_classes_num, x_ira_allocno_classes, and
22763         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
22764         x_ira_pressure_classes, x_ira_pressure_class_translate, and
22765         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
22766         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
22767         x_ira_no_alloc_regs.
22768         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
22769         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
22770         ira_allocno_classes_num and ira_allocno_classes.
22771         (ira_class_translate): Rename to ira_allocno_class_translate.
22772         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
22773         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
22774         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
22775         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
22776         (ira_no_alloc_regs): New.
22777
22778         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
22779         classes from the file.  Use ALLOCNO_CLASS instead of
22780         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
22781         ALLOCNO_COVER_CLASS_COST.
22782         (regno_cover_class): Rename to regno_aclass.
22783         (record_reg_classes): Use ira_reg_class_subunion instead of
22784         ira_reg_class_union.
22785         (record_address_regs): Check overflow.
22786         (scan_one_insn): Ditto.
22787         (print_allocno_costs): Print total mem cost fore regional allocation.
22788         (print_pseudo_costs): Use REG_N_REFS.
22789         (find_costs_and_classes): Use classes intersected with them on the
22790         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
22791         ira_reg_class_union.  Use ira_allocno_class_translate and
22792         regno_aclass instead of ira_class_translate and regno_cover_class.
22793         Modify code for finding regno_aclass.  Setup preferred classes for
22794         the next pass.
22795         (setup_allocno_cover_class_and_costs): Rename to
22796         setup_allocno_class_and_costs.  Use regno_aclass instead of
22797         regno_cover_class.  Use ira_set_allocno_class instead of
22798         ira_set_allocno_cover_class.
22799         (init_costs, finish_costs): Use regno_aclass instead of
22800         regno_cover_class.
22801         (ira_costs): Use setup_allocno_class_and_costs instead of
22802         setup_allocno_cover_class_and_costs.
22803         (ira_tune_allocno_costs_and_cover_classes): Rename to
22804         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
22805         by processing objects.  Use ira_reg_class_max_nregs instead of
22806         ira_reg_class_nregs.
22807
22808         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
22809
22810         * sched-int.h: Remove mentioning cover classes from the file.
22811         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
22812
22813         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
22814         classes from the file.
22815         (struct reg_pref): Rename coverclass into allocnoclass.
22816         (reg_cover_class): Rename to reg_allocno_class.
22817
22818         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
22819
22820         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
22821
22822         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
22823
22824         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
22825
22826         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
22827
22828         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
22829
22830         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
22831
22832         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
22833
22834         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
22835
22836         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
22837
22838         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
22839         (i386_ira_cover_classes): Ditto.
22840
22841         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
22842
22843         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
22844
22845         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
22846
22847         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
22848
22849         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
22850
22851         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
22852
22853         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
22854         (mips_ira_cover_classes): Ditto.
22855
22856         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
22857
22858         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
22859
22860         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
22861
22862         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
22863
22864         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
22865
22866         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
22867         (IRA_COVER_CLASSES_VSX): Ditto.
22868
22869         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
22870         (rs6000_ira_cover_classes): Ditto.
22871
22872         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
22873
22874         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
22875
22876         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
22877
22878         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
22879
22880         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
22881
22882         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
22883
22884         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
22885
22886         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
22887
22888         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
22889
22890         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
22891
22892 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
22893
22894         PR debug/48253
22895         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
22896         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
22897         dw_fde_unlikely_section_end_label, cold_in_std_section,
22898         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
22899         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
22900         fields.
22901         (output_fde): Use dw_fde_second_{begin,end} if second is
22902         true, otherwise dw_fde_{begin,end}.
22903         (output_call_frame_info): Test dw_fde_second_begin != NULL
22904         instead of dw_fde_switched_sections.
22905         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
22906         fields, initialize new fields.  Initialize in_std_section
22907         unconditionally from the first partition.
22908         (dwarf2out_end_epilogue): Don't override dw_fde_end when
22909         dw_fde_second_begin is non-NULL.
22910         (dwarf2out_switch_text_section): Stop initializing removed
22911         dw_fde_struct fields, initialize new fields, initialize
22912         also dw_fde_end here.  Set dw_fde_switch_cfi even when
22913         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
22914         (struct var_loc_list_def): Add last_before_switch field.
22915         (arange_table, arange_table_allocated, arange_table_in_use,
22916         ARANGE_TABLE_INCREMENT, add_arange): Removed.
22917         (size_of_aranges): Count !in_std_section and !second_in_std_section
22918         hunks in fdes, instead of looking at arange_table_in_use.
22919         (output_aranges): Add aranges_length argument, don't call
22920         size_of_aranges here.  Instead of using aranges_table*
22921         emit ranges for fdes when !in_std_section resp.
22922         !second_in_std_section.
22923         (dw_loc_list): Break ranges crossing section switch.
22924         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
22925         use dw_fde_second_end instead of dw_fde_end as end of last range.
22926         (gen_subprogram_die): Don't call add_arange.  Use
22927         dw_fde_{begin,end} for first partition and if switched
22928         section dw_fde_second_{begin,end} for the second.
22929         (var_location_switch_text_section_1,
22930         var_location_switch_text_section): New functions.
22931         (dwarf2out_begin_function): Initialize cold_text_section even
22932         when function_section () isn't text_section.
22933         (prune_unused_types): Don't walk arange_table.
22934         (dwarf2out_finish): Don't needlessly test
22935         flag_reorder_blocks_and_partition when testing cold_text_section_used.
22936         If info_section_emitted, call size_of_aranges and if it indicates
22937         non-empty .debug_aranges, call output_aranges with the computed
22938         size.  Stop using removed dw_fde_struct fields, use
22939         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
22940         for second.
22941
22942         PR debug/48203
22943         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
22944         create ENTRY_VALUE if incoming or address of incoming's MEM
22945         is a hard REG.
22946         * dwarf2out.c (mem_loc_descriptor): Don't emit
22947         DW_OP_GNU_entry_value of DW_OP_fbreg.
22948         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
22949         on ENTRY_VALUE is able to find the canonical parameter VALUE.
22950         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
22951         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
22952         ENTRY_VALUE_EXPs.
22953         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
22954         is a REG_P or MEM_P with REG_P address, compute hash directly
22955         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
22956         (preserve_only_constants): Don't clear VALUES forwaring
22957         ENTRY_VALUE to some other VALUE.
22958
22959 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
22960
22961         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
22962         instead of GEN_INT.
22963
22964 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
22965
22966         * cfgexpand.c (expand_gimple_cond): Always set the source location and
22967         block before expanding the statement.
22968         (expand_gimple_stmt_1): Likewise.  Set them here...
22969         (expand_gimple_stmt): ...and not here.  Tidy.
22970         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
22971         unknown.
22972
22973 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
22974
22975         * Makefile.in: New rule for cprop.o.
22976         * gcse.c: Move constant/copy propagation to cprop.c.
22977         (compute_local_properties): Only handle expression tables.
22978         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
22979         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
22980         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
22981         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
22982         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
22983         compute_cprop_data, find_used_regs, try_replace_reg,
22984         find_avail_set, cprop_jump, constprop_register, cprop_insn,
22985         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
22986         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
22987         find_bypass_set, reg_killed_on_edge, bypass_block,
22988         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
22989         execute_rtl_cprop, pass_rtl_cprop): Move to...
22990         * cprop.c: ...here.  New file, constant/copy propagation for RTL
22991         moved from gcse.c to here with minor cleanups in duplicated code.
22992
22993 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
22994
22995         * config/i386/i386.c (flag_opts): Fix a typo in
22996         -mavx256-split-unaligned-store.
22997
22998 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
22999
23000         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
23001         LIBCALL_VALUE): Remove macros.
23002         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23003         TARGET_FUNCTION_VALUE_REGNO_P): Define.
23004         (h8300_function_value, h8300_libcall_value,
23005         h8300_function_value_regno_p): New functions.
23006
23007 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
23008
23009         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
23010
23011 2011-03-28  Jeff Law  <law@redhat.com>
23012
23013         * tree-ssa-threadupdate.c (redirect_edges): Call
23014         create_edge_and_update_destination_phis as needed.
23015         (create_edge_and_update_destination_phis): Accept new BB argument.
23016         All callers updated.
23017         (thread_block): Do not update the profile when threading around
23018         intermediate blocks.
23019         (thread_single_edge): Likewise.
23020         (determine_bb_domination_status): If BB is not a successor of the
23021         loop header, return NONDOMINATING.
23022         (register_jump_thread): Note when we register a jump thread around
23023         an intermediate block.
23024         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
23025         (thread_across_edge): Use it.
23026
23027 2011-03-28  Tristan Gingold  <gingold@adacore.com>
23028
23029         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
23030         when for_return is 2.
23031
23032 2011-03-28  Jeff Law  <law@redhat.com>
23033
23034         * var-tracking.c (canonicalize_values_mark): Delete unused
23035         lhs assignment.
23036         (canonicalize_values_star, set_variable_part): Likewise.
23037         (clobber_variable_part, delete_variable_part): Likewise.
23038
23039 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
23040
23041         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
23042
23043 2011-03-28  Martin Jambor  <mjambor@suse.cz>
23044
23045         * tree-inline.c (expand_call_inline): Do not check that destination
23046         node is analyzed.
23047         (optimize_inline_calls): Assert that destination node is analyzed.
23048         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
23049         not call tree_lowering_passes.
23050         * cgraph.h (cgraph_analyze_function): Declare.
23051         * cgraphunit.c (cgraph_analyze_function): Make public.
23052
23053 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
23054
23055         * config/sparc/sparc-opts.h: New.
23056         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
23057         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
23058         (sparc_option_override): Store processor_type enumeration rather
23059         than string in cpu_default.  Remove name and enumeration from
23060         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
23061         without using sparc_select.  Use target_flags_explicit instead of
23062         fpu_option_set.
23063         * config/sparc/sparc.h (enum processor_type): Move to
23064         sparc-opts.h.
23065         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
23066         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
23067         HeaderInclude entry.
23068         (mcpu=, mtune=): Use Var and Enum.
23069         (sparc_processor_type): New Enum and EnumValue entries.
23070
23071 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23072             Iain Sandoe  <iains@gcc.gnu.org>
23073
23074         PR target/48245
23075         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
23076
23077 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
23078
23079         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
23080         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
23081         Insert new statements at it in lieu of STMT.
23082         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
23083         * tree-vect-stmts.c (vectorizable_store): Likewise.
23084         (vectorizable_load): Likewise.
23085
23086 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
23087
23088         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
23089         (divtf3): Ditto.
23090         (multf3): Ditto.
23091         (subtf3): Ditto.
23092
23093 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
23094
23095         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
23096         unaligned 256bit load/store.
23097         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
23098         (*avx_movdqu<avxmodesuffix>): Likewise.
23099
23100 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23101
23102         PR target/48288
23103         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
23104         * config/pa/pa.md (iordi3): Use new predicate in expander.
23105         (iorsi3): Likewise.
23106
23107 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
23108
23109         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
23110         FUNCTION_VALUE_REGNO_P): Remove macros.
23111         * config/mips/mips-protos.h (mips_function_value): Remove.
23112         * config/mips/mips.c (mips_function_value): Rename to...
23113         (mips_function_value_1): ... this. Make static.  Handle receiving
23114         the function type in 'fn_decl_or_type' argument.
23115         (mips_function_value, mips_libcall_value,
23116         mips_function_value_regno_p): New function.
23117         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23118         TARGET_FUNCTION_VALUE_REGNO_P): Define.
23119
23120 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
23121
23122         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
23123         and -mavx256-split-unaligned-store.
23124         (ix86_option_override_internal): Split 32-byte AVX unaligned
23125         load/store by default.
23126         (ix86_avx256_split_vector_move_misalign): New.
23127         (ix86_expand_vector_move_misalign): Use it.
23128
23129         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
23130         -mavx256-split-unaligned-store.
23131
23132         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
23133         256bit load/store.  Generate unaligned store on misaligned memory
23134         operand.
23135         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
23136         256bit load/store.
23137         (*avx_movdqu<avxmodesuffix>): Likewise.
23138
23139         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
23140         -mavx256-split-unaligned-store.
23141
23142 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
23143
23144         PR target/38598
23145         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
23146         Update commentary.
23147
23148 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
23149
23150         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
23151         opno arguments with an expand_operand.  Use create_input_operand.
23152         (mips_prepare_builtin_target): Delete.
23153         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
23154         functions.
23155         (mips_expand_builtin_direct): Use create_output_operand and
23156         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
23157         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
23158         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
23159
23160 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
23161
23162         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
23163         function.
23164         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
23165
23166 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
23167
23168         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
23169         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
23170         basic blocks and call commit_edge_insertions directly.
23171         (fixup_abnormal_edges): Move from here to...
23172         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
23173         on the edges and return whether some have actually been inserted.
23174         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
23175         compensation code.
23176
23177 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
23178
23179         PR rtl-optimization/48144
23180         * sel-sched-ir.c (merge_history_vect): Factor out from ...
23181         (merge_expr_data): ... here.
23182         (av_set_intersect): Rename to av_set_code_motion_filter.
23183         Update all callers.  Call merge_history_vect when an expression
23184         is found in both sets.
23185         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
23186
23187 2011-03-26  Alan Modra  <amodra@gmail.com>
23188
23189         * config/rs6000/predicates.md (word_offset_memref_op): Handle
23190         cmodel medium addresses.
23191         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
23192         64-bit gpr loads and stores.
23193         (rs6000_secondary_reload_ppc64): New function.
23194         * config/rs6000/rs6000-protos.h: Declare it.
23195         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
23196
23197 2011-03-26  Alan Modra  <amodra@gmail.com>
23198
23199         PR target/47487
23200         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
23201         GNU Go in traceback table.
23202
23203 2011-03-25  Richard Henderson  <rth@redhat.com>
23204
23205         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
23206         if there are exactly 6 operands.
23207         (set_storage_via_setmem): Similarly.
23208
23209 2011-03-25  Kai Tietz  <ktietz@redhat.com>
23210
23211         * collect2.c (write_c_file_stat): Handle backslash
23212         as right-hand directory separator.
23213         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
23214         checking just for slash.
23215         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
23216         instead of checking for trailing slash.
23217         * gcc.c (record_temp_file): Use filename_cmp instead
23218         of strcmp.
23219         (do_spec_1): Likewise.
23220         (replace_outfile_spec_function): Likewise.
23221         (is_directory): Use filename_ncmp instead of strncmp.
23222         (print_multilib_info): Likewise.
23223         * gcov.c (find_source): Use filename_cmp instead
23224         instead of strcmp.
23225         (make_gcov_file_name): Fix order of slash/backslash
23226         checks.
23227         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
23228         (add_standard_paths): Likewise.
23229         * mips-tfile.c (saber_stop): Handle backslash.
23230         * prefix.c (update_path): Use filename_ncmp instead of
23231         strncmp.
23232         * profile.c (output_location): Use filename_cmp instead
23233         of strcmp.
23234         * read-md.c (handle_toplevel_file): Handle backslash.
23235         * tlink.c (frob_extension):  Likewise.
23236         * tree-cfg.c (same_line_p): Use filename_cmp instead of
23237         strcmp.
23238         * tree-dump.c (dequeue_and_dump): Handle backslash.
23239         * tree.c (get_file_function_name): Likewise.
23240         * gengtype.c (read_input_list): Likewise.
23241         (get_file_realbasename): Likewise.
23242         (get_output_file_with_visibility): Use filename_cmp
23243         instead of strcmp.
23244
23245 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
23246
23247         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
23248         case to VFPv1.
23249
23250 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
23251
23252         * fold-const.c (expr_location_or): New function.
23253         (fold_truth_not_expr): Call it.
23254
23255 2011-03-25  Jeff Law  <law@redhat.com>
23256
23257         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
23258         va_end.
23259         * c-family/c-common.c (def_fn_type): Likewise.
23260         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
23261         * emit-rtl.c (gen_rtvec): Likewise.
23262         * lto/lto-lang.c (def_fn_type): Likewise.
23263
23264 2011-03-25  Richard Guenther  <rguenther@suse.de>
23265
23266         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
23267         also generate copies.
23268         (fini_copy_prop): Handle constant values properly.
23269
23270 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
23271
23272         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
23273         mode size instead of bitsize with DWARF2_ADDR_SIZE.
23274         (hash_loc_operands, compare_loc_operands): Handle
23275         DW_OP_GNU_entry_value.
23276
23277 2011-03-25  Kai Tietz  <ktietz@redhat.com>
23278
23279         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
23280         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
23281         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
23282         comment and use macro TARGET_64BIT_MS_ABI instead.
23283         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
23284         and change default behavior for 32-bit MS_ABI.
23285         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
23286         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
23287         32-bit, too.
23288         (ix86_cfun_abi): Likewise.
23289         (ix86_maybe_switch_abi): Adjust comment.
23290         (init_cumulative_args): Check for bit-ness in MS_ABI case.
23291         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
23292         instead of checking for SYSV_ABI.
23293         (ix86_nsaved_sseregs): Likewise.
23294         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
23295         to 16 bytes.
23296         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
23297         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
23298         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
23299         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
23300         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
23301
23302 2011-03-25  Richard Guenther  <rguenther@suse.de>
23303
23304         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
23305         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
23306         (verify_gimple): Remove.
23307         * tree-cfg.c (verify_gimple_call): Merge verification
23308         from verify_stmts.
23309         (verify_gimple_phi): Merge verification from verify_stmts.
23310         (verify_gimple_label): New function.
23311         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
23312         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
23313         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
23314         (verify_stmts): Rename to verify_gimple_in_cfg.
23315         (verify_gimple_in_cfg): New function.
23316         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
23317         * tree-ssa.c (verify_ssa): Likewise.
23318         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
23319
23320 2011-03-25  Richard Guenther  <rguenther@suse.de>
23321
23322         * passes.c (init_optimization_passes): Add FRE pass after
23323         early SRA.
23324
23325 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
23326             Andrew Stubbs  <ams@codesourcery.com>
23327
23328         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
23329         for Cortex-A8.
23330         (arm_movdi_vfp_cortexa8): New pattern.
23331         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
23332         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
23333         instructions when tuning for Cortex-A8.  Set attribute "arch".
23334         * config/arm/arm.md: Move include arm-tune.md up a bit.
23335         (define_attr "arch"): Add "onlya8" and "nota8" values.
23336         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
23337
23338 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
23339
23340         PR bootstrap/48282
23341         Revert:
23342         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
23343
23344         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
23345         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
23346         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
23347         * passes.c (init_optimization_passes): Move
23348         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
23349
23350 2011-03-25  Kai Tietz  <ktietz@redhat.com>
23351
23352         * c-typeck.c (comptypes_internal): Replace target
23353         hook call of comp_type_attributes by version in tree.c file.
23354         * gimple.c (gimple_types_compatible_p_1): Likewise.
23355         * tree-ssa.c (useless_type_conversion_p): Likewise.
23356         * tree.c (build_type_attribute_qual_variant): Likewise.
23357         (attribute_value_equal): New static helper function.
23358         (comp_type_attributes): New function.
23359         (merge_attributes): Use attribute_value_equal for comparison.
23360         (attribute_list_contained): Likewise.
23361         * tree.h (comp_type_attributes): New prototype.
23362
23363 2011-03-25  Richard Guenther  <rguenther@suse.de>
23364
23365         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
23366         of complex types at -O0.
23367         (verify_gimple_assign_binary): Likewise.
23368         (verify_gimple_assign_ternary): Likewise.
23369
23370 2011-03-24  Mark Wielaard  <mjw@redhat.com>
23371
23372         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
23373         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
23374
23375 2011-03-24  Mark Wielaard  <mjw@redhat.com>
23376
23377         PR debug/48041
23378         * dwarf2out.c (output_abbrev_section): Only write table when
23379         abbrev_die_table_in_use > 1.
23380
23381 2011-02-24  Richard Henderson  <rth@redhat.com>
23382
23383         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
23384         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
23385         (alpha_expand_unaligned_load_words): Use extql.
23386         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
23387         (emit_insxl): Handle all modes for consistency.
23388
23389 2011-02-24  Richard Henderson  <rth@redhat.com>
23390
23391         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
23392         (alpha_expand_unaligned_load): Likewise.
23393         (alpha_expand_unaligned_store): Likewise.
23394         (alpha_expand_unaligned_load_words): Likewise.
23395         (alpha_expand_unaligned_store_words): Likewise.
23396         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
23397         (alpha_split_lock_test_and_set_12): Likewise.
23398         (print_operand, alpha_fold_builtin_extxx): Likewise.
23399         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
23400         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
23401         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
23402         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
23403         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
23404         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
23405         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
23406         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
23407         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
23408         (extwl, extll, extql): Similarly.
23409         (inswh, inslh, insqh): Similarly.
23410         (mskbl, mskwl, mskll, mskql): Similarly.
23411         (mskwh, msklh, mskqh): Similarly.
23412
23413 2011-02-24  Richard Henderson  <rth@redhat.com>
23414
23415         * config/alpha/alpha.md (attribute isa): Add er, ner.
23416         (attribute enabled): Handle them.
23417         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
23418
23419 2011-02-24  Richard Henderson  <rth@redhat.com>
23420
23421         * config/alpha/alpha.md (attribute isa): Add vms.
23422         (attribute enabled): Handle it.
23423         (*movsf): Merge *movsf_{nofix,fix,nofp}.
23424         (*movdf): Merge *movdf_{nofix,fix,nofp}.
23425         (*movtf): Rename from *movtf_internal for consistency.
23426         (*movsi): Merge with *movsi_nt_vms.
23427         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
23428         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
23429         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
23430         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
23431
23432 2011-02-24  Richard Henderson  <rth@redhat.com>
23433
23434         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
23435         (extendqisi2, extendhisi2): Likewise.
23436         (extendqidi2): Simplify BWX/non-BWX expansions.
23437         (extendhidi2): Similarly.
23438
23439 2011-02-24  Richard Henderson  <rth@redhat.com>
23440
23441         * config/alpha/alpha.md (attribute isa): New.
23442         (attribute enabled): New.
23443         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
23444         (zero_extendqisi2, zero_extendqidi2): Similarly.
23445         (zero_extendhisi2, zero_extendhidi2): Similarly.
23446         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
23447
23448 2011-02-24  Richard Henderson  <rth@redhat.com>
23449
23450         * config/alpha/predicates.md (input_operand): Revert last change;
23451         update comment to mention 32-bit VMS rather than Windows.
23452
23453 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
23454
23455         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
23456         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
23457         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
23458         * passes.c (init_optimization_passes): Move
23459         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
23460
23461 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
23462
23463         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
23464
23465 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
23466
23467         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
23468         correctly.
23469
23470 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
23471
23472         PR debug/48204
23473         * simplify-rtx.c (simplify_const_unary_operation): Call
23474         real_convert when changing mode class with FLOAT_EXTEND.
23475
23476 2011-03-24  Nick Clifton  <nickc@redhat.com>
23477
23478         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
23479         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
23480         * config/rx/rx.c (rx_option_override): Set align_jumps,
23481         align_loops and align_labels if not set by the user.
23482         (rx_align_for_label): New function.
23483         (rx_max_skip_for_label): New function.
23484         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
23485         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
23486         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
23487         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
23488         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
23489
23490 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
23491
23492         PR rtl-optimization/48263
23493         * optabs.c (expand_binop_directly): Reinstate convert_modes code
23494         and original commutative_p handling.  Use maybe_gen_insn.
23495
23496 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23497
23498         * reload.c (find_reloads_subreg_address): Add address_reloaded
23499         parameter and return true there if the full address has been
23500         reloaded.
23501         (find_reloads_toplev): Pass address_reloaded flag.
23502         (find_reloads_address_1): Don't use address_reloaded parameter.
23503
23504 2011-03-24  Jeff Law  <law@redhat.com>
23505
23506         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
23507         unused variable "ann".
23508         (remove_unused_locals): Likewise.
23509
23510         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
23511         statement.
23512
23513         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
23514         after it is freed.
23515
23516 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23517
23518         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
23519         for invalid symbolic addresses.
23520         (s390_secondary_reload): Don't use s390_check_symref_alignment for
23521         larl operands.
23522
23523 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
23524
23525         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
23526         the argument in calls to fold_truth_not_expr.
23527
23528 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
23529
23530         * tree.c (record_node_allocation_statistics): New function.
23531         (make_node_stat, copy_node_stat, build_string): Call it.
23532         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
23533         (build1_stat, build_omp_clause): Likewise.
23534
23535 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
23536
23537         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
23538         last commit.
23539
23540 2011-03-24  Richard Guenther  <rguenther@suse.de>
23541
23542         PR tree-optimization/48271
23543         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
23544         blocks that still exist.
23545
23546 2011-03-24  Richard Guenther  <rguenther@suse.de>
23547
23548         PR tree-optimization/48270
23549         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
23550         not free datarefs before ddrs.
23551
23552 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
23553
23554         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
23555         from the address built for a reference with variable offset.
23556
23557 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
23558
23559         PR target/48237
23560         * config/i386/i386.md (*movdf_internal_rex64): Do not split
23561         alternatives that can be handled with movq or movabsq insn.
23562         (*movdf_internal): Disable for !TARGET_64BIT.
23563         (*movdf_internal_nointeger): Ditto.
23564         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
23565
23566 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
23567
23568         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
23569         (FUNCTION_ARG_ADVANCE): Likewise.
23570         * tm.texi.in: Change references to them to hook references.
23571         * tm.texi: Regenerate.
23572         * targhooks.c (default_function_arg): Eliminate check for target macro.
23573         (default_function_incoming_arg): Likewise.
23574         (default_function_arg_advance): Likewise.
23575         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
23576         (function_arg_advance): Likewise.
23577         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
23578
23579 2011-03-24  Richard Guenther  <rguenther@suse.de>
23580
23581         PR middle-end/48269
23582         * tree-object-size.c (addr_object_size): Do not double-account
23583         for MEM_REF offsets.
23584
23585 2011-03-24  Diego Novillo  <dnovillo@google.com>
23586
23587         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
23588         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
23589         (lto_input_data_block): Move from lto-opts.c.  Make extern.
23590         Update all users.
23591         (lto_input_string): Rename from input_string.  Make extern.
23592         Update all users.
23593         * lto-streamer-out.c (lto_output_string_with_length): Rename from
23594         output_string_with_length.
23595         Output 0 to indicate a non-NULL string.  Update all callers to
23596         not emit 0.
23597         (lto_output_string): Rename from output_string.  Make extern.
23598         Update all users.
23599         (lto_output_decl_state_streams): Make extern.
23600         (lto_output_decl_state_refs): Make extern.
23601         * lto-streamer.h (lto_input_string): Declare.
23602         (lto_input_data_block): Declare.
23603         (lto_output_string): Declare.
23604         (lto_output_string_with_length): Declare.
23605         (lto_output_decl_state_streams): Declare.
23606         (lto_output_decl_state_refs): Declare.
23607
23608 2011-03-24  Richard Guenther  <rguenther@suse.de>
23609
23610         PR tree-optimization/46562
23611         * tree.c (build_invariant_address): New function.
23612         * tree.h (build_invariant_address): Declare.
23613         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
23614         a renamed function moved ...
23615         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
23616         Take valueization callback parameter.
23617         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
23618         * gimple-fold.h: New file.
23619         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
23620         (ccp_fold, fold_const_aggregate_ref,
23621         fold_ctor_reference, fold_nonarray_ctor_reference,
23622         fold_array_ctor_reference, fold_string_cst_ctor_reference,
23623         get_base_constructor): Move ...
23624         * gimple-fold.c: ... here.
23625         (gimple_fold_stmt_to_constant_1): New function
23626         split out from ccp_fold.  Take a valueization callback parameter.
23627         Valueize all operands.
23628         (gimple_fold_stmt_to_constant): New wrapper function.
23629         (fold_const_aggregate_ref_1): New function split out from
23630         fold_const_aggregate_ref.  Take a valueization callback parameter.
23631         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
23632         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
23633         invariant POINTER_PLUS_EXPRs to invariant form.
23634         (vn_valueize): New function.
23635         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
23636         * tree-vrp.c (vrp_valueize): New function.
23637         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
23638         to fold statements to constants.
23639         * tree-ssa-pre.c (eliminate): Properly guard propagation of
23640         function declarations.
23641         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
23642         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
23643
23644 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
23645
23646         * config/h8300/predicates.md (jump_address_operand): Fix register
23647         mode check.
23648
23649 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
23650
23651         * doc/invoke.texi (max-stores-to-sink): Document.
23652         * params.h (MAX_STORES_TO_SINK): Define.
23653         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
23654         if either vectorization or if-conversion is disabled.
23655         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
23656         tree-vect-data-refs.c vect_equal_offsets.
23657         (dr_equal_offsets_p): New function.
23658         (find_data_references_in_bb): Remove static.
23659         * tree-data-ref.h (find_data_references_in_bb): Declare.
23660         (dr_equal_offsets_p): Likewise.
23661         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
23662         (vect_drs_dependent_in_basic_block): Update calls to
23663         vect_equal_offsets.
23664         (vect_check_interleaving): Likewise.
23665         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
23666         (cond_if_else_store_replacement): Rename to...
23667         (cond_if_else_store_replacement_1): ... this.  Change arguments and
23668         documentation.
23669         (cond_if_else_store_replacement): New function.
23670         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
23671         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
23672
23673 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
23674
23675         PR target/46934
23676         * config/arm/arm.md (casesi): Use the gen_int_mode() function
23677         to subtract lower bound instead of GEN_INT().
23678
23679 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
23680
23681         PR other/48179
23682         PR other/48221
23683         PR other/48234
23684         * doc/extend.texi (Alignment): Move section to match order in TOC.
23685         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
23686         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
23687
23688 2011-03-23  Jeff Law  <law@redhat.com>
23689
23690         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
23691         before removing the edge.
23692
23693         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
23694         it may have been freed by redirect_branch_edge or
23695         redirect_edge_succ_nodup.
23696
23697 2011-03-23  Richard Guenther  <rguenther@suse.de>
23698
23699         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
23700         (check_va_list_escapes): Likewise.
23701         (check_all_va_list_escapes): Likewise.
23702
23703 2011-03-23  Richard Guenther  <rguenther@suse.de>
23704
23705         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
23706         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
23707         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
23708         (alias.o): Likewise.
23709         (ipa-type-escape.o): Remove.
23710         (ipa-struct-reorg.o): Likewise.
23711         (GTFILES): Remove ipa-struct-reorg.c.
23712         * alias.c: Do not include ipa-type-escape.h.
23713         * tree-ssa-alias.c: Likewise.
23714         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
23715         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
23716         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
23717         and ipa-type-escape passes.
23718         * tree-pass.h (pass_ipa_type_escape): Remove.
23719         (pass_ipa_struct_reorg): Likewise.
23720         * ipa-struct-reorg.h: Remove.
23721         * ipa-struct-reorg.c: Likewise.
23722         * ipa-type-escape.h: Likewise.
23723         * ipa-type-escape.c: Likewise.
23724         * doc/invoke.texi (-fipa-struct-reorg): Remove.
23725         (--param struct-reorg-cold-struct-ratio): Likewise.
23726         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
23727         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
23728         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
23729
23730 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23731
23732         * config/s390/2084.md: Enable all insn reservations also for z9_ec
23733         cpu attribute value.
23734         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
23735         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
23736         * config/s390/s390.c (processor_flags_table): New constant array.
23737         (s390_handle_arch_option): Remove.
23738         (s390_handle_option): Remove s390_handle_arch_option invocations
23739         and OPT_mwarn_framesize_ handling.
23740         (s390_option_override): Remove s390_handle_arch_option invocation.
23741         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
23742         warnings.
23743         * config/s390/s390.md (cpu attribute): Add z9_ec value.
23744         * config/s390/s390.opt (s390_tune, s390_arch)
23745         (march=): Replace s390_arch_option enum and values with
23746         processor_type.  Set variable name to s390_arch.  Set
23747         initialization value.
23748         (mtune=): Replace s390_arch_option with processor_type.  Set
23749         variable name to s390_tune.  Set initialization value.
23750
23751 2011-03-23  Julian Brown  <julian@codesourcery.com>
23752
23753         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
23754         accesses which are not naturally aligned.
23755
23756 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
23757
23758         PR target/47553
23759         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
23760
23761 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
23762
23763         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
23764         parameter from "int" to "enum insn_code".
23765         (expand_operand_type): New enum.
23766         (expand_operand): New structure.
23767         (create_expand_operand): New function.
23768         (create_fixed_operand, create_output_operand): Likewise
23769         (create_input_operand, create_convert_operand_to): Likewise.
23770         (create_convert_operand_from, create_address_operand): Likewise.
23771         (create_integer_operand): Likewise.
23772         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
23773         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
23774         (expand_insn, expand_jump_insn): Likewise.
23775         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
23776         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
23777         (expand_movstr, expand_builtin___clear_cache): Likewise.
23778         (expand_builtin_lock_release): Likewise.
23779         * explow.c (allocate_dynamic_stack_space): Likewise.
23780         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
23781         and use the default handling in that case.
23782         * expmed.c (check_predicate_volatile_ok): Delete.
23783         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
23784         (emit_cstore): Likewise.
23785         * expr.c (emit_block_move_via_movmem): Likewise.
23786         (set_storage_via_setmem, expand_assignment): Likewise.
23787         (emit_storent_insn, try_casesi): Likewise.
23788         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
23789         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
23790         (expand_vec_shift_expr, expand_binop_directly): Likewise.
23791         (expand_twoval_unop, expand_twoval_binop): Likewise.
23792         (expand_unop_direct, emit_indirect_jump): Likewise.
23793         (emit_conditional_move, vector_compare_rtx): Likewise.
23794         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
23795         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
23796         (expand_sync_lock_test_and_set): Likewise.
23797         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
23798         (emit_unop_insn): Likewise.
23799         (expand_copysign_absneg): Change icode to an insn_code.
23800         (create_convert_operand_from_type): New function.
23801         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
23802         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
23803         (expand_insn, expand_jump_insn): Likewise.
23804         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
23805         than const_int_operand for operand 2.
23806
23807 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23808
23809         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
23810         if possible.
23811
23812 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
23813
23814         * emit-rtl.c (emit_pattern_before_noloc): New function.
23815         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
23816         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
23817         (emit_pattern_after_noloc): New function.
23818         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
23819         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
23820
23821 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
23822
23823         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
23824         (__ffsDI2): Likewise.
23825
23826 2011-03-22  Richard Henderson  <rth@redhat.com>
23827
23828         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
23829         of !TARGET_ABI_OPEN_VMS.
23830         (alpha_trampoline_init, alpha_start_function): Likewise.
23831         (alpha_expand_epilogue, alpha_file_start): Likewise.
23832         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
23833         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
23834         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
23835         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
23836         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
23837
23838 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23839
23840         * config/s390/s390-opts.h: New.
23841         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
23842         s390_arch_flags, s390_warn_framesize, s390_stack_size,
23843         s390_stack_guard): Remove.
23844         (s390_handle_arch_option): Return void.  Take enum
23845         s390_arch_option value instead of string and searching array.
23846         (s390_handle_option): Don't assert that global structures are in
23847         use.  Access variables via opts pointer.  Use error_at.  Don't use
23848         sscanf for -mstack-guard= or -mstack-size=.  Update call to
23849         s390_handle_arch_option.
23850         (s390_option_override): Update call to s390_handle_arch_option.
23851         (s390_emit_prologue): Use %d format for s390_stack_size in
23852         diagnostic.  Use %wd for HOST_WIDE_INT.
23853         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
23854         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
23855         * config/s390/s390.opt (config/s390/s390-opts.h): New
23856         HeaderInclude entry.
23857         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
23858         s390_arch_flags, s390_warn_framesize): New Variable entries.
23859         (s390_arch_option): New Enum and EnumValue entries.
23860         (march=): Use Enum instead of Var.
23861         (mstack-guard=, mstack-size=): Use UInteger and Var.
23862         (mtune=): Use Enum.
23863
23864 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23865
23866         * config/score/score.c (score_handle_option): Don't assert that
23867         global structures are in use.  Access target_flags via opts
23868         pointer.  Use value of -march= option to determine target_flags
23869         settings.
23870         * config/score/score.opt (march=): Use Enum.
23871         (score_arch): New Enum and EnumValue entries.
23872
23873 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23874
23875         * config/mep/mep.c (option_mtiny_specified): Remove.
23876         (mep_option_override): Move register handling for -mivc2 from
23877         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
23878         instead of option_mtiny_specified.
23879         (mep_handle_option): Access target_flags via opts pointer.  Don't
23880         assert that global structures are in use.  Defer part of -mivc2
23881         handling and move it to mep_option_override.
23882         * config/mep/mep.opt (IVC2): New Mask entry.
23883         (mivc2): Use Var and Defer instead of Mask.
23884
23885 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23886
23887         * config/v850/v850-opts.h: New.
23888         * config/v850/v850.c (small_memory): Replace with
23889         small_memory_physical_max array.  Make that array static const.
23890         (v850_handle_memory_option): Take integer value of argument.  Take
23891         gcc_options pointer, option text and location.  Return void.
23892         Update for changes to small memory structures.
23893         (v850_handle_option): Access target_flags via opts pointer.  Don't
23894         assert that global structures are in use.  Update calls to
23895         v850_handle_memory_option.
23896         (v850_encode_data_area): Update references to small memory settings.
23897         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
23898         (enum small_memory_type): Move to v850-opts.h.
23899         * config/v850/v850.opt (config/v850/v850-opts.h): New
23900         HeaderInclude entry.
23901         (small_memory_max): New Variable entry.
23902         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
23903         (mtda, mzda): Likewise.
23904
23905 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23906
23907         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
23908         pointer.  Don't assert that global structures are in use.
23909
23910 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23911
23912         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
23913         via opts pointer.  Don't assert that global structures are in use.
23914
23915 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23916
23917         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
23918         (munix=93): Use Var.
23919         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
23920         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
23921         * config/pa/pa-opts.h: New.
23922         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
23923         (pa_handle_option): Don't assert that global structures are in
23924         use.  Access target_flags via opts pointer.  Don't handle
23925         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
23926         OPT_munix_98 here.
23927         (pa_option_override): Handle deferred OPT_mfixed_range_.
23928
23929 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23930
23931         * config/mn10300/mn10300-opts.h: New.
23932         * config/mn10300/mn10300.c (mn10300_processor,
23933         mn10300_tune_string): Remove.
23934         (mn10300_handle_option): Don't assert that global structures are
23935         in use.  Access mn10300_processor via opts pointer.  Don't handle
23936         OPT_mtune_ here.
23937         * config/mn10300/mn10300.h (enum processor_type): Move to
23938         mn10300-opts.h.
23939         (mn10300_processor): Remove.
23940         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
23941         HeaderInclude entry.
23942         (mn10300_processor): New Variable entry.
23943         (mtune=): Use Var.
23944
23945 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23946
23947         * config/microblaze/microblaze.c: Don't include opts.h.
23948         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
23949         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
23950         (mno-clearbss): Use Var and Warn.
23951
23952 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23953
23954         * config/m32r/m32r-opts.h: New.
23955         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
23956         (m32r_handle_option): Don't assert that global structures are in
23957         use.  Access target_flags and m32r_cache_flush_func via opts
23958         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
23959         OPT_mno_flush_trap here.
23960         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
23961         include of m32r-opts.h.
23962         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
23963         HeaderInclude entry.
23964         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
23965         (mmodel=): Use Enum and Var.
23966         (m32r_model): New Enum and EnumValue entries.
23967         (mno-flush-trap): Use Var.
23968         (msdata=): Use Enum and Var.
23969         (m32r_sdata): New Enum and EnumValue entries.
23970
23971 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23972
23973         * config/m32c/m32c.c: Don't include opts.h.
23974         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
23975         m32c_handle_option): Remove.
23976         (m32c_option_override): Check global_options_set.x_target_memregs
23977         instead of target_memregs_set.
23978         * config/m32c/m32c.h (target_memregs): Remove.
23979         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
23980         variable.
23981
23982 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23983
23984         * config/iq2000/iq2000-opts.h: New.
23985         * config/iq2000/iq2000.c: Don't include opts.h.
23986         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
23987         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
23988         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
23989         HeaderInclude entry.
23990         (iq2000_tune): New Variable entry.
23991         (march=): Add comment.  Use Enum.
23992         (iq2000_arch): New Enum and EnumValue entries.
23993         (mcpu=): Use Enum and Var.
23994         (iq2000_tune): New Enum and EnumValue entries.
23995
23996 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23997
23998         * config/ia64/ia64-opts.h: New.
23999         * config/ia64/ia64.c (ia64_tune): Remove.
24000         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
24001         here.  Use error_at.
24002         (ia64_option_override): Handle deferred OPT_mfixed_range_.
24003         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
24004         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
24005         HeaderInclude entry.
24006         (ia64_tune): New Variable entry.
24007         (mfixed-range=): Use Defer and Var.
24008         (mtune=): Use Enum and Var.
24009         (ia64_tune): New Enum and EnumValue entries.
24010
24011 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24012
24013         * config/frv/frv-opts.h: New.
24014         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
24015         frv-opts.h.
24016         (frv_cpu_type): Remove.
24017         * config/frv/frv.c: Don't include opts.h.
24018         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
24019         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
24020         (frv_cpu_type): New Variable entry.
24021         (frv_cpu): New Enum and EnumValue entries.
24022
24023 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24024
24025         * config/cris/cris.c (cris_handle_option): Access target_flags via
24026         opts pointer.  Don't assert that global structures are in use.
24027         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
24028         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
24029
24030 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24031
24032         * config/bfin/bfin-opts.h: New.
24033         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
24034         bfin_si_revision, bfin_workarounds): Remove.
24035         (bfin_cpus): Make static const.
24036         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
24037         not bfin_lib_id_given.
24038         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
24039         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
24040         pointer. Use error_at.  Don't assert that global structures are in use.
24041         * config/bfin/bfin.h: Include bfin-opts.h.
24042         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
24043         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
24044         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
24045         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
24046         entries.
24047
24048 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24049
24050         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
24051         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
24052         or -msoft-float here.
24053         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
24054         -msoft-float and -mhard-float.
24055         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
24056         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
24057         msoft-float.
24058         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
24059         -msoft-float.
24060         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
24061         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
24062         not mhard-float.
24063         (LIBGCC_SPEC): Don't handle -msoft-float.
24064         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
24065         -mhard-float.
24066         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
24067         msoft-float.
24068         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
24069         -mfloat-abi=*, not -msoft-float and -mhard-float.
24070         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
24071         -msoft-float.
24072         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
24073         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
24074         mhard-float and msoft-float.
24075         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
24076         mfloat-abi=soft in comments, not mhard-float and msoft-float.
24077         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
24078         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
24079         mhard-float.
24080         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
24081         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
24082         msoft-float.
24083         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
24084         not mhard-float.
24085         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
24086         not msoft-float.
24087
24088 2011-03-22  Richard Henderson  <rth@redhat.com>
24089
24090         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
24091         TARGET_ABI_WINDOWS_NT.
24092         (alpha_output_function_end_prologue): Likewise.
24093         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
24094         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
24095         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
24096         (trap, *movsi_nt_vms): Likewise.
24097         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
24098         (*tablejump_osf_nt_internal): Remove.
24099         * config/alpha/predicates.md (input_operand): Only test Pmode.
24100
24101 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24102
24103         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
24104         via opts pointer.  Use error_at.  Don't assert that global
24105         structures are in use.
24106
24107 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24108
24109         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
24110         (ix86_handle_option): Access ix86_isa_flags and
24111         ix86_isa_flags_explicit via opts pointer.  Don't assert that
24112         global structures are in use.
24113         (ix86_function_specific_save, ix86_function_specific_restore):
24114         Update ix86_isa_flags_explicit field name.
24115         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
24116         (ix86_isa_flags_explicit): Rename TargetSave entry to
24117         x_ix86_isa_flags_explicit.
24118
24119 2011-03-22  Richard Henderson  <rth@redhat.com>
24120
24121         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
24122         (alpha_option_override, direct_return): Likewise.
24123         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
24124         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
24125         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
24126         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
24127         (alpha_expand_epilogue, alpha_end_function): Likewise.
24128         (alpha_init_libfuncs): Likewise.
24129         (struct machine_function): Remove unicosmk members.
24130         (print_operand) ['t']: Remove.
24131         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
24132         unicosmk_output_module_name, unicosmk_output_common,
24133         current_section_align, unicosmk_output_text_section_asm_op,
24134         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
24135         unicosmk_section_type_flags, unicosmk_unique_section,
24136         unicosmk_asm_named_section, unicosmk_insert_attributes,
24137         unicosmk_output_align, unicosmk_defer_case_vector,
24138         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
24139         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
24140         unicosmk_output_ssib, unicosmk_add_call_info_word,
24141         unicosmk_extern_head, unicosmk_output_default_externs,
24142         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
24143         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
24144         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
24145         * config/alpha/alpha-protos.h: Update.
24146         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
24147         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
24148         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
24149         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
24150         (*mulsi_se, mulvsi3): Likewise.
24151         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
24152         (*divmodsi_internal, call, call_value, realign): Likewise.
24153         (moddi3, umoddi3): Likewise; remove duplicate expander.
24154         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
24155         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
24156         (*movdi_nofix): Remove r/U alternative.
24157         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
24158         * config/alpha/constraints.md ("U"): Remove.
24159         * config/alpha/predicates.md (call_operand"): Don't test
24160         TARGET_ABI_UNICOSMK.
24161
24162 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24163
24164         * target.def (handle_option): Take gcc_options and
24165         cl_decoded_option pointers and location_t.
24166         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
24167         * doc/tm.texi: Regenerate.
24168         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
24169         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
24170         * lto-opts.c (lto_reissue_options): Generate option structure for
24171         targetm.handle_option call.
24172         * opts.c (target_handle_option): Update call to
24173         targetm.handle_option.  Remove assertions about values now passed
24174         down to hook.
24175         * targhooks.c (default_target_handle_option): New.
24176         * targhooks.h (default_target_handle_option): Declare.
24177         * config/alpha/alpha.c: Include opts.h.
24178         (alpha_handle_option): Update to new hook interface.
24179         * config/arm/arm.c: Include opts.h.
24180         (arm_handle_option): Update to new hook interface.
24181         * config/arm/t-arm (arm.o): Update dependencies.
24182         * config/bfin/bfin.c: Include opts.h.
24183         (bfin_handle_option): Update to new hook interface.
24184         * config/cris/cris.c: Include opts.h.
24185         (cris_handle_option): Update to new hook interface.
24186         * config/frv/frv.c: Include opts.h.
24187         (frv_handle_option): Update to new hook interface.
24188         * config/i386/i386.c: Include opts.h.
24189         (ix86_handle_option): Update to new hook interface.
24190         (ix86_valid_target_attribute_inner_p): Generate option structure
24191         for call to ix86_handle_option.
24192         * config/i386/t-i386 (i386.o): Update dependencies.
24193         * config/ia64/ia64.c: Include opts.h.
24194         (ia64_handle_option): Update to new hook interface.
24195         * config/ia64/t-ia64 (ia64.o): Update dependencies.
24196         * config/iq2000/iq2000.c: Include opts.h.
24197         (iq2000_handle_option): Update to new hook interface.
24198         * config/m32c/m32c.c: Include opts.h.
24199         (m32c_handle_option): Update to new hook interface.
24200         * config/m32r/m32r.c: Include opts.h.
24201         (m32r_handle_option): Update to new hook interface.
24202         * config/m68k/m68k.c: Include opts.h.
24203         (m68k_handle_option): Update to new hook interface.
24204         * config/mep/mep.c: Include opts.h.
24205         (mep_handle_option): Update to new hook interface.
24206         * config/microblaze/microblaze.c: Include opts.h.
24207         (microblaze_handle_option): Update to new hook interface.
24208         * config/mips/mips.c: Include opts.h.
24209         (mips_handle_option): Update to new hook interface.
24210         * config/mn10300/mn10300.c: Include opts.h.
24211         (mn10300_handle_option): Update to new hook interface.
24212         * config/pa/pa.c: Include opts.h.
24213         (pa_handle_option): Update to new hook interface.
24214         * config/pdp11/pdp11.c: Include opts.h.
24215         (pdp11_handle_option): Update to new hook interface.
24216         * config/rs6000/rs6000.c: Include opts.h.
24217         (rs6000_handle_option): Update to new hook interface.
24218         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
24219         * config/rx/rx.c: Include opts.h.
24220         (rx_handle_option): Update to new hook interface.
24221         * config/s390/s390.c: Include opts.h.
24222         (s390_handle_option): Update to new hook interface.
24223         * config/score/score.c: Include opts.h.
24224         (score_handle_option): Update to new hook interface.
24225         * config/sh/sh.c: Include opts.h.
24226         (sh_handle_option): Update to new hook interface.
24227         * config/sparc/sparc.c: Include opts.h.
24228         (sparc_handle_option): Update to new hook interface.
24229         * config/v850/v850.c: Include opts.h.
24230         (v850_handle_option): Update to new hook interface.
24231
24232 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24233
24234         * gcc.c (driver_unknown_option_callback): Only permit and save
24235         unknown -Wno- options.
24236         (driver_wrong_lang_callback): Save options directly instead of via
24237         driver_unknown_option_callback.
24238
24239 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
24240
24241         * combine.c (simplify_set): Try harder to find the best CC mode when
24242         simplifying a nested COMPARE on the RHS.
24243
24244 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
24245
24246         * config/alpha/gnu.h: Remove.
24247         * config/arc: Remove directory.
24248         * config/arm/netbsd.h: Remove.
24249         * config/arm/t-pe: Remove.
24250         * config/crx: Remove directory.
24251         * config/i386/netbsd.h: Remove.
24252         * config/m68hc11: Remove directory.
24253         * config/m68k/uclinux-oldabi.h: Remove.
24254         * config/mcore/mcore-pe.h: Remove.
24255         * config/mcore/t-mcore-pe: Remove.
24256         * config/netbsd-aout.h: Remove.
24257         * config/rs6000/gnu.h: Remove.
24258         * config/sh/sh-symbian.h: Remove.
24259         * config/sh/symbian-base.c: Remove.
24260         * config/sh/symbian-c.c: Remove.
24261         * config/sh/symbian-cxx.c: Remove.
24262         * config/sh/symbian-post.h: Remove.
24263         * config/sh/symbian-pre.h: Remove.
24264         * config/sh/t-symbian: Remove.
24265         * config/svr3.h: Remove.
24266         * config/vax/netbsd.h: Remove.
24267         * config.build: Don't handle i[34567]86-*-pe.
24268         * config.gcc: Remove handling of deprecations for most deprecated
24269         targets.
24270         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
24271         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
24272         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
24273         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
24274         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
24275         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
24276         Remove cases.
24277         * config.host: Don't handle i[34567]86-*-pe.
24278         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
24279         (ASM_SPEC32): Don't handle -mcall-gnu.
24280         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
24281         -mcall-gnu.
24282         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
24283         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
24284         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
24285         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
24286         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
24287         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
24288         conditional on SYMBIAN.
24289         * configure.ac: Don't handle powerpc*-*-gnu*.
24290         * configure: Regenerate.
24291         * doc/extend.texi (interrupt attribute): Don't mention CRX.
24292         * doc/install-old.texi (m6811, m6812): Don't mention.
24293         * doc/install.texi (arc-*-elf*): Don't document multilib option.
24294         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
24295         (m68k-uclinuxoldabi): Don't mention.
24296         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
24297         Remove.
24298         (-mcall-gnu): Remove.
24299         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
24300         families): Remove constraint documentation.
24301
24302 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
24303
24304         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
24305         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
24306         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
24307
24308 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
24309
24310         PR target/48226
24311         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
24312         vector when peeking at the next token for vector, don't expand the
24313         keywords.
24314
24315 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
24316
24317         * config/avr/avr-protos.h (expand_epilogue): Change prototype
24318         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
24319         * config/avr/avr.c (init_cumulative_args)
24320         (avr_function_arg_advance): Use it.
24321         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
24322         sibcall epilogues.
24323         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
24324         (avr_function_ok_for_sibcall): ...this new function.
24325         (avr_lookup_function_attribute1): New static Function.
24326         (avr_naked_function_p, interrupt_function_p)
24327         (signal_function_p, avr_OS_task_function_p)
24328         (avr_OS_main_function_p): Use it.
24329         * config/avr/avr.md ("sibcall", "sibcall_value")
24330         ("sibcall_epilogue"): New expander.
24331         ("*call_insn", "*call_value_insn"): New insn.
24332         ("call_insn", "call_value_insn"): Remove
24333         ("call", "call_value", "epilogue"): Change expander to handle
24334         sibling calls.
24335
24336 2011-03-21  Nick Clifton  <nickc@redhat.com>
24337
24338         * doc/invoke.texi (Overall Options): Move closing brace to end of
24339         options list.
24340         (Optimization Options): Add missing @gol.
24341         (Directory Options): Likewise.
24342         (i386 and x86-64 Options): Likewise.
24343         (RS6000 and PowerPC Options): Likewise.
24344         (i386 and x86-64 Windows Options): Likewise.
24345         (V850 Options): Add text missing from descriptions.
24346
24347 2011-03-22  Richard Henderson  <rth@redhat.com>
24348
24349         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
24350         (avr_incoming_return_addr_rtx): New.
24351         (emit_push_byte): New.
24352         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
24353         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
24354         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
24355         (emit_pop_byte): New.
24356         (expand_epilogue): Use it.  Pop frame pointer by bytes.
24357         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
24358         (INCOMING_RETURN_ADDR_RTX): New.
24359         (INCOMING_FRAME_SP_OFFSET): New.
24360         (ARG_POINTER_CFA_OFFSET): New.
24361         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
24362         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
24363         (pophi): Remove.
24364
24365         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
24366
24367 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
24368
24369         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
24370         (FUNCTION_ARG_ADVANCE): Likewise.
24371         * tm.texi.in: Change references to them to hook references.
24372         * tm.texi: Regenerate.
24373         * targhooks.c (default_function_arg): Eliminate check for target
24374         macro.
24375         (default_function_incoming_arg): Likewise.
24376         (default_function_arg_advance): Likewise.
24377         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
24378         (function_arg_advance): Likewise.
24379         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
24380
24381 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
24382
24383         * tree.c (build_call_1): New function.
24384         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
24385
24386 2011-03-22  Richard Guenther  <rguenther@suse.de>
24387
24388         PR tree-optimization/48228
24389         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
24390         for single-arg PHIs.
24391
24392 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
24393
24394         PR rtl-optimization/48143
24395         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
24396         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
24397         sse2_cvtps2pd): Likewise.
24398
24399 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24400
24401         * recog.c (canonicalize_change_group): Use validate_unshare_change.
24402
24403 2011-03-22  Richard Guenther  <rguenther@suse.de>
24404
24405         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
24406         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
24407         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
24408         and REALIGN_LOAD_EXPR.
24409         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
24410         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
24411         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
24412         DOT_PROD_EXPR case ...
24413         (expand_expr_real_2): ... here.
24414         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
24415         and REALIGN_LOAD_EXPR.
24416         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
24417         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
24418         (vect_create_epilog_for_reduction): Likewise.
24419         (vectorizable_reduction): Likewise.
24420         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
24421         * tree-vect-stmts.c (vectorizable_load): Likewise.
24422
24423 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
24424
24425         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
24426
24427 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24428
24429         * config/s390/s390.c (s390_delegitimize_address): Fix offset
24430         handling for PLTOFF/GOTOFF.
24431
24432 2011-03-22  Nick Clifton  <nickc@redhat.com>
24433
24434         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
24435         trailing backslash from the end of the macro definition.
24436
24437 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24438
24439         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
24440         and PLT unspecs.
24441
24442 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
24443
24444         * expr.h (prepare_operand): Move to...
24445         * optabs.h (prepare_operand): ...here and change the insn code
24446         parameter from "int" to "enum insn_code".
24447         (insn_operand_matches): Declare.
24448         * expr.c (init_expr_target): Use insn_operand_matches.
24449         (compress_float_constant): Likewise.
24450         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
24451         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
24452         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
24453         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
24454         Likewise.
24455         (gen_cond_trap): Likewise.
24456         (prepare_operand): Likewise.  Change icode to an insn_code.
24457         (insn_operand_matches): New function.
24458         * reload.c (find_reloads_address_1): Use insn_operand_matches.
24459         * reload1.c (gen_reload): Likewise.
24460         * targhooks.c (default_secondary_reload): Likewise.
24461
24462 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
24463
24464         * config/alpha/alpha.md (unspec): New define_c_enum.
24465         (unspecv): Ditto.
24466
24467 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
24468
24469         PR debug/48214
24470         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
24471         between a call and its CALL_ARG_LOCATION note.
24472
24473 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
24474
24475         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
24476
24477 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
24478
24479         PR c/42544
24480         PR c/48197
24481         * c-common.c (shorten_compare): If primopN is first sign-extended
24482         to opN and then zero-extended to result type, set primopN to opN.
24483
24484 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
24485
24486         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
24487         for barrier handlers.
24488
24489 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
24490
24491         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
24492         UNSPEC constants to be in the unspec enumeration, and redefine
24493         all UNSPECV constants to be in the unspecv enumeration, so that
24494         dumps print which unspec/unspec_volatile this is.
24495         * config/rs6000/vector.md (UNSPEC_*): Ditto.
24496         * config/rs6000/paired.md (UNSPEC_*): Ditto.
24497         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
24498         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
24499         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
24500
24501         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
24502         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
24503         UNSPECV_LWSYNC, since these are used as unspec_volatile.
24504         * config/rs6000/sync.md (isync, lwsync): Ditto.
24505
24506 2011-03-21  Richard Guenther  <rguenther@suse.de>
24507
24508         * params.def (lto-min-partition): Fix typo.
24509
24510 2011-03-21  Richard Guenther  <rguenther@suse.de>
24511
24512         PR c/47939
24513         * c-decl.c (grokdeclarator): Drop to the main variant only
24514         for array types.  Drop flag_gen_aux_info check.
24515
24516 2011-03-21  Richard Guenther  <rguenther@suse.de>
24517
24518         PR translation/47911
24519         * params.def (lto-partitions): Fix typo.
24520         (lto-min-partition): Fix wording.
24521
24522 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
24523
24524         * config/rs6000/t-freebsd: Remove duplication from file.
24525
24526 2011-03-21  Richard Guenther  <rguenther@suse.de>
24527
24528         PR middle-end/47661
24529         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
24530
24531 2011-03-21  Richard Guenther  <rguenther@suse.de>
24532
24533         PR lto/48210
24534         * params.def (lto-partitions): Require at least 1 partition.
24535
24536 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24537
24538         * gthr-solaris.h: Remove.
24539         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
24540         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
24541         (LIB_SPEC): Likewise.
24542         * config/sol2.opt (threads): Remove.
24543         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
24544         (sparc*-*-solaris2*): Likewise.
24545         * configure.ac (enable_threads): Enable solaris support.
24546         * configure: Regenerate.
24547         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
24548         * doc/install.texi (Configuration, --enable-threads=lib): Remove
24549         solaris.
24550
24551 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24552
24553         * config.gcc: Obsolete *-*-solaris2.8*.
24554         * doc/install.texi (Specific, *-*-solaris2*): Document it.
24555
24556 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24557
24558         PR bootstrap/48135
24559         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
24560         reference.  Solaris 8 perl works.
24561
24562 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24563
24564         PR bootstrap/48135
24565         * doc/install.texi (Prerequisites): Move jar etc. up.
24566         Explain support library version requirements.
24567
24568 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24569
24570         PR bootstrap/48135
24571         * doc/install.texi (Prerequisites): Move Perl to build
24572         requirements.  Always necessary on Solaris 2 with Sun ld.
24573
24574 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24575
24576         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
24577         binutils 2.21.
24578         (Specific, i?86-*-solaris2.[89]): Likewise.
24579         (Specific, i?86-*-solaris2.10): Likewise.
24580         (Specific, mips-sgi-irix6): Likewise.
24581         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
24582         Update for binutils 2.21.
24583
24584 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24585
24586         * configure.ac (gcc_cv_lto_plugin): Fix typo.
24587         Allow -fuse-linker-plugin for non-default plugin linker.
24588         * configure: Regenerate.
24589
24590 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
24591
24592         PR bootstrap/48167
24593         * gengtype.c (files_rules): Added rule for cp/parser.h.
24594
24595 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
24596
24597         PR target/48213
24598         * config/s390/s390.c (s390_delegitimize_address): Don't call
24599         lowpart_subreg if orig_x has BLKmode.
24600
24601 2011-03-21  Kai Tietz  <ktietz@redhat.com>
24602
24603         PR target/12171
24604         * doc/plugins.texi: Adjust documentation for plugin register_callback.
24605         * tree.h (attribute_spec): Add new member affects_type_identity.
24606         * attribs.c (empty_attribute_table): Adjust attribute_spec
24607         initializers.
24608         * config/alpha/alpha.c: Likewise.
24609         * config/arc/arc.c: Likewise.
24610         * config/arm/arm.c: Likewise.
24611         * config/avr/avr.c: Likewise.
24612         * config/bfin/bfin.c: Likewise.
24613         * config/crx/crx.c: Likewise.
24614         * config/darwin.h: Likewise.
24615         * config/h8300/h8300.c: Likewise.
24616         * config/i386/cygming.h: Likewise.
24617         * config/i386/i386.c: Likewise.
24618         * config/ia64/ia64.c: Likewise.
24619         * config/m32c/m32c.c: Likewise.
24620         * config/m32r/m32r.c: Likewise.
24621         * config/m68hc11/m68hc11.c: Likewise.
24622         * config/m68k/m68k.c: Likewise.
24623         * config/mcore/mcore.c: Likewise.
24624         * config/mep/mep.c: Likewise.
24625         * config/microblaze/microblaze.c: Likewise.
24626         * config/mips/mips.c: Likewise.
24627         * config/rs6000/rs6000.c: Likewise.
24628         * config/rx/rx.c: Likewise.
24629         * config/sh/sh.c: Likewise.
24630         * config/sol2.h: Likewise.
24631         * config/sparc/sparc.c: Likewise.
24632         * config/spu/spu.c: Likewise.
24633         * config/stormy16/stormy16.c: Likewise.
24634         * config/v850/v850.c: Likewise.
24635
24636 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
24637
24638         * simplify-rtx.c (simplify_binary_operation_1): Handle
24639         (xor (and A B) C) case when B and C are both constants.
24640
24641 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
24642
24643         * tree-dfa.c (add_referenced_var): Fix typo in comment.
24644
24645 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
24646
24647         PR bootstrap/48168
24648         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
24649
24650 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
24651
24652         PR rtl-optimization/48156
24653         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
24654         assume df and df_lr are not NULL.
24655
24656 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
24657
24658         PR debug/48023
24659         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
24660         between a call and its CALL_ARG_LOCATION note.
24661
24662 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
24663
24664         PR debug/48178
24665         * config/sh/sh.c (find_barrier): Don't emit a constant pool
24666         between a call and its corresponding CALL_ARG_LOCATION note.
24667
24668 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
24669
24670         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
24671         instead of loop. Use HARD_REGISTER_NUM_P predicate.
24672         * haifa-sched.c (setup_ref_regs): Ditto.
24673         * caller-save.c (add_used_regs_1): Ditto.
24674         * dse.c (look_for_hardregs): Ditto.
24675         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
24676         * sched-rgn.c (check_live_1): Ditto.
24677
24678 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
24679
24680         * c-decl.c (diagnose_mismatched_decls): Give an error for
24681         redefining a typedef with variably modified type.
24682
24683 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
24684
24685         * c-decl.c (grokfield): Don't allow typedefs for structures or
24686         unions with no tag by default.
24687         * doc/extend.texi (Unnamed Fields): Update.
24688
24689 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
24690
24691         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
24692         Rewrite using indirect functions.
24693         (lwp_slwpcb): Ditto.
24694         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
24695         (avx_vinsertf128<mode>): Ditto.
24696
24697 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24698
24699         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
24700         unspecs.
24701
24702 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24703
24704         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
24705         splitting between a call and its corresponding CALL_ARG_LOCATION note.
24706
24707 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
24708
24709         PR rtl-optimization/48170
24710         * gcse.c (hoist_code): Remove bogus asserts.
24711
24712 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
24713
24714         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
24715         computation for prologue/epilogue.
24716
24717 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24718
24719         * Makefile.in (check-consistency): Remove.
24720
24721 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
24722
24723         PR debug/48176
24724         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
24725         arange_table_in_use is 0, but either text_section_used or
24726         cold_text_section_used is true.  Don't call it if
24727         !info_section_emitted.
24728
24729 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
24730
24731         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
24732         FUNCTION_VALUE_REGNO_P): Remove.
24733         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
24734         Remove.
24735         * config/avr/avr.c (avr_ret_register): Make static inline.
24736         (avr_function_value_regno_p): New function.
24737         (avr_libcall_value): Make static. Add 'func' argument.
24738         (avr_function_value): Make static. Rename 'func' argument to
24739         'fn_decl_or_type', forward it to avr_libcall_value. Call
24740         avr_ret_register function instead of RET_REGISTER macro.
24741         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
24742
24743 2011-03-18  Jason Merrill  <jason@redhat.com>
24744
24745         PR c++/23372
24746         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
24747
24748 2011-03-18  Richard Guenther  <rguenther@suse.de>
24749
24750         * doc/install.texi (--enable-gold): Remove.
24751         (--with-plugin-ld): Document.
24752         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
24753
24754 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
24755
24756         PR middle-end/47790
24757         * expr.c (optimize_bitfield_assignment_op): Revamp to work
24758         again after expansion changes.
24759
24760 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
24761
24762         * combine.c (try_combine): Do simplification only call of
24763         subst() on i2 even when i1 is present. Update comments.
24764
24765 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
24766
24767         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
24768         and UNSPEC_PCREL_SYMOFF.
24769
24770 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24771
24772         * config/s390/s390.md: Use define_c_enum for the unspec constant
24773         definitions.
24774
24775 2011-03-18  Richard Henderson  <rth@redhat.com>
24776             Jakub Jelinek  <jakub@redhat.com>
24777
24778         PR bootstrap/48161
24779         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
24780         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
24781
24782 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
24783
24784         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
24785         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
24786         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
24787         Change return type to bool.
24788         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
24789
24790 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
24791
24792         PR debug/48163
24793         * var-tracking.c (prepare_call_arguments): If CALL target
24794         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
24795         pc instead of looking it up using cselib_lookup and use
24796         Pmode for it if x has VOIDmode.
24797         * dwarf2out.c (gen_subprogram_die): If also both first and
24798         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
24799
24800         PR debug/48163
24801         * function.c (assign_parms): For data.passed_pointer parms
24802         use MEM of data.entry_parm instead of data.entry_parm itself
24803         as DECL_INCOMING_RTL.
24804         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
24805         also when passed and declared mode is the same, DECL_RTL
24806         is a MEM with pseudo as address and DECL_INCOMING_RTL is
24807         a MEM too.
24808
24809 2011-03-16  Jeff Law  <law@redhat.com>
24810
24811         PR rtl-optimization/37273
24812         * ira-costs.c (scan_one_insn): Detect constants living in memory and
24813         handle them like argument loads from stack slots.  Do not double
24814         count memory for memory constants and argument loads from stack slots.
24815
24816 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
24817
24818         PR debug/48160
24819         * var-tracking.c (prepare_call_arguments): Check SUBREG.
24820
24821 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
24822
24823         PR target/48171
24824         * config/i386/i386.opt: Add Save to -mavx and -mfma.
24825
24826 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
24827
24828         PR bootstrap/48153
24829         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
24830         if dwarf_strict.
24831         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
24832         Clear call_arg_locations and call_arg_loc_last always.
24833
24834         PR middle-end/48152
24835         * var-tracking.c (prepare_call_arguments): If argument needs to be
24836         passed by reference, adjust argtype and mode.
24837
24838 2011-03-17  Richard Guenther  <rguenther@suse.de>
24839
24840         PR middle-end/48134
24841         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
24842         a value make sure to fold the statement.
24843
24844 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
24845
24846         PR target/43872
24847         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
24848         return condition with !cfun->calls_alloca.
24849
24850 2011-03-17  Richard Guenther  <rguenther@suse.de>
24851
24852         PR bootstrap/48148
24853         * lto-cgraph.c (input_overwrite_node): Clear the abstract
24854         origin for decls in other ltrans units.
24855         (input_varpool_node): Likewise.
24856
24857 2011-03-17  Richard Guenther  <rguenther@suse.de>
24858
24859         PR middle-end/48165
24860         * tree-object-size.c (compute_object_offset): Properly return
24861         the offset operand of MEM_REFs as sizetype.
24862
24863 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
24864
24865         PR rtl-optimization/48141
24866         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
24867         * dse.c: Include params.h.
24868         (active_local_stores_len): New variable.
24869         (add_wild_read, dse_step1): Clear it when setting active_local_stores
24870         to NULL.
24871         (record_store, check_mem_read_rtx): Decrease it when removing
24872         from the chain.
24873         (scan_insn): Likewise.  Increase it when adding to chain, if it
24874         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
24875         set active_local_stores to NULL before the addition.
24876         * Makefile.in (dse.o): Depend on $(PARAMS_H).
24877
24878         PR rtl-optimization/48141
24879         * dse.c (record_store): If no positions are needed in an insn
24880         that cannot be deleted, at least unchain it from active_local_stores.
24881
24882 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
24883
24884         PR debug/47510
24885         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
24886         (lookup_type_die_strip_naming_typedef): ... here.
24887         (get_context_die): Use it.
24888         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
24889         the anonymous struct named by the naming typedef.
24890
24891 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
24892
24893         PR target/48154
24894         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
24895         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
24896
24897 2011-03-16  Jeff Law  <law@redhat.com>
24898
24899         * tree-vrp.c (identify_jump_threads): Slightly simplify type
24900         check for operands of conditional.  Allow type to be a pointer.
24901
24902 2011-03-16  Richard Guenther  <rguenther@suse.de>
24903
24904         PR tree-optimization/48149
24905         * fold-const.c (fold_binary_loc): Fold
24906         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
24907
24908 2011-03-16  Richard Guenther  <rguenther@suse.de>
24909
24910         PR tree-optimization/26134
24911         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
24912         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
24913         (non_rewritable_mem_ref_base): Handle complex type component
24914         accesses, constrain offsets for vector and complex extracts
24915         more properly.
24916
24917 2011-03-16  Richard Guenther  <rguenther@suse.de>
24918
24919         PR tree-optimization/48146
24920         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
24921         operands avoiding the need for renaming.
24922
24923 2011-03-16  Richard Guenther  <rguenther@suse.de>
24924
24925         * gimple-fold.c (maybe_fold_reference): Open-code relevant
24926         constant folding.  Move MEM_REF canonicalization first.
24927         Rely on fold_const_aggregate_ref for initializer folding.
24928         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
24929
24930 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
24931
24932         PR middle-end/48136
24933         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
24934         arg0/arg1 or their arguments are always fold converted to matching
24935         types.
24936
24937         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
24938         to nargs.
24939
24940 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24941
24942         PR lto/46944
24943         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
24944         Handle in-tree gold.
24945         (ld_vers): Extract binutils version for gold.
24946         (gcc_cv_ld_hidden): Handle gold here.
24947         (gcc_cv_lto_plugin): Determine level of linker plugin support.
24948         * configure: Regenerate.
24949         * config.in: Regenerate.
24950         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
24951         -fuse-linker-plugin otherwise.
24952         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
24953         (LINK_COMMAND_SPEC): Use it.
24954         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
24955
24956 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
24957
24958         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
24959         * calls.c: Remove debug.h include.
24960         (emit_call_1): Don't call virtual_call_token debug hook.
24961         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
24962         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
24963         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
24964         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
24965         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
24966         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
24967         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
24968         dwarf2out_virtual_call): Remove.
24969         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
24970         copy_call_info and virtual_call hooks.
24971         (dwarf2out_init): Don't initialize vcall_insn_table,
24972         debug_dcall_section and debug_vcall_section.
24973         (prune_unused_types): Don't mark nodes from dcall_table.
24974         (dwarf2out_finish): Don't output dcall or vcall tables.
24975         * final.c (final_scan_insn): Don't call direct_call or
24976         virtual_call debug hooks.
24977         * debug.h (struct gcc_debug_hooks): Remove direct_call,
24978         virtual_call_token, copy_call_info and virtual_call hooks.
24979         (debug_nothing_uid): Remove prototype.
24980         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
24981         copy_call_info and virtual_call hooks.
24982         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
24983         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
24984         * debug.c (do_nothing_debug_hooks): Likewise.
24985         (debug_nothing_uid): Remove.
24986         * doc/invoke.texi (-fenable-icf-debug): Remove.
24987         * common.opt (-fenable-icf-debug): Likewise.
24988
24989         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
24990         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
24991         call's MEM.  Handle functions returning aggregate through a hidden
24992         first pointer.  For virtual calls add clobbered pc to call arguments
24993         chain.
24994         * dwarf2out.c (gen_subprogram_die): Emit
24995         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
24996         can't be emitted.
24997
24998         PR debug/45882
24999         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
25000         * rtl.h (ENTRY_VALUE_EXP): Define.
25001         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
25002         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
25003         * print-rtl.c (print_rtx): Likewise.
25004         * gengtype.c (adjust_field_rtx_def): Likewise.
25005         * var-tracking.c (vt_add_function_parameter): Adjust
25006         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
25007         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
25008         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
25009         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
25010         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
25011
25012         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
25013         Call var_location debug hook even on CALL_INSNs.
25014         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
25015         * rtl.def (ENTRY_VALUE): New.
25016         * dwarf2out.c: Include cfglayout.h.
25017         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
25018         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
25019         (struct call_arg_loc_node): New type.
25020         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
25021         tail_call_site_count): New variables.
25022         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
25023         DW_TAG_GNU_call_site_parameter.
25024         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
25025         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
25026         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
25027         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
25028         and DW_AT_GNU_all_source_call_sites.
25029         (mem_loc_descriptor): Handle ENTRY_VALUE.
25030         (add_src_coords_attributes): Don't add enything if
25031         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
25032         (dwarf2out_abstract_function): Save and clear call_arg_location,
25033         call_site_count and tail_call_site_count around dwarf2out_decl call.
25034         (gen_call_site_die): New function.
25035         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
25036         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
25037         (dwarf2out_function_decl): Clear call_arg_locations,
25038         call_arg_loc_last, set call_site_count and tail_call_site_count
25039         to -1 and free block_map.
25040         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
25041         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
25042         followed by any real instructions.
25043         (dwarf2out_begin_function): Set call_site_count and
25044         tail_call_site_count to 0.
25045         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
25046         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
25047         attempt to force a DIE for it and worst case remove the attribute.
25048         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
25049         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
25050         the decl itself.
25051         * var-tracking.c: Include tm_p.h.
25052         (vt_stack_adjustments): For calls call note_register_arguments.
25053         (argument_reg_set): New variable.
25054         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
25055         ensure the VALUE is resolved.
25056         (call_arguments): New variable.
25057         (prepare_call_arguments): New function.
25058         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
25059         (struct expand_loc_callback_data): Add ignore_cur_loc field.
25060         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
25061         always use the best expression.
25062         (vt_expand_loc): Add ignore_cur_loc argument.
25063         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
25064         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
25065         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
25066         note for all calls.
25067         (vt_add_function_parameter): Use cselib_lookup_from_insn.
25068         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
25069         argument.  Don't call cselib_preserve_only_values and
25070         cselib_reset_table.
25071         (note_register_arguments): New function.
25072         (vt_initialize): Compute argument_reg_set.  Call
25073         vt_add_function_parameters before processing basic blocks instead of
25074         afterwards.  For calls call prepare_call_arguments before calling
25075         cselib_process_insn.
25076         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
25077         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
25078         (var-tracking.o): Depend on $(TM_P_H).
25079         * cfglayout.h (insn_scope): New prototype.
25080         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
25081         * cfglayout.c (insn_scope): No longer static.
25082         * insn-notes.def (CALL_ARG_LOCATION): New.
25083         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
25084         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
25085         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
25086         nothing for DECL_EXTERNAL BLOCK_VARS.
25087
25088 2011-03-16  Alan Modra  <amodra@gmail.com>
25089
25090         PR target/45844
25091         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
25092         create invalid offset address for vsx splat insn.
25093         * config/rs6000/predicates.md (splat_input_operand): New.
25094         * config/rs6000/vsx.md (vsx_splat_*): Use it.
25095
25096 2011-03-15  Xinliang David Li  <davidxl@google.com>
25097
25098         PR c/47837
25099         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
25100         (normalize_preds): New function.
25101         (is_use_properly_guarded): Normalize def predicates.
25102
25103 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
25104
25105         PR target/46788
25106         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
25107         in the output template.
25108
25109 2011-03-15  Richard Guenther  <rguenther@suse.de>
25110
25111         PR middle-end/47650
25112         * tree-pretty-print.c (dump_function_declaration): Properly
25113         dump unprototyped and varargs function types.
25114
25115 2011-03-15  Richard Guenther  <rguenther@suse.de>
25116
25117         PR tree-optimization/13954
25118         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
25119         and friends.
25120
25121 2011-03-15  Richard Guenther  <rguenther@suse.de>
25122
25123         PR tree-optimization/48037
25124         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
25125         selects into BIT_FIELD_REFs.
25126         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
25127         vector select.
25128
25129 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
25130
25131         PR tree-optimization/48129
25132         * builtins.c (fold_builtin_snprintf): Convert to type of
25133         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
25134         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
25135
25136 2011-03-15  Richard Guenther  <rguenther@suse.de>
25137
25138         PR tree-optimization/41490
25139         * tree-ssa-dce.c (propagate_necessity): Handle returns without
25140         value but with VUSE.
25141         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
25142         return statements.
25143         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
25144         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
25145         * tree-tailcall.c (find_tail_calls): Ignore returns.
25146
25147 2011-03-15  Richard Guenther  <rguenther@suse.de>
25148
25149         PR middle-end/48031
25150         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
25151         or variable-indexed array accesses when in gimple form.
25152
25153 2011-03-15  Richard Guenther  <rguenther@suse.de>
25154
25155         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
25156
25157 2011-03-15  Alan Modra  <amodra@gmail.com>
25158
25159         PR target/48032
25160         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
25161         presume symbol_refs without a symbol_ref_decl are suitably
25162         aligned, nor other trees we may see here.  Handle anchor symbols.
25163         (legitimate_constant_pool_address_p): Comment.  Add mode param.
25164         Check cmodel=medium addresses.  Adjust all calls.
25165         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
25166         creating cmodel=medium optimized access to locals.
25167         * config/rs6000/constraints.md (R): Pass QImode to
25168         legitimate_constant_pool_address_p.
25169         * config/rs6000/predicates.md (input_operand): Pass mode to
25170         legitimate_constant_pool_address_p.
25171         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
25172         Update prototype.
25173
25174 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
25175
25176         PR target/48053
25177         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
25178         64-bit constants being loaded into registers other than GPRs such
25179         as loading 0 into a VSX register.
25180
25181 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25182
25183         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
25184
25185 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
25186
25187         PR middle-end/47917
25188         * builtins.c (fold_builtin_snprintf): New function.
25189         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
25190         (fold_builtin_4): Likewise.
25191
25192         PR middle-end/38878
25193         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
25194         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
25195         and C - X == X also strip nops from +/-/p+ operand.
25196         When optimizing -X == C, fold C to arg0's type.
25197
25198         PR debug/47946
25199         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
25200         emit it as add_AT_int instead of add_AT_unsigned.
25201
25202 2011-03-14  Tom Tromey  <tromey@redhat.com>
25203
25204         * unwind-dw2.c: Include sys/sdt.h if it exists.
25205         (_Unwind_DebugHook): Use STAP_PROBE2.
25206         * config.in, configure: Rebuild.
25207         * configure.ac: Check for sys/sdt.h.
25208
25209 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
25210
25211         * config/i386/i386.md (ROUND_FLOOR): New constant.
25212         (ROUND_CEIL): Ditto.
25213         (ROUND_TRUNC): Ditto.
25214         (ROUND_MXCSR): Ditto.
25215         (ROUND_NO_EXC): Ditto.
25216         (rint<mode>2): Use new defines instead of numerical constants.
25217         (floor<mode>2): Ditto.
25218         (ceil<mode>2): Ditto.
25219         (btrunc<mode>2): Ditto.
25220         * config/i386/i386-builtin-types.def: Define ROUND function type
25221         aliases.
25222         * config/i386/i386.c (enum ix86_builtins): Add
25223         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
25224         (struct builtin_description): Add
25225         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
25226         (ix86_expand_sse_round): New static function.
25227         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
25228         function types.
25229         (ix86_builtin_vectorized_function): Handle
25230         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
25231
25232 2011-03-14  Tom Tromey  <tromey@redhat.com>
25233
25234         * c-parser.c (c_parser_asm_string_literal): Clear
25235         warn_overlength_strings.
25236
25237 2011-03-14  Tom Tromey  <tromey@redhat.com>
25238
25239         * c-parser.c (disable_extension_diagnostics): Save
25240         warn_overlength_strings.
25241         (restore_extension_diagnostics): Restore warn_overlength_strings.
25242
25243 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
25244
25245         * BASE-VER: Change to 4.7.0.
25246
25247 2011-03-14  Richard Guenther  <rguenther@suse.de>
25248
25249         PR middle-end/48098
25250         * tree.c (build_vector_from_val): Adjust assert to requirements
25251         and reality.
25252
25253 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
25254
25255         PR bootstrap/48102
25256         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
25257
25258 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
25259
25260         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
25261         terms of target_flags_explicit. Adjust copyright year.
25262
25263         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
25264         * config/rs6000/t-freebsd: New file. Add override for
25265         LIB2FUNCS_EXTRA.
25266
25267 2011-03-13  Chris Demetriou  <cgd@google.com>
25268
25269         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
25270         (-fno-diagnostics-show-option): this, to reflect current default.
25271         (-Werror=): Update text about -fno-diagnostics-show-option.
25272
25273 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
25274
25275         PR target/48053
25276         * config/rs6000/predicates.md (easy_vector_constant_add_self,
25277         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
25278         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
25279         mode is not V2DImode or V2DFmode.
25280         (vspltis_constant): Do not handle V2DImode and V2DFmode.
25281         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
25282         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
25283         registers to 0.
25284         (movdi_internal64): Likewise.
25285
25286 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
25287
25288         PR tree-optimization/47127
25289         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
25290         parameter.
25291         (set_cloog_options): Same.
25292         (scop_to_clast): Same.
25293         (print_clast_stmt): Do not call cloog_state_malloc and
25294         cloog_state_free.
25295         (print_generated_program): Same.
25296         (gloog): Same.
25297         * graphite-clast-to-gimple.h (cloog_state): Declared.
25298         (scop_to_clast): Adjust declaration.
25299         * graphite.c (cloog_state): Defined here.
25300         (graphite_initialize): Call cloog_state_malloc.
25301         (graphite_finalize): Call cloog_state_free.
25302
25303 2011-03-11  Jason Merrill  <jason@redhat.com>
25304
25305         * attribs.c (lookup_attribute_spec): Take const_tree.
25306         * tree.h: Adjust.
25307
25308 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
25309
25310         * config/sparc/sparc.c (sparc_option_override): Use
25311         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
25312
25313 2011-03-11  Richard Guenther  <rguenther@suse.de>
25314
25315         PR tree-optimization/48067
25316         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
25317         multiplication result will be only used once on the target
25318         stmt.
25319
25320 2011-03-11  Richard Guenther  <rguenther@suse.de>
25321
25322         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
25323
25324 2011-03-11  Richard Guenther  <rguenther@suse.de>
25325
25326         PR lto/48073
25327         * tree.c (find_decls_types_r): Do not walk types only reachable
25328         from IDENTIFIER_NODEs.
25329
25330 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
25331
25332         PR middle-end/48044
25333         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
25334         all vnode->force_output nodes as needed.
25335
25336 2011-03-11  Jason Merrill  <jason@redhat.com>
25337
25338         PR c++/48069
25339         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
25340         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
25341
25342 2011-03-11  Martin Jambor  <mjambor@suse.cz>
25343
25344         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
25345         cgraph_node.
25346
25347 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
25348
25349         PR tree-optimization/48063
25350         * ipa-inline.c (cgraph_decide_inlining): Don't try to
25351         inline functions called once if !tree_can_inline_p (node->callers).
25352
25353 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
25354
25355         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
25356         extra_objs.
25357         * config/score/score3.c: Delete.
25358         * config/score/score3.h: Delete.
25359         * config/score/mul-div.S: Delete.
25360         * config/score/sfp-machine.h: Add new file.
25361         * config/score/constraints.md: Add new file.
25362         * config/score/t-score-softfp: Add new file.
25363         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
25364         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
25365         (score7_extra_constraint): Delete.
25366         (score7_option_override): Remove unused code.
25367         * config/score/score.c: Remove score3 and score5 define and code.
25368         * config/score/score.h: Remove score3 and score5 define and code.
25369         * config/score/score.md: Remove score3 template and unusual insn.
25370         * config/score/score.opt: Remove score3 and score5 options.
25371
25372 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25373
25374         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
25375         when _HPUX_SOURCE is defined.
25376         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
25377
25378 2011-03-10  Jason Merrill  <jason@redhat.com>
25379
25380         PR c++/48029
25381         * stor-layout.c (layout_type): Don't set structural equality
25382         on arrays of incomplete type.
25383         * tree.c (type_hash_eq): Handle comparing them properly.
25384
25385 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
25386
25387         PR debug/48043
25388         * config/s390/s390.c (s390_delegitimize_address): Make sure the
25389         result mode matches original rtl mode.
25390
25391 2011-03-10  Nick Clifton  <nickc@redhat.com>
25392
25393         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
25394         (andsi3, andsi3_flags): Fix timings for three operand alternative.
25395
25396 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
25397
25398         PR rtl-optimization/47866
25399         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
25400         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
25401         if target wasn't scalar.
25402         * function.c (assign_stack_temp_for_type): Assert that neither
25403         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
25404         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
25405         macro.
25406         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
25407
25408 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25409
25410         * config/s390/s390-protos.h (s390_label_align): New prototype.
25411         * config/s390/s390.c (s390_label_align): New function.
25412         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
25413
25414 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
25415
25416         PR target/47755
25417         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
25418         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
25419         (output_vec_const_move): Ditto.
25420
25421 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
25422
25423         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
25424         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
25425         * config/mips/mips.c (mips_preferred_reload_class): Make static.
25426         Change 'rclass' argument and result type to reg_class_t.
25427         (TARGET_PREFERRED_RELOAD_CLASS): Define.
25428
25429 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
25430
25431         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
25432         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
25433         (TARGET_MEMORY_MOVE_COST): Define.
25434         (avr_register_move_cost, avr_memory_move_cost): New Functions.
25435
25436 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
25437
25438         PR debug/47881
25439         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
25440         removed anything.
25441
25442         PR tree-optimization/48022
25443         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
25444         for EQ/NE_EXPR.
25445
25446 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
25447
25448         PR debug/47991
25449         * var-tracking.c (find_use_val): Return NULL for
25450         cui->sets && cui->store_p BLKmode MEMs.
25451
25452 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
25453
25454         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
25455         Remove.
25456         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
25457         xstormy16_print_operand_address): Remove.
25458         * config/stormy16/stormy16.c (xstormy16_print_operand,
25459         xstormy16_print_operand_address): Make static.
25460         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
25461
25462 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
25463
25464         PR target/47862
25465         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
25466         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
25467         before definition.
25468
25469 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
25470
25471         PR bootstrap/48000
25472         * cfgloopmanip.c (fix_bb_placements): Return immediately
25473         if FROM is BASE_LOOP's header.
25474
25475 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
25476
25477         * gimplify.c (gimplify_function_tree): Fix building calls
25478         to __builtin_return_address.
25479
25480 2011-03-07  Alan Modra  <amodra@gmail.com>
25481
25482         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
25483         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
25484         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
25485         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
25486         return_mode args.
25487         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
25488         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
25489         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
25490         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
25491         * config/rs6000/rs6000.c
25492         (rs6000_elf_end_indicate_exec_stack): Rename to..
25493         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
25494         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
25495         (rs6000_file_start): ..here.
25496         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
25497         file scope variables.
25498         (call_ABI_of_interest): New function.
25499         (init_cumulative_args): Set above vars when function return value
25500         is a float, vector, or small struct.
25501         (rs6000_function_arg_advance_1): Likewise for function args.
25502         (rs6000_va_start): Set rs6000_passes_float if variable arg function
25503         references float args.
25504
25505 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
25506
25507         * doc/cfg.texi: Remove "See" before @ref.
25508         * doc/invoke.texi: Likewise.
25509
25510 2011-03-05  Jason Merrill  <jason@redhat.com>
25511
25512         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
25513
25514 2011-03-05  Anthony Green  <green@moxielogic.com>
25515
25516         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
25517
25518 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
25519
25520         PR rtl-optimization/47899
25521         * cfgloopmanip.c (fix_bb_placements): Fix first argument
25522         to flow_loop_nested_p when moving the loop upward.
25523
25524 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
25525
25526         PR target/47719
25527         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
25528
25529 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
25530
25531         PR tree-optimization/47967
25532         * ipa-cp.c (build_const_val): Return NULL instead of creating
25533         VIEW_CONVERT_EXPR for mismatching sizes.
25534         (ipcp_create_replace_map): Return NULL if build_const_val failed.
25535         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
25536         give up on versioning.
25537
25538 2011-03-05  Alan Modra  <amodra@gmail.com>
25539
25540         PR target/47986
25541         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
25542         full cmodel medium/large lo_sum + high addresses.
25543
25544 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25545
25546         * config/s390/s390.c (s390_decompose_address): Reject non-literal
25547         pool references in UNSPEC_LTREL_OFFSET.
25548
25549 2011-03-04  Jan Hubicka  <jh@suse.cz>
25550
25551         PR lto/47497
25552         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
25553         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
25554         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
25555         Add node pointers.
25556         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
25557         cgraph_add_thunk): Add node pointers.
25558         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
25559         associated to right node.
25560         (input_node): Update use of cgraph_same_body_alias
25561         and cgraph_add_thunk.
25562
25563 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
25564
25565         * config/i386/i386.opt (mprefer-avx128): New flag.
25566         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
25567         modes when the flag -mprefer-avx128 is on.
25568
25569 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
25570
25571         * dwarf2out.c (compare_loc_operands): Fix address handling.
25572
25573 2011-03-04  Alan Modra  <amodra@gmail.com>
25574
25575         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
25576
25577 2011-03-04  Richard Guenther  <rguenther@suse.de>
25578
25579         PR middle-end/47968
25580         * expmed.c (extract_bit_field_1): Prefer vector modes that
25581         vec_extract patterns can handle.
25582
25583 2011-03-04  Richard Guenther  <rguenther@suse.de>
25584
25585         PR middle-end/47975
25586         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
25587
25588 2011-03-04  Richard Henderson  <rth@redhat.com>
25589
25590         * explow.c (emit_stack_save): Remove 'after' parameter.
25591         (emit_stack_restore): Likewise.
25592         * expr.h: Update to match.
25593         * builtins.c, calls.c, stmt.c: Likewise.
25594         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
25595         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
25596         * function.c (expand_function_end): Insert the emit_stack_save
25597         sequence before parm_birth_insn instead of after.
25598
25599 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
25600
25601         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
25602         (ssse3_pmaddubsw128): Ditto.
25603         (ssse3_pmaddubsw): Ditto.
25604
25605 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
25606
25607         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
25608
25609 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
25610
25611         PR c/47963
25612         * gimplify.c (omp_add_variable): Only call omp_notice_variable
25613         on TYPE_SIZE_UNIT if it is a DECL.
25614
25615         PR debug/47283
25616         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
25617         first operand is not is_gimple_mem_ref_addr, try to fold it.
25618         If the operand still isn't is_gimple_mem_ref_addr, clear
25619         MEM_EXPR on op0.
25620
25621 2011-03-03  Richard Guenther  <rguenther@suse.de>
25622
25623         PR middle-end/47283
25624         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
25625         match comment.
25626         (refs_may_alias_p_1): For release branches return true if
25627         we are confused by our input.
25628
25629 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25630
25631         * config/s390/s390.c (s390_function_value): Rename to ...
25632         (s390_function_and_libcall_value): ... this.
25633         (s390_function_value): New function.
25634         (s390_libcall_value): New function.
25635         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
25636         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
25637         target macro definitions.
25638         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
25639
25640 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
25641
25642         * config/i386/freebsd64.h (CC1_SPEC): Define.
25643         * config/i386/linux64.h (CC1_SPEC): Define.
25644         * config/i386/x86-64.h (CC1_SPEC): Don't define.
25645
25646 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
25647
25648         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
25649         Remove.
25650         * config/stormy16/stormy16.c: Include reload.h.
25651         (xstormy16_memory_move_cost): New function.
25652         (TARGET_MEMORY_MOVE_COST): Define.
25653
25654 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
25655
25656         PR rtl-optimization/47925
25657         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
25658         with side effects.  Remove the more-specific check for volatile asms.
25659
25660 2011-03-02  Alan Modra  <amodra@gmail.com>
25661
25662         PR target/47935
25663         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
25664         toc relative addresses for valid offsets.
25665
25666 2011-03-01  Richard Guenther  <rguenther@suse.de>
25667
25668         PR tree-optimization/47890
25669         * tree-vect-loop.c (get_initial_def_for_induction): Set
25670         related stmt properly.
25671
25672 2011-03-01  Richard Guenther  <rguenther@suse.de>
25673
25674         PR lto/47924
25675         * lto-streamer.c (lto_record_common_node): Also register
25676         the canonical type.
25677
25678 2011-03-01  Richard Guenther  <rguenther@suse.de>
25679
25680         PR lto/46911
25681         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
25682         Do not stream DECL_ABSTRACT_ORIGIN.
25683         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
25684         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
25685         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
25686         Do not stream DECL_ABSTRACT_ORIGIN.
25687         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
25688         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
25689
25690 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
25691
25692         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
25693         FUNCTION_VALUE_REGNO_P): Remove.
25694         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
25695         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
25696         Add 'outgoing' argument.
25697         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
25698         function.
25699         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
25700         TARGET_FUNCTION_VALUE_REGNO_P): Define.
25701
25702 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
25703
25704         PR debug/28047
25705         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
25706         (lookup_filename): Likewise.
25707         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
25708
25709 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
25710             Jakub Jelinek  <jakub@redhat.com>
25711
25712         PR middle-end/47893
25713         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
25714         (assign_stack_local_1): Change last argument type to int.
25715         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
25716         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
25717         don't record padding space into frame_space_list nor use those areas.
25718         (assign_stack_local): Adjust caller.
25719         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
25720         of assign_stack_local, pass 0 as last argument.
25721         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
25722         callers.
25723
25724 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
25725
25726         PR debug/47283
25727         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
25728         Use target address_mode and pointer_mode hooks instead of hardcoded
25729         Pmode and ptr_mode.  Handle some simple cases of extending if
25730         POINTERS_EXTEND_UNSIGNED < 0.
25731         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
25732         Call convert_debug_memory_address.
25733         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
25734         convert_debug_memory_address.
25735
25736         PR middle-end/46790
25737         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
25738         * configure: Regenerated.
25739         * config.in: Regenerated.
25740         * varasm.c (default_function_section): Return NULL
25741         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
25742
25743 2011-02-28  Martin Jambor  <mjambor@suse.cz>
25744
25745         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
25746         the description to match the printed values.
25747
25748 2011-02-28  Richard Guenther  <rguenther@suse.de>
25749
25750         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
25751         of the copied scope tree.
25752
25753 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25754
25755         * doc/extend.texi (Function Attributes): Avoid deeply (and
25756         wrongly) nested tables.
25757
25758 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
25759
25760         PR middle-end/47903
25761         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
25762         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
25763         r isn't op0 nor op1.
25764
25765 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
25766
25767         * config/avr/avr.md: Remove magic comment for emacs.
25768
25769 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
25770
25771         PR target/45261
25772         * config/avr/avr.c (avr_option_override): Use error on bad options.
25773         (avr_help): New function.
25774         (TARGET_HELP): Define.
25775
25776 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
25777
25778         PR target/42240
25779         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
25780         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
25781
25782 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
25783
25784         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
25785         (ARM Options): Ditto.
25786         (i386 and x86-64 Options): Ditto.
25787         (RX Options): Ditto.
25788         (SPARC Options): Ditto.
25789
25790 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
25791
25792         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
25793         FreeBSD 6 and later.  Generally use cpu generic.
25794
25795 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
25796
25797         * doc/cpp.texi: Update copyright years.
25798
25799 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
25800
25801         PR target/46898
25802         * config/lm32/lm32.md (ashrsi3): Added needed variable.
25803
25804 2011-02-25  Jon Beniston  <jon@beniston.com>
25805
25806         PR target/46898
25807         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
25808         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
25809         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
25810         (lm32_block_move_inline): Add type cast to remove warning.
25811         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
25812         (gen_int_relational): Move declarations to start of function.
25813
25814 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
25815
25816         PR tree-optimization/45470
25817         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
25818         can throw internally only.
25819         * tree-vect-stmts.c (vectorizable_call): Likewise.
25820
25821 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
25822
25823         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
25824         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
25825         * config/stormy16/stormy16-protos.h
25826         (xstormy16_preferred_reload_class): Remove.
25827         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
25828         static. Change 'rclass' argument and return type to reg_class_t.
25829         (TARGET_PREFERRED_RELOAD_CLASS,
25830         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
25831
25832 2011-02-24  Richard Guenther  <rguenther@suse.de>
25833
25834         * lto-streamer-in.c (input_bb): Do not find referenced vars
25835         in debug statements.
25836
25837 2011-02-23  Jason Merrill  <jason@redhat.com>
25838
25839         * common.opt (fabi-version): Document v5 and v6.
25840
25841 2011-02-23  Richard Guenther  <rguenther@suse.de>
25842
25843         PR tree-optimization/47849
25844         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
25845
25846 2011-02-23  Jie Zhang  <jie@codesourcery.com>
25847
25848         * opts-common.c (decode_cmdline_option): Print empty string
25849         argument as "" in decoded->orig_option_with_args_text.
25850         * gcc.c (execute): Print empty string argument as ""
25851         in the verbose output.
25852         (do_spec_1): Keep empty string argument.
25853
25854 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
25855
25856         * config.gcc: Declare score-* and crx-* obsolete.
25857
25858 2011-02-23  Jie Zhang  <jie@codesourcery.com>
25859
25860         PR rtl-optimization/47763
25861         * web.c (web_main): Ignore naked clobber when replacing register.
25862
25863 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
25864
25865         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
25866         Remove.
25867
25868 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
25869
25870         PR doc/47848
25871         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
25872
25873 2011-02-22  Mike Stump  <mikestump@comcast.net>
25874
25875         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
25876         assembler.
25877         * configure: Regenerate.
25878
25879 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
25880
25881         PR rtl-optimization/46002
25882         * ira-color.c (update_copy_costs): Change class intersection
25883         test to reg_class_contents[] test of 'hard_regno'.
25884
25885 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
25886
25887         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
25888         than Driver option.
25889         * config/hpux11.opt (mt): Likewise.
25890         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
25891         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
25892         * config/vax/elf.opt (mno-asm-pic): Likewise.
25893         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
25894
25895 2011-02-21  Mike Stump  <mikestump@comcast.net>
25896
25897         PR target/47822
25898         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
25899         tree so we can get save the type.
25900         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
25901         for CFString instead of trying to use past the end of the builtins.
25902         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
25903         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
25904         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
25905         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
25906         Rename to darwin_builtin_cfstring.
25907         (darwin_init_cfstring_builtins): Return the built type.
25908
25909 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
25910
25911         PR target/47840
25912         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
25913         (_mm256_insert_epi64): Use _mm_insert_epi64.
25914
25915 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
25916
25917         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
25918         * config/stormy16/stormy16-protos.h
25919         (xstormy16_mode_dependent_address_p): Remove.
25920         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
25921         Make static. Change return type to bool. Change argument type to
25922         const_rtx. Remove dead code.
25923         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
25924
25925 2011-02-21  Richard Guenther  <rguenther@suse.de>
25926
25927         PR lto/47820
25928         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
25929         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
25930         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
25931         TUs context.
25932         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
25933         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
25934
25935 2011-02-20  Richard Guenther  <rguenther@suse.de>
25936
25937         PR lto/47822
25938         * tree.c (free_lang_data_in_decl): Clean builtins from
25939         the TU decl BLOCK_VARS.
25940
25941 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
25942
25943         PR debug/47620
25944         PR debug/47630
25945         * haifa-sched.c (fix_tick_ready): Skip tick computation
25946         for debug insns.
25947
25948 2011-02-19  Richard Guenther  <rguenther@suse.de>
25949
25950         PR lto/47647
25951         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
25952         Remove lazy BLOCK_VARS streaming.
25953         (lto_input_ts_block_tree_pointers): Likewise.
25954         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
25955
25956 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
25957
25958         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
25959
25960 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
25961
25962         * config/i386/biarch32.h, config/i386/mach.h,
25963         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
25964
25965 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
25966
25967         PR target/47800
25968         * config/i386/i386.md (peephole2 for shift and plus): Use
25969         operands[1] original mode in the first insn.
25970
25971 2011-02-18  Mike Stump  <mikestump@comcast.net>
25972
25973         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
25974
25975 2011-02-18  Jan Hubicka  <jh@suse.cz>
25976
25977         PR middle-end/47788
25978         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
25979         to zero when the function is not inlinable at all.
25980
25981 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25982
25983         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
25984         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
25985         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
25986         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
25987         * config/pa/t-pa64: Likewise.
25988         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
25989
25990 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
25991
25992         PR driver/47787
25993         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
25994
25995 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25996
25997         PR target/47792
25998         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
25999
26000 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
26001
26002         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
26003         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
26004         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
26005         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
26006         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
26007         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
26008         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
26009         m32r_load_postinc_p, m32r_store_preinc_predec_p,
26010         m32r_legitimate_address_p): New functions.
26011         * config/m32r/constraints.md (constraint "S"): Don't use
26012         STORE_PREINC_PREDEC_P.
26013         (constraint "U"): Don't use LOAD_POSTINC_P.
26014
26015 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
26016
26017         PR rtl-optimization/46178
26018         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
26019         compute ira_hard_regno_cover_class[].
26020
26021 2011-02-18  Richard Guenther  <rguenther@suse.de>
26022
26023         PR lto/47798
26024         * lto-streamer.h (lto_global_var_decls): Declare.
26025         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
26026         statics for global var processing.
26027
26028 2011-02-18  Richard Guenther  <rguenther@suse.de>
26029
26030         PR tree-optimization/47737
26031         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
26032         edge dominance check.
26033
26034 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
26035
26036         PR debug/47780
26037         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
26038         avoid invalid rtx sharing.
26039
26040 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
26041
26042         * doc/cpp.texi (Obsolete Features): Add background on the
26043         origin of assertions.
26044
26045 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
26046
26047         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
26048         objc_abi == 2.
26049         * config/darwin.c (output_objc_section_asm_op): Added support for
26050         ABI v1 and v2.
26051         (is_objc_metadata): New.
26052         (darwin_objc2_section): New.
26053         (darwin_objc1_section): New.
26054         (machopic_select_section): Added support for ABI v1 and v2.
26055         (darwin_emit_objc_zeroed): New.
26056         (darwin_output_aligned_bss): Detect objc metadata and treat it
26057         appropriately.
26058         (darwin_asm_output_aligned_decl_common): Same.
26059         (darwin_asm_output_aligned_decl_local): Same.
26060         * config/darwin-sections.def: Updated for ABI v1 and v2.
26061         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
26062         compiling Objective-C code for the NeXT runtime, default to using
26063         ABI version 0 for 32-bit, and version 2 for 64-bit.
26064
26065 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
26066
26067         * common.opt (optimize_fast): New Variable.
26068         * opts.c (default_options_optimization): Use opts->x_optimize_fast
26069         instead of local variable ofast.
26070
26071 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
26072
26073         * doc/invoke.texi (fobjc-abi-version): Documented.
26074         (fobjc-nilcheck): Documented.
26075         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
26076         version.
26077
26078 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
26079
26080         PR driver/47390
26081         * common.opt (export-dynamic): New Driver option.
26082         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
26083
26084 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
26085
26086         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
26087
26088 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
26089             Jan Hubicka  <jh@suse.cz>
26090
26091         PR debug/47106
26092         PR debug/47402
26093         * cfgexpand.c (account_used_vars_for_block): Remove.
26094         (estimated_stack_frame_size): Use referenced vars.
26095         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
26096         that were referenced in the original function.  Test src_fn
26097         rather than cfun.  Drop redundant get_var_ann.
26098         (setup_one_parameter): Drop redundant get_var_ann.
26099         (declare_return_variable): Likewise.
26100         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
26101         (copy_arguments_for_versioning): Drop redundant get_var_ann.
26102         * ipa-inline.c (compute_inline_parameters): Do not compute
26103         disregard_inline_limits here.
26104         (compute_inlinable_for_current, pass_inlinable): New.
26105         (pass_inline_parameters): Require PROP_referenced_vars.
26106         * cgraphunit.c (cgraph_process_new_functions): Don't run
26107         compute_inline_parameters explicitly unless function is in SSA form.
26108         (cgraph_analyze_function): Set .disregard_inline_limits.
26109         * tree-sra.c (convert_callers): Compute inliner parameters
26110         only for functions already in SSA form.
26111
26112 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
26113
26114         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
26115         -mlittle-endian-data.
26116
26117 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
26118
26119         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
26120         -mno-fpu, not -fpu and -no-fpu.
26121         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
26122         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
26123
26124 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
26125
26126         PR target/43653
26127         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
26128         input reload with PLUS RTX.
26129
26130 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
26131
26132         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
26133         of InverseVar(MDMX).
26134
26135 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
26136
26137         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
26138         --m4-340.
26139
26140 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
26141
26142         * config/mn10300/mn10300.opt (mno-crt0): New.
26143
26144 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
26145
26146         * config/m68k/uclinux.opt (static-libc): New Driver option.
26147
26148 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
26149
26150         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
26151
26152 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
26153
26154         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
26155         %{muser-extend-enabled}.
26156
26157 2011-02-16  Richard Guenther  <rguenther@suse.de>
26158
26159         PR tree-optimization/47738
26160         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
26161         the TODO from tree_predictive_commoning.
26162
26163 2011-02-15  Jeff Law  <law@redhat.com>
26164
26165         Revert
26166         2011-01-25  Jeff Law  <law@redhat.com>
26167
26168         PR rtl-optimization/37273
26169         * ira-costs.c (scan_one_insn): Detect constants living in memory and
26170         handle them like argument loads from stack slots.  Do not double
26171         count memory for memory constants and argument loads from stack slots.
26172
26173 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
26174
26175         PR target/47755
26176         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
26177         mode for vector constants.  Remove code that checks for TImode.
26178
26179 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
26180
26181         PR debug/47106
26182         PR debug/47402
26183         * cgraph.h (compute_inline_parameters): Return void.
26184         * ipa-inline.c (compute_inline_parameters): Adjust.
26185
26186 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
26187
26188         PR debug/47106
26189         PR debug/47402
26190         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
26191         rather than decl.
26192         * cfgexpand.c (estimated_stack_frame_size): Likewise.
26193         * ipa-inline.c (compute_inline_parameters): Adjust.
26194
26195 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
26196
26197         PR debug/47106
26198         PR debug/47402
26199         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
26200         Adjust all users.  Pass FN to...
26201         * tree-flow-inline.h (first_referenced_var): ... this.  Add
26202         fn argument.
26203         * ipa-struct-reorg.c: Adjust.
26204         * tree-dfa.c: Adjust.
26205         * tree-into-ssa.c: Adjust.
26206         * tree-sra.c: Adjust.
26207         * tree-ssa-alias.c: Adjust.
26208         * tree-ssa-live.c: Adjust.
26209         * tree-ssa.c: Adjust.
26210         * tree-ssanames.c: Adjust.
26211         * tree-tailcall.c: Adjust.
26212
26213 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
26214
26215         PR debug/47106
26216         PR debug/47402
26217         * tree-flow.h (referenced_var_lookup): Add fn parameter.
26218         Adjust all callers.
26219         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
26220         * tree-flow-inline.h: Adjust.
26221         * gimple-pretty-print.c: Adjust.
26222         * tree-into-ssa.c: Adjust.
26223         * tree-ssa.c: Adjust.
26224         * cfgexpand.c: Adjust.
26225
26226 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
26227
26228         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
26229         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26230         (EXTRA_CONSTRAINT): Delete.
26231         * config/iq2000/constraints.md: New file.
26232         * config/iq2000/iq2000.md: Include it.
26233         (define_insn ""): Delete.
26234         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
26235         unsupported constraint letters from patterns.
26236         (call_value, call_value_internal1): Likewise.
26237         (call_value_multiple_internal1): Likewise.
26238
26239 2011-02-15  Nick Clifton  <nickc@redhat.com>
26240
26241         * config/mn10300/mn10300.c: Include tm-constrs.h.
26242         (struct liw_data): New data structure describing an LIW candidate
26243         instruction.
26244         (extract_bundle): Use struct liw_data.  Allow small integer
26245         operands for some instructions.
26246         (check_liw_constraints): Use struct liw_data.  Remove swapped
26247         parameter.  Add comments describing the checks.  Fix bug when
26248         assigning the source of liw1 to the source of liw2.
26249         (liw_candidate): Delete.  Code moved into extract_bundle.
26250         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
26251         before swapping.
26252         * config/mn10300/predicates.md (liw_operand): New predicate.
26253         Allows registers and small integer constants.
26254         * config/mn10300/constraints.md (O): New constraint.  Accetps
26255         integers in the range -8 to +7 inclusive.
26256         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
26257         for moving a small integer into a register.  Give this alternative
26258         LIW attributes.
26259         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
26260         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
26261         using the J,K,L and M constraints,
26262         (liw): Remove SI mode on second operands to allow for HI and QI
26263         mode values.
26264         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
26265         instruction.
26266
26267 2011-02-15  Richard Guenther  <rguenther@suse.de>
26268
26269         PR tree-optimization/47743
26270         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
26271         for a non-type-compatible VN lookup bail out.
26272
26273 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
26274
26275         * config/fr30/constraints.md: New file.
26276         * config/fr30/fr30.md: Include it.
26277         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
26278         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26279         (EXTRA_CONSTRAINT): Delete.
26280
26281 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
26282
26283         * config/frv/constraints.md: New file.
26284         * config/frv/predicates.md: Include it.
26285         * config/frv/frv.c (reg_class_from_letter): Delete.
26286         (frv_option_override): Don't initialize it.
26287         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
26288         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
26289         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
26290         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
26291         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
26292         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26293         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
26294         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
26295         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
26296         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
26297         (REG_CLASS_FROM_CONSTRAINT): Delete.
26298
26299 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
26300
26301         PR middle-end/47581
26302         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
26303         if frame size is 0 in a leaf function.
26304
26305 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26306
26307         PR pch/14940
26308         * config/alpha/host-osf.c: New file.
26309         * config/alpha/x-osf: New file.
26310         * config.host (alpha*-dec-osf*): Use it.
26311
26312 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
26313
26314         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
26315         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
26316         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
26317         (rx_mode_dependent_address_p): ...this. Make static. Change argument
26318         type to const_rtx.
26319         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
26320
26321 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
26322
26323         * config/stormy16/constraints.md: New file.
26324         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
26325         Use satisfies_constraint_Q and satisfies_constraint_R.
26326         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
26327         Delete.
26328         (xstormy16_legitiamte_address_p): Declare.
26329         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
26330         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26331         (EXTRA_CONSTRAINT): Delete.
26332         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
26333         Un-staticize.
26334         (xstormy16_extra_constraint_p): Delete.
26335
26336 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
26337
26338         PR tree-optimization/46494
26339         * loop-unroll.c (split_edge_and_insert): Adjust comment.
26340         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
26341         (pass_rtl_loop_done): Add TODO_verify_flow.
26342         * fwprop.c (pass_rtl_fwprop): Likewise.
26343         * modulo-sched.c (pass_sms): Likewise.
26344         * tree-ssa-dom.c (pass_dominator): Likewise.
26345         * tree-ssa-loop-ch.c (pass_ch): Likewise.
26346         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
26347         (pass_tree_loop_done): Likewise.
26348         * tree-ssa-pre.c (execute_pre): Likewise.
26349         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
26350         * tree-ssa-sink.c (pass_sink_code): Likewise.
26351         * tree-vrp.c (pass_vrp): Likewise.
26352
26353 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
26354
26355         * config/v850/constraints.md: New file.
26356         * config/v850/v850.md: Include it.
26357         * config/v850/predicates.md (reg_or_0_operand): Use
26358         satisfies_constraint_G.
26359         (special_symbolref_operand): Use satisfies_constraint_K.
26360         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
26361         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
26362         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
26363         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
26364         (EXTRA_CONSTRAINT): Delete.
26365         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
26366         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
26367         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
26368
26369 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
26370
26371         PR target/47696
26372         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
26373         description.
26374
26375 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
26376
26377         * config/mcore/constraints.md: New file.
26378         * config/mcore/mcore.md: Include it.
26379         * config/mcore/mcore.c (reg_class_from_letter): Delete.
26380         * config/mcore/mcore.h (reg_class_from_letter): Delete.
26381         (REG_CLASS_FROM_LETTER): Delete.
26382         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
26383         insn_const_int_ok_for_constraint.
26384         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
26385         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
26386         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26387         (EXTRA_CONSTRAINT): Delete.
26388
26389 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26390
26391         PR ada/41929
26392         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
26393         (IS_SIGHANDLER): Define.
26394         (sparc64_is_sighandler): New function, split off from
26395         sparc64_fallback_frame_state.
26396         (sparc_is_sighandler): New function, split off from
26397         sparc_fallback_frame_state.
26398         (sparc64_fallback_frame_state): Merge with ...
26399         (sparc_fallback_frame_state): ... this into ...
26400         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
26401         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
26402         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
26403         stack instead of hardcoded offsets.
26404
26405 2011-02-14  Andriy Gapon  <avg@freebsd.org>
26406
26407         PR target/45808
26408         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
26409
26410 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26411
26412         * configure: Regenerate.
26413
26414 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
26415
26416         PR driver/45731
26417         * gcc.c (asm_options): Correct spec matching --target-help.
26418
26419 2011-02-12  Martin Jambor  <mjambor@suse.cz>
26420
26421         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
26422         to gimple call error.
26423
26424 2011-02-12  Mike Stump  <mikestump@comcast.net>
26425
26426         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
26427         comments in backslash regions.
26428
26429 2011-02-12  Mike Stump  <mikestump@comcast.net>
26430             Jakub Jelinek  <jakub@redhat.com>
26431             Iain Sandoe  <iains@gcc.gnu.org>
26432
26433         PR target/47324
26434         * dwarf2out.c (output_cfa_loc): When required, apply the
26435         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
26436         (output_loc_sequence): Likewise.
26437         (output_loc_operands_raw): Likewise.
26438         (output_loc_sequence_raw): Likewise.
26439         (output_cfa_loc): Likewise.
26440         (output_loc_list): Suppress register number adjustment when
26441         calling output_loc_sequence()
26442         (output_die): Likewise.
26443
26444 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
26445
26446         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
26447         Remove macros.
26448         * config/xtensa/xtensa.c (xtensa_register_move_cost,
26449         xtensa_memory_move_cost): New functions.
26450         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
26451
26452 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
26453
26454         PR lto/47225
26455         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
26456         in the current directory.
26457         * configure: Rebuilt.
26458
26459 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
26460
26461         * config/darwin.c (darwin_override_options): Add a hunk missed
26462         from the commit of r168571.  Trim comment line lengths and
26463         correct indents of the preceding block.
26464
26465 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
26466
26467         * gcc.c (driver_handle_option): Concatenate the argument to -F with
26468         the switch.
26469
26470 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
26471
26472         * common.opt (nostartfiles): New Driver option.
26473
26474 2011-02-11  Xinliang David Li  <davidxl@google.com>
26475
26476         PR tree-optimization/47707
26477         * tree-chrec.c (convert_affine_scev): Keep type precision.
26478
26479 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
26480
26481         PR tree-optimization/47420
26482         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
26483
26484 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
26485
26486         PR rtl-optimization/47614
26487         * rtl.h (check_for_inc_dec): Declare.
26488         * dse.c (check_for_inc_dec): Externalize...
26489         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
26490         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
26491
26492 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
26493
26494         PR driver/47678
26495         * gcc.c (main): Do not compile inputs if there were errors in
26496         option handling.
26497         * opts-common.c (read_cmdline_option): Check for wrong language
26498         after other error checks.
26499
26500 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
26501
26502         * cgraph.c: Fix comment typos.
26503         * cgraph.h: Likewise.
26504         * cgraphunit.c: Likewise.
26505         * ipa-cp.c: Likewise.
26506         * ipa-inline.c: Likewise.
26507         * ipa-prop.c: Likewise.
26508         * ipa-pure-const.c: Likewise.
26509         * ipa-ref.c: Likewise.
26510         * ipa-reference.c: Likewise.
26511
26512 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
26513
26514         PR debug/47684
26515         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
26516
26517 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26518
26519         PR testsuite/47400
26520         * doc/sourcebuild.texi (Require Support): Document
26521         dg-require-ascii-locale.
26522
26523 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
26524
26525         * doc/lto.texi (Write summary): Fix missing parentheses.
26526
26527 2011-02-10  DJ Delorie  <dj@redhat.com>
26528
26529         * config/m32c/m32c.c (m32c_option_override): Disable
26530         -fcombine-stack-adjustments until flag value tracking and compare
26531         optimization can be rewritten.
26532
26533 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
26534
26535         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
26536         PROCESSOR_POWER7.
26537         (PROCESSOR_DEFAULT64): Likewise.
26538
26539 2011-02-10  Richard Henderson  <rth@redhat.com>
26540
26541         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
26542         change from 2011-02-03.
26543         * config/rx/rx.c (flags_from_code): Likewise.
26544         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
26545         is valid, n/pz otherwise.
26546         (rx_select_cc_mode): Return CCmode if Y is not zero.
26547
26548 2011-02-10  Richard Guenther  <rguenther@suse.de>
26549
26550         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
26551
26552 2011-02-10  Richard Guenther  <rguenther@suse.de>
26553
26554         PR tree-optimization/47677
26555         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
26556
26557 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
26558
26559         PR target/47665
26560         * combine.c (make_compound_operation): Only change shifts into
26561         multiplication for SCALAR_INT_MODE_P.
26562
26563 2011-02-10  Jie Zhang  <jie@codesourcery.com>
26564
26565         PR testsuite/47622
26566         Revert
26567         2011-02-05  Jie Zhang  <jie@codesourcery.com>
26568         PR debug/42631
26569         * web.c (entry_register): Don't clobber the number of the
26570         first uninitialized reference in used[].
26571
26572 2011-02-09  Richard Guenther  <rguenther@suse.de>
26573
26574         PR tree-optimization/47664
26575         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
26576         all edges again.
26577
26578 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
26579
26580         PR target/46481
26581         PR target/47032
26582         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
26583         PROCESSOR_POWER7.
26584         (PROCESSOR_DEFAULT64): Same.
26585         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
26586
26587 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26588
26589         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
26590
26591 2011-02-09  Martin Jambor  <mjambor@suse.cz>
26592
26593         PR middle-end/45505
26594         * tree-sra.c (struct access): New flags grp_scalar_read and
26595         grp_scalar_write.  Changed description of assignment read and write
26596         flags.
26597         (dump_access): Dump new flags, reorder all of them.
26598         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
26599         to detect multiple scalar reads.
26600         (analyze_access_subtree): Use the new scalar read write flags instead
26601         of the old flags.  Adjusted comments.
26602
26603 2011-02-08  DJ Delorie  <dj@redhat.com>
26604
26605         PR target/47548
26606         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
26607         patterns.
26608
26609 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
26610
26611         * config/m68k/uclinux.opt: New.
26612         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
26613
26614 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
26615
26616         * config/cris/elf.opt (sim): New Driver option.
26617
26618 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
26619
26620         * config/xtensa/elf.opt: New.
26621         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
26622
26623 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
26624
26625         * config/vax/elf.opt: New.
26626         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
26627
26628 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
26629
26630         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
26631
26632 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
26633
26634         * config/gnu-user.opt: New.
26635         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
26636         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
26637         *-*-uclinux*): Use gnu-user.opt.
26638
26639 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
26640
26641         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
26642         * config/i386/gnu.h (CPP_SPEC): Likewise.
26643
26644 2011-02-08  Ian Lance Taylor  <iant@google.com>
26645
26646         * common.opt (fcx-limited-range): Add SetByCombined flag.
26647         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
26648         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
26649         (fassociative-math, freciprocal-math): Likewise.
26650         (funsafe-math-optimizations): Likewise.
26651         * opth-gen.awk: Handle SetByCombined.
26652         * optc-gen.awk: Likewise.
26653         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
26654         (set_unsafe_math_optimizations_flags): Likewise.
26655         * doc/options.texi (Option properties): Document SetByCombined.
26656
26657 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
26658
26659         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
26660         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
26661         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
26662         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
26663         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
26664
26665 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
26666
26667         PR tree-optimization/46834
26668         PR tree-optimization/46994
26669         PR tree-optimization/46995
26670         * graphite-sese-to-poly.c (used_outside_reduction): New.
26671         (detect_commutative_reduction): Call used_outside_reduction.
26672         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
26673         translate_scalar_reduction_to_array only when at least one
26674         loop-phi/close-phi tuple has been detected.
26675
26676 2011-02-08  Richard Guenther  <rguenther@suse.de>
26677
26678         PR middle-end/47639
26679         * tree-vect-generic.c (expand_vector_operations_1): Update
26680         stmts here ...
26681         (expand_vector_operations): ... not here.  Cleanup EH info
26682         and the CFG if required.
26683
26684 2011-02-08  Richard Guenther  <rguenther@suse.de>
26685
26686         PR tree-optimization/47641
26687         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
26688         require type compatibility.
26689
26690 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26691
26692         * gimple-low.c (lower_function_body): Don't remove the location of
26693         the return statement here.
26694         (lower_gimple_return): Do it here instead but only if the return
26695         statement is actually used twice.
26696
26697 2011-02-08  Richard Guenther  <rguenther@suse.de>
26698
26699         PR tree-optimization/47632
26700         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
26701         unused up_to_stmt parameter, return whether cfg-cleanup is
26702         necessary, remove EH info properly.
26703         (forward_propagate_into_gimple_cond): Adjust caller.
26704         (forward_propagate_into_cond): Likewise.
26705         (forward_propagate_comparison): Likewise.
26706         (tree_ssa_forward_propagate_single_use_vars): Make
26707         forward_propagate_comparison case similar to the two others.
26708
26709 2011-02-08  Nick Clifton  <nickc@redhat.com>
26710
26711         * config/mn10300/mn10300.opt (mliw): New command line option.
26712         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
26713         (liw_bundling): New automaton.
26714         (liw): New attribute.
26715         (liw_op): New attribute.
26716         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
26717         (movsi_internal): Add LIW attributes.
26718         (andsi3): Likewise.
26719         (iorsi3): Likewise.
26720         (xorsi3): Likewise.
26721         (addsi3): Separate register and immediate alternatives.
26722         Add LIW attributes.
26723         (subsi3): Likewise.
26724         (cmpsi): Likewise.
26725         (aslsi3): Likewise.
26726         (lshrsi3): Likewise.
26727         (ashrsi3): Likewise.
26728         (liw): New pattern.
26729         * config/mn10300/mn10300.c (liw_op_names): New
26730         (mn10300_print_operand): Handle 'W' operand descriptor.
26731         (extract_bundle): New function.
26732         (check_liw_constraints): New function.
26733         (liw_candidate): New function.
26734         (mn10300_bundle_liw): New function.
26735         (mn10300_reorg): New function.
26736         (TARGET_MACHINE_DEPENDENT_REORG): Define.
26737         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
26738         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
26739         __LIW__ or __NO_LIW__.
26740         * doc/invoke.texi: Describe the -mliw command line option.
26741
26742 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26743
26744         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
26745         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
26746         pthread_mutex_unlock): Remove.
26747         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
26748         * config/pa/t-pa64: Likewise.
26749         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
26750         shared libc if not linking against libpthread.
26751         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
26752
26753 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
26754
26755         PR target/47558
26756         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
26757         on 10.6 and later to ensure that we always use the unwinder from
26758         the system.  Only add -no_compact_unwind when tarteting darwin
26759         10.6 or later.
26760
26761 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
26762
26763         PR target/46997
26764         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
26765         (vec_interleave_lowv2sf): Ditto.
26766         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
26767         (vec_extract_oddv2sf): Ditto.
26768
26769 2011-02-07  Mike Stump  <mikestump@comcast.net>
26770
26771         PR target/42333
26772         Add __ieee_divdc3 entry point.
26773         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
26774         entry point.
26775         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
26776         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
26777         * config/darwin.c (darwin_rename_builtins): Add.
26778         * config/darwin-protos.h (darwin_rename_builtins): Add.
26779
26780 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
26781
26782         PR target/47636
26783         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
26784         for the condition.
26785
26786 2011-02-07  Mike Stump  <mikestump@comcast.net>
26787
26788         * config/darwin.opt (mmacosx-version-min): Update default OS version.
26789
26790 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
26791
26792         PR target/47534
26793         * config/avr/libgcc.S (exit): Move .endfunc
26794
26795 2011-02-07  Richard Guenther  <rguenther@suse.de>
26796
26797         PR tree-optimization/47615
26798         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
26799         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
26800         (run_scc_vn): Initialize it.
26801         (visit_reference_op_load): Use it.
26802         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
26803
26804 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26805
26806         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
26807         DImode trapping arithmetic libfuncs.
26808
26809 2011-02-07  Richard Guenther  <rguenther@suse.de>
26810
26811         PR tree-optimization/47621
26812         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
26813         two duplicates ...
26814         (execute_update_addresses_taken): ... here.  Make it more
26815         conservative in what we accept.
26816
26817 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
26818
26819         * config/sparc/freebsd.h (ASM_SPEC): Define.
26820         * config/sparc/vxworks.h (ASM_SPEC): Define.
26821
26822 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
26823
26824         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
26825
26826 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
26827
26828         * doc/invoke.texi: Remove reference to compiler internals from
26829         user documentation.
26830
26831         * reg-notes.def: Remove REG_VALUE_PROFILE.
26832         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
26833
26834 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
26835
26836         PR middle-end/47610
26837         * varasm.c (default_section_type_flags): If decl is NULL,
26838         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
26839
26840 2011-02-05  Jie Zhang  <jie@codesourcery.com>
26841
26842         PR debug/42631
26843         * web.c (entry_register): Don't clobber the number of the
26844         first uninitialized reference in used[].
26845
26846 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
26847
26848         PR tree-optimization/46194
26849         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
26850         (build_classic_dist_vector_1): Do not represent classic distance
26851         vectors when the access functions are variating in different loops.
26852
26853 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
26854
26855         * config/mips/iris6.opt: New.
26856         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
26857
26858 2011-02-04  Richard Henderson  <rth@redhat.com>
26859             Steve Ellcey  <sje@cup.hp.com>
26860
26861         PR target/46997
26862         * config/ia64/predicates.md (mux1_brcst_element): New.
26863         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
26864         * config/ia64/ia64.c (ia64_unpack_assemble): New.
26865         (ia64_unpack_sign): New.
26866         (ia64_expand_unpack): Rewrite using new routines.
26867         (ia64_expand_widen_sum): Ditto.
26868         (ia64_expand_dot_prod_v8qi): Ditto.
26869         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
26870         routines, add endian check.
26871         (pmpy2_even): Rename from pmpy2_r, add endian check.
26872         (pmpy2_odd): Rename from pmpy2_l, add endian check.
26873         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
26874         (vec_widen_smult_hi_v4hi): Ditto.
26875         (vec_widen_umult_lo_v4hi): Ditto.
26876         (vec_widen_umult_hi_v4hi): Ditto.
26877         (mulv2si3): Change endian checks.
26878         (sdot_prodv4hi): Rewrite with new calls.
26879         (udot_prodv4hi): New.
26880         (vec_pack_ssat_v4hi): Add endian check.
26881         (vec_pack_usat_v4hi): Ditto.
26882         (vec_pack_ssat_v2si): Ditto.
26883         (max1_even): Rename from max1_r, add endian check.
26884         (max1_odd): Rename from max1_l, add endian check.
26885         (*mux1_rev): Format change.
26886         (*mux1_mix): Ditto.
26887         (*mux1_shuf): Ditto.
26888         (*mux1_alt): Ditto.
26889         (*mux1_brcst_v8qi): Use new predicate.
26890         (vec_extract_evenv8qi): Remove endian check.
26891         (vec_extract_oddv8qi): Ditto.
26892         (vec_interleave_lowv4hi): Format change.
26893         (vec_interleave_highv4hi): Ditto.
26894         (mix2_even): Rename from mix2_r, add endian check.
26895         (mix2_odd): Rename from mux2_l, add endian check.
26896         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
26897         (vec_extract_evenodd_helper): Format change.
26898         (vec_extract_evenv4hi): Remove endian check.
26899         (vec_extract_oddv4hi): Remove endian check.
26900         (vec_interleave_lowv2si): Format change.
26901         (vec_interleave_highv2si): Format change.
26902         (vec_initv2si): Remove endian check.
26903         (vecinit_v2si): Add endian check.
26904         (reduc_splus_v2sf): Add endian check.
26905         (reduc_smax_v2sf): Ditto.
26906         (reduc_smin_v2sf): Ditto.
26907         (vec_initv2sf): Remove endian check.
26908         (fpack): Add endian check.
26909         (fswap): Add endian check.
26910         (vec_interleave_highv2sf): Add endian check.
26911         (vec_interleave_lowv2sf): Add endian check.
26912         (fmix_lr): Add endian check.
26913         (vec_setv2sf): Format change.
26914         (*vec_extractv2sf_0_be): Use shift to extract operand.
26915         (*vec_extractv2sf_1_be): New.
26916         (vec_pack_trunc_v4hi): Add endian check.
26917         (vec_pack_trunc_v2si): Format change.
26918
26919 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
26920
26921         PR inline-asm/23200
26922         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
26923         do bb, locus and block comparison and disallow loads if it is not set.
26924         (stmt_is_replaceable_p): New function.
26925         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
26926         callers.
26927         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
26928         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
26929         SSA_NAME_DEF_STMT.
26930         * tree-flow.h (stmt_is_replaceable_p): New prototype.
26931
26932 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
26933
26934         * config/rs6000/xilinx.opt: New.
26935         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
26936
26937 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
26938
26939         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
26940
26941 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
26942
26943         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
26944         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
26945         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
26946         secondary_reload_info, xtensa_secondary_reload): Remove.
26947         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
26948         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
26949         (xtensa_preferred_reload_class): Make static. Change return and
26950         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
26951         Use CONST_DOUBLE_P predicate.
26952         (xtensa_preferred_output_reload_class): New function.
26953         (xtensa_secondary_reload): Make static.
26954
26955 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
26956
26957         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
26958         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
26959         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
26960
26961 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
26962
26963         PR middle-end/31490
26964         * output.h (SECTION_RELRO): Define.
26965         (SECTION_MACH_DEP): Adjust.
26966         (get_variable_section): New prototype.
26967         * varpool.c (varpool_finalize_named_section_flags): New function.
26968         (varpool_assemble_pending_decls): Call it.
26969         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
26970         * cgraphunit.c (cgraph_output_in_order): Call
26971         varpool_finalize_named_section_flags.
26972         * varasm.c (get_section): Allow section flags conflicts between
26973         relro and read-only sections if the section hasn't been declared yet.
26974         Set SECTION_OVERRIDE after diagnosing section type conflict.
26975         (get_variable_section): No longer static.
26976         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
26977         readonly sections that need relocations.
26978         (decl_readonly_section_1): New function.
26979         (decl_readonly_section): Use it.
26980
26981         Revert:
26982         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
26983                     Steve Ellcey  <sje@cup.hp.com>
26984
26985         PR middle-end/31490
26986         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
26987         if section attribute used.
26988
26989 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
26990
26991         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
26992         * config/darwin.c (SECTION_NO_ANCHOR): Define.
26993         (darwin_init_sections): Remove assertion.
26994
26995 2011-02-03  Nick Clifton  <nickc@redhat.com>
26996
26997         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
26998         lt and ge.
26999         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
27000         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
27001         instead of "n" and "pz".
27002         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
27003         CC_FLAG_S.
27004
27005 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
27006
27007         PR target/47312
27008         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
27009         fma, expand FMA_EXPR as fma{,f,l} call.
27010
27011         PR lto/47274
27012         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
27013         copy them into a unsigned char variable and pass address of it to
27014         lto_output_data_stream.
27015
27016         PR target/47564
27017         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
27018         around backend_init_target and lang_dependent_init_target calls.
27019         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
27020         (verify_cgraph_node): Don't call set_cfun here.  Use
27021         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
27022         Set error_found for incorrectly represented calls to thunks.
27023
27024 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
27025
27026         PR debug/43092
27027         PR rtl-optimization/43494
27028         * rtl.h (for_each_inc_dec_fn): New type.
27029         (for_each_inc_dec): Declare.
27030         * rtlanal.c (struct for_each_inc_dec_ops): New type.
27031         (for_each_inc_dec_find_inc_dec): New fn.
27032         (for_each_inc_dec_find_mem): New fn.
27033         (for_each_inc_dec): New fn.
27034         * dse.c (struct insn_size): Remove.
27035         (replace_inc_dec, replace_inc_dec_mem): Remove.
27036         (emit_inc_dec_insn_before): New fn.
27037         (check_for_inc_dec): Use it, along with for_each_inc_dec.
27038         (canon_address): Pass mem modes to cselib_lookup.
27039         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
27040         (cselib_lookup_from_insn): Likewise.
27041         (cselib_subst_to_values): Likewise.
27042         * cselib.c (find_slot_memmode): New var.
27043         (cselib_find_slot): New fn.  Use it instead of
27044         htab_find_slot_with_hash everywhere.
27045         (entry_and_rtx_equal_p): Use find_slot_memmode.
27046         (autoinc_split): New fn.
27047         (rtx_equal_for_cselib_p): Rename and implement in terms of...
27048         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
27049         Deal with autoinc.  Special-case recursion into MEMs.
27050         (cselib_hash_rtx): Likewise.
27051         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
27052         address and MEM modes.
27053         (cselib_subst_to_values): Add memmode, pass it on.
27054         Deal with autoinc.
27055         (cselib_lookup): Add memmode argument, pass it on.
27056         (cselib_lookup_from_insn): Add memmode.
27057         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
27058         (struct cselib_record_autoinc_data): New.
27059         (cselib_record_autoinc_cb): New fn.
27060         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
27061         mode to cselib_lookup.  Reset autoinced REGs here instead of...
27062         (cselib_process_insn): ... here.
27063         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
27064         to cselib_lookup.
27065         (add_uses): Likewise, also to cselib_subst_to_values.
27066         (add_stores): Likewise.
27067         * sched-deps.c (add_insn_mem_dependence): Pass mode to
27068         cselib_subst_to_values.
27069         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
27070         * gcse.c (do_local_cprop): Adjusted.
27071         * postreload.c (reload_cse_simplify_set): Adjusted.
27072         (reload_cse_simplify_operands): Adjusted.
27073         * sel-sched-dump (debug_mem_addr_value): Pass mode.
27074
27075 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
27076
27077         PR tree-optimization/45122
27078         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
27079         unsafe assumptions when there's more than one loop exit.
27080
27081 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
27082
27083         PR target/47272
27084         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
27085         Document using vector double with the load/store builtins, and
27086         that the load/store builtins always use Altivec instructions.
27087
27088         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
27089         to use altivec memory instructions, even on VSX.
27090         (vector_altivec_store_<mode>): Ditto.
27091
27092         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
27093         function.
27094
27095         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
27096         V2DF, V2DI support to load/store overloaded builtins.
27097
27098         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
27099         altivec load/store builtins for V2DF/V2DI types.
27100
27101         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
27102         set avoid indexed addresses on power6 if -maltivec.
27103         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
27104         vector_altivec_load/vector_altivec_store builtins.
27105         (altivec_expand_st_builtin): Ditto.
27106         (altivec_expand_builtin): Add VSX memory builtins.
27107         (rs6000_init_builtins): Add V2DI types to internal types.
27108         (altivec_init_builtins): Add support for V2DF/V2DI altivec
27109         load/store builtins.
27110         (rs6000_address_for_altivec): Insure memory address is appropriate
27111         for Altivec.
27112
27113         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
27114         vec_vsx_ld and vec_vsx_st.
27115         (vsx_store_<mode>): Ditto.
27116
27117         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
27118         variables to hold long long types for VSX vector memory builtins.
27119         (RS6000_BTI_unsigned_long_long): Ditto.
27120         (long_long_integer_type_internal_node): Ditti.
27121         (long_long_unsigned_type_internal_node): Ditti.
27122
27123         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
27124         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
27125         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
27126
27127         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
27128         short cuts.
27129         (vec_vsx_st): Ditto.
27130
27131 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
27132
27133         * config/pa/pa-hpux10.opt: New.
27134         * config/hpux11.opt (pthread): New Driver option.
27135         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
27136         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
27137
27138 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
27139
27140         * config/ia64/vms.opt: New.
27141         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
27142
27143 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
27144
27145         PR target/47580
27146         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
27147         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
27148         generator functions.
27149         (vsx_floatuns<VSi><mode>2): Ditto.
27150         (vsx_fix_trunc<mode><VSi>2): Ditto.
27151         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
27152
27153 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
27154
27155         * config/i386/djgpp.opt (posix): New Driver option.
27156
27157 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
27158
27159         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
27160         Move to the unsupported targets list.
27161
27162 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
27163
27164         PR rtl-optimization/47525
27165         * df-scan.c: Update copyright years.
27166         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
27167         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
27168
27169 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27170
27171         * config/i386/sysv4.h (TARGET_VERSION): Remove.
27172         (SUBTARGET_RETURN_IN_MEMORY): Remove.
27173         (ASM_OUTPUT_ASCII): Remove.
27174         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
27175
27176 2011-02-02  Jeff Law  <law@redhat.com>
27177
27178         PR middle-end/47543
27179         * reload.c (find_reloads_address): Handle reg+d address where both
27180         components are invalid by reloading the entire address.
27181
27182 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
27183             Richard Guenther  <rguenther@suse.de>
27184
27185         PR tree-optimization/40979
27186         PR bootstrap/47044
27187         * passes.c (init_optimization_passes): After LIM call copy_prop
27188         and DCE to clean up.
27189         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
27190
27191 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
27192
27193         PR tree-optimization/47576
27194         PR tree-optimization/47555
27195         * doc/invoke.texi (scev-max-expr-complexity): Documented.
27196         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
27197         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
27198         * tree-scalar-evolution.c (follow_ssa_edge): Use
27199         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
27200
27201 2011-02-02  Richard Guenther  <rguenther@suse.de>
27202
27203         PR tree-optimization/47566
27204         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
27205
27206 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
27207
27208         PR debug/47106
27209         PR debug/47402
27210         * tree-inline.c (declare_return_variable): Remove unused caller
27211         variable.
27212
27213         PR debug/47106
27214         PR debug/47402
27215         * tree-flow-inline.h (clear_is_used, is_used_p): New.
27216         * cfgexpand.c (account_used_vars_for_block): Use them.
27217         * tree-nrv.c (tree_nrv): Likewise.
27218         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
27219         (dump_scope_block): Likewise.
27220         (remove_unused_locals): Likewise.
27221
27222         PR debug/47106
27223         PR debug/47402
27224         * tree-inline.c (declare_return_variable): Add result decl to
27225         local decls only once.
27226         * gimple-low.c (record_vars_into): Mark newly-created variables
27227         as referenced.
27228
27229 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
27230
27231         PR debug/47498
27232         PR debug/47501
27233         PR debug/45136
27234         PR debug/45130
27235         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
27236         debug insns.
27237         (no_real_insns_p, schedule_block, set_priorities): Drop special
27238         treatment of boundary debug insns.
27239         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
27240         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
27241         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
27242         (BOUNDARY_DEBUG_INSN_P): Likewise.
27243         (SCHEDULE_DEBUG_INSN_P): Likewise.
27244         * sched-rgn.c (init_ready_list): Drop special treatment of
27245         boundary debug insns.
27246         * final.c (rest_of_clean_state): Clear notes' BB.
27247
27248 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
27249
27250         * config/openbsd.opt (assert=): New Driver option.
27251
27252 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
27253
27254         * config/i386/nto.opt: New.
27255         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
27256
27257 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
27258
27259         * config/i386/netware.opt: New.
27260         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
27261
27262 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
27263
27264         * config/interix.opt (posix): New Driver option.
27265
27266 2011-02-01  DJ Delorie  <dj@redhat.com>
27267
27268         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
27269
27270         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
27271         class for A0/A1.
27272
27273 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
27274
27275         PR tree-optimization/47561
27276         * toplev.c (process_options): Print the Graphite flags.  Add
27277         flag_loop_flatten to the list of options requiring Graphite.
27278
27279 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
27280
27281         * config/i386/cygming.opt (posix): New Driver option.
27282
27283 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
27284
27285         * config/arm/vxworks.opt: New.
27286         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
27287
27288 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
27289
27290         * config/alpha/elf.opt: New.
27291         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
27292         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
27293
27294 2011-02-01  Richard Guenther  <rguenther@suse.de>
27295
27296         PR tree-optimization/47559
27297         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
27298         store-motion on references that can throw.
27299
27300 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
27301
27302         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
27303         * tree-pass.h (TDF_CSELIB): New macro.
27304         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
27305         cselib_lookup): Check for it rather than for TDF_DETAILS.
27306
27307 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
27308
27309         PR driver/47547
27310         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
27311         is HOST_BIT_BUCKET.
27312
27313         * opts.c (finish_options): Don't add x_aux_base_name if it is
27314         HOST_BIT_BUCKET.
27315
27316 2011-02-01  Richard Guenther  <rguenther@suse.de>
27317
27318         PR tree-optimization/47555
27319         Revert
27320         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
27321
27322         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
27323
27324 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
27325
27326         PR gcc/46692
27327         * config/lm32/t-lm32: Add multilib for all CPU options.
27328
27329 2011-02-01  Richard Guenther  <rguenther@suse.de>
27330
27331         PR tree-optimization/47541
27332         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
27333         sure to have a field at offset zero.
27334
27335 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
27336
27337         * config/arc/arc.opt (EB, EL): New Driver options.
27338
27339 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
27340
27341         * config/alpha/osf5.opt: New.
27342         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
27343
27344 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
27345
27346         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
27347
27348 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
27349
27350         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
27351         -floop-interchange.
27352         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
27353         is an alias of -floop-interchange and that it requires the
27354         Graphite infrastructure.
27355         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
27356         flag_loop_interchange based on the value of flag_tree_loop_linear.
27357
27358 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
27359             Richard Guenther  <rguenther@suse.de>
27360
27361         PR tree-optimization/47538
27362         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
27363         type instead of r1type, except for comparisons.  For right
27364         shifts and comparisons punt if there are mismatches in
27365         sizetype vs. non-sizetype types.
27366
27367 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27368
27369         * doc/sourcebuild.texi (Effective-Target Keywords): Document
27370         avx_runtime.
27371
27372 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27373
27374         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
27375         version number.
27376         * configure: Regenerate.
27377
27378 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27379
27380         * configure.ac (gcc_cv_ld_static_option): Define.
27381         (gcc_cv_ld_dynamic_option): Define.
27382         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
27383         instead.
27384         (HAVE_LD_STATIC_DYNAMIC): Update message.
27385         (LD_STATIC_OPTION): Define.
27386         (LD_DYNAMIC_OPTION): Define.
27387         * configure: Regenerate.
27388         * config.in: Regenerate.
27389         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
27390         HAVE_LD_STATIC_DYNAMIC]: Use them.
27391
27392 2011-01-31  Nick Clifton  <nickc@redhat.com>
27393
27394         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
27395         registers inside interrupt handlers if the handler is not a leaf
27396         function.
27397
27398 2011-01-31  Nick Clifton  <nickc@redhat.com>
27399
27400         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
27401         reg_renumber returning an INVALID_REGNUM.
27402
27403 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
27404
27405         PR libgcj/44341
27406         * doc/install.texi: Document host options discarded when cross
27407         configuring target libraries.
27408
27409 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
27410
27411         Reverted:
27412         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
27413         PR debug/45136
27414         PR debug/45130
27415         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
27416         debug insns.
27417         (no_real_insns_p, schedule_block, set_priorities): Drop special
27418         treatment of boundary debug insns.
27419         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
27420         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
27421         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
27422         (BOUNDARY_DEBUG_INSN_P): Likewise.
27423         (SCHEDULE_DEBUG_INSN_P): Likewise.
27424         * sched-rgn.c (init_ready_list): Drop special treatment of
27425         boundary debug insns.
27426         * final.c (rest_of_clean-state): Clear notes' BB.
27427
27428 2011-01-31  Alan Modra  <amodra@gmail.com>
27429
27430         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
27431         toc relative expressions as we do in print_operand_address.
27432
27433 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
27434
27435         * doc/extend.texi: Follow spelling conventions.
27436         * doc/invoke.texi: Fix a typo.
27437
27438 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
27439
27440         * config/hpux11.opt: New.
27441         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
27442         ia64*-*-hpux*): Use hpux11.opt.
27443
27444 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
27445
27446         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
27447         to tmake_file.
27448
27449 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
27450
27451         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
27452         support sites.
27453
27454 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
27455
27456         * doc/install.texi (Binaries): Remove outdated reference for
27457         Motorola 68HC11/68HC12 downloads.
27458
27459 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
27460
27461         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
27462         Drepper's paper.
27463
27464 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
27465
27466         PR bootstrap/47147
27467         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
27468         used by NetBSD.
27469
27470 2011-01-28  Ahmad Sharif  <asharif@google.com>
27471
27472         * value-prof.c (check_counter): Corrected error message.
27473
27474 2011-01-29  Jie Zhang  <jie@codesourcery.com>
27475
27476         * config/arm/arm.c (arm_legitimize_reload_address): New.
27477         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
27478         arm_legitimize_reload_address.
27479         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
27480
27481 2011-01-28  Ian Lance Taylor  <iant@google.com>
27482
27483         * godump.c (go_define): Ignore macros whose definitions include
27484         two adjacent operands.
27485
27486 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
27487
27488         PR target/42894
27489         * varasm.c (force_const_mem): Store copy of x in desc->constant
27490         instead of x itself.
27491         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
27492         itself into REG_EQUAL note.
27493
27494 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
27495
27496         * config/freebsd.opt (posix, rdynamic): New Driver options.
27497
27498 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27499
27500         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
27501         -Bstatic/-Bdynamic.
27502         * configure: Regenerate.
27503
27504 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
27505
27506         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
27507         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
27508
27509 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
27510
27511         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
27512         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
27513         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
27514         (s390_preferred_reload_class): Make static. Change return and
27515         'rclass' argument type to reg_class_t.
27516
27517 2011-01-27  Jan Hubicka  <jh@suse.cz>
27518
27519         PR middle-end/46949
27520         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
27521         (process_function_and_variable_attributes): Check defined weakrefs.
27522
27523 2011-01-27  Martin Jambor  <mjambor@suse.cz>
27524
27525         PR tree-optimization/47228
27526         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
27527         build_ref_for_offset.
27528
27529 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27530
27531         * config/spu/spu-elf.h (ASM_SPEC): Remove.
27532
27533 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
27534
27535         PR rtl-optimization/46856
27536         * postreload.c (reload_combine_recognize_const_pattern): Do not
27537         separate cc0 setter and user on cc0 targets.
27538
27539 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
27540
27541         PR c/43082
27542         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
27543         passed a VOID_TYPE expression, immediately emit an error and
27544         return error_mark_node.
27545
27546 2011-01-26  Jeff Law  <law@redhat.com>
27547
27548         PR rtl-optimization/47464
27549         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
27550         rather than may_trap_p as needed.
27551
27552 2011-01-26  DJ Delorie  <dj@redhat.com>
27553
27554         PR rtl-optimization/46878
27555         * combine.c (insn_a_feeds_b): Check for the implicit cc0
27556         setter/user dependency as well.
27557
27558 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
27559
27560         PR rtl-optimization/44469
27561         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
27562         after removing trivially dead basic blocks.
27563
27564 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
27565
27566         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
27567         * config/frv/frv.h (LINK_SPEC): Likewise.
27568         * config/i386/netware.h (LINK_SPEC): Likewise.
27569         * config/m68k/linux.h (ASM_SPEC): Likewise.
27570         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
27571         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
27572         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
27573         * config/sparc/linux.h (ASM_SPEC): Likewise.
27574         * config/sparc/linux64.h (ASM_SPEC): Likewise.
27575         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
27576
27577 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
27578
27579         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
27580         * config/frv/frv.h (ASM_SPEC): Likewise.
27581         * config/m68k/linux.h (ASM_SPEC): Likewise.
27582         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
27583         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
27584         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
27585         * config/sparc/linux.h (ASM_SPEC): Likewise.
27586         * config/sparc/linux64.h (ASM_SPEC): Likewise.
27587         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
27588
27589 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
27590
27591         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
27592         * config/frv/frv.h (LINK_SPEC): Likewise.
27593         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
27594
27595 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
27596
27597         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
27598         * config/frv/frv.h (ASM_SPEC): Likewise.
27599         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
27600         * config/m68k/linux.h (ASM_SPEC): Likewise.
27601         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
27602         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
27603         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
27604         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
27605         * config/sparc/linux.h (ASM_SPEC): Likewise.
27606         * config/sparc/linux64.h (ASM_SPEC): Likewise.
27607         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
27608         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
27609
27610 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
27611
27612         PR target/46997
27613         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
27614         (*mux2): Ditto.
27615         (vec_extract_evenodd_help): Ditto.
27616         (vec_extract_evenv4hi): Ditto.
27617         (vec_extract_oddv4hi): Ditto.
27618         (vec_interleave_lowv2si): Ditto.
27619         (vec_interleave_highv2si): Ditto.
27620         (vec_extract_evenv2si): Ditto.
27621         (vec_extract_oddv2si: Ditto.
27622         (vec_pack_trunc_v2si): Ditto.
27623
27624 2011-01-22  Jan Hubicka  <jh@suse.cz>
27625
27626         PR target/47237
27627         * cgraph.h (cgraph_local_info): New field can_change_signature.
27628         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
27629         signature can change.
27630         (ipcp_estimate_growth): Call sequence simplify only if calle signature
27631         can change.
27632         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
27633         (cgraph_function_versioning): We can not change signature of functions
27634         that don't allow that.
27635         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
27636         (lto_input_node): Likewise.
27637         * ipa-inline.c (compute_inline_parameters): Compute
27638         local.can_change_signature.
27639         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
27640         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
27641         functions that can not change signature.
27642         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
27643         init_cumulative_args): Do not use local calling conventions
27644         for functions that can not change signature.
27645
27646 2011-01-22  Jan Hubicka  <jh@suse.cz>
27647
27648         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
27649
27650 2011-01-26  Richard Guenther  <rguenther@suse.de>
27651
27652         PR tree-optimization/47190
27653         * cgraphunit.c (process_common_attributes): New function.
27654         (process_function_and_variable_attributes): Use it.
27655
27656 2011-01-26  Richard Guenther  <rguenther@suse.de>
27657
27658         PR lto/47423
27659         * cgraphbuild.c (record_eh_tables): Record reference to personality
27660         function.
27661
27662 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
27663
27664         PR debug/45454
27665         * sel-sched.c (moveup_expr): Don't let debug insns prevent
27666         non-debug insns from moving up.
27667
27668 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
27669
27670         PR target/40125
27671         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
27672         t-dlldir{,-x} fragment for build and add it to tmake_file.
27673         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
27674         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
27675         * config/i386/t-dlldir: New file.
27676         (SHLIB_DLLDIR): Define.
27677         * config/i386/t-dlldir-x: New file.
27678         (SHLIB_DLLDIR): Define.
27679         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
27680         (SHLIB_INSTALL): Use it.
27681
27682 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
27683
27684         PR target/47246
27685         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
27686         lower bound of the allowed Thumb-2 coprocessor load/store
27687         index range to -256. Add explaining comment.
27688
27689 2011-01-25  Ian Lance Taylor  <iant@google.com>
27690
27691         * godump.c (go_define): Improve lexing of macro expansion to only
27692         accept expressions which match Go spec.
27693
27694 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
27695
27696         PR c++/43601
27697         * tree.c (handle_dll_attribute): Handle it.
27698         * doc/extend.texi (@item dllexport): Mention it.
27699         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
27700
27701 2011-01-25  Ian Lance Taylor  <iant@google.com>
27702
27703         PR tree-optimization/26854
27704         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
27705         (decl_jump_unsafe): Move higher in file, with no other change.
27706         (bind): Set has_jump_unsafe_decl if appropriate.
27707         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
27708         (check_earlier_gotos): Likewise.
27709         (c_check_switch_jump_warnings): Likewise.
27710
27711 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
27712
27713         * doc/invoke.texi (Warning Options): Add missing hyphen.
27714         (-fprofile-dir): Minor grammatical fixes.
27715         (-fbranch-probabilities): Likewise.
27716
27717 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
27718
27719         PR debug/45136
27720         PR debug/45130
27721         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
27722         debug insns.
27723         (no_real_insns_p, schedule_block, set_priorities): Drop special
27724         treatment of boundary debug insns.
27725         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
27726         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
27727         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
27728         (BOUNDARY_DEBUG_INSN_P): Likewise.
27729         (SCHEDULE_DEBUG_INSN_P): Likewise.
27730         * sched-rgn.c (init_ready_list): Drop special treatment of
27731         boundary debug insns.
27732         * final.c (rest_of_clean-state): Clear notes' BB.
27733
27734 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27735
27736         * Makefile.in (LAMBDA_H): Removed.
27737         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
27738         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
27739         lambda-trans.o, and tree-loop-linear.o.
27740         (lto-symtab.o): Remove dependence on LAMBDA_H.
27741         (tree-loop-linear.o): Remove rule.
27742         (lambda-mat.o): Same.
27743         (lambda-trans.o): Same.
27744         (lambda-code.o): Same.
27745         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
27746         (tree-vect-slp.o): Same.
27747         * hwint.h (gcd): Moved here.
27748         (least_common_multiple): Same.
27749         * lambda-code.c: Removed.
27750         * lambda-mat.c: Removed.
27751         * lambda-trans.c: Removed.
27752         * lambda.h: Removed.
27753         * tree-loop-linear.c: Removed.
27754         * lto-symtab.c: Do not include lambda.h.
27755         * omega.c (gcd): Removed.
27756         * passes.c (init_optimization_passes): Remove pass_linear_transform.
27757         * tree-data-ref.c (print_lambda_vector): Moved here.
27758         (lambda_vector_copy): Same.
27759         (lambda_matrix_copy): Same.
27760         (lambda_matrix_id): Same.
27761         (lambda_vector_first_nz): Same.
27762         (lambda_matrix_row_add): Same.
27763         (lambda_matrix_row_exchange): Same.
27764         (lambda_vector_mult_const): Same.
27765         (lambda_vector_negate): Same.
27766         (lambda_matrix_row_negate): Same.
27767         (lambda_vector_equal): Same.
27768         (lambda_matrix_right_hermite): Same.
27769         * tree-data-ref.h: Do not include lambda.h.
27770         (lambda_vector): Moved here.
27771         (lambda_matrix): Same.
27772         (dependence_level): Same.
27773         (lambda_transform_legal_p): Removed declaration.
27774         (lambda_collect_parameters): Same.
27775         (lambda_compute_access_matrices): Same.
27776         (lambda_vector_gcd): Same.
27777         (lambda_vector_new): Same.
27778         (lambda_vector_clear): Same.
27779         (lambda_vector_lexico_pos): Same.
27780         (lambda_vector_zerop): Same.
27781         (lambda_matrix_new): Same.
27782         * tree-flow.h (least_common_multiple): Removed declaration.
27783         * tree-parloops.c (lambda_trans_matrix): Moved here.
27784         (LTM_MATRIX): Same.
27785         (LTM_ROWSIZE): Same.
27786         (LTM_COLSIZE): Same.
27787         (LTM_DENOMINATOR): Same.
27788         (lambda_trans_matrix_new): Same.
27789         (lambda_matrix_vector_mult): Same.
27790         (lambda_transform_legal_p): Same.
27791         * tree-pass.h (pass_linear_transform): Removed declaration.
27792         * tree-ssa-loop.c (tree_linear_transform): Removed.
27793         (gate_tree_linear_transform): Removed.
27794         (pass_linear_transform): Removed.
27795         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
27796         flag_loop_interchange.
27797
27798 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
27799
27800         PR tree-optimization/47265
27801         PR tree-optimization/47443
27802         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
27803         if name still has some uses.
27804
27805 2011-01-25  Martin Jambor  <mjambor@suse.cz>
27806
27807         PR tree-optimization/47382
27808         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
27809         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
27810
27811 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
27812
27813         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
27814         sjlj_except_unwind_info.
27815
27816 2011-01-25  Richard Guenther  <rguenther@suse.de>
27817
27818         PR tree-optimization/47426
27819         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
27820         visible functions results escape.
27821
27822 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
27823
27824         PR target/45701
27825         * config/arm/arm.c (any_sibcall_uses_r3): New function.
27826         (arm_get_frame_offsets): Use it.
27827
27828 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27829             Jakub Jelinek  <jakub@redhat.com>
27830
27831         PR tree-optimization/47271
27832         * tree-if-conv.c (bb_postdominates_preds): New.
27833         (if_convertible_bb_p): Call bb_postdominates_preds.
27834         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
27835         (predicate_scalar_phi): Call bb_postdominates_preds.
27836
27837 2011-01-25  Nick Clifton  <nickc@redhat.com>
27838
27839         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
27840         * config/rx/rx.c (rx_function_value): Likewise.
27841         (rx_promote_function_mode): Likewise.
27842         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
27843         in order to make it legitimate.
27844         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
27845         make sure that the first operand is the same as the result register.
27846         (addsi3_unspec): Delete.
27847         (subdi3): Do not accept immediate operands.
27848         (subdi3_internal): Likewise.
27849
27850 2011-01-25  Jeff Law  <law@redhat.com>
27851
27852         PR rtl-optimization/37273
27853         * ira-costs.c (scan_one_insn): Detect constants living in memory and
27854         handle them like argument loads from stack slots.  Do not double
27855         count memory for memory constants and argument loads from stack slots.
27856
27857 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
27858
27859         PR tree-optimization/47427
27860         PR tree-optimization/47428
27861         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
27862         coalesce if the new root var would be TREE_READONLY.
27863
27864 2011-01-25  Richard Guenther  <rguenther@suse.de>
27865
27866         PR middle-end/47414
27867         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
27868         correct type for TBAA.
27869
27870 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27871
27872         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
27873         (close_phi_written_to_memory): Call for_each_index with
27874         dr_indices_valid_in_loop.
27875
27876 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27877
27878         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
27879         when it is initialized.
27880
27881 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27882
27883         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
27884         call to graphite_find_data_references_in_stmt.
27885         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
27886         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
27887         call to graphite_find_data_references_in_stmt.
27888         (analyze_drs_in_stmts): Same.
27889         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
27890         in which the scalar analysis of indices is performed.
27891         (create_data_ref): Same.  Update call to dr_analyze_indices.
27892         (find_data_references_in_stmt): Update call to create_data_ref.
27893         (graphite_find_data_references_in_stmt): Same.
27894         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
27895         declaration.
27896         (create_data_ref): Same.
27897         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
27898         call to create_data_ref.
27899
27900 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27901
27902         * graphite-sese-to-poly.c (build_poly_scop): Move
27903         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
27904
27905 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27906
27907         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
27908         VAR_DECL, PARM_DECL, and RESULT_DECL.
27909
27910 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27911
27912         * graphite-dependences.c (reduction_dr_1): Allow several reductions
27913         in a reduction PBB.
27914         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
27915         that have already been marked as PBB_IS_REDUCTION.
27916
27917 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27918
27919         * graphite-scop-detection.c (same_close_phi_node): New.
27920         (remove_duplicate_close_phi): New.
27921         (make_close_phi_nodes_unique): New.
27922         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
27923
27924 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27925
27926         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
27927         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
27928         of both data references to be the same.
27929
27930 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27931
27932         * graphite-dependences.c (build_lexicographical_constraint): Remove
27933         the gdim parameter.
27934         (build_lexicographical_constraint): Adjust call to
27935         ppl_powerset_is_empty.
27936         (dependence_polyhedron): Same.
27937         (graphite_legal_transform_dr): Same.
27938         (graphite_carried_dependence_level_k): Same.
27939         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
27940         parameter.
27941         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
27942
27943 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27944
27945         * graphite-sese-to-poly.c
27946         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
27947         (close_phi_written_to_memory): New.
27948         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
27949         and unshare_expr.
27950
27951 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27952
27953         * doc/install.texi: Update the expected version number of PPL to 0.11.
27954         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
27955         #if PPL_VERSION_MINOR < 11.
27956
27957 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27958
27959         * graphite-dependences.c: Include graphite-cloog-util.h.
27960         (new_poly_ddr): Inlined into dependence_polyhedron.
27961         (free_poly_ddr): Moved close by new_poly_ddr.
27962         (dependence_polyhedron_1): Renamed dependence_polyhedron.
27963         Early return NULL when ppl_powerset_is_empty returns true.
27964         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
27965         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
27966         (graphite_legal_transform_dr): Call new_poly_ddr.
27967         (graphite_carried_dependence_level_k): Same.
27968         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
27969         (dot_transformed_deps_stmt_1): Removed.
27970         (dot_deps_stmt_1): Call dot_deps_stmt_2.
27971         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
27972         (dot_deps_1): Call dot_deps_2.
27973         * Makefile.in (graphite-dependences.o): Add missing dependence on
27974         graphite-cloog-util.h.
27975
27976 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27977
27978         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
27979         (build_lexicographical_constraint): Same.
27980         (dependence_polyhedron_1): Same.
27981         (graphite_legal_transform_dr): Same.
27982         (graphite_carried_dependence_level_k): Same.
27983         * graphite-ppl.c (ppl_powerset_is_empty): New.
27984         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
27985         * tree-data-ref.c (dump_data_reference): Print the basic block index.
27986
27987 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27988
27989         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
27990         the "a followed by b" relation and document it.
27991
27992 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27993
27994         * graphite-dependences.c (build_lexicographical_constraint): Stop the
27995         iteration when the bag of constraints is empty.
27996
27997 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27998
27999         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
28000
28001 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28002
28003         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
28004         nest and two loop depths as parameters.
28005         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
28006         lst_perfect_nestify.
28007
28008 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28009
28010         * graphite-dependences.c (print_pddr): Call
28011         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
28012
28013 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
28014
28015         * graphite-ppl.c (debug_gmp_value): New.
28016         * graphite-ppl.h (debug_gmp_value): Declared.
28017
28018 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
28019
28020         * doc/install.texi: Document availability of cloog-0.16.
28021
28022 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
28023
28024         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
28025         invalid postdominance info.
28026
28027 2011-01-24  Jan Hubicka  <jh@suse.cz>
28028
28029         PR c/21659
28030         * doc/extend.texi (weak pragma): Drop claim that it must
28031         appear before definition.
28032         * varasm.c (merge_weak, declare_weak): Only sanity check
28033         that DECL is not output at a time it is declared weak.
28034
28035 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
28036
28037         * machmode.def: Fixed comments.
28038
28039 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
28040
28041         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
28042
28043 2011-01-24  Paul Koning  <ni1d@arrl.net>
28044
28045         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
28046         WORDS_BIG_ENDIAN.
28047
28048 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
28049
28050         PR target/46519
28051         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
28052         (block_info): Add scanned and prev.
28053         (move_or_delete_vzeroupper_2): Return if the basic block
28054         has been scanned and the upper 128bit state is unchanged
28055         from the last scan.
28056         (move_or_delete_vzeroupper_1): Return true if the exit
28057         state is changed.
28058         (move_or_delete_vzeroupper): Visit basic blocks using the
28059         work-list based algorithm based on vt_find_locations in
28060         var-tracking.c.
28061
28062         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
28063
28064 2011-01-24  Nick Clifton  <nickc@redhat.com>
28065
28066         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
28067         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
28068         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
28069         then define __v850e1__.
28070         * doc/invoke.texi: Document -mv850es.
28071
28072 2011-01-24  Richard Henderson  <rth@redhat.com>
28073
28074         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
28075         compound unordered comparisons.
28076         * config/rx/rx.c (rx_split_fp_compare): Remove.
28077         * config/rx/rx-protos.h: Update.
28078         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
28079         (cbranchsf4): Don't call rx_split_fp_compare.
28080         (*cbranchsf4): Use rx_split_cbranch.
28081         (*cmpsf): Don't accept "i" constraint.
28082         (*conditional_branch): Only valid after reload.
28083         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
28084
28085 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
28086
28087         PR target/47385
28088         * config/rs6000/altivec.md (vector constant splitters): Add
28089         support for creating vector single precision constants if -mvsx is
28090         used and we would create the constant using Altivec primitives.
28091
28092 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
28093             Richard Sandiford  <rdsandiford@googlemail.com>
28094
28095         PR rtl-optimization/47166
28096         * reload1.c (emit_reload_insns): Disable the spill_reg_store
28097         mechanism for PRE_MODIFY and POST_MODIFY.
28098         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
28099         reloadreg.
28100
28101 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
28102
28103         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
28104
28105 2011-01-22  Jan Hubicka  <jh@suse.cz>
28106
28107         PR lto/47333
28108         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
28109
28110 2011-01-22  Jan Hubicka  <jh@suse.cz>
28111
28112         PR tree-optimization/43884
28113         PR lto/44334
28114         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
28115         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
28116
28117 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
28118
28119         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
28120         * config/s390/s390.c (s390_register_move_cost,
28121         s390_memory_move_cost): New.
28122         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
28123
28124 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28125
28126         PR middle-end/47401
28127         * except.c (sjlj_assign_call_site_values): Move setting the
28128         crtl->uses_eh_lsda flag to ...
28129         (sjlj_mark_call_sites): ... here.
28130         (sjlj_emit_function_enter): Support NULL dispatch label.
28131         (sjlj_build_landing_pads): In a function with no landing pads
28132         that still has must-not-throw regions, generate code to register
28133         a personality function with empty LSDA.
28134
28135 2011-01-21  Richard Henderson  <rth@redhat.com>
28136
28137         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
28138
28139         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
28140
28141         * compare-elim.c: New file.
28142         * Makefile.in (OBJS-common): Add it.
28143         (compare-elim.o): New.
28144         * common.opt (fcompare-elim): New.
28145         * opts.c (default_options_table): Add OPT_fcompare_elim.
28146         * tree-pass.h (pass_compare_elim_after_reload): New.
28147         * passes.c (init_optimization_passes): Add it.
28148         * recog.h: Protect against re-inclusion.
28149         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
28150         * doc/invoke.texi (-fcompare-elim): Document it.
28151         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
28152         * doc/tm.texi: Rebuild.
28153
28154 2011-01-22  Nick Clifton  <nickc@redhat.com>
28155
28156         * config/rx/rx.md (cstoresf4): Pass comparison operator to
28157         rx_split_fp_compare.
28158
28159 2011-01-22  Nick Clifton  <nickc@redhat.com>
28160
28161         * config/rx/rx.md (UNSPEC_CONST): New.
28162         (deallocate_and_return): Wrap the amount popped off the stack in
28163         an UNSPEC_CONST in order to stop it being rejected by
28164         -mmax-constant-size.
28165         (pop_and_return): Add a "(return)" rtx.
28166         (call): Drop the immediate operand.
28167         (call_internal): Likewise.
28168         (call_value): Likewise.
28169         (call_value_internal): Likewise.
28170         (sibcall_internal): Likewise.
28171         (sibcall_value_internal): Likewise.
28172         (sibcall): Likewise.  Generate an explicit call using
28173         sibcall_internal.
28174         (sibcall_value): Likewise.
28175         (mov<>): FAIL if a constant operand is not legitimate.
28176         (addsi3_unpsec): New pattern.
28177
28178         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
28179         (ok_for_max_constant): New function.
28180         (gen_safe_add): New function.
28181         (rx_expand_prologue): Use gen_safe_add.
28182         (rx_expand_epilogue): Likewise.
28183         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
28184         UNSPEC CONSTs.
28185
28186 2011-01-21  Jeff Law  <law@redhat.com>
28187
28188         PR tree-optimization/47053
28189         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
28190         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
28191         statements are deleted.
28192         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
28193         is nonempty, then purge dead edges and cleanup the CFG.
28194
28195 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
28196
28197         PR debug/47402
28198         Temporarily revert:
28199         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
28200         PR debug/47106
28201         * tree-dfa.c (create_var_ann): Mark variable as used.
28202
28203 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
28204
28205         PR middle-end/45566
28206         * except.c (convert_to_eh_region_ranges): Emit queued no-region
28207         notes from other section in hot/cold partitioning even if
28208         last_action is -3.  Increment call_site_base.
28209
28210         PR rtl-optimization/47366
28211         * fwprop.c (forward_propagate_into): Return bool.  If
28212         any changes are made, -fnon-call-exceptions is used and
28213         REG_EH_REGION note is present, call purge_dead_edges
28214         and return true if it purged anything.
28215         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
28216         any EH edges were purged.
28217
28218 2011-01-21  Jeff Law  <law@redhat.com>
28219
28220         PR rtl-optimization/41619
28221         * caller-save.c (setup_save_areas): Break out code to determine
28222         which hard regs are live across calls by examining the reload chains
28223         so that it is always used.
28224         Eliminate code which checked REG_N_CALLS_CROSSED.
28225
28226 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
28227
28228         PR tree-optimization/47355
28229         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
28230         NOP has non-debug uses beyond PHIs in new_bb.
28231
28232 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
28233
28234         PR debug/47106
28235         * cfgexpand.c (account_used_vars_for_block): Only account vars
28236         that are annotated as used.
28237         (estimated_stack_frame_size): Don't set TREE_USED.
28238         * tree-dfa.c (create_var_ann): Mark variable as used.
28239
28240 2011-01-21  Richard Guenther  <rguenther@suse.de>
28241
28242         PR middle-end/47395
28243         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
28244
28245 2011-01-21  Richard Guenther  <rguenther@suse.de>
28246
28247         PR tree-optimization/47365
28248         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
28249         (vn_reference_lookup_pieces): Adjust.
28250         (vn_reference_lookup): Likewise.
28251         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
28252         (vn_reference_lookup_3): Only look through kills if in
28253         VN_WALKREWRITE mode.
28254         (vn_reference_lookup_pieces): Adjust.
28255         (vn_reference_lookup): Likewise.
28256         (visit_reference_op_load): Likewise.
28257         (visit_reference_op_store): Likewise.
28258         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
28259         (compute_avail): Likewise.
28260         (eliminate): Likewise.
28261
28262 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
28263
28264         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
28265         DECL_IGNORED_P non-reg vars if they are used.
28266
28267         PR tree-optimization/47391
28268         * varpool.c (const_value_known_p): Return false if
28269         decl is volatile.
28270
28271 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
28272
28273         PR bootstrap/47215
28274         * config/i386/i386.c (ix86_local_alignment): Handle
28275         case for va_list_type_node is nil.
28276         (ix86_canonical_va_list_type): Likewise.
28277
28278 2011-01-21  Alan Modra  <amodra@gmail.com>
28279
28280         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
28281         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
28282
28283 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28284
28285         * config/arm/arm.md (define_attr type): Rename f_load
28286         and f_store to f_fpa_load and f_fpa_store. Update.
28287         (write_conflict): Deal with rename fallout.
28288         (*push_fp_multi): Likewise.
28289         * config/arm/fpa.md (f_load): Use f_fpa_load.
28290         (f_store): Use f_fpa_store.
28291         (*movsf_fpa): Likewise.
28292         (*movdf_fpa): Likewise.
28293         (*movxf_fpa): Likewise.
28294         (*thumb2_movsf_fpa): Likewise.
28295         (*thumb2_movdf_fpa): Likewise.
28296         (*thumb2_movxf_fpa): Likewise.
28297         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
28298         f_loadd and f_stored.
28299         (*thumb2_movdi_vfp): Likewise.
28300         (*thumb2_movsf_vfp): Fix attribute to f_loads.
28301         (*thumb2_movsi_vfp): Likewise.
28302         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
28303         Use f_loads instead of f_load.
28304         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
28305
28306 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
28307
28308         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
28309         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
28310         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28311         (xtensa_mode_dependent_address_p): New function.
28312         (constantpool_address_p): Make static. Change return type to bool.
28313         Change argument type to const_rtx. Use CONST_INT_P predicate.
28314
28315 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
28316
28317         PR debug/46583
28318         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
28319
28320 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
28321
28322         PR debug/47283
28323         * cfgexpand.c (expand_debug_expr): Instead of generating
28324         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
28325         etc. handling.
28326
28327 2011-01-20  Richard Guenther  <rguenther@suse.de>
28328
28329         PR middle-end/47370
28330         * tree-inline.c (remap_gimple_op_r): Recurse manually for
28331         the pointer operand of MEM_REFs.
28332
28333 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
28334
28335         PR tree-optimization/46130
28336         * ipa-split.c (consider_split): If return_bb contains non-virtual
28337         PHIs other than for retval or if split_function would not adjust it,
28338         refuse to split.
28339
28340 2011-01-20  Richard Guenther  <rguenther@suse.de>
28341
28342         PR tree-optimization/47167
28343         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
28344         Revert previous change, only avoid enumeral type changes.
28345
28346 2011-01-19  Mike Stump  <mikestump@comcast.net>
28347
28348         * doc/tm.texi.in (BRANCH_COST): Englishify.
28349         * doc/tm.texi (BRANCH_COST): Likewise.
28350
28351 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
28352
28353         PR c++/47291
28354         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
28355         (gen_scheduled_generic_parms_dies): New functions.
28356         (gen_struct_or_union_type_die): Schedule template parameters DIEs
28357         generation for the end of CU compilation.
28358         (dwarf2out_finish): Generate template parameters DIEs here.
28359
28360 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
28361
28362         PR debug/46240
28363         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
28364         debug bind stmt on merge edges.
28365
28366 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
28367
28368         PR debug/47079
28369         PR debug/46724
28370         * function.c (instantiate_expr): Instantiate incoming rtl of
28371         implicit arguments, and recurse on VALUE_EXPRs.
28372         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
28373         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
28374
28375 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
28376
28377         * c-parser.c (c_parser_for_statement): Initialize
28378         collection_expression.
28379
28380 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
28381
28382         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
28383
28384 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
28385
28386         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
28387         (LINK_SHLIB_SPEC): Don't use %(link_path).
28388         (SUBTARGET_EXTRA_SPECS): Remove link_path.
28389
28390 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
28391
28392         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
28393         (NO_SHARED_LIB_SUPPORT): Remove.
28394         (LINK_SHLIB_SPEC): Remove one conditional definition.
28395
28396 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
28397
28398         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
28399         %{call_shared}.
28400         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
28401         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
28402         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
28403         %{call_shared} and conditionals on these options not being passed.
28404         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
28405         %{call_shared}.
28406
28407 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
28408
28409         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
28410         simplify.
28411
28412         * ipa-split.c: Spelling fixes.
28413
28414 2011-01-19  Richard Henderson  <rth@redhat.com>
28415
28416         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
28417         (*mulsi3): Likewise.
28418
28419         * longlong.h [__mn10300__] (count_leading_zeros): New.
28420         [__mn10300__] (umul_ppmm, smul_ppmm): New.
28421         [__mn10300__] (add_ssaaaa, subddmmss): New.
28422         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
28423         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
28424
28425 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28426
28427         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
28428
28429 2011-01-19  Richard Henderson  <rth@redhat.com>
28430
28431         * config/mn10300/mn10300.md (addsi3_flags): New.
28432         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
28433         (subsi3_flags, subc_internal, subdi3): New.
28434         (subdi3_internal, *subdi3_degenerate): New.
28435         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
28436
28437         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
28438         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
28439         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
28440         * config/mn10300/mn10300-protos.h: Update.
28441         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
28442         (return_ret): Likewise.  Rename from return_internal_regs.
28443         (return_internal): Remove.
28444
28445         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
28446         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
28447         (mn10300_legitimate_constant_p): Likewise.
28448         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
28449         (mn10300_frame_size): New.
28450         (mn10300_expand_prologue): Use it.
28451         (mn10300_expand_epilogue): Likewise.
28452         (mn10300_initial_offset): Likewise.
28453         * config/mn10300/mn10300-protos.h: Update.
28454         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
28455         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
28456         (prologue, epilogue, return_internal): Tidy output code.
28457         (mn10300_store_multiple_operation, return): Likewise.
28458         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
28459         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
28460         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
28461         (load_pic, am33_load_pic): New.
28462         (mn10300_load_pic0, mn10300_load_pic1): New.
28463
28464         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
28465         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
28466         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
28467         (cc_flags_for_mode, cc_flags_for_code): New.
28468         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
28469         overflow flag is not valid.  Validate that the flags we need
28470         for the comparison are valid.
28471         (mn10300_output_cmp): Remove.
28472         (mn10300_output_add): New.
28473         (mn10300_select_cc_mode): Use cc_flags_for_code.
28474         (mn10300_split_cbranch): New.
28475         (mn10300_match_ccmode): New.
28476         (mn10300_split_and_operand_count): New.
28477         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
28478         to the function.
28479         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
28480         (addsi3): ... here.  Use mn10300_output_add.
28481         (*addsi3_flags): New.
28482         (*am33_subsi3, *mn10300_subsi3): Merge...
28483         (subsi3): ... here.  Use attribute isa.
28484         (*subsi3_flags): New.
28485         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
28486         when possible.
28487         (*am33_andsi3, *mn10300_andsi3): Merge...
28488         (andsi3): ... here.
28489         (*andsi3_flags): New.
28490         (andsi3 splitters): New.
28491         (*am33_iorsi3, *mn10300_iorsi3): Merge...
28492         (iorsi3): ... here.
28493         (*iorsi3_flags): New.
28494         (*am33_xorsi3, *mn10300_xorsi3): Merge...
28495         (xorsi3): ... here.
28496         (*xorsi3_flags): New.
28497         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
28498         (one_cmplsi2): ... here.
28499         (*one_cmplsi2_flags): New.
28500         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
28501         instead of "dax" in constraints.  Use mn10300_split_cbranch.
28502         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
28503         use matching constraints to eliminate a self-comparison.
28504         (*integer_conditional_branch): Rename from integer_conditional_branch.
28505         Use int_mode_flags to match CC_REG.
28506         (*cbranchsi4_btst, *btstsi): New.
28507         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
28508         mn10300_split_cbranch.
28509         (*am33_cmpsf): Rename from am33_cmpsf.
28510         (*float_conditional_branch): Rename from float_conditional_branch.
28511         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
28512         (zero_extendqisi2): ... here.
28513         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
28514         (zero_extendhisi2): ... here.
28515         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
28516         (extendqisi2): ... here.
28517         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
28518         (extendhisi2): ... here.
28519         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
28520         (ashlsi3): ... here.
28521         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
28522         (lshrsi3): ... here.
28523         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
28524         (ashrsi3): ... here.
28525         (consecutive add peephole): Remove.
28526         * config/mn10300/predicates.md (label_ref_operand): New.
28527         (int_mode_flags): New.
28528         (CCZN_comparison_operator): New.
28529
28530         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
28531         (throughput_42_latency_43): New reservation.
28532         (mulsidi3, umulsidi3): New expanders.
28533         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
28534         the MDR register to allocation; separately allocate the low and
28535         high parts of the DImode result.
28536         (umulsidi3_internal): Similarly.
28537         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
28538         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
28539         (udivsi3, umodsi3): Remove.
28540         (udivmodsi4, divmodsi4): New expanders.
28541         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
28542         (*divmodsi4): Simiarly.
28543         (ext_internal): New.
28544
28545         * config/mn10300/constraints.md ("z"): New constraint.
28546         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
28547         (FIXED_REGISTERS): Don't fix MDR.
28548         (CALL_USED_REGSITERS): Reformat nicely.
28549         (REG_ALLOC_ORDER): Add MDR.
28550         (enum regclass): Add MDR_REGS.
28551         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
28552         (IRA_COVER_CLASSES): Add MDR_REGS.
28553         (REGNO_REG_CLASS): Handle MDR_REG.
28554         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
28555         (mn10300_register_move_cost): Likewise.
28556         * config/mn10300/mn10300.md (MDR_REG): New.
28557         (*movsi_internal): Handle moves to/from MDR_REGS.
28558
28559         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
28560         POST_MODIFY.
28561         (mn10300_secondary_reload): Tidy combination reload classes.
28562         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
28563         addresses for AM33.  Allow symbolic offsets for reg+imm.
28564         (mn10300_regno_in_class_p): New.
28565         (mn10300_legitimize_reload_address): New.
28566         * config/mn10300/mn10300.h (enum reg_class): Remove
28567         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
28568         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
28569         SP_OR_GENERAL_REGS.
28570         (REG_CLASS_NAMES): Update to match.
28571         (REG_CLASS_CONTENTS): Likewise.
28572         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
28573         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
28574         (REGNO_IN_RANGE_P): Remove.
28575         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
28576         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
28577         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
28578         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
28579         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
28580         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
28581         (REGNO_GENERAL_P): New.
28582         (HAVE_POST_MODIFY_DISP): New.
28583         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
28584         (LEGITIMIZE_RELOAD_ADDRESS): New.
28585         * config/mn10300/mn10300-protos.h: Update.
28586
28587         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
28588         DATA_REGS for AM33 stack-pointer destination.
28589         (mn10300_preferred_output_reload_class): Likewise.
28590         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
28591         into a form appropriate for ...
28592         (TARGET_SECONDARY_RELOAD): New.
28593         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
28594         * config/mn10300/mn10300-protos.h: Update.
28595         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
28596         reload_insi; use the "A" constraint for the scratch; handle AM33
28597         moves of sp to non-address registers.
28598
28599         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
28600         (*movqi_internal): ... here.
28601         (*am33_movhi, *mn10300_movhi): Merge into...
28602         (*movhi_internal): ... here.
28603         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
28604         as the source/destination of moves from/to SP.
28605         (movsf): Only allow for AM33-2.
28606         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
28607         any integer constant constraint.  Only allow for AM33-2.  Tidy
28608         all of the alternative outputs.
28609         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
28610         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
28611         for MN103.
28612         (udivsi3, umodsi3): New patterns for MN103 only.
28613
28614 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
28615
28616         * doc/tm.texi.in: Spell out that a lack of register class unions
28617         can lead to ICEs.
28618         * doc/tm.texi: Regenerate.
28619
28620 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
28621
28622         PR rtl-optimization/47337
28623         * dce.c (check_argument_store): New function.
28624         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
28625
28626         PR tree-optimization/47290
28627         * tree-eh.c (infinite_empty_loop_p): New function.
28628         (cleanup_empty_eh): Use it.
28629
28630 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
28631
28632         PR target/46997
28633         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
28634         (a64_expand_widen_sum): Ditto.
28635         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
28636         (vec_extract_evenodd_help): Ditto.
28637         (vec_extract_evenv4hi): Ditto.
28638         (vec_extract_oddv4hi): Ditto.
28639         (vec_extract_evenv2si): Ditto.
28640         (vec_extract_oddv2si): Ditto.
28641         (vec_extract_evenv2sf): Ditto.
28642         (vec_extract_oddv2sf): Ditto.
28643         (vec_pack_trunc_v4hi: Ditto.
28644         (vec_pack_trunc_v2si): Ditto.
28645         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
28646         (vec_interleave_highv8qi): Ditto.
28647         (mix1_r): Ditto.
28648         (vec_extract_oddv8qi): Ditto.
28649         (vec_interleave_lowv4hi): Ditto.
28650         (vec_interleave_highv4hi): Ditto.
28651         (vec_interleave_lowv2si): Ditto.
28652         (vec_interleave_highv2si): Ditto.
28653
28654 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28655
28656         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
28657         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
28658         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
28659         (pa_c_mode_for_suffix): New.
28660         (TARGET_EXPAND_BUILTIN): Define.
28661         (TARGET_C_MODE_FOR_SUFFIX): Define.
28662         (pa_builtins): Define.
28663         (pa_init_builtins): Register __float128 type and init new support
28664         builtins.
28665         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
28666         * config/pa/quadlib.c (_U_Qfcopysign): New.
28667
28668 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
28669
28670         PR middle-end/46894
28671         * explow.c (allocate_dynamic_stack_space): Do not assume more than
28672         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
28673         are defined.
28674
28675 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28676
28677         PR tree-optimization/47179
28678         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
28679         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
28680
28681 2011-01-18  Richard Guenther  <rguenther@suse.de>
28682
28683         PR rtl-optimization/47216
28684         * emit-rtl.c: Include tree-flow.h.
28685         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
28686         of replicating it with different semantics.
28687         * Makefile.in (emit-rtl.o): Adjust.
28688
28689 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28690
28691         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
28692         (cortex_a9_dp): Handle neon types correctly.
28693
28694 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
28695
28696         PR rtl-optimization/47299
28697         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
28698         subtarget.  Use normal multiplication if both operands are constants.
28699         * expmed.c (expand_widening_mult): Don't try to optimize constant
28700         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
28701         before using it.
28702
28703 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28704
28705         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
28706         spacing after 'e.g.', typos, comma, hyphenation.
28707
28708 2011-01-17  Richard Henderson  <rth@redhat.com>
28709
28710         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
28711         (rx_restricted_mem_operand): New.
28712         (rx_shift_operand): Use register_operand.
28713         (rx_source_operand, rx_compare_operand): Likewise.
28714         * config/rx/rx.md (addsi3_flags): New expander.
28715         (adddi3): Rewrite as expander.
28716         (adc_internal, *adc_flags, adddi3_internal): New patterns.
28717         (subsi3_flags): New expander.
28718         (subdi3): Rewrite as expander.
28719         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
28720
28721         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
28722         (rx_init_builtins): Remove sat builtin.
28723         (rx_expand_builtin): Likewise.
28724         * config/rx/rx.md (ssaddsi3): New.
28725         (*sat): Rename from sat.  Represent the CC_REG input.
28726
28727         * config/rx/predicates.md (rshift_operator): New.
28728         * config/rx/rx.c (rx_expand_insv): Remove.
28729         * config/rx/rx-protos.h: Update.
28730         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
28731         operand to the canonical position.
28732         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
28733         (*bitclr, *bitclr_in_memory): Similarly.
28734         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
28735         (insv): Retain the zero_extract in the expansion.
28736
28737         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
28738         (bswaphi2, bitinvert, revw): Likewise.
28739
28740         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
28741         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
28742         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
28743         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
28744         (bitset, bitset_in_memory): Likewise.
28745         (bitinvert, bitinvert_in_memory): Likewise.
28746         (bitclr, bitclr_in_memory): Likewise.
28747         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
28748         (rx_strend, rx_cmpstrn): Likewise.
28749         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
28750         (bitop peep2 patterns): Remove.
28751
28752         * config/rx/rx.c (rx_match_ccmode): New.
28753         * config/rx/rx-protos.h: Update.
28754         * config/rx/rx.md (abssi2): Clobber, don't set flags.
28755         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
28756         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
28757         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
28758         (fix_truncsfsi2, floatsisf2): Likewise.
28759         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
28760         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
28761         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
28762         (*subsi3_flags, *xorsi3_flags): New.
28763
28764         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
28765
28766         * config/rx/rx.c (rx_print_operand): Remove workaround for
28767         unsplit comparison operations.
28768
28769         * config/rx/rx.md (movsicc): Split after reload.
28770         (*movsicc): Merge *movsieq and *movsine via match_operator.
28771         (*stcc): New pattern.
28772
28773         * config/rx/rx.c (rx_float_compare_mode): Remove.
28774         * config/rx/rx.h (rx_float_compare_mode): Remove.
28775         * config/rx/rx.md (cstoresi4): Split after reload.
28776         (*sccc): New pattern.
28777
28778         * config/rx/predicates.md (label_ref_operand): New.
28779         (rx_z_comparison_operator): New.
28780         (rx_zs_comparison_operator): New.
28781         (rx_fp_comparison_operator): New.
28782         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
28783         Validate that the flags are set properly for the comparison.
28784         (rx_gen_cond_branch_template): Remove.
28785         (rx_cc_modes_compatible): Remove.
28786         (mode_from_flags): New.
28787         (flags_from_code): Rename from flags_needed_for_conditional.
28788         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
28789         (rx_select_cc_mode): Likewise.
28790         (rx_split_fp_compare): New.
28791         (rx_split_cbranch): New.
28792         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
28793         (*cbranchsi4): Use match_operator and rx_split_cbranch.
28794         (*cbranchsf4): Similarly.
28795         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
28796         match_operator and rx_split_cbranch.
28797         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
28798         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
28799         (*cmpsi): Rename from cmpsi.
28800         (*tstsi): Rename from tstsi.
28801         (*cmpsf): Rename from cmpsf; use CC_Fmode.
28802         (*conditional_branch): Rename from conditional_branch.
28803         (*reveresed_conditional_branch): Remove.
28804         (b<code>): Remove expander.
28805         * config/rx/rx-protos.h: Update.
28806
28807         * config/rx/rx.c (rx_compare_redundant): Remove.
28808         * config/rx/rx.md (cmpsi): Don't use it.
28809         * config/rx/rx-protos.h: Update.
28810
28811         * config/rx/rx-modes.def (CC_F): New mode.
28812         * config/rx/rx.c (rx_select_cc_mode): New.
28813         * config/rx/rx.h (SELECT_CC_MODE): Use it.
28814         * config/rx/rx-protos.h: Update.
28815
28816 2011-01-17  Richard Henderson  <rth@redhat.com>
28817
28818         * except.c (dump_eh_tree): Fix stray ; after for statement.
28819
28820 2011-01-17  Richard Guenther  <rguenther@suse.de>
28821
28822         PR tree-optimization/47313
28823         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
28824         handling before copying the body.  Properly deal with
28825         by-reference result in SSA form.
28826
28827 2011-01-17  Ian Lance Taylor  <iant@google.com>
28828
28829         PR target/47219
28830         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
28831         (struct_value_alias_set): Don't define.
28832         (sparc_option_override): Don't set sparc_sr_alias_set and
28833         struct_value_alias_set.
28834         (save_or_restore_regs): Use gen_frame_mem rather than calling
28835         set_mem_alias_set.
28836         (sparc_struct_value_rtx): Likewise.
28837
28838 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
28839
28840         PR target/47318
28841         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
28842         (_mm_maskstore_pd): Likewise.
28843         (_mm_maskload_ps): Likewise.
28844         (_mm_maskstore_ps): Likewise.
28845         (_mm256_maskload_pd): Change mask to __m256i.
28846         (_mm256_maskstore_pd): Likewise.
28847         (_mm256_maskload_ps): Likewise.
28848         (_mm256_maskstore_ps): Likewise.
28849
28850         * config/i386/i386-builtin-types.def: Updated.
28851         (ix86_expand_special_args_builtin): Likewise.
28852
28853         * config/i386/i386.c (bdesc_special_args): Update
28854         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
28855         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
28856         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
28857         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
28858
28859         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
28860         Use <avxpermvecmode> on mask register.
28861         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
28862
28863 2011-01-17  Olivier Hainque  <hainque@adacore.com>
28864             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
28865             Eric Botcazou  <ebotcazou@adacore.com>
28866
28867         PR target/46655
28868         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
28869         if <= USHRT_MAX in 32-bit mode.
28870
28871 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28872
28873         * doc/install.texi (Configuration, Specific): Wrap long
28874         lines in examples.  Allow line wrapping in long options
28875         and URLs where beneficial for PDF output.
28876
28877 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
28878
28879         * config/mips/mips.c (mips_classify_symbol): Don't return
28880         SYMBOL_PC_RELATIVE for nonlocal labels.
28881
28882 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
28883
28884         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
28885
28886 2011-01-15  Jan Hubicka  <jh@suse.cz>
28887
28888         PR tree-optimization/47276
28889         * ipa.c (function_and_variable_visibility): Do not try to mark alias
28890         declarations as needed.
28891
28892 2011-01-15  Martin Jambor  <mjambor@suse.cz>
28893
28894         * common.opt (fdevirtualize): New flag.
28895         * doc/invoke.texi (Option Summary): Document it.
28896         * opts.c (default_options_table): Add devirtualize flag.
28897         * ipa-prop.c (detect_type_change): Return immediately if
28898         devirtualize flag is not set.
28899         (detect_type_change_ssa): Likewise.
28900         (compute_known_type_jump_func): Likewise.
28901         (ipa_analyze_virtual_call_uses): Likewise.
28902
28903 2011-01-14  Martin Jambor  <mjambor@suse.cz>
28904
28905         PR tree-optimization/45934
28906         PR tree-optimization/46302
28907         * ipa-prop.c (type_change_info): New type.
28908         (stmt_may_be_vtbl_ptr_store): New function.
28909         (check_stmt_for_type_change): Likewise.
28910         (detect_type_change): Likewise.
28911         (detect_type_change_ssa): Likewise.
28912         (compute_complex_assign_jump_func): Check for dynamic type change.
28913         (compute_complex_ancestor_jump_func): Likewise.
28914         (compute_known_type_jump_func): Likewise.
28915         (compute_scalar_jump_functions): Likewise.
28916         (ipa_analyze_virtual_call_uses): Likewise.
28917         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
28918
28919 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28920
28921         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
28922         * config/i386/i386.opt (msse5): New Alias.
28923
28924 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28925
28926         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
28927         * config/sparc/linux64.h (CC1_SPEC): Likewise.
28928         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
28929         * config/sparc/sparc.h (CC1_SPEC): Likewise.
28930
28931 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28932
28933         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
28934         -mcpu options.
28935         * config/sparc/linux64.h (CC1_SPEC): Likewise.
28936         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
28937         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
28938         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
28939         Likewise.
28940         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
28941
28942 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28943
28944         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
28945
28946 2011-01-14  Mike Stump  <mikestump@comcast.net>
28947
28948         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
28949         * config/fr30/fr30.md: Likweise
28950         (movsi_push): Likewise.
28951         (movsi_pop): Likewise.
28952         (enter_func): Likewise.
28953         * config/moxie/moxie.md (movsi_push): Likewise.
28954         (movsi_pop): Likewise.
28955
28956 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28957
28958         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
28959         %{no_archive} %{exact_version}.
28960         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
28961         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
28962         %{no_archive} %{exact_version}.
28963         * config/mips/openbsd.h (LINK_SPEC): Likewise.
28964         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
28965         * config/mips/vxworks.h: Likewise.
28966
28967 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28968
28969         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
28970
28971 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28972
28973         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
28974         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
28975
28976 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28977
28978         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
28979         -nodefaultlib.
28980
28981 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28982
28983         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
28984         for mcpu not cpu.
28985         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
28986         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
28987         not cpu.
28988         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
28989         Don't handle -shlib.
28990
28991 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28992
28993         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
28994         (CC1_SPEC): Don't handle -profile.
28995
28996 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28997
28998         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
28999         * config/mips/mips.h (CC1_SPEC): Likewise.
29000
29001 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29002
29003         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
29004         * config/mips/mips.h (CC1_SPEC): Likewise.
29005
29006 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29007
29008         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
29009         * config/m32r/linux.h (LINK_SPEC): Likewise.
29010         * config/mips/linux.h (LINK_SPEC): Likewise.
29011         * config/mips/linux64.h (LINK_SPEC): Likewise.
29012         * config/sparc/linux.h (LINK_SPEC): Likewise.
29013         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
29014         LINK_SPEC): Likewise.
29015         * config/xtensa/linux.h (LINK_SPEC): Likewise.
29016
29017 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29018
29019         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
29020         %{version:-v}.
29021         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
29022
29023 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29024
29025         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
29026         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
29027
29028 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
29029
29030         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
29031
29032 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29033
29034         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
29035         supports -Bstatic/-Bdynamic.
29036         * configure: Regenerate.
29037
29038 2011-01-14  Jan Hubicka  <jh@suse.cz>
29039             Jack Howarth  <howarth@bromo.med.uc.edu>
29040
29041         PR target/46037
29042         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
29043         when checking debug_info_level. Test write_symbols instead of
29044         debug_hooks->var_location when setting flag_var_tracking_uninit.
29045
29046 2011-01-14  Richard Guenther  <rguenther@suse.de>
29047
29048         PR tree-optimization/47179
29049         * target.def (ref_may_alias_errno): New target hook.
29050         * targhooks.h (default_ref_may_alias_errno): Declare.
29051         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
29052         (default_ref_may_alias_errno): New function.
29053         * target.h (struct ao_ref_s): Declare.
29054         * tree-ssa-alias.c: Include target.h.
29055         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
29056         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
29057         (targhooks.o): Likewise.
29058         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
29059         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
29060
29061 2011-01-14  Richard Guenther  <rguenther@suse.de>
29062
29063         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
29064
29065 2011-01-14  Richard Guenther  <rguenther@suse.de>
29066
29067         PR tree-optimization/47280
29068         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
29069         return CFG changes.
29070         (tree_ssa_forward_propagate_single_use_vars): Deal with
29071         CFG changes from associate_plusminus.
29072
29073 2011-01-14  Richard Guenther  <rguenther@suse.de>
29074
29075         PR middle-end/47281
29076         Revert
29077         2011-01-11  Richard Guenther  <rguenther@suse.de>
29078
29079         PR tree-optimization/46076
29080         * tree-ssa.c (useless_type_conversion_p): Conversions from
29081         unprototyped to empty argument list function types are useless.
29082
29083 2011-01-14  Richard Guenther  <rguenther@suse.de>
29084
29085         PR tree-optimization/47286
29086         * tree-ssa-structalias.c (new_var_info): Register variables are global.
29087
29088 2011-01-14  Martin Jambor  <mjambor@suse.cz>
29089
29090         PR middle-end/46823
29091         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
29092
29093 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
29094
29095         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
29096         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
29097         * config/xtensa/xtensa.c (xtensa_libcall_value,
29098         xtensa_function_value_regno_p): New functions.
29099         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
29100
29101 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
29102
29103         PR c++/47213
29104         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
29105         PE specific hook.
29106         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
29107         New function prototype.
29108         * config/i386/winnt.c (i386_pe_assemble_visibility):
29109         Warn only if attribute was specified by user.
29110
29111 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
29112
29113         PR target/47251
29114         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
29115         floating point.
29116         (floatunsdidf2_fcfidu): Ditto.
29117
29118 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29119
29120         * config/s390/s390.c (print_operand_address): Replace 'error' with
29121         'output_operand_lossage'.
29122         (print_operand): Likewise.
29123
29124 2011-01-13  Jeff Law  <law@redhat.com>
29125
29126         PR rtl-optimization/39077
29127         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
29128         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
29129         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
29130         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
29131         * gcse.c (prune_insertions_deletions): New function.
29132         (compute_pre_data): Use it.
29133
29134 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
29135
29136         PR debug/PR46973
29137         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
29138         static function.
29139         (prune_unused_types_mark): Use it.
29140
29141 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
29142
29143         PR rtl-optimization/45352
29144         * sel-sched.c: Update copyright years.
29145         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
29146         in the advancing loop when we have issued issue_rate insns.
29147
29148 2011-01-12  Richard Henderson  <rth@redhat.com>
29149
29150         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
29151         (TARGET_MD_ASM_CLOBBERS): New.
29152
29153         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
29154         (TARGET_DELEGITIMIZE_ADDRESS): New.
29155
29156         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
29157         (clzsi2, *bsch): New patterns.
29158
29159         * config/mn10300/mn10300.md (INT): New mode iterator.
29160         (*mov<INT>_clr): New pattern, and peep2 to generate it.
29161
29162         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
29163         flag_split_wide_types.
29164
29165         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
29166         (mn10300_trampoline_init): Rewrite without a template, an immediate
29167         load and a direct branch.
29168         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
29169
29170 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
29171
29172         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
29173         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
29174         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
29175         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
29176
29177 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
29178
29179         PR debug/47209
29180         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
29181         of type.
29182
29183 2011-01-12  Jan Hubicka  <jh@suse.cz>
29184
29185         PR driver/47244
29186         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
29187         (PLUGIN_COND_CLOSE): New macro.
29188         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
29189
29190 2011-01-12  Richard Guenther  <rguenther@suse.de>
29191
29192         PR lto/47259
29193         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
29194         register variables in a MEM_REF.
29195
29196 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
29197
29198         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
29199         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
29200         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
29201         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
29202         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
29203         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
29204         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
29205         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
29206         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
29207         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
29208         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
29209         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
29210         * config/gnu-user.h: New.  Copied from linux.h.
29211         (LINUX_TARGET_STARTFILE_SPEC): Rename to
29212         GNU_USER_TARGET_STARTFILE_SPEC.
29213         (LINUX_TARGET_ENDFILE_SPEC): Rename to
29214         GNU_USER_TARGET_ENDFILE_SPEC.
29215         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
29216         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
29217         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
29218         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
29219         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
29220         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
29221         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
29222         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
29223         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
29224         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
29225         * config/arm/linux-eabi.h (CC1_SPEC): Use
29226         GNU_USER_TARGET_CC1_SPEC.
29227         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
29228         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
29229         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
29230         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
29231         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
29232         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
29233         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
29234         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
29235
29236 2011-01-12  Richard Guenther  <rguenther@suse.de>
29237
29238         PR other/46946
29239         * doc/invoke.texi (ffast-math): Document it is turned on
29240         with -Ofast.
29241
29242 2011-01-12  Jan Hubicka  <jh@suse.cz>
29243
29244         PR tree-optimization/47233
29245         * opts.c (common_handle_option): Disable ipa-reference with profile
29246         feedback.
29247
29248 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
29249
29250         * c-parser.c (c_parser_objc_at_property_declaration): Improved
29251         error message.
29252
29253 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
29254
29255         * c-parser.c (c_lex_one_token): Updated and reindented some
29256         comments.  No changes in code.
29257
29258 2011-01-11  Ian Lance Taylor  <iant@google.com>
29259
29260         * godump.c (go_output_var): Don't output the variable if there is
29261         already a type with the same name.
29262
29263 2011-01-11  Ian Lance Taylor  <iant@google.com>
29264
29265         * godump.c (go_format_type): Don't generate float80.
29266
29267 2011-01-11  Richard Henderson  <rth@redhat.com>
29268
29269         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
29270         declaration.  Rewrite for both speed and size.
29271         (mn10300_address_cost_1): Remove.
29272         (mn10300_register_move_cost): New.
29273         (mn10300_memory_move_cost): New.
29274         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
29275         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
29276         extensions, shifts, BSWAP, CLZ.
29277         (mn10300_wide_const_load_uses_clr): Remove.
29278         (TARGET_REGISTER_MOVE_COST): New.
29279         (TARGET_MEMORY_MOVE_COST): New.
29280         * config/mn10300/mn10300-protos.h: Update.
29281         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
29282
29283         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
29284         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
29285         * config/mn10300/mn10300-protos.h: Update.
29286         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
29287         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
29288         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
29289         (*test_int_bitfield, *test_byte_bitfield): Remove.
29290         (*bit_test, *subreg_bit_test): Remove.
29291         * config/mn10300/predicates.md (const_8bit_operand): Remove.
29292
29293         * config/mn10300/constraints.md ("c"): Rename from "A".
29294         ("A", "D"): New constraint letters.
29295         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
29296         (fmssf4, fnmasf4, fnmssf4): Likewise.
29297
29298         * config/mn10300/mn10300.md (isa): New attribute.
29299         (enabled): New attribute.
29300
29301         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
29302         (abssf2, negsf2): Define only for hardware fp.
29303         (sqrtsf2): Reformat.
29304         (addsf3, subsf3, mulsf3): Merge expander and insn.
29305
29306         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
29307         (DEBUGGER_AUTO_OFFSET): Remove.
29308         (DEBUGGER_ARG_OFFSET): Remove.
29309
29310         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
29311         Emit register stores with the same offsets as the hardware.
29312         (mn10300_store_multiple_operation): Don't check that the register
29313         save offsets are monotonic.
29314         * config/mn10300/mn10300-protos.h: Update.
29315
29316         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
29317
29318         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
29319         in terms of the value on the stack, not the MDR register.
29320
29321 2011-01-11  Jan Hubicka  <jh@suse.cz>
29322
29323         PR lto/45721
29324         PR lto/45375
29325         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
29326         (symbol_alias_set_destroy, symbol_alias_set_contains,
29327         propagate_aliases_backward): Declare.
29328         * lto-streamer-out.c (struct sets): New sturcture.
29329         (trivally_defined_alias): New function.
29330         (output_alias_pair_p): Rewrite.
29331         (output_unreferenced_globals): Fix output of alias pairs.
29332         (produce_symtab): Likewise.
29333         * ipa.c (function_and_variable_visibility): Set weak alias destination
29334         as needed in lto.
29335         * varasm.c (symbol_alias_set_t): Remove.
29336         (symbol_alias_set_destroy): Export.
29337         (propagate_aliases_forward, propagate_aliases_backward): New functions
29338         based on ...
29339         (compute_visible_aliases): ... this one; remove.
29340         (trivially_visible_alias): New
29341         (trivially_defined_alias): New.
29342         (remove_unreachable_alias_pairs): Rewrite.
29343         (finish_aliases_1): Reorganize code checking if alias is defined.
29344         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
29345         in LTO mode.
29346
29347 2011-01-11  Richard Guenther  <rguenther@suse.de>
29348
29349         PR tree-optimization/46076
29350         * tree-ssa.c (useless_type_conversion_p): Conversions from
29351         unprototyped to empty argument list function types are useless.
29352
29353 2011-01-11  Richard Guenther  <rguenther@suse.de>
29354
29355         PR middle-end/45235
29356         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
29357         volatile MEMs as MEM_READONLY_P.
29358
29359 2011-01-11  Richard Guenther  <rguenther@suse.de>
29360
29361         PR tree-optimization/47239
29362         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
29363
29364 2011-01-11  Jeff Law  <law@redhat.com>
29365
29366         PR tree-optimization/47086
29367         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
29368         IVs from statements that might throw.
29369
29370 2011-01-10  Jan Hubicka  <jh@suse.cz>
29371
29372         PR lto/45375
29373         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
29374
29375 2011-01-10  Jan Hubicka  <jh@suse.cz>
29376
29377         PR lto/45375
29378         * profile.c (read_profile_edge_counts): Ignore profile inconistency
29379         when correcting profile.
29380
29381 2011-01-10  Jan Hubicka  <jh@suse.cz>
29382
29383         PR lto/46083
29384         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
29385         DECL_FINI_PRIORITY.
29386         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
29387         Restore DECL_FINI_PRIORITY.
29388
29389 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29390
29391         * doc/gimple.texi: Fix quoting of multi-word return values in
29392         @deftypefn statements.  Ensure presence of return value.  Wrap
29393         overlong @deftypefn lines.
29394         (is_gimple_operand, is_gimple_min_invariant_address): Remove
29395         descriptions of removed functions.
29396         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
29397         of multi-word return value in @deftypefn statement.
29398
29399 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29400
29401         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
29402         (Conditional Expressions, Logical Operators)
29403         (Statement and operand traversals): Do not indent smallexample
29404         code.  Fix duplicate function argument in example.
29405
29406 2011-01-10  Jeff Law  <law@redhat.com>
29407
29408         PR tree-optimization/47141
29409         * ipa-split.c (split_function): Handle case where we are
29410         returning a value and the return block has a virtual operand phi.
29411
29412 2011-01-10  Jan Hubicka  <jh@suse.cz>
29413
29414         PR tree-optimization/47234
29415         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
29416         (pass_feedback_split_functions): Declare.
29417         * passes.c (init_optimization_passes): Add ipa-split as subpass of
29418         tree-profile.
29419         * ipa-split.c (gate_split_functions): Update comments; disable
29420         split-functions for profile_arc_flag and branch_probabilities.
29421         (gate_feedback_split_functions): New function.
29422         (execute_feedback_split_functions): New function.
29423         (pass_feedback_split_functions): New global var.
29424
29425 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
29426
29427         PR lto/46760
29428         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
29429         calling gimple_call_set_cannot_inline.
29430
29431 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
29432
29433         * config/darwin-sections.def: Remove unused section.
29434
29435 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
29436
29437         PR c++/47218
29438         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
29439
29440 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
29441
29442         PR objc/47232
29443         * c-parser.c (c_parser_declaration_or_fndef): Improved
29444         error message.
29445
29446 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
29447
29448         * config/i386/winnt.c (i386_pe_start_function): Make sure
29449         to switch back to function's section.
29450
29451 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
29452
29453         PR gcc/46902
29454         PR testsuite/46912
29455         * plugin.c: Move include of dlfcn.h from here...
29456         * system.h: ... to here.
29457
29458 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29459
29460         * doc/cpp.texi (C++ Named Operators): Fix markup for header
29461         file name.
29462         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
29463         two extra empty pages in PDF output.
29464
29465 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
29466
29467         PR objc/47078
29468         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
29469         for error recovery purposes behave as if it was not specified so
29470         that the default type is usd.
29471
29472 2011-01-07  Jan Hubicka  <jh@suse.cz>
29473
29474         PR tree-optmization/46469
29475         * ipa.c (function_and_variable_visibility): Clear needed flags on
29476         nodes with external decls; handle weakrefs merging correctly.
29477
29478 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
29479
29480         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
29481         not false.
29482
29483 2011-01-07  Jan Hubicka  <jh@suse.cz>
29484
29485         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
29486         and no longer claim that gold is required for linker plugin.
29487         * configure: Regenerate.
29488         * gcc.c (PLUGIN_COND): New macro.
29489         (LINK_COMMAND_SPEC): Use it.
29490         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
29491         * config.in (HAVE_LTO_PLUGIN): New.
29492         * configure.ac (--with-lto-plugin): New parameter; autodetect
29493         HAVE_LTO_PLUGIN.
29494
29495 2011-01-07  Jan Hubicka  <jh@suse.cz>
29496
29497         PR tree-optimization/46367
29498         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
29499         when we can update original.
29500         (cgraph_mark_inline_edge): Sanity check.
29501         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
29502
29503 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29504
29505         * config/spu/spu.h (ASM_COMMENT_START): Define.
29506
29507 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
29508
29509         PR driver/42445
29510         * gcc.c (%>S): New.
29511         (SWITCH_KEEP_FOR_GCC): Likewise.
29512         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
29513         (do_spec_1): Handle "%>".
29514
29515         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
29516
29517 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
29518
29519         PR target/47201
29520         * config/i386/i386.c (ix86_delegitimize_address): If
29521         simplify_gen_subreg fails, return orig_x.
29522
29523         PR bootstrap/47187
29524         * value-prof.c (gimple_stringop_fixed_value): Handle
29525         lhs of the call properly.
29526
29527 2011-01-07  Jan Hubicka  <jh@suse.cz>
29528
29529         PR lto/45375
29530         * lto-opt.c (lto_reissue_options): Set flag_shlib.
29531
29532 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
29533
29534         * target.def (function_switched_text_sections): New hook.
29535         * doc/tm.texi: Regenerated.
29536         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
29537         * final.c (default_function_switched_text_sections): New.
29538         (final_scan_insn): Call function_switched_text_sections when a
29539         mid-function section change occurs.
29540         * output.h (default_function_switched_text_sections): Declare.
29541         * config/darwin-protos.h (darwin_function_switched_text_sections):
29542         Likewise.
29543         * config/darwin.c (darwin_function_switched_text_sections): New.
29544         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
29545
29546 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
29547
29548         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
29549         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
29550         the secondary code fragment when outputting for DWARF == 2.
29551
29552 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
29553
29554         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
29555         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
29556         Remove.
29557         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
29558         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
29559
29560 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
29561
29562         PR debug/46704
29563         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
29564         when it is not empty.
29565
29566 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
29567
29568         Bobcat Enablement
29569         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
29570         (case ${target}): Add btver1.
29571         * config/i386/driver-i386.c (host_detect_local_cpu): Let
29572         -march=native recognize btver1 processors.
29573         * config/i386/i386-c.c (ix86_target_macros_internal): Add
29574         btver1 def_and_undef
29575         * config/i386/i386.c (struct processor_costs btver1_cost): New
29576         btver1 cost table.
29577         (m_BTVER1): New definition.
29578         (m_AMD_MULTIPLE): Includes m_BTVER1.
29579         (initial_ix86_tune_features): Add btver1 tune.
29580         (processor_target_table): Add btver1 entry.
29581         (static const char *const cpu_names): Add btver1 entry.
29582         (software_prefetching_beneficial_p): Add btver1.
29583         (ix86_option_override_internal): Add btver1 instruction sets.
29584         (ix86_issue_rate): Add btver1.
29585         (ix86_adjust_cost): Add btver1.
29586         * config/i386/i386.h (TARGET_BTVER1): New definition.
29587         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
29588         (enum processor_type): Add PROCESSOR_BTVER1.
29589         * config/i386/i386.md (define_attr "cpu"): Add btver1.
29590
29591 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29592
29593         PR target/43309
29594         * config/i386/i386.c (legitimize_tls_address)
29595         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
29596         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
29597         (tls_initial_exec_64_sun): New pattern.
29598
29599 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
29600
29601         * doc/invoke.texi (Overall Options): Improve wording and markup
29602         of the description of -wrapper.
29603
29604 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
29605
29606         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
29607         rdynamic, threads): New Driver options.
29608
29609 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29610
29611         PR target/38118
29612         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
29613         if coming from .tdata.
29614         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
29615
29616 2011-01-06  Jan Hubicka  <jh@suse.cz>
29617
29618         PR lto/47188
29619         * collect2.c (main): Do not enable LTOmode when plugin is active.
29620
29621 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29622
29623         PR other/45915
29624         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
29625         --version output if supported.
29626         * configure: Regenerate.
29627
29628 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
29629
29630         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
29631         Driver options.
29632
29633 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
29634
29635         PR c/47150
29636         * c-convert.c (convert): When converting a complex expression
29637         other than COMPLEX_EXPR to a different complex type, ensure
29638         c_save_expr is called instead of save_expr, unless in_late_binary_op.
29639         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
29640         when converting COMPLEX_TYPE.
29641
29642 2011-01-06  Ira Rosen  <irar@il.ibm.com>
29643
29644         PR tree-optimization/47139
29645         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
29646         only the last reduction value is used outside the loop.  Update
29647         documentation.
29648
29649 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
29650
29651         * config/rtems.opt: New.
29652         * config.gcc (*-*-rtems*): Use rtems.opt.
29653
29654 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
29655
29656         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
29657         processors do not support 3DNow instructions.
29658
29659 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29660
29661         * config/spu/spu.c (spu_option_override): Set parameter
29662         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
29663
29664 2011-01-05  Jan Hubicka  <jh@suse.cz>
29665
29666         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
29667         at the command line.
29668
29669 2011-01-05  Martin Jambor  <mjambor@suse.cz>
29670
29671         PR lto/47162
29672         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
29673         deltas on streamed outgoing edges.
29674         (output_node_opt_summary): Output info for outgoing edges only when
29675         the node is in new parameter set.
29676         (output_cgraph_opt_summary): New parameter set, passed to the two
29677         aforementioned functions.  Update its forward declaration and its
29678         callee too.
29679
29680 2011-01-05  Tom Tromey  <tromey@redhat.com>
29681
29682         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
29683         operator to c_finish_omp_atomic.
29684         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
29685         (build_unary_op): Update.
29686         (build_modify_expr): Update.
29687         (build_asm_expr): Update.
29688
29689 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29690
29691         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
29692         newly inserted insns.
29693         (pad_bb): Likewise.
29694         (spu_emit_branch_hint): Likewise.
29695         (insert_hbrp_for_ilb_runout): Likewise.
29696         (spu_machine_dependent_reorg): Call df_finish_pass after
29697         schedule_insns returns.
29698
29699 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29700
29701         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
29702
29703 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
29704
29705         PR tree-optimization/47005
29706         * tree-sra.c (struct access): Add 'non_addressable' bit.
29707         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
29708         (decide_one_param_reduction): Return 0 if the parameter is passed by
29709         reference and one of the accesses in the group is non_addressable.
29710
29711 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
29712
29713         PR tree-optimization/47056
29714         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
29715         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
29716         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
29717
29718 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
29719
29720         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
29721         initializer.  Skip view conversions from aggregate types.
29722
29723 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
29724
29725         PR bootstrap/47055
29726         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
29727
29728 2011-01-04  Philipp Thomas  <pth@suse.de>
29729
29730         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
29731         obvious typo.
29732
29733 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29734
29735         * function.c (thread_prologue_and_epilogue_insns): Do not crash
29736         on empty epilogue sequences.
29737
29738 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
29739
29740         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
29741         non-static): New Driver options.
29742
29743 2011-01-04  Jie Zhang  <jie@codesourcery.com>
29744
29745         PR driver/47137
29746         * gcc.c (default_compilers[]): Set combinable field to 0
29747         for all assembly languages.
29748
29749 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
29750
29751         * config/mips/loongson3a.md: New file.
29752         * config/mips/mips.md: Include loongson3a.md.
29753         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
29754         TUNE_LOONGSON_3A.
29755
29756 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
29757
29758         PR middle-end/47017
29759         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
29760         instead of convert_memory_address_addr_space on the base expression.
29761
29762 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29763
29764         * config/spu/spu.c (spu_option_override): Update error text
29765         for bad -march= / -mtune= values.
29766
29767 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29768
29769         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
29770         if branch-hint optimization will be performed.
29771
29772 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
29773
29774         PR tree-optimization/47148
29775         * ipa-split.c (split_function): Convert arguments to
29776         DECL_ARG_TYPE if possible.
29777
29778         PR tree-optimization/47155
29779         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
29780         when computing uns.
29781
29782         PR rtl-optimization/47157
29783         * combine.c (try_combine): If undobuf.other_insn becomes
29784         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
29785         and set *new_direct_jump_p too.
29786
29787 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
29788
29789         PR tree-optimization/47021
29790         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
29791
29792 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
29793
29794         * gcc.c (process_command): Update copyright notice dates.
29795         * gcov.c (print_version): Likewise.
29796         * gcov-dump.c (print_version): Likewise.
29797         * mips-tfile.c (main): Likewise.
29798         * mips-tdump.c (main): Likewise.
29799
29800 2011-01-03  Martin Jambor  <mjambor@suse.cz>
29801
29802         PR tree-optimization/46801
29803         * tree-sra.c (type_internals_preclude_sra_p): Check whether
29804         aggregate fields start at byte boundary instead of the bit-field flag.
29805
29806 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
29807
29808         PR driver/47137
29809         * gcc.c (main): Revert revision 168407.
29810
29811 2011-01-03  Martin Jambor  <mjambor@suse.cz>
29812
29813         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
29814
29815 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29816
29817         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
29818         vector optab to expand vector/scalar shift, update gimple to vector.
29819
29820 2011-01-03  Martin Jambor  <mjambor@suse.cz>
29821
29822         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
29823         a thunk.
29824
29825 2011-01-03  Martin Jambor  <mjambor@suse.cz>
29826
29827         PR tree-optimization/46984
29828         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
29829         HOST_WIDE_INT.
29830         (cgraph_create_indirect_edge): Fixed line length.
29831         (cgraph_indirect_call_info): Declare.
29832         (cgraph_make_edge_direct) Update declaration.
29833         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
29834         (cgraph_create_indirect_edge): Use it.
29835         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
29836         callees.
29837         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
29838         the new thunk_delta representation.
29839         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
29840         HOST_WIDE_INT.
29841         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
29842         (ipa_read_indirect_edge_info): Likewise.
29843         * lto-cgraph.c (output_edge_opt_summary): New function.
29844         (output_node_opt_summary): Call it on all outgoing edges.
29845         (input_edge_opt_summary): New function.
29846         (input_node_opt_summary): Call it on all outgoing edges.
29847
29848 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
29849
29850         PR driver/47137
29851         * gcc.c (main): Don't check have_o when settting combine_inputs.
29852
29853 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
29854
29855         * regrename.c: Add general comment describing the pass.
29856         (struct du_head): Remove 'length' field.
29857         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
29858         (regrename_optimize): Do not sort chains.  Rework comments, add others.
29859         Force renaming to the preferred class (if any) in the first pass and do
29860         not consider registers that belong to it in the second pass.
29861         (create_new_chain): Do not set 'length' field.
29862         (scan_rtx_reg): Likewise.
29863
29864 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
29865
29866         PR tree-optimization/47140
29867         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
29868         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
29869         to bit_value_binop.
29870
29871         PR rtl-optimization/47028
29872         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
29873         parm_birth_insn instead of at the beginning of first bb.
29874
29875 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
29876
29877         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
29878         Remove the word "see" before "@pxref".
29879         * doc/rtl.texi: Remove the word "see" before "@pxref".
29880
29881 2011-01-01  Jan Hubicka  <jh@suse.cz>
29882
29883         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
29884         memory.
29885
29886 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
29887
29888         PR target/38662
29889         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
29890
29891 \f
29892 Copyright (C) 2011 Free Software Foundation, Inc.
29893
29894 Copying and distribution of this file, with or without modification,
29895 are permitted in any medium without royalty provided the copyright
29896 notice and this notice are preserved.