OSDN Git Service

1f191ee2e18e2e1143e8a8d7c1b1ea9ba3be20ec
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2
3         PR other/48748
4         * doc/extend.texi (Type Traits): Document __is_standard_layout,
5         __is_literal_type, and __is_trivial; update throughout about
6         possibly cv-qualified void types.
7
8 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
9
10         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
11         testsuite and make it version agnostic.
12
13 2011-04-22  Jan Hubicka  <jh@suse.cz>
14
15         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
16
17 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
18
19         PR c/48685
20         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
21         to VOID_TYPE even around MODIFY_EXPR.
22
23 2011-04-22  Mike Stump  <mikestump@comcast.net>
24
25         * gensupport.c (read_md_rtx): Fix typo in comment.
26         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
27         comment.
28
29 2011-04-22  Jan Hubicka  <jh@suse.cz>
30
31         * gengtype.c (open_base_files): Add ipa-inline.h include.
32         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to ipa-prop.c
33         update all uses.
34         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
35         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to merge
36         summary of inlined function into former caller.
37         * ipa-inline.c (max_benefit): Remove.
38         (edge_badness): Compensate for removal of benefits.
39         (update_caller_keys): Use reset_node_growth_cache/reset_edge_growth_cache.
40         (update_callee_keys): Likewise.
41         (update_all_callee_keys): Likewise.
42         (inline_small_functions): Do not collect max_benefit; do not
43         reset stimated_growth; call free_growth_caches and initialize_growth_caches.
44         * ipa-inline.h (struct condition, type clause_t, struct predicate, struct
45         size_time_entry): New structures.
46         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
47         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit and
48         estimated_growth.
49         (edge_growth_cache_entry): New structure.
50         (node_growth_cache, edge_growth_cache): New global vars.
51         (estimate_growth): Turn into inline.
52         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
53         initialize_growth_caches, free_growth_caches): Declare.
54         (estimate_edge_growth): Rewrite.
55         (estimate_edge_time): Implement as inline cache lookup.
56         (reset_node_growth_cache, reset_edge_growth_cache): New inline functions.
57         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
58         (NUM_CONDITIONS): New constant.
59         (predicate_conditions): New enum.
60         (IS_NOT_CONSTANT): New constant.
61         (edge_removal_hook_holder): New var.
62         (node_growth_cache, edge_growth_cache): New global vars.
63         (true_predicate, single_cond_predicate, false_predicate, not_inlined_predicate,
64         add_condition, add_clause, and_predicates, or_predicates, predicates_equal_p,
65         evaulate_predicate, dump_condition, dump_clause, dump_predicate, account_size_time,
66         evaulate_conditions_for_edge): New functions.
67         (inline_summary_alloc): Move to heap.
68         (inline_node_removal_hook): Clear condition and entry vectors.
69         (inline_edge_removal_hook): New function.
70         (initialize_growth_caches, free_growth_caches): New function.
71         (dump_inline_summary): Update.
72         (edge_execution_predicate): New function.
73         (will_be_nonconstant_predicate): New function.
74         (estimate_function_body_sizes): Compute BB and constantness predicates.
75         (compute_inline_parameters): Do not clear estimated_growth.
76         (estimate_edge_size_and_time): New function.
77         (estimate_calls_size_and_time): New function.
78         (estimate_callee_size_and_time): New function.
79         (remap_predicate): New function.
80         (inline_merge_summary): New function.
81         (do_estimate_edge_time): New function based on...
82         (estimate_edge_time): ... this one.
83         (do_estimate_edge_growth): New function.
84         (do_estimate_growth): New function based on....
85         (estimate_growth): ... this one.
86         (inline_analyze_function): Analyze after deciding on jump functions.
87         (inline_read_section): New function.
88         (inline_read_summary): Use it.
89         (inline_write_summary): Write all the new data.
90         * ipa-prop.c (ipa_get_param_decl_index): Export.
91         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
92         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc): Declare.
93         (ipa_get_lattice): Move hre from ipa-cp.c
94         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
95         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
96         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
97         cgraph_edge_inlinable_p): Remove.
98         * cgraphunit.c: Include ipainline.h
99         (cgraph_process_new_functions): Update call of compute_inline_parameters.
100
101 2011-04-22  Richard Guenther  <rguenther@suse.de>
102
103         * tree.c (build_int_cst): Properly create canonicalized integer
104         constants.
105         (build_int_cst_type): Remove scary comments.
106
107 2011-04-22  Xinliang David Li  <davidxl@google.com>
108
109         * toplev.c (process_options): Enable -Werror=coverage-mismatch
110         by default when -Wno-error is not specified.
111         * opts-global.c (decode_options): Remove call to
112         control_warning_options.
113
114 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
115
116         PR tree-optimization/48717
117         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
118         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
119
120 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
121
122         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
123         definition where used.
124
125 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
126
127         PR c/48716
128         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
129         TREE_STATIC variables declared inside of some OpenMP construct.
130
131 2011-04-22  Martin Jambor  <mjambor@suse.cz>
132
133         PR middle-end/48585
134         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
135
136 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
137
138         PR c/36750
139         * c-typeck.c (pop_init_level): Do not warn about initializing
140         with ` = {0}'.
141
142 2011-04-22  Alan Modra  <amodra@gmail.com>
143
144         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
145         when returning call_cookie.
146         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
147         pointers, to functions with no more vector args than the current
148         function, and some non-local calls for ABI_V4.
149         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
150         sibcall_nonlocal_aix64): Combine to ..
151         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
152         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
153         (sibcall_value_nonlocal_aix<mode>): ..likewise.
154         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
155         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
156         operand.
157         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
158         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
159         sibcall_value_symbolic_64): Delete.
160
161 2011-04-21  Xinliang David Li  <davidxl@google.com>
162
163         * cgraph.h: Remove pid.
164         * cgraph.c: Remove pid.
165         * value-prof.c (init_node_map): New function.
166         (del_node_map): New function.
167         (find_func_by_funcdef_no): New function.
168         (gimple_ic_transform): Call new function.
169         * cgraphunit.c (cgraph_finalize_function): Remove pid.
170         * function.c (get_last_funcdef_no): New function.
171         * function.h (get_last_funcdef_no): New function.
172         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
173         to libgcov function.
174         (tree-profiling): Call node map init and delete function.
175
176 2011-04-21  Ian Lance Taylor  <iant@google.com>
177
178         * godump.c (go_format_type): Use exported Go name for anonymous
179         field name.
180
181 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
182
183         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
184         Call builtin_function_type_list instead of builtin_function_type.
185         (UNARY, BINARY, TRINARY, QUAD): Likewise.
186
187 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
188
189         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
190         build_function_type_list instead of build_function_type.
191         Delete variable `endlink'.
192
193 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
194
195         * config/s390/s390.c (s390_init_builtins): Call
196         build_function_type_list instead of build_function_type.
197
198 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
199
200         * config/ia64/ia64.c (ia64_init_builtins): Call
201         build_function_type_list instead of builtin_function_type.
202
203 2011-04-21  Easwaran Raman  <eraman@google.com>
204
205         * cfgexpand.c (stack_var): Remove OFFSET...
206         (add_stack_var): ...and its reference here...
207         (expand_stack_vars): ...and here.
208         (stack_var_cmp): Sort by descending order of size.
209         (partition_stack_vars): Change heuristic.
210         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
211         (dump_stack_var_partition): Add newline after each partition.
212
213 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
214             Jeff Law  <law@redhat.com>
215
216         * gengtype-state.c (read_a_state_token): Fix argument to
217         obstack_free.
218         * gengtype.c (matching_file_name_substitute): Likewise.
219
220 2011-04-21  Richard Guenther  <rguenther@suse.de>
221
222         PR lto/48703
223         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
224
225 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
226
227         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
228
229 2011-04-21  Richard Guenther  <rguenther@suse.de>
230
231         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
232         file name.
233
234 2011-04-21  Richard Guenther  <rguenther@suse.de>
235
236         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
237         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
238         Use DECL_P, not SSA_VAR_P.
239         (ptr_derefs_may_alias_p): Likewise.
240         (ptr_deref_may_alias_ref_p_1): Likewise.
241         (decl_refs_may_alias_p): Likewise.
242         (refs_may_alias_p_1): Likewise.
243         (ref_maybe_used_by_call_p_1): Likewise.
244         (call_may_clobber_ref_p_1): Likewise.
245         (indirect_ref_may_alias_decl_p): Assume indirect refrences
246         are either MEM_REF or TARGET_MEM_REF.
247         (indirect_refs_may_alias_p): Likewise.
248         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
249         for MEM_EXPR of indirect calls.
250
251 2011-04-21  Tristan Gingold  <gingold@adacore.com>
252
253         * vmsdbgout.c (write_srccorr): Compute file length from the string.
254         (dst_file_info_struct): Remove flen field.
255         (lookup_filename): Remove code that set flen field.
256
257 2011-04-21  Tristan Gingold  <gingold@adacore.com>
258
259         * config/ia64/ia64.c (ia64_start_function): Add a guard.
260
261 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
262
263         PR target/48708
264         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
265         vec_extract and vec_concat for non-SSE4_1 targets.
266
267 2011-04-21  Richard Guenther  <rguenther@suse.de>
268
269         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
270         return statements.
271
272 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
273
274         * config/i386/cygming.h (union tree_node, TREE): Don't define or
275         undefine.
276         (FILE): Don't undefine.
277
278 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
279
280         * config/alpha/alpha.c (struct machine_function): Use rtx, not
281         struct rtx_def *.
282         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
283         struct rtx_def *.
284         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
285         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
286         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
287         rtx_def *.
288         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
289         definitions where used.
290         * config/microblaze/microblaze.h (struct microblaze_args): Use
291         rtx, not struct rtx_def *.
292         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
293         rtx_def *.
294         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
295         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
296         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
297         not struct rtx_def *.
298         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
299         struct rtx_def *.
300         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
301         rtx_def *.
302         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
303
304 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
305
306         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
307         operand_equal_p to compare DR_BASE_ADDRESSes.
308         (vect_check_interleaving): Likewise.
309
310 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
311
312         PR target/46329
313         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
314         for all Neon struct constants.
315
316 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
317
318         * target.def (legitimate_constant_p): New hook.
319         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
320         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
321         * doc/tm.texi: Regenerate.
322         * hooks.h (hook_bool_mode_rtx_true): Declare.
323         * hooks.c (hook_bool_mode_rtx_true): Define.
324         * system.h (LEGITIMATE_CONSTANT_P): Poison.
325         * calls.c (precompute_register_parameters): Replace uses of
326         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
327         (emit_library_call_value_1): Likewise.
328         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
329         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
330         * ira-costs.c (scan_one_insn): Likewise.
331         * recog.c (general_operand, immediate_operand): Likewise.
332         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
333         * reload1.c (init_eliminable_invariants): Likewise.
334
335         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
336         mode argument.
337         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
338         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
339         argument.
340         (TARGET_LEGITIMATE_CONSTANT_P): Define.
341         * config/alpha/predicates.md (input_operand): Update call to
342         alpha_legitimate_constant_p.
343
344         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
345         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
346         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
347         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
348         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
349         (arm_legitimate_constant_p): New functions.
350         (arm_cannot_force_const_mem): Make static.
351
352         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
353
354         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
355         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
356         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
357         instead of bfin_legitimate_constant_p.
358         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
359         (TARGET_LEGITIMATE_CONSTANT_P): Define.
360
361         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
362
363         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
364
365         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
366         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
367         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
368         (frv_legitimate_constant_p): Make static.  Add a mode argument.
369
370         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
371         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
372         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
373
374         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
375         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
376         * config/i386/i386.c (legitimate_constant_p): Rename to...
377         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
378         argument.
379         (ix86_cannot_force_const_mem): Update accordingly.
380         (ix86_legitimate_address_p): Likewise.
381         (TARGET_LEGITIMATE_CONSTANT_P): Define.
382         * config/i386/i386.md: Update commentary.
383
384         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
385         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
386         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
387         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
388
389         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
390
391         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
392         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
393         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
394         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
395
396         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
397         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
398         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
399
400         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
401         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
402         (m32r_legitimate_constant_p): New function.
403
404         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
405         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
406         LEGITIMATE_CONSTANT_P.
407         (LEGITIMATE_CONSTANT_P): Delete.
408         * config/m68k/m68k.c (m68k_expand_prologue): Call
409         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
410         (m68k_legitimate_constant_p): New function.
411         * config/m68k/m68k.md: Update comments.
412
413         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
414         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
415         (mcore_legitimate_constant_p): New function.
416
417         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
418         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
419         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
420         Add a mode argument.
421         (mep_legitimate_address): Update accordingly.
422         (TARGET_LEGITIMATE_CONSTANT_P): Define.
423
424         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
425         Delete.
426         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
427         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
428         static.  Check OP's mode for VOIDmode.
429         (microblaze_legitimate_constant_p): New function.
430         (TARGET_LEGITIMATE_CONSTANT_P): Define.
431
432         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
433         * config/mips/mips.c (mips_legitimate_constant_p): New function.
434         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
435         (TARGET_LEGITIMATE_CONSTANT_P): Define.
436         * config/mips/predicates.md: Update comments.
437
438         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
439         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
440         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
441         (mmix_legitimate_constant_p): Make static, return a bool, and take
442         a mode argument.
443         (mmix_print_operand_address): Update accordingly.
444
445         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
446         Delete.
447         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
448         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
449         static.  Add a mode argument.
450         (TARGET_LEGITIMATE_CONSTANT_P): Define.
451
452         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
453
454         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
455         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
456         (pa_legitimate_constant_p): New function.
457
458         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
459
460         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
461         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
462         (pdp11_legitimate_constant_p): New function.
463
464         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
465         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
466         (rs6000_legitimate_constant_p): New function.
467
468         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
469         (rx_legitimate_constant_p): ...this.
470         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
471         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
472         (rx_legitimate_constant_p): ...this.
473         (TARGET_LEGITIMATE_CONSTANT_P): Define.
474         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
475
476         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
477         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
478         * config/s390/s390.c (legitimate_constant_p): Rename to...
479         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
480         and add a mode argument.
481         (TARGET_LEGITIMATE_CONSTANT_P): Define.
482
483         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
484
485         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
486         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
487         (sh_legitimate_constant_p): New function.
488
489         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
490         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
491         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
492         (legitimate_constant_p): Rename to...
493         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
494         argument.
495         (constant_address_p): Update accordingly.
496
497         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
498         argument and return a bool.
499         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
500         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
501         (spu_legitimate_constant_p): Add a mode argument and return a bool.
502         (spu_rtx_costs): Update accordingly.
503         * config/spu/predicates.md (vec_imm_operand): Likewise.
504
505         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
506
507         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
508         * config/v850/v850.c (v850_legitimate_constant_p): New function.
509         (TARGET_LEGITIMATE_CONSTANT_P): Define.
510
511         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
512         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
513         * config/vax/vax.c (legitimate_constant_p): Likewise.
514
515         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
516         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
517         (xtensa_legitimate_constant_p): New function.
518
519 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
520
521         * target.def (cannot_force_const_mem): Add a mode argument.
522         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
523         * doc/tm.texi: Regenerate.
524         * hooks.h (hook_bool_mode_rtx_false): Declare.
525         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
526         (hook_bool_mode_const_rtx_true): Likewise.
527         (hook_bool_mode_rtx_false): New function.
528         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
529         to be non-VOID.  Update call to cannot_force_const_mem.
530         (find_reloads): Update accordingly.
531         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
532         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
533         argument.
534         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
535         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
536         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
537         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
538         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
539         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
540         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
541         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
542         (m68k_cannot_force_const_mem): ...this new function.
543         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
544         argument.
545         (mips_const_insns, mips_legitimize_const_move): Update calls.
546         (mips_secondary_reload_class): Likewise.
547         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
548         (pa_cannot_force_const_mem): ...this new function.
549         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
550         (rs6000_cannot_force_const_mem): ...this new function.
551         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
552         argument.
553         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
554         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
555         to...
556         (xtensa_cannot_force_const_mem): ...this new function.
557
558 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
559
560         * config/mips/mips.c (mips16_build_function_stub): Call
561         build_function_type_list instead of build_function_type.
562         (mips16_build_call_stub): Likewise.
563
564 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
565
566         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
567         instead of build_function_type.
568
569 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
570
571         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
572         instead of build_function_type.
573
574 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
575
576         PR target/48678
577         * config/i386/i386.md (insv): Change operand 0 constraint to
578         "register_operand".  Change operand 1 and 2 constraint to
579         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
580         * config/i386/sse.md (sse4_1_pinsrb): Export.
581         (sse2_pinsrw): Ditto.
582         (sse4_1_pinsrd): Ditto.
583         (sse4_1_pinsrq): Ditto.
584         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
585         * config/i386/i386.c (ix86_expand_pinsr): New.
586
587 2011-04-20  Easwaran Raman  <eraman@google.com>
588
589         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
590         containing union type only with -fstrict-aliasing.
591
592 2011-04-20  Jim Meyering  <meyering@redhat.com>
593
594         Remove useless if-before-free tests.
595         * calls.c (expand_call, save_area): Likewise.
596         * cfgcleanup.c (try_forward_edges): Likewise.
597         * collect2.c (collect_execute): Likewise.
598         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
599         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
600         * coverage.c (coverage_checksum_string): Likewise.
601         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
602         * cselib.c (cselib_init): Likewise.
603         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
604         (df_set_clean_cfg): Likewise.
605         * function.c (free_after_compilation): Likewise.
606         * gcc.c (do_spec_1, main): Likewise.
607         * gcov.c (create_file_names): Likewise.
608         * gensupport.c (identify_predicable_attribute): Likewise.
609         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
610         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
611         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
612         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
613         * ipa-pure-const.c (local_pure_const): Likewise.
614         * ipa-reference.c (propagate): Likewise.
615         * ira-costs.c (free_ira_costs): Likewise.
616         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
617         * matrix-reorg.c (mat_free): Likewise.
618         * prefix.c (get_key_value): Likewise.
619         * profile.c (compute_value_histograms): Likewise.
620         * reload1.c (free_reg_equiv): Likewise.
621         * sched-deps.c (free_deps): Likewise.
622         * sel-sched-ir.c (fence_clear): Likewise.
623         * sese.c (set_rename, if_region_set_false_region): Likewise.
624         * tree-data-ref.c (free_rdg): Likewise.
625         * tree-eh.c (lower_try_finally): Likewise.
626         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
627         * tree-ssa-live.c (delete_var_map): Likewise.
628         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
629         * tree-ssa-pre.c (phi_trans_add): Likewise.
630
631 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
632
633         PR tree-optimization/48611
634         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
635         beyond ERT_MUST_NOT_THROW region.
636
637 2011-04-20  Catherine Moore  <clm@codesourcery.com>
638
639         * config/mips/mips.opt (mfix-24k): New.
640         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
641         * config/mips/mips.md (length): Increase by 4 for stores if
642         fixing 24K errata.
643         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
644         all noreorder if fixing 24K errata.
645         * doc/invoke.texi: Document mfix-24k.
646
647 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
648
649         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
650         quad-word modes, reduce to 9-bit index range when above 1016 limit.
651
652 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
653
654         * config/arm/arm.c (arm_gen_constant): Move movw support ....
655         (const_ok_for_op): ... to here.
656
657 2011-04-20  Kai Tietz  <ktietz@redhat.com>
658
659         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
660         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
661
662 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
663
664         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
665
666 2011-04-20  Richard Guenther  <rguenther@suse.de>
667
668         PR tree-optimization/47892
669         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
670         are if-convertible.
671
672 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
673
674         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
675
676 2011-04-20  Tristan Gingold  <gingold@adacore.com>
677
678         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
679
680 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
681
682         PR target/18145
683
684         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
685         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
686         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
687         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
688         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
689
690         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
691         New prototype.
692
693         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
694         (avr_asm_named_section, avr_asm_output_aligned_common,
695         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
696         New functions to update...
697         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
698         (avr_asm_init_sections): Overwrite section callbacks for
699         data_section, bss_section.
700         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
701         from here to...
702         (avr_file_end): ...here.
703
704 2011-04-20  Richard Guenther  <rguenther@suse.de>
705
706         PR middle-end/48695
707         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
708         objects and types here.  Adjust for their offset before comparing.
709
710 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
711
712         * tree-vect-stmts.c (vectorizable_store): Only chain one related
713         statement per copy.
714
715 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
716
717         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
718         (GIMPLE_H): Include $(INTERNAL_FN_H).
719         (OBJS-common): Add internal-fn.o.
720         (internal-fn.o): New rule.
721         * internal-fn.def: New file.
722         * internal-fn.h: Likewise.
723         * internal-fn.c: Likewise.
724         * gimple.h: Include internal-fn.h.
725         (GF_CALL_INTERNAL): New gf_mask.
726         (gimple_statement_call): Put fntype into a union with a new
727         internal_fn field.
728         (gimple_build_call_internal): Declare.
729         (gimple_build_call_internal_vec): Likewise.
730         (gimple_call_same_target_p): Likewise.
731         (gimple_call_internal_p): New function.
732         (gimple_call_internal_fn): Likewise.
733         (gimple_call_fntype): Return null for internal calls.
734         (gimple_call_set_fntype): Assert that the function is not internal.
735         (gimple_call_set_fn): Likewise.
736         (gimple_call_set_fndecl): Likewise.
737         (gimple_call_set_internal_fn): New function.
738         (gimple_call_addr_fndecl): Handle null functions.
739         (gimple_call_return_type): Likewise null types.
740         * gimple.c (gimple_build_call_internal_1): New function.
741         (gimple_build_call_internal): Likewise.
742         (gimple_build_call_internal_vec): Likewise.
743         (gimple_call_same_target_p): Likewise.
744         (gimple_call_flags): Handle calls to internal functions.
745         (gimple_call_fnspec): New function.
746         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
747         (gimple_has_side_effects): Handle null functions.
748         (gimple_rhs_has_side_effects): Likewise.
749         (gimple_call_copy_skip_args): Handle calls to internal functions.
750         * cfgexpand.c (expand_call_stmt): Likewise.
751         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
752         * gimple-fold.c (gimple_fold_call): Handle null functions.
753         (gimple_fold_stmt_to_constant_1): Don't fold
754         calls to internal functions.
755         * gimple-low.c (gimple_check_call_args): Handle calls to internal
756         functions.
757         * gimple-pretty-print.c (dump_gimple_call): Likewise.
758         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
759         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
760         (do_warn_unused_result): Likewise.
761         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
762         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
763         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
764         the target of a call.
765         (initialize_hash_element): Update accordingly.
766         (hashable_expr_equal_p): Use gimple_call_same_target_p.
767         (iterative_hash_hashable_expr): Handle calls to internal functions.
768         (print_expr_hash_elt): Likewise.
769         * tree-ssa-pre.c (can_value_number_call): Likewise.
770         (eliminate): Handle null functions.
771         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
772         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
773         (find_func_aliases): Likewise.
774         * value-prof.c (gimple_ic_transform): Likewise.
775         (gimple_indirect_call_to_profile): Likewise.
776         * lto-streamer-in.c (input_gimple_stmt): Likewise.
777         * lto-streamer-out.c (output_gimple_stmt): Likewise.
778
779 2011-04-19  Jan Hubicka  <jh@suse.cz>
780
781         * ipa-inline-transform.c (save_inline_function_body): Add comments.
782         * ipa-inline.c (inline_small_functions): Compute summaries first,
783         populate heap later.
784
785 2011-04-19  Jan Hubicka  <jh@suse.cz>
786
787         * cgraph.h (save_inline_function_body): Remove.
788         * ipa-inline-transform.c: New file, broke out of...
789         * ipa-inline.c: ... this one; Update toplevel comment.
790         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
791         make global.
792         (update_noncloned_frequencies): Move to ipa-inline-transform.c
793         (cgraph_mark_inline_edge): Rename to inline_call; move to
794         ipa-inline-transform.c.
795         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
796         move to ipa-inline-transform.c
797         (recursive_inlining, inline_small_functions, flatten_function,
798         ipa_inline, inline_always_inline_functions,
799         early_inline_small_functions): Update.
800         (inline_transform): Move to ipa-inline-transform.c.
801         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
802         Declare.
803         * Makefile.in (ipa-inline-transform.o): New file.
804         * cgraphunit.c (save_inline_function_body): Move to
805         ipa-inline-transform.c
806
807 2011-04-19  DJ Delorie  <dj@redhat.com>
808
809         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
810         registers if we already know there aren't any.
811         (m32c_emit_epilogue): Don't emit a barrier here.
812         (m32c_emit_eh_epilogue): Likewise.
813         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
814         operands at expand time.
815         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
816         int" wchar type.
817         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
818         duplicates.  Provide aliases instead.
819         * config/m32c/prologue.md (eh_return): Emit a barrier here.
820         (eh_epilogue): Add a "(return)" here as a hint to other parts of
821         the compiler.
822
823 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
824
825         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
826         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
827         (general_or_i64_p, sparc_register_move_cost): New function.
828
829 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
830
831         * doc/install.texi (Configuration, --enable-threads): Remove mach.
832         Add lynx, mipssde.  Sort table.
833
834 2011-04-19  Xinliang David Li  <davidxl@google.com>
835
836         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
837         not negative.
838
839 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
840
841         PR target/48678
842         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
843         is a SUBREG with non-MODE_INT mode inside of it.
844
845 2011-04-19  Martin Jambor  <mjambor@suse.cz>
846
847         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
848         also according to actual contants.
849         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
850         (gimple_fold_call): Use it.
851         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
852
853 2011-04-19  Martin Jambor  <mjambor@suse.cz>
854
855         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
856         non-pointer assignments.
857
858 2011-04-19  Martin Jambor  <mjambor@suse.cz>
859
860         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
861         account anc_offset and otr_type from the indirect edge info.
862         * ipa-prop.c (get_ancestor_addr_info): New function.
863         (compute_complex_ancestor_jump_func): Assignment analysis moved to
864         get_ancestor_addr_info, call it.
865         (ipa_note_param_call): Do not initialize information about polymorphic
866         calls, return the indirect call graph edge.  Remove the last
867         parameter, adjust all callers.
868         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
869         parameters.  Initialize polymorphic information in the indirect edge.
870
871 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
872
873         PR lto/48148
874         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
875         the types if they have different enumeration identifiers.
876
877 2011-04-19  Jan Hubicka  <jh@suse.cz>
878
879         * cgraph.h (cgraph_optimize_for_size_p): Declare.
880         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
881         * predict.c (cgraph_optimize_for_size_p): Break out from ...
882         (optimize_function_for_size_p) ... here.
883
884 2011-04-19  Richard Guenther  <rguenther@suse.de>
885
886         PR lto/48207
887         * tree.c (free_lang_data): Do not reset the decl-assembler-name
888         langhook.
889
890 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
891
892         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
893         if DECL_NO_INLINE_WARNING_P is set on the function.
894
895 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
896
897         PR fortran/47976
898         * reload1.c (inc_for_reload): Return void. All callers changed.
899         (emit_input_reload_insns): Don't try to delete previous output
900         reloads to a register, or record spill_reg_store for autoincs.
901
902 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
903
904         * gengtype.h: Updated copyright year.
905         (struct input_file_st): Add inpisplugin field.
906         (type_fileloc): New function.
907         * gengtype.c
908         (write_typed_struct_alloc_def): Add gcc_assert.
909         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
910         (write_typed_alloc_defns): Don't output for plugin files.
911         (input_file_by_name): Clear inpisplugin field.
912         (main): Set inpisplugin field for plugin files.
913
914 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
915
916         * gengtype-state.c (string_eq): New.
917         (read_state): Use string_eq instead of strcmp when creating the
918         state_ident_tab.
919
920 2011-04-19  Wei Guozhi  <carrot@google.com>
921
922         PR target/47855
923         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
924         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
925         linkage.
926         * config/arm/constraints.md (Uu): New constraint.
927         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
928
929 2011-04-19  Tristan Gingold  <gingold@adacore.com>
930
931         * config.gcc (-*-*-*vms): Added.
932         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
933         definitions moved.
934         * config/vms/vms-ld.c: New file.
935         * config/vms/vms-ar.c: New file.
936         * config/vms/t-vmsnative: New file.
937
938 2011-04-18  Xinliang David Li  <davidxl@google.com>
939
940         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
941
942 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
943
944         PR middle-end/48661
945         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
946         if TREE_TYPE (v) is non-NULL.
947
948         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
949         gimple_get_virt_mehtod_for_binfo.
950         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
951         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
952         callers.
953         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
954
955 2011-04-18  Michael Matz  <matz@suse.de>
956             Steve Ellcey  <sje@cup.hp.com>
957
958         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
959         use its mode as source mode if it isn't VOIDmode.
960
961 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
962
963         * doc/passes.texi: Fill crossref nodes.
964
965 2011-04-18  Jim Meyering  <meyering@redhat.com>
966
967         Fix doubled-word typos in comments and strings
968         * config/alpha/vms-unwind.h: s/for for/for/
969         * config/arm/unwind-arm.h: Likewise.
970         * config/microblaze/microblaze.c: Likewise.
971         * config/sh/constraints.md: s/in in/in/
972         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
973
974 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
975
976         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
977         (AVX_FLOAT_MODE_P): Ditto.
978         (AVX128_VEC_FLOAT_MODE_P): Ditto.
979         (AVX256_VEC_FLOAT_MODE_P): Ditto.
980         (AVX_VEC_FLOAT_MODE_P): Ditto.
981         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
982         (UNSPEC_MASKSTORE): Ditto.
983         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
984         Merge from <sse>_movmsk<ssemodesuffix> and
985         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
986         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
987         iterator.
988         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
989         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
990         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
991
992 2011-04-18  Jan Hubicka  <jh@suse.cz>
993
994         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
995
996         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
997         (want_inline_function_called_once_p): Break out the logic from
998         ipa_inline.
999         (edge_badness): Ensure that profile is not misupdated.
1000         (lookup_recursive_calls): Prioritize by call frequencies.
1001         (inline_small_functions): Move program size estimates here;
1002         actually process whole queue even when unit growth has been
1003         met. (to properly compute inline_failed reasons and for the
1004         case unit size decrease.) Revisit comments on recursive inlining.
1005         (ipa_inline): Remove unit summary code; first inline hot calls
1006         of functions called once, cold calls next.
1007         (order, nnodes): Remove unused variables.
1008         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
1009         (GTFILES): Remove ipa-inline.c
1010         * sel-sched.c (fill_insns): Silence uninitialized var warning.
1011
1012 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
1013
1014         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
1015
1016 2011-04-18  Jie Zhang  <jie@codesourcery.com>
1017             Richard Earnshaw  <rearnsha@arm.com>
1018
1019         * arm.c (neon_builtin_type_bits): Remove.
1020         (typedef enum neon_builtin_mode): New.
1021         (T_MAX): Don't define.
1022         (typedef enum neon_builtin_datum): Remove bits, codes[],
1023         num_vars and base_fcode.  Add mode, code and fcode.
1024         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
1025         VAR10): Change accordingly.
1026         (neon_builtin_data[]): Change accordingly
1027         (arm_init_neon_builtins): Change accordingly.
1028         (neon_builtin_compare): Remove.
1029         (locate_neon_builtin_icode): Remove.
1030         (arm_expand_neon_builtin): Change accordingly.
1031
1032         * arm.h (enum arm_builtins): Move to ...
1033         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
1034
1035         * arm.c (arm_builtin_decl): Declare.
1036         (TARGET_BUILTIN_DECL): Define.
1037         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
1038         (arm_builtin_decls[]): New.
1039         (arm_init_neon_builtins): Store builtin declarations in
1040         arm_builtin_decls[].
1041         (arm_init_tls_builtins): Likewise.
1042         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
1043         (arm_builtin_decl): New.
1044
1045 2011-04-18  Richard Guenther  <rguenther@suse.de>
1046
1047         * tree.c (upper_bound_in_type): Build properly canonicalized
1048         INTEGER_CSTs.
1049         (lower_bound_in_type): Likewise.
1050
1051 2011-04-18  Richard Guenther  <rguenther@suse.de>
1052
1053         * gimple.h (gimple_call_addr_fndecl): New function.
1054         (gimple_call_fndecl): Use it.
1055         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
1056         for direct calls.
1057         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
1058         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
1059
1060 2011-04-18  Richard Guenther  <rguenther@suse.de>
1061
1062         PR middle-end/48650
1063         * tree.c (build_string): STRING_CST is now derived from tree_typed.
1064
1065 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
1066
1067         PR lto/48492
1068         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
1069         DECL_IN_CONSTANT_POOL without RTL.
1070
1071 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
1072             Ira Rosen  <ira.rosen@linaro.org>
1073
1074         PR target/48252
1075         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
1076         to match neon_vzip/vuzp/vtrn_internal.
1077         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
1078         outputs explicitly dependent on both inputs.
1079         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
1080
1081 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
1082
1083         PR tree-optimization/48616
1084         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
1085         whether the shift is by scalar or vector based on whether all SLP
1086         scalar stmts have the same rhs.
1087
1088 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
1089
1090         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
1091         memory operands.
1092
1093 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
1094
1095         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
1096         registers.
1097
1098 2011-04-17  Jan Hubicka  <jh@suse.cz>
1099
1100         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
1101         * cgrpahunit.c (cgraph_finalize_function): Do not set
1102         finalized_by_frontend.
1103         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
1104         finalized_by_frontend.
1105
1106 2011-04-17  Jan Hubicka  <jh@suse.cz>
1107
1108         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
1109         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
1110         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
1111         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
1112         method.
1113         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
1114         gimple-fold.c
1115         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
1116
1117 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
1118
1119         PR lto/48538
1120         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
1121         is non-null before accessing it.
1122         (input_cgraph): Remove trailing spaces.
1123
1124 2011-04-17  Revital Eres  <revital.eres@linaro.org>
1125
1126         * params.def (sms-min-sc): New param flag.
1127         * modulo-sched.c (sms_schedule): Use it.
1128         * doc/invoke.texi (sms-min-sc): Document it.
1129
1130 2011-04-17  Jan Hubicka  <jh@suse.cz>
1131
1132         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
1133         present, also set gimple_call_set_cannot_inline.
1134         * ipa-inline.c: Update toplevel comment.
1135         (MAX_TIME): Remove.
1136         (cgraph_clone_inlined_nodes): Fix linebreaks.
1137         (cgraph_check_inline_limits): Restructure to ...
1138         (caller_growth_limits): ... this one; be more tolerant
1139         on growth in nested inline chains; add explanatory comment;
1140         fix stack accounting thinko introduced by previous patch.
1141         (cgraph_default_inline_p): Remove.
1142         (report_inline_failed_reason): New function.
1143         (can_inline_edge_p): New function.
1144         (can_early_inline_edge_p): New function.
1145         (leaf_node_p): Move upwards in file.
1146         (want_early_inline_function_p): New function.
1147         (want_inline_small_function_p): New function.
1148         (want_inline_self_recursive_call_p): New function.
1149         (cgraph_edge_badness): Rename to ...
1150         (edge_badness) ... this one; fix linebreaks.
1151         (update_edge_key): Update call of edge_baddness; add
1152         detailed dump about queue updates.
1153         (update_caller_keys): Use can_inline_edge_p and
1154         want_inline_small_function_p.
1155         (cgraph_decide_recursive_inlining): Rename to...
1156         (recursive_inlining): Use can_inline_edge_p and
1157         want_inline_self_recursive_call_p; simplify and remove no longer
1158         valid FIXME.
1159         (cgraph_set_inline_failed): Remove.
1160         (add_new_edges_to_heap): Use can_inline_edge_p and
1161         want_inline_small_function_p.
1162         (cgraph_decide_inlining_of_small_functions): Rename to ...
1163         (inline_small_functions): ... this one; cleanup; use
1164         can/want predicates; cleanup debug ouput; work edges till fibheap
1165         is exhausted and do not stop once unit growth is reached; remove
1166         later loop processing remaining edges.
1167         (cgraph_flatten): Rename to ...
1168         (flatten_function): ... this one; use can_inline_edge_p
1169         and can_early_inline_edge_p predicates.
1170         (cgraph_decide_inlining): Rename to ...
1171         (ipa_inline): ... this one; remove unreachable nodes before
1172         inlining functions called once; simplify the pass.
1173         (cgraph_perform_always_inlining): Rename to ...
1174         (inline_always_inline_functions): ... this one; use
1175         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
1176         (cgraph_decide_inlining_incrementally): Rename to ...
1177         (early_inline_small_functions): ... this one; simplify
1178         using new predicates; cleanup; make dumps prettier.
1179         (cgraph_early_inlining): Rename to ...
1180         (early_inliner): newer inline regular functions into always-inlines;
1181         fix updating of call stmt summaries.
1182         (pass_early_inline): Update for new names.
1183         (inline_transform): Fix formating.
1184         (gate_cgraph_decide_inlining): Rename to ...
1185         (pass_ipa_inline): ... this one.
1186         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
1187         * ipa-inline-analysis.c (dump_inline_summary): Update.
1188         (compute_inline_parameters): Do not compute disregard_inline_limits;
1189         look for mismatching arguments.
1190         (estimate_growth): Fix handlig of non-trivial self recursion.
1191         (inline_read_summary): Do not read info->disregard_inline_limits.
1192         (inline_write_summary): Do not write info->disregard_inline_limits.
1193         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
1194         and move all checks into can_inline_edge_p predicate; re-enable code
1195         comparing optimization levels.
1196         (expand_call_inline): Do not test inline_forbidden_into_p.
1197         * Makefile.in (ipa-inline.o): Update arguments.
1198
1199 2011-04-17  Revital Eres  <revital.eres@linaro.org>
1200
1201         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
1202
1203 2011-04-17  Revital Eres  <revital.eres@linaro.org>
1204
1205         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
1206
1207 2011-04-17  Michael Matz  <matz@suse.de>
1208
1209         PR tree-optimization/48622
1210         PR lto/48645
1211         * ipa-inline-analysis.c (inline_read_summary): Read size/time
1212         in same order as they're written.
1213
1214 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1215
1216         * config/pa/predicates.md: Reorganize and simplify predicates.
1217         Eliminate duplicate code checks.
1218         (arith_operand): Rename to arith14_operand
1219         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
1220         * config/pa/pa.md: Use renamed operands.
1221         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
1222         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
1223         arith11_operand, adddi3_operand, indexed_memory_operand,
1224         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
1225         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
1226         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
1227         move_dest_operand, move_src_operand, prefetch_cc_operand,
1228         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
1229         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
1230         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
1231         div_operand, int5_operand, movb_comparison_operator,
1232         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
1233         arith_double_operand, ireg_operand, lhs_lshift_operand,
1234         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
1235         integer_store_memory_operand): Likewise.
1236         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
1237         (integer_store_memory_operand, read_only_operand,
1238         function_label_operand, borx_reg_operand,
1239         non_hard_reg_operand): Likewise.
1240         (eq_neq_comparison_operator): Delete unused operator.
1241         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
1242         function_label_operand.
1243         (emit_move_sequence): Likewise.
1244
1245 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
1246
1247         * config/i386/sse.md (sseunpackmode): New mode attribute.
1248         (ssepackmode): Ditto.
1249         (vec_pack_trunc_<mode>): Macroize expander from
1250         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
1251         (vec_unpacks_lo_<mode>): Macroize expander from
1252         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1253         (vec_unpacks_hi_<mode>): Macroize expander from
1254         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1255         (vec_unpacku_lo_<mode>): Macroize expander from
1256         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1257         (vec_unpacku_hi_<mode>): Macroize expander from
1258         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1259         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
1260         ix86_expand_sse4_unpack.
1261         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
1262
1263 2011-04-16  Jan Hubicka  <jh@suse.cz>
1264
1265         * cgraphbuild.c: Include ipa-inline.h.
1266         (reset_inline_failed): Use initialize_inline_failed.
1267         * cgraph.c: Include ipa-inline.h.
1268         (cgraph_create_node_1): Do not initialize estimated_growth.
1269         (initialize_inline_failed): More to ipa-inline-analysis.c
1270         (dump_cgraph_node): Do not dump inline flags.
1271         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
1272         and disregard_inline_limits flags.
1273         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
1274         time, size, estimated_growth.
1275         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
1276         Update.
1277         * cgraphunit.c (cgraph_decide_is_function_needed): Use
1278         DECL_DISREGARD_INLINE_LIMITS.
1279         (cgraph_analyze_function): Do not initialize
1280         node->local.disregard_inline_limits.
1281         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
1282         inlinable, versionable and disregard_inline_limits.
1283         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
1284         cgraph_check_inline_limits, cgraph_default_inline_p,
1285         cgraph_edge_badness, update_caller_keys, update_callee_keys,
1286         add_new_edges_to_heap): Update.
1287         (cgraph_decide_inlining_of_small_function): Update; set
1288         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
1289         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
1290         cgraph_decide_inlining_incrementally): Update.
1291         * ipa-inline.h (inline_summary): Add inlinable, versionable,
1292         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
1293         time, size and estimated_growth parameters.
1294         (estimate_edge_growth): Update.
1295         (initialize_inline_failed): Declare.
1296         * ipa-split.c: Include ipa-inline.h
1297         (execute_split_functions): Update.
1298         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
1299         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
1300         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
1301         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
1302         estimated_growth to INT_MIN.
1303         (inline_node_duplication_hook): Likewise.
1304         (dump_inline_summary): Dump new fields.
1305         (compute_inline_parameters): Update.
1306         (estimate_edge_time, estimate_time_after_inlining,
1307         estimate_size_after_inlining, estimate_growth, inline_read_summary,
1308         inline_write_summary):
1309         (initialize_inline_failed): Move here from cgraph.c.
1310         * tree-sra.c: Include ipa-inline.h.
1311         (ipa_sra_preliminary_function_checks): Update.
1312         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
1313         ipa-inline.h.
1314
1315 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
1316
1317         * config/i386/sse.md (V16): New mode iterator.
1318         (VI1, VI8): Ditto.
1319         (AVXMODEQI, AVXMODEDI): Remove.
1320         (sse2, sse3): New mode attribute.
1321         (mov<mode>): Use V16 mode iterator.
1322         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
1323         (push<mode>1): Use V16 mode iterator.
1324         (movmisalign<mode>): Ditto.
1325         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1326         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
1327         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1328         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
1329         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
1330         avx_movdqu<avxmodesuffix>.
1331         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
1332         *avx_movdqu<avxmodesuffix>.
1333         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
1334         avx_lddqu<avxmodesuffix>.
1335         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
1336         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
1337         avx_movnt<AVXMODEDI:mode>.
1338         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
1339         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
1340
1341 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
1342
1343         PR target/48629
1344         * haifa-sched.c (prune_ready_list, schedule_block): Use
1345         sched_pressure_p rather than flag_sched_pressure.
1346
1347 2011-04-15  Pat Haugen <pthaugen@us.ibm.com>
1348
1349         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1350         cgraph_get_node instead of cgraph_get_create_node.
1351
1352 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
1353
1354         * cfgexpand.c (expand_debug_expr): Use
1355         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
1356
1357 2011-04-15  Michael Matz  <matz@suse.de>
1358
1359         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
1360         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
1361         * function.c (gimplify_parameters): Ditto.
1362         * gimplify.c (gimplify_vla_decl): Ditto.
1363
1364         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
1365         (gimple_call_set_alloca_for_var): New inline function.
1366         (gimple_call_alloca_for_var_p): Ditto.
1367         * gimple.c (gimple_build_call_from_tree): Remember
1368         CALL_ALLOCA_FOR_VAR_P state.
1369         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
1370
1371         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
1372         calls if they were for VLA objects.
1373
1374 2011-04-15  Martin Jambor  <mjambor@suse.cz>
1375
1376         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
1377         of ADR_EXPRs.
1378
1379 2011-04-15  Martin Jambor  <mjambor@suse.cz>
1380
1381         PR middle-end/48601
1382         * tree-emutls.c (lower_emutls_function_body): Call
1383         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
1384         result is non-NULL.
1385
1386 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
1387
1388         * c-decl.c (detect_field_duplicates): Call
1389         objc_detect_field_duplicates instead of objc_get_interface_ivars.
1390
1391 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
1392
1393         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
1394         * gimple.c (gimple_asm_clobbers_memory_p): Define.
1395         * ipa-pure-const.c (check_stmt): Call it.
1396         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
1397
1398 2011-04-15  Richard Guenther  <rguenther@suse.de>
1399
1400         PR tree-optimization/48290
1401         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
1402         Properly decide inhibiting propagation based on the valueized
1403         operand.  Do loop-closed SSA form preserving here ...
1404         (init_copy_prop): ... not here.
1405
1406 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
1407
1408         PR target/48612
1409         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
1410         (*ieee_smax<mode>3): Likewise.
1411
1412 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1413
1414         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
1415         Replace match_operand with match_dup for the third operand in
1416         these expanders.
1417
1418 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
1419
1420         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
1421         to track processing of conditionals.  Update all callers.
1422         (try_combine, simplify_if_then_else): Update.
1423
1424 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
1425
1426         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
1427         -fsched-pressure.
1428
1429 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
1430
1431         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
1432         instead of match_operand for operand 3.
1433
1434 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
1435
1436         * recog.h (insn_operand_data): Add an "allows_mem" field.
1437         * genoutput.c (output_operand_data): Initialize it.
1438         * optabs.c (maybe_legitimize_operand_same_code): New function.
1439         (maybe_legitimize_operand): Use it when matching the original
1440         op->value.
1441
1442 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
1443
1444         * gimplify.c: Fix issues in comments throughout.
1445         (voidify_wrapper_expr): Fix long line.
1446         (build_stack_save_restore): Likewise.
1447         (gimplify_loop_expr): Likewise.
1448         (gimplify_compound_lval): Likewise.
1449         (gimplify_init_ctor_eval): Likewise.
1450         (gimplify_modify_expr_rhs): Likewise.
1451         (omp_notice_threadprivate_variable): Likewise.
1452
1453 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
1454
1455         * cfgexpand.c (expand_call_stmt): Convert the function type to the
1456         original one if this is not a builtin function.
1457
1458 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
1459
1460         PR target/48605
1461         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
1462         offset it as needed based on top 2 bits in operands[3], change
1463         MEM mode to SFmode and mask those 2 bits away from operands[3].
1464
1465 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
1466
1467         * c-parser.c (c_parser_objc_protocol_definition): Updated for
1468         change from objc_declare_protocols() to objc_declare_protocol().
1469
1470 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
1471
1472         * config/i386/sse.md (sse4_1): New mode attribute.
1473         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
1474         avx_blend<ssemodesuffix><avxmodesuffix> and
1475         sse4_1_blend<ssemodesuffix> using VF mode iterator.
1476         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
1477         avx_blendv<ssemodesuffix><avxmodesuffix> and
1478         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
1479         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
1480         avx_dp<ssemodesuffix><avxmodesuffix> and
1481         sse4_1_dp<ssemodesuffix> using VF mode iterator.
1482         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
1483         (sse4_1_packusdw): Merge with *avx_packusdw.
1484         (sse4_1_pblendvb): Merge with *avx_pblendvb.
1485         (sse4_1_pblendw): Merge with *avx_pblendw.
1486         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
1487         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
1488         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
1489         VF mode iterator.
1490         (sse4_1_round<ssescalarmodesuffix>): Merge with
1491         *avx_round<ssescalarmodesuffix>.
1492         (aesenc): Merge with *avx_aesenc.
1493         (aesenclast): Merge with *avx_aesenclast.
1494         (aesdec): Merge with *avx_aesdec.
1495         (aesdeclast): Merge with *avx_aesdeclast.
1496         (pclmulqdq): Merge with *pclmulqdq.
1497         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
1498         New predicate.
1499         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
1500
1501 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
1502
1503         PR middle-end/48608
1504         * cfgexpand.c (get_decl_align_unit): Renamed to ...
1505         (align_local_variable): This.  Update DECL_ALIGN.
1506         (add_stack_var): Updated.
1507         (expand_one_stack_var): Likewise.
1508
1509 2011-04-14  Richard Guenther  <rguenther@suse.de>
1510
1511         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
1512         Remove.
1513         (dse_initialize_block_local_data, dse_leave_block,
1514         record_voperand_set, get_stmt_uid): Likewise.
1515         (dse_possible_dead_store_p): Allow any kind of killing stmt.
1516         (dse_optimize_stmt): Remove voperand set handling code.
1517         Simplify and improve to handle any kind of killing stmt.
1518         (dse_record_phi): Remove.
1519         (dse_enter_block): Simplify.
1520         (tree_ssa_dse): Likewise.
1521         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
1522
1523 2011-04-14  Jan Hubicka  <jh@suse.cz>
1524
1525         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
1526         * cgraph.h (struct inline_summary): Move to ipa-inline.h
1527         (cgraph_local_info): Remove inline_summary.
1528         * ipa-cp.c: Include ipa-inline.h.
1529         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
1530         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
1531         accesor.
1532         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
1533         (input_overwrite_node): Do not set inline summary.
1534         (input_node): Do not stream inline summary.
1535         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
1536         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
1537         growth; we do not have inline parameters computed for that anyway.
1538         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
1539         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
1540         (inline_summary_t): New type and VECtor.
1541         (debug_inline_summary, dump_inline_summaries): Declare.
1542         (inline_summary): Use VOCtor.
1543         (estimate_edge_growth): Kill hack computing call stmt size directly.
1544         * lto-section-in.c (lto_section_name): Add inline section.
1545         * ipa-inline-analysis.c: Include lto-streamer.h
1546         (node_removal_hook_holder, node_duplication_hook_holder): New holders
1547         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
1548         (inline_summary_vec): Define.
1549         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
1550         dump_inline_summaries): New functions.
1551         (estimate_function_body_sizes): Properly compute size/time of outgoing
1552         calls.
1553         (compute_inline_parameters): Alloc inline_summary; do not compute
1554         size/time of incomming calls.
1555         (estimate_edge_time): Avoid missing time summary hack.
1556         (inline_read_summary): Read inline summary info.
1557         (inline_write_summary): Write inline summary info.
1558         (inline_free_summary): Free all hooks and inline summary vector.
1559         * lto-streamer.h: Add LTO_section_inline_summary section.
1560         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
1561         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
1562
1563 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1564
1565         * tree-vectorizer.h (vect_strided_store_supported): Add a
1566         HOST_WIDE_INT argument.
1567         (vect_strided_load_supported): Likewise.
1568         (vect_permute_store_chain): Return void.
1569         (vect_transform_strided_load): Likewise.
1570         (vect_permute_load_chain): Delete.
1571         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
1572         count argument.  Check that the count is a power of two.
1573         (vect_strided_load_supported): Likewise.
1574         (vect_permute_store_chain): Return void.  Update after above changes.
1575         Assert that the access is supported.
1576         (vect_permute_load_chain): Likewise.
1577         (vect_transform_strided_load): Return void.
1578         * tree-vect-stmts.c (vectorizable_store): Update calls after
1579         above interface changes.
1580         (vectorizable_load): Likewise.
1581         (vect_analyze_stmt): Don't check for strided powers of two here.
1582
1583 2011-04-14  Richard Guenther  <rguenther@suse.de>
1584
1585         PR tree-optimization/48590
1586         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
1587         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1588         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
1589         BUILT_IN_STACK_SAVE.
1590         * tree-ssa-dce.c (propagate_necessity): Handle
1591         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1592
1593 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
1594
1595         * c-parser.c (c_parser_objc_class_declaration): Updated call to
1596         objc_declare_class.
1597
1598 2011-04-14  Richard Guenther  <rguenther@suse.de>
1599
1600         * tree.h (get_object_alignment_1): Declare.
1601         * builtins.c (get_object_alignment_1): Split out worker from ...
1602         (get_object_alignment): ... here.
1603         * fold-const.c (get_pointer_modulus_and_residue): Use
1604         get_object_alignment_1.
1605
1606 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1607
1608         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
1609         type parameter.
1610         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
1611         parameter.  Generalise code to handle arrays as well as vectors.
1612         (vect_setup_realignment): Update accordingly.
1613         * tree-vect-stmts.c (vectorizable_store): Likewise.
1614         (vectorizable_load): Likewise.
1615
1616 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1617
1618         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
1619         within the per-copy loop.
1620
1621 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1622
1623         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
1624         in the dump file.
1625
1626 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1627
1628         * doc/options.texi (Negative): Explicitly mention that the
1629         Negative chain must be circular.
1630
1631 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
1632
1633         * function.h (block_chainon): Declare.
1634         * function.c (block_chainon): Define.
1635
1636 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
1637             Eric Weddington  <eric.weddington@atmel.com>
1638             Georg-Johann Lay <avr@gjlay.de>
1639
1640         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
1641         New Includes
1642         (avr_init_builtins, avr_expand_builtin,
1643         avr_expand_delay_cycles, avr_expand_unop_builtin,
1644         avr_expand_binop_builtin ): New functions.
1645         (avr_builtin_id): New enum
1646         (struct avr_builtin_description): New struct
1647         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
1648         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
1649
1650         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
1651         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
1652         UNSPECV_DELAY_CYCLES): new enumeration values
1653         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
1654         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
1655         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
1656         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
1657         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
1658         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
1659         "fmulsu"): New insns
1660
1661         * config/avr/avr-c.c: fix line endings
1662         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
1663         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
1664         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
1665         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
1666         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
1667
1668         * doc/extend.texi (AVR Built-in Functions): New node
1669         (Target Builtins): Add documentation of AVR
1670         built-in functions.
1671
1672 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
1673
1674         PR target/44643
1675         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
1676         alone. Error if non-const data has attribute progmem.
1677
1678 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1679
1680         * tree.h (struct tree_constructor): Include tree_typed instead of
1681         tree_common.
1682         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
1683         TS_TYPED instead of TS_COMMON.
1684
1685 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
1686
1687         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
1688         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
1689         (sse2_psadbw): Merge with *avx_psadbw.
1690         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
1691         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
1692         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
1693         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
1694         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
1695         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
1696         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
1697         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
1698         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
1699         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
1700         (ssse3_palignrti): Merge with *avx_palignrti.
1701
1702 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1703
1704         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
1705         * tree-ssanames.c (fini_ssanames): VEC_free it.
1706         (make_ssa_name_fn): Update for VECness of free_ssanames.
1707         (release_ssa_name, release_dead_ssa_names): Likewise.
1708         * tree.h (struct tree_ssa_name): Include tree_typed instead of
1709         tree_common.
1710         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
1711         TS_TYPED instead of TS_COMMON.
1712
1713 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1714
1715         * postreload-gcse.c (gcse_after_reload_main): Add calls to
1716         statistics_counter_event.
1717         * tree-ssa-copyrename.c (stats): Define.
1718         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
1719         statistics_counter_event.
1720         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
1721         (bswap_stats, widen_mul_stats): Define.
1722         (insert_reciprocals): Increment rdivs_inserted.
1723         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
1724         rfuncs_inserted.  Add calls to statistics_counter_event.
1725         (execute_cse_sincos_1): Increment inserted.
1726         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
1727         statistics_counter_event.
1728         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
1729         of bswap_stats.  Add calls to statistics_counter_event.
1730         (convert_mult_to_widen): Increment widen_mults_inserted.
1731         (convert_plusminus_to_widen): Increment maccs_inserted.
1732         (convert_mult_to_fma): Increment fmas_inserted.
1733         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
1734         calls to statistics_counter_event.
1735
1736 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
1737
1738         PR rtl-optimization/48455
1739         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
1740         `temp_costs->mem_cost'.
1741
1742 2011-04-13  Jan Hubicka  <jh@suse.cz>
1743
1744         * ipa-inline.h: New file.
1745         * ipa-inline-analysis.c: New file. Broken out of ...
1746         * ipa-inline.c: ... this file; update toplevel comment;
1747         include ipa-inline.h
1748         (inline_summary): Move to ipa-inline.h
1749         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
1750         ipa-inline-analysis.c.
1751         (cgraph_estimate_time_after_inlining): Rename to
1752         estiamte_time_after_inlining; move to ipa-inline-analysis.c
1753         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
1754         to estimate_edge_growth.
1755         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
1756         rename to estimate_size_after_inlining.
1757         (cgraph_mark_inline_edge): Update for new naming convention.
1758         (cgraph_check_inline_limits): Likewise.
1759         (cgraph_edge_badness): Likewise.
1760         (cgraph_decide_recursive_inlining): Likewise.
1761         (cgraph_decide_inlining_of_small_functions): Likewise.
1762         (cgraph_decide_inlining_incrementally): Likewise.
1763         (cgraph_estimate_growth): Rename to estimate_growth; move to
1764         ipa-inline-analysis.c.
1765         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
1766         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
1767         (compute_inline_parameters): Likewise.
1768         (compute_inline_parameters_for_current): Likewise.
1769         (pass_inline_parameters): Likewise.
1770         (inline_indirect_intraprocedural_analysis): Likewise.
1771         (analyze_function): Rename to inline_analyze_function; likewise.
1772         (add_new_function): Move to ipa-inline-analysis.c.
1773         (inline_generate_summary): Likewise.
1774         (inline_read_summary): Likewise.
1775         (inline_write_summary): Likewise.
1776         * Makefile.in (ipa-inline-analysis.c): New file.
1777
1778 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1779
1780         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
1781         * configure: Regenerate.
1782
1783 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1784
1785         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
1786         instead of tree_common.
1787         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
1788         Likewise.
1789         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
1790         TS_TYPED rather than TS_COMMON.
1791         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
1792
1793 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
1794
1795         PR target/45263
1796         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
1797         r20 around calls of __tablejump_elpm__
1798
1799 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
1800
1801         PR middle-end/48591
1802         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
1803         NULL.
1804         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
1805
1806 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
1807
1808         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
1809         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
1810         (cfi_vec): New typedef.
1811         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
1812         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
1813         (cie_cfi_vec): New static variable.
1814         (cie_cfi_head): Delete.
1815         (add_cfi): Accept a cfi_vec * as first argument. All callers and
1816         declaration changed. Use vector rather than list operations.
1817         (new_cfi): Don't initialize the dw_cfi_next field.
1818         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
1819         rather than list operations.
1820         (lookup_cfa): Use vector rather than list operations.
1821         (output_cfis): New argument upto. Accept a cfi_vec rather than
1822         a dw_cfi_ref list head as argument. All callers changed.
1823         Iterate over the vector using upto as a maximum index.
1824         (output_all_cfis): New static function.
1825         (output_fde): Use vector rather than list operations. Use the
1826         new upto argument for output_cfis rather than manipulating a
1827         list.
1828         (dwarf2out_begin_prologue): Change initializations to match
1829         new struct members.
1830         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
1831         from the vector length rather than searching for the end of a list.
1832         Use output_all_cfis.
1833         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
1834
1835 2011-04-13  Nick Clifton  <nickc@redhat.com>
1836
1837         * config/rx/rx.md (movmemsi): Do not use this pattern when
1838         volatile pointers are involved.
1839
1840 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
1841
1842         * config/i386/sse.md (pinsrbits): Remove.
1843         (sse2_packsswb): Merge with *avx_packsswb.
1844         (sse2_packssdw): Merge with *avx_packssdw.
1845         (sse2_packuswb): Merge with *avx_packuswb.
1846         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
1847         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
1848         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
1849         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
1850         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
1851         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
1852         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
1853         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
1854         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
1855         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
1856         (sse2_loadld): Merge with *avx_loadld.
1857         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
1858         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
1859         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
1860         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
1861         (vec_concatv2di): Merge with *vec_concatv2di_avx.
1862
1863 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
1864
1865         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
1866         calling TREE_CHAIN.
1867         * print-tree.c (print_node): Likewise.
1868         * tree-inline.c (copy_tree_r): Likewise.
1869         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
1870         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
1871         instead of TS_COMMON.
1872         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
1873         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
1874         (copy_node_stat): Zero TREE_CHAIN only if necessary.
1875         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
1876         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
1877         ...and these...
1878         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
1879         * tree.h: ...here.
1880         (TREE_CHAIN): Check for a TS_COMMON structure.
1881         (TREE_TYPE): Check for a TS_TYPED structure.
1882
1883 2011-04-12  Pat Haugen <pthaugen@us.ibm.com>
1884
1885         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1886         cgraph_get_create_node instead of cgraph_node.
1887
1888 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1889
1890         * c-parser.c (c_parser_initelt): Updated call to
1891         objc_build_message_expr.
1892         (c_parser_postfix_expression): Likewise.
1893
1894 2011-04-12  Kai Tietz  <ktietz@redhat.com>
1895
1896         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
1897         MASK_MS_BITFIELD_LAYOUT bit.
1898
1899 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
1900
1901         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
1902         assert it is always true.
1903         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
1904         moves.
1905
1906 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1907
1908         * c-parser.c (c_lex_one_token): Rewritten conditional used when
1909         compiling Objective-C to be more efficient.
1910
1911 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
1912
1913         * opts-common.c (decode_cmdline_options_to_array): Remove variable
1914         argv_copied.
1915
1916 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1917
1918         * recog.h, genoutput.c, optabs.c: Revert last patch.
1919
1920 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1921
1922         PR target/48090
1923         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
1924
1925 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1926
1927         * recog.h (insn_operand_data): Add an "allows_mem" field.
1928         * genoutput.c (output_operand_data): Initialize it.
1929         * optabs.c (maybe_legitimize_operand_same_code): New function.
1930         (maybe_legitimize_operand): Use it when matching the original
1931         op->value.
1932
1933 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1934
1935         * genpreds.c (process_define_predicate): Move most processing
1936         to gensupport.c.  Continue to validate the expression.
1937         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
1938         (process_define_predicate): Move processing to gensupport.c.
1939         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
1940         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
1941         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
1942         argument.
1943         (valid_predicate_name_p): New function, split out from old
1944         genpreds.c:process_define_predicate.
1945         (process_define_predicate): New function, combining code from
1946         old genpreds.c and genrecog.c functions.
1947         (process_rtx): Call it for DEFINE_PREDICATE and
1948         DEFINE_SPECIAL_PREDICATE.
1949
1950 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1951
1952         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
1953         size of a '%A' memory reference.
1954         (T_DREG, T_QREG): New neon_builtin_type_bits.
1955         (arm_init_neon_builtins): Assert that the load and store operands
1956         are neon_struct_operands.
1957         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
1958         (NEON_ARG_MEMORY): New builtin_arg.
1959         (neon_dereference_pointer): New function.
1960         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
1961         Handle NEON_ARG_MEMORY.
1962         (arm_expand_neon_builtin): Update after above interface changes.
1963         Use NEON_ARG_MEMORY for loads and stores.
1964         * config/arm/predicates.md (neon_struct_operand): New predicate.
1965         * config/arm/iterators.md (V_two_elem): Tweak formatting.
1966         (V_three_elem): Use BLKmode for accesses that have no associated mode.
1967         (V_four_elem): Tweak formatting.
1968         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
1969         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
1970         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
1971         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
1972         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
1973         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
1974         (neon_vst4<mode>): Replace pointer operand with a memory operand.
1975         Use %A in the output template.
1976         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
1977         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
1978         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
1979         the width of the memory access.  Remove post-increment.
1980         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
1981
1982 2011-04-12  Nick Clifton  <nickc@redhat.com>
1983
1984         * config/v850/v850.c (expand_prologue): Do not use the CALLT
1985         instruction for interrupt handlers if the target is the basic V850
1986         architecture.
1987         (expand_epilogue): Likewise.
1988
1989 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
1990
1991         PR rtl-optimization/48549
1992         * combine.c (propagate_for_debug): Also stop after BB_END of
1993         this_basic_block.  Process LAST and just stop processing after it.
1994         (combine_instructions): If last_combined_insn has been deleted,
1995         set last_combined_insn to its PREV_INSN.
1996
1997 2011-04-12  Richard Guenther  <rguenther@suse.de>
1998
1999         PR tree-optimization/46076
2000         * gimple.h (struct gimple_statement_call): Add fntype field.
2001         (gimple_call_fntype): Adjust.
2002         (gimple_call_set_fntype): New function.
2003         * gimple.c (gimple_build_call_1): Set the call function type.
2004         * gimplify.c (gimplify_call_expr): Preserve the function
2005         type the frontend used for the call.
2006         (gimplify_modify_expr): Likewise.
2007         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
2008         function type.
2009         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
2010         function type.
2011         * tree-ssa.c (useless_type_conversion_p): Function pointer
2012         conversions are useless.
2013
2014 2011-04-12  Martin Jambor  <mjambor@suse.cz>
2015
2016         * cgraph.h (cgraph_node): Remove function declaration.
2017         (cgraph_create_node): Declare.
2018         (cgraph_get_create_node): Likewise.
2019         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
2020         Updated all callers.
2021         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
2022         the decl does not already exist.  Call cgraph_get_create_node instead
2023         of cgraph_node.
2024         (cgraph_get_create_node): New function.
2025         (cgraph_same_body_alias): Update comment.
2026         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
2027         assert it does not return NULL.
2028         (cgraph_update_edges_for_call_stmt): Likewise.
2029         (cgraph_clone_edge): Likewise.
2030         (cgraph_create_virtual_clone): Likewise.
2031         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
2032         instead of cgraph_node.
2033         (cgraph_add_new_function): Call cgraph_create_node or
2034         cgraph_get_create_node instead of cgraph_node.
2035         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
2036         instead of cgraph_node.
2037         (record_eh_tables): Likewise.
2038         (mark_address): Likewise.
2039         (mark_load): Likewise.
2040         (build_cgraph_edges): Call cgraph_get_create_node instead
2041         of cgraph_node.
2042         (rebuild_cgraph_edges): Likewise.
2043         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
2044         instead of cgraph_node.
2045         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
2046         cgraph_node.
2047         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
2048         cgraph_create_node instead of cgraph_node.
2049         * c-decl.c (finish_function): Call cgraph_get_create_node instead
2050         of cgraph_node.
2051         * lto-cgraph.c (input_node): Likewise.
2052         * lto-streamer-in.c (input_function): Likewise.
2053         * varasm.c (mark_decl_referenced): Likewise.
2054         (assemble_alias): Likewise.
2055
2056 2011-04-12  Martin Jambor  <mjambor@suse.cz>
2057
2058         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
2059         instead of cgraph_node and assert it does not return NULL.
2060         * lto-streamer-in.c (lto_read_body): Likewise.
2061         * omp-low.c (new_omp_context): Likewise.
2062         (create_task_copyfn): Likewise.
2063         * tree-emutls.c (lower_emutls_function_body): Likewise.
2064         * matrix-reorg.c (transform_allocation_sites): Likewise.
2065
2066 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
2067
2068         PR c/48552
2069         * c-typeck.c (build_asm_expr): Error out on attempts to use
2070         void type outputs or inputs for constraints that allow reg or
2071         don't allow memory.
2072
2073 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
2074             Richard Earnshaw  <rearnsha@arm.com>
2075
2076         PR target/48250
2077         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
2078         to use sign-magnitude offsets. Reject unsupported unaligned
2079         cases. Add detailed description in comments.
2080         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
2081         condition from TARGET_32BIT to TARGET_ARM.
2082
2083 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
2084
2085         * tree.h (struct typed_tree): New.
2086         (struct tree_common): Include it instead of tree_base.
2087         (TREE_TYPE): Update for new location of type field.
2088         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
2089         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
2090         (union tree_node): Add typed field.
2091         * treestruct.def (TS_TYPED): New.
2092         * lto-streamer.c (check_handled_ts_structures): Handle it.
2093         * tree.c (MARK_TS_TYPED): New macro.
2094         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
2095
2096 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
2097
2098         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
2099         (force_nonfallthru): Do not alter the loop nest if no basic block
2100         was created.
2101
2102 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
2103
2104         * config/i386/sse.md (VI): New mode iterator.
2105         (SSEMODEI): Remove.
2106         (AVX256MODEI): Ditto.
2107         (AVXMODEF4P): Ditto.
2108         (avxvecpsmode): Ditto.
2109         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
2110         (sse2_andnot<mode>3): New expander.
2111         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
2112         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
2113         (<any_logic:code><mode>3): Use VI mode iterator.
2114         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
2115         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
2116         (*andnottf3): Handle AVX three-operand constraints.
2117         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
2118
2119 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2120             Robert Millan  <rmh@gnu.org>
2121
2122         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
2123         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
2124         GNU_USER_DYNAMIC_LINKER64): Define.
2125         (REG_NAME): Don't undefine.
2126         (MD_UNWIND_SUPPORT): Undefine.
2127         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
2128         (REG_NAME): Don't undefine.
2129         (MD_UNWIND_SUPPORT): Undefine.
2130         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
2131
2132 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2133
2134         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
2135         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
2136
2137 2011-04-11  Xinliang David Li  <davidxl@google.com>
2138
2139         * value-profile.c (check_ic_target): New function.
2140         (gimple_ic_transform): Sanity check indirect call target.
2141         * gimple-low.c (gimple_check_call_args): Interface change.
2142         (gimple_check_call_matching_types): New function.
2143         * tree-inline.c (tree_can_inline_p): Call new function.
2144
2145 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
2146
2147         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
2148         tree-pretty-print.h & realmpfr.h.
2149
2150 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
2151
2152         PR middle-end/48464
2153         * ira.c (setup_pressure_classes): Fix typo in loop condition.
2154         (setup_allocno_and_important_classes): Ditto.
2155
2156 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2157
2158         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
2159         GNU_USER_DYNAMIC_LINKER.
2160         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
2161         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2162         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
2163         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2164         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2165         GNU_USER_TARGET_OS_CPP_BUILTINS.
2166         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
2167         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2168         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2169         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2170         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
2171         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2172         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2173         GNU_USER_TARGET_OS_CPP_BUILTINS.
2174         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2175         GNU_USER_DYNAMIC_LINKER.
2176         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2177         GNU_USER_TARGET_OS_CPP_BUILTINS.
2178         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
2179         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2180         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
2181         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2182         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
2183         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
2184         GNU_USER_DYNAMIC_LINKER64): Remove.
2185         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
2186         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2187         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2188         GNU_USER_DYNAMIC_LINKER.
2189         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2190         GNU_USER_TARGET_OS_CPP_BUILTINS.
2191         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2192         GNU_USER_TARGET_OS_CPP_BUILTINS.
2193         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
2194         to GNU_USER_TARGET_OS_CPP_BUILTINS.
2195         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2196         GNU_USER_TARGET_OS_CPP_BUILTINS.
2197         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
2198         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
2199         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
2200         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
2201         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2202         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2203         GNU_USER_DYNAMIC_LINKER.
2204         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2205         GNU_USER_TARGET_OS_CPP_BUILTINS.
2206         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
2207         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2208         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2209         GNU_USER_DYNAMIC_LINKER.
2210         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2211         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2212         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
2213         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2214         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2215         GNU_USER_DYNAMIC_LINKER.
2216         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
2217         GNU_USER_DYNAMIC_LINKERN32.
2218         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
2219         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
2220         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
2221         GNU_USER_DYNAMIC_LINKER32.
2222         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
2223         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2224         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2225         GNU_USER_DYNAMIC_LINKER.
2226         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2227         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2228         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
2229         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2230         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2231         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
2232         GNU_USER_DYNAMIC_LINKER32.
2233         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
2234         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
2235         GNU_USER_DYNAMIC_LINKER.
2236         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
2237         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2238         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
2239         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
2240         GNU_USER_DYNAMIC_LINKER64.
2241         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
2242         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2243         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2244         GNU_USER_DYNAMIC_LINKER.
2245         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
2246         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2247         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2248         GNU_USER_DYNAMIC_LINKER.
2249         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
2250         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2251         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
2252         GNU_USER_DYNAMIC_LINKER32.
2253         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
2254         GNU_USER_DYNAMIC_LINKER64.
2255         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
2256         GNU_USER_DYNAMIC_LINKER64.
2257         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
2258         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2259         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
2260         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2261         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2262
2263 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2264
2265         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
2266         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
2267         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
2268         GNU_USER_DYNAMIC_LINKER.
2269         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
2270         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
2271         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
2272         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
2273         GNU_USER_DYNAMIC_LINKER64.
2274         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
2275         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
2276         GNU_USER_LINK_EMULATION.
2277         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
2278         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
2279         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
2280         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
2281         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
2282         CPP_SPEC, CC1_SPEC): Remove.
2283         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
2284         (GNU_USER_DYNAMIC_LINKER): Define.
2285         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
2286         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
2287         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
2288         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
2289         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
2290         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
2291         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
2292         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
2293         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
2294         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
2295         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
2296         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
2297         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
2298         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
2299         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
2300         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
2301         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2302         GNU_USER_DYNAMIC_LINKER.
2303         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2304         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
2305         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2306         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
2307         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2308         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
2309         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
2310         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
2311         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
2312         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
2313
2314 2011-04-11  Kai Tietz  <ktietz@redhat.com>
2315
2316         PR target/9601
2317         PR target/11772
2318         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
2319         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
2320         comment.
2321         (ix86_is_msabi_thiscall): Removed.
2322         (ix86_is_type_thiscall): Likewise.
2323         (ix86_get_callcvt): New function.
2324         (ix86_comp_type_attributes): Simplify check.
2325         (ix86_function_regparm): Use ix86_get_callcvt for calling
2326         convention attribute checks.
2327         (ix86_return_pops_args): Likewise.
2328         (ix86_static_chain): Likewise.
2329         (x86_this_parameter): Likewise.
2330         (x86_output_mi_thunk): Likewise.
2331         (ix86_function_type_abi): Optimize check for types without attributes.
2332         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
2333         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
2334         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
2335         by flag-values.
2336         (IX86_BASE_CALLCVT): Helper macro.
2337         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2338         Use ix86_get_callcvt for calling convention attribute checks and avoid
2339         symbol-decoration for stdcall in TARGET_RTD case.
2340         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
2341         Likewise.
2342         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
2343         for declaration.
2344
2345 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
2346
2347         * config/i386/sse.md (VI_128): New mode iterator.
2348         (VI12_128): Rename from SSEMODE12.
2349         (VI14_128): Rename from SSEMODE14.
2350         (VI124_128): New mode iterator.
2351         (VI24_128): Rename from SSEMODE248.
2352         (VI248_128): Rename from SSEMODE248.
2353         (SSEMODE124C8): Remove.
2354         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2355         (*sse2_<plusminus_insn><mode>3): Merge with
2356         *avx_<plusminus_insn><mode>3.
2357         (*mulv8hi3): Merge with *avx_mulv8hi3.
2358         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
2359         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
2360         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
2361         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
2362         (ashr<mode>3): Merge with *avx_ashr<mode>3.
2363         (lshr<mode>3): Merge with *avx_lshr<mode>3.
2364         (ashl<mode>3): Merge with *avx_ashl<mode>3.
2365         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
2366         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
2367         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2368         (*<smaxmin:code>v8hi3): Ditto.
2369         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
2370         (*<smaxmin:code>v16qi3): Ditto.
2371         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
2372         (*sse2_eq<mode>3): Ditto.
2373         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
2374         (*sse2_gt<mode>3): Ditto.
2375         (vcondv2di): Split out of vcond<mode>.
2376         (vconduv2di): Split out of vcondu<mode>.
2377
2378 2011-04-11  Richard Guenther  <rguenther@suse.de>
2379
2380         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
2381         before calling tree_low_cst.
2382
2383 2011-04-11  Richard Guenther  <rguenther@suse.de>
2384
2385         * stor-layout.c (layout_type): Compute all array index size operations
2386         in the original type.
2387         (initialize_sizetypes): Add comment.
2388         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
2389
2390 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2391
2392         * common.opt (Tbss=, Tdata=, Ttext=): New options.
2393
2394 2011-04-11  Martin Jambor  <mjambor@suse.cz>
2395
2396         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
2397         of cgraph_node, handle NULL return value.
2398         (cgraph_global_info): Likewise.
2399         (cgraph_rtl_info): Likewise.
2400         * tree-inline.c (estimate_num_insns): Likewise.
2401         * gimplify.c (unshare_body): Likewise.
2402         (unvisit_body): Likewise.
2403         (gimplify_body): Likewise.
2404         * predict.c (optimize_function_for_size_p): Likewise.
2405         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
2406         (call_may_clobber_ref_p_1): Likewise.
2407         * varasm.c (function_section_1): Likewise.
2408         (assemble_start_function): Likewise.
2409
2410 2011-04-11  Martin Jambor  <mjambor@suse.cz>
2411
2412         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
2413         of cgraph_node.
2414         * final.c (rest_of_clean_state): Likewise.
2415         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
2416         * passes.c (pass_init_dump_file): Likewise.
2417         (execute_all_ipa_transforms): Likewise.
2418         (function_called_by_processed_nodes_p): Likewise.
2419         * predict.c (maybe_hot_frequency_p): Likewise.
2420         (probably_never_executed_bb_p): Likewise.
2421         (compute_function_frequency): Likewise.
2422         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
2423         (unnest_nesting_tree_1): Likewise.
2424         (lower_nested_functions): Likewise.
2425         * tree-optimize.c (execute_fixup_cfg): Likewise.
2426         (tree_rest_of_compilation): Likewise.
2427         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
2428         * tree-sra.c (ipa_early_sra): Likewise.
2429         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
2430         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
2431         * ipa.c (record_cdtor_fn): Likewise.
2432         * ipa-inline.c (cgraph_early_inlining): Likewise.
2433         (compute_inline_parameters_for_current): Likewise.
2434         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
2435         * ipa-pure-const.c (local_pure_const): Likewise.
2436         * ipa-split.c (split_function): Likewise.
2437         (execute_split_functions): Likewise.
2438         * cgraphbuild.c (build_cgraph_edges): Likewise.
2439         (rebuild_cgraph_edges): Likewise.
2440         (cgraph_rebuild_references): Likewise.
2441         (remove_cgraph_callee_edges): Likewise.
2442         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
2443         (verify_cgraph_node): Likewise.
2444         (cgraph_analyze_functions): Likewise.
2445         (cgraph_preserve_function_body_p): Likewise.
2446         (save_inline_function_body): Likewise.
2447         (save_inline_function_body): Likewise.
2448         * tree-inline.c (copy_bb): Likewise.
2449         (optimize_inline_calls): Likewise.
2450
2451 2011-04-11  Martin Jambor  <mjambor@suse.cz>
2452
2453         PR tree-optimization/48195
2454         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
2455         ipa_check_create_edge_args.
2456         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
2457         ipa_check_create_edge_args.
2458         * ipa-inline.c (inline_generate_summary): Do not call
2459         ipa_check_create_node_params and ipa_check_create_edge_args.
2460         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
2461         ipa_check_create_edge_args.
2462
2463 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
2464
2465         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
2466         instead of loop.
2467         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2468         * function.c (record_hard_reg_sets): Likewise.
2469         * ira.c (compute_regs_asm_clobbered): Likewise.
2470         * sched-deps.c (sched_analyze_1): Likewise.
2471         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
2472
2473 2011-04-09  Xinliang David Li  <davidxl@google.com>
2474
2475         PR tree-optimization/PR48484
2476         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
2477         has_valid_pred lazily
2478
2479 2011-04-09  Duncan Sands  <baldrick@free.fr>
2480
2481         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
2482
2483 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
2484
2485         * combine.c (combine_validate_cost): Adjust comments.  Set registered
2486         cost of I0 to zero at the end, if any.
2487
2488 2011-04-08  Xinliang David Li  <davidxl@google.com>
2489
2490         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
2491         to insane profile data.
2492
2493 2011-04-08  Xinliang David Li  <davidxl@google.com>
2494
2495         * ipa-cp.c (ipcp_update_profiling): Correct
2496          negative scale factor due to insane profile data.
2497
2498 2011-04-08  Xinliang David Li  <davidxl@google.com>
2499
2500         * final.c (dump_basic_block_info): New function.
2501         (final): Dump basic block.
2502         (final_scan_insn): Remove old dump.
2503
2504 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
2505
2506         PR target/47829
2507         * config.gcc (i386-*-freebsd): Disable unwind table generation for
2508         crtbegin/crtend.
2509
2510 2011-04-08  Michael Matz  <matz@suse.de>
2511
2512         PR middle-end/48389
2513         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
2514         functions.
2515         (rebuild_jump_labels): Call rebuild_jump_labels_1.
2516         * rtl.h (rebuild_jump_labels_chain): Declare.
2517         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
2518         insns inserted on edges.
2519
2520 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
2521
2522         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
2523         * config/arm/arm-arches.def: New.
2524         * config/arm/arm-opts.h: New.
2525         * config/arm/genopt.sh: New.
2526         * config/arm/arm-tables.opt: New (generated).
2527         * config/arm/arm.c (arm_handle_option, arm_target_help,
2528         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
2529         (all_architectures): Get most table contents from arm-arches.def.
2530         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
2531         arm_selected_tune here.
2532         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
2533         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
2534         (march=, mcpu=, mtune=): Use Enum and Var.
2535         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
2536         (arm.o): Update dependencies.
2537
2538 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
2539
2540         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
2541         of header_file.
2542         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
2543         (write_typed_alloc_defns): Likewise.
2544         (main): Calls write_typed_alloc_defns with output_header.
2545
2546 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
2547
2548         PR inline-asm/48435
2549         * ira-color.c (setup_profitable_hard_regs): Add comments.
2550         Don't take prohibited hard regs into account.
2551         (setup_conflict_profitable_regs): Rename to
2552         get_conflict_profitable_regs.
2553         (check_hard_reg_p): Check prohibited hard regs.
2554
2555 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
2556
2557         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
2558         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
2559         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
2560
2561 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2562
2563         PR target/48366
2564         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
2565         move from floating point to shift amount register.
2566         (emit_move_sequence): Remove secondary reload support for floating
2567         point to shift amount amount register copies.
2568         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
2569         amount register copies.
2570         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
2571         register, return false if mode isn't a scalar integer mode.
2572         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
2573
2574 2011-04-08  Richard Guenther  <rguenther@suse.de>
2575
2576         * gimple.c (gimple_call_flags): Remove kludge.
2577
2578 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2579
2580         * sel-sched.c (sel_region_init): Move call to
2581         sel_setup_region_sched_flags after setup_current_loop_nest.
2582
2583 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
2584
2585         PR rtl-optimization/48272
2586         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
2587         init_insn_reg_pressure_info.  Adjust a caller.
2588         * sched-int.h (init_insn_reg_pressure_info): Declare.
2589         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
2590         when sched-pressure is enabled.
2591
2592 2011-04-08  Richard Guenther  <rguenther@suse.de>
2593
2594         * gimple.c (gimple_set_modified): Do not queue calls to
2595         MODIFIED_NORETURN_CALLS here ...
2596         * tree-ssa-operands.c (update_stmt_operands): ... but here.
2597
2598 2011-04-08  Richard Guenther  <rguenther@suse.de>
2599
2600         PR lto/48467
2601         * toplev.c (lang_dependent_init): Do not open asm_out_file
2602         in WPA mode, nor perform debug machinery initialization.
2603         (finalize): Do not unlink asm_out_file in WPA mode.
2604
2605 2011-04-08  Richard Guenther  <rguenther@suse.de>
2606
2607         * gimple.h (gimple_call_fntype): New function.
2608         (gimple_call_return_type): Use it.
2609         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
2610         * gimple-low.c (gimple_check_call_args): Likewise.
2611         * gimple.c (gimple_call_flags): Likewise.
2612         (gimple_call_arg_flags): Likewise.
2613         (gimple_call_return_flags): Likewise.
2614         * tree-cfg.c (verify_gimple_call): Likewise.
2615         (do_warn_unused_result): Likewise.
2616         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
2617         * value-prof.c (gimple_ic_transform): Fix fndecl check.
2618
2619 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
2620
2621         PR rtl-optimization/48235
2622         * sel-sched.c (code_motion_process_successors): Recompute the last
2623         insn in basic block if control flow changed.
2624         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
2625         Update condition for ilist_remove.
2626
2627 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2628
2629         PR rtl-optimization/48302
2630         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
2631         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
2632         it to record added preheader blocks.
2633         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
2634         on to sel_add_loop_preheaders.
2635         (sel_region_init): Move call to setup_current_loop_nest after
2636         sel_init_bbs.
2637
2638 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2639
2640         PR target/48273
2641         * cfgloop.h (loop_has_exit_edges): New helper.
2642         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
2643         non-clonable.
2644         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
2645         that have no exit edges.
2646
2647 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2648
2649         PR rtl-optimization/48442
2650         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
2651         all callers.  Adjust assert.
2652
2653 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
2654
2655         PR tree-optimization/48377
2656         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
2657         is_packed to true even for types with smaller TYPE_ALIGN than
2658         TYPE_SIZE.
2659
2660 2011-04-08  Richard Guenther  <rguenther@suse.de>
2661
2662         PR bootstrap/48513
2663         * doc/tm.texi: Re-generate.
2664
2665 2011-04-08  Wei Guozhi  <carrot@google.com>
2666
2667         PR target/47855
2668         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
2669         * config/arm/arm.c (arm_attr_length_push_multi): New function.
2670         * config/arm/arm.md (*push_multi): Change the length computation to
2671         call a C function.
2672
2673 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
2674
2675         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
2676         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
2677         * doc/tm.texi: Regenerate.
2678         * system.h (ASM_OUTPUT_BSS): Poison.
2679         * varasm.c (asm_output_bss): Remove function.
2680         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
2681
2682         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
2683         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
2684         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
2685         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2686         Likewise.
2687         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2688         Likewise.
2689         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2690         Likewise.
2691         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2692
2693 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
2694
2695         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
2696         EnumValue lines.
2697
2698 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
2699
2700         * config/m68k/m68k.c (m68k_handle_option): Don't handle
2701         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
2702         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
2703         OPT_mcpu32.
2704         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2705         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
2706         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
2707         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
2708         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
2709         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
2710         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2711         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
2712         options.  Don't map other m68k options manually.  Don't handle
2713         old-style options as canonical.
2714         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2715         * doc/install.texi (m68k-*-*): Document binutils version requirement.
2716
2717 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
2718
2719         * basic-block.h (force_nonfallthru): Move to...
2720         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
2721         (force_nonfallthru): ...here.
2722         * cfghooks.c (force_nonfallthru): New function.
2723         * cfgrtl.c (force_nonfallthru): Rename into...
2724         (rtl_force_nonfallthru): ...this.
2725         (commit_one_edge_insertion): Do not set AUX field.
2726         (commit_edge_insertions): Do not discover new basic blocks.
2727         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
2728         (cfg_layout_rtl_cfg_hooks): Likewise.
2729         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
2730         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
2731         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
2732
2733 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
2734
2735         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
2736         Remove macros.
2737
2738 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
2739
2740         * config/i386/sse.md: Update copyright year.
2741         (avxcvtvecmode): Remove.
2742         (sse_movhlps): Merge with *avx_movhlps.
2743         (sse_movlhps): Merge with *avx_movlhps.
2744         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
2745         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
2746         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
2747         (sse_loadhps): Merge with *avx_loadhps.
2748         (sse_storelps): Merge with *avx_storelps.
2749         (sse_loadlps): Merge with *avx_loadlps.
2750         (sse_movss): Merge with *avx_movss.
2751         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
2752         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
2753         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
2754         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
2755         (vec_set<mode>_0): Ditto.
2756         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
2757         (sse4_1_insertps): Merge with *avx_insertps.
2758         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
2759         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
2760         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
2761         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
2762         (sse2_storehpd): Merge with *avx_storehpd.
2763         (sse2_loadhpd): Merge with *avx_loadhpd.
2764         (sse2_loadlpd): Merge with *avx_loadlpd.
2765         (sse2_movsd): Merge with *avx_movsd.
2766         (*vec_concatv2df): Merge with *vec_concatv2df.
2767
2768 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
2769
2770         PR debug/48343
2771         * combine.c (combine_instructions): Add last_combined_insn,
2772         update it if insn is after it, pass it to all try_combine calls.
2773         (try_combine): Add last_combined_insn parameter, pass it instead of
2774         i3 to propagate_for_debug.
2775
2776 2011-04-07  Nick Clifton  <nickc@redhat.com>
2777
2778         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
2779         to handle MDR <-> data register transfers.
2780         (movhi_internal): Likewise.
2781
2782 2011-04-07  Alan Modra  <amodra@gmail.com>
2783
2784         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
2785         previous stack info.
2786
2787 2011-04-07  Tom de Vries  <tom@codesourcery.com>
2788
2789         PR target/43920
2790         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
2791         flow_find_cross_jump.  Swap variables to implement backward replacement.
2792         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
2793
2794 2011-04-07  Tom de Vries  <tom@codesourcery.com>
2795
2796         PR target/43920
2797         * cfgcleanup.c (walk_to_nondebug_insn): New function.
2798         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
2799         and bb2.
2800         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
2801         src1 or src2.  Redirect edges to the last basic block.  Update
2802         frequency and count on multiple basic blocks in case of fallthru.
2803
2804 2011-04-07  Tom de Vries  <tom@codesourcery.com>
2805
2806         PR target/43920
2807         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
2808         function.
2809         (old_insns_match_p): Change return type.  Replace return false/true
2810         with return dir_none/dir_both.  Use can_replace_by.
2811         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
2812         direction from dir_p.  Register replacement direction in dir, last_dir
2813         and afterlast_dir.  Handle new return type of old_insns_match_p using
2814         merge_dir.  Return replacement direction in dir_p.
2815         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
2816         return type of old_insns_match_p.
2817         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
2818         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
2819         flow_find_cross_jump.
2820         * basic-block.h (enum replace_direction): New type.
2821         (flow_find_cross_jump): Add parameter to declaration.
2822
2823 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
2824
2825         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
2826         (AVXMODEDCVTPS2DQ): Ditto.
2827         (VEC_FLOAT_MODE): Ditto.
2828         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
2829         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2830         (<any_logic:code><mode>3): Use VF mode iterator.
2831         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
2832         Use VF mode iterator.
2833         (copysign<mode>3): Use VF mode iterator.
2834         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
2835         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2836         (*<any_logic:code><MODEF:mode>3): Merge with
2837         *avx_<any_logic:code><MODEF:mode>3.
2838         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
2839         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
2840         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
2841         (avx_cvtdq2ps<avxmodesuffix>): Remove.
2842         (sse2_cvtdq2ps): Use %v modifier.
2843         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
2844         (avx_cvtps2dq<avxmodesuffix>): Remove.
2845         (sse2_cvtps2dq): Use %v modifier.
2846         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
2847         (avx_cvttps2dq<avxmodesuffix>): Remove.
2848         (sse2_cvttps2dq): Use %v modifier.
2849         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
2850         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
2851         (sse2_cvtsd2siq): Fix insn template.
2852         (sse2_cvtsd2siq_2): Ditto.
2853         (sse2_cvttsd2siq): Ditto.
2854         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
2855         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
2856
2857 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
2858
2859         * gcov-io.c: Use GCC Runtime Library Exception.
2860
2861 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
2862
2863         PR debug/48466
2864         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
2865         as base_reg whatever register reg has been eliminated to, instead
2866         of hardcoding STACK_POINTER_REGNUM.
2867
2868 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
2869
2870         * doc/tm.texi.in: Document C target hooks as separate from general
2871         target hooks.
2872         * doc/tm.texi: Regenerate.
2873         * genhooks.c (struct hook_desc): Add docname field.
2874         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
2875         docname field.
2876         (hook_array): Include c-target.def.
2877         (emit_documentation): Use docname field in output.
2878         (emit_init_macros): Take docname argument.  Only emit definitions
2879         for hooks matching docname.
2880         (main): Expect additional arguments in all cases.  Pass argument
2881         to emit_init_macros.
2882         * target.def: Move initial macro definitions and comments to
2883         target-hooks-macros.h.
2884         (gcc_targetcm): Move to c-family/c-target.def.
2885         * target.h (targetcm): Move declaration to c-family/c-target.h.
2886         * targhooks.c (default_handle_c_option): Move to
2887         c-family/c-opts.c.
2888         * targhooks.h (default_handle_c_option): Move declaration to
2889         c-family/c-common.h.
2890         * target-hooks-macros.h: New file.
2891         * config.gcc (target_has_targetcm): Define and use to add to
2892         c_target_objs and cxx_target_objs.
2893         * config/default-c.c: New file.
2894         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
2895         of target.h and target-def.h.
2896         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
2897         (darwin_objc_construct_string, darwin_cfstring_ref_p,
2898         darwin_check_cfstring_format_arg): Make static.
2899         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2900         TARGET_STRING_OBJECT_REF_TYPE_P,
2901         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
2902         * config/darwin-protos.h (darwin_objc_construct_string,
2903         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
2904         declare.
2905         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2906         TARGET_STRING_OBJECT_REF_TYPE_P,
2907         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
2908         * config/t-darwin (darwin-c.o): Update dependencies.
2909         * system.h (TARGET_HAS_TARGETCM): Poison.
2910         * Makefile.in (TARGET_H): Update.
2911         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
2912         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
2913         (default-c.o): New target.
2914         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
2915         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
2916         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
2917         c-target.def.
2918         (build/genhooks.o): Update dependencies.
2919
2920 2011-04-06  Richard Guenther  <rguenther@suse.de>
2921
2922         * ipa-inline.c (enum inlining_mode): Remove.
2923         (cgraph_flatten): Use some other token.
2924         (cgraph_edge_early_inlinable_p): New function, split out from ...
2925         (cgraph_perform_always_inlining): New function, split out from ...
2926         (cgraph_decide_inlining_incrementally): ... here.
2927         (cgraph_mark_inline_edge): Adjust.
2928         (cgraph_early_inlining): Re-structure.
2929         (pass_early_inline): Require SSA form.
2930
2931 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
2932             Julian Brown  <julian@codesourcery.com>
2933             Mark Shinwell  <shinwell@codesourcery.com>
2934
2935         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
2936         LO_REGS only for Thumb-1.
2937         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
2938         be used in short instructions when optimising for size on Thumb-2.
2939
2940 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
2941
2942         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
2943         associated with user returns to be preserved.
2944
2945 2011-04-06  Tristan Gingold  <gingold@adacore.com>
2946
2947         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
2948         symbol_queue_size, DBXOUT_DECR_NESTING,
2949         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
2950         if XCOFF_DEBUGGING_INFO.
2951
2952 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
2953
2954         * config/i386/i386.md (attribute isa): New.
2955         (attribute enabled): New.
2956         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
2957         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
2958         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
2959         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
2960         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
2961         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2962         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
2963         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
2964
2965         * config/i386/sse.md (VF): New mode iterator.
2966         (VF1): Ditto.
2967         (VF2): Ditto.
2968         (VF_128): Ditto.
2969         (SSEMODEF4): Remove.
2970         (attribute sse): Handle V8SF and V4DF modes.
2971         (<absneg:code><mode>2): Use VF mode iterator.
2972         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
2973         mode iterator.
2974         (<plusminus_insn><mode>3): Use VF mode iterator.
2975         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2976         Use VF mode iterator.
2977         (<sse>_vm<plusminus_insn><mode>3): Merge with
2978         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
2979         (mul<mode>3): Use VF mode iterator.
2980         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
2981         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
2982         mode iterator.
2983         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
2984         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
2985         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
2986         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
2987         mode iterator.
2988         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
2989         Use VF1 mode iterator.
2990         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
2991         (sqrt<VF2:mode>2): New expander.
2992         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
2993         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
2994         and sqrtv2df2.  Use VF mode iterator.
2995         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
2996         mode iterator.
2997         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
2998         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
2999         Use VF1 mode iterator.
3000         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
3001         (<smaxmin:code><mode>3): Use VF mode iterator.
3002         (*<smaxmin:code><mode>3_finite): Merge with
3003         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
3004         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
3005         (<sse>_vm<smaxmin:code><mode>2): Merge with
3006         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
3007         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
3008         mode iterator.
3009         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
3010         mode iterator.
3011         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
3012         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
3013         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
3014         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
3015         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
3016         VF mode iterator.
3017         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
3018         Use VF_128 mode iterator.
3019         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
3020         mode iterator.
3021         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
3022         VF_128 mode iterator.
3023         (vcond<mode>): Use VF mode iterator.
3024         * config/i386/predicates.md (sse_comparison_operator): Merge with
3025         avx_comparison_float_operator.  Do not declare as special_predicate.
3026         * config/i386/i386.c (struct builtin_description): Update for renamed
3027         compare patterns.
3028         (ix86_expand_args_builtin): Ditto.
3029         (ix86_expand_sse_compare_mask): Ditto.
3030
3031 2011-04-06  Richard Guenther  <rguenther@suse.de>
3032
3033         * tree-inline.c (estimate_num_insns): For calls simply account
3034         for all passed arguments and a used return value.
3035
3036 2011-04-06  Richard Guenther  <rguenther@suse.de>
3037
3038         PR tree-optimization/47663
3039         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
3040         call_stmt_time fields.
3041         (cgraph_edge_inlinable_p): Declare.
3042         (cgraph_edge_recursive_p): New inline function.
3043         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
3044         (cgraph_clone_edge): Copy it.
3045         * ipa-inline.c (cgraph_estimate_edge_time): New function.
3046         Account for call stmt time.
3047         (cgraph_estimate_time_after_inlining): Take edge argument.
3048         (cgraph_estimate_edge_growth): Account call stmt size.
3049         (cgraph_estimate_size_after_inlining): Take edge argument.
3050         (cgraph_mark_inline_edge): Adjust.
3051         (cgraph_check_inline_limits): Likewise.
3052         (cgraph_recursive_inlining_p): Remove.
3053         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
3054         (cgraph_decide_recursive_inlining): Take edge argument and
3055         adjust.
3056         (cgraph_decide_inlining_of_small_functions): Do not avoid
3057         diags for recursive inlining here.
3058         (cgraph_flatten): Adjust.
3059         (cgraph_decide_inlining_incrementally): Likewise.
3060         (estimate_function_body_sizes): Remove call cost handling.
3061         (compute_inline_parameters): Initialize caller edge call costs.
3062         (cgraph_estimate_edge_growth): New function.
3063         (cgraph_estimate_growth): Use it.
3064         (cgraph_edge_badness): Likewise.
3065         (cgraph_check_inline_limits): Take an edge argument.
3066         (cgraph_decide_inlining_of_small_functions): Adjust.
3067         (cgraph_decide_inlining): Likewise.
3068         * tree-inline.c (estimate_num_insns): Only account for call
3069         return value if it is used.
3070         (expand_call_inline): Avoid diagnostics on recursive inline
3071         functions here.
3072         * lto-cgraph.c (lto_output_edge): Output edge call costs.
3073         (input_edge): Input edge call costs.
3074
3075 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3076
3077         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
3078
3079 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
3080
3081         * doc/invoke.texi (Spec Files): Fix typo.
3082
3083 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
3084
3085         * profile.c (branch_prob): Move declaration of local variable.  Remove
3086         obsolete ??? comment.  Expand the location explicitly instead of using
3087         the LOCATION_FILE and LOCATION_LINE macros.
3088
3089 2011-04-06  Wei Guozhi  <carrot@google.com>
3090
3091         PR target/47855
3092         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
3093         (arm_cond_branch): Likewise.
3094         (arm_cond_branch_reversed): Likewise.
3095         (arm_jump): Likewise.
3096         (push_multi): Likewise.
3097         * config/arm/constraints.md (Py): New constraint.
3098
3099 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3100
3101         PR bootstrap/48471
3102         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
3103         Move these...
3104         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
3105         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
3106         #ifdef DBX_DEBUGGING_INFO.
3107
3108 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
3109
3110         PR bootstrap/48403
3111         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
3112         if old and new states differ.
3113
3114 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
3115
3116         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
3117         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
3118         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
3119         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
3120         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
3121         mcfv4e): Use Alias.
3122         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
3123         ColdFire options to -mcpu= options.
3124
3125 2011-04-05  Jeff Law  <law@redhat.com>
3126
3127         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
3128         check if BB is a successor of LOOP->header and return
3129         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
3130
3131 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
3132
3133         * cprop.c (struct reg_use): Remove.
3134         (reg_use_table): Make an array of RTX.
3135         (find_used_regs, constprop_register, local_cprop_pass,
3136         bypass_block): Simplify users of reg_use_table.
3137         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
3138         on one of the uses found by find_used_regs.
3139
3140 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3141
3142         PR bootstrap/48469
3143         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
3144         declaration.
3145
3146 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3147
3148         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
3149         as an rtx.
3150         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
3151
3152 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
3153
3154         PR middle-end/48441
3155         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
3156
3157 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3158
3159         * combine.c: Include obstack.h.
3160         (struct insn_link): Define.
3161         (uid_log_links): Adjust type.
3162         (FOR_EACH_LOG_LINK): New macro.
3163         (insn_link_obstack): Declare.
3164         (alloc_insn_link): Define.
3165         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
3166         type of link variables.
3167         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
3168         (try_combine, record_promoted_values, distribute_notes): Likewise.
3169         (distribute_links): Likewise.  Tweak prototype.
3170         (clear_log_links): Delete.
3171         (adjust_for_new_dest): Call alloc_insn_link.
3172         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
3173
3174 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3175
3176         * gcse.c (modify_mem_list): Convert to an array of VECs.
3177         (canon_modify_mem_list, compute_transp): Tweak formatting.
3178         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
3179         (load_killed_in_block_p): Likewise.
3180         (record_last_mem_set_info): Likewise.
3181         (clear_modify_mem_tables): Likewise.
3182
3183 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3184
3185         PR middle-end/48461
3186         * function.c (emit_use_return_register_into_block): Only define if
3187         HAVE_return.
3188
3189 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
3190
3191         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
3192
3193 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
3194
3195         * config/rx/rx-opts.h: New.
3196         * config/rx/rx.c (rx_cpu_type): Remove.
3197         (rx_handle_option): Don't assert that global structures are in
3198         use.  Access variables via opts pointer.  Defer most handling of
3199         OPT_mint_register_.  Use error_at.
3200         (rx_option_override): Handle deferred OPT_mint_register_ here.
3201         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
3202         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
3203         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
3204         (rx_cpu_types): New Enum and EnumValue entries.
3205         (mint-register=): Use Defer and use Var accordingly.
3206
3207 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3208
3209         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
3210         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
3211         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
3212         Move these...
3213         (debug_free_queue, debug_nesting, symbol_queue_index):
3214         ...and these...
3215         * dbxout.c: ...to here.  Make static.
3216
3217 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3218
3219         * gcse.c (modify_pair): Define.  Define a VEC of it.
3220         (canon_modify_mem_list): Convert to an array of VECs.
3221         (free_insn_expr_list_list): Delete.
3222         (clear_modify_mem_tables): Call VEC_free instead.
3223         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
3224         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
3225         (canon_list_insert, compute_transp): Likewise.
3226
3227 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3228
3229         PR target/43920
3230         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
3231         for size.
3232
3233 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3234
3235         PR target/43920
3236         * function.c (emit_use_return_register_into_block): New function.
3237         (thread_prologue_and_epilogue_insns): Use
3238         emit_use_return_register_into_block.
3239
3240 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3241
3242         PR target/43920
3243         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
3244         insn.
3245
3246 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3247
3248         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
3249
3250 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
3251
3252         * config/arm/arm.md (define_constants for unspec): Replace with
3253         define_c_enum.
3254         (define_constants for unspecv): Replace with define_c_enum.
3255         * config/arm/neon.md (define_constants for unspec): Replace with
3256         define_c_enum.
3257
3258 2011-04-04  Richard Henderson  <rth@redhat.com>
3259
3260         PR bootstrap/48400
3261         * dwarf2out.c (output_line_info): Always emit line info from
3262         at least one section.
3263         (dwarf2out_init): Create text_section_line_info here ...
3264         (set_cur_line_info_table): ... not here.
3265
3266 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
3267
3268         PR target/48380
3269         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
3270         not called.
3271
3272         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
3273
3274 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
3275
3276         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
3277         (expr_equiv_p): Remove.
3278         (insert_set_in_table): Look at <dest, src> pair instead of expr.
3279         (hash_scan_set): Update call to insert_set_in_table.
3280         (dump_hash_table): Dump <dest, src> pair.
3281         (lookup_set): Simplify.  Lookup <dest, src> pair.
3282         (compute_transp): Remove, fold heavily simplified code into...
3283         (compute_local_properties): ...here.  Expect COMP and TRANSP
3284         unconditionally.
3285         (find_avail_set): Take set directly from struct expr.
3286         (find_bypass-set): Likewise.
3287         (bypass_block): Likewise.
3288         (cprop_insn): Likewise.  Remove redundant INSN_P test.
3289
3290         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
3291         checks on form of COND from find_implicit_sets to here.
3292         (find_implicit_sets): Cleanup control flow. Split critical edges
3293         if it exposes implicit sets.  Allocate/resize implicit_sets as
3294         necessary.
3295         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
3296         changed something.  Run df_analyze after find_implicit_sets if any
3297         edges were split.  Do not allocate implicit_sets here.
3298
3299         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
3300         (gcse_obstack): Renamed to cprop_obstack.
3301         (GNEW, GNEWVEC, GNEWVAR): Remove.
3302         (gmalloc): Remove.
3303         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
3304         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
3305         (gcse_alloc): Likewise, and rename to cprop_alloc.
3306         (alloc_gcse_men, free_gcse_mem): Remove.
3307         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
3308         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
3309         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
3310
3311         * cprop.c (oprs_not_set_p): Remove.
3312         (mark_set, mark_clobber): Remove.
3313         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
3314         (reg_not_set_p): New function.
3315         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
3316         (cprop_insn): Likewise.
3317         (cprop_jump): Use FOR_EACH_EDGE.
3318
3319 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
3320
3321         PR bootstrap/48403
3322         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
3323         (rank_for_schedule): Use scheduled_insns vector instead of
3324         last_scheduled_insn.
3325         (ok_for_early_queue_removal): Likewise.
3326         (queue_to_ready): Search forward in nonscheduled_insns_begin if
3327         we have a dbg_cnt.
3328         (choose_ready): Likewise.
3329         (commit_schedule): Use VEC_iterate.
3330         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
3331         a dbg_cnt, use it and ensure the first insn is in the ready list.
3332         (haifa_sched_init): Allocate scheduled_insns.
3333         (sched_extend_ready_list): Don't allocate it; reserve space.
3334         (haifa_sched_finish): Free it.
3335
3336 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
3337
3338         * optc-gen.awk: Always remove type from Variable entry before
3339         recording in var_seen.
3340
3341 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
3342
3343         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
3344         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
3345         call to tidy_fallthru_edges.
3346
3347 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
3348
3349         * doc/options.texi (ToLower): Document.
3350         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
3351         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
3352         * opts.h (cl_option): Add cl_tolower field.
3353         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
3354         arguments with lowercase strings.
3355         * config/rx/rx.opt (mcpu=): Add ToLower.
3356         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
3357         argument.
3358
3359 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
3360
3361         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
3362
3363 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
3364
3365         * config/vax/vax.c: Include reload.h.
3366
3367 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
3368
3369         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
3370         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
3371         (sparc_preferred_reload_class): New function.
3372
3373 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
3374
3375         PR debug/48401
3376         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3377         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
3378
3379 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
3380
3381         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
3382         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
3383
3384 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
3385
3386         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
3387         (ASM_OUTPUT_ALIGNED_BSS): Define.
3388
3389 2011-04-03  Michael Matz  <matz@suse.de>
3390
3391         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
3392         and next_slot members.
3393         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
3394         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
3395         (lto_streamer_cache_append): Declare.
3396         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
3397         unsigned index, remove offset parameter, ensure that we append
3398         or update existing entries.
3399         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
3400         parameter, update next_slot for append.
3401         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
3402         parameter.
3403         (lto_streamer_cache_insert_at): Likewise.
3404         (lto_streamer_cache_append): New function.
3405         (lto_streamer_cache_lookup): Use unsigned index.
3406         (lto_streamer_cache_get): Likewise.
3407         (lto_record_common_node): Don't test tree_node_can_be_shared.
3408         (preload_common_node): Adjust call to lto_streamer_cache_insert.
3409         (lto_streamer_cache_delete): Don't free offsets member.
3410         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
3411         (lto_output_string_with_length): Use lto_output_data_stream.
3412         (lto_output_tree_header): Remove ix parameter, don't write it.
3413         (lto_output_builtin_tree): Likewise.
3414         (lto_write_tree): Adjust callers to above, don't track and write
3415         offset, write unsigned index.
3416         (output_unreferenced_globals): Don't emit all global vars.
3417         (write_global_references): Use unsigned indices.
3418         (lto_output_decl_state_refs): Likewise.
3419         (write_symbol): Likewise.
3420         * lto-streamer-in.c (lto_input_chain): Move earlier.
3421         (input_function): Use unsigned index.
3422         (input_alias_pairs): Don't read and then ignore all global vars.
3423         (lto_materialize_tree): Remove ix_p parameter, don't read index,
3424         don't pass it back, use lto_streamer_cache_append.
3425         (lto_register_var_decl_in_symtab): Use unsigned index.
3426         (lto_register_function_decl_in_symtab): Likewise.
3427         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
3428         index.
3429         (lto_get_builtin_tree): Don't read index, use
3430         lto_streamer_cache_append.
3431         (lto_read_tree): Adjust call to lto_materialize_tree.
3432
3433         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
3434         don't use function calls in arguments to MIN.
3435
3436         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
3437         twice.
3438
3439         * gimple.c (gimple_type_leader_entry): Mark deletable.
3440
3441 2011-04-03  Alan Modra  <amodra@gmail.com>
3442
3443         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
3444
3445 2011-04-03  Michael Matz  <matz@suse.de>
3446
3447         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
3448         an integer.
3449         * tree.h (tree_decl_non_common.vindex): Adjust comment.
3450
3451 2011-04-03  Michael Matz  <matz@suse.de>
3452
3453         * cgraphbuild.c (record_reference): Canonicalize constructor values.
3454         * gimple-fold.c (canonicalize_constructor_val): Accept being called
3455         without function context.
3456         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
3457         current_function_decl and cfun.
3458
3459 2011-04-03  Michael Matz  <matz@suse.de>
3460
3461         * tree.c (decl_init_priority_insert): Don't create entry for
3462         default priority.
3463         (decl_fini_priority_insert): Ditto.
3464         (fields_compatible_p, find_compatible_field): Remove.
3465         * tree.h (fields_compatible_p, find_compatible_field): Remove.
3466         * gimple.c (gimple_compare_field_offset): Adjust block comment.
3467
3468 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
3469
3470         * combine.c (try_combine): Remove useless local variable.
3471
3472 2011-04-03  Richard Guenther  <rguenther@suse.de>
3473             Ira Rosen  <ira.rosen@linaro.org>
3474
3475         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
3476         non-variable offsets and compare the remaining bases of the two
3477         accesses instead of looking for exact same data-ref.
3478
3479 2011-04-02  Kai Tietz  <ktietz@redhat.com>
3480
3481         PR target/48416
3482         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
3483
3484         * i386.c (ix86_is_msabi_thiscall): New helper function.
3485         (ix86_is_type_thiscall): New helper function.
3486         (ix86_comp_type_attributes): Handle thiscall for method-functions
3487         special.
3488         (init_cumulative_args): Likewise.
3489         (find_drap_reg): Likewise.
3490         (ix86_static_chain): Likewise.
3491         (x86_this_parameter): Likewise.
3492         (x86_output_mi_thunk): Likewise.
3493
3494 2011-04-01  Olivier Hainque  <hainque@adacore.com>
3495             Nicolas Setton  <setton@adacore.com>
3496             Eric Botcazou  <ebotcazou@adacore.com>
3497
3498         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
3499         (add_gnat_descriptive_type_attribute): New function.
3500         (gen_array_type_die): Call it.
3501         (gen_enumeration_type_die): Likewise.
3502         (gen_struct_or_union_type_die): Likewise.
3503         (modified_type_die): Likewise.
3504         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
3505         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
3506         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
3507
3508 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
3509
3510         PR bootstrap/48148
3511         * dwarf2out.c (resolve_addr): Don't call force_decl_die
3512         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
3513
3514         Revert:
3515         2011-03-17  Richard Guenther  <rguenther@suse.de>
3516
3517         PR bootstrap/48148
3518         * lto-cgraph.c (input_overwrite_node): Clear the abstract
3519         origin for decls in other ltrans units.
3520         (input_varpool_node): Likewise.
3521
3522 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
3523
3524         PR middle-end/48335
3525         * expr.c (expand_assignment): Handle all possibilities
3526         if TO_RTX is CONCAT.
3527         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
3528         (store_split_bit_field): If SUBREG_REG (op0) or
3529         op0 itself has smaller mode than word, return it
3530         for offset 0 and const0_rtx for out-of-bounds stores.
3531         If word is const0_rtx, skip it.
3532
3533 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
3534
3535         * config/h8300/h8300.c (print_operand_address): Rename to...
3536         (h8300_print_operand_address): ...this. Make static. Adjust comments.
3537         Call h8300_print_operand and h8300_print_operand_address instead of
3538         print_operand and print_operand_address. Declare.
3539         (print_operand): Renake to...
3540         (h8300_print_operand): ...this. Make static. Adjust comments.
3541         Call h8300_print_operand instead of print_operand. Declare.
3542         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
3543         (h8300_register_move_cost): Likewise.
3544         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
3545         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
3546         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
3547         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
3548         * config/h8300/h8300-protos.h (print_operand): Delete.
3549         (print_operand_address): Delete.
3550
3551 2011-04-01  Richard Henderson  <rth@redhat.com>
3552
3553         PR 48400
3554         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
3555         in strict mode before dwarf4.  Re-order tests to early out
3556         before switching sections.
3557
3558 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
3559
3560         * config/h8300/constraints.md: New file.
3561         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
3562         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
3563         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
3564         * config/h8300/predicates.md (bit_operand): Likewise.
3565         (incdec_operand): Use satisfies_constraint_M and
3566         satisfies_constraint_O.  Don't use C code block.
3567         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
3568         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
3569         (compute_mov_length): Use satisfies_constraint_G.
3570         (fix_bit_operand): Use satisfies_constraint_U.
3571         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
3572         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
3573         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
3574         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
3575         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
3576         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
3577         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3578         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
3579         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
3580         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
3581         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
3582         (EXTRA_MEMORY_CONSTRAINT): Delete.
3583
3584 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
3585             Michael Meissner  <meissner@linux.vnet.ibm.com>
3586
3587         PR target/48262
3588         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
3589         operands, as per the specifications.
3590
3591         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
3592         (vec_extract_evenv4sf): Ditto.
3593         (vec_extract_evenv8hi): Ditto.
3594         (vec_extract_evenv16qi): Ditto.
3595         (vec_extract_oddv4si): Ditto.
3596
3597 2011-03-31  Mark Wielaard  <mjw@redhat.com>
3598
3599         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
3600         high_pc attribute if the CU has no associated code. Only output
3601         DW_AT_entry_pc for CU if not generating strict dwarf and
3602         dwarf_version < 4.
3603
3604 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
3605
3606         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
3607         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
3608         out of ...
3609         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
3610         * final.c (final_start_function): Call the new function rather
3611         than using a NULL argument for dwarf2out_frame_debug.
3612
3613         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
3614         that contains the prologue.
3615
3616         * haifa-sched.c (queue_insn): New arg REASON.  All callers
3617         changed.  Print it in debugging output.
3618
3619         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
3620
3621         * sched-ebb.c (begin_schedule_ready): Remove second argument.
3622         Split most of the code into...
3623         (begin_move_insn): ... here.  New function.
3624         (ebb_sched_info): Add a pointer to it.
3625         * haifa-sched.c (scheduled_insns): New static variable.
3626         (sched_extend_ready_list): Allocate it.
3627         (schedule_block): Use it to record the order of scheduled insns.
3628         Perform RTL changes to move insns only after all scheduling
3629         decisions have been made.
3630         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
3631         begin_move_insn field.
3632         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
3633         * sched-int.h (struct haifa_sched_info): Remove second argument
3634         from begin_schedule_ready hook.  Add new member begin_move_insn.
3635         * sched-rgn.c (begin_schedule_ready): Remove second argument.
3636         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
3637
3638         * haifa-sched.c (prune_ready_list): New function, broken out of
3639         schedule_block.
3640         (schedule_block): Use it.
3641
3642 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3643
3644         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
3645
3646 2011-04-01  Kai Tietz  <ktietz@redhat.com>
3647
3648         * config.gcc (*-*-mingw*): Allow as option the
3649         posix threading model.
3650         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
3651         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
3652         definition.
3653         (CPP_SPEC): Add pthread/no-pthread handling.
3654         (LIB_SPEC): Likewise.
3655         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
3656         (LIB_SPEC): Likewise.
3657         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
3658         flag to pass -pthread option for shared libgcc build.
3659         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
3660         for shared libgcc build.
3661         * config/i386/t-mingw-pthread: New file.
3662         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
3663         New define to enable use of library pthread by default.
3664         * config/i386/mingw.opt (pthread): New driver option.
3665         (no-pthread): New driver option.
3666         * config/i386/cygming.opt: Make sure trailing empty line is retained.
3667         * config/i386/mingw-w64.opt: Likewise.
3668
3669 2011-04-01  Gary Funck <gary@intrepid.com>
3670
3671         * c-decl.c (grokdeclarator): Fix formatting.
3672
3673 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
3674
3675         * expr.c (emit_block_move_via_movmem): Use n_generator_args
3676         instead of n_operands.
3677         (set_storage_via_setmem): Likewise.
3678         * optabs.c (maybe_gen_insn): Likewise.
3679         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
3680         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
3681         (mips_expand_builtin_direct): Likewise.
3682         * config/spu/spu.c (expand_builtin_args): Likewise.
3683
3684 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
3685
3686         * recog.h (insn_data_d): Add n_generator_args.
3687         * genoutput.c (data): Likewise.
3688         (output_insn_data): Print it.
3689         (max_opno, num_dups): Delete.
3690         (scan_operands): Just fill in "d->operand[...]".
3691         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
3692
3693 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
3694
3695         * gensupport.h (pattern_stats): New structure.
3696         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
3697         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
3698         (max_operand_1, max_operand_vec): Delete.
3699         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
3700
3701 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
3702
3703         * emit-rtl.c (emit_pattern_after_setloc): New function.
3704         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
3705         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
3706         (emit_pattern_after): New function.
3707         (emit_insn_after, emit_jump_insn_after): Call it.
3708         (emit_call_insn_after, emit_debug_insn_after): Likewise.
3709         (emit_pattern_before_setloc): New function.
3710         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
3711         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
3712         Likewise.
3713         (emit_pattern_before): New function.
3714         (emit_insn_before, emit_jump_insn_before): Call it.
3715         (emit_call_insn_before, emit_debug_insn_before): Likewise.
3716
3717 2011-03-31  Richard Henderson  <rth@redhat.com>
3718
3719         * dwarf2out.c (dw_separate_line_info_ref): Remove.
3720         (dw_separate_line_info_entry): Remove.
3721         (enum dw_line_info_opcode): New.
3722         (dw_line_info_entry): Use it.
3723         (dw_line_info_table, dw_line_info_table_p): New.
3724         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
3725         (line_info_table, line_info_label_num): Remove.
3726         (line_info_table_in_use): Remove.
3727         (separate_line_info_table): Remove.
3728         (separate_line_info_table_allocated): Remove.
3729         (separate_line_info_table_in_use): Remove.
3730         (LINE_INFO_TABLE_INCREMENT): Remove.
3731         (line_info_label_num): New.
3732         (cur_line_info_table): New.
3733         (text_section_line_info, cold_text_section_line_info): New.
3734         (separate_line_info): New.
3735         (SEPARATE_LINE_CODE_LABEL): Remove.
3736         (print_dwarf_line_table): Remove.
3737         (debug_dwarf): Don't dump it.
3738         (output_one_line_info_table): New.
3739         (output_line_info): Use it.
3740         (new_line_info_table): New.
3741         (set_cur_line_info_table): New.
3742         (dwarf2out_switch_text_section): Use it.
3743         (dwarf2out_begin_function): Likewise.
3744         (push_dw_line_info_entry): New.
3745         (dwarf2out_source_line): Rewrite for new line info tables.
3746         (dwarf2out_init): Remove dead initailizations.
3747
3748 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
3749
3750         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
3751         various flags.
3752         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
3753         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
3754         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
3755         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
3756         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
3757         * opt-functions.awk (flag_init, switch_bit_fields): New.
3758         (switch_flags): Don't handle flags moved to bit-fields.  Don't
3759         generate CL_MISSING_OK or CL_SAVE.
3760         * optc-gen.awk: Update to generate bit-field output as well as
3761         flags field.
3762         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
3763         bit-field instead of CL_REJECT_DRIVER flag.
3764         * opts-common.c (generate_canonical_option,
3765         decode_cmdline_option): Use bit-fields instead of CL_* flags.
3766         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
3767         instead of CL_REJECT_NEGATIVE flag.
3768         * toplev.c (print_switch_values): Use cl_report bit-field instead
3769         of CL_REPORT flag.
3770
3771 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
3772
3773         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
3774         a zero minimum index only if it is redundant.
3775
3776 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
3777
3778         PR rtl-optimization/48381
3779         * ira-color.c (assign_hard_reg): Use hard reg set intersection
3780         instead of ira_class_hard_reg_index for calculating conflicting
3781         hard registers.
3782
3783 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
3784
3785         * cprop.c: Clean up hash table building.
3786         (reg_avail_info): Remove.
3787         (oprs_available_p): Remove.
3788         (record_last_reg_set_info): Remove.
3789         (record_last_set_info): Remove.
3790         (reg_available_p): New function.
3791         (gcse_constant_p): Do not treat unfolded conditions as constants.
3792         (make_set_regs_unavailable): New function.
3793         (hash_scan_set): Simplify with new reg_available_p.
3794         (compute_hash_table_work): Traverse insns stream only once.
3795         Do not compute reg_avail_info. Traverse insns in reverse order.
3796         Record implicit sets after recording explicit sets from the block.
3797
3798 2011-03-31  Michael Matz  <matz@suse.de>
3799
3800         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
3801
3802 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
3803
3804         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
3805         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
3806         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3807         (h8300_mode_dependent_address_p): New function.
3808         (h8300_get_index): Make static.
3809
3810 2011-03-31  Jeff Law  <law@redhat.com>
3811
3812         * reload1.c (elimination_effects): Fix typo in recent change.
3813
3814         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
3815         typo potentially leading to null pointer dereference.
3816
3817         * caller-save.c (new_saved_hard_reg): Eliminate return value.
3818         (setup_save_areas): Corresponding changes to avoid useless
3819         assignments.
3820
3821         * jump.c (reversed_comparison_code_parts): Avoid successive return
3822         statements when REVERSE_CONDITION is defined.
3823
3824         * expr.c (expand_assignment): Avoid useless assignments.
3825         (expand_expr_real_1): Likewise.
3826         (expand_expr_real_2): Avoid useless statements.
3827
3828         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
3829
3830         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3831
3832         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
3833         statements.
3834
3835         * stmt.c (expand_expr_stmt): Avoid useless assignment.
3836
3837 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
3838
3839         PR target/47109
3840         * doc/tm.texi.in (TARGET_VERSION): Remove.
3841         * doc/tm.texi: Regenerate.
3842         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
3843         * collect2.c (main): Don't use TARGET_VERSION.
3844         * mips-tdump.c (main): Don't use TARGET_VERSION.
3845         * mips-tfile.c (main): Don't use TARGET_VERSION.
3846         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
3847         * config/rs6000/vxworksae.h: Remove.
3848         * config/alpha/alpha.h (TARGET_VERSION): Remove.
3849         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
3850         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
3851         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
3852         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3853         * config/arm/arm.h (TARGET_VERSION): Remove.
3854         * config/arm/coff.h (TARGET_VERSION): Remove.
3855         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
3856         * config/arm/elf.h (TARGET_VERSION): Remove.
3857         * config/arm/freebsd.h (TARGET_VERSION): Remove.
3858         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
3859         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
3860         * config/arm/pe.h (TARGET_VERSION): Remove.
3861         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
3862         * config/arm/semi.h (TARGET_VERSION): Remove.
3863         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
3864         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
3865         * config/arm/vxworks.h (TARGET_VERSION): Remove.
3866         * config/avr/avr.h (TARGET_VERSION): Remove.
3867         * config/bfin/bfin.h (TARGET_VERSION): Remove.
3868         * config/fr30/fr30.h (TARGET_VERSION): Remove.
3869         * config/frv/frv.h (TARGET_VERSION): Remove.
3870         * config/h8300/h8300.h (TARGET_VERSION): Remove.
3871         * config/i386/cygwin.h (TARGET_VERSION): Remove.
3872         * config/i386/darwin.h (TARGET_VERSION): Remove.
3873         * config/i386/darwin64.h (TARGET_VERSION): Remove.
3874         * config/i386/djgpp.h (TARGET_VERSION): Remove.
3875         * config/i386/freebsd.h (TARGET_VERSION): Remove.
3876         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
3877         * config/i386/gnu.h (TARGET_VERSION): Remove.
3878         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
3879         * config/i386/i386elf.h (TARGET_VERSION): Remove.
3880         * config/i386/linux.h (TARGET_VERSION): Remove.
3881         * config/i386/linux64.h (TARGET_VERSION): Remove.
3882         * config/i386/lynx.h (TARGET_VERSION): Remove.
3883         * config/i386/mingw32.h (TARGET_VERSION): Remove.
3884         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
3885         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
3886         * config/i386/netware.h (TARGET_VERSION): Remove.
3887         * config/i386/nto.h (TARGET_VERSION): Remove.
3888         * config/i386/openbsd.h (TARGET_VERSION): Remove.
3889         * config/i386/vxworks.h (TARGET_VERSION): Remove.
3890         * config/ia64/elf.h (TARGET_VERSION): Remove.
3891         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
3892         * config/ia64/hpux.h (TARGET_VERSION): Remove.
3893         * config/ia64/linux.h (TARGET_VERSION): Remove.
3894         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3895         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
3896         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3897         * config/lm32/lm32.h (TARGET_VERSION): Remove.
3898         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
3899         * config/m32c/m32c.h (TARGET_VERSION): Remove.
3900         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
3901         * config/m32r/m32r.h (TARGET_VERSION): Remove.
3902         * config/m68k/linux.h (TARGET_VERSION): Remove.
3903         * config/m68k/m68k.h (TARGET_VERSION): Remove.
3904         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
3905         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
3906         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
3907         * config/mep/mep.h (TARGET_VERSION): Remove.
3908         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
3909         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3910         * config/mips/iris6.h (MACHINE_TYPE): Remove.
3911         * config/mips/linux.h (TARGET_VERSION): Remove.
3912         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
3913         * config/mips/vxworks.h (TARGET_VERSION): Remove.
3914         * config/mmix/mmix.h (TARGET_VERSION): Remove.
3915         * config/mn10300/linux.h (TARGET_VERSION): Remove.
3916         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
3917         * config/pa/pa.h (TARGET_VERSION): Remove.
3918         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
3919         * config/picochip/picochip.h (TARGET_VERSION): Remove.
3920         * config/rs6000/aix.h (TARGET_VERSION): Remove.
3921         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
3922         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
3923         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
3924         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
3925         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
3926         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
3927         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
3928         * config/rs6000/linux.h (TARGET_VERSION): Remove.
3929         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
3930         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
3931         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
3932         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
3933         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
3934         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
3935         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
3936         * config/s390/linux.h (TARGET_VERSION): Remove.
3937         * config/s390/s390.h (TARGET_VERSION): Remove.
3938         * config/s390/tpf.h (TARGET_VERSION): Remove.
3939         * config/score/score.h (TARGET_VERSION): Remove.
3940         * config/sh/linux.h (TARGET_VERSION): Remove.
3941         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
3942         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
3943         * config/sh/sh.h (TARGET_VERSION): Remove.
3944         * config/sh/sh64.h (TARGET_VERSION): Remove.
3945         * config/sh/superh.h (TARGET_VERSION): Remove.
3946         * config/sh/vxworks.h (TARGET_VERSION): Remove.
3947         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
3948         * config/sparc/linux.h (TARGET_VERSION): Remove.
3949         * config/sparc/linux64.h (TARGET_VERSION): Remove.
3950         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
3951         TARGET_NAME32, TARGET_NAME): Remove.
3952         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
3953         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
3954         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
3955         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
3956         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
3957         * config/spu/spu.h (TARGET_VERSION): Remove.
3958         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
3959         * config/v850/v850.h (TARGET_VERSION): Remove.
3960         * config/vax/linux.h (TARGET_VERSION): Remove.
3961         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
3962         * config/xtensa/elf.h (TARGET_VERSION): Remove.
3963         * config/xtensa/linux.h (TARGET_VERSION): Remove.
3964
3965 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
3966
3967         PR target/48142
3968         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
3969         frame-related from frame-unrelated adjustments to the stack pointer.
3970
3971 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
3972
3973         * common.opt (fdebug-types-section): Move earlier.
3974         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
3975
3976 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
3977
3978         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
3979         var.
3980
3981 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
3982
3983         * tree.h (CASE_CHAIN): Define.
3984         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
3985         (gimple_redirect_edge_and_branch): Likewise.
3986
3987 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
3988
3989         PR middle-end/48367
3990         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
3991         calculation.
3992
3993 2011-03-30  Jeff Law  <law@redhat.com>
3994
3995         * PR bootstrap/48371
3996         * reload1.c (reload): Fix botch in last change.
3997
3998         * reload.h (struct reload): Fix typo introduced in last change.
3999
4000 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
4001
4002         * config/arm/arm.opt (mhard-float, msoft-float): Mark
4003         Undocumented.  Remove help text.
4004         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
4005         -mhard-float.
4006
4007 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
4008
4009         * doc/options.texi (NegativeAlias): Document.
4010         (Alias): Mention NegativeAlias.
4011         * opt-functions.awk: Handle NegativeAlias.
4012         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
4013         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
4014         * opts.h (CL_NEGATIVE_ALIAS): Define.
4015         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
4016         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
4017         OPT_mspe_.
4018         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
4019         Alias entries.
4020         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
4021         mno-spe and mno-isel instead of mspe=no and -misel=no.
4022
4023 2011-03-29  Mark Wielaard  <mjw@redhat.com>
4024
4025         * common.opt (fdebug-types-section): New flag.
4026         * doc/invoke.texi: Document new -fno-debug-types-section flag.
4027         * dwarf2out.c (use_debug_types): New define.
4028         (struct die_struct): Mark die_id with GTY desc use_debug_types.
4029         (print_die): Guard output of type unit signatures using
4030         use_debug_types.
4031         (build_abbrev_table): Replace assert of dwarf_version >= 4
4032         with assert on use_debug_types.
4033         (size_of_die): Likewise.
4034         (unmark_dies): Likewise.
4035         (value_format): Decide AT_ref_external form on use_debug_types.
4036         (output_die): Replace dwarf_version version check guard with
4037         use_debug_types where appropriate.
4038         (modified_type_die): Likewise.
4039         (gen_reference_type_die): Likewise.
4040         (dwarf2out_start_source_file): Likewise.
4041         (dwarf2out_end_source_file): Likewise.
4042         (prune_unused_types_walk_attribs): Likewise.
4043         (dwarf2out_finish): Likewise.
4044
4045 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
4046
4047         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
4048
4049 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
4050
4051         PR rtl-optimization/48332
4052         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
4053         mode of input operand N and modeN to its actual mode.
4054
4055 2011-03-30  Jeff Law  <law@redhat.com>
4056
4057         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
4058         define accessor macro.
4059         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
4060         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
4061         (reg_equiv_init): Likewise.
4062         (reg_equivs_size): New variable.
4063         (reg_equiv_init_size): Remove.
4064         (allocate_initial_values): Move prototype to here from....
4065         * integrate.h (allocate_initial_values): Remove prototype.
4066         * integrate.c: Include reload.h.
4067         (allocate_initial_values): Corresponding changes.
4068         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
4069         (fix_reg_equiv_init, no_equiv): Corresponding changes.
4070         (update_equiv_regs): Corresponding changes.
4071         (ira): Corresponding changes.
4072         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
4073         (push_secondary_reload): Corresponding changes.
4074         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
4075         (make_memloc, find_reloads_address): Corresponding changes.
4076         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
4077         (find_reloads_address_1): Corresponding changes.
4078         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
4079         (refers_to_regno_for_reload_p): Corresponding changes.
4080         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
4081         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
4082         * reload1.c: Include ggc.h.
4083         (grow_reg_equivs): New function.
4084         (replace_pseudos_in, reload): Corresponding changes.
4085         (calculate_needs_all_insns, alter_regs): Corresponding changes.
4086         (eliminate_regs_1, elimination_effects): Corresponding changes.
4087         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
4088         (delete_output_reload): Likewise.
4089         * caller-save.c (mark_referenced_regs): Corresponding changes.
4090         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
4091         * frv/predicates.md (frv_load_operand): Corresponding changes.
4092         * microblaze/microblaze.c (double_memory_operand): Corresponding
4093         changes.
4094         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
4095         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
4096         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
4097         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
4098         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
4099         changes.
4100         * pa/pa.c (emit_move_sequence): Corresponding changes.
4101         * vax/vax.c (nonindexed_address_p): Corresponding changes.
4102
4103 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
4104
4105         PR target/47551
4106         * config/arm/arm.c (coproc_secondary_reload_class): Handle
4107         structure modes.  Don't check neon_vector_mem_operand for
4108         vector or structure modes.
4109
4110 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
4111             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4112
4113         PR target/43590
4114         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
4115         operand 1 and reshuffle the operands to match.
4116         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
4117
4118 2011-03-30  Christian Schüler  <cschueler@gmx.de>
4119
4120         PR driver/48208
4121         * config/c.opt (F): Added 'Driver' to -F option.
4122
4123         PR driver/48260
4124         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
4125           handler function.
4126         * config/darwin.opt: Added '-arch' option.
4127
4128 2011-03-30  Nick Clifton  <nickc@redhat.com>
4129
4130         * config/rx/rx.md: Add peepholes and patterns to combine
4131         extending loads and simple arithmetic instructions.
4132         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
4133         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
4134         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
4135         modes to use pre-decrement and post-increment addressing.
4136         (rx_is_restricted_memory_address): Add range checking of REG+INT
4137         addresses.
4138         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
4139         (rx_memory_move_cost): Adjust cost of stores.
4140         (rx_adjust_insn_length): New function.
4141
4142 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
4143
4144         PR c/48305
4145         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
4146         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
4147         matching arg00/arg01 types.
4148
4149 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
4150
4151         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
4152         last_location to UNKNOWN_LOCATION.
4153
4154 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
4155
4156         PR target/48349
4157         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
4158         FLOAT_SSE_REGS.
4159
4160 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
4161             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4162
4163         PR bootstrap/48337
4164         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
4165         Init(PROCESSOR_V7).
4166         (sparc_cpu): Likewise.
4167         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
4168         PROCESSOR_V7.
4169
4170 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
4171
4172         PR target/48336
4173         PR middle-end/48342
4174         PR rtl-optimization/48345
4175         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
4176         hard regs for given mode from profitable regs when doing secondary
4177         allocation.
4178
4179 2011-03-29  Jeff Law  <law@redhat.com>
4180
4181         PR bootstrap/48327
4182         * tree-ssa-threadupdate.c (struct redirection_data): Remove
4183         do_not_duplicate field.
4184         (lookup_redirection_data): Corresponding changes.
4185         (create_duplicates): Always create a template block.
4186         (redirect_edges): Remove code which reused the original block
4187         when it was going to become unreachable code.
4188         (thread_block): Don't set do_not_duplicate field.
4189
4190 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
4191
4192         * lto-opts.c (register_user_option_p, lto_register_user_option):
4193         Make type argument unsigned.
4194         * lto-streamer.h (lto_register_user_option): Make type argument
4195         unsigned.
4196         * opth-gen.awk: Make CL_* macros unsigned.
4197         * opts-common.c (find_opt): Make lang_mask argument unsigned.
4198         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
4199         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
4200         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
4201         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
4202         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
4203         (find_opt): Make lang_mask argument unsigned.
4204
4205 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
4206
4207         PR rtl-optimization/48331
4208         PR rtl-optimization/48334
4209         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
4210         for any used algorithm.
4211
4212 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
4213
4214         * ira-conflicts.c (build_object_conflicts): Add unused attribute
4215         to parent_max.
4216
4217 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
4218
4219         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
4220         (alpha_option_override): Don't set alpha_sr_alias_set.
4221         (emit_frame_store_1): Use gen_frame_mem rather than calling
4222         set_mem_alias_set.
4223         (alpha_expand_epilogue): Ditto.
4224
4225 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
4226
4227         PR tree-optimization/48290
4228         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
4229         vectorization, check that relevant phis in the basic block after
4230         the inner loop are really inner loop's exit phis.
4231
4232 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
4233
4234         PR debug/48190
4235         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
4236         (cached_dw_loc_list_def): New structure.
4237         (cached_dw_loc_list): New typedef.
4238         (cached_dw_loc_list_table): New variable.
4239         (cached_dw_loc_list_table_hash): New function.
4240         (cached_dw_loc_list_table_eq): Likewise.
4241         (add_location_or_const_value_attribute): Take a bool cache_p.
4242         Cache the list when the parameter is true.
4243         (gen_formal_parameter_die): Update caller.
4244         (gen_variable_die): Likewise.
4245         (dwarf2out_finish): Likewise.
4246         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
4247         while generating debug info for the decl.
4248         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
4249         (dwarf2out_init): Initialize cached_dw_loc_list_table.
4250         (resolve_addr): Cache the result of resolving a chain of
4251         location lists.
4252
4253 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
4254
4255         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
4256         conflict object hard regset nodes have intersecting hard reg sets.
4257
4258         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
4259         after regstat_init_n_sets_and_refs.
4260
4261         * ira.c: Add more comments at the top.
4262         (setup_stack_reg_pressure_class, setup_pressure_classes):
4263         Add comments how we compute the register pressure classes.
4264         (setup_allocno_and_important_classes): Add more comments.
4265         (setup_class_translate_array, reorder_important_classes)
4266         (setup_reg_class_relations): Add comments.
4267
4268         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
4269         start of the file.
4270
4271         * ira-color.c: Add 2011 to the Copyright line.
4272         (assign_hard_reg):  Add more comments.
4273         (improve_allocation): Ditto.
4274
4275         * ira-costs.c: Add 2011 to the Copyright line.
4276         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
4277         comments.
4278         (setup_regno_cost_classes_by_mode): Ditto.
4279
4280         Initial patches from ira-improv branch:
4281
4282         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
4283
4284         * ira-build.c (ira_create_object): Remove initialization of
4285         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
4286         (ira_create_allocno): Remove initialization of
4287         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
4288         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
4289         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
4290         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
4291         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
4292         Initialize ALLOCNO_ADD_DATA.
4293         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
4294         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
4295         ALLOCNO_REG.
4296         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
4297         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
4298
4299         * ira.c (ira_reallocate): Remove.
4300         (setup_pressure_classes): Call
4301         ira_init_register_move_cost_if_necessary.  Use
4302         ira_register_move_cost instead of ira_get_register_move_cost.
4303         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
4304         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
4305
4306         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
4307         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
4308         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
4309         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
4310         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
4311         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
4312         Fix formatting.
4313         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
4314         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4315         (struct allocno_color_data): New.
4316         (allocno_color_data_t): New typedef.
4317         (allocno_color_data): New definition.
4318         (ALLOCNO_COLOR_DATA): New macro.
4319         (struct object_color_data): New.
4320         (object_color_data_t): New typedef.
4321         (object_color_data): New definition.
4322         (OBJECT_COLOR_DATA): New macro.
4323         (update_copy_costs, calculate_allocno_spill_cost): Call
4324         ira_init_register_move_cost_if_necessary.  Use
4325         ira_register_move_cost instead of ira_get_register_move_cost.
4326         (move_spill_restore, update_curr_costs): Ditto.
4327         (allocno_spill_priority): Make it inline.
4328         (color_pass): Allocate and free allocno_color_dat and object_color_data.
4329         (struct coalesce_data, coalesce_data_t): New.
4330         (allocno_coalesce_data): New definition.
4331         (ALLOCNO_COALESCE_DATA): New macro.
4332         (merge_allocnos, coalesced_allocno_conflict_p): Use
4333         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
4334         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
4335         (coalesce_allocnos): Ditto.
4336         (setup_coalesced_allocno_costs_and_nums): Ditto.
4337         (collect_spilled_coalesced_allocnos): Ditto.
4338         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
4339         (setup_slot_coalesced_allocno_live_ranges): Ditto.
4340         (coalesce_spill_slots): Ditto.
4341         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
4342         free allocno_coalesce_data.
4343
4344         * ira-conflicts.c: Fix formatting.
4345         (process_regs_for_copy): Call
4346         ira_init_register_move_cost_if_necessary.  Use
4347         ira_register_move_cost instead of ira_get_register_move_cost.
4348         (build_object_conflicts): Optimize.
4349
4350         * ira-costs.c (record_reg_classes): Optimize.  Call
4351         ira_init_register_move_cost_if_necessary.  Use
4352         ira_register_move_cost, ira_may_move_in_cost, and
4353         ira_may_move_out_cost instead of ira_get_register_move_cost and
4354         ira_get_may_move_cost.
4355         (record_address_regs): Ditto.
4356         (scan_one_insn): Optimize.
4357         (find_costs_and_classes): Optimize.
4358         (process_bb_node_for_hard_reg_moves): Call
4359         ira_init_register_move_cost_if_necessary.  Use
4360         ira_register_move_cost instead of ira_get_register_move_cost.
4361
4362         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
4363         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
4364         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
4365         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
4366         definitions.
4367         (ira_initiate_emit_data, ira_finish_emit_data)
4368         (create_new_allocno): New functions.
4369         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
4370         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
4371         Use ira_register_move_cost instead of ira_get_register_move_cost.
4372
4373         * ira-int.h: Fix some comments.
4374         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
4375         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4376         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
4377         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
4378         add_data.
4379         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
4380         bitfield after mode.  Make hard_regno a short int.  Make
4381         hard_regno short.  Remove first_coalesced_allocno and
4382         next_coalesced_allocno.  Move mem_optimized_dest_p,
4383         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
4384         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
4385         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
4386         temp, colorable_p.  Add new member add_data.
4387         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
4388         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
4389         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
4390         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
4391         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
4392         (ALLOCNO_ADD_DATA): New macro.
4393         (ira_emit_data_t): New typedef.
4394         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
4395         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
4396         from struct ira_allocno.
4397         (ALLOCNO_EMIT_DATA): New macro.
4398         (ira_allocno_emit_data, allocno_emit_reg): New.
4399         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
4400         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
4401         (OBJECT_ADD_DATA): New macro.
4402         (ira_reallocate): Remove.
4403         (ira_initiate_emit_data, ira_finish_emit_data): New.
4404         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
4405         (ira_init_register_move_cost_if_necessary): New.
4406         (ira_object_conflict_iter_next): Merge into
4407         ira_object_conflict_iter_cond.
4408         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
4409
4410         * ira-live.c (process_single_reg_class_operands): Call
4411         ira_init_register_move_cost_if_necessary.  Use
4412         ira_register_move_cost instead of ira_get_register_move_cost.
4413
4414         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
4415
4416         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
4417
4418         * ira-costs.c: Fix formatting.
4419         (cost_classes, cost_classes_num): Remove.
4420         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
4421         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
4422         (cost_classes_del, cost_classes_htab): New.
4423         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
4424         (initiate_regno_cost_classes, setup_cost_classes): New.
4425         (setup_regno_cost_classes_by_aclass): New.
4426         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
4427         (record_reg_classes): Use regno_cost_classes instead of
4428         cost_classes.  Move checking opposite operand up.
4429         (record_address_regs): Use regno_cost_classes
4430         instead of cost_classes.
4431         (scan_one_insn): Ditto.  Use always general register.
4432         (print_allocno_costs): Use regno_cost_classes instead of
4433         cost_classes.
4434         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
4435         (find_costs_and_classes): Set up cost classes for each registers.
4436         Use also their mode for this.  Use regno_cost_classes instead of
4437         cost_classes.
4438         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
4439         cost_classes.
4440         (free_ira_costs, ira_init_costs): Don't use cost_classes.
4441         (ira_costs, ira_set_pseudo_classes): Call
4442         initiate_regno_cost_classes and finish_regno_cost_classes.
4443
4444         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
4445
4446         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
4447
4448         * target.def (ira_cover_classes): Remove.
4449
4450         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
4451
4452         * doc/tm.texi.in: Ditto.
4453
4454         * ira-conflicts.c: Remove mentioning cover classes from the file.
4455         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
4456         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
4457
4458         * targhooks.c (default_ira_cover_classes): Remove.
4459
4460         * targhooks.h (default_ira_cover_classes): Ditto.
4461
4462         * haifa-sched.c: Remove mentioning cover classes from the file.
4463         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
4464         ira_pressure_classes and ira_pressure_classes_num instead of
4465         ira_reg_class_cover_size and ira_reg_class_cover.  Use
4466         sched_regno_pressure_class instead of sched_regno_cover_class.
4467         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
4468         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4469
4470         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
4471         classes from the file.
4472         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
4473         (struct object_hard_regs, struct object_hard_regs_node): New.
4474         (struct ira_object): New members profitable_hard_regs,
4475         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
4476         (struct ira_allocno): Rename cover_class to aclass.  Rename
4477         cover_class_cost and updated_cover_class_cost to class_cost and
4478         updated_class_cost.  Remove splay_removed_p and
4479         left_conflict_size.  Add new members colorable_p.
4480         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
4481         (ALLOCNO_COLORABLE_P): New macro.
4482         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
4483         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
4484         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
4485         (OBJECT_...): Rename parameter C to O.
4486         (OBJECT_PROFITABLE_HARD_REGS): New macro.
4487         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
4488         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
4489         (struct target_ira_int): New members x_ira_max_memory_move_cost,
4490         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
4491         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
4492         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
4493         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
4494         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
4495         x_ira_reg_class_subunion.
4496         (ira_max_memory_move_cost, ira_max_register_move_cost)
4497         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
4498         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
4499         (ira_important_class_nums, ira_reg_class_superunion): New macros.
4500         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
4501         (ira_reg_class_union): Rename to ira_reg_class_subunion.
4502         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
4503         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
4504         (ira_tune_allocno_costs_and_cover_classes): Rename to
4505         ira_tune_allocno_costs.
4506         (ira_debug_hard_regs_forest): New.
4507         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
4508         (ira_object_conflict_iter_next): Fix comments.
4509         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
4510         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
4511         cover_class to aclass.
4512         (ira_allocate_and_accumulate_costs): Ditto.
4513         (ira_allocate_and_set_or_copy_costs): Ditto.
4514
4515         * opts.c (decode_options): Remove ira_cover_class check.
4516
4517         * ira-color.c: Remove mentioning cover classes from the file.  Use
4518         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
4519         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
4520         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
4521         (splay-tree.h): Remove include.
4522         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
4523         before copy_freq_compare_func.
4524         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
4525         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
4526         New definitions.
4527         (hard_regs_roots, hard_regs_node_vec): Ditto.
4528         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
4529         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
4530         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
4531         (create_new_object_hard_regs_node): Ditto.
4532         (add_new_object_hard_regs_node_to_forest): Ditto.
4533         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
4534         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
4535         Ditto.
4536         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
4537         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
4538         (remove_unused_object_hard_regs_nodes): Ditto.
4539         (enumerate_object_hard_regs_nodes): Ditto.
4540         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
4541         (object_hard_regs_subnode_t): Ditto.
4542         (struct object_hard_regs_subnode): Ditto.
4543         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
4544         (setup_object_hard_regs_subnode_index): Ditto.
4545         (get_object_hard_regs_subnodes_num): Ditto.
4546         (form_object_hard_regs_nodes_forest): Ditto.
4547         (finish_object_hard_regs_nodes_tree): Ditto.
4548         (finish_object_hard_regs_nodes_forest): Ditto.
4549         (allocnos_have_intersected_live_ranges_p): Rename to
4550         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
4551         (pseudos_have_intersected_live_ranges_p): Rename to
4552         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
4553         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
4554         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
4555         (update_copy_costs): Remove assert.  Skip cost update if the hard
4556         reg does not belong the class.
4557         (assign_hard_reg): Process only profitable hard regs.
4558         (uncolorable_allocnos_num): Make it scalar.
4559         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
4560         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
4561         and ira_reg_class_max_nregs.
4562         (bucket_allocno_compare_func): Check frequency first.
4563         (sort_bucket): Add compare function as a parameter.
4564         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
4565         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
4566         (push_allocno_to_stack): Rewrite for checking new allocno
4567         colorability.
4568         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
4569         (push_only_colorable): Pass new parameter to sort_bucket.
4570         (push_allocno_to_spill): Remove.
4571         (allocno_spill_priority_compare): Make it inline and rewrite.
4572         (splay_tree_allocate, splay_tree_free): Remove.
4573         (allocno_spill_sort_compare): New function.
4574         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
4575         build and use splay tree.  Choose first allocno in uncolorable
4576         allocno bucket to spill.  Remove setting spill cost.
4577         (all_conflicting_hard_regs): Remove.
4578         (setup_allocno_available_regs_num): Check only profitable hard
4579         regs.  Print info about hard regs nodes.
4580         (setup_allocno_left_conflicts_size): Remove.
4581         (put_allocno_into_bucket): Don't call
4582         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
4583         (improve_allocation): New.
4584         (color_allocnos): Call setup_profitable_hard_regs,
4585         form_object_hard_regs_nodes_forest, improve_allocation,
4586         finish_object_hard_regs_nodes_forest.  Setup spill cost.
4587         (print_loop_title): Use pressure classes.
4588         (color_allocnso): Ditto.
4589         (do_coloring): Remove allocation and freeing splay_tree_node_pool
4590         and allocnos_for_spilling.
4591         (ira_sort_regnos_for_alter_reg): Don't setup members
4592         {first,next}_coalesced_allocno.
4593         (color): Remove allocating and freeing removed_splay_allocno_vec.
4594         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
4595         prohibited_class_mode_regs.
4596
4597         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
4598         formatting.
4599         (update_allocno_pressure_excess_length): Use pressure classes.
4600         (inc_register_pressure, dec_register_pressure): Check for pressure
4601         class.
4602         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
4603         pressure class.  Use ira_reg_class_nregs instead of
4604         ira_reg_class_max_nregs.
4605         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
4606         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
4607         (single_reg_class): Use ira_reg_class_nregs instead of
4608         ira_reg_class_max_nregs.
4609         (process_bb_node_lives): Use pressure classes.
4610
4611         * ira-emit.c: Remove mentioning cover classes from the file.  Use
4612         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
4613         (change_loop): Use pressure classes.
4614         (modify_move_list): Call ira_set_allocno_class instead of
4615         ira_set_allocno_cover_class.
4616
4617         * ira-build.c: Remove mentioning cover classes from the file.  Use
4618         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
4619         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
4620         ALLOCNO_UPDATED_CLASS_COST instead of
4621         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
4622         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
4623         (ira_create_allocno): Remove initialization of
4624         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
4625         ALLOCNO_COLORABLE_P.
4626         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
4627         Update conflict regs for the objects.
4628         (create_cap_allocno): Remove assert.  Don't propagate
4629         ALLOCNO_AVAILABLE_REGS_NUM.
4630         (ira_free_allocno_costs): New function.
4631         (finish_allocno): Change a part of code into call of
4632         ira_free_allocno_costs.
4633         (low_pressure_loop_node_p): Use pressure classes.
4634         (object_range_compare_func): Don't compare classes.
4635         (setup_min_max_conflict_allocno_ids): Ditto.
4636
4637         * loop-invariant.c: Remove mentioning cover classes from the file.
4638         Use ira_pressure_classes and ira_pressure_classes_num instead of
4639         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
4640         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
4641         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4642         Use reg_allocno_class instead of reg_cover_class.
4643         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
4644         STACK_REG_COVER_CLASS.
4645         (get_regno_cover_class): Rename to get_regno_pressure_class.
4646         (move_loop_invariants): Initialize and finalize regstat.
4647
4648         * ira.c: Remove mentioning cover classes from the file.  Add
4649         comments about coloring without cover classes.  Use ALLOCNO_CLASS
4650         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
4651         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
4652         setup_class_subset_and_memory_move_costs.
4653         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
4654         (setup_cover_and_important_classes): Rename to
4655         setup_allocno_and_important_classes.
4656         (setup_class_translate_array): New.
4657         (setup_class_translate): Call it for allocno and pressure classes.
4658         (cover_class_order): Rename to allocno_class_order.
4659         (comp_reg_classes_func): Use ira_allocno_class_translate instead
4660         of ira_class_translate.
4661         (reorder_important_classes): Set up ira_important_class_nums.
4662         (setup_reg_class_relations): Set up ira_reg_class_superunion.
4663         (print_class_cover): Rename to print_classes.  Add parameter.
4664         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
4665         Print pressure classes too.
4666         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
4667         setup_reg_subclasses.
4668         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
4669         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4670         (setup_prohibited_class_mode_regs): Use
4671         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
4672         (clarify_prohibited_class_mode_regs): New function.
4673         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
4674         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
4675         (ira_init_once): Initialize them.
4676         (free_register_move_costs): Process them.
4677         (ira_init): Move calls of find_reg_classes and
4678         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
4679         Call clarify_prohibited_class_mode_regs.
4680         (ira_no_alloc_reg): Remove.
4681         (too_high_register_pressure_p): Use pressure classes.
4682
4683         * sched-deps.c: Remove mentioning cover classes from the file.
4684         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
4685         ira_pressure_classes and ira_pressure_classes_num instead of
4686         ira_reg_class_cover_size and ira_reg_class_cover.
4687         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
4688         sched_regno_pressure_class instead of sched_regno_cover_class.
4689         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
4690         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4691
4692         * ira.h: Add 2010 to Copyright.
4693         (ira_no_alloc_reg): Remove external.
4694         (struct target_ira): Rename x_ira_hard_regno_cover_class,
4695         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
4696         x_ira_class_translate to x_ira_hard_regno_allocno_class,
4697         x_ira_allocno_classes_num, x_ira_allocno_classes, and
4698         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
4699         x_ira_pressure_classes, x_ira_pressure_class_translate, and
4700         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
4701         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
4702         x_ira_no_alloc_regs.
4703         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
4704         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
4705         ira_allocno_classes_num and ira_allocno_classes.
4706         (ira_class_translate): Rename to ira_allocno_class_translate.
4707         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
4708         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
4709         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4710         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
4711         (ira_no_alloc_regs): New.
4712
4713         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
4714         classes from the file.  Use ALLOCNO_CLASS instead of
4715         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
4716         ALLOCNO_COVER_CLASS_COST.
4717         (regno_cover_class): Rename to regno_aclass.
4718         (record_reg_classes): Use ira_reg_class_subunion instead of
4719         ira_reg_class_union.
4720         (record_address_regs): Check overflow.
4721         (scan_one_insn): Ditto.
4722         (print_allocno_costs): Print total mem cost fore regional allocation.
4723         (print_pseudo_costs): Use REG_N_REFS.
4724         (find_costs_and_classes): Use classes intersected with them on the
4725         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
4726         ira_reg_class_union.  Use ira_allocno_class_translate and
4727         regno_aclass instead of ira_class_translate and regno_cover_class.
4728         Modify code for finding regno_aclass.  Setup preferred classes for
4729         the next pass.
4730         (setup_allocno_cover_class_and_costs): Rename to
4731         setup_allocno_class_and_costs.  Use regno_aclass instead of
4732         regno_cover_class.  Use ira_set_allocno_class instead of
4733         ira_set_allocno_cover_class.
4734         (init_costs, finish_costs): Use regno_aclass instead of
4735         regno_cover_class.
4736         (ira_costs): Use setup_allocno_class_and_costs instead of
4737         setup_allocno_cover_class_and_costs.
4738         (ira_tune_allocno_costs_and_cover_classes): Rename to
4739         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
4740         by processing objects.  Use ira_reg_class_max_nregs instead of
4741         ira_reg_class_nregs.
4742
4743         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
4744
4745         * sched-int.h: Remove mentioning cover classes from the file.
4746         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
4747
4748         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
4749         classes from the file.
4750         (struct reg_pref): Rename coverclass into allocnoclass.
4751         (reg_cover_class): Rename to reg_allocno_class.
4752
4753         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
4754
4755         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
4756
4757         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
4758
4759         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
4760
4761         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
4762
4763         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
4764
4765         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
4766
4767         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
4768
4769         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
4770
4771         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
4772
4773         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
4774         (i386_ira_cover_classes): Ditto.
4775
4776         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
4777
4778         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
4779
4780         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
4781
4782         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
4783
4784         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
4785
4786         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
4787
4788         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
4789         (mips_ira_cover_classes): Ditto.
4790
4791         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
4792
4793         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
4794
4795         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
4796
4797         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
4798
4799         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
4800
4801         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
4802         (IRA_COVER_CLASSES_VSX): Ditto.
4803
4804         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
4805         (rs6000_ira_cover_classes): Ditto.
4806
4807         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
4808
4809         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
4810
4811         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
4812
4813         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
4814
4815         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
4816
4817         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
4818
4819         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
4820
4821         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
4822
4823         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
4824
4825         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
4826
4827 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
4828
4829         PR debug/48253
4830         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
4831         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
4832         dw_fde_unlikely_section_end_label, cold_in_std_section,
4833         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
4834         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
4835         fields.
4836         (output_fde): Use dw_fde_second_{begin,end} if second is
4837         true, otherwise dw_fde_{begin,end}.
4838         (output_call_frame_info): Test dw_fde_second_begin != NULL
4839         instead of dw_fde_switched_sections.
4840         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
4841         fields, initialize new fields.  Initialize in_std_section
4842         unconditionally from the first partition.
4843         (dwarf2out_end_epilogue): Don't override dw_fde_end when
4844         dw_fde_second_begin is non-NULL.
4845         (dwarf2out_switch_text_section): Stop initializing removed
4846         dw_fde_struct fields, initialize new fields, initialize
4847         also dw_fde_end here.  Set dw_fde_switch_cfi even when
4848         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
4849         (struct var_loc_list_def): Add last_before_switch field.
4850         (arange_table, arange_table_allocated, arange_table_in_use,
4851         ARANGE_TABLE_INCREMENT, add_arange): Removed.
4852         (size_of_aranges): Count !in_std_section and !second_in_std_section
4853         hunks in fdes, instead of looking at arange_table_in_use.
4854         (output_aranges): Add aranges_length argument, don't call
4855         size_of_aranges here.  Instead of using aranges_table*
4856         emit ranges for fdes when !in_std_section resp.
4857         !second_in_std_section.
4858         (dw_loc_list): Break ranges crossing section switch.
4859         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
4860         use dw_fde_second_end instead of dw_fde_end as end of last range.
4861         (gen_subprogram_die): Don't call add_arange.  Use
4862         dw_fde_{begin,end} for first partition and if switched
4863         section dw_fde_second_{begin,end} for the second.
4864         (var_location_switch_text_section_1,
4865         var_location_switch_text_section): New functions.
4866         (dwarf2out_begin_function): Initialize cold_text_section even
4867         when function_section () isn't text_section.
4868         (prune_unused_types): Don't walk arange_table.
4869         (dwarf2out_finish): Don't needlessly test
4870         flag_reorder_blocks_and_partition when testing cold_text_section_used.
4871         If info_section_emitted, call size_of_aranges and if it indicates
4872         non-empty .debug_aranges, call output_aranges with the computed
4873         size.  Stop using removed dw_fde_struct fields, use
4874         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
4875         for second.
4876
4877         PR debug/48203
4878         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
4879         create ENTRY_VALUE if incoming or address of incoming's MEM
4880         is a hard REG.
4881         * dwarf2out.c (mem_loc_descriptor): Don't emit
4882         DW_OP_GNU_entry_value of DW_OP_fbreg.
4883         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
4884         on ENTRY_VALUE is able to find the canonical parameter VALUE.
4885         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
4886         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
4887         ENTRY_VALUE_EXPs.
4888         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
4889         is a REG_P or MEM_P with REG_P address, compute hash directly
4890         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
4891         (preserve_only_constants): Don't clear VALUES forwaring
4892         ENTRY_VALUE to some other VALUE.
4893
4894 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
4895
4896         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
4897         instead of GEN_INT.
4898
4899 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
4900
4901         * cfgexpand.c (expand_gimple_cond): Always set the source location and
4902         block before expanding the statement.
4903         (expand_gimple_stmt_1): Likewise.  Set them here...
4904         (expand_gimple_stmt): ...and not here.  Tidy.
4905         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
4906         unknown.
4907
4908 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
4909
4910         * Makefile.in: New rule for cprop.o.
4911         * gcse.c: Move constant/copy propagation to cprop.c.
4912         (compute_local_properties): Only handle expression tables.
4913         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
4914         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
4915         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
4916         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
4917         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
4918         compute_cprop_data, find_used_regs, try_replace_reg,
4919         find_avail_set, cprop_jump, constprop_register, cprop_insn,
4920         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
4921         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
4922         find_bypass_set, reg_killed_on_edge, bypass_block,
4923         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
4924         execute_rtl_cprop, pass_rtl_cprop): Move to...
4925         * cprop.c: ...here.  New file, constant/copy propagation for RTL
4926         moved from gcse.c to here with minor cleanups in duplicated code.
4927
4928 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
4929
4930         * config/i386/i386.c (flag_opts): Fix a typo in
4931         -mavx256-split-unaligned-store.
4932
4933 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
4934
4935         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
4936         LIBCALL_VALUE): Remove macros.
4937         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4938         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4939         (h8300_function_value, h8300_libcall_value,
4940         h8300_function_value_regno_p): New functions.
4941
4942 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
4943
4944         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
4945
4946 2011-03-28  Jeff Law  <law@redhat.com>
4947
4948         * tree-ssa-threadupdate.c (redirect_edges): Call
4949         create_edge_and_update_destination_phis as needed.
4950         (create_edge_and_update_destination_phis): Accept new BB argument.
4951         All callers updated.
4952         (thread_block): Do not update the profile when threading around
4953         intermediate blocks.
4954         (thread_single_edge): Likewise.
4955         (determine_bb_domination_status): If BB is not a successor of the
4956         loop header, return NONDOMINATING.
4957         (register_jump_thread): Note when we register a jump thread around
4958         an intermediate block.
4959         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
4960         (thread_across_edge): Use it.
4961
4962 2011-03-28  Tristan Gingold  <gingold@adacore.com>
4963
4964         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
4965         when for_return is 2.
4966
4967 2011-03-28  Jeff Law  <law@redhat.com>
4968
4969         * var-tracking.c (canonicalize_values_mark): Delete unused
4970         lhs assignment.
4971         (canonicalize_values_star, set_variable_part): Likewise.
4972         (clobber_variable_part, delete_variable_part): Likewise.
4973
4974 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
4975
4976         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
4977
4978 2011-03-28  Martin Jambor  <mjambor@suse.cz>
4979
4980         * tree-inline.c (expand_call_inline): Do not check that destination
4981         node is analyzed.
4982         (optimize_inline_calls): Assert that destination node is analyzed.
4983         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
4984         not call tree_lowering_passes.
4985         * cgraph.h (cgraph_analyze_function): Declare.
4986         * cgraphunit.c (cgraph_analyze_function): Make public.
4987
4988 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
4989
4990         * config/sparc/sparc-opts.h: New.
4991         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
4992         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
4993         (sparc_option_override): Store processor_type enumeration rather
4994         than string in cpu_default.  Remove name and enumeration from
4995         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
4996         without using sparc_select.  Use target_flags_explicit instead of
4997         fpu_option_set.
4998         * config/sparc/sparc.h (enum processor_type): Move to
4999         sparc-opts.h.
5000         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
5001         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
5002         HeaderInclude entry.
5003         (mcpu=, mtune=): Use Var and Enum.
5004         (sparc_processor_type): New Enum and EnumValue entries.
5005
5006 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5007             Iain Sandoe  <iains@gcc.gnu.org>
5008
5009         PR target/48245
5010         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
5011
5012 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
5013
5014         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
5015         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
5016         Insert new statements at it in lieu of STMT.
5017         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
5018         * tree-vect-stmts.c (vectorizable_store): Likewise.
5019         (vectorizable_load): Likewise.
5020
5021 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
5022
5023         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
5024         (divtf3): Ditto.
5025         (multf3): Ditto.
5026         (subtf3): Ditto.
5027
5028 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
5029
5030         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
5031         unaligned 256bit load/store.
5032         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
5033         (*avx_movdqu<avxmodesuffix>): Likewise.
5034
5035 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5036
5037         PR target/48288
5038         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
5039         * config/pa/pa.md (iordi3): Use new predicate in expander.
5040         (iorsi3): Likewise.
5041
5042 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
5043
5044         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
5045         FUNCTION_VALUE_REGNO_P): Remove macros.
5046         * config/mips/mips-protos.h (mips_function_value): Remove.
5047         * config/mips/mips.c (mips_function_value): Rename to...
5048         (mips_function_value_1): ... this. Make static.  Handle receiving
5049         the function type in 'fn_decl_or_type' argument.
5050         (mips_function_value, mips_libcall_value,
5051         mips_function_value_regno_p): New function.
5052         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5053         TARGET_FUNCTION_VALUE_REGNO_P): Define.
5054
5055 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
5056
5057         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
5058         and -mavx256-split-unaligned-store.
5059         (ix86_option_override_internal): Split 32-byte AVX unaligned
5060         load/store by default.
5061         (ix86_avx256_split_vector_move_misalign): New.
5062         (ix86_expand_vector_move_misalign): Use it.
5063
5064         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
5065         -mavx256-split-unaligned-store.
5066
5067         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
5068         256bit load/store.  Generate unaligned store on misaligned memory
5069         operand.
5070         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
5071         256bit load/store.
5072         (*avx_movdqu<avxmodesuffix>): Likewise.
5073
5074         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
5075         -mavx256-split-unaligned-store.
5076
5077 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
5078
5079         PR target/38598
5080         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
5081         Update commentary.
5082
5083 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
5084
5085         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
5086         opno arguments with an expand_operand.  Use create_input_operand.
5087         (mips_prepare_builtin_target): Delete.
5088         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
5089         functions.
5090         (mips_expand_builtin_direct): Use create_output_operand and
5091         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
5092         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
5093         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
5094
5095 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
5096
5097         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
5098         function.
5099         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
5100
5101 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
5102
5103         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
5104         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
5105         basic blocks and call commit_edge_insertions directly.
5106         (fixup_abnormal_edges): Move from here to...
5107         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
5108         on the edges and return whether some have actually been inserted.
5109         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
5110         compensation code.
5111
5112 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
5113
5114         PR rtl-optimization/48144
5115         * sel-sched-ir.c (merge_history_vect): Factor out from ...
5116         (merge_expr_data): ... here.
5117         (av_set_intersect): Rename to av_set_code_motion_filter.
5118         Update all callers.  Call merge_history_vect when an expression
5119         is found in both sets.
5120         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
5121
5122 2011-03-26  Alan Modra  <amodra@gmail.com>
5123
5124         * config/rs6000/predicates.md (word_offset_memref_op): Handle
5125         cmodel medium addresses.
5126         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
5127         64-bit gpr loads and stores.
5128         (rs6000_secondary_reload_ppc64): New function.
5129         * config/rs6000/rs6000-protos.h: Declare it.
5130         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
5131
5132 2011-03-26  Alan Modra  <amodra@gmail.com>
5133
5134         PR target/47487
5135         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
5136         GNU Go in traceback table.
5137
5138 2011-03-25  Richard Henderson  <rth@redhat.com>
5139
5140         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
5141         if there are exactly 6 operands.
5142         (set_storage_via_setmem): Similarly.
5143
5144 2011-03-25  Kai Tietz  <ktietz@redhat.com>
5145
5146         * collect2.c (write_c_file_stat): Handle backslash
5147         as right-hand directory separator.
5148         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
5149         checking just for slash.
5150         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
5151         instead of checking for trailing slash.
5152         * gcc.c (record_temp_file): Use filename_cmp instead
5153         of strcmp.
5154         (do_spec_1): Likewise.
5155         (replace_outfile_spec_function): Likewise.
5156         (is_directory): Use filename_ncmp instead of strncmp.
5157         (print_multilib_info): Likewise.
5158         * gcov.c (find_source): Use filename_cmp instead
5159         instead of strcmp.
5160         (make_gcov_file_name): Fix order of slash/backslash
5161         checks.
5162         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
5163         (add_standard_paths): Likewise.
5164         * mips-tfile.c (saber_stop): Handle backslash.
5165         * prefix.c (update_path): Use filename_ncmp instead of
5166         strncmp.
5167         * profile.c (output_location): Use filename_cmp instead
5168         of strcmp.
5169         * read-md.c (handle_toplevel_file): Handle backslash.
5170         * tlink.c (frob_extension):  Likewise.
5171         * tree-cfg.c (same_line_p): Use filename_cmp instead of
5172         strcmp.
5173         * tree-dump.c (dequeue_and_dump): Handle backslash.
5174         * tree.c (get_file_function_name): Likewise.
5175         * gengtype.c (read_input_list): Likewise.
5176         (get_file_realbasename): Likewise.
5177         (get_output_file_with_visibility): Use filename_cmp
5178         instead of strcmp.
5179
5180 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
5181
5182         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
5183         case to VFPv1.
5184
5185 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
5186
5187         * fold-const.c (expr_location_or): New function.
5188         (fold_truth_not_expr): Call it.
5189
5190 2011-03-25  Jeff Law  <law@redhat.com>
5191
5192         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
5193         va_end.
5194         * c-family/c-common.c (def_fn_type): Likewise.
5195         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
5196         * emit-rtl.c (gen_rtvec): Likewise.
5197         * lto/lto-lang.c (def_fn_type): Likewise.
5198
5199 2011-03-25  Richard Guenther  <rguenther@suse.de>
5200
5201         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
5202         also generate copies.
5203         (fini_copy_prop): Handle constant values properly.
5204
5205 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
5206
5207         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
5208         mode size instead of bitsize with DWARF2_ADDR_SIZE.
5209         (hash_loc_operands, compare_loc_operands): Handle
5210         DW_OP_GNU_entry_value.
5211
5212 2011-03-25  Kai Tietz  <ktietz@redhat.com>
5213
5214         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
5215         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
5216         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
5217         comment and use macro TARGET_64BIT_MS_ABI instead.
5218         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
5219         and change default behavior for 32-bit MS_ABI.
5220         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
5221         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
5222         32-bit, too.
5223         (ix86_cfun_abi): Likewise.
5224         (ix86_maybe_switch_abi): Adjust comment.
5225         (init_cumulative_args): Check for bit-ness in MS_ABI case.
5226         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
5227         instead of checking for SYSV_ABI.
5228         (ix86_nsaved_sseregs): Likewise.
5229         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
5230         to 16 bytes.
5231         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
5232         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
5233         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
5234         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
5235         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
5236
5237 2011-03-25  Richard Guenther  <rguenther@suse.de>
5238
5239         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
5240         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
5241         (verify_gimple): Remove.
5242         * tree-cfg.c (verify_gimple_call): Merge verification
5243         from verify_stmts.
5244         (verify_gimple_phi): Merge verification from verify_stmts.
5245         (verify_gimple_label): New function.
5246         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
5247         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
5248         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
5249         (verify_stmts): Rename to verify_gimple_in_cfg.
5250         (verify_gimple_in_cfg): New function.
5251         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
5252         * tree-ssa.c (verify_ssa): Likewise.
5253         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
5254
5255 2011-03-25  Richard Guenther  <rguenther@suse.de>
5256
5257         * passes.c (init_optimization_passes): Add FRE pass after
5258         early SRA.
5259
5260 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
5261             Andrew Stubbs  <ams@codesourcery.com>
5262
5263         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
5264         for Cortex-A8.
5265         (arm_movdi_vfp_cortexa8): New pattern.
5266         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
5267         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
5268         instructions when tuning for Cortex-A8.  Set attribute "arch".
5269         * config/arm/arm.md: Move include arm-tune.md up a bit.
5270         (define_attr "arch"): Add "onlya8" and "nota8" values.
5271         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
5272
5273 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
5274
5275         PR bootstrap/48282
5276         Revert:
5277         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5278
5279         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5280         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
5281         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5282         * passes.c (init_optimization_passes): Move
5283         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5284
5285 2011-03-25  Kai Tietz  <ktietz@redhat.com>
5286
5287         * c-typeck.c (comptypes_internal): Replace target
5288         hook call of comp_type_attributes by version in tree.c file.
5289         * gimple.c (gimple_types_compatible_p_1): Likewise.
5290         * tree-ssa.c (useless_type_conversion_p): Likewise.
5291         * tree.c (build_type_attribute_qual_variant): Likewise.
5292         (attribute_value_equal): New static helper function.
5293         (comp_type_attributes): New function.
5294         (merge_attributes): Use attribute_value_equal for comparison.
5295         (attribute_list_contained): Likewise.
5296         * tree.h (comp_type_attributes): New prototype.
5297
5298 2011-03-25  Richard Guenther  <rguenther@suse.de>
5299
5300         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
5301         of complex types at -O0.
5302         (verify_gimple_assign_binary): Likewise.
5303         (verify_gimple_assign_ternary): Likewise.
5304
5305 2011-03-24  Mark Wielaard  <mjw@redhat.com>
5306
5307         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
5308         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
5309
5310 2011-03-24  Mark Wielaard  <mjw@redhat.com>
5311
5312         PR debug/48041
5313         * dwarf2out.c (output_abbrev_section): Only write table when
5314         abbrev_die_table_in_use > 1.
5315
5316 2011-02-24  Richard Henderson  <rth@redhat.com>
5317
5318         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
5319         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
5320         (alpha_expand_unaligned_load_words): Use extql.
5321         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
5322         (emit_insxl): Handle all modes for consistency.
5323
5324 2011-02-24  Richard Henderson  <rth@redhat.com>
5325
5326         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
5327         (alpha_expand_unaligned_load): Likewise.
5328         (alpha_expand_unaligned_store): Likewise.
5329         (alpha_expand_unaligned_load_words): Likewise.
5330         (alpha_expand_unaligned_store_words): Likewise.
5331         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
5332         (alpha_split_lock_test_and_set_12): Likewise.
5333         (print_operand, alpha_fold_builtin_extxx): Likewise.
5334         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
5335         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
5336         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
5337         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
5338         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
5339         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
5340         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
5341         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
5342         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
5343         (extwl, extll, extql): Similarly.
5344         (inswh, inslh, insqh): Similarly.
5345         (mskbl, mskwl, mskll, mskql): Similarly.
5346         (mskwh, msklh, mskqh): Similarly.
5347
5348 2011-02-24  Richard Henderson  <rth@redhat.com>
5349
5350         * config/alpha/alpha.md (attribute isa): Add er, ner.
5351         (attribute enabled): Handle them.
5352         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
5353
5354 2011-02-24  Richard Henderson  <rth@redhat.com>
5355
5356         * config/alpha/alpha.md (attribute isa): Add vms.
5357         (attribute enabled): Handle it.
5358         (*movsf): Merge *movsf_{nofix,fix,nofp}.
5359         (*movdf): Merge *movdf_{nofix,fix,nofp}.
5360         (*movtf): Rename from *movtf_internal for consistency.
5361         (*movsi): Merge with *movsi_nt_vms.
5362         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
5363         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
5364         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
5365         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
5366
5367 2011-02-24  Richard Henderson  <rth@redhat.com>
5368
5369         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
5370         (extendqisi2, extendhisi2): Likewise.
5371         (extendqidi2): Simplify BWX/non-BWX expansions.
5372         (extendhidi2): Similarly.
5373
5374 2011-02-24  Richard Henderson  <rth@redhat.com>
5375
5376         * config/alpha/alpha.md (attribute isa): New.
5377         (attribute enabled): New.
5378         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
5379         (zero_extendqisi2, zero_extendqidi2): Similarly.
5380         (zero_extendhisi2, zero_extendhidi2): Similarly.
5381         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
5382
5383 2011-02-24  Richard Henderson  <rth@redhat.com>
5384
5385         * config/alpha/predicates.md (input_operand): Revert last change;
5386         update comment to mention 32-bit VMS rather than Windows.
5387
5388 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5389
5390         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5391         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
5392         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5393         * passes.c (init_optimization_passes): Move
5394         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5395
5396 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
5397
5398         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
5399
5400 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
5401
5402         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
5403         correctly.
5404
5405 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
5406
5407         PR debug/48204
5408         * simplify-rtx.c (simplify_const_unary_operation): Call
5409         real_convert when changing mode class with FLOAT_EXTEND.
5410
5411 2011-03-24  Nick Clifton  <nickc@redhat.com>
5412
5413         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
5414         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
5415         * config/rx/rx.c (rx_option_override): Set align_jumps,
5416         align_loops and align_labels if not set by the user.
5417         (rx_align_for_label): New function.
5418         (rx_max_skip_for_label): New function.
5419         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
5420         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
5421         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
5422         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
5423         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
5424
5425 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
5426
5427         PR rtl-optimization/48263
5428         * optabs.c (expand_binop_directly): Reinstate convert_modes code
5429         and original commutative_p handling.  Use maybe_gen_insn.
5430
5431 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5432
5433         * reload.c (find_reloads_subreg_address): Add address_reloaded
5434         parameter and return true there if the full address has been
5435         reloaded.
5436         (find_reloads_toplev): Pass address_reloaded flag.
5437         (find_reloads_address_1): Don't use address_reloaded parameter.
5438
5439 2011-03-24  Jeff Law  <law@redhat.com>
5440
5441         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
5442         unused variable "ann".
5443         (remove_unused_locals): Likewise.
5444
5445         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
5446         statement.
5447
5448         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
5449         after it is freed.
5450
5451 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5452
5453         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
5454         for invalid symbolic addresses.
5455         (s390_secondary_reload): Don't use s390_check_symref_alignment for
5456         larl operands.
5457
5458 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
5459
5460         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
5461         the argument in calls to fold_truth_not_expr.
5462
5463 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5464
5465         * tree.c (record_node_allocation_statistics): New function.
5466         (make_node_stat, copy_node_stat, build_string): Call it.
5467         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
5468         (build1_stat, build_omp_clause): Likewise.
5469
5470 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
5471
5472         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
5473         last commit.
5474
5475 2011-03-24  Richard Guenther  <rguenther@suse.de>
5476
5477         PR tree-optimization/48271
5478         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
5479         blocks that still exist.
5480
5481 2011-03-24  Richard Guenther  <rguenther@suse.de>
5482
5483         PR tree-optimization/48270
5484         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
5485         not free datarefs before ddrs.
5486
5487 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
5488
5489         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
5490         from the address built for a reference with variable offset.
5491
5492 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
5493
5494         PR target/48237
5495         * config/i386/i386.md (*movdf_internal_rex64): Do not split
5496         alternatives that can be handled with movq or movabsq insn.
5497         (*movdf_internal): Disable for !TARGET_64BIT.
5498         (*movdf_internal_nointeger): Ditto.
5499         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
5500
5501 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5502
5503         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
5504         (FUNCTION_ARG_ADVANCE): Likewise.
5505         * tm.texi.in: Change references to them to hook references.
5506         * tm.texi: Regenerate.
5507         * targhooks.c (default_function_arg): Eliminate check for target macro.
5508         (default_function_incoming_arg): Likewise.
5509         (default_function_arg_advance): Likewise.
5510         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
5511         (function_arg_advance): Likewise.
5512         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
5513
5514 2011-03-24  Richard Guenther  <rguenther@suse.de>
5515
5516         PR middle-end/48269
5517         * tree-object-size.c (addr_object_size): Do not double-account
5518         for MEM_REF offsets.
5519
5520 2011-03-24  Diego Novillo  <dnovillo@google.com>
5521
5522         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
5523         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
5524         (lto_input_data_block): Move from lto-opts.c.  Make extern.
5525         Update all users.
5526         (lto_input_string): Rename from input_string.  Make extern.
5527         Update all users.
5528         * lto-streamer-out.c (lto_output_string_with_length): Rename from
5529         output_string_with_length.
5530         Output 0 to indicate a non-NULL string.  Update all callers to
5531         not emit 0.
5532         (lto_output_string): Rename from output_string.  Make extern.
5533         Update all users.
5534         (lto_output_decl_state_streams): Make extern.
5535         (lto_output_decl_state_refs): Make extern.
5536         * lto-streamer.h (lto_input_string): Declare.
5537         (lto_input_data_block): Declare.
5538         (lto_output_string): Declare.
5539         (lto_output_string_with_length): Declare.
5540         (lto_output_decl_state_streams): Declare.
5541         (lto_output_decl_state_refs): Declare.
5542
5543 2011-03-24  Richard Guenther  <rguenther@suse.de>
5544
5545         PR tree-optimization/46562
5546         * tree.c (build_invariant_address): New function.
5547         * tree.h (build_invariant_address): Declare.
5548         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
5549         a renamed function moved ...
5550         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
5551         Take valueization callback parameter.
5552         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
5553         * gimple-fold.h: New file.
5554         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
5555         (ccp_fold, fold_const_aggregate_ref,
5556         fold_ctor_reference, fold_nonarray_ctor_reference,
5557         fold_array_ctor_reference, fold_string_cst_ctor_reference,
5558         get_base_constructor): Move ...
5559         * gimple-fold.c: ... here.
5560         (gimple_fold_stmt_to_constant_1): New function
5561         split out from ccp_fold.  Take a valueization callback parameter.
5562         Valueize all operands.
5563         (gimple_fold_stmt_to_constant): New wrapper function.
5564         (fold_const_aggregate_ref_1): New function split out from
5565         fold_const_aggregate_ref.  Take a valueization callback parameter.
5566         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
5567         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
5568         invariant POINTER_PLUS_EXPRs to invariant form.
5569         (vn_valueize): New function.
5570         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
5571         * tree-vrp.c (vrp_valueize): New function.
5572         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
5573         to fold statements to constants.
5574         * tree-ssa-pre.c (eliminate): Properly guard propagation of
5575         function declarations.
5576         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
5577         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
5578
5579 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
5580
5581         * config/h8300/predicates.md (jump_address_operand): Fix register
5582         mode check.
5583
5584 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
5585
5586         * doc/invoke.texi (max-stores-to-sink): Document.
5587         * params.h (MAX_STORES_TO_SINK): Define.
5588         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
5589         if either vectorization or if-conversion is disabled.
5590         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
5591         tree-vect-data-refs.c vect_equal_offsets.
5592         (dr_equal_offsets_p): New function.
5593         (find_data_references_in_bb): Remove static.
5594         * tree-data-ref.h (find_data_references_in_bb): Declare.
5595         (dr_equal_offsets_p): Likewise.
5596         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
5597         (vect_drs_dependent_in_basic_block): Update calls to
5598         vect_equal_offsets.
5599         (vect_check_interleaving): Likewise.
5600         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
5601         (cond_if_else_store_replacement): Rename to...
5602         (cond_if_else_store_replacement_1): ... this.  Change arguments and
5603         documentation.
5604         (cond_if_else_store_replacement): New function.
5605         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
5606         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
5607
5608 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
5609
5610         PR target/46934
5611         * config/arm/arm.md (casesi): Use the gen_int_mode() function
5612         to subtract lower bound instead of GEN_INT().
5613
5614 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
5615
5616         PR other/48179
5617         PR other/48221
5618         PR other/48234
5619         * doc/extend.texi (Alignment): Move section to match order in TOC.
5620         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
5621         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
5622
5623 2011-03-23  Jeff Law  <law@redhat.com>
5624
5625         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
5626         before removing the edge.
5627
5628         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
5629         it may have been freed by redirect_branch_edge or
5630         redirect_edge_succ_nodup.
5631
5632 2011-03-23  Richard Guenther  <rguenther@suse.de>
5633
5634         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
5635         (check_va_list_escapes): Likewise.
5636         (check_all_va_list_escapes): Likewise.
5637
5638 2011-03-23  Richard Guenther  <rguenther@suse.de>
5639
5640         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
5641         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
5642         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
5643         (alias.o): Likewise.
5644         (ipa-type-escape.o): Remove.
5645         (ipa-struct-reorg.o): Likewise.
5646         (GTFILES): Remove ipa-struct-reorg.c.
5647         * alias.c: Do not include ipa-type-escape.h.
5648         * tree-ssa-alias.c: Likewise.
5649         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
5650         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
5651         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
5652         and ipa-type-escape passes.
5653         * tree-pass.h (pass_ipa_type_escape): Remove.
5654         (pass_ipa_struct_reorg): Likewise.
5655         * ipa-struct-reorg.h: Remove.
5656         * ipa-struct-reorg.c: Likewise.
5657         * ipa-type-escape.h: Likewise.
5658         * ipa-type-escape.c: Likewise.
5659         * doc/invoke.texi (-fipa-struct-reorg): Remove.
5660         (--param struct-reorg-cold-struct-ratio): Likewise.
5661         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
5662         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
5663         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
5664
5665 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5666
5667         * config/s390/2084.md: Enable all insn reservations also for z9_ec
5668         cpu attribute value.
5669         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
5670         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
5671         * config/s390/s390.c (processor_flags_table): New constant array.
5672         (s390_handle_arch_option): Remove.
5673         (s390_handle_option): Remove s390_handle_arch_option invocations
5674         and OPT_mwarn_framesize_ handling.
5675         (s390_option_override): Remove s390_handle_arch_option invocation.
5676         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
5677         warnings.
5678         * config/s390/s390.md (cpu attribute): Add z9_ec value.
5679         * config/s390/s390.opt (s390_tune, s390_arch)
5680         (march=): Replace s390_arch_option enum and values with
5681         processor_type.  Set variable name to s390_arch.  Set
5682         initialization value.
5683         (mtune=): Replace s390_arch_option with processor_type.  Set
5684         variable name to s390_tune.  Set initialization value.
5685
5686 2011-03-23  Julian Brown  <julian@codesourcery.com>
5687
5688         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
5689         accesses which are not naturally aligned.
5690
5691 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
5692
5693         PR target/47553
5694         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
5695
5696 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
5697
5698         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
5699         parameter from "int" to "enum insn_code".
5700         (expand_operand_type): New enum.
5701         (expand_operand): New structure.
5702         (create_expand_operand): New function.
5703         (create_fixed_operand, create_output_operand): Likewise
5704         (create_input_operand, create_convert_operand_to): Likewise.
5705         (create_convert_operand_from, create_address_operand): Likewise.
5706         (create_integer_operand): Likewise.
5707         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
5708         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5709         (expand_insn, expand_jump_insn): Likewise.
5710         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
5711         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
5712         (expand_movstr, expand_builtin___clear_cache): Likewise.
5713         (expand_builtin_lock_release): Likewise.
5714         * explow.c (allocate_dynamic_stack_space): Likewise.
5715         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
5716         and use the default handling in that case.
5717         * expmed.c (check_predicate_volatile_ok): Delete.
5718         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
5719         (emit_cstore): Likewise.
5720         * expr.c (emit_block_move_via_movmem): Likewise.
5721         (set_storage_via_setmem, expand_assignment): Likewise.
5722         (emit_storent_insn, try_casesi): Likewise.
5723         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
5724         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
5725         (expand_vec_shift_expr, expand_binop_directly): Likewise.
5726         (expand_twoval_unop, expand_twoval_binop): Likewise.
5727         (expand_unop_direct, emit_indirect_jump): Likewise.
5728         (emit_conditional_move, vector_compare_rtx): Likewise.
5729         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
5730         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
5731         (expand_sync_lock_test_and_set): Likewise.
5732         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
5733         (emit_unop_insn): Likewise.
5734         (expand_copysign_absneg): Change icode to an insn_code.
5735         (create_convert_operand_from_type): New function.
5736         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
5737         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5738         (expand_insn, expand_jump_insn): Likewise.
5739         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
5740         than const_int_operand for operand 2.
5741
5742 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5743
5744         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
5745         if possible.
5746
5747 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
5748
5749         * emit-rtl.c (emit_pattern_before_noloc): New function.
5750         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
5751         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
5752         (emit_pattern_after_noloc): New function.
5753         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
5754         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
5755
5756 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
5757
5758         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
5759         (__ffsDI2): Likewise.
5760
5761 2011-03-22  Richard Henderson  <rth@redhat.com>
5762
5763         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
5764         of !TARGET_ABI_OPEN_VMS.
5765         (alpha_trampoline_init, alpha_start_function): Likewise.
5766         (alpha_expand_epilogue, alpha_file_start): Likewise.
5767         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
5768         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
5769         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
5770         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
5771         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
5772
5773 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5774
5775         * config/s390/s390-opts.h: New.
5776         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
5777         s390_arch_flags, s390_warn_framesize, s390_stack_size,
5778         s390_stack_guard): Remove.
5779         (s390_handle_arch_option): Return void.  Take enum
5780         s390_arch_option value instead of string and searching array.
5781         (s390_handle_option): Don't assert that global structures are in
5782         use.  Access variables via opts pointer.  Use error_at.  Don't use
5783         sscanf for -mstack-guard= or -mstack-size=.  Update call to
5784         s390_handle_arch_option.
5785         (s390_option_override): Update call to s390_handle_arch_option.
5786         (s390_emit_prologue): Use %d format for s390_stack_size in
5787         diagnostic.  Use %wd for HOST_WIDE_INT.
5788         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
5789         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
5790         * config/s390/s390.opt (config/s390/s390-opts.h): New
5791         HeaderInclude entry.
5792         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
5793         s390_arch_flags, s390_warn_framesize): New Variable entries.
5794         (s390_arch_option): New Enum and EnumValue entries.
5795         (march=): Use Enum instead of Var.
5796         (mstack-guard=, mstack-size=): Use UInteger and Var.
5797         (mtune=): Use Enum.
5798
5799 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5800
5801         * config/score/score.c (score_handle_option): Don't assert that
5802         global structures are in use.  Access target_flags via opts
5803         pointer.  Use value of -march= option to determine target_flags
5804         settings.
5805         * config/score/score.opt (march=): Use Enum.
5806         (score_arch): New Enum and EnumValue entries.
5807
5808 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5809
5810         * config/mep/mep.c (option_mtiny_specified): Remove.
5811         (mep_option_override): Move register handling for -mivc2 from
5812         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
5813         instead of option_mtiny_specified.
5814         (mep_handle_option): Access target_flags via opts pointer.  Don't
5815         assert that global structures are in use.  Defer part of -mivc2
5816         handling and move it to mep_option_override.
5817         * config/mep/mep.opt (IVC2): New Mask entry.
5818         (mivc2): Use Var and Defer instead of Mask.
5819
5820 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5821
5822         * config/v850/v850-opts.h: New.
5823         * config/v850/v850.c (small_memory): Replace with
5824         small_memory_physical_max array.  Make that array static const.
5825         (v850_handle_memory_option): Take integer value of argument.  Take
5826         gcc_options pointer, option text and location.  Return void.
5827         Update for changes to small memory structures.
5828         (v850_handle_option): Access target_flags via opts pointer.  Don't
5829         assert that global structures are in use.  Update calls to
5830         v850_handle_memory_option.
5831         (v850_encode_data_area): Update references to small memory settings.
5832         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
5833         (enum small_memory_type): Move to v850-opts.h.
5834         * config/v850/v850.opt (config/v850/v850-opts.h): New
5835         HeaderInclude entry.
5836         (small_memory_max): New Variable entry.
5837         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
5838         (mtda, mzda): Likewise.
5839
5840 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5841
5842         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
5843         pointer.  Don't assert that global structures are in use.
5844
5845 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5846
5847         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
5848         via opts pointer.  Don't assert that global structures are in use.
5849
5850 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5851
5852         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
5853         (munix=93): Use Var.
5854         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
5855         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
5856         * config/pa/pa-opts.h: New.
5857         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
5858         (pa_handle_option): Don't assert that global structures are in
5859         use.  Access target_flags via opts pointer.  Don't handle
5860         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
5861         OPT_munix_98 here.
5862         (pa_option_override): Handle deferred OPT_mfixed_range_.
5863
5864 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5865
5866         * config/mn10300/mn10300-opts.h: New.
5867         * config/mn10300/mn10300.c (mn10300_processor,
5868         mn10300_tune_string): Remove.
5869         (mn10300_handle_option): Don't assert that global structures are
5870         in use.  Access mn10300_processor via opts pointer.  Don't handle
5871         OPT_mtune_ here.
5872         * config/mn10300/mn10300.h (enum processor_type): Move to
5873         mn10300-opts.h.
5874         (mn10300_processor): Remove.
5875         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
5876         HeaderInclude entry.
5877         (mn10300_processor): New Variable entry.
5878         (mtune=): Use Var.
5879
5880 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5881
5882         * config/microblaze/microblaze.c: Don't include opts.h.
5883         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
5884         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
5885         (mno-clearbss): Use Var and Warn.
5886
5887 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5888
5889         * config/m32r/m32r-opts.h: New.
5890         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
5891         (m32r_handle_option): Don't assert that global structures are in
5892         use.  Access target_flags and m32r_cache_flush_func via opts
5893         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
5894         OPT_mno_flush_trap here.
5895         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
5896         include of m32r-opts.h.
5897         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
5898         HeaderInclude entry.
5899         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
5900         (mmodel=): Use Enum and Var.
5901         (m32r_model): New Enum and EnumValue entries.
5902         (mno-flush-trap): Use Var.
5903         (msdata=): Use Enum and Var.
5904         (m32r_sdata): New Enum and EnumValue entries.
5905
5906 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5907
5908         * config/m32c/m32c.c: Don't include opts.h.
5909         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
5910         m32c_handle_option): Remove.
5911         (m32c_option_override): Check global_options_set.x_target_memregs
5912         instead of target_memregs_set.
5913         * config/m32c/m32c.h (target_memregs): Remove.
5914         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
5915         variable.
5916
5917 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5918
5919         * config/iq2000/iq2000-opts.h: New.
5920         * config/iq2000/iq2000.c: Don't include opts.h.
5921         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
5922         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
5923         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
5924         HeaderInclude entry.
5925         (iq2000_tune): New Variable entry.
5926         (march=): Add comment.  Use Enum.
5927         (iq2000_arch): New Enum and EnumValue entries.
5928         (mcpu=): Use Enum and Var.
5929         (iq2000_tune): New Enum and EnumValue entries.
5930
5931 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5932
5933         * config/ia64/ia64-opts.h: New.
5934         * config/ia64/ia64.c (ia64_tune): Remove.
5935         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
5936         here.  Use error_at.
5937         (ia64_option_override): Handle deferred OPT_mfixed_range_.
5938         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
5939         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
5940         HeaderInclude entry.
5941         (ia64_tune): New Variable entry.
5942         (mfixed-range=): Use Defer and Var.
5943         (mtune=): Use Enum and Var.
5944         (ia64_tune): New Enum and EnumValue entries.
5945
5946 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5947
5948         * config/frv/frv-opts.h: New.
5949         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
5950         frv-opts.h.
5951         (frv_cpu_type): Remove.
5952         * config/frv/frv.c: Don't include opts.h.
5953         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
5954         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
5955         (frv_cpu_type): New Variable entry.
5956         (frv_cpu): New Enum and EnumValue entries.
5957
5958 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5959
5960         * config/cris/cris.c (cris_handle_option): Access target_flags via
5961         opts pointer.  Don't assert that global structures are in use.
5962         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
5963         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
5964
5965 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5966
5967         * config/bfin/bfin-opts.h: New.
5968         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
5969         bfin_si_revision, bfin_workarounds): Remove.
5970         (bfin_cpus): Make static const.
5971         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
5972         not bfin_lib_id_given.
5973         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
5974         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
5975         pointer. Use error_at.  Don't assert that global structures are in use.
5976         * config/bfin/bfin.h: Include bfin-opts.h.
5977         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
5978         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
5979         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
5980         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
5981         entries.
5982
5983 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5984
5985         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
5986         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
5987         or -msoft-float here.
5988         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
5989         -msoft-float and -mhard-float.
5990         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5991         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5992         msoft-float.
5993         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
5994         -msoft-float.
5995         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
5996         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
5997         not mhard-float.
5998         (LIBGCC_SPEC): Don't handle -msoft-float.
5999         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
6000         -mhard-float.
6001         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
6002         msoft-float.
6003         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
6004         -mfloat-abi=*, not -msoft-float and -mhard-float.
6005         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
6006         -msoft-float.
6007         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
6008         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
6009         mhard-float and msoft-float.
6010         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
6011         mfloat-abi=soft in comments, not mhard-float and msoft-float.
6012         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6013         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
6014         mhard-float.
6015         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
6016         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
6017         msoft-float.
6018         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
6019         not mhard-float.
6020         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
6021         not msoft-float.
6022
6023 2011-03-22  Richard Henderson  <rth@redhat.com>
6024
6025         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
6026         TARGET_ABI_WINDOWS_NT.
6027         (alpha_output_function_end_prologue): Likewise.
6028         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
6029         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
6030         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
6031         (trap, *movsi_nt_vms): Likewise.
6032         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
6033         (*tablejump_osf_nt_internal): Remove.
6034         * config/alpha/predicates.md (input_operand): Only test Pmode.
6035
6036 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6037
6038         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
6039         via opts pointer.  Use error_at.  Don't assert that global
6040         structures are in use.
6041
6042 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6043
6044         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
6045         (ix86_handle_option): Access ix86_isa_flags and
6046         ix86_isa_flags_explicit via opts pointer.  Don't assert that
6047         global structures are in use.
6048         (ix86_function_specific_save, ix86_function_specific_restore):
6049         Update ix86_isa_flags_explicit field name.
6050         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
6051         (ix86_isa_flags_explicit): Rename TargetSave entry to
6052         x_ix86_isa_flags_explicit.
6053
6054 2011-03-22  Richard Henderson  <rth@redhat.com>
6055
6056         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
6057         (alpha_option_override, direct_return): Likewise.
6058         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
6059         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
6060         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
6061         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
6062         (alpha_expand_epilogue, alpha_end_function): Likewise.
6063         (alpha_init_libfuncs): Likewise.
6064         (struct machine_function): Remove unicosmk members.
6065         (print_operand) ['t']: Remove.
6066         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
6067         unicosmk_output_module_name, unicosmk_output_common,
6068         current_section_align, unicosmk_output_text_section_asm_op,
6069         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
6070         unicosmk_section_type_flags, unicosmk_unique_section,
6071         unicosmk_asm_named_section, unicosmk_insert_attributes,
6072         unicosmk_output_align, unicosmk_defer_case_vector,
6073         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
6074         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
6075         unicosmk_output_ssib, unicosmk_add_call_info_word,
6076         unicosmk_extern_head, unicosmk_output_default_externs,
6077         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
6078         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
6079         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
6080         * config/alpha/alpha-protos.h: Update.
6081         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
6082         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
6083         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
6084         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
6085         (*mulsi_se, mulvsi3): Likewise.
6086         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
6087         (*divmodsi_internal, call, call_value, realign): Likewise.
6088         (moddi3, umoddi3): Likewise; remove duplicate expander.
6089         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
6090         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
6091         (*movdi_nofix): Remove r/U alternative.
6092         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
6093         * config/alpha/constraints.md ("U"): Remove.
6094         * config/alpha/predicates.md (call_operand"): Don't test
6095         TARGET_ABI_UNICOSMK.
6096
6097 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6098
6099         * target.def (handle_option): Take gcc_options and
6100         cl_decoded_option pointers and location_t.
6101         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
6102         * doc/tm.texi: Regenerate.
6103         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
6104         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
6105         * lto-opts.c (lto_reissue_options): Generate option structure for
6106         targetm.handle_option call.
6107         * opts.c (target_handle_option): Update call to
6108         targetm.handle_option.  Remove assertions about values now passed
6109         down to hook.
6110         * targhooks.c (default_target_handle_option): New.
6111         * targhooks.h (default_target_handle_option): Declare.
6112         * config/alpha/alpha.c: Include opts.h.
6113         (alpha_handle_option): Update to new hook interface.
6114         * config/arm/arm.c: Include opts.h.
6115         (arm_handle_option): Update to new hook interface.
6116         * config/arm/t-arm (arm.o): Update dependencies.
6117         * config/bfin/bfin.c: Include opts.h.
6118         (bfin_handle_option): Update to new hook interface.
6119         * config/cris/cris.c: Include opts.h.
6120         (cris_handle_option): Update to new hook interface.
6121         * config/frv/frv.c: Include opts.h.
6122         (frv_handle_option): Update to new hook interface.
6123         * config/i386/i386.c: Include opts.h.
6124         (ix86_handle_option): Update to new hook interface.
6125         (ix86_valid_target_attribute_inner_p): Generate option structure
6126         for call to ix86_handle_option.
6127         * config/i386/t-i386 (i386.o): Update dependencies.
6128         * config/ia64/ia64.c: Include opts.h.
6129         (ia64_handle_option): Update to new hook interface.
6130         * config/ia64/t-ia64 (ia64.o): Update dependencies.
6131         * config/iq2000/iq2000.c: Include opts.h.
6132         (iq2000_handle_option): Update to new hook interface.
6133         * config/m32c/m32c.c: Include opts.h.
6134         (m32c_handle_option): Update to new hook interface.
6135         * config/m32r/m32r.c: Include opts.h.
6136         (m32r_handle_option): Update to new hook interface.
6137         * config/m68k/m68k.c: Include opts.h.
6138         (m68k_handle_option): Update to new hook interface.
6139         * config/mep/mep.c: Include opts.h.
6140         (mep_handle_option): Update to new hook interface.
6141         * config/microblaze/microblaze.c: Include opts.h.
6142         (microblaze_handle_option): Update to new hook interface.
6143         * config/mips/mips.c: Include opts.h.
6144         (mips_handle_option): Update to new hook interface.
6145         * config/mn10300/mn10300.c: Include opts.h.
6146         (mn10300_handle_option): Update to new hook interface.
6147         * config/pa/pa.c: Include opts.h.
6148         (pa_handle_option): Update to new hook interface.
6149         * config/pdp11/pdp11.c: Include opts.h.
6150         (pdp11_handle_option): Update to new hook interface.
6151         * config/rs6000/rs6000.c: Include opts.h.
6152         (rs6000_handle_option): Update to new hook interface.
6153         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
6154         * config/rx/rx.c: Include opts.h.
6155         (rx_handle_option): Update to new hook interface.
6156         * config/s390/s390.c: Include opts.h.
6157         (s390_handle_option): Update to new hook interface.
6158         * config/score/score.c: Include opts.h.
6159         (score_handle_option): Update to new hook interface.
6160         * config/sh/sh.c: Include opts.h.
6161         (sh_handle_option): Update to new hook interface.
6162         * config/sparc/sparc.c: Include opts.h.
6163         (sparc_handle_option): Update to new hook interface.
6164         * config/v850/v850.c: Include opts.h.
6165         (v850_handle_option): Update to new hook interface.
6166
6167 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6168
6169         * gcc.c (driver_unknown_option_callback): Only permit and save
6170         unknown -Wno- options.
6171         (driver_wrong_lang_callback): Save options directly instead of via
6172         driver_unknown_option_callback.
6173
6174 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
6175
6176         * combine.c (simplify_set): Try harder to find the best CC mode when
6177         simplifying a nested COMPARE on the RHS.
6178
6179 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6180
6181         * config/alpha/gnu.h: Remove.
6182         * config/arc: Remove directory.
6183         * config/arm/netbsd.h: Remove.
6184         * config/arm/t-pe: Remove.
6185         * config/crx: Remove directory.
6186         * config/i386/netbsd.h: Remove.
6187         * config/m68hc11: Remove directory.
6188         * config/m68k/uclinux-oldabi.h: Remove.
6189         * config/mcore/mcore-pe.h: Remove.
6190         * config/mcore/t-mcore-pe: Remove.
6191         * config/netbsd-aout.h: Remove.
6192         * config/rs6000/gnu.h: Remove.
6193         * config/sh/sh-symbian.h: Remove.
6194         * config/sh/symbian-base.c: Remove.
6195         * config/sh/symbian-c.c: Remove.
6196         * config/sh/symbian-cxx.c: Remove.
6197         * config/sh/symbian-post.h: Remove.
6198         * config/sh/symbian-pre.h: Remove.
6199         * config/sh/t-symbian: Remove.
6200         * config/svr3.h: Remove.
6201         * config/vax/netbsd.h: Remove.
6202         * config.build: Don't handle i[34567]86-*-pe.
6203         * config.gcc: Remove handling of deprecations for most deprecated
6204         targets.
6205         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
6206         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
6207         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
6208         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
6209         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
6210         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
6211         Remove cases.
6212         * config.host: Don't handle i[34567]86-*-pe.
6213         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
6214         (ASM_SPEC32): Don't handle -mcall-gnu.
6215         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
6216         -mcall-gnu.
6217         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
6218         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
6219         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
6220         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
6221         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
6222         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
6223         conditional on SYMBIAN.
6224         * configure.ac: Don't handle powerpc*-*-gnu*.
6225         * configure: Regenerate.
6226         * doc/extend.texi (interrupt attribute): Don't mention CRX.
6227         * doc/install-old.texi (m6811, m6812): Don't mention.
6228         * doc/install.texi (arc-*-elf*): Don't document multilib option.
6229         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
6230         (m68k-uclinuxoldabi): Don't mention.
6231         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
6232         Remove.
6233         (-mcall-gnu): Remove.
6234         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
6235         families): Remove constraint documentation.
6236
6237 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
6238
6239         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
6240         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
6241         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
6242
6243 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
6244
6245         * config/avr/avr-protos.h (expand_epilogue): Change prototype
6246         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
6247         * config/avr/avr.c (init_cumulative_args)
6248         (avr_function_arg_advance): Use it.
6249         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
6250         sibcall epilogues.
6251         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
6252         (avr_function_ok_for_sibcall): ...this new function.
6253         (avr_lookup_function_attribute1): New static Function.
6254         (avr_naked_function_p, interrupt_function_p)
6255         (signal_function_p, avr_OS_task_function_p)
6256         (avr_OS_main_function_p): Use it.
6257         * config/avr/avr.md ("sibcall", "sibcall_value")
6258         ("sibcall_epilogue"): New expander.
6259         ("*call_insn", "*call_value_insn"): New insn.
6260         ("call_insn", "call_value_insn"): Remove
6261         ("call", "call_value", "epilogue"): Change expander to handle
6262         sibling calls.
6263
6264 2011-03-21  Nick Clifton  <nickc@redhat.com>
6265
6266         * doc/invoke.texi (Overall Options): Move closing brace to end of
6267         options list.
6268         (Optimization Options): Add missing @gol.
6269         (Directory Options): Likewise.
6270         (i386 and x86-64 Options): Likewise.
6271         (RS6000 and PowerPC Options): Likewise.
6272         (i386 and x86-64 Windows Options): Likewise.
6273         (V850 Options): Add text missing from descriptions.
6274
6275 2011-03-22  Richard Henderson  <rth@redhat.com>
6276
6277         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
6278         (avr_incoming_return_addr_rtx): New.
6279         (emit_push_byte): New.
6280         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
6281         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
6282         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
6283         (emit_pop_byte): New.
6284         (expand_epilogue): Use it.  Pop frame pointer by bytes.
6285         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
6286         (INCOMING_RETURN_ADDR_RTX): New.
6287         (INCOMING_FRAME_SP_OFFSET): New.
6288         (ARG_POINTER_CFA_OFFSET): New.
6289         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
6290         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
6291         (pophi): Remove.
6292
6293         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
6294
6295 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
6296
6297         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
6298         (FUNCTION_ARG_ADVANCE): Likewise.
6299         * tm.texi.in: Change references to them to hook references.
6300         * tm.texi: Regenerate.
6301         * targhooks.c (default_function_arg): Eliminate check for target
6302         macro.
6303         (default_function_incoming_arg): Likewise.
6304         (default_function_arg_advance): Likewise.
6305         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
6306         (function_arg_advance): Likewise.
6307         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
6308
6309 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
6310
6311         * tree.c (build_call_1): New function.
6312         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
6313
6314 2011-03-22  Richard Guenther  <rguenther@suse.de>
6315
6316         PR tree-optimization/48228
6317         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
6318         for single-arg PHIs.
6319
6320 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
6321
6322         PR rtl-optimization/48143
6323         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
6324         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
6325         sse2_cvtps2pd): Likewise.
6326
6327 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6328
6329         * recog.c (canonicalize_change_group): Use validate_unshare_change.
6330
6331 2011-03-22  Richard Guenther  <rguenther@suse.de>
6332
6333         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
6334         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
6335         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
6336         and REALIGN_LOAD_EXPR.
6337         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
6338         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
6339         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
6340         DOT_PROD_EXPR case ...
6341         (expand_expr_real_2): ... here.
6342         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
6343         and REALIGN_LOAD_EXPR.
6344         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
6345         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
6346         (vect_create_epilog_for_reduction): Likewise.
6347         (vectorizable_reduction): Likewise.
6348         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
6349         * tree-vect-stmts.c (vectorizable_load): Likewise.
6350
6351 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
6352
6353         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
6354
6355 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6356
6357         * config/s390/s390.c (s390_delegitimize_address): Fix offset
6358         handling for PLTOFF/GOTOFF.
6359
6360 2011-03-22  Nick Clifton  <nickc@redhat.com>
6361
6362         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
6363         trailing backslash from the end of the macro definition.
6364
6365 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6366
6367         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
6368         and PLT unspecs.
6369
6370 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
6371
6372         * expr.h (prepare_operand): Move to...
6373         * optabs.h (prepare_operand): ...here and change the insn code
6374         parameter from "int" to "enum insn_code".
6375         (insn_operand_matches): Declare.
6376         * expr.c (init_expr_target): Use insn_operand_matches.
6377         (compress_float_constant): Likewise.
6378         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
6379         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
6380         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
6381         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
6382         Likewise.
6383         (gen_cond_trap): Likewise.
6384         (prepare_operand): Likewise.  Change icode to an insn_code.
6385         (insn_operand_matches): New function.
6386         * reload.c (find_reloads_address_1): Use insn_operand_matches.
6387         * reload1.c (gen_reload): Likewise.
6388         * targhooks.c (default_secondary_reload): Likewise.
6389
6390 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
6391
6392         * config/alpha/alpha.md (unspec): New define_c_enum.
6393         (unspecv): Ditto.
6394
6395 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
6396
6397         PR debug/48214
6398         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
6399         between a call and its CALL_ARG_LOCATION note.
6400
6401 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
6402
6403         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
6404
6405 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
6406
6407         PR c/42544
6408         PR c/48197
6409         * c-common.c (shorten_compare): If primopN is first sign-extended
6410         to opN and then zero-extended to result type, set primopN to opN.
6411
6412 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
6413
6414         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
6415         for barrier handlers.
6416
6417 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
6418
6419         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
6420         UNSPEC constants to be in the unspec enumeration, and redefine
6421         all UNSPECV constants to be in the unspecv enumeration, so that
6422         dumps print which unspec/unspec_volatile this is.
6423         * config/rs6000/vector.md (UNSPEC_*): Ditto.
6424         * config/rs6000/paired.md (UNSPEC_*): Ditto.
6425         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
6426         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
6427         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
6428
6429         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
6430         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
6431         UNSPECV_LWSYNC, since these are used as unspec_volatile.
6432         * config/rs6000/sync.md (isync, lwsync): Ditto.
6433
6434 2011-03-21  Richard Guenther  <rguenther@suse.de>
6435
6436         * params.def (lto-min-partition): Fix typo.
6437
6438 2011-03-21  Richard Guenther  <rguenther@suse.de>
6439
6440         PR c/47939
6441         * c-decl.c (grokdeclarator): Drop to the main variant only
6442         for array types.  Drop flag_gen_aux_info check.
6443
6444 2011-03-21  Richard Guenther  <rguenther@suse.de>
6445
6446         PR translation/47911
6447         * params.def (lto-partitions): Fix typo.
6448         (lto-min-partition): Fix wording.
6449
6450 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
6451
6452         * config/rs6000/t-freebsd: Remove duplication from file.
6453
6454 2011-03-21  Richard Guenther  <rguenther@suse.de>
6455
6456         PR middle-end/47661
6457         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
6458
6459 2011-03-21  Richard Guenther  <rguenther@suse.de>
6460
6461         PR lto/48210
6462         * params.def (lto-partitions): Require at least 1 partition.
6463
6464 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6465
6466         * gthr-solaris.h: Remove.
6467         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
6468         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
6469         (LIB_SPEC): Likewise.
6470         * config/sol2.opt (threads): Remove.
6471         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
6472         (sparc*-*-solaris2*): Likewise.
6473         * configure.ac (enable_threads): Enable solaris support.
6474         * configure: Regenerate.
6475         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
6476         * doc/install.texi (Configuration, --enable-threads=lib): Remove
6477         solaris.
6478
6479 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6480
6481         * config.gcc: Obsolete *-*-solaris2.8*.
6482         * doc/install.texi (Specific, *-*-solaris2*): Document it.
6483
6484 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6485
6486         PR bootstrap/48135
6487         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
6488         reference.  Solaris 8 perl works.
6489
6490 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6491
6492         PR bootstrap/48135
6493         * doc/install.texi (Prerequisites): Move jar etc. up.
6494         Explain support library version requirements.
6495
6496 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6497
6498         PR bootstrap/48135
6499         * doc/install.texi (Prerequisites): Move Perl to build
6500         requirements.  Always necessary on Solaris 2 with Sun ld.
6501
6502 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6503
6504         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
6505         binutils 2.21.
6506         (Specific, i?86-*-solaris2.[89]): Likewise.
6507         (Specific, i?86-*-solaris2.10): Likewise.
6508         (Specific, mips-sgi-irix6): Likewise.
6509         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
6510         Update for binutils 2.21.
6511
6512 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6513
6514         * configure.ac (gcc_cv_lto_plugin): Fix typo.
6515         Allow -fuse-linker-plugin for non-default plugin linker.
6516         * configure: Regenerate.
6517
6518 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
6519
6520         PR bootstrap/48167
6521         * gengtype.c (files_rules): Added rule for cp/parser.h.
6522
6523 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
6524
6525         PR target/48213
6526         * config/s390/s390.c (s390_delegitimize_address): Don't call
6527         lowpart_subreg if orig_x has BLKmode.
6528
6529 2011-03-21  Kai Tietz  <ktietz@redhat.com>
6530
6531         PR target/12171
6532         * doc/plugins.texi: Adjust documentation for plugin register_callback.
6533         * tree.h (attribute_spec): Add new member affects_type_identity.
6534         * attribs.c (empty_attribute_table): Adjust attribute_spec
6535         initializers.
6536         * config/alpha/alpha.c: Likewise.
6537         * config/arc/arc.c: Likewise.
6538         * config/arm/arm.c: Likewise.
6539         * config/avr/avr.c: Likewise.
6540         * config/bfin/bfin.c: Likewise.
6541         * config/crx/crx.c: Likewise.
6542         * config/darwin.h: Likewise.
6543         * config/h8300/h8300.c: Likewise.
6544         * config/i386/cygming.h: Likewise.
6545         * config/i386/i386.c: Likewise.
6546         * config/ia64/ia64.c: Likewise.
6547         * config/m32c/m32c.c: Likewise.
6548         * config/m32r/m32r.c: Likewise.
6549         * config/m68hc11/m68hc11.c: Likewise.
6550         * config/m68k/m68k.c: Likewise.
6551         * config/mcore/mcore.c: Likewise.
6552         * config/mep/mep.c: Likewise.
6553         * config/microblaze/microblaze.c: Likewise.
6554         * config/mips/mips.c: Likewise.
6555         * config/rs6000/rs6000.c: Likewise.
6556         * config/rx/rx.c: Likewise.
6557         * config/sh/sh.c: Likewise.
6558         * config/sol2.h: Likewise.
6559         * config/sparc/sparc.c: Likewise.
6560         * config/spu/spu.c: Likewise.
6561         * config/stormy16/stormy16.c: Likewise.
6562         * config/v850/v850.c: Likewise.
6563
6564 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
6565
6566         * simplify-rtx.c (simplify_binary_operation_1): Handle
6567         (xor (and A B) C) case when B and C are both constants.
6568
6569 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
6570
6571         * tree-dfa.c (add_referenced_var): Fix typo in comment.
6572
6573 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
6574
6575         PR bootstrap/48168
6576         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
6577
6578 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
6579
6580         PR rtl-optimization/48156
6581         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
6582         assume df and df_lr are not NULL.
6583
6584 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6585
6586         PR debug/48023
6587         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
6588         between a call and its CALL_ARG_LOCATION note.
6589
6590 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
6591
6592         PR debug/48178
6593         * config/sh/sh.c (find_barrier): Don't emit a constant pool
6594         between a call and its corresponding CALL_ARG_LOCATION note.
6595
6596 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
6597
6598         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
6599         instead of loop. Use HARD_REGISTER_NUM_P predicate.
6600         * haifa-sched.c (setup_ref_regs): Ditto.
6601         * caller-save.c (add_used_regs_1): Ditto.
6602         * dse.c (look_for_hardregs): Ditto.
6603         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
6604         * sched-rgn.c (check_live_1): Ditto.
6605
6606 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
6607
6608         * c-decl.c (diagnose_mismatched_decls): Give an error for
6609         redefining a typedef with variably modified type.
6610
6611 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
6612
6613         * c-decl.c (grokfield): Don't allow typedefs for structures or
6614         unions with no tag by default.
6615         * doc/extend.texi (Unnamed Fields): Update.
6616
6617 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
6618
6619         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
6620         Rewrite using indirect functions.
6621         (lwp_slwpcb): Ditto.
6622         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
6623         (avx_vinsertf128<mode>): Ditto.
6624
6625 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6626
6627         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
6628         unspecs.
6629
6630 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6631
6632         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
6633         splitting between a call and its corresponding CALL_ARG_LOCATION note.
6634
6635 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
6636
6637         PR rtl-optimization/48170
6638         * gcse.c (hoist_code): Remove bogus asserts.
6639
6640 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
6641
6642         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
6643         computation for prologue/epilogue.
6644
6645 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6646
6647         * Makefile.in (check-consistency): Remove.
6648
6649 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
6650
6651         PR debug/48176
6652         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
6653         arange_table_in_use is 0, but either text_section_used or
6654         cold_text_section_used is true.  Don't call it if
6655         !info_section_emitted.
6656
6657 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
6658
6659         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
6660         FUNCTION_VALUE_REGNO_P): Remove.
6661         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
6662         Remove.
6663         * config/avr/avr.c (avr_ret_register): Make static inline.
6664         (avr_function_value_regno_p): New function.
6665         (avr_libcall_value): Make static. Add 'func' argument.
6666         (avr_function_value): Make static. Rename 'func' argument to
6667         'fn_decl_or_type', forward it to avr_libcall_value. Call
6668         avr_ret_register function instead of RET_REGISTER macro.
6669         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
6670
6671 2011-03-18  Jason Merrill  <jason@redhat.com>
6672
6673         PR c++/23372
6674         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
6675
6676 2011-03-18  Richard Guenther  <rguenther@suse.de>
6677
6678         * doc/install.texi (--enable-gold): Remove.
6679         (--with-plugin-ld): Document.
6680         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
6681
6682 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
6683
6684         PR middle-end/47790
6685         * expr.c (optimize_bitfield_assignment_op): Revamp to work
6686         again after expansion changes.
6687
6688 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
6689
6690         * combine.c (try_combine): Do simplification only call of
6691         subst() on i2 even when i1 is present. Update comments.
6692
6693 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
6694
6695         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
6696         and UNSPEC_PCREL_SYMOFF.
6697
6698 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6699
6700         * config/s390/s390.md: Use define_c_enum for the unspec constant
6701         definitions.
6702
6703 2011-03-18  Richard Henderson  <rth@redhat.com>
6704             Jakub Jelinek  <jakub@redhat.com>
6705
6706         PR bootstrap/48161
6707         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
6708         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
6709
6710 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6711
6712         PR middle-end/47725
6713         * combine.c (cant_combine_insn_p): Don't check zero/sign
6714         extended hard registers.
6715
6716 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6717
6718         PR middle-end/47725
6719         * combine.c (cant_combine_insn_p): Check zero/sign extended
6720         hard registers.
6721
6722 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
6723
6724         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6725         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
6726         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
6727         Change return type to bool.
6728         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6729
6730 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
6731
6732         PR debug/48163
6733         * var-tracking.c (prepare_call_arguments): If CALL target
6734         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
6735         pc instead of looking it up using cselib_lookup and use
6736         Pmode for it if x has VOIDmode.
6737         * dwarf2out.c (gen_subprogram_die): If also both first and
6738         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
6739
6740         PR debug/48163
6741         * function.c (assign_parms): For data.passed_pointer parms
6742         use MEM of data.entry_parm instead of data.entry_parm itself
6743         as DECL_INCOMING_RTL.
6744         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
6745         also when passed and declared mode is the same, DECL_RTL
6746         is a MEM with pseudo as address and DECL_INCOMING_RTL is
6747         a MEM too.
6748
6749 2011-03-16  Jeff Law  <law@redhat.com>
6750
6751         PR rtl-optimization/37273
6752         * ira-costs.c (scan_one_insn): Detect constants living in memory and
6753         handle them like argument loads from stack slots.  Do not double
6754         count memory for memory constants and argument loads from stack slots.
6755
6756 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6757
6758         PR debug/48160
6759         * var-tracking.c (prepare_call_arguments): Check SUBREG.
6760
6761 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6762
6763         PR target/48171
6764         * config/i386/i386.opt: Add Save to -mavx and -mfma.
6765
6766 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
6767
6768         PR bootstrap/48153
6769         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
6770         if dwarf_strict.
6771         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
6772         Clear call_arg_locations and call_arg_loc_last always.
6773
6774         PR middle-end/48152
6775         * var-tracking.c (prepare_call_arguments): If argument needs to be
6776         passed by reference, adjust argtype and mode.
6777
6778 2011-03-17  Richard Guenther  <rguenther@suse.de>
6779
6780         PR middle-end/48134
6781         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
6782         a value make sure to fold the statement.
6783
6784 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
6785
6786         PR target/43872
6787         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
6788         return condition with !cfun->calls_alloca.
6789
6790 2011-03-17  Richard Guenther  <rguenther@suse.de>
6791
6792         PR bootstrap/48148
6793         * lto-cgraph.c (input_overwrite_node): Clear the abstract
6794         origin for decls in other ltrans units.
6795         (input_varpool_node): Likewise.
6796
6797 2011-03-17  Richard Guenther  <rguenther@suse.de>
6798
6799         PR middle-end/48165
6800         * tree-object-size.c (compute_object_offset): Properly return
6801         the offset operand of MEM_REFs as sizetype.
6802
6803 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
6804
6805         PR rtl-optimization/48141
6806         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
6807         * dse.c: Include params.h.
6808         (active_local_stores_len): New variable.
6809         (add_wild_read, dse_step1): Clear it when setting active_local_stores
6810         to NULL.
6811         (record_store, check_mem_read_rtx): Decrease it when removing
6812         from the chain.
6813         (scan_insn): Likewise.  Increase it when adding to chain, if it
6814         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
6815         set active_local_stores to NULL before the addition.
6816         * Makefile.in (dse.o): Depend on $(PARAMS_H).
6817
6818         PR rtl-optimization/48141
6819         * dse.c (record_store): If no positions are needed in an insn
6820         that cannot be deleted, at least unchain it from active_local_stores.
6821
6822 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
6823
6824         PR debug/47510
6825         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
6826         (lookup_type_die_strip_naming_typedef): ... here.
6827         (get_context_die): Use it.
6828         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
6829         the anonymous struct named by the naming typedef.
6830
6831 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6832
6833         PR target/48154
6834         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
6835         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6836
6837 2011-03-16  Jeff Law  <law@redhat.com>
6838
6839         * tree-vrp.c (identify_jump_threads): Slightly simplify type
6840         check for operands of conditional.  Allow type to be a pointer.
6841
6842 2011-03-16  Richard Guenther  <rguenther@suse.de>
6843
6844         PR tree-optimization/48149
6845         * fold-const.c (fold_binary_loc): Fold
6846         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
6847
6848 2011-03-16  Richard Guenther  <rguenther@suse.de>
6849
6850         PR tree-optimization/26134
6851         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
6852         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
6853         (non_rewritable_mem_ref_base): Handle complex type component
6854         accesses, constrain offsets for vector and complex extracts
6855         more properly.
6856
6857 2011-03-16  Richard Guenther  <rguenther@suse.de>
6858
6859         PR tree-optimization/48146
6860         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
6861         operands avoiding the need for renaming.
6862
6863 2011-03-16  Richard Guenther  <rguenther@suse.de>
6864
6865         * gimple-fold.c (maybe_fold_reference): Open-code relevant
6866         constant folding.  Move MEM_REF canonicalization first.
6867         Rely on fold_const_aggregate_ref for initializer folding.
6868         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
6869
6870 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
6871
6872         PR middle-end/48136
6873         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6874         arg0/arg1 or their arguments are always fold converted to matching
6875         types.
6876
6877         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
6878         to nargs.
6879
6880 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6881
6882         PR lto/46944
6883         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
6884         Handle in-tree gold.
6885         (ld_vers): Extract binutils version for gold.
6886         (gcc_cv_ld_hidden): Handle gold here.
6887         (gcc_cv_lto_plugin): Determine level of linker plugin support.
6888         * configure: Regenerate.
6889         * config.in: Regenerate.
6890         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
6891         -fuse-linker-plugin otherwise.
6892         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
6893         (LINK_COMMAND_SPEC): Use it.
6894         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
6895
6896 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
6897
6898         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
6899         * calls.c: Remove debug.h include.
6900         (emit_call_1): Don't call virtual_call_token debug hook.
6901         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
6902         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
6903         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
6904         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
6905         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
6906         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
6907         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
6908         dwarf2out_virtual_call): Remove.
6909         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
6910         copy_call_info and virtual_call hooks.
6911         (dwarf2out_init): Don't initialize vcall_insn_table,
6912         debug_dcall_section and debug_vcall_section.
6913         (prune_unused_types): Don't mark nodes from dcall_table.
6914         (dwarf2out_finish): Don't output dcall or vcall tables.
6915         * final.c (final_scan_insn): Don't call direct_call or
6916         virtual_call debug hooks.
6917         * debug.h (struct gcc_debug_hooks): Remove direct_call,
6918         virtual_call_token, copy_call_info and virtual_call hooks.
6919         (debug_nothing_uid): Remove prototype.
6920         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
6921         copy_call_info and virtual_call hooks.
6922         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6923         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
6924         * debug.c (do_nothing_debug_hooks): Likewise.
6925         (debug_nothing_uid): Remove.
6926         * doc/invoke.texi (-fenable-icf-debug): Remove.
6927         * common.opt (-fenable-icf-debug): Likewise.
6928
6929         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
6930         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
6931         call's MEM.  Handle functions returning aggregate through a hidden
6932         first pointer.  For virtual calls add clobbered pc to call arguments
6933         chain.
6934         * dwarf2out.c (gen_subprogram_die): Emit
6935         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
6936         can't be emitted.
6937
6938         PR debug/45882
6939         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
6940         * rtl.h (ENTRY_VALUE_EXP): Define.
6941         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
6942         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
6943         * print-rtl.c (print_rtx): Likewise.
6944         * gengtype.c (adjust_field_rtx_def): Likewise.
6945         * var-tracking.c (vt_add_function_parameter): Adjust
6946         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
6947         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
6948         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
6949         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
6950         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
6951
6952         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
6953         Call var_location debug hook even on CALL_INSNs.
6954         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
6955         * rtl.def (ENTRY_VALUE): New.
6956         * dwarf2out.c: Include cfglayout.h.
6957         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
6958         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
6959         (struct call_arg_loc_node): New type.
6960         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
6961         tail_call_site_count): New variables.
6962         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
6963         DW_TAG_GNU_call_site_parameter.
6964         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
6965         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
6966         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
6967         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
6968         and DW_AT_GNU_all_source_call_sites.
6969         (mem_loc_descriptor): Handle ENTRY_VALUE.
6970         (add_src_coords_attributes): Don't add enything if
6971         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
6972         (dwarf2out_abstract_function): Save and clear call_arg_location,
6973         call_site_count and tail_call_site_count around dwarf2out_decl call.
6974         (gen_call_site_die): New function.
6975         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
6976         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
6977         (dwarf2out_function_decl): Clear call_arg_locations,
6978         call_arg_loc_last, set call_site_count and tail_call_site_count
6979         to -1 and free block_map.
6980         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
6981         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
6982         followed by any real instructions.
6983         (dwarf2out_begin_function): Set call_site_count and
6984         tail_call_site_count to 0.
6985         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
6986         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
6987         attempt to force a DIE for it and worst case remove the attribute.
6988         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
6989         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
6990         the decl itself.
6991         * var-tracking.c: Include tm_p.h.
6992         (vt_stack_adjustments): For calls call note_register_arguments.
6993         (argument_reg_set): New variable.
6994         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
6995         ensure the VALUE is resolved.
6996         (call_arguments): New variable.
6997         (prepare_call_arguments): New function.
6998         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
6999         (struct expand_loc_callback_data): Add ignore_cur_loc field.
7000         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
7001         always use the best expression.
7002         (vt_expand_loc): Add ignore_cur_loc argument.
7003         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
7004         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
7005         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
7006         note for all calls.
7007         (vt_add_function_parameter): Use cselib_lookup_from_insn.
7008         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
7009         argument.  Don't call cselib_preserve_only_values and
7010         cselib_reset_table.
7011         (note_register_arguments): New function.
7012         (vt_initialize): Compute argument_reg_set.  Call
7013         vt_add_function_parameters before processing basic blocks instead of
7014         afterwards.  For calls call prepare_call_arguments before calling
7015         cselib_process_insn.
7016         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
7017         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
7018         (var-tracking.o): Depend on $(TM_P_H).
7019         * cfglayout.h (insn_scope): New prototype.
7020         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
7021         * cfglayout.c (insn_scope): No longer static.
7022         * insn-notes.def (CALL_ARG_LOCATION): New.
7023         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
7024         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
7025         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
7026         nothing for DECL_EXTERNAL BLOCK_VARS.
7027
7028 2011-03-16  Alan Modra  <amodra@gmail.com>
7029
7030         PR target/45844
7031         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
7032         create invalid offset address for vsx splat insn.
7033         * config/rs6000/predicates.md (splat_input_operand): New.
7034         * config/rs6000/vsx.md (vsx_splat_*): Use it.
7035
7036 2011-03-15  Xinliang David Li  <davidxl@google.com>
7037
7038         PR c/47837
7039         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
7040         (normalize_preds): New function.
7041         (is_use_properly_guarded): Normalize def predicates.
7042
7043 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7044
7045         PR target/46788
7046         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
7047         in the output template.
7048
7049 2011-03-15  Richard Guenther  <rguenther@suse.de>
7050
7051         PR middle-end/47650
7052         * tree-pretty-print.c (dump_function_declaration): Properly
7053         dump unprototyped and varargs function types.
7054
7055 2011-03-15  Richard Guenther  <rguenther@suse.de>
7056
7057         PR tree-optimization/13954
7058         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
7059         and friends.
7060
7061 2011-03-15  Richard Guenther  <rguenther@suse.de>
7062
7063         PR tree-optimization/48037
7064         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
7065         selects into BIT_FIELD_REFs.
7066         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
7067         vector select.
7068
7069 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
7070
7071         PR tree-optimization/48129
7072         * builtins.c (fold_builtin_snprintf): Convert to type of
7073         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
7074         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
7075
7076 2011-03-15  Richard Guenther  <rguenther@suse.de>
7077
7078         PR tree-optimization/41490
7079         * tree-ssa-dce.c (propagate_necessity): Handle returns without
7080         value but with VUSE.
7081         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
7082         return statements.
7083         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
7084         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
7085         * tree-tailcall.c (find_tail_calls): Ignore returns.
7086
7087 2011-03-15  Richard Guenther  <rguenther@suse.de>
7088
7089         PR middle-end/48031
7090         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
7091         or variable-indexed array accesses when in gimple form.
7092
7093 2011-03-15  Richard Guenther  <rguenther@suse.de>
7094
7095         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
7096
7097 2011-03-15  Alan Modra  <amodra@gmail.com>
7098
7099         PR target/48032
7100         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
7101         presume symbol_refs without a symbol_ref_decl are suitably
7102         aligned, nor other trees we may see here.  Handle anchor symbols.
7103         (legitimate_constant_pool_address_p): Comment.  Add mode param.
7104         Check cmodel=medium addresses.  Adjust all calls.
7105         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
7106         creating cmodel=medium optimized access to locals.
7107         * config/rs6000/constraints.md (R): Pass QImode to
7108         legitimate_constant_pool_address_p.
7109         * config/rs6000/predicates.md (input_operand): Pass mode to
7110         legitimate_constant_pool_address_p.
7111         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
7112         Update prototype.
7113
7114 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
7115
7116         PR target/48053
7117         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
7118         64-bit constants being loaded into registers other than GPRs such
7119         as loading 0 into a VSX register.
7120
7121 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7122
7123         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
7124
7125 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
7126
7127         PR middle-end/47917
7128         * builtins.c (fold_builtin_snprintf): New function.
7129         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
7130         (fold_builtin_4): Likewise.
7131
7132         PR middle-end/38878
7133         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
7134         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
7135         and C - X == X also strip nops from +/-/p+ operand.
7136         When optimizing -X == C, fold C to arg0's type.
7137
7138         PR debug/47946
7139         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
7140         emit it as add_AT_int instead of add_AT_unsigned.
7141
7142 2011-03-14  Tom Tromey  <tromey@redhat.com>
7143
7144         * unwind-dw2.c: Include sys/sdt.h if it exists.
7145         (_Unwind_DebugHook): Use STAP_PROBE2.
7146         * config.in, configure: Rebuild.
7147         * configure.ac: Check for sys/sdt.h.
7148
7149 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
7150
7151         * config/i386/i386.md (ROUND_FLOOR): New constant.
7152         (ROUND_CEIL): Ditto.
7153         (ROUND_TRUNC): Ditto.
7154         (ROUND_MXCSR): Ditto.
7155         (ROUND_NO_EXC): Ditto.
7156         (rint<mode>2): Use new defines instead of numerical constants.
7157         (floor<mode>2): Ditto.
7158         (ceil<mode>2): Ditto.
7159         (btrunc<mode>2): Ditto.
7160         * config/i386/i386-builtin-types.def: Define ROUND function type
7161         aliases.
7162         * config/i386/i386.c (enum ix86_builtins): Add
7163         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
7164         (struct builtin_description): Add
7165         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
7166         (ix86_expand_sse_round): New static function.
7167         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
7168         function types.
7169         (ix86_builtin_vectorized_function): Handle
7170         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
7171
7172 2011-03-14  Tom Tromey  <tromey@redhat.com>
7173
7174         * c-parser.c (c_parser_asm_string_literal): Clear
7175         warn_overlength_strings.
7176
7177 2011-03-14  Tom Tromey  <tromey@redhat.com>
7178
7179         * c-parser.c (disable_extension_diagnostics): Save
7180         warn_overlength_strings.
7181         (restore_extension_diagnostics): Restore warn_overlength_strings.
7182
7183 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
7184
7185         * BASE-VER: Change to 4.7.0.
7186
7187 2011-03-14  Richard Guenther  <rguenther@suse.de>
7188
7189         PR middle-end/48098
7190         * tree.c (build_vector_from_val): Adjust assert to requirements
7191         and reality.
7192
7193 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
7194
7195         PR bootstrap/48102
7196         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
7197
7198 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
7199
7200         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
7201         terms of target_flags_explicit. Adjust copyright year.
7202
7203         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
7204         * config/rs6000/t-freebsd: New file. Add override for
7205         LIB2FUNCS_EXTRA.
7206
7207 2011-03-13  Chris Demetriou  <cgd@google.com>
7208
7209         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
7210         (-fno-diagnostics-show-option): this, to reflect current default.
7211         (-Werror=): Update text about -fno-diagnostics-show-option.
7212
7213 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
7214
7215         PR target/48053
7216         * config/rs6000/predicates.md (easy_vector_constant_add_self,
7217         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
7218         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
7219         mode is not V2DImode or V2DFmode.
7220         (vspltis_constant): Do not handle V2DImode and V2DFmode.
7221         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
7222         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
7223         registers to 0.
7224         (movdi_internal64): Likewise.
7225
7226 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
7227
7228         PR tree-optimization/47127
7229         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
7230         parameter.
7231         (set_cloog_options): Same.
7232         (scop_to_clast): Same.
7233         (print_clast_stmt): Do not call cloog_state_malloc and
7234         cloog_state_free.
7235         (print_generated_program): Same.
7236         (gloog): Same.
7237         * graphite-clast-to-gimple.h (cloog_state): Declared.
7238         (scop_to_clast): Adjust declaration.
7239         * graphite.c (cloog_state): Defined here.
7240         (graphite_initialize): Call cloog_state_malloc.
7241         (graphite_finalize): Call cloog_state_free.
7242
7243 2011-03-11  Jason Merrill  <jason@redhat.com>
7244
7245         * attribs.c (lookup_attribute_spec): Take const_tree.
7246         * tree.h: Adjust.
7247
7248 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
7249
7250         * config/sparc/sparc.c (sparc_option_override): Use
7251         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
7252
7253 2011-03-11  Richard Guenther  <rguenther@suse.de>
7254
7255         PR tree-optimization/48067
7256         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
7257         multiplication result will be only used once on the target
7258         stmt.
7259
7260 2011-03-11  Richard Guenther  <rguenther@suse.de>
7261
7262         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
7263
7264 2011-03-11  Richard Guenther  <rguenther@suse.de>
7265
7266         PR lto/48073
7267         * tree.c (find_decls_types_r): Do not walk types only reachable
7268         from IDENTIFIER_NODEs.
7269
7270 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
7271
7272         PR middle-end/48044
7273         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
7274         all vnode->force_output nodes as needed.
7275
7276 2011-03-11  Jason Merrill  <jason@redhat.com>
7277
7278         PR c++/48069
7279         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
7280         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
7281
7282 2011-03-11  Martin Jambor  <mjambor@suse.cz>
7283
7284         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
7285         cgraph_node.
7286
7287 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
7288
7289         PR tree-optimization/48063
7290         * ipa-inline.c (cgraph_decide_inlining): Don't try to
7291         inline functions called once if !tree_can_inline_p (node->callers).
7292
7293 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
7294
7295         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
7296         extra_objs.
7297         * config/score/score3.c: Delete.
7298         * config/score/score3.h: Delete.
7299         * config/score/mul-div.S: Delete.
7300         * config/score/sfp-machine.h: Add new file.
7301         * config/score/constraints.md: Add new file.
7302         * config/score/t-score-softfp: Add new file.
7303         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
7304         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
7305         (score7_extra_constraint): Delete.
7306         (score7_option_override): Remove unused code.
7307         * config/score/score.c: Remove score3 and score5 define and code.
7308         * config/score/score.h: Remove score3 and score5 define and code.
7309         * config/score/score.md: Remove score3 template and unusual insn.
7310         * config/score/score.opt: Remove score3 and score5 options.
7311
7312 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7313
7314         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
7315         when _HPUX_SOURCE is defined.
7316         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
7317
7318 2011-03-10  Jason Merrill  <jason@redhat.com>
7319
7320         PR c++/48029
7321         * stor-layout.c (layout_type): Don't set structural equality
7322         on arrays of incomplete type.
7323         * tree.c (type_hash_eq): Handle comparing them properly.
7324
7325 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
7326
7327         PR debug/48043
7328         * config/s390/s390.c (s390_delegitimize_address): Make sure the
7329         result mode matches original rtl mode.
7330
7331 2011-03-10  Nick Clifton  <nickc@redhat.com>
7332
7333         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
7334         (andsi3, andsi3_flags): Fix timings for three operand alternative.
7335
7336 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
7337
7338         PR rtl-optimization/47866
7339         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
7340         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
7341         if target wasn't scalar.
7342         * function.c (assign_stack_temp_for_type): Assert that neither
7343         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
7344         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
7345         macro.
7346         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
7347
7348 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7349
7350         * config/s390/s390-protos.h (s390_label_align): New prototype.
7351         * config/s390/s390.c (s390_label_align): New function.
7352         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
7353
7354 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
7355
7356         PR target/47755
7357         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
7358         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
7359         (output_vec_const_move): Ditto.
7360
7361 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
7362
7363         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
7364         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
7365         * config/mips/mips.c (mips_preferred_reload_class): Make static.
7366         Change 'rclass' argument and result type to reg_class_t.
7367         (TARGET_PREFERRED_RELOAD_CLASS): Define.
7368
7369 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
7370
7371         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7372         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
7373         (TARGET_MEMORY_MOVE_COST): Define.
7374         (avr_register_move_cost, avr_memory_move_cost): New Functions.
7375
7376 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
7377
7378         PR debug/47881
7379         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
7380         removed anything.
7381
7382         PR tree-optimization/48022
7383         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
7384         for EQ/NE_EXPR.
7385
7386 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
7387
7388         PR debug/47991
7389         * var-tracking.c (find_use_val): Return NULL for
7390         cui->sets && cui->store_p BLKmode MEMs.
7391
7392 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
7393
7394         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
7395         Remove.
7396         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
7397         xstormy16_print_operand_address): Remove.
7398         * config/stormy16/stormy16.c (xstormy16_print_operand,
7399         xstormy16_print_operand_address): Make static.
7400         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7401
7402 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
7403
7404         PR target/47862
7405         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
7406         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
7407         before definition.
7408
7409 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
7410
7411         PR bootstrap/48000
7412         * cfgloopmanip.c (fix_bb_placements): Return immediately
7413         if FROM is BASE_LOOP's header.
7414
7415 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
7416
7417         * gimplify.c (gimplify_function_tree): Fix building calls
7418         to __builtin_return_address.
7419
7420 2011-03-07  Alan Modra  <amodra@gmail.com>
7421
7422         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
7423         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
7424         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
7425         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
7426         return_mode args.
7427         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
7428         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
7429         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
7430         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
7431         * config/rs6000/rs6000.c
7432         (rs6000_elf_end_indicate_exec_stack): Rename to..
7433         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
7434         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
7435         (rs6000_file_start): ..here.
7436         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
7437         file scope variables.
7438         (call_ABI_of_interest): New function.
7439         (init_cumulative_args): Set above vars when function return value
7440         is a float, vector, or small struct.
7441         (rs6000_function_arg_advance_1): Likewise for function args.
7442         (rs6000_va_start): Set rs6000_passes_float if variable arg function
7443         references float args.
7444
7445 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
7446
7447         * doc/cfg.texi: Remove "See" before @ref.
7448         * doc/invoke.texi: Likewise.
7449
7450 2011-03-05  Jason Merrill  <jason@redhat.com>
7451
7452         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
7453
7454 2011-03-05  Anthony Green  <green@moxielogic.com>
7455
7456         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
7457
7458 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
7459
7460         PR rtl-optimization/47899
7461         * cfgloopmanip.c (fix_bb_placements): Fix first argument
7462         to flow_loop_nested_p when moving the loop upward.
7463
7464 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
7465
7466         PR target/47719
7467         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
7468
7469 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
7470
7471         PR tree-optimization/47967
7472         * ipa-cp.c (build_const_val): Return NULL instead of creating
7473         VIEW_CONVERT_EXPR for mismatching sizes.
7474         (ipcp_create_replace_map): Return NULL if build_const_val failed.
7475         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
7476         give up on versioning.
7477
7478 2011-03-05  Alan Modra  <amodra@gmail.com>
7479
7480         PR target/47986
7481         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7482         full cmodel medium/large lo_sum + high addresses.
7483
7484 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7485
7486         * config/s390/s390.c (s390_decompose_address): Reject non-literal
7487         pool references in UNSPEC_LTREL_OFFSET.
7488
7489 2011-03-04  Jan Hubicka  <jh@suse.cz>
7490
7491         PR lto/47497
7492         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
7493         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
7494         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
7495         Add node pointers.
7496         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
7497         cgraph_add_thunk): Add node pointers.
7498         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
7499         associated to right node.
7500         (input_node): Update use of cgraph_same_body_alias
7501         and cgraph_add_thunk.
7502
7503 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
7504
7505         * config/i386/i386.opt (mprefer-avx128): New flag.
7506         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
7507         modes when the flag -mprefer-avx128 is on.
7508
7509 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
7510
7511         * dwarf2out.c (compare_loc_operands): Fix address handling.
7512
7513 2011-03-04  Alan Modra  <amodra@gmail.com>
7514
7515         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
7516
7517 2011-03-04  Richard Guenther  <rguenther@suse.de>
7518
7519         PR middle-end/47968
7520         * expmed.c (extract_bit_field_1): Prefer vector modes that
7521         vec_extract patterns can handle.
7522
7523 2011-03-04  Richard Guenther  <rguenther@suse.de>
7524
7525         PR middle-end/47975
7526         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
7527
7528 2011-03-04  Richard Henderson  <rth@redhat.com>
7529
7530         * explow.c (emit_stack_save): Remove 'after' parameter.
7531         (emit_stack_restore): Likewise.
7532         * expr.h: Update to match.
7533         * builtins.c, calls.c, stmt.c: Likewise.
7534         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
7535         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
7536         * function.c (expand_function_end): Insert the emit_stack_save
7537         sequence before parm_birth_insn instead of after.
7538
7539 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
7540
7541         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
7542         (ssse3_pmaddubsw128): Ditto.
7543         (ssse3_pmaddubsw): Ditto.
7544
7545 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
7546
7547         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
7548
7549 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
7550
7551         PR c/47963
7552         * gimplify.c (omp_add_variable): Only call omp_notice_variable
7553         on TYPE_SIZE_UNIT if it is a DECL.
7554
7555         PR debug/47283
7556         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
7557         first operand is not is_gimple_mem_ref_addr, try to fold it.
7558         If the operand still isn't is_gimple_mem_ref_addr, clear
7559         MEM_EXPR on op0.
7560
7561 2011-03-03  Richard Guenther  <rguenther@suse.de>
7562
7563         PR middle-end/47283
7564         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
7565         match comment.
7566         (refs_may_alias_p_1): For release branches return true if
7567         we are confused by our input.
7568
7569 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7570
7571         * config/s390/s390.c (s390_function_value): Rename to ...
7572         (s390_function_and_libcall_value): ... this.
7573         (s390_function_value): New function.
7574         (s390_libcall_value): New function.
7575         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
7576         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
7577         target macro definitions.
7578         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
7579
7580 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
7581
7582         * config/i386/freebsd64.h (CC1_SPEC): Define.
7583         * config/i386/linux64.h (CC1_SPEC): Define.
7584         * config/i386/x86-64.h (CC1_SPEC): Don't define.
7585
7586 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
7587
7588         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7589         Remove.
7590         * config/stormy16/stormy16.c: Include reload.h.
7591         (xstormy16_memory_move_cost): New function.
7592         (TARGET_MEMORY_MOVE_COST): Define.
7593
7594 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
7595
7596         PR rtl-optimization/47925
7597         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
7598         with side effects.  Remove the more-specific check for volatile asms.
7599
7600 2011-03-02  Alan Modra  <amodra@gmail.com>
7601
7602         PR target/47935
7603         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
7604         toc relative addresses for valid offsets.
7605
7606 2011-03-01  Richard Guenther  <rguenther@suse.de>
7607
7608         PR tree-optimization/47890
7609         * tree-vect-loop.c (get_initial_def_for_induction): Set
7610         related stmt properly.
7611
7612 2011-03-01  Richard Guenther  <rguenther@suse.de>
7613
7614         PR lto/47924
7615         * lto-streamer.c (lto_record_common_node): Also register
7616         the canonical type.
7617
7618 2011-03-01  Richard Guenther  <rguenther@suse.de>
7619
7620         PR lto/46911
7621         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7622         Do not stream DECL_ABSTRACT_ORIGIN.
7623         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
7624         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
7625         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7626         Do not stream DECL_ABSTRACT_ORIGIN.
7627         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
7628         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
7629
7630 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
7631
7632         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
7633         FUNCTION_VALUE_REGNO_P): Remove.
7634         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
7635         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
7636         Add 'outgoing' argument.
7637         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
7638         function.
7639         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7640         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7641
7642 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
7643
7644         PR debug/28047
7645         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
7646         (lookup_filename): Likewise.
7647         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
7648
7649 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
7650             Jakub Jelinek  <jakub@redhat.com>
7651
7652         PR middle-end/47893
7653         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
7654         (assign_stack_local_1): Change last argument type to int.
7655         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
7656         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
7657         don't record padding space into frame_space_list nor use those areas.
7658         (assign_stack_local): Adjust caller.
7659         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
7660         of assign_stack_local, pass 0 as last argument.
7661         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
7662         callers.
7663
7664 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
7665
7666         PR debug/47283
7667         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
7668         Use target address_mode and pointer_mode hooks instead of hardcoded
7669         Pmode and ptr_mode.  Handle some simple cases of extending if
7670         POINTERS_EXTEND_UNSIGNED < 0.
7671         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
7672         Call convert_debug_memory_address.
7673         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
7674         convert_debug_memory_address.
7675
7676         PR middle-end/46790
7677         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
7678         * configure: Regenerated.
7679         * config.in: Regenerated.
7680         * varasm.c (default_function_section): Return NULL
7681         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
7682
7683 2011-02-28  Martin Jambor  <mjambor@suse.cz>
7684
7685         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
7686         the description to match the printed values.
7687
7688 2011-02-28  Richard Guenther  <rguenther@suse.de>
7689
7690         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
7691         of the copied scope tree.
7692
7693 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7694
7695         * doc/extend.texi (Function Attributes): Avoid deeply (and
7696         wrongly) nested tables.
7697
7698 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
7699
7700         PR middle-end/47903
7701         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
7702         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
7703         r isn't op0 nor op1.
7704
7705 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
7706
7707         * config/avr/avr.md: Remove magic comment for emacs.
7708
7709 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
7710
7711         PR target/45261
7712         * config/avr/avr.c (avr_option_override): Use error on bad options.
7713         (avr_help): New function.
7714         (TARGET_HELP): Define.
7715
7716 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
7717
7718         PR target/42240
7719         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
7720         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
7721
7722 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
7723
7724         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
7725         (ARM Options): Ditto.
7726         (i386 and x86-64 Options): Ditto.
7727         (RX Options): Ditto.
7728         (SPARC Options): Ditto.
7729
7730 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
7731
7732         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
7733         FreeBSD 6 and later.  Generally use cpu generic.
7734
7735 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
7736
7737         * doc/cpp.texi: Update copyright years.
7738
7739 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
7740
7741         PR target/46898
7742         * config/lm32/lm32.md (ashrsi3): Added needed variable.
7743
7744 2011-02-25  Jon Beniston  <jon@beniston.com>
7745
7746         PR target/46898
7747         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
7748         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
7749         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
7750         (lm32_block_move_inline): Add type cast to remove warning.
7751         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
7752         (gen_int_relational): Move declarations to start of function.
7753
7754 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
7755
7756         PR tree-optimization/45470
7757         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
7758         can throw internally only.
7759         * tree-vect-stmts.c (vectorizable_call): Likewise.
7760
7761 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
7762
7763         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
7764         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
7765         * config/stormy16/stormy16-protos.h
7766         (xstormy16_preferred_reload_class): Remove.
7767         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
7768         static. Change 'rclass' argument and return type to reg_class_t.
7769         (TARGET_PREFERRED_RELOAD_CLASS,
7770         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7771
7772 2011-02-24  Richard Guenther  <rguenther@suse.de>
7773
7774         * lto-streamer-in.c (input_bb): Do not find referenced vars
7775         in debug statements.
7776
7777 2011-02-23  Jason Merrill  <jason@redhat.com>
7778
7779         * common.opt (fabi-version): Document v5 and v6.
7780
7781 2011-02-23  Richard Guenther  <rguenther@suse.de>
7782
7783         PR tree-optimization/47849
7784         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
7785
7786 2011-02-23  Jie Zhang  <jie@codesourcery.com>
7787
7788         * opts-common.c (decode_cmdline_option): Print empty string
7789         argument as "" in decoded->orig_option_with_args_text.
7790         * gcc.c (execute): Print empty string argument as ""
7791         in the verbose output.
7792         (do_spec_1): Keep empty string argument.
7793
7794 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
7795
7796         * config.gcc: Declare score-* and crx-* obsolete.
7797
7798 2011-02-23  Jie Zhang  <jie@codesourcery.com>
7799
7800         PR rtl-optimization/47763
7801         * web.c (web_main): Ignore naked clobber when replacing register.
7802
7803 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
7804
7805         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7806         Remove.
7807
7808 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
7809
7810         PR doc/47848
7811         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
7812
7813 2011-02-22  Mike Stump  <mikestump@comcast.net>
7814
7815         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
7816         assembler.
7817         * configure: Regenerate.
7818
7819 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
7820
7821         PR rtl-optimization/46002
7822         * ira-color.c (update_copy_costs): Change class intersection
7823         test to reg_class_contents[] test of 'hard_regno'.
7824
7825 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
7826
7827         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
7828         than Driver option.
7829         * config/hpux11.opt (mt): Likewise.
7830         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
7831         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
7832         * config/vax/elf.opt (mno-asm-pic): Likewise.
7833         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
7834
7835 2011-02-21  Mike Stump  <mikestump@comcast.net>
7836
7837         PR target/47822
7838         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
7839         tree so we can get save the type.
7840         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
7841         for CFString instead of trying to use past the end of the builtins.
7842         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
7843         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
7844         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
7845         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
7846         Rename to darwin_builtin_cfstring.
7847         (darwin_init_cfstring_builtins): Return the built type.
7848
7849 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
7850
7851         PR target/47840
7852         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
7853         (_mm256_insert_epi64): Use _mm_insert_epi64.
7854
7855 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
7856
7857         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7858         * config/stormy16/stormy16-protos.h
7859         (xstormy16_mode_dependent_address_p): Remove.
7860         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
7861         Make static. Change return type to bool. Change argument type to
7862         const_rtx. Remove dead code.
7863         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7864
7865 2011-02-21  Richard Guenther  <rguenther@suse.de>
7866
7867         PR lto/47820
7868         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7869         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7870         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
7871         TUs context.
7872         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7873         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7874
7875 2011-02-20  Richard Guenther  <rguenther@suse.de>
7876
7877         PR lto/47822
7878         * tree.c (free_lang_data_in_decl): Clean builtins from
7879         the TU decl BLOCK_VARS.
7880
7881 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
7882
7883         PR debug/47620
7884         PR debug/47630
7885         * haifa-sched.c (fix_tick_ready): Skip tick computation
7886         for debug insns.
7887
7888 2011-02-19  Richard Guenther  <rguenther@suse.de>
7889
7890         PR lto/47647
7891         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
7892         Remove lazy BLOCK_VARS streaming.
7893         (lto_input_ts_block_tree_pointers): Likewise.
7894         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
7895
7896 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
7897
7898         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
7899
7900 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
7901
7902         * config/i386/biarch32.h, config/i386/mach.h,
7903         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
7904
7905 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
7906
7907         PR target/47800
7908         * config/i386/i386.md (peephole2 for shift and plus): Use
7909         operands[1] original mode in the first insn.
7910
7911 2011-02-18  Mike Stump  <mikestump@comcast.net>
7912
7913         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
7914
7915 2011-02-18  Jan Hubicka  <jh@suse.cz>
7916
7917         PR middle-end/47788
7918         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
7919         to zero when the function is not inlinable at all.
7920
7921 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7922
7923         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
7924         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7925         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
7926         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
7927         * config/pa/t-pa64: Likewise.
7928         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7929
7930 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
7931
7932         PR driver/47787
7933         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
7934
7935 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7936
7937         PR target/47792
7938         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
7939
7940 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
7941
7942         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7943         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
7944         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
7945         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7946         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
7947         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
7948         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
7949         m32r_load_postinc_p, m32r_store_preinc_predec_p,
7950         m32r_legitimate_address_p): New functions.
7951         * config/m32r/constraints.md (constraint "S"): Don't use
7952         STORE_PREINC_PREDEC_P.
7953         (constraint "U"): Don't use LOAD_POSTINC_P.
7954
7955 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
7956
7957         PR rtl-optimization/46178
7958         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
7959         compute ira_hard_regno_cover_class[].
7960
7961 2011-02-18  Richard Guenther  <rguenther@suse.de>
7962
7963         PR lto/47798
7964         * lto-streamer.h (lto_global_var_decls): Declare.
7965         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
7966         statics for global var processing.
7967
7968 2011-02-18  Richard Guenther  <rguenther@suse.de>
7969
7970         PR tree-optimization/47737
7971         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
7972         edge dominance check.
7973
7974 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
7975
7976         PR debug/47780
7977         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
7978         avoid invalid rtx sharing.
7979
7980 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
7981
7982         * doc/cpp.texi (Obsolete Features): Add background on the
7983         origin of assertions.
7984
7985 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
7986
7987         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
7988         objc_abi == 2.
7989         * config/darwin.c (output_objc_section_asm_op): Added support for
7990         ABI v1 and v2.
7991         (is_objc_metadata): New.
7992         (darwin_objc2_section): New.
7993         (darwin_objc1_section): New.
7994         (machopic_select_section): Added support for ABI v1 and v2.
7995         (darwin_emit_objc_zeroed): New.
7996         (darwin_output_aligned_bss): Detect objc metadata and treat it
7997         appropriately.
7998         (darwin_asm_output_aligned_decl_common): Same.
7999         (darwin_asm_output_aligned_decl_local): Same.
8000         * config/darwin-sections.def: Updated for ABI v1 and v2.
8001         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
8002         compiling Objective-C code for the NeXT runtime, default to using
8003         ABI version 0 for 32-bit, and version 2 for 64-bit.
8004
8005 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
8006
8007         * common.opt (optimize_fast): New Variable.
8008         * opts.c (default_options_optimization): Use opts->x_optimize_fast
8009         instead of local variable ofast.
8010
8011 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
8012
8013         * doc/invoke.texi (fobjc-abi-version): Documented.
8014         (fobjc-nilcheck): Documented.
8015         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
8016         version.
8017
8018 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
8019
8020         PR driver/47390
8021         * common.opt (export-dynamic): New Driver option.
8022         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
8023
8024 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
8025
8026         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
8027
8028 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
8029             Jan Hubicka  <jh@suse.cz>
8030
8031         PR debug/47106
8032         PR debug/47402
8033         * cfgexpand.c (account_used_vars_for_block): Remove.
8034         (estimated_stack_frame_size): Use referenced vars.
8035         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
8036         that were referenced in the original function.  Test src_fn
8037         rather than cfun.  Drop redundant get_var_ann.
8038         (setup_one_parameter): Drop redundant get_var_ann.
8039         (declare_return_variable): Likewise.
8040         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
8041         (copy_arguments_for_versioning): Drop redundant get_var_ann.
8042         * ipa-inline.c (compute_inline_parameters): Do not compute
8043         disregard_inline_limits here.
8044         (compute_inlinable_for_current, pass_inlinable): New.
8045         (pass_inline_parameters): Require PROP_referenced_vars.
8046         * cgraphunit.c (cgraph_process_new_functions): Don't run
8047         compute_inline_parameters explicitly unless function is in SSA form.
8048         (cgraph_analyze_function): Set .disregard_inline_limits.
8049         * tree-sra.c (convert_callers): Compute inliner parameters
8050         only for functions already in SSA form.
8051
8052 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
8053
8054         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
8055         -mlittle-endian-data.
8056
8057 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
8058
8059         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
8060         -mno-fpu, not -fpu and -no-fpu.
8061         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
8062         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
8063
8064 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
8065
8066         PR target/43653
8067         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
8068         input reload with PLUS RTX.
8069
8070 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8071
8072         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
8073         of InverseVar(MDMX).
8074
8075 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8076
8077         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
8078         --m4-340.
8079
8080 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8081
8082         * config/mn10300/mn10300.opt (mno-crt0): New.
8083
8084 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8085
8086         * config/m68k/uclinux.opt (static-libc): New Driver option.
8087
8088 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8089
8090         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
8091
8092 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8093
8094         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
8095         %{muser-extend-enabled}.
8096
8097 2011-02-16  Richard Guenther  <rguenther@suse.de>
8098
8099         PR tree-optimization/47738
8100         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
8101         the TODO from tree_predictive_commoning.
8102
8103 2011-02-15  Jeff Law  <law@redhat.com>
8104
8105         Revert
8106         2011-01-25  Jeff Law  <law@redhat.com>
8107
8108         PR rtl-optimization/37273
8109         * ira-costs.c (scan_one_insn): Detect constants living in memory and
8110         handle them like argument loads from stack slots.  Do not double
8111         count memory for memory constants and argument loads from stack slots.
8112
8113 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
8114
8115         PR middle-end/47725
8116         * combine.c (cant_combine_insn_p): Revert the last change.
8117
8118 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
8119
8120         PR target/47755
8121         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
8122         mode for vector constants.  Remove code that checks for TImode.
8123
8124 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
8125
8126         PR debug/47106
8127         PR debug/47402
8128         * cgraph.h (compute_inline_parameters): Return void.
8129         * ipa-inline.c (compute_inline_parameters): Adjust.
8130
8131 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
8132
8133         PR debug/47106
8134         PR debug/47402
8135         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
8136         rather than decl.
8137         * cfgexpand.c (estimated_stack_frame_size): Likewise.
8138         * ipa-inline.c (compute_inline_parameters): Adjust.
8139
8140 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
8141
8142         PR debug/47106
8143         PR debug/47402
8144         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
8145         Adjust all users.  Pass FN to...
8146         * tree-flow-inline.h (first_referenced_var): ... this.  Add
8147         fn argument.
8148         * ipa-struct-reorg.c: Adjust.
8149         * tree-dfa.c: Adjust.
8150         * tree-into-ssa.c: Adjust.
8151         * tree-sra.c: Adjust.
8152         * tree-ssa-alias.c: Adjust.
8153         * tree-ssa-live.c: Adjust.
8154         * tree-ssa.c: Adjust.
8155         * tree-ssanames.c: Adjust.
8156         * tree-tailcall.c: Adjust.
8157
8158 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
8159
8160         PR debug/47106
8161         PR debug/47402
8162         * tree-flow.h (referenced_var_lookup): Add fn parameter.
8163         Adjust all callers.
8164         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
8165         * tree-flow-inline.h: Adjust.
8166         * gimple-pretty-print.c: Adjust.
8167         * tree-into-ssa.c: Adjust.
8168         * tree-ssa.c: Adjust.
8169         * cfgexpand.c: Adjust.
8170
8171 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
8172
8173         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
8174         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8175         (EXTRA_CONSTRAINT): Delete.
8176         * config/iq2000/constraints.md: New file.
8177         * config/iq2000/iq2000.md: Include it.
8178         (define_insn ""): Delete.
8179         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
8180         unsupported constraint letters from patterns.
8181         (call_value, call_value_internal1): Likewise.
8182         (call_value_multiple_internal1): Likewise.
8183
8184 2011-02-15  Nick Clifton  <nickc@redhat.com>
8185
8186         * config/mn10300/mn10300.c: Include tm-constrs.h.
8187         (struct liw_data): New data structure describing an LIW candidate
8188         instruction.
8189         (extract_bundle): Use struct liw_data.  Allow small integer
8190         operands for some instructions.
8191         (check_liw_constraints): Use struct liw_data.  Remove swapped
8192         parameter.  Add comments describing the checks.  Fix bug when
8193         assigning the source of liw1 to the source of liw2.
8194         (liw_candidate): Delete.  Code moved into extract_bundle.
8195         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
8196         before swapping.
8197         * config/mn10300/predicates.md (liw_operand): New predicate.
8198         Allows registers and small integer constants.
8199         * config/mn10300/constraints.md (O): New constraint.  Accetps
8200         integers in the range -8 to +7 inclusive.
8201         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
8202         for moving a small integer into a register.  Give this alternative
8203         LIW attributes.
8204         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
8205         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
8206         using the J,K,L and M constraints,
8207         (liw): Remove SI mode on second operands to allow for HI and QI
8208         mode values.
8209         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
8210         instruction.
8211
8212 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
8213
8214         PR middle-end/47725
8215         * combine.c (cant_combine_insn_p): Check zero/sign extended
8216         hard registers.
8217
8218 2011-02-15  Richard Guenther  <rguenther@suse.de>
8219
8220         PR tree-optimization/47743
8221         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
8222         for a non-type-compatible VN lookup bail out.
8223
8224 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
8225
8226         * config/fr30/constraints.md: New file.
8227         * config/fr30/fr30.md: Include it.
8228         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
8229         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8230         (EXTRA_CONSTRAINT): Delete.
8231
8232 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
8233
8234         * config/frv/constraints.md: New file.
8235         * config/frv/predicates.md: Include it.
8236         * config/frv/frv.c (reg_class_from_letter): Delete.
8237         (frv_option_override): Don't initialize it.
8238         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
8239         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
8240         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
8241         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8242         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
8243         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8244         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
8245         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
8246         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
8247         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
8248         (REG_CLASS_FROM_CONSTRAINT): Delete.
8249
8250 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
8251
8252         PR middle-end/47581
8253         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
8254         if frame size is 0 in a leaf function.
8255
8256 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8257
8258         PR pch/14940
8259         * config/alpha/host-osf.c: New file.
8260         * config/alpha/x-osf: New file.
8261         * config.host (alpha*-dec-osf*): Use it.
8262
8263 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
8264
8265         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8266         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
8267         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
8268         (rx_mode_dependent_address_p): ...this. Make static. Change argument
8269         type to const_rtx.
8270         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8271
8272 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
8273
8274         * config/stormy16/constraints.md: New file.
8275         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
8276         Use satisfies_constraint_Q and satisfies_constraint_R.
8277         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
8278         Delete.
8279         (xstormy16_legitiamte_address_p): Declare.
8280         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
8281         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8282         (EXTRA_CONSTRAINT): Delete.
8283         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
8284         Un-staticize.
8285         (xstormy16_extra_constraint_p): Delete.
8286
8287 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
8288
8289         PR tree-optimization/46494
8290         * loop-unroll.c (split_edge_and_insert): Adjust comment.
8291         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
8292         (pass_rtl_loop_done): Add TODO_verify_flow.
8293         * fwprop.c (pass_rtl_fwprop): Likewise.
8294         * modulo-sched.c (pass_sms): Likewise.
8295         * tree-ssa-dom.c (pass_dominator): Likewise.
8296         * tree-ssa-loop-ch.c (pass_ch): Likewise.
8297         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
8298         (pass_tree_loop_done): Likewise.
8299         * tree-ssa-pre.c (execute_pre): Likewise.
8300         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
8301         * tree-ssa-sink.c (pass_sink_code): Likewise.
8302         * tree-vrp.c (pass_vrp): Likewise.
8303
8304 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
8305
8306         * config/v850/constraints.md: New file.
8307         * config/v850/v850.md: Include it.
8308         * config/v850/predicates.md (reg_or_0_operand): Use
8309         satisfies_constraint_G.
8310         (special_symbolref_operand): Use satisfies_constraint_K.
8311         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
8312         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
8313         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
8314         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8315         (EXTRA_CONSTRAINT): Delete.
8316         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
8317         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
8318         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
8319
8320 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
8321
8322         PR target/47696
8323         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
8324         description.
8325
8326 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
8327
8328         * config/mcore/constraints.md: New file.
8329         * config/mcore/mcore.md: Include it.
8330         * config/mcore/mcore.c (reg_class_from_letter): Delete.
8331         * config/mcore/mcore.h (reg_class_from_letter): Delete.
8332         (REG_CLASS_FROM_LETTER): Delete.
8333         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
8334         insn_const_int_ok_for_constraint.
8335         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
8336         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
8337         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8338         (EXTRA_CONSTRAINT): Delete.
8339
8340 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8341
8342         PR ada/41929
8343         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
8344         (IS_SIGHANDLER): Define.
8345         (sparc64_is_sighandler): New function, split off from
8346         sparc64_fallback_frame_state.
8347         (sparc_is_sighandler): New function, split off from
8348         sparc_fallback_frame_state.
8349         (sparc64_fallback_frame_state): Merge with ...
8350         (sparc_fallback_frame_state): ... this into ...
8351         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
8352         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
8353         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
8354         stack instead of hardcoded offsets.
8355
8356 2011-02-14  Andriy Gapon  <avg@freebsd.org>
8357
8358         PR target/45808
8359         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
8360
8361 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8362
8363         * configure: Regenerate.
8364
8365 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
8366
8367         PR driver/45731
8368         * gcc.c (asm_options): Correct spec matching --target-help.
8369
8370 2011-02-12  Martin Jambor  <mjambor@suse.cz>
8371
8372         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
8373         to gimple call error.
8374
8375 2011-02-12  Mike Stump  <mikestump@comcast.net>
8376
8377         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
8378         comments in backslash regions.
8379
8380 2011-02-12  Mike Stump  <mikestump@comcast.net>
8381             Jakub Jelinek  <jakub@redhat.com>
8382             Iain Sandoe  <iains@gcc.gnu.org>
8383
8384         PR target/47324
8385         * dwarf2out.c (output_cfa_loc): When required, apply the
8386         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
8387         (output_loc_sequence): Likewise.
8388         (output_loc_operands_raw): Likewise.
8389         (output_loc_sequence_raw): Likewise.
8390         (output_cfa_loc): Likewise.
8391         (output_loc_list): Suppress register number adjustment when
8392         calling output_loc_sequence()
8393         (output_die): Likewise.
8394
8395 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
8396
8397         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
8398         Remove macros.
8399         * config/xtensa/xtensa.c (xtensa_register_move_cost,
8400         xtensa_memory_move_cost): New functions.
8401         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
8402
8403 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
8404
8405         PR lto/47225
8406         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
8407         in the current directory.
8408         * configure: Rebuilt.
8409
8410 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
8411
8412         * config/darwin.c (darwin_override_options): Add a hunk missed
8413         from the commit of r168571.  Trim comment line lengths and
8414         correct indents of the preceding block.
8415
8416 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
8417
8418         * gcc.c (driver_handle_option): Concatenate the argument to -F with
8419         the switch.
8420
8421 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
8422
8423         * common.opt (nostartfiles): New Driver option.
8424
8425 2011-02-11  Xinliang David Li  <davidxl@google.com>
8426
8427         PR tree-optimization/47707
8428         * tree-chrec.c (convert_affine_scev): Keep type precision.
8429
8430 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
8431
8432         PR tree-optimization/47420
8433         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
8434
8435 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
8436
8437         PR rtl-optimization/47614
8438         * rtl.h (check_for_inc_dec): Declare.
8439         * dse.c (check_for_inc_dec): Externalize...
8440         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
8441         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
8442
8443 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
8444
8445         PR driver/47678
8446         * gcc.c (main): Do not compile inputs if there were errors in
8447         option handling.
8448         * opts-common.c (read_cmdline_option): Check for wrong language
8449         after other error checks.
8450
8451 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
8452
8453         * cgraph.c: Fix comment typos.
8454         * cgraph.h: Likewise.
8455         * cgraphunit.c: Likewise.
8456         * ipa-cp.c: Likewise.
8457         * ipa-inline.c: Likewise.
8458         * ipa-prop.c: Likewise.
8459         * ipa-pure-const.c: Likewise.
8460         * ipa-ref.c: Likewise.
8461         * ipa-reference.c: Likewise.
8462
8463 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
8464
8465         PR debug/47684
8466         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
8467
8468 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8469
8470         PR testsuite/47400
8471         * doc/sourcebuild.texi (Require Support): Document
8472         dg-require-ascii-locale.
8473
8474 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
8475
8476         * doc/lto.texi (Write summary): Fix missing parentheses.
8477
8478 2011-02-10  DJ Delorie  <dj@redhat.com>
8479
8480         * config/m32c/m32c.c (m32c_option_override): Disable
8481         -fcombine-stack-adjustments until flag value tracking and compare
8482         optimization can be rewritten.
8483
8484 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
8485
8486         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
8487         PROCESSOR_POWER7.
8488         (PROCESSOR_DEFAULT64): Likewise.
8489
8490 2011-02-10  Richard Henderson  <rth@redhat.com>
8491
8492         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
8493         change from 2011-02-03.
8494         * config/rx/rx.c (flags_from_code): Likewise.
8495         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
8496         is valid, n/pz otherwise.
8497         (rx_select_cc_mode): Return CCmode if Y is not zero.
8498
8499 2011-02-10  Richard Guenther  <rguenther@suse.de>
8500
8501         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
8502
8503 2011-02-10  Richard Guenther  <rguenther@suse.de>
8504
8505         PR tree-optimization/47677
8506         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
8507
8508 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
8509
8510         PR target/47665
8511         * combine.c (make_compound_operation): Only change shifts into
8512         multiplication for SCALAR_INT_MODE_P.
8513
8514 2011-02-10  Jie Zhang  <jie@codesourcery.com>
8515
8516         PR testsuite/47622
8517         Revert
8518         2011-02-05  Jie Zhang  <jie@codesourcery.com>
8519         PR debug/42631
8520         * web.c (entry_register): Don't clobber the number of the
8521         first uninitialized reference in used[].
8522
8523 2011-02-09  Richard Guenther  <rguenther@suse.de>
8524
8525         PR tree-optimization/47664
8526         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
8527         all edges again.
8528
8529 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
8530
8531         PR target/46481
8532         PR target/47032
8533         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
8534         PROCESSOR_POWER7.
8535         (PROCESSOR_DEFAULT64): Same.
8536         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
8537
8538 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8539
8540         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
8541
8542 2011-02-09  Martin Jambor  <mjambor@suse.cz>
8543
8544         PR middle-end/45505
8545         * tree-sra.c (struct access): New flags grp_scalar_read and
8546         grp_scalar_write.  Changed description of assignment read and write
8547         flags.
8548         (dump_access): Dump new flags, reorder all of them.
8549         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
8550         to detect multiple scalar reads.
8551         (analyze_access_subtree): Use the new scalar read write flags instead
8552         of the old flags.  Adjusted comments.
8553
8554 2011-02-08  DJ Delorie  <dj@redhat.com>
8555
8556         PR target/47548
8557         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
8558         patterns.
8559
8560 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8561
8562         * config/m68k/uclinux.opt: New.
8563         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
8564
8565 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8566
8567         * config/cris/elf.opt (sim): New Driver option.
8568
8569 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8570
8571         * config/xtensa/elf.opt: New.
8572         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
8573
8574 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8575
8576         * config/vax/elf.opt: New.
8577         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
8578
8579 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8580
8581         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
8582
8583 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8584
8585         * config/gnu-user.opt: New.
8586         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
8587         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
8588         *-*-uclinux*): Use gnu-user.opt.
8589
8590 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
8591
8592         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
8593         * config/i386/gnu.h (CPP_SPEC): Likewise.
8594
8595 2011-02-08  Ian Lance Taylor  <iant@google.com>
8596
8597         * common.opt (fcx-limited-range): Add SetByCombined flag.
8598         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
8599         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
8600         (fassociative-math, freciprocal-math): Likewise.
8601         (funsafe-math-optimizations): Likewise.
8602         * opth-gen.awk: Handle SetByCombined.
8603         * optc-gen.awk: Likewise.
8604         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
8605         (set_unsafe_math_optimizations_flags): Likewise.
8606         * doc/options.texi (Option properties): Document SetByCombined.
8607
8608 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8609
8610         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
8611         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
8612         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
8613         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
8614         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
8615
8616 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
8617
8618         PR tree-optimization/46834
8619         PR tree-optimization/46994
8620         PR tree-optimization/46995
8621         * graphite-sese-to-poly.c (used_outside_reduction): New.
8622         (detect_commutative_reduction): Call used_outside_reduction.
8623         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
8624         translate_scalar_reduction_to_array only when at least one
8625         loop-phi/close-phi tuple has been detected.
8626
8627 2011-02-08  Richard Guenther  <rguenther@suse.de>
8628
8629         PR middle-end/47639
8630         * tree-vect-generic.c (expand_vector_operations_1): Update
8631         stmts here ...
8632         (expand_vector_operations): ... not here.  Cleanup EH info
8633         and the CFG if required.
8634
8635 2011-02-08  Richard Guenther  <rguenther@suse.de>
8636
8637         PR tree-optimization/47641
8638         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
8639         require type compatibility.
8640
8641 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8642
8643         * gimple-low.c (lower_function_body): Don't remove the location of
8644         the return statement here.
8645         (lower_gimple_return): Do it here instead but only if the return
8646         statement is actually used twice.
8647
8648 2011-02-08  Richard Guenther  <rguenther@suse.de>
8649
8650         PR tree-optimization/47632
8651         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
8652         unused up_to_stmt parameter, return whether cfg-cleanup is
8653         necessary, remove EH info properly.
8654         (forward_propagate_into_gimple_cond): Adjust caller.
8655         (forward_propagate_into_cond): Likewise.
8656         (forward_propagate_comparison): Likewise.
8657         (tree_ssa_forward_propagate_single_use_vars): Make
8658         forward_propagate_comparison case similar to the two others.
8659
8660 2011-02-08  Nick Clifton  <nickc@redhat.com>
8661
8662         * config/mn10300/mn10300.opt (mliw): New command line option.
8663         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
8664         (liw_bundling): New automaton.
8665         (liw): New attribute.
8666         (liw_op): New attribute.
8667         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
8668         (movsi_internal): Add LIW attributes.
8669         (andsi3): Likewise.
8670         (iorsi3): Likewise.
8671         (xorsi3): Likewise.
8672         (addsi3): Separate register and immediate alternatives.
8673         Add LIW attributes.
8674         (subsi3): Likewise.
8675         (cmpsi): Likewise.
8676         (aslsi3): Likewise.
8677         (lshrsi3): Likewise.
8678         (ashrsi3): Likewise.
8679         (liw): New pattern.
8680         * config/mn10300/mn10300.c (liw_op_names): New
8681         (mn10300_print_operand): Handle 'W' operand descriptor.
8682         (extract_bundle): New function.
8683         (check_liw_constraints): New function.
8684         (liw_candidate): New function.
8685         (mn10300_bundle_liw): New function.
8686         (mn10300_reorg): New function.
8687         (TARGET_MACHINE_DEPENDENT_REORG): Define.
8688         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
8689         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
8690         __LIW__ or __NO_LIW__.
8691         * doc/invoke.texi: Describe the -mliw command line option.
8692
8693 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8694
8695         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
8696         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
8697         pthread_mutex_unlock): Remove.
8698         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
8699         * config/pa/t-pa64: Likewise.
8700         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
8701         shared libc if not linking against libpthread.
8702         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
8703
8704 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
8705
8706         PR target/47558
8707         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
8708         on 10.6 and later to ensure that we always use the unwinder from
8709         the system.  Only add -no_compact_unwind when tarteting darwin
8710         10.6 or later.
8711
8712 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
8713
8714         PR target/46997
8715         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
8716         (vec_interleave_lowv2sf): Ditto.
8717         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
8718         (vec_extract_oddv2sf): Ditto.
8719
8720 2011-02-07  Mike Stump  <mikestump@comcast.net>
8721
8722         PR target/42333
8723         Add __ieee_divdc3 entry point.
8724         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
8725         entry point.
8726         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
8727         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
8728         * config/darwin.c (darwin_rename_builtins): Add.
8729         * config/darwin-protos.h (darwin_rename_builtins): Add.
8730
8731 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
8732
8733         PR target/47636
8734         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
8735         for the condition.
8736
8737 2011-02-07  Mike Stump  <mikestump@comcast.net>
8738
8739         * config/darwin.opt (mmacosx-version-min): Update default OS version.
8740
8741 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
8742
8743         PR target/47534
8744         * config/avr/libgcc.S (exit): Move .endfunc
8745
8746 2011-02-07  Richard Guenther  <rguenther@suse.de>
8747
8748         PR tree-optimization/47615
8749         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
8750         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
8751         (run_scc_vn): Initialize it.
8752         (visit_reference_op_load): Use it.
8753         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
8754
8755 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8756
8757         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
8758         DImode trapping arithmetic libfuncs.
8759
8760 2011-02-07  Richard Guenther  <rguenther@suse.de>
8761
8762         PR tree-optimization/47621
8763         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
8764         two duplicates ...
8765         (execute_update_addresses_taken): ... here.  Make it more
8766         conservative in what we accept.
8767
8768 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
8769
8770         * config/sparc/freebsd.h (ASM_SPEC): Define.
8771         * config/sparc/vxworks.h (ASM_SPEC): Define.
8772
8773 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
8774
8775         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
8776
8777 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
8778
8779         * doc/invoke.texi: Remove reference to compiler internals from
8780         user documentation.
8781
8782         * reg-notes.def: Remove REG_VALUE_PROFILE.
8783         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
8784
8785 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
8786
8787         PR middle-end/47610
8788         * varasm.c (default_section_type_flags): If decl is NULL,
8789         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
8790
8791 2011-02-05  Jie Zhang  <jie@codesourcery.com>
8792
8793         PR debug/42631
8794         * web.c (entry_register): Don't clobber the number of the
8795         first uninitialized reference in used[].
8796
8797 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
8798
8799         PR tree-optimization/46194
8800         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
8801         (build_classic_dist_vector_1): Do not represent classic distance
8802         vectors when the access functions are variating in different loops.
8803
8804 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
8805
8806         * config/mips/iris6.opt: New.
8807         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
8808
8809 2011-02-04  Richard Henderson  <rth@redhat.com>
8810             Steve Ellcey  <sje@cup.hp.com>
8811
8812         PR target/46997
8813         * config/ia64/predicates.md (mux1_brcst_element): New.
8814         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
8815         * config/ia64/ia64.c (ia64_unpack_assemble): New.
8816         (ia64_unpack_sign): New.
8817         (ia64_expand_unpack): Rewrite using new routines.
8818         (ia64_expand_widen_sum): Ditto.
8819         (ia64_expand_dot_prod_v8qi): Ditto.
8820         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
8821         routines, add endian check.
8822         (pmpy2_even): Rename from pmpy2_r, add endian check.
8823         (pmpy2_odd): Rename from pmpy2_l, add endian check.
8824         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
8825         (vec_widen_smult_hi_v4hi): Ditto.
8826         (vec_widen_umult_lo_v4hi): Ditto.
8827         (vec_widen_umult_hi_v4hi): Ditto.
8828         (mulv2si3): Change endian checks.
8829         (sdot_prodv4hi): Rewrite with new calls.
8830         (udot_prodv4hi): New.
8831         (vec_pack_ssat_v4hi): Add endian check.
8832         (vec_pack_usat_v4hi): Ditto.
8833         (vec_pack_ssat_v2si): Ditto.
8834         (max1_even): Rename from max1_r, add endian check.
8835         (max1_odd): Rename from max1_l, add endian check.
8836         (*mux1_rev): Format change.
8837         (*mux1_mix): Ditto.
8838         (*mux1_shuf): Ditto.
8839         (*mux1_alt): Ditto.
8840         (*mux1_brcst_v8qi): Use new predicate.
8841         (vec_extract_evenv8qi): Remove endian check.
8842         (vec_extract_oddv8qi): Ditto.
8843         (vec_interleave_lowv4hi): Format change.
8844         (vec_interleave_highv4hi): Ditto.
8845         (mix2_even): Rename from mix2_r, add endian check.
8846         (mix2_odd): Rename from mux2_l, add endian check.
8847         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
8848         (vec_extract_evenodd_helper): Format change.
8849         (vec_extract_evenv4hi): Remove endian check.
8850         (vec_extract_oddv4hi): Remove endian check.
8851         (vec_interleave_lowv2si): Format change.
8852         (vec_interleave_highv2si): Format change.
8853         (vec_initv2si): Remove endian check.
8854         (vecinit_v2si): Add endian check.
8855         (reduc_splus_v2sf): Add endian check.
8856         (reduc_smax_v2sf): Ditto.
8857         (reduc_smin_v2sf): Ditto.
8858         (vec_initv2sf): Remove endian check.
8859         (fpack): Add endian check.
8860         (fswap): Add endian check.
8861         (vec_interleave_highv2sf): Add endian check.
8862         (vec_interleave_lowv2sf): Add endian check.
8863         (fmix_lr): Add endian check.
8864         (vec_setv2sf): Format change.
8865         (*vec_extractv2sf_0_be): Use shift to extract operand.
8866         (*vec_extractv2sf_1_be): New.
8867         (vec_pack_trunc_v4hi): Add endian check.
8868         (vec_pack_trunc_v2si): Format change.
8869
8870 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
8871
8872         PR inline-asm/23200
8873         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
8874         do bb, locus and block comparison and disallow loads if it is not set.
8875         (stmt_is_replaceable_p): New function.
8876         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
8877         callers.
8878         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
8879         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
8880         SSA_NAME_DEF_STMT.
8881         * tree-flow.h (stmt_is_replaceable_p): New prototype.
8882
8883 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
8884
8885         * config/rs6000/xilinx.opt: New.
8886         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
8887
8888 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
8889
8890         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
8891
8892 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
8893
8894         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
8895         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
8896         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
8897         secondary_reload_info, xtensa_secondary_reload): Remove.
8898         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
8899         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8900         (xtensa_preferred_reload_class): Make static. Change return and
8901         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
8902         Use CONST_DOUBLE_P predicate.
8903         (xtensa_preferred_output_reload_class): New function.
8904         (xtensa_secondary_reload): Make static.
8905
8906 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
8907
8908         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
8909         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
8910         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
8911
8912 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
8913
8914         PR middle-end/31490
8915         * output.h (SECTION_RELRO): Define.
8916         (SECTION_MACH_DEP): Adjust.
8917         (get_variable_section): New prototype.
8918         * varpool.c (varpool_finalize_named_section_flags): New function.
8919         (varpool_assemble_pending_decls): Call it.
8920         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
8921         * cgraphunit.c (cgraph_output_in_order): Call
8922         varpool_finalize_named_section_flags.
8923         * varasm.c (get_section): Allow section flags conflicts between
8924         relro and read-only sections if the section hasn't been declared yet.
8925         Set SECTION_OVERRIDE after diagnosing section type conflict.
8926         (get_variable_section): No longer static.
8927         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
8928         readonly sections that need relocations.
8929         (decl_readonly_section_1): New function.
8930         (decl_readonly_section): Use it.
8931
8932         Revert:
8933         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
8934                     Steve Ellcey  <sje@cup.hp.com>
8935
8936         PR middle-end/31490
8937         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
8938         if section attribute used.
8939
8940 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
8941
8942         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
8943         * config/darwin.c (SECTION_NO_ANCHOR): Define.
8944         (darwin_init_sections): Remove assertion.
8945
8946 2011-02-03  Nick Clifton  <nickc@redhat.com>
8947
8948         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
8949         lt and ge.
8950         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
8951         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
8952         instead of "n" and "pz".
8953         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
8954         CC_FLAG_S.
8955
8956 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
8957
8958         PR target/47312
8959         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
8960         fma, expand FMA_EXPR as fma{,f,l} call.
8961
8962         PR lto/47274
8963         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
8964         copy them into a unsigned char variable and pass address of it to
8965         lto_output_data_stream.
8966
8967         PR target/47564
8968         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
8969         around backend_init_target and lang_dependent_init_target calls.
8970         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
8971         (verify_cgraph_node): Don't call set_cfun here.  Use
8972         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
8973         Set error_found for incorrectly represented calls to thunks.
8974
8975 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
8976
8977         PR debug/43092
8978         PR rtl-optimization/43494
8979         * rtl.h (for_each_inc_dec_fn): New type.
8980         (for_each_inc_dec): Declare.
8981         * rtlanal.c (struct for_each_inc_dec_ops): New type.
8982         (for_each_inc_dec_find_inc_dec): New fn.
8983         (for_each_inc_dec_find_mem): New fn.
8984         (for_each_inc_dec): New fn.
8985         * dse.c (struct insn_size): Remove.
8986         (replace_inc_dec, replace_inc_dec_mem): Remove.
8987         (emit_inc_dec_insn_before): New fn.
8988         (check_for_inc_dec): Use it, along with for_each_inc_dec.
8989         (canon_address): Pass mem modes to cselib_lookup.
8990         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
8991         (cselib_lookup_from_insn): Likewise.
8992         (cselib_subst_to_values): Likewise.
8993         * cselib.c (find_slot_memmode): New var.
8994         (cselib_find_slot): New fn.  Use it instead of
8995         htab_find_slot_with_hash everywhere.
8996         (entry_and_rtx_equal_p): Use find_slot_memmode.
8997         (autoinc_split): New fn.
8998         (rtx_equal_for_cselib_p): Rename and implement in terms of...
8999         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
9000         Deal with autoinc.  Special-case recursion into MEMs.
9001         (cselib_hash_rtx): Likewise.
9002         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
9003         address and MEM modes.
9004         (cselib_subst_to_values): Add memmode, pass it on.
9005         Deal with autoinc.
9006         (cselib_lookup): Add memmode argument, pass it on.
9007         (cselib_lookup_from_insn): Add memmode.
9008         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
9009         (struct cselib_record_autoinc_data): New.
9010         (cselib_record_autoinc_cb): New fn.
9011         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
9012         mode to cselib_lookup.  Reset autoinced REGs here instead of...
9013         (cselib_process_insn): ... here.
9014         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
9015         to cselib_lookup.
9016         (add_uses): Likewise, also to cselib_subst_to_values.
9017         (add_stores): Likewise.
9018         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
9019         cselib_subst_to_values.
9020         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
9021         * gcse.c (do_local_cprop): Adjusted.
9022         * postreload.c (reload_cse_simplify_set): Adjusted.
9023         (reload_cse_simplify_operands): Adjusted.
9024         * sel-sched-dump (debug_mem_addr_value): Pass mode.
9025
9026 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
9027
9028         PR tree-optimization/45122
9029         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
9030         unsafe assumptions when there's more than one loop exit.
9031
9032 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
9033
9034         PR target/47272
9035         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
9036         Document using vector double with the load/store builtins, and
9037         that the load/store builtins always use Altivec instructions.
9038
9039         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
9040         to use altivec memory instructions, even on VSX.
9041         (vector_altivec_store_<mode>): Ditto.
9042
9043         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
9044         function.
9045
9046         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9047         V2DF, V2DI support to load/store overloaded builtins.
9048
9049         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
9050         altivec load/store builtins for V2DF/V2DI types.
9051
9052         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
9053         set avoid indexed addresses on power6 if -maltivec.
9054         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
9055         vector_altivec_load/vector_altivec_store builtins.
9056         (altivec_expand_st_builtin): Ditto.
9057         (altivec_expand_builtin): Add VSX memory builtins.
9058         (rs6000_init_builtins): Add V2DI types to internal types.
9059         (altivec_init_builtins): Add support for V2DF/V2DI altivec
9060         load/store builtins.
9061         (rs6000_address_for_altivec): Insure memory address is appropriate
9062         for Altivec.
9063
9064         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
9065         vec_vsx_ld and vec_vsx_st.
9066         (vsx_store_<mode>): Ditto.
9067
9068         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
9069         variables to hold long long types for VSX vector memory builtins.
9070         (RS6000_BTI_unsigned_long_long): Ditto.
9071         (long_long_integer_type_internal_node): Ditti.
9072         (long_long_unsigned_type_internal_node): Ditti.
9073
9074         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
9075         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
9076         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
9077
9078         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
9079         short cuts.
9080         (vec_vsx_st): Ditto.
9081
9082 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
9083
9084         * config/pa/pa-hpux10.opt: New.
9085         * config/hpux11.opt (pthread): New Driver option.
9086         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
9087         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
9088
9089 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
9090
9091         * config/ia64/vms.opt: New.
9092         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
9093
9094 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
9095
9096         PR target/47580
9097         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
9098         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
9099         generator functions.
9100         (vsx_floatuns<VSi><mode>2): Ditto.
9101         (vsx_fix_trunc<mode><VSi>2): Ditto.
9102         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
9103
9104 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
9105
9106         * config/i386/djgpp.opt (posix): New Driver option.
9107
9108 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
9109
9110         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
9111         Move to the unsupported targets list.
9112
9113 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
9114
9115         PR rtl-optimization/47525
9116         * df-scan.c: Update copyright years.
9117         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
9118         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
9119
9120 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9121
9122         * config/i386/sysv4.h (TARGET_VERSION): Remove.
9123         (SUBTARGET_RETURN_IN_MEMORY): Remove.
9124         (ASM_OUTPUT_ASCII): Remove.
9125         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
9126
9127 2011-02-02  Jeff Law  <law@redhat.com>
9128
9129         PR middle-end/47543
9130         * reload.c (find_reloads_address): Handle reg+d address where both
9131         components are invalid by reloading the entire address.
9132
9133 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
9134             Richard Guenther  <rguenther@suse.de>
9135
9136         PR tree-optimization/40979
9137         PR bootstrap/47044
9138         * passes.c (init_optimization_passes): After LIM call copy_prop
9139         and DCE to clean up.
9140         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
9141
9142 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
9143
9144         PR tree-optimization/47576
9145         PR tree-optimization/47555
9146         * doc/invoke.texi (scev-max-expr-complexity): Documented.
9147         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
9148         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
9149         * tree-scalar-evolution.c (follow_ssa_edge): Use
9150         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
9151
9152 2011-02-02  Richard Guenther  <rguenther@suse.de>
9153
9154         PR tree-optimization/47566
9155         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
9156
9157 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
9158
9159         PR debug/47106
9160         PR debug/47402
9161         * tree-inline.c (declare_return_variable): Remove unused caller
9162         variable.
9163
9164         PR debug/47106
9165         PR debug/47402
9166         * tree-flow-inline.h (clear_is_used, is_used_p): New.
9167         * cfgexpand.c (account_used_vars_for_block): Use them.
9168         * tree-nrv.c (tree_nrv): Likewise.
9169         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
9170         (dump_scope_block): Likewise.
9171         (remove_unused_locals): Likewise.
9172
9173         PR debug/47106
9174         PR debug/47402
9175         * tree-inline.c (declare_return_variable): Add result decl to
9176         local decls only once.
9177         * gimple-low.c (record_vars_into): Mark newly-created variables
9178         as referenced.
9179
9180 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
9181
9182         PR debug/47498
9183         PR debug/47501
9184         PR debug/45136
9185         PR debug/45130
9186         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9187         debug insns.
9188         (no_real_insns_p, schedule_block, set_priorities): Drop special
9189         treatment of boundary debug insns.
9190         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9191         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
9192         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9193         (BOUNDARY_DEBUG_INSN_P): Likewise.
9194         (SCHEDULE_DEBUG_INSN_P): Likewise.
9195         * sched-rgn.c (init_ready_list): Drop special treatment of
9196         boundary debug insns.
9197         * final.c (rest_of_clean_state): Clear notes' BB.
9198
9199 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9200
9201         * config/openbsd.opt (assert=): New Driver option.
9202
9203 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9204
9205         * config/i386/nto.opt: New.
9206         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
9207
9208 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9209
9210         * config/i386/netware.opt: New.
9211         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
9212
9213 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9214
9215         * config/interix.opt (posix): New Driver option.
9216
9217 2011-02-01  DJ Delorie  <dj@redhat.com>
9218
9219         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
9220
9221         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
9222         class for A0/A1.
9223
9224 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
9225
9226         PR tree-optimization/47561
9227         * toplev.c (process_options): Print the Graphite flags.  Add
9228         flag_loop_flatten to the list of options requiring Graphite.
9229
9230 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9231
9232         * config/i386/cygming.opt (posix): New Driver option.
9233
9234 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9235
9236         * config/arm/vxworks.opt: New.
9237         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
9238
9239 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9240
9241         * config/alpha/elf.opt: New.
9242         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
9243         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
9244
9245 2011-02-01  Richard Guenther  <rguenther@suse.de>
9246
9247         PR tree-optimization/47559
9248         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
9249         store-motion on references that can throw.
9250
9251 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
9252
9253         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
9254         * tree-pass.h (TDF_CSELIB): New macro.
9255         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
9256         cselib_lookup): Check for it rather than for TDF_DETAILS.
9257
9258 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
9259
9260         PR driver/47547
9261         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
9262         is HOST_BIT_BUCKET.
9263
9264         * opts.c (finish_options): Don't add x_aux_base_name if it is
9265         HOST_BIT_BUCKET.
9266
9267 2011-02-01  Richard Guenther  <rguenther@suse.de>
9268
9269         PR tree-optimization/47555
9270         Revert
9271         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
9272
9273         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
9274
9275 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
9276
9277         PR gcc/46692
9278         * config/lm32/t-lm32: Add multilib for all CPU options.
9279
9280 2011-02-01  Richard Guenther  <rguenther@suse.de>
9281
9282         PR tree-optimization/47541
9283         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
9284         sure to have a field at offset zero.
9285
9286 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
9287
9288         * config/arc/arc.opt (EB, EL): New Driver options.
9289
9290 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
9291
9292         * config/alpha/osf5.opt: New.
9293         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
9294
9295 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
9296
9297         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
9298
9299 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
9300
9301         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
9302         -floop-interchange.
9303         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
9304         is an alias of -floop-interchange and that it requires the
9305         Graphite infrastructure.
9306         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
9307         flag_loop_interchange based on the value of flag_tree_loop_linear.
9308
9309 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
9310             Richard Guenther  <rguenther@suse.de>
9311
9312         PR tree-optimization/47538
9313         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
9314         type instead of r1type, except for comparisons.  For right
9315         shifts and comparisons punt if there are mismatches in
9316         sizetype vs. non-sizetype types.
9317
9318 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9319
9320         * doc/sourcebuild.texi (Effective-Target Keywords): Document
9321         avx_runtime.
9322
9323 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9324
9325         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
9326         version number.
9327         * configure: Regenerate.
9328
9329 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9330
9331         * configure.ac (gcc_cv_ld_static_option): Define.
9332         (gcc_cv_ld_dynamic_option): Define.
9333         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
9334         instead.
9335         (HAVE_LD_STATIC_DYNAMIC): Update message.
9336         (LD_STATIC_OPTION): Define.
9337         (LD_DYNAMIC_OPTION): Define.
9338         * configure: Regenerate.
9339         * config.in: Regenerate.
9340         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
9341         HAVE_LD_STATIC_DYNAMIC]: Use them.
9342
9343 2011-01-31  Nick Clifton  <nickc@redhat.com>
9344
9345         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
9346         registers inside interrupt handlers if the handler is not a leaf
9347         function.
9348
9349 2011-01-31  Nick Clifton  <nickc@redhat.com>
9350
9351         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
9352         reg_renumber returning an INVALID_REGNUM.
9353
9354 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
9355
9356         PR libgcj/44341
9357         * doc/install.texi: Document host options discarded when cross
9358         configuring target libraries.
9359
9360 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
9361
9362         Reverted:
9363         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
9364         PR debug/45136
9365         PR debug/45130
9366         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9367         debug insns.
9368         (no_real_insns_p, schedule_block, set_priorities): Drop special
9369         treatment of boundary debug insns.
9370         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9371         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9372         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9373         (BOUNDARY_DEBUG_INSN_P): Likewise.
9374         (SCHEDULE_DEBUG_INSN_P): Likewise.
9375         * sched-rgn.c (init_ready_list): Drop special treatment of
9376         boundary debug insns.
9377         * final.c (rest_of_clean-state): Clear notes' BB.
9378
9379 2011-01-31  Alan Modra  <amodra@gmail.com>
9380
9381         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
9382         toc relative expressions as we do in print_operand_address.
9383
9384 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
9385
9386         * doc/extend.texi: Follow spelling conventions.
9387         * doc/invoke.texi: Fix a typo.
9388
9389 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
9390
9391         * config/hpux11.opt: New.
9392         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
9393         ia64*-*-hpux*): Use hpux11.opt.
9394
9395 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
9396
9397         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
9398         to tmake_file.
9399
9400 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
9401
9402         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
9403         support sites.
9404
9405 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
9406
9407         * doc/install.texi (Binaries): Remove outdated reference for
9408         Motorola 68HC11/68HC12 downloads.
9409
9410 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
9411
9412         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
9413         Drepper's paper.
9414
9415 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
9416
9417         PR bootstrap/47147
9418         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
9419         used by NetBSD.
9420
9421 2011-01-28  Ahmad Sharif  <asharif@google.com>
9422
9423         * value-prof.c (check_counter): Corrected error message.
9424
9425 2011-01-29  Jie Zhang  <jie@codesourcery.com>
9426
9427         * config/arm/arm.c (arm_legitimize_reload_address): New.
9428         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
9429         arm_legitimize_reload_address.
9430         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
9431
9432 2011-01-28  Ian Lance Taylor  <iant@google.com>
9433
9434         * godump.c (go_define): Ignore macros whose definitions include
9435         two adjacent operands.
9436
9437 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
9438
9439         PR target/42894
9440         * varasm.c (force_const_mem): Store copy of x in desc->constant
9441         instead of x itself.
9442         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
9443         itself into REG_EQUAL note.
9444
9445 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
9446
9447         * config/freebsd.opt (posix, rdynamic): New Driver options.
9448
9449 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9450
9451         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
9452         -Bstatic/-Bdynamic.
9453         * configure: Regenerate.
9454
9455 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
9456
9457         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
9458         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
9459
9460 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
9461
9462         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
9463         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
9464         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
9465         (s390_preferred_reload_class): Make static. Change return and
9466         'rclass' argument type to reg_class_t.
9467
9468 2011-01-27  Jan Hubicka  <jh@suse.cz>
9469
9470         PR middle-end/46949
9471         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
9472         (process_function_and_variable_attributes): Check defined weakrefs.
9473
9474 2011-01-27  Martin Jambor  <mjambor@suse.cz>
9475
9476         PR tree-optimization/47228
9477         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
9478         build_ref_for_offset.
9479
9480 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9481
9482         * config/spu/spu-elf.h (ASM_SPEC): Remove.
9483
9484 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
9485
9486         PR rtl-optimization/46856
9487         * postreload.c (reload_combine_recognize_const_pattern): Do not
9488         separate cc0 setter and user on cc0 targets.
9489
9490 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
9491
9492         PR c/43082
9493         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
9494         passed a VOID_TYPE expression, immediately emit an error and
9495         return error_mark_node.
9496
9497 2011-01-26  Jeff Law  <law@redhat.com>
9498
9499         PR rtl-optimization/47464
9500         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
9501         rather than may_trap_p as needed.
9502
9503 2011-01-26  DJ Delorie  <dj@redhat.com>
9504
9505         PR rtl-optimization/46878
9506         * combine.c (insn_a_feeds_b): Check for the implicit cc0
9507         setter/user dependency as well.
9508
9509 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
9510
9511         PR rtl-optimization/44469
9512         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
9513         after removing trivially dead basic blocks.
9514
9515 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9516
9517         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
9518         * config/frv/frv.h (LINK_SPEC): Likewise.
9519         * config/i386/netware.h (LINK_SPEC): Likewise.
9520         * config/m68k/linux.h (ASM_SPEC): Likewise.
9521         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
9522         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9523         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9524         * config/sparc/linux.h (ASM_SPEC): Likewise.
9525         * config/sparc/linux64.h (ASM_SPEC): Likewise.
9526         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9527
9528 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9529
9530         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
9531         * config/frv/frv.h (ASM_SPEC): Likewise.
9532         * config/m68k/linux.h (ASM_SPEC): Likewise.
9533         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9534         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
9535         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9536         * config/sparc/linux.h (ASM_SPEC): Likewise.
9537         * config/sparc/linux64.h (ASM_SPEC): Likewise.
9538         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9539
9540 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9541
9542         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
9543         * config/frv/frv.h (LINK_SPEC): Likewise.
9544         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9545
9546 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9547
9548         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
9549         * config/frv/frv.h (ASM_SPEC): Likewise.
9550         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
9551         * config/m68k/linux.h (ASM_SPEC): Likewise.
9552         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9553         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
9554         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9555         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
9556         * config/sparc/linux.h (ASM_SPEC): Likewise.
9557         * config/sparc/linux64.h (ASM_SPEC): Likewise.
9558         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9559         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
9560
9561 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
9562
9563         PR target/46997
9564         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
9565         (*mux2): Ditto.
9566         (vec_extract_evenodd_help): Ditto.
9567         (vec_extract_evenv4hi): Ditto.
9568         (vec_extract_oddv4hi): Ditto.
9569         (vec_interleave_lowv2si): Ditto.
9570         (vec_interleave_highv2si): Ditto.
9571         (vec_extract_evenv2si): Ditto.
9572         (vec_extract_oddv2si: Ditto.
9573         (vec_pack_trunc_v2si): Ditto.
9574
9575 2011-01-22  Jan Hubicka  <jh@suse.cz>
9576
9577         PR target/47237
9578         * cgraph.h (cgraph_local_info): New field can_change_signature.
9579         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
9580         signature can change.
9581         (ipcp_estimate_growth): Call sequence simplify only if calle signature
9582         can change.
9583         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
9584         (cgraph_function_versioning): We can not change signature of functions
9585         that don't allow that.
9586         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
9587         (lto_input_node): Likewise.
9588         * ipa-inline.c (compute_inline_parameters): Compute
9589         local.can_change_signature.
9590         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
9591         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
9592         functions that can not change signature.
9593         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
9594         init_cumulative_args): Do not use local calling conventions
9595         for functions that can not change signature.
9596
9597 2011-01-22  Jan Hubicka  <jh@suse.cz>
9598
9599         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
9600
9601 2011-01-26  Richard Guenther  <rguenther@suse.de>
9602
9603         PR tree-optimization/47190
9604         * cgraphunit.c (process_common_attributes): New function.
9605         (process_function_and_variable_attributes): Use it.
9606
9607 2011-01-26  Richard Guenther  <rguenther@suse.de>
9608
9609         PR lto/47423
9610         * cgraphbuild.c (record_eh_tables): Record reference to personality
9611         function.
9612
9613 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
9614
9615         PR debug/45454
9616         * sel-sched.c (moveup_expr): Don't let debug insns prevent
9617         non-debug insns from moving up.
9618
9619 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
9620
9621         PR target/40125
9622         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
9623         t-dlldir{,-x} fragment for build and add it to tmake_file.
9624         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
9625         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
9626         * config/i386/t-dlldir: New file.
9627         (SHLIB_DLLDIR): Define.
9628         * config/i386/t-dlldir-x: New file.
9629         (SHLIB_DLLDIR): Define.
9630         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
9631         (SHLIB_INSTALL): Use it.
9632
9633 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
9634
9635         PR target/47246
9636         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
9637         lower bound of the allowed Thumb-2 coprocessor load/store
9638         index range to -256. Add explaining comment.
9639
9640 2011-01-25  Ian Lance Taylor  <iant@google.com>
9641
9642         * godump.c (go_define): Improve lexing of macro expansion to only
9643         accept expressions which match Go spec.
9644
9645 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
9646
9647         PR c++/43601
9648         * tree.c (handle_dll_attribute): Handle it.
9649         * doc/extend.texi (@item dllexport): Mention it.
9650         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
9651
9652 2011-01-25  Ian Lance Taylor  <iant@google.com>
9653
9654         PR tree-optimization/26854
9655         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
9656         (decl_jump_unsafe): Move higher in file, with no other change.
9657         (bind): Set has_jump_unsafe_decl if appropriate.
9658         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
9659         (check_earlier_gotos): Likewise.
9660         (c_check_switch_jump_warnings): Likewise.
9661
9662 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
9663
9664         * doc/invoke.texi (Warning Options): Add missing hyphen.
9665         (-fprofile-dir): Minor grammatical fixes.
9666         (-fbranch-probabilities): Likewise.
9667
9668 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
9669
9670         PR debug/45136
9671         PR debug/45130
9672         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9673         debug insns.
9674         (no_real_insns_p, schedule_block, set_priorities): Drop special
9675         treatment of boundary debug insns.
9676         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9677         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9678         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9679         (BOUNDARY_DEBUG_INSN_P): Likewise.
9680         (SCHEDULE_DEBUG_INSN_P): Likewise.
9681         * sched-rgn.c (init_ready_list): Drop special treatment of
9682         boundary debug insns.
9683         * final.c (rest_of_clean-state): Clear notes' BB.
9684
9685 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9686
9687         * Makefile.in (LAMBDA_H): Removed.
9688         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
9689         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
9690         lambda-trans.o, and tree-loop-linear.o.
9691         (lto-symtab.o): Remove dependence on LAMBDA_H.
9692         (tree-loop-linear.o): Remove rule.
9693         (lambda-mat.o): Same.
9694         (lambda-trans.o): Same.
9695         (lambda-code.o): Same.
9696         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
9697         (tree-vect-slp.o): Same.
9698         * hwint.h (gcd): Moved here.
9699         (least_common_multiple): Same.
9700         * lambda-code.c: Removed.
9701         * lambda-mat.c: Removed.
9702         * lambda-trans.c: Removed.
9703         * lambda.h: Removed.
9704         * tree-loop-linear.c: Removed.
9705         * lto-symtab.c: Do not include lambda.h.
9706         * omega.c (gcd): Removed.
9707         * passes.c (init_optimization_passes): Remove pass_linear_transform.
9708         * tree-data-ref.c (print_lambda_vector): Moved here.
9709         (lambda_vector_copy): Same.
9710         (lambda_matrix_copy): Same.
9711         (lambda_matrix_id): Same.
9712         (lambda_vector_first_nz): Same.
9713         (lambda_matrix_row_add): Same.
9714         (lambda_matrix_row_exchange): Same.
9715         (lambda_vector_mult_const): Same.
9716         (lambda_vector_negate): Same.
9717         (lambda_matrix_row_negate): Same.
9718         (lambda_vector_equal): Same.
9719         (lambda_matrix_right_hermite): Same.
9720         * tree-data-ref.h: Do not include lambda.h.
9721         (lambda_vector): Moved here.
9722         (lambda_matrix): Same.
9723         (dependence_level): Same.
9724         (lambda_transform_legal_p): Removed declaration.
9725         (lambda_collect_parameters): Same.
9726         (lambda_compute_access_matrices): Same.
9727         (lambda_vector_gcd): Same.
9728         (lambda_vector_new): Same.
9729         (lambda_vector_clear): Same.
9730         (lambda_vector_lexico_pos): Same.
9731         (lambda_vector_zerop): Same.
9732         (lambda_matrix_new): Same.
9733         * tree-flow.h (least_common_multiple): Removed declaration.
9734         * tree-parloops.c (lambda_trans_matrix): Moved here.
9735         (LTM_MATRIX): Same.
9736         (LTM_ROWSIZE): Same.
9737         (LTM_COLSIZE): Same.
9738         (LTM_DENOMINATOR): Same.
9739         (lambda_trans_matrix_new): Same.
9740         (lambda_matrix_vector_mult): Same.
9741         (lambda_transform_legal_p): Same.
9742         * tree-pass.h (pass_linear_transform): Removed declaration.
9743         * tree-ssa-loop.c (tree_linear_transform): Removed.
9744         (gate_tree_linear_transform): Removed.
9745         (pass_linear_transform): Removed.
9746         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
9747         flag_loop_interchange.
9748
9749 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
9750
9751         PR tree-optimization/47265
9752         PR tree-optimization/47443
9753         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
9754         if name still has some uses.
9755
9756 2011-01-25  Martin Jambor  <mjambor@suse.cz>
9757
9758         PR tree-optimization/47382
9759         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
9760         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
9761
9762 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
9763
9764         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
9765         sjlj_except_unwind_info.
9766
9767 2011-01-25  Richard Guenther  <rguenther@suse.de>
9768
9769         PR tree-optimization/47426
9770         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
9771         visible functions results escape.
9772
9773 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
9774
9775         PR target/45701
9776         * config/arm/arm.c (any_sibcall_uses_r3): New function.
9777         (arm_get_frame_offsets): Use it.
9778
9779 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9780             Jakub Jelinek  <jakub@redhat.com>
9781
9782         PR tree-optimization/47271
9783         * tree-if-conv.c (bb_postdominates_preds): New.
9784         (if_convertible_bb_p): Call bb_postdominates_preds.
9785         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
9786         (predicate_scalar_phi): Call bb_postdominates_preds.
9787
9788 2011-01-25  Nick Clifton  <nickc@redhat.com>
9789
9790         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
9791         * config/rx/rx.c (rx_function_value): Likewise.
9792         (rx_promote_function_mode): Likewise.
9793         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
9794         in order to make it legitimate.
9795         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
9796         make sure that the first operand is the same as the result register.
9797         (addsi3_unspec): Delete.
9798         (subdi3): Do not accept immediate operands.
9799         (subdi3_internal): Likewise.
9800
9801 2011-01-25  Jeff Law  <law@redhat.com>
9802
9803         PR rtl-optimization/37273
9804         * ira-costs.c (scan_one_insn): Detect constants living in memory and
9805         handle them like argument loads from stack slots.  Do not double
9806         count memory for memory constants and argument loads from stack slots.
9807
9808 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
9809
9810         PR tree-optimization/47427
9811         PR tree-optimization/47428
9812         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
9813         coalesce if the new root var would be TREE_READONLY.
9814
9815 2011-01-25  Richard Guenther  <rguenther@suse.de>
9816
9817         PR middle-end/47414
9818         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
9819         correct type for TBAA.
9820
9821 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9822
9823         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
9824         (close_phi_written_to_memory): Call for_each_index with
9825         dr_indices_valid_in_loop.
9826
9827 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9828
9829         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
9830         when it is initialized.
9831
9832 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9833
9834         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
9835         call to graphite_find_data_references_in_stmt.
9836         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
9837         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
9838         call to graphite_find_data_references_in_stmt.
9839         (analyze_drs_in_stmts): Same.
9840         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
9841         in which the scalar analysis of indices is performed.
9842         (create_data_ref): Same.  Update call to dr_analyze_indices.
9843         (find_data_references_in_stmt): Update call to create_data_ref.
9844         (graphite_find_data_references_in_stmt): Same.
9845         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
9846         declaration.
9847         (create_data_ref): Same.
9848         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
9849         call to create_data_ref.
9850
9851 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9852
9853         * graphite-sese-to-poly.c (build_poly_scop): Move
9854         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
9855
9856 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9857
9858         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
9859         VAR_DECL, PARM_DECL, and RESULT_DECL.
9860
9861 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9862
9863         * graphite-dependences.c (reduction_dr_1): Allow several reductions
9864         in a reduction PBB.
9865         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
9866         that have already been marked as PBB_IS_REDUCTION.
9867
9868 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9869
9870         * graphite-scop-detection.c (same_close_phi_node): New.
9871         (remove_duplicate_close_phi): New.
9872         (make_close_phi_nodes_unique): New.
9873         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
9874
9875 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9876
9877         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
9878         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
9879         of both data references to be the same.
9880
9881 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9882
9883         * graphite-dependences.c (build_lexicographical_constraint): Remove
9884         the gdim parameter.
9885         (build_lexicographical_constraint): Adjust call to
9886         ppl_powerset_is_empty.
9887         (dependence_polyhedron): Same.
9888         (graphite_legal_transform_dr): Same.
9889         (graphite_carried_dependence_level_k): Same.
9890         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
9891         parameter.
9892         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
9893
9894 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9895
9896         * graphite-sese-to-poly.c
9897         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
9898         (close_phi_written_to_memory): New.
9899         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
9900         and unshare_expr.
9901
9902 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9903
9904         * doc/install.texi: Update the expected version number of PPL to 0.11.
9905         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
9906         #if PPL_VERSION_MINOR < 11.
9907
9908 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9909
9910         * graphite-dependences.c: Include graphite-cloog-util.h.
9911         (new_poly_ddr): Inlined into dependence_polyhedron.
9912         (free_poly_ddr): Moved close by new_poly_ddr.
9913         (dependence_polyhedron_1): Renamed dependence_polyhedron.
9914         Early return NULL when ppl_powerset_is_empty returns true.
9915         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
9916         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
9917         (graphite_legal_transform_dr): Call new_poly_ddr.
9918         (graphite_carried_dependence_level_k): Same.
9919         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
9920         (dot_transformed_deps_stmt_1): Removed.
9921         (dot_deps_stmt_1): Call dot_deps_stmt_2.
9922         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
9923         (dot_deps_1): Call dot_deps_2.
9924         * Makefile.in (graphite-dependences.o): Add missing dependence on
9925         graphite-cloog-util.h.
9926
9927 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9928
9929         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
9930         (build_lexicographical_constraint): Same.
9931         (dependence_polyhedron_1): Same.
9932         (graphite_legal_transform_dr): Same.
9933         (graphite_carried_dependence_level_k): Same.
9934         * graphite-ppl.c (ppl_powerset_is_empty): New.
9935         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
9936         * tree-data-ref.c (dump_data_reference): Print the basic block index.
9937
9938 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9939
9940         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
9941         the "a followed by b" relation and document it.
9942
9943 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9944
9945         * graphite-dependences.c (build_lexicographical_constraint): Stop the
9946         iteration when the bag of constraints is empty.
9947
9948 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9949
9950         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
9951
9952 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9953
9954         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
9955         nest and two loop depths as parameters.
9956         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
9957         lst_perfect_nestify.
9958
9959 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9960
9961         * graphite-dependences.c (print_pddr): Call
9962         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
9963
9964 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9965
9966         * graphite-ppl.c (debug_gmp_value): New.
9967         * graphite-ppl.h (debug_gmp_value): Declared.
9968
9969 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
9970
9971         * doc/install.texi: Document availability of cloog-0.16.
9972
9973 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
9974
9975         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
9976         invalid postdominance info.
9977
9978 2011-01-24  Jan Hubicka  <jh@suse.cz>
9979
9980         PR c/21659
9981         * doc/extend.texi (weak pragma): Drop claim that it must
9982         appear before definition.
9983         * varasm.c (merge_weak, declare_weak): Only sanity check
9984         that DECL is not output at a time it is declared weak.
9985
9986 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
9987
9988         * machmode.def: Fixed comments.
9989
9990 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
9991
9992         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
9993
9994 2011-01-24  Paul Koning  <ni1d@arrl.net>
9995
9996         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
9997         WORDS_BIG_ENDIAN.
9998
9999 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
10000
10001         PR target/46519
10002         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
10003         (block_info): Add scanned and prev.
10004         (move_or_delete_vzeroupper_2): Return if the basic block
10005         has been scanned and the upper 128bit state is unchanged
10006         from the last scan.
10007         (move_or_delete_vzeroupper_1): Return true if the exit
10008         state is changed.
10009         (move_or_delete_vzeroupper): Visit basic blocks using the
10010         work-list based algorithm based on vt_find_locations in
10011         var-tracking.c.
10012
10013         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
10014
10015 2011-01-24  Nick Clifton  <nickc@redhat.com>
10016
10017         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
10018         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
10019         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
10020         then define __v850e1__.
10021         * doc/invoke.texi: Document -mv850es.
10022
10023 2011-01-24  Richard Henderson  <rth@redhat.com>
10024
10025         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
10026         compound unordered comparisons.
10027         * config/rx/rx.c (rx_split_fp_compare): Remove.
10028         * config/rx/rx-protos.h: Update.
10029         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
10030         (cbranchsf4): Don't call rx_split_fp_compare.
10031         (*cbranchsf4): Use rx_split_cbranch.
10032         (*cmpsf): Don't accept "i" constraint.
10033         (*conditional_branch): Only valid after reload.
10034         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
10035
10036 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
10037
10038         PR target/47385
10039         * config/rs6000/altivec.md (vector constant splitters): Add
10040         support for creating vector single precision constants if -mvsx is
10041         used and we would create the constant using Altivec primitives.
10042
10043 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
10044             Richard Sandiford  <rdsandiford@googlemail.com>
10045
10046         PR rtl-optimization/47166
10047         * reload1.c (emit_reload_insns): Disable the spill_reg_store
10048         mechanism for PRE_MODIFY and POST_MODIFY.
10049         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
10050         reloadreg.
10051
10052 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
10053
10054         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
10055
10056 2011-01-22  Jan Hubicka  <jh@suse.cz>
10057
10058         PR lto/47333
10059         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
10060
10061 2011-01-22  Jan Hubicka  <jh@suse.cz>
10062
10063         PR tree-optimization/43884
10064         PR lto/44334
10065         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
10066         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
10067
10068 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
10069
10070         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10071         * config/s390/s390.c (s390_register_move_cost,
10072         s390_memory_move_cost): New.
10073         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
10074
10075 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10076
10077         PR middle-end/47401
10078         * except.c (sjlj_assign_call_site_values): Move setting the
10079         crtl->uses_eh_lsda flag to ...
10080         (sjlj_mark_call_sites): ... here.
10081         (sjlj_emit_function_enter): Support NULL dispatch label.
10082         (sjlj_build_landing_pads): In a function with no landing pads
10083         that still has must-not-throw regions, generate code to register
10084         a personality function with empty LSDA.
10085
10086 2011-01-21  Richard Henderson  <rth@redhat.com>
10087
10088         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
10089
10090         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
10091
10092         * compare-elim.c: New file.
10093         * Makefile.in (OBJS-common): Add it.
10094         (compare-elim.o): New.
10095         * common.opt (fcompare-elim): New.
10096         * opts.c (default_options_table): Add OPT_fcompare_elim.
10097         * tree-pass.h (pass_compare_elim_after_reload): New.
10098         * passes.c (init_optimization_passes): Add it.
10099         * recog.h: Protect against re-inclusion.
10100         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
10101         * doc/invoke.texi (-fcompare-elim): Document it.
10102         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
10103         * doc/tm.texi: Rebuild.
10104
10105 2011-01-22  Nick Clifton  <nickc@redhat.com>
10106
10107         * config/rx/rx.md (cstoresf4): Pass comparison operator to
10108         rx_split_fp_compare.
10109
10110 2011-01-22  Nick Clifton  <nickc@redhat.com>
10111
10112         * config/rx/rx.md (UNSPEC_CONST): New.
10113         (deallocate_and_return): Wrap the amount popped off the stack in
10114         an UNSPEC_CONST in order to stop it being rejected by
10115         -mmax-constant-size.
10116         (pop_and_return): Add a "(return)" rtx.
10117         (call): Drop the immediate operand.
10118         (call_internal): Likewise.
10119         (call_value): Likewise.
10120         (call_value_internal): Likewise.
10121         (sibcall_internal): Likewise.
10122         (sibcall_value_internal): Likewise.
10123         (sibcall): Likewise.  Generate an explicit call using
10124         sibcall_internal.
10125         (sibcall_value): Likewise.
10126         (mov<>): FAIL if a constant operand is not legitimate.
10127         (addsi3_unpsec): New pattern.
10128
10129         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
10130         (ok_for_max_constant): New function.
10131         (gen_safe_add): New function.
10132         (rx_expand_prologue): Use gen_safe_add.
10133         (rx_expand_epilogue): Likewise.
10134         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
10135         UNSPEC CONSTs.
10136
10137 2011-01-21  Jeff Law  <law@redhat.com>
10138
10139         PR tree-optimization/47053
10140         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
10141         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
10142         statements are deleted.
10143         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
10144         is nonempty, then purge dead edges and cleanup the CFG.
10145
10146 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
10147
10148         PR debug/47402
10149         Temporarily revert:
10150         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
10151         PR debug/47106
10152         * tree-dfa.c (create_var_ann): Mark variable as used.
10153
10154 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
10155
10156         PR middle-end/45566
10157         * except.c (convert_to_eh_region_ranges): Emit queued no-region
10158         notes from other section in hot/cold partitioning even if
10159         last_action is -3.  Increment call_site_base.
10160
10161         PR rtl-optimization/47366
10162         * fwprop.c (forward_propagate_into): Return bool.  If
10163         any changes are made, -fnon-call-exceptions is used and
10164         REG_EH_REGION note is present, call purge_dead_edges
10165         and return true if it purged anything.
10166         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
10167         any EH edges were purged.
10168
10169 2011-01-21  Jeff Law  <law@redhat.com>
10170
10171         PR rtl-optimization/41619
10172         * caller-save.c (setup_save_areas): Break out code to determine
10173         which hard regs are live across calls by examining the reload chains
10174         so that it is always used.
10175         Eliminate code which checked REG_N_CALLS_CROSSED.
10176
10177 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
10178
10179         PR tree-optimization/47355
10180         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
10181         NOP has non-debug uses beyond PHIs in new_bb.
10182
10183 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
10184
10185         PR debug/47106
10186         * cfgexpand.c (account_used_vars_for_block): Only account vars
10187         that are annotated as used.
10188         (estimated_stack_frame_size): Don't set TREE_USED.
10189         * tree-dfa.c (create_var_ann): Mark variable as used.
10190
10191 2011-01-21  Richard Guenther  <rguenther@suse.de>
10192
10193         PR middle-end/47395
10194         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
10195
10196 2011-01-21  Richard Guenther  <rguenther@suse.de>
10197
10198         PR tree-optimization/47365
10199         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
10200         (vn_reference_lookup_pieces): Adjust.
10201         (vn_reference_lookup): Likewise.
10202         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
10203         (vn_reference_lookup_3): Only look through kills if in
10204         VN_WALKREWRITE mode.
10205         (vn_reference_lookup_pieces): Adjust.
10206         (vn_reference_lookup): Likewise.
10207         (visit_reference_op_load): Likewise.
10208         (visit_reference_op_store): Likewise.
10209         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
10210         (compute_avail): Likewise.
10211         (eliminate): Likewise.
10212
10213 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
10214
10215         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
10216         DECL_IGNORED_P non-reg vars if they are used.
10217
10218         PR tree-optimization/47391
10219         * varpool.c (const_value_known_p): Return false if
10220         decl is volatile.
10221
10222 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
10223
10224         PR bootstrap/47215
10225         * config/i386/i386.c (ix86_local_alignment): Handle
10226         case for va_list_type_node is nil.
10227         (ix86_canonical_va_list_type): Likewise.
10228
10229 2011-01-21  Alan Modra  <amodra@gmail.com>
10230
10231         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
10232         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
10233
10234 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10235
10236         * config/arm/arm.md (define_attr type): Rename f_load
10237         and f_store to f_fpa_load and f_fpa_store. Update.
10238         (write_conflict): Deal with rename fallout.
10239         (*push_fp_multi): Likewise.
10240         * config/arm/fpa.md (f_load): Use f_fpa_load.
10241         (f_store): Use f_fpa_store.
10242         (*movsf_fpa): Likewise.
10243         (*movdf_fpa): Likewise.
10244         (*movxf_fpa): Likewise.
10245         (*thumb2_movsf_fpa): Likewise.
10246         (*thumb2_movdf_fpa): Likewise.
10247         (*thumb2_movxf_fpa): Likewise.
10248         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
10249         f_loadd and f_stored.
10250         (*thumb2_movdi_vfp): Likewise.
10251         (*thumb2_movsf_vfp): Fix attribute to f_loads.
10252         (*thumb2_movsi_vfp): Likewise.
10253         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
10254         Use f_loads instead of f_load.
10255         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
10256
10257 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
10258
10259         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10260         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
10261         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10262         (xtensa_mode_dependent_address_p): New function.
10263         (constantpool_address_p): Make static. Change return type to bool.
10264         Change argument type to const_rtx. Use CONST_INT_P predicate.
10265
10266 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
10267
10268         PR debug/46583
10269         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
10270
10271 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
10272
10273         PR debug/47283
10274         * cfgexpand.c (expand_debug_expr): Instead of generating
10275         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
10276         etc. handling.
10277
10278 2011-01-20  Richard Guenther  <rguenther@suse.de>
10279
10280         PR middle-end/47370
10281         * tree-inline.c (remap_gimple_op_r): Recurse manually for
10282         the pointer operand of MEM_REFs.
10283
10284 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
10285
10286         PR tree-optimization/46130
10287         * ipa-split.c (consider_split): If return_bb contains non-virtual
10288         PHIs other than for retval or if split_function would not adjust it,
10289         refuse to split.
10290
10291 2011-01-20  Richard Guenther  <rguenther@suse.de>
10292
10293         PR tree-optimization/47167
10294         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
10295         Revert previous change, only avoid enumeral type changes.
10296
10297 2011-01-19  Mike Stump  <mikestump@comcast.net>
10298
10299         * doc/tm.texi.in (BRANCH_COST): Englishify.
10300         * doc/tm.texi (BRANCH_COST): Likewise.
10301
10302 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
10303
10304         PR c++/47291
10305         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
10306         (gen_scheduled_generic_parms_dies): New functions.
10307         (gen_struct_or_union_type_die): Schedule template parameters DIEs
10308         generation for the end of CU compilation.
10309         (dwarf2out_finish): Generate template parameters DIEs here.
10310
10311 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
10312
10313         PR debug/46240
10314         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
10315         debug bind stmt on merge edges.
10316
10317 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
10318
10319         PR debug/47079
10320         PR debug/46724
10321         * function.c (instantiate_expr): Instantiate incoming rtl of
10322         implicit arguments, and recurse on VALUE_EXPRs.
10323         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
10324         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
10325
10326 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
10327
10328         * c-parser.c (c_parser_for_statement): Initialize
10329         collection_expression.
10330
10331 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10332
10333         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
10334
10335 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10336
10337         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
10338         (LINK_SHLIB_SPEC): Don't use %(link_path).
10339         (SUBTARGET_EXTRA_SPECS): Remove link_path.
10340
10341 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10342
10343         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
10344         (NO_SHARED_LIB_SUPPORT): Remove.
10345         (LINK_SHLIB_SPEC): Remove one conditional definition.
10346
10347 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10348
10349         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
10350         %{call_shared}.
10351         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
10352         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
10353         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
10354         %{call_shared} and conditionals on these options not being passed.
10355         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
10356         %{call_shared}.
10357
10358 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
10359
10360         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
10361         simplify.
10362
10363         * ipa-split.c: Spelling fixes.
10364
10365 2011-01-19  Richard Henderson  <rth@redhat.com>
10366
10367         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
10368         (*mulsi3): Likewise.
10369
10370         * longlong.h [__mn10300__] (count_leading_zeros): New.
10371         [__mn10300__] (umul_ppmm, smul_ppmm): New.
10372         [__mn10300__] (add_ssaaaa, subddmmss): New.
10373         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
10374         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
10375
10376 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10377
10378         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
10379
10380 2011-01-19  Richard Henderson  <rth@redhat.com>
10381
10382         * config/mn10300/mn10300.md (addsi3_flags): New.
10383         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
10384         (subsi3_flags, subc_internal, subdi3): New.
10385         (subdi3_internal, *subdi3_degenerate): New.
10386         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
10387
10388         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
10389         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
10390         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
10391         * config/mn10300/mn10300-protos.h: Update.
10392         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
10393         (return_ret): Likewise.  Rename from return_internal_regs.
10394         (return_internal): Remove.
10395
10396         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
10397         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
10398         (mn10300_legitimate_constant_p): Likewise.
10399         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
10400         (mn10300_frame_size): New.
10401         (mn10300_expand_prologue): Use it.
10402         (mn10300_expand_epilogue): Likewise.
10403         (mn10300_initial_offset): Likewise.
10404         * config/mn10300/mn10300-protos.h: Update.
10405         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
10406         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
10407         (prologue, epilogue, return_internal): Tidy output code.
10408         (mn10300_store_multiple_operation, return): Likewise.
10409         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
10410         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
10411         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
10412         (load_pic, am33_load_pic): New.
10413         (mn10300_load_pic0, mn10300_load_pic1): New.
10414
10415         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
10416         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
10417         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
10418         (cc_flags_for_mode, cc_flags_for_code): New.
10419         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
10420         overflow flag is not valid.  Validate that the flags we need
10421         for the comparison are valid.
10422         (mn10300_output_cmp): Remove.
10423         (mn10300_output_add): New.
10424         (mn10300_select_cc_mode): Use cc_flags_for_code.
10425         (mn10300_split_cbranch): New.
10426         (mn10300_match_ccmode): New.
10427         (mn10300_split_and_operand_count): New.
10428         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
10429         to the function.
10430         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
10431         (addsi3): ... here.  Use mn10300_output_add.
10432         (*addsi3_flags): New.
10433         (*am33_subsi3, *mn10300_subsi3): Merge...
10434         (subsi3): ... here.  Use attribute isa.
10435         (*subsi3_flags): New.
10436         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
10437         when possible.
10438         (*am33_andsi3, *mn10300_andsi3): Merge...
10439         (andsi3): ... here.
10440         (*andsi3_flags): New.
10441         (andsi3 splitters): New.
10442         (*am33_iorsi3, *mn10300_iorsi3): Merge...
10443         (iorsi3): ... here.
10444         (*iorsi3_flags): New.
10445         (*am33_xorsi3, *mn10300_xorsi3): Merge...
10446         (xorsi3): ... here.
10447         (*xorsi3_flags): New.
10448         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
10449         (one_cmplsi2): ... here.
10450         (*one_cmplsi2_flags): New.
10451         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
10452         instead of "dax" in constraints.  Use mn10300_split_cbranch.
10453         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
10454         use matching constraints to eliminate a self-comparison.
10455         (*integer_conditional_branch): Rename from integer_conditional_branch.
10456         Use int_mode_flags to match CC_REG.
10457         (*cbranchsi4_btst, *btstsi): New.
10458         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
10459         mn10300_split_cbranch.
10460         (*am33_cmpsf): Rename from am33_cmpsf.
10461         (*float_conditional_branch): Rename from float_conditional_branch.
10462         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
10463         (zero_extendqisi2): ... here.
10464         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
10465         (zero_extendhisi2): ... here.
10466         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
10467         (extendqisi2): ... here.
10468         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
10469         (extendhisi2): ... here.
10470         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
10471         (ashlsi3): ... here.
10472         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
10473         (lshrsi3): ... here.
10474         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
10475         (ashrsi3): ... here.
10476         (consecutive add peephole): Remove.
10477         * config/mn10300/predicates.md (label_ref_operand): New.
10478         (int_mode_flags): New.
10479         (CCZN_comparison_operator): New.
10480
10481         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
10482         (throughput_42_latency_43): New reservation.
10483         (mulsidi3, umulsidi3): New expanders.
10484         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
10485         the MDR register to allocation; separately allocate the low and
10486         high parts of the DImode result.
10487         (umulsidi3_internal): Similarly.
10488         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
10489         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
10490         (udivsi3, umodsi3): Remove.
10491         (udivmodsi4, divmodsi4): New expanders.
10492         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
10493         (*divmodsi4): Simiarly.
10494         (ext_internal): New.
10495
10496         * config/mn10300/constraints.md ("z"): New constraint.
10497         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
10498         (FIXED_REGISTERS): Don't fix MDR.
10499         (CALL_USED_REGSITERS): Reformat nicely.
10500         (REG_ALLOC_ORDER): Add MDR.
10501         (enum regclass): Add MDR_REGS.
10502         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
10503         (IRA_COVER_CLASSES): Add MDR_REGS.
10504         (REGNO_REG_CLASS): Handle MDR_REG.
10505         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
10506         (mn10300_register_move_cost): Likewise.
10507         * config/mn10300/mn10300.md (MDR_REG): New.
10508         (*movsi_internal): Handle moves to/from MDR_REGS.
10509
10510         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
10511         POST_MODIFY.
10512         (mn10300_secondary_reload): Tidy combination reload classes.
10513         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
10514         addresses for AM33.  Allow symbolic offsets for reg+imm.
10515         (mn10300_regno_in_class_p): New.
10516         (mn10300_legitimize_reload_address): New.
10517         * config/mn10300/mn10300.h (enum reg_class): Remove
10518         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
10519         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
10520         SP_OR_GENERAL_REGS.
10521         (REG_CLASS_NAMES): Update to match.
10522         (REG_CLASS_CONTENTS): Likewise.
10523         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
10524         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
10525         (REGNO_IN_RANGE_P): Remove.
10526         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
10527         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
10528         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
10529         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
10530         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
10531         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
10532         (REGNO_GENERAL_P): New.
10533         (HAVE_POST_MODIFY_DISP): New.
10534         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
10535         (LEGITIMIZE_RELOAD_ADDRESS): New.
10536         * config/mn10300/mn10300-protos.h: Update.
10537
10538         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
10539         DATA_REGS for AM33 stack-pointer destination.
10540         (mn10300_preferred_output_reload_class): Likewise.
10541         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
10542         into a form appropriate for ...
10543         (TARGET_SECONDARY_RELOAD): New.
10544         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
10545         * config/mn10300/mn10300-protos.h: Update.
10546         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
10547         reload_insi; use the "A" constraint for the scratch; handle AM33
10548         moves of sp to non-address registers.
10549
10550         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
10551         (*movqi_internal): ... here.
10552         (*am33_movhi, *mn10300_movhi): Merge into...
10553         (*movhi_internal): ... here.
10554         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
10555         as the source/destination of moves from/to SP.
10556         (movsf): Only allow for AM33-2.
10557         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
10558         any integer constant constraint.  Only allow for AM33-2.  Tidy
10559         all of the alternative outputs.
10560         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
10561         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
10562         for MN103.
10563         (udivsi3, umodsi3): New patterns for MN103 only.
10564
10565 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
10566
10567         * doc/tm.texi.in: Spell out that a lack of register class unions
10568         can lead to ICEs.
10569         * doc/tm.texi: Regenerate.
10570
10571 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
10572
10573         PR rtl-optimization/47337
10574         * dce.c (check_argument_store): New function.
10575         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
10576
10577         PR tree-optimization/47290
10578         * tree-eh.c (infinite_empty_loop_p): New function.
10579         (cleanup_empty_eh): Use it.
10580
10581 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
10582
10583         PR target/46997
10584         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
10585         (a64_expand_widen_sum): Ditto.
10586         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
10587         (vec_extract_evenodd_help): Ditto.
10588         (vec_extract_evenv4hi): Ditto.
10589         (vec_extract_oddv4hi): Ditto.
10590         (vec_extract_evenv2si): Ditto.
10591         (vec_extract_oddv2si): Ditto.
10592         (vec_extract_evenv2sf): Ditto.
10593         (vec_extract_oddv2sf): Ditto.
10594         (vec_pack_trunc_v4hi: Ditto.
10595         (vec_pack_trunc_v2si): Ditto.
10596         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
10597         (vec_interleave_highv8qi): Ditto.
10598         (mix1_r): Ditto.
10599         (vec_extract_oddv8qi): Ditto.
10600         (vec_interleave_lowv4hi): Ditto.
10601         (vec_interleave_highv4hi): Ditto.
10602         (vec_interleave_lowv2si): Ditto.
10603         (vec_interleave_highv2si): Ditto.
10604
10605 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10606
10607         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
10608         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
10609         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
10610         (pa_c_mode_for_suffix): New.
10611         (TARGET_EXPAND_BUILTIN): Define.
10612         (TARGET_C_MODE_FOR_SUFFIX): Define.
10613         (pa_builtins): Define.
10614         (pa_init_builtins): Register __float128 type and init new support
10615         builtins.
10616         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
10617         * config/pa/quadlib.c (_U_Qfcopysign): New.
10618
10619 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
10620
10621         PR middle-end/46894
10622         * explow.c (allocate_dynamic_stack_space): Do not assume more than
10623         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
10624         are defined.
10625
10626 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10627
10628         PR tree-optimization/47179
10629         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
10630         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
10631
10632 2011-01-18  Richard Guenther  <rguenther@suse.de>
10633
10634         PR rtl-optimization/47216
10635         * emit-rtl.c: Include tree-flow.h.
10636         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
10637         of replicating it with different semantics.
10638         * Makefile.in (emit-rtl.o): Adjust.
10639
10640 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10641
10642         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
10643         (cortex_a9_dp): Handle neon types correctly.
10644
10645 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
10646
10647         PR rtl-optimization/47299
10648         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
10649         subtarget.  Use normal multiplication if both operands are constants.
10650         * expmed.c (expand_widening_mult): Don't try to optimize constant
10651         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
10652         before using it.
10653
10654 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10655
10656         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
10657         spacing after 'e.g.', typos, comma, hyphenation.
10658
10659 2011-01-17  Richard Henderson  <rth@redhat.com>
10660
10661         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
10662         (rx_restricted_mem_operand): New.
10663         (rx_shift_operand): Use register_operand.
10664         (rx_source_operand, rx_compare_operand): Likewise.
10665         * config/rx/rx.md (addsi3_flags): New expander.
10666         (adddi3): Rewrite as expander.
10667         (adc_internal, *adc_flags, adddi3_internal): New patterns.
10668         (subsi3_flags): New expander.
10669         (subdi3): Rewrite as expander.
10670         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
10671
10672         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
10673         (rx_init_builtins): Remove sat builtin.
10674         (rx_expand_builtin): Likewise.
10675         * config/rx/rx.md (ssaddsi3): New.
10676         (*sat): Rename from sat.  Represent the CC_REG input.
10677
10678         * config/rx/predicates.md (rshift_operator): New.
10679         * config/rx/rx.c (rx_expand_insv): Remove.
10680         * config/rx/rx-protos.h: Update.
10681         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
10682         operand to the canonical position.
10683         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
10684         (*bitclr, *bitclr_in_memory): Similarly.
10685         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
10686         (insv): Retain the zero_extract in the expansion.
10687
10688         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
10689         (bswaphi2, bitinvert, revw): Likewise.
10690
10691         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
10692         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
10693         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
10694         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
10695         (bitset, bitset_in_memory): Likewise.
10696         (bitinvert, bitinvert_in_memory): Likewise.
10697         (bitclr, bitclr_in_memory): Likewise.
10698         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
10699         (rx_strend, rx_cmpstrn): Likewise.
10700         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
10701         (bitop peep2 patterns): Remove.
10702
10703         * config/rx/rx.c (rx_match_ccmode): New.
10704         * config/rx/rx-protos.h: Update.
10705         * config/rx/rx.md (abssi2): Clobber, don't set flags.
10706         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
10707         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
10708         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
10709         (fix_truncsfsi2, floatsisf2): Likewise.
10710         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
10711         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
10712         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
10713         (*subsi3_flags, *xorsi3_flags): New.
10714
10715         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
10716
10717         * config/rx/rx.c (rx_print_operand): Remove workaround for
10718         unsplit comparison operations.
10719
10720         * config/rx/rx.md (movsicc): Split after reload.
10721         (*movsicc): Merge *movsieq and *movsine via match_operator.
10722         (*stcc): New pattern.
10723
10724         * config/rx/rx.c (rx_float_compare_mode): Remove.
10725         * config/rx/rx.h (rx_float_compare_mode): Remove.
10726         * config/rx/rx.md (cstoresi4): Split after reload.
10727         (*sccc): New pattern.
10728
10729         * config/rx/predicates.md (label_ref_operand): New.
10730         (rx_z_comparison_operator): New.
10731         (rx_zs_comparison_operator): New.
10732         (rx_fp_comparison_operator): New.
10733         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
10734         Validate that the flags are set properly for the comparison.
10735         (rx_gen_cond_branch_template): Remove.
10736         (rx_cc_modes_compatible): Remove.
10737         (mode_from_flags): New.
10738         (flags_from_code): Rename from flags_needed_for_conditional.
10739         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
10740         (rx_select_cc_mode): Likewise.
10741         (rx_split_fp_compare): New.
10742         (rx_split_cbranch): New.
10743         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
10744         (*cbranchsi4): Use match_operator and rx_split_cbranch.
10745         (*cbranchsf4): Similarly.
10746         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
10747         match_operator and rx_split_cbranch.
10748         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
10749         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
10750         (*cmpsi): Rename from cmpsi.
10751         (*tstsi): Rename from tstsi.
10752         (*cmpsf): Rename from cmpsf; use CC_Fmode.
10753         (*conditional_branch): Rename from conditional_branch.
10754         (*reveresed_conditional_branch): Remove.
10755         (b<code>): Remove expander.
10756         * config/rx/rx-protos.h: Update.
10757
10758         * config/rx/rx.c (rx_compare_redundant): Remove.
10759         * config/rx/rx.md (cmpsi): Don't use it.
10760         * config/rx/rx-protos.h: Update.
10761
10762         * config/rx/rx-modes.def (CC_F): New mode.
10763         * config/rx/rx.c (rx_select_cc_mode): New.
10764         * config/rx/rx.h (SELECT_CC_MODE): Use it.
10765         * config/rx/rx-protos.h: Update.
10766
10767 2011-01-17  Richard Henderson  <rth@redhat.com>
10768
10769         * except.c (dump_eh_tree): Fix stray ; after for statement.
10770
10771 2011-01-17  Richard Guenther  <rguenther@suse.de>
10772
10773         PR tree-optimization/47313
10774         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
10775         handling before copying the body.  Properly deal with
10776         by-reference result in SSA form.
10777
10778 2011-01-17  Ian Lance Taylor  <iant@google.com>
10779
10780         PR target/47219
10781         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
10782         (struct_value_alias_set): Don't define.
10783         (sparc_option_override): Don't set sparc_sr_alias_set and
10784         struct_value_alias_set.
10785         (save_or_restore_regs): Use gen_frame_mem rather than calling
10786         set_mem_alias_set.
10787         (sparc_struct_value_rtx): Likewise.
10788
10789 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
10790
10791         PR target/47318
10792         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
10793         (_mm_maskstore_pd): Likewise.
10794         (_mm_maskload_ps): Likewise.
10795         (_mm_maskstore_ps): Likewise.
10796         (_mm256_maskload_pd): Change mask to __m256i.
10797         (_mm256_maskstore_pd): Likewise.
10798         (_mm256_maskload_ps): Likewise.
10799         (_mm256_maskstore_ps): Likewise.
10800
10801         * config/i386/i386-builtin-types.def: Updated.
10802         (ix86_expand_special_args_builtin): Likewise.
10803
10804         * config/i386/i386.c (bdesc_special_args): Update
10805         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
10806         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
10807         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
10808         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
10809
10810         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
10811         Use <avxpermvecmode> on mask register.
10812         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
10813
10814 2011-01-17  Olivier Hainque  <hainque@adacore.com>
10815             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
10816             Eric Botcazou  <ebotcazou@adacore.com>
10817
10818         PR target/46655
10819         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
10820         if <= USHRT_MAX in 32-bit mode.
10821
10822 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10823
10824         * doc/install.texi (Configuration, Specific): Wrap long
10825         lines in examples.  Allow line wrapping in long options
10826         and URLs where beneficial for PDF output.
10827
10828 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
10829
10830         * config/mips/mips.c (mips_classify_symbol): Don't return
10831         SYMBOL_PC_RELATIVE for nonlocal labels.
10832
10833 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
10834
10835         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
10836
10837 2011-01-15  Jan Hubicka  <jh@suse.cz>
10838
10839         PR tree-optimization/47276
10840         * ipa.c (function_and_variable_visibility): Do not try to mark alias
10841         declarations as needed.
10842
10843 2011-01-15  Martin Jambor  <mjambor@suse.cz>
10844
10845         * common.opt (fdevirtualize): New flag.
10846         * doc/invoke.texi (Option Summary): Document it.
10847         * opts.c (default_options_table): Add devirtualize flag.
10848         * ipa-prop.c (detect_type_change): Return immediately if
10849         devirtualize flag is not set.
10850         (detect_type_change_ssa): Likewise.
10851         (compute_known_type_jump_func): Likewise.
10852         (ipa_analyze_virtual_call_uses): Likewise.
10853
10854 2011-01-14  Martin Jambor  <mjambor@suse.cz>
10855
10856         PR tree-optimization/45934
10857         PR tree-optimization/46302
10858         * ipa-prop.c (type_change_info): New type.
10859         (stmt_may_be_vtbl_ptr_store): New function.
10860         (check_stmt_for_type_change): Likewise.
10861         (detect_type_change): Likewise.
10862         (detect_type_change_ssa): Likewise.
10863         (compute_complex_assign_jump_func): Check for dynamic type change.
10864         (compute_complex_ancestor_jump_func): Likewise.
10865         (compute_known_type_jump_func): Likewise.
10866         (compute_scalar_jump_functions): Likewise.
10867         (ipa_analyze_virtual_call_uses): Likewise.
10868         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
10869
10870 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10871
10872         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
10873         * config/i386/i386.opt (msse5): New Alias.
10874
10875 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10876
10877         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10878         * config/sparc/linux64.h (CC1_SPEC): Likewise.
10879         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10880         * config/sparc/sparc.h (CC1_SPEC): Likewise.
10881
10882 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10883
10884         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
10885         -mcpu options.
10886         * config/sparc/linux64.h (CC1_SPEC): Likewise.
10887         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10888         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
10889         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
10890         Likewise.
10891         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
10892
10893 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10894
10895         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
10896
10897 2011-01-14  Mike Stump  <mikestump@comcast.net>
10898
10899         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
10900         * config/fr30/fr30.md: Likweise
10901         (movsi_push): Likewise.
10902         (movsi_pop): Likewise.
10903         (enter_func): Likewise.
10904         * config/moxie/moxie.md (movsi_push): Likewise.
10905         (movsi_pop): Likewise.
10906
10907 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10908
10909         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
10910         %{no_archive} %{exact_version}.
10911         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
10912         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
10913         %{no_archive} %{exact_version}.
10914         * config/mips/openbsd.h (LINK_SPEC): Likewise.
10915         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
10916         * config/mips/vxworks.h: Likewise.
10917
10918 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10919
10920         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
10921
10922 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10923
10924         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
10925         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
10926
10927 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10928
10929         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
10930         -nodefaultlib.
10931
10932 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10933
10934         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
10935         for mcpu not cpu.
10936         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
10937         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
10938         not cpu.
10939         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
10940         Don't handle -shlib.
10941
10942 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10943
10944         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
10945         (CC1_SPEC): Don't handle -profile.
10946
10947 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10948
10949         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
10950         * config/mips/mips.h (CC1_SPEC): Likewise.
10951
10952 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10953
10954         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
10955         * config/mips/mips.h (CC1_SPEC): Likewise.
10956
10957 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10958
10959         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
10960         * config/m32r/linux.h (LINK_SPEC): Likewise.
10961         * config/mips/linux.h (LINK_SPEC): Likewise.
10962         * config/mips/linux64.h (LINK_SPEC): Likewise.
10963         * config/sparc/linux.h (LINK_SPEC): Likewise.
10964         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
10965         LINK_SPEC): Likewise.
10966         * config/xtensa/linux.h (LINK_SPEC): Likewise.
10967
10968 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10969
10970         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
10971         %{version:-v}.
10972         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
10973
10974 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10975
10976         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
10977         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
10978
10979 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10980
10981         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
10982
10983 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10984
10985         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
10986         supports -Bstatic/-Bdynamic.
10987         * configure: Regenerate.
10988
10989 2011-01-14  Jan Hubicka  <jh@suse.cz>
10990             Jack Howarth  <howarth@bromo.med.uc.edu>
10991
10992         PR target/46037
10993         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
10994         when checking debug_info_level. Test write_symbols instead of
10995         debug_hooks->var_location when setting flag_var_tracking_uninit.
10996
10997 2011-01-14  Richard Guenther  <rguenther@suse.de>
10998
10999         PR tree-optimization/47179
11000         * target.def (ref_may_alias_errno): New target hook.
11001         * targhooks.h (default_ref_may_alias_errno): Declare.
11002         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
11003         (default_ref_may_alias_errno): New function.
11004         * target.h (struct ao_ref_s): Declare.
11005         * tree-ssa-alias.c: Include target.h.
11006         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
11007         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
11008         (targhooks.o): Likewise.
11009         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
11010         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
11011
11012 2011-01-14  Richard Guenther  <rguenther@suse.de>
11013
11014         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
11015
11016 2011-01-14  Richard Guenther  <rguenther@suse.de>
11017
11018         PR tree-optimization/47280
11019         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
11020         return CFG changes.
11021         (tree_ssa_forward_propagate_single_use_vars): Deal with
11022         CFG changes from associate_plusminus.
11023
11024 2011-01-14  Richard Guenther  <rguenther@suse.de>
11025
11026         PR middle-end/47281
11027         Revert
11028         2011-01-11  Richard Guenther  <rguenther@suse.de>
11029
11030         PR tree-optimization/46076
11031         * tree-ssa.c (useless_type_conversion_p): Conversions from
11032         unprototyped to empty argument list function types are useless.
11033
11034 2011-01-14  Richard Guenther  <rguenther@suse.de>
11035
11036         PR tree-optimization/47286
11037         * tree-ssa-structalias.c (new_var_info): Register variables are global.
11038
11039 2011-01-14  Martin Jambor  <mjambor@suse.cz>
11040
11041         PR middle-end/46823
11042         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
11043
11044 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
11045
11046         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
11047         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
11048         * config/xtensa/xtensa.c (xtensa_libcall_value,
11049         xtensa_function_value_regno_p): New functions.
11050         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11051
11052 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
11053
11054         PR c++/47213
11055         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
11056         PE specific hook.
11057         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
11058         New function prototype.
11059         * config/i386/winnt.c (i386_pe_assemble_visibility):
11060         Warn only if attribute was specified by user.
11061
11062 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
11063
11064         PR target/47251
11065         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
11066         floating point.
11067         (floatunsdidf2_fcfidu): Ditto.
11068
11069 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11070
11071         * config/s390/s390.c (print_operand_address): Replace 'error' with
11072         'output_operand_lossage'.
11073         (print_operand): Likewise.
11074
11075 2011-01-13  Jeff Law  <law@redhat.com>
11076
11077         PR rtl-optimization/39077
11078         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
11079         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
11080         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
11081         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
11082         * gcse.c (prune_insertions_deletions): New function.
11083         (compute_pre_data): Use it.
11084
11085 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
11086
11087         PR debug/PR46973
11088         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
11089         static function.
11090         (prune_unused_types_mark): Use it.
11091
11092 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
11093
11094         PR rtl-optimization/45352
11095         * sel-sched.c: Update copyright years.
11096         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
11097         in the advancing loop when we have issued issue_rate insns.
11098
11099 2011-01-12  Richard Henderson  <rth@redhat.com>
11100
11101         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
11102         (TARGET_MD_ASM_CLOBBERS): New.
11103
11104         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
11105         (TARGET_DELEGITIMIZE_ADDRESS): New.
11106
11107         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
11108         (clzsi2, *bsch): New patterns.
11109
11110         * config/mn10300/mn10300.md (INT): New mode iterator.
11111         (*mov<INT>_clr): New pattern, and peep2 to generate it.
11112
11113         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
11114         flag_split_wide_types.
11115
11116         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
11117         (mn10300_trampoline_init): Rewrite without a template, an immediate
11118         load and a direct branch.
11119         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
11120
11121 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
11122
11123         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11124         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
11125         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
11126         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11127
11128 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
11129
11130         PR debug/47209
11131         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
11132         of type.
11133
11134 2011-01-12  Jan Hubicka  <jh@suse.cz>
11135
11136         PR driver/47244
11137         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
11138         (PLUGIN_COND_CLOSE): New macro.
11139         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
11140
11141 2011-01-12  Richard Guenther  <rguenther@suse.de>
11142
11143         PR lto/47259
11144         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
11145         register variables in a MEM_REF.
11146
11147 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
11148
11149         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
11150         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
11151         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
11152         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
11153         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
11154         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
11155         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
11156         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
11157         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
11158         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
11159         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
11160         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
11161         * config/gnu-user.h: New.  Copied from linux.h.
11162         (LINUX_TARGET_STARTFILE_SPEC): Rename to
11163         GNU_USER_TARGET_STARTFILE_SPEC.
11164         (LINUX_TARGET_ENDFILE_SPEC): Rename to
11165         GNU_USER_TARGET_ENDFILE_SPEC.
11166         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
11167         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
11168         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
11169         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
11170         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
11171         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
11172         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
11173         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
11174         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
11175         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
11176         * config/arm/linux-eabi.h (CC1_SPEC): Use
11177         GNU_USER_TARGET_CC1_SPEC.
11178         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
11179         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
11180         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
11181         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
11182         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
11183         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
11184         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
11185         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
11186
11187 2011-01-12  Richard Guenther  <rguenther@suse.de>
11188
11189         PR other/46946
11190         * doc/invoke.texi (ffast-math): Document it is turned on
11191         with -Ofast.
11192
11193 2011-01-12  Jan Hubicka  <jh@suse.cz>
11194
11195         PR tree-optimization/47233
11196         * opts.c (common_handle_option): Disable ipa-reference with profile
11197         feedback.
11198
11199 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
11200
11201         * c-parser.c (c_parser_objc_at_property_declaration): Improved
11202         error message.
11203
11204 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
11205
11206         * c-parser.c (c_lex_one_token): Updated and reindented some
11207         comments.  No changes in code.
11208
11209 2011-01-11  Ian Lance Taylor  <iant@google.com>
11210
11211         * godump.c (go_output_var): Don't output the variable if there is
11212         already a type with the same name.
11213
11214 2011-01-11  Ian Lance Taylor  <iant@google.com>
11215
11216         * godump.c (go_format_type): Don't generate float80.
11217
11218 2011-01-11  Richard Henderson  <rth@redhat.com>
11219
11220         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
11221         declaration.  Rewrite for both speed and size.
11222         (mn10300_address_cost_1): Remove.
11223         (mn10300_register_move_cost): New.
11224         (mn10300_memory_move_cost): New.
11225         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
11226         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
11227         extensions, shifts, BSWAP, CLZ.
11228         (mn10300_wide_const_load_uses_clr): Remove.
11229         (TARGET_REGISTER_MOVE_COST): New.
11230         (TARGET_MEMORY_MOVE_COST): New.
11231         * config/mn10300/mn10300-protos.h: Update.
11232         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
11233
11234         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
11235         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
11236         * config/mn10300/mn10300-protos.h: Update.
11237         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
11238         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
11239         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
11240         (*test_int_bitfield, *test_byte_bitfield): Remove.
11241         (*bit_test, *subreg_bit_test): Remove.
11242         * config/mn10300/predicates.md (const_8bit_operand): Remove.
11243
11244         * config/mn10300/constraints.md ("c"): Rename from "A".
11245         ("A", "D"): New constraint letters.
11246         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
11247         (fmssf4, fnmasf4, fnmssf4): Likewise.
11248
11249         * config/mn10300/mn10300.md (isa): New attribute.
11250         (enabled): New attribute.
11251
11252         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
11253         (abssf2, negsf2): Define only for hardware fp.
11254         (sqrtsf2): Reformat.
11255         (addsf3, subsf3, mulsf3): Merge expander and insn.
11256
11257         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
11258         (DEBUGGER_AUTO_OFFSET): Remove.
11259         (DEBUGGER_ARG_OFFSET): Remove.
11260
11261         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
11262         Emit register stores with the same offsets as the hardware.
11263         (mn10300_store_multiple_operation): Don't check that the register
11264         save offsets are monotonic.
11265         * config/mn10300/mn10300-protos.h: Update.
11266
11267         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
11268
11269         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
11270         in terms of the value on the stack, not the MDR register.
11271
11272 2011-01-11  Jan Hubicka  <jh@suse.cz>
11273
11274         PR lto/45721
11275         PR lto/45375
11276         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
11277         (symbol_alias_set_destroy, symbol_alias_set_contains,
11278         propagate_aliases_backward): Declare.
11279         * lto-streamer-out.c (struct sets): New sturcture.
11280         (trivally_defined_alias): New function.
11281         (output_alias_pair_p): Rewrite.
11282         (output_unreferenced_globals): Fix output of alias pairs.
11283         (produce_symtab): Likewise.
11284         * ipa.c (function_and_variable_visibility): Set weak alias destination
11285         as needed in lto.
11286         * varasm.c (symbol_alias_set_t): Remove.
11287         (symbol_alias_set_destroy): Export.
11288         (propagate_aliases_forward, propagate_aliases_backward): New functions
11289         based on ...
11290         (compute_visible_aliases): ... this one; remove.
11291         (trivially_visible_alias): New
11292         (trivially_defined_alias): New.
11293         (remove_unreachable_alias_pairs): Rewrite.
11294         (finish_aliases_1): Reorganize code checking if alias is defined.
11295         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
11296         in LTO mode.
11297
11298 2011-01-11  Richard Guenther  <rguenther@suse.de>
11299
11300         PR tree-optimization/46076
11301         * tree-ssa.c (useless_type_conversion_p): Conversions from
11302         unprototyped to empty argument list function types are useless.
11303
11304 2011-01-11  Richard Guenther  <rguenther@suse.de>
11305
11306         PR middle-end/45235
11307         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
11308         volatile MEMs as MEM_READONLY_P.
11309
11310 2011-01-11  Richard Guenther  <rguenther@suse.de>
11311
11312         PR tree-optimization/47239
11313         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
11314
11315 2011-01-11  Jeff Law  <law@redhat.com>
11316
11317         PR tree-optimization/47086
11318         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
11319         IVs from statements that might throw.
11320
11321 2011-01-10  Jan Hubicka  <jh@suse.cz>
11322
11323         PR lto/45375
11324         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
11325
11326 2011-01-10  Jan Hubicka  <jh@suse.cz>
11327
11328         PR lto/45375
11329         * profile.c (read_profile_edge_counts): Ignore profile inconistency
11330         when correcting profile.
11331
11332 2011-01-10  Jan Hubicka  <jh@suse.cz>
11333
11334         PR lto/46083
11335         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
11336         DECL_FINI_PRIORITY.
11337         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
11338         Restore DECL_FINI_PRIORITY.
11339
11340 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11341
11342         * doc/gimple.texi: Fix quoting of multi-word return values in
11343         @deftypefn statements.  Ensure presence of return value.  Wrap
11344         overlong @deftypefn lines.
11345         (is_gimple_operand, is_gimple_min_invariant_address): Remove
11346         descriptions of removed functions.
11347         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
11348         of multi-word return value in @deftypefn statement.
11349
11350 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11351
11352         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
11353         (Conditional Expressions, Logical Operators)
11354         (Statement and operand traversals): Do not indent smallexample
11355         code.  Fix duplicate function argument in example.
11356
11357 2011-01-10  Jeff Law  <law@redhat.com>
11358
11359         PR tree-optimization/47141
11360         * ipa-split.c (split_function): Handle case where we are
11361         returning a value and the return block has a virtual operand phi.
11362
11363 2011-01-10  Jan Hubicka  <jh@suse.cz>
11364
11365         PR tree-optimization/47234
11366         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
11367         (pass_feedback_split_functions): Declare.
11368         * passes.c (init_optimization_passes): Add ipa-split as subpass of
11369         tree-profile.
11370         * ipa-split.c (gate_split_functions): Update comments; disable
11371         split-functions for profile_arc_flag and branch_probabilities.
11372         (gate_feedback_split_functions): New function.
11373         (execute_feedback_split_functions): New function.
11374         (pass_feedback_split_functions): New global var.
11375
11376 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
11377
11378         PR lto/46760
11379         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
11380         calling gimple_call_set_cannot_inline.
11381
11382 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
11383
11384         * config/darwin-sections.def: Remove unused section.
11385
11386 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
11387
11388         PR c++/47218
11389         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
11390
11391 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
11392
11393         PR objc/47232
11394         * c-parser.c (c_parser_declaration_or_fndef): Improved
11395         error message.
11396
11397 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
11398
11399         * config/i386/winnt.c (i386_pe_start_function): Make sure
11400         to switch back to function's section.
11401
11402 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
11403
11404         PR gcc/46902
11405         PR testsuite/46912
11406         * plugin.c: Move include of dlfcn.h from here...
11407         * system.h: ... to here.
11408
11409 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11410
11411         * doc/cpp.texi (C++ Named Operators): Fix markup for header
11412         file name.
11413         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
11414         two extra empty pages in PDF output.
11415
11416 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
11417
11418         PR objc/47078
11419         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
11420         for error recovery purposes behave as if it was not specified so
11421         that the default type is usd.
11422
11423 2011-01-07  Jan Hubicka  <jh@suse.cz>
11424
11425         PR tree-optmization/46469
11426         * ipa.c (function_and_variable_visibility): Clear needed flags on
11427         nodes with external decls; handle weakrefs merging correctly.
11428
11429 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
11430
11431         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
11432         not false.
11433
11434 2011-01-07  Jan Hubicka  <jh@suse.cz>
11435
11436         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
11437         and no longer claim that gold is required for linker plugin.
11438         * configure: Regenerate.
11439         * gcc.c (PLUGIN_COND): New macro.
11440         (LINK_COMMAND_SPEC): Use it.
11441         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
11442         * config.in (HAVE_LTO_PLUGIN): New.
11443         * configure.ac (--with-lto-plugin): New parameter; autodetect
11444         HAVE_LTO_PLUGIN.
11445
11446 2011-01-07  Jan Hubicka  <jh@suse.cz>
11447
11448         PR tree-optimization/46367
11449         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
11450         when we can update original.
11451         (cgraph_mark_inline_edge): Sanity check.
11452         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
11453
11454 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11455
11456         * config/spu/spu.h (ASM_COMMENT_START): Define.
11457
11458 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
11459
11460         PR driver/42445
11461         * gcc.c (%>S): New.
11462         (SWITCH_KEEP_FOR_GCC): Likewise.
11463         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
11464         (do_spec_1): Handle "%>".
11465
11466         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
11467
11468 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
11469
11470         PR target/47201
11471         * config/i386/i386.c (ix86_delegitimize_address): If
11472         simplify_gen_subreg fails, return orig_x.
11473
11474         PR bootstrap/47187
11475         * value-prof.c (gimple_stringop_fixed_value): Handle
11476         lhs of the call properly.
11477
11478 2011-01-07  Jan Hubicka  <jh@suse.cz>
11479
11480         PR lto/45375
11481         * lto-opt.c (lto_reissue_options): Set flag_shlib.
11482
11483 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
11484
11485         * target.def (function_switched_text_sections): New hook.
11486         * doc/tm.texi: Regenerated.
11487         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
11488         * final.c (default_function_switched_text_sections): New.
11489         (final_scan_insn): Call function_switched_text_sections when a
11490         mid-function section change occurs.
11491         * output.h (default_function_switched_text_sections): Declare.
11492         * config/darwin-protos.h (darwin_function_switched_text_sections):
11493         Likewise.
11494         * config/darwin.c (darwin_function_switched_text_sections): New.
11495         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
11496
11497 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
11498
11499         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
11500         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
11501         the secondary code fragment when outputting for DWARF == 2.
11502
11503 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
11504
11505         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11506         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
11507         Remove.
11508         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
11509         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11510
11511 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
11512
11513         PR debug/46704
11514         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
11515         when it is not empty.
11516
11517 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
11518
11519         Bobcat Enablement
11520         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
11521         (case ${target}): Add btver1.
11522         * config/i386/driver-i386.c (host_detect_local_cpu): Let
11523         -march=native recognize btver1 processors.
11524         * config/i386/i386-c.c (ix86_target_macros_internal): Add
11525         btver1 def_and_undef
11526         * config/i386/i386.c (struct processor_costs btver1_cost): New
11527         btver1 cost table.
11528         (m_BTVER1): New definition.
11529         (m_AMD_MULTIPLE): Includes m_BTVER1.
11530         (initial_ix86_tune_features): Add btver1 tune.
11531         (processor_target_table): Add btver1 entry.
11532         (static const char *const cpu_names): Add btver1 entry.
11533         (software_prefetching_beneficial_p): Add btver1.
11534         (ix86_option_override_internal): Add btver1 instruction sets.
11535         (ix86_issue_rate): Add btver1.
11536         (ix86_adjust_cost): Add btver1.
11537         * config/i386/i386.h (TARGET_BTVER1): New definition.
11538         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
11539         (enum processor_type): Add PROCESSOR_BTVER1.
11540         * config/i386/i386.md (define_attr "cpu"): Add btver1.
11541
11542 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11543
11544         PR target/43309
11545         * config/i386/i386.c (legitimize_tls_address)
11546         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
11547         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
11548         (tls_initial_exec_64_sun): New pattern.
11549
11550 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
11551
11552         * doc/invoke.texi (Overall Options): Improve wording and markup
11553         of the description of -wrapper.
11554
11555 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
11556
11557         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
11558         rdynamic, threads): New Driver options.
11559
11560 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11561
11562         PR target/38118
11563         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
11564         if coming from .tdata.
11565         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
11566
11567 2011-01-06  Jan Hubicka  <jh@suse.cz>
11568
11569         PR lto/47188
11570         * collect2.c (main): Do not enable LTOmode when plugin is active.
11571
11572 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11573
11574         PR other/45915
11575         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
11576         --version output if supported.
11577         * configure: Regenerate.
11578
11579 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
11580
11581         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
11582         Driver options.
11583
11584 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
11585
11586         PR c/47150
11587         * c-convert.c (convert): When converting a complex expression
11588         other than COMPLEX_EXPR to a different complex type, ensure
11589         c_save_expr is called instead of save_expr, unless in_late_binary_op.
11590         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
11591         when converting COMPLEX_TYPE.
11592
11593 2011-01-06  Ira Rosen  <irar@il.ibm.com>
11594
11595         PR tree-optimization/47139
11596         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
11597         only the last reduction value is used outside the loop.  Update
11598         documentation.
11599
11600 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
11601
11602         * config/rtems.opt: New.
11603         * config.gcc (*-*-rtems*): Use rtems.opt.
11604
11605 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
11606
11607         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
11608         processors do not support 3DNow instructions.
11609
11610 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11611
11612         * config/spu/spu.c (spu_option_override): Set parameter
11613         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
11614
11615 2011-01-05  Jan Hubicka  <jh@suse.cz>
11616
11617         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
11618         at the command line.
11619
11620 2011-01-05  Martin Jambor  <mjambor@suse.cz>
11621
11622         PR lto/47162
11623         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
11624         deltas on streamed outgoing edges.
11625         (output_node_opt_summary): Output info for outgoing edges only when
11626         the node is in new parameter set.
11627         (output_cgraph_opt_summary): New parameter set, passed to the two
11628         aforementioned functions.  Update its forward declaration and its
11629         callee too.
11630
11631 2011-01-05  Tom Tromey  <tromey@redhat.com>
11632
11633         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
11634         operator to c_finish_omp_atomic.
11635         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
11636         (build_unary_op): Update.
11637         (build_modify_expr): Update.
11638         (build_asm_expr): Update.
11639
11640 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11641
11642         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
11643         newly inserted insns.
11644         (pad_bb): Likewise.
11645         (spu_emit_branch_hint): Likewise.
11646         (insert_hbrp_for_ilb_runout): Likewise.
11647         (spu_machine_dependent_reorg): Call df_finish_pass after
11648         schedule_insns returns.
11649
11650 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11651
11652         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
11653
11654 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
11655
11656         PR tree-optimization/47005
11657         * tree-sra.c (struct access): Add 'non_addressable' bit.
11658         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
11659         (decide_one_param_reduction): Return 0 if the parameter is passed by
11660         reference and one of the accesses in the group is non_addressable.
11661
11662 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
11663
11664         PR tree-optimization/47056
11665         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
11666         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
11667         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
11668
11669 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
11670
11671         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
11672         initializer.  Skip view conversions from aggregate types.
11673
11674 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
11675
11676         PR bootstrap/47055
11677         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
11678
11679 2011-01-04  Philipp Thomas  <pth@suse.de>
11680
11681         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
11682         obvious typo.
11683
11684 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11685
11686         * function.c (thread_prologue_and_epilogue_insns): Do not crash
11687         on empty epilogue sequences.
11688
11689 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
11690
11691         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
11692         non-static): New Driver options.
11693
11694 2011-01-04  Jie Zhang  <jie@codesourcery.com>
11695
11696         PR driver/47137
11697         * gcc.c (default_compilers[]): Set combinable field to 0
11698         for all assembly languages.
11699
11700 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
11701
11702         * config/mips/loongson3a.md: New file.
11703         * config/mips/mips.md: Include loongson3a.md.
11704         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
11705         TUNE_LOONGSON_3A.
11706
11707 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
11708
11709         PR middle-end/47017
11710         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
11711         instead of convert_memory_address_addr_space on the base expression.
11712
11713 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11714
11715         * config/spu/spu.c (spu_option_override): Update error text
11716         for bad -march= / -mtune= values.
11717
11718 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11719
11720         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
11721         if branch-hint optimization will be performed.
11722
11723 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
11724
11725         PR tree-optimization/47148
11726         * ipa-split.c (split_function): Convert arguments to
11727         DECL_ARG_TYPE if possible.
11728
11729         PR tree-optimization/47155
11730         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
11731         when computing uns.
11732
11733         PR rtl-optimization/47157
11734         * combine.c (try_combine): If undobuf.other_insn becomes
11735         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
11736         and set *new_direct_jump_p too.
11737
11738 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
11739
11740         PR tree-optimization/47021
11741         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
11742
11743 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
11744
11745         * gcc.c (process_command): Update copyright notice dates.
11746         * gcov.c (print_version): Likewise.
11747         * gcov-dump.c (print_version): Likewise.
11748         * mips-tfile.c (main): Likewise.
11749         * mips-tdump.c (main): Likewise.
11750
11751 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11752
11753         PR tree-optimization/46801
11754         * tree-sra.c (type_internals_preclude_sra_p): Check whether
11755         aggregate fields start at byte boundary instead of the bit-field flag.
11756
11757 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
11758
11759         PR driver/47137
11760         * gcc.c (main): Revert revision 168407.
11761
11762 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11763
11764         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
11765
11766 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11767
11768         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
11769         vector optab to expand vector/scalar shift, update gimple to vector.
11770
11771 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11772
11773         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
11774         a thunk.
11775
11776 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11777
11778         PR tree-optimization/46984
11779         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
11780         HOST_WIDE_INT.
11781         (cgraph_create_indirect_edge): Fixed line length.
11782         (cgraph_indirect_call_info): Declare.
11783         (cgraph_make_edge_direct) Update declaration.
11784         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
11785         (cgraph_create_indirect_edge): Use it.
11786         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
11787         callees.
11788         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
11789         the new thunk_delta representation.
11790         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
11791         HOST_WIDE_INT.
11792         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
11793         (ipa_read_indirect_edge_info): Likewise.
11794         * lto-cgraph.c (output_edge_opt_summary): New function.
11795         (output_node_opt_summary): Call it on all outgoing edges.
11796         (input_edge_opt_summary): New function.
11797         (input_node_opt_summary): Call it on all outgoing edges.
11798
11799 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
11800
11801         PR driver/47137
11802         * gcc.c (main): Don't check have_o when settting combine_inputs.
11803
11804 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
11805
11806         * regrename.c: Add general comment describing the pass.
11807         (struct du_head): Remove 'length' field.
11808         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
11809         (regrename_optimize): Do not sort chains.  Rework comments, add others.
11810         Force renaming to the preferred class (if any) in the first pass and do
11811         not consider registers that belong to it in the second pass.
11812         (create_new_chain): Do not set 'length' field.
11813         (scan_rtx_reg): Likewise.
11814
11815 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
11816
11817         PR tree-optimization/47140
11818         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
11819         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
11820         to bit_value_binop.
11821
11822         PR rtl-optimization/47028
11823         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
11824         parm_birth_insn instead of at the beginning of first bb.
11825
11826 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
11827
11828         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
11829         Remove the word "see" before "@pxref".
11830         * doc/rtl.texi: Remove the word "see" before "@pxref".
11831
11832 2011-01-01  Jan Hubicka  <jh@suse.cz>
11833
11834         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
11835         memory.
11836
11837 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
11838
11839         PR target/38662
11840         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
11841
11842 \f
11843 Copyright (C) 2011 Free Software Foundation, Inc.
11844
11845 Copying and distribution of this file, with or without modification,
11846 are permitted in any medium without royalty provided the copyright
11847 notice and this notice are preserved.