OSDN Git Service

3aa3a5d7a386dd2b49ee9db4e61dbb87c176cc3e
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-08-12  Richard Henderson  <rth@redhat.com>
2
3         PR rtl-opt/49994
4         * sched-init.h (struct deps_desc): Add sched_before_next_jump.
5         * sched-deps.c (init_deps): Clear it.
6         (deps_analyze_insn): Consume it.
7         (sched_analyze_insn): Fill it.
8
9 2011-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10
11         PR target/48328
12         * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
13         for tbh instructions.
14
15 2011-08-12   Diego Novillo  <dnovillo@google.com>
16
17         * data-streamer.h (streamer_write_zero): Rename from output_zero.
18         (streamer_write_uhwi): Rename from lto_output_uleb128.
19         (streamer_write_hwi): Rename from output_sleb128.
20         (streamer_write_string): Rename from lto_output_string.
21         (streamer_string_index): Rename from lto_string_index.
22         (streamer_write_string_with_length): Rename from
23         lto_output_string_with_length.
24         (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
25         (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
26         (streamer_read_string): Rename from lto_input_string.
27         (streamer_read_indexed_string): Rename from input_string_internal.
28         (streamer_read_uhwi): Rename from lto_input_uleb128.
29         (streamer_read_hwi): Rename from lto_input_sleb128.
30         (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
31         (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
32         (streamer_write_enum): Rename from lto_output_enum.
33         (streamer_read_enum): Rename from lto_input_enum.
34         (streamer_write_record_start): Rename from output_record_start.
35         (streamer_read_record_start): Rename from input_record_start.
36         (streamer_write_bitpack): Rename from lto_output_bitpack.
37         (streamer_read_bitpack): Rename from lto_input_bitpack.
38         (streamer_write_char_stream): Rename from lto_output_1_stream.
39         (streamer_read_uchar): Rename from lto_input_1_unsigned.
40         * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
41         (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
42         (streamer_read_string_cst): Rename from input_string_cst.
43         (streamer_read_chain): Rename from lto_input_chain.
44         (streamer_alloc_tree): Rename from lto_materialize_tree.
45         (streamer_read_tree_body): Rename from lto_input_tree_pointers.
46         (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
47         (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
48         (streamer_read_integer_cst): Rename from lto_input_integer_cst.
49         (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
50         (streamer_write_chain): Rename from lto_output_chain.
51         (streamer_write_tree_header): Rename from lto_output_tree_header.
52         (streamer_pack_tree_bitfields): Rename from pack_value_fields.
53         (streamer_write_tree_body): Rename from lto_output_tree_pointers.
54         (streamer_write_integer_cst): Rename from lto_output_integer_cst.
55         (streamer_write_builtin): Rename from lto_output_builtin_tree.
56         (streamer_check_handled_ts_structures): Rename from
57         check_handled_ts_structures.
58         (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
59         (streamer_tree_cache_insert_at): Rename from
60         lto_streamer_cache_insert_at.
61         (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
62         (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
63         (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
64         (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
65         (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
66         * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
67         (write_identifier): Rename from output_identifier.
68         (write_ts_common_tree_pointers): Rename from
69         lto_output_ts_common_tree_pointers.
70         (write_ts_vector_tree_pointers): Rename from
71         lto_output_ts_vector_tree_pointers.
72         (write_ts_complex_tree_pointers): Rename from
73         lto_output_ts_complex_tree_pointers.
74         (write_ts_decl_minimal_tree_pointers): Rename from
75         lto_output_ts_decl_minimal_tree_pointers.
76         (write_ts_decl_common_tree_pointers): Rename from
77         lto_output_ts_decl_common_tree_pointers.
78         (write_ts_decl_non_common_tree_pointers): Rename from
79         lto_output_ts_decl_non_common_tree_pointers.
80         (write_ts_decl_with_vis_tree_pointers): Rename from
81         lto_output_ts_decl_with_vis_tree_pointers.
82         (write_ts_field_decl_tree_pointers): Rename from
83         lto_output_ts_field_decl_tree_pointers.
84         (write_ts_function_decl_tree_pointers): Rename from
85         lto_output_ts_function_decl_tree_pointers.
86         (write_ts_type_common_tree_pointers): Rename from
87         lto_output_ts_type_common_tree_pointers.
88         (write_ts_type_non_common_tree_pointers): Rename from
89         lto_output_ts_type_non_common_tree_pointers.
90         (write_ts_list_tree_pointers): Rename from
91         lto_output_ts_list_tree_pointers.
92         (write_ts_vec_tree_pointers): Rename from
93         lto_output_ts_vec_tree_pointers.
94         (write_ts_exp_tree_pointers): Rename from
95         lto_output_ts_exp_tree_pointers.
96         (write_ts_block_tree_pointers): Rename from
97         lto_output_ts_block_tree_pointers.
98         (write_ts_binfo_tree_pointers): Rename from
99         lto_output_ts_binfo_tree_pointers.
100         (write_ts_constructor_tree_pointers): Rename from
101         lto_output_ts_constructor_tree_pointers.
102         (write_ts_target_option): Rename from
103         lto_output_ts_target_option.
104         (write_ts_translation_unit_decl_tree_pointers): Rename from
105         lto_output_ts_translation_unit_decl_tree_pointers.
106         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
107         Rename from lto_streamer_cache_add_to_node_array.
108         (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
109         (record_common_node): Rename from lto_record_common_node.
110
111         * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
112         declarations.
113         * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
114         function.
115         * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
116         unused function.
117         * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
118         (ipa-reference.o): Likewise.
119         * lto-section-out.c: Include data-streamer.h.
120         * ipa-reference.c: Include data-streamer.h.
121
122 2011-08-12  Nick Clifton  <nickc@redhat.com>
123
124         * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi
125         pattern.
126         * doc/md.texi (cmpstrn): Note that the comparison stops if both
127         fetched bytes are zero.
128         (cmpstr): Likewise.
129         (cmpmem): Note that the comparison does not stop if both of the
130         fetched bytes are zero.
131
132 2011-08-12  Uros Bizjak  <ubizjak@gmail.com>
133
134         * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
135         BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
136         * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
137         BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
138         to integer_type_node.
139         * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
140         BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
141         * builtins.c (expand_builtin_in): Ditto.
142         (mathfn_built_in_1): Ditto.
143         (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
144         BUILT_IN_IFLOOR.
145         (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
146         BUILT_IN_IROUND.
147         (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
148         BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
149         BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
150
151 2011-08-12  Richard Guenther  <rguenther@suse.de>
152
153         * tree-vrp.c (extract_range_from_unary_expr_1): Implement
154         -X as 0 - X.
155
156 2011-08-12  Romain Geissler  <romain.geissler@gmail.com>
157
158         * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
159
160 2011-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
161
162         * config/arm/arm.c (get_label_padding): New function.
163         (create_fix_barrier, arm_reorg): Use it.
164
165 2011-08-11  Uros Bizjak  <ubizjak@gmail.com>
166
167         PR target/49781
168         * config/i386/i386.md (*lea_5_zext): New.
169         (*lea_6_zext): Ditto.
170         * config/i386/predicates.md (const_32bit_mask): New predicate.
171         (lea_address_operand): Reject AND.
172         * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
173         const_32bit_mask immediate.
174         (ix86_print_operand_address): Handle AND.
175         (memory_address_length): Ditto.
176
177 2011-08-11  Romain Geissler  <romain.geissler@gmail.com>
178             Brian Hackett  <bhackett1024@gmail.com>
179
180         * plugin.def: Add event for finish_decl.
181         * plugin.c (register_callback, invoke_plugin_callbacks): Same.
182         * c-decl.c (finish_decl): Invoke callbacks on above event.
183         * doc/plugins.texi: Document above event.
184
185 2011-08-11  Richard Guenther  <rguenther@suse.de>
186
187         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
188         lookups, make looking through aggregate copies stronger.
189
190 2011-08-11  Richard Henderson  <rth@redhat.com>
191
192         PR bootstrap/50018
193         * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
194
195 2011-08-11  Richard Guenther  <rguenther@suse.de>
196
197         * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
198         * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
199         (vrp_visit_stmt): Likewise.
200
201 2011-08-11  Richard Guenther  <rguenther@suse.de>
202
203         PR middle-end/50040
204         * gimplify.c (gimplify_modify_expr_complex_part): Mark the
205         load of the other piece with TREE_NO_WARNING.
206         * tree-flow.h (warn_uninit): Adjust prototype.
207         * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
208         the base variable and the expression that is used separately.
209         Properly query all TREE_NO_WARNING flags.
210         (struct walk_data): Remove.
211         (warn_uninitialized_var): Likewise.
212         (warn_uninitialized_vars): Do not walk gimple pieces but simply
213         look at all SSA uses of the statement.  Handle unused memory
214         separately.
215         * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
216
217 2011-08-11   Kazuhiro Inaoka  <kazuhiro.inaoka.ud@renesas.com>
218
219         * config/rx/rx.md (movsicc): Allow register to register transfers.
220         (*movsicc): Likewise.
221         (*stcc): Restrict this pattern to EQ and NE compares.
222         (*stcc_reg): New pattern.  Works for any comparison but only for
223         register transfers.
224
225 2011-08-11   Diego Novillo  <dnovillo@google.com>
226
227         * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
228         Call stream_write_tree instead of output_record_start.
229         (lto_output_ts_binfo_tree_pointers): Likewise.
230
231         * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
232         Convert it to a macro.
233         (stream_read_tree): Likewise.
234
235         * lto-streamer.h (lto_stream_as_builtin_p): Move ...
236         * tree-streamer.h (lto_stream_as_builtin_p): ... here.
237
238         * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
239         and tree_read_bitfields.
240         * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
241         (lto_write_tree): Call it.
242         * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
243         * streamer-hooks.h (struct streamer_hooks): Remove fields
244         name, is_streamable and alloc_tree. Update all users.
245         * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
246         (lto_materialize_tree): ... here.
247         Handle CALL_EXPR codes.
248         Remove call to lto_streamer_cache_append.
249         * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
250         * tree-streamer.h (tree_read_bitfields): Declare.
251
252         * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
253         (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
254         * tree-streamer.h (stream_read_tree): New.  Replace all calls
255         to lto_input_tree with it.
256         (stream_write_tree): New.  Replace all calls to lto_output_tree,
257         lto_output_tree_ref and lto_output_tree_or_ref with it.
258         * lto-streamer-in.c (lto_read_tree): Inline code from
259         lto_streamer_read_tree.
260         (lto_input_tree): Move from tree-streamer-in.c.
261         * lto-streamer-out.c (lto_output_tree_ref): Make static.
262         Remove handling of NULL values for EXPR.
263         Do not handle EXPRs that are not indexable.
264         (lto_write_tree): Move from tree-streamer-out.c.
265         Inline lto_streamer_write_tree.
266         (lto_output_tree): Move from tree-streamer-out.c.
267         If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
268         * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
269         (lto_preload_common_nodes): Likewise.
270         Remove assertions and adjustments for nodes
271         main_identifier_node, ptrdiff_type_node and fileptr_type_node.
272         (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
273         lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
274         * lto-streamer.h (lto_input_tree): Declare.
275         (lto_output_tree_ref): Remove.
276         * streamer-hooks.h (struct streamer_hooks): Remove fields
277         preload_common_nodes, indexable_with_decls_p,
278         pack_value_fields, unpack_value_fields and output_tree_header.
279         Update all users.
280         * tree-streamer-in.c (lto_materialize_tree): Make extern.
281         (lto_input_tree_pointers): Likewise.
282         (lto_read_tree): Move to lto-streamer-in.c.
283         (lto_input_integer_cst): Make extern.
284         (lto_get_pickled_tree): Likewise.
285         (lto_get_builtin_tree): Likewise.
286         (lto_input_tree): Move to lto-streamer-in.c.
287         * tree-streamer-out.c (pack_value_fields): Make extern.
288         (lto_output_tree_or_ref): Remove.  Replace all callers with
289         calls to stream_write_tree.
290         (lto_output_builtin_tree): Make extern.
291         (lto_streamer_write_tree): Inline into lto_write_tree.
292         (lto_output_tree_pointers): Make extern.
293         (lto_output_tree_header): Likewise.
294         (lto_output_integer_cst): Likewise.
295         (lto_write_tree): Move to lto-streamer-out.c.
296         (lto_output_tree): Likewise.
297         * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
298         (preload_common_nodes): Likewise.
299         (lto_streamer_cache_create): Call it.
300         * tree-streamer.h: Include streamer-hooks.h.
301         (stream_write_tree): New.
302         (stream_read_tree): New.
303         (lto_input_tree): Remove.
304         (lto_materialize_tree): Declare.
305         (lto_input_tree_pointers): Declare.
306         (lto_get_pickled_tree): Declare.
307         (lto_get_builtin_tree): Declare.
308         (lto_input_integer_cst): Declare.
309         (lto_output_tree_header): Declare.
310         (pack_value_fields): Declare.
311         (lto_output_tree_pointers): Declare.
312         (lto_output_integer_cst): Declare.
313         (lto_output_builtin_tree): Declare.
314
315 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
316
317         * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
318         only if producer writes to the register given by regno.
319
320 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
321             Alexander Monakov  <amonakov@ispras.ru>
322
323         * sched-deps.c (sched_get_condition_with_rev): Rename to ...
324         (sched_get_condition_with_rev_uncached): ... this.  Factor out
325         condition caching logic into ...
326         (sched_get_condition_with_rev): ... this.  Reimplement.  Do not
327         attempt to use cache for instructions with zero luid.
328         (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
329         * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
330
331 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
332
333         * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
334         get_seqno_for_a_jump.  Update the caller.
335         (get_seqno_by_succs): New.  Use it ...
336         (get_seqno_for_a_jump): ... here to find a seqno if looking at
337         predecessors was not sufficient.
338         (get_seqno_by_preds): Include head in iteration range, exclude insn.
339
340 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
341
342         * sel-sched-ir.c (invalidate_av_set): Remove the assert.
343
344 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
345
346         * sel-sched-ir.h (register_unavailable_p): Declare.
347         * sel-sched-ir.c (register_unavailable_p): New.  Use it...
348         (set_unavailable_target_for_expr): ... here to properly test
349         availability of a register.
350         (speculate_expr): Ditto.
351         * sel-sched.c (substitute_reg_in_expr): Ditto.
352         (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
353
354 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
355
356         * sel-sched.c (verify_target_availability): Fix usage of
357         hard_regno_nregs.
358
359 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
360
361         * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
362         recognized by cannot_copy_insn_p hook and volatile instructions.
363
364 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
365
366         * sel-sched-ir.c (merge_expr_data): Take maximum spec.
367
368 2011-08-11  Richard Sandiford  <richard.sandiford@linaro.org>
369
370         * doc/md.texi (define_bypass): Say that the instruction names can
371         be filename-style globs.
372         * Makefile.in (FNMATCH_H): Define.
373         (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
374         * genattrtab.c: Include fnmatch.h.
375         (bypass_list): Change field name from "insn" to "pattern".
376         (gen_bypass_1): Update accordingly.
377         (process_bypasses): Use fnmatch to check for matches between
378         insn reservations and define_bypasses.
379         * genautomata.c: Include fnmatch.h.
380         (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
381         and out_pattern respectively.
382         (gen_bypass, insert_bypass): Update accordingly.
383         (for_each_matching_insn, process_bypass_2, process_bypass_1)
384         (process_bypass): New functions.
385         (process_decls): Use process_bypass.  Update after field name changes.
386
387 2011-08-11  Georg-Johann Lay  <avr@gjlay.de>
388
389         PR target/49687
390         * config/avr/avr.md (smulqi3_highpart): New insn.
391         (umulqi3_highpart): New insn.
392         (*subqi3.ashiftrt7): New insn.
393         (smulhi3_highpart): New expander.
394         (umulhi3_highpart): Nex expander.
395         (*smulhi3_highpart_call): New insn.
396         (*umulhi3_highpart_call): New insn.
397         (extend_u): New code attribute.
398         (extend_prefix): Rename code attribute to extend_su.
399         * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
400         widening QI/HI multiply.
401
402 2011-08-11  Ira Rosen  <ira.rosen@linaro.org>
403
404         PR tree-optimization/50039
405         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
406         that DEF_STMT has a stmt_vec_info.
407
408 2011-08-10  Richard Guenther  <rguenther@suse.de>
409
410         * tree.h (can_trust_pointer_alignment): Remove.
411         * builtins.c (can_trust_pointer_alignment): Remove.
412
413 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
414
415         * c-typeck.c (scalar_to_vector): New function. Try scalar to
416         vector conversion.
417         (stv_conv): New enum for scalar_to_vector return type.
418         (build_binary_op): Adjust.
419         * doc/extend.texi: Description of scalar to vector expansion.
420
421 2011-08-10  Richard Guenther  <rguenther@suse.de>
422
423         * tree.h (get_pointer_alignment): Remove max-align argument.
424         (get_object_alignment): Likewise.
425         * builtins.c (get_object_alignment_1): Adjust.
426         (get_object_alignment): Remove max-align argument.
427         (get_pointer_alignment): Likewise.
428         (expand_builtin_strlen): Adjust.
429         (expand_builtin_memcpy): Likewise.
430         (expand_builtin_mempcpy_args): Likewise.
431         (expand_builtin_strncpy): Likewise.
432         (expand_builtin_memset_args): Likewise.
433         (expand_builtin_memcmp): Likewise.
434         (expand_builtin_strcmp): Likewise.
435         (expand_builtin_strncmp): Likewise.
436         (get_builtin_sync_mem): Likewise.
437         (fold_builtin_memset): Likewise.
438         (fold_builtin_memory_op): Likewise.
439         (expand_builtin_memory_chk): Likewise.
440         * emit-rtl.c (get_mem_align_offset): Likewise.
441         (set_mem_attributes_minus_bitpos): Likewise.
442         * expr.c (expand_assignment): Likewise.
443         (expand_expr_real_1): Likewise.
444         * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
445         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
446         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
447         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
448         * value-prof.c (gimple_stringops_transform): Likewise.
449
450 2011-08-10  Paulo J. Matos  <paulo.matos@csr.com>
451
452         * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
453         * doc/tm.texi: Regenerate.
454
455 2011-08-10  Georg-Johann Lay  <avr@gjlay.de>
456
457         PR target/29560
458         * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
459         (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
460         (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
461         Add peephole2 to map ashlhi3 to ashlqi3 if high part of
462         shift target is unused.
463
464 2011-08-10  Richard Guenther  <rguenther@suse.de>
465
466         PR tree-optimization/49937
467         * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
468         using get_object_alignment_1.
469
470 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
471
472         * config/i386/i386.c (ix86_emit_i387_round): New function.
473         * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
474         * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
475         Use ix86_emit_i387_round to expand round function for i387 math.
476         (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
477         Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
478
479 2011-08-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
480
481         * config/sync.c: Move to ../libgcc.
482         * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
483         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
484         Remove.
485
486 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
487
488         * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
489         * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
490         * config/mmix/mmix.c (mmix_register_move_cost): Make static.
491         Change 'from' and 'to' arguments type to reg_class_t.
492         (TARGET_REGISTER_MOVE_COST): Define.
493
494 2011-08-09  Vladimir Makarov  <vmakarov@redhat.com>
495
496         PR target/50026
497         Revert:
498         PR rtl-optimization/49990
499         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
500         ignore classes which can not change mode.
501         (find_costs_and_classes): Ditto.
502
503 2011-08-09  Richard Guenther  <rguenther@suse.de>
504
505         * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
506         information for ranges with only negative values.
507         (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
508         BIT_AND_EXPR handling to handle ranges with negative values.
509
510 2011-08-09  Kirill Yukhin  <kirill.yukhin@intel.com>
511
512         * config/i386/i386.c: Remove traling spaces.
513         * config/i386/sse.md: Likewise.
514         (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
515         (*fma_fmsub_<mode>): Likewise.
516         (*fma_fnmadd_<mode>): Likewise.
517         (*fma_fnmsub_<mode>): Likewise.
518
519 2011-08-09  Nick Clifton  <nickc@redhat.com>
520
521         * config/rx/rx.md: Disable extender peepholes at -O3.
522
523 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
524
525         PR target/49781
526         * config/i386/i386.md (reload_noff_load): New.
527         (reload_noff_store): Ditto.
528         * config/i386/i386.c (ix86_secondary_reload): Use
529         CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
530         double-word moves from/to non-offsetable addresses instead of
531         generating XMM temporary.
532
533 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
534
535         * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
536
537 2011-08-09  Ira Rosen  <ira.rosen@linaro.org>
538
539         PR tree-optimization/50014
540         * tree-vect-loop.c (vectorizable_reduction): Get def type before
541         calling vect_get_vec_def_for_stmt_copy ().
542
543 2011-08-08  Vladimir Makarov  <vmakarov@redhat.com>
544
545         PR rtl-optimization/49990
546         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
547         ignore classes which can not change mode.
548         (find_costs_and_classes): Ditto.
549
550 2011-08-08  Richard Henderson  <rth@redhat.com>
551
552         PR middle-end/49990
553         * config/i386/i386.c (ix86_expand_prologue): Call
554         for SEH target gen_prologue_use instead of gen_blockage
555         at prologue's end.
556
557 2011-08-08  Martin Jambor  <mjambor@suse.cz>
558
559         PR middle-end/49923
560         * tree-sra.c (access_precludes_ipa_sra_p): Also check access
561         memory alignment.
562
563 2011-08-08   Diego Novillo  <dnovillo@google.com>
564
565         * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
566         (DATA_STREAMER_H): New.
567         (GIMPLE_STREAMER_H): New.
568         (TREE_STREAMER_H): New.
569         (STREAMER_HOOKS_H): New.
570         (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
571         gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
572         tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
573         (data-streamer.o): New.
574         (data-streamer-in.o): New.
575         (data-streamer-out.o): New.
576         (gimple-streamer-in.o): New.
577         (gimple-streamer-out.o): New.
578         (streamer-hooks.o): New.
579         (tree-streamer.o): New.
580         (tree-streamer-in.o): New.
581         (tree-streamer-out.o): New.
582         (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
583         (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
584         GIMPLE_STREAMER_H and TREE_STREAMER_H.
585         (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
586         GIMPLE_STREAMER_H and TREE_STREAMER_H.
587         (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
588         (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
589         (ipa-inline-analysis.o): Likewise.
590         (ipa-pure-const.o): Likewise.
591         * data-streamer-in.c: New.
592         * data-streamer-out.c: New.
593         * data-streamer.c: New.
594         * data-streamer.h: New.
595         * gimple-streamer-in.c: New.
596         * gimple-streamer-out.c: New.
597         * gimple-streamer.h: New.
598         * ipa-inline-analysis.c: Include data-streamer.h.
599         * ipa-prop.c: Include data-streamer.h.
600         * ipa-pure-const.c: Include data-streamer.h.
601         * lto-cgraph.c: Include data-streamer.h.
602         * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
603         (lto_input_widest_uint_uleb128): Likewise.
604         (lto_input_sleb128): Likewise.
605         (bp_unpack_var_len_unsigned): Likewise.
606         (bp_unpack_var_len_int): Likewise.
607         * lto-section-out.c (lto_output_uleb128_stream): Move to
608         data-streamer-out.c.
609         (lto_output_widest_uint_uleb128_stream): Likewise.
610         (lto_output_sleb128_stream): Likewise.
611         (bp_pack_var_len_unsigned): Likewise.
612         (bp_pack_var_len_int): Likewise.
613         * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
614         (struct string_slot): Remove.  Update all users.
615         (lto_tag_check_set): Make extern.
616         (lto_tag_check_range): Move to lto-streamer.h.
617         (lto_tag_check): Likewise.
618         (hash_string_slot_node): Remove.  Update all users.
619         (eq_string_slot_node): Remove.  Update all users.
620         (string_for_index): Move to data-streamer-in.c
621         (input_string_internal): Likewise.
622         (input_string_cst): Move to tree-streamer-in.c.
623         (input_identifier): Likewise.
624         (lto_input_string): Move to data-streamer-in.c
625         (input_record_start): Move to data-streamer.h
626         (canon_file_name): Use new definition of struct string_slot
627         from data-streamer.h.  Set S_SLOT.LEN.
628         (lto_input_location): Make extern.
629         (lto_input_chain): Move to tree-streamer-in.c.
630         (lto_init_eh): Make extern.
631         (input_phi): Move to gimple-streamer-in.c.
632         (input_gimple_stmt): Likewise.
633         (input_bb): Likewise.
634         (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
635         (unpack_ts_real_cst_value_fields): Likewise.
636         (unpack_ts_fixed_cst_value_fields): Likewise.
637         (unpack_ts_decl_common_value_fields): Likewise.
638         (unpack_ts_decl_wrtl_value_fields): Likewise.
639         (unpack_ts_decl_with_vis_value_fields): Likewise.
640         (unpack_ts_function_decl_value_fields): Likewise.
641         (unpack_ts_type_common_value_fields): Likewise.
642         (unpack_ts_block_value_fields): Likewise.
643         (unpack_ts_translation_unit_decl_value_fields): Likewise.
644         (unpack_value_fields): Likewise.
645         (lto_materialize_tree): Likewise.
646         (lto_input_ts_common_tree_pointers): Likewise.
647         (lto_input_ts_vector_tree_pointers): Likewise.
648         (lto_input_ts_complex_tree_pointers): Likewise.
649         (lto_input_ts_decl_minimal_tree_pointers): Likewise.
650         (lto_input_ts_decl_common_tree_pointers): Likewise.
651         (lto_input_ts_decl_non_common_tree_pointers): Likewise.
652         (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
653         (lto_input_ts_field_decl_tree_pointers): Likewise.
654         (lto_input_ts_function_decl_tree_pointers): Likewise.
655         (lto_input_ts_type_common_tree_pointers): Likewise.
656         (lto_input_ts_type_non_common_tree_pointers): Likewise.
657         (lto_input_ts_list_tree_pointers): Likewise.
658         (lto_input_ts_vec_tree_pointers): Likewise.
659         (lto_input_ts_exp_tree_pointers): Likewise.
660         (lto_input_ts_block_tree_pointers): Likewise.
661         (lto_input_ts_binfo_tree_pointers): Likewise.
662         (lto_input_ts_constructor_tree_pointers): Likewise.
663         (lto_input_ts_target_option): Likewise.
664         (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
665         (lto_input_tree_pointers): Likewise.
666         (lto_get_pickled_tree): Likewise.
667         (lto_get_builtin_tree): Likewise.
668         (lto_read_tree): Likewise.
669         (lto_input_integer_cst): Likewise.
670         (lto_input_tree): Likewise.
671         * lto-streamer-out.c: Include data-streamer.h,
672         gimple-streamer.h and streamer-hooks.h.
673         (struct string_slot): Move to data-streamer.h.
674         (hash_string_slot_node): Likewise.
675         (eq_string_slot_node): Likewise.
676         (lto_string_index): Move to data-streamer-out.c.
677         (lto_output_string_with_length): Likewise.
678         (lto_output_string): Likewise.
679         (output_string_cst): Move to tree-streamer-out.c.
680         (output_identifier): Likewise.
681         (output_zero): Move to data-streamer-out.c
682         (output_uleb128): Likewise.
683         (output_sleb128): Likewise.
684         (output_record_start): Move to data-streamer.h
685         (pack_ts_base_value_fields): Move to tree-streamer-out.c.
686         (pack_ts_real_cst_value_fields): Likewise.
687         (pack_ts_fixed_cst_value_fields): Likewise.
688         (pack_ts_decl_common_value_fields): Likewise.
689         (pack_ts_decl_wrtl_value_fields): Likewise.
690         (pack_ts_decl_with_vis_value_fields): Likewise.
691         (pack_ts_function_decl_value_fields): Likewise.
692         (pack_ts_type_common_value_fields): Likewise.
693         (pack_ts_block_value_fields): Likewise.
694         (pack_ts_translation_unit_decl_value_fields): Likewise.
695         (pack_value_fields): Likewise.
696         (lto_output_chain): Likewise.
697         (lto_output_ts_common_tree_pointers): Likewise.
698         (lto_output_ts_vector_tree_pointers): Likewise.
699         (lto_output_ts_complex_tree_pointers): Likewise.
700         (lto_output_ts_decl_minimal_tree_pointers): Likewise.
701         (lto_output_ts_decl_common_tree_pointers): Likewise.
702         (lto_output_ts_decl_non_common_tree_pointers): Likewise.
703         (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
704         (lto_output_ts_field_decl_tree_pointers): Likewise.
705         (lto_output_ts_function_decl_tree_pointers): Likewise.
706         (lto_output_ts_type_common_tree_pointers): Likewise.
707         (lto_output_ts_type_non_common_tree_pointers): Likewise.
708         (lto_output_ts_list_tree_pointers): Likewise.
709         (lto_output_ts_vec_tree_pointers): Likewise.
710         (lto_output_ts_exp_tree_pointers): Likewise.
711         (lto_output_ts_block_tree_pointers): Likewise.
712         (lto_output_ts_binfo_tree_pointers): Likewise.
713         (lto_output_ts_constructor_tree_pointers): Likewise.
714         (lto_output_ts_target_option): Likewise.
715         (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
716         (lto_output_tree_pointers): Likewise.
717         (lto_output_tree_header): Likewise.
718         (lto_output_builtin_tree): Likewise.
719         (lto_write_tree): Likewise.
720         (lto_output_integer_cst): Likewise.
721         (lto_output_tree): Likewise.
722         (output_phi): Move to gimple-streamer-out.c.
723         (output_gimple_stmt): Likewise.
724         (output_bb): Likewise.
725         * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
726         (streamer_hooks): Move to streamer-hooks.c.
727         (check_handled_ts_structures): Move to tree-streamer.c
728         (lto_streamer_cache_add_to_node_array): Likewise.
729         (lto_streamer_cache_insert_1): Likewise.
730         (lto_streamer_cache_insert): Likewise.
731         (lto_streamer_cache_insert_at): Likewise.
732         (lto_streamer_cache_append): Likewise.
733         (lto_streamer_cache_lookup): Likewise.
734         (lto_streamer_cache_get): Likewise.
735         (lto_record_common_node): Likewise.
736         (lto_preload_common_nodes): Likewise.
737         (lto_streamer_cache_create): Likewise.
738         (lto_streamer_cache_delete): Likewise.
739         (streamer_hooks_init): Move to streamer-hooks.c.
740         * lto-streamer.h: Include diagnostic.h
741         (struct output_block, struct lto_input_block,
742         struct data_in, struct bitpack_d): Remove forward declarations.
743         (struct bitpack_d): Move to data-streamer.h.
744         (struct lto_streamer_cache_d): Move to tree-streamer.h.
745         (struct streamer_hooks): Move to streamer-hooks.h.
746         (bp_pack_var_len_unsigned): Move to data-streamer.h.
747         (bp_pack_var_len_int): Likewise.
748         (bp_unpack_var_len_unsigned): Likewise.
749         (bp_unpack_var_len_int): Likewise.
750         (lto_input_location): Declare.
751         (lto_tag_check_set): Declare.
752         (lto_init_eh): Declare.
753         (lto_output_tree_ref): Declare.
754         (lto_output_location): Declare.
755         (bitpack_create): Move to data-streamer.h.
756         (bp_pack_value): Likewise.
757         (lto_output_bitpack): Likewise.
758         (lto_input_bitpack): Likewise.
759         (bp_unpack_value): Likewise.
760         (lto_output_1_stream): Likewise.
761         (lto_input_1_unsigned): Likewise.
762         (lto_output_int_in_range): Likewise.
763         (lto_input_int_in_range): Likewise.
764         (bp_pack_int_in_range): Likewise.
765         (bp_unpack_int_in_range): Likewise.
766         (lto_output_enum): Likewise.
767         (lto_input_enum): Likewise.
768         (bp_pack_enum): Likewise.
769         (bp_unpack_enum): Likewise.
770         * streamer-hooks.c: New.
771         * streamer-hooks.h: New.
772         * tree-streamer-in.c: New.
773         * tree-streamer-out.c: New.
774         * tree-streamer.c: New.
775         * tree-streamer.h: New.
776
777 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
778
779         * gthr-posix95.h: Remove.
780         * gthr.h [_PTHREADS95]: Remove.
781         * configure.ac (enable_threads): Remove posix95.
782         * configure: Regenerate.
783         * doc/install.texi (Configuration, --enable-threads): Remove posix95.
784
785 2011-08-08  Uros Bizjak  <ubizjak@gmail.com>
786
787         PR target/49781
788         * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
789         SImode addresses.
790         (ix86_print_operand_address): Handle zero-extended addresses.
791         (memory_address_length): Add length of addr32 prefix for
792         zero-extended addresses.
793         (ix86_secondary_reload): Handle moves to/from double-word general
794         registers from/to zero-extended addresses.
795         * config/i386/predicates.md (lea_address_operand): Reject
796         zero-extended operands.
797
798 2011-08-08  H.J. Lu  <hongjiu.lu@intel.com>
799
800         PR other/48007
801         * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
802
803         * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
804         (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
805
806         * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
807         (_Unwind_Context_Reg_Val): Likewise.
808         (_Unwind_Get_Unwind_Word): Likewise.
809         (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
810         (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
811         (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
812         for EXTENDED_CONTEXT_BIT.
813         (__frame_state_for): Likewise.
814         (uw_init_context_1): Likewise.
815         (_Unwind_GetGR): Updated.
816         (_Unwind_SetGR): Likewise.
817         (_Unwind_GetGRPtr): Likewise.
818         (_Unwind_SetGRPtr): Likewise.
819         (_Unwind_SetGRValue): Likewise.
820         (_Unwind_GRByValue): Likewise.
821         (uw_install_context_1): Likewise.
822
823         * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
824         ASSUME_EXTENDED_UNWIND_CONTEXT.
825         * doc/tm.texi: Regenerated.
826
827 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
828
829         * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
830
831 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
832
833         * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
834         Linux/GNU-specific.
835         (DEC Alpha Options, -mtune): Likewise.
836         (MIPS Options, -march): native is supported on IRIX.
837
838 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
839
840         * config/sparc/driver-sparc.c: New file.
841         * config/sparc/x-sparc: New file.
842         * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
843         * config/sparc/sparc.opt (native): New value for enum processor_type.
844         * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
845         * config/sparc/sparc.c (sparc_option_override): Abort if
846         PROCESSOR_NATIVE gets here.
847         * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
848         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
849         DRIVER_SELF_SPECS): Define.
850         * doc/invoke.texi (SPARC Options, -mcpu): Document native.
851         (SPARC Options, -mtune): Likewise.
852         * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
853         Substitute result.
854         * configure: Regenerate.
855         * Makefile.in (EXTRA_GCC_LIBS): Set.
856         (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
857         (cpp$(exeext)): Likewise.
858
859 2011-08-08  Richard Guenther  <rguenther@suse.de>
860
861         * tree-vrp.c (extract_range_from_unary_expr_1): New function,
862         split out from ...
863         (extract_range_from_unary_expr): ... here.  Handle BIT_NOT_EXPR
864         by composition.
865
866 2011-08-08  Mikael Pettersson  <mikpe@it.uu.se>
867
868         PR tree-optimization/50005
869         * ipa-inline-analysis (remap_predicate): Add cast to
870         silence signed/unsigned comparison warning.
871
872 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
873
874         * modulo-sched.c (get_sched_window): Use a table for the debug output.
875         Print the current ii.
876         (sms_schedule_by_order): Reduce whitespace in dump line.
877
878 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
879
880         * modulo-sched.c (get_sched_window): Use just one loop for predecessors
881         and one loop for successors.  Fix upper bound of memory range.
882
883 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
884
885         PR target/50001
886         * config/alpha/alpha.c (alpha_instantiate_decls): New function.
887         (TARGET_INSTANTIATE_DECLS): New define.
888
889 2011-08-06  Paolo Bonzini  <bonzini@gnu.org>
890             Mikael Morin   <mikael.morin@sfr.fr>
891
892         * Makefile.in (INCLUDES_FOR_TARGET): New.
893         (LIBGCC2_CFLAGS): Use it.
894         (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
895
896 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
897
898         * config/i386/i386.c (ix86_compute_frame_layout): Simplify
899         frame->save_regs_using_mov calculation.
900
901 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
902
903         * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
904         * config/i386/sse.md (castmode): New mode attribute.
905         (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
906         avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
907
908 2011-08-05  Jan Hubicka  <jh@suse.cz>
909
910         PR middle-end/49494
911         * ipa-inline-analysis.c (remap_predicate): Add bounds check.
912
913 2011-08-05  Jan Hubicka  <jh@suse.cz>
914
915         PR middle-end/49500
916         * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
917         handle aliases.
918         (create_emultls_var):New function.
919         (ipa_lower_emutls): Handle aliases correctly.
920
921 2011-08-05  Jan Hubicka  <jh@suse.cz>
922
923         PR middle-end/49735
924         * ipa-inline.c (recursive_inlining): Look through aliases.
925
926 2011-08-05  Jason Merrill  <jason@redhat.com>
927
928         * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
929         declarations to beginning of function.
930
931 2011-08-05  Bernd Schmidt  <bernds@codesourcery.com>
932
933         PR rtl-optimization/49900
934         * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
935         ensure basic blocks stay in the same order.
936
937 2011-08-05  Aldy Hernandez  <aldyh@redhat.com>
938
939         * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
940         store_bit_field.
941         (s390_expand_atomic): Same.
942
943 2011-08-05  Richard Henderson  <rth@redhat.com>
944
945         PR rtl-opt/49977
946         * dwarf2cfi.c (scan_insn_after): Split out of ...
947         (scan_trace): ... here.  Correctly place notes wrt sequences.
948
949 2011-08-05  Kaz Kojima  <kkojima@gcc.gnu.org>
950             Richard Henderson  <rth@redhat.com>
951
952         PR rtl-opt/49982
953         * expr.c (fixup_args_size_notes): Look through no-op moves.
954
955 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
956
957         * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
958         of "m" for operand 0.  Add type and mode attribute.
959         (*pushxf_nointeger"): Use "<" constraint for operand 0.
960         (*pushdf_rex64): New pattern, split out of *pushdf.  Use "m"
961         constraint instead of "o" for opreand 1.
962         (*pushdf): Disable for TARGET_64BIT.  Correct mode attribute.
963         (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
964         operand 0, alternative 4.
965         (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
966
967 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
968
969         * config/i386/predicates.md (lea_address_operand): Rename from
970         no_seg_address_operand.
971         * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
972         (*lea_1_zext): Ditto.
973         (*lea_2): Ditto.
974         (*lea_2_zext): Ditto.
975
976 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
977
978         * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
979         parts.base and parts.index.
980         * config/i386/predicates.md (aligned_operand): Ditto.
981         (cmpxchg8b_pic_memory_operand): Ditto.
982
983 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
984
985         * config/soft-fp: Move to ../libgcc.
986         * Makefile.in (SFP_MACHINE): Remove.
987         (libgcc-support): Remove $(SFP_MACHINE) dependency.
988         * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
989         * config/arm/t-arm-softfp: Move to
990         ../libgcc/config/arm/t-softfp.
991         * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
992         * config/c6x/t-c6x-softfp: Remove.
993         * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
994         * config/i386/t-fprules-softfp: Move to
995         ../libgcc/config/t-softfp-tf.
996         * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
997         * config/ia64/t-fprules-softfp: Remove.
998         * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
999         * config/lm32/t-fprules-softfp: Remove.
1000         * config/moxie/sfp-machine.h: Remove.
1001         * config/moxie/t-moxie-softfp: Remove.
1002         * config/rs6000/darwin-ldouble-format: Move to
1003         ../libgcc/config/rs6000/ibm-ldouble-format.
1004         * config/rs6000/darwin-ldouble.c: Move to
1005         ../libgcc/config/rs6000/ibm-ldouble.c
1006         * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
1007         * config/rs6000/libgcc-ppc64.ver: Likewise.
1008         * config/rs6000/sfp-machine.h: Likewise.
1009         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
1010         $(srcdir)/config/rs6000/libgcc-ppc64.ver.
1011         (LIB2FUNCS_EXTRA): Remove.
1012         (TARGET_LIBGCC2_CFLAGS): Remove.
1013         * config/rs6000/t-aix52: Likewise
1014         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
1015         $(srcdir)/config/rs6000/darwin-ldouble.c.
1016         (SHLIB_MAPFILES): Remove.
1017         * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
1018         $(srcdir)/config/rs6000/darwin-ldouble.c.
1019         * config/rs6000/t-fprules-softfp: Move to
1020         ../libgcc/config/t-softfp-sfdf.
1021         * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
1022         * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
1023         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
1024         $(srcdir)/config/rs6000/darwin-ldouble.c.
1025         * config/score/sfp-machine.h: Move to ../libgcc/config/score.
1026         * config/score/t-score-softfp: Remove.
1027         * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
1028         soft-fp/t-softfp from tmake_file.
1029         (arm*-*-uclinux*): Likewise.
1030         (arm*-*-ecos-elf): Likewise.
1031         (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
1032         (arm*-*-rtems*): Likewise.
1033         (arm*-*-elf): Likewise.
1034         (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
1035         tmake_file.
1036         (moxie-*-uclinux*): Likewise.
1037         (moxie-*-rtems*): Likewise.
1038         (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
1039         tmake_file.
1040         (lm32-*-rtems*): Likewise.
1041         (lm32-*-uclinux*): Likewise.
1042         (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
1043         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
1044         (powerpc-*-linux*, powerpc64-*-linux*): Remove
1045         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
1046         (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
1047         tmake_file.
1048         (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
1049         tmake_file.
1050         (tic6x-*-uclinux): Likewise.
1051         (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
1052         soft-fp/t-softfp from tmake_file.
1053         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
1054         (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
1055         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
1056         (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
1057         (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
1058
1059 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1060
1061         * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
1062         (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
1063         (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
1064         TPBIT, TPBIT_FUNCS.
1065         * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
1066         * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
1067         Remove.
1068         * config/arm/t-vxworks: Likewise.
1069         * config/arm/t-wince-pe: Likewise.
1070         * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
1071         * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1072         * config/bfin/t-bfin-elf: Likewise.
1073         * config/bfin/t-bfin-linux: Likewise.
1074         * config/bfin/t-bfin-uclinux: Likewise.
1075         * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
1076         Remove.
1077         * config/fr30/t-fr30: Likewise.
1078         * config/frv/t-frv: Likewise.
1079         * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
1080         * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1081         * config/m32c/t-m32c: Likewise.
1082         * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
1083         * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1084         * config/mcore/t-mcore: Likewise.
1085         * config/mep/t-mep: Likewise.
1086         * config/microblaze/t-microblaze: Likewise.
1087         * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
1088         * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1089         * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
1090         * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1091         * config/mn10300/t-linux: Remove.
1092         * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1093         * config/pdp11/t-pdp11: Likewise.
1094         * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
1095         * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
1096         * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1097         (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
1098         * config/rs6000/t-aix52: Likewise.
1099         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
1100         $(srcdir)/config/rs6000/ppc64-fp.c.
1101         * config/rs6000/t-fprules-fpbit: Remove.
1102         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
1103         * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1104         * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
1105         * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1106         * config/sparc/t-elf: Likewise.
1107         * config/sparc/t-leon: Likewise.
1108         * config/sparc/t-leon3: Likewise.
1109         * config/spu/t-spu-elf: Likewise.
1110         (DPBIT_FUNCS): Remove.
1111         * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1112         * config/v850/t-v850: Likewise.
1113         * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
1114         (avr-*-*): Likewise.
1115         (h8300-*-rtems*): Set libgcc_tm_file.
1116         (h8300-*-elf*): Likewise.
1117         (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
1118         tmake_file.
1119         (powerpc-*-eabisim*): Likewise.
1120         (powerpc-*-elf*): Likewise.
1121         (powerpc-*-eabialtivec*): Likewise.
1122         (powerpc-xilinx-eabi*): Likewise.
1123         (powerpc-*-eabi*): Likewise.
1124         (powerpc-*-rtems*): Likewise.
1125         (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
1126         (powerpcle-*-elf*): Likewise.
1127         (powerpcle-*-eabisim*): Likewise.
1128         (powerpcle-*-eabi*): Likewise.
1129         (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
1130         (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
1131         * doc/fragments.texi (Target Fragment, Floating Point Emulation):
1132         Remove.
1133
1134 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1135
1136         * Makefile.in (UNWIND_H): Remove.
1137         (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
1138         ../libgcc/Makefile.in.
1139         (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
1140         (LIBUNWINDDEP): Remove.
1141         (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
1142         (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
1143         LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
1144         (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
1145         Don't copy $(UNWIND_H).
1146         * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
1147         * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
1148         * aclocal.m4: Regenerate.
1149         * configure: Regenerate.
1150         * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
1151         unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
1152         unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
1153         unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
1154         * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
1155         * config/arm/libunwind.S, config/arm/pr-support.c,
1156         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
1157         ../libgcc/config/arm.
1158         * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
1159         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
1160         * config/frv/t-frv ($(T)frvbegin$(objext)): Use
1161         $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
1162         ($(T)frvend$(objext)): Likewise.
1163         * config/ia64/t-glibc (LIB2ADDEH): Remove.
1164         * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
1165         * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
1166         config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
1167         ../libgcc/config/ia64.
1168         * config/ia64/t-hpux (LIB2ADDEH): Remove.
1169         * config/ia64/t-ia64 (LIB2ADDEH): Remove.
1170         * config/ia64/t-vms (LIB2ADDEH): Remove.
1171         * config/ia64/vms.h (UNW_IVMS_MODE,
1172         MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
1173         * config/picochip/t-picochip (LIB2ADDEH): Remove.
1174         * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
1175         * config/rs6000/t-darwin (LIB2ADDEH): Remove.
1176         * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
1177         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
1178         $(srcdir)/../libgcc to refer to unwinder sources.
1179         * config/spu/t-spu-elf (LIB2ADDEH): Remove.
1180         * config/t-darwin (LIB2ADDEH): Remove.
1181         * config/t-freebsd (LIB2ADDEH): Remove.
1182         * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
1183         * config/t-libunwind-elf: Move to ../libgcc/config.
1184         * config/t-linux (LIB2ADDEH): Remove.
1185         * config/t-sol2 (LIB2ADDEH): Remove.
1186         * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
1187         * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
1188
1189 2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
1190
1191         * config/i386/i386.c (processor_alias_table): Add core-avx-i.
1192
1193         * doc/invoke.texi: Document core-avx-i.
1194
1195 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1196
1197         * tsystem.h (CONST_CAST2, CONST_CAST): Define.
1198
1199 2011-08-05  Ira Rosen  <ira.rosen@linaro.org>
1200
1201         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
1202         result of multiple results reduction when extracting the final
1203         value using scalar code.
1204
1205 2011-08-05  Richard Guenther  <rguenther@suse.de>
1206
1207         PR tree-optimization/49984
1208         * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
1209
1210 2011-08-05  Richard Guenther  <rguenther@suse.de>
1211
1212         * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
1213         return true for constant integer ranges.
1214         (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
1215         BIT_IOR_EXPR handling.
1216
1217 2011-08-04  Kai Tietz  <ktietz@redhat.com>
1218
1219         * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
1220         ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
1221
1222 2011-08-04  Ira Rosen  <ira.rosen@linaro.org>
1223
1224         * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
1225         pattern def statement, and its access macro.
1226         (NUM_PATTERNS): Set to 5.
1227         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
1228         pattern def statement.
1229         (vect_transform_loop): Likewise.
1230         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
1231         function vect_recog_over_widening_pattern ().
1232         (vect_operation_fits_smaller_type): New function.
1233         (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
1234         Likewise.
1235         (vect_pattern_recog_1): Move the code that marks pattern
1236         statements to vect_mark_pattern_stmts (), and call it.  Update
1237         documentation.
1238         * tree-vect-stmts.c (vect_supportable_shift): New function.
1239         (vect_analyze_stmt): Handle pattern def statement.
1240         (new_stmt_vec_info): Initialize pattern def statement.
1241
1242 2011-08-04  Richard Henderson  <rth@redhat.com>
1243
1244         PR target/49964
1245         * config/i386/i386.c (ix86_expand_call): Don't create nested
1246         PARALLELs for TARGET_VZEROUPPER.
1247         (ix86_split_call_vzeroupper): Fix extraction of the original call.
1248         * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
1249         recognize nested PARALLELs.
1250         (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
1251         *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
1252         *sibcall_value_pop_vzeroupper): Likewise.
1253
1254 2011-08-04  Richard Henderson  <rth@redhat.com>
1255
1256         PR middle-end/49968
1257         * calls.c (expand_call): Use fixup_args_size_notes for
1258         emit_stack_restore.
1259         * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
1260         in non-standard modes.
1261
1262 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
1263
1264         * gcc.c (self_spec): New variable.
1265         (static_specs): Add self_spec.
1266         (main): Call do_self_spec on "self_spec" specs after reading
1267         user specs files.  Move compare_debug handling right after that.
1268
1269 2011-08-04  Richard Guenther  <rguenther@suse.de>
1270
1271         * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
1272         (value_range_nonnegative_p): New function.
1273         (ssa_name_nonnegative_p): Use it.
1274         (value_range_constant_singleton): New function.
1275         (op_with_constant_singleton_value_range): Use it.
1276         (extract_range_from_binary_expr_1): New function, split out from ...
1277         (extract_range_from_binary_expr): ... this.  Remove fallback
1278         constant folding done here.
1279
1280 2011-08-04  Richard Guenther  <rguenther@suse.de>
1281
1282         PR tree-optimization/49806
1283         * tree-vrp.c (op_with_boolean_value_range_p): New function.
1284         (simplify_truth_ops_using_ranges): Simplify.  Allow inserting
1285         a new statement for a final conversion to bool.
1286
1287 2011-08-04  Romain Geissler  <romain.geissler@gmail.com>
1288
1289         * gengtype-state.c: Include "bconfig.h" if
1290         GENERATOR_FILE is defined, "config.h" otherwise.
1291         * gengtype.c: Likewise.
1292         * gengtype-lex.l: Likewise.
1293         * gengtype-parse.c: Likewise.
1294         * Makefile.in (gengtype-lex.o-warn): New variable.
1295         (plugin_resourcesdir): Likewise.
1296         (plugin_bindir): Likewise.
1297         (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
1298         (MOSTLYCLEANFILES): Add gengtype$(exeext).
1299         (native): Depend on gengtype$(exeext) is $enable_plugin
1300         is set to "yes".
1301         (gtype.state): Depend on s-gtype. Use temporary file.
1302         (gengtype-lex.o): New rule.
1303         (gengtype-parse.o): Likewise.
1304         (gengtype-state.o): Likewise.
1305         (gengtype$(exeext)): Likewise.
1306         (install-gengtype): Likewise.
1307         (gengtype.o): Likewise.
1308         (build/gengtype.o): Depend on version.h.
1309         (build/gengtype-state): Depend on double-int.h, version.h,
1310         $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
1311         (install-plugin): Depend on install-gengtype.
1312
1313 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
1314
1315         PR middle-end/49905
1316         * tree.h (init_attributes): New prototype.
1317         * attribs.c (init_attributes): No longer static.
1318
1319 2011-08-04  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1320
1321         * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
1322         maybe_suffix.
1323
1324 2011-08-03   David Li  <davidxl@google.com>
1325
1326         * tree-optimize.c (execute_fixup_cfg): Fix up entry
1327         outgoing edge counts after inlining.
1328
1329 2011-08-03   David Li  <davidxl@google.com>
1330
1331         * profile.c (compute_branch_probabilities): Compute
1332         function frequency after profile annotation.
1333
1334 2011-08-04  Alan Modra  <amodra@gmail.com>
1335
1336         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
1337         use_backchain_to_restore_sp initialisation.
1338         (rs6000_legitimate_offset_address_p): Simplify offset test.
1339
1340 2011-08-03  Richard Henderson  <rth@redhat.com>
1341
1342         * config/spu/spu.md: Use define_c_enum instead of define_constants.
1343         (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
1344         (UNSPECV_NOP): New.
1345
1346 2011-08-03  Richard Henderson  <rth@redhat.com>
1347
1348         PR target/34888
1349         * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
1350
1351 2011-08-03  Jakub Jelinek  <jakub@redhat.com>
1352
1353         PR tree-optimization/49948
1354         * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
1355
1356 2011-08-03  Anatoly Sokolov  <aesok@post.ru>
1357
1358         * config/m32c/m32c.c (class_sizes): Remove.
1359         (reduce_class): Change arguments and return type to reg_class_t.
1360         Change type cc var to HARD_REG_SET. Change type best var to
1361         reg_class_t. Change type best_size var to unsigned int. Remove
1362         initialization class_sizes var. Use reg_class_size array instead
1363         of class_sizes. Use reg_class_contents array instead
1364         of class_contents.
1365
1366 2011-08-03  Richard Guenther  <rguenther@suse.de>
1367
1368         PR middle-end/49958
1369         * fold-const.c (fold_binary_loc): Only associate
1370         (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
1371         overflow wraps.
1372
1373 2011-08-03  Alan Modra  <amodra@gmail.com>
1374
1375         PR rtl-optimization/49941
1376         * jump.c (mark_jump_label): Comment.
1377         (mark_jump_label_1): Set JUMP_LABEL for return jumps.
1378         * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
1379         (mark_used_flags): Don't mark RETURN.
1380
1381 2011-08-03  Richard Guenther  <rguenther@suse.de>
1382
1383         PR tree-optimization/49938
1384         * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
1385         deal with a POLYNOMIAL_CHREC.
1386
1387 2011-08-03  Revital Eres  <revital.eres@linaro.org>
1388
1389         * modulo-sched.c (calculate_stage_count,
1390         calculate_must_precede_follow, get_sched_window,
1391         try_scheduling_node_in_cycle, remove_node_from_ps): Add
1392         declaration.
1393         (update_node_sched_params, set_must_precede_follow, optimize_sc):
1394         New functions.
1395         (reset_sched_times): Call update_node_sched_params.
1396         (sms_schedule): Call optimize_sc.
1397         (get_sched_window): Change function arguments.
1398         (sms_schedule_by_order): Update call to get_sched_window.
1399         Call set_must_precede_follow.
1400         (calculate_stage_count): Add function argument.
1401
1402 2011-08-02  Richard Henderson  <rth@redhat.com>
1403
1404         PR target/49864
1405         PR target/49879
1406         * reg-notes.def (REG_ARGS_SIZE): New.
1407         * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
1408         (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
1409         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
1410         different stack levels.
1411         * combine-stack-adj.c (adjust_frame_related_expr): Remove.
1412         (maybe_move_args_size_note): New.
1413         (combine_stack_adjustments_for_block): Use it.
1414         * combine.c (distribute_notes): Place REG_ARGS_SIZE.
1415         * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
1416         (dw_trace_info): Add beg_true_args_size, end_true_args_size,
1417         beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
1418         (cur_cfa): New.
1419         (queued_args_size): Remove.
1420         (add_cfi_args_size): Assert size is non-negative.
1421         (stack_adjust_offset, dwarf2out_args_size): Remove.
1422         (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
1423         (notice_args_size, notice_eh_throw): New.
1424         (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
1425         (dwarf2out_frame_debug_adjust_cfa): Likewise.
1426         (dwarf2out_frame_debug_cfa_offset): Likewise.
1427         (dwarf2out_frame_debug_expr): Likewise.  Don't stack_adjust_offset.
1428         (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
1429         (change_cfi_row): Don't emit args_size.
1430         (maybe_record_trace_start_abnormal): Split out from ...
1431         (maybe_record_trace_start): Here.  Set args_size_undefined.
1432         (create_trace_edges): Update to match.
1433         (scan_trace): Handle REG_ARGS_SIZE.
1434         (connect_traces): Connect args_size between EH insns.
1435         * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
1436         * explow.c (suppress_reg_args_size): New.
1437         (adjust_stack_1): Split out from ...
1438         (adjust_stack): ... here.
1439         (anti_adjust_stack): Use it.
1440         (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
1441         * expr.c (mem_autoinc_base): New.
1442         (fixup_args_size_notes): New.
1443         (emit_single_push_insn_1): Rename from emit_single_push_insn.
1444         (emit_single_push_insn): New.  Generate REG_ARGS_SIZE.
1445         * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
1446         * reload1.c (reload_as_needed): Likewise.
1447         * rtl.h (fixup_args_size_notes): Declare.
1448
1449 2011-08-02  Paolo Carlini  <paolo.carlini@oracle.com>
1450
1451         PR bootstrap/49914
1452         * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
1453         of abs.
1454         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
1455         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
1456
1457 2011-08-02  Richard Henderson  <rth@redhat.com>
1458
1459         * config/h8300/h8300.c (push, pop): Return the insn.
1460         (h8300_swap_into_er6): Generate correct unwind info.
1461         (h8300_swap_out_of_er6): Likewise.
1462         * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
1463         complex cfa expression.
1464         (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
1465
1466 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
1467
1468         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
1469
1470 2011-08-02  Richard Henderson  <rth@redhat.com>
1471
1472         PR target/49878
1473         * config/h8300/h8300.c (h8300_move_ok): New.
1474         * config/h8300/h8300-protos.h: Declare it.
1475         * config/h8300/h8300.md (P): New mode iterator.
1476         (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
1477         (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
1478         (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
1479         (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
1480         (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
1481         and pushqi1_h8300hs_normal; use PRE_MODIFY and
1482         register_no_sp_elim_operand.
1483         (*pushhi1_h8300hs_<P>): Similarly.
1484         (pushqi1, pushhi1, pushhi1_h8300): Remove.
1485         * config/h8300/predicates.md (register_no_sp_elim_operand): New.
1486
1487 2011-08-02  Richard Henderson  <rth@redhat.com>
1488
1489         PR target/49881
1490         * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
1491
1492 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
1493
1494         * c-parser.c (enum c_parser_prec): New enum, moved from within
1495         c_parser_binary_expression.
1496         (c_parser_binary_expression): Add PREC argument.  Stop parsing
1497         if operator has lower or equal precedence than PREC.
1498         (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
1499         callers.
1500         (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
1501         Adjust c_finish_omp_atomic caller.
1502         (c_parser_omp_taskyield): New function.
1503         (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
1504         (c_parser_omp_clause_name): Handle final and mergeable clauses.
1505         (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
1506         functions.
1507         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
1508         and PRAGMA_OMP_CLAUSE_MERGEABLE.
1509         (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
1510         (c_parser_omp_clause_reduction): Handle min and max.
1511         * c-typeck.c (c_finish_omp_clauses): Don't complain about
1512         const qualified predetermined vars in firstprivate clause.
1513         andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
1514         Handle MIN_EXPR and MAX_EXPR.
1515         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
1516         and OMP_CLAUSE_MERGEABLE.
1517         (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
1518         and OMP_ATOMIC_CAPTURE_NEW.
1519         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
1520         OMP_CLAUSE_MERGEABLE.
1521         (omp_clause_code_name): Likewise.
1522         (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
1523         * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
1524         and OMP_CLAUSE_MERGEABLE.
1525         (OMP_CLAUSE_FINAL_EXPR): Define.
1526         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
1527         OMP_CLAUSE_MERGEABLE.
1528         (expand_task_call): Likewise.
1529         (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
1530         (expand_omp_atomic_fetch_op): Handle cases where old or new
1531         value is needed afterwards.
1532         (expand_omp_atomic): Call expand_omp_atomic_load resp.
1533         expand_omp_atomic_store.
1534         * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
1535         OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
1536         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
1537         OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
1538         * tree-nested.c (convert_nonlocal_omp_clauses,
1539         convert_local_omp_clauses): Likewise.
1540         * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
1541         OMP_ATOMIC_CAPTURE_NEW): New.
1542         * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
1543         (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
1544         New inlines.
1545         * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
1546         * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
1547         OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
1548
1549 2011-08-02  Kai Tietz  <ktietz@redhat.com>
1550
1551         * gimple.c (canonicalize_cond_expr_cond): Handle cast from
1552         boolean-type.
1553         (ssa_forward_propagate_and_combine): Interprete result of
1554         forward_propagate_comparison.
1555         * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
1556         boolean-typed operands for comparisons.
1557
1558 2011-08-02  Georg-Johann Lay  <avr@gjlay.de>
1559
1560         * config/avr/libgcc.S: Gather related function in the
1561         same input section.
1562         (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
1563         __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
1564         references.
1565         (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
1566         __udivmodsi4, __divmodsi4, __prologue_saves__,
1567         __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
1568         __do_copy_data, __do_clear_bss, __do_global_ctors,
1569         __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
1570
1571 2011-08-02  Uros Bizjak  <ubizjak@gmail.com>
1572
1573         PR target/47766
1574         * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
1575         (stack_protect_test): The pattern compares ptr_mode value.
1576
1577 2011-08-02  Alan Modra  <amodra@gmail.com>
1578
1579         * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
1580         note for save_LR_around_toc_setup sequence.
1581
1582 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
1583
1584         * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
1585
1586 2011-08-01  Sebastian Pop  <sebastian.pop@amd.com>
1587             Joseph Myers  <joseph@codesourcery.com>
1588
1589         * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
1590         * hwint.c: Include diagnostic-core.h.
1591         (abs_hwi): New.
1592         (gcd): Moved here...
1593         (pos_mul_hwi): New.
1594         (mul_hwi): New.
1595         (least_common_multiple): Moved here...
1596         * hwint.h (gcd): ... from here.
1597         (least_common_multiple): ... from here.
1598         (HOST_WIDE_INT_MIN): New.
1599         (HOST_WIDE_INT_MAX): New.
1600         (abs_hwi): Declared.
1601         (gcd): Declared.
1602         (pos_mul_hwi): Declared.
1603         (mul_hwi): Declared.
1604         (least_common_multiple): Declared.
1605         * omega.c (check_pos_mul): Removed.
1606         (check_mul): Removed.
1607         (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
1608         mul_hwi instead of check_mul.
1609
1610 2011-08-01  Richard Henderson  <rth@redhat.com>
1611
1612         PR target/49881
1613         * config/avr/avr.h (PUSH_ROUNDING): New.
1614         * config/avr/avr.md (pushqi1): Rename from *pushqi.
1615         (*pushhi, *pushsi, *pushsf): Remove.
1616         (MPUSH): New mode iterator.
1617         (push<MPUSH>1): New expander.
1618
1619 2011-08-01  Anatoly Sokolov  <aesok@post.ru>
1620
1621         * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
1622         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
1623         * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
1624         mmix_preferred_output_reload_class): Remove.
1625         * config/mmix/mmix.c (mmix_preferred_reload_class,
1626         mmix_preferred_output_reload_class): Make static. Change rclass
1627         argument and return type to reg_class_t.
1628         (TARGET_PREFERRED_RELOAD_CLASS,
1629         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
1630
1631 2011-08-01  Joern Rennecke  <joern.rennecke@embecosm.com>
1632
1633         * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
1634         handling.
1635
1636 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
1637
1638         PR target/47766
1639         * config/i386/i386.md (PTR): New.
1640         (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
1641         (stack_protect_test): Likewise.
1642         (stack_protect_set_<mode>): Replace ":P" with ":PTR".
1643         (stack_tls_protect_set_<mode>): Likewise.
1644         (stack_tls_protect_test_<mode>): Likewise.
1645
1646 2011-08-01  Uros Bizjak  <ubizjak@gmail.com>
1647
1648         PR target/49927
1649         * config/i386/i386.c (ix86_address_subreg_operand): New.
1650         (ix86_decompose_address): Use ix86_address_subreg_operand.
1651         (ix86_legitimate_address_p): Do not assert that subregs satisfy
1652         register_no_elim_operand in DImode.
1653
1654 2011-08-01  Ira Rosen  <ira.rosen@linaro.org>
1655
1656         PR tree-optimization/49926
1657         * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
1658         in a chain doesn't have uses both inside and outside the loop.
1659
1660 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
1661
1662         * config/avr/avr.h (mcu_type_s): Add errata_skip field.
1663         * config/avr/avr-devices.c (avr_mcu_types): Use it.
1664         * config/avr/avr-mcus.def (AVR_MCU): Use it.
1665         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
1666         define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
1667         * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
1668         Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
1669         to detect if XJMP must not be skipped.
1670
1671 2011-08-02  Alan Modra  <amodra@gmail.com>
1672
1673         * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
1674         Delete.
1675         * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
1676         (rs6000_emit_prologue): Don't prematurely return when
1677         TARGET_SINGLE_PIC_BASE.  Don't emit eh_frame info in
1678         save_toc_in_prologue case.
1679         (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
1680         calls_alloca.
1681
1682 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
1683
1684         * config/avr/avr-devices.c: Delete SVN property svn:executable.
1685         * config/avr/predicates.md: Ditto.
1686         * config/avr/driver-avr.c: Ditto.
1687         * config/avr/genopt.sh: Set SVN property svn:executable to *.
1688
1689 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
1690
1691         * calls.c (emit_library_call_value_1): Declare size only if
1692         BLOCK_REG_PADDING is defined.
1693
1694 2011-08-01  Kirill Yukhin  <kirill.yukhin@intel.com>
1695
1696         PR target/49547
1697         * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
1698         (x86_64-*-*): Likewise.
1699         * config/i386/i386.opt (mlzcnt): New.
1700         * config/i386/abmintrin.h: File removed.
1701         (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
1702         * config/i386/lzcntintrin.h: ... here.  New file.
1703         (__lzcnt): Rename to ...
1704         (__lzcnt32): ... this.
1705         * config/i386/bmiintrin.h (head): Update copyright year.
1706         (__lzcnt_u16): Removed.
1707         (__lzcnt_u32): Likewise.
1708         (__lzcnt_u64): Likewise.
1709         * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
1710         is defined, remove abmintrin.h.
1711         * config/i386/cpuid.h (bit_LZCNT): New.
1712         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1713         LZCNT feature.
1714         * config/i386/i386-c.c (ix86_target_macros_internal): Define
1715         __LZCNT__ if needed.
1716         * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
1717         (ix86_option_override_internal): Handle LZCNT option.
1718         (ix86_valid_target_attribute_inner_p): Likewise.
1719         (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
1720         * config/i386/i386.h (TARGET_LZCNT): New.
1721         (CLZ_DEFINED_VALUE_AT_ZERO): Update.
1722         * config/i386/i386.md (clz<mode>2): Update insn constraint.
1723         (clz<mode>2_lzcnt): Likewise.
1724         * doc/invoke.texi: Mention -mlzcnt option.
1725         * doc/extend.texi: Likewise.
1726
1727 2011-08-01  Julian Brown  <julian@codesourcery.com>
1728
1729         * configure.ac (fixed-point): Add ARM support.
1730         * configure: Regenerate.
1731         * config/arm/arm.c (arm_fixed_mode_set): New struct.
1732         (arm_set_fixed_optab_libfunc): New.
1733         (arm_set_fixed_conv_libfunc): New.
1734         (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
1735         ARM-specific names.
1736         (aapcs_libcall_value): Return sub-word-size fixed-point libcall
1737         return values in SImode.
1738         (arm_return_in_msb): Return fixed-point types in the msb.
1739         (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
1740         upwards.
1741         (arm_scalar_mode_supported_p): Support fixed-point modes.
1742         (arm_vector_mode_supported_p): Support vector fixed-point modes.
1743         * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
1744         (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
1745         (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
1746         (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
1747         * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
1748         New mode iterators.
1749         (qaddsub_suf): New mode attribute.
1750         * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
1751         vector modes.
1752         * config/arm/predicates.md (sat_shift_operator): New predicate.
1753         * config/arm/arm-fixed.md: New.
1754         * config/arm/arm.md: Include arm-fixed.md.
1755         * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
1756
1757 2011-08-01  Julian Brown  <julian@codesourcery.com>
1758
1759         * calls.c (emit_library_call_value_1): Support padding for libcall
1760         arguments and return values.
1761         * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
1762         downwards in big-endian mode.
1763
1764 2011-08-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1765
1766         PR debug/49887
1767         * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
1768         * config/sol2-protos.h: Likewise.
1769         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
1770         solaris_code_end.
1771         * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
1772         * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
1773         solaris_file_end.
1774         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
1775
1776 2011-08-01  Julian Brown  <julian@codesourcery.com>
1777
1778         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
1779
1780 2011-08-01  Julian Brown  <julian@codesourcery.com>
1781
1782         * final.c (output_addr_const): Print fixed-point constants as
1783         decimal not hex.
1784
1785 2011-08-01  Richard Guenther  <rguenther@suse.de>
1786
1787         * stor-layout.c (initialize_sizetypes): Properly sign-extend
1788         bitsiztype TYPE_MAX_VALUE.
1789
1790 2011-08-01  Julian Brown  <julian@codesourcery.com>
1791
1792         * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
1793         comparison helpers.
1794
1795 2011-07-31  Richard Henderson  <rth@redhat.com>
1796
1797         * config/h8300/crti.asm: Add flags to .section directive.
1798         * config/h8300/crtn.asm: Likewise.
1799
1800 2011-07-31  Richard Henderson  <rth@redhat.com>
1801
1802         * stor-layout.c (initialize_sizetypes): Handle unsigned short.
1803         * tree.c (build_common_tree_nodes): Likewise.
1804
1805 2011-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
1806
1807         PR target/49880
1808         * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
1809         (divsi3_i1): Likewise.
1810
1811 2011-07-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1812
1813         PR tree-optimization/49749
1814         * tree-ssa-reassoc.c (get_rank): New forward declaration.
1815         (PHI_LOOP_BIAS): New macro.
1816         (phi_rank): New function.
1817         (loop_carried_phi): Likewise.
1818         (propagate_rank): Likewise.
1819         (get_rank): Add calls to phi_rank and propagate_rank.
1820
1821 2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>
1822
1823         * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
1824         of TARGET_64BIT.
1825         (PTRDIFF_TYPE): Likewise.
1826
1827 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
1828
1829         PR target/49920
1830         * config/i386/i386.md (strset): Do not expand strset_singleop
1831         when %eax or $edi are fixed.
1832         (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
1833         (*strsetsi_1): Ditto.
1834         (*strsethi_1): Ditto.
1835         (*strsetqi_1): Ditto.
1836         (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
1837         (*rep_stossi): Ditto.
1838         (*rep_stosqi): Ditto.
1839         (*strlenqi_1): Ditto.
1840         (cmpstrnsi): Also fail when %ecx is fixed.
1841         (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
1842         (*cmpstrnqi_1): Ditto.
1843         (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
1844         (*strmovsi_1): Ditto.
1845         (*strmovhi_1): Ditto.
1846         (*strmovqi_1): Ditto.
1847         (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
1848         (*rep_movsi): Ditto.
1849         (*rep_movqi): Ditto.
1850
1851 2011-07-31  Mikael Pettersson  <mikpe@it.uu.se>
1852
1853         PR target/47908
1854         * config/m68k/m68k.c (m68k_override_options_after_change): New function.
1855         Disable instruction scheduling for non-ColdFire targets.
1856         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
1857
1858 2011-07-31  Revital Eres  <revital.eres@linaro.org>
1859
1860         * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
1861         of anti-dep edge from a branch.
1862         (add_cross_iteration_register_deps): Create anti-dep edge from
1863         a branch.
1864
1865 2011-07-31  Revital Eres  <revital.eres@linaro.org>
1866
1867         * modulo-sched.c: Change comment.
1868         (reset_sched_times): Fix print message.
1869         (print_partial_schedule): Add print info.
1870
1871 2011-07-31  Tom de Vries  <tom@codesourcery.com>
1872
1873         PR middle-end/43513
1874         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
1875         get_object_alignment and TYPE_ALIGN.
1876
1877 2011-07-30  Tom de Vries  <tom@codesourcery.com>
1878
1879         PR middle-end/43513
1880         * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
1881         (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
1882
1883 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1884
1885         * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
1886         <sys/sbd.h>.
1887         (cpu_types): New array.
1888         (cputype): New function.
1889         (host_detect_local_cpu): Only define buf, f if !__sgi__.
1890         Use scaninvent instead of /proc/cpuinfo if __sgi__.
1891         * config.host: Also use driver-native.o, mips/x-native on
1892         mips-sgi-irix*.
1893         * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
1894         (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
1895         (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
1896
1897 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
1898
1899         PR middle-end/49897
1900         PR middle-end/49898
1901         * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
1902         in nested parallel and outer is a gimple_reg, mark it as addressable
1903         and set its bit in task_shared_vars bitmap too.
1904
1905 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
1906
1907         * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
1908
1909 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1910
1911         * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
1912         IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
1913         (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
1914         AMASK_LOCKPFTCHOK): Define.
1915         (host_detect_local_cpu): Remove buf, f, cpu_names.
1916         Define cpu_types, implver, amask.
1917         Use __builtin_alpha_implver, __builtin_alpha_amask to determine
1918         native CPU.
1919         * config.host: Also use driver-alpha.o, alpha/x-alpha on
1920         alpha*-dec-osf*.
1921         * config/alpha/osf5.h [__alpha__ || __alpha]
1922         (host_detect_local_cpu): Declare.
1923         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
1924         (DRIVER_SELF_SPECS): Define.
1925
1926 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
1927
1928         PR target/47715
1929         * config/i386/i386.md (*load_tp_x32): New.
1930         (*load_tp_x32_zext): Ditto.
1931         (*add_tp_x32): Ditto.
1932         (*add_tp_x32_zext): Ditto.
1933         (*load_tp_<mode>): Disable for TARGET_X32 targets.
1934         (*add_tp_<mode>): Ditto.
1935         * config/i386/i386.c (get_thread_pointer): Load thread pointer in
1936         ptr_mode and convert to Pmode if needed.
1937
1938 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
1939
1940         PR target/49687
1941         * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
1942         muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
1943         *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
1944         Add X to register footprint: Clobber r26/r27.
1945
1946 2011-07-29  Richard Guenther  <rguenther@suse.de>
1947
1948         * builtins.c (fold_builtin_signbit): Build the comparison
1949         with a proper type.
1950
1951 2011-07-29  Richard Guenther  <rguenther@suse.de>
1952
1953         PR tree-optimization/49893
1954         * tree-predcom.c (suitable_reference_p): Volatile references
1955         are not suitable.
1956
1957 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
1958
1959         PR target/49313
1960         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
1961         (__ctzsi2): Result for 0 may be undefined.
1962         (__ctzhi2): Result for 0 may be undefined.
1963         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
1964         (__popcountsi2): Ditto. And don't clobber r26.
1965         (__popcountdi2): Ditto. And don't clobber r27.
1966         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
1967         (parityhi2): New expand.
1968         (paritysi2): New expand.
1969         (popcounthi2): New expand.
1970         (popcountsi2): New expand.
1971         (clzhi2): New expand.
1972         (clzsi2): New expand.
1973         (ctzhi2): New expand.
1974         (ctzsi2): New expand.
1975         (ffshi2): New expand.
1976         (ffssi2): New expand.
1977         (copysignsf3): New insn.
1978         (bswapsi2): New expand.
1979         (*parityhi2.libgcc): New insn.
1980         (*parityqihi2.libgcc): New insn.
1981         (*paritysihi2.libgcc): New insn.
1982         (*popcounthi2.libgcc): New insn.
1983         (*popcountsi2.libgcc): New insn.
1984         (*popcountqi2.libgcc): New insn.
1985         (*popcountqihi2.libgcc): New insn-and-split.
1986         (*clzhi2.libgcc): New insn.
1987         (*clzsihi2.libgcc): New insn.
1988         (*ctzhi2.libgcc): New insn.
1989         (*ctzsihi2.libgcc): New insn.
1990         (*ffshi2.libgcc): New insn.
1991         (*ffssihi2.libgcc): New insn.
1992         (*bswapsi2.libgcc): New insn.
1993
1994 2011-07-29  Richard Guenther  <rguenther@suse.de>
1995
1996         * tree-vrp.c (get_value_range): Only set parameter default
1997         definitions to varying, leave others at undefined.
1998         (extract_range_from_binary_expr): Fix undefined handling.
1999         (vrp_visit_phi_node): Handle merged undefined state.
2000
2001 2011-07-29  Wei Guozhi  <carrot@google.com>
2002
2003         PR rtl-optimization/49799
2004         * combine.c (make_compound_operation): Check if the bit field is valid
2005         before change it to bit field extraction.
2006
2007 2011-07-29  Bernd Schmidt  <bernds@codesourcery.com>
2008
2009         PR rtl-optimization/49891
2010         * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
2011         newly created returnjumps.
2012
2013 2011-07-28  DJ Delorie  <dj@redhat.com>
2014
2015         * expr.c (expand_expr_addr_expr_1): Detect a user request for a
2016         local frame in a naked function, and produce a suitable error for
2017         that specific case.
2018
2019         * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
2020         registers to be reloaded in HI classes when the target is HI.
2021
2022 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
2023
2024         * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
2025         bound_one, bound_two.
2026
2027 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
2028
2029         PR middle-end/48648
2030         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
2031         CLAST assignments.
2032         (translate_clast): Same.
2033         (translate_clast_assignment): New.
2034
2035 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
2036
2037         PR tree-optimization/49876
2038         * sese.c (rename_uses): Do not return false on gloog_error: set
2039         the new_expr to integer_zero_node and continue code generation.
2040         (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
2041
2042 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
2043
2044         PR debug/49846
2045         * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
2046         arguments also check if they aren't initialized with a MODE_INT
2047         mode of the same size.
2048
2049 2011-07-28  Aldy Hernandez  <aldyh@redhat.com>
2050
2051         * expr.c (get_bit_range): Handle *MEM_REF's.
2052
2053 2011-07-28  Bernd Schmidt  <bernds@codesourcery.com>
2054
2055         * rtlanal.c (tablejump_p): False for returns.
2056         * reorg.c (first_active_target_insn): New static function.
2057         (find_end_label): Set JUMP_LABEL for a new returnjump.
2058         (optimize_skip, get_jump_flags, rare_destination,
2059         mostly_true_jump, get_branch_condition,
2060         steal_delay_list_from_target, own_thread_p,
2061         fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
2062         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
2063         dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
2064         * jump.c (delete_related_insns): Likewise.
2065         (jump_to_label_p): New function.
2066         (redirect_target): New static function.
2067         (redirect_exp_1): Use it.  Adjust to handle ret_rtx in JUMP_LABELS.
2068         (redirect_jump_1): Assert that the new label is nonnull.
2069         (redirect_jump): Likewise.
2070         (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
2071         * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
2072         exit block.
2073         (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE.  All callers
2074         changed.  Ensure that the right label is passed to redirect_jump.
2075         * function.c (emit_return_into_block,
2076         thread_prologue_and_epilogue_insns): Ensure new returnjumps have
2077         ret_rtx in their JUMP_LABEL.
2078         * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
2079         * emit-rtl.c (skip_consecutive_labels): Allow the caller to
2080         pass ret_rtx as label.
2081         * cfglayout.c (fixup_reorder_chain): Use
2082         force_nonfallthru_and_redirect rather than force_nonfallthru.
2083         (duplicate_insn_chain): Copy JUMP_LABELs for returns.
2084         * rtl.h (ANY_RETURN_P): New macro.
2085         (jump_to_label_p): Declare.
2086         * resource.c (find_dead_or_set_registers): Handle ret_rtx in
2087         JUMP_LABELs.
2088         (mark_target_live_regs): Likewise.
2089         * basic-block.h (force_nonfallthru_and_redirect): Declare.
2090         * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
2091         * config/alpha/alpha.c (alpha_tablejump_addr_vec,
2092         alpha_tablejump_best_label): Remove functions.
2093         * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
2094         alpha_tablejump_best_label): Remove declarations.
2095         * config/sh/sh.c (barrier_align, split_branches): Adjust for
2096         ret_rtx in JUMP_LABELs.
2097         * config/arm/arm.c (is_jump_table): Likewise.
2098
2099 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
2100
2101         * config/i386/predicates.md (pic_32bit_opreand): Do not define as
2102         special predicate.  Remove explicit mode checks.
2103
2104 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
2105
2106         * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
2107         DW_AT_data_member_location containing just DW_OP_plus_uconst.
2108
2109         PR debug/49871
2110         * dwarf2out.c (size_of_die, value_format, output_die): Use
2111         DW_FORM_udata instead of DW_FORM_data[48] for
2112         dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
2113
2114 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
2115
2116         * config/i386/i386.md (*tls_global_dynamic_64): Update
2117         length attribute.
2118
2119 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
2120
2121         PR target/47715
2122         * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
2123         tls_symbolic_operand check.  Update code sequence for TARGET_X32.
2124         (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
2125         (tls_dynamic_gnu2_64): Ditto.
2126         (*tls_dynamic_gnu2_lea_64): Ditto.
2127         (*tls_dynamic_gnu2_call_64): Ditto.
2128         (*tls_dynamic_gnu2_combine_64): Ditto.
2129
2130 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
2131
2132         * config.gcc: Set need_64bit_hwint to yes for x86 targets.
2133
2134 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
2135
2136         PR target/47364
2137         * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
2138
2139 2011-07-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2140
2141         * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
2142         before the core constraints. Adjust attributes.
2143         ("*thumb2_movdf_vfp"): Likewise.
2144
2145 2011-07-28  Kai Tietz  <ktietz@redhat.com>
2146
2147         * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
2148         (simplify_truth_ops_using_ranges): Likewise.
2149         (build_assert_expr_for): Likewise.
2150         (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
2151         and handle BIT_NOT_EXPR for truth-operation.
2152
2153 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
2154
2155         PR target/49313
2156         Undo r176835 from trunk
2157         2011-07-27  Georg-Johann Lay
2158
2159 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
2160
2161         PR target/49687
2162         * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
2163         Add _muluhisi3, _mulshisi3, _usmulhisi3.
2164         * config/avr/libgcc.S (__mulsi3): Rewrite.
2165         (__mulhisi3): Rewrite.
2166         (__umulhisi3): Rewrite.
2167         (__usmulhisi3): New.
2168         (__muluhisi3): New.
2169         (__mulshisi3): New.
2170         (__mulohisi3): New.
2171         (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
2172         declare.
2173         * config/avr/predicates.md (pseudo_register_operand): Rewrite.
2174         (pseudo_register_or_const_int_operand): New.
2175         (combine_pseudo_register_operand): New.
2176         (u16_operand): New.
2177         (s16_operand): New.
2178         (o16_operand): New.
2179         * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
2180         * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
2181         (any_extend, any_extend2): New code iterators.
2182         (extend_prefix): New code attribute.
2183         (mulsi3): Rewrite. Turn insn to expander.
2184         (mulhisi3): Ditto.
2185         (umulhisi3): Ditto.
2186         (usmulhisi3): New expander.
2187         (*mulsi3): New insn-and-split.
2188         (mulu<mode>si3): New insn-and-split.
2189         (muls<mode>si3): New insn-and-split.
2190         (mulohisi3): New insn-and-split.
2191         (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
2192         *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
2193         *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
2194         *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
2195         insn-and-split.
2196         (*mulsi3_call): Rewrite.
2197         (*mulhisi3_call): Rewrite.
2198         (*umulhisi3_call): Rewrite.
2199         (*usmulhisi3_call): New insn.
2200         (*muluhisi3_call): New insn.
2201         (*mulshisi3_call): New insn.
2202         (*mulohisi3_call): New insn.
2203         (extendqihi2): Use combine_pseudo_register_operand as predicate
2204         for operand 1.
2205         (extendqisi2): Ditto.
2206         (zero_extendqihi2): Ditto.
2207         (zero_extendqisi2): Ditto.
2208         (zero_extendhisi2): Ditto.
2209         (extendhisi2): Ditto. Don't early-clobber operand 0.
2210
2211 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
2212
2213         * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
2214
2215 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
2216
2217         PR tree-optimization/49471
2218         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
2219         iv only when the largest type is unsigned.  Do not call
2220         lang_hooks.types.type_for_size.
2221
2222 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
2223
2224         PR middle-end/45450
2225         * graphite-poly.c (apply_poly_transforms): Disable legality check
2226         after an openscop read.
2227
2228 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
2229
2230         PR middle-end/47691
2231         * graphite-clast-to-gimple.c (translate_clast_user): Update use of
2232         copy_bb_and_scalar_dependences.
2233         * sese.c (rename_uses): Do not call gcc_assert.  Set gloog_error.
2234         (graphite_copy_stmts_from_block): Update call to rename_uses.
2235         (copy_bb_and_scalar_dependences): Update call to
2236         graphite_copy_stmts_from_block.
2237         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
2238
2239 2011-07-27  Georg-Johann Lay  <avr@gjlay.de>
2240
2241         PR target/49313
2242         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
2243         (__ctzsi2): Result for 0 may be undefined.
2244         (__ctzhi2): Result for 0 may be undefined.
2245         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
2246         (__popcountsi2): Ditto. And don't clobber r26.
2247         (__popcountdi2): Ditto. And don't clobber r27.
2248         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
2249         (parityhi2): New expand.
2250         (paritysi2): New expand.
2251         (popcounthi2): New expand.
2252         (popcountsi2): New expand.
2253         (clzhi2): New expand.
2254         (clzsi2): New expand.
2255         (ctzhi2): New expand.
2256         (ctzsi2): New expand.
2257         (ffshi2): New expand.
2258         (ffssi2): New expand.
2259         (copysignsf3): New insn.
2260         (bswapsi2): New expand.
2261         (*parityhi2.libgcc): New insn.
2262         (*parityqihi2.libgcc): New insn.
2263         (*paritysihi2.libgcc): New insn.
2264         (*popcounthi2.libgcc): New insn.
2265         (*popcountsi2.libgcc): New insn.
2266         (*popcountqi2.libgcc): New insn.
2267         (*popcountqihi2.libgcc): New insn-and-split.
2268         (*clzhi2.libgcc): New insn.
2269         (*clzsihi2.libgcc): New insn.
2270         (*ctzhi2.libgcc): New insn.
2271         (*ctzsihi2.libgcc): New insn.
2272         (*ffshi2.libgcc): New insn.
2273         (*ffssihi2.libgcc): New insn.
2274         (*bswapsi2.libgcc): New insn.
2275
2276 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
2277
2278         * config/i386/i386.c (ix86_expand_move): Do not explicitly check
2279         the mode of symbolic_opreand RTXes.
2280
2281 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
2282
2283         * config/i386/predicates.md (x86_64_movabs_operand): Return false
2284         for pic_32bit_operand RTXes.
2285         * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
2286         in DImode.
2287
2288 2011-07-27  Kai Tietz  <ktietz@redhat.com>
2289
2290         * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
2291         for 32-bit, too.
2292         (ix86_handle_abi_attribute): Allow function attributes
2293         ms_abi/sysv_abi in 32-bit mode, too.
2294         * doc/extend.texi: Adjust attribute documentation.
2295
2296         * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
2297         expression handling.
2298         (and_var_with_comparison_1): Likewise.
2299
2300 2011-07-27  Aldy Hernandez  <aldyh@redhat.com>
2301
2302         * params.h (ALLOW_STORE_DATA_RACES): New.
2303         * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
2304         * Makefile.in (expr.o): Depend on PARAMS_H.
2305         * machmode.h (get_best_mode): Add argument.
2306         * fold-const.c (optimize_bit_field_compare): Add argument to
2307         get_best_mode.
2308         (fold_truthop): Same.
2309         * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
2310         * expr.c (emit_group_store): Same.
2311         (copy_blkmode_from_reg): Same.
2312         (write_complex_part): Same.
2313         (optimize_bitfield_assignment_op): Add argument.
2314         Add argument to get_best_mode.
2315         (get_bit_range): New.
2316         (expand_assignment): Calculate maxbits and pass it down accordingly.
2317         (store_field): New argument.
2318         (expand_expr_real_2): New argument to store_field.  Include params.h.
2319         * expr.h (store_bit_field): New argument.
2320         * stor-layout.c (get_best_mode): Restrict mode expansion by taking
2321         into account maxbits.
2322         * calls.c (store_unaligned_arguments_into_pseudos): New argument
2323         to store_bit_field.
2324         * expmed.c (store_bit_field_1): New argument.  Use it.
2325         (store_bit_field): Same.
2326         (store_fixed_bit_field): Same.
2327         (store_split_bit_field): Same.
2328         (extract_bit_field_1): Pass new argument to get_best_mode.
2329         (extract_bit_field): Same.
2330         * stmt.c (store_bit_field): Pass new argument to store_bit_field.
2331         * doc/invoke.texi: Document parameter allow-store-data-races.
2332
2333 2011-07-27  Jakub Jelinek  <jakub@redhat.com>
2334
2335         * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
2336
2337 2011-07-27  Kai Tietz  <ktietz@redhat.com>
2338
2339         * tree-vrp.c (extract_range_from_binary_expr): Remove
2340         TRUTH-binary cases and add new bitwise-cases.
2341         (extract_range_from_assignment): Likewise.
2342         (register_edge_assert_for_1): Likeiwise.
2343         (register_edge_assert_for): Likewise.
2344         (simplify_truth_ops_using_ranges): Likewise.
2345         (simplify_stmt_using_ranges): Likewise.
2346
2347 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
2348
2349         PR target/47372
2350         * config/i386/i386.c (ix86_delegitimize_address): Call
2351         simplify_gen_subreg for PIC with mode of x only if modes of
2352         x and orig_x are different.
2353
2354 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
2355
2356         * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
2357         to GC allocated copy of the string.
2358         (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
2359         before .debug_line, not after it.
2360
2361 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
2362
2363         PR middle-end/47046
2364         * tree-chrec.h (evolution_function_is_affine_p): Recursively call
2365         evolution_function_is_affine_p on CHREC_RIGHT.
2366
2367 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
2368
2369         * tree-data-ref.c (max_stmt_executions_tree): Do not call
2370         lang_hooks.types.type_for_size.
2371
2372 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
2373
2374         PR middle-end/47653
2375         * graphite-scop-detection.c (graphite_can_represent_loop): Discard
2376         loops using wrapping semantics.
2377
2378 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
2379
2380         PR middle-end/48805
2381         * tree-scalar-evolution.c (instantiate_scev_r): Return
2382         chrec_dont_know for ADDR_EXPR.
2383
2384 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
2385             H.J. Lu  <hongjiu.lu@intel.com>
2386
2387         PR target/47369
2388         PR target/49853
2389         * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
2390         if legitimize_tls_address returned operand in wrong mode. Allow
2391         SImode and DImode symbolic operand for PIC.  Call convert_to_mode
2392         if legitimize_pic_address returned operand in wrong mode.
2393
2394 2011-07-26  Martin Jambor  <mjambor@suse.cz>
2395
2396         * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
2397         return false for invariants.
2398
2399 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
2400
2401         * config/i386/i386.md (add->lea splitter): Implement using SWI
2402         mode iterator.  Change operand 2 predicate to <nonmemory_operand>.
2403         (add->lea zext splitter): Change operand 2 predicate to
2404         x86_64_nonmemory_operand.
2405
2406 2011-07-26  Richard Guenther  <rguenther@suse.de>
2407
2408         * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
2409         frequency makes everything hot.
2410
2411 2011-07-26  Richard Guenther  <rguenther@suse.de>
2412
2413         PR tree-optimization/49840
2414         * tree-vrp.c (range_fits_type_p): Properly handle full
2415         double-int precision.
2416
2417 2011-07-26  Martin Jambor  <mjambor@suse.cz>
2418
2419         PR bootstrap/49786
2420         * ipa-cp.c (update_profiling_info): Avoid overflow when updating
2421         counts.
2422         (update_specialized_profile): Likewise.
2423
2424 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
2425             H.J. Lu  <hongjiu.lu@intel.com>
2426
2427         PR target/47381
2428         PR target/49832
2429         PR target/49833
2430         * config/i386/i386.md (i): Change SImode attribute to "e".
2431         (g): Change SImode attribute to "rme".
2432         (di): Change SImode attribute to "nF".
2433         (general_operand): Change SImode attribute to x86_64_general_operand.
2434         (general_szext_operand): Change SImode attribute to
2435         x86_64_szext_general_operand.
2436         (immediate_operand): Change SImode attribute to
2437         x86_64_immediate_operand.
2438         (nonmemory_operand): Change SImode attribute to
2439         x86_64_nonmemory_operand.
2440         (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
2441         (*movsi_internal): Ditto.  Use "e" constraint in alternative 2.
2442         (*lea_1): Use SWI48 mode iterator.
2443         (*lea_1_zext): New insn pattern.
2444         (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
2445         (*bt<mode>): Ditto.
2446         (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
2447         Update operand constraints.
2448         (addsi_1_zext): Ditto.
2449         (*add<mode>2): Ditto.
2450         (*addsi_3_zext): Ditto.
2451         (*subsi_1_zext): Ditto.
2452         (*subsi_2_zext): Ditto.
2453         (*subsi_3_zext): Ditto.
2454         (*addsi3_carry_zext): Ditto.
2455         (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
2456         (*mulsi3_1_zext): Ditto.
2457         (*andsi_1): Ditto.
2458         (*andsi_1_zext): Ditto.
2459         (*andsi_2_zext): Ditto.
2460         (*<any_or:code>si_1_zext): Ditto.
2461         (*<any_or:code>si_2_zext): Ditto.
2462         (*test<mode>_1): Use <general_operand> predicate for operand 1.
2463         (*and<mode>_2): Ditto.
2464         (mov<mode>cc): Use  <general_operand> predicate for operands 1 and 2.
2465         (add->lea splitter): Check operand modes in insn constraint.  Extend
2466         operands less than SImode wide to SImode.
2467         (add->lea zext splitter): Do not extend input operands to DImode.
2468         (*lea_general_1): Handle only QImode and HImode operands.
2469         (*lea_general_2): Ditto.
2470         (*lea_general_3): Ditto.
2471         (*lea_general_1_zext): Remove.
2472         (*lea_general_2_zext): Ditto.
2473         (*lea_general_3_zext): Ditto.
2474         (*lea_general_4): Check operand modes in insn constraint.  Extend
2475         operands less than SImode wide to SImode.
2476         (ashift->lea splitter): Ditto.
2477         * config/i386/i386.c (ix86_print_operand_address): Print address
2478         registers with 'q' modifier on 64bit targets.
2479         * config/i386/predicates.md (pic_32bit_opreand): Define as special
2480         predicate.  Reject non-SI and non-DI modes.
2481
2482 2011-07-25  Andrew Pinski  <apinski@cavium.com>
2483
2484         PR tree-opt/49671
2485         * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
2486         TREE_THIS_NOTRAP into the inner most MEM_REF.
2487         Always copy TREE_THIS_VOLATILE.
2488         * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
2489         arguments are not volatile references.
2490
2491 2011-07-25  Richard Henderson  <rth@redhat.com>
2492
2493         * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
2494         * final.c (final_scan_insn): Don't test for it.
2495         (rest_of_clean_state): Likewise.
2496
2497 2011-07-25  Richard Henderson  <rth@redhat.com>
2498
2499         PR debug/49841
2500         * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
2501         (emit_frame_save): Likewise.
2502         (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
2503         insn onto a dummy blockage insn after the join label.
2504
2505 2011-07-25  Richard Henderson  <rth@redhat.com>
2506
2507         * dwarf2cfi.c (dw_trace_info): Add ID member.
2508         (get_trace_index): Remove.  Change users to use ID member.
2509         (before_next_cfi_note): New.
2510         (connect_traces): Remove unreachable traces before the main loop.
2511         Look across one trace and generate remember/restore_state if needed.
2512
2513 2011-07-25  Richard Henderson  <rth@redhat.com>
2514
2515         * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
2516
2517 2011-07-25  Joern Rennecke  <joern.rennecke@embecosm.com>
2518
2519         * genattr.c (write_upcase, gen_attr <enum definition writing>):
2520         Move to ...
2521         * genattr-common.c ... here.
2522         (main): Call gen_attr.
2523         * optc-gen.awk: Make generated program include insn-attr-common.h .
2524         * Makefile.in (oprions.o): Depend on insn-attr-common.h
2525
2526 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
2527
2528         * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2529         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
2530         * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
2531         m32c_print_operand, m32c_print_operand_address): Remove.
2532         * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
2533         Change return type to bool. Change argument type to bool.
2534         (m32c_print_operand, m32c_print_operand_address): Make static.
2535         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
2536         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
2537
2538 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2539
2540         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
2541         attributes): Document mmap.
2542
2543 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
2544
2545         * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2546         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
2547         * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
2548         mmix_print_operand, mmix_print_operand_address): Remove.
2549         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
2550         Change return type to bool. Change argument type to bool.
2551         (mmix_print_operand, mmix_print_operand_address): Make static.
2552         (mmix_intval, mmix_output_condition): Change 'x' argument type
2553         to const_rtx.
2554         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
2555         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
2556
2557 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
2558
2559         PR target/39386
2560         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
2561         shift counter for x << x and x >> x shifts.
2562
2563 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2564
2565         PR target/47124
2566         * config.gcc: Reject *-*-solaris2 configuration.
2567
2568 2011-07-25  Richard Sandiford  <richard.sandiford@linaro.org>
2569
2570         PR tree-optimization/49809
2571         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
2572         gimple_get_lhs instead of gimple_assign_lhs.
2573
2574 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2575
2576         * system.h [__cplusplus]: Wrap C function declarations in extern "C".
2577
2578 2011-07-25  Richard Guenther  <rguenther@suse.de>
2579
2580         PR tree-optimization/49822
2581         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
2582         more.  Make sure to preserve stmts with side-effects.  Properly
2583         handle virtual defs, follow a longer def chain.
2584
2585 2011-07-22  Romain Geissler  <romain.geissler@gmail.com>
2586
2587         PR plugins/45348
2588         PR plugins/48425
2589         PR plugins/46577
2590         * Makefile.in: Do not flatten c-family directory when installing
2591         plugin headers.
2592
2593 2011-07-25  Eric Botcazou  <ebotcazou@adacore.com>
2594
2595         * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
2596         original nodes if we are dealing with virtual clones.
2597
2598 2011-07-25  Bernd Schmidt  <bernds@codesourcery.com>
2599
2600         * common/config/c6x/c6x-common.c: New file.
2601
2602 2011-07-25  Roman Zhuykov  <zhroma@ispras.ru>
2603
2604         * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
2605
2606 2011-07-25  Richard Guenther  <rguenther@suse.de>
2607
2608         PR tree-optimization/49715
2609         * tree-vrp.c: Include expr.h and optabs.h.
2610         (range_fits_type_): New function.
2611         (simplify_float_conversion_using_ranges): Likewise.
2612         (simplify_stmt_using_ranges): Call it.
2613         * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
2614         * optabs.c (can_float_p): Export.
2615         * optabs.h (can_float_p): Declare.
2616
2617 2011-07-25  Richard Guenther  <rguenther@suse.de>
2618
2619         * tree-vrp.c (num_vr_values, values_propagated): New global vars.
2620         (get_value_range): For out-of-range SSA names or names created
2621         after propagation return a read-only varying range.
2622         (dump_all_value_ranges): Adjust.
2623         (vrp_initialize): Likewise.
2624         (vrp_finalize): Likewise.
2625
2626 2011-07-24  Richard Henderson  <rth@redhat.com>
2627
2628         PR debug/49831
2629         * dwarf2cfi.c (connect_traces): Allow unvisited traces.  Skip
2630         them entirely.
2631
2632 2011-07-24  Richard Henderson  <rth@redhat.com>
2633
2634         PR debug/49825
2635         * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
2636         (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
2637
2638 2011-07-24  Richard Henderson  <rth@redhat.com>
2639
2640         PR debug/49827
2641         * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
2642
2643 2011-07-24  Richard Henderson  <rth@redhat.com>
2644
2645         * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
2646         Zero args_size for abnormal edges.  Adjust all callers.
2647
2648 2011-07-24  Richard Henderson  <rth@redhat.com>
2649
2650         PR debug/49825
2651         * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
2652
2653 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
2654
2655         PR bootstrap/49835
2656         * collect2.c (demangle_flag): Removed.
2657
2658 2011-07-24  Sandra Loosemore  <sandra@codesourcery.com>
2659
2660         * configure.ac (demangler_in_ld): Default to yes.
2661         * configure: Regenerated.
2662         * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
2663         mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
2664         --no-demangle options straight through to ld.  When
2665         HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
2666         way that has the intended effect on Windows.
2667
2668 2011-07-23  Richard Henderson  <rth@redhat.com>
2669
2670         * dwarf2cfi.c: Include basic-block.h.
2671         (dw_label_info): Remove.
2672         (trace_work_list, trace_index): New.
2673         (remember_row, emit_cfa_remember): Remove.
2674         (dw_trace_info_hash, dw_trace_info_eq): New.
2675         (get_trace_index, get_trace_info): New.
2676         (save_point_p): New.
2677         (free_cfi_row): Remove.
2678         (add_cfi): Do not emit DW_CFA_remember_state.
2679         (cfa_row_equal_p): New.
2680         (barrier_args_size): Remove.
2681         (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
2682         (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
2683         (maybe_record_trace_start, create_trace_edges, scan_trace): New.
2684         (dwarf2out_cfi_begin_epilogue): Remove.
2685         (dwarf2out_frame_debug_restore_state): Remove.
2686         (connect_traces, create_pseudo_cfg): New.
2687         (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
2688         * Makefile.in (dwarf2cfi.o): Update.
2689
2690 2011-07-23  Richard Henderson  <rth@redhat.com>
2691
2692         * dwarf2cfi.c (dw_trace_info): New.
2693         (dw_label_info): New.
2694         (cie_return_save): New.
2695         (cur_trace): New.
2696         (queued_args_size): Rename from args_size.  Update all users.
2697         (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
2698         (def_cfa_1): Use cur_trace instead of cfa_*.
2699         (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
2700         (clobbers_queued_reg_save, reg_saved_in): Likewise.
2701         (dwarf2out_frame_debug_expr): Likewise.
2702         (create_cie_data): Split out from ...
2703         (execute_dwarf2_frame): ... here.  Initialize cur_trace.
2704
2705 2011-07-23  Richard Henderson  <rth@redhat.com>
2706
2707         * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
2708         Update all users to match.
2709         (execute_dwarf2_frame): Free reg_saved_in_data.
2710
2711 2011-07-23  Richard Henderson  <rth@redhat.com>
2712
2713         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
2714         (queued_reg_saves): Don't GTY.  Change to a VEC.
2715         (queue_reg_save): Update to match.
2716         (dwarf2out_flush_queued_reg_saves): Likewise.
2717         (clobbers_queued_reg_save): Likewise.
2718         (reg_saved_in): Likewise.
2719         (execute_dwarf2_frame): Free queued_reg_saves.
2720
2721 2011-07-23  Richard Henderson  <rth@redhat.com>
2722
2723         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
2724
2725 2011-07-23  Richard Henderson  <rth@redhat.com>
2726
2727         * dwarf2cfi.c (add_cfi_args_size): Split out from...
2728         (dwarf2out_args_size): ... here.
2729         (add_cfi_restore): Split out from ...
2730         (dwarf2out_frame_debug_cfa_restore): ... here.
2731         (def_cfa_0): Split out from ...
2732         (def_cfa_1): ... here.
2733         (cfi_oprnd_equal_p, cfi_equal_p): New.
2734         (change_cfi_row): New.
2735         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
2736         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
2737         (output_cfis): Remove.
2738         * dwarf2out.c (output_fde): Simplify output_cfi loop.
2739         (dwarf2out_switch_text_section): Don't call output_cfis.
2740         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
2741         * dwarf2out.h: Update decls.
2742         (enum dw_val_class): Add dw_val_class_none.
2743
2744 2011-07-23  Richard Henderson  <rth@redhat.com>
2745
2746         * dwarf2cfi.c (update_row_reg_save): New.
2747         (dwarf2out_frame_debug_cfa_expression): Use it.
2748         (dwarf2out_frame_debug_cfa_restore): Likewise.
2749         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
2750
2751 2011-07-23  Richard Henderson  <rth@redhat.com>
2752
2753         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
2754
2755 2011-07-23  Richard Henderson  <rth@redhat.com>
2756
2757         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
2758         (cie_cfi_row): New.
2759         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
2760         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
2761         (cur_row, remember_row): New.
2762         (def_cfa_1): Use cur_row instead of the old_* variables.
2763         (dwarf2out_frame_debug_restore_state): Similarly.
2764         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
2765         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
2766         (dwarf2out_frame_debug_adjust_cfa): Likewise.
2767         (dwarf2out_frame_debug_cfa_offset): Likewise.
2768         (dwarf2out_frame_debug_expr): Likewise.
2769         (execute_dwarf2_frame): Set up cur_row.
2770         * dwarf2out.h (struct cfa_loc): Mark for GTY.
2771
2772 2011-07-23  Richard Henderson  <rth@redhat.com>
2773
2774         * basic-block.h (EDGE_PRESERVE): New.
2775         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
2776         * bb-reorder.c: Include except.h.
2777         (fix_up_crossing_landing_pad): New.
2778         (find_rarely_executed_basic_blocks_and_crossing_edges): Place
2779         landing pads in the right partition.  Duplicate as necessary.
2780         (partition_hot_cold_basic_blocks): Fix up DF info after
2781         duplicating landing pads.
2782         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
2783         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
2784         is set properly.  Validate that EH edges are not CROSSING.
2785         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
2786         (dw2_build_landing_pads): ... here.
2787         (convert_to_eh_region_ranges): Remove code to fixup crossing
2788         landing pads.
2789         * except.h (expand_dw2_landing_pad_for_region): Declare.
2790         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
2791
2792 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
2793
2794         PR target/49816
2795         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
2796
2797 2011-07-22  Jason Merrill  <jason@redhat.com>
2798
2799         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
2800
2801 2011-07-22  Richard Henderson  <rth@redhat.com>
2802
2803         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
2804
2805 2011-07-22  Richard Henderson  <rth@redhat.com>
2806
2807         * jump.c (maybe_propagate_label_ref): Split out of...
2808         (mark_all_labels): ... here.  Do not attempt label_ref
2809         propagation while in cfglayout mode.
2810
2811 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
2812
2813         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
2814         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
2815         (dwarf_attr_name): Handle DW_AT_GNU_macros.
2816         (dwarf2out_define): If the vector is empty and
2817         lineno is 0, emit a dummy entry first.
2818         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
2819         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
2820         optimize_macinfo_range): New functions.
2821         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
2822         mergeable, optimize longer strings using
2823         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
2824         optimize longer sequences of define/undef ops from headers
2825         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
2826         emit a section headers.
2827         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
2828         and macinfo_section_label to DEBUG_MACRO_SECTION
2829         resp. DEBUG_MACRO_SECTION_LABEL.
2830         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
2831         instead of DW_AT_macro_info.
2832
2833         PR other/32998
2834         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
2835         options.
2836         * dwarf2out.c: Include opts.h.
2837         (dchar_p): New typedef.  Define heap VEC for it.
2838         (producer_string): New variable.
2839         (gen_producer_string): New function.
2840         (gen_compile_unit_die): Use it.
2841         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
2842         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
2843         * doc/invoke.texi: Document -grecord-gcc-switches and
2844         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
2845         to -frecord-gcc-switches description.
2846
2847 2011-07-22  Jason Merrill  <jason@redhat.com>
2848
2849         PR c++/30112
2850         * c-decl.c (c_linkage_bindings): Define.
2851
2852 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
2853
2854         PR debug/49815
2855         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
2856
2857 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
2858
2859         * config/i386/i386.c (ix86_option_override_internal): Disallow
2860         MS ABI in x32 mode.
2861         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
2862         only for TARGET_LP64.
2863         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
2864
2865 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
2866
2867         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
2868         avoid warnings when GCC is built with a C++ compiler.
2869
2870 2011-07-22  Martin Jambor  <mjambor@suse.cz>
2871
2872         PR lto/49796
2873         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
2874         if decl node is in another partition, call cgraph_get_node only once.
2875
2876 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
2877
2878         * config.gcc (x86_64-*-linux*): Set
2879         default_gnu_indirect_function to yes.
2880
2881 2011-07-22  Richard Guenther  <rguenther@suse.de>
2882
2883         PR tree-optimization/45819
2884         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
2885         preserve volatile and notrap flags.
2886
2887 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2888             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2889
2890         PR bootstrap/49794
2891         * configure.ac: Test AM_ICONV with CXX.
2892         * configure: Regenerate.
2893         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
2894
2895 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2896
2897         PR bootstrap/49797
2898         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
2899         (set_cloog_options): Use it.
2900
2901 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
2902
2903         PR c++/49756
2904         * gcc.c (main): Call stack_limit_increase (64MB).
2905         * toplev.c (toplev_main): Likewise.
2906
2907 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
2908
2909         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
2910         instead of force_reg.
2911
2912 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
2913
2914         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
2915         needed and use force_reg after convert.
2916         (ix86_expand_call): Likewise.
2917         (ix86_expand_special_args_builtin): Likewise.
2918         (ix86_expand_builtin): Likewise.
2919
2920 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
2921
2922         PR middle-end/47654
2923         PR middle-end/49649
2924         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
2925         in parameter.  Initialize v1 and v2 based on the values returned
2926         by clast_name_to_lb_ub.
2927         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
2928         values.
2929         (type_for_clast_bin): Same.
2930         (type_for_clast_expr): Same.
2931         (type_for_clast_eq): Update calls to type_for_clast_expr.
2932         (type_for_clast_for): Same.
2933         (build_iv_mapping): Same.
2934         * graphite-ppl.h (value_min): New.
2935
2936 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
2937
2938         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
2939         types whenever possible.
2940
2941 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
2942
2943         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
2944         and ub fields.
2945         (new_clast_name_index): Add lb and ub parameters.
2946         (free_clast_name_index): New.
2947         (clast_name_to_lb_ub): New.
2948         (save_clast_name_index): Add lb and ub parameters.
2949         (compute_bounds_for_param): New.
2950         (type_for_level): Removed.
2951         (type_for_clast_for): Removed level parameter.  Do not call
2952         type_for_level.
2953         (graphite_create_new_loop): Store the lb and ub for the clast_name
2954         of the iterator of the loop that has been generated.
2955         (graphite_create_new_loop_guard): Remove parameter level.
2956         (create_params_index): Store the lb and ub of each parameter.
2957         (gloog): Use free_clast_name_index.  Pass to create_params_index
2958         the current scop.
2959
2960 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
2961
2962         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
2963         (max_precision_type): Inline max_signed_precision_type.
2964         (type_for_clast_red): Use max_precision_type.
2965         (type_for_clast_bin): Same.
2966         (type_for_clast_for): Same.
2967
2968 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
2969
2970         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
2971         type_for_interval.
2972         (gcc_type_for_value): Renamed type_for_value.
2973         (gcc_type_for_clast_term): Renamed type_for_clast_term.
2974         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
2975         (gcc_type_for_clast_red): Renamed type_for_clast_red.
2976         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
2977         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
2978         (graphite_translate_clast_equation): Update calls.
2979         (compute_type_for_level): Renamed type_for_level.
2980         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
2981         (build_iv_mapping): Update calls.
2982         (graphite_create_new_loop_guard): Same.
2983
2984 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
2985
2986         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
2987         comment.
2988
2989 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
2990
2991         * graphite-clast-to-gimple.c (struct ivs_params): New.
2992         (clast_name_to_gcc): Use ivs_params to pass around parameters.
2993         (clast_to_gcc_expression): Same.
2994         (clast_to_gcc_expression_red): Same.
2995         (gcc_type_for_clast_term): Same.
2996         (gcc_type_for_clast_expr): Same.
2997         (gcc_type_for_clast_red): Same.
2998         (gcc_type_for_clast_bin): Same.
2999         (gcc_type_for_clast_eq): Same.
3000         (graphite_translate_clast_equation): Same.
3001         (graphite_create_guard_cond_expr): Same.
3002         (graphite_create_new_guard): Same.
3003         (graphite_create_new_loop): Same.
3004         (build_iv_mapping): Same.
3005         (translate_clast_user): Same.
3006         (graphite_create_new_loop_guard): Same.
3007         (translate_clast): Same.
3008         (translate_clast_for_loop): Same.
3009         (translate_clast_for): Same.
3010         (translate_clast_guard): Same.
3011         (initialize_cloog_names): Fix typo.
3012         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
3013
3014 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
3015
3016         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
3017         (new_clast_name_index): Add level parameter.
3018         (clast_name_to_level): New.
3019         (save_clast_name_index): Add level parameter.
3020         (newivs_to_depth_to_newiv): Removed.
3021         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
3022         (graphite_create_new_loop): Add level parameter.  Pass level to
3023         save_clast_name_index.
3024         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
3025         (create_params_index): Pass level to save_clast_name_index.
3026
3027 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
3028
3029         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
3030         recompute type, lb, and ub.  Get them from...
3031         (graphite_create_new_loop_guard): ...here.  Pass in parameter
3032         pointers to type, lb, and ub.
3033         (translate_clast_for_loop): Update function calls.
3034         (translate_clast_for): Same.
3035
3036 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
3037
3038         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
3039         psct_dynamic_dim.
3040         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
3041         (gcc_type_for_iv_of_clast_loop): Update use of level.
3042         (gloog): Start counting nesting level from 0.
3043         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
3044         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
3045         psct_dynamic_dim on level.
3046
3047 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
3048
3049         * config/i386/i386.c (ix86_legitimize_address): Convert to
3050         Pmode if needed.
3051
3052 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
3053
3054         * config/i386/i386.c (function_value_64): Always return pointers
3055         in Pmode.
3056         (ix86_promote_function_mode): New.
3057         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
3058
3059 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3060
3061         PR tree-optimization/49749
3062         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
3063         remove no-longer-used maxrank variable.
3064
3065 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
3066
3067         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
3068
3069 2011-07-21  Jason Merrill  <jason@redhat.com>
3070
3071         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
3072         * recog.h (struct insn_data_d): Check it instead of
3073         HAVE_DESIGNATED_INITIALIZERS.
3074         * genoutput.c (output_insn_data): Likewise.
3075
3076 2011-07-21  Richard Guenther  <rguenther@suse.de>
3077
3078         PR tree-optimization/49770
3079         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
3080         valueized any operand.  Renamed from ...
3081         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
3082         (valueize_shared_reference_ops_from_ref): Return whether we
3083         valueized any operand.
3084         (vn_reference_lookup): Only when we valueized any operand
3085         use the valueized reference for alias analysis.  Do not preserve
3086         the original reference tree in this case.
3087
3088 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
3089
3090         * config/i386/i386.c (ix86_decompose_address): Reject all but
3091         register operands and subregs of DImode hard registers in index.
3092
3093 2011-07-21  Kai Tietz  <ktietz@redhat.com>
3094
3095         * fold-const.c (fold_unary_loc): Preserve indirect
3096         comparison cast to none-boolean type.
3097         * tree-ssa.c (useless_type_conversion_p): Preserve cast
3098         from/to boolean-type.
3099         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
3100         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
3101         * tree-cfg.c (verify_gimple_comparison): Check result
3102         type of comparison expression.
3103         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
3104         of condition result and disallow type-cast sinking into comparison.
3105
3106 2011-07-21  Richard Guenther  <rguenther@suse.de>
3107
3108         * tree-ssa-forwprop.c (combine_conversions): Return whether
3109         we have to run cfg-cleanup.  Properly remove dead stmts.
3110         (ssa_forward_propagate_and_combine): Adjust.
3111
3112 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
3113
3114         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
3115
3116 2011-07-21  Kai Tietz  <ktietz@redhat.com>
3117
3118         * tree-ssa-propagate.c (substitute_and_fold): Use
3119         do_dce flag to deside, if BB's statements are scanned
3120         in last to first, or first to last order.
3121
3122 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
3123
3124         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
3125
3126 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
3127             Uros Bizjak  <ubizjak@gmail.com>
3128             Richard Henderson  <rth@redhat.com>
3129
3130         * config/i386/constraints.md (w): New.
3131
3132         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
3133         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
3134
3135         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
3136         instead of TARGET_64BIT.
3137
3138         * config/i386/i386.md (indirect_jump): Replace
3139         nonimmediate_operand with indirect_branch_operand.
3140         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
3141         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
3142         Convert operand 0 to Pmode for x32 if not PIC.
3143         (*tablejump_1): Replace nonimmediate_operand with
3144         indirect_branch_operand.  Replace constraint "m" with "w".
3145         (*call_vzeroupper): Replace constraint "m" with "w".
3146         (*call): Likewise.
3147         (*call_rex64_ms_sysv_vzeroupper): Likewise.
3148         (*call_rex64_ms_sysv): Likewise.
3149         (*call_value_vzeroupper): Likewise.
3150         (*call_value): Likewise.
3151         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
3152         (*call_value_rex64_ms_sysv): Likewise.
3153         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
3154
3155         * config/i386/predicates.md (indirect_branch_operand): New.
3156         (call_insn_operand): Support x32.
3157
3158 2011-07-20  Michael Eager  <eager@eagercon.com>
3159
3160         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
3161
3162 2011-07-20  Richard Henderson  <rth@redhat.com>
3163
3164         * cfg.c (dump_bb_info): Dump basic_block->flags.
3165         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
3166
3167 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
3168
3169         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
3170         of DImode hard registers in index.
3171         (ix86_legitimate_address_p): Allow subregs of base and index to span
3172         more than a word.  Assert that subregs of base and index satisfy
3173         register_no_elim_operand predicates.  Reject addresses where
3174         base and index have different modes.
3175
3176 2011-07-20  Robert Millan  <rmh@gnu.org>
3177
3178         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
3179
3180 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3181
3182         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
3183         removing now-unnecessary assignment.
3184
3185 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3186
3187         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
3188         memory address space to the type's address space.
3189
3190 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
3191
3192         PR target/36467
3193         PR target/49687
3194         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
3195         and expand appropriately if there is a CONST_INT in operand2.
3196         (usmulqihi3): New insn.
3197         (*sumulqihi3): New insn.
3198         (*osmulqihi3): New insn.
3199         (*oumulqihi3): New insn.
3200         (*muluqihi3.uconst): New insn_and_split.
3201         (*muluqihi3.sconst): New insn_and_split.
3202         (*mulsqihi3.sconst): New insn_and_split.
3203         (*mulsqihi3.uconst): New insn_and_split.
3204         (*mulsqihi3.oconst): New insn_and_split.
3205         (*ashifthi3.signx.const): New insn_and_split.
3206         (*ashifthi3.signx.const7): New insn_and_split.
3207         (*ashifthi3.zerox.const): New insn_and_split.
3208         (mulsqihi3): New insn.
3209         (muluqihi3): New insn.
3210         (muloqihi3): New insn.
3211         * config/avr/predicates.md (const_2_to_7_operand): New.
3212         (const_2_to_6_operand): New.
3213         (u8_operand): New.
3214         (s8_operand): New.
3215         (o8_operand): New.
3216         (s9_operand): New.
3217         (register_or_s9_operand): New.
3218
3219 2011-07-20  Kai Tietz  <ktietz@redhat.com>
3220
3221         * builtins.c (fold_builtin_expect): See through the cast
3222         from truthvalue_type_node to long.
3223
3224 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
3225
3226         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
3227         where we can use them from the standard and altivec instruction
3228         sets, instead of always using the 3 operand VSX forms that require
3229         the destination to overlap one of the inputs.
3230         (vsx_fms*): Ditto.
3231         (vsx_fnma*): Ditto.
3232         (vsx_fnms*): Ditto.
3233
3234         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
3235         for DF types.
3236         (fmsdf4_fpr): Ditto.
3237         (nfmadf4_fpr): Ditto.
3238         (nfmsdf4_fpr): Ditto.
3239
3240 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
3241
3242         * genrecog.c (make_insn_sequence): Correct position numbering
3243         when filtering out match_scratch and match_dup.
3244
3245 2011-07-20  Richard Guenther  <rguenther@suse.de>
3246
3247         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
3248         against already removed statements.
3249         (forward_propagate_into_comparison): Remove dead defining stmts.
3250         (forward_propagate_into_gimple_cond): Likewise.
3251         (forward_propagate_into_cond): Simplify.
3252         (ssa_forward_propagate_and_combine): Handle changed cfg from
3253         forward_propagate_into_comparison.
3254         * tree-ssa-phiopt.c (conditional_replacement): Use proper
3255         locations for newly built statements.
3256
3257 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
3258
3259         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
3260
3261 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3262
3263         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
3264         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
3265
3266 2011-07-20  Richard Guenther  <rguenther@suse.de>
3267
3268         PR middle-end/18908
3269         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
3270         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
3271         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
3272
3273 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
3274
3275         * config/frv/frv.c (frv_register_move_cost): Define explicitly
3276         costs for subclasses of GR_REGS.
3277
3278 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
3279
3280         PR target/49780
3281         * config/i386/predicates.md (no_seg_addres_operand): No more special.
3282         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
3283         of DImode hard registers in base.
3284         (ix86_legitimate_address_p): Allow SImode and DImode base and index
3285         registers.
3286
3287 2011-07-20  Richard Guenther  <rguenther@suse.de>
3288
3289         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
3290         (unify_nodes): Deal with that.
3291         (solve_graph): Likewise.
3292
3293 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
3294
3295         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
3296         canonicalize left operand from ZERO_EXTEND to AND.
3297
3298 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
3299
3300         * target.def (class_max_nregs): New hook.
3301         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
3302         * doc/tm.texi: Regenerate.
3303         * targhooks.c (default_class_max_nregs): New function.
3304         * targhooks.h (default_class_max_nregs): Declare.
3305         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
3306         x_ira_reg_class_min_nregs arrays to unsigned char.
3307         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
3308         hook instead of CLASS_MAX_NREGS macro.
3309         * reginfo.c (restore_register_info): Ditto.
3310         * ira-conflicts.c (process_regs_for_copy): Use
3311         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
3312         Change type rclass and aclass vars to reg_class_t.
3313         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
3314         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
3315         reg_class_t.
3316         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
3317         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
3318
3319         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
3320         * config/i386/i386.c (ix86_class_max_nregs): New function.
3321         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
3322         instead of CLASS_MAX_NREGS macro.
3323         (TARGET_CLASS_MAX_NREGS): Define.
3324         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
3325         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
3326         * config/avr/avr.c (class_max_nregs): Remove function.
3327         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
3328         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
3329         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
3330         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
3331         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
3332         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
3333         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
3334         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
3335         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
3336         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
3337         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
3338         * config/score/score.h (CLASS_MAX_NREGS): Remove.
3339         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
3340         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
3341         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
3342
3343 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
3344
3345         * cif-code.def (OVERWRITABLE): Fix typo and move around.
3346         (TARGET_OPTIMIZATION_MISMATCH): Delete.
3347         (EH_PERSONALITY): Fix typo.
3348         (NON_CALL_EXCEPTIONS): Fix message.
3349         (OPTIMIZATION_MISMATCH): Adjust message.
3350         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
3351
3352 2011-07-19  Ian Lance Taylor  <iant@google.com>
3353
3354         * doc/install.texi (Configuration): Document
3355         --enable-build-poststage1-with-cxx.
3356
3357 2011-07-19  Robert Millan  <rmh@gnu.org>
3358
3359         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
3360         (GLIBC_DYNAMIC_LINKER): Remove.
3361
3362         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
3363         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
3364         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
3365         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
3366         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
3367         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
3368
3369         * config/mips/linux.h: Remove everything except for ...
3370         (GLIBC_DYNAMIC_LINKER): ... this macro.
3371
3372         * config/mips/linux64.h: Remove everything except for ...
3373         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
3374         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
3375         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
3376         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
3377         (GNU_USER_LINK_EMULATIONN32): New macros.
3378
3379         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
3380         Use the new headers.
3381
3382 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
3383
3384         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
3385         Add offset_known_p and size_known_p fields.
3386         (MEM_OFFSET_KNOWN_P): Update accordingly.
3387         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
3388         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
3389         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
3390         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
3391         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
3392         (init_emit_regs): Likewise.
3393
3394 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
3395
3396         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
3397         (MEM_OFFSET): Change from returning an rtx to returning a
3398         HOST_WIDE_INT.
3399         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
3400         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
3401         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
3402         (clear_mem_offset): Declare.
3403         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
3404         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
3405         MEM_OFFSET to get a HOST_WIDE_INT offset.
3406         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
3407         (adjust_offset_for_component_ref): Take a bool "known_p"
3408         parameter and a HOST_WIDE_INT "offset" parameter.
3409         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
3410         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
3411         than an rtx.  Use clear_mem_offset to clear the offset.
3412         * cfgcleanup.c (merge_memattrs): Likewise.
3413         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
3414         * function.c (assign_parm_find_stack_rtl): Likewise.
3415         (assign_parm_setup_stack): Likewise.
3416         * print-rtl.c (print_rtx): Likewise.
3417         * reload.c (find_reloads_subreg_address): Likewise.
3418         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
3419         * var-tracking.c (INT_MEM_OFFSET): Likewise.
3420         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
3421         (get_mem_align_offset): Likewise.
3422         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
3423         (clear_mem_offset): New function.
3424         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
3425         offset rather than an rtx.  Assume both the expressio and offset
3426         are available.
3427         (r10k_needs_protection_p_1): Update accordingly, checking the
3428         expression and offset availability here instead.
3429
3430 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
3431
3432         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
3433         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
3434         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
3435         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
3436         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
3437         (clear_mem_size): Declare.
3438         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
3439         (clear_mem_size): New function.
3440         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
3441         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
3442         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
3443         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
3444         to clear the size.
3445         (nonoverlapping_memrefs_p): Likewise.
3446         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
3447         (expand_builtin_init_trampoline): Likewise.
3448         * calls.c (compute_argument_addresses): Likewise.
3449         * cfgcleanup.c (merge_memattrs): Likewise.
3450         * dce.c (find_call_stack_args): Likewise.
3451         * dse.c (record_store, scan_insn): Likewise.
3452         * dwarf2out.c (dw_sra_loc_expr): Likewise.
3453         * expr.c (emit_block_move_hints): Likewise.
3454         * function.c (assign_parm_find_stack_rtl): Likewise.
3455         * print-rtl.c (print_rtx): Likewise.
3456         * reload.c (find_reloads_subreg_address): Likewise.
3457         * rtlanal.c (may_trap_p_1): Likewise.
3458         * var-tracking.c (track_expr_p): Likewise.
3459         * varasm.c (assemble_trampoline_template): Likewise.
3460         * config/arm/arm.c (arm_print_operand): Likewise.
3461         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
3462         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
3463         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
3464         (expand_constant_setmem_prologue): Likewise.
3465         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
3466         * config/rs6000/rs6000.c (expand_block_move): Likewise.
3467         (adjacent_mem_locations): Likewise.
3468         * config/s390/s390.c (s390_expand_setmem): Likewise.
3469         (s390_expand_insv): Likewise.
3470         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
3471         (*extendqi<mode>2_short_displ): Likewise.
3472         * config/sh/sh.c (expand_block_move): Likewise.
3473         * config/sh/sh.md (extv, extzv): Likewise.
3474
3475 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
3476
3477         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
3478         (mem_attrs_htab_eq): ...here.
3479         (find_mem_attrs): Replace with...
3480         (set_mem_attrs): ...this function.  Take a mem_attrs structure
3481         rather than individual fields.
3482         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
3483         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
3484         (set_mem_size, change_address, adjust_address_1, offset_address)
3485         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
3486         Update accordingly.
3487
3488 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
3489
3490         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
3491         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
3492         Provide a dummy definition of MEM_ADDR_SPACE for generators.
3493         (target_rtl): Add x_mode_mem_attrs.
3494         (mode_mem_attrs): New macro.
3495         (get_mem_attrs): New function.
3496         * emit-rtl.c (get_mem_attrs): Rename to...
3497         (find_mem_attrs): ...this.
3498         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
3499         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
3500         (set_mem_size, change_address, adjust_address_1, offset_address)
3501         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
3502         Update accordingly.
3503         (init_emit_regs): Initialize mode_mem_attrs.
3504
3505 2011-07-19  Richard Guenther  <rguenther@suse.de>
3506
3507         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
3508         TRUTH_*_EXPR handling.
3509         * tree-ssa-operands.c (get_expr_operands): Likewise.
3510         * tree-ssa-pre.c (fully_constant_expression): Likewise.
3511         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
3512         Likewise.
3513         (is_and_or_or): Likewise.
3514         (is_norm_cond_subset_of): Likewise.
3515
3516 2011-07-19  Richard Guenther  <rguenther@suse.de>
3517
3518         * tree.h (fold_build_pointer_plus_loc): New helper function.
3519         (fold_build_pointer_plus_hwi_loc): Likewise.
3520         (fold_build_pointer_plus): Define.
3521         (fold_build_pointer_plus_hwi): Likewise.
3522         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
3523         (fold_builtin_memory_op): Likewise.
3524         (fold_builtin_stpcpy): Likewise.
3525         (fold_builtin_memchr): Likewise.
3526         (fold_builtin_strstr): Likewise.
3527         (fold_builtin_strchr): Likewise.
3528         (fold_builtin_strrchr): Likewise.
3529         (fold_builtin_strpbrk): Likewise.
3530         (fold_builtin_strcat): Likewise.
3531         (expand_builtin_memory_chk): Likewise.
3532         (fold_builtin_memory_chk): Likewise.
3533         * c-typeck.c (build_unary_op): Likewise.
3534         * cgraphunit.c (thunk_adjust): Likewise.
3535         * fold-const.c (build_range_check): Likewise.
3536         (fold_binary_loc): Likewise.
3537         * omp-low.c (extract_omp_for_data): Likewise.
3538         (expand_omp_for_generic): Likewise.
3539         (expand_omp_for_static_nochunk): Likewise.
3540         (expand_omp_for_static_chunk): Likewise.
3541         * tree-affine.c (add_elt_to_tree): Likewise.
3542         * tree-data-ref.c (split_constant_offset_1): Likewise.
3543         * tree-loop-distribution.c (generate_memset_zero): Likewise.
3544         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
3545         * tree-predcom.c (ref_at_iteration): Likewise.
3546         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
3547         (add_to_parts): Likewise.
3548         (create_mem_ref): Likewise.
3549         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
3550         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
3551         (number_of_iterations_le): Likewise.
3552         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
3553         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
3554         (vect_create_addr_base_for_vector_ref): Likewise.
3555         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
3556         (vect_create_cond_for_alias_checks): Likewise.
3557         * tree-vrp.c (extract_range_from_assert): Likewise.
3558         * config/alpha/alpha.c (alpha_va_start): Likewise.
3559         (alpha_gimplify_va_arg_1): Likewise.
3560         * config/i386/i386.c (ix86_va_start): Likewise.
3561         (ix86_gimplify_va_arg): Likewise.
3562         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
3563         * config/mep/mep.c (mep_expand_va_start): Likewise.
3564         (mep_gimplify_va_arg_expr): Likewise.
3565         * config/mips/mips.c (mips_va_start): Likewise.
3566         (mips_gimplify_va_arg_expr): Likewise.
3567         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
3568         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
3569         (rs6000_gimplify_va_arg): Likewise.
3570         * config/s390/s390.c (s390_va_start): Likewise.
3571         (s390_gimplify_va_arg): Likewise.
3572         * config/sh/sh.c (sh_va_start): Likewise.
3573         (sh_gimplify_va_arg_expr): Likewise.
3574         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
3575         * config/spu/spu.c (spu_va_start): Likewise.
3576         (spu_gimplify_va_arg_expr): Likewise.
3577         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
3578         Likewise.
3579         (xstormy16_gimplify_va_arg_expr): Likewise.
3580         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
3581         (xtensa_gimplify_va_arg_expr): Likewise.
3582
3583 2011-07-19  Richard Guenther  <rguenther@suse.de>
3584
3585         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
3586         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
3587         handling.
3588
3589         PR middle-end/18908
3590         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
3591         result of BIT_*_EXPR to bitfield precision.
3592
3593 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
3594
3595         PR tree-optimization/49742
3596         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
3597         as a potential write.
3598
3599 2011-07-19  Richard Guenther  <rguenther@suse.de>
3600
3601         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
3602         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
3603         (forward_propagate_comparison): Simplify, remove obsolete code.
3604
3605 2011-07-19  Richard Guenther  <rguenther@suse.de>
3606
3607         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
3608         BIT_XOR_EXPR, same as the RTL expander does.
3609         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
3610         (verify_gimple_assign_unary): Likewise.
3611         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
3612         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
3613         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
3614
3615 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
3616
3617         PR tree-optimization/49768
3618         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
3619         if offset is smaller than bitoffset, but offset+size is bigger
3620         than bitoffset.
3621
3622 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
3623
3624         PR tree-optimization/49771
3625         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
3626         zero step, set segment length to the size of the data-ref's type.
3627
3628 2011-07-18  Martin Jambor  <mjambor@suse.cz>
3629
3630         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
3631         comments.
3632         (ipcp_values_pool): Declare.
3633         (ipcp_sources_pool): Likewise.
3634         (ipcp_lattice): Changed to forward declaration.
3635         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
3636         cannot_devirtualize.
3637         (ipa_node_params): New fields descriptors, lattices, known_vals,
3638         clone_for_all_contexts and node dead, removed fields params and
3639         count_scale.
3640         (ipa_set_param_count): Removed.
3641         (ipa_get_param_count): Made to work with descriptors vector.
3642         (ipa_get_param): Updated.
3643         (ipa_param_cannot_devirtualize_p): Removed.
3644         (ipa_param_types_vec_empty): Likewise.
3645         (ipa_set_param_used): New function.
3646         (ipa_get_param_used): Updated to use descriptors vector.
3647         (ipa_func_list): Removed.
3648         (ipa_init_func_list): Removed declaration.
3649         (ipa_push_func_to_list_1): Likewise.
3650         (ipa_pop_func_from_list): Likewise.
3651         (ipa_push_func_to_list): Removed.
3652         (ipa_lattice_from_jfunc): Remove declaration.
3653         (ipa_get_jf_pass_through_result): Declare.
3654         (ipa_get_jf_ancestor_result): Likewise.
3655         (ipa_value_from_jfunc): Likewise.
3656         (ipa_get_lattice): Update.
3657         (ipa_lat_is_single_const): New function.
3658         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
3659         (ipa_init_func_list): Likewise.
3660         (ipa_pop_func_from_list): Likewise.
3661         (ipa_get_param_decl_index): Fix coding style.
3662         (count_formal_params): Removed.
3663         (count_formal_params_1): Renamed to count_formal_params.
3664         (ipa_populate_param_decls): Update to use descriptors vector.
3665         (ipa_initialize_node_params): Likewise.
3666         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
3667         (ipa_analyze_params_uses): Likewise.
3668         (ipa_free_node_params_substructures): Likewise and free also lattices
3669         and known values.
3670         (duplicate_array): Removed.
3671         (ipa_edge_duplication_hook): Add the new edge to the list of edge
3672         clones.
3673         (ipa_node_duplication_hook): Update to use new lattices.
3674         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
3675         (ipa_free_all_structures_after_iinln): Likewise.
3676         (ipa_write_node_info): Update to use new lattices.
3677         (ipa_read_node_info): Likewise.
3678         (ipa_get_jf_pass_through_result): New function.
3679         (ipa_get_jf_ancestor_result): Likewise.
3680         (ipa_value_from_jfunc): Likewise.
3681         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
3682         * ipa-cp.c: Reimplemented.
3683         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
3684         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
3685         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
3686         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
3687         * doc/invoke.texi (devirt-type-list-size): Removed description.
3688         (ipa-cp-value-list-size): Added description.
3689
3690 2011-07-18  Richard Henderson  <rth@redhat.com>
3691
3692         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
3693         before calling create_basic_block.
3694
3695 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
3696
3697         PR middle-end/49675
3698         * tree.c (build_common_builtin_nodes): Register
3699         __builtin_return_address, __cyg_profile_func_enter
3700         and __cyg_profile_func_exit.
3701
3702 2011-07-18  Richard Henderson  <rth@redhat.com>
3703
3704         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
3705         (add_labels_and_missing_jumps): ... here.
3706         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
3707
3708 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
3709
3710         PR target/47744
3711         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
3712         of DImode hard registers in PLUS address chains.
3713
3714 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3715
3716         PR bootstrap/49769
3717         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
3718         (alpha*-*-freebsd*): Likewise.
3719         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
3720         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
3721         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
3722         crtprec80.o, crtfastmath.o to extra_parts for all targets.
3723         (ia64*-*-elf*): Remove extra_parts.
3724         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
3725         (sparc64-*-linux*): Likewise.
3726         (sparc64-*-freebsd*): Likewise.
3727
3728         Revert:
3729         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
3730         (ia64*-*-linux*): Likewise.
3731         (mips64*-*-linux*): Likewise.
3732         (mips*-*-linux*): Likewise.
3733
3734 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
3735
3736         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
3737
3738 2011-07-18  Richard Guenther  <rguenther@suse.de>
3739
3740         * gimplify.c (gimplify_expr): Use input_location, not saved_location
3741         when building new trees.
3742
3743 2011-07-18  Richard Guenther  <rguenther@suse.de>
3744
3745         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
3746         expansion result to bitfield precision if required.
3747
3748 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3749
3750         * config.gcc (i[3456x]86-*-netware*): Remove.
3751
3752         * gthr-nks.h: Remove.
3753         * configure.ac (enable_threads): Remove nks.
3754         * configure: Regenerate.
3755
3756         * config/i386/i386.c (ix86_encode_section_info): Remove netware
3757         reference.
3758         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
3759         <netware.h> reference.
3760
3761         * config/i386/netware-libgcc.c,
3762         gcc/config/i386/netware-libgcc.def,
3763         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
3764         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
3765         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
3766         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
3767
3768         * doc/extend.texi (Function Attributes,
3769         callee_pop_aggregate_return): Remove i?86-netware reference.
3770         * doc/install.texi (Configuration, --enable-threads): Remove nks.
3771
3772 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3773
3774         PR target/49746
3775         Revert:
3776         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3777
3778         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
3779         patterns.
3780
3781 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
3782
3783         PR middle-end/49732
3784         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
3785
3786 2011-07-16  Matthias Klose  <doko@ubuntu.com>
3787
3788         * doc/install.texi: Document --enable-static-libjava.
3789
3790 2011-07-15  Richard Henderson  <rth@redhat.com>
3791
3792         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
3793         Replace all three arguments by returning a VEC of edges.
3794         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
3795         pointers and counts.
3796         (fix_edges_for_rarely_executed_code): Merge ...
3797         (rest_of_handle_partition_blocks): ... into...
3798         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
3799         any work was performed.
3800         (pass_partition_blocks): Clear todo_flags_finish.
3801
3802 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
3803             Jakub Jelinek  <jakub@redhat.com>
3804             Jonathan Wakely  <jwakely.gcc@gmail.com>
3805
3806         PR libstdc++/49745
3807         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
3808         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
3809
3810 2011-07-15  Jason Merrill  <jason@redhat.com>
3811
3812         PR testsuite/49741
3813         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
3814         rather than --tool_opts.
3815
3816 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
3817
3818         * doc/plugins.texi (Building GCC plugins): gengtype needs its
3819         corresponding gtype.state.
3820
3821 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3822
3823         PR target/49723
3824         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
3825
3826 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
3827
3828         PR target/48220
3829         * doc/md.texi (Standard Names): Document window_save.
3830         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
3831         expand_debug_expr and expand_debug_source_expr.  If the target has
3832         a window_save instruction, adjust the ENTRY_VALUE_EXP.
3833         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
3834         SSA_NAME_VAR is a parameter.
3835         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
3836         * var-tracking.c (parm_reg_t): New type and associated vector type.
3837         (windowed_parm_regs): New variable.
3838         (adjust_insn): If the target has a window_save instruction and this
3839         is the instruction, make its effect on parameter registers explicit.
3840         (next_non_note_insn_var_location): New function.
3841         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
3842         (vt_add_function_parameter): If the target has a window_save insn,
3843         adjust the incoming RTL and record that in windowed_parm_regs.
3844         (vt_finalize): Free windowed_parm_regs.
3845
3846 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
3847
3848         * doc/invoke.texi (C6X Options): New section.
3849         * doc/md.texi (TI C6X family): New section.
3850         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
3851         tic6x-*-uclinux.
3852         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
3853         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
3854         Provide C6X definitions.
3855         * config/c6x/c6x.md: New file.
3856         * config/c6x/constraints.md: New file.
3857         * config/c6x/predicates.md: New file.
3858         * config/c6x/c6x-sched.md.in: New file.
3859         * config/c6x/c6x-sched.md: New file.
3860         * config/c6x/gensched.sh: New file.
3861         * config/c6x/c6x-mult.md.in: New file.
3862         * config/c6x/genmult.sh: New file.
3863         * config/c6x/c6x-mult.md: New file.
3864         * config/c6x/sync.md: New file.
3865         * config/c6x/c6x-protos.h: New file.
3866         * config/c6x/sfp-machine.h: New file.
3867         * config/c6x/c6x.c: New file.
3868         * config/c6x/c6x.h: New file.
3869         * config/c6x/crti.s: New file.
3870         * config/c6x/crtn.s: New file.
3871         * config/c6x/lib1funcs.asm: New file.
3872         * config/c6x/c6x-modes.def: New file.
3873         * config/c6x/genopt.sh: New file.
3874         * config/c6x/c6x.opt: New file.
3875         * config/c6x/c6x-tables.opt: New file.
3876         * config/c6x/c6x-opts.h: New file.
3877         * config/c6x/c6x-isas.def: New file.
3878         * config/c6x/elf.h: New file.
3879         * config/c6x/elf-common.h: New file.
3880         * config/c6x/uclinux-elf.h: New file.
3881         * config/c6x/t-c6x: New file.
3882         * config/c6x/t-c6x-elf: New file.
3883         * config/c6x/t-c6x-uclinux: New file.
3884         * config/c6x/t-c6x-softfp: New file.
3885         * config/c6x/gtd.c: New file.
3886         * config/c6x/gtf.c: New file.
3887         * config/c6x/ltd.c: New file.
3888         * config/c6x/ltf.c: New file.
3889         * config/c6x/ged.c: New file.
3890         * config/c6x/gef.c: New file.
3891         * config/c6x/led.c: New file.
3892         * config/c6x/lef.c: New file.
3893         * config/c6x/eqd.c: New file.
3894         * config/c6x/eqf.c: New file.
3895         * config/c6x/libgcc-c6xeabi.ver: New file.
3896
3897         Revert
3898         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
3899         PR rtl-optimization/11320
3900         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
3901         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
3902         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
3903         current_sched_info->compute_jump_reg_dependencies. Record which
3904         registers are used and which registers are set by the jump.
3905         Clear deps->reg_conditional_sets after a barrier.
3906         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
3907         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
3908         (init_deps): Initialize reg_conditional_sets.
3909         (free_deps): Clear reg_conditional_sets.
3910         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
3911         Mark registers live on entry of the fallthrough block and conditionally
3912         set as set by the jump. Mark registers live on entry of non-fallthrough
3913         blocks as used by the jump.
3914         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
3915         Mark new parameters as unused.
3916
3917 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
3918
3919         PR tree-opt/49309
3920         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
3921         Use fold_build2_loc instead of build2.
3922         Use the correct type for the new tree.
3923
3924 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
3925
3926         PR rtl-optimization/11320
3927         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
3928         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
3929
3930 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
3931
3932         PR target/49487
3933         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
3934         of REG.
3935         (*rotw<mode>): Use const_int_operand for operand2.
3936         Use match_scatch for operand3.
3937         (*rotb<mode>): Ditto
3938         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
3939
3940 2011-07-14  Richard Guenther  <rguenther@suse.de>
3941
3942         PR tree-optimization/49651
3943         * tree-ssa-structalias.c (get_constraint_for_1): Properly
3944         handle dereferences with subvariables.
3945
3946 2011-07-14  Richard Guenther  <rguenther@suse.de>
3947
3948         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
3949         (fold_stmt_1): Do it here directly on gimple and as a first thing.
3950
3951 2011-07-14  Richard Guenther  <rguenther@suse.de>
3952
3953         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
3954         not bool_var when folding bool_var != 1 or bool_var == 0.
3955
3956 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
3957
3958         * haifa-sched.c (schedule_insns): Remove outdated comment.
3959         (schedule_block): When computing a known value for TODO_SPEC,
3960         just set it rather than using logical operations.
3961         (try_ready): Likewise.  Use a local variable rather than a
3962         pointer to TODO_SPEC.  Reorder an if statement to move the
3963         easy case to the then block.
3964         * sched-deps.c (dep_spec_p): New static function.
3965         (update_dep): Use it to decide whether to call
3966         change_spec_dep_to_hard.
3967         (get_back_and_forw_lists): Use it.
3968         (sd_resolve_dep): Likewise.
3969         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
3970         (haifa_note_mem_dep): Likewise.
3971         (check_dep): Likewise.
3972         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
3973         (sched_free_deps): Free in two passes.
3974
3975 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
3976
3977         PR middle-end/49736
3978         * expr.c (all_zeros_p): Undo bogus part of last change.
3979
3980 2011-07-14  Matthias Klose <doko@ubuntu.com>
3981
3982         * doc/extend.texi (optimize attribute): Fix typo.
3983
3984 2011-07-14  Richard Guenther  <rguenther@suse.de>
3985
3986         * gimplify.c (gimplify_expr): Only do required conversions.
3987
3988 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
3989
3990         PR target/43746
3991         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
3992         i.e. use default_elf_select_section.
3993         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
3994         (READONLY_DATA_SECTION_ASM_OP): Remove.
3995         (TARGET_ASM_NAMED_SECTION): Move from here...
3996         * config/avr/avr.c: ...to here.
3997         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
3998         (avr_asm_named_section): Make static.
3999
4000 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4001
4002         PR bootstrap/49739
4003         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
4004         and crtfastmath.o for Linux/x86.
4005
4006 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
4007
4008         * haifa-sched.c: Include "hashtab.h"
4009         (sched_no_dce): New global variable.
4010         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
4011         SHADOW_P): New macros.
4012         (last_clock_var, cycle_issued_insns): Move declarations.
4013         (must_backtrack): New static variable.
4014         (struct delay_pair): New structure.
4015         (delay_htab, delay_htab_i2): New static variables.
4016         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
4017         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
4018         functions.
4019         (dep_cost_1): If delay pairs exist, try to look up the insns and
4020         use the correct pair delay if we find them.
4021         (rank-for_schedule): Tweak priority for insns that must be scheduled
4022         soon to avoid backtracking.
4023         (queue_insn): Detect conditions which force backtracking.
4024         (ready_add): Likewise.
4025         (struct sched_block_state): Add member shadows_only_p.
4026         (struct haifa_save_data): New structure.
4027         (backtrack_queue): New static variable.
4028         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
4029         unschedule_insns_until, restore_last_backtrack_point,
4030         free_topmost_backtrack_point, free_backtrack_queue,
4031         estimate_insn_tick, estimate_shadow_tick): New functions.
4032         (prune_ready_list): New arg shadows_only_p.  All callers changed.
4033         If true, remove everything that isn't SHADOW_P.  Look up delay
4034         pairs and estimate ticks to avoid scheduling the first insn too early.
4035         (verify_shadows): New function.
4036         (schedule_block): Add machinery to enable backtracking.
4037         (sched_init): Take sched_no_dce into account when setting
4038         DF_LR_RUN_DCE.
4039         (free_delay_pairs): New function.
4040         (init_h_i_d): Initialize INSN_EXACT_TICK.
4041         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
4042         * sched-deps.c (sd_unresolve_dep): New function.
4043         * sched-int. (struct haifa_sched_info): New fields save_state
4044         and restore_state.
4045         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
4046         feeds_backtrack_insn and shadow_p.
4047         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
4048         (sched_no_dce): Declare variable.
4049         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
4050         sd_unresolve_dep): Declare functions.
4051         * modulo-sched.c (sms_sched_info): Clear the two new fields.
4052         * sched-rgn.c (rgn_const_sched_info): Likewise.
4053         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
4054         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
4055         (ebb_sched_info): Add them for the two new fields.
4056         (add_deps_for_risky_insns): Call add_delay_dependencies.
4057
4058 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
4059
4060         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
4061         Rename -mr11.
4062         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
4063         (rs6000_call_indirect_aix): Ditto.
4064         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
4065         (call_indirect_aix<ptrsize>_internal): Ditto.
4066         (call_indirect_aix<ptrsize>_nor11): Ditto.
4067         (call_indirect_aix<ptrsize>_internal2): Ditto.
4068         (call_value_indirect_aix<ptrsize>): Ditto.
4069         (call_value_indirect_aix<ptrsize>_internal): Ditto.
4070         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
4071         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
4072         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
4073
4074 2011-07-13  Jason Merrill  <jason@redhat.com>
4075
4076         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
4077
4078 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4079
4080         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
4081         * config/spu/spu.md ("clrsb<mode>2"): New expander.
4082
4083 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
4084
4085         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
4086         * configure: Regenerate.
4087
4088 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4089
4090         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
4091         (asm_file_start): Remove.
4092         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
4093         free_bb_for_insn around code that modifies insns before
4094         restarting df analysis.
4095
4096 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4097
4098         PR target/49541
4099         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
4100         (LINK_SPEC): ... here.
4101
4102 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
4103
4104         * haifa-sched.c (struct sched_block_state): New.
4105         (schedule_block): Move some local variables into such a structure.
4106
4107 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4108
4109         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
4110         * config/i386/t-crtpc: Remove.
4111         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
4112         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
4113         tmake_file.
4114         (x86_64-*-darwin*): Likewise.
4115         (i[34567]86-*-linux*): Likewise.
4116         (x86_64-*-linux*): Likewise.
4117
4118         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
4119         Handle -mpc32, -mpc64, -mpc80.
4120
4121 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4122
4123         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
4124         * config/alpha/t-crtfm: Remove.
4125         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
4126         * config/i386/t-crtfm: Remove.
4127         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
4128         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
4129         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
4130         * config/sparc/t-crtfm: Remove.
4131
4132         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
4133         (alpha*-*-freebsd*): Likewise.
4134         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
4135         (x86_64-*-darwin*): Likewise.
4136         (i[34567]86-*-linux*): Likewise.
4137         (x86_64-*-linux*): Likewise.
4138         (x86_64-*-mingw*): Likewise.
4139         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
4140         (ia64*-*-freebsd*): Likewise.
4141         (ia64*-*-linux*): Likewise.
4142         (mips64*-*-linux*): Likewise.
4143         (mips*-*-linux*): Likewise.
4144         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
4145         (sparc64-*-linux*): Likewise.
4146         (sparc64-*-freebsd*): Likewise.
4147
4148 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4149
4150         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
4151         * config/darwin-crt3.c: Move to ../libgcc/config.
4152         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
4153         ($(T)crt3$(objext)): Remove.
4154         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
4155         ($(T)crt2$(objext)): Remove.
4156         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
4157         (powerpc64-*-darwin*): Likewise.
4158
4159 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
4160
4161         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
4162
4163         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
4164         (addsi_1_zext): This.
4165
4166 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
4167
4168         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
4169         * doc/tm.texi: Regenerate.
4170         * target.def (mergeable_rodata_prefix): New defhookpod.
4171         * varasm.c (mergeable_string_section, mergeable_constant_section):
4172         Use it. Allocate name with alloca.
4173
4174 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
4175
4176         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
4177
4178 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
4179
4180         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
4181         overlap check.
4182
4183 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
4184
4185         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
4186         (count_type_elements): Delete.
4187         (complete_ctor_at_level_p): Declare.
4188         * expr.c (flexible_array_member_p): New function, split out from...
4189         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
4190         parameter with for_ctor_p.  When for_ctor_p is true, return the
4191         number of elements that should appear in the top-level constructor,
4192         otherwise return an estimate of the number of scalars.
4193         (categorize_ctor_elements): Replace p_must_clear with p_complete.
4194         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
4195         (complete_ctor_at_level_p): New function, borrowing union logic
4196         from old categorize_ctor_elements_1.
4197         (mostly_zeros_p): Return true if the constructor is not complete.
4198         (all_zeros_p): Update call to categorize_ctor_elements.
4199         * gimplify.c (gimplify_init_constructor): Update call to
4200         categorize_ctor_elements.  Don't call count_type_elements.
4201         Unconditionally prevent clearing for variable-sized types,
4202         otherwise rely on categorize_ctor_elements to detect
4203         incomplete initializers.
4204
4205 2011-07-13  Richard Guenther  <rguenther@suse.de>
4206
4207         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
4208         the final type is integral.
4209
4210 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
4211
4212         * sched-int.h (struct _dep): Add member cost.
4213         (DEP_COST, UNKNOWN_DEP_COST): New macros.
4214         * sched-deps.c (init_dep_1): Initialize DEP_COST.
4215         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
4216         (sched_change_pattern): Reset it for dependent insns.
4217
4218 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4219
4220         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
4221         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
4222         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
4223         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
4224         (CRT0_S, MCRT0_S): Remove.
4225         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
4226         Remove.
4227         (s-crt0): Remove.
4228         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
4229
4230 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
4231
4232         * cse.c (insert_with_costs): Put semi-colon after empty loop body
4233         on the next line.
4234         * emit-rtl.c (push_to_sequence): Likewise.
4235         * haifa-sched.c (max_issue): Likewise.
4236         * matrix-reorg.c (add_allocation_site): Likewise.
4237         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
4238         * reload.c (alternative_allows_const_pool_ref): Likewise.
4239         * sched-rgn.c (rgn_add_block): Likewise.
4240         (rgn_fix_recovery_cfg): Likewise.
4241         * tree.c (attribute_list_contained): Likewise.
4242
4243 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
4244
4245         * config/i386/i386.c: Tidy processor feature bitmasks.
4246         (m_P4_NOCONA): New.
4247
4248 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
4249
4250         PR rtl-opt/49474
4251         * cprop.c (find_implicit_sets): Correct the condition.
4252
4253 2011-07-12  Richard Henderson  <rth@redhat.com>
4254
4255         PR target/49713
4256         * dwarf2out.h (dwarf_frame_regnum): Remove.
4257         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
4258         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
4259         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
4260         (execute_dwarf2_frame): Initialize them.
4261         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
4262         users of the macros with the variables.
4263         (expand_builtin_dwarf_sp_column): Revert last change.
4264         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
4265         result of DWARF_FRAME_REGNUM into a local variable.
4266
4267 2011-07-12  Richard Henderson  <rth@redhat.com>
4268
4269         PR target/49714
4270         * config/i386/i386.c (x86_output_mi_thunk): Use
4271         machopic_indirect_call_target instead of machopic_indirection_name
4272         directly.
4273
4274 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
4275             Eric Botcazou  <ebotcazou@adacore.com>
4276
4277         * prefix.h: Wrap up in extern "C" block.
4278
4279 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
4280
4281         AMD bdver2 Enablement
4282         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
4283         (case ${target}): Add bdver2.
4284         * config/i386/driver-i386.c (host_detect_local_cpu): Let
4285         -march=native recognize bdver2 processors.
4286         * config/i386/i386-c.c (ix86_target_macros_internal): Add
4287         bdver2 def_and_undef
4288         * config/i386/i386.c (struct processor_costs bdver2_cost): New
4289         bdver2 cost table.
4290         (m_BDVER2): New definition.
4291         (m_AMD_MULTIPLE): Includes m_BDVER2.
4292         (initial_ix86_tune_features): Add bdver2 tuning.
4293         (processor_target_table): Add bdver2 entry.
4294         (static const char *const cpu_names): Add bdver2 entry.
4295         (ix86_option_override_internal): Add bdver2 instruction sets.
4296         (ix86_issue_rate): Add bdver2.
4297         (ix86_adjust_cost): Add bdver2.
4298         (has_dispatch): Add bdver2.
4299         * config/i386/i386.h (TARGET_BDVER2): New definition.
4300         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
4301         (enum processor_type): Add PROCESSOR_BDVER2.
4302         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
4303         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
4304         description.
4305
4306 2011-07-12  Richard Henderson  <rth@redhat.com>
4307
4308         PR target/49714
4309         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
4310         destination address in memory on some paths.
4311
4312 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
4313
4314         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
4315         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
4316         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
4317         * function.c (locate_and_pad_parm): Take it into account.
4318         * target.def (function_arg_round_boundary): New hook.
4319         * targhooks.c (default_function_arg_round_boundary): New function.
4320         * targhooks.h (default_function_arg_round_boundary): Declare.
4321         * doc/tm.texi: Regenerate.
4322
4323 2011-07-12  Richard Guenther  <rguenther@suse.de>
4324
4325         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
4326         Do not perform no-op changes.
4327
4328 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
4329
4330         * config/arm/predicates.md (neon_struct_operand): Make a normal
4331         predicate.
4332         (neon_struct_or_register_operand): New predicate.
4333         * config/arm/neon.md (movmisalign<mode>): Replace predicates
4334         with neon_struct_or_register_operand.
4335         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
4336         neon_struct_operand instead of memory_operand.
4337
4338 2011-07-12  Martin Jambor  <mjambor@suse.cz>
4339
4340         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
4341         * cgraph.c (cgraph_get_node_or_alias): Removed.
4342         (change_decl_assembler_name): Changed all calls to
4343         cgraph_get_node_or_alias to a call to cgraph_get_node.
4344         (cgraph_make_decl_local): Likewise.
4345         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
4346         * varasm.c (default_binds_local_p_1): Likewise.
4347         (decl_binds_to_current_def_p): Likewise.
4348
4349 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
4350
4351         PR tree-optimization/49712
4352         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
4353
4354 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
4355
4356         * genautomata.c (add_arc): Return void.  All callers changed.
4357         (make_automaton): Remove dead code.
4358
4359 2011-07-11  Richard Henderson  <rth@redhat.com>
4360
4361         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
4362         (DW_FRAME_POINTER_REGNUM): New.
4363         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
4364         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
4365         (dwf_regno): New.
4366         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
4367         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
4368         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
4369         Use it.
4370         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
4371         * dwarf2out.h (dwarf_frame_regnum): New.
4372         (struct cfa_loc): Document the domain of the reg member.
4373
4374 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
4375
4376         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
4377         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
4378
4379 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
4380
4381         PR debug/49676
4382         * dwarf2out.c (int_shift_loc_descriptor): New function.
4383         (int_loc_descriptor): If shorter, emit i as
4384         (i >> shift), shift, DW_OP_shl for suitable shift value.
4385         Similarly, try to optimize large negative values using
4386         DW_OP_neg of a positive value if shorter.
4387         (size_of_int_shift_loc_descriptor): New function.
4388         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
4389         changes.
4390         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
4391         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
4392         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
4393         is shorter.
4394         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
4395         addend as added DW_OP_plus if it is shorter.
4396
4397 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4398
4399         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
4400         (DTORS_SECTION_ASM_OP): Define.
4401
4402 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4403
4404         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
4405         * config/t-dfprules: Move to ../libgcc/config.
4406         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
4407         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
4408         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
4409         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
4410         Likewise.
4411         (i[34567]86-*-cygwin*): Likewise.
4412         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
4413         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
4414         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
4415         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
4416         D64PBIT_FUNCS, D128PBIT_FUNCS.
4417
4418 2011-07-11  Richard Guenther  <rguenther@suse.de>
4419
4420         * tree-vrp.c (simplify_conversion_using_ranges): Manually
4421         translate the source value-range through the conversion chain.
4422
4423 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
4424
4425         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
4426
4427 2011-07-11  Arthur Loiret  <aloiret@debian.org>
4428
4429         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
4430         a bi-arch compiler defaulting to 31-bit. In this case:
4431         (tmake_file): Add s390/t-linux64.
4432         * doc/install.texi: Add s390-linux to the list of targets supporting
4433         --enable-targets=all.
4434
4435 2011-07-11  Arthur Loiret  <aloiret@debian.org>
4436             Matthias Klose <doko@debian.org>
4437
4438         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
4439         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
4440         (tm_file): Add mips/linux64.h.
4441         (tmake_file): Add mips/t-linux64.
4442         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
4443         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
4444         instead of hardcoded mabi=n32.
4445         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
4446         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
4447         convention.
4448
4449 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4450
4451         * passes.c (init_optimization_passes): Add invariant motion pass
4452         after induction variable optimization.
4453
4454 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
4455
4456         PR target/39633
4457         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
4458         offsets 1..5 set cc0 in a usable way.
4459
4460 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
4461
4462         * tree.h (call_expr_arg): Remove.
4463         (call_expr_argp): Likewise.
4464
4465 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
4466
4467         * config/sparc/sparc.md (save_register_window_1): Rename to...
4468         (window_save): ...this.
4469         * config/sparc/sparc.c (emit_save_register_window): Rename to...
4470         (emit_window_save): ...this.
4471         (sparc_expand_prologue): Adjust to above renaming.
4472
4473 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
4474
4475         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
4476         of movabs for x32.
4477
4478 2011-07-10  Richard Henderson  <rth@redhat.com>
4479
4480         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
4481         run final, instead of emitting text directly.
4482
4483 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
4484
4485         * config/i386/i386.c (ix86_option_override_internal): Turn on
4486         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
4487         small PIC models for TARGET_X32.
4488
4489 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
4490
4491         PR target/49684
4492         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
4493         $(LIBGCC2_CFLAGS).
4494
4495         PR bootstrap/49680
4496         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
4497         stray notes and debug insns by using prev_nonnote_nondebug_insn
4498         instead of PREV_INSN.
4499
4500 2011-07-09  Richard Henderson  <rth@redhat.com>
4501
4502         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
4503         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
4504         * dwarf2out.c: ... here.
4505         (output_all_cfis): Remove.
4506         (dwarf2out_switch_text_section): Use output_cfis directly.
4507         (size_of_locs): Export.
4508         (output_loc_sequence, output_loc_sequence_raw): Export.
4509         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
4510         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
4511         output_cfa_loc_raw): Move to ...
4512         * dwarfcfi.c: ... here.
4513         * dwarf2out.h: Update decls.
4514
4515 2011-07-09  Richard Henderson  <rth@redhat.com>
4516
4517         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
4518         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
4519         * dwarf2cfi.c: ... here.
4520         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
4521         (DWARF_ROUND, DWARF_CIE_ID): Remove.
4522         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
4523         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
4524         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
4525
4526 2011-07-09  Richard Henderson  <rth@redhat.com>
4527
4528         * dwarf2cfi.c (cie_return_save): New.
4529         (queue_reg_save): Use compare_reg_or_pc.
4530         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
4531         (dwarf2out_frame_debug_expr): Likewise.
4532         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
4533         (initial_return_save): Likewise.
4534         (execute_dwarf2_frame): Save and restore initial return save from
4535         the cie to the fde.
4536         * config/mips/mips.c (mips_frame_set): Remove special case for
4537         DWARF_FRAME_RETURN_COLUMN.
4538
4539 2011-07-09  Richard Henderson  <rth@redhat.com>
4540
4541         * dwarf2cfi.c (lookup_cfa): Remove.
4542         (execute_dwarf2_frame): Assert queues are empty on entry.
4543         Setup initial cfa directly, not via lookup_cfa.
4544         Don't clear args_size state here.
4545
4546 2011-07-09  Richard Henderson  <rth@redhat.com>
4547
4548         * dwarf2cfi.c (add_cfi_vec): New.
4549         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
4550         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
4551         (execute_dwarf2_frame): Set add_cfi_vec.
4552
4553 2011-07-09  Richard Henderson  <rth@redhat.com>
4554
4555         * defaults.h (ASM_COMMENT_START): Move here...
4556         * dwarf2asm.c: ... from here.
4557         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
4558         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
4559         * varasm.c: Likewise.
4560
4561 2011-07-09  Richard Henderson  <rth@redhat.com>
4562
4563         PR debug/49686
4564         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
4565         (create_cfi_notes): ... do it here instead.
4566
4567 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
4568
4569         PR debug/49676
4570         * dwarf2out.c (size_of_int_loc_descriptor): New function.
4571         (address_of_int_loc_descriptor): Use it.
4572         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
4573
4574 2011-07-09  Richard Henderson  <rth@redhat.com>
4575
4576         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
4577         (prologue, epilogue): New.
4578         (return, *rts): New.
4579         (blockage, setd, seti): New.
4580         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
4581         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
4582         (pdp11_saved_regno): New.
4583         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
4584         generate rtl instead of text.
4585         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
4586         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
4587         * config/pdp11/pdp11-protos.h: Update.
4588
4589 2011-07-09  Richard Henderson  <rth@redhat.com>
4590
4591         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
4592         try to insert an rtl prologue here.
4593         (rs6000_output_function_epilogue): Similarly.
4594         * config/rs6000/rs6000.md (prologue): Emit a barrier to
4595         satisfy !TARGET_SCHED_PROLOG.
4596         (epilogue, sibcall_epilogue): Likewise.
4597
4598 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
4599
4600         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
4601         (FP_REG_P): Delete.
4602         (IN_OR_GLOBAL_P): Likewise.
4603
4604 2011-07-08  Jason Merrill  <jason@redhat.com>
4605
4606         PR c++/45437
4607         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
4608         compound assignment.
4609
4610         * cgraph.c (cgraph_add_to_same_comdat_group): New.
4611         * cgraph.h: Declare it.
4612         * ipa.c (function_and_variable_visibility): Make sure thunks
4613         have the right visibility.
4614
4615 2011-07-08  Richard Henderson  <rth@redhat.com>
4616
4617         PR bootstrap/49680
4618         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
4619         any tablejump vector.
4620
4621         PR bootstrap/49680
4622         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
4623         end of the prologue.
4624
4625 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
4626
4627         PR target/49621
4628         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
4629         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
4630         * config/rs6000/vector.md (vector_select_<mode>,
4631         vector_select_<mode>_uns): Change second operand of NE to
4632         CONST0_RTX (<MODE>mode) instead of const0_rtx.
4633         * config/rs6000/altivec.md (*altivec_vsel<mode>,
4634         *altivec_vsel<mode>_uns): Expect second operand of NE to be
4635         zero_constant of the corresponding vector mode.
4636         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
4637         Likewise.
4638
4639 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
4640
4641         * graphite-dependences.c (build_alias_set_powerset): Remove
4642         continue from loop, add one more assert.
4643
4644 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
4645
4646         PR target/46779
4647         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
4648         In particular, allow 8-bit values in r28 and r29.
4649         (avr_hard_regno_scratch_ok): Disallow any register that might be
4650         part of the frame pointer.
4651         (avr_hard_regno_rename_ok): Same.
4652         (avr_legitimate_address_p): Don't allow SUBREGs.
4653
4654 2011-07-08  Julian Brown  <julian@codesourcery.com>
4655
4656         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
4657         big-endian mode.
4658         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
4659         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
4660         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
4661         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
4662         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
4663         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
4664         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
4665         registers in big-endian mode.
4666
4667 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
4668
4669         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
4670         in terms of another.
4671         (write_attr_value): Write a cast if necessary.
4672
4673         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
4674         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
4675         (REG_WORDS_BIG_ENDIAN): Document.
4676         * doc/tm.texi: Regenerate.
4677         * reload.c (operands_match_p): Take it into account.
4678         (reload_adjust_reg_for_mode): Likewise.
4679         * rtlanal.c (subreg_get_info): Likewise.
4680
4681 2011-07-08  Richard Guenther  <rguenther@suse.de>
4682
4683         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
4684         folding.
4685
4686 2011-07-08  Kai Tietz  <ktietz@redhat.com>
4687
4688         * fold-const.c (fold_truth_andor): Factored out truth_andor
4689         label from fold_binary as function.
4690         (fold_binary_loc): Replace truth_andor lable
4691         by function fold_truth_andor.
4692
4693 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
4694
4695         PR middle-end/49519
4696         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
4697         check if address is stored in register. If so - give up.
4698         (check_sibcall_argument_overlap_1): Do not perform check of
4699         overlapping when it is call to address.
4700
4701 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
4702
4703         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
4704         of magic '31'.
4705
4706 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
4707
4708         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
4709         GET_MODE_BITSIZE where appropriate.
4710         (widen_leading, expand_parity, expand_ctz, expand_ffs,
4711         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
4712         expand_float, expand_fix): Likewise.
4713         * expr.c (convert_move, convert_modes, expand_expr_real_2,
4714         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
4715         * stor-layout.c (get_mode_bounds): Likewise.
4716         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
4717         Likewise.
4718         * convert.c (convert_to_integer): Likewise.
4719         * expmed.c (expand_shift_1): Likewise.
4720
4721         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
4722         a bitsize.
4723
4724         * optabs.c (expand_binop): Tighten conditions for doubleword
4725         expansions.
4726         (widen_bswap): Assert that mode bitsize and precision are the same.
4727         * stor-layout.c (get_best_mode): Skip modes that have lower
4728         precision than bitsize.
4729         * recog.c (simplify_while_replacing): Assert that bitsize and
4730         precision are the same.
4731
4732 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4733
4734         * Makefile.in (LIBGCOV): Remove.
4735         (libgcc.mvars): Remove LIBGCOV.
4736         * libgov.c: Move to ../libgcc.
4737
4738 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4739
4740         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
4741
4742 2011-07-08  Martin Jambor  <mjambor@suse.cz>
4743
4744         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
4745         is too big for total scalarization.
4746
4747 2011-07-07  Richard Henderson  <rth@redhat.com>
4748
4749         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
4750         (DBX_DEBUGGING_INFO): Undef.
4751
4752 2011-07-07  Richard Henderson  <rth@redhat.com>
4753
4754         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
4755         Handle some opcodes specially for debugging.
4756         * print-rtl.c: Include dwarf2out.h
4757         (print_rtx): Handle NOTE_INSN_CFI.
4758         * Makefile.in (print-rtl.o): Update.
4759
4760 2011-07-07  Richard Henderson  <rth@redhat.com>
4761
4762         * tree-pass.h (pass_dwarf2_frame): Declare.
4763         * passes.c (init_optimization_passes): Add it.
4764         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
4765         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
4766         make static, do not call add_cfis_to_fde.
4767         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
4768         dwarf2out_frame_init): Merge into...
4769         (execute_dwarf2_frame): ... here.  New function.
4770         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
4771         saved_do_cfi_asm to a tri-state variable.
4772         (gate_dwarf2_frame, pass_dwarf2_frame): New.
4773         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
4774         if it has yet to be done.  Don't call dwarf2cfi_function_init.
4775         * dwarf2out.h, debug.h: Update decls.
4776         * final.c (final_start_function): Don't call
4777         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
4778         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
4779         * toplev.c (lang_dependent_init): Likewise.
4780
4781 2011-07-07  Richard Henderson  <rth@redhat.com>
4782
4783         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
4784         FDE_TABLE_INCREMENT): Replace with...
4785         (fde_vec): ... this, a new vector.
4786         (current_fde): Remove.  Replace all users with cfun->fde.
4787         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
4788         (size_of_aranges, dwarf2out_finish): Likewise.
4789         (dwarf2out_alloc_current_fde): Break out from ...
4790         (dwarf2out_begin_prologue): ... here.
4791         (dwarf2out_frame_init): Remove.
4792         * dwarf2cfi.c: Update all users of current_fde.
4793         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
4794         * dwarf2out.h: Update decls.
4795         (dw_fde_node): Add fde_index member.
4796         * function.h (struct function): Add fde member.
4797
4798 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
4799             Richard Henderson  <rth@redhat.com>
4800
4801         * dwarf2cfi.c (add_cfi): Remove.
4802         (dwarf2out_cfi_label): Remove force argument.  Only generate the
4803         label name.
4804         (add_fde_cfi): Simplify the different code paths.
4805         (add_cie_cfi): New.
4806         (old_cfa, old_cfa_remember): New.
4807         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
4808         (last_reg_save_label): Remove.
4809         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
4810         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
4811         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
4812         dwarf2out_frame_debug_cfa_expression,
4813         dwarf2out_frame_debug_cfa_restore,
4814         dwarf2out_frame_debug_cfa_window_save,
4815         dwarf2out_frame_debug_expr): Remove label parameter.
4816         (cfi_label_required_p, add_cfis_to_fde): New.
4817         (dwarf2out_frame_debug_after_prologue): New.
4818         (dwarf2cfi_frame_init): Initialize old_cfa.
4819         (dwarf2out_frame_debug_restore_state): Likewise.
4820         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
4821         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
4822         * final.c (final_start_function): Call
4823         dwarf2out_frame_debug_after_prologue.
4824
4825 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
4826             Richard Henderson  <rth@redhat.com>
4827
4828         * dwarf2cfi.c (cfi_insn): New.
4829         (dwarf2out_cfi_label): Don't emit cfi label here.
4830         (add_fde_cfi): Create a NOTE_INSN_CFI.
4831         (dwarf2out_frame_debug): Setup cfi_insn.
4832         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
4833         (dwarf2out_cfi_begin_epilogue): Make static.
4834         (dwarf2out_frame_debug_restore_state): Make static.
4835         * dwarf2out.c (output_cfi_directive): Make static.
4836         (dwarf2out_emit_cfi): New.
4837         * dwarf2out.h: Update.
4838         * final.c (final): Remove CFI notes.
4839         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
4840         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
4841         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
4842         * insn-notes.def (NOTE_INSN_CFI): New.
4843         (NOTE_INSN_CFI_LABEL): New.
4844         * rtl.h (union rtunion_def): Add rt_cfi member.
4845         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
4846
4847 2011-07-07  Richard Henderson  <rth@redhat.com>
4848
4849         * dwarf2cfi.c: New file.
4850         * Makefile.in (OBJS): Add it.
4851         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
4852         * gengtype.c (open_base_files): Include dwarf2out.h.
4853         * coretypes.h (enum var_init_status): Move from ...
4854         * rtl.h: ... here.
4855         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
4856         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
4857         expand_builtin_dwarf_sp_column, init_return_column_size,
4858         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
4859         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
4860         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
4861         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
4862         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
4863         compute_barrier_args_size, dwarf2out_args_size,
4864         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
4865         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
4866         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
4867         queue_reg_save, dwarf2out_flush_queued_reg_saves,
4868         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
4869         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
4870         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
4871         dwarf2out_frame_debug_cfa_expression,
4872         dwarf2out_frame_debug_cfa_restore,
4873         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
4874         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
4875         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
4876         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
4877         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
4878         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
4879         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
4880         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
4881         dw_loc_descr_node): Move to dwarf2out.h.
4882         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
4883         mem_loc_descriptor): Export.
4884         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
4885         (dwarf2out_frame_init): Extract CIE generation code to
4886         dwarf2cfi_frame_init.
4887
4888 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
4889
4890         PR target/49660
4891         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
4892         MASK_V8PLUS, remove commented out flag and reorder.
4893
4894 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
4895
4896         PR c/49644
4897         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
4898         one non-complex and one complex argument, call c_save_expr on both
4899         operands.
4900
4901 2011-07-07  Martin Jambor  <mjambor@suse.cz>
4902
4903         PR middle-end/49495
4904         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
4905         (verify_cgraph_node): Some functinality moved to
4906         verify_edge_corresponds_to_fndecl, call it.
4907
4908 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
4909
4910         * config.gcc (*local*): Remove.
4911         * doc/install-old.texi: Don't mention local configurations.
4912
4913 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
4914
4915         PR debug/49522
4916         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
4917         referencing debug insns that have been reset.
4918         (dead_debug_insert_before): Don't assert reg is non-NULL,
4919         instead return immediately if it is NULL.
4920
4921 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
4922
4923         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
4924
4925 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
4926
4927         * hw-doloop.c: New file.
4928         * hw-doloop.h: New file.
4929         * Makefile.in (OBJS): Add hw-doloop.o.
4930         (hw-doloop.o): New rule.
4931         ($(obj_out_file)): Add hw-doloop.h dependency.
4932         * config/bfin/bfin.c: Include "hw-doloop.h".
4933         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
4934         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
4935         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
4936         type changed to hwloop_info.  Return bool, true if the loop was
4937         successfully optimized.  Remove code that was moved to
4938         hw-doloop.c, and adjust other parts.
4939         (hwloop_fail): New static function, containing parts that used
4940         to be in bfin_optimize_loop.
4941         (bfin_discover_loop, bfin_discover_loops, free_loops,
4942         bfin_reorder_loops): Remove.
4943         (hwloop_pattern_reg): New static function.
4944         (bfin_doloop_hooks): New variable.
4945         (bfin_reorg_loops): Remove most code, call reorg_loops.
4946         * config/bfin/bfin.md (doloop_end splitter): Also enable if
4947         loop counter is a memory_operand.
4948
4949 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
4950
4951         * config.gcc: Support --with-multilib-list for x86 Linux targets.
4952
4953         * configure.ac: Mention x86-64 for --with-multilib-list.
4954         * configure: Regenerated.
4955
4956         * config/i386/gnu-user64.h (SPEC_64): Support x32.
4957         (SPEC_32): Likewise.
4958         (ASM_SPEC): Likewise.
4959         (LINK_SPEC): Likewise.
4960         (TARGET_THREAD_SSP_OFFSET): Likewise.
4961         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
4962         (SPEC_X32): New.
4963
4964         * config/i386/i386.h (TARGET_X32): New.
4965         (TARGET_LP64): New.
4966         (LONG_TYPE_SIZE): Likewise.
4967         (POINTER_SIZE): Likewise.
4968         (POINTERS_EXTEND_UNSIGNED): Likewise.
4969         (OPT_ARCH64): Support x32.
4970         (OPT_ARCH32): Likewise.
4971
4972         * config/i386/i386.opt (mx32): New.
4973
4974         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
4975         (GLIBC_DYNAMIC_LINKERX32): Likewise.
4976         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
4977         (GLIBC_DYNAMIC_LINKERX32): Likewise.
4978
4979         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
4980         (BIONIC_DYNAMIC_LINKERX32): Likewise.
4981         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
4982
4983         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
4984
4985         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
4986
4987         * doc/invoke.texi: Document -mx32.
4988
4989 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
4990
4991         * doc/invoke.texi (mwords-little-endian): Deprecate.
4992         * config/arm/arm.opt (mwords-little-endian): Likewise.
4993         * config/arm/arm.c (arm_option_override): Warn about the deprecation
4994         of -mwords-little-endian.
4995
4996 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
4997
4998         * reload1.c (choose_reload_regs): Use mode sizes to check whether
4999         an old reload register completely defines the required value.
5000
5001 2011-07-07  Richard Guenther  <rguenther@suse.de>
5002
5003         * fold-const.c (fold_unary_loc): Do not strip sign-changes
5004         for NEGATE_EXPR.
5005
5006 2011-07-07  Richard Guenther  <rguenther@suse.de>
5007
5008         * tree-vrp.c (simplify_conversion_using_ranges): New function.
5009         (simplify_stmt_using_ranges): Call it.
5010
5011 2011-07-07  Kai Tietz  <ktietz@redhat.com>
5012
5013         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
5014         (lookup_logical_inverted_value): Likewise.
5015         (simplify_bitwise_binary_1): Likewise.
5016         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
5017
5018 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
5019
5020         * gcc.c (%[Spec]): Don't document.
5021         (struct spec_list): Update comment.
5022         (do_spec_1): Don't handle %[Spec].
5023         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
5024
5025 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
5026
5027         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
5028         default based on TARGET_ASM_NAMED_SECTION.
5029         * common/common-target.def (have_named_sections): Default to true.
5030         * common/config/default-common.c: Don't include tm.h.
5031         * common/config/picochip/picochip-common.c
5032         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
5033         * common/config/m32c/m32c-common.c: Remove.
5034         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
5035         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
5036         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
5037         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
5038         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
5039         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
5040         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
5041
5042 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
5043
5044         PR middle-end/49640
5045         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
5046         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
5047
5048 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5049
5050         PR libmudflap/49550
5051         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
5052
5053 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5054
5055         PR target/39150
5056         * configure.ac (gcc_cv_as_hidden): Also accept
5057         x86_64-*-solaris2.1[0-9]*.
5058         (gcc_cv_as_cfi_directive): Likewise.
5059         (gcc_cv_as_comdat_group_group): Likewise.
5060         (set_have_as_tls): Likewise.
5061         * configure: Regenerate.
5062         * config.gcc (i[34567]86-*-solaris2*): Also handle
5063         x86_64-*-solaris2.1[0-9]*.
5064         * config.host (i[34567]86-*-solaris2*): Likewise.
5065         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
5066         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
5067         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
5068         (TARGET_LD_EMULATION): Use it.
5069         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
5070         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
5071         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
5072         (ASM_CPU64_DEFAULT_SPEC): Define.
5073         (ASM_CPU_SPEC): Use %(asm_cpu_default).
5074         (ASM_SPEC): Redefine.
5075         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
5076         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
5077         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
5078         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
5079         configuration.
5080         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
5081
5082 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5083
5084         * config/sol2.h (ASM_SPEC): Split into ...
5085         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
5086         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
5087         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
5088         (ASM_SPEC): Use ASM_SPEC_BASE.
5089         * config/sparc/sol2.h (ASM_SPEC): Redefine.
5090
5091 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
5092
5093         * config/avr/avr.md (*reload_insi): Change predicate #1 to
5094         const_int_operand.  Ditto for peep2 producing this insn.
5095         Add argument to output_reload_insisf call.
5096         (*movsi,*movsf): Add argument to output_movsisf call.
5097         (*reload_insf): New insn and new peep2 to produce it.
5098         * config/avr/avr-protos.h (output_movsisf): Change prototype.
5099         (output_reload_insisf): Change prototype.
5100         * config/avr/avr.c (avr_asm_len): New function.
5101         (output_reload_insisf): Rewrite.
5102         (output_movsisf): Change prototype.  output_reload_insisf for
5103         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
5104         (adjust_insn_length): Add argument to output_movsisf and
5105         output_reload_insisf call.
5106
5107 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
5108
5109         * emit-rtl.c (paradoxical_subreg_p): New function.
5110         * rtl.h (paradoxical_subreg_p): Declare.
5111         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
5112         apply_distributive_law, simplify_comparison, simplify_set): Use it.
5113         * cse.c (record_jump_cond, cse_insn): Likewise.
5114         * expr.c (force_operand): Likewise.
5115         * rtlanal.c (num_sign_bit_copies1): Likewise.
5116         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
5117         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
5118         (push_reload): Use precision to check for paradoxical subregs.
5119         * expmed.c (extract_bit_field_1): Likewise.
5120
5121         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
5122         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
5123         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
5124         simplify_set, simplify_logical, expand_compound_operation,
5125         make_extraction, force_to_mode, if_then_else_cond, extended_count,
5126         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
5127         record_value_for_reg): Likewise.
5128         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
5129         * simplify-rtx. c (simplify_unary_operation_1,
5130         simplify_binary_operation_1, simplify_const_relational_operation):
5131         Likewise.
5132
5133         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
5134         instead of GET_MODE_BITSIZE where appropriate.
5135         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
5136         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
5137         init_num_sign_bit_copies_in_rep): Likewise.
5138         * cse.c (fold_rtx, cse_insn): Likewise.
5139         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
5140         * simplify-rtx.c (simplify_unary_operation_1,
5141         simplify_const_unary_operation, simplify_binary_operation_1,
5142         simplify_const_binary_operation, simplify_ternary_operation,
5143         simplify_const_relational_operation, simplify_subreg): Likewise.
5144         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
5145         simplify_if_then_else, simplify_set, expand_compound_operation,
5146         expand_field_assignment, make_extraction, if_then_else_cond,
5147         make_compound_operation, force_to_mode, make_field_assignment,
5148         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
5149         extended_count, try_widen_shift_mode, simplify_shift_const_1,
5150         simplify_comparison, record_promoted_value, simplify_compare_const,
5151         record_dead_and_set_regs_1): Likewise.
5152
5153         Revert:
5154         * simplify-rtx.c (simplify_const_binary_operation): Use the
5155         shift_truncation_mask hook instead of performing modulo by width.
5156         Compare against mode precision, not bitsize.
5157         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
5158         Use shift_truncation_mask instead of constructing the value manually.
5159
5160 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
5161
5162         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
5163         declaration.
5164         (rs6000_save_toc_in_prologue_p): Ditto.
5165
5166         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
5167         up the static chain (r11) during indirect function calls.
5168         (-msave-toc-indirect): New undocumented debug switch.
5169
5170         * config/rs6000/rs6000.c (struct machine_function): Add
5171         save_toc_in_prologue field to note whether the prologue needs to
5172         save the TOC value in the reserved stack location.
5173         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
5174         to save the TOC in the prologue, do so.
5175         (rs6000_trampoline_init): Don't allow creating AIX style
5176         trampolines if -mno-r11 is in effect.
5177         (rs6000_call_indirect_aix): New function to create AIX style
5178         indirect calls, adding support for -mno-r11 to suppress loading
5179         the static chain, and saving the TOC in the prologue instead of
5180         the call body.
5181         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
5182         TOC in the prologue.
5183
5184         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
5185         register numbers.
5186         (TOC_REGNUM): Ditto.
5187         (STATIC_CHAIN_REGNUM): Ditto.
5188         (ARG_POINTER_REGNUM): Ditto.
5189         (SFP_REGNO): Delete, unused.
5190         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
5191         function descriptor offsets.
5192         (TOC_SAVE_OFFSET_64BIT): Ditto.
5193         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
5194         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
5195         (AIX_FUNC_DESC_SC_32BIT): Ditto.
5196         (AIX_FUNC_DESC_SC_64BIT): Ditto.
5197         (ptrload): New mode attribute for the appropriate load of a pointer.
5198         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
5199         (call_indirect_aix64): Ditto.
5200         (call_value_indirect_aix32): Ditto.
5201         (call_value_indirect_aix64): Ditto.
5202         (call_indirect_nonlocal_aix32_internal): Ditto.
5203         (call_indirect_nonlocal_aix32): Ditto.
5204         (call_indirect_nonlocal_aix64_internal): Ditto.
5205         (call_indirect_nonlocal_aix64): Ditto.
5206         (call): Rewrite AIX indirect function calls.  Add support for
5207         eliminating the static chain, and for moving the save of the TOC
5208         to the function prologue.
5209         (call_value): Ditto.
5210         (call_indirect_aix<ptrsize>): Ditto.
5211         (call_indirect_aix<ptrsize>_internal): Ditto.
5212         (call_indirect_aix<ptrsize>_internal2): Ditto.
5213         (call_indirect_aix<ptrsize>_nor11): Ditto.
5214         (call_value_indirect_aix<ptrsize>): Ditto.
5215         (call_value_indirect_aix<ptrsize>_internal): Ditto.
5216         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
5217         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
5218         (call_nonlocal_aix32): Relocate in the rs6000.md file.
5219         (call_nonlocal_aix64): Ditto.
5220
5221         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
5222         -mno-r11 documentation.
5223
5224 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
5225
5226         PR other/49658
5227         * doc/extend.texi (Compound Literals): Fix typo.
5228
5229 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
5230
5231         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
5232
5233 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
5234
5235         * configure.ac (plugin-version.h): Generate
5236         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
5237         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
5238         macros.
5239
5240         * configure: Regenerate.
5241
5242         * doc/plugins.texi (Building GCC plugins): Mention
5243         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
5244
5245 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
5246
5247         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
5248         * combine.c (make_extraction, gen_lowpart_or_truncate,
5249         apply_distributive_law, simplify_comparison,
5250         reg_truncated_to_mode, record_truncated_value): Use it.
5251         * cse.c (notreg_cost): Likewise.
5252         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
5253         * expr.c (convert_move, convert_modes): Likewise.
5254         * optabs.c (expand_binop, expand_unop): Likewise.
5255         * postreload.c (move2add_last_label): Likewise.
5256         * regmove.c (optimize_reg_copy_3): Likewise.
5257         * rtlhooks.c (gen_lowpart_general): Likewise.
5258         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
5259
5260 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
5261
5262         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
5263
5264 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
5265
5266         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
5267         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
5268         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
5269         (simplify_const_unary_operation, simplify_binary_operation_1,
5270         simplify_const_binary_operation, simplify_const_relational_operation):
5271         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
5272         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
5273         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
5274         simplify_shift_const_1, simplify_comparison): Likewise.
5275         * expr.c (convert_modes): Likewise.
5276         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
5277         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
5278         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
5279
5280         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
5281
5282 2011-07-06  Richard Guenther  <rguenther@suse.de>
5283
5284         PR tree-optimization/49645
5285         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
5286         register variables.
5287         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
5288         in type qualification here ...
5289         (copy_reference_ops_from_ref): ... not here.
5290         (vn_reference_lookup_3): ... or here.
5291         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
5292         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
5293
5294 2011-07-06  Ian Lance Taylor  <iant@google.com>
5295
5296         * doc/install.texi (Configuration): It's
5297         --enable-gnu-indirect-function, not --enable-indirect-function.
5298
5299 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
5300
5301         * simplify-rtx.c (simplify_const_binary_operation): Use the
5302         shift_truncation_mask hook instead of performing modulo by width.
5303         Compare against mode precision, not bitsize.
5304         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
5305         Use shift_truncation_mask instead of constructing the value manually.
5306
5307 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
5308
5309         PR middle-end/47383
5310         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
5311         address computation and convert to address_mode if needed.
5312
5313 2011-07-06  Richard Guenther  <rguenther@suse.de>
5314
5315         * tree.c (build_common_tree_nodes_2): Merge with
5316         build_common_tree_nodes.
5317         * tree.h (build_common_tree_nodes): Adjust prototype.
5318         (build_common_tree_nodes_2): Remove.
5319         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
5320         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
5321
5322 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
5323
5324         PR tree-optimization/49618
5325         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
5326         t recurse on the decl.
5327         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
5328         return true if expr isn't known to be defined in current
5329         TU or some other LTO partition.
5330
5331 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
5332
5333         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
5334         override CASE_VALUES_THRESHOLD.
5335
5336         * stmt.c (toplevel): Include params.h.
5337         (case_values_threshold): Use the --param case-values-threshold
5338         value if non-zero, otherwise use machine dependent value.
5339         (expand_case): Use case_values_threshold.
5340
5341         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
5342
5343         * doc/invoke.texi (--param case-values-threshold): Document.
5344
5345 2011-07-05  Richard Henderson  <rth@redhat.com>
5346
5347         * dwarf2out.c (dwarf2out_cfi_label): Make static.
5348         (dwarf2out_flush_queued_reg_saves): Make static.
5349         (dwarf2out_reg_save): Remove.
5350         (dwarf2out_return_save): Remove.
5351         (dwarf2out_return_reg): Remove.
5352         (dwarf2out_reg_save_reg): Remove.
5353         (dwarf2out_def_cfa): Merge into ...
5354         (dwarf2out_frame_init): ... here.
5355         * dwarf2out.h, tree.h: Remove declarations as necessary.
5356
5357 2011-07-05  Richard Henderson  <rth@redhat.com>
5358
5359         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
5360         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
5361         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
5362         the alloc insn.
5363
5364         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
5365         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
5366         (process_epilogue): Don't call dwarf2out_def_cfa.
5367
5368         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
5369         indicate the return address save.
5370         (process_cfa_register): Likewise.
5371
5372         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
5373         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
5374
5375         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
5376         for ar.pfs save at alloc insn.
5377
5378 2011-07-05  Richard Henderson  <rth@redhat.com>
5379
5380         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
5381         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
5382         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
5383         stack pointer save.
5384         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
5385         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
5386         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
5387         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
5388
5389 2011-07-05  Richard Henderson  <rth@redhat.com>
5390
5391         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
5392         VUNSPEC_* constants here instead of via define_constants.
5393         (VUNSPEC_PEM): New constant.
5394         (procedure_entry_mask): New insn.
5395         (prologue): New expander.
5396         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
5397         (vax_expand_prologue): Rename from vax_output_function_prologue;
5398         emit rtl instead of text.
5399         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
5400         (print_operand): Add 'x' prefix.
5401
5402 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
5403
5404         PR middle-end/47715
5405         * calls.c (precompute_register_parameters): Promote the function
5406         argument before checking non-legitimate constant.
5407
5408 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
5409
5410         PR tree-optimization/47654
5411         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
5412         (lst_do_strip_mine_loop): Return an int.
5413         (lst_do_strip_mine): Same.
5414         (scop_do_strip_mine): Same.
5415         (scop_do_block): Loop blocking should strip-mine at least two loops.
5416         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
5417         (scop_do_interchange): Same.
5418         * graphite-poly.h (scop_do_interchange): Update declaration.
5419         (scop_do_strip_mine): Same.
5420
5421 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
5422
5423         * graphite-clast-to-gimple.c (precision_for_value): Removed.
5424         (precision_for_interval): Removed.
5425         (gcc_type_for_interval): Use mpz_sizeinbase.
5426
5427 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
5428
5429         * graphite-ppl.h (value_max): Correct computation of max.
5430
5431 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
5432
5433         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
5434
5435 2011-07-05  Richard Guenther  <rguenther@suse.de>
5436
5437         * c-decl.c (c_init_decl_processing): Defer building common
5438         tree nodes to c_common_nodes_and_builtins.
5439
5440 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
5441
5442         PR tree-optimization/49580
5443         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
5444         the loop's number of iterations.
5445         * tree-parloops.c (transform_to_exit_first_loop): Add the
5446         handling of the loop's number of iterations before the call
5447         to gimple_duplicate_sese_tail.
5448         Insert the stmt caclculating the new rhs of the loop's
5449         condition stmt to the preheader instead of iters_bb.
5450
5451 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
5452
5453         PR rtl-optimization/47449
5454         * fwprop.c (forward_propagate_subreg): Don't propagate hard
5455         register nor zero/sign extended hard register.
5456
5457 2011-07-05  Richard Guenther  <rguenther@suse.de>
5458
5459         PR tree-optimization/49518
5460         PR tree-optimization/49628
5461         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
5462         irrelevant and invariant data-references.
5463         (vect_analyze_data_ref_access): For invariant loads clear the
5464         group association.
5465
5466 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
5467
5468         PR rtl-optimization/49619
5469         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
5470         pass VOIDmode as op0_mode to recursive call, and return temp even
5471         when different from tor, just if it is not IOR of the original
5472         PLUS arguments.
5473
5474         PR rtl-optimization/49472
5475         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
5476         negating MULT, negate the second operand instead of first.
5477         (simplify_binary_operation_1) <case MULT>: If one operand is
5478         a NEG and the other is MULT, don't attempt to optimize by negation
5479         of the MULT operand if it only moves the NEG operation around.
5480
5481         PR debug/49602
5482         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
5483         get_current_def return value if it can't be trusted to be
5484         the current value of the variable in the current bb.
5485
5486 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
5487
5488         PR target/49600
5489         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
5490         general register to memory for !TARGET_INTER_UNIT_MOVES.
5491
5492 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
5493
5494         PR target/44643
5495         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
5496         instead of TREE_READONLY.
5497
5498 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
5499
5500         * doc/extend.texi (AVR Built-in Functions): Update documentation
5501         of __builtin_avr_fmul*.
5502         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
5503         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
5504         * config/avr/avr.md (fmul): Rename to fmul_insn.
5505         (fmuls): Rename to fmuls_insn.
5506         (fmulsu): Rename to fmulsu_insn.
5507         (fmul,fmuls,fmulsu): New expander.
5508         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
5509         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
5510         * config/avr/libgcc.S (__fmul): New function.
5511         (__fmuls): New function.
5512         (__fmulsu,__fmulsu_exit): New function.
5513
5514 2011-07-04  Richard Guenther  <rguenther@suse.de>
5515
5516         PR tree-optimization/49615
5517         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
5518         basic-block index check.
5519
5520 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
5521
5522         * longlong.h (count_leading_zeros, count_trailing_zeros,
5523         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
5524         resp. 64.
5525
5526 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
5527
5528         PR tree-optimization/49610
5529         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
5530         a basic block.
5531
5532 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
5533             Olivier Hainque  <hainque@adacore.com>
5534             Nicolas Setton  <setton@adacore.com>
5535
5536         * tree.h (TYPE_ARTIFICIAL): New flag.
5537         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
5538         the DIE of the type if it is artificial.
5539         (gen_array_type_die): Likewise.
5540         (gen_enumeration_type_die): Likewise.
5541         (gen_struct_or_union_type_die): Likewise.
5542         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
5543         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
5544
5545 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
5546
5547         * tree-object-size.c (pass_through_call): Handle
5548         BUILT_IN_ASSUME_ALIGNED.
5549
5550 2011-07-01  Martin Jambor  <mjambor@suse.cz>
5551
5552         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
5553
5554 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
5555
5556         PR middle-end/48016
5557         * explow.c (update_nonlocal_goto_save_area): Use proper mode
5558         for stack save area.
5559         * function.c (expand_function_start): Likewise.
5560
5561 2011-07-01  Richard Guenther  <rguenther@suse.de>
5562
5563         PR middle-end/49596
5564         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
5565         may have unknown refs.
5566
5567 2011-07-01  Kai Tietz  <ktietz@redhat.com>
5568
5569         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
5570
5571 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5572
5573         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
5574         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
5575         (Specific, mips-sgi-irix6): Likewise.
5576
5577 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5578
5579         PR libmudflap/49549
5580         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
5581
5582 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
5583
5584         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
5585         [idx]= and [idx1 ... idx2]= before initializers if needed for
5586         array initializers.
5587
5588 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
5589
5590         * config.gcc (score-*-elf): Remove score7.o.
5591         * config/score/t-score-elf: Likewise.
5592         * config/score/score.c: Merge score7 to score.c and
5593         remove forwarding functions.
5594         * config/score/score7.c: Deleted.
5595         * config/score/score7.h: Deleted.
5596
5597 2011-07-01  Richard Guenther  <rguenther@suse.de>
5598
5599         PR tree-optimization/49603
5600         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
5601
5602 2011-06-30  Martin Jambor  <mjambor@suse.cz>
5603
5604         * tree-sra.c (struct access): Rename total_scalarization to
5605         grp_total_scalarization
5606         (completely_scalarize_var): New function.
5607         (sort_and_splice_var_accesses): Set total_scalarization in the
5608         representative access.
5609         (analyze_access_subtree): Propagate total scalarization accross the
5610         tree, no holes in totally scalarized trees, simplify coverage
5611         computation.
5612         (analyze_all_variable_accesses): Call completely_scalarize_var instead
5613         of completely_scalarize_record.
5614
5615 2011-06-30  Richard Henderson  <rth@redhat.com>
5616
5617         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
5618         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
5619         * config/i386/i386.c: Don't include dwarf2out.h.
5620         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
5621         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
5622         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
5623         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
5624         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
5625
5626 2011-06-30  Richard Henderson  <rth@redhat.com>
5627
5628         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
5629         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
5630         * final.c (final_scan_insn): Look for it, and invoke
5631         dwarf2out_frame_debug before the insn if found.
5632
5633 2011-06-30  Richard Henderson  <rth@redhat.com>
5634
5635         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
5636         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
5637
5638 2011-06-30  Richard Henderson  <rth@redhat.com>
5639
5640         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
5641         Define a vector of this type.
5642         (regs_saved_in_regs): Use a VEC.
5643         (num_regs_saved_in_regs): Remove.
5644         (compare_reg_or_pc): New.
5645         (record_reg_saved_in_reg): Split out from...
5646         (dwarf2out_flush_queued_reg_saves): ... here.
5647         (clobbers_queued_reg_save): Update for VEC.
5648         (reg_saved_in): Likewise.
5649         (dwarf2out_frame_debug_init): Likewise.
5650         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
5651         (dwarf2out_frame_debug_cfa_register): Likewise.
5652
5653 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
5654
5655         PR tree-optimization/49572
5656         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
5657         type of the RHS instead of that of the LHS for the expression type.
5658
5659 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
5660
5661         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
5662         unconditionally.
5663
5664 2011-06-30  Richard Guenther  <rguenther@suse.de>
5665
5666         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
5667         * tree-ssa-structalias.c (create_variable_info_for): Do not
5668         add initial constraints for non-var-decls.  Properly handle
5669         globals in other ltrans partitions.
5670         (intra_create_variable_infos): Manually create constraints for
5671         the fake no-alias parameter.
5672         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
5673         and assert there are no clones.
5674
5675 2011-06-30  Richard Guenther  <rguenther@suse.de>
5676
5677         PR tree-optimization/46787
5678         * tree-data-ref.c (dr_address_invariant_p): Remove.
5679         (find_data_references_in_stmt): Invariant accesses are ok now.
5680         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
5681         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
5682         invariant loads.
5683
5684 2011-06-30  Martin Jambor  <mjambor@suse.cz>
5685
5686         PR tree-optimization/49094
5687         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
5688         (build_accesses_from_assign): Use it.
5689
5690 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
5691
5692         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
5693         handling of BUILT_IN_ASSUME_ALIGNED.
5694
5695         PR debug/49364
5696         * dwarf2out.c (output_abbrev_section): Don't return early
5697         if abbrev_die_table_in_use is 1.
5698         (dwarf2out_finish): Instead don't call output_abbrev_section
5699         nor emit abbrev_section_label in that case.
5700
5701 2011-06-30  Nick Clifton  <nickc@redhat.com>
5702
5703         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
5704         for the V850E.
5705
5706 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
5707
5708         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
5709         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
5710
5711 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
5712
5713         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
5714         both pattern and original statements if necessary.
5715         (vect_transform_loop): Likewise.
5716         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
5717         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
5718         Mark the pattern statement only if the original statement doesn't
5719         have its own uses.
5720         (process_use): Call vect_mark_relevant with additional parameter.
5721         (vect_mark_stmts_to_be_vectorized): Likewise.
5722         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
5723         (vect_analyze_stmt): Handle both pattern and original statements
5724         if necessary.
5725         (vect_transform_stmt): Don't store vectorized pattern statement
5726         in the original statement.
5727         (vect_is_simple_use_1): Use related pattern statement only if the
5728         original statement is irrelevant.
5729         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
5730
5731 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
5732
5733         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
5734         option.
5735         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
5736         entry.
5737         (TARGET_AVX128_OPTIMAL): New definition.
5738         * config/i386/i386.c (initial_ix86_tune_features): Initialize
5739         X86_TUNE_AVX128_OPTIMAL entry.
5740         (ix86_option_override_internal): Enable the generation
5741         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
5742         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
5743         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
5744
5745 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
5746
5747         PR tree-optimization/49539
5748         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
5749         names by means of stmt_references_abnormal_ssa_name.
5750         (associate_plusminus): Call can_propagate_from before propagating
5751         from definition statements.
5752         (ssa_forward_propagate_and_combine): Remove superfluous newline.
5753
5754 2011-06-29  Richard Guenther  <rguenther@suse.de>
5755
5756         * doc/invoke.texi: Document -scev dump modifier.
5757         * tree-pass.h (TDF_SCEV): New dump flag.
5758         * tree-dump.c (dump_option_value_in): Add scev.
5759         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
5760         * tree-scalar-evolution.c: Likewise.
5761
5762 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
5763
5764         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
5765         (cxa_type_match): Correct declaration.
5766         (__gnu_unwind_pr_common): Reconstruct additional indirection
5767         when __cxa_type_match returns succeeded_with_ptr_to_base.
5768
5769 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5770
5771         PR rtl-optimization/49114
5772         * reload.c (struct replacement): Remove SUBREG_LOC member.
5773         (push_reload): Do not set it.
5774         (push_replacement): Likewise.
5775         (subst_reload): Remove dead code.
5776         (copy_replacements): Remove assertion.
5777         (copy_replacements_1): Do not handle SUBREG_LOC.
5778         (move_replacements): Likewise.
5779         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
5780         Detect subregs via recursive descent instead of via SUBREG_LOC.
5781
5782 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
5783
5784         * config/avr/avr.c (avr_encode_section_info): Dispatch to
5785         default_encode_section_info.
5786
5787 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
5788
5789         PR tree-optimization/49545
5790         * builtins.c (get_object_alignment_1): Update function comment.
5791         Do not use DECL_ALIGN for functions, but test
5792         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
5793         * fold-const.c (get_pointer_modulus_and_residue): Don't check
5794         for functions here.
5795         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
5796
5797 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
5798
5799         PR debug/49567
5800         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
5801         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
5802
5803 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
5804
5805         PR target/34734
5806         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
5807         about uninitialized data attributed 'progmem' from here...
5808         (avr_encode_section_info): ...to this new function.
5809         (TARGET_ENCODE_SECTION_INFO): New define.
5810         (avr_section_type_flags): For data in ".progmem.data", remove
5811         section flag SECTION_WRITE.
5812
5813 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
5814
5815         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
5816         _xmulhisi3_exit.
5817         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
5818         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
5819         (__umulhisi3): Ditto.
5820         * config/avr/avr.md (mulhisi3): New insn expender.
5821         (umulhisi3): New insn expender.
5822         (*mulhisi3_call): New insn.
5823         (*umulhisi3_call): New insn.
5824
5825 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
5826
5827         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
5828
5829 2011-06-28  Richard Henderson  <rth@redhat.com>
5830
5831         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
5832         all code and arguments that handled pushes.  Update all callers.
5833
5834 2011-06-28  Richard Henderson  <rth@redhat.com>
5835
5836         * config/arm/arm.c (arm_output_function_prologue): Don't call
5837         thumb1_output_function_prologue.
5838         (arm_expand_prologue): Avoid dead store.
5839         (number_of_first_bit_set): Use ctz_hwi.
5840         (thumb1_emit_multi_reg_push): New.
5841         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
5842         to emit the entire prologue as rtl.
5843         (thumb1_output_interwork): Split out from
5844         thumb1_output_function_prologue.
5845         (thumb1_output_function_prologue): Remove.
5846         (arm_attr_length_push_multi): Handle thumb1.
5847         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
5848         (prologue_thumb1_interwork): New.
5849         (*push_multi): Allow thumb1; use push_mult_memory_operand.
5850         * config/arm/predicates.md (push_mult_memory_operand): New.
5851
5852 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
5853
5854         * config/sparc/sync.md (*stbar): Delete.
5855         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
5856
5857 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
5858
5859         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
5860
5861 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5862
5863         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
5864         (TARGET_64BIT_DEFAULT): Define.
5865         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
5866         of tm_file.
5867         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
5868
5869 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
5870
5871         * common.opt (in_lto_p): New Variable entry.
5872         * flags.h (in_lto_p): Move to common.opt.
5873         * gcc.c: Include params.h.
5874         (set_option_handlers): Also use common_handle_option and
5875         target_handle_option.
5876         (main): Call global_init_params, finish_params and init_options_struct.
5877         * opts.c (debug_type_names): Move from toplev.c.
5878         (print_filtered_help): Access quiet_flag through opts pointer.
5879         (common_handle_option): Return early in the driver for some options.
5880         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
5881         opts pointer.
5882         * toplev.c (in_lto_p): Move to common.opt.
5883         (debug_type_names): Move to opts.c.
5884         * Makefile.in (OBJS): Remove opts.o.
5885         (OBJS-libcommon-target): Add opts.o.
5886         (gcc.o): Update dependencies.
5887
5888 2011-06-28  Kai Tietz  <ktietz@redhat.com>
5889
5890         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
5891
5892 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5893
5894         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
5895         with '=' constraint modifier.
5896         (*divdf3_vfp): Likewise.
5897         ("*mulsf3_vfp"): Likewise.
5898         ("*muldf3_vfp"): Likewise.
5899         ("*mulsf3negsf_vfp"): Likewise.
5900         ("*muldf3negdf_vfp"): Likewise.
5901
5902 2011-06-28  Nick Clifton  <nickc@redhat.com>
5903
5904         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
5905         relaxation when performing an incremental link.
5906
5907 2011-06-28  Kai Tietz  <ktietz@redhat.com>
5908
5909         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
5910         within BB from last to first.
5911
5912 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
5913
5914         * genattr-common.c: New.  Based on genattr.c.
5915         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
5916         (MOSTLYCLEANFILES): Add insn-attr-common.h.
5917         (opts.o): Update dependencies.
5918         (.PRECIOUS): Add insn-attr-common.h.
5919         (simple_rtl_generated_h): Add insn-attr-common.h.
5920         (build/genattr-common.o): New.
5921         (genprogrtl): Add attr-common.
5922         * genattr.c (main): Include insn-attr-common.h.  Don't generate
5923         definitions of DELAY_SLOTS or INSN_SCHEDULING.
5924         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
5925
5926 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
5927
5928         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
5929         avr-*-* and avr-*-rtems* targets.
5930
5931         * config/avr/elf.h: New file.
5932         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
5933         (TARGET_ASM_SELECT_SECTION): Define.
5934         (INIT_SECTION_ASM_OP): Undefine.
5935         (FINI_SECTION_ASM_OP): Undefine.
5936         (READONLY_DATA_SECTION_ASM_OP): Undefine.
5937         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
5938         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
5939         * config/avr/avr.h:
5940         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
5941         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
5942         (MAX_OFILE_ALIGNMENT): Move to elf.h.
5943         (STRING_LIMIT): Move to elf.h.
5944         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
5945         (ASM_DECLARE_OBJECT_NAME): Remove.
5946         (ESCAPES): Remove.
5947         (ASM_OUTPUT_SKIP): Remove.
5948         (DWARF2_DEBUGGING_INFO): Remove.
5949         (OBJECT_FORMAT_ELF): Remove.
5950         (USER_LABEL_PREFIX): Remove.
5951         (ASM_OUTPUT_EXTERNAL): Remove.
5952         (ASM_OUTPUT_ASCII): Remove.
5953         (TYPE_ASM_OP): Remove.
5954         (SIZE_ASM_OP): Remove.
5955         (WEAK_ASM_OP): Remove.
5956         (STRING_ASM_OP): Remove.
5957         (SET_ASM_OP): Remove.
5958         (ASM_WEAKEN_LABEL): Remove.
5959         (TYPE_OPERAND_FMT): Remove.
5960         (ASM_DECLARE_FUNCTION_SIZE): Remove.
5961         (ASM_FINISH_DECLARE_OBJECT): Remove.
5962         (NO_DOLLAR_IN_LABEL): Remove.
5963         (ASM_GENERATE_INTERNAL_LABEL): Remove.
5964         (ASM_OUTPUT_CASE_LABEL): Remove.
5965         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
5966         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
5967         (gas_output_ascii): Remove.
5968         (gas_output_limited_string): Remove.
5969         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
5970         * config/avr/avr-protos.h
5971         (gas_output_ascii): Remove prototye.
5972         (gas_output_limited_string): Remove prototype.
5973
5974 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
5975
5976         PR target/48637
5977         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
5978         asm operands.
5979
5980 2011-06-27  Jan Hubicka  <jh@suse.cz>
5981
5982         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
5983         node instead of references in node.
5984
5985 2011-06-27  Richard Henderson  <rth@redhat.com>
5986
5987         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
5988         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
5989         inside ifdef.
5990
5991 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
5992
5993         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
5994
5995         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
5996         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
5997         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
5998         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
5999         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
6000         (evaluate_stmt, execute_fold_all_builtins): Handle
6001         BUILT_IN_ASSUME_ALIGNED.
6002         * tree-ssa-dce.c (propagate_necessity): Likewise.
6003         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
6004         call_may_clobber_ref_p_1): Likewise.
6005         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
6006         (expand_builtin_assume_aligned): New function.
6007         * doc/extend.texi (__builtin_assume_aligned): Document.
6008
6009         PR debug/49544
6010         * cselib.c (promote_debug_loc): If cselib_preserve_constants
6011         and l has two DEBUG_INSN owned locs instead of just one, adjust
6012         the second location's setting_insn too.
6013
6014 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6015
6016         PR libmudflap/38738
6017         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
6018
6019 2011-06-27  Nick Clifton  <nickc@redhat.com>
6020
6021         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
6022         bit position of highest bit set into a count of the high zero bits.
6023
6024 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
6025
6026         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
6027
6028 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
6029
6030         PR lto/48492
6031         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
6032         to a NULL parent.
6033
6034 2011-06-27  Richard Guenther  <rguenther@suse.de>
6035
6036         PR tree-optimization/49394
6037         * passes.c (execute_one_pass): Restore current_pass after
6038         applying IPA transforms.
6039
6040 2011-06-27  Kai Tietz  <ktietz@redhat.com>
6041
6042         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
6043         out of type precision after operation.
6044         (find_bswap): Take for limit value the integer auto-promotion
6045         into account.
6046
6047 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
6048
6049         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
6050         forward scan as well.
6051
6052 2011-06-27  Tristan Gingold  <gingold@adacore.com>
6053
6054         PR target/44241
6055         * config/vms/vms-protos.h: New file.
6056         * config/vms/vms-crtlmap.map: New file.
6057         * config/vms/vms.c: New file.
6058         * config/vms/make-crtlmap.awk: New file.
6059         * config/vms/vms-crtl.h: File removed.
6060         * config/vms/vms-crtl-64.h: File removed.
6061         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
6062         * config/alpha/vms64.h: Do not include vms-crtl-64.h
6063         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
6064         clear some builtins on VMS.  Calls vms_patch_builtins.
6065         (avms_asm_output_external): Remove.
6066         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
6067         (struct crtl_name_spec): Remove
6068         (DO_CTRL_NAMES): Remove.
6069         * config/ia64/vms.h (struct crtl_name_spec): Remove
6070         (DO_CTRL_NAMES): Remove.
6071         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
6072         clear some builtins on VMS.  Calls vms_patch_builtins.
6073         (ia64_asm_output_external): Remove DO_CRTL_NAME.
6074         * config/ia64/vms64.h: Do not include vms-crtl-64.h
6075         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
6076
6077 2011-06-27  Tristan Gingold  <gingold@adacore.com>
6078
6079         * config/alpha/alpha.c (alpha_end_function): Always generate .end
6080         directive on VMS.
6081
6082 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
6083
6084         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
6085         the function receives nonlocal gotos.
6086
6087 2011-06-27  Richard Guenther  <rguenther@suse.de>
6088
6089         PR tree-optimization/49536
6090         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
6091         For non-scalar inner types use a scalar type according to
6092         the scalar inner mode.
6093
6094 2011-06-27  Richard Guenther  <rguenther@suse.de>
6095
6096         PR tree-optimization/49365
6097         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
6098
6099 2011-06-27  Richard Guenther  <rguenther@suse.de>
6100
6101         PR tree-optimization/49169
6102         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
6103         the alignment of function decls.
6104
6105 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
6106
6107         PR target/47997
6108         * config/darwin.c (darwin_mergeable_string_section): Place string
6109         constants in '.cstring' rather than '.const' when CF/NSStrings are
6110         active.
6111
6112 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
6113
6114         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
6115         (emit_save_register_window): Likewise.
6116         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
6117         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
6118         Swap back %o7/%i7 in register naming.
6119
6120 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
6121
6122         PR driver/49371
6123         * config/darwin.c (darwin_override_options): Improve warning when
6124         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
6125         is given with fpie/fPIE.
6126         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
6127         * config/darwin9.h (PIE_SPEC): New.
6128
6129 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
6130
6131         * timevar.c (timevar_print): Increase width for display of timevar
6132         name.
6133
6134 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
6135
6136         PR c++/46400
6137         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
6138         instead of TYPE_CHAIN for chain_next for types.
6139
6140 2011-06-24  Richard Henderson  <rth@redhat.com>
6141
6142         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
6143         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
6144         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
6145         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
6146         (sparc_flat_expand_prologue): Emit individual instructions
6147         instead of one of the above.
6148
6149 2011-06-24  Easwaran Raman  <eraman@google.com>
6150
6151         PR rtl-optimization/49429
6152         PR target/49454
6153         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
6154         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
6155         used to copy y into x.
6156         * calls.c (initialize_argument_information): Mark
6157         an argument addressable if it is passed by invisible reference.
6158         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
6159         if it is passed by reference.
6160
6161 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
6162
6163         PR rtl-optimization/49504
6164         * rtlanal.c (nonzero_bits1): Properly handle addition or
6165         subtraction of a pointer in Pmode if pointers extend unsigned.
6166         (num_sign_bit_copies1): Likewise.
6167
6168 2011-06-24  Martin Jambor  <mjambor@suse.cz>
6169
6170         PR tree-optimizations/49516
6171         * tree-sra.c (sra_modify_assign): Choose the safe path for
6172         aggregate copies if we also did scalar replacements.
6173
6174 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6175
6176         PR target/49335
6177         * config/arm/predicates.md (add_operator): New.
6178         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
6179
6180 2011-06-24  Andi Kleen  <ak@linux.intel.com>
6181
6182         * tree-sra.c (type_internals_preclude_sra_p): Add msg
6183         parameter. Split up ifs and report reason in *msg.
6184         (reject): Add.
6185         (find_var_candiate): Add msg variable.
6186         Split up ifs and report reason to reject.
6187         (find_param_candidates): Add msg variable.
6188         Pass msg to type_internals_preclude_sra_p.
6189
6190 2011-06-23  Jeff Law  <law@redhat.com>
6191
6192         PR middle-end/48770
6193         * reload.h (reload): Change to return a bool.
6194         * ira.c (ira): If requested by reload, run a fast DCE pass after
6195         reload has completed.  Fix comment typo.
6196         * reload1.c (need_dce): New file scoped static.
6197         (reload): Set reload_completed here.  Return whether or not a DCE
6198         pass after reload is needed.
6199         (delete_dead_insn): Set need_dce as needed.
6200
6201         PR middle-end/49465
6202         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
6203         to detect threading through joiner block.  If there was already
6204         an edge to the new target, then do not change the PHI nodes.
6205
6206 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
6207
6208         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
6209         get_pointer_alignment to see if base isn't sufficiently aligned.
6210
6211 2011-06-23  Jan Hubicka  <jh@suse.cz>
6212
6213         PR tree-optimize/49373
6214         * tree-pass.h (all_late_ipa_passes): Declare.
6215         * cgraphunit.c (init_lowered_empty_function): Fix properties.
6216         (cgraph_optimize): Execute late passes; remove unreachable funcions
6217         after materialization.
6218         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
6219         LTOing.
6220         * passes.c (all_late_ipa_passes): Declare.
6221         (dump_passes, register_pass): Handle late ipa passes.
6222         (init_optimization_passes): Move ipa_pta to late passes; schedule
6223         fixup_cfg at beggining of all_passes.
6224         (apply_ipa_transforms): New function.
6225         (execute_one_pass): When doing simple ipa pass, apply all transforms.
6226
6227 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
6228
6229         * params.c: Include common/common-target.h.  Don't include tm.h.
6230         (lang_independent_params): Move from toplev.c.
6231         (global_init_params): New.
6232         * params.h (global_init_params): Declare.
6233         * target.def (default_params): Move to common-target.def.
6234         * toplev.c (lang_independent_options): Remove.
6235         (lang_independent_params): Move to params.c.
6236         (general_init): Use global_init_params.
6237         * common/common-target.def (option_default_params): Move from
6238         target.def.
6239         * common/config/ia64/ia64-common.c: Include params.h.
6240         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
6241         from ia64.c.
6242         * common/config/rs6000/rs6000-common.c: Include params.h.
6243         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
6244         from rs6000.c.
6245         * common/config/sh/sh-common.c: Include params.h.
6246         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
6247         from sh.c.
6248         * common/config/spu/spu-common.c: Include params.h.
6249         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
6250         from spu.c.
6251         * config/ia64/ia64.c (ia64_option_default_params,
6252         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
6253         * config/rs6000/rs6000.c (rs6000_option_default_params,
6254         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
6255         * config/sh/sh.c (sh_option_default_params,
6256         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
6257         * config/spu/spu.c (spu_option_default_params,
6258         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
6259         * Makefile.in (OBJS): Remove params.o.
6260         (OBJS-libcommon-target): Add params.o.
6261         (params.o, $(common_out_object_file)): Update dependencies.
6262         * doc/tm.texi: Regenerate.
6263
6264 2011-06-23  Alan Modra  <amodra@gmail.com>
6265
6266         PR bootstrap/49383
6267         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
6268         invocation for 2011-06-09 changes.
6269
6270 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
6271
6272         PR libgomp/49490
6273         * omp-low.c (expand_omp_for_static_nochunk): Only
6274         use n ceil/ nthreads size for the first n % nthreads threads in the
6275         team instead of all threads except for the last few ones which
6276         get less work or none at all.
6277
6278         PR debug/49496
6279         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
6280         uses.
6281
6282 2011-06-22  Richard Guenther  <rguenther@suse.de>
6283
6284         PR tree-optimization/49493
6285         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
6286         Refer to the alias target of variables.
6287         (associate_varinfo_to_alias_1): Remove.
6288         (ipa_pta_execute): Do not associate aliases with anything.
6289         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
6290         (cgraph_function_node): Likewise.
6291         (cgraph_function_or_thunk_node): Likewise.
6292         (varpool_variable_node): Likewise.
6293
6294 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
6295
6296         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
6297         * config.gcc (arm*-*-linux*): Default to gnu tls.
6298         (arm*-*-*): Add --with-tls option.
6299         (all_defaults): Add 'tls'.
6300
6301 2011-06-22  Richard Henderson  <rth@redhat.com>
6302
6303         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
6304         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
6305         (dwarf2out_frame_debug_cfa_window_save): Rename from
6306         dwarf2out_window_save; make static.
6307         * tree.h (dwarf2out_window_save): Don't declare.
6308
6309         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
6310         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
6311         (emit_save_register_window): Rename from gen_save_register_window;
6312         emit the insn and add REG_CFA_* notes.
6313         (sparc_expand_prologue): Update to match.
6314         * config/sparc/sparc.md (save_register_window_1): Simplify from
6315         save_register_window<P:mode>.
6316
6317 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
6318
6319         PR target/49497
6320         * config/i386/i386.md (*lea_general_2): Always allow SImode.
6321         (*lea_general_2_zext): Likewise.
6322         (imul to lea peepholes): Use const359_operand and check
6323         TARGET_PARTIAL_REG_STALL.
6324
6325         * config/i386/predicates.md (const359_operand): New.
6326
6327 2011-06-22  Michael Matz  <matz@suse.de>
6328
6329         * cgraphunit.c (assemble_thunk): Use correct return type.
6330
6331 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
6332             Dmitry Melnik  <dm@ispras.ru>
6333
6334         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
6335         (neon_output_shift_immediate): Ditto.
6336         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
6337         prototype.
6338         (neon_output_shift_immediate): Ditto.
6339         * config/arm/neon.md (vashl<mode>3): Modified constraint.
6340         (vashr<mode>3_imm): New insn pattern.
6341         (vlshr<mode>3_imm): Ditto.
6342         (vashr<mode>3): Modified constraint.
6343         (vlshr<mode>3): Ditto.
6344         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
6345         predicate.
6346         (imm_for_neon_rshift_operand): Ditto.
6347         (imm_lshift_or_reg_neon): Ditto.
6348         (imm_rshift_or_reg_neon): Ditto.
6349
6350         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
6351
6352 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
6353
6354         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
6355         builtin calls even if likelyvalue is not CONSTANT.
6356         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
6357         Return get_value_for_expr of first operand
6358         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
6359         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
6360         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
6361         their non-checking counterparts.
6362         (call_may_clobber_ref_p_1): Likewise.
6363         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
6364         like their non-checking counterparts.
6365         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6366         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
6367         like their non-checking counterparts.
6368         (find_func_clobbers): Likewise.
6369         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
6370         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
6371
6372         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
6373         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
6374         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
6375         of base type reference as argument.
6376         (resolve_addr_in_expr): Likewise.  Fix keep computation.
6377         (convert_descriptor_to_signed): Renamed to...
6378         (convert_descriptor_to_mode): ... this.  For wider types convert to
6379         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
6380         (typed_binop): New function.
6381         (scompare_loc_descriptor, ucompare_loc_descriptor,
6382         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
6383         default to unsigned type instead of signed.
6384
6385         PR debug/47858
6386         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
6387         (gimple_build_debug_source_bind_stat): New prototype.
6388         (gimple_build_debug_source_bind): Define.
6389         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
6390         gimple_debug_source_bind_get_value,
6391         gimple_debug_source_bind_get_value_ptr,
6392         gimple_debug_source_bind_set_var,
6393         gimple_debug_source_bind_set_value): New inlines.
6394         * gimple.c (gimple_build_debug_source_bind_stat): New function.
6395         * gimple-pretty-print.c (dump_gimple_debug): Handle
6396         GIMPLE_DEBUG_SOURCE_BIND.
6397         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
6398         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
6399         * tree-parloops.c (eliminate_local_variables,
6400         separate_decls_in_region): Likewise.
6401         (separate_decls_in_region_debug): Renamed from
6402         separate_decls_in_region_debug_bind.  Handle
6403         gimple_debug_source_bind_p.
6404         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
6405         prototypes.
6406         (DECL_HAS_DEBUG_ARGS_P): Define.
6407         (struct tree_function_decl): Add has_debug_args_flag field.
6408         * tree.c (debug_args_for_decl): New variable.
6409         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
6410         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
6411         (rewrite_debug_stmt_uses): New function.
6412         (rewrite_stmt): Use it to rewrite debug stmt uses.
6413         * rtl.def (DEBUG_PARAMETER_REF): New.
6414         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
6415         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
6416         DEBUG_PARAMETER_REF.
6417         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
6418         * print-rtl.c (print_rtx): Likewise.
6419         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
6420         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
6421         debug stmts in the first bb.
6422         * tree-inline.c (remap_ssa_name): If remapping default def
6423         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
6424         a source bind debug stmt.
6425         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
6426         (maybe_move_debug_stmts_to_successors): Likewise.
6427         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
6428         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
6429         debug args vector from old_decl to new_decl.
6430         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
6431         or modified parameters, add debug bind stmts before call
6432         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
6433         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
6434         on DECL_DEBUG_EXPRs from debug args vector.
6435         (expand_debug_source_expr): New function.
6436         (expand_debug_locations): Use it for source bind insns.
6437         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
6438         * var-tracking.c (prepare_call_arguments): Add debug args
6439         to call_arguments if any.
6440         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
6441         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
6442         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
6443         (get_ref_die_offset, parameter_ref_descriptor): New functions.
6444         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
6445         (gen_subprogram_die): Handle parameters identified by
6446         DEBUG_PARAMETER_REF.
6447
6448 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
6449
6450         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
6451         * doc/install.texi (Configuration): Document --with-tls.
6452         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
6453         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
6454         (arm_tls_descseq_addr): New.
6455         (legitimize_tls_address): Add tlsdesc support.
6456         (arm_cannot_copy_insn_p): Check for tlscall.
6457         (arm_emit_tls_decoration): Likewise.
6458         * config/arm/arm.h (TARGET_GNU2_TLS): New.
6459         (OPTION_DEFAULT_SPECS): Add with-tls support.
6460         * config/arm/arm.md (R1_REGNUM): Define.
6461         (tlscall): New.
6462         * config/arm/arm.opt (tls_type): New enumeration type and values.
6463         (mtls-dialect): New switch.
6464         * config/arm/arm-opts.h (enum tls_type): New.
6465
6466 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
6467
6468         * attribs.c (register_attribute): Added assert to check that all
6469         attribute specs are registered with a name that is not empty and
6470         does not start with '_'.
6471         (decl_attributes): Avoid the lookup of the "naked" attribute spec
6472         if the function has no attributes.
6473         * tree.c (is_attribute_with_length_p): Removed.
6474         (is_attribute_p): Removed.
6475         (private_is_attribute_p): New.
6476         (private_lookup_attribute): New.
6477         (lookup_attribute): Removed.
6478         (lookup_ident_attribute): New.
6479         (remove_attribute): Require the first argument to be in the form
6480         'text', not '__text__'.  Updated asserts.
6481         (merge_attributes): Use lookup_ident_attributes instead of
6482         lookup_attribute.
6483         (merge_dllimport_decl_attributes): Use remove_attribute.
6484         (attribute_list_contained): Likewise.
6485         (attribute_list_equal): Immediately return 1 if the arguments are
6486         identical pointers.
6487         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
6488         'int'.  Require the first argument to be in the form 'text', not
6489         '__text__'.  Require the second argument to be an identifier.
6490         (lookup_attribute): Made inline.  Require the first argument to be
6491         in the form 'text', not '__text__'.
6492         (private_is_attribute_p, private_lookup_attribute): New.
6493         Updated comments.
6494
6495 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
6496
6497         * builtins.c: Add sync_ or SYNC__ to builtin names.
6498         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
6499         * omp-low.c: Add sync_ or SYNC__ to builtin names.
6500
6501 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
6502
6503         PR target/33049
6504         * config/avr/avr.md (extzv): New expander.
6505         (*extzv): New insn.
6506         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
6507         * config/avr/constraints.md (C04): New constraint.
6508         * doc/md.texi (Machine Constraints): Document it.
6509
6510 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
6511
6512         PR middle-end/49489
6513         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
6514         unsignedp argument instead of 1 for clrsb_optab.
6515         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
6516         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
6517         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
6518         * optabs.c (widen_leading): Call widen_operand and expand_unop
6519         with 0 as unsignedp argument instead of 1 for clrsb_optab.
6520         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
6521
6522 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
6523
6524         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
6525
6526 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
6527
6528         * gensupport.c (add_define_attr): New static function.
6529         (is_predicable): Allow multi-alternative lists for the "predicable"
6530         attribute.
6531         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
6532         (process_one_cond_exec): Call alter_attrs_for_insn.
6533         * doc/md.texi (Defining Attributes): Mention some standard names.
6534         (Conditional Execution): Update documentation for "predicable".
6535
6536         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
6537         __builtin_clrsbll): Document.
6538         * doc/rtl.texi (clrsb): New entry.
6539         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
6540         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
6541         (expand_unop): Handle clrsb_optab.
6542         (init_optabs): Initialize it.
6543         * optabs.h (enum optab_index): New entry OTI_clrsb.
6544         (clrsb_optab): Define.
6545         * genopinit.c (optabs): Add an entry for it.
6546         * builtins.c (expand_builtin): Handle clrsb builtin functions.
6547         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
6548         BUILT_IN_CLRSBLL): New.
6549         * rtl.def (CLRSB): New code.
6550         * dwarf2out.c (mem_loc_descriptor): Handle it.
6551         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
6552         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
6553         and popcount.
6554         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
6555         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
6556         (__ctzDI2): Move declaration.
6557         * config/bfin/bfin.md (clrsbsi2): New expander.
6558         (signbitssi2): Use the CLRSB rtx.
6559         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
6560         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
6561
6562 2011-06-21  Richard Guenther  <rguenther@suse.de>
6563
6564         * ipa-inline-transform.c (inline_transform): Fix previous change.
6565
6566 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
6567
6568         PR tree-optimization/49478
6569         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
6570         with constant operand.
6571
6572 2011-06-21  Richard Guenther  <rguenther@suse.de>
6573
6574         * ipa-inline-transform.c (inline_transform): Fix typo.
6575
6576 2011-06-21  Richard Guenther  <rguenther@suse.de>
6577
6578         PR tree-optimization/49483
6579         * tree-vect-stmts.c (vectorizable_assignment): Also handle
6580         VIEW_CONVERT_EXPR conversions.
6581
6582 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
6583
6584         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
6585         * config/avr/avr-tables.opt: New file (generated).
6586         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
6587         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
6588         avr-mcus.def.
6589         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
6590         (avr_option_override): Don't process -mmcu= argument here.  Set
6591         avr_current_device using avr_mcu_index.
6592         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
6593         * config/avr/avr.opt (mmcu=): Use Enum.
6594         * config/avr/t-avr (avr-devices.o): Update dependencies.
6595         ($(srcdir)/config/avr/avr-tables.opt): New.
6596         * target.def (help): Remove.
6597         * doc/tm.texi.in (TARGET_HELP): Remove.
6598         * doc/tm.texi: Regenerate.
6599         * opts.c: Don't include target.h.
6600         (common_handle_option): Don't call targetm.help.
6601         * system.h (TARGET_HELP): Poison.
6602         * Makefile.in (opts.o): Update dependencies.
6603
6604 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6605
6606         * config/usegld.h: New file.
6607         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
6608         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
6609         (LIB_SPEC): Likewise.  Search /lib.
6610         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
6611         (RDYNAMIC_SPEC): Handle GNU ld.
6612         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
6613         Define.
6614         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
6615         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
6616         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
6617         (STACK_CHECK_STATIC_BUILTIN): Define.
6618         * config/sol2.opt (compat-bsd): Remove.
6619         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
6620         * config/sol2-bi.h: New file.
6621         * config/sol2-gld.h: Remove.
6622         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
6623         (NO_DBX_BNSYM_ENSYM): Remove.
6624         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
6625         (STACK_CHECK_STATIC_BUILTIN): Remove.
6626         Test USE_GLD instead of TARGET_GNU_LD.
6627         * config/i386/sol2-10.h: Rename to ...
6628         * config/i386/sol2-bi.h .. this.
6629         (SUBTARGET_EXTRA_SPECS): Redefine.
6630         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
6631         (MULTILIB_DEFAULTS): Remove.
6632         (DEFAULT_ARCH32_P): Define.
6633         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
6634         (ARCH64_SUBDIR): Define.
6635         Test USE_GLD instead of TARGET_GNU_LD.
6636         (I386_EMULATION): Rename to ...
6637         (ARCH32_EMULATION): ... this.
6638         (X86_64_EMULATION): Rename to ...
6639         (ARCH64_EMULATION): ... this.
6640         (TARGET_LD_EMULATION): Remove.
6641         (LINK_ARCH_SPEC): Remove.
6642         * config/i386/sol2-gas.h: Remove.
6643         * config/i386/t-sol2-10: Rename to ...
6644         * config/i386/t-sol2-64: ... this.
6645         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
6646         (AS_SPARC64_FLAG): Define.
6647         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
6648         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
6649         depending on TARGET_CPU_DEFAULT.
6650         (CPP_CPU_SPEC): Redefine.
6651         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
6652         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
6653         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
6654         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
6655         ASM_ARCH_DEFAULT_SPEC): Redefine.
6656         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
6657         LINK_ARCH_DEFAULT_SPEC.
6658         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
6659         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
6660         (ARCH64_SUBDIR): Define.
6661         (LINK_ARCH64_SPEC): Redefine.
6662         (CC1_SPEC): Redefine.
6663         (OPTION_DEFAULT_SPECS): Redefine.
6664         (MULTILIB_DEFAULTS): Define.
6665         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
6666         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
6667         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
6668         (NO_DBX_BNSYM_ENSYM): Remove.
6669         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
6670         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
6671         (TARGET_ASM_NAMED_SECTION): Likewise.
6672         (STACK_CHECK_STATIC_BUILTIN): Remove.
6673         * config/sparc/sol2-bi.h: Remove.
6674         * config/sparc/sol2-gas-bi.h: Remove.
6675         * config/sparc/sol2-gas.h: Remove.
6676         * config/sparc/sol2-gld-bi.h: Remove.
6677         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
6678         common parts ...
6679         (*-*-solaris2*): ... here.
6680
6681 2011-06-21  Christian Bruel  <christian.bruel@st.com>
6682
6683         PR other/43564
6684         * ipa-inline.c (can_inline_edge_p): Check
6685         !DECL_DISREGARD_INLINE_LIMITS.
6686
6687 2011-06-21  Christian Bruel  <christian.bruel@st.com>
6688
6689         PR middle-end/49139
6690         * cgraphunit.c (process_function_and_variable_attributes): warn when
6691         always_inline functions that are not inline.
6692         * ipa-inline-transform.c (inline_transform): Always call
6693         optimize_inline.
6694         * tree-inline.c (tree_inlinable_function_p): Use error instead
6695         of sorry.
6696         (expand_call_inline): Likewise.
6697
6698 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
6699
6700         * Makefile.in (dg_target_exps): Set.
6701         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
6702         instead of 7, try to divide it more evenly.
6703
6704 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
6705
6706         PR target/49089
6707         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
6708         (avx256_split_unaligned_store): New definition.
6709         (ix86_option_override_internal): Enable avx256 unaligned load/store
6710         splitting only when avx256_split_unaligned_load/store is set.
6711
6712 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
6713
6714         * regrename.c (scan_rtx_reg): Handle the case where we write to an
6715         open chain in a smaller mode without failing the entire block.
6716
6717 2011-06-21  Alan Modra  <amodra@gmail.com>
6718
6719         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
6720         CONST high part large-toc address.
6721         (rs6000_tls_referenced_p): Make static.
6722         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
6723
6724 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6725
6726         PR target/49385
6727         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
6728         one of the operands is a register.
6729
6730 2011-06-20  Kai Tietz  <ktietz@redhat.com>
6731
6732         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
6733         operations in combination with binary and.
6734
6735 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
6736
6737         * regrename.c (do_replace): Don't update notes.
6738
6739 2011-06-20  Alan Modra  <amodra@gmail.com>
6740
6741         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
6742         of toc-relative address in CONST.
6743         (rs6000_delegitimize_address): Recognize changed address.
6744         (rs6000_legitimize_reload_address): Likewise.
6745         (rs6000_emit_move): Don't force these constants to memory.
6746         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
6747         toc-relative address in CONST.
6748         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
6749         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
6750
6751 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
6752
6753         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
6754         (count_trailing_zeros): Likewise.
6755
6756 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
6757
6758         PR other/49325
6759         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
6760         .init_array can be used with .ctors on targets.
6761         * configure: Regenerated.
6762
6763 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
6764
6765         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
6766         if the element type is volatile.
6767
6768 2011-06-18  Jan Hubicka  <jh@suse.cz>
6769
6770         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
6771         extra name aliases.
6772         (lto_symtab_resolve_can_prevail_p): Likewise.
6773         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
6774         * cgraphbuild.c (record_reference): Remove extra body alias code.
6775         (mark_load): Likewise.
6776         (mark_store): Likewise.
6777         * cgraph.h (varpool_node): Remove extra_name filed;
6778         add alias_of and extraname_alias.
6779         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
6780         (varpool_alias_aliased_node): New inline function.
6781         (varpool_variable_node): New function.
6782         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
6783         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
6784         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
6785         (input_varpool_node): Likewise.
6786         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
6787         (varpool_externally_visible_p): Remove extra body alias code.
6788         (function_and_variable_visibility): Likewise.
6789         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
6790         (ipa_pta_execute): Use it.
6791         * varpool.c (varpool_remove_node): Remove extra name alias code.
6792         (varpool_mark_needed_node): Likewise.
6793         (varpool_analyze_pending_decls): Analyze aliases.
6794         (assemble_aliases): New functoin.
6795         (varpool_assemble_decl): Use it.
6796         (varpool_create_variable_alias): New function.
6797         (varpool_extra_name_alias): Rewrite.
6798         (varpool_for_node_and_aliases): New function.
6799
6800 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
6801
6802         PR target/49411
6803         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
6804         last_arg_constant and last argument doesn't match its predicate,
6805         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
6806         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
6807         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
6808         spelling of error message.
6809         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
6810         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
6811         const_0_to_255_operand instead of const_int_operand.
6812
6813         Revert:
6814         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
6815
6816         * config/i386/sse.md (blendbits): Remove mode attribute.
6817         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
6818         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
6819         Check integer value of operand 3 in insn constraint.
6820
6821 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
6822
6823         PR rtl-optimization/48542
6824         * reload.c (find_equiv_reg): Stop looking when finding a
6825         setjmp-type call.
6826         * reload1.c (reload_as_needed): Invalidate all reload
6827         registers when crossing a setjmp-type call.
6828
6829 2011-06-16  Jeff Law  <law@redhat.com>
6830
6831         * tree-ssa-threadupdate.c (struct redirection_data): New field
6832         intermediate_edge.
6833         (THREAD_TARGET2): Define.
6834         (redirection_data_eq): Also check that the intermediate edge is equal.
6835         (lookup_redirection_data): Drop useless argument.  Extract the
6836         outgoing_edge and intermediate edge from E.  Callers updated.
6837         (copy_phi_args, update_destination_phis): New functions.
6838         (fix_duplicate_block_edges): Likewise.
6839         (create_edge_and_update_destination_phis): Duplicate all the edges
6840         hung off e->aux.  Use copy_phi_args.
6841         (create_duplicates): Use fix_duplicate_block_edges.
6842         (fixup_template_block): Likewise.
6843         (redirect_edges): If necessary, redirect the joiner block's incoming
6844         edge to the duplicate of the joiner block.
6845         (thread_block): Don't muck up loops when threading through a joiner
6846         block.
6847         (thread_through_loop_header): Handle threading through a joiner block.
6848         (mark_threaded_blocks, register_jump_thread): Likewise.
6849         * tree-flow.h (register_jump_thread): Add new argument.  Callers
6850         updated.
6851         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
6852         (thread_across_edge): Handle threading through a joiner block.
6853
6854 2011-06-16  Martin Jambor  <mjambor@suse.cz>
6855
6856         PR tree-optimization/49343
6857         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
6858         calculate offset, provide 2nd operand for the new COMPONENT_REF.
6859
6860 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
6861
6862         * config/darwin-protos.h (machopic_select_rtx_section): Move to
6863         inside RTX_CODE ifdef.
6864
6865 2011-06-16  Tom de Vries  <tom@codesourcery.com>
6866
6867         PR target/45098
6868         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
6869         Disallow NULL pointer for pointer arithmetic.
6870
6871 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6872
6873         PR target/49398
6874         Revert.
6875         2011-06-10  Wei Guozhi  <carrot@google.com>
6876
6877         PR target/45335
6878         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
6879         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
6880         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
6881         related peephole2.
6882         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
6883         related peephole2.
6884         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
6885         (arm_legitimate_ldrd_p): New prototype.
6886         (arm_output_ldrd): New prototype.
6887         * config/arm/arm.c (arm_check_ldrd_operands): New function.
6888         (arm_legitimate_ldrd_p): New function.
6889         (arm_output_ldrd): New function.
6890
6891 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
6892
6893         PR middle-end/46500
6894         * doc/tm.texi.in: Update Copyright date.
6895         * doc/tm.texi: Regenerate.
6896         * targhooks.c (default_setup_incoming_varargs): Replace
6897         CUMULATIVE_ARGS* argument type with cumulative_args_t.
6898         (default_pretend_outgoing_varargs_named): Likewise.
6899         (hook_pass_by_reference_must_pass_in_stack): Likewise.
6900         (hook_callee_copies_named): Likewise.
6901         (default_function_arg_advance): Likewise.
6902         (default_function_arg): Likewise.
6903         (default_function_incoming_arg): Likewise.
6904         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
6905         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
6906         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
6907         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6908         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
6909         * targhooks.h (default_setup_incoming_varargs): Likewise.
6910         (default_pretend_outgoing_varargs_named): Likewise.
6911         (hook_pass_by_reference_must_pass_in_stack): Likewise.
6912         (hook_callee_copies_named): Likewise.
6913         (default_function_arg_advance): Likewise.
6914         (default_function_arg): Likewise.
6915         (default_function_incoming_arg): Likewise.
6916         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
6917         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
6918         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
6919         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6920         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
6921         * target.def (pass_by_reference): Likewise.
6922         (setup_incoming_varargs, strict_argument_naming): Likewise.
6923         (pretend_outgoing_varargs_named, callee_copies): Likewise.
6924         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
6925         (function_incoming_arg): Likewise.
6926         * target.h: Don't include "tm.h" .
6927         (cumulative_args_t): New typedef.
6928         [GCC_TM_H] (get_cumulative_args): New static inline function.
6929         [GCC_TM_H] (pack_cumulative_args): Likewise.
6930         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
6931         argument type with cumulative_args_t.
6932         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
6933         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
6934         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
6935         (frv_arg_partial_bytes, frv_function_arg): Likewise.
6936         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
6937         (frv_function_arg_1): Likewise.
6938         * config/s390/s390.c (s390_pass_by_reference): Likewise.
6939         (s390_function_arg_advance, s390_function_arg): Likewise.
6940         * config/m32c/m32c.c (m32c_function_arg): Likewise.
6941         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
6942         (m32c_strict_argument_naming): Likewise.
6943         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
6944         (spu_function_arg_advance): Likewise.
6945         (spu_setup_incoming_varargs): Likewise.  Make static.
6946         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
6947         Remove prototype.
6948         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
6949         CUMULATIVE_ARGS* argument type with cumulative_args_t.
6950         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
6951         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
6952         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
6953         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
6954         (mep_pass_by_reference, mep_function_arg): Likewise.
6955         (mep_function_arg_advance): Likewise.
6956         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
6957         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
6958         (m32r_function_arg, m32r_function_arg_advance): Likewise.
6959         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
6960         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
6961         (ix86_function_arg, ix86_pass_by_reference): Likewise.
6962         (ix86_setup_incoming_varargs): Likewise.
6963         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
6964         (sh_strict_argument_naming): Likewise.
6965         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
6966         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
6967         (sh_function_arg_advance, sh_function_arg): Likewise.
6968         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
6969         (pdp11_function_arg_advance): Likewise.
6970         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
6971         Likewise.
6972         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
6973         * config/avr/avr.c (avr_function_arg): Likewise.
6974         (avr_function_arg_advance): Likewise.
6975         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
6976         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
6977         (xtensa_function_arg_1): Likewise.
6978         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
6979         Likewise.
6980         (xstormy16_function_arg): Likewise.
6981         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
6982         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
6983         (fr30_function_arg_advance): Likewise.
6984         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
6985         (lm32_function_arg, lm32_function_arg_advance): Likewise.
6986         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
6987         (moxie_function_arg, moxie_function_arg_advance): Likewise.
6988         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
6989         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
6990         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
6991         (cris_function_arg, cris_function_incoming_arg): Likewise.
6992         (cris_function_arg_advance, cris_function_arg_1): Likewise.
6993         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
6994         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
6995         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
6996         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
6997         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
6998         (mn10300_arg_partial_bytes): Likewise.
6999         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
7000         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
7001         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
7002         (ia64_function_arg_1): Likewise.
7003         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
7004         (m68k_function_arg): Likewise.
7005         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
7006         (rs6000_function_arg, setup_incoming_varargs): Likewise.
7007         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
7008         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
7009         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
7010         (picochip_arg_advance): Likewise.
7011         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
7012         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
7013         (mcore_function_arg_advance): Likewise.
7014         * config/score/score.c (score_pass_by_reference): Likewise.
7015         (score_function_arg_advance): Likewise.
7016         (score_arg_partial_bytes): Likewise.  Make static.
7017         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
7018         * config/arm/arm.c (arm_arg_partial_bytes): Replace
7019         CUMULATIVE_ARGS* argument type with cumulative_args_t.
7020         (arm_function_arg, arm_function_arg_advance): Likewise.
7021         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
7022         * config/pa/pa.c (pa_pass_by_reference): Likewise.
7023         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
7024         (pa_function_arg): Likewise.
7025         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
7026         (mips_function_arg, mips_function_arg_advance): Likewise.
7027         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
7028         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
7029         * config/vax/vax.c (vax_function_arg): Likewise.
7030         (vax_function_arg_advance): Likewise.
7031         * config/h8300/h8300.c (h8300_function_arg): Likewise.
7032         (h8300_function_arg_advance): Likewise.
7033         * config/v850/v850.c (v850_pass_by_reference): Likewise.
7034         (v850_strict_argument_naming, v850_function_arg): Likewise.
7035         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
7036         (v850_setup_incoming_varargs): Likewise.
7037         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
7038         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
7039         (mmix_function_arg, mmix_pass_by_reference): Likewise.
7040         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
7041         with const void *.
7042         * config/bfin/bfin.c (setup_incoming_varargs): Replace
7043         CUMULATIVE_ARGS* argument type with cumulative_args_t.
7044         (bfin_function_arg_advance, bfin_function_arg): Likewise.
7045         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
7046         * calls.c (emit_call_1): Change type of args_so_far to
7047         cumulative_args_t.  Changed all callers.
7048         (initialize_argument_information): Likewise.
7049         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
7050         * dse.c (get_call_args): Likewise.
7051         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
7052         * function.c (pass_by_reference, reference_callee_copied): Likewise.
7053         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
7054         New member args_so_far_v.  Changed all users.
7055         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
7056         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
7057         * config/mips/mips.c (mips_output_args_xfer): Likewise.
7058         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
7059         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
7060         * config/microblaze/microblaze.c (microblaze_expand_prologue):
7061         Likewise.
7062         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
7063         m32r_pass_by_reference.
7064
7065 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
7066
7067         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
7068         argument to be a VEC of statements.
7069         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
7070         assert that pattern statements have to have their vector type set.
7071         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
7072         Change the first argument to be a VEC of statements.  Update
7073         documentation.
7074         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
7075         (vect_handle_widen_mult_by_const): New function.
7076         (vect_recog_widen_mult_pattern):  Change the first argument to be a
7077         VEC of statements.  Update documentation.  Check that the constant is
7078         INTEGER_CST.  Support multiplication by a constant that fits an
7079         intermediate type - call vect_handle_widen_mult_by_const.
7080         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
7081         call.  Handle additional pattern statements if necessary.
7082
7083 2011-06-16  Nick Clifton  <nickc@redhat.com>
7084
7085         PR target/49427
7086         * config.gcc: Set cpu_type to v850 for any V850 architecture.
7087         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
7088         md_file, extra_modes, out_file and extra_options are these are all
7089         deduced from cpu_type.
7090
7091 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
7092
7093         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
7094         truncation mask to 63.
7095
7096 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
7097
7098         PR target/49313
7099         PR target/29524
7100         * longlong.h: Add AVR support:
7101         (count_leading_zeros): New macro.
7102         (count_trailing_zeros): New macro.
7103         (COUNT_LEADING_ZEROS_0): New macro.
7104         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
7105         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
7106         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
7107         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
7108         (LIB2FUNCS_EXCLUDE): Add _clz.
7109         * config/avr/libgcc.S (XCALL): Move up in file.
7110         (XJMP): New C Macro.
7111         (DEFUN): New asm macro.
7112         (ENDF): New asm macro.
7113         (__ffssi2): New function.
7114         (__ffshi2): New function.
7115         (__loop_ffsqi2): New function.
7116         (__ctzsi2): New function.
7117         (__ctzhi2): New function.
7118         (__clzdi2): New function.
7119         (__clzsi2): New function.
7120         (__clzhi2): New function.
7121         (__paritydi2): New function.
7122         (__paritysi2): New function.
7123         (__parityhi2): New function.
7124         (__parityqi2): New function.
7125         (__popcounthi2): New function.
7126         (__popcountsi2): New function.
7127         (__popcountdi2): New function.
7128         (__popcountqi2): New function.
7129         (__bswapsi2): New function.
7130         (__bswapdi2): New function.
7131         (__ashldi3): New function.
7132         (__ashrdi3): New function.
7133         (__lshrdi3): New function.
7134         Fix suspicous lines.
7135
7136 2011-06-16  Richard Guenther  <rguenther@suse.de>
7137
7138         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
7139         the same as x != 0.
7140         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
7141         to (bool) X & 1.
7142         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
7143         equality compares against zero for the lower bit.
7144
7145 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
7146
7147         PR tree-optimization/49419
7148         * tree-vrp.c (execute_vrp): Call init_range_assertions
7149         before estimate_numbers_of_iterations, call
7150         free_number_of_iterations_estimates before calling
7151         remove_range_assertions.
7152
7153 2011-06-16  Revital Eres  <revital.eres@linaro.org>
7154
7155         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
7156         (struct partial_schedule): Add rows_length field.
7157         (verify_partial_schedule): Check rows_length.
7158         (ps_insert_empty_row): Handle rows_length.
7159         (create_partial_schedule): Likewise.
7160         (free_partial_schedule): Likewise.
7161         (reset_partial_schedule): Likewise.
7162         (create_ps_insn): Remove rest_count argument.
7163         (remove_node_from_ps): Update rows_length.
7164         (add_node_to_ps): Update rows_length and call create_ps_insn
7165         without passing row_rest_count.
7166         (rotate_partial_schedule): Update rows_length.
7167
7168 2011-06-16  Revital Eres  <revital.eres@linaro.org>
7169
7170         * ddg.c (add_intra_loop_mem_dep): New function.
7171         (build_intra_loop_deps): Call it.
7172
7173 2011-06-13  Jeff Law  <law@redhat.com>
7174
7175         * df-problems.c (df_lr_local_compute): Manually CSE
7176         PIC_OFFSET_TABLE_REGNUM.
7177         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
7178         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
7179
7180 2011-06-13  Jan Hubicka  <jh@suse.cz>
7181
7182         * cgraphunit.c (handle_alias_pairs): New function.
7183         (cgraph_finalize_compilation_unit): Use it.
7184         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
7185         as externally visible.
7186
7187 2011-06-15  Richard Guenther  <rguenther@suse.de>
7188
7189         * expr.c (expand_expr_real_2): Reduce all integral types to
7190         bitfield precision.
7191         (expand_expr_real_1): Likewise.
7192
7193 2011-06-15  Martin Jambor  <mjambor@suse.cz>
7194
7195         PR tree-optimization/48613
7196         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
7197         ipa_node_params_vector is NULL.
7198
7199 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
7200
7201         PR debug/49382
7202         * dwarf2out.c (dw_loc_list_node): Add force field.
7203         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
7204         location in the list, even if it is modified before first real insn.
7205         (output_loc_list): Emit empty ranges with force flag set.
7206         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
7207
7208 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
7209
7210         PR target/49349
7211         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
7212         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
7213         above a fence.  Update comments.
7214         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
7215         placed just above it.  Do not allow NULL place_to_insert.
7216
7217 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
7218
7219         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
7220         (slpeel_tree_peel_loop_to_edge): Don't call
7221         remove_dead_stmts_from_loop.
7222         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
7223         remove irrelevant pattern statements.  For irrelevant statements
7224         check if it is the last statement of a detected pattern, use
7225         corresponding pattern statement instead.
7226         (destroy_loop_vec_info): No need to remove pattern statements,
7227         only free stmt_vec_info.
7228         (vect_transform_loop): For irrelevant statements check if it is
7229         the last statement of a detected pattern, use corresponding
7230         pattern statement instead.
7231         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
7232         pattern statements.  Set basic block for the new statement.
7233         (vect_pattern_recog): Update documentation.
7234         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
7235         operands of pattern statements.
7236         (vectorizable_call): Fix printing.  In case of a pattern statement
7237         use the lhs of the original statement when creating a dummy
7238         statement to replace the original call.
7239         (vect_analyze_stmt): For irrelevant statements check if it is
7240         the last statement of a detected pattern, use corresponding
7241         pattern statement instead.
7242         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
7243         statements use gsi of the original statement.
7244
7245 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
7246
7247         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
7248         common/common-target-def.h.
7249         * target.def (default_target_flags, handle_option,
7250         supports_split_stack, optimization_table, init_struct,
7251         except_unwind_info, unwind_tables_default, have_named_sections):
7252         Move to common/common-target.def.
7253         * target.h (enum opt_levels, struct default_options): Move to
7254         common/common-target.h.
7255         * targhooks.c (default_except_unwind_info,
7256         dwarf2_except_unwind_info, sjlj_except_unwind_info,
7257         default_target_handle_option, empty_optimization_table): Move to
7258         common/common-targhooks.c.
7259         * targhooks.h (default_except_unwind_info,
7260         dwarf2_except_unwind_info, sjlj_except_unwind_info,
7261         default_target_handle_option, empty_optimization_table): Move to
7262         common/common-targhooks.h.
7263         * common/common-target-def.h: Include common/common-targhooks.h.
7264         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
7265         defined.
7266         * common/common-target.def (handle_option, option_init_struct,
7267         option_optimization_table, default_target_flags,
7268         except_unwind_info, supports_split_stack, unwind_tables_default,
7269         have_named_sections): Move from target.def.
7270         (HOOK_PREFIX): Undefine at end of file.
7271         * common/common-target.h: Include input.h.
7272         (enum opt_levels, struct default_options): Move from target.h.
7273         * common/common-targhooks.c, common/common-targhooks.h: New.
7274         * config.gcc (target_has_targetm_common): Default to yes.
7275         (moxie*): Set target_has_targetm_common=no.
7276         (hppa*-*-*): Don't set target_has_targetm_common=yes.
7277         * doc/tm.texi: Regenerate.
7278         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
7279         (C_TARGET_DEF_H): Add common/common-targhooks.h.
7280         (GCC_OBJS): Remove vec.o.
7281         (OBJS): Remove hooks.o and vec.o.
7282         (OBJS-libcommon-target): Add vec.o, hooks.o and
7283         common/common-targhooks.o.
7284         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
7285         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
7286         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
7287         cfglayout.o, $(out_object_file), $(common_out_object_file)):
7288         Update dependencies.
7289         (common/common-targhooks.o): New.
7290         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
7291         * common/config/pa/pa-common.c: Include more headers.  Take
7292         copyright dates from pa.c.
7293         (pa_option_optimization_table, pa_handle_option,
7294         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
7295         TARGET_HANDLE_OPTION): Move from pa.c.
7296         * common/config/alpha/alpha-common.c,
7297         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
7298         common/config/bfin/bfin-common.c,
7299         common/config/cris/cris-common.c,
7300         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
7301         common/config/h8300/h8300-common.c,
7302         common/config/i386/i386-common.c,
7303         common/config/ia64/ia64-common.c,
7304         common/config/iq2000/iq2000-common.c,
7305         common/config/lm32/lm32-common.c,
7306         common/config/m32c/m32c-common.c,
7307         common/config/m32r/m32r-common.c,
7308         common/config/m68k/m68k-common.c,
7309         common/config/mcore/mcore-common.c,
7310         common/config/mep/mep-common.c,
7311         common/config/microblaze/microblaze-common.c,
7312         common/config/mips/mips-common.c,
7313         common/config/mmix/mmix-common.c,
7314         common/config/mn10300/mn10300-common.c,
7315         common/config/pdp11/pdp11-common.c,
7316         common/config/picochip/picochip-common.c,
7317         common/config/rs6000/rs6000-common.c,
7318         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
7319         common/config/score/score-common.c, common/config/sh/sh-common.c,
7320         common/config/sparc/sparc-common.c,
7321         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
7322         common/config/vax/vax-common.c,
7323         common/config/xstormy16/xstormy16-common.c,
7324         common/config/xtensa/xtensa-common.c: New.
7325         * config/alpha/alpha.c: Include common/common-target.h.
7326         (alpha_option_optimization_table, alpha_handle_option,
7327         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
7328         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
7329         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
7330         * config/arm/arm.c (arm_option_optimization_table,
7331         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
7332         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
7333         arm-common.c.
7334         * config/avr/avr.c (avr_option_optimization_table,
7335         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
7336         to avr-common.c.
7337         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
7338         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
7339         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
7340         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
7341         * config/cris/cris.c (cris_option_optimization_table,
7342         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
7343         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
7344         cris-common.c.
7345         * config/fr30/fr30.c (fr30_option_optimization_table,
7346         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
7347         to fr30-common.c.
7348         * config/frv/frv.c (frv_option_optimization_table,
7349         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
7350         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
7351         * config/h8300/h8300.c (h8300_option_optimization_table,
7352         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
7353         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
7354         * config/i386/i386-protos.h (ix86_handle_option): Declare.
7355         * config/i386/i386.c: Include common/common-target.h.
7356         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
7357         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
7358         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
7359         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
7360         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
7361         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
7362         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
7363         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
7364         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
7365         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
7366         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
7367         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
7368         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
7369         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
7370         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
7371         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
7372         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
7373         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
7374         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
7375         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
7376         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
7377         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
7378         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
7379         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
7380         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
7381         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
7382         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
7383         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
7384         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
7385         ix86_option_optimization_table, ix86_option_init_struct,
7386         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
7387         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
7388         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
7389         i386-common.c.
7390         * config/i386/t-i386 (i386.o): Update dependencies.
7391         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
7392         * config/ia64/ia64.c (ia64_option_optimization_table,
7393         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
7394         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
7395         ia64_handle_option): Move to ia64-common.c.
7396         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
7397         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
7398         * config/lm32/lm32.c (lm32_option_optimization_table,
7399         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
7400         to lm32-common.c.
7401         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
7402         m32c-common.c.
7403         * config/m32r/m32r.c (m32r_option_optimization_table,
7404         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
7405         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
7406         m32r_handle_option): Move to m32r-common.c.
7407         (m32r_memory_move_cost): Remove comment referring to
7408         TARGET_HANDLE_OPTION.
7409         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
7410         Move to m68k-common.c.
7411         * config/mcore/mcore.c (mcore_option_optimization_table,
7412         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
7413         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
7414         * config/mep/mep.c (mep_option_optimization_table,
7415         mep_handle_option, TARGET_HANDLE_OPTION,
7416         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
7417         Move to mep-common.c.
7418         * config/microblaze/microblaze.c
7419         (microblaze_option_optimization_table,
7420         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
7421         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
7422         * config/mips/mips.c (mips_handle_option,
7423         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
7424         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
7425         mips-common.c.
7426         * config/mmix/mmix.c (mmix_option_optimization_table,
7427         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
7428         Move to mmix-common.c.
7429         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
7430         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
7431         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
7432         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
7433         * config/pa/pa.c: Include common/common-target.h.
7434         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
7435         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
7436         pa_handle_option): Move to pa-common.c.
7437         (pa_option_override): Use targetm_common.except_unwind_info.
7438         (pa_asm_output_mi_thunk, pa_function_section): Use
7439         targetm_common.have_named_sections.
7440         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
7441         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
7442         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
7443         pdp11_handle_option, pdp11_option_init_struct): Move to
7444         pdp11-common.c.
7445         * config/picochip/picochip.c (picochip_option_optimization_table,
7446         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
7447         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
7448         * config/rs6000/rs6000.c: Include common/common-target.h.
7449         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
7450         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
7451         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
7452         rs6000_handle_option): Move to rs6000-common.c.
7453         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
7454         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
7455         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
7456         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
7457         * config/s390/s390.c (processor_flags_table,
7458         s390_option_optimization_table, s390_option_init_struct,
7459         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
7460         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
7461         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
7462         * config/s390/s390.h (processor_flags_table): Declare.
7463         * config/score/score.c (score_option_optimization_table,
7464         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
7465         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
7466         score_handle_option): Move to score-common.c.
7467         * config/sh/sh.c (sh_option_optimization_table,
7468         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
7469         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
7470         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
7471         * config/sparc/sparc.c: Include common/common-target.h.
7472         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
7473         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
7474         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
7475         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
7476         spu_option_init_struct): Move to spu-common.c.
7477         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
7478         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
7479         * config/v850/v850.c (small_memory_physical_max,
7480         v850_handle_memory_optionn v850_handle_option,
7481         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
7482         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
7483         v850-common.c.
7484         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
7485         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
7486         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
7487         Move to xtensa-common.c.
7488         * cfglayout.c: Include common/common-target.h.
7489         (fixup_reorder_chain): Use targetm_common.have_named_sections.
7490         * cfgrtl.c: Include common/common-target.h.
7491         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
7492         targetm_common.have_named_sections.
7493         * dbxout.c: Include common/common-target.h.
7494         (dbxout_function_end): Use targetm_common.have_named_sections.
7495         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
7496         targetm_common.except_unwind_info.
7497         * dwarf2out.c: Include common/common-target.h.
7498         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
7499         dwarf2out_begin_prologue, dwarf2out_frame_init,
7500         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
7501         targetm_common.except_unwind_info.
7502         * except.c: Include common/common-target.h.
7503         (init_eh, finish_eh_generation,
7504         output_one_function_exception_table): Use
7505         targetm_common.except_unwind_info.
7506         (switch_to_exception_section): Use targetm_common.have_named_sections.
7507         * explow.c: Include common/common-target.h.
7508         * expr.c: Include common/common-target.h.
7509         (build_personality_function): Use targetm_common.except_unwind_info.
7510         * function.c: Include common/common-target.h.
7511         (expand_function_end): Use targetm_common.except_unwind_info.
7512         * haifa-sched.c: Include common/common-target.h.
7513         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
7514         * lto-opts.c: Include common/common-target.h instead of target.h.
7515         (lto_reissue_options): Use targetm_common.handle_option.
7516         * opts.c: Include common/common-target.h.
7517         (target_handle_option): Use targetm_common.handle_option.
7518         (init_options_struct): Update comment referring to
7519         targetm.target_option.optimization.  Use
7520         targetm_common.default_target_flags,
7521         targetm_common.unwind_tables_default and
7522         targetm_common.option_init_struct.
7523         (default_options_optimization): Use
7524         targetm_common.option_optimization_table.
7525         (finish_options): Use targetm_common.except_unwind_info,
7526         targetm_common.unwind_tables_default,
7527         targetm_common.have_named_sections and
7528         targetm_common.supports_split_stack.
7529         * toplev.c: Include common/common-target.h.
7530         (process_options): Use targetm_common.have_named_sections.
7531         * tree-tailcall.c: Include common/common-target.h.
7532         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
7533         * tree.c: Include common/common-target.h.
7534         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
7535         * varasm.c: Include common/common-target.h.
7536         (resolve_unique_section, hot_function_section,
7537         default_function_section): Use targetm_common.have_named_sections.
7538
7539 2011-06-14  Easwaran Raman  <eraman@google.com>
7540
7541         PR rtl-optimization/44194
7542         * dse.c: Include tree-flow.h
7543         (insn_info): Add new field non_frame_wild_read.
7544         (group_info): Add new fields escaped_n and escaped_p.
7545         (kill_on_calls): New variable.
7546         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
7547         (dse_step0): Initialize kill_on_calls.
7548         (can_escape): New function.
7549         (set_usage_bits): Add additional parameter; record information
7550         about escaped locations.
7551         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
7552         (dse_step2_nospill): Set kill_on_calls based on
7553         group->escaped_n and group->escaped_n.
7554         (add_wild_read): Refactor into...
7555         (reset_active_stores): ... New function, and
7556         (free_read_records): ... New function.
7557         (add_non_frame_wild_read): New function.
7558         (scan_insn): Call add_non_frame_wild_read on non-const calls.
7559         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
7560         (dse_step5_nospill): Call scan_reads_nospill for instructions
7561         marked as non_frame_wild_read.
7562         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
7563
7564 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
7565
7566         * common/common-target-def.h, common/common-target.def,
7567         common/common-target.h, common/config/default-common.c,
7568         common/config/pa/pa-common.c: New files.
7569         * Makefile.in (common_out_file, common_out_object_file,
7570         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
7571         (OBJS-libcommon-target): Include $(common_out_object_file).
7572         (prefix.o): Update dependencies.
7573         ($(common_out_object_file), common/common-target-hooks-def.h,
7574         s-common-target-hooks-def-h): New.
7575         (s-tm-texi): Also check timestamp on common-target.def.
7576         (build/genhooks.o): Update dependencies.
7577         * config.gcc (common_out_file, target_has_targetm_common): Define.
7578         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
7579         TARGET_ALWAYS_STRIP_DOTDOT.
7580         * configure.ac (common_out_object_file): Define.
7581         (common_out_file, common_out_object_file): Substitute.
7582         (common): Create directory.
7583         * configure: Regenerate.
7584         * doc/tm.texi.in (targetm_common): Document.
7585         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
7586         * doc/tm.texi: Regenerate.
7587         * genhooks.c (hook_array): Also include common/common-target.def.
7588         * prefix.c (tm.h): Don't include.
7589         (common/common-target.h): Include.
7590         (ALWAYS_STRIP_DOTDOT): Don't define.
7591         (update_path): Use targetm_common.always_strip_dotdot instead of
7592         ALWAYS_STRIP_DOTDOT.
7593         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
7594
7595 2011-06-14  David Li  <davidxl@google.com>
7596
7597         * passes.c (execute_function_todo): Remove TODO_dump_func.
7598         (execute_one_pass): Remove TODO_dump_func.
7599         (execute_function_dump): New function.
7600         * tree-vrp.c: Remove TODO_dump_func.
7601         * regrename.c: Remove TODO_dump_func.
7602         * fwprop.c: Remove TODO_dump_func.
7603         * tree-into-ssa.c: Remove TODO_dump_func.
7604         * tree-complex.c: Remove TODO_dump_func.
7605         * tracer.c: Remove TODO_dump_func.
7606         * tree-loop-distribution.c: Remove TODO_dump_func.
7607         * postreload-gcse.c: Remove TODO_dump_func.
7608         * postreload.c: Remove TODO_dump_func.
7609         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
7610         * tree-tailcall.c: Remove TODO_dump_func.
7611         * ipa-cp.c: Remove TODO_dump_func.
7612         * final.c: Remove TODO_dump_func.
7613         * tree-emutls.c: Remove TODO_dump_func.
7614         * omp-low.c: Remove TODO_dump_func.
7615         * tree-ssa-dse.c: Remove TODO_dump_func.
7616         * tree-ssa-uncprop.c: Remove TODO_dump_func.
7617         * auto-inc-dec.c: Remove TODO_dump_func.
7618         * reorg.c: Remove TODO_dump_func.
7619         * tree-ssa-copyrename.c: Remove TODO_dump_func.
7620         * tree-ssa-ccp.c: Remove TODO_dump_func.
7621         * compare-elim.c: Remove TODO_dump_func.
7622         * mode-switching.c: Remove TODO_dump_func.
7623         * modulo-sched.c: Remove TODO_dump_func.
7624         * tree-call-cdce.c: Remove TODO_dump_func.
7625         * cse.c: Remove TODO_dump_func.
7626         * web.c: Remove TODO_dump_func.
7627         * tree-stdarg.c: Remove TODO_dump_func.
7628         * lto-streamer-out.c: Remove TODO_dump_func.
7629         * tree-ssa-math-opts.c: Remove TODO_dump_func.
7630         * tree-ssa-dom.c: Remove TODO_dump_func.
7631         * tree-nrv.c: Remove TODO_dump_func.
7632         * loop-init.c: Remove TODO_dump_func.
7633         * gimple-low.c: Remove TODO_dump_func.
7634         * ipa-inline.c: Remove TODO_dump_func.
7635         * tree-ssa-sink.c: Remove TODO_dump_func.
7636         * jump.c: Remove TODO_dump_func.
7637         * ifcvt.c: Remove TODO_dump_func.
7638         * tree-ssa-loop.c: Remove TODO_dump_func.
7639         * recog.c: Remove TODO_dump_func.
7640         * dse.c: Remove TODO_dump_func.
7641         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
7642         * matrix-reorg.c: Remove TODO_dump_func.
7643         * tree-eh.c: Remove TODO_dump_func.
7644         * regmove.c: Remove TODO_dump_func.
7645         * function.c: Remove TODO_dump_func.
7646         * tree-vectorizer.c: Remove TODO_dump_func.
7647         * ipa-split.c: Remove TODO_dump_func.
7648         * gcse.c: Remove TODO_dump_func.
7649         * tree-if-conv.c: Remove TODO_dump_func.
7650         * init-regs.c: Remove TODO_dump_func.
7651         * tree-ssa-phiopt.c: Remove TODO_dump_func.
7652         * implicit-zee.c: Remove TODO_dump_func.
7653         * lower-subreg.c: Remove TODO_dump_func.
7654         * bt-load.c: Remove TODO_dump_func.
7655         * tree-dfa.c: Remove TODO_dump_func.
7656         * except.c: Remove TODO_dump_func.
7657         * emit-rtl.c: Remove TODO_dump_func.
7658         * store-motion.c: Remove TODO_dump_func.
7659         * cfgexpand.c: Remove TODO_dump_func.
7660         * tree-cfgcleanup.c: Remove TODO_dump_func.
7661         * cfgcleanup.c: Remove TODO_dump_func.
7662         * tree-ssa-pre.c: Remove TODO_dump_func.
7663         * tree-sra.c: Remove TODO_dump_func.
7664         * tree-mudflap.c: Remove TODO_dump_func.
7665         * tree-ssa-copy.c: Remove TODO_dump_func.
7666         * cfglayout.c: Remove TODO_dump_func.
7667         * tree-ssa-forwprop.c: Remove TODO_dump_func.
7668         * tree-ssa-dce.c: Remove TODO_dump_func.
7669         * ira.c: Remove TODO_dump_func.
7670         * tree-ssa.c: Remove TODO_dump_func.
7671         * integrate.c: Remove TODO_dump_func.
7672         * tree-optimize.c: Remove TODO_dump_func.
7673         * tree-ssa-phiprop.c: Remove TODO_dump_func.
7674         * tree-object-size.c: Remove TODO_dump_func.
7675         * combine.c: Remove TODO_dump_func.
7676         * bb-reorder.c: Remove TODO_dump_func.
7677         * cprop.c: Remove TODO_dump_func.
7678         * var-tracking.c: Remove TODO_dump_func.
7679         * tree-profile.c: Remove TODO_dump_func.
7680         * tree-vect-generic.c: Remove TODO_dump_func.
7681         * reg-stack.c: Remove TODO_dump_func.
7682         * sched-rgn.c: Remove TODO_dump_func.
7683         * tree-ssa-structalias.c: Remove TODO_dump_func.
7684         * tree-switch-conversion.c: Remove TODO_dump_func.
7685         * tree-cfg.c: Remove TODO_dump_func.
7686         * tree-ssa-reassoc.c: Remove TODO_dump_func.
7687         * combine-stack-adj.c: Remove TODO_dump_func.
7688         * dce.c: Remove TODO_dump_func.
7689         * tree-ssanames.c: Remove TODO_dump_func.
7690         * regcprop.c: Remove TODO_dump_func.
7691
7692 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
7693
7694         PR middle-end/47364
7695         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
7696         and properly handle result not in Pmode.
7697
7698 2011-06-14  Robert Millan  <rmh@gnu.org>
7699
7700         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
7701         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
7702         `config/linux.h'.
7703
7704         * config/i386/kfreebsd-gnu64.h: New file.
7705         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
7706         with `i386/kfreebsd-gnu64.h'.
7707
7708         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
7709         (GNU_USER_LINK_EMULATION64): New macros.
7710         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
7711         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
7712         of hardcoding `elf_i386' and `elf_x86_64'.
7713
7714 2011-06-14  Nick Clifton  <nickc@redhat.com>
7715
7716         PR target/49403
7717         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
7718
7719         PR target/49402
7720         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
7721
7722 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
7723
7724         PR fortran/49103
7725         * tree.h (DECL_NONSHAREABLE): Define.
7726         (struct tree_decl_common): Change decl_common_unused to
7727         decl_nonshareable_flag.
7728         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
7729         Ignore vars with DECL_NONSHAREABLE bit set.
7730         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
7731         on stores to automatic aggregate vars.
7732
7733         PR rtl-optimization/49390
7734         Revert:
7735         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
7736
7737         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
7738         MEM_ALIAS_SET.
7739
7740 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
7741             Tom de Vries  <tom@codesourcery.com>
7742
7743         PR target/45098
7744         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
7745         Document changed semantics.
7746         (max_stmt_executions, max_stmt_executions_int): Declare.
7747         * tree-data-ref.c (estimated_loop_iterations)
7748         (estimated_loop_iterations_int): Move functions...
7749         * tree-ssa-loop-niter.c (estimated_loop_iterations)
7750         (estimated_loop_iterations_int): here.
7751         (record_estimate): Change nb_iterations_upper_bound and
7752         nb_iterations_estimate semantics.
7753         (max_stmt_executions, max_stmt_executions_int): New function.
7754         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
7755         (max_stmt_executions_tree): this.
7756         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
7757         estimated_loop_iterations_tree.
7758         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
7759         max_stmt_executions_int instead of estimated_loop_iterations_int.
7760         * predict.c (predict_loops): Idem.
7761         * tree-parloops.c (parallelize_loops): Idem.
7762         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
7763         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
7764         (init_omega_for_ddr_1): Idem.
7765         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
7766         (loop_prefetch_arrays): Idem
7767         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
7768         max_stmt_executions instead of estimated_loop_iterations.
7769         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
7770         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
7771         instead of nb_iterations_upper_bound.
7772
7773 2011-06-13  Jan Hubicka  <jh@suse.cz>
7774
7775         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
7776
7777 2011-06-14  Richard Henderson  <rth@redhat.com>
7778
7779         PR debug/48459
7780         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
7781         (based_loc_descr): Assert it's true.
7782         (compute_frame_pointer_to_fb_displacement): Set it, rather than
7783         aborting immediately.
7784
7785 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
7786             Mingfeng Wu  <mingfeng@faraday-tech.com>
7787
7788         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
7789
7790 2011-06-13  Jan Hubicka  <jh@suse.cz>
7791
7792         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
7793
7794 2011-06-13  Jan Hubicka  <jh@suse.cz>
7795
7796         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
7797         similarly to DECL_COMDAT.
7798         * cgraphunit.c (cgraph_analyze_function): Likewise.
7799         * ipa.c (function_and_variable_visibility): Likewise.
7800
7801 2011-06-13  Jan Hubicka  <jh@suse.cz>
7802
7803         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
7804         BINFO_VIRTUALS when streaming for ltrans unit.
7805
7806 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
7807
7808         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
7809         (movdi_internal64): Same.
7810
7811 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
7812
7813         PR target/44618
7814         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
7815         a set of similar patterns, where the MATCH_OPERAND for the function
7816         argument is replaced with individual references to hardware registers.
7817         (save_fpregs_<mode>): Ditto
7818         (restore_gpregs_<mode>): Ditto
7819         (return_and_restore_gpregs_<mode>): Ditto
7820         (return_and_restore_fpregs_<mode>): Ditto
7821         (return_and_restore_fpregs_aix_<mode>): Ditto
7822
7823 2011-06-13  Jan Hubicka  <jh@suse.cz>
7824
7825         * ipa-utils.c (postorder_stack): New structure.
7826         (ipa_reverse_postorder): Handle aliases.
7827
7828 2011-06-13  Jan Hubicka  <jh@suse.cz>
7829
7830         * ipa-inline.c (reset_edge_caches): Walk aliases.
7831         (update_caller_keys): Do not test inlinability of aliases.
7832         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
7833         (do_estimate_growth): Fix typo.
7834
7835 2011-06-13  Jan Hubicka  <jh@suse.cz>
7836
7837         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
7838         (can_remove_node_now_p): ... here; handle same comdat groups.
7839         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
7840         (inline_call): Update use of can_remove_node_now_p.
7841
7842 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
7843
7844         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
7845         condition to disallow non-identical memory locations.
7846         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
7847         preference to bit manipulation instructions.
7848
7849 2011-06-13  Jan Hubicka  <jh@suse.cz>
7850
7851         * cgraph.c (cgraph_for_node_thunks_and_aliases,
7852         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
7853         (nonremovable_p): New function.
7854         (cgraph_can_remove_if_no_direct_calls_p): New function.
7855         (used_from_object_file_p): New functoin.
7856         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
7857         references from aliases.
7858         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
7859         * ipa-inline.c (check_caller_edge): New function.
7860         (want_inline_function_called_once_p): Use it; accept aliases called
7861         once, too.
7862         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
7863
7864 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7865
7866         PR target/48454
7867         * config/arm/neon.md (vec_pack_trunc): Set the lengths
7868         correctly for the case with Quad vectors.
7869
7870 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
7871            Ira Rosen  <ira.rosen@linaro.org>
7872
7873         PR tree-optimization/49352
7874         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
7875         all, make sure loop_use_stmt after the loop is a def stmt of a used
7876         SSA_NAME that is the only one defined inside of the loop.  Don't
7877         check for COND_EXPR and GIMPLE_BINARY_RHS.
7878         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
7879         check_reduction is true.
7880
7881 2011-06-11  Jan Hubicka  <jh@suse.cz>
7882
7883         PR middle-end/49373
7884         * ipa.c (cgraph_externally_visible_p): Check resolution info.
7885
7886 2011-06-11  Jan Hubicka  <jh@suse.cz>
7887
7888         PR middle-end/48836
7889         * ipa-inline-transform.c: Include tree-pass.h
7890         (inline_transform): Set TODO_update_ssa_only_virtuals.
7891         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
7892
7893 2011-06-11  Jan Hubicka  <jh@suse.cz>
7894
7895         PR middle-end/49378
7896         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
7897         aliases and thunks.
7898
7899 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
7900
7901         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
7902         Take number of iterations to peel into account for equally frequent
7903         misalignment values.
7904
7905 2011-06-11  Jan Hubicka  <jh@suse.cz>
7906
7907         * lto-streamer-out.c (produce_symtab): Stream out the newly
7908         represented aliases.
7909
7910 2011-06-11  Jan Hubicka  <jh@suse.cz>
7911
7912         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
7913         varying args.
7914         (ipa_update_after_lto_read): Likewise.
7915         (ipa_write_node_info): Do not sream call_with_var_arguments.
7916         (ipa_read_node_info): Likewise.
7917
7918 2011-06-11  Jan Hubicka  <jh@suse.cz>
7919
7920         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
7921
7922 2011-06-11  Jan Hubicka  <jh@suse.cz>
7923
7924         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
7925         (lto_symtab_resolve_can_prevail_p): Likewise.
7926         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
7927         * cgraph.c (same_body_aliases_done): New global var.
7928         (cgraph_same_body_alias_1): Rename to ...
7929         (cgraph_create_function_alias): ... this one; reorg to new
7930         representation.
7931         (cgraph_same_body_alias): Use cgraph_create_function_alias;
7932         record references when asked to.
7933         (cgraph_add_thunk): Fix formating.
7934         (cgraph_get_node): Kill same body alias code.
7935         (cgraph_node_for_asm): Likewise.
7936         (cgraph_remove_same_body_alias): Remove.
7937         (cgraph_remove_node): Kill same body alias code.
7938         (cgraph_mark_address_taken_node): Mark also the aliased function
7939         as having address taken.
7940         (dump_cgraph_node): Dump same body aliases.
7941         (cgraph_for_node_thunks_and_aliases): Update for new alias
7942         representation.
7943         (cgraph_for_node_and_aliases): Likewise.
7944         * cgraph.h (same_body): Kll pointer.
7945         (same_body_alias): Update comment.
7946         (same_body_aliases_done): Declare.
7947         (cgraph_remove_same_body_alias): Remove declaration.
7948         (cgraph_create_function_alias): Declare.
7949         (cgraph_process_same_body_aliases): Declare.
7950         (cgraph_function_with_gimple_body_p): Check for alias.
7951         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
7952         (cgraph_alias_aliased_node): New function.
7953         (cgraph_function_node): Update for new aliases.
7954         (cgraph_function_or_thunk_node): Likewise.
7955         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
7956         (inline_call): Remove dead aliases.
7957         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
7958         name hack for same body aliases.
7959         (clone_of_p): Look through aliases.
7960         (verify_cgraph_node): Verify aliases.
7961         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
7962         (cgraph_process_same_body_aliases): New function.
7963         (process_function_and_variable_attributes): Disable weakref warning on
7964         alias.
7965         (cgraph_analyze_functions): Handle aliases.
7966         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
7967         (assemble_thunks): Rename to ...
7968         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
7969         (cgraph_expand_function): Remove alias output code.
7970         (cgraph_output_in_order): Skip aliases.
7971         (cgraph_preserve_function_body_p): Aliases don't need preserving.
7972         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
7973         (ipa_record_reference): Do not assert on alias references.
7974         (ipa_ref_has_aliases_p): New function.
7975         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
7976         (ipa_ref_has_aliases_p): Declare.
7977         * lto-cgraph.c (lto_output_node): Handle aliases.
7978         (input_node): Likewise.
7979         * lto-streamer-out.c (lto_output): Skip aliases.
7980         (produce_symtab): Kill same_body_alias code.
7981         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
7982         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
7983         * ipa-inline.c (update_caller_keys): Walk aliases.
7984         (inline_small_functions): Fix thinko in previous patch.
7985         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
7986         (function_and_variable_visibility): Do not walk same body aliases.
7987         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
7988         (ipa_pta_execute): Use it.
7989
7990 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
7991
7992         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
7993         (*vec_dupv2df): Rename from vec_dupv2df.
7994         (vec_dupv2df): New expander.
7995
7996 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
7997
7998         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
7999
8000 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
8001
8002         * config/i386/i386.md: Use default value in "isa" attribute.
8003         * config/i386/sse.md: Ditto.
8004         * config/i386/mmx.md: Ditto.
8005
8006 2011-06-10  Wei Guozhi  <carrot@google.com>
8007
8008         PR target/45335
8009         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
8010         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
8011         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
8012         related peephole2.
8013         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
8014         related peephole2.
8015         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
8016         (arm_legitimate_ldrd_p): New prototype.
8017         (arm_output_ldrd): New prototype.
8018         * config/arm/arm.c (arm_check_ldrd_operands): New function.
8019         (arm_legitimate_ldrd_p): New function.
8020         (arm_output_ldrd): New function.
8021
8022 2011-06-10  David Li  <davidxl@google.com>
8023
8024         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
8025         * passes.c (passr_eq): New function.
8026         (create_pass_tab): New function.
8027         (pass_traverse): New function.
8028         (dump_one_pass): New function.
8029         (dump_pass_list): New function.
8030         (dump_passes): New function.
8031
8032 2011-06-10  Jan Hubicka  <jh@suse.cz>
8033
8034         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
8035         setting the nothrow flag.
8036         * ipa-reference.c (propagate): Skip aliases.
8037         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
8038         (propagate_nothrow): Skip aliases; do not update cgraph.
8039         (local_pure_const): Do not update cgraph.
8040         * tree-profile.c (tree_profiling): Do fixup_cfg.
8041
8042 2011-06-10  Jan Hubicka  <jh@suse.cz>
8043
8044         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
8045         (cgraph_local_node_p): ... here; handle aliases.
8046         (has_addr_references_p): Break out from ...;
8047         (cgraph_remove_unreachable_nodes) ... here.
8048
8049 2011-06-10  Jan Hubicka  <jh@suse.cz>
8050
8051         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
8052         * common.opt (flag_inline_functions_called_once): Do not
8053         initialize to 1.
8054
8055 2011-06-10  Jan Hubicka  <jh@suse.cz>
8056
8057         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
8058         (ipcp_initialize_node_lattices): Do not deal with aliases;
8059         Do not try to propagate through thunks.
8060         (ipcp_change_tops_to_bottom): Do not deal with aliases.
8061
8062 2011-06-10  Jan Hubicka  <jh@suse.cz>
8063
8064         * ipa-prop.c (ipa_write_node_info): Stream jump functions
8065         for indirect calls.
8066         (ipa_read_node_info): Likewise.
8067
8068 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8069
8070         PR lto/49302
8071         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
8072         (build_and_insert_call): Likewise.
8073         (build_and_insert_ref): New.
8074         (gimple_expand_builtin_pow): Minor cleanup.
8075         (gimple_expand_builtin_cabs): New.
8076         (execute_cse_sincos): Add case for BUILT_IN_CABS.
8077
8078 2011-06-10  Jan Hubicka  <jh@suse.cz>
8079
8080         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
8081         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
8082         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
8083         (ipcp_propagate_stage): Skip aliases when propagating.
8084         (ipcp_need_redirect_p): Skip aliases.
8085         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
8086         collect_callers_of_node.
8087         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
8088         for aliases.
8089         (ipa_compute_jump_functions): Look through aliases.
8090
8091 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8092
8093         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
8094
8095 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
8096
8097         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
8098         Adjust comments.
8099         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
8100
8101 2011-06-10  Jan Hubicka  <jh@suse.cz>
8102
8103         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
8104         Update call of gimple_get_virt_method_for_binfo.
8105         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
8106         refuse_thunks parameter.
8107         (gimple_fold_call): Update.
8108         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
8109
8110 2011-06-10  Jan Hubicka  <jh@suse.cz>
8111
8112         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
8113         (not_all_callers_have_enough_arguments_p): ... this one; turn into
8114         worker for cgraph_for_node_and_aliases.
8115         (convert_callers_for_node): Break out from ...
8116         (convert_callers): ... here.
8117         (modify_function): Use collect_callers_of_node.
8118         (ipa_early_sra): Use cgraph_for_node_and_aliases.
8119
8120 2011-06-10  Richard Guenther  <rguenther@suse.de>
8121
8122         PR tree-optimization/49361
8123         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
8124         when not already in gimple form.
8125
8126 2011-06-10  Richard Guenther  <rguenther@suse.de>
8127
8128         PR bootstrap/49344
8129         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
8130         FOR_EACH_PHI_OR_STMT_USE.
8131
8132 2011-06-10  Jan Hubicka  <jh@suse.cz>
8133
8134         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
8135         (clone_inlined_nodes): ... here.
8136         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
8137         to real destination prior inlining.
8138         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
8139         can_early_inline_edge_p, want_early_inline_function_p,
8140         want_early_inline_function_p, want_inline_small_function_p,
8141         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
8142         edge_badness, update_all_callee_keys, lookup_recursive_calls,
8143         add_new_edges_to_heap, inline_small_functions, flatten_function,
8144         inline_always_inline_functions, early_inline_small_functions): Use
8145         cgraph_function_or_thunk_node.
8146         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
8147         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
8148         (do_estimate_edge_growth_1): Break out from ...
8149         (do_estimate_growth) ... here; walk aliases.
8150         (inline_generate_summary): Skip aliases.
8151
8152 2011-06-10  Richard Guenther  <rguenther@suse.de>
8153
8154         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
8155         forward when combining, visit inserted stmts when a stmt was changed.
8156
8157 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
8158
8159         * tree.h (error_operand_p): Add.
8160         * dbxout.c (dbxout_type_fields): Use the latter.
8161         * c-decl.c (add_stmt): Likewise.
8162         * gimplify.c (omp_add_variable, omp_notice_variable,
8163         gimplify_scan_omp_clauses): Likewise.
8164
8165 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
8166
8167         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
8168         when a value is actually passed in regs.
8169
8170 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
8171             Laurent Rougé  <laurent.rouge@menta.fr>
8172
8173         * doc/invoke.texi (SPARC options): Add -mflat.
8174         * config/sparc/sparc.opt: Likewise.
8175         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
8176         (sparc_flat_expand_prologue): Declare.
8177         (sparc_flat_expand_epilogue): Likewise.
8178         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
8179         (CPP_ENDIAN_SPEC): Replace with...
8180         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
8181         (CPP_SPEC): Adjust to above change.
8182         (EXTRA_SPECS): Likewise.
8183         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
8184         (INCOMING_REGNO): Likewise.
8185         (OUTGOING_REGNO): Likewise.
8186         (LOCAL_REGNO): Likewise.
8187         (SETUP_FRAME_ADDRESSES): Likewise.
8188         (FIXED_REGISTERS): Set 0 for %fp.
8189         (CALL_USED_REGISTERS): Likewise.
8190         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
8191         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
8192         (RETURN_ADDR_REGNUM): Define.
8193         (RETURN_ADDR_RTX): Use it.
8194         (INCOMING_RETURN_ADDR_REGNUM): Define.
8195         (INCOMING_RETURN_ADDR_RTX): Use it.
8196         (DWARF_FRAME_RETURN_COLUMN): Likewise.
8197         (EH_RETURN_REGNUM): Define.
8198         (EH_RETURN_STACKADJ_RTX): Use it.
8199         (EH_RETURN_HANDLER_RTX): Delete.
8200         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
8201         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
8202         Delete.
8203         (struct machine_function): Add frame_size, apparent_frame_size,
8204         frame_base_reg, frame_base_offset, n_global_fp_regs and
8205         save_local_in_regs_p fields.
8206         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
8207         sparc_frame_base_offset, sparc_n_global_fp_regs,
8208         sparc_save_local_in_regs_p): New macros.
8209         (sparc_option_override): Error out if -fcall-saved-REG is specified
8210         for Out registers.
8211         (eligible_for_restore_insn): Fix formatting.
8212         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
8213         (eligible_for_sibcall_delay): Likewise.
8214         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
8215         (sparc_legitimate_address_p): Adjust to above change.
8216         (save_global_or_fp_reg_p): New predicate.
8217         (return_addr_reg_needed_p): Likewise.
8218         (save_local_or_in_reg_p): Likewise.
8219         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
8220         (SORR_SAVE, SORR_RESTORE): Delete.
8221         (sorr_pred_t): New typedef.
8222         (sorr_act_t): New enum.
8223         (save_or_restore_regs): Rename to...
8224         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
8225         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
8226         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
8227         mechanism.  Add CFI information for double-word saves in 32-bit mode.
8228         (emit_adjust_base_to_offset): New function extracted from...
8229         (emit_save_or_restore_regs): ...this.  Rename the rest to...
8230         (emit_save_or_restore_regs_global_fp_regs): ...this.
8231         (emit_save_or_restore_regs_local_in_regs): New function.
8232         (gen_create_flat_frame_[123]): New functions.
8233         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
8234         (sparc_flat_expand_prologue): New function.
8235         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
8236         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
8237         (sparc_flat_expand_epilogue): New function.
8238         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
8239         (output_return): Likewise.
8240         (output_sibcall): Likewise.
8241         (sparc_output_mi_thunk): Likewise.
8242         (sparc_frame_pointer_required): Likewise.
8243         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
8244         function optimization.
8245         * config/sparc/sparc.md (flat): New attribute.
8246         (prologue): Add TARGET_FLAT handling.
8247         (save_register_window): Disable if TARGET_FLAT.
8248         (create_flat_frame_[123]): New patterns.
8249         (epilogue): Add TARGET_FLAT handling.
8250         (sibcall_epilogue): Likewise.
8251         (eh_return): New expander.
8252         (eh_return_internal): New insn and splitter.
8253         (return_internal): Add TARGET_FLAT handling.
8254         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
8255         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
8256         (nonlocal_goto): Add TARGET_FLAT handling.
8257         * config/sparc/t-elf: Add -mflat multilib.
8258         * config/sparc/t-leon: Likewise.
8259
8260 2011-06-10  Jan Hubicka  <jh@suse.cz>
8261
8262         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
8263         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
8264         (self_recursive_p): Use cgraph_function_node.
8265         (propagate_pure_const): Likewise.
8266         (propagate_nothrow): Likewise.
8267         * ipa-reference.c (ipa_reference_get_not_read_global): Use
8268         cgraph_function_node.
8269         (propagate_bits): Likewise.
8270         (propagate): Likewise.
8271
8272 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8273             Richard Earnshaw  <rearnsha@arm.com>
8274
8275         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
8276         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
8277         (*thumb2_movdi_vfp): Delete.
8278         (*arm_movdi_vfp_cortexa8): Delete.
8279         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
8280         (*movdi_vfp_cortexa8): Likewise.
8281
8282 2011-06-10  Richard Guenther  <rguenther@suse.de>
8283
8284         * stor-layout.c (initialize_sizetypes): Give names to all
8285         sizetype kinds.
8286
8287 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
8288
8289         PR tree-optimization/49318
8290         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
8291         irrelevant pattern statements.
8292
8293 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
8294
8295         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
8296
8297         PR bootstrap/49354
8298         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
8299         to last assignment.
8300
8301 2011-06-09  Jan Hubicka  <jh@suse.cz>
8302
8303         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
8304         do not recompute reachable flag.
8305         (cgraph_finalize_function, cgraph_analyze_functions): Set
8306         redefined_extern_inline here.
8307
8308 2011-06-09  Jan Hubicka  <jh@suse.cz>
8309
8310         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
8311         (cgraph_only_called_directly_p): ... this one; bring offline.
8312         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
8313         varpool_used_from_object_file_p): Drop names from the declaratoin.
8314         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
8315         collect_callers_of_node): New.
8316         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
8317         (cgraph_edge_recursive_p): Use cgraph_function_node.
8318         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
8319         (cgraph_node_cannot_be_local_p_1): Break out from ...
8320         (cgraph_node_can_be_local_p): ... here; walk aliases.
8321         (cgraph_for_node_thunks_and_aliases): New function.
8322         (cgraph_for_node_and_aliases): New function.
8323         (cgraph_make_node_local_1): Break out from ...
8324         (cgraph_make_node_local) ... here; use
8325         cgraph_for_node_thunks_and_aliases.
8326         (cgraph_set_nothrow_flag_1): Break out from ...
8327         (cgraph_set_nothrow_flag) ... here;
8328         use cgraph_for_node_thunks_and_aliases.
8329         (cgraph_set_const_flag_1): Break out from ...
8330         (cgraph_set_const_flag) ... here;
8331         use cgraph_for_node_thunks_and_aliases.
8332         (cgraph_set_pure_flag_1): Break out from ...
8333         (cgraph_set_pure_flag) ... here;
8334         use cgraph_for_node_thunks_and_aliases.
8335         (cgraph_propagate_frequency_1): Break out from ...
8336         (cgraph_propagate_frequency) ... here; use
8337         cgraph_for_node_thunks_and_aliases.
8338         (cgraph_used_from_object_file_p): Do not care about aliases.
8339         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
8340         New functions.
8341         (collect_callers_of_node_1, collect_callers_of_node): New functions.
8342
8343 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
8344
8345         PR rtl-optimization/49154
8346         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
8347         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
8348         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
8349         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
8350         * config/cris/cris.h (cris_register_move_cost): Remove
8351         !TARGET_V32 code.  Tweak comments.
8352
8353 2011-06-09  Jan Hubicka  <jh@suse.cz>
8354
8355         * cgraphbuild.c (record_eh_tables): Mark personality function as having
8356         address taken.
8357
8358 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
8359
8360         PR rtl-optimization/49154
8361         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
8362         is a matching slot in the hashtable, assign it to classes_ptr.
8363
8364         PR rtl-optimization/49154
8365         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
8366         register classes.
8367         * doc/tm.texi: Regenerate.
8368
8369 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
8370
8371         PR target/49307
8372         * config/sh/sh.md (UNSPEC_CHKADD): New.
8373         (chk_guard_add): New define_insn_and_split.
8374         (symGOT_load): Use chk_guard_add instead of blockage.
8375
8376 2011-06-09  Kai Tietz  <ktietz@redhat.com>
8377
8378         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
8379
8380 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
8381
8382         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
8383
8384 2011-06-09  Wei Guozhi  <carrot@google.com>
8385
8386         PR target/46975
8387         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
8388         (peephole2 for conditional move): Generate 16 bit instructions.
8389
8390 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
8391
8392         * config/i386/i386.md (*movdi_internal_rex64): Merge
8393         alternatives 6 and 8.
8394
8395 2011-06-09  David Li  <davidxl@google.com>
8396
8397         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
8398         * passes.c (passr_eq): New function.
8399         (create_pass_tab): New function.
8400         (pass_traverse): New function.
8401         (dump_one_pass): New function.
8402         (dump_pass_list): New function.
8403         (dump_passes): New function.
8404
8405 2011-06-09  David Li  <davidxl@google.com>
8406
8407         * tree-complex.c (tree_lower_complex): Gate cleanup.
8408         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
8409         (execute_optimize_stdarg): Ditto.
8410         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
8411         (execute_cleanup_eh_1): Ditto.
8412         (execute_cleanup_eh): Ditto.
8413         * gcse.c (gate_rtl_pre): Ditto.
8414         (execute_rtl_pre): Ditto.
8415         * except.c (finish_eh_generation): Ditto.
8416         (convert_to_eh_region_ranges): Ditto.
8417         * cprop.c (one_cprop_pass): Ditto.
8418
8419 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
8420
8421         PR target/48673
8422         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
8423         in all basic blocks.
8424
8425 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8426
8427         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
8428         (HAVE_ENABLE_EXECUTE_STACK): Define.
8429         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
8430         (HAVE_ENABLE_EXECUTE_STACK): Define.
8431         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
8432         (HAVE_ENABLE_EXECUTE_STACK): Define.
8433         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
8434         (ENABLE_EXECUTE_STACK): Remove.
8435         (HAVE_ENABLE_EXECUTE_STACK): Define.
8436         [IN_LIBGCC2]: Don't include <windows.h>.
8437         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
8438         (HAVE_ENABLE_EXECUTE_STACK): Define.
8439         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
8440         (HAVE_ENABLE_EXECUTE_STACK): Define.
8441         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
8442         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
8443         (HAVE_ENABLE_EXECUTE_STACK): Define.
8444         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
8445         (HAVE_ENABLE_EXECUTE_STACK): Define.
8446         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
8447         (HAVE_ENABLE_EXECUTE_STACK): Define.
8448         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
8449         (HAVE_ENABLE_EXECUTE_STACK): Define.
8450         * config/alpha/alpha.c (alpha_trampoline_init): Test
8451         HAVE_ENABLE_EXECUTE_STACK.
8452         * config/i386/i386.c (ix86_trampoline_init): Likewise.
8453         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
8454         (sparc64_initialize_trampoline): Likewise.
8455         * libgcc2.c [L_enable_execute_stack]: Remove.
8456         * system.h (ENABLE_EXECUTE_STACK): Poison.
8457         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
8458         * doc/tm.texi: Regenerate.
8459         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
8460
8461 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
8462
8463         PR middle-end/49308
8464         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
8465         variable.  After resetting and rescanning insn continue with previous
8466         statement.
8467
8468 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8469
8470         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
8471         (gcc_cv_ld_hidden): Likewise.
8472         * configure: Regenerate.
8473         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
8474         (ix86_stack_protect_fail): Mark unused.
8475         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
8476         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
8477         [TARGET_MACHO]: Don't define.
8478         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
8479         (TARGET_STACK_PROTECT_FAIL): Likewise.
8480         (rs6000_stack_protect_fail): Mark unused.
8481         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
8482         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
8483
8484 2011-06-08  Andi Kleen  <ak@linux.intel.com>
8485
8486         * varasm.c (get_section): Print location of other conflict
8487         for section conflicts.
8488
8489 2011-06-08  Andi Kleen  <ak@linux.intel.com>
8490
8491         * config/i386/driver-i386.c (host_detect_local_cpu):
8492         Add model 0x2d Intel CPU.
8493
8494 2011-06-08  Andi Kleen  <ak@linux.intel.com>
8495
8496         * reginfo.c (global_regs_decl): Add.
8497         (globalize_reg): Add decl parameter. Compute location.  Pass location
8498         to warnings and add inform. Store decl in global_regs_decl.
8499         * rtl.h (globalize_reg): Update prototype.
8500         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
8501
8502 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
8503
8504         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
8505
8506 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
8507
8508         PR target/49305
8509         * config/sh/predicates.md (general_movsrc_operand): Check
8510         mode for memory with indexed address for QI and HImode.
8511         (general_movdst_operand): Likewise.
8512
8513 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
8514
8515         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
8516
8517 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
8518
8519         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
8520         (num_ssa_operands): Likewise.
8521         (op_iter_init_phiuse): Forward-declare.
8522         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
8523
8524 2011-06-08  Nick Clifton  <nickc@redhat.com>
8525
8526         * doc/invoke.texi (ARM Options): Update description of
8527         -mthumb-interwork.
8528
8529 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
8530
8531         * config/i386/driver-i386.c (host_detect_local_cpu): Support
8532         unknown Intel family 0x6 CPUs.
8533
8534 2011-06-08  Martin Jambor  <mjambor@suse.cz>
8535
8536         * tree-sra.c (mark_rw_status): Removed.
8537         (analyze_access_subtree): New parameter parent instead of
8538         mark_read and mark_write, propagate from that.
8539
8540 2011-06-08  Julian Brown  <julian@codesourcery.com>
8541
8542         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
8543         for double-precision helper functions in hard-float mode if only
8544         single-precision arithmetic is supported in hardware.
8545
8546 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
8547
8548         PR rtl-optimization/49303
8549         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
8550         code_motion_path_driver returned 0 or 1.
8551         (sel_region_finish): Clear h_d_i_d.
8552
8553 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
8554
8555         * config/sh/sh.c (prepare_move_operands): Set pic register
8556         appropriately for global and local dynamic tls models even
8557         if flag_pic is unset.
8558
8559 2011-06-07  Jason Merrill  <jason@redhat.com>
8560
8561         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
8562
8563 2011-06-07  Xinliang David Li  <davidxl@google.com>
8564         * passes.c (enable_disable_pass): Handle assembler name.
8565         (is_pass_explicitly_enabled_or_disabled): Ditto.
8566
8567 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8568
8569         PR tree-optimization/48497
8570         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
8571
8572 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8573
8574         PR tree-optimization/46728
8575         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
8576         to use gimple_val_nonnegative_real_p.
8577         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
8578         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
8579
8580 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
8581
8582         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
8583
8584 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
8585
8586         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
8587         constant vectors.
8588
8589 2011-06-07  Richard Guenther  <rguenther@suse.de>
8590
8591         * stor-layout.c (initialize_sizetypes): Initialize all
8592         sizetypes based on target definitions.
8593         (set_sizetype): Remove.
8594         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
8595         * tree.h (set_sizetype): Remove.
8596
8597 2011-06-07  Nick Clifton  <nickc@redhat.com>
8598
8599         * config.gcc: Unify V850 architecture options and add support for
8600         newer V850 architectures.
8601         * config/v850/t-v850e: Delete.
8602
8603 2011-06-07  Richard Guenther  <rguenther@suse.de>
8604
8605         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
8606         Call set_sizetype from here.
8607
8608 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
8609
8610         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
8611         (*maddhisi4tb, *maddhisi4tt): New define_insns.
8612
8613 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
8614             Andrew Stubbs  <ams@codesourcery.com>
8615
8616         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
8617         multiplies.
8618         * doc/md.texi (Canonicalization of Instructions): Document widening
8619         multiply canonicalization.
8620
8621 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
8622
8623         PR gcov-profile/49299
8624         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
8625
8626 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
8627
8628         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
8629         a pointer.
8630         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
8631         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
8632         vect_recog_pow_pattern): Likewise.
8633         (vect_pattern_recog_1): Remove declaration.
8634         (widened_name_p): Remove declaration.  Add new argument to specify
8635         whether to check that both types are either signed or unsigned.
8636         (vect_recog_widen_mult_pattern): Update documentation.  Handle
8637         unsigned patterns and multiplication by constants.
8638         (vect_pattern_recog_1): Update vect_recog_func references.  Use
8639         statement information from the statement returned from pattern
8640         detection functions.
8641         (vect_pattern_recog): Update vect_recog_func reference.
8642         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
8643         multiplication by a constant use the type of the other operand.
8644
8645 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
8646
8647         PR rtl-optimization/49145
8648         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
8649
8650 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
8651
8652         PR debug/49262
8653         * dwarf2out.c (native_encode_initializer): Decrement count in each
8654         iteration.
8655
8656         PR debug/49294
8657         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
8658         non-MODE_INT modes.
8659
8660         PR c++/49264
8661         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
8662         if stmt folded into nothing.
8663         * tree-inline.c (fold_marked_statements): If a builtin at the end of
8664         a bb folded into nothing, just update cgraph edges and move to next bb.
8665         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
8666         to be NULL.  Don't compute count and frequency if new_call is NULL.
8667
8668 2011-06-04  Diego Novillo  <dnovillo@google.com>
8669
8670         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
8671         (cgraph.o): Likewise.
8672         (cgraphunit.o): Likewise.
8673         * cgraphunit.c: Include lto-streamer.h
8674         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
8675         if LTO is enabled.
8676         * lto-streamer-in.c (unpack_value_fields): Call
8677         streamer_hooks.unpack_value_fields if set.
8678         (lto_materialize_tree): For unhandled nodes, first try to
8679         call lto_streamer_hooks.alloc_tree, if it exists.
8680         (lto_input_ts_decl_common_tree_pointers): Move reading of
8681         DECL_INITIAL to lto_streamer_read_tree.
8682         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
8683         (lto_streamer_read_tree): New.
8684         (lto_reader_init): Rename from lto_init_reader.
8685         Move initialization code to lto/lto.c.
8686         * lto-streamer-out.c (pack_value_fields): Call
8687         streamer_hooks.pack_value_fields if set.
8688         (lto_output_tree_ref): For tree nodes that are not normally indexable,
8689         call streamer_hooks.indexable_with_decls_p before giving up.
8690         (lto_output_ts_decl_common_tree_pointers): Move handling
8691         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
8692         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
8693         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
8694         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
8695         (lto_streamer_write_tree): New.
8696         (lto_output): Call lto_streamer_init directly.
8697         (lto_writer_init): Remove.
8698         * lto-streamer.c (streamer_hooks): New.
8699         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
8700         instead of lto_preload_common_nodes.
8701         (lto_is_streamable): Move from lto-streamer.h
8702         (lto_streamer_hooks_init): New.
8703         (streamer_hooks): New.
8704         (streamer_hooks_init): New.
8705         * lto-streamer.h (struct output_block): Forward declare.
8706         (struct lto_input_block): Likewise.
8707         (struct data_in): Likewise.
8708         (struct bitpack_d): Likewise.
8709         (struct streamer_hooks): Declare.
8710         (streamer_hooks): Declare.
8711         (lto_streamer_hooks_init): Declare.
8712         (lto_streamer_write_tree): Declare.
8713         (lto_streamer_read_tree): Declare.
8714         (streamer_hooks_init): Declare.
8715         (lto_is_streamable): Move to lto-streamer.c
8716
8717 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8718
8719         * longlong.h (smul_ppmm): The resulting register pair contains the
8720         higher order word first.
8721
8722 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8723
8724         PR tree-optimization/46728
8725         * builtins.c (powi_table): Remove.
8726         (powi_lookup_cost): Remove.
8727         (powi_cost): Remove.
8728         (expand_powi_1): Remove.
8729         (expand_powi): Remove.
8730         (expand_builtin_pow_root): Remove.
8731         (expand_builtin_pow): Remove.
8732         (expand_builtin_powi): Eliminate handling of constant exponent.
8733         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
8734
8735 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
8736
8737         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
8738
8739 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
8740
8741         * dce.c (reset_unmarked_insns_debug_uses): New.
8742         (delete_unmarked_insns): Skip debug insns.
8743         (prescan_insns_for_dce): Likewise.
8744         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
8745         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
8746         active reg can be found.
8747         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
8748         (convert_regs_1): Use it.
8749
8750 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
8751
8752         * tree-pretty-print.c (dump_function_header): Add flags.
8753         Don't dump decl_uid with nouid.
8754         * tree-pretty-print.h (dump_function_header): Adjust.
8755         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
8756         * passes.c (pass_init_dump_file): Pass dump_flags on.
8757         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
8758
8759 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
8760
8761         PR bootstrap/49270
8762         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
8763
8764 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
8765
8766         PR tree-optimization/49243
8767         * calls.c (setjmp_call_p): Also check if fndecl has the
8768         returns_twice attribute.
8769
8770 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8771
8772         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
8773         -ffast-math etc.
8774
8775 2011-06-06  Richard Henderson  <rth@redhat.com>
8776             Georg-Johann Lay  <avr@gjlay.de>
8777
8778         PR target/42210
8779         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
8780         New predicates.
8781         * config/avr/avr.md ("insv"): New insn expander.
8782         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
8783         "*insv.not.io", "*insv.reg"): New insns.
8784
8785 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
8786
8787         PR target/49285
8788         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
8789         to nonimmediate_operand from memory_operand for the operand that is to
8790         be forced to memory by the expander.  Lose the constraints.
8791
8792 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
8793
8794         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
8795         EH return when delayed branches are disabled.
8796
8797 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
8798
8799         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
8800         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
8801         calculation.
8802         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
8803         Simplify MODE_V1DF and MODE_V2SF handling.
8804         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
8805         Simplify MODE_SF handling.
8806
8807 2011-06-04  Jan Hubicka  <jh@suse.cz>
8808
8809         PR tree-optimization/48893
8810         PR tree-optimization/49091
8811         PR tree-optimization/49179
8812         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
8813         Bounds check.
8814
8815 2011-06-04  Jan Hubicka  <jh@suse.cz>
8816
8817         PR lto/48954
8818         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
8819         bitmaps.
8820
8821 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
8822
8823         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
8824
8825 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
8826
8827         PR target/49281
8828         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
8829         to be strictly smaller than 1 << shiftcount.
8830
8831 2011-06-04  Jan Hubicka  <jh@suse.cz>
8832
8833         PR tree-optimize/48929
8834         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
8835         of empty predicate.
8836
8837 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
8838
8839         PR debug/48333
8840         * calls.c (emit_call_1): Prefer the __builtin declaration of
8841         builtin functions.
8842
8843 2011-06-03   Diego Novillo  <dnovillo@google.com>
8844
8845         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
8846         (lto_input_tree_pointers): Likewise.
8847         * lto-streamer-out.c (pack_value_fields): Likewise.
8848         (lto_output_tree_pointers): Likewise.
8849         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
8850         and OPTIMIZATION_NODE.
8851
8852 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8853
8854         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
8855         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
8856         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
8857         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
8858         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
8859         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
8860         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
8861         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
8862         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
8863         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
8864         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
8865         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
8866         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
8867         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
8868         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
8869         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
8870         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
8871         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
8872         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
8873         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
8874         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
8875         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
8876         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
8877         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
8878         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
8879         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
8880         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
8881         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
8882         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
8883         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
8884         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
8885         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
8886         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
8887         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
8888         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
8889         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
8890         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
8891         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
8892         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
8893         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
8894         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
8895         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
8896         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
8897         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
8898         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
8899         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
8900         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
8901         * system.h (MD_UNWIND_SUPPORT): Poison.
8902         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
8903         * doc/tm.texi: Regenerate.
8904         * unwind-dw2.c: Include md-unwind-support.h instead of
8905         MD_UNWIND_SUPPORT.
8906         * config/ia64/unwind-ia64.c: Likewise.
8907         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
8908
8909 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
8910
8911         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
8912
8913 2011-06-03  Richard Henderson  <rth@redhat.com>
8914             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8915
8916         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
8917         (sigill_hdlr): Correct insn, insn size.
8918         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
8919
8920 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8921
8922         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
8923         t-slibgcc-dummy.
8924         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
8925         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
8926         * config/mips/t-iris: Remove.
8927         * config/mips/t-irix6: New file.
8928         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
8929
8930 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8931
8932         * Makefile.in (LIB2ADDEHDEP): Remove.
8933         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
8934         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
8935         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
8936         * config/t-darwin (LIB2ADDEHDEP): Remove.
8937         * config/t-freebsd (LIB2ADDEHDEP): Remove.
8938         * config/t-linux (LIB2ADDEHDEP): Remove.
8939
8940 2011-06-03  Diego Novillo  <dnovillo@google.com>
8941
8942         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
8943         (lto_register_var_decl_in_symtab): Likewise.
8944         (lto_register_function_decl_in_symtab): Likewise.
8945         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
8946         logic to uniquify_nodes.
8947
8948 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8949
8950         * config/alpha/t-osf5: Remove.
8951         * config/alpha/t-osf-pthread: Remove.
8952         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
8953         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
8954
8955 2011-06-03  Julian Brown  <julian@codesourcery.com>
8956
8957         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
8958         (strongarm1110): Use strongarm tuning.
8959         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
8960         * config/arm/arm.c (arm_strongarm_tune): New.
8961         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
8962         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
8963         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
8964         setting, using previous defaults or 1 for Cortex-A5.
8965         (arm_option_override): Set max_insns_skipped from current tuning.
8966
8967 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
8968
8969         * doc/install.texi (Options specification): Document --with-specs.
8970
8971 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8972
8973         * config/arm/neon.md (orndi3_neon): Actually split it.
8974
8975 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
8976
8977         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
8978         * var-tracking.c (reverse_op): Limite recurse depth to 5.
8979
8980 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
8981
8982         PR debug/47590
8983         * target.def (delay_sched2, delay_vartrack): New.
8984         * doc/tm.texi.in: Update.
8985         * doc/tm.texi: Rebuild.
8986         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
8987         * var-tracking.c (gate_handle_var_tracking): Likewise.
8988         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
8989         (bfin_flag_var_tracking): Drop.
8990         (output_file_start): Don't save and override flag_var_tracking.
8991         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
8992         (bfin_reorg): Test original variables.
8993         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
8994         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
8995         (ia64_flag_var_tracking): Drop.
8996         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
8997         (ia64_file_start): Don't save and override flag_var_tracking.
8998         (ia64_override_options_after_change): Ditto
8999         flag_schedule_insns_after_reload.
9000         (ia64_reorg): Test original variables.
9001         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
9002         (picochip_flag_var_tracking): Drop.
9003         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
9004         (picochip_option_override): Don't save and override
9005         flag_schedule_insns_after_reload.
9006         (picochip_asm_file_start): Ditto flag_var_tracking.
9007         (picochip_reorg): Test original variables.
9008         * config/spu/spu.c (spu_flag_var_tracking): Drop.
9009         (TARGET_DELAY_VARTRACK): Define.
9010         (spu_var_tracking): New.
9011         (spu_machine_dependent_reorg): Call it.
9012         (asm_file_start): Don't save and override flag_var_tracking.
9013
9014 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
9015
9016         PR target/49163
9017         * config/sh/predicates.md (general_movsrc_operand): Return 0
9018         for memory and memory subreg of which address is an invalid
9019         indexed address for QI and HImode.
9020         (general_movdst_operand): Likewise.
9021
9022 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
9023
9024         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
9025         edges only, when there is a non-local label in the function.
9026         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
9027
9028 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
9029
9030         * config/i386/constraints.md (Y3): New register constraint.
9031         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
9032         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
9033         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
9034         *sse2_interleave_lowv2df.
9035
9036 2011-06-02  Julian Brown  <julian@codesourcery.com>
9037
9038         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
9039         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
9040         (arm_cortex_a5_tune): New.
9041
9042 2011-06-02  Julian Brown  <julian@codesourcery.com>
9043
9044         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
9045         * config/arm/arm.c (arm_default_branch_cost): New.
9046         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
9047         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
9048         (arm_fa726_tune): Set branch_cost field using
9049         arm_default_branch_cost.
9050         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
9051         current_tune structure.
9052         * dojump.c (tm_p.h): Include file.
9053
9054 2011-06-02  Julian Brown  <julian@codesourcery.com>
9055
9056         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
9057         tuning.
9058         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
9059         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
9060         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
9061         field.
9062         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
9063         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
9064         (arm_fa726te_tune): Add prefer_constant_pool setting.
9065         (arm_v6t2_tune, arm_cortex_tune): New.
9066         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
9067         prefer_constant_pool setting.
9068
9069 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
9070
9071         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
9072         switch statement.
9073         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
9074         (*movdf_internal) <case 6,7,8>: Ditto.
9075
9076         * config/i386/constraints.md (Y4): New register constraint.
9077         * config/i386/sse.md (vec_set<mode>_0): Merge with
9078         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
9079         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
9080         *vec_extractv2di_1_sse.
9081         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
9082         and *vec_concatv2di_rex64_sse.
9083
9084 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
9085
9086         PR target/48807
9087         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
9088         of cgraph_local_info for null before attempting to use it.
9089
9090 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
9091
9092         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
9093         (current_function_dynamic_alloc_count): Delete.
9094         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
9095         (expand_builtin_nonlocal_goto): Remove obsolete comment.
9096         (expand_builtin_update_setjmp_buf): Remove dead code.
9097         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
9098         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
9099         support.
9100         * function.c (instantiate_virtual_regs): Likewise.
9101         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
9102         for a block with a single abnormal incoming edge.
9103         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
9104         (SETJMP_VIA_SAVE_AREA): Delete.
9105         * config/sparc/sparc-protos.h (load_got_register): Declare.
9106         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
9107         (load_got_register): Make global.
9108         (sparc_frame_pointer_required): Add 'static'.
9109         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
9110         (sparc_builtin_setjmp_frame_value): New function.
9111         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
9112         (save_stack_nonlocal): New expander.
9113         (restore_stack_nonlocal): Likewise.
9114         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
9115         (nonlocal_goto_internal): New insn.
9116         (goto_handler_and_restore): Delete.
9117         (builtin_setjmp_setup): Likewise.
9118         (do_builtin_setjmp_setup): Likewise.
9119         (setjmp): Likewise.
9120         (builtin_setjmp_receiver): New expander.
9121
9122 2011-06-01  David Li  <davidxl@google.com>
9123
9124         PR middle-end/49261
9125         * tree-pretty-print.c (dump_function_header): Format cleanup.
9126
9127 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
9128
9129         PR target/49238
9130         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
9131         needed when original operands are used for msw_skip comparison.
9132
9133 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
9134
9135         PR debug/49250
9136         * var-tracking.c (add_uses, add_stores): Don't call
9137         cselib_subst_to_values on ENTRY_VALUE.
9138
9139 2011-06-01  Diego Novillo  <dnovillo@google.com>
9140
9141         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
9142         output_record_start with LTO_null instead of output_zero.
9143         (lto_output_ts_binfo_tree_pointers): Likewise.
9144         (lto_output_tree): Likewise.
9145         (output_eh_try_list): Likewise.
9146         (output_eh_region): Likewise.
9147         (output_eh_lp): Likewise.
9148         (output_eh_regions): Likewise.
9149         (output_bb): Likewise.
9150         (output_function): Likewise.
9151         (output_unreferenced_globals): Likewise.
9152         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
9153         instead of NUM_TREE_CODES.
9154         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
9155         (lto_output_int_in_range): Change << to >> when shifting VAL.
9156
9157 2011-06-01  Diego Novillo  <dnovillo@google.com>
9158
9159         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
9160         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
9161
9162 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
9163
9164         PR target/45074
9165         * optabs.h (valid_multiword_target_p): Declare.
9166         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
9167         doing multi-word operations.
9168         * optabs.c (expand_binop): Likewise.
9169         (expand_doubleword_bswap): Likewise.
9170         (expand_absneg_bit): Likewise.
9171         (expand_unop): Likewise.
9172         (expand_copysign_bit): Likewise.
9173         (multiword_target_p): New function.
9174
9175 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
9176
9177         PR rtl-optimization/48830
9178         PR rtl-optimization/48808
9179         PR rtl-optimization/48792
9180         * reload.c (push_reload): Check contains_reg_of_mode.
9181         * reload1.c (strip_paradoxical_subreg): New function.
9182         (gen_reload_chain_without_interm_reg_p): Use it to handle
9183         paradoxical subregs.
9184         (emit_output_reload_insns, gen_reload): Likewise.
9185
9186 2011-06-01  David Li  <davidxl@google.com>
9187
9188         * predict.c : Change pass name
9189         * ipa.c: Ditto.
9190         * dce.c: Ditto.
9191         * tree-profile.c: Ditto.
9192         * except.c: Ditto.
9193
9194 2011-06-01  David Li  <davidxl@google.com>
9195
9196         * tree-pretty-print.c (dump_function_header): New function.
9197         * final.c (rest_of_clean_state): Use header dumper.
9198         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
9199         * passes.c (pass_init_dump_file): Use header dumper.
9200
9201 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
9202
9203         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
9204         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
9205         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
9206         New functions.
9207         (mem_loc_descriptor): Use them.
9208
9209         * var-tracking.c (create_entry_value): New function.
9210         (vt_add_function_parameter): Use it.
9211
9212 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9213
9214         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
9215         Include <signal.h>, <ucontext.h>.
9216         (sigill_caught): Define.
9217         (sigill_hdlr): New function.
9218         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
9219         insns can be executed.
9220         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
9221         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
9222
9223 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9224
9225         * config/t-slibgcc-darwin: Move to ...
9226         * config/t-slibgcc-dummy: ... this.  Clarify comments.
9227         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
9228         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
9229         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
9230         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
9231         Remove i386/t-crtstuff from tmake_file.
9232         (i[34567]86-*-solaris2*): Remove t-svr4,
9233         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
9234         t-slibgcc-dummy.
9235         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
9236         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
9237         sparc/t-crtfm from tmake_file.
9238         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
9239         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
9240         Remove extra_parts.
9241         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
9242         * config/i386/t-nwld (SHLIB_LINK): Remove.
9243         * config/i386/t-rtems-i386: Rename to ...
9244         * config/i386/t-rtems: ... this.
9245         ($(T)crti.o, $(T)crtn.o): Remove.
9246         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
9247         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
9248         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
9249         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
9250         EXTRA_MULTILIB_PARTS): Remove.
9251         * config/sparc/t-sol2-64: Likewise.
9252         * config/sparc/t-sol2: Remove.
9253         * config/sparc/t-crtin: Remove.
9254         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
9255         * config/i386/gmon-sol2.c: Remove.
9256         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
9257         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
9258         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
9259         * config/i386/sol2-gc1.asm: Remove.
9260         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
9261         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
9262         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
9263         * config/t-slibgcc-sld: Remove.
9264
9265 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
9266
9267         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
9268         base_type_for_mode with op_mode instead of mode.
9269
9270 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
9271
9272         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
9273         Cortex-A15.
9274         * config/arm/arm-tune.md: Regenerate.
9275         * config/arm/arm-tables.opt: Regenerate.
9276         * config/arm/arm.c (FL_DIV): Rename...
9277         (FL_THUMB_DIV): ... to this.
9278         (FL_ARM_DIV): Define.
9279         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
9280         (arm_arch_hwdiv): Remove.
9281         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
9282         (arm_issue_rate): Add cortexr5.
9283         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
9284         __ARM_ARCH_EXT_IDIV__.
9285         (TARGET_IDIV): Define.
9286         (arm_arch_hwdiv): Remove.
9287         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
9288         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
9289         (divsi3, udivsi3): New patterns.
9290         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
9291         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
9292
9293 2011-06-01  Martin Jambor  <mjambor@suse.cz>
9294
9295         * ipa-utils.c (ipa_dfs_info): New field scc_no.
9296         * ipa-utils.c (searchc): Set scc_no.
9297
9298 2011-06-01  Martin Jambor  <mjambor@suse.cz>
9299
9300         * ipa-utils.c (searchc_env): New field allow_overwritable.
9301         (searchc): do not ignore edges to overwritable nodes if indicated
9302         by env->allow_overwritable.
9303         (ipa_reduced_postorder): Set env.allow_overwritable.
9304
9305 2011-06-01  Richard Guenther  <rguenther@suse.de>
9306
9307         * tree.c (free_lang_data): Do not reset boolean_type_node nor
9308         char_type_node.
9309         * lto-streamer.c (lto_record_common_node): Take node pointer,
9310         do not register types.
9311         (lto_preload_common_nodes): Explicitly skip preloading nodes
9312         that differ between frontends.
9313
9314 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
9315
9316         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
9317         NON_FLOAT_REGS.
9318
9319 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
9320
9321         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
9322         parameter value for dump. Dump cost on outermost call only.
9323         (rs6000_memory_move_cost): Dump cost on outermost call only.
9324
9325 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
9326
9327         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
9328         DW_OP_GNU_convert ops.
9329
9330         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
9331         cselib_preserve_constants.
9332         (cselib_lookup_1): If cselib_preserve_constants,
9333         a new VALUE is being created for REG and there is a VALUE for the
9334         same register in wider mode, add another loc with lowpart SUBREG of
9335         the wider VALUE.
9336         (cselib_subst_to_values): Handle ENTRY_VALUE.
9337         * var-tracking.c  (replace_expr_with_values): Return NULL for
9338         ENTRY_VALUE too.
9339         * dwarf2out.c (convert_descriptor_to_signed): New function.
9340         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
9341         instead of two shifts.
9342         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
9343         the right mode if needed.
9344         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
9345         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
9346         convert_descriptor_to_signed.
9347         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
9348         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
9349
9350         PR target/48688
9351         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
9352
9353 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
9354
9355         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
9356         of X87MODEI12 and SWI48x instead of SSEMODEI24.
9357         (SWI248x): New mode iterator, rename from X87MODEI.
9358         (X87MODEI): Remove mode iterator.
9359         (X87MODEI12): Ditto.
9360         (SSEMODEI24): Ditto.
9361
9362 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
9363
9364         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
9365         * doc/invoke.texi: Document max-vartrack-expr-depth.
9366         * var-tracking.c (EXPR_DEPTH): New.
9367         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
9368
9369 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
9370
9371         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
9372         * config/i386/sse.md: Add n to negated FMA pattern names.
9373
9374 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
9375
9376         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
9377
9378 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
9379
9380         * gengtype-state.c (read_state_params_structs): Initialize previous.
9381
9382 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
9383
9384         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
9385         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
9386
9387 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
9388
9389         * config/i386/i386.md (*movtf_internal): Avoid allocating general
9390         registers.  Penalize F*r->o alternative to prevent partial memory
9391         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
9392         CONST_DOUBLE immediates when optimizing function for size.  Do not move
9393         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
9394         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
9395         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
9396         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
9397         alternatives.
9398         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
9399
9400         (fp_register_operand splitters): Use fp_register_operand
9401         constraint.  Do not use FP_REG_P in insn condition.
9402         (any_fp_register_operand splitters): Use any_fp_register_operand
9403         constraint.  Do not use ANY_FP_REG_P in insn condition.
9404
9405 2011-05-31  Jan Hubicka  <jh@suse.cz>
9406
9407         * cgraph.h (cgraph_inline_failed_t): Give enum a name
9408         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
9409         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
9410         (lto_output_edge): Use output_enum and var_len_unsigned.
9411         (lto_output_varpool_node): Likewise.
9412         (input_overwrite_node): Do not take resolution parameter;
9413         extract it from a bitpack.
9414         (input_node): Do not read resolution; use input_enum and
9415         var_len_unsigned.
9416         (input_varpool_node): Likewise.
9417         (input_edge): Likewise.
9418         (input_cgraph_1): Likewise.
9419
9420 2011-05-31  Richard Guenther  <rguenther@suse.de>
9421
9422         * gimple.c (gimple_register_canonical_type): Do not register
9423         any types via gimple_register_type.
9424
9425 2011-05-31  Jan Hubicka  <jh@suse.cz>
9426
9427         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
9428         of thunks.
9429
9430 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
9431
9432         PR rtl-optimization/49235
9433         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
9434         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
9435
9436 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
9437
9438         PR tree-optimization/49093
9439         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
9440         data references.
9441
9442 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
9443
9444         PR debug/49047
9445         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
9446         for concrete functions containing the code of cloned functions.
9447
9448 2011-05-31  Richard Guenther  <rguenther@suse.de>
9449
9450         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
9451         to ...
9452         (forward_propagate_into_comparison_1): ... this.
9453         (forward_propagate_comparison): Rename to ...
9454         (forward_propagate_into_comparison): ... this.  Split out
9455         real forward propagation code to ...
9456         (forward_propagate_comparison): ... this.
9457         (forward_propagate_into_gimple_cond): Remove looping.
9458         (forward_propagate_into_cond): Likewise.
9459         (simplify_not_neg_expr): Return whether we have done something.
9460         (simplify_gimple_switch): Likewise.
9461         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
9462         (ssa_forward_propagate_and_combine): ... this.  Re-structure
9463         to do a forward forward-propagation walk on BBs and a backward
9464         stmt combining walk on BBs.  Consistently re-scan changed statements.
9465         (pass_forwprop): Adjust.
9466
9467 2011-05-30  Ian Lance Taylor  <iant@google.com>
9468
9469         * godump.c (go_format_type): Correct length of name added to
9470         obstack for anonymous field.
9471
9472 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
9473
9474         PR target/49186
9475         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
9476         part of the second operand is 0.
9477
9478 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
9479
9480         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
9481         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
9482         to memory for !TARGET_MEMORY_MISMATCH_STALL.
9483         (*movdf_internal_rex64): Do not penalize F->r alternative.
9484         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
9485         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
9486         when optimizing function for size.  Do not move CONST_DOUBLEs
9487         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
9488         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
9489         SUBREGs.  Do not check for MEM_P operands in the insn condition,
9490         check for ANY_FP_REGNO_P instead.
9491         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
9492         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
9493         function for speed.
9494         * config/i386/i386.c (ix86_option_override_internal): Do not
9495         set TARGET_INTEGER_DFMODE_MOVES here.
9496
9497 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
9498
9499         PR target/49168
9500         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
9501
9502 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
9503
9504         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
9505         DW_TAG_rvalue_reference_type even for
9506         -gdwarf-4 -fno-debug-types-section.
9507
9508 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9509
9510         PR tree-optimization/46728
9511         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
9512         (build_and_insert_binop): New.
9513         (gimple_expand_builtin_pow): Reorder args for
9514         build_and_insert_call; use build_and_insert_binop; add more
9515         optimizations for fractional exponents.
9516
9517 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
9518
9519         PR bootstrap/49190
9520
9521         Revert:
9522         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
9523
9524         * tree.h (struct tree_identifier): Inherit from tree_typed, not
9525         tree_common.
9526         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
9527         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
9528         TS_BASE instead of TS_COMMON.
9529         * varasm.c (assemble_name): Remove assert.
9530
9531 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
9532
9533         * config.gcc: Keep obselete list sorted.
9534
9535 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
9536             Eric Botcazou  <ebotcazou@adacore.com>
9537
9538         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
9539         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
9540         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
9541         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
9542         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
9543
9544 2011-05-30  Richard Guenther  <rguenther@suse.de>
9545
9546         * gimple.c (gimple_types_compatible_p_1): Compare record
9547         and union type members properly.
9548
9549 2011-05-30  Richard Guenther  <rguenther@suse.de>
9550
9551         PR tree-optimization/49210
9552         * ipa-split.c (split_function): Care for the case where the call
9553         result is not trivially convertible to the result holding variable.
9554
9555 2011-05-30  Richard Guenther  <rguenther@suse.de>
9556
9557         PR tree-optimization/49218
9558         * tree-vrp.c (adjust_range_with_scev): Properly check whether
9559         overflow occured.
9560
9561 2011-05-30  Richard Guenther  <rguenther@suse.de>
9562
9563         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
9564         New function split out from ...
9565         (forward_propagate_into_gimple_cond): ... here.  Adjust.
9566         (forward_propagate_into_cond): Likewise.
9567         (forward_propagate_comparison): Also propagate into
9568         comparisons on assignment RHS.  Change return value to
9569         behave similar to forward_propagate_into_cond.
9570         (tree_ssa_forward_propagate_single_use_vars): Handle
9571         strict-overflow warnings properly for forward_propagate_comparison.
9572
9573 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9574
9575         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
9576         from plugin linker.
9577         * configure: Regenerate.
9578
9579 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
9580
9581         PR tree-optimization/49199
9582         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
9583         non-reduction operands are either defined in the loop or by induction.
9584
9585 2011-05-29  Xinliang David Li  <davidxl@google.com>
9586
9587         * opts-global.c (handle_common_deferred_options): Handle new options.
9588         * passes.c (register_one_dump_file): Call register_pass_name.
9589         (execute_one_pass): Check explicit enable/disable flag.
9590         (passr_hash): New function.
9591         (passr_eq): Ditto.
9592         (register_pass_name): Ditto.
9593         (get_pass_by_name): Ditto.
9594         (pass_hash): Ditto.
9595         (pass_eq): Ditto.
9596         (enable_pass): Ditto.
9597         (disable_pass): Ditto.
9598         (is_pass_explicitly_enabled_or_disabled): Ditto.
9599
9600 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
9601
9602         * config/i386/i386.md (*movoi_internal_avx): Use
9603         standard_sse_constant_opcode for alternative 0.
9604         (*movti_internal_sse): Ditto.
9605         (*movti_internal_rex64): Use standard_sse_constant_opcode for
9606         alternative 2.
9607         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
9608         sselog1 type moves.
9609         (*movsi_internal): Ditto.
9610         (*movdi_internal): Ditto.  Add ssecvt type moves.
9611
9612 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
9613
9614         PR target/48830
9615         * rtlanal.c (simplify_subreg_regno): Adjust comment.
9616
9617 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
9618
9619         PR rtl-optimization/49095
9620         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
9621         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
9622
9623 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
9624
9625         PR target/43995
9626         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
9627         recurse_p argument.  Only follow register copies if it is set,
9628         and prevent mips_find_pic_call_symbol from recursing.
9629         (mips_find_pic_call_symbol): Add a recurse_p argument.
9630         Pass it to mips_pic_call_symbol_from_set.
9631         (mips_annotate_pic_calls): Update accordingly.
9632
9633 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
9634
9635         * emit-rtl.c (try_split): Use a loop to search for
9636         NOTE_INSN_CALL_ARG_LOCATIONs.
9637
9638 2011-05-29  Richard Guenther  <rguenther@suse.de>
9639
9640         PR tree-optimization/49217
9641         * ipa-pure-const.c (propagate_pure_const): Fix typos.
9642
9643 2011-05-28  Jan Hubicka  <jh@suse.cz>
9644
9645         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
9646         length.
9647         (string_slot_free): Remove
9648         (create_output_block): Initialize obstack.
9649         (destroy_output_block): Free obstack.
9650         (lto_string_index): Add PERSISTENT parameter; do not duplicate
9651         the string unless it needs to be added into the hash.
9652         (lto_output_string_with_length): Add persistent attribute;
9653         handle NULL strings.
9654         (lto_output_string): Add PERSISTENT parameter.
9655         (output_string_cst, output_identifier): Simplify.
9656         (lto_output_location_bitpack): Update.
9657         (lto_output_builtin_tree): Update.
9658         * lto-streamer.h (struct output_block): Add obstack.
9659         (lto_output_string, lto_output_string_with_length): Remove
9660         declarations; functions are static now.
9661
9662 2011-05-28  Jan Hubicka  <jh@suse.cz>
9663
9664         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
9665         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
9666         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
9667         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
9668         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
9669         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
9670         unpack_ts_decl_with_vis_value_fields,
9671         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
9672         lto_get_builtin_tree): Use enum and variable length i/o.
9673         * basic-block.h (profile_status_d): Add PROFILE_LAST.
9674         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
9675         New functions.
9676         (bp_pack_enum, bp_unpack_enum): New macros.
9677
9678 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
9679
9680         * genrecog.c: Remove redundant forward declarations.
9681
9682 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
9683
9684         * config.gcc: Deprecate mips*-*-openbsd*.
9685
9686 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
9687
9688         PR bootstrap/49195
9689         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
9690         for match_op_dup.
9691
9692 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
9693
9694         PR middle-end/48981
9695         * gengtype.c (vec_prefix_type): New function.
9696         (note_def_vec): Use vec_prefix_type and change the length
9697         attribute to be based on the prefix.
9698         * vec.c: Include coretypes.h before vec.h.
9699         (struct vec_prefix): Remove.
9700         (vec_gc_p_reserve): Change the offsetof to sizeof.
9701         (vec_gc_p_reserve_exact): Likewise.
9702         (vec_heap_p_reserve): Likewise.
9703         (vec_heap_p_reserve_exact): Likewise.
9704         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
9705         (vec_stack_p_reserve): Change the offsetof to sizeof.
9706         (vec_stack_p_reserve_exact): Likewise.
9707         * vec.h (struct vec_prefix): New struct definition.
9708         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
9709         (VEC_T_GTY(T,B)): Likewise.
9710         (DEF_VEC_FUNC_P(T)): Use prefix field.
9711         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
9712         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
9713
9714 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9715
9716         PR tree-optimization/46728
9717         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
9718         (powi_as_mults): Add gimple_set_location.
9719         (build_and_insert_call): New.
9720         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
9721         0.5, 0.25, 0.75, 1./3., or 1./6.
9722
9723 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
9724
9725         * doc/contrib.texi: Update copyright years.
9726         (Contributors): Add Zdenek Sojka.
9727
9728 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
9729
9730         * c-decl.c (c_push_function_context): Copy the current statement
9731         list stack.
9732         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
9733         (finish_struct): Call building_stmt_list_p instead of checking
9734         cur_stmt_list.
9735         * c-parser.c (c_parser_postfix_expression): Likewise.
9736         * c-typeck.c (c_end_compound_stmt): Likewise.
9737         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
9738         * tree-iterator.c (stmt_list_cache): Change to a VEC.
9739         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
9740         (free_stmt_list): Likewise.
9741         * tree.h (struct tree_statement_list): Include typed_tree instead
9742         of tree_common.
9743         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
9744         as TS_TYPED instead of TS_COMMON.
9745
9746 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9747             Uros Bizjak  <ubizjak@gmail.com>
9748
9749         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
9750         (HAVE_AS_IX86_TLSGDPTL): Define.
9751         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
9752         (HAVE_AS_IX86_TLSLDMPLT): Define.
9753         * configure: Regenerate.
9754         * config.in: Regenerate.
9755         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
9756         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
9757         TARGET_SUN_TLS, use @tlsgdplt or @plt.
9758         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
9759         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
9760         @tlsldmplt or @plt.
9761         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
9762
9763 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
9764
9765         * sched-int.h (struct _haifa_deps_insn_data): New members cond
9766         and reverse_cond.
9767         (INSN_COND, INSN_REVERSE_COND): New macros.
9768         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
9769         once.
9770         (sched_get_condition_with_rev): Cache the results, and look them up
9771         if possible.
9772         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
9773         are clobbered by the current insn.
9774         * target.def (exposed_pipline): New sched data hook.
9775         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
9776         * doc/tm.texi: Regenerate.
9777
9778 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9779
9780         PR tree-optimization/49170
9781         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
9782         sincos or cexp.
9783
9784 2011-05-27  Richard Guenther  <rguenther@suse.de>
9785
9786         PR middle-end/49189
9787         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
9788         of comparisons.
9789
9790 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
9791
9792         * haifa-sched.c (sched_scan_info): Remove.
9793         (schedule_block): Call sched_extend_luids rather than sched_init_luids
9794         with NULL args.
9795         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
9796         Remove functions.
9797         (sched_scan): Remove.
9798         (sched_extend_luids): Renamed from luids_extend_insn and no longer
9799         static.  All callers changed.
9800         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
9801         static.  All callers changed.
9802         (sched_init_luids): Remove all arguments except the first.  All
9803         callers changed.  Don't use sched_scan.
9804         (haifa_init_h_i_d): Likewise.
9805         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
9806         manually rather than using sched_init_luids.  Likewise with
9807         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
9808         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
9809         rather than sched_init_luids with NULL args.
9810         * sel-sched-ir.c (new_insns): Remove variable.
9811         (sched_scan): New static function, previously in haifa-sched.c.  Remove
9812         all arguments but the first two; all callers changed.
9813         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
9814         rather than sched_init_luids.
9815         (sel_init_bbs): Remove second argument.  All callers changed.
9816         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
9817         with NULL arguments.
9818         (create_insn_rtx_from_pattern): Likewise.
9819         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
9820         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
9821         (sched_init_insn_luid, sched_extend_luids): Declare.
9822         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
9823         declarations.
9824
9825 2011-05-27  Richard Guenther  <rguenther@suse.de>
9826
9827         PR middle-end/49177
9828         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
9829         A CMP B ? (T) true : (T) false for non-integral types T again.
9830
9831 2011-05-27  Jan Hubicka  <jh@suse.cz>
9832
9833         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
9834         so 0 means NULL string.
9835         (lto_output_string_with_length): ... here.
9836         (lto_output_string, output_string_cst, output_identifier): Update
9837         handling of NULL strings.
9838         (lto_output_location_bitpack): New function.
9839         (lto_output_location): Use it.
9840         (lto_output_tree_ref): Use output_record_start.
9841         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
9842         len values.
9843         * lto-streamer-in.c (string_for_index): Break out from ...; offset
9844         values by 1.
9845         (input_string_internal): ... here;
9846         (input_string_cst, input_identifier, lto_input_string): Update handling
9847         of NULL strings.
9848         (lto_input_location_bitpack): New function
9849         (lto_input_location): Use it.
9850         (unpack_ts_type_common_value_fields): Pack align & alias in var len
9851         values.
9852         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
9853         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
9854         (bp_pack_value): Sanity check the value range.
9855         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
9856         New functions.
9857         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
9858         New functions.
9859
9860 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
9861
9862         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
9863         call_arg_location instructions down the floor.
9864
9865 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
9866
9867         PR rtl-optimization/49154
9868         * ira.c (setup_pressure_classes): Process class without sublcasses
9869         as a candidate for pressure classes.
9870
9871 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
9872
9873         PR rtl-optimization/48575
9874         * genrecog.c (position_type): New enum.
9875         (position): New structure.
9876         (decision): Use position structure instead of a string.
9877         (root_pos, peep2_insn_pos_list): New variables.
9878         (next_position, compare_positions): New functions.
9879         (new_decision): Use position structures instead of strings.
9880         (maybe_both_true): Likewise.
9881         (change_state): Likewise.
9882         (write_tree): Likewise.
9883         (make_insn_sequence): Likewise.
9884
9885 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
9886
9887         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
9888         TS_BASE instead of TS_COMMON.
9889         (find_decls_types_r): Check for TS_TYPED structure before looking at
9890         TREE_TYPE.
9891         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
9892         Add chain field.
9893         (BLOCK_CHAIN): Use new chain field.
9894
9895 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
9896
9897         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
9898         moves expensive on Power7 also.
9899
9900 2011-05-26  Richard Guenther  <rguenther@suse.de>
9901
9902         * fold-const.c (fold_unary_loc): Remove bogus code.
9903
9904 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
9905
9906         * tree.h (struct tree_identifier): Inherit from tree_typed, not
9907         tree_common.
9908         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
9909         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
9910         TS_BASE instead of TS_COMMON.
9911         * varasm.c (assemble_name): Remove assert.
9912
9913 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
9914
9915         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
9916         substituted first.
9917         * libgcc-std.ver: Delete file.
9918
9919 2011-05-26  Richard Guenther  <rguenther@suse.de>
9920
9921         PR tree-optimization/48702
9922         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
9923         only when we know the base address is within bounds.
9924         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
9925         assume the base address of TARGET_MEM_REFs is in bounds.
9926
9927 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9928
9929         PR target/49099
9930         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
9931         declaration in TARGET_SOLARIS.
9932
9933 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
9934
9935         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
9936         The instruction is then expanded explicitly.
9937         (supported_compare): Callable instruction.
9938         (compare): Likewise.
9939
9940 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
9941
9942         PR c++/49165
9943         * gimplify.c (shortcut_cond_r): Don't special case
9944         COND_EXPRs if they have void type on one of their arms.
9945
9946 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
9947
9948         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
9949         to reduce duplication, and to achieve a slightly more logical order
9950         of operations.
9951
9952 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
9953
9954         PR tree-optimization/49161
9955         * tree-vrp.c (struct case_info): New type.
9956         (compare_case_labels): Sort case_info structs instead of
9957         trees, and not primarily by CASE_LABEL uids but by
9958         label_for_block indexes.
9959         (find_switch_asserts): Put case labels into struct case_info
9960         array instead of TREE_VEC, adjust sorting, compare label_for_block
9961         values instead of CASE_LABELs.
9962
9963 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9964
9965         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
9966         ("orndi3_neon"): Likewise.
9967         ("bic<mode>3_neon"): Likewise.
9968
9969 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
9970
9971         PR tree-optimization/49038
9972         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
9973         Ensure at least one epilogue iteration if required by data
9974         accesses with gaps.
9975         * tree-vectorizer.h (struct _loop_vec_info): Add new field
9976         to mark loops that require peeling for gaps.
9977         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
9978         (vect_get_known_peeling_cost): Take peeling for gaps into
9979         account.
9980         (vect_transform_loop): Generate epilogue if required by data
9981         access with gaps.
9982         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
9983         loop as requiring an epilogue if there are gaps in the end of
9984         the strided group.
9985
9986 2011-05-25  Ian Lance Taylor  <iant@google.com>
9987
9988         * godump.c (go_format_type): Output the first field with a usable
9989         Go type, if any.
9990
9991 2011-05-25  Ian Lance Taylor  <iant@google.com>
9992
9993         * godump.c (go_format_type): Check for invalid type names, pointer
9994         target types, and struct field types.
9995
9996 2011-05-25  Jason Merrill  <jason@redhat.com>
9997
9998         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
9999
10000 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
10001
10002         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
10003
10004 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
10005
10006         * config/i386/i386.md (*movqi_extv_1)): Put back
10007         "register_operand" check in "type" calculation.
10008         (*movqi_extzv_2): Likewise.
10009
10010 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
10011
10012         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
10013
10014 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
10015
10016         PR bootstrap/49160
10017         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
10018         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
10019         __divxc3, __divtc3): Wrap definitions in #ifndef.
10020
10021 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
10022
10023         PR target/49142
10024         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
10025         "register_operand" check and replace q_regs_operand with
10026         QIreg_operand in "type" calculation.
10027         (*movqi_extv_1): Likewise.
10028         (*movqi_extzv_2_rex64): Likewise.
10029         (*movqi_extzv_2): Likewise.
10030
10031         * config/i386/predicates.md (QIreg_operand): New.
10032
10033 2011-05-25  Richard Guenther  <rguenther@suse.de>
10034
10035         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
10036         type-based offset disambiguation, streamline MEM_REF and
10037         TARGET_MEM_REF handling.
10038
10039 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
10040
10041         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
10042         (bdesc_special_args): Add pause intrinsic.
10043
10044         * config/i386/i386.md (UNSPEC_PAUSE): New.
10045         (pause): Likewise.
10046         (*pause): Likewise.
10047         * config/i386/ia32intrin.h (__pause): Likewise.
10048
10049         * doc/extend.texi (X86 Built-in Functions): Add documentation for
10050         pause intrinsic.
10051
10052 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10053
10054         PR tree-optimization/46728
10055         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
10056         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
10057
10058 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
10059
10060         * tree.h (struct tree_exp): Inherit from struct tree_typed.
10061         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
10062         instead of TS_COMMON.
10063
10064 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
10065
10066         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
10067         LIBGCC2_GNU_PREFIX is defined.
10068         (__N): New macro.
10069         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
10070         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
10071         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
10072         __clz_tab): Define using __N.
10073         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
10074         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
10075         * target.def (libfunc_gnu_prefix): New hook.
10076         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
10077         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
10078         * doc/tm.texi: Regenerate.
10079         * system.h (LIBGCC2_GNU_PREFIX): Poison.
10080         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
10081         account.
10082         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
10083         (init_optabs): Likewise for the bswap libfuncs.
10084         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
10085         and divide.
10086         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
10087         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
10088         * libgcc-std.ver: Remove.
10089         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
10090         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
10091         libgcc-std.ver.
10092         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
10093         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
10094         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
10095         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
10096         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
10097         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
10098         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
10099         * config/fixed-bit.h (FIXED_OP): Define differently depending on
10100         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
10101         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
10102
10103 2011-05-25  Jan Hubicka  <jh@suse.cz>
10104
10105         * lto-streamer-out.c (output_record_start): Use lto_output_enum
10106         (lto_output_tree): Use output_record_start.
10107         * lto-streamer-in.c (input_record_start): Use lto_input_enum
10108         (lto_get_pickled_tree): Use input_record_start.
10109         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
10110         (lto_value_range_error): New function.
10111         * lto-streamer.h (lto_value_range_error): Declare.
10112         (lto_output_int_in_range, lto_input_int_in_range): New functions.
10113         (lto_output_enum, lto_input_enum): New macros.
10114
10115 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
10116
10117         * common.opt (flag_stack_usage_info): New variable.
10118         (-Wstack-usage): New option.
10119         * doc/invoke.texi (Warning options): Document -Wstack-usage.
10120         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
10121         <OPT_fstack_usage>: Likewise.
10122         * toplev.c (output_stack_usage): Handle -Wstack-usage.
10123         * calls.c (expand_call): Test flag_stack_usage_info variable instead
10124         of flag_stack_usage.
10125         (emit_library_call_value_1): Likewise.
10126         * explow.c (allocate_dynamic_stack_space): Likewise.
10127         * function.c (instantiate_virtual_regs ): Likewise.
10128         (prepare_function_start): Likewise.
10129         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
10130         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
10131         * config/arm/arm.c (arm_expand_prologue): Likewise.
10132         (thumb1_expand_prologue): Likewise.
10133         * config/avr/avr.c (expand_prologue): Likewise.
10134         * config/i386/i386.c (ix86_expand_prologue): Likewise.
10135         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
10136         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
10137         * config/mips/mips.c (mips_expand_prologue): Likewise.
10138         * config/pa/pa.c (hppa_expand_prologue): Likewise.
10139         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
10140         * config/s390/s390.c (s390_emit_prologue): Likewise.
10141         * config/sh/sh.c (sh_expand_prologue): Likewise.
10142         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
10143         * config/spu/spu.c (spu_expand_prologue): Likewise.
10144
10145 2011-05-25  Richard Guenther  <rguenther@suse.de>
10146
10147         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
10148         (gimple_canonical_types_compatible_p): Likewise.
10149
10150 2011-05-25  Jan Hubicka  <jh@suse.cz>
10151
10152         PR middle-end/49062
10153         * ipa.c (function_and_variable_visibility): Only add to same
10154         comdat group list if DECL_ONE_ONLY.
10155
10156 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
10157
10158         PR rtl-optimization/49014
10159         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
10160
10161 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
10162
10163         PR target/49128
10164         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
10165
10166 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
10167
10168         PR rtl-optimization/48757
10169         * ira-build.c (loop_with_eh_edge_p): Rename to
10170         loop_with_complex_edge_p, check edges on complexity, make function
10171         conditional.
10172         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
10173         conditional.
10174
10175 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
10176
10177         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
10178         force flag_ira_share_save_slots to 0.
10179
10180 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
10181
10182         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
10183         (vt_initialize): Set PROLOGUE_BB unconditionally.
10184         Add block comment about CFA_BASE_RTX machinery.
10185         Reset FP_CFA_OFFSET to -1 on all invalid paths.
10186         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
10187
10188 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
10189
10190         PR objc/48187
10191         * c-parser.c (c_parser_objc_class_instance_variables): More robust
10192         parsing of syntax error in ObjC instance variable lists.  In
10193         particular, avoid an infinite loop if there is a stray ']'.
10194         Updated error message.
10195
10196 2011-05-24  Ian Lance Taylor  <iant@google.com>
10197
10198         * godump.c (go_define): Don't accept a string immediately after
10199         another operand.
10200
10201 2011-05-24  Ian Lance Taylor  <iant@google.com>
10202
10203         * godump.c (struct godump_container): Add invalid_hash field.
10204         (go_format_type): Return false if type is found in invalid_hash.
10205         (go_output_typedef): Add invalid type to invalid_hash.
10206         (go_finish): Create and delete invalid_hash.
10207
10208 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10209
10210         PR tree-optimization/46728
10211         * tree-ssa-math-opts.c (powi_table): New.
10212         (powi_lookup_cost): New.
10213         (powi_cost): New.
10214         (powi_as_mults_1): New.
10215         (powi_as_mults): New.
10216         (gimple_expand_builtin_powi): New.
10217         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
10218         (gate_cse_sincos): Remove sincos/cexp restriction.
10219
10220 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10221
10222         PR target/3746
10223         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
10224         mips-tdump native.
10225         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
10226         * mips-tdump.c: Likewise.
10227
10228 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
10229
10230         PR target/49128
10231         * config/i386/driver-i386.c (host_detect_local_cpu): Always
10232         add -mno-XXX.  Handle FMA.
10233
10234 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
10235
10236         PR rtl-optimization/48633
10237         * ira-build.c (loop_with_eh_edge_p): New function.
10238         (mark_loops_for_removal): Use it.
10239
10240 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
10241
10242         PR rtl-optimization/48971
10243         * ira.c (setup_pressure_classes): Don't check register move cost
10244         for classes with one registers.  Don't add pressure class if there
10245         is a pressure class with the same available hard registers.
10246         Check contains_reg_of_mode.  Fix a typo in collecting
10247         temp_hard_regset.  Ignore hard registers not belonging to a class.
10248
10249 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
10250
10251         PR target/49133
10252         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
10253
10254 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
10255             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10256
10257         PR gcov-profile/48845
10258         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
10259
10260 2011-05-24  Richard Guenther  <rguenther@suse.de>
10261
10262         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
10263         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
10264         (gimple_types_compatible_p_1): Adjust.
10265         (iterative_hash_canonical_type): Do not bother about complete vs.
10266         incomplete types.
10267         (gimple_canonical_types_compatible_p): Likewise.
10268
10269 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10270
10271         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
10272
10273 2011-05-24  Richard Guenther  <rguenther@suse.de>
10274
10275         PR bootstrap/49078
10276         * gimple.c (gimple_register_canonical_type): Revert
10277         previous change.
10278         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
10279         does not for a tree for the case where it matters.  Cache
10280         pointer-type alias-sets.
10281
10282 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
10283
10284         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
10285         (OBJS): Remove options.o, opts-common.o and prefix.o.
10286         (OBJS-libcommon-target): New.
10287         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
10288         (BACKEND): Include libcommon-target.a.
10289         (MOSTLYCLEANFILES): Include libcommon-target.a.
10290         (libcommon-target.a): New.
10291         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
10292         prefix.o.
10293
10294 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
10295
10296         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
10297         parts of output shared with the driver.
10298         * optc-gen.awk: Don't generate parts of output not shared with the
10299         driver.
10300         * opth-gen.awk: Remove GCC_DRIVER conditionals.
10301         * doc/options.texi (SourcerInclude): Mention options-save.c.
10302         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
10303         (OBJS): Add options-save.o.
10304         (options-save.c, options-save.o): New.
10305         (options.o): Update dependencies.
10306         (gcc-options.o): Remove.
10307         (mostlyclean): Remove options-save.c.
10308
10309 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
10310
10311         PR debug/49032
10312         * dbxout.c: Include cgraph.h.
10313         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
10314         and without value expr, return NULL if no varpool node exists for
10315         it or if it is not needed.
10316         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
10317
10318         PR c/49120
10319         * c-decl.c (start_decl): Convert expr to void_type_node.
10320
10321 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
10322
10323         PR rtl-optimization/48826
10324         * emit-rtl.c (try_split): When splitting a call that is followed
10325         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
10326
10327 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
10328
10329         * cfgexpand.c (expand_debug_expr): For unused non-addressable
10330         parameters passed in memory prefer using DECL_INCOMING_RTL over
10331         the pseudos it will be copied into.
10332
10333 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
10334
10335         PR target/47315
10336         * config/i386/i386.c (ix86_option_override_internal): Save the
10337         initial options after checking vzeroupper.
10338
10339 2011-05-23  David Li  <davidxl@google.com>
10340
10341         PR tree-optimization/48988
10342         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
10343         Initialize has_valid_pred for each pred chain.
10344
10345 2011-05-23  Richard Guenther  <rguenther@suse.de>
10346
10347         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
10348         (iterative_hash_gimple_type): Always hash type names.
10349
10350 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
10351
10352         * c-typeck.c (build_function_call_vec): Tweak call to
10353         check_function_arguments.
10354
10355 2011-05-23  Richard Guenther  <rguenther@suse.de>
10356
10357         PR tree-optimization/49115
10358         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
10359         is not necessarily carried out, do not claim it kills the ref.
10360         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
10361
10362 2011-05-23  Richard Guenther  <rguenther@suse.de>
10363
10364         PR middle-end/15419
10365         * builtins.c (fold_builtin_memory_op): Be less restrictive about
10366         what pointer types we accept for folding.
10367
10368 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10369
10370         * gthr-gnat.c: Remove.
10371         * gthr-gnat.h: Remove.
10372         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
10373         * config/t-freebsd (LIB2ADDEH): Likewise.
10374         * config/t-linux (LIB2ADDEH): Likewise.
10375         * config/t-sol2 (LIB2ADDEH): Likewise.
10376         * config/ia64/t-vms (LIB2ADDEH): Likewise.
10377         * configure.ac (target_thread_file): Remove gnat handling.
10378         * configure: Regenerate.
10379         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
10380
10381 2011-05-23  Tristan Gingold  <gingold@adacore.com>
10382             Eric Botcazou  <ebotcazou@adacore.com>
10383
10384         * gcov.c (create_file_names): If no object directory is specified,
10385         keep the directory of the file.
10386
10387 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10388
10389         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
10390         * configure: Regenerate.
10391
10392 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
10393
10394         PR middle-end/48973
10395         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
10396         failed and the comparison has a single bit signed type, use
10397         constm1_rtx instead of const1_rtx for true value.
10398         (do_store_flag): If ops->type is single bit signed type, disable
10399         signel bit test optimization and pass -1 instead of 1 as last
10400         parameter to emit_store_flag_force.
10401
10402 2011-05-23  Tom de Vries  <tom@codesourcery.com>
10403
10404         PR target/45098
10405         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
10406         function.
10407         (infer_loop_bounds_from_undefined): Use new function.
10408
10409 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
10410
10411         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
10412         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
10413         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
10414         and -O0 otherwise.
10415         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
10416
10417 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
10418
10419         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
10420         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
10421         returns true.
10422
10423 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
10424
10425         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
10426
10427 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
10428
10429         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
10430         UNSPEC_MOVE_PIC pattern.
10431
10432 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
10433
10434         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
10435         (sparc-*-rtems*): Likewise.
10436         (sparc64-*-elf*): Likewise.
10437         (sparc64-*-rtems*): Likewise.
10438         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
10439         * config/sparc/t-crtin: New file.
10440         * config/sparc/t-sol2 (crti.o): Delete rule.
10441         (crtn.o): Likewise.
10442         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
10443         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
10444         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
10445         (ENDFILE_SPEC): Add crtn.o.
10446
10447 2011-05-22  Tom de Vries  <tom@codesourcery.com>
10448
10449         PR middle-end/48689
10450         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
10451         CODE_CONTAINS_STRUCT (TS_COMMON).
10452
10453 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
10454
10455         PR middle-end/49029
10456         * expmed.c (extract_fixed_bit_field): Test whether target can be used
10457         only after deciding which mode to use.
10458
10459 2011-05-22  Tom de Vries  <tom@codesourcery.com>
10460
10461         PR target/45098
10462         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
10463         for call to get_shiftadd_cost.
10464
10465 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
10466
10467         PR target/49104
10468         * config/i386/cpuid.h (bit_MMXEXT): New define.
10469
10470 2011-05-22  Nick Clifton  <nickc@redhat.com>
10471
10472         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
10473         initialisation of non-existant args[2] element.  Use args[] array
10474         not arg[] array to pass arguments to build_function_type_list.
10475
10476 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
10477
10478         PR tree-optimization/49087
10479         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
10480
10481 2011-05-21  Jason Merrill  <jason@redhat.com>
10482
10483         PR c++/49092
10484         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
10485         static storage duration.
10486
10487 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
10488
10489         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
10490         frame pointer.
10491
10492 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
10493
10494         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
10495         false if there are call-saved registers here...
10496         (sparc_can_use_return_insn_p): ...but here instead.
10497         (save_or_restore_regs): Fix thinko.
10498         (sparc_expand_prologue): Use current_function_is_leaf.
10499         (sparc_frame_pointer_required): Likewise.
10500
10501 2011-05-21  Nick Clifton  <nickc@redhat.com>
10502
10503         PR target/49098
10504         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
10505
10506 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
10507
10508         * gengtype.c (walk_type): Implemented "atomic" GTY option.
10509         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
10510
10511 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
10512
10513         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
10514         * optc-gen.awk: Move common code to opt-read.awk.
10515         * opth-gen.awk: Likewise.
10516         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
10517
10518 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
10519
10520         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
10521
10522 2011-05-20  Tom de Vries  <tom@codesourcery.com>
10523
10524         PR target/45098
10525         * tree-ssa-loop-ivopts.c: Include expmed.h.
10526         (get_shiftadd_cost): New function.
10527         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
10528
10529 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
10530
10531         PR bootstrap/49086
10532         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
10533         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
10534
10535 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
10536
10537         * Makefile.in: Update comment referring to $(OBJS-common).
10538
10539 2011-05-20  Ian Lance Taylor  <iant@google.com>
10540
10541         * godump.c (go_output_typedef): Put enum constants in the macro
10542         hash table to avoid duplicate Go const definitions.
10543
10544 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
10545
10546         * Makefile.in (LIBDEPS): Add libcommon.a.
10547         (LIBS): Likewise.
10548         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
10549         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
10550         pretty-print.o and version.o.
10551         (OBJS-libcommon): New.
10552         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
10553         (BACKEND): Add libcommon.a.
10554         (MOSTLYCLEANFILES): Likewise.
10555         (libcommon.a): New.
10556         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
10557         (cpp$(exeext)): Likewise.
10558         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
10559         pretty-print.o and input.o.
10560         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
10561         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
10562         (errors.o): Remove.
10563         (mips-tfile): Don't explicitly use version.o.
10564         (mips-tdump): Likewise.
10565         (gcov.o): Depend on $(DIAGNOSTIC_H).
10566         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
10567         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
10568         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
10569         * gcov-dump.c: Include intl.h and diagnostic.h.
10570         (main): Initialize diagnostics.
10571         * gcov.c: Include diagnostic.h.
10572         (fnotice): Remove.
10573         (main): Initialize diagnostics.
10574         * lto-wrapper.c: Include diagnostic.h.
10575         (main): Initialize diagnostics.
10576
10577 2011-05-20  Michael Matz  <matz@suse.de>
10578
10579         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
10580
10581 2011-05-20  Michael Matz  <matz@suse.de>
10582             Richard Guenther  <rguenther@suse.de>
10583
10584         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
10585         use lto_streamer_cache_append directly instead of returning a VEC.
10586         (preload_common_node): Remove.
10587         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
10588         track seen nodes.
10589         (lto_streamer_cache_create): Call lto_preload_common_nodes.
10590
10591 2011-05-20  Richard Guenther  <rguenther@suse.de>
10592
10593         PR tree-optimization/49079
10594         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
10595         MEM_REFs correctly for the trailing array access detection.
10596         Special case constants the same way as decls for overall size
10597         constraining.
10598
10599 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
10600
10601         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
10602         argument expansion.
10603
10604 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
10605
10606         PR tree-optimization/49073
10607         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
10608         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
10609         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
10610
10611 2011-05-20  Richard Guenther  <rguenther@suse.de>
10612
10613         PR middle-end/48849
10614         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
10615         of pointer types the same way the middle-end does.
10616
10617 2011-05-20  Richard Guenther  <rguenther@suse.de>
10618
10619         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
10620         or pointer-to chains.  Delay all fixup to uniquify_nodes.
10621
10622 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
10623
10624         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
10625         (fma4_fmaddsub): Likewise
10626
10627 2011-05-19  Jan Hubicka  <jh@suse.cz>
10628
10629         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
10630         (GIMPLE_TYPE_PAIR_SIZE): New macro.
10631         (type_pair_cache): New static var.
10632         (lookup_type_pair): Use fixed sized custom hash; make inline.
10633         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
10634         calls of lookup_type_pair.
10635         (print_gimple_types_stats): Remove cache stats.
10636         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
10637         and gtc_ob.
10638
10639 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
10640
10641         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
10642         when TARGET_RDRND is active.
10643         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
10644         Generate dummy SImode target register when target is NULL.
10645
10646 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
10647
10648         * config/arm/arm-fpus.def: New.
10649         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
10650         arm-fpus.def.
10651         * config/arm/arm-tables.opt: Regenerate.
10652         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
10653         (arm_option_override): Don't decode FPU name to string here.
10654         * config/arm/arm.opt (mfpu=): Use Enum.
10655         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
10656         Update dependencies.
10657
10658 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
10659
10660         * collect2.c: Include diagnostic.h.
10661         (fatal_perror, fatal, error, fancy_abort): Remove.
10662         (main): Set progname.  Call xmalloc_set_program_name and
10663         diagnostic_initialize.
10664         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
10665         scan_libraries, resolve_lib_name): Call fatal_error instead of
10666         fatal and fatal_perror.
10667         * collect2.h (error, fatal, fatal_perror): Don't declare.
10668         * tlink.c: Include diagnostic-core.h.
10669         (recompile_files): Call fatal_error instead of fatal_perror.
10670         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
10671         pretty-print.o and input.o.
10672         (collect2.o, tlink.o): Update dependencies.
10673
10674 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10675
10676         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
10677
10678 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10679
10680         PR target/40483
10681         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
10682         COMDAT group syntax, both SPARC and x86 variants.
10683         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
10684         * configure: Regenerate.
10685         * config/sol2.h (TARGET_SOLARIS): Define.
10686         (PUSHSECTION_FORMAT): Remove.
10687         (SECTION_NAME_FORMAT): Define.
10688         * config/sol2.c: Include hashtab.h.
10689         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
10690         expansion, using SECTION_NAME_FORMAT.
10691         (solaris_comdat_htab): New variable.
10692         (struct comdat_entry): Define.
10693         (comdat_hash): New function.
10694         (comdat_eq): New function.
10695         (solaris_elf_asm_comdat_section): New function.
10696         (solaris_define_comdat_signature): New function.
10697         (solaris_code_end): New function.
10698         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
10699         (solaris_code_end): Declare.
10700         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
10701         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
10702         solaris_code_end.
10703         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
10704         Remove ATTRIBUTE_UNUSED.
10705         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
10706         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
10707         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
10708         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
10709         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
10710         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
10711         (PUSHSECTION_FORMAT): Remove.
10712         (SECTION_NAME_FORMAT): Redefine.
10713
10714 2011-05-19  Kai Tietz  <ktietz@redhat.com>
10715
10716         * tree-cfg.c (verify_gimple_assign_binary): Barf on
10717         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
10718         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
10719
10720 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
10721             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10722
10723         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
10724
10725 2011-05-19  Richard Guenther  <rguenther@suse.de>
10726
10727         PR middle-end/48985
10728         * tree-object-size.c (addr_object_size): If the pointed-to
10729         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
10730
10731 2011-05-19  Richard Guenther  <rguenther@suse.de>
10732
10733         * gimple.c (gimple_types_compatible_p_1): Compare names of
10734         the types themselves.
10735         (iterative_hash_gimple_type): And hash them that way.
10736         (gimple_register_type_1): If we register a main variant properly
10737         initialize the leader to ourselves.
10738
10739 2011-05-19  Tom de Vries  <tom@codesourcery.com>
10740
10741         PR target/45098
10742         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
10743         get_loop_invariant_expr_id.
10744         (get_loop_invariant_expr_id): Use get_expr_id.
10745         (parm_decl_cost): New function.
10746         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
10747         Improve bound cost estimation.  Use different inv_expr_id for elim and
10748         express cases.
10749
10750 2011-05-19  Tom de Vries  <tom@codesourcery.com>
10751
10752         PR target/45098
10753         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
10754         cost_base.cost == 0.
10755
10756 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
10757
10758         PR target/49002
10759         * config/i386/sse.md
10760         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
10761         load cast.
10762
10763 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
10764
10765         PR tree-optimization/49039
10766         * tree-vrp.c (extract_range_from_binary_expr): For
10767         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
10768         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
10769
10770 2011-05-18  Tom de Vries  <tom@codesourcery.com>
10771
10772         PR target/45098
10773         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
10774
10775 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
10776
10777         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
10778         (*tls_global_dynamic_64): Ditto.
10779         (*tls_local_dynamic_base_32_gnu): Ditto.
10780         (*tls_local_dynamic_base_64): Ditto.
10781         (tls_initial_exec_64_sun): Ditto.
10782
10783 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
10784
10785         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
10786         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
10787         bf592-none.
10788         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
10789         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
10790         * config/bfin/bfin.c (bfin_cpus): Add bf592.
10791         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
10792         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
10793         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
10794         * config/bfin/elf.h (LIB_SPEC): Add bf592.
10795
10796 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
10797
10798         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
10799         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
10800         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
10801         target_thread_pointer, arm_structure_size_boundary, struct
10802         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
10803         struct abi_name, arm_all_abis): Remove.
10804         (arm_option_override) Don't process most enumerated option values here.
10805         Don't process target_fpe_name here.  Work with integer not string for
10806         structure size boundary; use separate diagnostics for each case.
10807         * config/arm/arm.h (enum float_abi_type, enum
10808         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
10809         to arm-opts.h.
10810         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
10811         arm_structure_size_boundary): Remove.
10812         * config/arm/arm.opt (mabi=): Use Enum and Init.
10813         (arm_abi_type): New Enum and EnumValue entries.
10814         (mfloat-abi=): Use Enum and Init.
10815         (float_abi_type): New Enum and EnumValue entries.
10816         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
10817         (mfp16-format=): Use Enum and Init.
10818         (arm_fp16_format_type): New Enum and EnumValue entries.
10819         (mstructure-size-boundary=): Use UInteger and Init.
10820         (mtp=): Use Enum and Init.
10821         (arm_tp_type): New Enum and EnumValue entries.
10822
10823 2011-05-18  Richard Guenther  <rguenther@suse.de>
10824
10825         PR tree-optimization/49018
10826         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
10827         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
10828         gimple_has_side_effects.
10829
10830 2011-05-18  Richard Guenther  <rguenther@suse.de>
10831
10832         * gimple.c (gimple_register_type_1): New function, split out from ...
10833         (gimple_register_type): ... here.  Avoid infinite recursion.
10834
10835 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
10836
10837         PR tree-optimization/41881
10838         * tree-vectorizer.h (struct _loop_vec_info): Add new field
10839         reduction_chains along with a macro for its access.
10840         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
10841         (destroy_loop_vec_info): Free reduction chains.
10842         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
10843         (vect_is_slp_reduction): New function.
10844         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
10845         (vect_create_epilog_for_reduction): Support SLP reduction chains.
10846         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
10847         definition types for reduction chains.
10848         (vect_supported_load_permutation_p): Don't allow permutations for
10849         reduction chains.
10850         (vect_analyze_slp_instance): Support reduction chains.
10851         (vect_analyze_slp): Try to build SLP instance from reduction chains.
10852         (vect_get_constant_vectors):  Handle reduction chains.
10853         (vect_schedule_slp_instance): Mark the first statement of the
10854         reduction chain as reduction.
10855
10856 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
10857
10858         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
10859         names for group elements access.
10860         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
10861         reduction chains as well.  Remove data reference and interleaving
10862         related words from the fields names.
10863         * tree-vect-loop.c (vect_transform_loop): Use new names for group
10864         elements access.
10865         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
10866         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
10867         vect_update_interleaving_chain, vect_same_range_drs,
10868         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
10869         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
10870         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
10871         vect_analyze_group_access, vect_analyze_data_ref_access,
10872         vect_create_data_ref_ptr, vect_transform_strided_load,
10873         vect_record_strided_load_vectors): Likewise.
10874         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
10875         vect_model_load_cost, vectorizable_store, vectorizable_load,
10876         vect_remove_stores, new_stmt_vec_info): Likewise.
10877         * tree-vect-slp.c (vect_build_slp_tree,
10878         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
10879
10880 2011-05-18  Richard Guenther  <rguenther@suse.de>
10881
10882         PR middle-end/48989
10883         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
10884         operand verification.
10885         (verify_gimple_assign_binary): Likewise.
10886         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
10887         to non-1-precision BOOLEAN_TYPEs.
10888
10889 2011-05-18  Tom de Vries  <tom@codesourcery.com>
10890
10891         PR target/45098
10892         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
10893
10894 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
10895
10896         PR tree-optimization/49000
10897         * tree-ssa.c (execute_update_addresses_taken): Call
10898         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
10899         be rewritten and decl has been marked for renaming, reset
10900         the debug stmt.
10901
10902 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
10903
10904         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
10905         enum_opts_set when testing if attributes have set -mfpmath=.
10906
10907 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
10908
10909         * config/mips/mips.c (mips_handle_option): Remove unused variable.
10910
10911 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
10912
10913         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
10914         info->entry with 0
10915         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
10916         id.transform_lang_insert_block with NULL.
10917
10918 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
10919
10920         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
10921         (output_fp_compare): Change args 3 and 4 to bool.
10922         (ix86_expand_call): Change arg 6 to bool.
10923         (ix86_attr_length_immediate_default): Change arg 2 to bool.
10924         (ix86_attr_length_vex_default): Change arg 3 to bool.
10925         * config/i386/i386.md: Update all uses.
10926         * config/i386/i386.c: Ditto.
10927         (ix86_flags_dependent): Change return type to bool.
10928
10929 2011-05-17  Richard Guenther  <rguenther@suse.de>
10930
10931         * gimple.c (type_hash_pair_compare): Fix comparison.
10932
10933 2011-05-17  Richard Guenther  <rguenther@suse.de>
10934
10935         * gimple.c (iterative_hash_gimple_type): Simplify singleton
10936         case some more, fix final hash value of the non-singleton case.
10937
10938 2011-05-17  Richard Guenther  <rguenther@suse.de>
10939
10940         PR bootstrap/49013
10941         Revert
10942         2011-05-16  Richard Guenther  <rguenther@suse.de>
10943
10944         * gimple.c (gimple_types_compatible_p_1): Use names of the
10945         type itself, not its main variant.
10946         (iterative_hash_gimple_type): Likewise.
10947
10948 2011-05-17  Richard Guenther  <rguenther@suse.de>
10949
10950         * gimple.c (gimple_register_canonical_type): Use the main-variant
10951         leader for computing the canonical type.
10952
10953 2011-05-17  Nick Clifton  <nickc@redhat.com>
10954
10955         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
10956         moves.
10957
10958         * config/rx/rx.md: Add peephole to remove redundant extensions
10959         after loads.
10960         (bitset_in_memory): Use rx_restricted_mem_operand.
10961         (bitinvert_in_memory): Likewise.
10962         (bitclr_in_memory): Likewise.
10963
10964 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
10965             Nick Clifton  <nickc@redhat.com>
10966
10967         * config/rx/rx.md: Add peepholes to match a register move followed
10968         by a comparison of the moved register.  Replace these with an
10969         addition of zero that does both actions in one instruction.
10970
10971 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
10972
10973         PR target/48986
10974         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
10975         predicate to allow CONST_INT.
10976         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
10977
10978 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
10979
10980         * opts-common.c (opt_enum_arg_to_value): New.
10981         * opts.h (opt_enum_arg_to_value): Declare.
10982         * config/i386/i386.opt (fpmath): Remove.
10983         (mfpmath=): Use Enum, Init and Save.
10984         (fpmath_unit): New Enum and EnumValue entries.
10985         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
10986         name for function fpmath state.
10987         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
10988         * config/i386/i386.c: Include diagnostic.h.
10989         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
10990         (ix86_target_string): Take enum fpmath_unit value instead of string.
10991         (ix86_debug_options): Update call to ix86_target_string.
10992         (ix86_option_override_internal): Don't process fpmath strings here.
10993         (x86_function_specific_save, ix86_function_specific_restore):
10994         Don't handle fpmath state specially.
10995         (ix86_function_specific_print): Pass fpmath state to
10996         ix86_target_string instead of printing in this function.
10997         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
10998         Handle enum attributes.
10999         (IX86_ATTR_ENUM, ix86_opt_enum): New.
11000         (ix86_valid_target_attribute_tree): Update option_strings
11001         handling.  Handle fpmath as enum option.
11002         (ix86_can_inline_p): Update field names for function fpmath state.
11003         (ix86_expand_builtin): Update call to ix86_target_string.
11004         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
11005         (ix86_fpmath): Remove.
11006         * config/i386/t-i386 (i386.o): Update dependencies.
11007
11008 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
11009
11010         PR preprocessor/48677
11011         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
11012         from decoded_options[0], not from itself.
11013
11014 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
11015
11016         * config/i386/constraints.md (z): New constraint.
11017         * config/i386/i386.c (c): New mode attribute.
11018         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
11019         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
11020         constraint for operand 0.
11021         (*call_vzeroupper): Ditto.
11022         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
11023         (*call_rex64_ms_sysv_vzeroupper): Ditto.
11024         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
11025         Use "lzm" constraint for operand 0.
11026         (*call_pop_vzeroupper): Ditto.
11027         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
11028         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
11029         constraint for operand 0.
11030         (*sibcall_vzeroupper): Ditto.
11031         (*sibcall_rex64_ms_sysv): Ditto.
11032         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
11033         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
11034         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
11035         (*sibcall_pop_vzeroupper): Ditto.
11036         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
11037         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
11038         mode iterator.  Use "<c>zm" constraint for operand 1.
11039         (*call_value_vzeroupper): Ditto.
11040         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
11041         for operand 1.
11042         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
11043         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
11044         *call_value_pop_1.  Use "lzm" constraint for operand 1.
11045         (*call_value_pop_vzeroupper): Ditto.
11046         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
11047         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
11048         mode iterator.  Use "Uz" constraint for operand 1.
11049         (*sibcall_value_vzeroupper): Ditto.
11050         (*sibcall_value_rex64_ms_sysv): Ditto.
11051         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
11052         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
11053         constraint for operand 1.
11054         (*sibcall_value_pop_vzeroupper): Ditto.
11055         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
11056         and "z" constraint for operand 2.
11057         (*tls_global_dynamic_32_gnu): Ditto.
11058         (*tls_local_dynamic_base_32_gnu): Ditto.
11059         (*tls_local_dynamic_base_64): Ditto.
11060         (*tls_local_dynamic_32_once): Ditto.
11061         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
11062         Update all callers.
11063         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
11064
11065 2011-05-16  Richard Guenther  <rguenther@suse.de>
11066
11067         * gimple.c (gimple_types_compatible_p_1): Use names of the
11068         type itself, not its main variant.
11069         (iterative_hash_gimple_type): Likewise.
11070
11071 2011-05-16  Richard Guenther  <rguenther@suse.de>
11072
11073         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
11074         always visit pointer target and function result and argument types.
11075
11076 2011-05-16  Jason Merrill  <jason@redhat.com>
11077
11078         PR c++/48999
11079         * tree-inline.c (copy_statement_list): Put back recursion.
11080
11081 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
11082
11083         PR target/27663
11084         PR target/41076
11085         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
11086         * config/avr/avr.md ("*ior<mode>qi.byte0",
11087         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
11088
11089 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
11090
11091         PR target/45099
11092         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
11093         register is needed for a function argument.
11094
11095 2011-05-16  Richard Guenther  <rguenther@suse.de>
11096
11097         * gimple.c (struct type_hash_pair): New type.
11098         (type_hash_pair_compare): New function.
11099         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
11100
11101 2011-05-16  Revital Eres  <revital.eres@linaro.org>
11102
11103         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
11104
11105 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
11106
11107         * config/i386/i386.md (floating point move splitters): Fix
11108         usage of standard_80387_constant_p.
11109         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
11110
11111 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
11112
11113         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
11114
11115 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
11116
11117         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
11118         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
11119         (tree_ssa_lim_finalize): Likewise.
11120
11121 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
11122
11123         * config/i386/constraint.md (Yd, Yx): New register constraints.
11124         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
11125         Yd conditional register constraint.
11126         (*movtf_internal): Use standard_sse_constant_opcode.
11127         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
11128         Yx conditional register constraint.
11129         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
11130         Yd conditional register constraint.  Use standard_sse_constant_p to
11131         check for valid SSE constants and call standard_sse_constant_opcode to
11132         output SSE insn.
11133         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
11134         constants and call standard_sse_constant_opcode to output SSE insn.
11135         * config/i386/i386.c (ix86_option_ovverride_internal): Set
11136         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
11137         optimize_size is set.
11138         (standard_sse_constant_opcode): Output conditional AVX insn templates.
11139
11140 2011-05-14  Tobias Burnus  <burnus@net-b.de>
11141
11142         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
11143
11144 2011-05-13  Martin Jambor  <mjambor@suse.cz>
11145
11146         * ipa-prop.c (ipa_cst_from_jfunc): New function.
11147         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
11148         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
11149         (evaluate_conditions_for_ipcp_clone): Removed.
11150         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
11151         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
11152         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
11153
11154 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
11155
11156         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
11157         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
11158         lieu of MAY_HAVE_DEBUG_STMTS.
11159         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
11160         debug statements if !MAY_HAVE_DEBUG_STMTS.
11161
11162 2011-05-13  Martin Thuresson  <martint@google.com>
11163
11164         PR gcov-profile/47793
11165         * libgcov.c (gcov_exit): Support relative profile paths.
11166         * doc/invoke.texi (-fprofile-dir): Update for above change.
11167
11168 2011-05-13  Richard Guenther  <rguenther@suse.de>
11169
11170         * gimple.c (gimple_canonical_types_compatible_p): Do not use
11171         type-pair caching, do not compare hashes.
11172
11173 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
11174
11175         PR middle-end/48965
11176         * tree-cfg.c (edge_to_cases_cleanup): Return true.
11177         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
11178
11179 2011-05-13  Kai Tietz  <ktietz@redhat.com>
11180
11181         * gimplify.c (gimplify_expr): Make sure operand is boolified.
11182         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
11183         compatible type for TRUTH_NOT_EXPR.
11184
11185 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
11186
11187         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
11188         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
11189         can_create_pseudo_p ().
11190
11191 2011-05-13  Richard Guenther  <rguenther@suse.de>
11192
11193         PR lto/48978
11194         * gimple.c (iterative_hash_gimple_type): Revert change in
11195         pointer target and function result and argument hashing.
11196
11197 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
11198
11199         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
11200         (*movxf_internal_nointeger): Ditto.
11201         (*movdf_internal_rex64): Ditto.
11202         (*movdf_internal): Ditto.
11203         (*movdf_internal_nointeger): Ditto.
11204         (*movsf_internal): Ditto.
11205         (sincos splitters): Use can_create_pseudo ().
11206
11207 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
11208
11209         * config/i386/i386-opts.h: New.
11210         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
11211         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
11212         ix86_section_threshold): Remove.
11213         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
11214         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
11215         OPT_mbranch_cost_.
11216         (ix86_option_override_internal): Don't decode strings for options
11217         other than -march=, -mtune= and -mfpmath=.  Don't allow for
11218         __attribute__ uses in remaining diagnostics for options with
11219         string arguments.  Don't check for integer arguments being negative.
11220         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
11221         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
11222         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
11223         ix86_branch_cost, ix86_section_threshold): Remove.
11224         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
11225         HeaderInclude.
11226         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
11227         but not Var.
11228         (masm=): Use Enum and Init.
11229         (asm_dialect): New Enum and EnumValue entries.
11230         (mbranch-cost=): Use UInteger.
11231         (mlarge-data-threshold=): Use UInteger and Init.
11232         (mcmodel=): Use Enum and Init.
11233         (cmodel): New Enum and EnumValue entries.
11234         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
11235         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
11236         mregparm=): Use UInteger.
11237         (mstringop-strategy=): Use Enum and Init.
11238         (stringop_alg): New Enum and EnumValue entries.
11239         (mtls-dialect=): Use Enum and Init.
11240         (tls_dialect): New Enum and EnumValue entries.
11241         (mabi=): Use Enum and Init.
11242         (calling_abi): New Enum and EnumValue entries.
11243         (mveclibabi=): Use Enum and Init.
11244         (ix86_veclibabi): New Enum and EnumValue entries.
11245
11246 2011-05-13  Nick Clifton  <nickc@redhat.com>
11247
11248         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
11249         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
11250
11251 2011-05-13  Kai Tietz  <ktietz@redhat.com>
11252
11253         PR middle-end/48984
11254         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
11255         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
11256         (gimple_boolify): Check for cast for boolean_type_node instead for
11257         BOOLEAN_TYPE.
11258
11259 2011-05-13  Richard Guenther  <rguenther@suse.de>
11260
11261         PR tree-optimization/48172
11262         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
11263         multiplying by number of iterations for equal step.
11264         (vect_create_cond_for_alias_checks): Likewise.
11265
11266 2011-05-13  Andreas Schwab  <schwab@redhat.com>
11267
11268         * configure.ac: Use AS_HELP_STRING throughout.
11269         * configure: Regenerate.
11270
11271 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
11272
11273         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
11274         (ix86_emit_restore_regs_using_mov): Likewise.
11275         (ix86_emit_restore_sse_regs_using_mov): Likewise.
11276
11277 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
11278
11279         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
11280         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
11281         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
11282         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
11283         RTX_OK_FOR_OLO10_P): ...here.
11284         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
11285         SYMBOLIC_CONST.
11286
11287 2011-05-12  Kai Tietz  <ktietz@redhat.com>
11288
11289         * gimplify.c (gimple_boolify): Re-boolify expression
11290         arguments even if expression type is of kind BOOLEAN_TYPE.
11291         (gimplify_boolean_expr): Removed.
11292         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
11293         and XOR. Additional take care that we keep expression's type.
11294         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
11295         of TRUTH_AND|OR|XOR_EXPR.
11296
11297 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
11298
11299         PR tree-optimization/48975
11300         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
11301         on all bbs here and free and clear ifc_bbs at the end.
11302
11303 2011-05-12  Richard Guenther  <rguenther@suse.de>
11304
11305         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
11306         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
11307         until after simple checks.
11308         (gimple_types_compatible_p): Likewise.
11309         (iterative_hash_gimple_type): Always hash pointer targets
11310         and function return and argument types.
11311         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
11312         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
11313         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
11314         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
11315         completely in the simple compare section.
11316         (gimple_register_canonical_type): Query the cache again after
11317         registering.
11318
11319 2011-05-12  Richard Guenther  <rguenther@suse.de>
11320
11321         PR tree-optimization/48172
11322         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
11323         the number of iterations from the segment size calculation.
11324         (vect_create_cond_for_alias_checks): Adjust.
11325
11326 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
11327
11328         PR debug/48967
11329         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
11330         if validate_subreg fails.
11331
11332 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
11333
11334         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
11335         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
11336         early.
11337
11338 2011-05-12  DJ Delorie  <dj@redhat.com>
11339
11340         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
11341         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
11342         created builtin into rx_builtins array.
11343         (rx_builtin_decl): New function.
11344         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
11345
11346 2011-05-12  DJ Delorie  <dj@redhat.com>
11347             Nick Clifton  <nickc@redhat.com>
11348
11349         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
11350         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
11351         (rx_is_legitimate_address): Add pre-decrement and post-increment
11352         addressing in HImode and QImode.  Fix test for out of range
11353         REG+INT addressing.
11354         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
11355         (rx_align_for_label): Test label before extracting its usage count.
11356         (rx_adjust_insn_lengths): Fix selection of insn codes.
11357         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
11358
11359 2011-05-11  Jason Merrill  <jason@redhat.com>
11360
11361         * tree.c (type_hash_canon): Use struct tree_type_non_common.
11362
11363 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
11364
11365         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
11366         reindent the subsequent block.
11367
11368 2011-05-11  Satoru Takabayashi  <satorux@google.com>
11369             Paul Pluzhnikov  <ppluzhnikov@google.com>
11370
11371         * doc/install.texi (Configuration): Document --with-linker-hash-style.
11372         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
11373         * config.in: Add LINKER_HASH_STYLE.
11374         * configure.ac: Add --with-linker-hash-style.
11375         * configure: Regenerate.
11376
11377 2011-05-11  Richard Guenther  <rguenther@suse.de>
11378
11379         PR middle-end/48964
11380         * gimple.c (iterative_hash_canonical_type): Fix typo.
11381
11382 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
11383
11384         * config/i386/i386.c (legitimize_tls_address)
11385         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
11386         expanders directly for TARGET_GNU2_TLS.  Determine pic and
11387         __tls_get_addr symbol reference here.  Update call to
11388         gen_tls_global_dynamic_{32,64} for added arguments.
11389         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
11390         expanders directly for TARGET_GNU2_TLS.  Determine
11391         __tls_get_addr symbol reference here.  Update call to
11392         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
11393         unique UNSPEC REG_EQUIV to libcall block.
11394         (ix86_tls_get_addr): Declare static.
11395         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
11396         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
11397         Do not determine pic and __tls_get_addr symbol reference here. Do not
11398         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
11399         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
11400         (tls_global_dynamic_64): Add operand 2.  Do not determine
11401         __tls_get_addr symbol reference here.  Do not call
11402         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
11403         (tls_local_dynamic_base64): Ditto for operand 1.
11404
11405 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
11406
11407         * function.c (expand_function_start): Initialize stack_check_probe_note
11408         only if the generic stack checking mechanism is used.
11409
11410 2011-05-11  Richard Guenther  <rguenther@suse.de>
11411
11412         PR tree-optimization/15256
11413         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
11414         (A & B) | C, combine (A op CST1) op CST2.
11415         (tree_ssa_forward_propagate_single_use_vars): Only bother to
11416         visit assigns that have uses.
11417
11418 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
11419
11420         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
11421         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
11422         (unpack_ts_type_common_value_fields): ...this.  Update comment.
11423         (unpack_value_fields): Adjust for renaming.
11424         (lto_input_ts_type_tree_pointers): Split into...
11425         (lto_input_ts_type_common_tree_pointer): ...this and...
11426         (lto_input_ts_type_non_common_tree_pointers): ...this.
11427         (lto_input_tree_pointers): Adjust for above split.
11428         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
11429         (pack_ts_type_common_value_fields): ...this.  Update comment.
11430         (lto_output_ts_type_tree_pointers): Split into...
11431         (lto_output_ts_type_common_tree_pointers): ...this and...
11432         (lto_output_ts_type_non_common_tree_pointers): ...this.
11433         (lto_output_tree_pointers): Adjust for above split.
11434         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
11435         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
11436         * stor-layout.c (vector_type_mode): Adjust location of mode field.
11437         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
11438         Define.
11439         (struct tree_type): Split into...
11440         (struct tree_type_common: ...this and...
11441         (struct tree_type_with_lang_specific): ...this and...
11442         (struct tree_type_non_common): ...this.  Adjust accessor macros
11443         accordingly.
11444         (TYPE_VALUES_RAW): Define.
11445         (union tree_node): Update for above changes.
11446         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
11447         TS_TYPE_NON_COMMON.
11448         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
11449         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
11450         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
11451         * treestructu.def (TS_TYPE): Remove.
11452         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
11453         Define.
11454
11455 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
11456
11457         PR debug/48159
11458         * tree-ssa.c (reset_debug_uses): New function.
11459         * tree-flow.h (reset_debug_uses): New prototype.
11460         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
11461         * tree-loop-distribution.c (generate_loops_for_partition): Call
11462         reset_debug_uses on the stmts that will be removed.  Keep around
11463         all debug stmts, don't count them as bits in partition bitmap.
11464         (generate_builtin): Don't count debug stmts or labels as bits in
11465         partition bitmap.
11466
11467 2011-05-11  Richard Guenther  <rguenther@suse.de>
11468
11469         * gimple.c (gimple_type_hash_1): Merge with ...
11470         (gimple_type_hash): ... this.
11471         (gtc_visit): Remove mode parameter and simplify accordingly.
11472         (gimple_types_compatible_p_1): Likewise.
11473         (gimple_types_compatible_p): Likewise.
11474         (iterative_hash_gimple_type): Likewise.
11475         (visit): Likewise.
11476         (gimple_type_eq): Adjust.
11477
11478 2011-05-11  Revital Eres  <revital.eres@linaro.org>
11479
11480         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
11481         enters the branch create an anti edge in the opposite direction
11482         to prevent the creation of reg-moves.
11483         * modulo-sched.c: Adjust comment to reflect the fact we are
11484         scheduling closing branch.
11485         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
11486         (stage_count): New field in struct partial_schedule.
11487         (calculate_stage_count): New function.
11488         (normalize_sched_times): Rename to reset_sched_times and handle
11489         incrementing the sched time of the nodes by a constant value
11490         passed as parameter.
11491         (duplicate_insns_of_cycles): Skip closing branch.
11492         (sms_schedule_by_order): Schedule closing branch.
11493         (ps_insn_find_column): Handle closing branch.
11494         (sms_schedule): Call reset_sched_times and adjust the code to
11495         support scheduling of the closing branch.
11496         (ps_insert_empty_row): Update calls to normalize_sched_times
11497         and rotate_partial_schedule functions.
11498
11499 2011-05-11  Richard Guenther  <rguenther@suse.de>
11500
11501         PR middle-end/48953
11502         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
11503
11504 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
11505
11506         * opts.c (finish_options): Move warning settings from process_options.
11507         * toplev.c (process_options): Move warning settings to finish_options.
11508
11509 2011-05-11  Richard Guenther  <rguenther@suse.de>
11510
11511         PR tree-optimization/18041
11512         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
11513         (simplify_bitwise_binary): ... this.  Handle operand conversions
11514         by applying them to the result instead.
11515         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
11516
11517 2011-05-11  Richard Guenther  <rguenther@suse.de>
11518
11519         * gimple.c (gimple_canonical_types_compatible_p): Split out
11520         from gimple_types_compatible_p and friends.  Do not recurse
11521         to pointed-to types.
11522         (gimple_canonical_type_eq): Use it.
11523         (iterative_hash_canonical_type): Split out from
11524         iterative_hash_gimple_type and friends.  Do not recurse
11525         to pointed-to types.
11526         (gimple_canonical_type_hash): Use it, allocate the hash here.
11527
11528 2011-05-11  Revital Eres  <revital.eres@linaro.org>
11529
11530         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
11531         recognizing doloop.
11532
11533 2011-05-11  Revital Eres  <revital.eres@linaro.org>
11534
11535         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
11536         instead of PREV_INSN.
11537
11538 2011-05-11  Revital Eres  <revital.eres@linaro.org>
11539
11540         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
11541         * loop-doloop.c (doloop_condition_get): Likewise.
11542         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
11543         (doloop_end): New.
11544         * config/arm/arm.md (*addsi3_compare0): Remove "*".
11545
11546 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
11547
11548         * tree.def (CASE_LABEL_EXPR): Add an operand.
11549         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
11550
11551 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
11552
11553         * c-decl.c (c_override_global_bindings_to_false): Remove.
11554         (global_bindings_p): Don't check
11555         c_override_global_bindings_to_false.
11556         * c-tree.h (c_override_global_bindings_to_false): Remove.
11557         * c-typeck.c (composite_type): Don't set
11558         c_override_global_bindings_to_false.
11559
11560 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
11561
11562         PR target/48857, 48495
11563         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
11564         (VSX_MODE): Ditto.
11565         (VSX_MOVE_MODE): Ditto.
11566         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
11567         VSX vector types.  Add V2DImode.
11568         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
11569         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
11570         (MODES_TIEABLE_P): Ditto.
11571
11572         * config/rs6000/rs6000.c (rs6000_emit_move): Use
11573         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
11574         VSX_VECTOR_MODE.
11575         (init_cumulative_args): Ditto.
11576         (rs6000_function_arg_boundary): Ditto.
11577         (rs6000_function_arg_advance_1): Ditto.
11578         (rs6000_function_arg): Ditto.
11579         (rs6000_function_ok_for_sibcall): Ditto.
11580         (emit_frame_save): Ditto.
11581         (rs6000_function_value): Ditto.
11582         (rs6000_libcall_value): Ditto.
11583
11584 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
11585
11586         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
11587         i386/darwin-lib.h to $libgcc_tm_file.
11588         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
11589
11590 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
11591
11592         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
11593
11594 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
11595
11596         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
11597         * config/rs6000/rs6000-tables.opt: New file (generated).
11598         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
11599         rs6000/rs6000-tables.opt to extra_options.
11600         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
11601         * config/rs6000/rs6000.c (rs6000_select): Remove.
11602         (processor_target_table): Move contents to rs6000-cpus.def.
11603         (darwin_rs6000_override_options): Check
11604         global_options_set.x_rs6000_cpu_index instead of
11605         rs6000_select[1].string.
11606         (rs6000_option_override_internal): Likewise.
11607         (rs6000_handle_option): Don't assert that global structures are in
11608         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
11609         (rs6000_default_cpu): New variable.
11610         (rs6000_file_start): Set it instead of local default_cpu.  Check
11611         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
11612         global_options_set.x_rs6000_tune_index instead of rs6000_select.
11613         (rs6000_darwin_file_start): Check rs6000_default_cpu and
11614         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
11615         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
11616         rs6000_select): Remove.
11617         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
11618         Remove.
11619         (mcpu=, mtune=): Use Var, Init, Enum and Save.
11620         * config/rs6000/t-rs6000
11621         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
11622         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
11623         global_options_set.x_rs6000_cpu_index instead of
11624         rs6000_select[1].string.
11625         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
11626         global_options_set.x_rs6000_cpu_index instead of
11627         rs6000_select[1].string.
11628
11629 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
11630
11631         * config.gcc (libgcc_tm_file): Define instead of including files
11632         from ../../libgcc/config/ in tm_file.
11633         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
11634         * configure: Regenerate.
11635         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
11636         libgcc_tm.h, cs-libgcc_tm.h): New.
11637         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
11638         (clean): Remove libgcc_tm.h.
11639         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
11640         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
11641         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
11642
11643 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
11644
11645         PR target/48896
11646         * config/avr/avr.c (avr_ret_register): Return unsigned int
11647         instead of int.
11648         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
11649         it to avr_libcall_value.
11650         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
11651         expand_expr.
11652         (avr_expand_binop_builtin): Ditto.
11653         (avr_expand_unop_builtin): Ditto.
11654
11655 2011-05-10  DJ Delorie  <dj@redhat.com>
11656
11657         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
11658         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
11659         * config/rx/rx.c (rx_align_for_label): Add label and
11660         uses_threshold parameters.  Do not align when the label is not
11661         used enough.
11662         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
11663
11664 2011-05-10  Richard Guenther  <rguenther@suse.de>
11665
11666         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
11667         a series of conversions and apply foldings similar to what
11668         fold-const does.
11669         (tree_ssa_forward_propagate_single_use_vars): Call it.
11670
11671 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
11672
11673         PR tree-optimization/48611
11674         PR tree-optimization/48794
11675         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
11676         referenced from RESX or EH_DISPATCH arguments.
11677
11678         PR debug/48928
11679         * dfp.c (decimal_to_decnumber): Handle conversion from
11680         dconst{1,2,m1,half}.
11681
11682 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
11683
11684         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
11685         for !flag_prefer_avx128.
11686         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
11687
11688 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
11689
11690         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
11691         (fold_ternary_loc): Use expr_location_or.
11692
11693 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
11694
11695         PR debug/48853
11696         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
11697         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
11698         Pmode and mem_mode is not VOIDmode.
11699
11700 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
11701
11702         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
11703         TYPE_QUAL_RESTRICT): Convert to enum.
11704
11705 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
11706
11707         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
11708         (const_pow2_1_to_8_operand): Ditto.
11709         (const_pow2_1_to_128_operand): Ditto.
11710         (const_pow2_1_to_32768_operand): Ditto.
11711         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
11712         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
11713         in insn constraint to check integer value of operand 3.
11714         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
11715
11716         (PINSR_MODE): New mode iterator.
11717         (sse2p4_1): New mode attribute.
11718         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
11719         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
11720         iterator.  Use const_int_operand instead of
11721         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
11722         exact_log2 in insn constraint to check integer value of operand 3.
11723
11724 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
11725
11726         * config/i386/sse.md (blendbits): Remove mode attribute.
11727         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
11728         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
11729         Check integer value of operand 3 in insn constraint.
11730
11731 2011-05-09  Richard Guenther  <rguenther@suse.de>
11732
11733         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
11734         for diagnostics.
11735         (lto_symtab_merge): Likewise.  Do not register types here.
11736         (lto_symtab_merge_decls_2): Likewise.
11737         (lto_symtab_merge_decls_1): Likewise.
11738         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
11739         * gimple.c (enum gtc_mode): Declare.
11740         (gimple_types_compatible_p): Make static.
11741
11742 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11743
11744         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
11745         temporary register to match Pmode.
11746
11747 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
11748
11749         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
11750         and *vec_concatv4si_1_avx.
11751
11752 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
11753
11754         PR rtl-optimization/48927
11755         * ira-conflicts.c (commutative_constraint_p): Use
11756         recog_data.alternative_enabled_p to disable alternatives where
11757         "enabled" attribute is false.
11758         (get_dup_num): Ditto.
11759         * ira-lives.c (single_reg_class): Ditto.
11760         (ira_implicitly_set_insn_hard_regs): Ditto.
11761
11762 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
11763
11764         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
11765         (dataflow_set_preserve_mem_locs): Likewise.
11766
11767 2011-05-09  Philipp Thomas  <pth@suse.de>
11768
11769         * config/mep/mep.c (mep_validate_vliw): Syntax description
11770         should not be translated.
11771
11772 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
11773
11774         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
11775         * config/mips/mips-tables.opt: New file (generated).
11776         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
11777         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
11778         MIPS_ARCH_OPTION_NATIVE): Define.
11779         * config/mips/mips.c (mips_cpu_info_table): Move contents to
11780         mips-cpus.def.
11781         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
11782         mips_parse_cpu): Remove.
11783         (mips_cpu_info_from_opt, mips_default_arch): New.
11784         (mips_handle_option): Don't assert that global structures are in
11785         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
11786         (mips_option_override): Use new variables and functions to set
11787         state of these options.  Use strcmp to check for individual CPU names.
11788         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
11789         definition.
11790         * config/mips/mips.opt (march=): Use ToLower and Enum.
11791         (mips): Use ToLower, Enum and Var.
11792         (mtune=): Use ToLower and Enum.
11793         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
11794
11795 2011-05-08  Jan Hubicka  <jh@suse.cz>
11796
11797         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
11798         Arrange type pairs to be UID ordered.
11799         (gimple_lookup_type_leader): Make inline.
11800
11801 2011-05-09  Nick Clifton  <nickc@redhat.com>
11802
11803         PR target/48899
11804         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
11805         PROCESSOR_DEFAULT.
11806
11807         PR target/48897
11808         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
11809         variable 's'.
11810
11811 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
11812
11813         * combine.c (simplify_comparison): Abstract out parts into...
11814         (simplify_compare_const): ... new function.
11815         (try_combine): Generalize parallel arithmetic/compare combining
11816         to call simplify_compare_const() and CANONICALIZE_COMPARE().
11817
11818 2011-05-08  Jan Hubicka  <jh@suse.cz>
11819
11820         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
11821         (cgraph_create_virtual_clone): Call hooks once virtual clone
11822         is finished.
11823         * cgraph.h (cgraph_clone_node): Update prototype.
11824         * ipa-cp.c (ipcp_estimate_growth): Use
11825         estimate_ipcp_clone_size_and_time.
11826         * ipa-inline-transform.c (clone_inlined_nodes): Update.
11827         * lto-cgraph.c (input_node): Update.
11828         * ipa-inline.c (recursive_inlining): Update.
11829         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
11830         (evaluate_conditions_for_known_args): Break out from ...
11831         (evaluate_conditions_for_edge): ... here.
11832         (evaluate_conditions_for_ipcp_clone): New function.
11833         (inline_node_duplication_hook): Update clone summary based
11834         on parameter map.
11835         (estimate_callee_size_and_time): Rename to ...
11836         (estimate_node_size_and_time): take NODE instead of EDGE;
11837         take POSSIBLE_TRUTHS as argument.
11838         (estimate_callee_size_and_time): Update.
11839         (estimate_ipcp_clone_size_and_time): New function.
11840         (do_estimate_edge_time): Update.
11841
11842 2011-05-08  Richard Guenther  <rguenther@suse.de>
11843
11844         PR middle-end/48908
11845         PR middle-end/48905
11846         * expmed.c (expand_shift_1): Compute adjusted constant shift
11847         amount manually.
11848
11849 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
11850
11851         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
11852
11853 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
11854
11855         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
11856
11857 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
11858
11859         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
11860
11861 2011-05-07  Jan Hubicka  <jh@suse.cz>
11862
11863         * ipa-inline-transform.c (inline_call): Account when program size
11864         decreases.
11865         * ipa-inline.c (relative_time_benefit): New function.
11866         (edge_badness): Reorganize to be power 2 based; fix thinko when
11867         computing badness for negative growth; update comments to match
11868         reality; better dumps.
11869
11870 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
11871
11872         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
11873         type to bool and adjust comment.
11874         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
11875         (fold_mathfn_compare): Remove calls to global_bindings_p.
11876         (fold_inf_compare): Likewise.
11877         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
11878         * c-tree.h (global_bindings_p): Adjust prototype.
11879         * c-decl.c (global_bindings_p): Return bool and simplify.
11880
11881 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
11882
11883         PR tree-optimization/48837
11884         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
11885         when accumulator transformation is performed.
11886
11887 2011-05-06  Jan Hubicka  <jh@suse.cz>
11888
11889         * i386.h (ix86_tune_indices): Add
11890         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
11891         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
11892         * i386.c (initial_ix86_tune_features): Add
11893         X86_SOFTARE_PREFETCHING_BENEFICIAL.
11894         (software_prefetching_beneficial_p): Remove predicate.
11895         (ix86_option_override_internal): Use new macro.
11896
11897 2011-05-06  Jan Hubicka  <jh@suse.cz>
11898
11899         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
11900
11901 2011-05-06  Jan Hubicka  <jh@suse.cz>
11902
11903         * cgraph.c (cgraph_add_thunk): Create real function node instead
11904         of alias node; finalize it and mark needed/reachale; arrange visibility
11905         to be right and add it into the corresponding same comdat group list.
11906         (dump_cgraph_node): Dump thunks.
11907         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
11908         cgraph_function_with_gimple_body_p,
11909         cgraph_first_function_with_gimple_body,
11910         cgraph_next_function_with_gimple_body): New functions.
11911         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
11912         New macros.
11913         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
11914         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
11915         * cgraphunit.c (cgraph_finalize_function): Only look into possible
11916         devirtualization when optimizing.
11917         (verify_cgraph_node): Verify thunks.
11918         (cgraph_analyze_function): Analyze thunks.
11919         (cgraph_mark_functions_to_output): Output thunks only in combination
11920         with function they are assigned to.
11921         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
11922         alias into normal node.
11923         (assemble_thunks): New functoin.
11924         (cgraph_expand_function): Use it.
11925         * lto-cgraph.c (lto_output_node): Stream thunks.
11926         (input_overwrite_node): Stream in thunks.
11927         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
11928         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
11929         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
11930         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
11931         (inline_analyze_function): Do not care about thunk jump functions.
11932         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
11933         * ipa-prop.c (ipa_prop_write_jump_functions): Use
11934         cgraph_function_with_gimple_body_p.
11935         * passes.c (do_per_function_toporder): Use
11936         cgraph_function_with_gimple_body_p.
11937         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
11938         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
11939         (function_called_by_processed_nodes_p): Likewise.
11940
11941 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
11942
11943         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
11944         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
11945         entries.
11946         (mabi=): Replace with separate entries for mabi=altivec,
11947         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
11948         mabi=ieeelongdouble and mabi=ibmlongdouble.
11949         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
11950         check for -mabi=spe without SPE ABI support here.
11951         (rs6000_handle_option): Replace OPT_mabi_ handling with
11952         OPT_mabi_altivec and OPT_mabi_spe handling.
11953
11954 2011-05-06  Cary Coutant  <ccoutant@google.com>
11955
11956         * dwarf2out.c (contains_subprogram_definition): New function.
11957         (should_move_die_to_comdat): Call it.
11958
11959 2011-05-06  Jeff Law  <law@redhat.com>
11960
11961         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
11962         remove_ctrl_stmt_and_useless_edges.
11963         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
11964         (fixup_template_block, thread_single_edge): Likewise.
11965         (mark_threaded_blocks): Use THREAD_TARGET.
11966
11967 2011-05-06  Alan Modra  <amodra@gmail.com>
11968
11969         PR target/48900
11970         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
11971         const0_rtx as the arg to the dummy __tls_get_addr libcall.
11972
11973 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
11974
11975         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
11976         constraint modifier to "r".
11977
11978 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
11979
11980         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
11981         fall through for OPT_mcmodel_.
11982
11983 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11984
11985         * config/s390/s390.c (s390_asm_trampoline_template): Comment
11986         instruction sizes.
11987         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
11988
11989 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11990
11991         PR target/47930
11992         * config/arm/arm.opt (marm): Document it.
11993         (mthumb): Reject negative variant.
11994
11995 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
11996
11997         PR target/48898
11998         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
11999         Fix typo in "ccvt" variable name.
12000
12001 2011-05-06  Tristan Gingold  <gingold@adacore.com>
12002
12003         PR target/48895
12004         * config/vms/vms-ar.c (main): Remove cwd variable.
12005
12006 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
12007
12008         PR debug/48902
12009         * var-tracking.c (prepare_call_arguments): Move else before #endif.
12010
12011 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
12012
12013         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
12014         * gimplify.c (gimplify_switch_expr): Likewise.
12015         * omp-low.c (expand_omp_sections): Likewise.
12016         * tree-eh.c (lower_try_finally_switch): Likewise.
12017         (lower_eh_dispatch): Likewise.
12018         * tree.h (build_case_label): Declare.
12019         * tree.c (build_case_label): Define.
12020
12021 2011-05-05  Jason Merrill  <jason@redhat.com>
12022
12023         PR c++/40975
12024         * tree-inline.c (copy_tree_r): Use copy_statement_list.
12025         (copy_statement_list): Don't recurse.
12026         * stor-layout.c (copy_self_referential_tree_r): Don't allow
12027         STATEMENT_LIST.
12028
12029 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
12030
12031         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
12032         through from -mfpu= handling.
12033         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
12034
12035 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
12036
12037         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
12038         POST_MODIFY.
12039
12040 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
12041
12042         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
12043         for 11.31.
12044         (hppa[12]*-*-hpux11*): Ditto.
12045         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
12046         * config/ia64/hpux-unix2003.h: New.
12047         * config/pa/pa-hpux1131.opt: New.
12048         * config/pa/pa-hpux1131.h: New.
12049         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
12050         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
12051         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
12052
12053 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
12054
12055         PR debug/48853
12056         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
12057         instead of mode as 3rd argument to recursive call.
12058         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
12059         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
12060         VOIDmode.
12061         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
12062         don't give up if mode is Pmode and mem_mode is not VOIDmode.
12063         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
12064         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
12065
12066 2011-05-05  Julian Brown  <julian@codesourcery.com>
12067
12068         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
12069         parenthesis in D-register case.
12070
12071 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
12072
12073         * opt-functions.awk (var_type_struct): Handle Enum options.
12074         * optc-gen.awk: Don't check range of variables of character type.
12075         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
12076         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
12077         rs6000_sdata_name, rs6000_explicit_options): Remove.
12078         (rs6000_option_override_internal): Check for -malign-power here.
12079         Use global_options_set instead of rs6000_explicit_options.
12080         (rs6000_parse_fpu_option): Remove.
12081         (rs6000_handle_option): Access variables via opts and opts_set
12082         pointers.  Use error_at and warning_at.  Add fall-through
12083         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
12084         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
12085         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
12086         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
12087         here.  Don't use rs6000_parse_fpu_option.
12088         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
12089         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
12090         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
12091         (mrecip=): Use Var.
12092         (mspe): Use Var and Save.
12093         (mtraceback=): Use Enum and Var.
12094         (rs6000_traceback_type): New Enum and EnumValue entries.
12095         (mfloat-gprs=): Use Enum, Var and Save.
12096         (rs6000_float_gprs): New Enum and EnumValue entries.
12097         (mlong-double-): use Var and Save.
12098         (msched-costly-dep=, minsert-sched-nops=): Use Var.
12099         (malign-): Use Enum and Var.
12100         (rs6000_alignment_flags): New Enum and EnumValue entries.
12101         (mfpu=): Use Enum.
12102         (fpu_type_t): New Enum and EnumValue entries.
12103         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
12104         global_options_set instead of rs6000_explicit_options.
12105         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
12106         global_options_set instead of rs6000_explicit_options.
12107         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
12108         global_options_set instead of rs6000_explicit_options.
12109         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
12110         global_options_set instead of rs6000_explicit_options.
12111         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
12112         global_options_set instead of rs6000_explicit_options.
12113         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
12114         global_options_set instead of rs6000_explicit_options.
12115         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
12116         definition.
12117         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
12118         global_options_set instead of rs6000_explicit_options.
12119         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
12120         (rs6000_cmodel): New Enum and EnumValue entries.
12121         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
12122         global_options_set instead of rs6000_explicit_options.
12123         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
12124         (mtls-size=): Use Enum and Var.
12125         (rs6000_tls_size): New Enum and EnumValue entries.
12126
12127 2011-05-05  Michael Matz  <matz@suse.de>
12128
12129         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
12130         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
12131         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
12132         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
12133         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
12134         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
12135         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
12136         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
12137         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
12138         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
12139         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
12140         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
12141         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
12142         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
12143         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
12144         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
12145
12146 2011-05-05  Richard Guenther  <rguenther@suse.de>
12147
12148         * expmed.c (expand_variable_shift): Rename to ...
12149         (expand_shift_1): ... this.  Take an expanded shift amount.
12150         For rotates recurse directly not building trees for the shift amount.
12151         (expand_variable_shift): Wrap around expand_shift_1.
12152         (expand_shift): Adjust.
12153
12154 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
12155
12156         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
12157
12158 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
12159
12160         * tree.h (get_pending_sizes): Remove prototype.
12161         (put_pending_size): Likewise.
12162         (put_pending_sizes): Likewise.
12163         * stor-layout.c (pending_sizes): Delete.
12164         (get_pending_sizes): Likewise.
12165         (put_pending_size): Likewise.
12166         (put_pending_sizes): Likewise.
12167         (variable_size): Do not call put_pending_size and tidy up.
12168         * function.h (struct function): Remove dont_save_pending_sizes_p.
12169         * lto-streamer-in.c (input_function): Do not stream it.
12170         * lto-streamer-out.c (output_function): Likewise.
12171         * tree-inline.c (initialize_cfun): Do not copy it.
12172         * c-decl.c (store_parm_decls): Do not set it.
12173         * omp-low.c (create_task_copyfn): Likewise.
12174         * tree-optimize.c (tree_rest_of_compilation): Likewise.
12175
12176 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
12177
12178         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
12179         conditions.
12180         (*movdf_internal): Ditto.
12181         (*movdf_internal_nointeger): Ditto.
12182         (*movsf_internal): Ditto.
12183
12184 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
12185
12186         * c-decl.c (finish_decl): Don't call get_pending_sizes.
12187         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
12188         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
12189         (c_variable_size): Remove.
12190         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
12191         call put_pending_sizes.
12192         (get_parm_info): Add parameter expr.  Use it to set
12193         arg_info->pending_sizes.
12194         (store_parm_decls): Use arg_info->pending_sizes instead or calling
12195         get_pending_sizes.
12196         * c-parser.c (c_parser_parms_declarator): Update call to
12197         c_parser_parms_list_declarator.
12198         (c_parser_parms_list_declarator): Take parameter expr.  Update
12199         call to push_parm_decl.  Update recursive call.  Don't call
12200         get_pending_sizes.  Update calls to get_parm_info.
12201         (c_parser_objc_method_definition): Update calls to
12202         c_parser_objc_method_decl and objc_start_method_definition.
12203         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
12204         (c_parser_objc_method_decl): Add parameter expr.  Update call to
12205         grokparm.
12206         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
12207         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
12208         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
12209
12210 2011-05-05  Michael Hope  <michael.hope@linaro.org>
12211
12212         PR pch/45979
12213         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
12214         __ARM_EABI__ hosts.
12215
12216 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12217
12218         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
12219         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
12220         (spu_output_mi_thunk): New function.
12221
12222 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12223
12224         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
12225         targetm.asm_out.print_operand.
12226         * config/sol2.c: Include target.h.
12227
12228 2011-05-04  Jan Hubicka  <jh@suse.cz>
12229
12230         * ipa-inline.c (reset_edge_caches): New function.
12231         (update_caller_keys): Add check_inlinablity_for; do not
12232         reset edge caches; remove now unnecesary loop.
12233         (update_callee_keys): Add comments; reset node_growth_cache of callee.
12234         (update_all_callee_keys): Likewise.
12235         (inline_small_functions): Sanity check cache; update code
12236         recomputing it.
12237
12238 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
12239
12240         PR rtl-optimization/47612
12241         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
12242         as the last insn of the sequence to be moved.
12243
12244 2011-05-04  Tobias Burnus  <burnus@net-b.de>
12245
12246         PR fortran/48864
12247         * doc/invoke.texi (Ofast): Document that it
12248         enables Fortran's -fno-protect-parens.
12249
12250 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
12251
12252         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
12253
12254 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
12255
12256         * stor-layout.c (variable_size): Do not issue errors.
12257
12258 2011-05-04  Richard Guenther  <rguenther@suse.de>
12259
12260         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
12261         for array-ref indices.
12262         (tree_coverage_counter_addr): Likewise.
12263         (build_fn_info_type): Use size_int for index types.
12264         (build_gcov_info): Likewise.
12265
12266 2011-05-04  Richard Guenther  <rguenther@suse.de>
12267
12268         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
12269         to build_int_cst.
12270         * c-typeck.c (really_start_incremental_init): Use bitsize_int
12271         for constructor indices.
12272         (push_init_level): Likewise.
12273
12274 2011-05-04  Richard Guenther  <rguenther@suse.de>
12275
12276         * explow.c (promote_mode): Move variable declarations before code.
12277
12278 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
12279
12280         * tree.h (build_function_type_array): Declare.
12281         (build_varargs_function_type_array): Declare.
12282         (build_function_type_vec, build_varargs_function_type_vec): Define.
12283         * tree.c (build_function_type_array_1): New function.
12284         (build_function_type_array): New function.
12285         (build_varargs_function_type_array): New function.
12286
12287 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
12288
12289         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
12290         before setting STMT_VINFO_TYPE.
12291
12292 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12293
12294         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
12295         instead of spu_pass_by_reference.
12296
12297 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12298
12299         * calls.c (emit_library_call_value_1): Invoke
12300         promote_function_mode hook on libcall arguments.
12301         * explow.c (promote_function_mode, promote_mode): Handle TYPE
12302         argument being NULL.
12303         * targhooks.c (default_promote_function_mode): Lisewise.
12304         * config/s390/s390.c (s390_promote_function_mode): Likewise.
12305         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
12306
12307         * doc/tm.texi: Document that TYPE argument might be NULL.
12308
12309 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
12310
12311         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
12312
12313 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
12314
12315         From Bernd Schmidt
12316         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
12317
12318 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12319
12320         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
12321         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
12322         Move ...
12323         * mips-tfile.c: ... here.
12324         Don't include coretypes.h, tm.h, filenames.h.
12325         (saber_stop): Remove definition and all calls.
12326         [__SABER__]: Remove.
12327         (__LINE__): Remove default.
12328         (Size_t, Ptrdiff_t): Remove definitions.
12329         Replace by size_t, ptrdiff_t.
12330         [!MIPS_DEBUGGING_INFO]: Remove.
12331         (SHASH_SIZE, THASH_SIZE): Remove defaults.
12332         (progname): Add const.
12333         (STATIC): Remove.
12334         Replace all uses by static.
12335         (ALIGN_SYMTABLE_OFFSET): Remove default.
12336         * mips-tdump.c: Don't include coretypes.h, tm.h.
12337         Remove !MIPS_IS_STAB guard.
12338         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
12339         $(TM_H), filenames.h dependencies.
12340         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
12341
12342 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
12343
12344         From Jie Zhang
12345         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
12346         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
12347
12348 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
12349
12350         From Bernd Schmidt
12351         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
12352         account and save/restore RETS.
12353         (PROFILE_BEFORE_PROLOGUE): Define.
12354         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
12355         the push insn to use predecrement.
12356
12357 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
12358
12359         From Jie Zhang
12360         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
12361
12362 2011-05-04  Nick Clifton  <nickc@redhat.com>
12363
12364         * config/mn10300/mn10300.c: Include cfgloop.h.
12365         (DUMP): New macro.
12366         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
12367         Lcc or a FLcc insn into the instruction stream.
12368         (mn10300_block_contains_call): New function.  Returns true if the
12369         given basic block contains a CALL insn.
12370         (mn10300_loop_contains_call_insn): New function.  Returns true if
12371         the given loop contains a CALL insn.
12372         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
12373         to use the SETLB and Lcc or FLcc insns.
12374         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
12375         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
12376         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
12377         disable the SETLB optimization.
12378         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
12379         __SETLB__ or __NO_SETLB__.
12380         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
12381         (movsf_internal): Handle MDR register.
12382         (cmpsi): Make visible.
12383         (setlb): New pattern.
12384         (Lcc): New pattern.
12385         (FLcc): New pattern.
12386
12387 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
12388
12389         PR target/48860
12390         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
12391         for reg<->xmm moves.
12392         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
12393         (vec_concatv2di_rex64_sse): Ditto.
12394         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
12395         (*vec_extractv2di_1_rex64): Ditto.
12396
12397         Revert:
12398         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
12399
12400         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
12401         reg<->xmm moves.
12402         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
12403
12404 2011-05-04  Richard Guenther  <rguenther@suse.de>
12405
12406         * tree.h (int_const_binop): Remove notrunc argument.
12407         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
12408         create integer constants that are properly truncated.
12409         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
12410         (const_binop): Remove zero notrunc argument to int_const_binop.
12411         (size_binop_loc): Likewise.
12412         (fold_div_compare): Likewise.
12413         (maybe_canonicalize_comparison_1): Likewise.
12414         (fold_comparison): Likewise.
12415         (fold_binary_loc): Likewise.
12416         (multiple_of_p): Likewise.
12417         * expr.c (store_constructor): Likewise.
12418         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
12419         (maybe_fold_stmt_addition): Likewise.
12420         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
12421         * stor-layout.c (layout_type): Likewise.
12422         * tree-data-ref.c (tree_fold_divides_p): Likewise.
12423         * tree-sra.c (build_ref_for_offset): Likewise.
12424         (build_user_friendly_ref_for_offset): Likewise.
12425         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
12426         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
12427         * tree-ssa-loop-niter.c (inverse): Likewise.
12428         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
12429         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
12430         * tree-switch-conversion.c (check_range): Likewise.
12431         (build_constructors): Likewise.
12432         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
12433         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
12434         (extract_range_from_assert): Likewise.
12435         (vrp_int_const_binop): Likewise.
12436         (extract_range_from_binary_expr): Likewise.
12437         (extract_range_from_unary_expr): Likewise.
12438         (check_array_ref): Likewise.
12439         (find_case_label_range): Likewise.
12440         (simplify_div_or_mod_using_ranges): Likewise.
12441         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
12442         comparing case labels for merging.
12443
12444 2011-05-03  Mark Wielaard  <mjw@redhat.com>
12445
12446         * dwarf2out.c (debug_str_hash_forced): Removed.
12447         (gen_label_for_indirect_string): Removed.
12448         (get_debug_string_label): Removed.
12449         (AT_string_form): Generate label directly.
12450         (output_indirect_string): Test indirect_string_node for
12451         DW_FORM_strp instead of checking label and refcount.
12452         (prune_indirect_string): Removed.
12453         (prune_unused_types): Don't check debug_str_hash_forced or
12454         call prune_indirect_string.
12455
12456 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
12457
12458         PR other/48093
12459         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
12460
12461 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
12462
12463         PR debug/47994
12464         PR debug/47919
12465         * combine.c (try_combine): Skip debug insns at m_split tests.
12466
12467 2011-04-26  Mark Wielaard  <mjw@redhat.com>
12468
12469         PR42288
12470         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
12471         when info_section_emitted.
12472
12473 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
12474
12475         * config/mips/mips-opts.h: New.
12476         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
12477         to mips-opts.h.
12478         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
12479         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
12480         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
12481         via opts pointer.
12482         * config/mips/mips.h (enum mips_code_readable_setting): Move to
12483         mips-opts.h.
12484         (mips_abi, mips_code_readable): Don't declare.
12485         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
12486         (mabi=): Use Enum and Var.
12487         (mips_abi): New Enum and EnumValue entries.
12488         (mcode-readable=): Use Enum and Var.
12489         (mips_code_readable_setting): New Enum and EnumValue entries.
12490         (mr10k-cache-barrier=): Use Enum and Var.
12491         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
12492
12493 2011-05-03  Jan Hubicka  <jh@suse.cz>
12494
12495         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
12496         replace hash by pointer map.
12497         (cgraph_node_set_element_def, cgraph_node_set_element,
12498         const_cgraph_node_set_element, varpool_node_set_element_def,
12499         varpool_node_set_element, const_varpool_node_set_element): Remove.
12500         (free_cgraph_node_set, free_varpool_node_set): New function.
12501         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
12502         * tree-emutls.c: Free varpool node set.
12503         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
12504         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
12505         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
12506         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
12507         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
12508         Move here from ipa.c; implement using pointer_map
12509         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
12510         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
12511         debug_cgraph_node_set, varpool_node_set_new,
12512         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
12513         dump_varpool_node_set, debug_varpool_node_set):
12514         Move to ipa-uitls.c.
12515         * passes.c (ipa_write_summaries): Update.
12516
12517 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
12518
12519         From Mike Frysinger:
12520         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
12521         bf542/bf544/bf547/bf548/bf549.
12522
12523 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
12524
12525         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
12526
12527 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
12528
12529         From Bernd Schmidt:
12530         * config/bfin/bfin.md (MOVCC): New mode_macro.
12531         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
12532         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
12533         comments from generated assembly.
12534
12535 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
12536
12537         From Bernd Schmidt
12538         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
12539         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
12540         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
12541         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
12542         * config/bfin/lib1funcs.asm (___muldi3): New function.
12543
12544 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
12545
12546         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
12547         build_function_type_list instead of build_function_type.
12548         Rearrange initialization of `args' to do so.
12549
12550 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
12551
12552         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
12553         instead of build_function_type.
12554
12555 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
12556
12557         * config/rs6000/rs6000.c (spe_init_builtins): Call
12558         build_function_type_list instead of build_function_type.
12559         (paired_init_builtins, altivec_init_builtins): Likewise.
12560         (builtin_function_type): Likewise.
12561
12562 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
12563
12564         * config/sh/sh.c (sh_media_init_builtins): Call
12565         build_function_type_list instead of build_function_type.
12566
12567 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
12568
12569         * config/sparc/sparc.c (sparc_file_end): Call
12570         build_function_type_list instead of build_function_type.
12571
12572 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
12573
12574         * config/alpha/alpha.c (alpha_init_builtins): Call
12575         build_function_type_list instead of build_function_type.
12576
12577 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
12578
12579         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
12580         build_function_type_list instead of build_function_type.
12581
12582 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
12583
12584         * config/iq2000/i2000.c (iq2000_init_builtins): Call
12585         build_function_type_list instead of build_function_type.
12586         Delete `endlink' variable.
12587
12588 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
12589
12590         * config/avr/avr.c (avr_init_builtins): Call
12591         build_function_type_list instead of build_function_type.
12592
12593 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
12594
12595         * config/picochip/picochip.c (picochip_init_builtins): Call
12596         build_function_type_list instead of build_function_type.
12597         Delete `endlink' variable.
12598
12599 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
12600
12601         * config/bfin/bfin.c (bfin_init_builtins): Call
12602         build_function_type_list instead of build_function_type.
12603
12604 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
12605
12606         From Bernd Schmidt
12607         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
12608         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
12609
12610 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
12611
12612         From Jie Zhang:
12613         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
12614         libbffastfp overrides libgcc when -mfast-fp.
12615
12616 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
12617
12618         Originally from Bernd Schmidt
12619         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
12620         * config/bfin/bfin.c (override_options): Test it and error if
12621         TARGET_FDPIC.
12622
12623 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
12624
12625         Originally From Bernd Schmidt
12626         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
12627         FD-PIC.
12628
12629 2011-05-03  Jeff Law  <law@redhat.com>
12630
12631         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
12632         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
12633         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
12634         than accessing AUX field directly.  Free the AUX field before
12635         clearing it.
12636         (thread_block, thread_through_loop_header): Likewise.
12637         (thread_single_edge, mark_threaded_blocks): Likewise.
12638         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
12639         (register_jump_thread): Do not attempt to thread to a NULL edge.
12640
12641 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
12642
12643         * function.c (init_function_start): Call decide_function_section.
12644         * varasm.c (decide_function_section): New function.
12645         (assemble_start_function): When not using
12646         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
12647         or first_function_block_is_cold.
12648         * rtl.h (decide_function_section): Declare.
12649
12650 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
12651             Jakub Jelinek  <jakub@redhat.com>
12652
12653         PR target/48774
12654         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
12655         only succeed if req_mode is the same as set_mode.
12656
12657 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
12658
12659         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
12660         * genemit.c (gen_exp): Handle RETURN.
12661         * emit-rtl.c (verify_rtx_sharing): Likewise.
12662         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
12663         * rtl.c (copy_rtx): RETURN is shared.
12664         * rtl.h (enum global_rtl_index): Add GR_RETURN.
12665         (ret_rtx): New.
12666         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
12667         * config/s390/s390.c (s390_emit_epilogue): Likewise.
12668         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
12669         * config/cris/cris.c (cris_expand_return): Likewise.
12670         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
12671         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
12672         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
12673         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
12674         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
12675         Likewise.
12676         * config/v850/v850.c (expand_epilogue): Likewise.
12677         * config/bfin/bfin.c (bfin_expand_call): Likewise.
12678         * config/arm/arm.md (epilogue): Likewise.
12679         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
12680         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
12681         variable to ret_reg.
12682
12683 2011-05-03  Richard Guenther  <rguenther@suse.de>
12684
12685         PR lto/48846
12686         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
12687         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
12688         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
12689
12690 2011-05-03  Richard Guenther  <rguenther@suse.de>
12691
12692         * c-decl.c (grokdeclarator): Instead of looking at
12693         TREE_OVERFLOW check if the constant fits in the index type.
12694
12695 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
12696
12697         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
12698         (vec_store_lanes<mode><mode>): Likewise.
12699
12700 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
12701
12702         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
12703         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
12704         convert_optab_index values.
12705         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
12706         * genopinit.c (optabs): Initialize the new optabs.
12707         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
12708         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
12709         (expand_STORE_LANES): New functions.
12710         * tree.h (build_array_type_nelts): Declare.
12711         * tree.c (build_array_type_nelts): New function.
12712         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
12713         (vect_model_load_cost): Likewise.
12714         (vect_store_lanes_supported, vect_load_lanes_supported)
12715         (vect_record_strided_load_vectors): Declare.
12716         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
12717         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
12718         (vect_transform_strided_load): Split out statement recording into...
12719         (vect_record_strided_load_vectors): ...this new function.
12720         * tree-vect-stmts.c (create_vector_array, read_vector_array)
12721         (write_vector_array, create_array_ref): New functions.
12722         (vect_model_store_cost): Add store_lanes_p argument.
12723         (vect_model_load_cost): Add load_lanes_p argument.
12724         (vectorizable_store): Try to use store-lanes functions for
12725         interleaved stores.
12726         (vectorizable_load): Likewise load-lanes and loads.
12727         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
12728         to vect_model_store_cost.
12729         (vect_build_slp_tree): Likewise vect_model_load_cost.
12730
12731 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
12732
12733         * hooks.h (hook_bool_mode_uhwi_false): Declare.
12734         * hooks.c (hook_bool_mode_uhwi_false): New function.
12735         * target.def (array_mode_supported_p): New hook.
12736         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
12737         * doc/tm.texi: Regenerate.
12738         * stor-layout.c (mode_for_array): New function.
12739         (layout_type): Use it.
12740         * config/arm/arm.c (arm_array_mode_supported_p): New function.
12741         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
12742
12743 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
12744
12745         PR target/48723
12746         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
12747         for -fstack-check if the size to allocate is negative.
12748
12749 2011-05-02  Lawrence Crowl  <crowl@google.com>
12750
12751         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
12752         (timevar_cond_start): New for starting a timer only when it is not
12753         already running.
12754         (timevar_cond_stop): New for stopping a timer when it was not already
12755         running.
12756
12757         * timevar.c (timevar_stop): Enable start/stop timers to start again.
12758         (timevar_cond_start): New as above.
12759         (timevar_cond_stop): New as above.
12760
12761         * timevar.def: Add start/stop timers for compiler phases,
12762         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
12763         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
12764         and TV_PHASE_FINALIZE.
12765         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
12766         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
12767         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
12768         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
12769         Make unused TV_OVERLOAD into a start/stop timer.
12770
12771         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
12772         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
12773         to indicate that they are start/stop timers.
12774
12775         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
12776         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
12777         Move initialization to do_compile.
12778         (do_compile): Add initialization from above.
12779         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
12780
12781         * c-decl.c (c_write_global_declarations): Add start/stop of
12782         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
12783
12784         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
12785         or TV_PARSE_INLINE, as appropriate.
12786         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
12787         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
12788
12789 2011-05-02  Jason Merrill  <jason@redhat.com>
12790
12791         PR c++/40975
12792         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
12793
12794 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
12795
12796         PR c/35445
12797         * c-decl.c (finish_decl): Only create a composite if the types are
12798         compatible.
12799
12800 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
12801
12802         * config/fr30/fr30-protos.h (Mmode): Don't define.
12803         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
12804         definition where used.
12805         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
12806         define.  Expand definitions where used.
12807         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
12808         Expand definitions where used.
12809         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
12810         rx_function_arg, rx_function_arg_advance,
12811         rx_function_arg_boundary): Expand definitions of those macros.
12812         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
12813         definition where used.
12814
12815 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
12816
12817         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
12818         reg<->xmm moves.
12819         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
12820         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
12821         with *movv2sf_internal_rex64_avx.
12822         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
12823         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
12824         Use %v prefix in insn mnemonic to handle TARGET_AVX.
12825         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
12826         "vex" in "prefix" attribute calculation.
12827         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
12828
12829 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
12830
12831         PR target/47951
12832         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
12833         inputs match the output.
12834
12835 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
12836
12837         PR target/47955
12838         * config/m68k/m68k.c (m68k_expand_prologue): Set
12839         current_function_static_stack_size.
12840
12841 2011-05-02   Jan Hubicka  <jh@suse.cz>
12842
12843         * lto-streamer.c (lto_streamer_cache_insert_1,
12844         lto_streamer_cache_lookup, lto_streamer_cache_create,
12845         lto_streamer_cache_delete): Use pointer map instead of hashtable.
12846         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
12847
12848 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
12849
12850         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
12851         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
12852         config/m68k/t-opts: New files.
12853         * config/m68k/m68k-tables.opt: New file (generated).
12854         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
12855         extra_options and m68k/t-opts to tmake_file.
12856         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
12857         (all_isas): Initialize using m68k-isas.def.
12858         (all_microarchs): Initialize using m68k-microarchs.def.
12859         (m68k_find_selection): Remove.
12860         (m68k_handle_option): Don't assert that global structures are in
12861         use.  Use error_at.  Access variables via opts pointer.  Don't
12862         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
12863         directly for -m68020-40 and -m68020-60.
12864         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
12865         m68k_tune_entry here.
12866         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
12867         to m68k-opts.h.
12868         (m68k_library_id_string): Remove declaration.
12869         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
12870         (m68k_library_id_string): New Variable.
12871         (march=, mcpu=, mtune=): Use Enum and Var.
12872
12873 2011-05-02  Richard Guenther  <rguenther@suse.de>
12874
12875         * varasm.c (output_constructor_regular_field): Compute zero-based
12876         index with double-ints.  Make sure to ICE instead of producing
12877         wrong code.
12878         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
12879         in asserts.  Properly use a signed type.
12880
12881 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
12882
12883         * config/i386/sse.md (V): New mode iterator.
12884         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
12885         TARGET_SSE2.
12886         (V_256): Rename from AVX256MODE.
12887         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
12888         condition to all users.
12889         (VF1): Ditto.
12890         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
12891         condition to all users.
12892         (VF_128): Make V4SF mode unconditional.
12893         (VF_256): Rename from AVX256MODEF2P.
12894         (VI4F_128): Rename from SSEMODE4S.
12895         (VI8F_128): Rename from SSEMODE2D.
12896         (VI4F_256): Rename from AVX256MODE8P.
12897         (VI8F_256): Rename from AVX256MODE4P.
12898         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
12899         (ssescalarmodesuffix): Remove SF and DF modes.
12900         (SSEMODE124): Remove.
12901         (SSEMODE1248): Ditto.
12902         (SSEMODEF2P): Ditto.
12903         (AVXMODEF2P): Ditto.
12904         (AVXMODEFDP): Ditto.
12905         (AVXMODEFSP): Ditto.
12906         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
12907         unconditional.
12908         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
12909         unconditional.
12910         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
12911         xop_pcmov_<mode>256.  Use V mode iterator.
12912
12913         Adjust RTX patterns globally for renamed mode attributes.
12914
12915 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12916
12917         * haifa-sched.c (sched_emit_insn): Emit insn before first
12918         non-scheduled insn.  Inform back-end about new insn.  Add
12919         new insn to scheduled_insns list.
12920
12921 2011-05-02  Richard Guenther  <rguenther@suse.de>
12922
12923         PR tree-optimization/48822
12924         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
12925         (process_scc): Indicate which iteration we start.
12926
12927 2011-05-02  Jan Hubicka  <jh@suse.cz>
12928
12929         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
12930         (lto_section_overrun): New.
12931         * lto-section-out.c (append_block): Rename to ...
12932         (lto_append_block): ... this one; export.
12933         (lto_output_1_stream): Move lto lto-streamer.h
12934         (lto_output_data_stream): Update.
12935         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
12936         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
12937         functions.
12938
12939 2011-05-02  Richard Guenther  <rguenther@suse.de>
12940
12941         * tree.c (tree_code_counts): New global array.
12942         (record_node_allocation_statistics): Count individual tree codes.
12943         (dump_tree_statistics): Dump individual code stats.
12944
12945 2011-05-01  Jan Hubicka  <jh@suse.cz>
12946
12947         * ipa-inline.c (caller_growth_limits): Fix thinko when
12948         looking for largest stack frame.
12949         * ipa-inline.h (dump_inline_summary): Declare.
12950         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
12951         on stack usage.
12952         (dump_inline_summary): Export.
12953         (debug_inline_summary): Declare as DEBUG_FUNCTION.
12954
12955 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
12956
12957         * reginfo.c (memory_move_cost): Change rclass argument type form
12958         'enum reg_class' to reg_class_t.
12959         * reload.h (memory_move_cost): Update prototype.
12960         * postreload.c reload_cse_simplify_set): Change type dclass var to
12961         reg_class_t.
12962         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
12963         Update prototype.
12964         (ira_allocate_and_set_costs): Change aclass argument type form
12965         'enum reg_class' to reg_class_t.
12966         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
12967         Change aclass argument type to reg_class_t.
12968         (update_conflict_hard_reg_costs): Change type aclass and pref vars
12969         to reg_class_t.
12970         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
12971         memory_move_cost call.
12972
12973         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
12974         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
12975         Change type tmp var to reg_class_t.
12976
12977 2011-04-30  Jan Hubicka  <jh@suse.cz>
12978
12979         * ipa-inline.c (can_inline_edge_p): Disregard limits when
12980         inlining into function with flatten attribute.
12981         (want_inline_small_function_p): Be more realistic about inlining
12982         cold calls where callee size grows.
12983
12984 2011-04-30  Jan Hubicka  <jh@suse.cz>
12985
12986         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
12987         flags.
12988
12989 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
12990
12991         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
12992         PRINT_OPERAND_PUNCT_VALID_P): Remove.
12993         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
12994         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
12995         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
12996         (print_operand): Rename to...
12997         (sparc_print_operand): ...this. Make static. Adjust
12998         sparc_print_operand function call.
12999         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
13000         functions.
13001
13002 2011-04-30  Jan Hubicka  <jh@suse.cz>
13003
13004         PR middle-end/48752
13005         * ipa-inline.c (early_inliner): Disable when doing late
13006         addition of function.
13007
13008 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
13009
13010         * dwarf2out.c (get_address_mode): New inline.
13011         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
13012         if not dwarf_strict emit
13013         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
13014         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
13015         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
13016         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
13017         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
13018         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
13019         mem_loc_descriptor callers.
13020         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
13021         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
13022         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
13023         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
13024         (base_types): New variable.
13025         (get_base_type_offset, calc_base_type_die_sizes,
13026         base_type_for_mode, mark_base_types, base_type_cmp,
13027         move_marked_base_types): New functions.
13028         (calc_die_sizes): Assert that die_offset is 0 or equal to
13029         next_die_offset.
13030         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
13031         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
13032         callers.  If not dwarf_strict, call mem_loc_descriptor even for
13033         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
13034         (gen_subprogram_die): Don't give up on call site parameters
13035         with non-integral or large integral modes.  Adjust
13036         mem_loc_descriptor callers.
13037         (prune_unused_types): Call prune_unused_types_mark on base_types
13038         vector entries.
13039         (resolve_addr): Call mark_base_types.
13040         (dwarf2out_finish): Call move_marked_base_types.
13041
13042         PR tree-optimization/48809
13043         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
13044         type.
13045         (gen_inbound_check): Don't compute index_expr - range_min in utype
13046         again, instead reuse SSA_NAME initialized in build_arrays.
13047         Remove two useless gsi_for_stmt calls.
13048
13049 2011-04-29  Jeff Law  <law@redhat.com>
13050
13051         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
13052
13053 2011-04-29  Martin Jambor  <mjambor@suse.cz>
13054
13055         * cgraph.h (cgraph_postorder): Remove declaration.
13056         * ipa-utils.h (ipa_free_postorder_info): Declare.
13057         (ipa_reverse_postorder): Likewise.
13058         * cgraphunit.c: Include ipa-utils.h.
13059         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
13060         * ipa-inline.c: Include ipa-utils.h.
13061         (ipa_inline): Update call to ipa_reverse_postorder.
13062         * ipa-pure-const.c (propagate_pure_const): Update call to
13063         ipa_reduced_postorder and ipa_print_order.  Call
13064         ipa_free_postorder_info to clean up.
13065         (propagate_nothrow): Likewise.
13066         * ipa-reference.c (propagate): Removed a useless call to
13067         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
13068         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
13069         * ipa.c: Include ipa-utils.h.
13070         (ipa_profile): Update call to ipa_reverse_postorder.
13071         (cgraph_postorder): Moved to...
13072         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
13073         (ipa_utils_print_order): Renamed to ipa_print_order.
13074         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
13075         comments.
13076         (ipa_free_postorder_info): New function.
13077         * passes.c: Include ipa-utils.h.
13078         (do_per_function_toporder): Update call to ipa_reverse_postorder.
13079         (ipa_write_summaries): Likewise.
13080         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
13081         (cgraphunit.o): Likewise.
13082         (ipa.o): Likewise.
13083         (ipa-inline.o): Likewise.
13084
13085 2011-04-29  Jan Hubicka  <jh@suse.cz>
13086
13087         * gcc.dg/tree-ssa/inline-10.c: New testcase.
13088         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
13089         * ipa-inline.h (clause_t): Turn into unsigned int.
13090         * ipa-inline-analysis.c (add_clause): Do more simplification.
13091         (and_predicates): Shortcut more cases.
13092         (predicates_equal_p): Move forward; check that clauses are properly
13093         ordered.
13094         (or_predicates): Shortcut more cases.
13095         (edge_execution_predicate): Rewrite as...
13096         (set_cond_stmt_execution_predicate): ... this function; handle
13097         __builtin_constant_p.
13098         (set_switch_stmt_execution_predicate): New .
13099         (compute_bb_predicates): New.
13100         (will_be_nonconstant_predicate): Update TODO.
13101         (estimate_function_body_sizes): Use compute_bb_predicates
13102         and free them later, always try to estimate if stmt is constant.
13103         (estimate_time_after_inlining, estimate_size_after_inlining):
13104         Gracefully handle optimized out edges.
13105         (read_predicate): Fix off by one error.
13106
13107 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
13108
13109         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
13110
13111 2011-04-27  Xinliang David Li  <davidxl@google.com>
13112
13113         * tree-profile.c (init_ic_make_global_vars): Set
13114         tls attribute on ic vars.
13115         * coverage.c (coverage_end_function): Initialize
13116         function_list with zero.
13117
13118 2011-04-29  Richard Guenther  <rguenther@suse.de>
13119
13120         * builtins.c (fold_builtin_classify_type): Use integer_type_node
13121         for the type of the result.
13122         (fold_builtin_isascii): Likewise.
13123         (fold_builtin_toascii): Use integer_type_node where appropriate.
13124         (fold_builtin_logb): Likewise.
13125         (fold_builtin_frexp): Likewise.
13126         (fold_builtin_strstr): Likewise.
13127         (fold_builtin_strpbrk): Likewise.
13128         (fold_builtin_fputs): Likewise.
13129         (fold_builtin_sprintf): Likewise.
13130         (fold_builtin_snprintf): Likewise.
13131         (fold_builtin_printf): Likewise.
13132         (do_mpfr_remquo): Use a proper type for the assigned constant.
13133         (do_mpfr_lgamma_r): Likewise.
13134         * dwarf2out.c (resolve_one_addr): Use size_int.
13135         * except.c (init_eh): Likewise.
13136         (assign_filter_values): Use integer_type_node for filter values.
13137         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
13138         indices.
13139         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
13140         for EH region numbers.
13141         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
13142         for the shift amount.
13143
13144 2011-04-29  Richard Guenther  <rguenther@suse.de>
13145
13146         * expr.h (expand_shift): Rename to ...
13147         (expand_variable_shift): ... this.
13148         (expand_shift): Take a constant shift amount.
13149         * expmed.c (expand_shift): Rename to ...
13150         (expand_variable_shift): ... this.
13151         (expand_shift): New wrapper around expand_variable_shift.
13152         * expr.c (convert_move, emit_group_load_1, emit_group_store,
13153         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
13154         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
13155         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
13156         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
13157         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
13158         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
13159         emit_store_flag_1, emit_store_flag): Likewise.
13160         * builtins.c (expand_builtin_signbit): Likewise.
13161         * calls.c (load_register_parameters): Likewise.
13162         * function.c (assign_parm_setup_block): Likewise.
13163         * lower-subreg.c (resolve_shift_zext): Likewise.
13164         * optabs.c (widen_bswap, expand_abs_nojump,
13165         expand_one_cmpl_abs_nojump, expand_float): Likewise.
13166         * spu/spu.c (spu_expand_extv): Likewise.
13167         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
13168
13169 2011-04-29  Richard Guenther  <rguenther@suse.de>
13170
13171         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
13172         for the remapped region number.
13173         * predict.c (build_predict_expr): Use integer_type_node for the
13174         predict kind.
13175         * fold-const.c (fold_binary_loc): Use integer_type_node for
13176         the shift amount.  Use a proper type for the PLUS_EXPR operand.
13177
13178 2011-04-29  Michael Matz  <matz@suse.de>
13179
13180         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
13181         other trees that just builtins.
13182         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
13183
13184 2011-04-29  Richard Guenther  <rguenther@suse.de>
13185
13186         * tree-nested.c (get_trampoline_type): Use size_int.
13187         (get_nl_goto_field): Likewise.
13188         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
13189         for all indexes.
13190         (lower_eh_constructs_2): Likewise.
13191         (lower_resx): Likewise.
13192         (lower_eh_dispatch): Likewise.
13193         * tree-mudflap.c (mf_build_string): Use size_int.
13194         (mudflap_register_call): Use integer_type_node for the flag.
13195         (mudflap_enqueue_constant): Use size_int.
13196         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
13197         instead of rebuilding it.
13198
13199 2011-04-29  Richard Guenther  <rguenther@suse.de>
13200
13201         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
13202         Handle OBJ_TYPE_REF.
13203         (find_func_aliases_for_call): Use it more consistently.
13204
13205 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
13206
13207         * haifa-sched.c (last_nondebug_scheduled_insn): New.
13208         (rank_for_schedule): Use it.
13209         (schedule_block): Set it.
13210
13211 2011-04-28  David Li  <davidxl@google.com>
13212
13213         * tree.c (crc32_string): Use crc32_byte.
13214         (crc32_byte): New function.
13215         * tree.h (crc32_byte): New function.
13216         * gcov.c (read_graph_file): Handle new cfg_cksum.
13217         (read_count_file): Ditto.
13218         * profile.c (instrument_values): Ditto.
13219         (get_exec_counts): Ditto.
13220         (read_profile_edge_counts): Ditto.
13221         (compute_branch_probabilities): Ditto.
13222         (compute_value_histograms): Ditto.
13223         (branch_prob): Ditto.
13224         (end_branch_prob): Ditto.
13225         * coverage.c (read_counts_file): Ditto.
13226         (get_coverage_counts): Ditto.
13227         (tree_coverage_counter_addr): Ditto.
13228         (coverage_checksum_string): Ditto.
13229         (coverage_begin_output): Ditto.
13230         (coverage_end_function): Ditto.
13231         (build_fn_info_type): Ditto.
13232         (build_fn_info_value): Ditto.
13233         * libgcov.c (gcov_exit): Ditto.
13234         * gcov-dump.c (tag_function): Ditto.
13235         (compute_checksum): Remove.
13236
13237 2011-04-29  Alan Modra  <amodra@gmail.com>
13238
13239         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
13240         unspec plus offset.  Tidy macho code.
13241
13242 2011-04-29  Martin Jambor  <mjambor@suse.cz>
13243
13244         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
13245         node instead of a decl.  Update all callers.
13246         * cgraph.h: Update declaration.
13247
13248 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
13249
13250         PR tree-optimization/48765
13251         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
13252         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
13253         to indicate if loop aware SLP is being used.  Scan the statements
13254         and update the vectorization factor according to the type of
13255         vectorization before statement analysis.
13256         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
13257         pass it to vect_analyze_loop_operations.
13258         (vectorizable_reduction): Set number of copies to 1 in case of pure
13259         SLP statement.
13260         * tree-vect-stmts.c (vectorizable_conversion,
13261         vectorizable_assignment, vectorizable_shift,
13262         vectorizable_operation, vectorizable_type_demotion,
13263         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
13264         Likewise.
13265         (vectorizable_condition): Move the check that it is not SLP
13266         vectorization before the number of copies check.
13267         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
13268         to vectorize the loop using SLP.
13269
13270 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
13271
13272         PR middle-end/48597
13273         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
13274         inline asm.
13275
13276 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
13277
13278         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
13279         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
13280         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13281         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13282         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
13283         linux*.h headers.
13284         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
13285         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
13286         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
13287         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
13288         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
13289         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
13290         REG_NAME.
13291         * config/i386/linux.h (REG_NAME): Don't define.
13292         * config/i386/linux64.h (REG_NAME): Don't define.
13293         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
13294         Undefine before defining.
13295
13296 2011-04-28  Jan Hubicka  <jh@suse.cz>
13297
13298         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
13299         nonconstant_names array.
13300         (estimate_function_body_sizes): Build nonconstant_names array; handle
13301         BUILT_IN_CONSTANT_P.
13302
13303 2011-04-28  Richard Guenther  <rguenther@suse.de>
13304
13305         PR bootstrap/48804
13306         Revert
13307         2011-04-28  Richard Guenther  <rguenther@suse.de>
13308
13309         * tree-ssa-structalias.c (solve_constraints): Build succ graph
13310         as late as possible.
13311
13312 2011-04-28  Richard Guenther  <rguenther@suse.de>
13313
13314         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
13315         (debug_constraint): Do it here.
13316         (dump_constraints): And here.
13317         (rewrite_constraints): And here.
13318         (dump_constraint_edge): Remove.
13319         (dump_constraint_graph): Rewrite to produce DOT output.
13320         (solve_constraints): Build succ graph as late as possible.
13321         Dump constraint graphs before and after solving.
13322
13323 2011-04-28  Richard Guenther  <rguenther@suse.de>
13324
13325         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
13326         New function split out from ...
13327         (find_func_aliases): ... here.  Call it.
13328         (find_func_aliases_for_call): Likewise.
13329
13330 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
13331
13332         * internal-fn.h (internal_fn_name_array): Declare.
13333         (internal_fn_flags_array): Likewise.
13334
13335 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
13336
13337         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
13338         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
13339         Move from sse.md.
13340         (ssemodefsuffix): Remove.
13341         (ssevecmodesuffix): New mode attribute.
13342         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
13343         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
13344         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
13345         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
13346         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
13347         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
13348         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
13349         ssemodesuffix mode attribute.
13350         (float splitters): Use ssevecmodesuffix mode attribute.
13351         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
13352         (sseinsmode): Rename from avxvecmode.
13353         (avxsizesuffix): Rename from avxmodesuffix.
13354         (sseintvecmode): Rename from avxpermvecmode.
13355         (ssedoublevecmode): Rename from ssedoublesizemode.
13356         (ssehalfvecmode): Rename from avxhalfvecmode.
13357         (ssescalarmode): Rename from avxscalarmode.
13358         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
13359         templates for ssemodesuffix mode attribute.
13360         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
13361         mode attribute.
13362
13363         Adjust RTX patterns globally for renamed mode attributes.
13364
13365 2011-04-27  Jan Hubcika  <jh@suse.cz>
13366
13367         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
13368         * ipa-inline-analysis.c: Include alloc-pool.h.
13369         (edge_predicate_pool): New.
13370         (trye_predicate_p): New function
13371         (false_predicate_p): New function.
13372         (add_clause): Sanity check that false clauses are "optimized";
13373         never add clauses to predicate that is already known to be false.
13374         (and_predicate): Use flase_predicate_p.
13375         (evaulate_predicate): Rename to ...
13376         (evaluate_predicate): ... this one; update all callers; assert
13377         that false is not listed among possible truths.
13378         (dump_predicate): Use true_predicate_p.
13379         (account_size_time): Use false_predicate_p.
13380         (evaulate_conditions_for_edge): Rename to ...
13381         (evaluate_conditions_for_edge) ... this one.
13382         (edge_set_predicate): New function.
13383         (inline_edge_duplication_hook): Duplicate edge predicates.
13384         (inline_edge_removal_hook): Free edge predicates.
13385         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
13386         (dump_inline_summary): Update.
13387         (estimate_function_body_sizes): Set edge predicates.
13388         (estimate_calls_size_and_time): Handle predicates.
13389         (estimate_callee_size_and_time): Update.
13390         (remap_predicate): Add toplev_predicate; update comment.
13391         (remap_edge_predicates): New function.
13392         (inline_merge_summary): Compute toplev predicate; update.
13393         (read_predicate): New function.
13394         (read_inline_edge_summary): Use it.
13395         (inline_read_section): Likewise.
13396         (write_predicate): New function.
13397         (write_inline_edge_summary): Use it.
13398         (inline_write_summary): Likewise.
13399         (inline_free_summary): Free alloc pool and edge summary vec.
13400
13401 2011-04-27  Richard Guenther  <rguenther@suse.de>
13402
13403         * tree-ssa-structalias.c (changed_count): Remove.
13404         (changed): Use a bitmap.
13405         (unify_nodes): Adjust.
13406         (do_sd_constraint): Likewise.
13407         (do_ds_constraint): Likewise.
13408         (do_complex_constraint): Likewise.
13409         (solve_graph): Likewise.
13410
13411 2011-04-27  Jan Hubicka  <jh@suse.cz>
13412
13413         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
13414
13415 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
13416
13417         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
13418         (avx_vperm2f128_*_operand): Ditto.
13419         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
13420         Use avx_vpermilp_parallel in insn condition.
13421         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
13422         Use avx_vperm2f128_parallel in insn condition.
13423
13424 2011-04-27  Richard Guenther  <rguenther@suse.de>
13425
13426         * Makefile.in (tree-ssa-structalias.o): Remove
13427         gt-tree-ssa-structalias.h dependency.
13428         (GTFILES): Remove tree-ssa-structalias.c.
13429         * tree.c (allocate_decl_uid): New function.
13430         (make_node_stat): Use it.
13431         (copy_node_stat): Likewise.
13432         * tree.h (allocate_decl_uid): Declare.
13433         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
13434         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
13435         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
13436         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
13437         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
13438         (struct heapvar_map): Likewise.
13439         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
13440         heapvar_insert): Likewise.
13441         (make_heapvar_for): Rename to ...
13442         (make_heapvar): ... this.  Simplify.
13443         (fake_var_decl_obstack): New global var.
13444         (build_fake_var_decl): New function.
13445         (make_constraint_from_heapvar): Adjust.
13446         (handle_lhs_call): Likewise.
13447         (create_function_info_for): Likewise.
13448         (intra_create_variable_infos): Likewise.
13449         (init_alias_vars): Allocate fake_var_decl_obstack.
13450         (init_alias_heapvars, delete_alias_heapvars): Remove.
13451         (compute_points_to_sets): Do not call init_alias_heapvars.
13452         (ipa_pta_execute): Likewise.
13453         (delete_points_to_sets): Free fake_var_decl_obstack.
13454
13455 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13456
13457         * config/spu/divmovti4.c (union qword_UTItype): New data type.
13458         (si_from_UTItype, si_to_UTItype): New functions.
13459         (__udivmodti4): Use them to implement type-punning.
13460         * config/spu/multi3.c (union qword_TItype): New data type.
13461         (si_from_TItype, si_to_TItype): New functions.
13462         (__multi3): Use them to implement type-punning.
13463
13464 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13465
13466         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
13467
13468 2011-04-27  Jan Hubicka  <jh@suse.cz>
13469
13470         * ipa-prop.c (function_insertion_hook_holder): New holder.
13471         (ipa_add_new_function): New function.
13472         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
13473         Register/deregister holder.
13474
13475 2011-04-27  Richard Guenther  <rguenther@suse.de>
13476
13477         PR tree-optimization/48772
13478         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
13479
13480 2011-04-27  Richard Guenther  <rguenther@suse.de>
13481
13482         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
13483         TARGET_MEM_REF handling.
13484
13485 2011-04-27  Nick Clifton  <nickc@redhat.com>
13486
13487         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
13488         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
13489         (REG_CLASS_NAMES): Likewise.
13490         (REG_CLASS_CONTENTS): Likewise.
13491         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
13492         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
13493         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
13494         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
13495         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
13496         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
13497         duplicate register classes.
13498         (frv_class_likely_spilled_p): Likewise.
13499         (frv_register_move_cost): Likewise.
13500
13501         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
13502         end of the regno_reg_class array.
13503
13504 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
13505
13506         PR c/48742
13507         * c-typeck.c (build_binary_op): Don't wrap arguments if
13508         int_operands is true.
13509
13510 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
13511
13512         PR target/48767
13513         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
13514         targetm.calls.must_pass_in_stack for void type.
13515
13516 2011-04-26  Jan Hubicka  <jh@suse.cz>
13517
13518         * cgraphbuild.c (build_cgraph_edges): Update call
13519         of cgraph_create_edge and cgraph_create_indirect_edge.
13520         * cgraph.c (cgraph_create_edge_including_clones,
13521         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
13522         cgraph_update_edges_for_call_stmt_node): Do not take nest
13523         argument; do not initialize call_stmt_size/time.
13524         (dump_cgraph_node): Do not dump nest.
13525         (cgraph_clone_edge): Do not take loop_nest argument;
13526         do not propagate it; do not clone call_stmt_size/time.
13527         (cgraph_clone_node): Likewise.
13528         (cgraph_create_virtual_clone): Update.
13529         * cgraph.h (struct cgraph_edge): Remove
13530         call_stmt_size/call_stmt_time/loop_nest.
13531         (cgraph_create_edge, cgraph_create_indirect_edge,
13532         cgraph_create_edge_including_clones, cgraph_clone_node): Update
13533         prototype.
13534         * tree-emutls.c (gen_emutls_addr): Update.
13535         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
13536         loop_nest; handle indirect calls, too.
13537         (clone_inlined_nodes): Do not care about updating inline summaries.
13538         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
13539         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
13540         stream call_stmt_size/call_stmt_time/loop_nest.
13541         * ipa-inline.c (edge_badness): Update.
13542         (ipa_inline): dump summaries after inlining.
13543         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
13544         New.
13545         (inline_edge_summary): New function.
13546         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
13547         (inline_edge_removal_hook): Handle edge summaries.
13548         (inline_edge_duplication_hook): New hook.
13549         (inline_summary_alloc): Alloc hooks.
13550         (initialize_growth_caches): Do not register removal hooks.
13551         (free_growth_caches); Do not free removal hook.
13552         (dump_inline_edge_summary): New function.
13553         (dump_inline_summary): Use it.
13554         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
13555         (inline_update_callee_summaries): New function.
13556         (inline_merge_summary): Use it.
13557         (do_estimate_edge_time, do_estimate_edge_growth): Update.
13558         (read_inline_edge_summary): New function.
13559         (inline_read_section): Use it.
13560         (write_inline_edge_summary): New function.
13561         (inline_write_summary): Use it.
13562         (inline_free_summary): Free edge new holders.
13563         * tree-inline.c (copy_bb): Update.
13564
13565 2011-04-26  Jason Merrill  <jason@redhat.com>
13566
13567         * tree-eh.c (lower_try_finally_switch): Create the label along with
13568         the CASE_LABEL_EXPR.
13569
13570 2011-04-26  David S. Miller  <davem@davemloft.net>
13571             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13572
13573         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
13574         * configure: Regenerate.
13575
13576 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
13577
13578         PR target/48258
13579         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
13580         reduction.
13581         (VEC_reduc): New code iterator and splitters for vector reduction.
13582         (VEC_reduc_name): Ditto.
13583         (VEC_reduc_rtx): Ditto.
13584         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
13585         (reduc_<VEC_reduc_name>_v4sf): Ditto.
13586
13587         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
13588         support for extracting SF on VSX.
13589
13590         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
13591         generating xscvspdp.
13592         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
13593         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
13594         double add, minimum, maximum vector reduction.
13595         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
13596         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
13597         optimize double vector reduction.
13598         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
13599
13600 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
13601
13602         * config/fr30/fr30.h (inhibit_libc): Don't define.
13603         * config/m32r/m32r-protos.h: Correct comment.
13604         * config/v850/v850.h (GHS_default_section_names,
13605         GHS_current_section_names): Use tree, not union tree_node *.
13606
13607 2011-04-26  Xinliang David Li  <davidxl@google.com>
13608
13609         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
13610         * c-family/c-opts.c (c_common_handle_option): Set
13611         warn_maybe_uninitialized.
13612         * opts.c (common_handle_option): Ditto.
13613         * common.opt:  New option.
13614         * tree-ssa.c (warn_uninit): Add one more parameter.
13615         (warn_uninitialized_var): Pass warning code.
13616         * tree-flow.h: Interface change.
13617
13618 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13619
13620         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
13621         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
13622         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
13623
13624 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13625
13626         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
13627         * config/mips/mips.opt (mmips-tfile): Remove.
13628
13629         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
13630         mips-tdump reference to ...
13631         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
13632         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
13633         reference by Tru64 UNIX.
13634
13635 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
13636
13637         PR debug/48768
13638         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
13639         is error_mark_node, set value to NULL.
13640
13641         PR tree-optimization/48734
13642         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
13643         if return value from maybe_fold_*_comparsions isn't something
13644         the code is prepared to handle.
13645
13646 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
13647
13648         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
13649         mode check.
13650         (ext_QIreg_nomode_operands): Remove.
13651         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
13652         (*andsi_1): Ditto.
13653         (*andhi_1): Ditto.
13654
13655 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
13656
13657         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
13658
13659 2011-04-26  Richard Guenther  <rguenther@suse.de>
13660
13661         * c-typeck.c (build_unary_op): Do not expand array-refs via
13662         pointer arithmetic.  Only adjust qualifiers for function types.
13663
13664 2011-04-26  Richard Guenther  <rguenther@suse.de>
13665
13666         PR middle-end/48694
13667         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
13668         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
13669         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
13670         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
13671
13672 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
13673
13674         * doc/extend.texi: Document __underlying_type.
13675
13676 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
13677
13678         * config/rs6000/titan.md (automata_option "progress"): Remove.
13679
13680 2011-04-25  Jeff Law  <law@redhat.com>
13681
13682         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
13683
13684 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
13685
13686         * system.h (ENUM_BITFIELD): Remove.
13687
13688 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
13689             Eric Botcazou  <ebotcazou@adacore.com>
13690
13691         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
13692         for STORE_FLAG_VALUE==-1 case.
13693
13694 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
13695
13696         PR target/43804
13697         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
13698         LEGITIMATE_PIC_OPERAND_P.
13699
13700 2011-04-24  Jan Hubicka  <jh@suse.cz>
13701
13702         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
13703         WPA hack.
13704         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
13705         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
13706         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
13707         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
13708         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
13709         Sanity check predicate length.
13710         (remap_predicate): Likewise; sanity check jump functions.
13711         (inline_read_section, inline_write_summary): Sanity check
13712         predicate length.
13713
13714 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
13715
13716         PR other/48748
13717         * doc/extend.texi (Type Traits): Document __is_standard_layout,
13718         __is_literal_type, and __is_trivial; update throughout about
13719         possibly cv-qualified void types.
13720
13721 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
13722
13723         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
13724         testsuite and make it version agnostic.
13725
13726 2011-04-22  Jan Hubicka  <jh@suse.cz>
13727
13728         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
13729
13730 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
13731
13732         PR c/48685
13733         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
13734         to VOID_TYPE even around MODIFY_EXPR.
13735
13736 2011-04-22  Mike Stump  <mikestump@comcast.net>
13737
13738         * gensupport.c (read_md_rtx): Fix typo in comment.
13739         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
13740         comment.
13741
13742 2011-04-22  Jan Hubicka  <jh@suse.cz>
13743
13744         * gengtype.c (open_base_files): Add ipa-inline.h include.
13745         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
13746         ipa-prop.c; update all uses.
13747         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
13748         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
13749         merge summary of inlined function into former caller.
13750         * ipa-inline.c (max_benefit): Remove.
13751         (edge_badness): Compensate for removal of benefits.
13752         (update_caller_keys): Use
13753         reset_node_growth_cache/reset_edge_growth_cache.
13754         (update_callee_keys): Likewise.
13755         (update_all_callee_keys): Likewise.
13756         (inline_small_functions): Do not collect max_benefit; do not reset
13757         estimated_growth; call free_growth_caches and initialize_growth_caches.
13758         * ipa-inline.h (struct condition, type clause_t, struct predicate,
13759         struct size_time_entry): New structures.
13760         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
13761         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
13762         and estimated_growth.
13763         (edge_growth_cache_entry): New structure.
13764         (node_growth_cache, edge_growth_cache): New global vars.
13765         (estimate_growth): Turn into inline.
13766         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
13767         initialize_growth_caches, free_growth_caches): Declare.
13768         (estimate_edge_growth): Rewrite.
13769         (estimate_edge_time): Implement as inline cache lookup.
13770         (reset_node_growth_cache, reset_edge_growth_cache): New inline
13771         functions.
13772         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
13773         (NUM_CONDITIONS): New constant.
13774         (predicate_conditions): New enum.
13775         (IS_NOT_CONSTANT): New constant.
13776         (edge_removal_hook_holder): New var.
13777         (node_growth_cache, edge_growth_cache): New global vars.
13778         (true_predicate, single_cond_predicate, false_predicate,
13779         not_inlined_predicate, add_condition, add_clause, and_predicates,
13780         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
13781         dump_clause, dump_predicate, account_size_time,
13782         evaulate_conditions_for_edge): New functions.
13783         (inline_summary_alloc): Move to heap.
13784         (inline_node_removal_hook): Clear condition and entry vectors.
13785         (inline_edge_removal_hook): New function.
13786         (initialize_growth_caches, free_growth_caches): New function.
13787         (dump_inline_summary): Update.
13788         (edge_execution_predicate): New function.
13789         (will_be_nonconstant_predicate): New function.
13790         (estimate_function_body_sizes): Compute BB and constantness predicates.
13791         (compute_inline_parameters): Do not clear estimated_growth.
13792         (estimate_edge_size_and_time): New function.
13793         (estimate_calls_size_and_time): New function.
13794         (estimate_callee_size_and_time): New function.
13795         (remap_predicate): New function.
13796         (inline_merge_summary): New function.
13797         (do_estimate_edge_time): New function based on...
13798         (estimate_edge_time): ... this one.
13799         (do_estimate_edge_growth): New function.
13800         (do_estimate_growth): New function based on....
13801         (estimate_growth): ... this one.
13802         (inline_analyze_function): Analyze after deciding on jump functions.
13803         (inline_read_section): New function.
13804         (inline_read_summary): Use it.
13805         (inline_write_summary): Write all the new data.
13806         * ipa-prop.c (ipa_get_param_decl_index): Export.
13807         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
13808         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
13809         Declare.
13810         (ipa_get_lattice): Move here from ipa-cp.c
13811         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
13812         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
13813         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
13814         cgraph_edge_inlinable_p): Remove.
13815         * cgraphunit.c: Include ipainline.h
13816         (cgraph_process_new_functions): Update call of
13817         compute_inline_parameters.
13818
13819 2011-04-22  Richard Guenther  <rguenther@suse.de>
13820
13821         * tree.c (build_int_cst): Properly create canonicalized integer
13822         constants.
13823         (build_int_cst_type): Remove scary comments.
13824
13825 2011-04-22  Xinliang David Li  <davidxl@google.com>
13826
13827         * toplev.c (process_options): Enable -Werror=coverage-mismatch
13828         by default when -Wno-error is not specified.
13829         * opts-global.c (decode_options): Remove call to
13830         control_warning_options.
13831
13832 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
13833
13834         PR tree-optimization/48717
13835         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
13836         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
13837
13838 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
13839
13840         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
13841         definition where used.
13842
13843 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
13844
13845         PR c/48716
13846         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
13847         TREE_STATIC variables declared inside of some OpenMP construct.
13848
13849 2011-04-22  Martin Jambor  <mjambor@suse.cz>
13850
13851         PR middle-end/48585
13852         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
13853
13854 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
13855
13856         PR c/36750
13857         * c-typeck.c (pop_init_level): Do not warn about initializing
13858         with ` = {0}'.
13859
13860 2011-04-22  Alan Modra  <amodra@gmail.com>
13861
13862         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
13863         when returning call_cookie.
13864         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
13865         pointers, to functions with no more vector args than the current
13866         function, and some non-local calls for ABI_V4.
13867         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
13868         sibcall_nonlocal_aix64): Combine to ..
13869         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
13870         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
13871         (sibcall_value_nonlocal_aix<mode>): ..likewise.
13872         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
13873         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
13874         operand.
13875         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
13876         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
13877         sibcall_value_symbolic_64): Delete.
13878
13879 2011-04-21  Xinliang David Li  <davidxl@google.com>
13880
13881         * cgraph.h: Remove pid.
13882         * cgraph.c: Remove pid.
13883         * value-prof.c (init_node_map): New function.
13884         (del_node_map): New function.
13885         (find_func_by_funcdef_no): New function.
13886         (gimple_ic_transform): Call new function.
13887         * cgraphunit.c (cgraph_finalize_function): Remove pid.
13888         * function.c (get_last_funcdef_no): New function.
13889         * function.h (get_last_funcdef_no): New function.
13890         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
13891         to libgcov function.
13892         (tree-profiling): Call node map init and delete function.
13893
13894 2011-04-21  Ian Lance Taylor  <iant@google.com>
13895
13896         * godump.c (go_format_type): Use exported Go name for anonymous
13897         field name.
13898
13899 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
13900
13901         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
13902         Call builtin_function_type_list instead of builtin_function_type.
13903         (UNARY, BINARY, TRINARY, QUAD): Likewise.
13904
13905 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
13906
13907         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
13908         build_function_type_list instead of build_function_type.
13909         Delete variable `endlink'.
13910
13911 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
13912
13913         * config/s390/s390.c (s390_init_builtins): Call
13914         build_function_type_list instead of build_function_type.
13915
13916 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
13917
13918         * config/ia64/ia64.c (ia64_init_builtins): Call
13919         build_function_type_list instead of builtin_function_type.
13920
13921 2011-04-21  Easwaran Raman  <eraman@google.com>
13922
13923         * cfgexpand.c (stack_var): Remove OFFSET...
13924         (add_stack_var): ...and its reference here...
13925         (expand_stack_vars): ...and here.
13926         (stack_var_cmp): Sort by descending order of size.
13927         (partition_stack_vars): Change heuristic.
13928         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
13929         (dump_stack_var_partition): Add newline after each partition.
13930
13931 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
13932             Jeff Law  <law@redhat.com>
13933
13934         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
13935         * gengtype.c (matching_file_name_substitute): Likewise.
13936
13937 2011-04-21  Richard Guenther  <rguenther@suse.de>
13938
13939         PR lto/48703
13940         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
13941
13942 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
13943
13944         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
13945
13946 2011-04-21  Richard Guenther  <rguenther@suse.de>
13947
13948         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
13949         file name.
13950
13951 2011-04-21  Richard Guenther  <rguenther@suse.de>
13952
13953         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
13954         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
13955         Use DECL_P, not SSA_VAR_P.
13956         (ptr_derefs_may_alias_p): Likewise.
13957         (ptr_deref_may_alias_ref_p_1): Likewise.
13958         (decl_refs_may_alias_p): Likewise.
13959         (refs_may_alias_p_1): Likewise.
13960         (ref_maybe_used_by_call_p_1): Likewise.
13961         (call_may_clobber_ref_p_1): Likewise.
13962         (indirect_ref_may_alias_decl_p): Assume indirect refrences
13963         are either MEM_REF or TARGET_MEM_REF.
13964         (indirect_refs_may_alias_p): Likewise.
13965         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
13966         for MEM_EXPR of indirect calls.
13967
13968 2011-04-21  Tristan Gingold  <gingold@adacore.com>
13969
13970         * vmsdbgout.c (write_srccorr): Compute file length from the string.
13971         (dst_file_info_struct): Remove flen field.
13972         (lookup_filename): Remove code that set flen field.
13973
13974 2011-04-21  Tristan Gingold  <gingold@adacore.com>
13975
13976         * config/ia64/ia64.c (ia64_start_function): Add a guard.
13977
13978 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
13979
13980         PR target/48708
13981         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
13982         vec_extract and vec_concat for non-SSE4_1 targets.
13983
13984 2011-04-21  Richard Guenther  <rguenther@suse.de>
13985
13986         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
13987         return statements.
13988
13989 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
13990
13991         * config/i386/cygming.h (union tree_node, TREE): Don't define or
13992         undefine.
13993         (FILE): Don't undefine.
13994
13995 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
13996
13997         * config/alpha/alpha.c (struct machine_function): Use rtx, not
13998         struct rtx_def *.
13999         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
14000         struct rtx_def *.
14001         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
14002         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
14003         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
14004         rtx_def *.
14005         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
14006         definitions where used.
14007         * config/microblaze/microblaze.h (struct microblaze_args): Use
14008         rtx, not struct rtx_def *.
14009         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
14010         rtx_def *.
14011         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
14012         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
14013         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
14014         not struct rtx_def *.
14015         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
14016         struct rtx_def *.
14017         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
14018         rtx_def *.
14019         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
14020
14021 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
14022
14023         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
14024         operand_equal_p to compare DR_BASE_ADDRESSes.
14025         (vect_check_interleaving): Likewise.
14026
14027 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
14028
14029         PR target/46329
14030         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
14031         for all Neon struct constants.
14032
14033 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
14034
14035         * target.def (legitimate_constant_p): New hook.
14036         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
14037         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
14038         * doc/tm.texi: Regenerate.
14039         * hooks.h (hook_bool_mode_rtx_true): Declare.
14040         * hooks.c (hook_bool_mode_rtx_true): Define.
14041         * system.h (LEGITIMATE_CONSTANT_P): Poison.
14042         * calls.c (precompute_register_parameters): Replace uses of
14043         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
14044         (emit_library_call_value_1): Likewise.
14045         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
14046         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
14047         * ira-costs.c (scan_one_insn): Likewise.
14048         * recog.c (general_operand, immediate_operand): Likewise.
14049         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
14050         * reload1.c (init_eliminable_invariants): Likewise.
14051
14052         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
14053         mode argument.
14054         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
14055         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
14056         argument.
14057         (TARGET_LEGITIMATE_CONSTANT_P): Define.
14058         * config/alpha/predicates.md (input_operand): Update call to
14059         alpha_legitimate_constant_p.
14060
14061         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
14062         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
14063         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
14064         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14065         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
14066         (arm_legitimate_constant_p): New functions.
14067         (arm_cannot_force_const_mem): Make static.
14068
14069         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
14070
14071         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
14072         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
14073         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
14074         instead of bfin_legitimate_constant_p.
14075         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
14076         (TARGET_LEGITIMATE_CONSTANT_P): Define.
14077
14078         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
14079
14080         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
14081
14082         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
14083         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
14084         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14085         (frv_legitimate_constant_p): Make static.  Add a mode argument.
14086
14087         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
14088         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
14089         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
14090
14091         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
14092         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
14093         * config/i386/i386.c (legitimate_constant_p): Rename to...
14094         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
14095         argument.
14096         (ix86_cannot_force_const_mem): Update accordingly.
14097         (ix86_legitimate_address_p): Likewise.
14098         (TARGET_LEGITIMATE_CONSTANT_P): Define.
14099         * config/i386/i386.md: Update commentary.
14100
14101         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
14102         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
14103         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14104         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
14105
14106         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
14107
14108         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
14109         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
14110         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14111         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
14112
14113         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
14114         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
14115         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
14116
14117         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
14118         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14119         (m32r_legitimate_constant_p): New function.
14120
14121         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
14122         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
14123         LEGITIMATE_CONSTANT_P.
14124         (LEGITIMATE_CONSTANT_P): Delete.
14125         * config/m68k/m68k.c (m68k_expand_prologue): Call
14126         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
14127         (m68k_legitimate_constant_p): New function.
14128         * config/m68k/m68k.md: Update comments.
14129
14130         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
14131         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14132         (mcore_legitimate_constant_p): New function.
14133
14134         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
14135         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
14136         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
14137         Add a mode argument.
14138         (mep_legitimate_address): Update accordingly.
14139         (TARGET_LEGITIMATE_CONSTANT_P): Define.
14140
14141         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
14142         Delete.
14143         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
14144         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
14145         static.  Check OP's mode for VOIDmode.
14146         (microblaze_legitimate_constant_p): New function.
14147         (TARGET_LEGITIMATE_CONSTANT_P): Define.
14148
14149         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
14150         * config/mips/mips.c (mips_legitimate_constant_p): New function.
14151         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
14152         (TARGET_LEGITIMATE_CONSTANT_P): Define.
14153         * config/mips/predicates.md: Update comments.
14154
14155         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
14156         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
14157         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14158         (mmix_legitimate_constant_p): Make static, return a bool, and take
14159         a mode argument.
14160         (mmix_print_operand_address): Update accordingly.
14161
14162         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
14163         Delete.
14164         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
14165         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
14166         static.  Add a mode argument.
14167         (TARGET_LEGITIMATE_CONSTANT_P): Define.
14168
14169         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
14170
14171         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
14172         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14173         (pa_legitimate_constant_p): New function.
14174
14175         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
14176
14177         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
14178         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14179         (pdp11_legitimate_constant_p): New function.
14180
14181         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
14182         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14183         (rs6000_legitimate_constant_p): New function.
14184
14185         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
14186         (rx_legitimate_constant_p): ...this.
14187         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
14188         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
14189         (rx_legitimate_constant_p): ...this.
14190         (TARGET_LEGITIMATE_CONSTANT_P): Define.
14191         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
14192
14193         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
14194         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
14195         * config/s390/s390.c (legitimate_constant_p): Rename to...
14196         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
14197         and add a mode argument.
14198         (TARGET_LEGITIMATE_CONSTANT_P): Define.
14199
14200         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
14201
14202         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
14203         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14204         (sh_legitimate_constant_p): New function.
14205
14206         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
14207         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
14208         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14209         (legitimate_constant_p): Rename to...
14210         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
14211         argument.
14212         (constant_address_p): Update accordingly.
14213
14214         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
14215         argument and return a bool.
14216         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
14217         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14218         (spu_legitimate_constant_p): Add a mode argument and return a bool.
14219         (spu_rtx_costs): Update accordingly.
14220         * config/spu/predicates.md (vec_imm_operand): Likewise.
14221
14222         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
14223
14224         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
14225         * config/v850/v850.c (v850_legitimate_constant_p): New function.
14226         (TARGET_LEGITIMATE_CONSTANT_P): Define.
14227
14228         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
14229         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
14230         * config/vax/vax.c (legitimate_constant_p): Likewise.
14231
14232         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
14233         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14234         (xtensa_legitimate_constant_p): New function.
14235
14236 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
14237
14238         * target.def (cannot_force_const_mem): Add a mode argument.
14239         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
14240         * doc/tm.texi: Regenerate.
14241         * hooks.h (hook_bool_mode_rtx_false): Declare.
14242         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
14243         (hook_bool_mode_const_rtx_true): Likewise.
14244         (hook_bool_mode_rtx_false): New function.
14245         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
14246         to be non-VOID.  Update call to cannot_force_const_mem.
14247         (find_reloads): Update accordingly.
14248         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
14249         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
14250         argument.
14251         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
14252         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
14253         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
14254         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
14255         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
14256         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
14257         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
14258         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
14259         (m68k_cannot_force_const_mem): ...this new function.
14260         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
14261         argument.
14262         (mips_const_insns, mips_legitimize_const_move): Update calls.
14263         (mips_secondary_reload_class): Likewise.
14264         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
14265         (pa_cannot_force_const_mem): ...this new function.
14266         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
14267         (rs6000_cannot_force_const_mem): ...this new function.
14268         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
14269         argument.
14270         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
14271         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
14272         to...
14273         (xtensa_cannot_force_const_mem): ...this new function.
14274
14275 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
14276
14277         * config/mips/mips.c (mips16_build_function_stub): Call
14278         build_function_type_list instead of build_function_type.
14279         (mips16_build_call_stub): Likewise.
14280
14281 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
14282
14283         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
14284         instead of build_function_type.
14285
14286 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
14287
14288         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
14289         instead of build_function_type.
14290
14291 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
14292
14293         PR target/48678
14294         * config/i386/i386.md (insv): Change operand 0 constraint to
14295         "register_operand".  Change operand 1 and 2 constraint to
14296         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
14297         * config/i386/sse.md (sse4_1_pinsrb): Export.
14298         (sse2_pinsrw): Ditto.
14299         (sse4_1_pinsrd): Ditto.
14300         (sse4_1_pinsrq): Ditto.
14301         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
14302         * config/i386/i386.c (ix86_expand_pinsr): New.
14303
14304 2011-04-20  Easwaran Raman  <eraman@google.com>
14305
14306         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
14307         containing union type only with -fstrict-aliasing.
14308
14309 2011-04-20  Jim Meyering  <meyering@redhat.com>
14310
14311         Remove useless if-before-free tests.
14312         * calls.c (expand_call, save_area): Likewise.
14313         * cfgcleanup.c (try_forward_edges): Likewise.
14314         * collect2.c (collect_execute): Likewise.
14315         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
14316         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
14317         * coverage.c (coverage_checksum_string): Likewise.
14318         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
14319         * cselib.c (cselib_init): Likewise.
14320         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
14321         (df_set_clean_cfg): Likewise.
14322         * function.c (free_after_compilation): Likewise.
14323         * gcc.c (do_spec_1, main): Likewise.
14324         * gcov.c (create_file_names): Likewise.
14325         * gensupport.c (identify_predicable_attribute): Likewise.
14326         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
14327         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
14328         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
14329         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
14330         * ipa-pure-const.c (local_pure_const): Likewise.
14331         * ipa-reference.c (propagate): Likewise.
14332         * ira-costs.c (free_ira_costs): Likewise.
14333         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
14334         * matrix-reorg.c (mat_free): Likewise.
14335         * prefix.c (get_key_value): Likewise.
14336         * profile.c (compute_value_histograms): Likewise.
14337         * reload1.c (free_reg_equiv): Likewise.
14338         * sched-deps.c (free_deps): Likewise.
14339         * sel-sched-ir.c (fence_clear): Likewise.
14340         * sese.c (set_rename, if_region_set_false_region): Likewise.
14341         * tree-data-ref.c (free_rdg): Likewise.
14342         * tree-eh.c (lower_try_finally): Likewise.
14343         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
14344         * tree-ssa-live.c (delete_var_map): Likewise.
14345         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
14346         * tree-ssa-pre.c (phi_trans_add): Likewise.
14347
14348 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
14349
14350         PR tree-optimization/48611
14351         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
14352         beyond ERT_MUST_NOT_THROW region.
14353
14354 2011-04-20  Catherine Moore  <clm@codesourcery.com>
14355
14356         * config/mips/mips.opt (mfix-24k): New.
14357         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
14358         * config/mips/mips.md (length): Increase by 4 for stores if
14359         fixing 24K errata.
14360         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
14361         all noreorder if fixing 24K errata.
14362         * doc/invoke.texi: Document mfix-24k.
14363
14364 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
14365
14366         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
14367         quad-word modes, reduce to 9-bit index range when above 1016 limit.
14368
14369 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
14370
14371         * config/arm/arm.c (arm_gen_constant): Move movw support ....
14372         (const_ok_for_op): ... to here.
14373
14374 2011-04-20  Kai Tietz  <ktietz@redhat.com>
14375
14376         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
14377         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
14378
14379 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
14380
14381         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
14382
14383 2011-04-20  Richard Guenther  <rguenther@suse.de>
14384
14385         PR tree-optimization/47892
14386         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
14387         are if-convertible.
14388
14389 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
14390
14391         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
14392
14393 2011-04-20  Tristan Gingold  <gingold@adacore.com>
14394
14395         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
14396
14397 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
14398
14399         PR target/18145
14400
14401         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
14402         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
14403         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
14404         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
14405         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
14406
14407         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
14408         New prototype.
14409
14410         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
14411         (avr_asm_named_section, avr_asm_output_aligned_common,
14412         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
14413         New functions to update...
14414         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
14415         (avr_asm_init_sections): Overwrite section callbacks for
14416         data_section, bss_section.
14417         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
14418         from here to...
14419         (avr_file_end): ...here.
14420
14421 2011-04-20  Richard Guenther  <rguenther@suse.de>
14422
14423         PR middle-end/48695
14424         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
14425         objects and types here.  Adjust for their offset before comparing.
14426
14427 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
14428
14429         * tree-vect-stmts.c (vectorizable_store): Only chain one related
14430         statement per copy.
14431
14432 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
14433
14434         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
14435         (GIMPLE_H): Include $(INTERNAL_FN_H).
14436         (OBJS-common): Add internal-fn.o.
14437         (internal-fn.o): New rule.
14438         * internal-fn.def: New file.
14439         * internal-fn.h: Likewise.
14440         * internal-fn.c: Likewise.
14441         * gimple.h: Include internal-fn.h.
14442         (GF_CALL_INTERNAL): New gf_mask.
14443         (gimple_statement_call): Put fntype into a union with a new
14444         internal_fn field.
14445         (gimple_build_call_internal): Declare.
14446         (gimple_build_call_internal_vec): Likewise.
14447         (gimple_call_same_target_p): Likewise.
14448         (gimple_call_internal_p): New function.
14449         (gimple_call_internal_fn): Likewise.
14450         (gimple_call_fntype): Return null for internal calls.
14451         (gimple_call_set_fntype): Assert that the function is not internal.
14452         (gimple_call_set_fn): Likewise.
14453         (gimple_call_set_fndecl): Likewise.
14454         (gimple_call_set_internal_fn): New function.
14455         (gimple_call_addr_fndecl): Handle null functions.
14456         (gimple_call_return_type): Likewise null types.
14457         * gimple.c (gimple_build_call_internal_1): New function.
14458         (gimple_build_call_internal): Likewise.
14459         (gimple_build_call_internal_vec): Likewise.
14460         (gimple_call_same_target_p): Likewise.
14461         (gimple_call_flags): Handle calls to internal functions.
14462         (gimple_call_fnspec): New function.
14463         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
14464         (gimple_has_side_effects): Handle null functions.
14465         (gimple_rhs_has_side_effects): Likewise.
14466         (gimple_call_copy_skip_args): Handle calls to internal functions.
14467         * cfgexpand.c (expand_call_stmt): Likewise.
14468         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
14469         * gimple-fold.c (gimple_fold_call): Handle null functions.
14470         (gimple_fold_stmt_to_constant_1): Don't fold
14471         calls to internal functions.
14472         * gimple-low.c (gimple_check_call_args): Handle calls to internal
14473         functions.
14474         * gimple-pretty-print.c (dump_gimple_call): Likewise.
14475         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
14476         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
14477         (do_warn_unused_result): Likewise.
14478         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
14479         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
14480         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
14481         the target of a call.
14482         (initialize_hash_element): Update accordingly.
14483         (hashable_expr_equal_p): Use gimple_call_same_target_p.
14484         (iterative_hash_hashable_expr): Handle calls to internal functions.
14485         (print_expr_hash_elt): Likewise.
14486         * tree-ssa-pre.c (can_value_number_call): Likewise.
14487         (eliminate): Handle null functions.
14488         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
14489         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
14490         (find_func_aliases): Likewise.
14491         * value-prof.c (gimple_ic_transform): Likewise.
14492         (gimple_indirect_call_to_profile): Likewise.
14493         * lto-streamer-in.c (input_gimple_stmt): Likewise.
14494         * lto-streamer-out.c (output_gimple_stmt): Likewise.
14495
14496 2011-04-19  Jan Hubicka  <jh@suse.cz>
14497
14498         * ipa-inline-transform.c (save_inline_function_body): Add comments.
14499         * ipa-inline.c (inline_small_functions): Compute summaries first,
14500         populate heap later.
14501
14502 2011-04-19  Jan Hubicka  <jh@suse.cz>
14503
14504         * cgraph.h (save_inline_function_body): Remove.
14505         * ipa-inline-transform.c: New file, broke out of...
14506         * ipa-inline.c: ... this one; Update toplevel comment.
14507         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
14508         make global.
14509         (update_noncloned_frequencies): Move to ipa-inline-transform.c
14510         (cgraph_mark_inline_edge): Rename to inline_call; move to
14511         ipa-inline-transform.c.
14512         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
14513         move to ipa-inline-transform.c
14514         (recursive_inlining, inline_small_functions, flatten_function,
14515         ipa_inline, inline_always_inline_functions,
14516         early_inline_small_functions): Update.
14517         (inline_transform): Move to ipa-inline-transform.c.
14518         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
14519         Declare.
14520         * Makefile.in (ipa-inline-transform.o): New file.
14521         * cgraphunit.c (save_inline_function_body): Move to
14522         ipa-inline-transform.c
14523
14524 2011-04-19  DJ Delorie  <dj@redhat.com>
14525
14526         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
14527         registers if we already know there aren't any.
14528         (m32c_emit_epilogue): Don't emit a barrier here.
14529         (m32c_emit_eh_epilogue): Likewise.
14530         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
14531         operands at expand time.
14532         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
14533         int" wchar type.
14534         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
14535         duplicates.  Provide aliases instead.
14536         * config/m32c/prologue.md (eh_return): Emit a barrier here.
14537         (eh_epilogue): Add a "(return)" here as a hint to other parts of
14538         the compiler.
14539
14540 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
14541
14542         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
14543         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
14544         (general_or_i64_p, sparc_register_move_cost): New function.
14545
14546 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14547
14548         * doc/install.texi (Configuration, --enable-threads): Remove mach.
14549         Add lynx, mipssde.  Sort table.
14550
14551 2011-04-19  Xinliang David Li  <davidxl@google.com>
14552
14553         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
14554         not negative.
14555
14556 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
14557
14558         PR target/48678
14559         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
14560         is a SUBREG with non-MODE_INT mode inside of it.
14561
14562 2011-04-19  Martin Jambor  <mjambor@suse.cz>
14563
14564         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
14565         also according to actual contants.
14566         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
14567         (gimple_fold_call): Use it.
14568         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
14569
14570 2011-04-19  Martin Jambor  <mjambor@suse.cz>
14571
14572         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
14573         non-pointer assignments.
14574
14575 2011-04-19  Martin Jambor  <mjambor@suse.cz>
14576
14577         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
14578         account anc_offset and otr_type from the indirect edge info.
14579         * ipa-prop.c (get_ancestor_addr_info): New function.
14580         (compute_complex_ancestor_jump_func): Assignment analysis moved to
14581         get_ancestor_addr_info, call it.
14582         (ipa_note_param_call): Do not initialize information about polymorphic
14583         calls, return the indirect call graph edge.  Remove the last
14584         parameter, adjust all callers.
14585         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
14586         parameters.  Initialize polymorphic information in the indirect edge.
14587
14588 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
14589
14590         PR lto/48148
14591         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
14592         the types if they have different enumeration identifiers.
14593
14594 2011-04-19  Jan Hubicka  <jh@suse.cz>
14595
14596         * cgraph.h (cgraph_optimize_for_size_p): Declare.
14597         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
14598         * predict.c (cgraph_optimize_for_size_p): Break out from ...
14599         (optimize_function_for_size_p) ... here.
14600
14601 2011-04-19  Richard Guenther  <rguenther@suse.de>
14602
14603         PR lto/48207
14604         * tree.c (free_lang_data): Do not reset the decl-assembler-name
14605         langhook.
14606
14607 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
14608
14609         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
14610         if DECL_NO_INLINE_WARNING_P is set on the function.
14611
14612 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
14613
14614         PR fortran/47976
14615         * reload1.c (inc_for_reload): Return void. All callers changed.
14616         (emit_input_reload_insns): Don't try to delete previous output
14617         reloads to a register, or record spill_reg_store for autoincs.
14618
14619 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
14620
14621         * gengtype.h: Updated copyright year.
14622         (struct input_file_st): Add inpisplugin field.
14623         (type_fileloc): New function.
14624         * gengtype.c
14625         (write_typed_struct_alloc_def): Add gcc_assert.
14626         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
14627         (write_typed_alloc_defns): Don't output for plugin files.
14628         (input_file_by_name): Clear inpisplugin field.
14629         (main): Set inpisplugin field for plugin files.
14630
14631 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
14632
14633         * gengtype-state.c (string_eq): New.
14634         (read_state): Use string_eq instead of strcmp when creating the
14635         state_ident_tab.
14636
14637 2011-04-19  Wei Guozhi  <carrot@google.com>
14638
14639         PR target/47855
14640         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
14641         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
14642         linkage.
14643         * config/arm/constraints.md (Uu): New constraint.
14644         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
14645
14646 2011-04-19  Tristan Gingold  <gingold@adacore.com>
14647
14648         * config.gcc (-*-*-*vms): Added.
14649         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
14650         definitions moved.
14651         * config/vms/vms-ld.c: New file.
14652         * config/vms/vms-ar.c: New file.
14653         * config/vms/t-vmsnative: New file.
14654
14655 2011-04-18  Xinliang David Li  <davidxl@google.com>
14656
14657         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
14658
14659 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
14660
14661         PR middle-end/48661
14662         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
14663         if TREE_TYPE (v) is non-NULL.
14664
14665         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
14666         gimple_get_virt_mehtod_for_binfo.
14667         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
14668         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
14669         callers.
14670         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
14671
14672 2011-04-18  Michael Matz  <matz@suse.de>
14673             Steve Ellcey  <sje@cup.hp.com>
14674
14675         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
14676         use its mode as source mode if it isn't VOIDmode.
14677
14678 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
14679
14680         * doc/passes.texi: Fill crossref nodes.
14681
14682 2011-04-18  Jim Meyering  <meyering@redhat.com>
14683
14684         Fix doubled-word typos in comments and strings
14685         * config/alpha/vms-unwind.h: s/for for/for/
14686         * config/arm/unwind-arm.h: Likewise.
14687         * config/microblaze/microblaze.c: Likewise.
14688         * config/sh/constraints.md: s/in in/in/
14689         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
14690
14691 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
14692
14693         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
14694         (AVX_FLOAT_MODE_P): Ditto.
14695         (AVX128_VEC_FLOAT_MODE_P): Ditto.
14696         (AVX256_VEC_FLOAT_MODE_P): Ditto.
14697         (AVX_VEC_FLOAT_MODE_P): Ditto.
14698         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
14699         (UNSPEC_MASKSTORE): Ditto.
14700         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
14701         Merge from <sse>_movmsk<ssemodesuffix> and
14702         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
14703         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
14704         iterator.
14705         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
14706         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
14707         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
14708
14709 2011-04-18  Jan Hubicka  <jh@suse.cz>
14710
14711         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
14712
14713         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
14714         (want_inline_function_called_once_p): Break out the logic from
14715         ipa_inline.
14716         (edge_badness): Ensure that profile is not misupdated.
14717         (lookup_recursive_calls): Prioritize by call frequencies.
14718         (inline_small_functions): Move program size estimates here;
14719         actually process whole queue even when unit growth has been
14720         met. (to properly compute inline_failed reasons and for the
14721         case unit size decrease.) Revisit comments on recursive inlining.
14722         (ipa_inline): Remove unit summary code; first inline hot calls
14723         of functions called once, cold calls next.
14724         (order, nnodes): Remove unused variables.
14725         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
14726         (GTFILES): Remove ipa-inline.c
14727         * sel-sched.c (fill_insns): Silence uninitialized var warning.
14728
14729 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
14730
14731         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
14732
14733 2011-04-18  Jie Zhang  <jie@codesourcery.com>
14734             Richard Earnshaw  <rearnsha@arm.com>
14735
14736         * arm.c (neon_builtin_type_bits): Remove.
14737         (typedef enum neon_builtin_mode): New.
14738         (T_MAX): Don't define.
14739         (typedef enum neon_builtin_datum): Remove bits, codes[],
14740         num_vars and base_fcode.  Add mode, code and fcode.
14741         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
14742         VAR10): Change accordingly.
14743         (neon_builtin_data[]): Change accordingly
14744         (arm_init_neon_builtins): Change accordingly.
14745         (neon_builtin_compare): Remove.
14746         (locate_neon_builtin_icode): Remove.
14747         (arm_expand_neon_builtin): Change accordingly.
14748
14749         * arm.h (enum arm_builtins): Move to ...
14750         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
14751
14752         * arm.c (arm_builtin_decl): Declare.
14753         (TARGET_BUILTIN_DECL): Define.
14754         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
14755         (arm_builtin_decls[]): New.
14756         (arm_init_neon_builtins): Store builtin declarations in
14757         arm_builtin_decls[].
14758         (arm_init_tls_builtins): Likewise.
14759         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
14760         (arm_builtin_decl): New.
14761
14762 2011-04-18  Richard Guenther  <rguenther@suse.de>
14763
14764         * tree.c (upper_bound_in_type): Build properly canonicalized
14765         INTEGER_CSTs.
14766         (lower_bound_in_type): Likewise.
14767
14768 2011-04-18  Richard Guenther  <rguenther@suse.de>
14769
14770         * gimple.h (gimple_call_addr_fndecl): New function.
14771         (gimple_call_fndecl): Use it.
14772         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
14773         for direct calls.
14774         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
14775         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
14776
14777 2011-04-18  Richard Guenther  <rguenther@suse.de>
14778
14779         PR middle-end/48650
14780         * tree.c (build_string): STRING_CST is now derived from tree_typed.
14781
14782 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
14783
14784         PR lto/48492
14785         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
14786         DECL_IN_CONSTANT_POOL without RTL.
14787
14788 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
14789             Ira Rosen  <ira.rosen@linaro.org>
14790
14791         PR target/48252
14792         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
14793         to match neon_vzip/vuzp/vtrn_internal.
14794         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
14795         outputs explicitly dependent on both inputs.
14796         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
14797
14798 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
14799
14800         PR tree-optimization/48616
14801         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
14802         whether the shift is by scalar or vector based on whether all SLP
14803         scalar stmts have the same rhs.
14804
14805 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
14806
14807         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
14808         memory operands.
14809
14810 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
14811
14812         PR target/43700
14813         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
14814         registers.
14815
14816 2011-04-17  Jan Hubicka  <jh@suse.cz>
14817
14818         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
14819         * cgrpahunit.c (cgraph_finalize_function): Do not set
14820         finalized_by_frontend.
14821         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
14822         finalized_by_frontend.
14823
14824 2011-04-17  Jan Hubicka  <jh@suse.cz>
14825
14826         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
14827         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
14828         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
14829         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
14830         method.
14831         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
14832         gimple-fold.c
14833         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
14834
14835 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
14836
14837         PR lto/48538
14838         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
14839         is non-null before accessing it.
14840         (input_cgraph): Remove trailing spaces.
14841
14842 2011-04-17  Revital Eres  <revital.eres@linaro.org>
14843
14844         * params.def (sms-min-sc): New param flag.
14845         * modulo-sched.c (sms_schedule): Use it.
14846         * doc/invoke.texi (sms-min-sc): Document it.
14847
14848 2011-04-17  Jan Hubicka  <jh@suse.cz>
14849
14850         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
14851         present, also set gimple_call_set_cannot_inline.
14852         * ipa-inline.c: Update toplevel comment.
14853         (MAX_TIME): Remove.
14854         (cgraph_clone_inlined_nodes): Fix linebreaks.
14855         (cgraph_check_inline_limits): Restructure to ...
14856         (caller_growth_limits): ... this one; be more tolerant
14857         on growth in nested inline chains; add explanatory comment;
14858         fix stack accounting thinko introduced by previous patch.
14859         (cgraph_default_inline_p): Remove.
14860         (report_inline_failed_reason): New function.
14861         (can_inline_edge_p): New function.
14862         (can_early_inline_edge_p): New function.
14863         (leaf_node_p): Move upwards in file.
14864         (want_early_inline_function_p): New function.
14865         (want_inline_small_function_p): New function.
14866         (want_inline_self_recursive_call_p): New function.
14867         (cgraph_edge_badness): Rename to ...
14868         (edge_badness) ... this one; fix linebreaks.
14869         (update_edge_key): Update call of edge_baddness; add
14870         detailed dump about queue updates.
14871         (update_caller_keys): Use can_inline_edge_p and
14872         want_inline_small_function_p.
14873         (cgraph_decide_recursive_inlining): Rename to...
14874         (recursive_inlining): Use can_inline_edge_p and
14875         want_inline_self_recursive_call_p; simplify and remove no longer
14876         valid FIXME.
14877         (cgraph_set_inline_failed): Remove.
14878         (add_new_edges_to_heap): Use can_inline_edge_p and
14879         want_inline_small_function_p.
14880         (cgraph_decide_inlining_of_small_functions): Rename to ...
14881         (inline_small_functions): ... this one; cleanup; use
14882         can/want predicates; cleanup debug ouput; work edges till fibheap
14883         is exhausted and do not stop once unit growth is reached; remove
14884         later loop processing remaining edges.
14885         (cgraph_flatten): Rename to ...
14886         (flatten_function): ... this one; use can_inline_edge_p
14887         and can_early_inline_edge_p predicates.
14888         (cgraph_decide_inlining): Rename to ...
14889         (ipa_inline): ... this one; remove unreachable nodes before
14890         inlining functions called once; simplify the pass.
14891         (cgraph_perform_always_inlining): Rename to ...
14892         (inline_always_inline_functions): ... this one; use
14893         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
14894         (cgraph_decide_inlining_incrementally): Rename to ...
14895         (early_inline_small_functions): ... this one; simplify
14896         using new predicates; cleanup; make dumps prettier.
14897         (cgraph_early_inlining): Rename to ...
14898         (early_inliner): newer inline regular functions into always-inlines;
14899         fix updating of call stmt summaries.
14900         (pass_early_inline): Update for new names.
14901         (inline_transform): Fix formating.
14902         (gate_cgraph_decide_inlining): Rename to ...
14903         (pass_ipa_inline): ... this one.
14904         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
14905         * ipa-inline-analysis.c (dump_inline_summary): Update.
14906         (compute_inline_parameters): Do not compute disregard_inline_limits;
14907         look for mismatching arguments.
14908         (estimate_growth): Fix handlig of non-trivial self recursion.
14909         (inline_read_summary): Do not read info->disregard_inline_limits.
14910         (inline_write_summary): Do not write info->disregard_inline_limits.
14911         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
14912         and move all checks into can_inline_edge_p predicate; re-enable code
14913         comparing optimization levels.
14914         (expand_call_inline): Do not test inline_forbidden_into_p.
14915         * Makefile.in (ipa-inline.o): Update arguments.
14916
14917 2011-04-17  Revital Eres  <revital.eres@linaro.org>
14918
14919         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
14920
14921 2011-04-17  Revital Eres  <revital.eres@linaro.org>
14922
14923         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
14924
14925 2011-04-17  Michael Matz  <matz@suse.de>
14926
14927         PR tree-optimization/48622
14928         PR lto/48645
14929         * ipa-inline-analysis.c (inline_read_summary): Read size/time
14930         in same order as they're written.
14931
14932 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14933
14934         * config/pa/predicates.md: Reorganize and simplify predicates.
14935         Eliminate duplicate code checks.
14936         (arith_operand): Rename to arith14_operand
14937         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
14938         * config/pa/pa.md: Use renamed operands.
14939         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
14940         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
14941         arith11_operand, adddi3_operand, indexed_memory_operand,
14942         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
14943         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
14944         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
14945         move_dest_operand, move_src_operand, prefetch_cc_operand,
14946         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
14947         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
14948         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
14949         div_operand, int5_operand, movb_comparison_operator,
14950         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
14951         arith_double_operand, ireg_operand, lhs_lshift_operand,
14952         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
14953         integer_store_memory_operand): Likewise.
14954         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
14955         (integer_store_memory_operand, read_only_operand,
14956         function_label_operand, borx_reg_operand,
14957         non_hard_reg_operand): Likewise.
14958         (eq_neq_comparison_operator): Delete unused operator.
14959         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
14960         function_label_operand.
14961         (emit_move_sequence): Likewise.
14962
14963 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
14964
14965         * config/i386/sse.md (sseunpackmode): New mode attribute.
14966         (ssepackmode): Ditto.
14967         (vec_pack_trunc_<mode>): Macroize expander from
14968         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
14969         (vec_unpacks_lo_<mode>): Macroize expander from
14970         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
14971         (vec_unpacks_hi_<mode>): Macroize expander from
14972         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
14973         (vec_unpacku_lo_<mode>): Macroize expander from
14974         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
14975         (vec_unpacku_hi_<mode>): Macroize expander from
14976         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
14977         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
14978         ix86_expand_sse4_unpack.
14979         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
14980
14981 2011-04-16  Jan Hubicka  <jh@suse.cz>
14982
14983         * cgraphbuild.c: Include ipa-inline.h.
14984         (reset_inline_failed): Use initialize_inline_failed.
14985         * cgraph.c: Include ipa-inline.h.
14986         (cgraph_create_node_1): Do not initialize estimated_growth.
14987         (initialize_inline_failed): More to ipa-inline-analysis.c
14988         (dump_cgraph_node): Do not dump inline flags.
14989         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
14990         and disregard_inline_limits flags.
14991         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
14992         time, size, estimated_growth.
14993         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
14994         Update.
14995         * cgraphunit.c (cgraph_decide_is_function_needed): Use
14996         DECL_DISREGARD_INLINE_LIMITS.
14997         (cgraph_analyze_function): Do not initialize
14998         node->local.disregard_inline_limits.
14999         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
15000         inlinable, versionable and disregard_inline_limits.
15001         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
15002         cgraph_check_inline_limits, cgraph_default_inline_p,
15003         cgraph_edge_badness, update_caller_keys, update_callee_keys,
15004         add_new_edges_to_heap): Update.
15005         (cgraph_decide_inlining_of_small_function): Update; set
15006         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
15007         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
15008         cgraph_decide_inlining_incrementally): Update.
15009         * ipa-inline.h (inline_summary): Add inlinable, versionable,
15010         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
15011         time, size and estimated_growth parameters.
15012         (estimate_edge_growth): Update.
15013         (initialize_inline_failed): Declare.
15014         * ipa-split.c: Include ipa-inline.h
15015         (execute_split_functions): Update.
15016         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
15017         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
15018         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
15019         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
15020         estimated_growth to INT_MIN.
15021         (inline_node_duplication_hook): Likewise.
15022         (dump_inline_summary): Dump new fields.
15023         (compute_inline_parameters): Update.
15024         (estimate_edge_time, estimate_time_after_inlining,
15025         estimate_size_after_inlining, estimate_growth, inline_read_summary,
15026         inline_write_summary):
15027         (initialize_inline_failed): Move here from cgraph.c.
15028         * tree-sra.c: Include ipa-inline.h.
15029         (ipa_sra_preliminary_function_checks): Update.
15030         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
15031         ipa-inline.h.
15032
15033 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
15034
15035         * config/i386/sse.md (V16): New mode iterator.
15036         (VI1, VI8): Ditto.
15037         (AVXMODEQI, AVXMODEDI): Remove.
15038         (sse2, sse3): New mode attribute.
15039         (mov<mode>): Use V16 mode iterator.
15040         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
15041         (push<mode>1): Use V16 mode iterator.
15042         (movmisalign<mode>): Ditto.
15043         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
15044         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
15045         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
15046         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
15047         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
15048         avx_movdqu<avxmodesuffix>.
15049         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
15050         *avx_movdqu<avxmodesuffix>.
15051         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
15052         avx_lddqu<avxmodesuffix>.
15053         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
15054         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
15055         avx_movnt<AVXMODEDI:mode>.
15056         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
15057         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
15058
15059 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
15060
15061         PR target/48629
15062         * haifa-sched.c (prune_ready_list, schedule_block): Use
15063         sched_pressure_p rather than flag_sched_pressure.
15064
15065 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
15066
15067         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
15068         cgraph_get_node instead of cgraph_get_create_node.
15069
15070 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
15071
15072         * cfgexpand.c (expand_debug_expr): Use
15073         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
15074
15075 2011-04-15  Michael Matz  <matz@suse.de>
15076
15077         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
15078         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
15079         * function.c (gimplify_parameters): Ditto.
15080         * gimplify.c (gimplify_vla_decl): Ditto.
15081
15082         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
15083         (gimple_call_set_alloca_for_var): New inline function.
15084         (gimple_call_alloca_for_var_p): Ditto.
15085         * gimple.c (gimple_build_call_from_tree): Remember
15086         CALL_ALLOCA_FOR_VAR_P state.
15087         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
15088
15089         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
15090         calls if they were for VLA objects.
15091
15092 2011-04-15  Martin Jambor  <mjambor@suse.cz>
15093
15094         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
15095         of ADR_EXPRs.
15096
15097 2011-04-15  Martin Jambor  <mjambor@suse.cz>
15098
15099         PR middle-end/48601
15100         * tree-emutls.c (lower_emutls_function_body): Call
15101         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
15102         result is non-NULL.
15103
15104 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
15105
15106         * c-decl.c (detect_field_duplicates): Call
15107         objc_detect_field_duplicates instead of objc_get_interface_ivars.
15108
15109 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
15110
15111         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
15112         * gimple.c (gimple_asm_clobbers_memory_p): Define.
15113         * ipa-pure-const.c (check_stmt): Call it.
15114         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
15115
15116 2011-04-15  Richard Guenther  <rguenther@suse.de>
15117
15118         PR tree-optimization/48290
15119         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
15120         Properly decide inhibiting propagation based on the valueized
15121         operand.  Do loop-closed SSA form preserving here ...
15122         (init_copy_prop): ... not here.
15123
15124 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
15125
15126         PR target/48612
15127         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
15128         (*ieee_smax<mode>3): Likewise.
15129
15130 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15131
15132         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
15133         Replace match_operand with match_dup for the third operand in
15134         these expanders.
15135
15136 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
15137
15138         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
15139         to track processing of conditionals.  Update all callers.
15140         (try_combine, simplify_if_then_else): Update.
15141
15142 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
15143
15144         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
15145         -fsched-pressure.
15146
15147 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
15148
15149         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
15150         instead of match_operand for operand 3.
15151
15152 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
15153
15154         * recog.h (insn_operand_data): Add an "allows_mem" field.
15155         * genoutput.c (output_operand_data): Initialize it.
15156         * optabs.c (maybe_legitimize_operand_same_code): New function.
15157         (maybe_legitimize_operand): Use it when matching the original
15158         op->value.
15159
15160 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
15161
15162         * gimplify.c: Fix issues in comments throughout.
15163         (voidify_wrapper_expr): Fix long line.
15164         (build_stack_save_restore): Likewise.
15165         (gimplify_loop_expr): Likewise.
15166         (gimplify_compound_lval): Likewise.
15167         (gimplify_init_ctor_eval): Likewise.
15168         (gimplify_modify_expr_rhs): Likewise.
15169         (omp_notice_threadprivate_variable): Likewise.
15170
15171 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
15172
15173         * cfgexpand.c (expand_call_stmt): Convert the function type to the
15174         original one if this is not a builtin function.
15175
15176 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
15177
15178         PR target/48605
15179         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
15180         offset it as needed based on top 2 bits in operands[3], change
15181         MEM mode to SFmode and mask those 2 bits away from operands[3].
15182
15183 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
15184
15185         * c-parser.c (c_parser_objc_protocol_definition): Updated for
15186         change from objc_declare_protocols() to objc_declare_protocol().
15187
15188 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
15189
15190         * config/i386/sse.md (sse4_1): New mode attribute.
15191         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
15192         avx_blend<ssemodesuffix><avxmodesuffix> and
15193         sse4_1_blend<ssemodesuffix> using VF mode iterator.
15194         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
15195         avx_blendv<ssemodesuffix><avxmodesuffix> and
15196         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
15197         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
15198         avx_dp<ssemodesuffix><avxmodesuffix> and
15199         sse4_1_dp<ssemodesuffix> using VF mode iterator.
15200         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
15201         (sse4_1_packusdw): Merge with *avx_packusdw.
15202         (sse4_1_pblendvb): Merge with *avx_pblendvb.
15203         (sse4_1_pblendw): Merge with *avx_pblendw.
15204         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
15205         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
15206         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
15207         VF mode iterator.
15208         (sse4_1_round<ssescalarmodesuffix>): Merge with
15209         *avx_round<ssescalarmodesuffix>.
15210         (aesenc): Merge with *avx_aesenc.
15211         (aesenclast): Merge with *avx_aesenclast.
15212         (aesdec): Merge with *avx_aesdec.
15213         (aesdeclast): Merge with *avx_aesdeclast.
15214         (pclmulqdq): Merge with *pclmulqdq.
15215         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
15216         New predicate.
15217         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
15218
15219 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
15220
15221         PR middle-end/48608
15222         * cfgexpand.c (get_decl_align_unit): Renamed to ...
15223         (align_local_variable): This.  Update DECL_ALIGN.
15224         (add_stack_var): Updated.
15225         (expand_one_stack_var): Likewise.
15226
15227 2011-04-14  Richard Guenther  <rguenther@suse.de>
15228
15229         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
15230         Remove.
15231         (dse_initialize_block_local_data, dse_leave_block,
15232         record_voperand_set, get_stmt_uid): Likewise.
15233         (dse_possible_dead_store_p): Allow any kind of killing stmt.
15234         (dse_optimize_stmt): Remove voperand set handling code.
15235         Simplify and improve to handle any kind of killing stmt.
15236         (dse_record_phi): Remove.
15237         (dse_enter_block): Simplify.
15238         (tree_ssa_dse): Likewise.
15239         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
15240
15241 2011-04-14  Jan Hubicka  <jh@suse.cz>
15242
15243         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
15244         * cgraph.h (struct inline_summary): Move to ipa-inline.h
15245         (cgraph_local_info): Remove inline_summary.
15246         * ipa-cp.c: Include ipa-inline.h.
15247         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
15248         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
15249         accesor.
15250         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
15251         (input_overwrite_node): Do not set inline summary.
15252         (input_node): Do not stream inline summary.
15253         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
15254         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
15255         growth; we do not have inline parameters computed for that anyway.
15256         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
15257         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
15258         (inline_summary_t): New type and VECtor.
15259         (debug_inline_summary, dump_inline_summaries): Declare.
15260         (inline_summary): Use VOCtor.
15261         (estimate_edge_growth): Kill hack computing call stmt size directly.
15262         * lto-section-in.c (lto_section_name): Add inline section.
15263         * ipa-inline-analysis.c: Include lto-streamer.h
15264         (node_removal_hook_holder, node_duplication_hook_holder): New holders
15265         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
15266         (inline_summary_vec): Define.
15267         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
15268         dump_inline_summaries): New functions.
15269         (estimate_function_body_sizes): Properly compute size/time of outgoing
15270         calls.
15271         (compute_inline_parameters): Alloc inline_summary; do not compute
15272         size/time of incomming calls.
15273         (estimate_edge_time): Avoid missing time summary hack.
15274         (inline_read_summary): Read inline summary info.
15275         (inline_write_summary): Write inline summary info.
15276         (inline_free_summary): Free all hooks and inline summary vector.
15277         * lto-streamer.h: Add LTO_section_inline_summary section.
15278         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
15279         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
15280
15281 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
15282
15283         * tree-vectorizer.h (vect_strided_store_supported): Add a
15284         HOST_WIDE_INT argument.
15285         (vect_strided_load_supported): Likewise.
15286         (vect_permute_store_chain): Return void.
15287         (vect_transform_strided_load): Likewise.
15288         (vect_permute_load_chain): Delete.
15289         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
15290         count argument.  Check that the count is a power of two.
15291         (vect_strided_load_supported): Likewise.
15292         (vect_permute_store_chain): Return void.  Update after above changes.
15293         Assert that the access is supported.
15294         (vect_permute_load_chain): Likewise.
15295         (vect_transform_strided_load): Return void.
15296         * tree-vect-stmts.c (vectorizable_store): Update calls after
15297         above interface changes.
15298         (vectorizable_load): Likewise.
15299         (vect_analyze_stmt): Don't check for strided powers of two here.
15300
15301 2011-04-14  Richard Guenther  <rguenther@suse.de>
15302
15303         PR tree-optimization/48590
15304         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
15305         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
15306         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
15307         BUILT_IN_STACK_SAVE.
15308         * tree-ssa-dce.c (propagate_necessity): Handle
15309         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
15310
15311 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
15312
15313         * c-parser.c (c_parser_objc_class_declaration): Updated call to
15314         objc_declare_class.
15315
15316 2011-04-14  Richard Guenther  <rguenther@suse.de>
15317
15318         * tree.h (get_object_alignment_1): Declare.
15319         * builtins.c (get_object_alignment_1): Split out worker from ...
15320         (get_object_alignment): ... here.
15321         * fold-const.c (get_pointer_modulus_and_residue): Use
15322         get_object_alignment_1.
15323
15324 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
15325
15326         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
15327         type parameter.
15328         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
15329         parameter.  Generalise code to handle arrays as well as vectors.
15330         (vect_setup_realignment): Update accordingly.
15331         * tree-vect-stmts.c (vectorizable_store): Likewise.
15332         (vectorizable_load): Likewise.
15333
15334 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
15335
15336         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
15337         within the per-copy loop.
15338
15339 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
15340
15341         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
15342         in the dump file.
15343
15344 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
15345
15346         * doc/options.texi (Negative): Explicitly mention that the
15347         Negative chain must be circular.
15348
15349 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
15350
15351         * function.h (block_chainon): Declare.
15352         * function.c (block_chainon): Define.
15353
15354 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
15355             Eric Weddington  <eric.weddington@atmel.com>
15356             Georg-Johann Lay  <avr@gjlay.de>
15357
15358         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
15359         New Includes
15360         (avr_init_builtins, avr_expand_builtin,
15361         avr_expand_delay_cycles, avr_expand_unop_builtin,
15362         avr_expand_binop_builtin ): New functions.
15363         (avr_builtin_id): New enum
15364         (struct avr_builtin_description): New struct
15365         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
15366         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
15367
15368         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
15369         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
15370         UNSPECV_DELAY_CYCLES): new enumeration values
15371         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
15372         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
15373         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
15374         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
15375         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
15376         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
15377         "fmulsu"): New insns
15378
15379         * config/avr/avr-c.c: fix line endings
15380         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
15381         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
15382         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
15383         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
15384         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
15385
15386         * doc/extend.texi (AVR Built-in Functions): New node
15387         (Target Builtins): Add documentation of AVR
15388         built-in functions.
15389
15390 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
15391
15392         PR target/44643
15393         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
15394         alone. Error if non-const data has attribute progmem.
15395
15396 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
15397
15398         * tree.h (struct tree_constructor): Include tree_typed instead of
15399         tree_common.
15400         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
15401         TS_TYPED instead of TS_COMMON.
15402
15403 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
15404
15405         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
15406         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
15407         (sse2_psadbw): Merge with *avx_psadbw.
15408         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
15409         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
15410         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
15411         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
15412         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
15413         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
15414         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
15415         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
15416         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
15417         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
15418         (ssse3_palignrti): Merge with *avx_palignrti.
15419
15420 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
15421
15422         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
15423         * tree-ssanames.c (fini_ssanames): VEC_free it.
15424         (make_ssa_name_fn): Update for VECness of free_ssanames.
15425         (release_ssa_name, release_dead_ssa_names): Likewise.
15426         * tree.h (struct tree_ssa_name): Include tree_typed instead of
15427         tree_common.
15428         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
15429         TS_TYPED instead of TS_COMMON.
15430
15431 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
15432
15433         * postreload-gcse.c (gcse_after_reload_main): Add calls to
15434         statistics_counter_event.
15435         * tree-ssa-copyrename.c (stats): Define.
15436         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
15437         statistics_counter_event.
15438         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
15439         (bswap_stats, widen_mul_stats): Define.
15440         (insert_reciprocals): Increment rdivs_inserted.
15441         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
15442         rfuncs_inserted.  Add calls to statistics_counter_event.
15443         (execute_cse_sincos_1): Increment inserted.
15444         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
15445         statistics_counter_event.
15446         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
15447         of bswap_stats.  Add calls to statistics_counter_event.
15448         (convert_mult_to_widen): Increment widen_mults_inserted.
15449         (convert_plusminus_to_widen): Increment maccs_inserted.
15450         (convert_mult_to_fma): Increment fmas_inserted.
15451         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
15452         calls to statistics_counter_event.
15453
15454 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
15455
15456         PR rtl-optimization/48455
15457         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
15458         `temp_costs->mem_cost'.
15459
15460 2011-04-13  Jan Hubicka  <jh@suse.cz>
15461
15462         * ipa-inline.h: New file.
15463         * ipa-inline-analysis.c: New file. Broken out of ...
15464         * ipa-inline.c: ... this file; update toplevel comment;
15465         include ipa-inline.h
15466         (inline_summary): Move to ipa-inline.h
15467         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
15468         ipa-inline-analysis.c.
15469         (cgraph_estimate_time_after_inlining): Rename to
15470         estiamte_time_after_inlining; move to ipa-inline-analysis.c
15471         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
15472         to estimate_edge_growth.
15473         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
15474         rename to estimate_size_after_inlining.
15475         (cgraph_mark_inline_edge): Update for new naming convention.
15476         (cgraph_check_inline_limits): Likewise.
15477         (cgraph_edge_badness): Likewise.
15478         (cgraph_decide_recursive_inlining): Likewise.
15479         (cgraph_decide_inlining_of_small_functions): Likewise.
15480         (cgraph_decide_inlining_incrementally): Likewise.
15481         (cgraph_estimate_growth): Rename to estimate_growth; move to
15482         ipa-inline-analysis.c.
15483         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
15484         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
15485         (compute_inline_parameters): Likewise.
15486         (compute_inline_parameters_for_current): Likewise.
15487         (pass_inline_parameters): Likewise.
15488         (inline_indirect_intraprocedural_analysis): Likewise.
15489         (analyze_function): Rename to inline_analyze_function; likewise.
15490         (add_new_function): Move to ipa-inline-analysis.c.
15491         (inline_generate_summary): Likewise.
15492         (inline_read_summary): Likewise.
15493         (inline_write_summary): Likewise.
15494         * Makefile.in (ipa-inline-analysis.c): New file.
15495
15496 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15497
15498         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
15499         * configure: Regenerate.
15500
15501 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
15502
15503         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
15504         instead of tree_common.
15505         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
15506         Likewise.
15507         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
15508         TS_TYPED rather than TS_COMMON.
15509         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
15510
15511 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
15512
15513         PR target/45263
15514         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
15515         r20 around calls of __tablejump_elpm__
15516
15517 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
15518
15519         PR middle-end/48591
15520         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
15521         NULL.
15522         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
15523
15524 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
15525
15526         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
15527         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
15528         (cfi_vec): New typedef.
15529         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
15530         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
15531         (cie_cfi_vec): New static variable.
15532         (cie_cfi_head): Delete.
15533         (add_cfi): Accept a cfi_vec * as first argument. All callers and
15534         declaration changed. Use vector rather than list operations.
15535         (new_cfi): Don't initialize the dw_cfi_next field.
15536         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
15537         rather than list operations.
15538         (lookup_cfa): Use vector rather than list operations.
15539         (output_cfis): New argument upto. Accept a cfi_vec rather than
15540         a dw_cfi_ref list head as argument. All callers changed.
15541         Iterate over the vector using upto as a maximum index.
15542         (output_all_cfis): New static function.
15543         (output_fde): Use vector rather than list operations. Use the
15544         new upto argument for output_cfis rather than manipulating a
15545         list.
15546         (dwarf2out_begin_prologue): Change initializations to match
15547         new struct members.
15548         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
15549         from the vector length rather than searching for the end of a list.
15550         Use output_all_cfis.
15551         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
15552
15553 2011-04-13  Nick Clifton  <nickc@redhat.com>
15554
15555         * config/rx/rx.md (movmemsi): Do not use this pattern when
15556         volatile pointers are involved.
15557
15558 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
15559
15560         * config/i386/sse.md (pinsrbits): Remove.
15561         (sse2_packsswb): Merge with *avx_packsswb.
15562         (sse2_packssdw): Merge with *avx_packssdw.
15563         (sse2_packuswb): Merge with *avx_packuswb.
15564         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
15565         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
15566         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
15567         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
15568         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
15569         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
15570         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
15571         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
15572         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
15573         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
15574         (sse2_loadld): Merge with *avx_loadld.
15575         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
15576         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
15577         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
15578         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
15579         (vec_concatv2di): Merge with *vec_concatv2di_avx.
15580
15581 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
15582
15583         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
15584         calling TREE_CHAIN.
15585         * print-tree.c (print_node): Likewise.
15586         * tree-inline.c (copy_tree_r): Likewise.
15587         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
15588         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
15589         instead of TS_COMMON.
15590         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
15591         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
15592         (copy_node_stat): Zero TREE_CHAIN only if necessary.
15593         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
15594         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
15595         ...and these...
15596         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
15597         * tree.h: ...here.
15598         (TREE_CHAIN): Check for a TS_COMMON structure.
15599         (TREE_TYPE): Check for a TS_TYPED structure.
15600
15601 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
15602
15603         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
15604         cgraph_get_create_node instead of cgraph_node.
15605
15606 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
15607
15608         * c-parser.c (c_parser_initelt): Updated call to
15609         objc_build_message_expr.
15610         (c_parser_postfix_expression): Likewise.
15611
15612 2011-04-12  Kai Tietz  <ktietz@redhat.com>
15613
15614         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
15615         MASK_MS_BITFIELD_LAYOUT bit.
15616
15617 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
15618
15619         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
15620         assert it is always true.
15621         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
15622         moves.
15623
15624 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
15625
15626         * c-parser.c (c_lex_one_token): Rewritten conditional used when
15627         compiling Objective-C to be more efficient.
15628
15629 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
15630
15631         * opts-common.c (decode_cmdline_options_to_array): Remove variable
15632         argv_copied.
15633
15634 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
15635
15636         * recog.h, genoutput.c, optabs.c: Revert last patch.
15637
15638 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15639
15640         PR target/48090
15641         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
15642
15643 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
15644
15645         * recog.h (insn_operand_data): Add an "allows_mem" field.
15646         * genoutput.c (output_operand_data): Initialize it.
15647         * optabs.c (maybe_legitimize_operand_same_code): New function.
15648         (maybe_legitimize_operand): Use it when matching the original
15649         op->value.
15650
15651 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
15652
15653         * genpreds.c (process_define_predicate): Move most processing
15654         to gensupport.c.  Continue to validate the expression.
15655         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
15656         (process_define_predicate): Move processing to gensupport.c.
15657         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
15658         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
15659         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
15660         argument.
15661         (valid_predicate_name_p): New function, split out from old
15662         genpreds.c:process_define_predicate.
15663         (process_define_predicate): New function, combining code from
15664         old genpreds.c and genrecog.c functions.
15665         (process_rtx): Call it for DEFINE_PREDICATE and
15666         DEFINE_SPECIAL_PREDICATE.
15667
15668 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
15669
15670         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
15671         size of a '%A' memory reference.
15672         (T_DREG, T_QREG): New neon_builtin_type_bits.
15673         (arm_init_neon_builtins): Assert that the load and store operands
15674         are neon_struct_operands.
15675         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
15676         (NEON_ARG_MEMORY): New builtin_arg.
15677         (neon_dereference_pointer): New function.
15678         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
15679         Handle NEON_ARG_MEMORY.
15680         (arm_expand_neon_builtin): Update after above interface changes.
15681         Use NEON_ARG_MEMORY for loads and stores.
15682         * config/arm/predicates.md (neon_struct_operand): New predicate.
15683         * config/arm/iterators.md (V_two_elem): Tweak formatting.
15684         (V_three_elem): Use BLKmode for accesses that have no associated mode.
15685         (V_four_elem): Tweak formatting.
15686         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
15687         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
15688         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
15689         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
15690         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
15691         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
15692         (neon_vst4<mode>): Replace pointer operand with a memory operand.
15693         Use %A in the output template.
15694         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
15695         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
15696         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
15697         the width of the memory access.  Remove post-increment.
15698         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
15699
15700 2011-04-12  Nick Clifton  <nickc@redhat.com>
15701
15702         * config/v850/v850.c (expand_prologue): Do not use the CALLT
15703         instruction for interrupt handlers if the target is the basic V850
15704         architecture.
15705         (expand_epilogue): Likewise.
15706
15707 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
15708
15709         PR rtl-optimization/48549
15710         * combine.c (propagate_for_debug): Also stop after BB_END of
15711         this_basic_block.  Process LAST and just stop processing after it.
15712         (combine_instructions): If last_combined_insn has been deleted,
15713         set last_combined_insn to its PREV_INSN.
15714
15715 2011-04-12  Richard Guenther  <rguenther@suse.de>
15716
15717         PR tree-optimization/46076
15718         * gimple.h (struct gimple_statement_call): Add fntype field.
15719         (gimple_call_fntype): Adjust.
15720         (gimple_call_set_fntype): New function.
15721         * gimple.c (gimple_build_call_1): Set the call function type.
15722         * gimplify.c (gimplify_call_expr): Preserve the function
15723         type the frontend used for the call.
15724         (gimplify_modify_expr): Likewise.
15725         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
15726         function type.
15727         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
15728         function type.
15729         * tree-ssa.c (useless_type_conversion_p): Function pointer
15730         conversions are useless.
15731
15732 2011-04-12  Martin Jambor  <mjambor@suse.cz>
15733
15734         * cgraph.h (cgraph_node): Remove function declaration.
15735         (cgraph_create_node): Declare.
15736         (cgraph_get_create_node): Likewise.
15737         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
15738         Updated all callers.
15739         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
15740         the decl does not already exist.  Call cgraph_get_create_node instead
15741         of cgraph_node.
15742         (cgraph_get_create_node): New function.
15743         (cgraph_same_body_alias): Update comment.
15744         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
15745         assert it does not return NULL.
15746         (cgraph_update_edges_for_call_stmt): Likewise.
15747         (cgraph_clone_edge): Likewise.
15748         (cgraph_create_virtual_clone): Likewise.
15749         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
15750         instead of cgraph_node.
15751         (cgraph_add_new_function): Call cgraph_create_node or
15752         cgraph_get_create_node instead of cgraph_node.
15753         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
15754         instead of cgraph_node.
15755         (record_eh_tables): Likewise.
15756         (mark_address): Likewise.
15757         (mark_load): Likewise.
15758         (build_cgraph_edges): Call cgraph_get_create_node instead
15759         of cgraph_node.
15760         (rebuild_cgraph_edges): Likewise.
15761         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
15762         instead of cgraph_node.
15763         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
15764         cgraph_node.
15765         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
15766         cgraph_create_node instead of cgraph_node.
15767         * c-decl.c (finish_function): Call cgraph_get_create_node instead
15768         of cgraph_node.
15769         * lto-cgraph.c (input_node): Likewise.
15770         * lto-streamer-in.c (input_function): Likewise.
15771         * varasm.c (mark_decl_referenced): Likewise.
15772         (assemble_alias): Likewise.
15773
15774 2011-04-12  Martin Jambor  <mjambor@suse.cz>
15775
15776         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
15777         instead of cgraph_node and assert it does not return NULL.
15778         * lto-streamer-in.c (lto_read_body): Likewise.
15779         * omp-low.c (new_omp_context): Likewise.
15780         (create_task_copyfn): Likewise.
15781         * tree-emutls.c (lower_emutls_function_body): Likewise.
15782         * matrix-reorg.c (transform_allocation_sites): Likewise.
15783
15784 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
15785
15786         PR c/48552
15787         * c-typeck.c (build_asm_expr): Error out on attempts to use
15788         void type outputs or inputs for constraints that allow reg or
15789         don't allow memory.
15790
15791 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
15792             Richard Earnshaw  <rearnsha@arm.com>
15793
15794         PR target/48250
15795         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
15796         to use sign-magnitude offsets. Reject unsupported unaligned
15797         cases. Add detailed description in comments.
15798         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
15799         condition from TARGET_32BIT to TARGET_ARM.
15800
15801 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
15802
15803         * tree.h (struct typed_tree): New.
15804         (struct tree_common): Include it instead of tree_base.
15805         (TREE_TYPE): Update for new location of type field.
15806         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
15807         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
15808         (union tree_node): Add typed field.
15809         * treestruct.def (TS_TYPED): New.
15810         * lto-streamer.c (check_handled_ts_structures): Handle it.
15811         * tree.c (MARK_TS_TYPED): New macro.
15812         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
15813
15814 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
15815
15816         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
15817         (force_nonfallthru): Do not alter the loop nest if no basic block
15818         was created.
15819
15820 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
15821
15822         * config/i386/sse.md (VI): New mode iterator.
15823         (SSEMODEI): Remove.
15824         (AVX256MODEI): Ditto.
15825         (AVXMODEF4P): Ditto.
15826         (avxvecpsmode): Ditto.
15827         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
15828         (sse2_andnot<mode>3): New expander.
15829         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
15830         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
15831         (<any_logic:code><mode>3): Use VI mode iterator.
15832         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
15833         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
15834         (*andnottf3): Handle AVX three-operand constraints.
15835         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
15836
15837 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
15838             Robert Millan  <rmh@gnu.org>
15839
15840         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
15841         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
15842         GNU_USER_DYNAMIC_LINKER64): Define.
15843         (REG_NAME): Don't undefine.
15844         (MD_UNWIND_SUPPORT): Undefine.
15845         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
15846         (REG_NAME): Don't undefine.
15847         (MD_UNWIND_SUPPORT): Undefine.
15848         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
15849
15850 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
15851
15852         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
15853         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
15854
15855 2011-04-11  Xinliang David Li  <davidxl@google.com>
15856
15857         * value-profile.c (check_ic_target): New function.
15858         (gimple_ic_transform): Sanity check indirect call target.
15859         * gimple-low.c (gimple_check_call_args): Interface change.
15860         (gimple_check_call_matching_types): New function.
15861         * tree-inline.c (tree_can_inline_p): Call new function.
15862
15863 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
15864
15865         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
15866         tree-pretty-print.h & realmpfr.h.
15867
15868 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
15869
15870         PR middle-end/48464
15871         * ira.c (setup_pressure_classes): Fix typo in loop condition.
15872         (setup_allocno_and_important_classes): Ditto.
15873
15874 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
15875
15876         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
15877         GNU_USER_DYNAMIC_LINKER.
15878         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
15879         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15880         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
15881         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
15882         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
15883         GNU_USER_TARGET_OS_CPP_BUILTINS.
15884         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
15885         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15886         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
15887         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15888         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
15889         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
15890         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
15891         GNU_USER_TARGET_OS_CPP_BUILTINS.
15892         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
15893         GNU_USER_DYNAMIC_LINKER.
15894         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
15895         GNU_USER_TARGET_OS_CPP_BUILTINS.
15896         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
15897         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15898         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
15899         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15900         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
15901         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
15902         GNU_USER_DYNAMIC_LINKER64): Remove.
15903         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
15904         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15905         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
15906         GNU_USER_DYNAMIC_LINKER.
15907         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
15908         GNU_USER_TARGET_OS_CPP_BUILTINS.
15909         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
15910         GNU_USER_TARGET_OS_CPP_BUILTINS.
15911         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
15912         to GNU_USER_TARGET_OS_CPP_BUILTINS.
15913         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
15914         GNU_USER_TARGET_OS_CPP_BUILTINS.
15915         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
15916         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
15917         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
15918         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
15919         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15920         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
15921         GNU_USER_DYNAMIC_LINKER.
15922         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
15923         GNU_USER_TARGET_OS_CPP_BUILTINS.
15924         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
15925         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15926         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
15927         GNU_USER_DYNAMIC_LINKER.
15928         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
15929         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15930         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
15931         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15932         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
15933         GNU_USER_DYNAMIC_LINKER.
15934         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
15935         GNU_USER_DYNAMIC_LINKERN32.
15936         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
15937         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
15938         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
15939         GNU_USER_DYNAMIC_LINKER32.
15940         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
15941         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15942         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
15943         GNU_USER_DYNAMIC_LINKER.
15944         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
15945         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15946         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
15947         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15948         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
15949         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
15950         GNU_USER_DYNAMIC_LINKER32.
15951         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
15952         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
15953         GNU_USER_DYNAMIC_LINKER.
15954         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
15955         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15956         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
15957         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
15958         GNU_USER_DYNAMIC_LINKER64.
15959         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
15960         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15961         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
15962         GNU_USER_DYNAMIC_LINKER.
15963         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
15964         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15965         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
15966         GNU_USER_DYNAMIC_LINKER.
15967         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
15968         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15969         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
15970         GNU_USER_DYNAMIC_LINKER32.
15971         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
15972         GNU_USER_DYNAMIC_LINKER64.
15973         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
15974         GNU_USER_DYNAMIC_LINKER64.
15975         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
15976         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15977         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
15978         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15979         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
15980
15981 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
15982
15983         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
15984         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
15985         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
15986         GNU_USER_DYNAMIC_LINKER.
15987         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
15988         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
15989         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
15990         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
15991         GNU_USER_DYNAMIC_LINKER64.
15992         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
15993         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
15994         GNU_USER_LINK_EMULATION.
15995         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
15996         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
15997         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
15998         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
15999         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
16000         CPP_SPEC, CC1_SPEC): Remove.
16001         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
16002         (GNU_USER_DYNAMIC_LINKER): Define.
16003         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
16004         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
16005         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
16006         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
16007         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
16008         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
16009         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
16010         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
16011         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
16012         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
16013         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
16014         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
16015         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
16016         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
16017         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
16018         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
16019         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
16020         GNU_USER_DYNAMIC_LINKER.
16021         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
16022         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
16023         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
16024         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
16025         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
16026         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
16027         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
16028         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
16029         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
16030         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
16031
16032 2011-04-11  Kai Tietz  <ktietz@redhat.com>
16033
16034         PR target/9601
16035         PR target/11772
16036         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
16037         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
16038         comment.
16039         (ix86_is_msabi_thiscall): Removed.
16040         (ix86_is_type_thiscall): Likewise.
16041         (ix86_get_callcvt): New function.
16042         (ix86_comp_type_attributes): Simplify check.
16043         (ix86_function_regparm): Use ix86_get_callcvt for calling
16044         convention attribute checks.
16045         (ix86_return_pops_args): Likewise.
16046         (ix86_static_chain): Likewise.
16047         (x86_this_parameter): Likewise.
16048         (x86_output_mi_thunk): Likewise.
16049         (ix86_function_type_abi): Optimize check for types without attributes.
16050         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
16051         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
16052         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
16053         by flag-values.
16054         (IX86_BASE_CALLCVT): Helper macro.
16055         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
16056         Use ix86_get_callcvt for calling convention attribute checks and avoid
16057         symbol-decoration for stdcall in TARGET_RTD case.
16058         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
16059         Likewise.
16060         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
16061         for declaration.
16062
16063 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
16064
16065         * config/i386/sse.md (VI_128): New mode iterator.
16066         (VI12_128): Rename from SSEMODE12.
16067         (VI14_128): Rename from SSEMODE14.
16068         (VI124_128): New mode iterator.
16069         (VI24_128): Rename from SSEMODE248.
16070         (VI248_128): Rename from SSEMODE248.
16071         (SSEMODE124C8): Remove.
16072         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
16073         (*sse2_<plusminus_insn><mode>3): Merge with
16074         *avx_<plusminus_insn><mode>3.
16075         (*mulv8hi3): Merge with *avx_mulv8hi3.
16076         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
16077         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
16078         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
16079         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
16080         (ashr<mode>3): Merge with *avx_ashr<mode>3.
16081         (lshr<mode>3): Merge with *avx_lshr<mode>3.
16082         (ashl<mode>3): Merge with *avx_ashl<mode>3.
16083         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
16084         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
16085         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
16086         (*<smaxmin:code>v8hi3): Ditto.
16087         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
16088         (*<smaxmin:code>v16qi3): Ditto.
16089         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
16090         (*sse2_eq<mode>3): Ditto.
16091         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
16092         (*sse2_gt<mode>3): Ditto.
16093         (vcondv2di): Split out of vcond<mode>.
16094         (vconduv2di): Split out of vcondu<mode>.
16095
16096 2011-04-11  Richard Guenther  <rguenther@suse.de>
16097
16098         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
16099         before calling tree_low_cst.
16100
16101 2011-04-11  Richard Guenther  <rguenther@suse.de>
16102
16103         * stor-layout.c (layout_type): Compute all array index size operations
16104         in the original type.
16105         (initialize_sizetypes): Add comment.
16106         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
16107
16108 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
16109
16110         * common.opt (Tbss=, Tdata=, Ttext=): New options.
16111
16112 2011-04-11  Martin Jambor  <mjambor@suse.cz>
16113
16114         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
16115         of cgraph_node, handle NULL return value.
16116         (cgraph_global_info): Likewise.
16117         (cgraph_rtl_info): Likewise.
16118         * tree-inline.c (estimate_num_insns): Likewise.
16119         * gimplify.c (unshare_body): Likewise.
16120         (unvisit_body): Likewise.
16121         (gimplify_body): Likewise.
16122         * predict.c (optimize_function_for_size_p): Likewise.
16123         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
16124         (call_may_clobber_ref_p_1): Likewise.
16125         * varasm.c (function_section_1): Likewise.
16126         (assemble_start_function): Likewise.
16127
16128 2011-04-11  Martin Jambor  <mjambor@suse.cz>
16129
16130         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
16131         of cgraph_node.
16132         * final.c (rest_of_clean_state): Likewise.
16133         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
16134         * passes.c (pass_init_dump_file): Likewise.
16135         (execute_all_ipa_transforms): Likewise.
16136         (function_called_by_processed_nodes_p): Likewise.
16137         * predict.c (maybe_hot_frequency_p): Likewise.
16138         (probably_never_executed_bb_p): Likewise.
16139         (compute_function_frequency): Likewise.
16140         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
16141         (unnest_nesting_tree_1): Likewise.
16142         (lower_nested_functions): Likewise.
16143         * tree-optimize.c (execute_fixup_cfg): Likewise.
16144         (tree_rest_of_compilation): Likewise.
16145         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
16146         * tree-sra.c (ipa_early_sra): Likewise.
16147         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
16148         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
16149         * ipa.c (record_cdtor_fn): Likewise.
16150         * ipa-inline.c (cgraph_early_inlining): Likewise.
16151         (compute_inline_parameters_for_current): Likewise.
16152         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
16153         * ipa-pure-const.c (local_pure_const): Likewise.
16154         * ipa-split.c (split_function): Likewise.
16155         (execute_split_functions): Likewise.
16156         * cgraphbuild.c (build_cgraph_edges): Likewise.
16157         (rebuild_cgraph_edges): Likewise.
16158         (cgraph_rebuild_references): Likewise.
16159         (remove_cgraph_callee_edges): Likewise.
16160         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
16161         (verify_cgraph_node): Likewise.
16162         (cgraph_analyze_functions): Likewise.
16163         (cgraph_preserve_function_body_p): Likewise.
16164         (save_inline_function_body): Likewise.
16165         (save_inline_function_body): Likewise.
16166         * tree-inline.c (copy_bb): Likewise.
16167         (optimize_inline_calls): Likewise.
16168
16169 2011-04-11  Martin Jambor  <mjambor@suse.cz>
16170
16171         PR tree-optimization/48195
16172         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
16173         ipa_check_create_edge_args.
16174         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
16175         ipa_check_create_edge_args.
16176         * ipa-inline.c (inline_generate_summary): Do not call
16177         ipa_check_create_node_params and ipa_check_create_edge_args.
16178         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
16179         ipa_check_create_edge_args.
16180
16181 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
16182
16183         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
16184         instead of loop.
16185         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
16186         * function.c (record_hard_reg_sets): Likewise.
16187         * ira.c (compute_regs_asm_clobbered): Likewise.
16188         * sched-deps.c (sched_analyze_1): Likewise.
16189         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
16190
16191 2011-04-09  Xinliang David Li  <davidxl@google.com>
16192
16193         PR tree-optimization/PR48484
16194         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
16195         has_valid_pred lazily
16196
16197 2011-04-09  Duncan Sands  <baldrick@free.fr>
16198
16199         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
16200
16201 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
16202
16203         * combine.c (combine_validate_cost): Adjust comments.  Set registered
16204         cost of I0 to zero at the end, if any.
16205
16206 2011-04-08  Xinliang David Li  <davidxl@google.com>
16207
16208         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
16209         to insane profile data.
16210
16211 2011-04-08  Xinliang David Li  <davidxl@google.com>
16212
16213         * ipa-cp.c (ipcp_update_profiling): Correct
16214          negative scale factor due to insane profile data.
16215
16216 2011-04-08  Xinliang David Li  <davidxl@google.com>
16217
16218         * final.c (dump_basic_block_info): New function.
16219         (final): Dump basic block.
16220         (final_scan_insn): Remove old dump.
16221
16222 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
16223
16224         PR target/47829
16225         * config.gcc (i386-*-freebsd): Disable unwind table generation for
16226         crtbegin/crtend.
16227
16228 2011-04-08  Michael Matz  <matz@suse.de>
16229
16230         PR middle-end/48389
16231         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
16232         functions.
16233         (rebuild_jump_labels): Call rebuild_jump_labels_1.
16234         * rtl.h (rebuild_jump_labels_chain): Declare.
16235         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
16236         insns inserted on edges.
16237
16238 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
16239
16240         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
16241         * config/arm/arm-arches.def: New.
16242         * config/arm/arm-opts.h: New.
16243         * config/arm/genopt.sh: New.
16244         * config/arm/arm-tables.opt: New (generated).
16245         * config/arm/arm.c (arm_handle_option, arm_target_help,
16246         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
16247         (all_architectures): Get most table contents from arm-arches.def.
16248         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
16249         arm_selected_tune here.
16250         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
16251         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
16252         (march=, mcpu=, mtune=): Use Enum and Var.
16253         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
16254         (arm.o): Update dependencies.
16255
16256 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
16257
16258         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
16259         of header_file.
16260         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
16261         (write_typed_alloc_defns): Likewise.
16262         (main): Calls write_typed_alloc_defns with output_header.
16263
16264 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
16265
16266         PR inline-asm/48435
16267         * ira-color.c (setup_profitable_hard_regs): Add comments.
16268         Don't take prohibited hard regs into account.
16269         (setup_conflict_profitable_regs): Rename to
16270         get_conflict_profitable_regs.
16271         (check_hard_reg_p): Check prohibited hard regs.
16272
16273 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
16274
16275         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
16276         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
16277         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
16278
16279 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16280
16281         PR target/48366
16282         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
16283         move from floating point to shift amount register.
16284         (emit_move_sequence): Remove secondary reload support for floating
16285         point to shift amount amount register copies.
16286         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
16287         amount register copies.
16288         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
16289         register, return false if mode isn't a scalar integer mode.
16290         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
16291
16292 2011-04-08  Richard Guenther  <rguenther@suse.de>
16293
16294         * gimple.c (gimple_call_flags): Remove kludge.
16295
16296 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
16297
16298         * sel-sched.c (sel_region_init): Move call to
16299         sel_setup_region_sched_flags after setup_current_loop_nest.
16300
16301 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
16302
16303         PR rtl-optimization/48272
16304         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
16305         init_insn_reg_pressure_info.  Adjust a caller.
16306         * sched-int.h (init_insn_reg_pressure_info): Declare.
16307         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
16308         when sched-pressure is enabled.
16309
16310 2011-04-08  Richard Guenther  <rguenther@suse.de>
16311
16312         * gimple.c (gimple_set_modified): Do not queue calls to
16313         MODIFIED_NORETURN_CALLS here ...
16314         * tree-ssa-operands.c (update_stmt_operands): ... but here.
16315
16316 2011-04-08  Richard Guenther  <rguenther@suse.de>
16317
16318         PR lto/48467
16319         * toplev.c (lang_dependent_init): Do not open asm_out_file
16320         in WPA mode, nor perform debug machinery initialization.
16321         (finalize): Do not unlink asm_out_file in WPA mode.
16322
16323 2011-04-08  Richard Guenther  <rguenther@suse.de>
16324
16325         * gimple.h (gimple_call_fntype): New function.
16326         (gimple_call_return_type): Use it.
16327         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
16328         * gimple-low.c (gimple_check_call_args): Likewise.
16329         * gimple.c (gimple_call_flags): Likewise.
16330         (gimple_call_arg_flags): Likewise.
16331         (gimple_call_return_flags): Likewise.
16332         * tree-cfg.c (verify_gimple_call): Likewise.
16333         (do_warn_unused_result): Likewise.
16334         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
16335         * value-prof.c (gimple_ic_transform): Fix fndecl check.
16336
16337 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
16338
16339         PR rtl-optimization/48235
16340         * sel-sched.c (code_motion_process_successors): Recompute the last
16341         insn in basic block if control flow changed.
16342         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
16343         Update condition for ilist_remove.
16344
16345 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
16346
16347         PR rtl-optimization/48302
16348         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
16349         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
16350         it to record added preheader blocks.
16351         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
16352         on to sel_add_loop_preheaders.
16353         (sel_region_init): Move call to setup_current_loop_nest after
16354         sel_init_bbs.
16355
16356 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
16357
16358         PR target/48273
16359         * cfgloop.h (loop_has_exit_edges): New helper.
16360         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
16361         non-clonable.
16362         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
16363         that have no exit edges.
16364
16365 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
16366
16367         PR rtl-optimization/48442
16368         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
16369         all callers.  Adjust assert.
16370
16371 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
16372
16373         PR tree-optimization/48377
16374         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
16375         is_packed to true even for types with smaller TYPE_ALIGN than
16376         TYPE_SIZE.
16377
16378 2011-04-08  Richard Guenther  <rguenther@suse.de>
16379
16380         PR bootstrap/48513
16381         * doc/tm.texi: Re-generate.
16382
16383 2011-04-08  Wei Guozhi  <carrot@google.com>
16384
16385         PR target/47855
16386         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
16387         * config/arm/arm.c (arm_attr_length_push_multi): New function.
16388         * config/arm/arm.md (*push_multi): Change the length computation to
16389         call a C function.
16390
16391 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
16392
16393         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
16394         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
16395         * doc/tm.texi: Regenerate.
16396         * system.h (ASM_OUTPUT_BSS): Poison.
16397         * varasm.c (asm_output_bss): Remove function.
16398         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
16399
16400         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
16401         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
16402         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
16403         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
16404         Likewise.
16405         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
16406         Likewise.
16407         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
16408         Likewise.
16409         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
16410
16411 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
16412
16413         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
16414         EnumValue lines.
16415
16416 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
16417
16418         * config/m68k/m68k.c (m68k_handle_option): Don't handle
16419         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
16420         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
16421         OPT_mcpu32.
16422         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
16423         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
16424         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
16425         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
16426         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
16427         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
16428         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
16429         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
16430         options.  Don't map other m68k options manually.  Don't handle
16431         old-style options as canonical.
16432         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
16433         * doc/install.texi (m68k-*-*): Document binutils version requirement.
16434
16435 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
16436
16437         * basic-block.h (force_nonfallthru): Move to...
16438         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
16439         (force_nonfallthru): ...here.
16440         * cfghooks.c (force_nonfallthru): New function.
16441         * cfgrtl.c (force_nonfallthru): Rename into...
16442         (rtl_force_nonfallthru): ...this.
16443         (commit_one_edge_insertion): Do not set AUX field.
16444         (commit_edge_insertions): Do not discover new basic blocks.
16445         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
16446         (cfg_layout_rtl_cfg_hooks): Likewise.
16447         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
16448         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
16449         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
16450
16451 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
16452
16453         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
16454         Remove macros.
16455
16456 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
16457
16458         * config/i386/sse.md: Update copyright year.
16459         (avxcvtvecmode): Remove.
16460         (sse_movhlps): Merge with *avx_movhlps.
16461         (sse_movlhps): Merge with *avx_movlhps.
16462         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
16463         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
16464         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
16465         (sse_loadhps): Merge with *avx_loadhps.
16466         (sse_storelps): Merge with *avx_storelps.
16467         (sse_loadlps): Merge with *avx_loadlps.
16468         (sse_movss): Merge with *avx_movss.
16469         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
16470         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
16471         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
16472         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
16473         (vec_set<mode>_0): Ditto.
16474         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
16475         (sse4_1_insertps): Merge with *avx_insertps.
16476         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
16477         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
16478         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
16479         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
16480         (sse2_storehpd): Merge with *avx_storehpd.
16481         (sse2_loadhpd): Merge with *avx_loadhpd.
16482         (sse2_loadlpd): Merge with *avx_loadlpd.
16483         (sse2_movsd): Merge with *avx_movsd.
16484         (*vec_concatv2df): Merge with *vec_concatv2df.
16485
16486 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
16487
16488         PR debug/48343
16489         * combine.c (combine_instructions): Add last_combined_insn,
16490         update it if insn is after it, pass it to all try_combine calls.
16491         (try_combine): Add last_combined_insn parameter, pass it instead of
16492         i3 to propagate_for_debug.
16493
16494 2011-04-07  Nick Clifton  <nickc@redhat.com>
16495
16496         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
16497         to handle MDR <-> data register transfers.
16498         (movhi_internal): Likewise.
16499
16500 2011-04-07  Alan Modra  <amodra@gmail.com>
16501
16502         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
16503         previous stack info.
16504
16505 2011-04-07  Tom de Vries  <tom@codesourcery.com>
16506
16507         PR target/43920
16508         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
16509         flow_find_cross_jump.  Swap variables to implement backward replacement.
16510         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
16511
16512 2011-04-07  Tom de Vries  <tom@codesourcery.com>
16513
16514         PR target/43920
16515         * cfgcleanup.c (walk_to_nondebug_insn): New function.
16516         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
16517         and bb2.
16518         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
16519         src1 or src2.  Redirect edges to the last basic block.  Update
16520         frequency and count on multiple basic blocks in case of fallthru.
16521
16522 2011-04-07  Tom de Vries  <tom@codesourcery.com>
16523
16524         PR target/43920
16525         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
16526         function.
16527         (old_insns_match_p): Change return type.  Replace return false/true
16528         with return dir_none/dir_both.  Use can_replace_by.
16529         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
16530         direction from dir_p.  Register replacement direction in dir, last_dir
16531         and afterlast_dir.  Handle new return type of old_insns_match_p using
16532         merge_dir.  Return replacement direction in dir_p.
16533         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
16534         return type of old_insns_match_p.
16535         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
16536         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
16537         flow_find_cross_jump.
16538         * basic-block.h (enum replace_direction): New type.
16539         (flow_find_cross_jump): Add parameter to declaration.
16540
16541 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
16542
16543         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
16544         (AVXMODEDCVTPS2DQ): Ditto.
16545         (VEC_FLOAT_MODE): Ditto.
16546         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
16547         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
16548         (<any_logic:code><mode>3): Use VF mode iterator.
16549         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
16550         Use VF mode iterator.
16551         (copysign<mode>3): Use VF mode iterator.
16552         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
16553         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
16554         (*<any_logic:code><MODEF:mode>3): Merge with
16555         *avx_<any_logic:code><MODEF:mode>3.
16556         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
16557         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
16558         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
16559         (avx_cvtdq2ps<avxmodesuffix>): Remove.
16560         (sse2_cvtdq2ps): Use %v modifier.
16561         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
16562         (avx_cvtps2dq<avxmodesuffix>): Remove.
16563         (sse2_cvtps2dq): Use %v modifier.
16564         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
16565         (avx_cvttps2dq<avxmodesuffix>): Remove.
16566         (sse2_cvttps2dq): Use %v modifier.
16567         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
16568         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
16569         (sse2_cvtsd2siq): Fix insn template.
16570         (sse2_cvtsd2siq_2): Ditto.
16571         (sse2_cvttsd2siq): Ditto.
16572         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
16573         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
16574
16575 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
16576
16577         * gcov-io.c: Use GCC Runtime Library Exception.
16578
16579 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
16580
16581         PR debug/48466
16582         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
16583         as base_reg whatever register reg has been eliminated to, instead
16584         of hardcoding STACK_POINTER_REGNUM.
16585
16586 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
16587
16588         * doc/tm.texi.in: Document C target hooks as separate from general
16589         target hooks.
16590         * doc/tm.texi: Regenerate.
16591         * genhooks.c (struct hook_desc): Add docname field.
16592         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
16593         docname field.
16594         (hook_array): Include c-target.def.
16595         (emit_documentation): Use docname field in output.
16596         (emit_init_macros): Take docname argument.  Only emit definitions
16597         for hooks matching docname.
16598         (main): Expect additional arguments in all cases.  Pass argument
16599         to emit_init_macros.
16600         * target.def: Move initial macro definitions and comments to
16601         target-hooks-macros.h.
16602         (gcc_targetcm): Move to c-family/c-target.def.
16603         * target.h (targetcm): Move declaration to c-family/c-target.h.
16604         * targhooks.c (default_handle_c_option): Move to
16605         c-family/c-opts.c.
16606         * targhooks.h (default_handle_c_option): Move declaration to
16607         c-family/c-common.h.
16608         * target-hooks-macros.h: New file.
16609         * config.gcc (target_has_targetcm): Define and use to add to
16610         c_target_objs and cxx_target_objs.
16611         * config/default-c.c: New file.
16612         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
16613         of target.h and target-def.h.
16614         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
16615         (darwin_objc_construct_string, darwin_cfstring_ref_p,
16616         darwin_check_cfstring_format_arg): Make static.
16617         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
16618         TARGET_STRING_OBJECT_REF_TYPE_P,
16619         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
16620         * config/darwin-protos.h (darwin_objc_construct_string,
16621         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
16622         declare.
16623         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
16624         TARGET_STRING_OBJECT_REF_TYPE_P,
16625         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
16626         * config/t-darwin (darwin-c.o): Update dependencies.
16627         * system.h (TARGET_HAS_TARGETCM): Poison.
16628         * Makefile.in (TARGET_H): Update.
16629         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
16630         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
16631         (default-c.o): New target.
16632         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
16633         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
16634         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
16635         c-target.def.
16636         (build/genhooks.o): Update dependencies.
16637
16638 2011-04-06  Richard Guenther  <rguenther@suse.de>
16639
16640         * ipa-inline.c (enum inlining_mode): Remove.
16641         (cgraph_flatten): Use some other token.
16642         (cgraph_edge_early_inlinable_p): New function, split out from ...
16643         (cgraph_perform_always_inlining): New function, split out from ...
16644         (cgraph_decide_inlining_incrementally): ... here.
16645         (cgraph_mark_inline_edge): Adjust.
16646         (cgraph_early_inlining): Re-structure.
16647         (pass_early_inline): Require SSA form.
16648
16649 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
16650             Julian Brown  <julian@codesourcery.com>
16651             Mark Shinwell  <shinwell@codesourcery.com>
16652
16653         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
16654         LO_REGS only for Thumb-1.
16655         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
16656         be used in short instructions when optimising for size on Thumb-2.
16657
16658 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
16659
16660         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
16661         associated with user returns to be preserved.
16662
16663 2011-04-06  Tristan Gingold  <gingold@adacore.com>
16664
16665         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
16666         symbol_queue_size, DBXOUT_DECR_NESTING,
16667         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
16668         if XCOFF_DEBUGGING_INFO.
16669
16670 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
16671
16672         * config/i386/i386.md (attribute isa): New.
16673         (attribute enabled): New.
16674         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
16675         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
16676         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
16677         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
16678         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
16679         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
16680         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
16681         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
16682
16683         * config/i386/sse.md (VF): New mode iterator.
16684         (VF1): Ditto.
16685         (VF2): Ditto.
16686         (VF_128): Ditto.
16687         (SSEMODEF4): Remove.
16688         (attribute sse): Handle V8SF and V4DF modes.
16689         (<absneg:code><mode>2): Use VF mode iterator.
16690         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
16691         mode iterator.
16692         (<plusminus_insn><mode>3): Use VF mode iterator.
16693         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
16694         Use VF mode iterator.
16695         (<sse>_vm<plusminus_insn><mode>3): Merge with
16696         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
16697         (mul<mode>3): Use VF mode iterator.
16698         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
16699         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
16700         mode iterator.
16701         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
16702         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
16703         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
16704         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
16705         mode iterator.
16706         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
16707         Use VF1 mode iterator.
16708         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
16709         (sqrt<VF2:mode>2): New expander.
16710         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
16711         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
16712         and sqrtv2df2.  Use VF mode iterator.
16713         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
16714         mode iterator.
16715         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
16716         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
16717         Use VF1 mode iterator.
16718         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
16719         (<smaxmin:code><mode>3): Use VF mode iterator.
16720         (*<smaxmin:code><mode>3_finite): Merge with
16721         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
16722         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
16723         (<sse>_vm<smaxmin:code><mode>2): Merge with
16724         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
16725         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
16726         mode iterator.
16727         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
16728         mode iterator.
16729         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
16730         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
16731         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
16732         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
16733         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
16734         VF mode iterator.
16735         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
16736         Use VF_128 mode iterator.
16737         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
16738         mode iterator.
16739         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
16740         VF_128 mode iterator.
16741         (vcond<mode>): Use VF mode iterator.
16742         * config/i386/predicates.md (sse_comparison_operator): Merge with
16743         avx_comparison_float_operator.  Do not declare as special_predicate.
16744         * config/i386/i386.c (struct builtin_description): Update for renamed
16745         compare patterns.
16746         (ix86_expand_args_builtin): Ditto.
16747         (ix86_expand_sse_compare_mask): Ditto.
16748
16749 2011-04-06  Richard Guenther  <rguenther@suse.de>
16750
16751         * tree-inline.c (estimate_num_insns): For calls simply account
16752         for all passed arguments and a used return value.
16753
16754 2011-04-06  Richard Guenther  <rguenther@suse.de>
16755
16756         PR tree-optimization/47663
16757         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
16758         call_stmt_time fields.
16759         (cgraph_edge_inlinable_p): Declare.
16760         (cgraph_edge_recursive_p): New inline function.
16761         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
16762         (cgraph_clone_edge): Copy it.
16763         * ipa-inline.c (cgraph_estimate_edge_time): New function.
16764         Account for call stmt time.
16765         (cgraph_estimate_time_after_inlining): Take edge argument.
16766         (cgraph_estimate_edge_growth): Account call stmt size.
16767         (cgraph_estimate_size_after_inlining): Take edge argument.
16768         (cgraph_mark_inline_edge): Adjust.
16769         (cgraph_check_inline_limits): Likewise.
16770         (cgraph_recursive_inlining_p): Remove.
16771         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
16772         (cgraph_decide_recursive_inlining): Take edge argument and
16773         adjust.
16774         (cgraph_decide_inlining_of_small_functions): Do not avoid
16775         diags for recursive inlining here.
16776         (cgraph_flatten): Adjust.
16777         (cgraph_decide_inlining_incrementally): Likewise.
16778         (estimate_function_body_sizes): Remove call cost handling.
16779         (compute_inline_parameters): Initialize caller edge call costs.
16780         (cgraph_estimate_edge_growth): New function.
16781         (cgraph_estimate_growth): Use it.
16782         (cgraph_edge_badness): Likewise.
16783         (cgraph_check_inline_limits): Take an edge argument.
16784         (cgraph_decide_inlining_of_small_functions): Adjust.
16785         (cgraph_decide_inlining): Likewise.
16786         * tree-inline.c (estimate_num_insns): Only account for call
16787         return value if it is used.
16788         (expand_call_inline): Avoid diagnostics on recursive inline
16789         functions here.
16790         * lto-cgraph.c (lto_output_edge): Output edge call costs.
16791         (input_edge): Input edge call costs.
16792
16793 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16794
16795         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
16796
16797 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
16798
16799         * doc/invoke.texi (Spec Files): Fix typo.
16800
16801 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
16802
16803         * profile.c (branch_prob): Move declaration of local variable.  Remove
16804         obsolete ??? comment.  Expand the location explicitly instead of using
16805         the LOCATION_FILE and LOCATION_LINE macros.
16806
16807 2011-04-06  Wei Guozhi  <carrot@google.com>
16808
16809         PR target/47855
16810         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
16811         (arm_cond_branch): Likewise.
16812         (arm_cond_branch_reversed): Likewise.
16813         (arm_jump): Likewise.
16814         (push_multi): Likewise.
16815         * config/arm/constraints.md (Py): New constraint.
16816
16817 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
16818
16819         PR bootstrap/48471
16820         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
16821         Move these...
16822         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
16823         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
16824         #ifdef DBX_DEBUGGING_INFO.
16825
16826 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
16827
16828         PR bootstrap/48403
16829         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
16830         if old and new states differ.
16831
16832 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
16833
16834         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
16835         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
16836         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
16837         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
16838         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
16839         mcfv4e): Use Alias.
16840         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
16841         ColdFire options to -mcpu= options.
16842
16843 2011-04-05  Jeff Law  <law@redhat.com>
16844
16845         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
16846         check if BB is a successor of LOOP->header and return
16847         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
16848
16849 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
16850
16851         * cprop.c (struct reg_use): Remove.
16852         (reg_use_table): Make an array of RTX.
16853         (find_used_regs, constprop_register, local_cprop_pass,
16854         bypass_block): Simplify users of reg_use_table.
16855         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
16856         on one of the uses found by find_used_regs.
16857
16858 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
16859
16860         PR bootstrap/48469
16861         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
16862         declaration.
16863
16864 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
16865
16866         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
16867         as an rtx.
16868         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
16869
16870 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
16871
16872         PR middle-end/48441
16873         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
16874
16875 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
16876
16877         * combine.c: Include obstack.h.
16878         (struct insn_link): Define.
16879         (uid_log_links): Adjust type.
16880         (FOR_EACH_LOG_LINK): New macro.
16881         (insn_link_obstack): Declare.
16882         (alloc_insn_link): Define.
16883         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
16884         type of link variables.
16885         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
16886         (try_combine, record_promoted_values, distribute_notes): Likewise.
16887         (distribute_links): Likewise.  Tweak prototype.
16888         (clear_log_links): Delete.
16889         (adjust_for_new_dest): Call alloc_insn_link.
16890         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
16891
16892 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
16893
16894         * gcse.c (modify_mem_list): Convert to an array of VECs.
16895         (canon_modify_mem_list, compute_transp): Tweak formatting.
16896         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
16897         (load_killed_in_block_p): Likewise.
16898         (record_last_mem_set_info): Likewise.
16899         (clear_modify_mem_tables): Likewise.
16900
16901 2011-04-05  Tom de Vries  <tom@codesourcery.com>
16902
16903         PR middle-end/48461
16904         * function.c (emit_use_return_register_into_block): Only define if
16905         HAVE_return.
16906
16907 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
16908
16909         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
16910
16911 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
16912
16913         * config/rx/rx-opts.h: New.
16914         * config/rx/rx.c (rx_cpu_type): Remove.
16915         (rx_handle_option): Don't assert that global structures are in
16916         use.  Access variables via opts pointer.  Defer most handling of
16917         OPT_mint_register_.  Use error_at.
16918         (rx_option_override): Handle deferred OPT_mint_register_ here.
16919         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
16920         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
16921         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
16922         (rx_cpu_types): New Enum and EnumValue entries.
16923         (mint-register=): Use Defer and use Var accordingly.
16924
16925 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
16926
16927         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
16928         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
16929         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
16930         Move these...
16931         (debug_free_queue, debug_nesting, symbol_queue_index):
16932         ...and these...
16933         * dbxout.c: ...to here.  Make static.
16934
16935 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
16936
16937         * gcse.c (modify_pair): Define.  Define a VEC of it.
16938         (canon_modify_mem_list): Convert to an array of VECs.
16939         (free_insn_expr_list_list): Delete.
16940         (clear_modify_mem_tables): Call VEC_free instead.
16941         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
16942         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
16943         (canon_list_insert, compute_transp): Likewise.
16944
16945 2011-04-05  Tom de Vries  <tom@codesourcery.com>
16946
16947         PR target/43920
16948         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
16949         for size.
16950
16951 2011-04-05  Tom de Vries  <tom@codesourcery.com>
16952
16953         PR target/43920
16954         * function.c (emit_use_return_register_into_block): New function.
16955         (thread_prologue_and_epilogue_insns): Use
16956         emit_use_return_register_into_block.
16957
16958 2011-04-05  Tom de Vries  <tom@codesourcery.com>
16959
16960         PR target/43920
16961         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
16962         insn.
16963
16964 2011-04-05  Tom de Vries  <tom@codesourcery.com>
16965
16966         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
16967
16968 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
16969
16970         * config/arm/arm.md (define_constants for unspec): Replace with
16971         define_c_enum.
16972         (define_constants for unspecv): Replace with define_c_enum.
16973         * config/arm/neon.md (define_constants for unspec): Replace with
16974         define_c_enum.
16975
16976 2011-04-04  Richard Henderson  <rth@redhat.com>
16977
16978         PR bootstrap/48400
16979         * dwarf2out.c (output_line_info): Always emit line info from
16980         at least one section.
16981         (dwarf2out_init): Create text_section_line_info here ...
16982         (set_cur_line_info_table): ... not here.
16983
16984 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
16985
16986         PR target/48380
16987         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
16988         not called.
16989
16990         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
16991
16992 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
16993
16994         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
16995         (expr_equiv_p): Remove.
16996         (insert_set_in_table): Look at <dest, src> pair instead of expr.
16997         (hash_scan_set): Update call to insert_set_in_table.
16998         (dump_hash_table): Dump <dest, src> pair.
16999         (lookup_set): Simplify.  Lookup <dest, src> pair.
17000         (compute_transp): Remove, fold heavily simplified code into...
17001         (compute_local_properties): ...here.  Expect COMP and TRANSP
17002         unconditionally.
17003         (find_avail_set): Take set directly from struct expr.
17004         (find_bypass-set): Likewise.
17005         (bypass_block): Likewise.
17006         (cprop_insn): Likewise.  Remove redundant INSN_P test.
17007
17008         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
17009         checks on form of COND from find_implicit_sets to here.
17010         (find_implicit_sets): Cleanup control flow. Split critical edges
17011         if it exposes implicit sets.  Allocate/resize implicit_sets as
17012         necessary.
17013         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
17014         changed something.  Run df_analyze after find_implicit_sets if any
17015         edges were split.  Do not allocate implicit_sets here.
17016
17017         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
17018         (gcse_obstack): Renamed to cprop_obstack.
17019         (GNEW, GNEWVEC, GNEWVAR): Remove.
17020         (gmalloc): Remove.
17021         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
17022         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
17023         (gcse_alloc): Likewise, and rename to cprop_alloc.
17024         (alloc_gcse_men, free_gcse_mem): Remove.
17025         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
17026         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
17027         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
17028
17029         * cprop.c (oprs_not_set_p): Remove.
17030         (mark_set, mark_clobber): Remove.
17031         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
17032         (reg_not_set_p): New function.
17033         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
17034         (cprop_insn): Likewise.
17035         (cprop_jump): Use FOR_EACH_EDGE.
17036
17037 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
17038
17039         PR bootstrap/48403
17040         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
17041         (rank_for_schedule): Use scheduled_insns vector instead of
17042         last_scheduled_insn.
17043         (ok_for_early_queue_removal): Likewise.
17044         (queue_to_ready): Search forward in nonscheduled_insns_begin if
17045         we have a dbg_cnt.
17046         (choose_ready): Likewise.
17047         (commit_schedule): Use VEC_iterate.
17048         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
17049         a dbg_cnt, use it and ensure the first insn is in the ready list.
17050         (haifa_sched_init): Allocate scheduled_insns.
17051         (sched_extend_ready_list): Don't allocate it; reserve space.
17052         (haifa_sched_finish): Free it.
17053
17054 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
17055
17056         * optc-gen.awk: Always remove type from Variable entry before
17057         recording in var_seen.
17058
17059 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
17060
17061         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
17062         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
17063         call to tidy_fallthru_edges.
17064
17065 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
17066
17067         * doc/options.texi (ToLower): Document.
17068         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
17069         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
17070         * opts.h (cl_option): Add cl_tolower field.
17071         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
17072         arguments with lowercase strings.
17073         * config/rx/rx.opt (mcpu=): Add ToLower.
17074         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
17075         argument.
17076
17077 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
17078
17079         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
17080
17081 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
17082
17083         * config/vax/vax.c: Include reload.h.
17084
17085 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
17086
17087         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
17088         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
17089         (sparc_preferred_reload_class): New function.
17090
17091 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
17092
17093         PR debug/48401
17094         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
17095         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
17096
17097 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
17098
17099         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
17100         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
17101
17102 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
17103
17104         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
17105         (ASM_OUTPUT_ALIGNED_BSS): Define.
17106
17107 2011-04-03  Michael Matz  <matz@suse.de>
17108
17109         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
17110         and next_slot members.
17111         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
17112         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
17113         (lto_streamer_cache_append): Declare.
17114         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
17115         unsigned index, remove offset parameter, ensure that we append
17116         or update existing entries.
17117         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
17118         parameter, update next_slot for append.
17119         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
17120         parameter.
17121         (lto_streamer_cache_insert_at): Likewise.
17122         (lto_streamer_cache_append): New function.
17123         (lto_streamer_cache_lookup): Use unsigned index.
17124         (lto_streamer_cache_get): Likewise.
17125         (lto_record_common_node): Don't test tree_node_can_be_shared.
17126         (preload_common_node): Adjust call to lto_streamer_cache_insert.
17127         (lto_streamer_cache_delete): Don't free offsets member.
17128         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
17129         (lto_output_string_with_length): Use lto_output_data_stream.
17130         (lto_output_tree_header): Remove ix parameter, don't write it.
17131         (lto_output_builtin_tree): Likewise.
17132         (lto_write_tree): Adjust callers to above, don't track and write
17133         offset, write unsigned index.
17134         (output_unreferenced_globals): Don't emit all global vars.
17135         (write_global_references): Use unsigned indices.
17136         (lto_output_decl_state_refs): Likewise.
17137         (write_symbol): Likewise.
17138         * lto-streamer-in.c (lto_input_chain): Move earlier.
17139         (input_function): Use unsigned index.
17140         (input_alias_pairs): Don't read and then ignore all global vars.
17141         (lto_materialize_tree): Remove ix_p parameter, don't read index,
17142         don't pass it back, use lto_streamer_cache_append.
17143         (lto_register_var_decl_in_symtab): Use unsigned index.
17144         (lto_register_function_decl_in_symtab): Likewise.
17145         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
17146         index.
17147         (lto_get_builtin_tree): Don't read index, use
17148         lto_streamer_cache_append.
17149         (lto_read_tree): Adjust call to lto_materialize_tree.
17150
17151         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
17152         don't use function calls in arguments to MIN.
17153
17154         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
17155         twice.
17156
17157         * gimple.c (gimple_type_leader_entry): Mark deletable.
17158
17159 2011-04-03  Alan Modra  <amodra@gmail.com>
17160
17161         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
17162
17163 2011-04-03  Michael Matz  <matz@suse.de>
17164
17165         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
17166         an integer.
17167         * tree.h (tree_decl_non_common.vindex): Adjust comment.
17168
17169 2011-04-03  Michael Matz  <matz@suse.de>
17170
17171         * cgraphbuild.c (record_reference): Canonicalize constructor values.
17172         * gimple-fold.c (canonicalize_constructor_val): Accept being called
17173         without function context.
17174         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
17175         current_function_decl and cfun.
17176
17177 2011-04-03  Michael Matz  <matz@suse.de>
17178
17179         * tree.c (decl_init_priority_insert): Don't create entry for
17180         default priority.
17181         (decl_fini_priority_insert): Ditto.
17182         (fields_compatible_p, find_compatible_field): Remove.
17183         * tree.h (fields_compatible_p, find_compatible_field): Remove.
17184         * gimple.c (gimple_compare_field_offset): Adjust block comment.
17185
17186 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
17187
17188         * combine.c (try_combine): Remove useless local variable.
17189
17190 2011-04-03  Richard Guenther  <rguenther@suse.de>
17191             Ira Rosen  <ira.rosen@linaro.org>
17192
17193         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
17194         non-variable offsets and compare the remaining bases of the two
17195         accesses instead of looking for exact same data-ref.
17196
17197 2011-04-02  Kai Tietz  <ktietz@redhat.com>
17198
17199         PR target/48416
17200         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
17201
17202         * i386.c (ix86_is_msabi_thiscall): New helper function.
17203         (ix86_is_type_thiscall): New helper function.
17204         (ix86_comp_type_attributes): Handle thiscall for method-functions
17205         special.
17206         (init_cumulative_args): Likewise.
17207         (find_drap_reg): Likewise.
17208         (ix86_static_chain): Likewise.
17209         (x86_this_parameter): Likewise.
17210         (x86_output_mi_thunk): Likewise.
17211
17212 2011-04-01  Olivier Hainque  <hainque@adacore.com>
17213             Nicolas Setton  <setton@adacore.com>
17214             Eric Botcazou  <ebotcazou@adacore.com>
17215
17216         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
17217         (add_gnat_descriptive_type_attribute): New function.
17218         (gen_array_type_die): Call it.
17219         (gen_enumeration_type_die): Likewise.
17220         (gen_struct_or_union_type_die): Likewise.
17221         (modified_type_die): Likewise.
17222         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
17223         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
17224         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
17225
17226 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
17227
17228         PR bootstrap/48148
17229         * dwarf2out.c (resolve_addr): Don't call force_decl_die
17230         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
17231
17232         Revert:
17233         2011-03-17  Richard Guenther  <rguenther@suse.de>
17234
17235         PR bootstrap/48148
17236         * lto-cgraph.c (input_overwrite_node): Clear the abstract
17237         origin for decls in other ltrans units.
17238         (input_varpool_node): Likewise.
17239
17240 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
17241
17242         PR middle-end/48335
17243         * expr.c (expand_assignment): Handle all possibilities
17244         if TO_RTX is CONCAT.
17245         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
17246         (store_split_bit_field): If SUBREG_REG (op0) or
17247         op0 itself has smaller mode than word, return it
17248         for offset 0 and const0_rtx for out-of-bounds stores.
17249         If word is const0_rtx, skip it.
17250
17251 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
17252
17253         * config/h8300/h8300.c (print_operand_address): Rename to...
17254         (h8300_print_operand_address): ...this. Make static. Adjust comments.
17255         Call h8300_print_operand and h8300_print_operand_address instead of
17256         print_operand and print_operand_address. Declare.
17257         (print_operand): Renake to...
17258         (h8300_print_operand): ...this. Make static. Adjust comments.
17259         Call h8300_print_operand instead of print_operand. Declare.
17260         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
17261         (h8300_register_move_cost): Likewise.
17262         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
17263         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
17264         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
17265         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
17266         * config/h8300/h8300-protos.h (print_operand): Delete.
17267         (print_operand_address): Delete.
17268
17269 2011-04-01  Richard Henderson  <rth@redhat.com>
17270
17271         PR 48400
17272         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
17273         in strict mode before dwarf4.  Re-order tests to early out
17274         before switching sections.
17275
17276 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
17277
17278         * config/h8300/constraints.md: New file.
17279         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
17280         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
17281         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
17282         * config/h8300/predicates.md (bit_operand): Likewise.
17283         (incdec_operand): Use satisfies_constraint_M and
17284         satisfies_constraint_O.  Don't use C code block.
17285         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
17286         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
17287         (compute_mov_length): Use satisfies_constraint_G.
17288         (fix_bit_operand): Use satisfies_constraint_U.
17289         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
17290         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
17291         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
17292         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
17293         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
17294         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
17295         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17296         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
17297         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
17298         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
17299         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
17300         (EXTRA_MEMORY_CONSTRAINT): Delete.
17301
17302 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
17303             Michael Meissner  <meissner@linux.vnet.ibm.com>
17304
17305         PR target/48262
17306         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
17307         operands, as per the specifications.
17308
17309         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
17310         (vec_extract_evenv4sf): Ditto.
17311         (vec_extract_evenv8hi): Ditto.
17312         (vec_extract_evenv16qi): Ditto.
17313         (vec_extract_oddv4si): Ditto.
17314
17315 2011-03-31  Mark Wielaard  <mjw@redhat.com>
17316
17317         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
17318         high_pc attribute if the CU has no associated code. Only output
17319         DW_AT_entry_pc for CU if not generating strict dwarf and
17320         dwarf_version < 4.
17321
17322 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
17323
17324         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
17325         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
17326         out of ...
17327         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
17328         * final.c (final_start_function): Call the new function rather
17329         than using a NULL argument for dwarf2out_frame_debug.
17330
17331         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
17332         that contains the prologue.
17333
17334         * haifa-sched.c (queue_insn): New arg REASON.  All callers
17335         changed.  Print it in debugging output.
17336
17337         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
17338
17339         * sched-ebb.c (begin_schedule_ready): Remove second argument.
17340         Split most of the code into...
17341         (begin_move_insn): ... here.  New function.
17342         (ebb_sched_info): Add a pointer to it.
17343         * haifa-sched.c (scheduled_insns): New static variable.
17344         (sched_extend_ready_list): Allocate it.
17345         (schedule_block): Use it to record the order of scheduled insns.
17346         Perform RTL changes to move insns only after all scheduling
17347         decisions have been made.
17348         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
17349         begin_move_insn field.
17350         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
17351         * sched-int.h (struct haifa_sched_info): Remove second argument
17352         from begin_schedule_ready hook.  Add new member begin_move_insn.
17353         * sched-rgn.c (begin_schedule_ready): Remove second argument.
17354         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
17355
17356         * haifa-sched.c (prune_ready_list): New function, broken out of
17357         schedule_block.
17358         (schedule_block): Use it.
17359
17360 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17361
17362         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
17363
17364 2011-04-01  Kai Tietz  <ktietz@redhat.com>
17365
17366         * config.gcc (*-*-mingw*): Allow as option the
17367         posix threading model.
17368         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
17369         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
17370         definition.
17371         (CPP_SPEC): Add pthread/no-pthread handling.
17372         (LIB_SPEC): Likewise.
17373         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
17374         (LIB_SPEC): Likewise.
17375         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
17376         flag to pass -pthread option for shared libgcc build.
17377         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
17378         for shared libgcc build.
17379         * config/i386/t-mingw-pthread: New file.
17380         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
17381         New define to enable use of library pthread by default.
17382         * config/i386/mingw.opt (pthread): New driver option.
17383         (no-pthread): New driver option.
17384         * config/i386/cygming.opt: Make sure trailing empty line is retained.
17385         * config/i386/mingw-w64.opt: Likewise.
17386
17387 2011-04-01  Gary Funck  <gary@intrepid.com>
17388
17389         * c-decl.c (grokdeclarator): Fix formatting.
17390
17391 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
17392
17393         * expr.c (emit_block_move_via_movmem): Use n_generator_args
17394         instead of n_operands.
17395         (set_storage_via_setmem): Likewise.
17396         * optabs.c (maybe_gen_insn): Likewise.
17397         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
17398         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
17399         (mips_expand_builtin_direct): Likewise.
17400         * config/spu/spu.c (expand_builtin_args): Likewise.
17401
17402 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
17403
17404         * recog.h (insn_data_d): Add n_generator_args.
17405         * genoutput.c (data): Likewise.
17406         (output_insn_data): Print it.
17407         (max_opno, num_dups): Delete.
17408         (scan_operands): Just fill in "d->operand[...]".
17409         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
17410
17411 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
17412
17413         * gensupport.h (pattern_stats): New structure.
17414         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
17415         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
17416         (max_operand_1, max_operand_vec): Delete.
17417         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
17418
17419 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
17420
17421         * emit-rtl.c (emit_pattern_after_setloc): New function.
17422         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
17423         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
17424         (emit_pattern_after): New function.
17425         (emit_insn_after, emit_jump_insn_after): Call it.
17426         (emit_call_insn_after, emit_debug_insn_after): Likewise.
17427         (emit_pattern_before_setloc): New function.
17428         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
17429         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
17430         Likewise.
17431         (emit_pattern_before): New function.
17432         (emit_insn_before, emit_jump_insn_before): Call it.
17433         (emit_call_insn_before, emit_debug_insn_before): Likewise.
17434
17435 2011-03-31  Richard Henderson  <rth@redhat.com>
17436
17437         * dwarf2out.c (dw_separate_line_info_ref): Remove.
17438         (dw_separate_line_info_entry): Remove.
17439         (enum dw_line_info_opcode): New.
17440         (dw_line_info_entry): Use it.
17441         (dw_line_info_table, dw_line_info_table_p): New.
17442         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
17443         (line_info_table, line_info_label_num): Remove.
17444         (line_info_table_in_use): Remove.
17445         (separate_line_info_table): Remove.
17446         (separate_line_info_table_allocated): Remove.
17447         (separate_line_info_table_in_use): Remove.
17448         (LINE_INFO_TABLE_INCREMENT): Remove.
17449         (line_info_label_num): New.
17450         (cur_line_info_table): New.
17451         (text_section_line_info, cold_text_section_line_info): New.
17452         (separate_line_info): New.
17453         (SEPARATE_LINE_CODE_LABEL): Remove.
17454         (print_dwarf_line_table): Remove.
17455         (debug_dwarf): Don't dump it.
17456         (output_one_line_info_table): New.
17457         (output_line_info): Use it.
17458         (new_line_info_table): New.
17459         (set_cur_line_info_table): New.
17460         (dwarf2out_switch_text_section): Use it.
17461         (dwarf2out_begin_function): Likewise.
17462         (push_dw_line_info_entry): New.
17463         (dwarf2out_source_line): Rewrite for new line info tables.
17464         (dwarf2out_init): Remove dead initailizations.
17465
17466 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
17467
17468         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
17469         various flags.
17470         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
17471         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
17472         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
17473         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
17474         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
17475         * opt-functions.awk (flag_init, switch_bit_fields): New.
17476         (switch_flags): Don't handle flags moved to bit-fields.  Don't
17477         generate CL_MISSING_OK or CL_SAVE.
17478         * optc-gen.awk: Update to generate bit-field output as well as
17479         flags field.
17480         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
17481         bit-field instead of CL_REJECT_DRIVER flag.
17482         * opts-common.c (generate_canonical_option,
17483         decode_cmdline_option): Use bit-fields instead of CL_* flags.
17484         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
17485         instead of CL_REJECT_NEGATIVE flag.
17486         * toplev.c (print_switch_values): Use cl_report bit-field instead
17487         of CL_REPORT flag.
17488
17489 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
17490
17491         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
17492         a zero minimum index only if it is redundant.
17493
17494 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
17495
17496         PR rtl-optimization/48381
17497         * ira-color.c (assign_hard_reg): Use hard reg set intersection
17498         instead of ira_class_hard_reg_index for calculating conflicting
17499         hard registers.
17500
17501 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
17502
17503         * cprop.c: Clean up hash table building.
17504         (reg_avail_info): Remove.
17505         (oprs_available_p): Remove.
17506         (record_last_reg_set_info): Remove.
17507         (record_last_set_info): Remove.
17508         (reg_available_p): New function.
17509         (gcse_constant_p): Do not treat unfolded conditions as constants.
17510         (make_set_regs_unavailable): New function.
17511         (hash_scan_set): Simplify with new reg_available_p.
17512         (compute_hash_table_work): Traverse insns stream only once.
17513         Do not compute reg_avail_info. Traverse insns in reverse order.
17514         Record implicit sets after recording explicit sets from the block.
17515
17516 2011-03-31  Michael Matz  <matz@suse.de>
17517
17518         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
17519
17520 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
17521
17522         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
17523         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
17524         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
17525         (h8300_mode_dependent_address_p): New function.
17526         (h8300_get_index): Make static.
17527
17528 2011-03-31  Jeff Law  <law@redhat.com>
17529
17530         * reload1.c (elimination_effects): Fix typo in recent change.
17531
17532         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
17533         typo potentially leading to null pointer dereference.
17534
17535         * caller-save.c (new_saved_hard_reg): Eliminate return value.
17536         (setup_save_areas): Corresponding changes to avoid useless
17537         assignments.
17538
17539         * jump.c (reversed_comparison_code_parts): Avoid successive return
17540         statements when REVERSE_CONDITION is defined.
17541
17542         * expr.c (expand_assignment): Avoid useless assignments.
17543         (expand_expr_real_1): Likewise.
17544         (expand_expr_real_2): Avoid useless statements.
17545
17546         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
17547
17548         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
17549
17550         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
17551         statements.
17552
17553         * stmt.c (expand_expr_stmt): Avoid useless assignment.
17554
17555 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
17556
17557         PR target/47109
17558         * doc/tm.texi.in (TARGET_VERSION): Remove.
17559         * doc/tm.texi: Regenerate.
17560         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
17561         * collect2.c (main): Don't use TARGET_VERSION.
17562         * mips-tdump.c (main): Don't use TARGET_VERSION.
17563         * mips-tfile.c (main): Don't use TARGET_VERSION.
17564         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
17565         * config/rs6000/vxworksae.h: Remove.
17566         * config/alpha/alpha.h (TARGET_VERSION): Remove.
17567         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
17568         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
17569         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
17570         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
17571         * config/arm/arm.h (TARGET_VERSION): Remove.
17572         * config/arm/coff.h (TARGET_VERSION): Remove.
17573         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
17574         * config/arm/elf.h (TARGET_VERSION): Remove.
17575         * config/arm/freebsd.h (TARGET_VERSION): Remove.
17576         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
17577         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
17578         * config/arm/pe.h (TARGET_VERSION): Remove.
17579         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
17580         * config/arm/semi.h (TARGET_VERSION): Remove.
17581         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
17582         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
17583         * config/arm/vxworks.h (TARGET_VERSION): Remove.
17584         * config/avr/avr.h (TARGET_VERSION): Remove.
17585         * config/bfin/bfin.h (TARGET_VERSION): Remove.
17586         * config/fr30/fr30.h (TARGET_VERSION): Remove.
17587         * config/frv/frv.h (TARGET_VERSION): Remove.
17588         * config/h8300/h8300.h (TARGET_VERSION): Remove.
17589         * config/i386/cygwin.h (TARGET_VERSION): Remove.
17590         * config/i386/darwin.h (TARGET_VERSION): Remove.
17591         * config/i386/darwin64.h (TARGET_VERSION): Remove.
17592         * config/i386/djgpp.h (TARGET_VERSION): Remove.
17593         * config/i386/freebsd.h (TARGET_VERSION): Remove.
17594         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
17595         * config/i386/gnu.h (TARGET_VERSION): Remove.
17596         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
17597         * config/i386/i386elf.h (TARGET_VERSION): Remove.
17598         * config/i386/linux.h (TARGET_VERSION): Remove.
17599         * config/i386/linux64.h (TARGET_VERSION): Remove.
17600         * config/i386/lynx.h (TARGET_VERSION): Remove.
17601         * config/i386/mingw32.h (TARGET_VERSION): Remove.
17602         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
17603         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
17604         * config/i386/netware.h (TARGET_VERSION): Remove.
17605         * config/i386/nto.h (TARGET_VERSION): Remove.
17606         * config/i386/openbsd.h (TARGET_VERSION): Remove.
17607         * config/i386/vxworks.h (TARGET_VERSION): Remove.
17608         * config/ia64/elf.h (TARGET_VERSION): Remove.
17609         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
17610         * config/ia64/hpux.h (TARGET_VERSION): Remove.
17611         * config/ia64/linux.h (TARGET_VERSION): Remove.
17612         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
17613         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
17614         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
17615         * config/lm32/lm32.h (TARGET_VERSION): Remove.
17616         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
17617         * config/m32c/m32c.h (TARGET_VERSION): Remove.
17618         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
17619         * config/m32r/m32r.h (TARGET_VERSION): Remove.
17620         * config/m68k/linux.h (TARGET_VERSION): Remove.
17621         * config/m68k/m68k.h (TARGET_VERSION): Remove.
17622         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
17623         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
17624         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
17625         * config/mep/mep.h (TARGET_VERSION): Remove.
17626         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
17627         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
17628         * config/mips/iris6.h (MACHINE_TYPE): Remove.
17629         * config/mips/linux.h (TARGET_VERSION): Remove.
17630         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
17631         * config/mips/vxworks.h (TARGET_VERSION): Remove.
17632         * config/mmix/mmix.h (TARGET_VERSION): Remove.
17633         * config/mn10300/linux.h (TARGET_VERSION): Remove.
17634         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
17635         * config/pa/pa.h (TARGET_VERSION): Remove.
17636         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
17637         * config/picochip/picochip.h (TARGET_VERSION): Remove.
17638         * config/rs6000/aix.h (TARGET_VERSION): Remove.
17639         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
17640         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
17641         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
17642         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
17643         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
17644         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
17645         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
17646         * config/rs6000/linux.h (TARGET_VERSION): Remove.
17647         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
17648         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
17649         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
17650         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
17651         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
17652         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
17653         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
17654         * config/s390/linux.h (TARGET_VERSION): Remove.
17655         * config/s390/s390.h (TARGET_VERSION): Remove.
17656         * config/s390/tpf.h (TARGET_VERSION): Remove.
17657         * config/score/score.h (TARGET_VERSION): Remove.
17658         * config/sh/linux.h (TARGET_VERSION): Remove.
17659         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
17660         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
17661         * config/sh/sh.h (TARGET_VERSION): Remove.
17662         * config/sh/sh64.h (TARGET_VERSION): Remove.
17663         * config/sh/superh.h (TARGET_VERSION): Remove.
17664         * config/sh/vxworks.h (TARGET_VERSION): Remove.
17665         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
17666         * config/sparc/linux.h (TARGET_VERSION): Remove.
17667         * config/sparc/linux64.h (TARGET_VERSION): Remove.
17668         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
17669         TARGET_NAME32, TARGET_NAME): Remove.
17670         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
17671         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
17672         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
17673         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
17674         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
17675         * config/spu/spu.h (TARGET_VERSION): Remove.
17676         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
17677         * config/v850/v850.h (TARGET_VERSION): Remove.
17678         * config/vax/linux.h (TARGET_VERSION): Remove.
17679         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
17680         * config/xtensa/elf.h (TARGET_VERSION): Remove.
17681         * config/xtensa/linux.h (TARGET_VERSION): Remove.
17682
17683 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
17684
17685         PR target/48142
17686         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
17687         frame-related from frame-unrelated adjustments to the stack pointer.
17688
17689 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
17690
17691         * common.opt (fdebug-types-section): Move earlier.
17692         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
17693
17694 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
17695
17696         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
17697         var.
17698
17699 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
17700
17701         * tree.h (CASE_CHAIN): Define.
17702         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
17703         (gimple_redirect_edge_and_branch): Likewise.
17704
17705 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
17706
17707         PR middle-end/48367
17708         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
17709         calculation.
17710
17711 2011-03-30  Jeff Law  <law@redhat.com>
17712
17713         * PR bootstrap/48371
17714         * reload1.c (reload): Fix botch in last change.
17715
17716         * reload.h (struct reload): Fix typo introduced in last change.
17717
17718 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
17719
17720         * config/arm/arm.opt (mhard-float, msoft-float): Mark
17721         Undocumented.  Remove help text.
17722         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
17723         -mhard-float.
17724
17725 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
17726
17727         * doc/options.texi (NegativeAlias): Document.
17728         (Alias): Mention NegativeAlias.
17729         * opt-functions.awk: Handle NegativeAlias.
17730         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
17731         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
17732         * opts.h (CL_NEGATIVE_ALIAS): Define.
17733         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
17734         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
17735         OPT_mspe_.
17736         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
17737         Alias entries.
17738         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
17739         mno-spe and mno-isel instead of mspe=no and -misel=no.
17740
17741 2011-03-29  Mark Wielaard  <mjw@redhat.com>
17742
17743         * common.opt (fdebug-types-section): New flag.
17744         * doc/invoke.texi: Document new -fno-debug-types-section flag.
17745         * dwarf2out.c (use_debug_types): New define.
17746         (struct die_struct): Mark die_id with GTY desc use_debug_types.
17747         (print_die): Guard output of type unit signatures using
17748         use_debug_types.
17749         (build_abbrev_table): Replace assert of dwarf_version >= 4
17750         with assert on use_debug_types.
17751         (size_of_die): Likewise.
17752         (unmark_dies): Likewise.
17753         (value_format): Decide AT_ref_external form on use_debug_types.
17754         (output_die): Replace dwarf_version version check guard with
17755         use_debug_types where appropriate.
17756         (modified_type_die): Likewise.
17757         (gen_reference_type_die): Likewise.
17758         (dwarf2out_start_source_file): Likewise.
17759         (dwarf2out_end_source_file): Likewise.
17760         (prune_unused_types_walk_attribs): Likewise.
17761         (dwarf2out_finish): Likewise.
17762
17763 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
17764
17765         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
17766
17767 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
17768
17769         PR rtl-optimization/48332
17770         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
17771         mode of input operand N and modeN to its actual mode.
17772
17773 2011-03-30  Jeff Law  <law@redhat.com>
17774
17775         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
17776         define accessor macro.
17777         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
17778         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
17779         (reg_equiv_init): Likewise.
17780         (reg_equivs_size): New variable.
17781         (reg_equiv_init_size): Remove.
17782         (allocate_initial_values): Move prototype to here from....
17783         * integrate.h (allocate_initial_values): Remove prototype.
17784         * integrate.c: Include reload.h.
17785         (allocate_initial_values): Corresponding changes.
17786         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
17787         (fix_reg_equiv_init, no_equiv): Corresponding changes.
17788         (update_equiv_regs): Corresponding changes.
17789         (ira): Corresponding changes.
17790         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
17791         (push_secondary_reload): Corresponding changes.
17792         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
17793         (make_memloc, find_reloads_address): Corresponding changes.
17794         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
17795         (find_reloads_address_1): Corresponding changes.
17796         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
17797         (refers_to_regno_for_reload_p): Corresponding changes.
17798         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
17799         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
17800         * reload1.c: Include ggc.h.
17801         (grow_reg_equivs): New function.
17802         (replace_pseudos_in, reload): Corresponding changes.
17803         (calculate_needs_all_insns, alter_regs): Corresponding changes.
17804         (eliminate_regs_1, elimination_effects): Corresponding changes.
17805         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
17806         (delete_output_reload): Likewise.
17807         * caller-save.c (mark_referenced_regs): Corresponding changes.
17808         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
17809         * frv/predicates.md (frv_load_operand): Corresponding changes.
17810         * microblaze/microblaze.c (double_memory_operand): Corresponding
17811         changes.
17812         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
17813         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
17814         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
17815         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
17816         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
17817         changes.
17818         * pa/pa.c (emit_move_sequence): Corresponding changes.
17819         * vax/vax.c (nonindexed_address_p): Corresponding changes.
17820
17821 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
17822
17823         PR target/47551
17824         * config/arm/arm.c (coproc_secondary_reload_class): Handle
17825         structure modes.  Don't check neon_vector_mem_operand for
17826         vector or structure modes.
17827
17828 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
17829             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
17830
17831         PR target/43590
17832         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
17833         operand 1 and reshuffle the operands to match.
17834         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
17835
17836 2011-03-30  Christian Schüler  <cschueler@gmx.de>
17837
17838         PR driver/48208
17839         * config/c.opt (F): Added 'Driver' to -F option.
17840
17841         PR driver/48260
17842         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
17843           handler function.
17844         * config/darwin.opt: Added '-arch' option.
17845
17846 2011-03-30  Nick Clifton  <nickc@redhat.com>
17847
17848         * config/rx/rx.md: Add peepholes and patterns to combine
17849         extending loads and simple arithmetic instructions.
17850         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
17851         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
17852         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
17853         modes to use pre-decrement and post-increment addressing.
17854         (rx_is_restricted_memory_address): Add range checking of REG+INT
17855         addresses.
17856         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
17857         (rx_memory_move_cost): Adjust cost of stores.
17858         (rx_adjust_insn_length): New function.
17859
17860 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
17861
17862         PR c/48305
17863         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
17864         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
17865         matching arg00/arg01 types.
17866
17867 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
17868
17869         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
17870         last_location to UNKNOWN_LOCATION.
17871
17872 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
17873
17874         PR target/48349
17875         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
17876         FLOAT_SSE_REGS.
17877
17878 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
17879             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17880
17881         PR bootstrap/48337
17882         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
17883         Init(PROCESSOR_V7).
17884         (sparc_cpu): Likewise.
17885         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
17886         PROCESSOR_V7.
17887
17888 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
17889
17890         PR target/48336
17891         PR middle-end/48342
17892         PR rtl-optimization/48345
17893         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
17894         hard regs for given mode from profitable regs when doing secondary
17895         allocation.
17896
17897 2011-03-29  Jeff Law  <law@redhat.com>
17898
17899         PR bootstrap/48327
17900         * tree-ssa-threadupdate.c (struct redirection_data): Remove
17901         do_not_duplicate field.
17902         (lookup_redirection_data): Corresponding changes.
17903         (create_duplicates): Always create a template block.
17904         (redirect_edges): Remove code which reused the original block
17905         when it was going to become unreachable code.
17906         (thread_block): Don't set do_not_duplicate field.
17907
17908 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
17909
17910         * lto-opts.c (register_user_option_p, lto_register_user_option):
17911         Make type argument unsigned.
17912         * lto-streamer.h (lto_register_user_option): Make type argument
17913         unsigned.
17914         * opth-gen.awk: Make CL_* macros unsigned.
17915         * opts-common.c (find_opt): Make lang_mask argument unsigned.
17916         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
17917         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
17918         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
17919         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
17920         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
17921         (find_opt): Make lang_mask argument unsigned.
17922
17923 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
17924
17925         PR rtl-optimization/48331
17926         PR rtl-optimization/48334
17927         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
17928         for any used algorithm.
17929
17930 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
17931
17932         * ira-conflicts.c (build_object_conflicts): Add unused attribute
17933         to parent_max.
17934
17935 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
17936
17937         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
17938         (alpha_option_override): Don't set alpha_sr_alias_set.
17939         (emit_frame_store_1): Use gen_frame_mem rather than calling
17940         set_mem_alias_set.
17941         (alpha_expand_epilogue): Ditto.
17942
17943 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
17944
17945         PR tree-optimization/48290
17946         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
17947         vectorization, check that relevant phis in the basic block after
17948         the inner loop are really inner loop's exit phis.
17949
17950 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
17951
17952         PR debug/48190
17953         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
17954         (cached_dw_loc_list_def): New structure.
17955         (cached_dw_loc_list): New typedef.
17956         (cached_dw_loc_list_table): New variable.
17957         (cached_dw_loc_list_table_hash): New function.
17958         (cached_dw_loc_list_table_eq): Likewise.
17959         (add_location_or_const_value_attribute): Take a bool cache_p.
17960         Cache the list when the parameter is true.
17961         (gen_formal_parameter_die): Update caller.
17962         (gen_variable_die): Likewise.
17963         (dwarf2out_finish): Likewise.
17964         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
17965         while generating debug info for the decl.
17966         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
17967         (dwarf2out_init): Initialize cached_dw_loc_list_table.
17968         (resolve_addr): Cache the result of resolving a chain of
17969         location lists.
17970
17971 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
17972
17973         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
17974         conflict object hard regset nodes have intersecting hard reg sets.
17975
17976         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
17977         after regstat_init_n_sets_and_refs.
17978
17979         * ira.c: Add more comments at the top.
17980         (setup_stack_reg_pressure_class, setup_pressure_classes):
17981         Add comments how we compute the register pressure classes.
17982         (setup_allocno_and_important_classes): Add more comments.
17983         (setup_class_translate_array, reorder_important_classes)
17984         (setup_reg_class_relations): Add comments.
17985
17986         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
17987         start of the file.
17988
17989         * ira-color.c: Add 2011 to the Copyright line.
17990         (assign_hard_reg):  Add more comments.
17991         (improve_allocation): Ditto.
17992
17993         * ira-costs.c: Add 2011 to the Copyright line.
17994         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
17995         comments.
17996         (setup_regno_cost_classes_by_mode): Ditto.
17997
17998         Initial patches from ira-improv branch:
17999
18000         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
18001
18002         * ira-build.c (ira_create_object): Remove initialization of
18003         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
18004         (ira_create_allocno): Remove initialization of
18005         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
18006         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
18007         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
18008         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
18009         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
18010         Initialize ALLOCNO_ADD_DATA.
18011         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
18012         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
18013         ALLOCNO_REG.
18014         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
18015         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
18016
18017         * ira.c (ira_reallocate): Remove.
18018         (setup_pressure_classes): Call
18019         ira_init_register_move_cost_if_necessary.  Use
18020         ira_register_move_cost instead of ira_get_register_move_cost.
18021         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
18022         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
18023
18024         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
18025         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
18026         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
18027         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
18028         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
18029         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
18030         Fix formatting.
18031         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
18032         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
18033         (struct allocno_color_data): New.
18034         (allocno_color_data_t): New typedef.
18035         (allocno_color_data): New definition.
18036         (ALLOCNO_COLOR_DATA): New macro.
18037         (struct object_color_data): New.
18038         (object_color_data_t): New typedef.
18039         (object_color_data): New definition.
18040         (OBJECT_COLOR_DATA): New macro.
18041         (update_copy_costs, calculate_allocno_spill_cost): Call
18042         ira_init_register_move_cost_if_necessary.  Use
18043         ira_register_move_cost instead of ira_get_register_move_cost.
18044         (move_spill_restore, update_curr_costs): Ditto.
18045         (allocno_spill_priority): Make it inline.
18046         (color_pass): Allocate and free allocno_color_dat and object_color_data.
18047         (struct coalesce_data, coalesce_data_t): New.
18048         (allocno_coalesce_data): New definition.
18049         (ALLOCNO_COALESCE_DATA): New macro.
18050         (merge_allocnos, coalesced_allocno_conflict_p): Use
18051         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
18052         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
18053         (coalesce_allocnos): Ditto.
18054         (setup_coalesced_allocno_costs_and_nums): Ditto.
18055         (collect_spilled_coalesced_allocnos): Ditto.
18056         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
18057         (setup_slot_coalesced_allocno_live_ranges): Ditto.
18058         (coalesce_spill_slots): Ditto.
18059         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
18060         free allocno_coalesce_data.
18061
18062         * ira-conflicts.c: Fix formatting.
18063         (process_regs_for_copy): Call
18064         ira_init_register_move_cost_if_necessary.  Use
18065         ira_register_move_cost instead of ira_get_register_move_cost.
18066         (build_object_conflicts): Optimize.
18067
18068         * ira-costs.c (record_reg_classes): Optimize.  Call
18069         ira_init_register_move_cost_if_necessary.  Use
18070         ira_register_move_cost, ira_may_move_in_cost, and
18071         ira_may_move_out_cost instead of ira_get_register_move_cost and
18072         ira_get_may_move_cost.
18073         (record_address_regs): Ditto.
18074         (scan_one_insn): Optimize.
18075         (find_costs_and_classes): Optimize.
18076         (process_bb_node_for_hard_reg_moves): Call
18077         ira_init_register_move_cost_if_necessary.  Use
18078         ira_register_move_cost instead of ira_get_register_move_cost.
18079
18080         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
18081         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
18082         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
18083         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
18084         definitions.
18085         (ira_initiate_emit_data, ira_finish_emit_data)
18086         (create_new_allocno): New functions.
18087         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
18088         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
18089         Use ira_register_move_cost instead of ira_get_register_move_cost.
18090
18091         * ira-int.h: Fix some comments.
18092         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
18093         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
18094         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
18095         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
18096         add_data.
18097         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
18098         bitfield after mode.  Make hard_regno a short int.  Make
18099         hard_regno short.  Remove first_coalesced_allocno and
18100         next_coalesced_allocno.  Move mem_optimized_dest_p,
18101         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
18102         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
18103         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
18104         temp, colorable_p.  Add new member add_data.
18105         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
18106         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
18107         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
18108         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
18109         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
18110         (ALLOCNO_ADD_DATA): New macro.
18111         (ira_emit_data_t): New typedef.
18112         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
18113         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
18114         from struct ira_allocno.
18115         (ALLOCNO_EMIT_DATA): New macro.
18116         (ira_allocno_emit_data, allocno_emit_reg): New.
18117         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
18118         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
18119         (OBJECT_ADD_DATA): New macro.
18120         (ira_reallocate): Remove.
18121         (ira_initiate_emit_data, ira_finish_emit_data): New.
18122         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
18123         (ira_init_register_move_cost_if_necessary): New.
18124         (ira_object_conflict_iter_next): Merge into
18125         ira_object_conflict_iter_cond.
18126         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
18127
18128         * ira-live.c (process_single_reg_class_operands): Call
18129         ira_init_register_move_cost_if_necessary.  Use
18130         ira_register_move_cost instead of ira_get_register_move_cost.
18131
18132         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
18133
18134         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
18135
18136         * ira-costs.c: Fix formatting.
18137         (cost_classes, cost_classes_num): Remove.
18138         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
18139         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
18140         (cost_classes_del, cost_classes_htab): New.
18141         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
18142         (initiate_regno_cost_classes, setup_cost_classes): New.
18143         (setup_regno_cost_classes_by_aclass): New.
18144         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
18145         (record_reg_classes): Use regno_cost_classes instead of
18146         cost_classes.  Move checking opposite operand up.
18147         (record_address_regs): Use regno_cost_classes
18148         instead of cost_classes.
18149         (scan_one_insn): Ditto.  Use always general register.
18150         (print_allocno_costs): Use regno_cost_classes instead of
18151         cost_classes.
18152         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
18153         (find_costs_and_classes): Set up cost classes for each registers.
18154         Use also their mode for this.  Use regno_cost_classes instead of
18155         cost_classes.
18156         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
18157         cost_classes.
18158         (free_ira_costs, ira_init_costs): Don't use cost_classes.
18159         (ira_costs, ira_set_pseudo_classes): Call
18160         initiate_regno_cost_classes and finish_regno_cost_classes.
18161
18162         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
18163
18164         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
18165
18166         * target.def (ira_cover_classes): Remove.
18167
18168         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
18169
18170         * doc/tm.texi.in: Ditto.
18171
18172         * ira-conflicts.c: Remove mentioning cover classes from the file.
18173         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
18174         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
18175
18176         * targhooks.c (default_ira_cover_classes): Remove.
18177
18178         * targhooks.h (default_ira_cover_classes): Ditto.
18179
18180         * haifa-sched.c: Remove mentioning cover classes from the file.
18181         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
18182         ira_pressure_classes and ira_pressure_classes_num instead of
18183         ira_reg_class_cover_size and ira_reg_class_cover.  Use
18184         sched_regno_pressure_class instead of sched_regno_cover_class.
18185         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
18186         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
18187
18188         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
18189         classes from the file.
18190         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
18191         (struct object_hard_regs, struct object_hard_regs_node): New.
18192         (struct ira_object): New members profitable_hard_regs,
18193         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
18194         (struct ira_allocno): Rename cover_class to aclass.  Rename
18195         cover_class_cost and updated_cover_class_cost to class_cost and
18196         updated_class_cost.  Remove splay_removed_p and
18197         left_conflict_size.  Add new members colorable_p.
18198         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
18199         (ALLOCNO_COLORABLE_P): New macro.
18200         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
18201         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
18202         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
18203         (OBJECT_...): Rename parameter C to O.
18204         (OBJECT_PROFITABLE_HARD_REGS): New macro.
18205         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
18206         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
18207         (struct target_ira_int): New members x_ira_max_memory_move_cost,
18208         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
18209         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
18210         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
18211         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
18212         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
18213         x_ira_reg_class_subunion.
18214         (ira_max_memory_move_cost, ira_max_register_move_cost)
18215         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
18216         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
18217         (ira_important_class_nums, ira_reg_class_superunion): New macros.
18218         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
18219         (ira_reg_class_union): Rename to ira_reg_class_subunion.
18220         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
18221         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
18222         (ira_tune_allocno_costs_and_cover_classes): Rename to
18223         ira_tune_allocno_costs.
18224         (ira_debug_hard_regs_forest): New.
18225         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
18226         (ira_object_conflict_iter_next): Fix comments.
18227         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
18228         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
18229         cover_class to aclass.
18230         (ira_allocate_and_accumulate_costs): Ditto.
18231         (ira_allocate_and_set_or_copy_costs): Ditto.
18232
18233         * opts.c (decode_options): Remove ira_cover_class check.
18234
18235         * ira-color.c: Remove mentioning cover classes from the file.  Use
18236         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
18237         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
18238         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
18239         (splay-tree.h): Remove include.
18240         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
18241         before copy_freq_compare_func.
18242         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
18243         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
18244         New definitions.
18245         (hard_regs_roots, hard_regs_node_vec): Ditto.
18246         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
18247         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
18248         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
18249         (create_new_object_hard_regs_node): Ditto.
18250         (add_new_object_hard_regs_node_to_forest): Ditto.
18251         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
18252         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
18253         Ditto.
18254         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
18255         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
18256         (remove_unused_object_hard_regs_nodes): Ditto.
18257         (enumerate_object_hard_regs_nodes): Ditto.
18258         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
18259         (object_hard_regs_subnode_t): Ditto.
18260         (struct object_hard_regs_subnode): Ditto.
18261         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
18262         (setup_object_hard_regs_subnode_index): Ditto.
18263         (get_object_hard_regs_subnodes_num): Ditto.
18264         (form_object_hard_regs_nodes_forest): Ditto.
18265         (finish_object_hard_regs_nodes_tree): Ditto.
18266         (finish_object_hard_regs_nodes_forest): Ditto.
18267         (allocnos_have_intersected_live_ranges_p): Rename to
18268         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
18269         (pseudos_have_intersected_live_ranges_p): Rename to
18270         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
18271         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
18272         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
18273         (update_copy_costs): Remove assert.  Skip cost update if the hard
18274         reg does not belong the class.
18275         (assign_hard_reg): Process only profitable hard regs.
18276         (uncolorable_allocnos_num): Make it scalar.
18277         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
18278         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
18279         and ira_reg_class_max_nregs.
18280         (bucket_allocno_compare_func): Check frequency first.
18281         (sort_bucket): Add compare function as a parameter.
18282         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
18283         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
18284         (push_allocno_to_stack): Rewrite for checking new allocno
18285         colorability.
18286         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
18287         (push_only_colorable): Pass new parameter to sort_bucket.
18288         (push_allocno_to_spill): Remove.
18289         (allocno_spill_priority_compare): Make it inline and rewrite.
18290         (splay_tree_allocate, splay_tree_free): Remove.
18291         (allocno_spill_sort_compare): New function.
18292         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
18293         build and use splay tree.  Choose first allocno in uncolorable
18294         allocno bucket to spill.  Remove setting spill cost.
18295         (all_conflicting_hard_regs): Remove.
18296         (setup_allocno_available_regs_num): Check only profitable hard
18297         regs.  Print info about hard regs nodes.
18298         (setup_allocno_left_conflicts_size): Remove.
18299         (put_allocno_into_bucket): Don't call
18300         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
18301         (improve_allocation): New.
18302         (color_allocnos): Call setup_profitable_hard_regs,
18303         form_object_hard_regs_nodes_forest, improve_allocation,
18304         finish_object_hard_regs_nodes_forest.  Setup spill cost.
18305         (print_loop_title): Use pressure classes.
18306         (color_allocnso): Ditto.
18307         (do_coloring): Remove allocation and freeing splay_tree_node_pool
18308         and allocnos_for_spilling.
18309         (ira_sort_regnos_for_alter_reg): Don't setup members
18310         {first,next}_coalesced_allocno.
18311         (color): Remove allocating and freeing removed_splay_allocno_vec.
18312         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
18313         prohibited_class_mode_regs.
18314
18315         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
18316         formatting.
18317         (update_allocno_pressure_excess_length): Use pressure classes.
18318         (inc_register_pressure, dec_register_pressure): Check for pressure
18319         class.
18320         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
18321         pressure class.  Use ira_reg_class_nregs instead of
18322         ira_reg_class_max_nregs.
18323         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
18324         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
18325         (single_reg_class): Use ira_reg_class_nregs instead of
18326         ira_reg_class_max_nregs.
18327         (process_bb_node_lives): Use pressure classes.
18328
18329         * ira-emit.c: Remove mentioning cover classes from the file.  Use
18330         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
18331         (change_loop): Use pressure classes.
18332         (modify_move_list): Call ira_set_allocno_class instead of
18333         ira_set_allocno_cover_class.
18334
18335         * ira-build.c: Remove mentioning cover classes from the file.  Use
18336         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
18337         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
18338         ALLOCNO_UPDATED_CLASS_COST instead of
18339         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
18340         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
18341         (ira_create_allocno): Remove initialization of
18342         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
18343         ALLOCNO_COLORABLE_P.
18344         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
18345         Update conflict regs for the objects.
18346         (create_cap_allocno): Remove assert.  Don't propagate
18347         ALLOCNO_AVAILABLE_REGS_NUM.
18348         (ira_free_allocno_costs): New function.
18349         (finish_allocno): Change a part of code into call of
18350         ira_free_allocno_costs.
18351         (low_pressure_loop_node_p): Use pressure classes.
18352         (object_range_compare_func): Don't compare classes.
18353         (setup_min_max_conflict_allocno_ids): Ditto.
18354
18355         * loop-invariant.c: Remove mentioning cover classes from the file.
18356         Use ira_pressure_classes and ira_pressure_classes_num instead of
18357         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
18358         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
18359         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
18360         Use reg_allocno_class instead of reg_cover_class.
18361         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
18362         STACK_REG_COVER_CLASS.
18363         (get_regno_cover_class): Rename to get_regno_pressure_class.
18364         (move_loop_invariants): Initialize and finalize regstat.
18365
18366         * ira.c: Remove mentioning cover classes from the file.  Add
18367         comments about coloring without cover classes.  Use ALLOCNO_CLASS
18368         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
18369         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
18370         setup_class_subset_and_memory_move_costs.
18371         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
18372         (setup_cover_and_important_classes): Rename to
18373         setup_allocno_and_important_classes.
18374         (setup_class_translate_array): New.
18375         (setup_class_translate): Call it for allocno and pressure classes.
18376         (cover_class_order): Rename to allocno_class_order.
18377         (comp_reg_classes_func): Use ira_allocno_class_translate instead
18378         of ira_class_translate.
18379         (reorder_important_classes): Set up ira_important_class_nums.
18380         (setup_reg_class_relations): Set up ira_reg_class_superunion.
18381         (print_class_cover): Rename to print_classes.  Add parameter.
18382         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
18383         Print pressure classes too.
18384         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
18385         setup_reg_subclasses.
18386         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
18387         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
18388         (setup_prohibited_class_mode_regs): Use
18389         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
18390         (clarify_prohibited_class_mode_regs): New function.
18391         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
18392         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
18393         (ira_init_once): Initialize them.
18394         (free_register_move_costs): Process them.
18395         (ira_init): Move calls of find_reg_classes and
18396         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
18397         Call clarify_prohibited_class_mode_regs.
18398         (ira_no_alloc_reg): Remove.
18399         (too_high_register_pressure_p): Use pressure classes.
18400
18401         * sched-deps.c: Remove mentioning cover classes from the file.
18402         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
18403         ira_pressure_classes and ira_pressure_classes_num instead of
18404         ira_reg_class_cover_size and ira_reg_class_cover.
18405         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
18406         sched_regno_pressure_class instead of sched_regno_cover_class.
18407         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
18408         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
18409
18410         * ira.h: Add 2010 to Copyright.
18411         (ira_no_alloc_reg): Remove external.
18412         (struct target_ira): Rename x_ira_hard_regno_cover_class,
18413         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
18414         x_ira_class_translate to x_ira_hard_regno_allocno_class,
18415         x_ira_allocno_classes_num, x_ira_allocno_classes, and
18416         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
18417         x_ira_pressure_classes, x_ira_pressure_class_translate, and
18418         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
18419         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
18420         x_ira_no_alloc_regs.
18421         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
18422         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
18423         ira_allocno_classes_num and ira_allocno_classes.
18424         (ira_class_translate): Rename to ira_allocno_class_translate.
18425         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
18426         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
18427         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
18428         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
18429         (ira_no_alloc_regs): New.
18430
18431         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
18432         classes from the file.  Use ALLOCNO_CLASS instead of
18433         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
18434         ALLOCNO_COVER_CLASS_COST.
18435         (regno_cover_class): Rename to regno_aclass.
18436         (record_reg_classes): Use ira_reg_class_subunion instead of
18437         ira_reg_class_union.
18438         (record_address_regs): Check overflow.
18439         (scan_one_insn): Ditto.
18440         (print_allocno_costs): Print total mem cost fore regional allocation.
18441         (print_pseudo_costs): Use REG_N_REFS.
18442         (find_costs_and_classes): Use classes intersected with them on the
18443         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
18444         ira_reg_class_union.  Use ira_allocno_class_translate and
18445         regno_aclass instead of ira_class_translate and regno_cover_class.
18446         Modify code for finding regno_aclass.  Setup preferred classes for
18447         the next pass.
18448         (setup_allocno_cover_class_and_costs): Rename to
18449         setup_allocno_class_and_costs.  Use regno_aclass instead of
18450         regno_cover_class.  Use ira_set_allocno_class instead of
18451         ira_set_allocno_cover_class.
18452         (init_costs, finish_costs): Use regno_aclass instead of
18453         regno_cover_class.
18454         (ira_costs): Use setup_allocno_class_and_costs instead of
18455         setup_allocno_cover_class_and_costs.
18456         (ira_tune_allocno_costs_and_cover_classes): Rename to
18457         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
18458         by processing objects.  Use ira_reg_class_max_nregs instead of
18459         ira_reg_class_nregs.
18460
18461         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
18462
18463         * sched-int.h: Remove mentioning cover classes from the file.
18464         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
18465
18466         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
18467         classes from the file.
18468         (struct reg_pref): Rename coverclass into allocnoclass.
18469         (reg_cover_class): Rename to reg_allocno_class.
18470
18471         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
18472
18473         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
18474
18475         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
18476
18477         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
18478
18479         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
18480
18481         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
18482
18483         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
18484
18485         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
18486
18487         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
18488
18489         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
18490
18491         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
18492         (i386_ira_cover_classes): Ditto.
18493
18494         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
18495
18496         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
18497
18498         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
18499
18500         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
18501
18502         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
18503
18504         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
18505
18506         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
18507         (mips_ira_cover_classes): Ditto.
18508
18509         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
18510
18511         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
18512
18513         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
18514
18515         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
18516
18517         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
18518
18519         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
18520         (IRA_COVER_CLASSES_VSX): Ditto.
18521
18522         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
18523         (rs6000_ira_cover_classes): Ditto.
18524
18525         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
18526
18527         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
18528
18529         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
18530
18531         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
18532
18533         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
18534
18535         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
18536
18537         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
18538
18539         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
18540
18541         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
18542
18543         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
18544
18545 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
18546
18547         PR debug/48253
18548         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
18549         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
18550         dw_fde_unlikely_section_end_label, cold_in_std_section,
18551         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
18552         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
18553         fields.
18554         (output_fde): Use dw_fde_second_{begin,end} if second is
18555         true, otherwise dw_fde_{begin,end}.
18556         (output_call_frame_info): Test dw_fde_second_begin != NULL
18557         instead of dw_fde_switched_sections.
18558         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
18559         fields, initialize new fields.  Initialize in_std_section
18560         unconditionally from the first partition.
18561         (dwarf2out_end_epilogue): Don't override dw_fde_end when
18562         dw_fde_second_begin is non-NULL.
18563         (dwarf2out_switch_text_section): Stop initializing removed
18564         dw_fde_struct fields, initialize new fields, initialize
18565         also dw_fde_end here.  Set dw_fde_switch_cfi even when
18566         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
18567         (struct var_loc_list_def): Add last_before_switch field.
18568         (arange_table, arange_table_allocated, arange_table_in_use,
18569         ARANGE_TABLE_INCREMENT, add_arange): Removed.
18570         (size_of_aranges): Count !in_std_section and !second_in_std_section
18571         hunks in fdes, instead of looking at arange_table_in_use.
18572         (output_aranges): Add aranges_length argument, don't call
18573         size_of_aranges here.  Instead of using aranges_table*
18574         emit ranges for fdes when !in_std_section resp.
18575         !second_in_std_section.
18576         (dw_loc_list): Break ranges crossing section switch.
18577         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
18578         use dw_fde_second_end instead of dw_fde_end as end of last range.
18579         (gen_subprogram_die): Don't call add_arange.  Use
18580         dw_fde_{begin,end} for first partition and if switched
18581         section dw_fde_second_{begin,end} for the second.
18582         (var_location_switch_text_section_1,
18583         var_location_switch_text_section): New functions.
18584         (dwarf2out_begin_function): Initialize cold_text_section even
18585         when function_section () isn't text_section.
18586         (prune_unused_types): Don't walk arange_table.
18587         (dwarf2out_finish): Don't needlessly test
18588         flag_reorder_blocks_and_partition when testing cold_text_section_used.
18589         If info_section_emitted, call size_of_aranges and if it indicates
18590         non-empty .debug_aranges, call output_aranges with the computed
18591         size.  Stop using removed dw_fde_struct fields, use
18592         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
18593         for second.
18594
18595         PR debug/48203
18596         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
18597         create ENTRY_VALUE if incoming or address of incoming's MEM
18598         is a hard REG.
18599         * dwarf2out.c (mem_loc_descriptor): Don't emit
18600         DW_OP_GNU_entry_value of DW_OP_fbreg.
18601         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
18602         on ENTRY_VALUE is able to find the canonical parameter VALUE.
18603         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
18604         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
18605         ENTRY_VALUE_EXPs.
18606         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
18607         is a REG_P or MEM_P with REG_P address, compute hash directly
18608         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
18609         (preserve_only_constants): Don't clear VALUES forwaring
18610         ENTRY_VALUE to some other VALUE.
18611
18612 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
18613
18614         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
18615         instead of GEN_INT.
18616
18617 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
18618
18619         * cfgexpand.c (expand_gimple_cond): Always set the source location and
18620         block before expanding the statement.
18621         (expand_gimple_stmt_1): Likewise.  Set them here...
18622         (expand_gimple_stmt): ...and not here.  Tidy.
18623         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
18624         unknown.
18625
18626 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
18627
18628         * Makefile.in: New rule for cprop.o.
18629         * gcse.c: Move constant/copy propagation to cprop.c.
18630         (compute_local_properties): Only handle expression tables.
18631         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
18632         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
18633         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
18634         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
18635         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
18636         compute_cprop_data, find_used_regs, try_replace_reg,
18637         find_avail_set, cprop_jump, constprop_register, cprop_insn,
18638         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
18639         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
18640         find_bypass_set, reg_killed_on_edge, bypass_block,
18641         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
18642         execute_rtl_cprop, pass_rtl_cprop): Move to...
18643         * cprop.c: ...here.  New file, constant/copy propagation for RTL
18644         moved from gcse.c to here with minor cleanups in duplicated code.
18645
18646 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
18647
18648         * config/i386/i386.c (flag_opts): Fix a typo in
18649         -mavx256-split-unaligned-store.
18650
18651 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
18652
18653         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
18654         LIBCALL_VALUE): Remove macros.
18655         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
18656         TARGET_FUNCTION_VALUE_REGNO_P): Define.
18657         (h8300_function_value, h8300_libcall_value,
18658         h8300_function_value_regno_p): New functions.
18659
18660 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
18661
18662         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
18663
18664 2011-03-28  Jeff Law  <law@redhat.com>
18665
18666         * tree-ssa-threadupdate.c (redirect_edges): Call
18667         create_edge_and_update_destination_phis as needed.
18668         (create_edge_and_update_destination_phis): Accept new BB argument.
18669         All callers updated.
18670         (thread_block): Do not update the profile when threading around
18671         intermediate blocks.
18672         (thread_single_edge): Likewise.
18673         (determine_bb_domination_status): If BB is not a successor of the
18674         loop header, return NONDOMINATING.
18675         (register_jump_thread): Note when we register a jump thread around
18676         an intermediate block.
18677         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
18678         (thread_across_edge): Use it.
18679
18680 2011-03-28  Tristan Gingold  <gingold@adacore.com>
18681
18682         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
18683         when for_return is 2.
18684
18685 2011-03-28  Jeff Law  <law@redhat.com>
18686
18687         * var-tracking.c (canonicalize_values_mark): Delete unused
18688         lhs assignment.
18689         (canonicalize_values_star, set_variable_part): Likewise.
18690         (clobber_variable_part, delete_variable_part): Likewise.
18691
18692 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
18693
18694         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
18695
18696 2011-03-28  Martin Jambor  <mjambor@suse.cz>
18697
18698         * tree-inline.c (expand_call_inline): Do not check that destination
18699         node is analyzed.
18700         (optimize_inline_calls): Assert that destination node is analyzed.
18701         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
18702         not call tree_lowering_passes.
18703         * cgraph.h (cgraph_analyze_function): Declare.
18704         * cgraphunit.c (cgraph_analyze_function): Make public.
18705
18706 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
18707
18708         * config/sparc/sparc-opts.h: New.
18709         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
18710         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
18711         (sparc_option_override): Store processor_type enumeration rather
18712         than string in cpu_default.  Remove name and enumeration from
18713         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
18714         without using sparc_select.  Use target_flags_explicit instead of
18715         fpu_option_set.
18716         * config/sparc/sparc.h (enum processor_type): Move to
18717         sparc-opts.h.
18718         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
18719         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
18720         HeaderInclude entry.
18721         (mcpu=, mtune=): Use Var and Enum.
18722         (sparc_processor_type): New Enum and EnumValue entries.
18723
18724 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18725             Iain Sandoe  <iains@gcc.gnu.org>
18726
18727         PR target/48245
18728         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
18729
18730 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
18731
18732         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
18733         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
18734         Insert new statements at it in lieu of STMT.
18735         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
18736         * tree-vect-stmts.c (vectorizable_store): Likewise.
18737         (vectorizable_load): Likewise.
18738
18739 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
18740
18741         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
18742         (divtf3): Ditto.
18743         (multf3): Ditto.
18744         (subtf3): Ditto.
18745
18746 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
18747
18748         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
18749         unaligned 256bit load/store.
18750         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
18751         (*avx_movdqu<avxmodesuffix>): Likewise.
18752
18753 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18754
18755         PR target/48288
18756         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
18757         * config/pa/pa.md (iordi3): Use new predicate in expander.
18758         (iorsi3): Likewise.
18759
18760 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
18761
18762         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
18763         FUNCTION_VALUE_REGNO_P): Remove macros.
18764         * config/mips/mips-protos.h (mips_function_value): Remove.
18765         * config/mips/mips.c (mips_function_value): Rename to...
18766         (mips_function_value_1): ... this. Make static.  Handle receiving
18767         the function type in 'fn_decl_or_type' argument.
18768         (mips_function_value, mips_libcall_value,
18769         mips_function_value_regno_p): New function.
18770         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
18771         TARGET_FUNCTION_VALUE_REGNO_P): Define.
18772
18773 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
18774
18775         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
18776         and -mavx256-split-unaligned-store.
18777         (ix86_option_override_internal): Split 32-byte AVX unaligned
18778         load/store by default.
18779         (ix86_avx256_split_vector_move_misalign): New.
18780         (ix86_expand_vector_move_misalign): Use it.
18781
18782         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
18783         -mavx256-split-unaligned-store.
18784
18785         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
18786         256bit load/store.  Generate unaligned store on misaligned memory
18787         operand.
18788         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
18789         256bit load/store.
18790         (*avx_movdqu<avxmodesuffix>): Likewise.
18791
18792         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
18793         -mavx256-split-unaligned-store.
18794
18795 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
18796
18797         PR target/38598
18798         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
18799         Update commentary.
18800
18801 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
18802
18803         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
18804         opno arguments with an expand_operand.  Use create_input_operand.
18805         (mips_prepare_builtin_target): Delete.
18806         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
18807         functions.
18808         (mips_expand_builtin_direct): Use create_output_operand and
18809         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
18810         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
18811         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
18812
18813 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
18814
18815         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
18816         function.
18817         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
18818
18819 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
18820
18821         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
18822         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
18823         basic blocks and call commit_edge_insertions directly.
18824         (fixup_abnormal_edges): Move from here to...
18825         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
18826         on the edges and return whether some have actually been inserted.
18827         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
18828         compensation code.
18829
18830 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
18831
18832         PR rtl-optimization/48144
18833         * sel-sched-ir.c (merge_history_vect): Factor out from ...
18834         (merge_expr_data): ... here.
18835         (av_set_intersect): Rename to av_set_code_motion_filter.
18836         Update all callers.  Call merge_history_vect when an expression
18837         is found in both sets.
18838         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
18839
18840 2011-03-26  Alan Modra  <amodra@gmail.com>
18841
18842         * config/rs6000/predicates.md (word_offset_memref_op): Handle
18843         cmodel medium addresses.
18844         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
18845         64-bit gpr loads and stores.
18846         (rs6000_secondary_reload_ppc64): New function.
18847         * config/rs6000/rs6000-protos.h: Declare it.
18848         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
18849
18850 2011-03-26  Alan Modra  <amodra@gmail.com>
18851
18852         PR target/47487
18853         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
18854         GNU Go in traceback table.
18855
18856 2011-03-25  Richard Henderson  <rth@redhat.com>
18857
18858         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
18859         if there are exactly 6 operands.
18860         (set_storage_via_setmem): Similarly.
18861
18862 2011-03-25  Kai Tietz  <ktietz@redhat.com>
18863
18864         * collect2.c (write_c_file_stat): Handle backslash
18865         as right-hand directory separator.
18866         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
18867         checking just for slash.
18868         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
18869         instead of checking for trailing slash.
18870         * gcc.c (record_temp_file): Use filename_cmp instead
18871         of strcmp.
18872         (do_spec_1): Likewise.
18873         (replace_outfile_spec_function): Likewise.
18874         (is_directory): Use filename_ncmp instead of strncmp.
18875         (print_multilib_info): Likewise.
18876         * gcov.c (find_source): Use filename_cmp instead
18877         instead of strcmp.
18878         (make_gcov_file_name): Fix order of slash/backslash
18879         checks.
18880         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
18881         (add_standard_paths): Likewise.
18882         * mips-tfile.c (saber_stop): Handle backslash.
18883         * prefix.c (update_path): Use filename_ncmp instead of
18884         strncmp.
18885         * profile.c (output_location): Use filename_cmp instead
18886         of strcmp.
18887         * read-md.c (handle_toplevel_file): Handle backslash.
18888         * tlink.c (frob_extension):  Likewise.
18889         * tree-cfg.c (same_line_p): Use filename_cmp instead of
18890         strcmp.
18891         * tree-dump.c (dequeue_and_dump): Handle backslash.
18892         * tree.c (get_file_function_name): Likewise.
18893         * gengtype.c (read_input_list): Likewise.
18894         (get_file_realbasename): Likewise.
18895         (get_output_file_with_visibility): Use filename_cmp
18896         instead of strcmp.
18897
18898 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
18899
18900         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
18901         case to VFPv1.
18902
18903 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
18904
18905         * fold-const.c (expr_location_or): New function.
18906         (fold_truth_not_expr): Call it.
18907
18908 2011-03-25  Jeff Law  <law@redhat.com>
18909
18910         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
18911         va_end.
18912         * c-family/c-common.c (def_fn_type): Likewise.
18913         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
18914         * emit-rtl.c (gen_rtvec): Likewise.
18915         * lto/lto-lang.c (def_fn_type): Likewise.
18916
18917 2011-03-25  Richard Guenther  <rguenther@suse.de>
18918
18919         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
18920         also generate copies.
18921         (fini_copy_prop): Handle constant values properly.
18922
18923 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
18924
18925         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
18926         mode size instead of bitsize with DWARF2_ADDR_SIZE.
18927         (hash_loc_operands, compare_loc_operands): Handle
18928         DW_OP_GNU_entry_value.
18929
18930 2011-03-25  Kai Tietz  <ktietz@redhat.com>
18931
18932         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
18933         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
18934         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
18935         comment and use macro TARGET_64BIT_MS_ABI instead.
18936         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
18937         and change default behavior for 32-bit MS_ABI.
18938         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
18939         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
18940         32-bit, too.
18941         (ix86_cfun_abi): Likewise.
18942         (ix86_maybe_switch_abi): Adjust comment.
18943         (init_cumulative_args): Check for bit-ness in MS_ABI case.
18944         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
18945         instead of checking for SYSV_ABI.
18946         (ix86_nsaved_sseregs): Likewise.
18947         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
18948         to 16 bytes.
18949         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
18950         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
18951         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
18952         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
18953         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
18954
18955 2011-03-25  Richard Guenther  <rguenther@suse.de>
18956
18957         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
18958         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
18959         (verify_gimple): Remove.
18960         * tree-cfg.c (verify_gimple_call): Merge verification
18961         from verify_stmts.
18962         (verify_gimple_phi): Merge verification from verify_stmts.
18963         (verify_gimple_label): New function.
18964         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
18965         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
18966         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
18967         (verify_stmts): Rename to verify_gimple_in_cfg.
18968         (verify_gimple_in_cfg): New function.
18969         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
18970         * tree-ssa.c (verify_ssa): Likewise.
18971         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
18972
18973 2011-03-25  Richard Guenther  <rguenther@suse.de>
18974
18975         * passes.c (init_optimization_passes): Add FRE pass after
18976         early SRA.
18977
18978 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
18979             Andrew Stubbs  <ams@codesourcery.com>
18980
18981         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
18982         for Cortex-A8.
18983         (arm_movdi_vfp_cortexa8): New pattern.
18984         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
18985         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
18986         instructions when tuning for Cortex-A8.  Set attribute "arch".
18987         * config/arm/arm.md: Move include arm-tune.md up a bit.
18988         (define_attr "arch"): Add "onlya8" and "nota8" values.
18989         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
18990
18991 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
18992
18993         PR bootstrap/48282
18994         Revert:
18995         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
18996
18997         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
18998         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
18999         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
19000         * passes.c (init_optimization_passes): Move
19001         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
19002
19003 2011-03-25  Kai Tietz  <ktietz@redhat.com>
19004
19005         * c-typeck.c (comptypes_internal): Replace target
19006         hook call of comp_type_attributes by version in tree.c file.
19007         * gimple.c (gimple_types_compatible_p_1): Likewise.
19008         * tree-ssa.c (useless_type_conversion_p): Likewise.
19009         * tree.c (build_type_attribute_qual_variant): Likewise.
19010         (attribute_value_equal): New static helper function.
19011         (comp_type_attributes): New function.
19012         (merge_attributes): Use attribute_value_equal for comparison.
19013         (attribute_list_contained): Likewise.
19014         * tree.h (comp_type_attributes): New prototype.
19015
19016 2011-03-25  Richard Guenther  <rguenther@suse.de>
19017
19018         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
19019         of complex types at -O0.
19020         (verify_gimple_assign_binary): Likewise.
19021         (verify_gimple_assign_ternary): Likewise.
19022
19023 2011-03-24  Mark Wielaard  <mjw@redhat.com>
19024
19025         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
19026         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
19027
19028 2011-03-24  Mark Wielaard  <mjw@redhat.com>
19029
19030         PR debug/48041
19031         * dwarf2out.c (output_abbrev_section): Only write table when
19032         abbrev_die_table_in_use > 1.
19033
19034 2011-02-24  Richard Henderson  <rth@redhat.com>
19035
19036         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
19037         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
19038         (alpha_expand_unaligned_load_words): Use extql.
19039         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
19040         (emit_insxl): Handle all modes for consistency.
19041
19042 2011-02-24  Richard Henderson  <rth@redhat.com>
19043
19044         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
19045         (alpha_expand_unaligned_load): Likewise.
19046         (alpha_expand_unaligned_store): Likewise.
19047         (alpha_expand_unaligned_load_words): Likewise.
19048         (alpha_expand_unaligned_store_words): Likewise.
19049         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
19050         (alpha_split_lock_test_and_set_12): Likewise.
19051         (print_operand, alpha_fold_builtin_extxx): Likewise.
19052         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
19053         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
19054         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
19055         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
19056         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
19057         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
19058         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
19059         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
19060         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
19061         (extwl, extll, extql): Similarly.
19062         (inswh, inslh, insqh): Similarly.
19063         (mskbl, mskwl, mskll, mskql): Similarly.
19064         (mskwh, msklh, mskqh): Similarly.
19065
19066 2011-02-24  Richard Henderson  <rth@redhat.com>
19067
19068         * config/alpha/alpha.md (attribute isa): Add er, ner.
19069         (attribute enabled): Handle them.
19070         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
19071
19072 2011-02-24  Richard Henderson  <rth@redhat.com>
19073
19074         * config/alpha/alpha.md (attribute isa): Add vms.
19075         (attribute enabled): Handle it.
19076         (*movsf): Merge *movsf_{nofix,fix,nofp}.
19077         (*movdf): Merge *movdf_{nofix,fix,nofp}.
19078         (*movtf): Rename from *movtf_internal for consistency.
19079         (*movsi): Merge with *movsi_nt_vms.
19080         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
19081         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
19082         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
19083         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
19084
19085 2011-02-24  Richard Henderson  <rth@redhat.com>
19086
19087         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
19088         (extendqisi2, extendhisi2): Likewise.
19089         (extendqidi2): Simplify BWX/non-BWX expansions.
19090         (extendhidi2): Similarly.
19091
19092 2011-02-24  Richard Henderson  <rth@redhat.com>
19093
19094         * config/alpha/alpha.md (attribute isa): New.
19095         (attribute enabled): New.
19096         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
19097         (zero_extendqisi2, zero_extendqidi2): Similarly.
19098         (zero_extendhisi2, zero_extendhidi2): Similarly.
19099         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
19100
19101 2011-02-24  Richard Henderson  <rth@redhat.com>
19102
19103         * config/alpha/predicates.md (input_operand): Revert last change;
19104         update comment to mention 32-bit VMS rather than Windows.
19105
19106 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
19107
19108         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
19109         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
19110         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
19111         * passes.c (init_optimization_passes): Move
19112         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
19113
19114 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
19115
19116         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
19117
19118 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
19119
19120         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
19121         correctly.
19122
19123 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
19124
19125         PR debug/48204
19126         * simplify-rtx.c (simplify_const_unary_operation): Call
19127         real_convert when changing mode class with FLOAT_EXTEND.
19128
19129 2011-03-24  Nick Clifton  <nickc@redhat.com>
19130
19131         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
19132         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
19133         * config/rx/rx.c (rx_option_override): Set align_jumps,
19134         align_loops and align_labels if not set by the user.
19135         (rx_align_for_label): New function.
19136         (rx_max_skip_for_label): New function.
19137         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
19138         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
19139         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
19140         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
19141         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
19142
19143 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
19144
19145         PR rtl-optimization/48263
19146         * optabs.c (expand_binop_directly): Reinstate convert_modes code
19147         and original commutative_p handling.  Use maybe_gen_insn.
19148
19149 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19150
19151         * reload.c (find_reloads_subreg_address): Add address_reloaded
19152         parameter and return true there if the full address has been
19153         reloaded.
19154         (find_reloads_toplev): Pass address_reloaded flag.
19155         (find_reloads_address_1): Don't use address_reloaded parameter.
19156
19157 2011-03-24  Jeff Law  <law@redhat.com>
19158
19159         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
19160         unused variable "ann".
19161         (remove_unused_locals): Likewise.
19162
19163         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
19164         statement.
19165
19166         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
19167         after it is freed.
19168
19169 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19170
19171         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
19172         for invalid symbolic addresses.
19173         (s390_secondary_reload): Don't use s390_check_symref_alignment for
19174         larl operands.
19175
19176 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
19177
19178         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
19179         the argument in calls to fold_truth_not_expr.
19180
19181 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
19182
19183         * tree.c (record_node_allocation_statistics): New function.
19184         (make_node_stat, copy_node_stat, build_string): Call it.
19185         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
19186         (build1_stat, build_omp_clause): Likewise.
19187
19188 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
19189
19190         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
19191         last commit.
19192
19193 2011-03-24  Richard Guenther  <rguenther@suse.de>
19194
19195         PR tree-optimization/48271
19196         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
19197         blocks that still exist.
19198
19199 2011-03-24  Richard Guenther  <rguenther@suse.de>
19200
19201         PR tree-optimization/48270
19202         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
19203         not free datarefs before ddrs.
19204
19205 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
19206
19207         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
19208         from the address built for a reference with variable offset.
19209
19210 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
19211
19212         PR target/48237
19213         * config/i386/i386.md (*movdf_internal_rex64): Do not split
19214         alternatives that can be handled with movq or movabsq insn.
19215         (*movdf_internal): Disable for !TARGET_64BIT.
19216         (*movdf_internal_nointeger): Ditto.
19217         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
19218
19219 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
19220
19221         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
19222         (FUNCTION_ARG_ADVANCE): Likewise.
19223         * tm.texi.in: Change references to them to hook references.
19224         * tm.texi: Regenerate.
19225         * targhooks.c (default_function_arg): Eliminate check for target macro.
19226         (default_function_incoming_arg): Likewise.
19227         (default_function_arg_advance): Likewise.
19228         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
19229         (function_arg_advance): Likewise.
19230         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
19231
19232 2011-03-24  Richard Guenther  <rguenther@suse.de>
19233
19234         PR middle-end/48269
19235         * tree-object-size.c (addr_object_size): Do not double-account
19236         for MEM_REF offsets.
19237
19238 2011-03-24  Diego Novillo  <dnovillo@google.com>
19239
19240         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
19241         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
19242         (lto_input_data_block): Move from lto-opts.c.  Make extern.
19243         Update all users.
19244         (lto_input_string): Rename from input_string.  Make extern.
19245         Update all users.
19246         * lto-streamer-out.c (lto_output_string_with_length): Rename from
19247         output_string_with_length.
19248         Output 0 to indicate a non-NULL string.  Update all callers to
19249         not emit 0.
19250         (lto_output_string): Rename from output_string.  Make extern.
19251         Update all users.
19252         (lto_output_decl_state_streams): Make extern.
19253         (lto_output_decl_state_refs): Make extern.
19254         * lto-streamer.h (lto_input_string): Declare.
19255         (lto_input_data_block): Declare.
19256         (lto_output_string): Declare.
19257         (lto_output_string_with_length): Declare.
19258         (lto_output_decl_state_streams): Declare.
19259         (lto_output_decl_state_refs): Declare.
19260
19261 2011-03-24  Richard Guenther  <rguenther@suse.de>
19262
19263         PR tree-optimization/46562
19264         * tree.c (build_invariant_address): New function.
19265         * tree.h (build_invariant_address): Declare.
19266         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
19267         a renamed function moved ...
19268         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
19269         Take valueization callback parameter.
19270         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
19271         * gimple-fold.h: New file.
19272         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
19273         (ccp_fold, fold_const_aggregate_ref,
19274         fold_ctor_reference, fold_nonarray_ctor_reference,
19275         fold_array_ctor_reference, fold_string_cst_ctor_reference,
19276         get_base_constructor): Move ...
19277         * gimple-fold.c: ... here.
19278         (gimple_fold_stmt_to_constant_1): New function
19279         split out from ccp_fold.  Take a valueization callback parameter.
19280         Valueize all operands.
19281         (gimple_fold_stmt_to_constant): New wrapper function.
19282         (fold_const_aggregate_ref_1): New function split out from
19283         fold_const_aggregate_ref.  Take a valueization callback parameter.
19284         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
19285         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
19286         invariant POINTER_PLUS_EXPRs to invariant form.
19287         (vn_valueize): New function.
19288         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
19289         * tree-vrp.c (vrp_valueize): New function.
19290         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
19291         to fold statements to constants.
19292         * tree-ssa-pre.c (eliminate): Properly guard propagation of
19293         function declarations.
19294         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
19295         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
19296
19297 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
19298
19299         * config/h8300/predicates.md (jump_address_operand): Fix register
19300         mode check.
19301
19302 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
19303
19304         * doc/invoke.texi (max-stores-to-sink): Document.
19305         * params.h (MAX_STORES_TO_SINK): Define.
19306         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
19307         if either vectorization or if-conversion is disabled.
19308         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
19309         tree-vect-data-refs.c vect_equal_offsets.
19310         (dr_equal_offsets_p): New function.
19311         (find_data_references_in_bb): Remove static.
19312         * tree-data-ref.h (find_data_references_in_bb): Declare.
19313         (dr_equal_offsets_p): Likewise.
19314         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
19315         (vect_drs_dependent_in_basic_block): Update calls to
19316         vect_equal_offsets.
19317         (vect_check_interleaving): Likewise.
19318         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
19319         (cond_if_else_store_replacement): Rename to...
19320         (cond_if_else_store_replacement_1): ... this.  Change arguments and
19321         documentation.
19322         (cond_if_else_store_replacement): New function.
19323         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
19324         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
19325
19326 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
19327
19328         PR target/46934
19329         * config/arm/arm.md (casesi): Use the gen_int_mode() function
19330         to subtract lower bound instead of GEN_INT().
19331
19332 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
19333
19334         PR other/48179
19335         PR other/48221
19336         PR other/48234
19337         * doc/extend.texi (Alignment): Move section to match order in TOC.
19338         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
19339         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
19340
19341 2011-03-23  Jeff Law  <law@redhat.com>
19342
19343         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
19344         before removing the edge.
19345
19346         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
19347         it may have been freed by redirect_branch_edge or
19348         redirect_edge_succ_nodup.
19349
19350 2011-03-23  Richard Guenther  <rguenther@suse.de>
19351
19352         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
19353         (check_va_list_escapes): Likewise.
19354         (check_all_va_list_escapes): Likewise.
19355
19356 2011-03-23  Richard Guenther  <rguenther@suse.de>
19357
19358         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
19359         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
19360         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
19361         (alias.o): Likewise.
19362         (ipa-type-escape.o): Remove.
19363         (ipa-struct-reorg.o): Likewise.
19364         (GTFILES): Remove ipa-struct-reorg.c.
19365         * alias.c: Do not include ipa-type-escape.h.
19366         * tree-ssa-alias.c: Likewise.
19367         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
19368         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
19369         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
19370         and ipa-type-escape passes.
19371         * tree-pass.h (pass_ipa_type_escape): Remove.
19372         (pass_ipa_struct_reorg): Likewise.
19373         * ipa-struct-reorg.h: Remove.
19374         * ipa-struct-reorg.c: Likewise.
19375         * ipa-type-escape.h: Likewise.
19376         * ipa-type-escape.c: Likewise.
19377         * doc/invoke.texi (-fipa-struct-reorg): Remove.
19378         (--param struct-reorg-cold-struct-ratio): Likewise.
19379         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
19380         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
19381         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
19382
19383 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19384
19385         * config/s390/2084.md: Enable all insn reservations also for z9_ec
19386         cpu attribute value.
19387         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
19388         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
19389         * config/s390/s390.c (processor_flags_table): New constant array.
19390         (s390_handle_arch_option): Remove.
19391         (s390_handle_option): Remove s390_handle_arch_option invocations
19392         and OPT_mwarn_framesize_ handling.
19393         (s390_option_override): Remove s390_handle_arch_option invocation.
19394         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
19395         warnings.
19396         * config/s390/s390.md (cpu attribute): Add z9_ec value.
19397         * config/s390/s390.opt (s390_tune, s390_arch)
19398         (march=): Replace s390_arch_option enum and values with
19399         processor_type.  Set variable name to s390_arch.  Set
19400         initialization value.
19401         (mtune=): Replace s390_arch_option with processor_type.  Set
19402         variable name to s390_tune.  Set initialization value.
19403
19404 2011-03-23  Julian Brown  <julian@codesourcery.com>
19405
19406         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
19407         accesses which are not naturally aligned.
19408
19409 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
19410
19411         PR target/47553
19412         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
19413
19414 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
19415
19416         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
19417         parameter from "int" to "enum insn_code".
19418         (expand_operand_type): New enum.
19419         (expand_operand): New structure.
19420         (create_expand_operand): New function.
19421         (create_fixed_operand, create_output_operand): Likewise
19422         (create_input_operand, create_convert_operand_to): Likewise.
19423         (create_convert_operand_from, create_address_operand): Likewise.
19424         (create_integer_operand): Likewise.
19425         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
19426         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
19427         (expand_insn, expand_jump_insn): Likewise.
19428         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
19429         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
19430         (expand_movstr, expand_builtin___clear_cache): Likewise.
19431         (expand_builtin_lock_release): Likewise.
19432         * explow.c (allocate_dynamic_stack_space): Likewise.
19433         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
19434         and use the default handling in that case.
19435         * expmed.c (check_predicate_volatile_ok): Delete.
19436         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
19437         (emit_cstore): Likewise.
19438         * expr.c (emit_block_move_via_movmem): Likewise.
19439         (set_storage_via_setmem, expand_assignment): Likewise.
19440         (emit_storent_insn, try_casesi): Likewise.
19441         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
19442         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
19443         (expand_vec_shift_expr, expand_binop_directly): Likewise.
19444         (expand_twoval_unop, expand_twoval_binop): Likewise.
19445         (expand_unop_direct, emit_indirect_jump): Likewise.
19446         (emit_conditional_move, vector_compare_rtx): Likewise.
19447         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
19448         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
19449         (expand_sync_lock_test_and_set): Likewise.
19450         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
19451         (emit_unop_insn): Likewise.
19452         (expand_copysign_absneg): Change icode to an insn_code.
19453         (create_convert_operand_from_type): New function.
19454         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
19455         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
19456         (expand_insn, expand_jump_insn): Likewise.
19457         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
19458         than const_int_operand for operand 2.
19459
19460 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19461
19462         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
19463         if possible.
19464
19465 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
19466
19467         * emit-rtl.c (emit_pattern_before_noloc): New function.
19468         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
19469         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
19470         (emit_pattern_after_noloc): New function.
19471         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
19472         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
19473
19474 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
19475
19476         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
19477         (__ffsDI2): Likewise.
19478
19479 2011-03-22  Richard Henderson  <rth@redhat.com>
19480
19481         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
19482         of !TARGET_ABI_OPEN_VMS.
19483         (alpha_trampoline_init, alpha_start_function): Likewise.
19484         (alpha_expand_epilogue, alpha_file_start): Likewise.
19485         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
19486         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
19487         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
19488         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
19489         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
19490
19491 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19492
19493         * config/s390/s390-opts.h: New.
19494         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
19495         s390_arch_flags, s390_warn_framesize, s390_stack_size,
19496         s390_stack_guard): Remove.
19497         (s390_handle_arch_option): Return void.  Take enum
19498         s390_arch_option value instead of string and searching array.
19499         (s390_handle_option): Don't assert that global structures are in
19500         use.  Access variables via opts pointer.  Use error_at.  Don't use
19501         sscanf for -mstack-guard= or -mstack-size=.  Update call to
19502         s390_handle_arch_option.
19503         (s390_option_override): Update call to s390_handle_arch_option.
19504         (s390_emit_prologue): Use %d format for s390_stack_size in
19505         diagnostic.  Use %wd for HOST_WIDE_INT.
19506         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
19507         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
19508         * config/s390/s390.opt (config/s390/s390-opts.h): New
19509         HeaderInclude entry.
19510         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
19511         s390_arch_flags, s390_warn_framesize): New Variable entries.
19512         (s390_arch_option): New Enum and EnumValue entries.
19513         (march=): Use Enum instead of Var.
19514         (mstack-guard=, mstack-size=): Use UInteger and Var.
19515         (mtune=): Use Enum.
19516
19517 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19518
19519         * config/score/score.c (score_handle_option): Don't assert that
19520         global structures are in use.  Access target_flags via opts
19521         pointer.  Use value of -march= option to determine target_flags
19522         settings.
19523         * config/score/score.opt (march=): Use Enum.
19524         (score_arch): New Enum and EnumValue entries.
19525
19526 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19527
19528         * config/mep/mep.c (option_mtiny_specified): Remove.
19529         (mep_option_override): Move register handling for -mivc2 from
19530         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
19531         instead of option_mtiny_specified.
19532         (mep_handle_option): Access target_flags via opts pointer.  Don't
19533         assert that global structures are in use.  Defer part of -mivc2
19534         handling and move it to mep_option_override.
19535         * config/mep/mep.opt (IVC2): New Mask entry.
19536         (mivc2): Use Var and Defer instead of Mask.
19537
19538 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19539
19540         * config/v850/v850-opts.h: New.
19541         * config/v850/v850.c (small_memory): Replace with
19542         small_memory_physical_max array.  Make that array static const.
19543         (v850_handle_memory_option): Take integer value of argument.  Take
19544         gcc_options pointer, option text and location.  Return void.
19545         Update for changes to small memory structures.
19546         (v850_handle_option): Access target_flags via opts pointer.  Don't
19547         assert that global structures are in use.  Update calls to
19548         v850_handle_memory_option.
19549         (v850_encode_data_area): Update references to small memory settings.
19550         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
19551         (enum small_memory_type): Move to v850-opts.h.
19552         * config/v850/v850.opt (config/v850/v850-opts.h): New
19553         HeaderInclude entry.
19554         (small_memory_max): New Variable entry.
19555         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
19556         (mtda, mzda): Likewise.
19557
19558 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19559
19560         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
19561         pointer.  Don't assert that global structures are in use.
19562
19563 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19564
19565         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
19566         via opts pointer.  Don't assert that global structures are in use.
19567
19568 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19569
19570         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
19571         (munix=93): Use Var.
19572         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
19573         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
19574         * config/pa/pa-opts.h: New.
19575         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
19576         (pa_handle_option): Don't assert that global structures are in
19577         use.  Access target_flags via opts pointer.  Don't handle
19578         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
19579         OPT_munix_98 here.
19580         (pa_option_override): Handle deferred OPT_mfixed_range_.
19581
19582 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19583
19584         * config/mn10300/mn10300-opts.h: New.
19585         * config/mn10300/mn10300.c (mn10300_processor,
19586         mn10300_tune_string): Remove.
19587         (mn10300_handle_option): Don't assert that global structures are
19588         in use.  Access mn10300_processor via opts pointer.  Don't handle
19589         OPT_mtune_ here.
19590         * config/mn10300/mn10300.h (enum processor_type): Move to
19591         mn10300-opts.h.
19592         (mn10300_processor): Remove.
19593         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
19594         HeaderInclude entry.
19595         (mn10300_processor): New Variable entry.
19596         (mtune=): Use Var.
19597
19598 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19599
19600         * config/microblaze/microblaze.c: Don't include opts.h.
19601         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
19602         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
19603         (mno-clearbss): Use Var and Warn.
19604
19605 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19606
19607         * config/m32r/m32r-opts.h: New.
19608         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
19609         (m32r_handle_option): Don't assert that global structures are in
19610         use.  Access target_flags and m32r_cache_flush_func via opts
19611         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
19612         OPT_mno_flush_trap here.
19613         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
19614         include of m32r-opts.h.
19615         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
19616         HeaderInclude entry.
19617         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
19618         (mmodel=): Use Enum and Var.
19619         (m32r_model): New Enum and EnumValue entries.
19620         (mno-flush-trap): Use Var.
19621         (msdata=): Use Enum and Var.
19622         (m32r_sdata): New Enum and EnumValue entries.
19623
19624 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19625
19626         * config/m32c/m32c.c: Don't include opts.h.
19627         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
19628         m32c_handle_option): Remove.
19629         (m32c_option_override): Check global_options_set.x_target_memregs
19630         instead of target_memregs_set.
19631         * config/m32c/m32c.h (target_memregs): Remove.
19632         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
19633         variable.
19634
19635 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19636
19637         * config/iq2000/iq2000-opts.h: New.
19638         * config/iq2000/iq2000.c: Don't include opts.h.
19639         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
19640         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
19641         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
19642         HeaderInclude entry.
19643         (iq2000_tune): New Variable entry.
19644         (march=): Add comment.  Use Enum.
19645         (iq2000_arch): New Enum and EnumValue entries.
19646         (mcpu=): Use Enum and Var.
19647         (iq2000_tune): New Enum and EnumValue entries.
19648
19649 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19650
19651         * config/ia64/ia64-opts.h: New.
19652         * config/ia64/ia64.c (ia64_tune): Remove.
19653         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
19654         here.  Use error_at.
19655         (ia64_option_override): Handle deferred OPT_mfixed_range_.
19656         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
19657         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
19658         HeaderInclude entry.
19659         (ia64_tune): New Variable entry.
19660         (mfixed-range=): Use Defer and Var.
19661         (mtune=): Use Enum and Var.
19662         (ia64_tune): New Enum and EnumValue entries.
19663
19664 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19665
19666         * config/frv/frv-opts.h: New.
19667         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
19668         frv-opts.h.
19669         (frv_cpu_type): Remove.
19670         * config/frv/frv.c: Don't include opts.h.
19671         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
19672         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
19673         (frv_cpu_type): New Variable entry.
19674         (frv_cpu): New Enum and EnumValue entries.
19675
19676 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19677
19678         * config/cris/cris.c (cris_handle_option): Access target_flags via
19679         opts pointer.  Don't assert that global structures are in use.
19680         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
19681         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
19682
19683 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19684
19685         * config/bfin/bfin-opts.h: New.
19686         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
19687         bfin_si_revision, bfin_workarounds): Remove.
19688         (bfin_cpus): Make static const.
19689         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
19690         not bfin_lib_id_given.
19691         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
19692         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
19693         pointer. Use error_at.  Don't assert that global structures are in use.
19694         * config/bfin/bfin.h: Include bfin-opts.h.
19695         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
19696         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
19697         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
19698         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
19699         entries.
19700
19701 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19702
19703         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
19704         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
19705         or -msoft-float here.
19706         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
19707         -msoft-float and -mhard-float.
19708         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
19709         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
19710         msoft-float.
19711         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
19712         -msoft-float.
19713         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
19714         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
19715         not mhard-float.
19716         (LIBGCC_SPEC): Don't handle -msoft-float.
19717         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
19718         -mhard-float.
19719         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
19720         msoft-float.
19721         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
19722         -mfloat-abi=*, not -msoft-float and -mhard-float.
19723         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
19724         -msoft-float.
19725         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
19726         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
19727         mhard-float and msoft-float.
19728         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
19729         mfloat-abi=soft in comments, not mhard-float and msoft-float.
19730         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
19731         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
19732         mhard-float.
19733         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
19734         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
19735         msoft-float.
19736         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
19737         not mhard-float.
19738         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
19739         not msoft-float.
19740
19741 2011-03-22  Richard Henderson  <rth@redhat.com>
19742
19743         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
19744         TARGET_ABI_WINDOWS_NT.
19745         (alpha_output_function_end_prologue): Likewise.
19746         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
19747         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
19748         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
19749         (trap, *movsi_nt_vms): Likewise.
19750         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
19751         (*tablejump_osf_nt_internal): Remove.
19752         * config/alpha/predicates.md (input_operand): Only test Pmode.
19753
19754 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19755
19756         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
19757         via opts pointer.  Use error_at.  Don't assert that global
19758         structures are in use.
19759
19760 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19761
19762         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
19763         (ix86_handle_option): Access ix86_isa_flags and
19764         ix86_isa_flags_explicit via opts pointer.  Don't assert that
19765         global structures are in use.
19766         (ix86_function_specific_save, ix86_function_specific_restore):
19767         Update ix86_isa_flags_explicit field name.
19768         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
19769         (ix86_isa_flags_explicit): Rename TargetSave entry to
19770         x_ix86_isa_flags_explicit.
19771
19772 2011-03-22  Richard Henderson  <rth@redhat.com>
19773
19774         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
19775         (alpha_option_override, direct_return): Likewise.
19776         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
19777         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
19778         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
19779         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
19780         (alpha_expand_epilogue, alpha_end_function): Likewise.
19781         (alpha_init_libfuncs): Likewise.
19782         (struct machine_function): Remove unicosmk members.
19783         (print_operand) ['t']: Remove.
19784         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
19785         unicosmk_output_module_name, unicosmk_output_common,
19786         current_section_align, unicosmk_output_text_section_asm_op,
19787         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
19788         unicosmk_section_type_flags, unicosmk_unique_section,
19789         unicosmk_asm_named_section, unicosmk_insert_attributes,
19790         unicosmk_output_align, unicosmk_defer_case_vector,
19791         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
19792         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
19793         unicosmk_output_ssib, unicosmk_add_call_info_word,
19794         unicosmk_extern_head, unicosmk_output_default_externs,
19795         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
19796         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
19797         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
19798         * config/alpha/alpha-protos.h: Update.
19799         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
19800         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
19801         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
19802         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
19803         (*mulsi_se, mulvsi3): Likewise.
19804         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
19805         (*divmodsi_internal, call, call_value, realign): Likewise.
19806         (moddi3, umoddi3): Likewise; remove duplicate expander.
19807         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
19808         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
19809         (*movdi_nofix): Remove r/U alternative.
19810         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
19811         * config/alpha/constraints.md ("U"): Remove.
19812         * config/alpha/predicates.md (call_operand"): Don't test
19813         TARGET_ABI_UNICOSMK.
19814
19815 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19816
19817         * target.def (handle_option): Take gcc_options and
19818         cl_decoded_option pointers and location_t.
19819         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
19820         * doc/tm.texi: Regenerate.
19821         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
19822         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
19823         * lto-opts.c (lto_reissue_options): Generate option structure for
19824         targetm.handle_option call.
19825         * opts.c (target_handle_option): Update call to
19826         targetm.handle_option.  Remove assertions about values now passed
19827         down to hook.
19828         * targhooks.c (default_target_handle_option): New.
19829         * targhooks.h (default_target_handle_option): Declare.
19830         * config/alpha/alpha.c: Include opts.h.
19831         (alpha_handle_option): Update to new hook interface.
19832         * config/arm/arm.c: Include opts.h.
19833         (arm_handle_option): Update to new hook interface.
19834         * config/arm/t-arm (arm.o): Update dependencies.
19835         * config/bfin/bfin.c: Include opts.h.
19836         (bfin_handle_option): Update to new hook interface.
19837         * config/cris/cris.c: Include opts.h.
19838         (cris_handle_option): Update to new hook interface.
19839         * config/frv/frv.c: Include opts.h.
19840         (frv_handle_option): Update to new hook interface.
19841         * config/i386/i386.c: Include opts.h.
19842         (ix86_handle_option): Update to new hook interface.
19843         (ix86_valid_target_attribute_inner_p): Generate option structure
19844         for call to ix86_handle_option.
19845         * config/i386/t-i386 (i386.o): Update dependencies.
19846         * config/ia64/ia64.c: Include opts.h.
19847         (ia64_handle_option): Update to new hook interface.
19848         * config/ia64/t-ia64 (ia64.o): Update dependencies.
19849         * config/iq2000/iq2000.c: Include opts.h.
19850         (iq2000_handle_option): Update to new hook interface.
19851         * config/m32c/m32c.c: Include opts.h.
19852         (m32c_handle_option): Update to new hook interface.
19853         * config/m32r/m32r.c: Include opts.h.
19854         (m32r_handle_option): Update to new hook interface.
19855         * config/m68k/m68k.c: Include opts.h.
19856         (m68k_handle_option): Update to new hook interface.
19857         * config/mep/mep.c: Include opts.h.
19858         (mep_handle_option): Update to new hook interface.
19859         * config/microblaze/microblaze.c: Include opts.h.
19860         (microblaze_handle_option): Update to new hook interface.
19861         * config/mips/mips.c: Include opts.h.
19862         (mips_handle_option): Update to new hook interface.
19863         * config/mn10300/mn10300.c: Include opts.h.
19864         (mn10300_handle_option): Update to new hook interface.
19865         * config/pa/pa.c: Include opts.h.
19866         (pa_handle_option): Update to new hook interface.
19867         * config/pdp11/pdp11.c: Include opts.h.
19868         (pdp11_handle_option): Update to new hook interface.
19869         * config/rs6000/rs6000.c: Include opts.h.
19870         (rs6000_handle_option): Update to new hook interface.
19871         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
19872         * config/rx/rx.c: Include opts.h.
19873         (rx_handle_option): Update to new hook interface.
19874         * config/s390/s390.c: Include opts.h.
19875         (s390_handle_option): Update to new hook interface.
19876         * config/score/score.c: Include opts.h.
19877         (score_handle_option): Update to new hook interface.
19878         * config/sh/sh.c: Include opts.h.
19879         (sh_handle_option): Update to new hook interface.
19880         * config/sparc/sparc.c: Include opts.h.
19881         (sparc_handle_option): Update to new hook interface.
19882         * config/v850/v850.c: Include opts.h.
19883         (v850_handle_option): Update to new hook interface.
19884
19885 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19886
19887         * gcc.c (driver_unknown_option_callback): Only permit and save
19888         unknown -Wno- options.
19889         (driver_wrong_lang_callback): Save options directly instead of via
19890         driver_unknown_option_callback.
19891
19892 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
19893
19894         * combine.c (simplify_set): Try harder to find the best CC mode when
19895         simplifying a nested COMPARE on the RHS.
19896
19897 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19898
19899         * config/alpha/gnu.h: Remove.
19900         * config/arc: Remove directory.
19901         * config/arm/netbsd.h: Remove.
19902         * config/arm/t-pe: Remove.
19903         * config/crx: Remove directory.
19904         * config/i386/netbsd.h: Remove.
19905         * config/m68hc11: Remove directory.
19906         * config/m68k/uclinux-oldabi.h: Remove.
19907         * config/mcore/mcore-pe.h: Remove.
19908         * config/mcore/t-mcore-pe: Remove.
19909         * config/netbsd-aout.h: Remove.
19910         * config/rs6000/gnu.h: Remove.
19911         * config/sh/sh-symbian.h: Remove.
19912         * config/sh/symbian-base.c: Remove.
19913         * config/sh/symbian-c.c: Remove.
19914         * config/sh/symbian-cxx.c: Remove.
19915         * config/sh/symbian-post.h: Remove.
19916         * config/sh/symbian-pre.h: Remove.
19917         * config/sh/t-symbian: Remove.
19918         * config/svr3.h: Remove.
19919         * config/vax/netbsd.h: Remove.
19920         * config.build: Don't handle i[34567]86-*-pe.
19921         * config.gcc: Remove handling of deprecations for most deprecated
19922         targets.
19923         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
19924         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
19925         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
19926         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
19927         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
19928         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
19929         Remove cases.
19930         * config.host: Don't handle i[34567]86-*-pe.
19931         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
19932         (ASM_SPEC32): Don't handle -mcall-gnu.
19933         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
19934         -mcall-gnu.
19935         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
19936         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
19937         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
19938         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
19939         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
19940         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
19941         conditional on SYMBIAN.
19942         * configure.ac: Don't handle powerpc*-*-gnu*.
19943         * configure: Regenerate.
19944         * doc/extend.texi (interrupt attribute): Don't mention CRX.
19945         * doc/install-old.texi (m6811, m6812): Don't mention.
19946         * doc/install.texi (arc-*-elf*): Don't document multilib option.
19947         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
19948         (m68k-uclinuxoldabi): Don't mention.
19949         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
19950         Remove.
19951         (-mcall-gnu): Remove.
19952         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
19953         families): Remove constraint documentation.
19954
19955 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
19956
19957         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
19958         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
19959         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
19960
19961 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
19962
19963         PR target/48226
19964         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
19965         vector when peeking at the next token for vector, don't expand the
19966         keywords.
19967
19968 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
19969
19970         * config/avr/avr-protos.h (expand_epilogue): Change prototype
19971         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
19972         * config/avr/avr.c (init_cumulative_args)
19973         (avr_function_arg_advance): Use it.
19974         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
19975         sibcall epilogues.
19976         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
19977         (avr_function_ok_for_sibcall): ...this new function.
19978         (avr_lookup_function_attribute1): New static Function.
19979         (avr_naked_function_p, interrupt_function_p)
19980         (signal_function_p, avr_OS_task_function_p)
19981         (avr_OS_main_function_p): Use it.
19982         * config/avr/avr.md ("sibcall", "sibcall_value")
19983         ("sibcall_epilogue"): New expander.
19984         ("*call_insn", "*call_value_insn"): New insn.
19985         ("call_insn", "call_value_insn"): Remove
19986         ("call", "call_value", "epilogue"): Change expander to handle
19987         sibling calls.
19988
19989 2011-03-21  Nick Clifton  <nickc@redhat.com>
19990
19991         * doc/invoke.texi (Overall Options): Move closing brace to end of
19992         options list.
19993         (Optimization Options): Add missing @gol.
19994         (Directory Options): Likewise.
19995         (i386 and x86-64 Options): Likewise.
19996         (RS6000 and PowerPC Options): Likewise.
19997         (i386 and x86-64 Windows Options): Likewise.
19998         (V850 Options): Add text missing from descriptions.
19999
20000 2011-03-22  Richard Henderson  <rth@redhat.com>
20001
20002         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
20003         (avr_incoming_return_addr_rtx): New.
20004         (emit_push_byte): New.
20005         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
20006         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
20007         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
20008         (emit_pop_byte): New.
20009         (expand_epilogue): Use it.  Pop frame pointer by bytes.
20010         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
20011         (INCOMING_RETURN_ADDR_RTX): New.
20012         (INCOMING_FRAME_SP_OFFSET): New.
20013         (ARG_POINTER_CFA_OFFSET): New.
20014         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
20015         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
20016         (pophi): Remove.
20017
20018         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
20019
20020 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
20021
20022         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
20023         (FUNCTION_ARG_ADVANCE): Likewise.
20024         * tm.texi.in: Change references to them to hook references.
20025         * tm.texi: Regenerate.
20026         * targhooks.c (default_function_arg): Eliminate check for target
20027         macro.
20028         (default_function_incoming_arg): Likewise.
20029         (default_function_arg_advance): Likewise.
20030         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
20031         (function_arg_advance): Likewise.
20032         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
20033
20034 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
20035
20036         * tree.c (build_call_1): New function.
20037         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
20038
20039 2011-03-22  Richard Guenther  <rguenther@suse.de>
20040
20041         PR tree-optimization/48228
20042         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
20043         for single-arg PHIs.
20044
20045 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
20046
20047         PR rtl-optimization/48143
20048         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
20049         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
20050         sse2_cvtps2pd): Likewise.
20051
20052 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20053
20054         * recog.c (canonicalize_change_group): Use validate_unshare_change.
20055
20056 2011-03-22  Richard Guenther  <rguenther@suse.de>
20057
20058         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
20059         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
20060         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
20061         and REALIGN_LOAD_EXPR.
20062         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
20063         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
20064         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
20065         DOT_PROD_EXPR case ...
20066         (expand_expr_real_2): ... here.
20067         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
20068         and REALIGN_LOAD_EXPR.
20069         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
20070         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
20071         (vect_create_epilog_for_reduction): Likewise.
20072         (vectorizable_reduction): Likewise.
20073         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
20074         * tree-vect-stmts.c (vectorizable_load): Likewise.
20075
20076 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
20077
20078         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
20079
20080 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20081
20082         * config/s390/s390.c (s390_delegitimize_address): Fix offset
20083         handling for PLTOFF/GOTOFF.
20084
20085 2011-03-22  Nick Clifton  <nickc@redhat.com>
20086
20087         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
20088         trailing backslash from the end of the macro definition.
20089
20090 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20091
20092         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
20093         and PLT unspecs.
20094
20095 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
20096
20097         * expr.h (prepare_operand): Move to...
20098         * optabs.h (prepare_operand): ...here and change the insn code
20099         parameter from "int" to "enum insn_code".
20100         (insn_operand_matches): Declare.
20101         * expr.c (init_expr_target): Use insn_operand_matches.
20102         (compress_float_constant): Likewise.
20103         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
20104         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
20105         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
20106         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
20107         Likewise.
20108         (gen_cond_trap): Likewise.
20109         (prepare_operand): Likewise.  Change icode to an insn_code.
20110         (insn_operand_matches): New function.
20111         * reload.c (find_reloads_address_1): Use insn_operand_matches.
20112         * reload1.c (gen_reload): Likewise.
20113         * targhooks.c (default_secondary_reload): Likewise.
20114
20115 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
20116
20117         * config/alpha/alpha.md (unspec): New define_c_enum.
20118         (unspecv): Ditto.
20119
20120 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
20121
20122         PR debug/48214
20123         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
20124         between a call and its CALL_ARG_LOCATION note.
20125
20126 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
20127
20128         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
20129
20130 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
20131
20132         PR c/42544
20133         PR c/48197
20134         * c-common.c (shorten_compare): If primopN is first sign-extended
20135         to opN and then zero-extended to result type, set primopN to opN.
20136
20137 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
20138
20139         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
20140         for barrier handlers.
20141
20142 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
20143
20144         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
20145         UNSPEC constants to be in the unspec enumeration, and redefine
20146         all UNSPECV constants to be in the unspecv enumeration, so that
20147         dumps print which unspec/unspec_volatile this is.
20148         * config/rs6000/vector.md (UNSPEC_*): Ditto.
20149         * config/rs6000/paired.md (UNSPEC_*): Ditto.
20150         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
20151         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
20152         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
20153
20154         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
20155         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
20156         UNSPECV_LWSYNC, since these are used as unspec_volatile.
20157         * config/rs6000/sync.md (isync, lwsync): Ditto.
20158
20159 2011-03-21  Richard Guenther  <rguenther@suse.de>
20160
20161         * params.def (lto-min-partition): Fix typo.
20162
20163 2011-03-21  Richard Guenther  <rguenther@suse.de>
20164
20165         PR c/47939
20166         * c-decl.c (grokdeclarator): Drop to the main variant only
20167         for array types.  Drop flag_gen_aux_info check.
20168
20169 2011-03-21  Richard Guenther  <rguenther@suse.de>
20170
20171         PR translation/47911
20172         * params.def (lto-partitions): Fix typo.
20173         (lto-min-partition): Fix wording.
20174
20175 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
20176
20177         * config/rs6000/t-freebsd: Remove duplication from file.
20178
20179 2011-03-21  Richard Guenther  <rguenther@suse.de>
20180
20181         PR middle-end/47661
20182         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
20183
20184 2011-03-21  Richard Guenther  <rguenther@suse.de>
20185
20186         PR lto/48210
20187         * params.def (lto-partitions): Require at least 1 partition.
20188
20189 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20190
20191         * gthr-solaris.h: Remove.
20192         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
20193         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
20194         (LIB_SPEC): Likewise.
20195         * config/sol2.opt (threads): Remove.
20196         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
20197         (sparc*-*-solaris2*): Likewise.
20198         * configure.ac (enable_threads): Enable solaris support.
20199         * configure: Regenerate.
20200         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
20201         * doc/install.texi (Configuration, --enable-threads=lib): Remove
20202         solaris.
20203
20204 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20205
20206         * config.gcc: Obsolete *-*-solaris2.8*.
20207         * doc/install.texi (Specific, *-*-solaris2*): Document it.
20208
20209 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20210
20211         PR bootstrap/48135
20212         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
20213         reference.  Solaris 8 perl works.
20214
20215 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20216
20217         PR bootstrap/48135
20218         * doc/install.texi (Prerequisites): Move jar etc. up.
20219         Explain support library version requirements.
20220
20221 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20222
20223         PR bootstrap/48135
20224         * doc/install.texi (Prerequisites): Move Perl to build
20225         requirements.  Always necessary on Solaris 2 with Sun ld.
20226
20227 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20228
20229         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
20230         binutils 2.21.
20231         (Specific, i?86-*-solaris2.[89]): Likewise.
20232         (Specific, i?86-*-solaris2.10): Likewise.
20233         (Specific, mips-sgi-irix6): Likewise.
20234         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
20235         Update for binutils 2.21.
20236
20237 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20238
20239         * configure.ac (gcc_cv_lto_plugin): Fix typo.
20240         Allow -fuse-linker-plugin for non-default plugin linker.
20241         * configure: Regenerate.
20242
20243 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
20244
20245         PR bootstrap/48167
20246         * gengtype.c (files_rules): Added rule for cp/parser.h.
20247
20248 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
20249
20250         PR target/48213
20251         * config/s390/s390.c (s390_delegitimize_address): Don't call
20252         lowpart_subreg if orig_x has BLKmode.
20253
20254 2011-03-21  Kai Tietz  <ktietz@redhat.com>
20255
20256         PR target/12171
20257         * doc/plugins.texi: Adjust documentation for plugin register_callback.
20258         * tree.h (attribute_spec): Add new member affects_type_identity.
20259         * attribs.c (empty_attribute_table): Adjust attribute_spec
20260         initializers.
20261         * config/alpha/alpha.c: Likewise.
20262         * config/arc/arc.c: Likewise.
20263         * config/arm/arm.c: Likewise.
20264         * config/avr/avr.c: Likewise.
20265         * config/bfin/bfin.c: Likewise.
20266         * config/crx/crx.c: Likewise.
20267         * config/darwin.h: Likewise.
20268         * config/h8300/h8300.c: Likewise.
20269         * config/i386/cygming.h: Likewise.
20270         * config/i386/i386.c: Likewise.
20271         * config/ia64/ia64.c: Likewise.
20272         * config/m32c/m32c.c: Likewise.
20273         * config/m32r/m32r.c: Likewise.
20274         * config/m68hc11/m68hc11.c: Likewise.
20275         * config/m68k/m68k.c: Likewise.
20276         * config/mcore/mcore.c: Likewise.
20277         * config/mep/mep.c: Likewise.
20278         * config/microblaze/microblaze.c: Likewise.
20279         * config/mips/mips.c: Likewise.
20280         * config/rs6000/rs6000.c: Likewise.
20281         * config/rx/rx.c: Likewise.
20282         * config/sh/sh.c: Likewise.
20283         * config/sol2.h: Likewise.
20284         * config/sparc/sparc.c: Likewise.
20285         * config/spu/spu.c: Likewise.
20286         * config/stormy16/stormy16.c: Likewise.
20287         * config/v850/v850.c: Likewise.
20288
20289 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
20290
20291         * simplify-rtx.c (simplify_binary_operation_1): Handle
20292         (xor (and A B) C) case when B and C are both constants.
20293
20294 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
20295
20296         * tree-dfa.c (add_referenced_var): Fix typo in comment.
20297
20298 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
20299
20300         PR bootstrap/48168
20301         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
20302
20303 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
20304
20305         PR rtl-optimization/48156
20306         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
20307         assume df and df_lr are not NULL.
20308
20309 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
20310
20311         PR debug/48023
20312         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
20313         between a call and its CALL_ARG_LOCATION note.
20314
20315 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
20316
20317         PR debug/48178
20318         * config/sh/sh.c (find_barrier): Don't emit a constant pool
20319         between a call and its corresponding CALL_ARG_LOCATION note.
20320
20321 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
20322
20323         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
20324         instead of loop. Use HARD_REGISTER_NUM_P predicate.
20325         * haifa-sched.c (setup_ref_regs): Ditto.
20326         * caller-save.c (add_used_regs_1): Ditto.
20327         * dse.c (look_for_hardregs): Ditto.
20328         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
20329         * sched-rgn.c (check_live_1): Ditto.
20330
20331 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
20332
20333         * c-decl.c (diagnose_mismatched_decls): Give an error for
20334         redefining a typedef with variably modified type.
20335
20336 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
20337
20338         * c-decl.c (grokfield): Don't allow typedefs for structures or
20339         unions with no tag by default.
20340         * doc/extend.texi (Unnamed Fields): Update.
20341
20342 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
20343
20344         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
20345         Rewrite using indirect functions.
20346         (lwp_slwpcb): Ditto.
20347         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
20348         (avx_vinsertf128<mode>): Ditto.
20349
20350 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20351
20352         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
20353         unspecs.
20354
20355 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20356
20357         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
20358         splitting between a call and its corresponding CALL_ARG_LOCATION note.
20359
20360 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
20361
20362         PR rtl-optimization/48170
20363         * gcse.c (hoist_code): Remove bogus asserts.
20364
20365 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
20366
20367         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
20368         computation for prologue/epilogue.
20369
20370 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20371
20372         * Makefile.in (check-consistency): Remove.
20373
20374 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
20375
20376         PR debug/48176
20377         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
20378         arange_table_in_use is 0, but either text_section_used or
20379         cold_text_section_used is true.  Don't call it if
20380         !info_section_emitted.
20381
20382 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
20383
20384         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
20385         FUNCTION_VALUE_REGNO_P): Remove.
20386         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
20387         Remove.
20388         * config/avr/avr.c (avr_ret_register): Make static inline.
20389         (avr_function_value_regno_p): New function.
20390         (avr_libcall_value): Make static. Add 'func' argument.
20391         (avr_function_value): Make static. Rename 'func' argument to
20392         'fn_decl_or_type', forward it to avr_libcall_value. Call
20393         avr_ret_register function instead of RET_REGISTER macro.
20394         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
20395
20396 2011-03-18  Jason Merrill  <jason@redhat.com>
20397
20398         PR c++/23372
20399         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
20400
20401 2011-03-18  Richard Guenther  <rguenther@suse.de>
20402
20403         * doc/install.texi (--enable-gold): Remove.
20404         (--with-plugin-ld): Document.
20405         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
20406
20407 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
20408
20409         PR middle-end/47790
20410         * expr.c (optimize_bitfield_assignment_op): Revamp to work
20411         again after expansion changes.
20412
20413 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
20414
20415         * combine.c (try_combine): Do simplification only call of
20416         subst() on i2 even when i1 is present. Update comments.
20417
20418 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
20419
20420         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
20421         and UNSPEC_PCREL_SYMOFF.
20422
20423 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20424
20425         * config/s390/s390.md: Use define_c_enum for the unspec constant
20426         definitions.
20427
20428 2011-03-18  Richard Henderson  <rth@redhat.com>
20429             Jakub Jelinek  <jakub@redhat.com>
20430
20431         PR bootstrap/48161
20432         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
20433         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
20434
20435 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
20436
20437         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
20438         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
20439         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
20440         Change return type to bool.
20441         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
20442
20443 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
20444
20445         PR debug/48163
20446         * var-tracking.c (prepare_call_arguments): If CALL target
20447         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
20448         pc instead of looking it up using cselib_lookup and use
20449         Pmode for it if x has VOIDmode.
20450         * dwarf2out.c (gen_subprogram_die): If also both first and
20451         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
20452
20453         PR debug/48163
20454         * function.c (assign_parms): For data.passed_pointer parms
20455         use MEM of data.entry_parm instead of data.entry_parm itself
20456         as DECL_INCOMING_RTL.
20457         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
20458         also when passed and declared mode is the same, DECL_RTL
20459         is a MEM with pseudo as address and DECL_INCOMING_RTL is
20460         a MEM too.
20461
20462 2011-03-16  Jeff Law  <law@redhat.com>
20463
20464         PR rtl-optimization/37273
20465         * ira-costs.c (scan_one_insn): Detect constants living in memory and
20466         handle them like argument loads from stack slots.  Do not double
20467         count memory for memory constants and argument loads from stack slots.
20468
20469 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
20470
20471         PR debug/48160
20472         * var-tracking.c (prepare_call_arguments): Check SUBREG.
20473
20474 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
20475
20476         PR target/48171
20477         * config/i386/i386.opt: Add Save to -mavx and -mfma.
20478
20479 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
20480
20481         PR bootstrap/48153
20482         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
20483         if dwarf_strict.
20484         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
20485         Clear call_arg_locations and call_arg_loc_last always.
20486
20487         PR middle-end/48152
20488         * var-tracking.c (prepare_call_arguments): If argument needs to be
20489         passed by reference, adjust argtype and mode.
20490
20491 2011-03-17  Richard Guenther  <rguenther@suse.de>
20492
20493         PR middle-end/48134
20494         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
20495         a value make sure to fold the statement.
20496
20497 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
20498
20499         PR target/43872
20500         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
20501         return condition with !cfun->calls_alloca.
20502
20503 2011-03-17  Richard Guenther  <rguenther@suse.de>
20504
20505         PR bootstrap/48148
20506         * lto-cgraph.c (input_overwrite_node): Clear the abstract
20507         origin for decls in other ltrans units.
20508         (input_varpool_node): Likewise.
20509
20510 2011-03-17  Richard Guenther  <rguenther@suse.de>
20511
20512         PR middle-end/48165
20513         * tree-object-size.c (compute_object_offset): Properly return
20514         the offset operand of MEM_REFs as sizetype.
20515
20516 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
20517
20518         PR rtl-optimization/48141
20519         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
20520         * dse.c: Include params.h.
20521         (active_local_stores_len): New variable.
20522         (add_wild_read, dse_step1): Clear it when setting active_local_stores
20523         to NULL.
20524         (record_store, check_mem_read_rtx): Decrease it when removing
20525         from the chain.
20526         (scan_insn): Likewise.  Increase it when adding to chain, if it
20527         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
20528         set active_local_stores to NULL before the addition.
20529         * Makefile.in (dse.o): Depend on $(PARAMS_H).
20530
20531         PR rtl-optimization/48141
20532         * dse.c (record_store): If no positions are needed in an insn
20533         that cannot be deleted, at least unchain it from active_local_stores.
20534
20535 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
20536
20537         PR debug/47510
20538         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
20539         (lookup_type_die_strip_naming_typedef): ... here.
20540         (get_context_die): Use it.
20541         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
20542         the anonymous struct named by the naming typedef.
20543
20544 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
20545
20546         PR target/48154
20547         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
20548         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
20549
20550 2011-03-16  Jeff Law  <law@redhat.com>
20551
20552         * tree-vrp.c (identify_jump_threads): Slightly simplify type
20553         check for operands of conditional.  Allow type to be a pointer.
20554
20555 2011-03-16  Richard Guenther  <rguenther@suse.de>
20556
20557         PR tree-optimization/48149
20558         * fold-const.c (fold_binary_loc): Fold
20559         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
20560
20561 2011-03-16  Richard Guenther  <rguenther@suse.de>
20562
20563         PR tree-optimization/26134
20564         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
20565         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
20566         (non_rewritable_mem_ref_base): Handle complex type component
20567         accesses, constrain offsets for vector and complex extracts
20568         more properly.
20569
20570 2011-03-16  Richard Guenther  <rguenther@suse.de>
20571
20572         PR tree-optimization/48146
20573         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
20574         operands avoiding the need for renaming.
20575
20576 2011-03-16  Richard Guenther  <rguenther@suse.de>
20577
20578         * gimple-fold.c (maybe_fold_reference): Open-code relevant
20579         constant folding.  Move MEM_REF canonicalization first.
20580         Rely on fold_const_aggregate_ref for initializer folding.
20581         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
20582
20583 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
20584
20585         PR middle-end/48136
20586         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
20587         arg0/arg1 or their arguments are always fold converted to matching
20588         types.
20589
20590         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
20591         to nargs.
20592
20593 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20594
20595         PR lto/46944
20596         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
20597         Handle in-tree gold.
20598         (ld_vers): Extract binutils version for gold.
20599         (gcc_cv_ld_hidden): Handle gold here.
20600         (gcc_cv_lto_plugin): Determine level of linker plugin support.
20601         * configure: Regenerate.
20602         * config.in: Regenerate.
20603         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
20604         -fuse-linker-plugin otherwise.
20605         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
20606         (LINK_COMMAND_SPEC): Use it.
20607         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
20608
20609 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
20610
20611         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
20612         * calls.c: Remove debug.h include.
20613         (emit_call_1): Don't call virtual_call_token debug hook.
20614         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
20615         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
20616         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
20617         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
20618         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
20619         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
20620         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
20621         dwarf2out_virtual_call): Remove.
20622         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
20623         copy_call_info and virtual_call hooks.
20624         (dwarf2out_init): Don't initialize vcall_insn_table,
20625         debug_dcall_section and debug_vcall_section.
20626         (prune_unused_types): Don't mark nodes from dcall_table.
20627         (dwarf2out_finish): Don't output dcall or vcall tables.
20628         * final.c (final_scan_insn): Don't call direct_call or
20629         virtual_call debug hooks.
20630         * debug.h (struct gcc_debug_hooks): Remove direct_call,
20631         virtual_call_token, copy_call_info and virtual_call hooks.
20632         (debug_nothing_uid): Remove prototype.
20633         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
20634         copy_call_info and virtual_call hooks.
20635         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
20636         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
20637         * debug.c (do_nothing_debug_hooks): Likewise.
20638         (debug_nothing_uid): Remove.
20639         * doc/invoke.texi (-fenable-icf-debug): Remove.
20640         * common.opt (-fenable-icf-debug): Likewise.
20641
20642         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
20643         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
20644         call's MEM.  Handle functions returning aggregate through a hidden
20645         first pointer.  For virtual calls add clobbered pc to call arguments
20646         chain.
20647         * dwarf2out.c (gen_subprogram_die): Emit
20648         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
20649         can't be emitted.
20650
20651         PR debug/45882
20652         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
20653         * rtl.h (ENTRY_VALUE_EXP): Define.
20654         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
20655         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
20656         * print-rtl.c (print_rtx): Likewise.
20657         * gengtype.c (adjust_field_rtx_def): Likewise.
20658         * var-tracking.c (vt_add_function_parameter): Adjust
20659         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
20660         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
20661         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
20662         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
20663         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
20664
20665         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
20666         Call var_location debug hook even on CALL_INSNs.
20667         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
20668         * rtl.def (ENTRY_VALUE): New.
20669         * dwarf2out.c: Include cfglayout.h.
20670         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
20671         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
20672         (struct call_arg_loc_node): New type.
20673         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
20674         tail_call_site_count): New variables.
20675         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
20676         DW_TAG_GNU_call_site_parameter.
20677         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
20678         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
20679         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
20680         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
20681         and DW_AT_GNU_all_source_call_sites.
20682         (mem_loc_descriptor): Handle ENTRY_VALUE.
20683         (add_src_coords_attributes): Don't add enything if
20684         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
20685         (dwarf2out_abstract_function): Save and clear call_arg_location,
20686         call_site_count and tail_call_site_count around dwarf2out_decl call.
20687         (gen_call_site_die): New function.
20688         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
20689         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
20690         (dwarf2out_function_decl): Clear call_arg_locations,
20691         call_arg_loc_last, set call_site_count and tail_call_site_count
20692         to -1 and free block_map.
20693         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
20694         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
20695         followed by any real instructions.
20696         (dwarf2out_begin_function): Set call_site_count and
20697         tail_call_site_count to 0.
20698         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
20699         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
20700         attempt to force a DIE for it and worst case remove the attribute.
20701         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
20702         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
20703         the decl itself.
20704         * var-tracking.c: Include tm_p.h.
20705         (vt_stack_adjustments): For calls call note_register_arguments.
20706         (argument_reg_set): New variable.
20707         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
20708         ensure the VALUE is resolved.
20709         (call_arguments): New variable.
20710         (prepare_call_arguments): New function.
20711         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
20712         (struct expand_loc_callback_data): Add ignore_cur_loc field.
20713         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
20714         always use the best expression.
20715         (vt_expand_loc): Add ignore_cur_loc argument.
20716         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
20717         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
20718         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
20719         note for all calls.
20720         (vt_add_function_parameter): Use cselib_lookup_from_insn.
20721         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
20722         argument.  Don't call cselib_preserve_only_values and
20723         cselib_reset_table.
20724         (note_register_arguments): New function.
20725         (vt_initialize): Compute argument_reg_set.  Call
20726         vt_add_function_parameters before processing basic blocks instead of
20727         afterwards.  For calls call prepare_call_arguments before calling
20728         cselib_process_insn.
20729         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
20730         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
20731         (var-tracking.o): Depend on $(TM_P_H).
20732         * cfglayout.h (insn_scope): New prototype.
20733         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
20734         * cfglayout.c (insn_scope): No longer static.
20735         * insn-notes.def (CALL_ARG_LOCATION): New.
20736         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
20737         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
20738         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
20739         nothing for DECL_EXTERNAL BLOCK_VARS.
20740
20741 2011-03-16  Alan Modra  <amodra@gmail.com>
20742
20743         PR target/45844
20744         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
20745         create invalid offset address for vsx splat insn.
20746         * config/rs6000/predicates.md (splat_input_operand): New.
20747         * config/rs6000/vsx.md (vsx_splat_*): Use it.
20748
20749 2011-03-15  Xinliang David Li  <davidxl@google.com>
20750
20751         PR c/47837
20752         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
20753         (normalize_preds): New function.
20754         (is_use_properly_guarded): Normalize def predicates.
20755
20756 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
20757
20758         PR target/46788
20759         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
20760         in the output template.
20761
20762 2011-03-15  Richard Guenther  <rguenther@suse.de>
20763
20764         PR middle-end/47650
20765         * tree-pretty-print.c (dump_function_declaration): Properly
20766         dump unprototyped and varargs function types.
20767
20768 2011-03-15  Richard Guenther  <rguenther@suse.de>
20769
20770         PR tree-optimization/13954
20771         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
20772         and friends.
20773
20774 2011-03-15  Richard Guenther  <rguenther@suse.de>
20775
20776         PR tree-optimization/48037
20777         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
20778         selects into BIT_FIELD_REFs.
20779         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
20780         vector select.
20781
20782 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
20783
20784         PR tree-optimization/48129
20785         * builtins.c (fold_builtin_snprintf): Convert to type of
20786         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
20787         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
20788
20789 2011-03-15  Richard Guenther  <rguenther@suse.de>
20790
20791         PR tree-optimization/41490
20792         * tree-ssa-dce.c (propagate_necessity): Handle returns without
20793         value but with VUSE.
20794         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
20795         return statements.
20796         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
20797         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
20798         * tree-tailcall.c (find_tail_calls): Ignore returns.
20799
20800 2011-03-15  Richard Guenther  <rguenther@suse.de>
20801
20802         PR middle-end/48031
20803         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
20804         or variable-indexed array accesses when in gimple form.
20805
20806 2011-03-15  Richard Guenther  <rguenther@suse.de>
20807
20808         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
20809
20810 2011-03-15  Alan Modra  <amodra@gmail.com>
20811
20812         PR target/48032
20813         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
20814         presume symbol_refs without a symbol_ref_decl are suitably
20815         aligned, nor other trees we may see here.  Handle anchor symbols.
20816         (legitimate_constant_pool_address_p): Comment.  Add mode param.
20817         Check cmodel=medium addresses.  Adjust all calls.
20818         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
20819         creating cmodel=medium optimized access to locals.
20820         * config/rs6000/constraints.md (R): Pass QImode to
20821         legitimate_constant_pool_address_p.
20822         * config/rs6000/predicates.md (input_operand): Pass mode to
20823         legitimate_constant_pool_address_p.
20824         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
20825         Update prototype.
20826
20827 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
20828
20829         PR target/48053
20830         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
20831         64-bit constants being loaded into registers other than GPRs such
20832         as loading 0 into a VSX register.
20833
20834 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20835
20836         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
20837
20838 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
20839
20840         PR middle-end/47917
20841         * builtins.c (fold_builtin_snprintf): New function.
20842         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
20843         (fold_builtin_4): Likewise.
20844
20845         PR middle-end/38878
20846         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
20847         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
20848         and C - X == X also strip nops from +/-/p+ operand.
20849         When optimizing -X == C, fold C to arg0's type.
20850
20851         PR debug/47946
20852         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
20853         emit it as add_AT_int instead of add_AT_unsigned.
20854
20855 2011-03-14  Tom Tromey  <tromey@redhat.com>
20856
20857         * unwind-dw2.c: Include sys/sdt.h if it exists.
20858         (_Unwind_DebugHook): Use STAP_PROBE2.
20859         * config.in, configure: Rebuild.
20860         * configure.ac: Check for sys/sdt.h.
20861
20862 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
20863
20864         * config/i386/i386.md (ROUND_FLOOR): New constant.
20865         (ROUND_CEIL): Ditto.
20866         (ROUND_TRUNC): Ditto.
20867         (ROUND_MXCSR): Ditto.
20868         (ROUND_NO_EXC): Ditto.
20869         (rint<mode>2): Use new defines instead of numerical constants.
20870         (floor<mode>2): Ditto.
20871         (ceil<mode>2): Ditto.
20872         (btrunc<mode>2): Ditto.
20873         * config/i386/i386-builtin-types.def: Define ROUND function type
20874         aliases.
20875         * config/i386/i386.c (enum ix86_builtins): Add
20876         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
20877         (struct builtin_description): Add
20878         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
20879         (ix86_expand_sse_round): New static function.
20880         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
20881         function types.
20882         (ix86_builtin_vectorized_function): Handle
20883         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
20884
20885 2011-03-14  Tom Tromey  <tromey@redhat.com>
20886
20887         * c-parser.c (c_parser_asm_string_literal): Clear
20888         warn_overlength_strings.
20889
20890 2011-03-14  Tom Tromey  <tromey@redhat.com>
20891
20892         * c-parser.c (disable_extension_diagnostics): Save
20893         warn_overlength_strings.
20894         (restore_extension_diagnostics): Restore warn_overlength_strings.
20895
20896 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
20897
20898         * BASE-VER: Change to 4.7.0.
20899
20900 2011-03-14  Richard Guenther  <rguenther@suse.de>
20901
20902         PR middle-end/48098
20903         * tree.c (build_vector_from_val): Adjust assert to requirements
20904         and reality.
20905
20906 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
20907
20908         PR bootstrap/48102
20909         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
20910
20911 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
20912
20913         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
20914         terms of target_flags_explicit. Adjust copyright year.
20915
20916         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
20917         * config/rs6000/t-freebsd: New file. Add override for
20918         LIB2FUNCS_EXTRA.
20919
20920 2011-03-13  Chris Demetriou  <cgd@google.com>
20921
20922         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
20923         (-fno-diagnostics-show-option): this, to reflect current default.
20924         (-Werror=): Update text about -fno-diagnostics-show-option.
20925
20926 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
20927
20928         PR target/48053
20929         * config/rs6000/predicates.md (easy_vector_constant_add_self,
20930         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
20931         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
20932         mode is not V2DImode or V2DFmode.
20933         (vspltis_constant): Do not handle V2DImode and V2DFmode.
20934         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
20935         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
20936         registers to 0.
20937         (movdi_internal64): Likewise.
20938
20939 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
20940
20941         PR tree-optimization/47127
20942         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
20943         parameter.
20944         (set_cloog_options): Same.
20945         (scop_to_clast): Same.
20946         (print_clast_stmt): Do not call cloog_state_malloc and
20947         cloog_state_free.
20948         (print_generated_program): Same.
20949         (gloog): Same.
20950         * graphite-clast-to-gimple.h (cloog_state): Declared.
20951         (scop_to_clast): Adjust declaration.
20952         * graphite.c (cloog_state): Defined here.
20953         (graphite_initialize): Call cloog_state_malloc.
20954         (graphite_finalize): Call cloog_state_free.
20955
20956 2011-03-11  Jason Merrill  <jason@redhat.com>
20957
20958         * attribs.c (lookup_attribute_spec): Take const_tree.
20959         * tree.h: Adjust.
20960
20961 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
20962
20963         * config/sparc/sparc.c (sparc_option_override): Use
20964         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
20965
20966 2011-03-11  Richard Guenther  <rguenther@suse.de>
20967
20968         PR tree-optimization/48067
20969         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
20970         multiplication result will be only used once on the target
20971         stmt.
20972
20973 2011-03-11  Richard Guenther  <rguenther@suse.de>
20974
20975         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
20976
20977 2011-03-11  Richard Guenther  <rguenther@suse.de>
20978
20979         PR lto/48073
20980         * tree.c (find_decls_types_r): Do not walk types only reachable
20981         from IDENTIFIER_NODEs.
20982
20983 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
20984
20985         PR middle-end/48044
20986         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
20987         all vnode->force_output nodes as needed.
20988
20989 2011-03-11  Jason Merrill  <jason@redhat.com>
20990
20991         PR c++/48069
20992         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
20993         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
20994
20995 2011-03-11  Martin Jambor  <mjambor@suse.cz>
20996
20997         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
20998         cgraph_node.
20999
21000 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
21001
21002         PR tree-optimization/48063
21003         * ipa-inline.c (cgraph_decide_inlining): Don't try to
21004         inline functions called once if !tree_can_inline_p (node->callers).
21005
21006 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
21007
21008         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
21009         extra_objs.
21010         * config/score/score3.c: Delete.
21011         * config/score/score3.h: Delete.
21012         * config/score/mul-div.S: Delete.
21013         * config/score/sfp-machine.h: Add new file.
21014         * config/score/constraints.md: Add new file.
21015         * config/score/t-score-softfp: Add new file.
21016         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
21017         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
21018         (score7_extra_constraint): Delete.
21019         (score7_option_override): Remove unused code.
21020         * config/score/score.c: Remove score3 and score5 define and code.
21021         * config/score/score.h: Remove score3 and score5 define and code.
21022         * config/score/score.md: Remove score3 template and unusual insn.
21023         * config/score/score.opt: Remove score3 and score5 options.
21024
21025 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21026
21027         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
21028         when _HPUX_SOURCE is defined.
21029         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
21030
21031 2011-03-10  Jason Merrill  <jason@redhat.com>
21032
21033         PR c++/48029
21034         * stor-layout.c (layout_type): Don't set structural equality
21035         on arrays of incomplete type.
21036         * tree.c (type_hash_eq): Handle comparing them properly.
21037
21038 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
21039
21040         PR debug/48043
21041         * config/s390/s390.c (s390_delegitimize_address): Make sure the
21042         result mode matches original rtl mode.
21043
21044 2011-03-10  Nick Clifton  <nickc@redhat.com>
21045
21046         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
21047         (andsi3, andsi3_flags): Fix timings for three operand alternative.
21048
21049 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
21050
21051         PR rtl-optimization/47866
21052         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
21053         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
21054         if target wasn't scalar.
21055         * function.c (assign_stack_temp_for_type): Assert that neither
21056         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
21057         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
21058         macro.
21059         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
21060
21061 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21062
21063         * config/s390/s390-protos.h (s390_label_align): New prototype.
21064         * config/s390/s390.c (s390_label_align): New function.
21065         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
21066
21067 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
21068
21069         PR target/47755
21070         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
21071         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
21072         (output_vec_const_move): Ditto.
21073
21074 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
21075
21076         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
21077         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
21078         * config/mips/mips.c (mips_preferred_reload_class): Make static.
21079         Change 'rclass' argument and result type to reg_class_t.
21080         (TARGET_PREFERRED_RELOAD_CLASS): Define.
21081
21082 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
21083
21084         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
21085         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
21086         (TARGET_MEMORY_MOVE_COST): Define.
21087         (avr_register_move_cost, avr_memory_move_cost): New Functions.
21088
21089 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
21090
21091         PR debug/47881
21092         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
21093         removed anything.
21094
21095         PR tree-optimization/48022
21096         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
21097         for EQ/NE_EXPR.
21098
21099 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
21100
21101         PR debug/47991
21102         * var-tracking.c (find_use_val): Return NULL for
21103         cui->sets && cui->store_p BLKmode MEMs.
21104
21105 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
21106
21107         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
21108         Remove.
21109         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
21110         xstormy16_print_operand_address): Remove.
21111         * config/stormy16/stormy16.c (xstormy16_print_operand,
21112         xstormy16_print_operand_address): Make static.
21113         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
21114
21115 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
21116
21117         PR target/47862
21118         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
21119         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
21120         before definition.
21121
21122 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
21123
21124         PR bootstrap/48000
21125         * cfgloopmanip.c (fix_bb_placements): Return immediately
21126         if FROM is BASE_LOOP's header.
21127
21128 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
21129
21130         * gimplify.c (gimplify_function_tree): Fix building calls
21131         to __builtin_return_address.
21132
21133 2011-03-07  Alan Modra  <amodra@gmail.com>
21134
21135         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
21136         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
21137         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
21138         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
21139         return_mode args.
21140         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
21141         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
21142         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
21143         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
21144         * config/rs6000/rs6000.c
21145         (rs6000_elf_end_indicate_exec_stack): Rename to..
21146         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
21147         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
21148         (rs6000_file_start): ..here.
21149         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
21150         file scope variables.
21151         (call_ABI_of_interest): New function.
21152         (init_cumulative_args): Set above vars when function return value
21153         is a float, vector, or small struct.
21154         (rs6000_function_arg_advance_1): Likewise for function args.
21155         (rs6000_va_start): Set rs6000_passes_float if variable arg function
21156         references float args.
21157
21158 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
21159
21160         * doc/cfg.texi: Remove "See" before @ref.
21161         * doc/invoke.texi: Likewise.
21162
21163 2011-03-05  Jason Merrill  <jason@redhat.com>
21164
21165         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
21166
21167 2011-03-05  Anthony Green  <green@moxielogic.com>
21168
21169         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
21170
21171 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
21172
21173         PR rtl-optimization/47899
21174         * cfgloopmanip.c (fix_bb_placements): Fix first argument
21175         to flow_loop_nested_p when moving the loop upward.
21176
21177 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
21178
21179         PR target/47719
21180         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
21181
21182 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
21183
21184         PR tree-optimization/47967
21185         * ipa-cp.c (build_const_val): Return NULL instead of creating
21186         VIEW_CONVERT_EXPR for mismatching sizes.
21187         (ipcp_create_replace_map): Return NULL if build_const_val failed.
21188         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
21189         give up on versioning.
21190
21191 2011-03-05  Alan Modra  <amodra@gmail.com>
21192
21193         PR target/47986
21194         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
21195         full cmodel medium/large lo_sum + high addresses.
21196
21197 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21198
21199         * config/s390/s390.c (s390_decompose_address): Reject non-literal
21200         pool references in UNSPEC_LTREL_OFFSET.
21201
21202 2011-03-04  Jan Hubicka  <jh@suse.cz>
21203
21204         PR lto/47497
21205         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
21206         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
21207         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
21208         Add node pointers.
21209         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
21210         cgraph_add_thunk): Add node pointers.
21211         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
21212         associated to right node.
21213         (input_node): Update use of cgraph_same_body_alias
21214         and cgraph_add_thunk.
21215
21216 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
21217
21218         * config/i386/i386.opt (mprefer-avx128): New flag.
21219         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
21220         modes when the flag -mprefer-avx128 is on.
21221
21222 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
21223
21224         * dwarf2out.c (compare_loc_operands): Fix address handling.
21225
21226 2011-03-04  Alan Modra  <amodra@gmail.com>
21227
21228         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
21229
21230 2011-03-04  Richard Guenther  <rguenther@suse.de>
21231
21232         PR middle-end/47968
21233         * expmed.c (extract_bit_field_1): Prefer vector modes that
21234         vec_extract patterns can handle.
21235
21236 2011-03-04  Richard Guenther  <rguenther@suse.de>
21237
21238         PR middle-end/47975
21239         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
21240
21241 2011-03-04  Richard Henderson  <rth@redhat.com>
21242
21243         * explow.c (emit_stack_save): Remove 'after' parameter.
21244         (emit_stack_restore): Likewise.
21245         * expr.h: Update to match.
21246         * builtins.c, calls.c, stmt.c: Likewise.
21247         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
21248         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
21249         * function.c (expand_function_end): Insert the emit_stack_save
21250         sequence before parm_birth_insn instead of after.
21251
21252 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
21253
21254         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
21255         (ssse3_pmaddubsw128): Ditto.
21256         (ssse3_pmaddubsw): Ditto.
21257
21258 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
21259
21260         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
21261
21262 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
21263
21264         PR c/47963
21265         * gimplify.c (omp_add_variable): Only call omp_notice_variable
21266         on TYPE_SIZE_UNIT if it is a DECL.
21267
21268         PR debug/47283
21269         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
21270         first operand is not is_gimple_mem_ref_addr, try to fold it.
21271         If the operand still isn't is_gimple_mem_ref_addr, clear
21272         MEM_EXPR on op0.
21273
21274 2011-03-03  Richard Guenther  <rguenther@suse.de>
21275
21276         PR middle-end/47283
21277         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
21278         match comment.
21279         (refs_may_alias_p_1): For release branches return true if
21280         we are confused by our input.
21281
21282 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21283
21284         * config/s390/s390.c (s390_function_value): Rename to ...
21285         (s390_function_and_libcall_value): ... this.
21286         (s390_function_value): New function.
21287         (s390_libcall_value): New function.
21288         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
21289         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
21290         target macro definitions.
21291         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
21292
21293 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
21294
21295         * config/i386/freebsd64.h (CC1_SPEC): Define.
21296         * config/i386/linux64.h (CC1_SPEC): Define.
21297         * config/i386/x86-64.h (CC1_SPEC): Don't define.
21298
21299 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
21300
21301         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
21302         Remove.
21303         * config/stormy16/stormy16.c: Include reload.h.
21304         (xstormy16_memory_move_cost): New function.
21305         (TARGET_MEMORY_MOVE_COST): Define.
21306
21307 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
21308
21309         PR rtl-optimization/47925
21310         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
21311         with side effects.  Remove the more-specific check for volatile asms.
21312
21313 2011-03-02  Alan Modra  <amodra@gmail.com>
21314
21315         PR target/47935
21316         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
21317         toc relative addresses for valid offsets.
21318
21319 2011-03-01  Richard Guenther  <rguenther@suse.de>
21320
21321         PR tree-optimization/47890
21322         * tree-vect-loop.c (get_initial_def_for_induction): Set
21323         related stmt properly.
21324
21325 2011-03-01  Richard Guenther  <rguenther@suse.de>
21326
21327         PR lto/47924
21328         * lto-streamer.c (lto_record_common_node): Also register
21329         the canonical type.
21330
21331 2011-03-01  Richard Guenther  <rguenther@suse.de>
21332
21333         PR lto/46911
21334         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
21335         Do not stream DECL_ABSTRACT_ORIGIN.
21336         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
21337         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
21338         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
21339         Do not stream DECL_ABSTRACT_ORIGIN.
21340         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
21341         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
21342
21343 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
21344
21345         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
21346         FUNCTION_VALUE_REGNO_P): Remove.
21347         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
21348         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
21349         Add 'outgoing' argument.
21350         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
21351         function.
21352         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
21353         TARGET_FUNCTION_VALUE_REGNO_P): Define.
21354
21355 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
21356
21357         PR debug/28047
21358         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
21359         (lookup_filename): Likewise.
21360         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
21361
21362 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
21363             Jakub Jelinek  <jakub@redhat.com>
21364
21365         PR middle-end/47893
21366         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
21367         (assign_stack_local_1): Change last argument type to int.
21368         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
21369         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
21370         don't record padding space into frame_space_list nor use those areas.
21371         (assign_stack_local): Adjust caller.
21372         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
21373         of assign_stack_local, pass 0 as last argument.
21374         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
21375         callers.
21376
21377 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
21378
21379         PR debug/47283
21380         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
21381         Use target address_mode and pointer_mode hooks instead of hardcoded
21382         Pmode and ptr_mode.  Handle some simple cases of extending if
21383         POINTERS_EXTEND_UNSIGNED < 0.
21384         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
21385         Call convert_debug_memory_address.
21386         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
21387         convert_debug_memory_address.
21388
21389         PR middle-end/46790
21390         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
21391         * configure: Regenerated.
21392         * config.in: Regenerated.
21393         * varasm.c (default_function_section): Return NULL
21394         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
21395
21396 2011-02-28  Martin Jambor  <mjambor@suse.cz>
21397
21398         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
21399         the description to match the printed values.
21400
21401 2011-02-28  Richard Guenther  <rguenther@suse.de>
21402
21403         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
21404         of the copied scope tree.
21405
21406 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21407
21408         * doc/extend.texi (Function Attributes): Avoid deeply (and
21409         wrongly) nested tables.
21410
21411 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
21412
21413         PR middle-end/47903
21414         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
21415         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
21416         r isn't op0 nor op1.
21417
21418 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
21419
21420         * config/avr/avr.md: Remove magic comment for emacs.
21421
21422 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
21423
21424         PR target/45261
21425         * config/avr/avr.c (avr_option_override): Use error on bad options.
21426         (avr_help): New function.
21427         (TARGET_HELP): Define.
21428
21429 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
21430
21431         PR target/42240
21432         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
21433         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
21434
21435 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
21436
21437         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
21438         (ARM Options): Ditto.
21439         (i386 and x86-64 Options): Ditto.
21440         (RX Options): Ditto.
21441         (SPARC Options): Ditto.
21442
21443 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
21444
21445         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
21446         FreeBSD 6 and later.  Generally use cpu generic.
21447
21448 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
21449
21450         * doc/cpp.texi: Update copyright years.
21451
21452 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
21453
21454         PR target/46898
21455         * config/lm32/lm32.md (ashrsi3): Added needed variable.
21456
21457 2011-02-25  Jon Beniston  <jon@beniston.com>
21458
21459         PR target/46898
21460         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
21461         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
21462         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
21463         (lm32_block_move_inline): Add type cast to remove warning.
21464         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
21465         (gen_int_relational): Move declarations to start of function.
21466
21467 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
21468
21469         PR tree-optimization/45470
21470         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
21471         can throw internally only.
21472         * tree-vect-stmts.c (vectorizable_call): Likewise.
21473
21474 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
21475
21476         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
21477         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
21478         * config/stormy16/stormy16-protos.h
21479         (xstormy16_preferred_reload_class): Remove.
21480         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
21481         static. Change 'rclass' argument and return type to reg_class_t.
21482         (TARGET_PREFERRED_RELOAD_CLASS,
21483         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
21484
21485 2011-02-24  Richard Guenther  <rguenther@suse.de>
21486
21487         * lto-streamer-in.c (input_bb): Do not find referenced vars
21488         in debug statements.
21489
21490 2011-02-23  Jason Merrill  <jason@redhat.com>
21491
21492         * common.opt (fabi-version): Document v5 and v6.
21493
21494 2011-02-23  Richard Guenther  <rguenther@suse.de>
21495
21496         PR tree-optimization/47849
21497         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
21498
21499 2011-02-23  Jie Zhang  <jie@codesourcery.com>
21500
21501         * opts-common.c (decode_cmdline_option): Print empty string
21502         argument as "" in decoded->orig_option_with_args_text.
21503         * gcc.c (execute): Print empty string argument as ""
21504         in the verbose output.
21505         (do_spec_1): Keep empty string argument.
21506
21507 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
21508
21509         * config.gcc: Declare score-* and crx-* obsolete.
21510
21511 2011-02-23  Jie Zhang  <jie@codesourcery.com>
21512
21513         PR rtl-optimization/47763
21514         * web.c (web_main): Ignore naked clobber when replacing register.
21515
21516 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
21517
21518         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
21519         Remove.
21520
21521 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
21522
21523         PR doc/47848
21524         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
21525
21526 2011-02-22  Mike Stump  <mikestump@comcast.net>
21527
21528         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
21529         assembler.
21530         * configure: Regenerate.
21531
21532 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
21533
21534         PR rtl-optimization/46002
21535         * ira-color.c (update_copy_costs): Change class intersection
21536         test to reg_class_contents[] test of 'hard_regno'.
21537
21538 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
21539
21540         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
21541         than Driver option.
21542         * config/hpux11.opt (mt): Likewise.
21543         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
21544         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
21545         * config/vax/elf.opt (mno-asm-pic): Likewise.
21546         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
21547
21548 2011-02-21  Mike Stump  <mikestump@comcast.net>
21549
21550         PR target/47822
21551         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
21552         tree so we can get save the type.
21553         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
21554         for CFString instead of trying to use past the end of the builtins.
21555         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
21556         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
21557         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
21558         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
21559         Rename to darwin_builtin_cfstring.
21560         (darwin_init_cfstring_builtins): Return the built type.
21561
21562 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
21563
21564         PR target/47840
21565         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
21566         (_mm256_insert_epi64): Use _mm_insert_epi64.
21567
21568 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
21569
21570         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
21571         * config/stormy16/stormy16-protos.h
21572         (xstormy16_mode_dependent_address_p): Remove.
21573         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
21574         Make static. Change return type to bool. Change argument type to
21575         const_rtx. Remove dead code.
21576         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
21577
21578 2011-02-21  Richard Guenther  <rguenther@suse.de>
21579
21580         PR lto/47820
21581         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
21582         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
21583         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
21584         TUs context.
21585         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
21586         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
21587
21588 2011-02-20  Richard Guenther  <rguenther@suse.de>
21589
21590         PR lto/47822
21591         * tree.c (free_lang_data_in_decl): Clean builtins from
21592         the TU decl BLOCK_VARS.
21593
21594 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
21595
21596         PR debug/47620
21597         PR debug/47630
21598         * haifa-sched.c (fix_tick_ready): Skip tick computation
21599         for debug insns.
21600
21601 2011-02-19  Richard Guenther  <rguenther@suse.de>
21602
21603         PR lto/47647
21604         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
21605         Remove lazy BLOCK_VARS streaming.
21606         (lto_input_ts_block_tree_pointers): Likewise.
21607         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
21608
21609 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
21610
21611         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
21612
21613 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
21614
21615         * config/i386/biarch32.h, config/i386/mach.h,
21616         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
21617
21618 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
21619
21620         PR target/47800
21621         * config/i386/i386.md (peephole2 for shift and plus): Use
21622         operands[1] original mode in the first insn.
21623
21624 2011-02-18  Mike Stump  <mikestump@comcast.net>
21625
21626         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
21627
21628 2011-02-18  Jan Hubicka  <jh@suse.cz>
21629
21630         PR middle-end/47788
21631         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
21632         to zero when the function is not inlinable at all.
21633
21634 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21635
21636         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
21637         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
21638         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
21639         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
21640         * config/pa/t-pa64: Likewise.
21641         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
21642
21643 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
21644
21645         PR driver/47787
21646         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
21647
21648 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21649
21650         PR target/47792
21651         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
21652
21653 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
21654
21655         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
21656         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
21657         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
21658         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
21659         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
21660         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
21661         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
21662         m32r_load_postinc_p, m32r_store_preinc_predec_p,
21663         m32r_legitimate_address_p): New functions.
21664         * config/m32r/constraints.md (constraint "S"): Don't use
21665         STORE_PREINC_PREDEC_P.
21666         (constraint "U"): Don't use LOAD_POSTINC_P.
21667
21668 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
21669
21670         PR rtl-optimization/46178
21671         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
21672         compute ira_hard_regno_cover_class[].
21673
21674 2011-02-18  Richard Guenther  <rguenther@suse.de>
21675
21676         PR lto/47798
21677         * lto-streamer.h (lto_global_var_decls): Declare.
21678         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
21679         statics for global var processing.
21680
21681 2011-02-18  Richard Guenther  <rguenther@suse.de>
21682
21683         PR tree-optimization/47737
21684         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
21685         edge dominance check.
21686
21687 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
21688
21689         PR debug/47780
21690         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
21691         avoid invalid rtx sharing.
21692
21693 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
21694
21695         * doc/cpp.texi (Obsolete Features): Add background on the
21696         origin of assertions.
21697
21698 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
21699
21700         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
21701         objc_abi == 2.
21702         * config/darwin.c (output_objc_section_asm_op): Added support for
21703         ABI v1 and v2.
21704         (is_objc_metadata): New.
21705         (darwin_objc2_section): New.
21706         (darwin_objc1_section): New.
21707         (machopic_select_section): Added support for ABI v1 and v2.
21708         (darwin_emit_objc_zeroed): New.
21709         (darwin_output_aligned_bss): Detect objc metadata and treat it
21710         appropriately.
21711         (darwin_asm_output_aligned_decl_common): Same.
21712         (darwin_asm_output_aligned_decl_local): Same.
21713         * config/darwin-sections.def: Updated for ABI v1 and v2.
21714         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
21715         compiling Objective-C code for the NeXT runtime, default to using
21716         ABI version 0 for 32-bit, and version 2 for 64-bit.
21717
21718 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
21719
21720         * common.opt (optimize_fast): New Variable.
21721         * opts.c (default_options_optimization): Use opts->x_optimize_fast
21722         instead of local variable ofast.
21723
21724 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
21725
21726         * doc/invoke.texi (fobjc-abi-version): Documented.
21727         (fobjc-nilcheck): Documented.
21728         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
21729         version.
21730
21731 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
21732
21733         PR driver/47390
21734         * common.opt (export-dynamic): New Driver option.
21735         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
21736
21737 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
21738
21739         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
21740
21741 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
21742             Jan Hubicka  <jh@suse.cz>
21743
21744         PR debug/47106
21745         PR debug/47402
21746         * cfgexpand.c (account_used_vars_for_block): Remove.
21747         (estimated_stack_frame_size): Use referenced vars.
21748         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
21749         that were referenced in the original function.  Test src_fn
21750         rather than cfun.  Drop redundant get_var_ann.
21751         (setup_one_parameter): Drop redundant get_var_ann.
21752         (declare_return_variable): Likewise.
21753         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
21754         (copy_arguments_for_versioning): Drop redundant get_var_ann.
21755         * ipa-inline.c (compute_inline_parameters): Do not compute
21756         disregard_inline_limits here.
21757         (compute_inlinable_for_current, pass_inlinable): New.
21758         (pass_inline_parameters): Require PROP_referenced_vars.
21759         * cgraphunit.c (cgraph_process_new_functions): Don't run
21760         compute_inline_parameters explicitly unless function is in SSA form.
21761         (cgraph_analyze_function): Set .disregard_inline_limits.
21762         * tree-sra.c (convert_callers): Compute inliner parameters
21763         only for functions already in SSA form.
21764
21765 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
21766
21767         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
21768         -mlittle-endian-data.
21769
21770 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
21771
21772         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
21773         -mno-fpu, not -fpu and -no-fpu.
21774         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
21775         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
21776
21777 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
21778
21779         PR target/43653
21780         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
21781         input reload with PLUS RTX.
21782
21783 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
21784
21785         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
21786         of InverseVar(MDMX).
21787
21788 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
21789
21790         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
21791         --m4-340.
21792
21793 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
21794
21795         * config/mn10300/mn10300.opt (mno-crt0): New.
21796
21797 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
21798
21799         * config/m68k/uclinux.opt (static-libc): New Driver option.
21800
21801 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
21802
21803         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
21804
21805 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
21806
21807         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
21808         %{muser-extend-enabled}.
21809
21810 2011-02-16  Richard Guenther  <rguenther@suse.de>
21811
21812         PR tree-optimization/47738
21813         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
21814         the TODO from tree_predictive_commoning.
21815
21816 2011-02-15  Jeff Law  <law@redhat.com>
21817
21818         Revert
21819         2011-01-25  Jeff Law  <law@redhat.com>
21820
21821         PR rtl-optimization/37273
21822         * ira-costs.c (scan_one_insn): Detect constants living in memory and
21823         handle them like argument loads from stack slots.  Do not double
21824         count memory for memory constants and argument loads from stack slots.
21825
21826 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
21827
21828         PR target/47755
21829         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
21830         mode for vector constants.  Remove code that checks for TImode.
21831
21832 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
21833
21834         PR debug/47106
21835         PR debug/47402
21836         * cgraph.h (compute_inline_parameters): Return void.
21837         * ipa-inline.c (compute_inline_parameters): Adjust.
21838
21839 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
21840
21841         PR debug/47106
21842         PR debug/47402
21843         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
21844         rather than decl.
21845         * cfgexpand.c (estimated_stack_frame_size): Likewise.
21846         * ipa-inline.c (compute_inline_parameters): Adjust.
21847
21848 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
21849
21850         PR debug/47106
21851         PR debug/47402
21852         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
21853         Adjust all users.  Pass FN to...
21854         * tree-flow-inline.h (first_referenced_var): ... this.  Add
21855         fn argument.
21856         * ipa-struct-reorg.c: Adjust.
21857         * tree-dfa.c: Adjust.
21858         * tree-into-ssa.c: Adjust.
21859         * tree-sra.c: Adjust.
21860         * tree-ssa-alias.c: Adjust.
21861         * tree-ssa-live.c: Adjust.
21862         * tree-ssa.c: Adjust.
21863         * tree-ssanames.c: Adjust.
21864         * tree-tailcall.c: Adjust.
21865
21866 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
21867
21868         PR debug/47106
21869         PR debug/47402
21870         * tree-flow.h (referenced_var_lookup): Add fn parameter.
21871         Adjust all callers.
21872         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
21873         * tree-flow-inline.h: Adjust.
21874         * gimple-pretty-print.c: Adjust.
21875         * tree-into-ssa.c: Adjust.
21876         * tree-ssa.c: Adjust.
21877         * cfgexpand.c: Adjust.
21878
21879 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
21880
21881         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
21882         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
21883         (EXTRA_CONSTRAINT): Delete.
21884         * config/iq2000/constraints.md: New file.
21885         * config/iq2000/iq2000.md: Include it.
21886         (define_insn ""): Delete.
21887         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
21888         unsupported constraint letters from patterns.
21889         (call_value, call_value_internal1): Likewise.
21890         (call_value_multiple_internal1): Likewise.
21891
21892 2011-02-15  Nick Clifton  <nickc@redhat.com>
21893
21894         * config/mn10300/mn10300.c: Include tm-constrs.h.
21895         (struct liw_data): New data structure describing an LIW candidate
21896         instruction.
21897         (extract_bundle): Use struct liw_data.  Allow small integer
21898         operands for some instructions.
21899         (check_liw_constraints): Use struct liw_data.  Remove swapped
21900         parameter.  Add comments describing the checks.  Fix bug when
21901         assigning the source of liw1 to the source of liw2.
21902         (liw_candidate): Delete.  Code moved into extract_bundle.
21903         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
21904         before swapping.
21905         * config/mn10300/predicates.md (liw_operand): New predicate.
21906         Allows registers and small integer constants.
21907         * config/mn10300/constraints.md (O): New constraint.  Accetps
21908         integers in the range -8 to +7 inclusive.
21909         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
21910         for moving a small integer into a register.  Give this alternative
21911         LIW attributes.
21912         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
21913         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
21914         using the J,K,L and M constraints,
21915         (liw): Remove SI mode on second operands to allow for HI and QI
21916         mode values.
21917         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
21918         instruction.
21919
21920 2011-02-15  Richard Guenther  <rguenther@suse.de>
21921
21922         PR tree-optimization/47743
21923         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
21924         for a non-type-compatible VN lookup bail out.
21925
21926 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
21927
21928         * config/fr30/constraints.md: New file.
21929         * config/fr30/fr30.md: Include it.
21930         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
21931         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
21932         (EXTRA_CONSTRAINT): Delete.
21933
21934 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
21935
21936         * config/frv/constraints.md: New file.
21937         * config/frv/predicates.md: Include it.
21938         * config/frv/frv.c (reg_class_from_letter): Delete.
21939         (frv_option_override): Don't initialize it.
21940         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
21941         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
21942         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
21943         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
21944         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
21945         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
21946         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
21947         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
21948         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
21949         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
21950         (REG_CLASS_FROM_CONSTRAINT): Delete.
21951
21952 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
21953
21954         PR middle-end/47581
21955         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
21956         if frame size is 0 in a leaf function.
21957
21958 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21959
21960         PR pch/14940
21961         * config/alpha/host-osf.c: New file.
21962         * config/alpha/x-osf: New file.
21963         * config.host (alpha*-dec-osf*): Use it.
21964
21965 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
21966
21967         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
21968         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
21969         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
21970         (rx_mode_dependent_address_p): ...this. Make static. Change argument
21971         type to const_rtx.
21972         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
21973
21974 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
21975
21976         * config/stormy16/constraints.md: New file.
21977         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
21978         Use satisfies_constraint_Q and satisfies_constraint_R.
21979         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
21980         Delete.
21981         (xstormy16_legitiamte_address_p): Declare.
21982         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
21983         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
21984         (EXTRA_CONSTRAINT): Delete.
21985         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
21986         Un-staticize.
21987         (xstormy16_extra_constraint_p): Delete.
21988
21989 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
21990
21991         PR tree-optimization/46494
21992         * loop-unroll.c (split_edge_and_insert): Adjust comment.
21993         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
21994         (pass_rtl_loop_done): Add TODO_verify_flow.
21995         * fwprop.c (pass_rtl_fwprop): Likewise.
21996         * modulo-sched.c (pass_sms): Likewise.
21997         * tree-ssa-dom.c (pass_dominator): Likewise.
21998         * tree-ssa-loop-ch.c (pass_ch): Likewise.
21999         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
22000         (pass_tree_loop_done): Likewise.
22001         * tree-ssa-pre.c (execute_pre): Likewise.
22002         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
22003         * tree-ssa-sink.c (pass_sink_code): Likewise.
22004         * tree-vrp.c (pass_vrp): Likewise.
22005
22006 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
22007
22008         * config/v850/constraints.md: New file.
22009         * config/v850/v850.md: Include it.
22010         * config/v850/predicates.md (reg_or_0_operand): Use
22011         satisfies_constraint_G.
22012         (special_symbolref_operand): Use satisfies_constraint_K.
22013         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
22014         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
22015         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
22016         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
22017         (EXTRA_CONSTRAINT): Delete.
22018         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
22019         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
22020         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
22021
22022 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
22023
22024         PR target/47696
22025         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
22026         description.
22027
22028 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
22029
22030         * config/mcore/constraints.md: New file.
22031         * config/mcore/mcore.md: Include it.
22032         * config/mcore/mcore.c (reg_class_from_letter): Delete.
22033         * config/mcore/mcore.h (reg_class_from_letter): Delete.
22034         (REG_CLASS_FROM_LETTER): Delete.
22035         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
22036         insn_const_int_ok_for_constraint.
22037         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
22038         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
22039         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
22040         (EXTRA_CONSTRAINT): Delete.
22041
22042 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22043
22044         PR ada/41929
22045         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
22046         (IS_SIGHANDLER): Define.
22047         (sparc64_is_sighandler): New function, split off from
22048         sparc64_fallback_frame_state.
22049         (sparc_is_sighandler): New function, split off from
22050         sparc_fallback_frame_state.
22051         (sparc64_fallback_frame_state): Merge with ...
22052         (sparc_fallback_frame_state): ... this into ...
22053         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
22054         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
22055         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
22056         stack instead of hardcoded offsets.
22057
22058 2011-02-14  Andriy Gapon  <avg@freebsd.org>
22059
22060         PR target/45808
22061         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
22062
22063 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22064
22065         * configure: Regenerate.
22066
22067 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
22068
22069         PR driver/45731
22070         * gcc.c (asm_options): Correct spec matching --target-help.
22071
22072 2011-02-12  Martin Jambor  <mjambor@suse.cz>
22073
22074         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
22075         to gimple call error.
22076
22077 2011-02-12  Mike Stump  <mikestump@comcast.net>
22078
22079         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
22080         comments in backslash regions.
22081
22082 2011-02-12  Mike Stump  <mikestump@comcast.net>
22083             Jakub Jelinek  <jakub@redhat.com>
22084             Iain Sandoe  <iains@gcc.gnu.org>
22085
22086         PR target/47324
22087         * dwarf2out.c (output_cfa_loc): When required, apply the
22088         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
22089         (output_loc_sequence): Likewise.
22090         (output_loc_operands_raw): Likewise.
22091         (output_loc_sequence_raw): Likewise.
22092         (output_cfa_loc): Likewise.
22093         (output_loc_list): Suppress register number adjustment when
22094         calling output_loc_sequence()
22095         (output_die): Likewise.
22096
22097 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
22098
22099         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
22100         Remove macros.
22101         * config/xtensa/xtensa.c (xtensa_register_move_cost,
22102         xtensa_memory_move_cost): New functions.
22103         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
22104
22105 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
22106
22107         PR lto/47225
22108         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
22109         in the current directory.
22110         * configure: Rebuilt.
22111
22112 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
22113
22114         * config/darwin.c (darwin_override_options): Add a hunk missed
22115         from the commit of r168571.  Trim comment line lengths and
22116         correct indents of the preceding block.
22117
22118 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
22119
22120         * gcc.c (driver_handle_option): Concatenate the argument to -F with
22121         the switch.
22122
22123 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
22124
22125         * common.opt (nostartfiles): New Driver option.
22126
22127 2011-02-11  Xinliang David Li  <davidxl@google.com>
22128
22129         PR tree-optimization/47707
22130         * tree-chrec.c (convert_affine_scev): Keep type precision.
22131
22132 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
22133
22134         PR tree-optimization/47420
22135         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
22136
22137 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
22138
22139         PR rtl-optimization/47614
22140         * rtl.h (check_for_inc_dec): Declare.
22141         * dse.c (check_for_inc_dec): Externalize...
22142         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
22143         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
22144
22145 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
22146
22147         PR driver/47678
22148         * gcc.c (main): Do not compile inputs if there were errors in
22149         option handling.
22150         * opts-common.c (read_cmdline_option): Check for wrong language
22151         after other error checks.
22152
22153 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
22154
22155         * cgraph.c: Fix comment typos.
22156         * cgraph.h: Likewise.
22157         * cgraphunit.c: Likewise.
22158         * ipa-cp.c: Likewise.
22159         * ipa-inline.c: Likewise.
22160         * ipa-prop.c: Likewise.
22161         * ipa-pure-const.c: Likewise.
22162         * ipa-ref.c: Likewise.
22163         * ipa-reference.c: Likewise.
22164
22165 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
22166
22167         PR debug/47684
22168         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
22169
22170 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22171
22172         PR testsuite/47400
22173         * doc/sourcebuild.texi (Require Support): Document
22174         dg-require-ascii-locale.
22175
22176 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
22177
22178         * doc/lto.texi (Write summary): Fix missing parentheses.
22179
22180 2011-02-10  DJ Delorie  <dj@redhat.com>
22181
22182         * config/m32c/m32c.c (m32c_option_override): Disable
22183         -fcombine-stack-adjustments until flag value tracking and compare
22184         optimization can be rewritten.
22185
22186 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
22187
22188         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
22189         PROCESSOR_POWER7.
22190         (PROCESSOR_DEFAULT64): Likewise.
22191
22192 2011-02-10  Richard Henderson  <rth@redhat.com>
22193
22194         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
22195         change from 2011-02-03.
22196         * config/rx/rx.c (flags_from_code): Likewise.
22197         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
22198         is valid, n/pz otherwise.
22199         (rx_select_cc_mode): Return CCmode if Y is not zero.
22200
22201 2011-02-10  Richard Guenther  <rguenther@suse.de>
22202
22203         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
22204
22205 2011-02-10  Richard Guenther  <rguenther@suse.de>
22206
22207         PR tree-optimization/47677
22208         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
22209
22210 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
22211
22212         PR target/47665
22213         * combine.c (make_compound_operation): Only change shifts into
22214         multiplication for SCALAR_INT_MODE_P.
22215
22216 2011-02-10  Jie Zhang  <jie@codesourcery.com>
22217
22218         PR testsuite/47622
22219         Revert
22220         2011-02-05  Jie Zhang  <jie@codesourcery.com>
22221         PR debug/42631
22222         * web.c (entry_register): Don't clobber the number of the
22223         first uninitialized reference in used[].
22224
22225 2011-02-09  Richard Guenther  <rguenther@suse.de>
22226
22227         PR tree-optimization/47664
22228         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
22229         all edges again.
22230
22231 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
22232
22233         PR target/46481
22234         PR target/47032
22235         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
22236         PROCESSOR_POWER7.
22237         (PROCESSOR_DEFAULT64): Same.
22238         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
22239
22240 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22241
22242         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
22243
22244 2011-02-09  Martin Jambor  <mjambor@suse.cz>
22245
22246         PR middle-end/45505
22247         * tree-sra.c (struct access): New flags grp_scalar_read and
22248         grp_scalar_write.  Changed description of assignment read and write
22249         flags.
22250         (dump_access): Dump new flags, reorder all of them.
22251         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
22252         to detect multiple scalar reads.
22253         (analyze_access_subtree): Use the new scalar read write flags instead
22254         of the old flags.  Adjusted comments.
22255
22256 2011-02-08  DJ Delorie  <dj@redhat.com>
22257
22258         PR target/47548
22259         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
22260         patterns.
22261
22262 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
22263
22264         * config/m68k/uclinux.opt: New.
22265         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
22266
22267 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
22268
22269         * config/cris/elf.opt (sim): New Driver option.
22270
22271 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
22272
22273         * config/xtensa/elf.opt: New.
22274         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
22275
22276 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
22277
22278         * config/vax/elf.opt: New.
22279         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
22280
22281 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
22282
22283         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
22284
22285 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
22286
22287         * config/gnu-user.opt: New.
22288         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
22289         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
22290         *-*-uclinux*): Use gnu-user.opt.
22291
22292 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
22293
22294         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
22295         * config/i386/gnu.h (CPP_SPEC): Likewise.
22296
22297 2011-02-08  Ian Lance Taylor  <iant@google.com>
22298
22299         * common.opt (fcx-limited-range): Add SetByCombined flag.
22300         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
22301         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
22302         (fassociative-math, freciprocal-math): Likewise.
22303         (funsafe-math-optimizations): Likewise.
22304         * opth-gen.awk: Handle SetByCombined.
22305         * optc-gen.awk: Likewise.
22306         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
22307         (set_unsafe_math_optimizations_flags): Likewise.
22308         * doc/options.texi (Option properties): Document SetByCombined.
22309
22310 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
22311
22312         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
22313         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
22314         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
22315         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
22316         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
22317
22318 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
22319
22320         PR tree-optimization/46834
22321         PR tree-optimization/46994
22322         PR tree-optimization/46995
22323         * graphite-sese-to-poly.c (used_outside_reduction): New.
22324         (detect_commutative_reduction): Call used_outside_reduction.
22325         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
22326         translate_scalar_reduction_to_array only when at least one
22327         loop-phi/close-phi tuple has been detected.
22328
22329 2011-02-08  Richard Guenther  <rguenther@suse.de>
22330
22331         PR middle-end/47639
22332         * tree-vect-generic.c (expand_vector_operations_1): Update
22333         stmts here ...
22334         (expand_vector_operations): ... not here.  Cleanup EH info
22335         and the CFG if required.
22336
22337 2011-02-08  Richard Guenther  <rguenther@suse.de>
22338
22339         PR tree-optimization/47641
22340         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
22341         require type compatibility.
22342
22343 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22344
22345         * gimple-low.c (lower_function_body): Don't remove the location of
22346         the return statement here.
22347         (lower_gimple_return): Do it here instead but only if the return
22348         statement is actually used twice.
22349
22350 2011-02-08  Richard Guenther  <rguenther@suse.de>
22351
22352         PR tree-optimization/47632
22353         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
22354         unused up_to_stmt parameter, return whether cfg-cleanup is
22355         necessary, remove EH info properly.
22356         (forward_propagate_into_gimple_cond): Adjust caller.
22357         (forward_propagate_into_cond): Likewise.
22358         (forward_propagate_comparison): Likewise.
22359         (tree_ssa_forward_propagate_single_use_vars): Make
22360         forward_propagate_comparison case similar to the two others.
22361
22362 2011-02-08  Nick Clifton  <nickc@redhat.com>
22363
22364         * config/mn10300/mn10300.opt (mliw): New command line option.
22365         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
22366         (liw_bundling): New automaton.
22367         (liw): New attribute.
22368         (liw_op): New attribute.
22369         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
22370         (movsi_internal): Add LIW attributes.
22371         (andsi3): Likewise.
22372         (iorsi3): Likewise.
22373         (xorsi3): Likewise.
22374         (addsi3): Separate register and immediate alternatives.
22375         Add LIW attributes.
22376         (subsi3): Likewise.
22377         (cmpsi): Likewise.
22378         (aslsi3): Likewise.
22379         (lshrsi3): Likewise.
22380         (ashrsi3): Likewise.
22381         (liw): New pattern.
22382         * config/mn10300/mn10300.c (liw_op_names): New
22383         (mn10300_print_operand): Handle 'W' operand descriptor.
22384         (extract_bundle): New function.
22385         (check_liw_constraints): New function.
22386         (liw_candidate): New function.
22387         (mn10300_bundle_liw): New function.
22388         (mn10300_reorg): New function.
22389         (TARGET_MACHINE_DEPENDENT_REORG): Define.
22390         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
22391         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
22392         __LIW__ or __NO_LIW__.
22393         * doc/invoke.texi: Describe the -mliw command line option.
22394
22395 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22396
22397         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
22398         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
22399         pthread_mutex_unlock): Remove.
22400         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
22401         * config/pa/t-pa64: Likewise.
22402         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
22403         shared libc if not linking against libpthread.
22404         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
22405
22406 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
22407
22408         PR target/47558
22409         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
22410         on 10.6 and later to ensure that we always use the unwinder from
22411         the system.  Only add -no_compact_unwind when tarteting darwin
22412         10.6 or later.
22413
22414 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
22415
22416         PR target/46997
22417         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
22418         (vec_interleave_lowv2sf): Ditto.
22419         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
22420         (vec_extract_oddv2sf): Ditto.
22421
22422 2011-02-07  Mike Stump  <mikestump@comcast.net>
22423
22424         PR target/42333
22425         Add __ieee_divdc3 entry point.
22426         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
22427         entry point.
22428         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
22429         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
22430         * config/darwin.c (darwin_rename_builtins): Add.
22431         * config/darwin-protos.h (darwin_rename_builtins): Add.
22432
22433 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
22434
22435         PR target/47636
22436         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
22437         for the condition.
22438
22439 2011-02-07  Mike Stump  <mikestump@comcast.net>
22440
22441         * config/darwin.opt (mmacosx-version-min): Update default OS version.
22442
22443 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
22444
22445         PR target/47534
22446         * config/avr/libgcc.S (exit): Move .endfunc
22447
22448 2011-02-07  Richard Guenther  <rguenther@suse.de>
22449
22450         PR tree-optimization/47615
22451         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
22452         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
22453         (run_scc_vn): Initialize it.
22454         (visit_reference_op_load): Use it.
22455         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
22456
22457 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22458
22459         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
22460         DImode trapping arithmetic libfuncs.
22461
22462 2011-02-07  Richard Guenther  <rguenther@suse.de>
22463
22464         PR tree-optimization/47621
22465         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
22466         two duplicates ...
22467         (execute_update_addresses_taken): ... here.  Make it more
22468         conservative in what we accept.
22469
22470 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
22471
22472         * config/sparc/freebsd.h (ASM_SPEC): Define.
22473         * config/sparc/vxworks.h (ASM_SPEC): Define.
22474
22475 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
22476
22477         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
22478
22479 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
22480
22481         * doc/invoke.texi: Remove reference to compiler internals from
22482         user documentation.
22483
22484         * reg-notes.def: Remove REG_VALUE_PROFILE.
22485         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
22486
22487 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
22488
22489         PR middle-end/47610
22490         * varasm.c (default_section_type_flags): If decl is NULL,
22491         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
22492
22493 2011-02-05  Jie Zhang  <jie@codesourcery.com>
22494
22495         PR debug/42631
22496         * web.c (entry_register): Don't clobber the number of the
22497         first uninitialized reference in used[].
22498
22499 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
22500
22501         PR tree-optimization/46194
22502         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
22503         (build_classic_dist_vector_1): Do not represent classic distance
22504         vectors when the access functions are variating in different loops.
22505
22506 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
22507
22508         * config/mips/iris6.opt: New.
22509         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
22510
22511 2011-02-04  Richard Henderson  <rth@redhat.com>
22512             Steve Ellcey  <sje@cup.hp.com>
22513
22514         PR target/46997
22515         * config/ia64/predicates.md (mux1_brcst_element): New.
22516         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
22517         * config/ia64/ia64.c (ia64_unpack_assemble): New.
22518         (ia64_unpack_sign): New.
22519         (ia64_expand_unpack): Rewrite using new routines.
22520         (ia64_expand_widen_sum): Ditto.
22521         (ia64_expand_dot_prod_v8qi): Ditto.
22522         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
22523         routines, add endian check.
22524         (pmpy2_even): Rename from pmpy2_r, add endian check.
22525         (pmpy2_odd): Rename from pmpy2_l, add endian check.
22526         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
22527         (vec_widen_smult_hi_v4hi): Ditto.
22528         (vec_widen_umult_lo_v4hi): Ditto.
22529         (vec_widen_umult_hi_v4hi): Ditto.
22530         (mulv2si3): Change endian checks.
22531         (sdot_prodv4hi): Rewrite with new calls.
22532         (udot_prodv4hi): New.
22533         (vec_pack_ssat_v4hi): Add endian check.
22534         (vec_pack_usat_v4hi): Ditto.
22535         (vec_pack_ssat_v2si): Ditto.
22536         (max1_even): Rename from max1_r, add endian check.
22537         (max1_odd): Rename from max1_l, add endian check.
22538         (*mux1_rev): Format change.
22539         (*mux1_mix): Ditto.
22540         (*mux1_shuf): Ditto.
22541         (*mux1_alt): Ditto.
22542         (*mux1_brcst_v8qi): Use new predicate.
22543         (vec_extract_evenv8qi): Remove endian check.
22544         (vec_extract_oddv8qi): Ditto.
22545         (vec_interleave_lowv4hi): Format change.
22546         (vec_interleave_highv4hi): Ditto.
22547         (mix2_even): Rename from mix2_r, add endian check.
22548         (mix2_odd): Rename from mux2_l, add endian check.
22549         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
22550         (vec_extract_evenodd_helper): Format change.
22551         (vec_extract_evenv4hi): Remove endian check.
22552         (vec_extract_oddv4hi): Remove endian check.
22553         (vec_interleave_lowv2si): Format change.
22554         (vec_interleave_highv2si): Format change.
22555         (vec_initv2si): Remove endian check.
22556         (vecinit_v2si): Add endian check.
22557         (reduc_splus_v2sf): Add endian check.
22558         (reduc_smax_v2sf): Ditto.
22559         (reduc_smin_v2sf): Ditto.
22560         (vec_initv2sf): Remove endian check.
22561         (fpack): Add endian check.
22562         (fswap): Add endian check.
22563         (vec_interleave_highv2sf): Add endian check.
22564         (vec_interleave_lowv2sf): Add endian check.
22565         (fmix_lr): Add endian check.
22566         (vec_setv2sf): Format change.
22567         (*vec_extractv2sf_0_be): Use shift to extract operand.
22568         (*vec_extractv2sf_1_be): New.
22569         (vec_pack_trunc_v4hi): Add endian check.
22570         (vec_pack_trunc_v2si): Format change.
22571
22572 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
22573
22574         PR inline-asm/23200
22575         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
22576         do bb, locus and block comparison and disallow loads if it is not set.
22577         (stmt_is_replaceable_p): New function.
22578         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
22579         callers.
22580         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
22581         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
22582         SSA_NAME_DEF_STMT.
22583         * tree-flow.h (stmt_is_replaceable_p): New prototype.
22584
22585 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
22586
22587         * config/rs6000/xilinx.opt: New.
22588         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
22589
22590 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
22591
22592         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
22593
22594 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
22595
22596         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
22597         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
22598         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
22599         secondary_reload_info, xtensa_secondary_reload): Remove.
22600         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
22601         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
22602         (xtensa_preferred_reload_class): Make static. Change return and
22603         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
22604         Use CONST_DOUBLE_P predicate.
22605         (xtensa_preferred_output_reload_class): New function.
22606         (xtensa_secondary_reload): Make static.
22607
22608 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
22609
22610         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
22611         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
22612         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
22613
22614 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
22615
22616         PR middle-end/31490
22617         * output.h (SECTION_RELRO): Define.
22618         (SECTION_MACH_DEP): Adjust.
22619         (get_variable_section): New prototype.
22620         * varpool.c (varpool_finalize_named_section_flags): New function.
22621         (varpool_assemble_pending_decls): Call it.
22622         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
22623         * cgraphunit.c (cgraph_output_in_order): Call
22624         varpool_finalize_named_section_flags.
22625         * varasm.c (get_section): Allow section flags conflicts between
22626         relro and read-only sections if the section hasn't been declared yet.
22627         Set SECTION_OVERRIDE after diagnosing section type conflict.
22628         (get_variable_section): No longer static.
22629         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
22630         readonly sections that need relocations.
22631         (decl_readonly_section_1): New function.
22632         (decl_readonly_section): Use it.
22633
22634         Revert:
22635         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
22636                     Steve Ellcey  <sje@cup.hp.com>
22637
22638         PR middle-end/31490
22639         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
22640         if section attribute used.
22641
22642 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
22643
22644         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
22645         * config/darwin.c (SECTION_NO_ANCHOR): Define.
22646         (darwin_init_sections): Remove assertion.
22647
22648 2011-02-03  Nick Clifton  <nickc@redhat.com>
22649
22650         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
22651         lt and ge.
22652         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
22653         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
22654         instead of "n" and "pz".
22655         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
22656         CC_FLAG_S.
22657
22658 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
22659
22660         PR target/47312
22661         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
22662         fma, expand FMA_EXPR as fma{,f,l} call.
22663
22664         PR lto/47274
22665         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
22666         copy them into a unsigned char variable and pass address of it to
22667         lto_output_data_stream.
22668
22669         PR target/47564
22670         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
22671         around backend_init_target and lang_dependent_init_target calls.
22672         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
22673         (verify_cgraph_node): Don't call set_cfun here.  Use
22674         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
22675         Set error_found for incorrectly represented calls to thunks.
22676
22677 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
22678
22679         PR debug/43092
22680         PR rtl-optimization/43494
22681         * rtl.h (for_each_inc_dec_fn): New type.
22682         (for_each_inc_dec): Declare.
22683         * rtlanal.c (struct for_each_inc_dec_ops): New type.
22684         (for_each_inc_dec_find_inc_dec): New fn.
22685         (for_each_inc_dec_find_mem): New fn.
22686         (for_each_inc_dec): New fn.
22687         * dse.c (struct insn_size): Remove.
22688         (replace_inc_dec, replace_inc_dec_mem): Remove.
22689         (emit_inc_dec_insn_before): New fn.
22690         (check_for_inc_dec): Use it, along with for_each_inc_dec.
22691         (canon_address): Pass mem modes to cselib_lookup.
22692         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
22693         (cselib_lookup_from_insn): Likewise.
22694         (cselib_subst_to_values): Likewise.
22695         * cselib.c (find_slot_memmode): New var.
22696         (cselib_find_slot): New fn.  Use it instead of
22697         htab_find_slot_with_hash everywhere.
22698         (entry_and_rtx_equal_p): Use find_slot_memmode.
22699         (autoinc_split): New fn.
22700         (rtx_equal_for_cselib_p): Rename and implement in terms of...
22701         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
22702         Deal with autoinc.  Special-case recursion into MEMs.
22703         (cselib_hash_rtx): Likewise.
22704         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
22705         address and MEM modes.
22706         (cselib_subst_to_values): Add memmode, pass it on.
22707         Deal with autoinc.
22708         (cselib_lookup): Add memmode argument, pass it on.
22709         (cselib_lookup_from_insn): Add memmode.
22710         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
22711         (struct cselib_record_autoinc_data): New.
22712         (cselib_record_autoinc_cb): New fn.
22713         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
22714         mode to cselib_lookup.  Reset autoinced REGs here instead of...
22715         (cselib_process_insn): ... here.
22716         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
22717         to cselib_lookup.
22718         (add_uses): Likewise, also to cselib_subst_to_values.
22719         (add_stores): Likewise.
22720         * sched-deps.c (add_insn_mem_dependence): Pass mode to
22721         cselib_subst_to_values.
22722         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
22723         * gcse.c (do_local_cprop): Adjusted.
22724         * postreload.c (reload_cse_simplify_set): Adjusted.
22725         (reload_cse_simplify_operands): Adjusted.
22726         * sel-sched-dump (debug_mem_addr_value): Pass mode.
22727
22728 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
22729
22730         PR tree-optimization/45122
22731         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
22732         unsafe assumptions when there's more than one loop exit.
22733
22734 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
22735
22736         PR target/47272
22737         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22738         Document using vector double with the load/store builtins, and
22739         that the load/store builtins always use Altivec instructions.
22740
22741         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
22742         to use altivec memory instructions, even on VSX.
22743         (vector_altivec_store_<mode>): Ditto.
22744
22745         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
22746         function.
22747
22748         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22749         V2DF, V2DI support to load/store overloaded builtins.
22750
22751         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
22752         altivec load/store builtins for V2DF/V2DI types.
22753
22754         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
22755         set avoid indexed addresses on power6 if -maltivec.
22756         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
22757         vector_altivec_load/vector_altivec_store builtins.
22758         (altivec_expand_st_builtin): Ditto.
22759         (altivec_expand_builtin): Add VSX memory builtins.
22760         (rs6000_init_builtins): Add V2DI types to internal types.
22761         (altivec_init_builtins): Add support for V2DF/V2DI altivec
22762         load/store builtins.
22763         (rs6000_address_for_altivec): Insure memory address is appropriate
22764         for Altivec.
22765
22766         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
22767         vec_vsx_ld and vec_vsx_st.
22768         (vsx_store_<mode>): Ditto.
22769
22770         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
22771         variables to hold long long types for VSX vector memory builtins.
22772         (RS6000_BTI_unsigned_long_long): Ditto.
22773         (long_long_integer_type_internal_node): Ditti.
22774         (long_long_unsigned_type_internal_node): Ditti.
22775
22776         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
22777         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
22778         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
22779
22780         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
22781         short cuts.
22782         (vec_vsx_st): Ditto.
22783
22784 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
22785
22786         * config/pa/pa-hpux10.opt: New.
22787         * config/hpux11.opt (pthread): New Driver option.
22788         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
22789         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
22790
22791 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
22792
22793         * config/ia64/vms.opt: New.
22794         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
22795
22796 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
22797
22798         PR target/47580
22799         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
22800         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
22801         generator functions.
22802         (vsx_floatuns<VSi><mode>2): Ditto.
22803         (vsx_fix_trunc<mode><VSi>2): Ditto.
22804         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
22805
22806 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
22807
22808         * config/i386/djgpp.opt (posix): New Driver option.
22809
22810 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
22811
22812         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
22813         Move to the unsupported targets list.
22814
22815 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
22816
22817         PR rtl-optimization/47525
22818         * df-scan.c: Update copyright years.
22819         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
22820         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
22821
22822 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22823
22824         * config/i386/sysv4.h (TARGET_VERSION): Remove.
22825         (SUBTARGET_RETURN_IN_MEMORY): Remove.
22826         (ASM_OUTPUT_ASCII): Remove.
22827         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
22828
22829 2011-02-02  Jeff Law  <law@redhat.com>
22830
22831         PR middle-end/47543
22832         * reload.c (find_reloads_address): Handle reg+d address where both
22833         components are invalid by reloading the entire address.
22834
22835 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
22836             Richard Guenther  <rguenther@suse.de>
22837
22838         PR tree-optimization/40979
22839         PR bootstrap/47044
22840         * passes.c (init_optimization_passes): After LIM call copy_prop
22841         and DCE to clean up.
22842         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
22843
22844 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
22845
22846         PR tree-optimization/47576
22847         PR tree-optimization/47555
22848         * doc/invoke.texi (scev-max-expr-complexity): Documented.
22849         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
22850         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
22851         * tree-scalar-evolution.c (follow_ssa_edge): Use
22852         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
22853
22854 2011-02-02  Richard Guenther  <rguenther@suse.de>
22855
22856         PR tree-optimization/47566
22857         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
22858
22859 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
22860
22861         PR debug/47106
22862         PR debug/47402
22863         * tree-inline.c (declare_return_variable): Remove unused caller
22864         variable.
22865
22866         PR debug/47106
22867         PR debug/47402
22868         * tree-flow-inline.h (clear_is_used, is_used_p): New.
22869         * cfgexpand.c (account_used_vars_for_block): Use them.
22870         * tree-nrv.c (tree_nrv): Likewise.
22871         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
22872         (dump_scope_block): Likewise.
22873         (remove_unused_locals): Likewise.
22874
22875         PR debug/47106
22876         PR debug/47402
22877         * tree-inline.c (declare_return_variable): Add result decl to
22878         local decls only once.
22879         * gimple-low.c (record_vars_into): Mark newly-created variables
22880         as referenced.
22881
22882 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
22883
22884         PR debug/47498
22885         PR debug/47501
22886         PR debug/45136
22887         PR debug/45130
22888         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
22889         debug insns.
22890         (no_real_insns_p, schedule_block, set_priorities): Drop special
22891         treatment of boundary debug insns.
22892         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
22893         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
22894         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
22895         (BOUNDARY_DEBUG_INSN_P): Likewise.
22896         (SCHEDULE_DEBUG_INSN_P): Likewise.
22897         * sched-rgn.c (init_ready_list): Drop special treatment of
22898         boundary debug insns.
22899         * final.c (rest_of_clean_state): Clear notes' BB.
22900
22901 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
22902
22903         * config/openbsd.opt (assert=): New Driver option.
22904
22905 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
22906
22907         * config/i386/nto.opt: New.
22908         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
22909
22910 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
22911
22912         * config/i386/netware.opt: New.
22913         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
22914
22915 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
22916
22917         * config/interix.opt (posix): New Driver option.
22918
22919 2011-02-01  DJ Delorie  <dj@redhat.com>
22920
22921         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
22922
22923         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
22924         class for A0/A1.
22925
22926 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
22927
22928         PR tree-optimization/47561
22929         * toplev.c (process_options): Print the Graphite flags.  Add
22930         flag_loop_flatten to the list of options requiring Graphite.
22931
22932 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
22933
22934         * config/i386/cygming.opt (posix): New Driver option.
22935
22936 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
22937
22938         * config/arm/vxworks.opt: New.
22939         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
22940
22941 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
22942
22943         * config/alpha/elf.opt: New.
22944         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
22945         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
22946
22947 2011-02-01  Richard Guenther  <rguenther@suse.de>
22948
22949         PR tree-optimization/47559
22950         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
22951         store-motion on references that can throw.
22952
22953 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
22954
22955         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
22956         * tree-pass.h (TDF_CSELIB): New macro.
22957         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
22958         cselib_lookup): Check for it rather than for TDF_DETAILS.
22959
22960 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
22961
22962         PR driver/47547
22963         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
22964         is HOST_BIT_BUCKET.
22965
22966         * opts.c (finish_options): Don't add x_aux_base_name if it is
22967         HOST_BIT_BUCKET.
22968
22969 2011-02-01  Richard Guenther  <rguenther@suse.de>
22970
22971         PR tree-optimization/47555
22972         Revert
22973         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
22974
22975         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
22976
22977 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
22978
22979         PR gcc/46692
22980         * config/lm32/t-lm32: Add multilib for all CPU options.
22981
22982 2011-02-01  Richard Guenther  <rguenther@suse.de>
22983
22984         PR tree-optimization/47541
22985         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
22986         sure to have a field at offset zero.
22987
22988 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
22989
22990         * config/arc/arc.opt (EB, EL): New Driver options.
22991
22992 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
22993
22994         * config/alpha/osf5.opt: New.
22995         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
22996
22997 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
22998
22999         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
23000
23001 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
23002
23003         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
23004         -floop-interchange.
23005         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
23006         is an alias of -floop-interchange and that it requires the
23007         Graphite infrastructure.
23008         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
23009         flag_loop_interchange based on the value of flag_tree_loop_linear.
23010
23011 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
23012             Richard Guenther  <rguenther@suse.de>
23013
23014         PR tree-optimization/47538
23015         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
23016         type instead of r1type, except for comparisons.  For right
23017         shifts and comparisons punt if there are mismatches in
23018         sizetype vs. non-sizetype types.
23019
23020 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23021
23022         * doc/sourcebuild.texi (Effective-Target Keywords): Document
23023         avx_runtime.
23024
23025 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23026
23027         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
23028         version number.
23029         * configure: Regenerate.
23030
23031 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23032
23033         * configure.ac (gcc_cv_ld_static_option): Define.
23034         (gcc_cv_ld_dynamic_option): Define.
23035         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
23036         instead.
23037         (HAVE_LD_STATIC_DYNAMIC): Update message.
23038         (LD_STATIC_OPTION): Define.
23039         (LD_DYNAMIC_OPTION): Define.
23040         * configure: Regenerate.
23041         * config.in: Regenerate.
23042         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
23043         HAVE_LD_STATIC_DYNAMIC]: Use them.
23044
23045 2011-01-31  Nick Clifton  <nickc@redhat.com>
23046
23047         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
23048         registers inside interrupt handlers if the handler is not a leaf
23049         function.
23050
23051 2011-01-31  Nick Clifton  <nickc@redhat.com>
23052
23053         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
23054         reg_renumber returning an INVALID_REGNUM.
23055
23056 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
23057
23058         PR libgcj/44341
23059         * doc/install.texi: Document host options discarded when cross
23060         configuring target libraries.
23061
23062 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
23063
23064         Reverted:
23065         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
23066         PR debug/45136
23067         PR debug/45130
23068         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
23069         debug insns.
23070         (no_real_insns_p, schedule_block, set_priorities): Drop special
23071         treatment of boundary debug insns.
23072         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
23073         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
23074         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
23075         (BOUNDARY_DEBUG_INSN_P): Likewise.
23076         (SCHEDULE_DEBUG_INSN_P): Likewise.
23077         * sched-rgn.c (init_ready_list): Drop special treatment of
23078         boundary debug insns.
23079         * final.c (rest_of_clean-state): Clear notes' BB.
23080
23081 2011-01-31  Alan Modra  <amodra@gmail.com>
23082
23083         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
23084         toc relative expressions as we do in print_operand_address.
23085
23086 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
23087
23088         * doc/extend.texi: Follow spelling conventions.
23089         * doc/invoke.texi: Fix a typo.
23090
23091 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
23092
23093         * config/hpux11.opt: New.
23094         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
23095         ia64*-*-hpux*): Use hpux11.opt.
23096
23097 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
23098
23099         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
23100         to tmake_file.
23101
23102 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
23103
23104         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
23105         support sites.
23106
23107 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
23108
23109         * doc/install.texi (Binaries): Remove outdated reference for
23110         Motorola 68HC11/68HC12 downloads.
23111
23112 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
23113
23114         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
23115         Drepper's paper.
23116
23117 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
23118
23119         PR bootstrap/47147
23120         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
23121         used by NetBSD.
23122
23123 2011-01-28  Ahmad Sharif  <asharif@google.com>
23124
23125         * value-prof.c (check_counter): Corrected error message.
23126
23127 2011-01-29  Jie Zhang  <jie@codesourcery.com>
23128
23129         * config/arm/arm.c (arm_legitimize_reload_address): New.
23130         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
23131         arm_legitimize_reload_address.
23132         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
23133
23134 2011-01-28  Ian Lance Taylor  <iant@google.com>
23135
23136         * godump.c (go_define): Ignore macros whose definitions include
23137         two adjacent operands.
23138
23139 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
23140
23141         PR target/42894
23142         * varasm.c (force_const_mem): Store copy of x in desc->constant
23143         instead of x itself.
23144         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
23145         itself into REG_EQUAL note.
23146
23147 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
23148
23149         * config/freebsd.opt (posix, rdynamic): New Driver options.
23150
23151 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23152
23153         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
23154         -Bstatic/-Bdynamic.
23155         * configure: Regenerate.
23156
23157 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
23158
23159         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
23160         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
23161
23162 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
23163
23164         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
23165         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
23166         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
23167         (s390_preferred_reload_class): Make static. Change return and
23168         'rclass' argument type to reg_class_t.
23169
23170 2011-01-27  Jan Hubicka  <jh@suse.cz>
23171
23172         PR middle-end/46949
23173         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
23174         (process_function_and_variable_attributes): Check defined weakrefs.
23175
23176 2011-01-27  Martin Jambor  <mjambor@suse.cz>
23177
23178         PR tree-optimization/47228
23179         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
23180         build_ref_for_offset.
23181
23182 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23183
23184         * config/spu/spu-elf.h (ASM_SPEC): Remove.
23185
23186 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
23187
23188         PR rtl-optimization/46856
23189         * postreload.c (reload_combine_recognize_const_pattern): Do not
23190         separate cc0 setter and user on cc0 targets.
23191
23192 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
23193
23194         PR c/43082
23195         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
23196         passed a VOID_TYPE expression, immediately emit an error and
23197         return error_mark_node.
23198
23199 2011-01-26  Jeff Law  <law@redhat.com>
23200
23201         PR rtl-optimization/47464
23202         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
23203         rather than may_trap_p as needed.
23204
23205 2011-01-26  DJ Delorie  <dj@redhat.com>
23206
23207         PR rtl-optimization/46878
23208         * combine.c (insn_a_feeds_b): Check for the implicit cc0
23209         setter/user dependency as well.
23210
23211 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
23212
23213         PR rtl-optimization/44469
23214         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
23215         after removing trivially dead basic blocks.
23216
23217 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
23218
23219         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
23220         * config/frv/frv.h (LINK_SPEC): Likewise.
23221         * config/i386/netware.h (LINK_SPEC): Likewise.
23222         * config/m68k/linux.h (ASM_SPEC): Likewise.
23223         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
23224         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
23225         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
23226         * config/sparc/linux.h (ASM_SPEC): Likewise.
23227         * config/sparc/linux64.h (ASM_SPEC): Likewise.
23228         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
23229
23230 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
23231
23232         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
23233         * config/frv/frv.h (ASM_SPEC): Likewise.
23234         * config/m68k/linux.h (ASM_SPEC): Likewise.
23235         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
23236         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
23237         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
23238         * config/sparc/linux.h (ASM_SPEC): Likewise.
23239         * config/sparc/linux64.h (ASM_SPEC): Likewise.
23240         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
23241
23242 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
23243
23244         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
23245         * config/frv/frv.h (LINK_SPEC): Likewise.
23246         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
23247
23248 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
23249
23250         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
23251         * config/frv/frv.h (ASM_SPEC): Likewise.
23252         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
23253         * config/m68k/linux.h (ASM_SPEC): Likewise.
23254         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
23255         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
23256         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
23257         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
23258         * config/sparc/linux.h (ASM_SPEC): Likewise.
23259         * config/sparc/linux64.h (ASM_SPEC): Likewise.
23260         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
23261         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
23262
23263 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
23264
23265         PR target/46997
23266         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
23267         (*mux2): Ditto.
23268         (vec_extract_evenodd_help): Ditto.
23269         (vec_extract_evenv4hi): Ditto.
23270         (vec_extract_oddv4hi): Ditto.
23271         (vec_interleave_lowv2si): Ditto.
23272         (vec_interleave_highv2si): Ditto.
23273         (vec_extract_evenv2si): Ditto.
23274         (vec_extract_oddv2si: Ditto.
23275         (vec_pack_trunc_v2si): Ditto.
23276
23277 2011-01-22  Jan Hubicka  <jh@suse.cz>
23278
23279         PR target/47237
23280         * cgraph.h (cgraph_local_info): New field can_change_signature.
23281         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
23282         signature can change.
23283         (ipcp_estimate_growth): Call sequence simplify only if calle signature
23284         can change.
23285         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
23286         (cgraph_function_versioning): We can not change signature of functions
23287         that don't allow that.
23288         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
23289         (lto_input_node): Likewise.
23290         * ipa-inline.c (compute_inline_parameters): Compute
23291         local.can_change_signature.
23292         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
23293         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
23294         functions that can not change signature.
23295         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
23296         init_cumulative_args): Do not use local calling conventions
23297         for functions that can not change signature.
23298
23299 2011-01-22  Jan Hubicka  <jh@suse.cz>
23300
23301         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
23302
23303 2011-01-26  Richard Guenther  <rguenther@suse.de>
23304
23305         PR tree-optimization/47190
23306         * cgraphunit.c (process_common_attributes): New function.
23307         (process_function_and_variable_attributes): Use it.
23308
23309 2011-01-26  Richard Guenther  <rguenther@suse.de>
23310
23311         PR lto/47423
23312         * cgraphbuild.c (record_eh_tables): Record reference to personality
23313         function.
23314
23315 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
23316
23317         PR debug/45454
23318         * sel-sched.c (moveup_expr): Don't let debug insns prevent
23319         non-debug insns from moving up.
23320
23321 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
23322
23323         PR target/40125
23324         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
23325         t-dlldir{,-x} fragment for build and add it to tmake_file.
23326         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
23327         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
23328         * config/i386/t-dlldir: New file.
23329         (SHLIB_DLLDIR): Define.
23330         * config/i386/t-dlldir-x: New file.
23331         (SHLIB_DLLDIR): Define.
23332         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
23333         (SHLIB_INSTALL): Use it.
23334
23335 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
23336
23337         PR target/47246
23338         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
23339         lower bound of the allowed Thumb-2 coprocessor load/store
23340         index range to -256. Add explaining comment.
23341
23342 2011-01-25  Ian Lance Taylor  <iant@google.com>
23343
23344         * godump.c (go_define): Improve lexing of macro expansion to only
23345         accept expressions which match Go spec.
23346
23347 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
23348
23349         PR c++/43601
23350         * tree.c (handle_dll_attribute): Handle it.
23351         * doc/extend.texi (@item dllexport): Mention it.
23352         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
23353
23354 2011-01-25  Ian Lance Taylor  <iant@google.com>
23355
23356         PR tree-optimization/26854
23357         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
23358         (decl_jump_unsafe): Move higher in file, with no other change.
23359         (bind): Set has_jump_unsafe_decl if appropriate.
23360         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
23361         (check_earlier_gotos): Likewise.
23362         (c_check_switch_jump_warnings): Likewise.
23363
23364 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
23365
23366         * doc/invoke.texi (Warning Options): Add missing hyphen.
23367         (-fprofile-dir): Minor grammatical fixes.
23368         (-fbranch-probabilities): Likewise.
23369
23370 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
23371
23372         PR debug/45136
23373         PR debug/45130
23374         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
23375         debug insns.
23376         (no_real_insns_p, schedule_block, set_priorities): Drop special
23377         treatment of boundary debug insns.
23378         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
23379         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
23380         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
23381         (BOUNDARY_DEBUG_INSN_P): Likewise.
23382         (SCHEDULE_DEBUG_INSN_P): Likewise.
23383         * sched-rgn.c (init_ready_list): Drop special treatment of
23384         boundary debug insns.
23385         * final.c (rest_of_clean-state): Clear notes' BB.
23386
23387 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23388
23389         * Makefile.in (LAMBDA_H): Removed.
23390         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
23391         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
23392         lambda-trans.o, and tree-loop-linear.o.
23393         (lto-symtab.o): Remove dependence on LAMBDA_H.
23394         (tree-loop-linear.o): Remove rule.
23395         (lambda-mat.o): Same.
23396         (lambda-trans.o): Same.
23397         (lambda-code.o): Same.
23398         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
23399         (tree-vect-slp.o): Same.
23400         * hwint.h (gcd): Moved here.
23401         (least_common_multiple): Same.
23402         * lambda-code.c: Removed.
23403         * lambda-mat.c: Removed.
23404         * lambda-trans.c: Removed.
23405         * lambda.h: Removed.
23406         * tree-loop-linear.c: Removed.
23407         * lto-symtab.c: Do not include lambda.h.
23408         * omega.c (gcd): Removed.
23409         * passes.c (init_optimization_passes): Remove pass_linear_transform.
23410         * tree-data-ref.c (print_lambda_vector): Moved here.
23411         (lambda_vector_copy): Same.
23412         (lambda_matrix_copy): Same.
23413         (lambda_matrix_id): Same.
23414         (lambda_vector_first_nz): Same.
23415         (lambda_matrix_row_add): Same.
23416         (lambda_matrix_row_exchange): Same.
23417         (lambda_vector_mult_const): Same.
23418         (lambda_vector_negate): Same.
23419         (lambda_matrix_row_negate): Same.
23420         (lambda_vector_equal): Same.
23421         (lambda_matrix_right_hermite): Same.
23422         * tree-data-ref.h: Do not include lambda.h.
23423         (lambda_vector): Moved here.
23424         (lambda_matrix): Same.
23425         (dependence_level): Same.
23426         (lambda_transform_legal_p): Removed declaration.
23427         (lambda_collect_parameters): Same.
23428         (lambda_compute_access_matrices): Same.
23429         (lambda_vector_gcd): Same.
23430         (lambda_vector_new): Same.
23431         (lambda_vector_clear): Same.
23432         (lambda_vector_lexico_pos): Same.
23433         (lambda_vector_zerop): Same.
23434         (lambda_matrix_new): Same.
23435         * tree-flow.h (least_common_multiple): Removed declaration.
23436         * tree-parloops.c (lambda_trans_matrix): Moved here.
23437         (LTM_MATRIX): Same.
23438         (LTM_ROWSIZE): Same.
23439         (LTM_COLSIZE): Same.
23440         (LTM_DENOMINATOR): Same.
23441         (lambda_trans_matrix_new): Same.
23442         (lambda_matrix_vector_mult): Same.
23443         (lambda_transform_legal_p): Same.
23444         * tree-pass.h (pass_linear_transform): Removed declaration.
23445         * tree-ssa-loop.c (tree_linear_transform): Removed.
23446         (gate_tree_linear_transform): Removed.
23447         (pass_linear_transform): Removed.
23448         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
23449         flag_loop_interchange.
23450
23451 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
23452
23453         PR tree-optimization/47265
23454         PR tree-optimization/47443
23455         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
23456         if name still has some uses.
23457
23458 2011-01-25  Martin Jambor  <mjambor@suse.cz>
23459
23460         PR tree-optimization/47382
23461         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
23462         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
23463
23464 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
23465
23466         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
23467         sjlj_except_unwind_info.
23468
23469 2011-01-25  Richard Guenther  <rguenther@suse.de>
23470
23471         PR tree-optimization/47426
23472         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
23473         visible functions results escape.
23474
23475 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
23476
23477         PR target/45701
23478         * config/arm/arm.c (any_sibcall_uses_r3): New function.
23479         (arm_get_frame_offsets): Use it.
23480
23481 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23482             Jakub Jelinek  <jakub@redhat.com>
23483
23484         PR tree-optimization/47271
23485         * tree-if-conv.c (bb_postdominates_preds): New.
23486         (if_convertible_bb_p): Call bb_postdominates_preds.
23487         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
23488         (predicate_scalar_phi): Call bb_postdominates_preds.
23489
23490 2011-01-25  Nick Clifton  <nickc@redhat.com>
23491
23492         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
23493         * config/rx/rx.c (rx_function_value): Likewise.
23494         (rx_promote_function_mode): Likewise.
23495         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
23496         in order to make it legitimate.
23497         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
23498         make sure that the first operand is the same as the result register.
23499         (addsi3_unspec): Delete.
23500         (subdi3): Do not accept immediate operands.
23501         (subdi3_internal): Likewise.
23502
23503 2011-01-25  Jeff Law  <law@redhat.com>
23504
23505         PR rtl-optimization/37273
23506         * ira-costs.c (scan_one_insn): Detect constants living in memory and
23507         handle them like argument loads from stack slots.  Do not double
23508         count memory for memory constants and argument loads from stack slots.
23509
23510 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
23511
23512         PR tree-optimization/47427
23513         PR tree-optimization/47428
23514         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
23515         coalesce if the new root var would be TREE_READONLY.
23516
23517 2011-01-25  Richard Guenther  <rguenther@suse.de>
23518
23519         PR middle-end/47414
23520         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
23521         correct type for TBAA.
23522
23523 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23524
23525         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
23526         (close_phi_written_to_memory): Call for_each_index with
23527         dr_indices_valid_in_loop.
23528
23529 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23530
23531         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
23532         when it is initialized.
23533
23534 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23535
23536         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
23537         call to graphite_find_data_references_in_stmt.
23538         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
23539         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
23540         call to graphite_find_data_references_in_stmt.
23541         (analyze_drs_in_stmts): Same.
23542         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
23543         in which the scalar analysis of indices is performed.
23544         (create_data_ref): Same.  Update call to dr_analyze_indices.
23545         (find_data_references_in_stmt): Update call to create_data_ref.
23546         (graphite_find_data_references_in_stmt): Same.
23547         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
23548         declaration.
23549         (create_data_ref): Same.
23550         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
23551         call to create_data_ref.
23552
23553 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23554
23555         * graphite-sese-to-poly.c (build_poly_scop): Move
23556         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
23557
23558 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23559
23560         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
23561         VAR_DECL, PARM_DECL, and RESULT_DECL.
23562
23563 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23564
23565         * graphite-dependences.c (reduction_dr_1): Allow several reductions
23566         in a reduction PBB.
23567         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
23568         that have already been marked as PBB_IS_REDUCTION.
23569
23570 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23571
23572         * graphite-scop-detection.c (same_close_phi_node): New.
23573         (remove_duplicate_close_phi): New.
23574         (make_close_phi_nodes_unique): New.
23575         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
23576
23577 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23578
23579         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
23580         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
23581         of both data references to be the same.
23582
23583 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23584
23585         * graphite-dependences.c (build_lexicographical_constraint): Remove
23586         the gdim parameter.
23587         (build_lexicographical_constraint): Adjust call to
23588         ppl_powerset_is_empty.
23589         (dependence_polyhedron): Same.
23590         (graphite_legal_transform_dr): Same.
23591         (graphite_carried_dependence_level_k): Same.
23592         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
23593         parameter.
23594         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
23595
23596 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23597
23598         * graphite-sese-to-poly.c
23599         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
23600         (close_phi_written_to_memory): New.
23601         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
23602         and unshare_expr.
23603
23604 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23605
23606         * doc/install.texi: Update the expected version number of PPL to 0.11.
23607         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
23608         #if PPL_VERSION_MINOR < 11.
23609
23610 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23611
23612         * graphite-dependences.c: Include graphite-cloog-util.h.
23613         (new_poly_ddr): Inlined into dependence_polyhedron.
23614         (free_poly_ddr): Moved close by new_poly_ddr.
23615         (dependence_polyhedron_1): Renamed dependence_polyhedron.
23616         Early return NULL when ppl_powerset_is_empty returns true.
23617         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
23618         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
23619         (graphite_legal_transform_dr): Call new_poly_ddr.
23620         (graphite_carried_dependence_level_k): Same.
23621         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
23622         (dot_transformed_deps_stmt_1): Removed.
23623         (dot_deps_stmt_1): Call dot_deps_stmt_2.
23624         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
23625         (dot_deps_1): Call dot_deps_2.
23626         * Makefile.in (graphite-dependences.o): Add missing dependence on
23627         graphite-cloog-util.h.
23628
23629 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23630
23631         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
23632         (build_lexicographical_constraint): Same.
23633         (dependence_polyhedron_1): Same.
23634         (graphite_legal_transform_dr): Same.
23635         (graphite_carried_dependence_level_k): Same.
23636         * graphite-ppl.c (ppl_powerset_is_empty): New.
23637         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
23638         * tree-data-ref.c (dump_data_reference): Print the basic block index.
23639
23640 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23641
23642         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
23643         the "a followed by b" relation and document it.
23644
23645 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23646
23647         * graphite-dependences.c (build_lexicographical_constraint): Stop the
23648         iteration when the bag of constraints is empty.
23649
23650 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23651
23652         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
23653
23654 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23655
23656         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
23657         nest and two loop depths as parameters.
23658         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
23659         lst_perfect_nestify.
23660
23661 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23662
23663         * graphite-dependences.c (print_pddr): Call
23664         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
23665
23666 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23667
23668         * graphite-ppl.c (debug_gmp_value): New.
23669         * graphite-ppl.h (debug_gmp_value): Declared.
23670
23671 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
23672
23673         * doc/install.texi: Document availability of cloog-0.16.
23674
23675 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
23676
23677         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
23678         invalid postdominance info.
23679
23680 2011-01-24  Jan Hubicka  <jh@suse.cz>
23681
23682         PR c/21659
23683         * doc/extend.texi (weak pragma): Drop claim that it must
23684         appear before definition.
23685         * varasm.c (merge_weak, declare_weak): Only sanity check
23686         that DECL is not output at a time it is declared weak.
23687
23688 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
23689
23690         * machmode.def: Fixed comments.
23691
23692 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
23693
23694         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
23695
23696 2011-01-24  Paul Koning  <ni1d@arrl.net>
23697
23698         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
23699         WORDS_BIG_ENDIAN.
23700
23701 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
23702
23703         PR target/46519
23704         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
23705         (block_info): Add scanned and prev.
23706         (move_or_delete_vzeroupper_2): Return if the basic block
23707         has been scanned and the upper 128bit state is unchanged
23708         from the last scan.
23709         (move_or_delete_vzeroupper_1): Return true if the exit
23710         state is changed.
23711         (move_or_delete_vzeroupper): Visit basic blocks using the
23712         work-list based algorithm based on vt_find_locations in
23713         var-tracking.c.
23714
23715         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
23716
23717 2011-01-24  Nick Clifton  <nickc@redhat.com>
23718
23719         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
23720         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
23721         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
23722         then define __v850e1__.
23723         * doc/invoke.texi: Document -mv850es.
23724
23725 2011-01-24  Richard Henderson  <rth@redhat.com>
23726
23727         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
23728         compound unordered comparisons.
23729         * config/rx/rx.c (rx_split_fp_compare): Remove.
23730         * config/rx/rx-protos.h: Update.
23731         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
23732         (cbranchsf4): Don't call rx_split_fp_compare.
23733         (*cbranchsf4): Use rx_split_cbranch.
23734         (*cmpsf): Don't accept "i" constraint.
23735         (*conditional_branch): Only valid after reload.
23736         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
23737
23738 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
23739
23740         PR target/47385
23741         * config/rs6000/altivec.md (vector constant splitters): Add
23742         support for creating vector single precision constants if -mvsx is
23743         used and we would create the constant using Altivec primitives.
23744
23745 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
23746             Richard Sandiford  <rdsandiford@googlemail.com>
23747
23748         PR rtl-optimization/47166
23749         * reload1.c (emit_reload_insns): Disable the spill_reg_store
23750         mechanism for PRE_MODIFY and POST_MODIFY.
23751         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
23752         reloadreg.
23753
23754 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
23755
23756         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
23757
23758 2011-01-22  Jan Hubicka  <jh@suse.cz>
23759
23760         PR lto/47333
23761         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
23762
23763 2011-01-22  Jan Hubicka  <jh@suse.cz>
23764
23765         PR tree-optimization/43884
23766         PR lto/44334
23767         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
23768         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
23769
23770 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
23771
23772         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
23773         * config/s390/s390.c (s390_register_move_cost,
23774         s390_memory_move_cost): New.
23775         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
23776
23777 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23778
23779         PR middle-end/47401
23780         * except.c (sjlj_assign_call_site_values): Move setting the
23781         crtl->uses_eh_lsda flag to ...
23782         (sjlj_mark_call_sites): ... here.
23783         (sjlj_emit_function_enter): Support NULL dispatch label.
23784         (sjlj_build_landing_pads): In a function with no landing pads
23785         that still has must-not-throw regions, generate code to register
23786         a personality function with empty LSDA.
23787
23788 2011-01-21  Richard Henderson  <rth@redhat.com>
23789
23790         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
23791
23792         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
23793
23794         * compare-elim.c: New file.
23795         * Makefile.in (OBJS-common): Add it.
23796         (compare-elim.o): New.
23797         * common.opt (fcompare-elim): New.
23798         * opts.c (default_options_table): Add OPT_fcompare_elim.
23799         * tree-pass.h (pass_compare_elim_after_reload): New.
23800         * passes.c (init_optimization_passes): Add it.
23801         * recog.h: Protect against re-inclusion.
23802         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
23803         * doc/invoke.texi (-fcompare-elim): Document it.
23804         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
23805         * doc/tm.texi: Rebuild.
23806
23807 2011-01-22  Nick Clifton  <nickc@redhat.com>
23808
23809         * config/rx/rx.md (cstoresf4): Pass comparison operator to
23810         rx_split_fp_compare.
23811
23812 2011-01-22  Nick Clifton  <nickc@redhat.com>
23813
23814         * config/rx/rx.md (UNSPEC_CONST): New.
23815         (deallocate_and_return): Wrap the amount popped off the stack in
23816         an UNSPEC_CONST in order to stop it being rejected by
23817         -mmax-constant-size.
23818         (pop_and_return): Add a "(return)" rtx.
23819         (call): Drop the immediate operand.
23820         (call_internal): Likewise.
23821         (call_value): Likewise.
23822         (call_value_internal): Likewise.
23823         (sibcall_internal): Likewise.
23824         (sibcall_value_internal): Likewise.
23825         (sibcall): Likewise.  Generate an explicit call using
23826         sibcall_internal.
23827         (sibcall_value): Likewise.
23828         (mov<>): FAIL if a constant operand is not legitimate.
23829         (addsi3_unpsec): New pattern.
23830
23831         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
23832         (ok_for_max_constant): New function.
23833         (gen_safe_add): New function.
23834         (rx_expand_prologue): Use gen_safe_add.
23835         (rx_expand_epilogue): Likewise.
23836         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
23837         UNSPEC CONSTs.
23838
23839 2011-01-21  Jeff Law  <law@redhat.com>
23840
23841         PR tree-optimization/47053
23842         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
23843         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
23844         statements are deleted.
23845         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
23846         is nonempty, then purge dead edges and cleanup the CFG.
23847
23848 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
23849
23850         PR debug/47402
23851         Temporarily revert:
23852         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
23853         PR debug/47106
23854         * tree-dfa.c (create_var_ann): Mark variable as used.
23855
23856 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
23857
23858         PR middle-end/45566
23859         * except.c (convert_to_eh_region_ranges): Emit queued no-region
23860         notes from other section in hot/cold partitioning even if
23861         last_action is -3.  Increment call_site_base.
23862
23863         PR rtl-optimization/47366
23864         * fwprop.c (forward_propagate_into): Return bool.  If
23865         any changes are made, -fnon-call-exceptions is used and
23866         REG_EH_REGION note is present, call purge_dead_edges
23867         and return true if it purged anything.
23868         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
23869         any EH edges were purged.
23870
23871 2011-01-21  Jeff Law  <law@redhat.com>
23872
23873         PR rtl-optimization/41619
23874         * caller-save.c (setup_save_areas): Break out code to determine
23875         which hard regs are live across calls by examining the reload chains
23876         so that it is always used.
23877         Eliminate code which checked REG_N_CALLS_CROSSED.
23878
23879 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
23880
23881         PR tree-optimization/47355
23882         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
23883         NOP has non-debug uses beyond PHIs in new_bb.
23884
23885 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
23886
23887         PR debug/47106
23888         * cfgexpand.c (account_used_vars_for_block): Only account vars
23889         that are annotated as used.
23890         (estimated_stack_frame_size): Don't set TREE_USED.
23891         * tree-dfa.c (create_var_ann): Mark variable as used.
23892
23893 2011-01-21  Richard Guenther  <rguenther@suse.de>
23894
23895         PR middle-end/47395
23896         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
23897
23898 2011-01-21  Richard Guenther  <rguenther@suse.de>
23899
23900         PR tree-optimization/47365
23901         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
23902         (vn_reference_lookup_pieces): Adjust.
23903         (vn_reference_lookup): Likewise.
23904         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
23905         (vn_reference_lookup_3): Only look through kills if in
23906         VN_WALKREWRITE mode.
23907         (vn_reference_lookup_pieces): Adjust.
23908         (vn_reference_lookup): Likewise.
23909         (visit_reference_op_load): Likewise.
23910         (visit_reference_op_store): Likewise.
23911         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
23912         (compute_avail): Likewise.
23913         (eliminate): Likewise.
23914
23915 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
23916
23917         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
23918         DECL_IGNORED_P non-reg vars if they are used.
23919
23920         PR tree-optimization/47391
23921         * varpool.c (const_value_known_p): Return false if
23922         decl is volatile.
23923
23924 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
23925
23926         PR bootstrap/47215
23927         * config/i386/i386.c (ix86_local_alignment): Handle
23928         case for va_list_type_node is nil.
23929         (ix86_canonical_va_list_type): Likewise.
23930
23931 2011-01-21  Alan Modra  <amodra@gmail.com>
23932
23933         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
23934         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
23935
23936 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23937
23938         * config/arm/arm.md (define_attr type): Rename f_load
23939         and f_store to f_fpa_load and f_fpa_store. Update.
23940         (write_conflict): Deal with rename fallout.
23941         (*push_fp_multi): Likewise.
23942         * config/arm/fpa.md (f_load): Use f_fpa_load.
23943         (f_store): Use f_fpa_store.
23944         (*movsf_fpa): Likewise.
23945         (*movdf_fpa): Likewise.
23946         (*movxf_fpa): Likewise.
23947         (*thumb2_movsf_fpa): Likewise.
23948         (*thumb2_movdf_fpa): Likewise.
23949         (*thumb2_movxf_fpa): Likewise.
23950         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
23951         f_loadd and f_stored.
23952         (*thumb2_movdi_vfp): Likewise.
23953         (*thumb2_movsf_vfp): Fix attribute to f_loads.
23954         (*thumb2_movsi_vfp): Likewise.
23955         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
23956         Use f_loads instead of f_load.
23957         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
23958
23959 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
23960
23961         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
23962         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
23963         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
23964         (xtensa_mode_dependent_address_p): New function.
23965         (constantpool_address_p): Make static. Change return type to bool.
23966         Change argument type to const_rtx. Use CONST_INT_P predicate.
23967
23968 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
23969
23970         PR debug/46583
23971         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
23972
23973 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
23974
23975         PR debug/47283
23976         * cfgexpand.c (expand_debug_expr): Instead of generating
23977         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
23978         etc. handling.
23979
23980 2011-01-20  Richard Guenther  <rguenther@suse.de>
23981
23982         PR middle-end/47370
23983         * tree-inline.c (remap_gimple_op_r): Recurse manually for
23984         the pointer operand of MEM_REFs.
23985
23986 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
23987
23988         PR tree-optimization/46130
23989         * ipa-split.c (consider_split): If return_bb contains non-virtual
23990         PHIs other than for retval or if split_function would not adjust it,
23991         refuse to split.
23992
23993 2011-01-20  Richard Guenther  <rguenther@suse.de>
23994
23995         PR tree-optimization/47167
23996         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
23997         Revert previous change, only avoid enumeral type changes.
23998
23999 2011-01-19  Mike Stump  <mikestump@comcast.net>
24000
24001         * doc/tm.texi.in (BRANCH_COST): Englishify.
24002         * doc/tm.texi (BRANCH_COST): Likewise.
24003
24004 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
24005
24006         PR c++/47291
24007         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
24008         (gen_scheduled_generic_parms_dies): New functions.
24009         (gen_struct_or_union_type_die): Schedule template parameters DIEs
24010         generation for the end of CU compilation.
24011         (dwarf2out_finish): Generate template parameters DIEs here.
24012
24013 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
24014
24015         PR debug/46240
24016         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
24017         debug bind stmt on merge edges.
24018
24019 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
24020
24021         PR debug/47079
24022         PR debug/46724
24023         * function.c (instantiate_expr): Instantiate incoming rtl of
24024         implicit arguments, and recurse on VALUE_EXPRs.
24025         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
24026         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
24027
24028 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
24029
24030         * c-parser.c (c_parser_for_statement): Initialize
24031         collection_expression.
24032
24033 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
24034
24035         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
24036
24037 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
24038
24039         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
24040         (LINK_SHLIB_SPEC): Don't use %(link_path).
24041         (SUBTARGET_EXTRA_SPECS): Remove link_path.
24042
24043 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
24044
24045         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
24046         (NO_SHARED_LIB_SUPPORT): Remove.
24047         (LINK_SHLIB_SPEC): Remove one conditional definition.
24048
24049 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
24050
24051         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
24052         %{call_shared}.
24053         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
24054         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
24055         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
24056         %{call_shared} and conditionals on these options not being passed.
24057         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
24058         %{call_shared}.
24059
24060 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
24061
24062         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
24063         simplify.
24064
24065         * ipa-split.c: Spelling fixes.
24066
24067 2011-01-19  Richard Henderson  <rth@redhat.com>
24068
24069         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
24070         (*mulsi3): Likewise.
24071
24072         * longlong.h [__mn10300__] (count_leading_zeros): New.
24073         [__mn10300__] (umul_ppmm, smul_ppmm): New.
24074         [__mn10300__] (add_ssaaaa, subddmmss): New.
24075         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
24076         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
24077
24078 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24079
24080         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
24081
24082 2011-01-19  Richard Henderson  <rth@redhat.com>
24083
24084         * config/mn10300/mn10300.md (addsi3_flags): New.
24085         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
24086         (subsi3_flags, subc_internal, subdi3): New.
24087         (subdi3_internal, *subdi3_degenerate): New.
24088         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
24089
24090         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
24091         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
24092         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
24093         * config/mn10300/mn10300-protos.h: Update.
24094         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
24095         (return_ret): Likewise.  Rename from return_internal_regs.
24096         (return_internal): Remove.
24097
24098         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
24099         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
24100         (mn10300_legitimate_constant_p): Likewise.
24101         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
24102         (mn10300_frame_size): New.
24103         (mn10300_expand_prologue): Use it.
24104         (mn10300_expand_epilogue): Likewise.
24105         (mn10300_initial_offset): Likewise.
24106         * config/mn10300/mn10300-protos.h: Update.
24107         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
24108         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
24109         (prologue, epilogue, return_internal): Tidy output code.
24110         (mn10300_store_multiple_operation, return): Likewise.
24111         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
24112         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
24113         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
24114         (load_pic, am33_load_pic): New.
24115         (mn10300_load_pic0, mn10300_load_pic1): New.
24116
24117         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
24118         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
24119         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
24120         (cc_flags_for_mode, cc_flags_for_code): New.
24121         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
24122         overflow flag is not valid.  Validate that the flags we need
24123         for the comparison are valid.
24124         (mn10300_output_cmp): Remove.
24125         (mn10300_output_add): New.
24126         (mn10300_select_cc_mode): Use cc_flags_for_code.
24127         (mn10300_split_cbranch): New.
24128         (mn10300_match_ccmode): New.
24129         (mn10300_split_and_operand_count): New.
24130         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
24131         to the function.
24132         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
24133         (addsi3): ... here.  Use mn10300_output_add.
24134         (*addsi3_flags): New.
24135         (*am33_subsi3, *mn10300_subsi3): Merge...
24136         (subsi3): ... here.  Use attribute isa.
24137         (*subsi3_flags): New.
24138         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
24139         when possible.
24140         (*am33_andsi3, *mn10300_andsi3): Merge...
24141         (andsi3): ... here.
24142         (*andsi3_flags): New.
24143         (andsi3 splitters): New.
24144         (*am33_iorsi3, *mn10300_iorsi3): Merge...
24145         (iorsi3): ... here.
24146         (*iorsi3_flags): New.
24147         (*am33_xorsi3, *mn10300_xorsi3): Merge...
24148         (xorsi3): ... here.
24149         (*xorsi3_flags): New.
24150         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
24151         (one_cmplsi2): ... here.
24152         (*one_cmplsi2_flags): New.
24153         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
24154         instead of "dax" in constraints.  Use mn10300_split_cbranch.
24155         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
24156         use matching constraints to eliminate a self-comparison.
24157         (*integer_conditional_branch): Rename from integer_conditional_branch.
24158         Use int_mode_flags to match CC_REG.
24159         (*cbranchsi4_btst, *btstsi): New.
24160         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
24161         mn10300_split_cbranch.
24162         (*am33_cmpsf): Rename from am33_cmpsf.
24163         (*float_conditional_branch): Rename from float_conditional_branch.
24164         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
24165         (zero_extendqisi2): ... here.
24166         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
24167         (zero_extendhisi2): ... here.
24168         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
24169         (extendqisi2): ... here.
24170         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
24171         (extendhisi2): ... here.
24172         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
24173         (ashlsi3): ... here.
24174         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
24175         (lshrsi3): ... here.
24176         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
24177         (ashrsi3): ... here.
24178         (consecutive add peephole): Remove.
24179         * config/mn10300/predicates.md (label_ref_operand): New.
24180         (int_mode_flags): New.
24181         (CCZN_comparison_operator): New.
24182
24183         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
24184         (throughput_42_latency_43): New reservation.
24185         (mulsidi3, umulsidi3): New expanders.
24186         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
24187         the MDR register to allocation; separately allocate the low and
24188         high parts of the DImode result.
24189         (umulsidi3_internal): Similarly.
24190         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
24191         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
24192         (udivsi3, umodsi3): Remove.
24193         (udivmodsi4, divmodsi4): New expanders.
24194         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
24195         (*divmodsi4): Simiarly.
24196         (ext_internal): New.
24197
24198         * config/mn10300/constraints.md ("z"): New constraint.
24199         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
24200         (FIXED_REGISTERS): Don't fix MDR.
24201         (CALL_USED_REGSITERS): Reformat nicely.
24202         (REG_ALLOC_ORDER): Add MDR.
24203         (enum regclass): Add MDR_REGS.
24204         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
24205         (IRA_COVER_CLASSES): Add MDR_REGS.
24206         (REGNO_REG_CLASS): Handle MDR_REG.
24207         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
24208         (mn10300_register_move_cost): Likewise.
24209         * config/mn10300/mn10300.md (MDR_REG): New.
24210         (*movsi_internal): Handle moves to/from MDR_REGS.
24211
24212         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
24213         POST_MODIFY.
24214         (mn10300_secondary_reload): Tidy combination reload classes.
24215         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
24216         addresses for AM33.  Allow symbolic offsets for reg+imm.
24217         (mn10300_regno_in_class_p): New.
24218         (mn10300_legitimize_reload_address): New.
24219         * config/mn10300/mn10300.h (enum reg_class): Remove
24220         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
24221         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
24222         SP_OR_GENERAL_REGS.
24223         (REG_CLASS_NAMES): Update to match.
24224         (REG_CLASS_CONTENTS): Likewise.
24225         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
24226         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
24227         (REGNO_IN_RANGE_P): Remove.
24228         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
24229         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
24230         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
24231         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
24232         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
24233         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
24234         (REGNO_GENERAL_P): New.
24235         (HAVE_POST_MODIFY_DISP): New.
24236         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
24237         (LEGITIMIZE_RELOAD_ADDRESS): New.
24238         * config/mn10300/mn10300-protos.h: Update.
24239
24240         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
24241         DATA_REGS for AM33 stack-pointer destination.
24242         (mn10300_preferred_output_reload_class): Likewise.
24243         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
24244         into a form appropriate for ...
24245         (TARGET_SECONDARY_RELOAD): New.
24246         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
24247         * config/mn10300/mn10300-protos.h: Update.
24248         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
24249         reload_insi; use the "A" constraint for the scratch; handle AM33
24250         moves of sp to non-address registers.
24251
24252         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
24253         (*movqi_internal): ... here.
24254         (*am33_movhi, *mn10300_movhi): Merge into...
24255         (*movhi_internal): ... here.
24256         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
24257         as the source/destination of moves from/to SP.
24258         (movsf): Only allow for AM33-2.
24259         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
24260         any integer constant constraint.  Only allow for AM33-2.  Tidy
24261         all of the alternative outputs.
24262         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
24263         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
24264         for MN103.
24265         (udivsi3, umodsi3): New patterns for MN103 only.
24266
24267 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
24268
24269         * doc/tm.texi.in: Spell out that a lack of register class unions
24270         can lead to ICEs.
24271         * doc/tm.texi: Regenerate.
24272
24273 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
24274
24275         PR rtl-optimization/47337
24276         * dce.c (check_argument_store): New function.
24277         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
24278
24279         PR tree-optimization/47290
24280         * tree-eh.c (infinite_empty_loop_p): New function.
24281         (cleanup_empty_eh): Use it.
24282
24283 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
24284
24285         PR target/46997
24286         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
24287         (a64_expand_widen_sum): Ditto.
24288         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
24289         (vec_extract_evenodd_help): Ditto.
24290         (vec_extract_evenv4hi): Ditto.
24291         (vec_extract_oddv4hi): Ditto.
24292         (vec_extract_evenv2si): Ditto.
24293         (vec_extract_oddv2si): Ditto.
24294         (vec_extract_evenv2sf): Ditto.
24295         (vec_extract_oddv2sf): Ditto.
24296         (vec_pack_trunc_v4hi: Ditto.
24297         (vec_pack_trunc_v2si): Ditto.
24298         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
24299         (vec_interleave_highv8qi): Ditto.
24300         (mix1_r): Ditto.
24301         (vec_extract_oddv8qi): Ditto.
24302         (vec_interleave_lowv4hi): Ditto.
24303         (vec_interleave_highv4hi): Ditto.
24304         (vec_interleave_lowv2si): Ditto.
24305         (vec_interleave_highv2si): Ditto.
24306
24307 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24308
24309         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
24310         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
24311         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
24312         (pa_c_mode_for_suffix): New.
24313         (TARGET_EXPAND_BUILTIN): Define.
24314         (TARGET_C_MODE_FOR_SUFFIX): Define.
24315         (pa_builtins): Define.
24316         (pa_init_builtins): Register __float128 type and init new support
24317         builtins.
24318         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
24319         * config/pa/quadlib.c (_U_Qfcopysign): New.
24320
24321 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
24322
24323         PR middle-end/46894
24324         * explow.c (allocate_dynamic_stack_space): Do not assume more than
24325         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
24326         are defined.
24327
24328 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24329
24330         PR tree-optimization/47179
24331         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
24332         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
24333
24334 2011-01-18  Richard Guenther  <rguenther@suse.de>
24335
24336         PR rtl-optimization/47216
24337         * emit-rtl.c: Include tree-flow.h.
24338         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
24339         of replicating it with different semantics.
24340         * Makefile.in (emit-rtl.o): Adjust.
24341
24342 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24343
24344         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
24345         (cortex_a9_dp): Handle neon types correctly.
24346
24347 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
24348
24349         PR rtl-optimization/47299
24350         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
24351         subtarget.  Use normal multiplication if both operands are constants.
24352         * expmed.c (expand_widening_mult): Don't try to optimize constant
24353         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
24354         before using it.
24355
24356 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24357
24358         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
24359         spacing after 'e.g.', typos, comma, hyphenation.
24360
24361 2011-01-17  Richard Henderson  <rth@redhat.com>
24362
24363         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
24364         (rx_restricted_mem_operand): New.
24365         (rx_shift_operand): Use register_operand.
24366         (rx_source_operand, rx_compare_operand): Likewise.
24367         * config/rx/rx.md (addsi3_flags): New expander.
24368         (adddi3): Rewrite as expander.
24369         (adc_internal, *adc_flags, adddi3_internal): New patterns.
24370         (subsi3_flags): New expander.
24371         (subdi3): Rewrite as expander.
24372         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
24373
24374         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
24375         (rx_init_builtins): Remove sat builtin.
24376         (rx_expand_builtin): Likewise.
24377         * config/rx/rx.md (ssaddsi3): New.
24378         (*sat): Rename from sat.  Represent the CC_REG input.
24379
24380         * config/rx/predicates.md (rshift_operator): New.
24381         * config/rx/rx.c (rx_expand_insv): Remove.
24382         * config/rx/rx-protos.h: Update.
24383         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
24384         operand to the canonical position.
24385         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
24386         (*bitclr, *bitclr_in_memory): Similarly.
24387         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
24388         (insv): Retain the zero_extract in the expansion.
24389
24390         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
24391         (bswaphi2, bitinvert, revw): Likewise.
24392
24393         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
24394         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
24395         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
24396         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
24397         (bitset, bitset_in_memory): Likewise.
24398         (bitinvert, bitinvert_in_memory): Likewise.
24399         (bitclr, bitclr_in_memory): Likewise.
24400         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
24401         (rx_strend, rx_cmpstrn): Likewise.
24402         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
24403         (bitop peep2 patterns): Remove.
24404
24405         * config/rx/rx.c (rx_match_ccmode): New.
24406         * config/rx/rx-protos.h: Update.
24407         * config/rx/rx.md (abssi2): Clobber, don't set flags.
24408         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
24409         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
24410         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
24411         (fix_truncsfsi2, floatsisf2): Likewise.
24412         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
24413         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
24414         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
24415         (*subsi3_flags, *xorsi3_flags): New.
24416
24417         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
24418
24419         * config/rx/rx.c (rx_print_operand): Remove workaround for
24420         unsplit comparison operations.
24421
24422         * config/rx/rx.md (movsicc): Split after reload.
24423         (*movsicc): Merge *movsieq and *movsine via match_operator.
24424         (*stcc): New pattern.
24425
24426         * config/rx/rx.c (rx_float_compare_mode): Remove.
24427         * config/rx/rx.h (rx_float_compare_mode): Remove.
24428         * config/rx/rx.md (cstoresi4): Split after reload.
24429         (*sccc): New pattern.
24430
24431         * config/rx/predicates.md (label_ref_operand): New.
24432         (rx_z_comparison_operator): New.
24433         (rx_zs_comparison_operator): New.
24434         (rx_fp_comparison_operator): New.
24435         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
24436         Validate that the flags are set properly for the comparison.
24437         (rx_gen_cond_branch_template): Remove.
24438         (rx_cc_modes_compatible): Remove.
24439         (mode_from_flags): New.
24440         (flags_from_code): Rename from flags_needed_for_conditional.
24441         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
24442         (rx_select_cc_mode): Likewise.
24443         (rx_split_fp_compare): New.
24444         (rx_split_cbranch): New.
24445         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
24446         (*cbranchsi4): Use match_operator and rx_split_cbranch.
24447         (*cbranchsf4): Similarly.
24448         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
24449         match_operator and rx_split_cbranch.
24450         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
24451         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
24452         (*cmpsi): Rename from cmpsi.
24453         (*tstsi): Rename from tstsi.
24454         (*cmpsf): Rename from cmpsf; use CC_Fmode.
24455         (*conditional_branch): Rename from conditional_branch.
24456         (*reveresed_conditional_branch): Remove.
24457         (b<code>): Remove expander.
24458         * config/rx/rx-protos.h: Update.
24459
24460         * config/rx/rx.c (rx_compare_redundant): Remove.
24461         * config/rx/rx.md (cmpsi): Don't use it.
24462         * config/rx/rx-protos.h: Update.
24463
24464         * config/rx/rx-modes.def (CC_F): New mode.
24465         * config/rx/rx.c (rx_select_cc_mode): New.
24466         * config/rx/rx.h (SELECT_CC_MODE): Use it.
24467         * config/rx/rx-protos.h: Update.
24468
24469 2011-01-17  Richard Henderson  <rth@redhat.com>
24470
24471         * except.c (dump_eh_tree): Fix stray ; after for statement.
24472
24473 2011-01-17  Richard Guenther  <rguenther@suse.de>
24474
24475         PR tree-optimization/47313
24476         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
24477         handling before copying the body.  Properly deal with
24478         by-reference result in SSA form.
24479
24480 2011-01-17  Ian Lance Taylor  <iant@google.com>
24481
24482         PR target/47219
24483         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
24484         (struct_value_alias_set): Don't define.
24485         (sparc_option_override): Don't set sparc_sr_alias_set and
24486         struct_value_alias_set.
24487         (save_or_restore_regs): Use gen_frame_mem rather than calling
24488         set_mem_alias_set.
24489         (sparc_struct_value_rtx): Likewise.
24490
24491 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
24492
24493         PR target/47318
24494         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
24495         (_mm_maskstore_pd): Likewise.
24496         (_mm_maskload_ps): Likewise.
24497         (_mm_maskstore_ps): Likewise.
24498         (_mm256_maskload_pd): Change mask to __m256i.
24499         (_mm256_maskstore_pd): Likewise.
24500         (_mm256_maskload_ps): Likewise.
24501         (_mm256_maskstore_ps): Likewise.
24502
24503         * config/i386/i386-builtin-types.def: Updated.
24504         (ix86_expand_special_args_builtin): Likewise.
24505
24506         * config/i386/i386.c (bdesc_special_args): Update
24507         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
24508         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
24509         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
24510         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
24511
24512         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
24513         Use <avxpermvecmode> on mask register.
24514         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
24515
24516 2011-01-17  Olivier Hainque  <hainque@adacore.com>
24517             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
24518             Eric Botcazou  <ebotcazou@adacore.com>
24519
24520         PR target/46655
24521         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
24522         if <= USHRT_MAX in 32-bit mode.
24523
24524 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24525
24526         * doc/install.texi (Configuration, Specific): Wrap long
24527         lines in examples.  Allow line wrapping in long options
24528         and URLs where beneficial for PDF output.
24529
24530 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
24531
24532         * config/mips/mips.c (mips_classify_symbol): Don't return
24533         SYMBOL_PC_RELATIVE for nonlocal labels.
24534
24535 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
24536
24537         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
24538
24539 2011-01-15  Jan Hubicka  <jh@suse.cz>
24540
24541         PR tree-optimization/47276
24542         * ipa.c (function_and_variable_visibility): Do not try to mark alias
24543         declarations as needed.
24544
24545 2011-01-15  Martin Jambor  <mjambor@suse.cz>
24546
24547         * common.opt (fdevirtualize): New flag.
24548         * doc/invoke.texi (Option Summary): Document it.
24549         * opts.c (default_options_table): Add devirtualize flag.
24550         * ipa-prop.c (detect_type_change): Return immediately if
24551         devirtualize flag is not set.
24552         (detect_type_change_ssa): Likewise.
24553         (compute_known_type_jump_func): Likewise.
24554         (ipa_analyze_virtual_call_uses): Likewise.
24555
24556 2011-01-14  Martin Jambor  <mjambor@suse.cz>
24557
24558         PR tree-optimization/45934
24559         PR tree-optimization/46302
24560         * ipa-prop.c (type_change_info): New type.
24561         (stmt_may_be_vtbl_ptr_store): New function.
24562         (check_stmt_for_type_change): Likewise.
24563         (detect_type_change): Likewise.
24564         (detect_type_change_ssa): Likewise.
24565         (compute_complex_assign_jump_func): Check for dynamic type change.
24566         (compute_complex_ancestor_jump_func): Likewise.
24567         (compute_known_type_jump_func): Likewise.
24568         (compute_scalar_jump_functions): Likewise.
24569         (ipa_analyze_virtual_call_uses): Likewise.
24570         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
24571
24572 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
24573
24574         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
24575         * config/i386/i386.opt (msse5): New Alias.
24576
24577 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
24578
24579         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
24580         * config/sparc/linux64.h (CC1_SPEC): Likewise.
24581         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
24582         * config/sparc/sparc.h (CC1_SPEC): Likewise.
24583
24584 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
24585
24586         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
24587         -mcpu options.
24588         * config/sparc/linux64.h (CC1_SPEC): Likewise.
24589         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
24590         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
24591         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
24592         Likewise.
24593         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
24594
24595 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
24596
24597         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
24598
24599 2011-01-14  Mike Stump  <mikestump@comcast.net>
24600
24601         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
24602         * config/fr30/fr30.md: Likweise
24603         (movsi_push): Likewise.
24604         (movsi_pop): Likewise.
24605         (enter_func): Likewise.
24606         * config/moxie/moxie.md (movsi_push): Likewise.
24607         (movsi_pop): Likewise.
24608
24609 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
24610
24611         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
24612         %{no_archive} %{exact_version}.
24613         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
24614         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
24615         %{no_archive} %{exact_version}.
24616         * config/mips/openbsd.h (LINK_SPEC): Likewise.
24617         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
24618         * config/mips/vxworks.h: Likewise.
24619
24620 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
24621
24622         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
24623
24624 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
24625
24626         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
24627         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
24628
24629 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
24630
24631         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
24632         -nodefaultlib.
24633
24634 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
24635
24636         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
24637         for mcpu not cpu.
24638         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
24639         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
24640         not cpu.
24641         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
24642         Don't handle -shlib.
24643
24644 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
24645
24646         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
24647         (CC1_SPEC): Don't handle -profile.
24648
24649 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
24650
24651         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
24652         * config/mips/mips.h (CC1_SPEC): Likewise.
24653
24654 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
24655
24656         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
24657         * config/mips/mips.h (CC1_SPEC): Likewise.
24658
24659 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
24660
24661         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
24662         * config/m32r/linux.h (LINK_SPEC): Likewise.
24663         * config/mips/linux.h (LINK_SPEC): Likewise.
24664         * config/mips/linux64.h (LINK_SPEC): Likewise.
24665         * config/sparc/linux.h (LINK_SPEC): Likewise.
24666         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
24667         LINK_SPEC): Likewise.
24668         * config/xtensa/linux.h (LINK_SPEC): Likewise.
24669
24670 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
24671
24672         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
24673         %{version:-v}.
24674         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
24675
24676 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
24677
24678         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
24679         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
24680
24681 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
24682
24683         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
24684
24685 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24686
24687         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
24688         supports -Bstatic/-Bdynamic.
24689         * configure: Regenerate.
24690
24691 2011-01-14  Jan Hubicka  <jh@suse.cz>
24692             Jack Howarth  <howarth@bromo.med.uc.edu>
24693
24694         PR target/46037
24695         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
24696         when checking debug_info_level. Test write_symbols instead of
24697         debug_hooks->var_location when setting flag_var_tracking_uninit.
24698
24699 2011-01-14  Richard Guenther  <rguenther@suse.de>
24700
24701         PR tree-optimization/47179
24702         * target.def (ref_may_alias_errno): New target hook.
24703         * targhooks.h (default_ref_may_alias_errno): Declare.
24704         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
24705         (default_ref_may_alias_errno): New function.
24706         * target.h (struct ao_ref_s): Declare.
24707         * tree-ssa-alias.c: Include target.h.
24708         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
24709         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
24710         (targhooks.o): Likewise.
24711         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
24712         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
24713
24714 2011-01-14  Richard Guenther  <rguenther@suse.de>
24715
24716         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
24717
24718 2011-01-14  Richard Guenther  <rguenther@suse.de>
24719
24720         PR tree-optimization/47280
24721         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
24722         return CFG changes.
24723         (tree_ssa_forward_propagate_single_use_vars): Deal with
24724         CFG changes from associate_plusminus.
24725
24726 2011-01-14  Richard Guenther  <rguenther@suse.de>
24727
24728         PR middle-end/47281
24729         Revert
24730         2011-01-11  Richard Guenther  <rguenther@suse.de>
24731
24732         PR tree-optimization/46076
24733         * tree-ssa.c (useless_type_conversion_p): Conversions from
24734         unprototyped to empty argument list function types are useless.
24735
24736 2011-01-14  Richard Guenther  <rguenther@suse.de>
24737
24738         PR tree-optimization/47286
24739         * tree-ssa-structalias.c (new_var_info): Register variables are global.
24740
24741 2011-01-14  Martin Jambor  <mjambor@suse.cz>
24742
24743         PR middle-end/46823
24744         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
24745
24746 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
24747
24748         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
24749         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
24750         * config/xtensa/xtensa.c (xtensa_libcall_value,
24751         xtensa_function_value_regno_p): New functions.
24752         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
24753
24754 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
24755
24756         PR c++/47213
24757         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
24758         PE specific hook.
24759         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
24760         New function prototype.
24761         * config/i386/winnt.c (i386_pe_assemble_visibility):
24762         Warn only if attribute was specified by user.
24763
24764 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
24765
24766         PR target/47251
24767         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
24768         floating point.
24769         (floatunsdidf2_fcfidu): Ditto.
24770
24771 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24772
24773         * config/s390/s390.c (print_operand_address): Replace 'error' with
24774         'output_operand_lossage'.
24775         (print_operand): Likewise.
24776
24777 2011-01-13  Jeff Law  <law@redhat.com>
24778
24779         PR rtl-optimization/39077
24780         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
24781         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
24782         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
24783         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
24784         * gcse.c (prune_insertions_deletions): New function.
24785         (compute_pre_data): Use it.
24786
24787 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
24788
24789         PR debug/PR46973
24790         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
24791         static function.
24792         (prune_unused_types_mark): Use it.
24793
24794 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
24795
24796         PR rtl-optimization/45352
24797         * sel-sched.c: Update copyright years.
24798         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
24799         in the advancing loop when we have issued issue_rate insns.
24800
24801 2011-01-12  Richard Henderson  <rth@redhat.com>
24802
24803         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
24804         (TARGET_MD_ASM_CLOBBERS): New.
24805
24806         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
24807         (TARGET_DELEGITIMIZE_ADDRESS): New.
24808
24809         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
24810         (clzsi2, *bsch): New patterns.
24811
24812         * config/mn10300/mn10300.md (INT): New mode iterator.
24813         (*mov<INT>_clr): New pattern, and peep2 to generate it.
24814
24815         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
24816         flag_split_wide_types.
24817
24818         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
24819         (mn10300_trampoline_init): Rewrite without a template, an immediate
24820         load and a direct branch.
24821         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
24822
24823 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
24824
24825         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
24826         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
24827         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
24828         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
24829
24830 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
24831
24832         PR debug/47209
24833         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
24834         of type.
24835
24836 2011-01-12  Jan Hubicka  <jh@suse.cz>
24837
24838         PR driver/47244
24839         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
24840         (PLUGIN_COND_CLOSE): New macro.
24841         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
24842
24843 2011-01-12  Richard Guenther  <rguenther@suse.de>
24844
24845         PR lto/47259
24846         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
24847         register variables in a MEM_REF.
24848
24849 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
24850
24851         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
24852         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
24853         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
24854         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
24855         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
24856         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
24857         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
24858         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
24859         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
24860         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
24861         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
24862         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
24863         * config/gnu-user.h: New.  Copied from linux.h.
24864         (LINUX_TARGET_STARTFILE_SPEC): Rename to
24865         GNU_USER_TARGET_STARTFILE_SPEC.
24866         (LINUX_TARGET_ENDFILE_SPEC): Rename to
24867         GNU_USER_TARGET_ENDFILE_SPEC.
24868         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
24869         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
24870         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
24871         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
24872         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
24873         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
24874         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
24875         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
24876         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
24877         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
24878         * config/arm/linux-eabi.h (CC1_SPEC): Use
24879         GNU_USER_TARGET_CC1_SPEC.
24880         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
24881         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
24882         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
24883         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
24884         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
24885         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
24886         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
24887         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
24888
24889 2011-01-12  Richard Guenther  <rguenther@suse.de>
24890
24891         PR other/46946
24892         * doc/invoke.texi (ffast-math): Document it is turned on
24893         with -Ofast.
24894
24895 2011-01-12  Jan Hubicka  <jh@suse.cz>
24896
24897         PR tree-optimization/47233
24898         * opts.c (common_handle_option): Disable ipa-reference with profile
24899         feedback.
24900
24901 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
24902
24903         * c-parser.c (c_parser_objc_at_property_declaration): Improved
24904         error message.
24905
24906 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
24907
24908         * c-parser.c (c_lex_one_token): Updated and reindented some
24909         comments.  No changes in code.
24910
24911 2011-01-11  Ian Lance Taylor  <iant@google.com>
24912
24913         * godump.c (go_output_var): Don't output the variable if there is
24914         already a type with the same name.
24915
24916 2011-01-11  Ian Lance Taylor  <iant@google.com>
24917
24918         * godump.c (go_format_type): Don't generate float80.
24919
24920 2011-01-11  Richard Henderson  <rth@redhat.com>
24921
24922         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
24923         declaration.  Rewrite for both speed and size.
24924         (mn10300_address_cost_1): Remove.
24925         (mn10300_register_move_cost): New.
24926         (mn10300_memory_move_cost): New.
24927         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
24928         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
24929         extensions, shifts, BSWAP, CLZ.
24930         (mn10300_wide_const_load_uses_clr): Remove.
24931         (TARGET_REGISTER_MOVE_COST): New.
24932         (TARGET_MEMORY_MOVE_COST): New.
24933         * config/mn10300/mn10300-protos.h: Update.
24934         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
24935
24936         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
24937         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
24938         * config/mn10300/mn10300-protos.h: Update.
24939         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
24940         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
24941         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
24942         (*test_int_bitfield, *test_byte_bitfield): Remove.
24943         (*bit_test, *subreg_bit_test): Remove.
24944         * config/mn10300/predicates.md (const_8bit_operand): Remove.
24945
24946         * config/mn10300/constraints.md ("c"): Rename from "A".
24947         ("A", "D"): New constraint letters.
24948         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
24949         (fmssf4, fnmasf4, fnmssf4): Likewise.
24950
24951         * config/mn10300/mn10300.md (isa): New attribute.
24952         (enabled): New attribute.
24953
24954         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
24955         (abssf2, negsf2): Define only for hardware fp.
24956         (sqrtsf2): Reformat.
24957         (addsf3, subsf3, mulsf3): Merge expander and insn.
24958
24959         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
24960         (DEBUGGER_AUTO_OFFSET): Remove.
24961         (DEBUGGER_ARG_OFFSET): Remove.
24962
24963         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
24964         Emit register stores with the same offsets as the hardware.
24965         (mn10300_store_multiple_operation): Don't check that the register
24966         save offsets are monotonic.
24967         * config/mn10300/mn10300-protos.h: Update.
24968
24969         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
24970
24971         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
24972         in terms of the value on the stack, not the MDR register.
24973
24974 2011-01-11  Jan Hubicka  <jh@suse.cz>
24975
24976         PR lto/45721
24977         PR lto/45375
24978         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
24979         (symbol_alias_set_destroy, symbol_alias_set_contains,
24980         propagate_aliases_backward): Declare.
24981         * lto-streamer-out.c (struct sets): New sturcture.
24982         (trivally_defined_alias): New function.
24983         (output_alias_pair_p): Rewrite.
24984         (output_unreferenced_globals): Fix output of alias pairs.
24985         (produce_symtab): Likewise.
24986         * ipa.c (function_and_variable_visibility): Set weak alias destination
24987         as needed in lto.
24988         * varasm.c (symbol_alias_set_t): Remove.
24989         (symbol_alias_set_destroy): Export.
24990         (propagate_aliases_forward, propagate_aliases_backward): New functions
24991         based on ...
24992         (compute_visible_aliases): ... this one; remove.
24993         (trivially_visible_alias): New
24994         (trivially_defined_alias): New.
24995         (remove_unreachable_alias_pairs): Rewrite.
24996         (finish_aliases_1): Reorganize code checking if alias is defined.
24997         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
24998         in LTO mode.
24999
25000 2011-01-11  Richard Guenther  <rguenther@suse.de>
25001
25002         PR tree-optimization/46076
25003         * tree-ssa.c (useless_type_conversion_p): Conversions from
25004         unprototyped to empty argument list function types are useless.
25005
25006 2011-01-11  Richard Guenther  <rguenther@suse.de>
25007
25008         PR middle-end/45235
25009         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
25010         volatile MEMs as MEM_READONLY_P.
25011
25012 2011-01-11  Richard Guenther  <rguenther@suse.de>
25013
25014         PR tree-optimization/47239
25015         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
25016
25017 2011-01-11  Jeff Law  <law@redhat.com>
25018
25019         PR tree-optimization/47086
25020         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
25021         IVs from statements that might throw.
25022
25023 2011-01-10  Jan Hubicka  <jh@suse.cz>
25024
25025         PR lto/45375
25026         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
25027
25028 2011-01-10  Jan Hubicka  <jh@suse.cz>
25029
25030         PR lto/45375
25031         * profile.c (read_profile_edge_counts): Ignore profile inconistency
25032         when correcting profile.
25033
25034 2011-01-10  Jan Hubicka  <jh@suse.cz>
25035
25036         PR lto/46083
25037         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
25038         DECL_FINI_PRIORITY.
25039         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
25040         Restore DECL_FINI_PRIORITY.
25041
25042 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25043
25044         * doc/gimple.texi: Fix quoting of multi-word return values in
25045         @deftypefn statements.  Ensure presence of return value.  Wrap
25046         overlong @deftypefn lines.
25047         (is_gimple_operand, is_gimple_min_invariant_address): Remove
25048         descriptions of removed functions.
25049         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
25050         of multi-word return value in @deftypefn statement.
25051
25052 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25053
25054         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
25055         (Conditional Expressions, Logical Operators)
25056         (Statement and operand traversals): Do not indent smallexample
25057         code.  Fix duplicate function argument in example.
25058
25059 2011-01-10  Jeff Law  <law@redhat.com>
25060
25061         PR tree-optimization/47141
25062         * ipa-split.c (split_function): Handle case where we are
25063         returning a value and the return block has a virtual operand phi.
25064
25065 2011-01-10  Jan Hubicka  <jh@suse.cz>
25066
25067         PR tree-optimization/47234
25068         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
25069         (pass_feedback_split_functions): Declare.
25070         * passes.c (init_optimization_passes): Add ipa-split as subpass of
25071         tree-profile.
25072         * ipa-split.c (gate_split_functions): Update comments; disable
25073         split-functions for profile_arc_flag and branch_probabilities.
25074         (gate_feedback_split_functions): New function.
25075         (execute_feedback_split_functions): New function.
25076         (pass_feedback_split_functions): New global var.
25077
25078 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
25079
25080         PR lto/46760
25081         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
25082         calling gimple_call_set_cannot_inline.
25083
25084 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
25085
25086         * config/darwin-sections.def: Remove unused section.
25087
25088 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
25089
25090         PR c++/47218
25091         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
25092
25093 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
25094
25095         PR objc/47232
25096         * c-parser.c (c_parser_declaration_or_fndef): Improved
25097         error message.
25098
25099 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
25100
25101         * config/i386/winnt.c (i386_pe_start_function): Make sure
25102         to switch back to function's section.
25103
25104 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
25105
25106         PR gcc/46902
25107         PR testsuite/46912
25108         * plugin.c: Move include of dlfcn.h from here...
25109         * system.h: ... to here.
25110
25111 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25112
25113         * doc/cpp.texi (C++ Named Operators): Fix markup for header
25114         file name.
25115         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
25116         two extra empty pages in PDF output.
25117
25118 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
25119
25120         PR objc/47078
25121         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
25122         for error recovery purposes behave as if it was not specified so
25123         that the default type is usd.
25124
25125 2011-01-07  Jan Hubicka  <jh@suse.cz>
25126
25127         PR tree-optmization/46469
25128         * ipa.c (function_and_variable_visibility): Clear needed flags on
25129         nodes with external decls; handle weakrefs merging correctly.
25130
25131 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
25132
25133         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
25134         not false.
25135
25136 2011-01-07  Jan Hubicka  <jh@suse.cz>
25137
25138         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
25139         and no longer claim that gold is required for linker plugin.
25140         * configure: Regenerate.
25141         * gcc.c (PLUGIN_COND): New macro.
25142         (LINK_COMMAND_SPEC): Use it.
25143         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
25144         * config.in (HAVE_LTO_PLUGIN): New.
25145         * configure.ac (--with-lto-plugin): New parameter; autodetect
25146         HAVE_LTO_PLUGIN.
25147
25148 2011-01-07  Jan Hubicka  <jh@suse.cz>
25149
25150         PR tree-optimization/46367
25151         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
25152         when we can update original.
25153         (cgraph_mark_inline_edge): Sanity check.
25154         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
25155
25156 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25157
25158         * config/spu/spu.h (ASM_COMMENT_START): Define.
25159
25160 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
25161
25162         PR driver/42445
25163         * gcc.c (%>S): New.
25164         (SWITCH_KEEP_FOR_GCC): Likewise.
25165         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
25166         (do_spec_1): Handle "%>".
25167
25168         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
25169
25170 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
25171
25172         PR target/47201
25173         * config/i386/i386.c (ix86_delegitimize_address): If
25174         simplify_gen_subreg fails, return orig_x.
25175
25176         PR bootstrap/47187
25177         * value-prof.c (gimple_stringop_fixed_value): Handle
25178         lhs of the call properly.
25179
25180 2011-01-07  Jan Hubicka  <jh@suse.cz>
25181
25182         PR lto/45375
25183         * lto-opt.c (lto_reissue_options): Set flag_shlib.
25184
25185 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
25186
25187         * target.def (function_switched_text_sections): New hook.
25188         * doc/tm.texi: Regenerated.
25189         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
25190         * final.c (default_function_switched_text_sections): New.
25191         (final_scan_insn): Call function_switched_text_sections when a
25192         mid-function section change occurs.
25193         * output.h (default_function_switched_text_sections): Declare.
25194         * config/darwin-protos.h (darwin_function_switched_text_sections):
25195         Likewise.
25196         * config/darwin.c (darwin_function_switched_text_sections): New.
25197         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
25198
25199 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
25200
25201         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
25202         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
25203         the secondary code fragment when outputting for DWARF == 2.
25204
25205 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
25206
25207         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
25208         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
25209         Remove.
25210         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
25211         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
25212
25213 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
25214
25215         PR debug/46704
25216         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
25217         when it is not empty.
25218
25219 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
25220
25221         Bobcat Enablement
25222         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
25223         (case ${target}): Add btver1.
25224         * config/i386/driver-i386.c (host_detect_local_cpu): Let
25225         -march=native recognize btver1 processors.
25226         * config/i386/i386-c.c (ix86_target_macros_internal): Add
25227         btver1 def_and_undef
25228         * config/i386/i386.c (struct processor_costs btver1_cost): New
25229         btver1 cost table.
25230         (m_BTVER1): New definition.
25231         (m_AMD_MULTIPLE): Includes m_BTVER1.
25232         (initial_ix86_tune_features): Add btver1 tune.
25233         (processor_target_table): Add btver1 entry.
25234         (static const char *const cpu_names): Add btver1 entry.
25235         (software_prefetching_beneficial_p): Add btver1.
25236         (ix86_option_override_internal): Add btver1 instruction sets.
25237         (ix86_issue_rate): Add btver1.
25238         (ix86_adjust_cost): Add btver1.
25239         * config/i386/i386.h (TARGET_BTVER1): New definition.
25240         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
25241         (enum processor_type): Add PROCESSOR_BTVER1.
25242         * config/i386/i386.md (define_attr "cpu"): Add btver1.
25243
25244 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25245
25246         PR target/43309
25247         * config/i386/i386.c (legitimize_tls_address)
25248         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
25249         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
25250         (tls_initial_exec_64_sun): New pattern.
25251
25252 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
25253
25254         * doc/invoke.texi (Overall Options): Improve wording and markup
25255         of the description of -wrapper.
25256
25257 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
25258
25259         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
25260         rdynamic, threads): New Driver options.
25261
25262 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25263
25264         PR target/38118
25265         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
25266         if coming from .tdata.
25267         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
25268
25269 2011-01-06  Jan Hubicka  <jh@suse.cz>
25270
25271         PR lto/47188
25272         * collect2.c (main): Do not enable LTOmode when plugin is active.
25273
25274 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25275
25276         PR other/45915
25277         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
25278         --version output if supported.
25279         * configure: Regenerate.
25280
25281 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
25282
25283         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
25284         Driver options.
25285
25286 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
25287
25288         PR c/47150
25289         * c-convert.c (convert): When converting a complex expression
25290         other than COMPLEX_EXPR to a different complex type, ensure
25291         c_save_expr is called instead of save_expr, unless in_late_binary_op.
25292         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
25293         when converting COMPLEX_TYPE.
25294
25295 2011-01-06  Ira Rosen  <irar@il.ibm.com>
25296
25297         PR tree-optimization/47139
25298         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
25299         only the last reduction value is used outside the loop.  Update
25300         documentation.
25301
25302 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
25303
25304         * config/rtems.opt: New.
25305         * config.gcc (*-*-rtems*): Use rtems.opt.
25306
25307 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
25308
25309         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
25310         processors do not support 3DNow instructions.
25311
25312 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25313
25314         * config/spu/spu.c (spu_option_override): Set parameter
25315         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
25316
25317 2011-01-05  Jan Hubicka  <jh@suse.cz>
25318
25319         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
25320         at the command line.
25321
25322 2011-01-05  Martin Jambor  <mjambor@suse.cz>
25323
25324         PR lto/47162
25325         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
25326         deltas on streamed outgoing edges.
25327         (output_node_opt_summary): Output info for outgoing edges only when
25328         the node is in new parameter set.
25329         (output_cgraph_opt_summary): New parameter set, passed to the two
25330         aforementioned functions.  Update its forward declaration and its
25331         callee too.
25332
25333 2011-01-05  Tom Tromey  <tromey@redhat.com>
25334
25335         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
25336         operator to c_finish_omp_atomic.
25337         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
25338         (build_unary_op): Update.
25339         (build_modify_expr): Update.
25340         (build_asm_expr): Update.
25341
25342 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25343
25344         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
25345         newly inserted insns.
25346         (pad_bb): Likewise.
25347         (spu_emit_branch_hint): Likewise.
25348         (insert_hbrp_for_ilb_runout): Likewise.
25349         (spu_machine_dependent_reorg): Call df_finish_pass after
25350         schedule_insns returns.
25351
25352 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25353
25354         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
25355
25356 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
25357
25358         PR tree-optimization/47005
25359         * tree-sra.c (struct access): Add 'non_addressable' bit.
25360         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
25361         (decide_one_param_reduction): Return 0 if the parameter is passed by
25362         reference and one of the accesses in the group is non_addressable.
25363
25364 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
25365
25366         PR tree-optimization/47056
25367         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
25368         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
25369         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
25370
25371 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
25372
25373         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
25374         initializer.  Skip view conversions from aggregate types.
25375
25376 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
25377
25378         PR bootstrap/47055
25379         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
25380
25381 2011-01-04  Philipp Thomas  <pth@suse.de>
25382
25383         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
25384         obvious typo.
25385
25386 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25387
25388         * function.c (thread_prologue_and_epilogue_insns): Do not crash
25389         on empty epilogue sequences.
25390
25391 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
25392
25393         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
25394         non-static): New Driver options.
25395
25396 2011-01-04  Jie Zhang  <jie@codesourcery.com>
25397
25398         PR driver/47137
25399         * gcc.c (default_compilers[]): Set combinable field to 0
25400         for all assembly languages.
25401
25402 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
25403
25404         * config/mips/loongson3a.md: New file.
25405         * config/mips/mips.md: Include loongson3a.md.
25406         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
25407         TUNE_LOONGSON_3A.
25408
25409 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
25410
25411         PR middle-end/47017
25412         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
25413         instead of convert_memory_address_addr_space on the base expression.
25414
25415 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25416
25417         * config/spu/spu.c (spu_option_override): Update error text
25418         for bad -march= / -mtune= values.
25419
25420 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25421
25422         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
25423         if branch-hint optimization will be performed.
25424
25425 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
25426
25427         PR tree-optimization/47148
25428         * ipa-split.c (split_function): Convert arguments to
25429         DECL_ARG_TYPE if possible.
25430
25431         PR tree-optimization/47155
25432         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
25433         when computing uns.
25434
25435         PR rtl-optimization/47157
25436         * combine.c (try_combine): If undobuf.other_insn becomes
25437         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
25438         and set *new_direct_jump_p too.
25439
25440 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
25441
25442         PR tree-optimization/47021
25443         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
25444
25445 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
25446
25447         * gcc.c (process_command): Update copyright notice dates.
25448         * gcov.c (print_version): Likewise.
25449         * gcov-dump.c (print_version): Likewise.
25450         * mips-tfile.c (main): Likewise.
25451         * mips-tdump.c (main): Likewise.
25452
25453 2011-01-03  Martin Jambor  <mjambor@suse.cz>
25454
25455         PR tree-optimization/46801
25456         * tree-sra.c (type_internals_preclude_sra_p): Check whether
25457         aggregate fields start at byte boundary instead of the bit-field flag.
25458
25459 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
25460
25461         PR driver/47137
25462         * gcc.c (main): Revert revision 168407.
25463
25464 2011-01-03  Martin Jambor  <mjambor@suse.cz>
25465
25466         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
25467
25468 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25469
25470         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
25471         vector optab to expand vector/scalar shift, update gimple to vector.
25472
25473 2011-01-03  Martin Jambor  <mjambor@suse.cz>
25474
25475         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
25476         a thunk.
25477
25478 2011-01-03  Martin Jambor  <mjambor@suse.cz>
25479
25480         PR tree-optimization/46984
25481         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
25482         HOST_WIDE_INT.
25483         (cgraph_create_indirect_edge): Fixed line length.
25484         (cgraph_indirect_call_info): Declare.
25485         (cgraph_make_edge_direct) Update declaration.
25486         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
25487         (cgraph_create_indirect_edge): Use it.
25488         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
25489         callees.
25490         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
25491         the new thunk_delta representation.
25492         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
25493         HOST_WIDE_INT.
25494         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
25495         (ipa_read_indirect_edge_info): Likewise.
25496         * lto-cgraph.c (output_edge_opt_summary): New function.
25497         (output_node_opt_summary): Call it on all outgoing edges.
25498         (input_edge_opt_summary): New function.
25499         (input_node_opt_summary): Call it on all outgoing edges.
25500
25501 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
25502
25503         PR driver/47137
25504         * gcc.c (main): Don't check have_o when settting combine_inputs.
25505
25506 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
25507
25508         * regrename.c: Add general comment describing the pass.
25509         (struct du_head): Remove 'length' field.
25510         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
25511         (regrename_optimize): Do not sort chains.  Rework comments, add others.
25512         Force renaming to the preferred class (if any) in the first pass and do
25513         not consider registers that belong to it in the second pass.
25514         (create_new_chain): Do not set 'length' field.
25515         (scan_rtx_reg): Likewise.
25516
25517 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
25518
25519         PR tree-optimization/47140
25520         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
25521         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
25522         to bit_value_binop.
25523
25524         PR rtl-optimization/47028
25525         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
25526         parm_birth_insn instead of at the beginning of first bb.
25527
25528 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
25529
25530         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
25531         Remove the word "see" before "@pxref".
25532         * doc/rtl.texi: Remove the word "see" before "@pxref".
25533
25534 2011-01-01  Jan Hubicka  <jh@suse.cz>
25535
25536         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
25537         memory.
25538
25539 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
25540
25541         PR target/38662
25542         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
25543
25544 \f
25545 Copyright (C) 2011 Free Software Foundation, Inc.
25546
25547 Copying and distribution of this file, with or without modification,
25548 are permitted in any medium without royalty provided the copyright
25549 notice and this notice are preserved.