OSDN Git Service

* ipa-inline-analysis.c (inline_write_summary): Fix thinko.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-04-22  Jan Hubicka  <jh@suse.cz>
2
3         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
4
5 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
6
7         PR c/48685
8         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
9         to VOID_TYPE even around MODIFY_EXPR.
10
11 2011-04-22  Mike Stump  <mikestump@comcast.net>
12
13         * gensupport.c (read_md_rtx): Fix typo in comment.
14         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
15         comment.
16
17 2011-04-22  Jan Hubicka  <jh@suse.cz>
18
19         * gengtype.c (open_base_files): Add ipa-inline.h include.
20         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to ipa-prop.c
21         update all uses.
22         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
23         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to merge
24         summary of inlined function into former caller.
25         * ipa-inline.c (max_benefit): Remove.
26         (edge_badness): Compensate for removal of benefits.
27         (update_caller_keys): Use reset_node_growth_cache/reset_edge_growth_cache.
28         (update_callee_keys): Likewise.
29         (update_all_callee_keys): Likewise.
30         (inline_small_functions): Do not collect max_benefit; do not
31         reset stimated_growth; call free_growth_caches and initialize_growth_caches.
32         * ipa-inline.h (struct condition, type clause_t, struct predicate, struct
33         size_time_entry): New structures.
34         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
35         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit and
36         estimated_growth.
37         (edge_growth_cache_entry): New structure.
38         (node_growth_cache, edge_growth_cache): New global vars.
39         (estimate_growth): Turn into inline.
40         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
41         initialize_growth_caches, free_growth_caches): Declare.
42         (estimate_edge_growth): Rewrite.
43         (estimate_edge_time): Implement as inline cache lookup.
44         (reset_node_growth_cache, reset_edge_growth_cache): New inline functions.
45         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
46         (NUM_CONDITIONS): New constant.
47         (predicate_conditions): New enum.
48         (IS_NOT_CONSTANT): New constant.
49         (edge_removal_hook_holder): New var.
50         (node_growth_cache, edge_growth_cache): New global vars.
51         (true_predicate, single_cond_predicate, false_predicate, not_inlined_predicate,
52         add_condition, add_clause, and_predicates, or_predicates, predicates_equal_p,
53         evaulate_predicate, dump_condition, dump_clause, dump_predicate, account_size_time,
54         evaulate_conditions_for_edge): New functions.
55         (inline_summary_alloc): Move to heap.
56         (inline_node_removal_hook): Clear condition and entry vectors.
57         (inline_edge_removal_hook): New function.
58         (initialize_growth_caches, free_growth_caches): New function.
59         (dump_inline_summary): Update.
60         (edge_execution_predicate): New function.
61         (will_be_nonconstant_predicate): New function.
62         (estimate_function_body_sizes): Compute BB and constantness predicates.
63         (compute_inline_parameters): Do not clear estimated_growth.
64         (estimate_edge_size_and_time): New function.
65         (estimate_calls_size_and_time): New function.
66         (estimate_callee_size_and_time): New function.
67         (remap_predicate): New function.
68         (inline_merge_summary): New function.
69         (do_estimate_edge_time): New function based on...
70         (estimate_edge_time): ... this one.
71         (do_estimate_edge_growth): New function.
72         (do_estimate_growth): New function based on....
73         (estimate_growth): ... this one.
74         (inline_analyze_function): Analyze after deciding on jump functions.
75         (inline_read_section): New function.
76         (inline_read_summary): Use it.
77         (inline_write_summary): Write all the new data.
78         * ipa-prop.c (ipa_get_param_decl_index): Export.
79         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
80         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc): Declare.
81         (ipa_get_lattice): Move hre from ipa-cp.c
82         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
83         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
84         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
85         cgraph_edge_inlinable_p): Remove.
86         * cgraphunit.c: Include ipainline.h
87         (cgraph_process_new_functions): Update call of compute_inline_parameters.
88
89 2011-04-22  Richard Guenther  <rguenther@suse.de>
90
91         * tree.c (build_int_cst): Properly create canonicalized integer
92         constants.
93         (build_int_cst_type): Remove scary comments.
94
95 2011-04-22  Xinliang David Li  <davidxl@google.com>
96
97         * toplev.c (process_options): Enable -Werror=coverage-mismatch
98         by default when -Wno-error is not specified.
99         * opts-global.c (decode_options): Remove call to
100         control_warning_options.
101
102 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
103
104         PR tree-optimization/48717
105         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
106         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
107
108 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
109
110         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
111         definition where used.
112
113 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
114
115         PR c/48716
116         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
117         TREE_STATIC variables declared inside of some OpenMP construct.
118
119 2011-04-22  Martin Jambor  <mjambor@suse.cz>
120
121         PR middle-end/48585
122         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
123
124 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
125
126         PR c/36750
127         * c-typeck.c (pop_init_level): Do not warn about initializing
128         with ` = {0}'.
129
130 2011-04-22  Alan Modra  <amodra@gmail.com>
131
132         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
133         when returning call_cookie.
134         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
135         pointers, to functions with no more vector args than the current
136         function, and some non-local calls for ABI_V4.
137         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
138         sibcall_nonlocal_aix64): Combine to ..
139         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
140         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
141         (sibcall_value_nonlocal_aix<mode>): ..likewise.
142         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
143         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
144         operand.
145         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
146         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
147         sibcall_value_symbolic_64): Delete.
148
149 2011-04-21  Xinliang David Li  <davidxl@google.com>
150
151         * cgraph.h: Remove pid.
152         * cgraph.c: Remove pid.
153         * value-prof.c (init_node_map): New function.
154         (del_node_map): New function.
155         (find_func_by_funcdef_no): New function.
156         (gimple_ic_transform): Call new function.
157         * cgraphunit.c (cgraph_finalize_function): Remove pid.
158         * function.c (get_last_funcdef_no): New function.
159         * function.h (get_last_funcdef_no): New function.
160         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
161         to libgcov function.
162         (tree-profiling): Call node map init and delete function.
163
164 2011-04-21  Ian Lance Taylor  <iant@google.com>
165
166         * godump.c (go_format_type): Use exported Go name for anonymous
167         field name.
168
169 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
170
171         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
172         Call builtin_function_type_list instead of builtin_function_type.
173         (UNARY, BINARY, TRINARY, QUAD): Likewise.
174
175 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
176
177         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
178         build_function_type_list instead of build_function_type.
179         Delete variable `endlink'.
180
181 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
182
183         * config/s390/s390.c (s390_init_builtins): Call
184         build_function_type_list instead of build_function_type.
185
186 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
187
188         * config/ia64/ia64.c (ia64_init_builtins): Call
189         build_function_type_list instead of builtin_function_type.
190
191 2011-04-21  Easwaran Raman  <eraman@google.com>
192
193         * cfgexpand.c (stack_var): Remove OFFSET...
194         (add_stack_var): ...and its reference here...
195         (expand_stack_vars): ...and here.
196         (stack_var_cmp): Sort by descending order of size.
197         (partition_stack_vars): Change heuristic.
198         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
199         (dump_stack_var_partition): Add newline after each partition.
200
201 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
202             Jeff Law  <law@redhat.com>
203
204         * gengtype-state.c (read_a_state_token): Fix argument to
205         obstack_free.
206         * gengtype.c (matching_file_name_substitute): Likewise.
207
208 2011-04-21  Richard Guenther  <rguenther@suse.de>
209
210         PR lto/48703
211         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
212
213 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
214
215         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
216
217 2011-04-21  Richard Guenther  <rguenther@suse.de>
218
219         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
220         file name.
221
222 2011-04-21  Richard Guenther  <rguenther@suse.de>
223
224         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
225         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
226         Use DECL_P, not SSA_VAR_P.
227         (ptr_derefs_may_alias_p): Likewise.
228         (ptr_deref_may_alias_ref_p_1): Likewise.
229         (decl_refs_may_alias_p): Likewise.
230         (refs_may_alias_p_1): Likewise.
231         (ref_maybe_used_by_call_p_1): Likewise.
232         (call_may_clobber_ref_p_1): Likewise.
233         (indirect_ref_may_alias_decl_p): Assume indirect refrences
234         are either MEM_REF or TARGET_MEM_REF.
235         (indirect_refs_may_alias_p): Likewise.
236         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
237         for MEM_EXPR of indirect calls.
238
239 2011-04-21  Tristan Gingold  <gingold@adacore.com>
240
241         * vmsdbgout.c (write_srccorr): Compute file length from the string.
242         (dst_file_info_struct): Remove flen field.
243         (lookup_filename): Remove code that set flen field.
244
245 2011-04-21  Tristan Gingold  <gingold@adacore.com>
246
247         * config/ia64/ia64.c (ia64_start_function): Add a guard.
248
249 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
250
251         PR target/48708
252         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
253         vec_extract and vec_concat for non-SSE4_1 targets.
254
255 2011-04-21  Richard Guenther  <rguenther@suse.de>
256
257         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
258         return statements.
259
260 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
261
262         * config/i386/cygming.h (union tree_node, TREE): Don't define or
263         undefine.
264         (FILE): Don't undefine.
265
266 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
267
268         * config/alpha/alpha.c (struct machine_function): Use rtx, not
269         struct rtx_def *.
270         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
271         struct rtx_def *.
272         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
273         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
274         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
275         rtx_def *.
276         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
277         definitions where used.
278         * config/microblaze/microblaze.h (struct microblaze_args): Use
279         rtx, not struct rtx_def *.
280         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
281         rtx_def *.
282         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
283         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
284         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
285         not struct rtx_def *.
286         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
287         struct rtx_def *.
288         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
289         rtx_def *.
290         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
291
292 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
293
294         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
295         operand_equal_p to compare DR_BASE_ADDRESSes.
296         (vect_check_interleaving): Likewise.
297
298 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
299
300         PR target/46329
301         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
302         for all Neon struct constants.
303
304 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
305
306         * target.def (legitimate_constant_p): New hook.
307         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
308         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
309         * doc/tm.texi: Regenerate.
310         * hooks.h (hook_bool_mode_rtx_true): Declare.
311         * hooks.c (hook_bool_mode_rtx_true): Define.
312         * system.h (LEGITIMATE_CONSTANT_P): Poison.
313         * calls.c (precompute_register_parameters): Replace uses of
314         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
315         (emit_library_call_value_1): Likewise.
316         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
317         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
318         * ira-costs.c (scan_one_insn): Likewise.
319         * recog.c (general_operand, immediate_operand): Likewise.
320         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
321         * reload1.c (init_eliminable_invariants): Likewise.
322
323         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
324         mode argument.
325         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
326         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
327         argument.
328         (TARGET_LEGITIMATE_CONSTANT_P): Define.
329         * config/alpha/predicates.md (input_operand): Update call to
330         alpha_legitimate_constant_p.
331
332         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
333         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
334         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
335         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
336         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
337         (arm_legitimate_constant_p): New functions.
338         (arm_cannot_force_const_mem): Make static.
339
340         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
341
342         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
343         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
344         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
345         instead of bfin_legitimate_constant_p.
346         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
347         (TARGET_LEGITIMATE_CONSTANT_P): Define.
348
349         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
350
351         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
352
353         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
354         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
355         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
356         (frv_legitimate_constant_p): Make static.  Add a mode argument.
357
358         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
359         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
360         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
361
362         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
363         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
364         * config/i386/i386.c (legitimate_constant_p): Rename to...
365         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
366         argument.
367         (ix86_cannot_force_const_mem): Update accordingly.
368         (ix86_legitimate_address_p): Likewise.
369         (TARGET_LEGITIMATE_CONSTANT_P): Define.
370         * config/i386/i386.md: Update commentary.
371
372         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
373         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
374         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
375         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
376
377         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
378
379         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
380         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
381         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
382         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
383
384         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
385         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
386         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
387
388         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
389         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
390         (m32r_legitimate_constant_p): New function.
391
392         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
393         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
394         LEGITIMATE_CONSTANT_P.
395         (LEGITIMATE_CONSTANT_P): Delete.
396         * config/m68k/m68k.c (m68k_expand_prologue): Call
397         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
398         (m68k_legitimate_constant_p): New function.
399         * config/m68k/m68k.md: Update comments.
400
401         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
402         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
403         (mcore_legitimate_constant_p): New function.
404
405         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
406         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
407         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
408         Add a mode argument.
409         (mep_legitimate_address): Update accordingly.
410         (TARGET_LEGITIMATE_CONSTANT_P): Define.
411
412         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
413         Delete.
414         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
415         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
416         static.  Check OP's mode for VOIDmode.
417         (microblaze_legitimate_constant_p): New function.
418         (TARGET_LEGITIMATE_CONSTANT_P): Define.
419
420         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
421         * config/mips/mips.c (mips_legitimate_constant_p): New function.
422         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
423         (TARGET_LEGITIMATE_CONSTANT_P): Define.
424         * config/mips/predicates.md: Update comments.
425
426         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
427         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
428         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
429         (mmix_legitimate_constant_p): Make static, return a bool, and take
430         a mode argument.
431         (mmix_print_operand_address): Update accordingly.
432
433         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
434         Delete.
435         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
436         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
437         static.  Add a mode argument.
438         (TARGET_LEGITIMATE_CONSTANT_P): Define.
439
440         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
441
442         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
443         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
444         (pa_legitimate_constant_p): New function.
445
446         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
447
448         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
449         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
450         (pdp11_legitimate_constant_p): New function.
451
452         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
453         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
454         (rs6000_legitimate_constant_p): New function.
455
456         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
457         (rx_legitimate_constant_p): ...this.
458         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
459         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
460         (rx_legitimate_constant_p): ...this.
461         (TARGET_LEGITIMATE_CONSTANT_P): Define.
462         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
463
464         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
465         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
466         * config/s390/s390.c (legitimate_constant_p): Rename to...
467         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
468         and add a mode argument.
469         (TARGET_LEGITIMATE_CONSTANT_P): Define.
470
471         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
472
473         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
474         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
475         (sh_legitimate_constant_p): New function.
476
477         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
478         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
479         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
480         (legitimate_constant_p): Rename to...
481         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
482         argument.
483         (constant_address_p): Update accordingly.
484
485         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
486         argument and return a bool.
487         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
488         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
489         (spu_legitimate_constant_p): Add a mode argument and return a bool.
490         (spu_rtx_costs): Update accordingly.
491         * config/spu/predicates.md (vec_imm_operand): Likewise.
492
493         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
494
495         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
496         * config/v850/v850.c (v850_legitimate_constant_p): New function.
497         (TARGET_LEGITIMATE_CONSTANT_P): Define.
498
499         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
500         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
501         * config/vax/vax.c (legitimate_constant_p): Likewise.
502
503         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
504         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
505         (xtensa_legitimate_constant_p): New function.
506
507 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
508
509         * target.def (cannot_force_const_mem): Add a mode argument.
510         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
511         * doc/tm.texi: Regenerate.
512         * hooks.h (hook_bool_mode_rtx_false): Declare.
513         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
514         (hook_bool_mode_const_rtx_true): Likewise.
515         (hook_bool_mode_rtx_false): New function.
516         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
517         to be non-VOID.  Update call to cannot_force_const_mem.
518         (find_reloads): Update accordingly.
519         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
520         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
521         argument.
522         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
523         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
524         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
525         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
526         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
527         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
528         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
529         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
530         (m68k_cannot_force_const_mem): ...this new function.
531         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
532         argument.
533         (mips_const_insns, mips_legitimize_const_move): Update calls.
534         (mips_secondary_reload_class): Likewise.
535         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
536         (pa_cannot_force_const_mem): ...this new function.
537         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
538         (rs6000_cannot_force_const_mem): ...this new function.
539         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
540         argument.
541         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
542         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
543         to...
544         (xtensa_cannot_force_const_mem): ...this new function.
545
546 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
547
548         * config/mips/mips.c (mips16_build_function_stub): Call
549         build_function_type_list instead of build_function_type.
550         (mips16_build_call_stub): Likewise.
551
552 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
553
554         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
555         instead of build_function_type.
556
557 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
558
559         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
560         instead of build_function_type.
561
562 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
563
564         PR target/48678
565         * config/i386/i386.md (insv): Change operand 0 constraint to
566         "register_operand".  Change operand 1 and 2 constraint to
567         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
568         * config/i386/sse.md (sse4_1_pinsrb): Export.
569         (sse2_pinsrw): Ditto.
570         (sse4_1_pinsrd): Ditto.
571         (sse4_1_pinsrq): Ditto.
572         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
573         * config/i386/i386.c (ix86_expand_pinsr): New.
574
575 2011-04-20  Easwaran Raman  <eraman@google.com>
576
577         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
578         containing union type only with -fstrict-aliasing.
579
580 2011-04-20  Jim Meyering  <meyering@redhat.com>
581
582         Remove useless if-before-free tests.
583         * calls.c (expand_call, save_area): Likewise.
584         * cfgcleanup.c (try_forward_edges): Likewise.
585         * collect2.c (collect_execute): Likewise.
586         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
587         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
588         * coverage.c (coverage_checksum_string): Likewise.
589         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
590         * cselib.c (cselib_init): Likewise.
591         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
592         (df_set_clean_cfg): Likewise.
593         * function.c (free_after_compilation): Likewise.
594         * gcc.c (do_spec_1, main): Likewise.
595         * gcov.c (create_file_names): Likewise.
596         * gensupport.c (identify_predicable_attribute): Likewise.
597         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
598         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
599         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
600         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
601         * ipa-pure-const.c (local_pure_const): Likewise.
602         * ipa-reference.c (propagate): Likewise.
603         * ira-costs.c (free_ira_costs): Likewise.
604         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
605         * matrix-reorg.c (mat_free): Likewise.
606         * prefix.c (get_key_value): Likewise.
607         * profile.c (compute_value_histograms): Likewise.
608         * reload1.c (free_reg_equiv): Likewise.
609         * sched-deps.c (free_deps): Likewise.
610         * sel-sched-ir.c (fence_clear): Likewise.
611         * sese.c (set_rename, if_region_set_false_region): Likewise.
612         * tree-data-ref.c (free_rdg): Likewise.
613         * tree-eh.c (lower_try_finally): Likewise.
614         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
615         * tree-ssa-live.c (delete_var_map): Likewise.
616         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
617         * tree-ssa-pre.c (phi_trans_add): Likewise.
618
619 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
620
621         PR tree-optimization/48611
622         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
623         beyond ERT_MUST_NOT_THROW region.
624
625 2011-04-20  Catherine Moore  <clm@codesourcery.com>
626
627         * config/mips/mips.opt (mfix-24k): New.
628         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
629         * config/mips/mips.md (length): Increase by 4 for stores if
630         fixing 24K errata.
631         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
632         all noreorder if fixing 24K errata.
633         * doc/invoke.texi: Document mfix-24k.
634
635 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
636
637         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
638         quad-word modes, reduce to 9-bit index range when above 1016 limit.
639
640 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
641
642         * config/arm/arm.c (arm_gen_constant): Move movw support ....
643         (const_ok_for_op): ... to here.
644
645 2011-04-20  Kai Tietz  <ktietz@redhat.com>
646
647         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
648         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
649
650 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
651
652         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
653
654 2011-04-20  Richard Guenther  <rguenther@suse.de>
655
656         PR tree-optimization/47892
657         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
658         are if-convertible.
659
660 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
661
662         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
663
664 2011-04-20  Tristan Gingold  <gingold@adacore.com>
665
666         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
667
668 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
669
670         PR target/18145
671
672         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
673         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
674         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
675         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
676         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
677
678         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
679         New prototype.
680
681         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
682         (avr_asm_named_section, avr_asm_output_aligned_common,
683         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
684         New functions to update...
685         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
686         (avr_asm_init_sections): Overwrite section callbacks for
687         data_section, bss_section.
688         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
689         from here to...
690         (avr_file_end): ...here.
691
692 2011-04-20  Richard Guenther  <rguenther@suse.de>
693
694         PR middle-end/48695
695         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
696         objects and types here.  Adjust for their offset before comparing.
697
698 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
699
700         * tree-vect-stmts.c (vectorizable_store): Only chain one related
701         statement per copy.
702
703 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
704
705         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
706         (GIMPLE_H): Include $(INTERNAL_FN_H).
707         (OBJS-common): Add internal-fn.o.
708         (internal-fn.o): New rule.
709         * internal-fn.def: New file.
710         * internal-fn.h: Likewise.
711         * internal-fn.c: Likewise.
712         * gimple.h: Include internal-fn.h.
713         (GF_CALL_INTERNAL): New gf_mask.
714         (gimple_statement_call): Put fntype into a union with a new
715         internal_fn field.
716         (gimple_build_call_internal): Declare.
717         (gimple_build_call_internal_vec): Likewise.
718         (gimple_call_same_target_p): Likewise.
719         (gimple_call_internal_p): New function.
720         (gimple_call_internal_fn): Likewise.
721         (gimple_call_fntype): Return null for internal calls.
722         (gimple_call_set_fntype): Assert that the function is not internal.
723         (gimple_call_set_fn): Likewise.
724         (gimple_call_set_fndecl): Likewise.
725         (gimple_call_set_internal_fn): New function.
726         (gimple_call_addr_fndecl): Handle null functions.
727         (gimple_call_return_type): Likewise null types.
728         * gimple.c (gimple_build_call_internal_1): New function.
729         (gimple_build_call_internal): Likewise.
730         (gimple_build_call_internal_vec): Likewise.
731         (gimple_call_same_target_p): Likewise.
732         (gimple_call_flags): Handle calls to internal functions.
733         (gimple_call_fnspec): New function.
734         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
735         (gimple_has_side_effects): Handle null functions.
736         (gimple_rhs_has_side_effects): Likewise.
737         (gimple_call_copy_skip_args): Handle calls to internal functions.
738         * cfgexpand.c (expand_call_stmt): Likewise.
739         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
740         * gimple-fold.c (gimple_fold_call): Handle null functions.
741         (gimple_fold_stmt_to_constant_1): Don't fold
742         calls to internal functions.
743         * gimple-low.c (gimple_check_call_args): Handle calls to internal
744         functions.
745         * gimple-pretty-print.c (dump_gimple_call): Likewise.
746         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
747         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
748         (do_warn_unused_result): Likewise.
749         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
750         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
751         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
752         the target of a call.
753         (initialize_hash_element): Update accordingly.
754         (hashable_expr_equal_p): Use gimple_call_same_target_p.
755         (iterative_hash_hashable_expr): Handle calls to internal functions.
756         (print_expr_hash_elt): Likewise.
757         * tree-ssa-pre.c (can_value_number_call): Likewise.
758         (eliminate): Handle null functions.
759         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
760         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
761         (find_func_aliases): Likewise.
762         * value-prof.c (gimple_ic_transform): Likewise.
763         (gimple_indirect_call_to_profile): Likewise.
764         * lto-streamer-in.c (input_gimple_stmt): Likewise.
765         * lto-streamer-out.c (output_gimple_stmt): Likewise.
766
767 2011-04-19  Jan Hubicka  <jh@suse.cz>
768
769         * ipa-inline-transform.c (save_inline_function_body): Add comments.
770         * ipa-inline.c (inline_small_functions): Compute summaries first,
771         populate heap later.
772
773 2011-04-19  Jan Hubicka  <jh@suse.cz>
774
775         * cgraph.h (save_inline_function_body): Remove.
776         * ipa-inline-transform.c: New file, broke out of...
777         * ipa-inline.c: ... this one; Update toplevel comment.
778         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
779         make global.
780         (update_noncloned_frequencies): Move to ipa-inline-transform.c
781         (cgraph_mark_inline_edge): Rename to inline_call; move to
782         ipa-inline-transform.c.
783         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
784         move to ipa-inline-transform.c
785         (recursive_inlining, inline_small_functions, flatten_function,
786         ipa_inline, inline_always_inline_functions,
787         early_inline_small_functions): Update.
788         (inline_transform): Move to ipa-inline-transform.c.
789         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
790         Declare.
791         * Makefile.in (ipa-inline-transform.o): New file.
792         * cgraphunit.c (save_inline_function_body): Move to
793         ipa-inline-transform.c
794
795 2011-04-19  DJ Delorie  <dj@redhat.com>
796
797         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
798         registers if we already know there aren't any.
799         (m32c_emit_epilogue): Don't emit a barrier here.
800         (m32c_emit_eh_epilogue): Likewise.
801         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
802         operands at expand time.
803         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
804         int" wchar type.
805         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
806         duplicates.  Provide aliases instead.
807         * config/m32c/prologue.md (eh_return): Emit a barrier here.
808         (eh_epilogue): Add a "(return)" here as a hint to other parts of
809         the compiler.
810
811 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
812
813         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
814         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
815         (general_or_i64_p, sparc_register_move_cost): New function.
816
817 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
818
819         * doc/install.texi (Configuration, --enable-threads): Remove mach.
820         Add lynx, mipssde.  Sort table.
821
822 2011-04-19  Xinliang David Li  <davidxl@google.com>
823
824         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
825         not negative.
826
827 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
828
829         PR target/48678
830         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
831         is a SUBREG with non-MODE_INT mode inside of it.
832
833 2011-04-19  Martin Jambor  <mjambor@suse.cz>
834
835         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
836         also according to actual contants.
837         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
838         (gimple_fold_call): Use it.
839         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
840
841 2011-04-19  Martin Jambor  <mjambor@suse.cz>
842
843         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
844         non-pointer assignments.
845
846 2011-04-19  Martin Jambor  <mjambor@suse.cz>
847
848         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
849         account anc_offset and otr_type from the indirect edge info.
850         * ipa-prop.c (get_ancestor_addr_info): New function.
851         (compute_complex_ancestor_jump_func): Assignment analysis moved to
852         get_ancestor_addr_info, call it.
853         (ipa_note_param_call): Do not initialize information about polymorphic
854         calls, return the indirect call graph edge.  Remove the last
855         parameter, adjust all callers.
856         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
857         parameters.  Initialize polymorphic information in the indirect edge.
858
859 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
860
861         PR lto/48148
862         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
863         the types if they have different enumeration identifiers.
864
865 2011-04-19  Jan Hubicka  <jh@suse.cz>
866
867         * cgraph.h (cgraph_optimize_for_size_p): Declare.
868         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
869         * predict.c (cgraph_optimize_for_size_p): Break out from ...
870         (optimize_function_for_size_p) ... here.
871
872 2011-04-19  Richard Guenther  <rguenther@suse.de>
873
874         PR lto/48207
875         * tree.c (free_lang_data): Do not reset the decl-assembler-name
876         langhook.
877
878 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
879
880         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
881         if DECL_NO_INLINE_WARNING_P is set on the function.
882
883 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
884
885         PR fortran/47976
886         * reload1.c (inc_for_reload): Return void. All callers changed.
887         (emit_input_reload_insns): Don't try to delete previous output
888         reloads to a register, or record spill_reg_store for autoincs.
889
890 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
891
892         * gengtype.h: Updated copyright year.
893         (struct input_file_st): Add inpisplugin field.
894         (type_fileloc): New function.
895         * gengtype.c
896         (write_typed_struct_alloc_def): Add gcc_assert.
897         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
898         (write_typed_alloc_defns): Don't output for plugin files.
899         (input_file_by_name): Clear inpisplugin field.
900         (main): Set inpisplugin field for plugin files.
901
902 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
903
904         * gengtype-state.c (string_eq): New.
905         (read_state): Use string_eq instead of strcmp when creating the
906         state_ident_tab.
907
908 2011-04-19  Wei Guozhi  <carrot@google.com>
909
910         PR target/47855
911         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
912         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
913         linkage.
914         * config/arm/constraints.md (Uu): New constraint.
915         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
916
917 2011-04-19  Tristan Gingold  <gingold@adacore.com>
918
919         * config.gcc (-*-*-*vms): Added.
920         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
921         definitions moved.
922         * config/vms/vms-ld.c: New file.
923         * config/vms/vms-ar.c: New file.
924         * config/vms/t-vmsnative: New file.
925
926 2011-04-18  Xinliang David Li  <davidxl@google.com>
927
928         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
929
930 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
931
932         PR middle-end/48661
933         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
934         if TREE_TYPE (v) is non-NULL.
935
936         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
937         gimple_get_virt_mehtod_for_binfo.
938         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
939         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
940         callers.
941         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
942
943 2011-04-18  Michael Matz  <matz@suse.de>
944             Steve Ellcey  <sje@cup.hp.com>
945
946         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
947         use its mode as source mode if it isn't VOIDmode.
948
949 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
950
951         * doc/passes.texi: Fill crossref nodes.
952
953 2011-04-18  Jim Meyering  <meyering@redhat.com>
954
955         Fix doubled-word typos in comments and strings
956         * config/alpha/vms-unwind.h: s/for for/for/
957         * config/arm/unwind-arm.h: Likewise.
958         * config/microblaze/microblaze.c: Likewise.
959         * config/sh/constraints.md: s/in in/in/
960         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
961
962 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
963
964         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
965         (AVX_FLOAT_MODE_P): Ditto.
966         (AVX128_VEC_FLOAT_MODE_P): Ditto.
967         (AVX256_VEC_FLOAT_MODE_P): Ditto.
968         (AVX_VEC_FLOAT_MODE_P): Ditto.
969         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
970         (UNSPEC_MASKSTORE): Ditto.
971         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
972         Merge from <sse>_movmsk<ssemodesuffix> and
973         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
974         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
975         iterator.
976         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
977         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
978         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
979
980 2011-04-18  Jan Hubicka  <jh@suse.cz>
981
982         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
983
984         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
985         (want_inline_function_called_once_p): Break out the logic from
986         ipa_inline.
987         (edge_badness): Ensure that profile is not misupdated.
988         (lookup_recursive_calls): Prioritize by call frequencies.
989         (inline_small_functions): Move program size estimates here;
990         actually process whole queue even when unit growth has been
991         met. (to properly compute inline_failed reasons and for the
992         case unit size decrease.) Revisit comments on recursive inlining.
993         (ipa_inline): Remove unit summary code; first inline hot calls
994         of functions called once, cold calls next.
995         (order, nnodes): Remove unused variables.
996         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
997         (GTFILES): Remove ipa-inline.c
998         * sel-sched.c (fill_insns): Silence uninitialized var warning.
999
1000 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
1001
1002         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
1003
1004 2011-04-18  Jie Zhang  <jie@codesourcery.com>
1005             Richard Earnshaw  <rearnsha@arm.com>
1006
1007         * arm.c (neon_builtin_type_bits): Remove.
1008         (typedef enum neon_builtin_mode): New.
1009         (T_MAX): Don't define.
1010         (typedef enum neon_builtin_datum): Remove bits, codes[],
1011         num_vars and base_fcode.  Add mode, code and fcode.
1012         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
1013         VAR10): Change accordingly.
1014         (neon_builtin_data[]): Change accordingly
1015         (arm_init_neon_builtins): Change accordingly.
1016         (neon_builtin_compare): Remove.
1017         (locate_neon_builtin_icode): Remove.
1018         (arm_expand_neon_builtin): Change accordingly.
1019
1020         * arm.h (enum arm_builtins): Move to ...
1021         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
1022
1023         * arm.c (arm_builtin_decl): Declare.
1024         (TARGET_BUILTIN_DECL): Define.
1025         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
1026         (arm_builtin_decls[]): New.
1027         (arm_init_neon_builtins): Store builtin declarations in
1028         arm_builtin_decls[].
1029         (arm_init_tls_builtins): Likewise.
1030         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
1031         (arm_builtin_decl): New.
1032
1033 2011-04-18  Richard Guenther  <rguenther@suse.de>
1034
1035         * tree.c (upper_bound_in_type): Build properly canonicalized
1036         INTEGER_CSTs.
1037         (lower_bound_in_type): Likewise.
1038
1039 2011-04-18  Richard Guenther  <rguenther@suse.de>
1040
1041         * gimple.h (gimple_call_addr_fndecl): New function.
1042         (gimple_call_fndecl): Use it.
1043         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
1044         for direct calls.
1045         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
1046         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
1047
1048 2011-04-18  Richard Guenther  <rguenther@suse.de>
1049
1050         PR middle-end/48650
1051         * tree.c (build_string): STRING_CST is now derived from tree_typed.
1052
1053 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
1054
1055         PR lto/48492
1056         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
1057         DECL_IN_CONSTANT_POOL without RTL.
1058
1059 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
1060             Ira Rosen  <ira.rosen@linaro.org>
1061
1062         PR target/48252
1063         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
1064         to match neon_vzip/vuzp/vtrn_internal.
1065         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
1066         outputs explicitly dependent on both inputs.
1067         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
1068
1069 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
1070
1071         PR tree-optimization/48616
1072         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
1073         whether the shift is by scalar or vector based on whether all SLP
1074         scalar stmts have the same rhs.
1075
1076 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
1077
1078         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
1079         memory operands.
1080
1081 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
1082
1083         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
1084         registers.
1085
1086 2011-04-17  Jan Hubicka  <jh@suse.cz>
1087
1088         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
1089         * cgrpahunit.c (cgraph_finalize_function): Do not set
1090         finalized_by_frontend.
1091         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
1092         finalized_by_frontend.
1093
1094 2011-04-17  Jan Hubicka  <jh@suse.cz>
1095
1096         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
1097         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
1098         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
1099         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
1100         method.
1101         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
1102         gimple-fold.c
1103         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
1104
1105 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
1106
1107         PR lto/48538
1108         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
1109         is non-null before accessing it.
1110         (input_cgraph): Remove trailing spaces.
1111
1112 2011-04-17  Revital Eres  <revital.eres@linaro.org>
1113
1114         * params.def (sms-min-sc): New param flag.
1115         * modulo-sched.c (sms_schedule): Use it.
1116         * doc/invoke.texi (sms-min-sc): Document it.
1117
1118 2011-04-17  Jan Hubicka  <jh@suse.cz>
1119
1120         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
1121         present, also set gimple_call_set_cannot_inline.
1122         * ipa-inline.c: Update toplevel comment.
1123         (MAX_TIME): Remove.
1124         (cgraph_clone_inlined_nodes): Fix linebreaks.
1125         (cgraph_check_inline_limits): Restructure to ...
1126         (caller_growth_limits): ... this one; be more tolerant
1127         on growth in nested inline chains; add explanatory comment;
1128         fix stack accounting thinko introduced by previous patch.
1129         (cgraph_default_inline_p): Remove.
1130         (report_inline_failed_reason): New function.
1131         (can_inline_edge_p): New function.
1132         (can_early_inline_edge_p): New function.
1133         (leaf_node_p): Move upwards in file.
1134         (want_early_inline_function_p): New function.
1135         (want_inline_small_function_p): New function.
1136         (want_inline_self_recursive_call_p): New function.
1137         (cgraph_edge_badness): Rename to ...
1138         (edge_badness) ... this one; fix linebreaks.
1139         (update_edge_key): Update call of edge_baddness; add
1140         detailed dump about queue updates.
1141         (update_caller_keys): Use can_inline_edge_p and
1142         want_inline_small_function_p.
1143         (cgraph_decide_recursive_inlining): Rename to...
1144         (recursive_inlining): Use can_inline_edge_p and
1145         want_inline_self_recursive_call_p; simplify and remove no longer
1146         valid FIXME.
1147         (cgraph_set_inline_failed): Remove.
1148         (add_new_edges_to_heap): Use can_inline_edge_p and
1149         want_inline_small_function_p.
1150         (cgraph_decide_inlining_of_small_functions): Rename to ...
1151         (inline_small_functions): ... this one; cleanup; use
1152         can/want predicates; cleanup debug ouput; work edges till fibheap
1153         is exhausted and do not stop once unit growth is reached; remove
1154         later loop processing remaining edges.
1155         (cgraph_flatten): Rename to ...
1156         (flatten_function): ... this one; use can_inline_edge_p
1157         and can_early_inline_edge_p predicates.
1158         (cgraph_decide_inlining): Rename to ...
1159         (ipa_inline): ... this one; remove unreachable nodes before
1160         inlining functions called once; simplify the pass.
1161         (cgraph_perform_always_inlining): Rename to ...
1162         (inline_always_inline_functions): ... this one; use
1163         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
1164         (cgraph_decide_inlining_incrementally): Rename to ...
1165         (early_inline_small_functions): ... this one; simplify
1166         using new predicates; cleanup; make dumps prettier.
1167         (cgraph_early_inlining): Rename to ...
1168         (early_inliner): newer inline regular functions into always-inlines;
1169         fix updating of call stmt summaries.
1170         (pass_early_inline): Update for new names.
1171         (inline_transform): Fix formating.
1172         (gate_cgraph_decide_inlining): Rename to ...
1173         (pass_ipa_inline): ... this one.
1174         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
1175         * ipa-inline-analysis.c (dump_inline_summary): Update.
1176         (compute_inline_parameters): Do not compute disregard_inline_limits;
1177         look for mismatching arguments.
1178         (estimate_growth): Fix handlig of non-trivial self recursion.
1179         (inline_read_summary): Do not read info->disregard_inline_limits.
1180         (inline_write_summary): Do not write info->disregard_inline_limits.
1181         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
1182         and move all checks into can_inline_edge_p predicate; re-enable code
1183         comparing optimization levels.
1184         (expand_call_inline): Do not test inline_forbidden_into_p.
1185         * Makefile.in (ipa-inline.o): Update arguments.
1186
1187 2011-04-17  Revital Eres  <revital.eres@linaro.org>
1188
1189         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
1190
1191 2011-04-17  Revital Eres  <revital.eres@linaro.org>
1192
1193         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
1194
1195 2011-04-17  Michael Matz  <matz@suse.de>
1196
1197         PR tree-optimization/48622
1198         PR lto/48645
1199         * ipa-inline-analysis.c (inline_read_summary): Read size/time
1200         in same order as they're written.
1201
1202 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1203
1204         * config/pa/predicates.md: Reorganize and simplify predicates.
1205         Eliminate duplicate code checks.
1206         (arith_operand): Rename to arith14_operand
1207         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
1208         * config/pa/pa.md: Use renamed operands.
1209         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
1210         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
1211         arith11_operand, adddi3_operand, indexed_memory_operand,
1212         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
1213         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
1214         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
1215         move_dest_operand, move_src_operand, prefetch_cc_operand,
1216         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
1217         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
1218         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
1219         div_operand, int5_operand, movb_comparison_operator,
1220         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
1221         arith_double_operand, ireg_operand, lhs_lshift_operand,
1222         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
1223         integer_store_memory_operand): Likewise.
1224         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
1225         (integer_store_memory_operand, read_only_operand,
1226         function_label_operand, borx_reg_operand,
1227         non_hard_reg_operand): Likewise.
1228         (eq_neq_comparison_operator): Delete unused operator.
1229         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
1230         function_label_operand.
1231         (emit_move_sequence): Likewise.
1232
1233 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
1234
1235         * config/i386/sse.md (sseunpackmode): New mode attribute.
1236         (ssepackmode): Ditto.
1237         (vec_pack_trunc_<mode>): Macroize expander from
1238         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
1239         (vec_unpacks_lo_<mode>): Macroize expander from
1240         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1241         (vec_unpacks_hi_<mode>): Macroize expander from
1242         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1243         (vec_unpacku_lo_<mode>): Macroize expander from
1244         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1245         (vec_unpacku_hi_<mode>): Macroize expander from
1246         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1247         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
1248         ix86_expand_sse4_unpack.
1249         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
1250
1251 2011-04-16  Jan Hubicka  <jh@suse.cz>
1252
1253         * cgraphbuild.c: Include ipa-inline.h.
1254         (reset_inline_failed): Use initialize_inline_failed.
1255         * cgraph.c: Include ipa-inline.h.
1256         (cgraph_create_node_1): Do not initialize estimated_growth.
1257         (initialize_inline_failed): More to ipa-inline-analysis.c
1258         (dump_cgraph_node): Do not dump inline flags.
1259         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
1260         and disregard_inline_limits flags.
1261         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
1262         time, size, estimated_growth.
1263         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
1264         Update.
1265         * cgraphunit.c (cgraph_decide_is_function_needed): Use
1266         DECL_DISREGARD_INLINE_LIMITS.
1267         (cgraph_analyze_function): Do not initialize
1268         node->local.disregard_inline_limits.
1269         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
1270         inlinable, versionable and disregard_inline_limits.
1271         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
1272         cgraph_check_inline_limits, cgraph_default_inline_p,
1273         cgraph_edge_badness, update_caller_keys, update_callee_keys,
1274         add_new_edges_to_heap): Update.
1275         (cgraph_decide_inlining_of_small_function): Update; set
1276         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
1277         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
1278         cgraph_decide_inlining_incrementally): Update.
1279         * ipa-inline.h (inline_summary): Add inlinable, versionable,
1280         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
1281         time, size and estimated_growth parameters.
1282         (estimate_edge_growth): Update.
1283         (initialize_inline_failed): Declare.
1284         * ipa-split.c: Include ipa-inline.h
1285         (execute_split_functions): Update.
1286         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
1287         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
1288         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
1289         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
1290         estimated_growth to INT_MIN.
1291         (inline_node_duplication_hook): Likewise.
1292         (dump_inline_summary): Dump new fields.
1293         (compute_inline_parameters): Update.
1294         (estimate_edge_time, estimate_time_after_inlining,
1295         estimate_size_after_inlining, estimate_growth, inline_read_summary,
1296         inline_write_summary):
1297         (initialize_inline_failed): Move here from cgraph.c.
1298         * tree-sra.c: Include ipa-inline.h.
1299         (ipa_sra_preliminary_function_checks): Update.
1300         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
1301         ipa-inline.h.
1302
1303 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
1304
1305         * config/i386/sse.md (V16): New mode iterator.
1306         (VI1, VI8): Ditto.
1307         (AVXMODEQI, AVXMODEDI): Remove.
1308         (sse2, sse3): New mode attribute.
1309         (mov<mode>): Use V16 mode iterator.
1310         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
1311         (push<mode>1): Use V16 mode iterator.
1312         (movmisalign<mode>): Ditto.
1313         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1314         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
1315         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1316         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
1317         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
1318         avx_movdqu<avxmodesuffix>.
1319         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
1320         *avx_movdqu<avxmodesuffix>.
1321         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
1322         avx_lddqu<avxmodesuffix>.
1323         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
1324         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
1325         avx_movnt<AVXMODEDI:mode>.
1326         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
1327         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
1328
1329 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
1330
1331         PR target/48629
1332         * haifa-sched.c (prune_ready_list, schedule_block): Use
1333         sched_pressure_p rather than flag_sched_pressure.
1334
1335 2011-04-15  Pat Haugen <pthaugen@us.ibm.com>
1336
1337         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1338         cgraph_get_node instead of cgraph_get_create_node.
1339
1340 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
1341
1342         * cfgexpand.c (expand_debug_expr): Use
1343         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
1344
1345 2011-04-15  Michael Matz  <matz@suse.de>
1346
1347         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
1348         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
1349         * function.c (gimplify_parameters): Ditto.
1350         * gimplify.c (gimplify_vla_decl): Ditto.
1351
1352         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
1353         (gimple_call_set_alloca_for_var): New inline function.
1354         (gimple_call_alloca_for_var_p): Ditto.
1355         * gimple.c (gimple_build_call_from_tree): Remember
1356         CALL_ALLOCA_FOR_VAR_P state.
1357         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
1358
1359         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
1360         calls if they were for VLA objects.
1361
1362 2011-04-15  Martin Jambor  <mjambor@suse.cz>
1363
1364         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
1365         of ADR_EXPRs.
1366
1367 2011-04-15  Martin Jambor  <mjambor@suse.cz>
1368
1369         PR middle-end/48601
1370         * tree-emutls.c (lower_emutls_function_body): Call
1371         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
1372         result is non-NULL.
1373
1374 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
1375
1376         * c-decl.c (detect_field_duplicates): Call
1377         objc_detect_field_duplicates instead of objc_get_interface_ivars.
1378
1379 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
1380
1381         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
1382         * gimple.c (gimple_asm_clobbers_memory_p): Define.
1383         * ipa-pure-const.c (check_stmt): Call it.
1384         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
1385
1386 2011-04-15  Richard Guenther  <rguenther@suse.de>
1387
1388         PR tree-optimization/48290
1389         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
1390         Properly decide inhibiting propagation based on the valueized
1391         operand.  Do loop-closed SSA form preserving here ...
1392         (init_copy_prop): ... not here.
1393
1394 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
1395
1396         PR target/48612
1397         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
1398         (*ieee_smax<mode>3): Likewise.
1399
1400 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1401
1402         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
1403         Replace match_operand with match_dup for the third operand in
1404         these expanders.
1405
1406 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
1407
1408         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
1409         to track processing of conditionals.  Update all callers.
1410         (try_combine, simplify_if_then_else): Update.
1411
1412 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
1413
1414         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
1415         -fsched-pressure.
1416
1417 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
1418
1419         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
1420         instead of match_operand for operand 3.
1421
1422 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
1423
1424         * recog.h (insn_operand_data): Add an "allows_mem" field.
1425         * genoutput.c (output_operand_data): Initialize it.
1426         * optabs.c (maybe_legitimize_operand_same_code): New function.
1427         (maybe_legitimize_operand): Use it when matching the original
1428         op->value.
1429
1430 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
1431
1432         * gimplify.c: Fix issues in comments throughout.
1433         (voidify_wrapper_expr): Fix long line.
1434         (build_stack_save_restore): Likewise.
1435         (gimplify_loop_expr): Likewise.
1436         (gimplify_compound_lval): Likewise.
1437         (gimplify_init_ctor_eval): Likewise.
1438         (gimplify_modify_expr_rhs): Likewise.
1439         (omp_notice_threadprivate_variable): Likewise.
1440
1441 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
1442
1443         * cfgexpand.c (expand_call_stmt): Convert the function type to the
1444         original one if this is not a builtin function.
1445
1446 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
1447
1448         PR target/48605
1449         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
1450         offset it as needed based on top 2 bits in operands[3], change
1451         MEM mode to SFmode and mask those 2 bits away from operands[3].
1452
1453 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
1454
1455         * c-parser.c (c_parser_objc_protocol_definition): Updated for
1456         change from objc_declare_protocols() to objc_declare_protocol().
1457
1458 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
1459
1460         * config/i386/sse.md (sse4_1): New mode attribute.
1461         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
1462         avx_blend<ssemodesuffix><avxmodesuffix> and
1463         sse4_1_blend<ssemodesuffix> using VF mode iterator.
1464         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
1465         avx_blendv<ssemodesuffix><avxmodesuffix> and
1466         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
1467         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
1468         avx_dp<ssemodesuffix><avxmodesuffix> and
1469         sse4_1_dp<ssemodesuffix> using VF mode iterator.
1470         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
1471         (sse4_1_packusdw): Merge with *avx_packusdw.
1472         (sse4_1_pblendvb): Merge with *avx_pblendvb.
1473         (sse4_1_pblendw): Merge with *avx_pblendw.
1474         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
1475         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
1476         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
1477         VF mode iterator.
1478         (sse4_1_round<ssescalarmodesuffix>): Merge with
1479         *avx_round<ssescalarmodesuffix>.
1480         (aesenc): Merge with *avx_aesenc.
1481         (aesenclast): Merge with *avx_aesenclast.
1482         (aesdec): Merge with *avx_aesdec.
1483         (aesdeclast): Merge with *avx_aesdeclast.
1484         (pclmulqdq): Merge with *pclmulqdq.
1485         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
1486         New predicate.
1487         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
1488
1489 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
1490
1491         PR middle-end/48608
1492         * cfgexpand.c (get_decl_align_unit): Renamed to ...
1493         (align_local_variable): This.  Update DECL_ALIGN.
1494         (add_stack_var): Updated.
1495         (expand_one_stack_var): Likewise.
1496
1497 2011-04-14  Richard Guenther  <rguenther@suse.de>
1498
1499         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
1500         Remove.
1501         (dse_initialize_block_local_data, dse_leave_block,
1502         record_voperand_set, get_stmt_uid): Likewise.
1503         (dse_possible_dead_store_p): Allow any kind of killing stmt.
1504         (dse_optimize_stmt): Remove voperand set handling code.
1505         Simplify and improve to handle any kind of killing stmt.
1506         (dse_record_phi): Remove.
1507         (dse_enter_block): Simplify.
1508         (tree_ssa_dse): Likewise.
1509         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
1510
1511 2011-04-14  Jan Hubicka  <jh@suse.cz>
1512
1513         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
1514         * cgraph.h (struct inline_summary): Move to ipa-inline.h
1515         (cgraph_local_info): Remove inline_summary.
1516         * ipa-cp.c: Include ipa-inline.h.
1517         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
1518         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
1519         accesor.
1520         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
1521         (input_overwrite_node): Do not set inline summary.
1522         (input_node): Do not stream inline summary.
1523         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
1524         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
1525         growth; we do not have inline parameters computed for that anyway.
1526         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
1527         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
1528         (inline_summary_t): New type and VECtor.
1529         (debug_inline_summary, dump_inline_summaries): Declare.
1530         (inline_summary): Use VOCtor.
1531         (estimate_edge_growth): Kill hack computing call stmt size directly.
1532         * lto-section-in.c (lto_section_name): Add inline section.
1533         * ipa-inline-analysis.c: Include lto-streamer.h
1534         (node_removal_hook_holder, node_duplication_hook_holder): New holders
1535         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
1536         (inline_summary_vec): Define.
1537         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
1538         dump_inline_summaries): New functions.
1539         (estimate_function_body_sizes): Properly compute size/time of outgoing
1540         calls.
1541         (compute_inline_parameters): Alloc inline_summary; do not compute
1542         size/time of incomming calls.
1543         (estimate_edge_time): Avoid missing time summary hack.
1544         (inline_read_summary): Read inline summary info.
1545         (inline_write_summary): Write inline summary info.
1546         (inline_free_summary): Free all hooks and inline summary vector.
1547         * lto-streamer.h: Add LTO_section_inline_summary section.
1548         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
1549         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
1550
1551 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1552
1553         * tree-vectorizer.h (vect_strided_store_supported): Add a
1554         HOST_WIDE_INT argument.
1555         (vect_strided_load_supported): Likewise.
1556         (vect_permute_store_chain): Return void.
1557         (vect_transform_strided_load): Likewise.
1558         (vect_permute_load_chain): Delete.
1559         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
1560         count argument.  Check that the count is a power of two.
1561         (vect_strided_load_supported): Likewise.
1562         (vect_permute_store_chain): Return void.  Update after above changes.
1563         Assert that the access is supported.
1564         (vect_permute_load_chain): Likewise.
1565         (vect_transform_strided_load): Return void.
1566         * tree-vect-stmts.c (vectorizable_store): Update calls after
1567         above interface changes.
1568         (vectorizable_load): Likewise.
1569         (vect_analyze_stmt): Don't check for strided powers of two here.
1570
1571 2011-04-14  Richard Guenther  <rguenther@suse.de>
1572
1573         PR tree-optimization/48590
1574         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
1575         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1576         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
1577         BUILT_IN_STACK_SAVE.
1578         * tree-ssa-dce.c (propagate_necessity): Handle
1579         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1580
1581 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
1582
1583         * c-parser.c (c_parser_objc_class_declaration): Updated call to
1584         objc_declare_class.
1585
1586 2011-04-14  Richard Guenther  <rguenther@suse.de>
1587
1588         * tree.h (get_object_alignment_1): Declare.
1589         * builtins.c (get_object_alignment_1): Split out worker from ...
1590         (get_object_alignment): ... here.
1591         * fold-const.c (get_pointer_modulus_and_residue): Use
1592         get_object_alignment_1.
1593
1594 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1595
1596         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
1597         type parameter.
1598         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
1599         parameter.  Generalise code to handle arrays as well as vectors.
1600         (vect_setup_realignment): Update accordingly.
1601         * tree-vect-stmts.c (vectorizable_store): Likewise.
1602         (vectorizable_load): Likewise.
1603
1604 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1605
1606         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
1607         within the per-copy loop.
1608
1609 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1610
1611         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
1612         in the dump file.
1613
1614 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1615
1616         * doc/options.texi (Negative): Explicitly mention that the
1617         Negative chain must be circular.
1618
1619 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
1620
1621         * function.h (block_chainon): Declare.
1622         * function.c (block_chainon): Define.
1623
1624 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
1625             Eric Weddington  <eric.weddington@atmel.com>
1626             Georg-Johann Lay <avr@gjlay.de>
1627
1628         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
1629         New Includes
1630         (avr_init_builtins, avr_expand_builtin,
1631         avr_expand_delay_cycles, avr_expand_unop_builtin,
1632         avr_expand_binop_builtin ): New functions.
1633         (avr_builtin_id): New enum
1634         (struct avr_builtin_description): New struct
1635         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
1636         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
1637
1638         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
1639         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
1640         UNSPECV_DELAY_CYCLES): new enumeration values
1641         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
1642         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
1643         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
1644         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
1645         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
1646         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
1647         "fmulsu"): New insns
1648
1649         * config/avr/avr-c.c: fix line endings
1650         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
1651         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
1652         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
1653         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
1654         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
1655
1656         * doc/extend.texi (AVR Built-in Functions): New node
1657         (Target Builtins): Add documentation of AVR
1658         built-in functions.
1659
1660 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
1661
1662         PR target/44643
1663         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
1664         alone. Error if non-const data has attribute progmem.
1665
1666 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1667
1668         * tree.h (struct tree_constructor): Include tree_typed instead of
1669         tree_common.
1670         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
1671         TS_TYPED instead of TS_COMMON.
1672
1673 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
1674
1675         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
1676         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
1677         (sse2_psadbw): Merge with *avx_psadbw.
1678         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
1679         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
1680         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
1681         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
1682         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
1683         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
1684         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
1685         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
1686         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
1687         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
1688         (ssse3_palignrti): Merge with *avx_palignrti.
1689
1690 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1691
1692         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
1693         * tree-ssanames.c (fini_ssanames): VEC_free it.
1694         (make_ssa_name_fn): Update for VECness of free_ssanames.
1695         (release_ssa_name, release_dead_ssa_names): Likewise.
1696         * tree.h (struct tree_ssa_name): Include tree_typed instead of
1697         tree_common.
1698         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
1699         TS_TYPED instead of TS_COMMON.
1700
1701 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1702
1703         * postreload-gcse.c (gcse_after_reload_main): Add calls to
1704         statistics_counter_event.
1705         * tree-ssa-copyrename.c (stats): Define.
1706         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
1707         statistics_counter_event.
1708         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
1709         (bswap_stats, widen_mul_stats): Define.
1710         (insert_reciprocals): Increment rdivs_inserted.
1711         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
1712         rfuncs_inserted.  Add calls to statistics_counter_event.
1713         (execute_cse_sincos_1): Increment inserted.
1714         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
1715         statistics_counter_event.
1716         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
1717         of bswap_stats.  Add calls to statistics_counter_event.
1718         (convert_mult_to_widen): Increment widen_mults_inserted.
1719         (convert_plusminus_to_widen): Increment maccs_inserted.
1720         (convert_mult_to_fma): Increment fmas_inserted.
1721         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
1722         calls to statistics_counter_event.
1723
1724 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
1725
1726         PR rtl-optimization/48455
1727         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
1728         `temp_costs->mem_cost'.
1729
1730 2011-04-13  Jan Hubicka  <jh@suse.cz>
1731
1732         * ipa-inline.h: New file.
1733         * ipa-inline-analysis.c: New file. Broken out of ...
1734         * ipa-inline.c: ... this file; update toplevel comment;
1735         include ipa-inline.h
1736         (inline_summary): Move to ipa-inline.h
1737         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
1738         ipa-inline-analysis.c.
1739         (cgraph_estimate_time_after_inlining): Rename to
1740         estiamte_time_after_inlining; move to ipa-inline-analysis.c
1741         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
1742         to estimate_edge_growth.
1743         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
1744         rename to estimate_size_after_inlining.
1745         (cgraph_mark_inline_edge): Update for new naming convention.
1746         (cgraph_check_inline_limits): Likewise.
1747         (cgraph_edge_badness): Likewise.
1748         (cgraph_decide_recursive_inlining): Likewise.
1749         (cgraph_decide_inlining_of_small_functions): Likewise.
1750         (cgraph_decide_inlining_incrementally): Likewise.
1751         (cgraph_estimate_growth): Rename to estimate_growth; move to
1752         ipa-inline-analysis.c.
1753         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
1754         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
1755         (compute_inline_parameters): Likewise.
1756         (compute_inline_parameters_for_current): Likewise.
1757         (pass_inline_parameters): Likewise.
1758         (inline_indirect_intraprocedural_analysis): Likewise.
1759         (analyze_function): Rename to inline_analyze_function; likewise.
1760         (add_new_function): Move to ipa-inline-analysis.c.
1761         (inline_generate_summary): Likewise.
1762         (inline_read_summary): Likewise.
1763         (inline_write_summary): Likewise.
1764         * Makefile.in (ipa-inline-analysis.c): New file.
1765
1766 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1767
1768         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
1769         * configure: Regenerate.
1770
1771 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1772
1773         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
1774         instead of tree_common.
1775         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
1776         Likewise.
1777         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
1778         TS_TYPED rather than TS_COMMON.
1779         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
1780
1781 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
1782
1783         PR target/45263
1784         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
1785         r20 around calls of __tablejump_elpm__
1786
1787 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
1788
1789         PR middle-end/48591
1790         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
1791         NULL.
1792         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
1793
1794 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
1795
1796         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
1797         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
1798         (cfi_vec): New typedef.
1799         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
1800         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
1801         (cie_cfi_vec): New static variable.
1802         (cie_cfi_head): Delete.
1803         (add_cfi): Accept a cfi_vec * as first argument. All callers and
1804         declaration changed. Use vector rather than list operations.
1805         (new_cfi): Don't initialize the dw_cfi_next field.
1806         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
1807         rather than list operations.
1808         (lookup_cfa): Use vector rather than list operations.
1809         (output_cfis): New argument upto. Accept a cfi_vec rather than
1810         a dw_cfi_ref list head as argument. All callers changed.
1811         Iterate over the vector using upto as a maximum index.
1812         (output_all_cfis): New static function.
1813         (output_fde): Use vector rather than list operations. Use the
1814         new upto argument for output_cfis rather than manipulating a
1815         list.
1816         (dwarf2out_begin_prologue): Change initializations to match
1817         new struct members.
1818         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
1819         from the vector length rather than searching for the end of a list.
1820         Use output_all_cfis.
1821         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
1822
1823 2011-04-13  Nick Clifton  <nickc@redhat.com>
1824
1825         * config/rx/rx.md (movmemsi): Do not use this pattern when
1826         volatile pointers are involved.
1827
1828 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
1829
1830         * config/i386/sse.md (pinsrbits): Remove.
1831         (sse2_packsswb): Merge with *avx_packsswb.
1832         (sse2_packssdw): Merge with *avx_packssdw.
1833         (sse2_packuswb): Merge with *avx_packuswb.
1834         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
1835         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
1836         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
1837         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
1838         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
1839         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
1840         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
1841         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
1842         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
1843         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
1844         (sse2_loadld): Merge with *avx_loadld.
1845         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
1846         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
1847         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
1848         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
1849         (vec_concatv2di): Merge with *vec_concatv2di_avx.
1850
1851 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
1852
1853         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
1854         calling TREE_CHAIN.
1855         * print-tree.c (print_node): Likewise.
1856         * tree-inline.c (copy_tree_r): Likewise.
1857         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
1858         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
1859         instead of TS_COMMON.
1860         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
1861         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
1862         (copy_node_stat): Zero TREE_CHAIN only if necessary.
1863         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
1864         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
1865         ...and these...
1866         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
1867         * tree.h: ...here.
1868         (TREE_CHAIN): Check for a TS_COMMON structure.
1869         (TREE_TYPE): Check for a TS_TYPED structure.
1870
1871 2011-04-12  Pat Haugen <pthaugen@us.ibm.com>
1872
1873         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1874         cgraph_get_create_node instead of cgraph_node.
1875
1876 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1877
1878         * c-parser.c (c_parser_initelt): Updated call to
1879         objc_build_message_expr.
1880         (c_parser_postfix_expression): Likewise.
1881
1882 2011-04-12  Kai Tietz  <ktietz@redhat.com>
1883
1884         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
1885         MASK_MS_BITFIELD_LAYOUT bit.
1886
1887 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
1888
1889         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
1890         assert it is always true.
1891         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
1892         moves.
1893
1894 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1895
1896         * c-parser.c (c_lex_one_token): Rewritten conditional used when
1897         compiling Objective-C to be more efficient.
1898
1899 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
1900
1901         * opts-common.c (decode_cmdline_options_to_array): Remove variable
1902         argv_copied.
1903
1904 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1905
1906         * recog.h, genoutput.c, optabs.c: Revert last patch.
1907
1908 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1909
1910         PR target/48090
1911         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
1912
1913 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1914
1915         * recog.h (insn_operand_data): Add an "allows_mem" field.
1916         * genoutput.c (output_operand_data): Initialize it.
1917         * optabs.c (maybe_legitimize_operand_same_code): New function.
1918         (maybe_legitimize_operand): Use it when matching the original
1919         op->value.
1920
1921 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1922
1923         * genpreds.c (process_define_predicate): Move most processing
1924         to gensupport.c.  Continue to validate the expression.
1925         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
1926         (process_define_predicate): Move processing to gensupport.c.
1927         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
1928         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
1929         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
1930         argument.
1931         (valid_predicate_name_p): New function, split out from old
1932         genpreds.c:process_define_predicate.
1933         (process_define_predicate): New function, combining code from
1934         old genpreds.c and genrecog.c functions.
1935         (process_rtx): Call it for DEFINE_PREDICATE and
1936         DEFINE_SPECIAL_PREDICATE.
1937
1938 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1939
1940         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
1941         size of a '%A' memory reference.
1942         (T_DREG, T_QREG): New neon_builtin_type_bits.
1943         (arm_init_neon_builtins): Assert that the load and store operands
1944         are neon_struct_operands.
1945         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
1946         (NEON_ARG_MEMORY): New builtin_arg.
1947         (neon_dereference_pointer): New function.
1948         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
1949         Handle NEON_ARG_MEMORY.
1950         (arm_expand_neon_builtin): Update after above interface changes.
1951         Use NEON_ARG_MEMORY for loads and stores.
1952         * config/arm/predicates.md (neon_struct_operand): New predicate.
1953         * config/arm/iterators.md (V_two_elem): Tweak formatting.
1954         (V_three_elem): Use BLKmode for accesses that have no associated mode.
1955         (V_four_elem): Tweak formatting.
1956         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
1957         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
1958         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
1959         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
1960         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
1961         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
1962         (neon_vst4<mode>): Replace pointer operand with a memory operand.
1963         Use %A in the output template.
1964         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
1965         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
1966         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
1967         the width of the memory access.  Remove post-increment.
1968         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
1969
1970 2011-04-12  Nick Clifton  <nickc@redhat.com>
1971
1972         * config/v850/v850.c (expand_prologue): Do not use the CALLT
1973         instruction for interrupt handlers if the target is the basic V850
1974         architecture.
1975         (expand_epilogue): Likewise.
1976
1977 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
1978
1979         PR rtl-optimization/48549
1980         * combine.c (propagate_for_debug): Also stop after BB_END of
1981         this_basic_block.  Process LAST and just stop processing after it.
1982         (combine_instructions): If last_combined_insn has been deleted,
1983         set last_combined_insn to its PREV_INSN.
1984
1985 2011-04-12  Richard Guenther  <rguenther@suse.de>
1986
1987         PR tree-optimization/46076
1988         * gimple.h (struct gimple_statement_call): Add fntype field.
1989         (gimple_call_fntype): Adjust.
1990         (gimple_call_set_fntype): New function.
1991         * gimple.c (gimple_build_call_1): Set the call function type.
1992         * gimplify.c (gimplify_call_expr): Preserve the function
1993         type the frontend used for the call.
1994         (gimplify_modify_expr): Likewise.
1995         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
1996         function type.
1997         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
1998         function type.
1999         * tree-ssa.c (useless_type_conversion_p): Function pointer
2000         conversions are useless.
2001
2002 2011-04-12  Martin Jambor  <mjambor@suse.cz>
2003
2004         * cgraph.h (cgraph_node): Remove function declaration.
2005         (cgraph_create_node): Declare.
2006         (cgraph_get_create_node): Likewise.
2007         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
2008         Updated all callers.
2009         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
2010         the decl does not already exist.  Call cgraph_get_create_node instead
2011         of cgraph_node.
2012         (cgraph_get_create_node): New function.
2013         (cgraph_same_body_alias): Update comment.
2014         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
2015         assert it does not return NULL.
2016         (cgraph_update_edges_for_call_stmt): Likewise.
2017         (cgraph_clone_edge): Likewise.
2018         (cgraph_create_virtual_clone): Likewise.
2019         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
2020         instead of cgraph_node.
2021         (cgraph_add_new_function): Call cgraph_create_node or
2022         cgraph_get_create_node instead of cgraph_node.
2023         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
2024         instead of cgraph_node.
2025         (record_eh_tables): Likewise.
2026         (mark_address): Likewise.
2027         (mark_load): Likewise.
2028         (build_cgraph_edges): Call cgraph_get_create_node instead
2029         of cgraph_node.
2030         (rebuild_cgraph_edges): Likewise.
2031         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
2032         instead of cgraph_node.
2033         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
2034         cgraph_node.
2035         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
2036         cgraph_create_node instead of cgraph_node.
2037         * c-decl.c (finish_function): Call cgraph_get_create_node instead
2038         of cgraph_node.
2039         * lto-cgraph.c (input_node): Likewise.
2040         * lto-streamer-in.c (input_function): Likewise.
2041         * varasm.c (mark_decl_referenced): Likewise.
2042         (assemble_alias): Likewise.
2043
2044 2011-04-12  Martin Jambor  <mjambor@suse.cz>
2045
2046         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
2047         instead of cgraph_node and assert it does not return NULL.
2048         * lto-streamer-in.c (lto_read_body): Likewise.
2049         * omp-low.c (new_omp_context): Likewise.
2050         (create_task_copyfn): Likewise.
2051         * tree-emutls.c (lower_emutls_function_body): Likewise.
2052         * matrix-reorg.c (transform_allocation_sites): Likewise.
2053
2054 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
2055
2056         PR c/48552
2057         * c-typeck.c (build_asm_expr): Error out on attempts to use
2058         void type outputs or inputs for constraints that allow reg or
2059         don't allow memory.
2060
2061 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
2062             Richard Earnshaw  <rearnsha@arm.com>
2063
2064         PR target/48250
2065         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
2066         to use sign-magnitude offsets. Reject unsupported unaligned
2067         cases. Add detailed description in comments.
2068         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
2069         condition from TARGET_32BIT to TARGET_ARM.
2070
2071 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
2072
2073         * tree.h (struct typed_tree): New.
2074         (struct tree_common): Include it instead of tree_base.
2075         (TREE_TYPE): Update for new location of type field.
2076         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
2077         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
2078         (union tree_node): Add typed field.
2079         * treestruct.def (TS_TYPED): New.
2080         * lto-streamer.c (check_handled_ts_structures): Handle it.
2081         * tree.c (MARK_TS_TYPED): New macro.
2082         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
2083
2084 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
2085
2086         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
2087         (force_nonfallthru): Do not alter the loop nest if no basic block
2088         was created.
2089
2090 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
2091
2092         * config/i386/sse.md (VI): New mode iterator.
2093         (SSEMODEI): Remove.
2094         (AVX256MODEI): Ditto.
2095         (AVXMODEF4P): Ditto.
2096         (avxvecpsmode): Ditto.
2097         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
2098         (sse2_andnot<mode>3): New expander.
2099         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
2100         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
2101         (<any_logic:code><mode>3): Use VI mode iterator.
2102         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
2103         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
2104         (*andnottf3): Handle AVX three-operand constraints.
2105         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
2106
2107 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2108             Robert Millan  <rmh@gnu.org>
2109
2110         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
2111         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
2112         GNU_USER_DYNAMIC_LINKER64): Define.
2113         (REG_NAME): Don't undefine.
2114         (MD_UNWIND_SUPPORT): Undefine.
2115         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
2116         (REG_NAME): Don't undefine.
2117         (MD_UNWIND_SUPPORT): Undefine.
2118         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
2119
2120 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2121
2122         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
2123         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
2124
2125 2011-04-11  Xinliang David Li  <davidxl@google.com>
2126
2127         * value-profile.c (check_ic_target): New function.
2128         (gimple_ic_transform): Sanity check indirect call target.
2129         * gimple-low.c (gimple_check_call_args): Interface change.
2130         (gimple_check_call_matching_types): New function.
2131         * tree-inline.c (tree_can_inline_p): Call new function.
2132
2133 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
2134
2135         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
2136         tree-pretty-print.h & realmpfr.h.
2137
2138 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
2139
2140         PR middle-end/48464
2141         * ira.c (setup_pressure_classes): Fix typo in loop condition.
2142         (setup_allocno_and_important_classes): Ditto.
2143
2144 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2145
2146         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
2147         GNU_USER_DYNAMIC_LINKER.
2148         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
2149         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2150         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
2151         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2152         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2153         GNU_USER_TARGET_OS_CPP_BUILTINS.
2154         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
2155         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2156         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2157         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2158         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
2159         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2160         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2161         GNU_USER_TARGET_OS_CPP_BUILTINS.
2162         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2163         GNU_USER_DYNAMIC_LINKER.
2164         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2165         GNU_USER_TARGET_OS_CPP_BUILTINS.
2166         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
2167         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2168         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
2169         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2170         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
2171         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
2172         GNU_USER_DYNAMIC_LINKER64): Remove.
2173         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
2174         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2175         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2176         GNU_USER_DYNAMIC_LINKER.
2177         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2178         GNU_USER_TARGET_OS_CPP_BUILTINS.
2179         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2180         GNU_USER_TARGET_OS_CPP_BUILTINS.
2181         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
2182         to GNU_USER_TARGET_OS_CPP_BUILTINS.
2183         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2184         GNU_USER_TARGET_OS_CPP_BUILTINS.
2185         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
2186         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
2187         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
2188         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
2189         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2190         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2191         GNU_USER_DYNAMIC_LINKER.
2192         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2193         GNU_USER_TARGET_OS_CPP_BUILTINS.
2194         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
2195         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2196         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2197         GNU_USER_DYNAMIC_LINKER.
2198         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2199         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2200         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
2201         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2202         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2203         GNU_USER_DYNAMIC_LINKER.
2204         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
2205         GNU_USER_DYNAMIC_LINKERN32.
2206         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
2207         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
2208         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
2209         GNU_USER_DYNAMIC_LINKER32.
2210         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
2211         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2212         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2213         GNU_USER_DYNAMIC_LINKER.
2214         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2215         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2216         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
2217         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2218         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2219         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
2220         GNU_USER_DYNAMIC_LINKER32.
2221         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
2222         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
2223         GNU_USER_DYNAMIC_LINKER.
2224         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
2225         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2226         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
2227         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
2228         GNU_USER_DYNAMIC_LINKER64.
2229         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
2230         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2231         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2232         GNU_USER_DYNAMIC_LINKER.
2233         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
2234         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2235         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2236         GNU_USER_DYNAMIC_LINKER.
2237         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
2238         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2239         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
2240         GNU_USER_DYNAMIC_LINKER32.
2241         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
2242         GNU_USER_DYNAMIC_LINKER64.
2243         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
2244         GNU_USER_DYNAMIC_LINKER64.
2245         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
2246         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2247         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
2248         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2249         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2250
2251 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2252
2253         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
2254         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
2255         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
2256         GNU_USER_DYNAMIC_LINKER.
2257         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
2258         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
2259         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
2260         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
2261         GNU_USER_DYNAMIC_LINKER64.
2262         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
2263         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
2264         GNU_USER_LINK_EMULATION.
2265         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
2266         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
2267         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
2268         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
2269         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
2270         CPP_SPEC, CC1_SPEC): Remove.
2271         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
2272         (GNU_USER_DYNAMIC_LINKER): Define.
2273         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
2274         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
2275         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
2276         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
2277         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
2278         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
2279         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
2280         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
2281         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
2282         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
2283         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
2284         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
2285         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
2286         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
2287         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
2288         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
2289         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2290         GNU_USER_DYNAMIC_LINKER.
2291         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2292         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
2293         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2294         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
2295         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2296         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
2297         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
2298         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
2299         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
2300         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
2301
2302 2011-04-11  Kai Tietz  <ktietz@redhat.com>
2303
2304         PR target/9601
2305         PR target/11772
2306         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
2307         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
2308         comment.
2309         (ix86_is_msabi_thiscall): Removed.
2310         (ix86_is_type_thiscall): Likewise.
2311         (ix86_get_callcvt): New function.
2312         (ix86_comp_type_attributes): Simplify check.
2313         (ix86_function_regparm): Use ix86_get_callcvt for calling
2314         convention attribute checks.
2315         (ix86_return_pops_args): Likewise.
2316         (ix86_static_chain): Likewise.
2317         (x86_this_parameter): Likewise.
2318         (x86_output_mi_thunk): Likewise.
2319         (ix86_function_type_abi): Optimize check for types without attributes.
2320         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
2321         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
2322         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
2323         by flag-values.
2324         (IX86_BASE_CALLCVT): Helper macro.
2325         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2326         Use ix86_get_callcvt for calling convention attribute checks and avoid
2327         symbol-decoration for stdcall in TARGET_RTD case.
2328         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
2329         Likewise.
2330         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
2331         for declaration.
2332
2333 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
2334
2335         * config/i386/sse.md (VI_128): New mode iterator.
2336         (VI12_128): Rename from SSEMODE12.
2337         (VI14_128): Rename from SSEMODE14.
2338         (VI124_128): New mode iterator.
2339         (VI24_128): Rename from SSEMODE248.
2340         (VI248_128): Rename from SSEMODE248.
2341         (SSEMODE124C8): Remove.
2342         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2343         (*sse2_<plusminus_insn><mode>3): Merge with
2344         *avx_<plusminus_insn><mode>3.
2345         (*mulv8hi3): Merge with *avx_mulv8hi3.
2346         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
2347         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
2348         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
2349         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
2350         (ashr<mode>3): Merge with *avx_ashr<mode>3.
2351         (lshr<mode>3): Merge with *avx_lshr<mode>3.
2352         (ashl<mode>3): Merge with *avx_ashl<mode>3.
2353         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
2354         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
2355         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2356         (*<smaxmin:code>v8hi3): Ditto.
2357         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
2358         (*<smaxmin:code>v16qi3): Ditto.
2359         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
2360         (*sse2_eq<mode>3): Ditto.
2361         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
2362         (*sse2_gt<mode>3): Ditto.
2363         (vcondv2di): Split out of vcond<mode>.
2364         (vconduv2di): Split out of vcondu<mode>.
2365
2366 2011-04-11  Richard Guenther  <rguenther@suse.de>
2367
2368         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
2369         before calling tree_low_cst.
2370
2371 2011-04-11  Richard Guenther  <rguenther@suse.de>
2372
2373         * stor-layout.c (layout_type): Compute all array index size operations
2374         in the original type.
2375         (initialize_sizetypes): Add comment.
2376         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
2377
2378 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2379
2380         * common.opt (Tbss=, Tdata=, Ttext=): New options.
2381
2382 2011-04-11  Martin Jambor  <mjambor@suse.cz>
2383
2384         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
2385         of cgraph_node, handle NULL return value.
2386         (cgraph_global_info): Likewise.
2387         (cgraph_rtl_info): Likewise.
2388         * tree-inline.c (estimate_num_insns): Likewise.
2389         * gimplify.c (unshare_body): Likewise.
2390         (unvisit_body): Likewise.
2391         (gimplify_body): Likewise.
2392         * predict.c (optimize_function_for_size_p): Likewise.
2393         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
2394         (call_may_clobber_ref_p_1): Likewise.
2395         * varasm.c (function_section_1): Likewise.
2396         (assemble_start_function): Likewise.
2397
2398 2011-04-11  Martin Jambor  <mjambor@suse.cz>
2399
2400         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
2401         of cgraph_node.
2402         * final.c (rest_of_clean_state): Likewise.
2403         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
2404         * passes.c (pass_init_dump_file): Likewise.
2405         (execute_all_ipa_transforms): Likewise.
2406         (function_called_by_processed_nodes_p): Likewise.
2407         * predict.c (maybe_hot_frequency_p): Likewise.
2408         (probably_never_executed_bb_p): Likewise.
2409         (compute_function_frequency): Likewise.
2410         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
2411         (unnest_nesting_tree_1): Likewise.
2412         (lower_nested_functions): Likewise.
2413         * tree-optimize.c (execute_fixup_cfg): Likewise.
2414         (tree_rest_of_compilation): Likewise.
2415         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
2416         * tree-sra.c (ipa_early_sra): Likewise.
2417         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
2418         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
2419         * ipa.c (record_cdtor_fn): Likewise.
2420         * ipa-inline.c (cgraph_early_inlining): Likewise.
2421         (compute_inline_parameters_for_current): Likewise.
2422         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
2423         * ipa-pure-const.c (local_pure_const): Likewise.
2424         * ipa-split.c (split_function): Likewise.
2425         (execute_split_functions): Likewise.
2426         * cgraphbuild.c (build_cgraph_edges): Likewise.
2427         (rebuild_cgraph_edges): Likewise.
2428         (cgraph_rebuild_references): Likewise.
2429         (remove_cgraph_callee_edges): Likewise.
2430         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
2431         (verify_cgraph_node): Likewise.
2432         (cgraph_analyze_functions): Likewise.
2433         (cgraph_preserve_function_body_p): Likewise.
2434         (save_inline_function_body): Likewise.
2435         (save_inline_function_body): Likewise.
2436         * tree-inline.c (copy_bb): Likewise.
2437         (optimize_inline_calls): Likewise.
2438
2439 2011-04-11  Martin Jambor  <mjambor@suse.cz>
2440
2441         PR tree-optimization/48195
2442         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
2443         ipa_check_create_edge_args.
2444         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
2445         ipa_check_create_edge_args.
2446         * ipa-inline.c (inline_generate_summary): Do not call
2447         ipa_check_create_node_params and ipa_check_create_edge_args.
2448         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
2449         ipa_check_create_edge_args.
2450
2451 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
2452
2453         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
2454         instead of loop.
2455         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2456         * function.c (record_hard_reg_sets): Likewise.
2457         * ira.c (compute_regs_asm_clobbered): Likewise.
2458         * sched-deps.c (sched_analyze_1): Likewise.
2459         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
2460
2461 2011-04-09  Xinliang David Li  <davidxl@google.com>
2462
2463         PR tree-optimization/PR48484
2464         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
2465         has_valid_pred lazily
2466
2467 2011-04-09  Duncan Sands  <baldrick@free.fr>
2468
2469         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
2470
2471 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
2472
2473         * combine.c (combine_validate_cost): Adjust comments.  Set registered
2474         cost of I0 to zero at the end, if any.
2475
2476 2011-04-08  Xinliang David Li  <davidxl@google.com>
2477
2478         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
2479         to insane profile data.
2480
2481 2011-04-08  Xinliang David Li  <davidxl@google.com>
2482
2483         * ipa-cp.c (ipcp_update_profiling): Correct
2484          negative scale factor due to insane profile data.
2485
2486 2011-04-08  Xinliang David Li  <davidxl@google.com>
2487
2488         * final.c (dump_basic_block_info): New function.
2489         (final): Dump basic block.
2490         (final_scan_insn): Remove old dump.
2491
2492 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
2493
2494         PR target/47829
2495         * config.gcc (i386-*-freebsd): Disable unwind table generation for
2496         crtbegin/crtend.
2497
2498 2011-04-08  Michael Matz  <matz@suse.de>
2499
2500         PR middle-end/48389
2501         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
2502         functions.
2503         (rebuild_jump_labels): Call rebuild_jump_labels_1.
2504         * rtl.h (rebuild_jump_labels_chain): Declare.
2505         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
2506         insns inserted on edges.
2507
2508 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
2509
2510         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
2511         * config/arm/arm-arches.def: New.
2512         * config/arm/arm-opts.h: New.
2513         * config/arm/genopt.sh: New.
2514         * config/arm/arm-tables.opt: New (generated).
2515         * config/arm/arm.c (arm_handle_option, arm_target_help,
2516         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
2517         (all_architectures): Get most table contents from arm-arches.def.
2518         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
2519         arm_selected_tune here.
2520         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
2521         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
2522         (march=, mcpu=, mtune=): Use Enum and Var.
2523         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
2524         (arm.o): Update dependencies.
2525
2526 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
2527
2528         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
2529         of header_file.
2530         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
2531         (write_typed_alloc_defns): Likewise.
2532         (main): Calls write_typed_alloc_defns with output_header.
2533
2534 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
2535
2536         PR inline-asm/48435
2537         * ira-color.c (setup_profitable_hard_regs): Add comments.
2538         Don't take prohibited hard regs into account.
2539         (setup_conflict_profitable_regs): Rename to
2540         get_conflict_profitable_regs.
2541         (check_hard_reg_p): Check prohibited hard regs.
2542
2543 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
2544
2545         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
2546         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
2547         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
2548
2549 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2550
2551         PR target/48366
2552         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
2553         move from floating point to shift amount register.
2554         (emit_move_sequence): Remove secondary reload support for floating
2555         point to shift amount amount register copies.
2556         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
2557         amount register copies.
2558         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
2559         register, return false if mode isn't a scalar integer mode.
2560         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
2561
2562 2011-04-08  Richard Guenther  <rguenther@suse.de>
2563
2564         * gimple.c (gimple_call_flags): Remove kludge.
2565
2566 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2567
2568         * sel-sched.c (sel_region_init): Move call to
2569         sel_setup_region_sched_flags after setup_current_loop_nest.
2570
2571 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
2572
2573         PR rtl-optimization/48272
2574         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
2575         init_insn_reg_pressure_info.  Adjust a caller.
2576         * sched-int.h (init_insn_reg_pressure_info): Declare.
2577         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
2578         when sched-pressure is enabled.
2579
2580 2011-04-08  Richard Guenther  <rguenther@suse.de>
2581
2582         * gimple.c (gimple_set_modified): Do not queue calls to
2583         MODIFIED_NORETURN_CALLS here ...
2584         * tree-ssa-operands.c (update_stmt_operands): ... but here.
2585
2586 2011-04-08  Richard Guenther  <rguenther@suse.de>
2587
2588         PR lto/48467
2589         * toplev.c (lang_dependent_init): Do not open asm_out_file
2590         in WPA mode, nor perform debug machinery initialization.
2591         (finalize): Do not unlink asm_out_file in WPA mode.
2592
2593 2011-04-08  Richard Guenther  <rguenther@suse.de>
2594
2595         * gimple.h (gimple_call_fntype): New function.
2596         (gimple_call_return_type): Use it.
2597         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
2598         * gimple-low.c (gimple_check_call_args): Likewise.
2599         * gimple.c (gimple_call_flags): Likewise.
2600         (gimple_call_arg_flags): Likewise.
2601         (gimple_call_return_flags): Likewise.
2602         * tree-cfg.c (verify_gimple_call): Likewise.
2603         (do_warn_unused_result): Likewise.
2604         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
2605         * value-prof.c (gimple_ic_transform): Fix fndecl check.
2606
2607 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
2608
2609         PR rtl-optimization/48235
2610         * sel-sched.c (code_motion_process_successors): Recompute the last
2611         insn in basic block if control flow changed.
2612         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
2613         Update condition for ilist_remove.
2614
2615 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2616
2617         PR rtl-optimization/48302
2618         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
2619         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
2620         it to record added preheader blocks.
2621         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
2622         on to sel_add_loop_preheaders.
2623         (sel_region_init): Move call to setup_current_loop_nest after
2624         sel_init_bbs.
2625
2626 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2627
2628         PR target/48273
2629         * cfgloop.h (loop_has_exit_edges): New helper.
2630         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
2631         non-clonable.
2632         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
2633         that have no exit edges.
2634
2635 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2636
2637         PR rtl-optimization/48442
2638         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
2639         all callers.  Adjust assert.
2640
2641 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
2642
2643         PR tree-optimization/48377
2644         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
2645         is_packed to true even for types with smaller TYPE_ALIGN than
2646         TYPE_SIZE.
2647
2648 2011-04-08  Richard Guenther  <rguenther@suse.de>
2649
2650         PR bootstrap/48513
2651         * doc/tm.texi: Re-generate.
2652
2653 2011-04-08  Wei Guozhi  <carrot@google.com>
2654
2655         PR target/47855
2656         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
2657         * config/arm/arm.c (arm_attr_length_push_multi): New function.
2658         * config/arm/arm.md (*push_multi): Change the length computation to
2659         call a C function.
2660
2661 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
2662
2663         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
2664         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
2665         * doc/tm.texi: Regenerate.
2666         * system.h (ASM_OUTPUT_BSS): Poison.
2667         * varasm.c (asm_output_bss): Remove function.
2668         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
2669
2670         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
2671         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
2672         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
2673         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2674         Likewise.
2675         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2676         Likewise.
2677         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2678         Likewise.
2679         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2680
2681 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
2682
2683         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
2684         EnumValue lines.
2685
2686 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
2687
2688         * config/m68k/m68k.c (m68k_handle_option): Don't handle
2689         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
2690         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
2691         OPT_mcpu32.
2692         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2693         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
2694         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
2695         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
2696         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
2697         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
2698         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2699         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
2700         options.  Don't map other m68k options manually.  Don't handle
2701         old-style options as canonical.
2702         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2703         * doc/install.texi (m68k-*-*): Document binutils version requirement.
2704
2705 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
2706
2707         * basic-block.h (force_nonfallthru): Move to...
2708         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
2709         (force_nonfallthru): ...here.
2710         * cfghooks.c (force_nonfallthru): New function.
2711         * cfgrtl.c (force_nonfallthru): Rename into...
2712         (rtl_force_nonfallthru): ...this.
2713         (commit_one_edge_insertion): Do not set AUX field.
2714         (commit_edge_insertions): Do not discover new basic blocks.
2715         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
2716         (cfg_layout_rtl_cfg_hooks): Likewise.
2717         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
2718         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
2719         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
2720
2721 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
2722
2723         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
2724         Remove macros.
2725
2726 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
2727
2728         * config/i386/sse.md: Update copyright year.
2729         (avxcvtvecmode): Remove.
2730         (sse_movhlps): Merge with *avx_movhlps.
2731         (sse_movlhps): Merge with *avx_movlhps.
2732         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
2733         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
2734         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
2735         (sse_loadhps): Merge with *avx_loadhps.
2736         (sse_storelps): Merge with *avx_storelps.
2737         (sse_loadlps): Merge with *avx_loadlps.
2738         (sse_movss): Merge with *avx_movss.
2739         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
2740         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
2741         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
2742         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
2743         (vec_set<mode>_0): Ditto.
2744         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
2745         (sse4_1_insertps): Merge with *avx_insertps.
2746         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
2747         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
2748         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
2749         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
2750         (sse2_storehpd): Merge with *avx_storehpd.
2751         (sse2_loadhpd): Merge with *avx_loadhpd.
2752         (sse2_loadlpd): Merge with *avx_loadlpd.
2753         (sse2_movsd): Merge with *avx_movsd.
2754         (*vec_concatv2df): Merge with *vec_concatv2df.
2755
2756 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
2757
2758         PR debug/48343
2759         * combine.c (combine_instructions): Add last_combined_insn,
2760         update it if insn is after it, pass it to all try_combine calls.
2761         (try_combine): Add last_combined_insn parameter, pass it instead of
2762         i3 to propagate_for_debug.
2763
2764 2011-04-07  Nick Clifton  <nickc@redhat.com>
2765
2766         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
2767         to handle MDR <-> data register transfers.
2768         (movhi_internal): Likewise.
2769
2770 2011-04-07  Alan Modra  <amodra@gmail.com>
2771
2772         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
2773         previous stack info.
2774
2775 2011-04-07  Tom de Vries  <tom@codesourcery.com>
2776
2777         PR target/43920
2778         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
2779         flow_find_cross_jump.  Swap variables to implement backward replacement.
2780         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
2781
2782 2011-04-07  Tom de Vries  <tom@codesourcery.com>
2783
2784         PR target/43920
2785         * cfgcleanup.c (walk_to_nondebug_insn): New function.
2786         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
2787         and bb2.
2788         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
2789         src1 or src2.  Redirect edges to the last basic block.  Update
2790         frequency and count on multiple basic blocks in case of fallthru.
2791
2792 2011-04-07  Tom de Vries  <tom@codesourcery.com>
2793
2794         PR target/43920
2795         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
2796         function.
2797         (old_insns_match_p): Change return type.  Replace return false/true
2798         with return dir_none/dir_both.  Use can_replace_by.
2799         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
2800         direction from dir_p.  Register replacement direction in dir, last_dir
2801         and afterlast_dir.  Handle new return type of old_insns_match_p using
2802         merge_dir.  Return replacement direction in dir_p.
2803         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
2804         return type of old_insns_match_p.
2805         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
2806         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
2807         flow_find_cross_jump.
2808         * basic-block.h (enum replace_direction): New type.
2809         (flow_find_cross_jump): Add parameter to declaration.
2810
2811 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
2812
2813         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
2814         (AVXMODEDCVTPS2DQ): Ditto.
2815         (VEC_FLOAT_MODE): Ditto.
2816         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
2817         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2818         (<any_logic:code><mode>3): Use VF mode iterator.
2819         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
2820         Use VF mode iterator.
2821         (copysign<mode>3): Use VF mode iterator.
2822         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
2823         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2824         (*<any_logic:code><MODEF:mode>3): Merge with
2825         *avx_<any_logic:code><MODEF:mode>3.
2826         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
2827         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
2828         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
2829         (avx_cvtdq2ps<avxmodesuffix>): Remove.
2830         (sse2_cvtdq2ps): Use %v modifier.
2831         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
2832         (avx_cvtps2dq<avxmodesuffix>): Remove.
2833         (sse2_cvtps2dq): Use %v modifier.
2834         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
2835         (avx_cvttps2dq<avxmodesuffix>): Remove.
2836         (sse2_cvttps2dq): Use %v modifier.
2837         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
2838         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
2839         (sse2_cvtsd2siq): Fix insn template.
2840         (sse2_cvtsd2siq_2): Ditto.
2841         (sse2_cvttsd2siq): Ditto.
2842         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
2843         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
2844
2845 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
2846
2847         * gcov-io.c: Use GCC Runtime Library Exception.
2848
2849 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
2850
2851         PR debug/48466
2852         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
2853         as base_reg whatever register reg has been eliminated to, instead
2854         of hardcoding STACK_POINTER_REGNUM.
2855
2856 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
2857
2858         * doc/tm.texi.in: Document C target hooks as separate from general
2859         target hooks.
2860         * doc/tm.texi: Regenerate.
2861         * genhooks.c (struct hook_desc): Add docname field.
2862         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
2863         docname field.
2864         (hook_array): Include c-target.def.
2865         (emit_documentation): Use docname field in output.
2866         (emit_init_macros): Take docname argument.  Only emit definitions
2867         for hooks matching docname.
2868         (main): Expect additional arguments in all cases.  Pass argument
2869         to emit_init_macros.
2870         * target.def: Move initial macro definitions and comments to
2871         target-hooks-macros.h.
2872         (gcc_targetcm): Move to c-family/c-target.def.
2873         * target.h (targetcm): Move declaration to c-family/c-target.h.
2874         * targhooks.c (default_handle_c_option): Move to
2875         c-family/c-opts.c.
2876         * targhooks.h (default_handle_c_option): Move declaration to
2877         c-family/c-common.h.
2878         * target-hooks-macros.h: New file.
2879         * config.gcc (target_has_targetcm): Define and use to add to
2880         c_target_objs and cxx_target_objs.
2881         * config/default-c.c: New file.
2882         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
2883         of target.h and target-def.h.
2884         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
2885         (darwin_objc_construct_string, darwin_cfstring_ref_p,
2886         darwin_check_cfstring_format_arg): Make static.
2887         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2888         TARGET_STRING_OBJECT_REF_TYPE_P,
2889         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
2890         * config/darwin-protos.h (darwin_objc_construct_string,
2891         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
2892         declare.
2893         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2894         TARGET_STRING_OBJECT_REF_TYPE_P,
2895         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
2896         * config/t-darwin (darwin-c.o): Update dependencies.
2897         * system.h (TARGET_HAS_TARGETCM): Poison.
2898         * Makefile.in (TARGET_H): Update.
2899         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
2900         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
2901         (default-c.o): New target.
2902         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
2903         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
2904         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
2905         c-target.def.
2906         (build/genhooks.o): Update dependencies.
2907
2908 2011-04-06  Richard Guenther  <rguenther@suse.de>
2909
2910         * ipa-inline.c (enum inlining_mode): Remove.
2911         (cgraph_flatten): Use some other token.
2912         (cgraph_edge_early_inlinable_p): New function, split out from ...
2913         (cgraph_perform_always_inlining): New function, split out from ...
2914         (cgraph_decide_inlining_incrementally): ... here.
2915         (cgraph_mark_inline_edge): Adjust.
2916         (cgraph_early_inlining): Re-structure.
2917         (pass_early_inline): Require SSA form.
2918
2919 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
2920             Julian Brown  <julian@codesourcery.com>
2921             Mark Shinwell  <shinwell@codesourcery.com>
2922
2923         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
2924         LO_REGS only for Thumb-1.
2925         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
2926         be used in short instructions when optimising for size on Thumb-2.
2927
2928 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
2929
2930         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
2931         associated with user returns to be preserved.
2932
2933 2011-04-06  Tristan Gingold  <gingold@adacore.com>
2934
2935         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
2936         symbol_queue_size, DBXOUT_DECR_NESTING,
2937         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
2938         if XCOFF_DEBUGGING_INFO.
2939
2940 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
2941
2942         * config/i386/i386.md (attribute isa): New.
2943         (attribute enabled): New.
2944         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
2945         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
2946         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
2947         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
2948         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
2949         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2950         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
2951         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
2952
2953         * config/i386/sse.md (VF): New mode iterator.
2954         (VF1): Ditto.
2955         (VF2): Ditto.
2956         (VF_128): Ditto.
2957         (SSEMODEF4): Remove.
2958         (attribute sse): Handle V8SF and V4DF modes.
2959         (<absneg:code><mode>2): Use VF mode iterator.
2960         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
2961         mode iterator.
2962         (<plusminus_insn><mode>3): Use VF mode iterator.
2963         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2964         Use VF mode iterator.
2965         (<sse>_vm<plusminus_insn><mode>3): Merge with
2966         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
2967         (mul<mode>3): Use VF mode iterator.
2968         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
2969         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
2970         mode iterator.
2971         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
2972         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
2973         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
2974         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
2975         mode iterator.
2976         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
2977         Use VF1 mode iterator.
2978         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
2979         (sqrt<VF2:mode>2): New expander.
2980         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
2981         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
2982         and sqrtv2df2.  Use VF mode iterator.
2983         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
2984         mode iterator.
2985         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
2986         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
2987         Use VF1 mode iterator.
2988         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
2989         (<smaxmin:code><mode>3): Use VF mode iterator.
2990         (*<smaxmin:code><mode>3_finite): Merge with
2991         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
2992         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2993         (<sse>_vm<smaxmin:code><mode>2): Merge with
2994         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
2995         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
2996         mode iterator.
2997         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
2998         mode iterator.
2999         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
3000         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
3001         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
3002         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
3003         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
3004         VF mode iterator.
3005         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
3006         Use VF_128 mode iterator.
3007         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
3008         mode iterator.
3009         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
3010         VF_128 mode iterator.
3011         (vcond<mode>): Use VF mode iterator.
3012         * config/i386/predicates.md (sse_comparison_operator): Merge with
3013         avx_comparison_float_operator.  Do not declare as special_predicate.
3014         * config/i386/i386.c (struct builtin_description): Update for renamed
3015         compare patterns.
3016         (ix86_expand_args_builtin): Ditto.
3017         (ix86_expand_sse_compare_mask): Ditto.
3018
3019 2011-04-06  Richard Guenther  <rguenther@suse.de>
3020
3021         * tree-inline.c (estimate_num_insns): For calls simply account
3022         for all passed arguments and a used return value.
3023
3024 2011-04-06  Richard Guenther  <rguenther@suse.de>
3025
3026         PR tree-optimization/47663
3027         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
3028         call_stmt_time fields.
3029         (cgraph_edge_inlinable_p): Declare.
3030         (cgraph_edge_recursive_p): New inline function.
3031         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
3032         (cgraph_clone_edge): Copy it.
3033         * ipa-inline.c (cgraph_estimate_edge_time): New function.
3034         Account for call stmt time.
3035         (cgraph_estimate_time_after_inlining): Take edge argument.
3036         (cgraph_estimate_edge_growth): Account call stmt size.
3037         (cgraph_estimate_size_after_inlining): Take edge argument.
3038         (cgraph_mark_inline_edge): Adjust.
3039         (cgraph_check_inline_limits): Likewise.
3040         (cgraph_recursive_inlining_p): Remove.
3041         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
3042         (cgraph_decide_recursive_inlining): Take edge argument and
3043         adjust.
3044         (cgraph_decide_inlining_of_small_functions): Do not avoid
3045         diags for recursive inlining here.
3046         (cgraph_flatten): Adjust.
3047         (cgraph_decide_inlining_incrementally): Likewise.
3048         (estimate_function_body_sizes): Remove call cost handling.
3049         (compute_inline_parameters): Initialize caller edge call costs.
3050         (cgraph_estimate_edge_growth): New function.
3051         (cgraph_estimate_growth): Use it.
3052         (cgraph_edge_badness): Likewise.
3053         (cgraph_check_inline_limits): Take an edge argument.
3054         (cgraph_decide_inlining_of_small_functions): Adjust.
3055         (cgraph_decide_inlining): Likewise.
3056         * tree-inline.c (estimate_num_insns): Only account for call
3057         return value if it is used.
3058         (expand_call_inline): Avoid diagnostics on recursive inline
3059         functions here.
3060         * lto-cgraph.c (lto_output_edge): Output edge call costs.
3061         (input_edge): Input edge call costs.
3062
3063 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3064
3065         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
3066
3067 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
3068
3069         * doc/invoke.texi (Spec Files): Fix typo.
3070
3071 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
3072
3073         * profile.c (branch_prob): Move declaration of local variable.  Remove
3074         obsolete ??? comment.  Expand the location explicitly instead of using
3075         the LOCATION_FILE and LOCATION_LINE macros.
3076
3077 2011-04-06  Wei Guozhi  <carrot@google.com>
3078
3079         PR target/47855
3080         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
3081         (arm_cond_branch): Likewise.
3082         (arm_cond_branch_reversed): Likewise.
3083         (arm_jump): Likewise.
3084         (push_multi): Likewise.
3085         * config/arm/constraints.md (Py): New constraint.
3086
3087 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3088
3089         PR bootstrap/48471
3090         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
3091         Move these...
3092         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
3093         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
3094         #ifdef DBX_DEBUGGING_INFO.
3095
3096 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
3097
3098         PR bootstrap/48403
3099         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
3100         if old and new states differ.
3101
3102 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
3103
3104         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
3105         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
3106         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
3107         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
3108         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
3109         mcfv4e): Use Alias.
3110         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
3111         ColdFire options to -mcpu= options.
3112
3113 2011-04-05  Jeff Law  <law@redhat.com>
3114
3115         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
3116         check if BB is a successor of LOOP->header and return
3117         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
3118
3119 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
3120
3121         * cprop.c (struct reg_use): Remove.
3122         (reg_use_table): Make an array of RTX.
3123         (find_used_regs, constprop_register, local_cprop_pass,
3124         bypass_block): Simplify users of reg_use_table.
3125         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
3126         on one of the uses found by find_used_regs.
3127
3128 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3129
3130         PR bootstrap/48469
3131         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
3132         declaration.
3133
3134 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3135
3136         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
3137         as an rtx.
3138         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
3139
3140 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
3141
3142         PR middle-end/48441
3143         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
3144
3145 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3146
3147         * combine.c: Include obstack.h.
3148         (struct insn_link): Define.
3149         (uid_log_links): Adjust type.
3150         (FOR_EACH_LOG_LINK): New macro.
3151         (insn_link_obstack): Declare.
3152         (alloc_insn_link): Define.
3153         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
3154         type of link variables.
3155         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
3156         (try_combine, record_promoted_values, distribute_notes): Likewise.
3157         (distribute_links): Likewise.  Tweak prototype.
3158         (clear_log_links): Delete.
3159         (adjust_for_new_dest): Call alloc_insn_link.
3160         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
3161
3162 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3163
3164         * gcse.c (modify_mem_list): Convert to an array of VECs.
3165         (canon_modify_mem_list, compute_transp): Tweak formatting.
3166         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
3167         (load_killed_in_block_p): Likewise.
3168         (record_last_mem_set_info): Likewise.
3169         (clear_modify_mem_tables): Likewise.
3170
3171 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3172
3173         PR middle-end/48461
3174         * function.c (emit_use_return_register_into_block): Only define if
3175         HAVE_return.
3176
3177 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
3178
3179         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
3180
3181 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
3182
3183         * config/rx/rx-opts.h: New.
3184         * config/rx/rx.c (rx_cpu_type): Remove.
3185         (rx_handle_option): Don't assert that global structures are in
3186         use.  Access variables via opts pointer.  Defer most handling of
3187         OPT_mint_register_.  Use error_at.
3188         (rx_option_override): Handle deferred OPT_mint_register_ here.
3189         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
3190         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
3191         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
3192         (rx_cpu_types): New Enum and EnumValue entries.
3193         (mint-register=): Use Defer and use Var accordingly.
3194
3195 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3196
3197         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
3198         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
3199         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
3200         Move these...
3201         (debug_free_queue, debug_nesting, symbol_queue_index):
3202         ...and these...
3203         * dbxout.c: ...to here.  Make static.
3204
3205 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3206
3207         * gcse.c (modify_pair): Define.  Define a VEC of it.
3208         (canon_modify_mem_list): Convert to an array of VECs.
3209         (free_insn_expr_list_list): Delete.
3210         (clear_modify_mem_tables): Call VEC_free instead.
3211         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
3212         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
3213         (canon_list_insert, compute_transp): Likewise.
3214
3215 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3216
3217         PR target/43920
3218         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
3219         for size.
3220
3221 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3222
3223         PR target/43920
3224         * function.c (emit_use_return_register_into_block): New function.
3225         (thread_prologue_and_epilogue_insns): Use
3226         emit_use_return_register_into_block.
3227
3228 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3229
3230         PR target/43920
3231         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
3232         insn.
3233
3234 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3235
3236         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
3237
3238 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
3239
3240         * config/arm/arm.md (define_constants for unspec): Replace with
3241         define_c_enum.
3242         (define_constants for unspecv): Replace with define_c_enum.
3243         * config/arm/neon.md (define_constants for unspec): Replace with
3244         define_c_enum.
3245
3246 2011-04-04  Richard Henderson  <rth@redhat.com>
3247
3248         PR bootstrap/48400
3249         * dwarf2out.c (output_line_info): Always emit line info from
3250         at least one section.
3251         (dwarf2out_init): Create text_section_line_info here ...
3252         (set_cur_line_info_table): ... not here.
3253
3254 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
3255
3256         PR target/48380
3257         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
3258         not called.
3259
3260         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
3261
3262 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
3263
3264         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
3265         (expr_equiv_p): Remove.
3266         (insert_set_in_table): Look at <dest, src> pair instead of expr.
3267         (hash_scan_set): Update call to insert_set_in_table.
3268         (dump_hash_table): Dump <dest, src> pair.
3269         (lookup_set): Simplify.  Lookup <dest, src> pair.
3270         (compute_transp): Remove, fold heavily simplified code into...
3271         (compute_local_properties): ...here.  Expect COMP and TRANSP
3272         unconditionally.
3273         (find_avail_set): Take set directly from struct expr.
3274         (find_bypass-set): Likewise.
3275         (bypass_block): Likewise.
3276         (cprop_insn): Likewise.  Remove redundant INSN_P test.
3277
3278         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
3279         checks on form of COND from find_implicit_sets to here.
3280         (find_implicit_sets): Cleanup control flow. Split critical edges
3281         if it exposes implicit sets.  Allocate/resize implicit_sets as
3282         necessary.
3283         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
3284         changed something.  Run df_analyze after find_implicit_sets if any
3285         edges were split.  Do not allocate implicit_sets here.
3286
3287         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
3288         (gcse_obstack): Renamed to cprop_obstack.
3289         (GNEW, GNEWVEC, GNEWVAR): Remove.
3290         (gmalloc): Remove.
3291         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
3292         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
3293         (gcse_alloc): Likewise, and rename to cprop_alloc.
3294         (alloc_gcse_men, free_gcse_mem): Remove.
3295         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
3296         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
3297         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
3298
3299         * cprop.c (oprs_not_set_p): Remove.
3300         (mark_set, mark_clobber): Remove.
3301         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
3302         (reg_not_set_p): New function.
3303         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
3304         (cprop_insn): Likewise.
3305         (cprop_jump): Use FOR_EACH_EDGE.
3306
3307 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
3308
3309         PR bootstrap/48403
3310         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
3311         (rank_for_schedule): Use scheduled_insns vector instead of
3312         last_scheduled_insn.
3313         (ok_for_early_queue_removal): Likewise.
3314         (queue_to_ready): Search forward in nonscheduled_insns_begin if
3315         we have a dbg_cnt.
3316         (choose_ready): Likewise.
3317         (commit_schedule): Use VEC_iterate.
3318         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
3319         a dbg_cnt, use it and ensure the first insn is in the ready list.
3320         (haifa_sched_init): Allocate scheduled_insns.
3321         (sched_extend_ready_list): Don't allocate it; reserve space.
3322         (haifa_sched_finish): Free it.
3323
3324 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
3325
3326         * optc-gen.awk: Always remove type from Variable entry before
3327         recording in var_seen.
3328
3329 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
3330
3331         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
3332         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
3333         call to tidy_fallthru_edges.
3334
3335 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
3336
3337         * doc/options.texi (ToLower): Document.
3338         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
3339         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
3340         * opts.h (cl_option): Add cl_tolower field.
3341         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
3342         arguments with lowercase strings.
3343         * config/rx/rx.opt (mcpu=): Add ToLower.
3344         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
3345         argument.
3346
3347 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
3348
3349         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
3350
3351 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
3352
3353         * config/vax/vax.c: Include reload.h.
3354
3355 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
3356
3357         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
3358         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
3359         (sparc_preferred_reload_class): New function.
3360
3361 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
3362
3363         PR debug/48401
3364         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3365         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
3366
3367 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
3368
3369         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
3370         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
3371
3372 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
3373
3374         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
3375         (ASM_OUTPUT_ALIGNED_BSS): Define.
3376
3377 2011-04-03  Michael Matz  <matz@suse.de>
3378
3379         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
3380         and next_slot members.
3381         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
3382         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
3383         (lto_streamer_cache_append): Declare.
3384         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
3385         unsigned index, remove offset parameter, ensure that we append
3386         or update existing entries.
3387         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
3388         parameter, update next_slot for append.
3389         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
3390         parameter.
3391         (lto_streamer_cache_insert_at): Likewise.
3392         (lto_streamer_cache_append): New function.
3393         (lto_streamer_cache_lookup): Use unsigned index.
3394         (lto_streamer_cache_get): Likewise.
3395         (lto_record_common_node): Don't test tree_node_can_be_shared.
3396         (preload_common_node): Adjust call to lto_streamer_cache_insert.
3397         (lto_streamer_cache_delete): Don't free offsets member.
3398         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
3399         (lto_output_string_with_length): Use lto_output_data_stream.
3400         (lto_output_tree_header): Remove ix parameter, don't write it.
3401         (lto_output_builtin_tree): Likewise.
3402         (lto_write_tree): Adjust callers to above, don't track and write
3403         offset, write unsigned index.
3404         (output_unreferenced_globals): Don't emit all global vars.
3405         (write_global_references): Use unsigned indices.
3406         (lto_output_decl_state_refs): Likewise.
3407         (write_symbol): Likewise.
3408         * lto-streamer-in.c (lto_input_chain): Move earlier.
3409         (input_function): Use unsigned index.
3410         (input_alias_pairs): Don't read and then ignore all global vars.
3411         (lto_materialize_tree): Remove ix_p parameter, don't read index,
3412         don't pass it back, use lto_streamer_cache_append.
3413         (lto_register_var_decl_in_symtab): Use unsigned index.
3414         (lto_register_function_decl_in_symtab): Likewise.
3415         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
3416         index.
3417         (lto_get_builtin_tree): Don't read index, use
3418         lto_streamer_cache_append.
3419         (lto_read_tree): Adjust call to lto_materialize_tree.
3420
3421         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
3422         don't use function calls in arguments to MIN.
3423
3424         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
3425         twice.
3426
3427         * gimple.c (gimple_type_leader_entry): Mark deletable.
3428
3429 2011-04-03  Alan Modra  <amodra@gmail.com>
3430
3431         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
3432
3433 2011-04-03  Michael Matz  <matz@suse.de>
3434
3435         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
3436         an integer.
3437         * tree.h (tree_decl_non_common.vindex): Adjust comment.
3438
3439 2011-04-03  Michael Matz  <matz@suse.de>
3440
3441         * cgraphbuild.c (record_reference): Canonicalize constructor values.
3442         * gimple-fold.c (canonicalize_constructor_val): Accept being called
3443         without function context.
3444         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
3445         current_function_decl and cfun.
3446
3447 2011-04-03  Michael Matz  <matz@suse.de>
3448
3449         * tree.c (decl_init_priority_insert): Don't create entry for
3450         default priority.
3451         (decl_fini_priority_insert): Ditto.
3452         (fields_compatible_p, find_compatible_field): Remove.
3453         * tree.h (fields_compatible_p, find_compatible_field): Remove.
3454         * gimple.c (gimple_compare_field_offset): Adjust block comment.
3455
3456 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
3457
3458         * combine.c (try_combine): Remove useless local variable.
3459
3460 2011-04-03  Richard Guenther  <rguenther@suse.de>
3461             Ira Rosen  <ira.rosen@linaro.org>
3462
3463         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
3464         non-variable offsets and compare the remaining bases of the two
3465         accesses instead of looking for exact same data-ref.
3466
3467 2011-04-02  Kai Tietz  <ktietz@redhat.com>
3468
3469         PR target/48416
3470         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
3471
3472         * i386.c (ix86_is_msabi_thiscall): New helper function.
3473         (ix86_is_type_thiscall): New helper function.
3474         (ix86_comp_type_attributes): Handle thiscall for method-functions
3475         special.
3476         (init_cumulative_args): Likewise.
3477         (find_drap_reg): Likewise.
3478         (ix86_static_chain): Likewise.
3479         (x86_this_parameter): Likewise.
3480         (x86_output_mi_thunk): Likewise.
3481
3482 2011-04-01  Olivier Hainque  <hainque@adacore.com>
3483             Nicolas Setton  <setton@adacore.com>
3484             Eric Botcazou  <ebotcazou@adacore.com>
3485
3486         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
3487         (add_gnat_descriptive_type_attribute): New function.
3488         (gen_array_type_die): Call it.
3489         (gen_enumeration_type_die): Likewise.
3490         (gen_struct_or_union_type_die): Likewise.
3491         (modified_type_die): Likewise.
3492         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
3493         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
3494         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
3495
3496 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
3497
3498         PR bootstrap/48148
3499         * dwarf2out.c (resolve_addr): Don't call force_decl_die
3500         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
3501
3502         Revert:
3503         2011-03-17  Richard Guenther  <rguenther@suse.de>
3504
3505         PR bootstrap/48148
3506         * lto-cgraph.c (input_overwrite_node): Clear the abstract
3507         origin for decls in other ltrans units.
3508         (input_varpool_node): Likewise.
3509
3510 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
3511
3512         PR middle-end/48335
3513         * expr.c (expand_assignment): Handle all possibilities
3514         if TO_RTX is CONCAT.
3515         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
3516         (store_split_bit_field): If SUBREG_REG (op0) or
3517         op0 itself has smaller mode than word, return it
3518         for offset 0 and const0_rtx for out-of-bounds stores.
3519         If word is const0_rtx, skip it.
3520
3521 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
3522
3523         * config/h8300/h8300.c (print_operand_address): Rename to...
3524         (h8300_print_operand_address): ...this. Make static. Adjust comments.
3525         Call h8300_print_operand and h8300_print_operand_address instead of
3526         print_operand and print_operand_address. Declare.
3527         (print_operand): Renake to...
3528         (h8300_print_operand): ...this. Make static. Adjust comments.
3529         Call h8300_print_operand instead of print_operand. Declare.
3530         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
3531         (h8300_register_move_cost): Likewise.
3532         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
3533         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
3534         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
3535         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
3536         * config/h8300/h8300-protos.h (print_operand): Delete.
3537         (print_operand_address): Delete.
3538
3539 2011-04-01  Richard Henderson  <rth@redhat.com>
3540
3541         PR 48400
3542         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
3543         in strict mode before dwarf4.  Re-order tests to early out
3544         before switching sections.
3545
3546 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
3547
3548         * config/h8300/constraints.md: New file.
3549         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
3550         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
3551         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
3552         * config/h8300/predicates.md (bit_operand): Likewise.
3553         (incdec_operand): Use satisfies_constraint_M and
3554         satisfies_constraint_O.  Don't use C code block.
3555         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
3556         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
3557         (compute_mov_length): Use satisfies_constraint_G.
3558         (fix_bit_operand): Use satisfies_constraint_U.
3559         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
3560         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
3561         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
3562         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
3563         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
3564         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
3565         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3566         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
3567         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
3568         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
3569         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
3570         (EXTRA_MEMORY_CONSTRAINT): Delete.
3571
3572 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
3573             Michael Meissner  <meissner@linux.vnet.ibm.com>
3574
3575         PR target/48262
3576         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
3577         operands, as per the specifications.
3578
3579         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
3580         (vec_extract_evenv4sf): Ditto.
3581         (vec_extract_evenv8hi): Ditto.
3582         (vec_extract_evenv16qi): Ditto.
3583         (vec_extract_oddv4si): Ditto.
3584
3585 2011-03-31  Mark Wielaard  <mjw@redhat.com>
3586
3587         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
3588         high_pc attribute if the CU has no associated code. Only output
3589         DW_AT_entry_pc for CU if not generating strict dwarf and
3590         dwarf_version < 4.
3591
3592 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
3593
3594         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
3595         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
3596         out of ...
3597         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
3598         * final.c (final_start_function): Call the new function rather
3599         than using a NULL argument for dwarf2out_frame_debug.
3600
3601         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
3602         that contains the prologue.
3603
3604         * haifa-sched.c (queue_insn): New arg REASON.  All callers
3605         changed.  Print it in debugging output.
3606
3607         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
3608
3609         * sched-ebb.c (begin_schedule_ready): Remove second argument.
3610         Split most of the code into...
3611         (begin_move_insn): ... here.  New function.
3612         (ebb_sched_info): Add a pointer to it.
3613         * haifa-sched.c (scheduled_insns): New static variable.
3614         (sched_extend_ready_list): Allocate it.
3615         (schedule_block): Use it to record the order of scheduled insns.
3616         Perform RTL changes to move insns only after all scheduling
3617         decisions have been made.
3618         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
3619         begin_move_insn field.
3620         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
3621         * sched-int.h (struct haifa_sched_info): Remove second argument
3622         from begin_schedule_ready hook.  Add new member begin_move_insn.
3623         * sched-rgn.c (begin_schedule_ready): Remove second argument.
3624         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
3625
3626         * haifa-sched.c (prune_ready_list): New function, broken out of
3627         schedule_block.
3628         (schedule_block): Use it.
3629
3630 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3631
3632         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
3633
3634 2011-04-01  Kai Tietz  <ktietz@redhat.com>
3635
3636         * config.gcc (*-*-mingw*): Allow as option the
3637         posix threading model.
3638         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
3639         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
3640         definition.
3641         (CPP_SPEC): Add pthread/no-pthread handling.
3642         (LIB_SPEC): Likewise.
3643         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
3644         (LIB_SPEC): Likewise.
3645         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
3646         flag to pass -pthread option for shared libgcc build.
3647         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
3648         for shared libgcc build.
3649         * config/i386/t-mingw-pthread: New file.
3650         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
3651         New define to enable use of library pthread by default.
3652         * config/i386/mingw.opt (pthread): New driver option.
3653         (no-pthread): New driver option.
3654         * config/i386/cygming.opt: Make sure trailing empty line is retained.
3655         * config/i386/mingw-w64.opt: Likewise.
3656
3657 2011-04-01  Gary Funck <gary@intrepid.com>
3658
3659         * c-decl.c (grokdeclarator): Fix formatting.
3660
3661 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
3662
3663         * expr.c (emit_block_move_via_movmem): Use n_generator_args
3664         instead of n_operands.
3665         (set_storage_via_setmem): Likewise.
3666         * optabs.c (maybe_gen_insn): Likewise.
3667         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
3668         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
3669         (mips_expand_builtin_direct): Likewise.
3670         * config/spu/spu.c (expand_builtin_args): Likewise.
3671
3672 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
3673
3674         * recog.h (insn_data_d): Add n_generator_args.
3675         * genoutput.c (data): Likewise.
3676         (output_insn_data): Print it.
3677         (max_opno, num_dups): Delete.
3678         (scan_operands): Just fill in "d->operand[...]".
3679         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
3680
3681 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
3682
3683         * gensupport.h (pattern_stats): New structure.
3684         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
3685         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
3686         (max_operand_1, max_operand_vec): Delete.
3687         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
3688
3689 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
3690
3691         * emit-rtl.c (emit_pattern_after_setloc): New function.
3692         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
3693         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
3694         (emit_pattern_after): New function.
3695         (emit_insn_after, emit_jump_insn_after): Call it.
3696         (emit_call_insn_after, emit_debug_insn_after): Likewise.
3697         (emit_pattern_before_setloc): New function.
3698         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
3699         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
3700         Likewise.
3701         (emit_pattern_before): New function.
3702         (emit_insn_before, emit_jump_insn_before): Call it.
3703         (emit_call_insn_before, emit_debug_insn_before): Likewise.
3704
3705 2011-03-31  Richard Henderson  <rth@redhat.com>
3706
3707         * dwarf2out.c (dw_separate_line_info_ref): Remove.
3708         (dw_separate_line_info_entry): Remove.
3709         (enum dw_line_info_opcode): New.
3710         (dw_line_info_entry): Use it.
3711         (dw_line_info_table, dw_line_info_table_p): New.
3712         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
3713         (line_info_table, line_info_label_num): Remove.
3714         (line_info_table_in_use): Remove.
3715         (separate_line_info_table): Remove.
3716         (separate_line_info_table_allocated): Remove.
3717         (separate_line_info_table_in_use): Remove.
3718         (LINE_INFO_TABLE_INCREMENT): Remove.
3719         (line_info_label_num): New.
3720         (cur_line_info_table): New.
3721         (text_section_line_info, cold_text_section_line_info): New.
3722         (separate_line_info): New.
3723         (SEPARATE_LINE_CODE_LABEL): Remove.
3724         (print_dwarf_line_table): Remove.
3725         (debug_dwarf): Don't dump it.
3726         (output_one_line_info_table): New.
3727         (output_line_info): Use it.
3728         (new_line_info_table): New.
3729         (set_cur_line_info_table): New.
3730         (dwarf2out_switch_text_section): Use it.
3731         (dwarf2out_begin_function): Likewise.
3732         (push_dw_line_info_entry): New.
3733         (dwarf2out_source_line): Rewrite for new line info tables.
3734         (dwarf2out_init): Remove dead initailizations.
3735
3736 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
3737
3738         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
3739         various flags.
3740         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
3741         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
3742         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
3743         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
3744         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
3745         * opt-functions.awk (flag_init, switch_bit_fields): New.
3746         (switch_flags): Don't handle flags moved to bit-fields.  Don't
3747         generate CL_MISSING_OK or CL_SAVE.
3748         * optc-gen.awk: Update to generate bit-field output as well as
3749         flags field.
3750         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
3751         bit-field instead of CL_REJECT_DRIVER flag.
3752         * opts-common.c (generate_canonical_option,
3753         decode_cmdline_option): Use bit-fields instead of CL_* flags.
3754         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
3755         instead of CL_REJECT_NEGATIVE flag.
3756         * toplev.c (print_switch_values): Use cl_report bit-field instead
3757         of CL_REPORT flag.
3758
3759 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
3760
3761         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
3762         a zero minimum index only if it is redundant.
3763
3764 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
3765
3766         PR rtl-optimization/48381
3767         * ira-color.c (assign_hard_reg): Use hard reg set intersection
3768         instead of ira_class_hard_reg_index for calculating conflicting
3769         hard registers.
3770
3771 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
3772
3773         * cprop.c: Clean up hash table building.
3774         (reg_avail_info): Remove.
3775         (oprs_available_p): Remove.
3776         (record_last_reg_set_info): Remove.
3777         (record_last_set_info): Remove.
3778         (reg_available_p): New function.
3779         (gcse_constant_p): Do not treat unfolded conditions as constants.
3780         (make_set_regs_unavailable): New function.
3781         (hash_scan_set): Simplify with new reg_available_p.
3782         (compute_hash_table_work): Traverse insns stream only once.
3783         Do not compute reg_avail_info. Traverse insns in reverse order.
3784         Record implicit sets after recording explicit sets from the block.
3785
3786 2011-03-31  Michael Matz  <matz@suse.de>
3787
3788         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
3789
3790 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
3791
3792         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
3793         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
3794         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3795         (h8300_mode_dependent_address_p): New function.
3796         (h8300_get_index): Make static.
3797
3798 2011-03-31  Jeff Law  <law@redhat.com>
3799
3800         * reload1.c (elimination_effects): Fix typo in recent change.
3801
3802         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
3803         typo potentially leading to null pointer dereference.
3804
3805         * caller-save.c (new_saved_hard_reg): Eliminate return value.
3806         (setup_save_areas): Corresponding changes to avoid useless
3807         assignments.
3808
3809         * jump.c (reversed_comparison_code_parts): Avoid successive return
3810         statements when REVERSE_CONDITION is defined.
3811
3812         * expr.c (expand_assignment): Avoid useless assignments.
3813         (expand_expr_real_1): Likewise.
3814         (expand_expr_real_2): Avoid useless statements.
3815
3816         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
3817
3818         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3819
3820         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
3821         statements.
3822
3823         * stmt.c (expand_expr_stmt): Avoid useless assignment.
3824
3825 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
3826
3827         PR target/47109
3828         * doc/tm.texi.in (TARGET_VERSION): Remove.
3829         * doc/tm.texi: Regenerate.
3830         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
3831         * collect2.c (main): Don't use TARGET_VERSION.
3832         * mips-tdump.c (main): Don't use TARGET_VERSION.
3833         * mips-tfile.c (main): Don't use TARGET_VERSION.
3834         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
3835         * config/rs6000/vxworksae.h: Remove.
3836         * config/alpha/alpha.h (TARGET_VERSION): Remove.
3837         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
3838         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
3839         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
3840         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3841         * config/arm/arm.h (TARGET_VERSION): Remove.
3842         * config/arm/coff.h (TARGET_VERSION): Remove.
3843         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
3844         * config/arm/elf.h (TARGET_VERSION): Remove.
3845         * config/arm/freebsd.h (TARGET_VERSION): Remove.
3846         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
3847         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
3848         * config/arm/pe.h (TARGET_VERSION): Remove.
3849         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
3850         * config/arm/semi.h (TARGET_VERSION): Remove.
3851         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
3852         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
3853         * config/arm/vxworks.h (TARGET_VERSION): Remove.
3854         * config/avr/avr.h (TARGET_VERSION): Remove.
3855         * config/bfin/bfin.h (TARGET_VERSION): Remove.
3856         * config/fr30/fr30.h (TARGET_VERSION): Remove.
3857         * config/frv/frv.h (TARGET_VERSION): Remove.
3858         * config/h8300/h8300.h (TARGET_VERSION): Remove.
3859         * config/i386/cygwin.h (TARGET_VERSION): Remove.
3860         * config/i386/darwin.h (TARGET_VERSION): Remove.
3861         * config/i386/darwin64.h (TARGET_VERSION): Remove.
3862         * config/i386/djgpp.h (TARGET_VERSION): Remove.
3863         * config/i386/freebsd.h (TARGET_VERSION): Remove.
3864         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
3865         * config/i386/gnu.h (TARGET_VERSION): Remove.
3866         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
3867         * config/i386/i386elf.h (TARGET_VERSION): Remove.
3868         * config/i386/linux.h (TARGET_VERSION): Remove.
3869         * config/i386/linux64.h (TARGET_VERSION): Remove.
3870         * config/i386/lynx.h (TARGET_VERSION): Remove.
3871         * config/i386/mingw32.h (TARGET_VERSION): Remove.
3872         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
3873         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
3874         * config/i386/netware.h (TARGET_VERSION): Remove.
3875         * config/i386/nto.h (TARGET_VERSION): Remove.
3876         * config/i386/openbsd.h (TARGET_VERSION): Remove.
3877         * config/i386/vxworks.h (TARGET_VERSION): Remove.
3878         * config/ia64/elf.h (TARGET_VERSION): Remove.
3879         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
3880         * config/ia64/hpux.h (TARGET_VERSION): Remove.
3881         * config/ia64/linux.h (TARGET_VERSION): Remove.
3882         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3883         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
3884         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3885         * config/lm32/lm32.h (TARGET_VERSION): Remove.
3886         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
3887         * config/m32c/m32c.h (TARGET_VERSION): Remove.
3888         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
3889         * config/m32r/m32r.h (TARGET_VERSION): Remove.
3890         * config/m68k/linux.h (TARGET_VERSION): Remove.
3891         * config/m68k/m68k.h (TARGET_VERSION): Remove.
3892         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
3893         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
3894         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
3895         * config/mep/mep.h (TARGET_VERSION): Remove.
3896         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
3897         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3898         * config/mips/iris6.h (MACHINE_TYPE): Remove.
3899         * config/mips/linux.h (TARGET_VERSION): Remove.
3900         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
3901         * config/mips/vxworks.h (TARGET_VERSION): Remove.
3902         * config/mmix/mmix.h (TARGET_VERSION): Remove.
3903         * config/mn10300/linux.h (TARGET_VERSION): Remove.
3904         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
3905         * config/pa/pa.h (TARGET_VERSION): Remove.
3906         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
3907         * config/picochip/picochip.h (TARGET_VERSION): Remove.
3908         * config/rs6000/aix.h (TARGET_VERSION): Remove.
3909         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
3910         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
3911         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
3912         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
3913         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
3914         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
3915         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
3916         * config/rs6000/linux.h (TARGET_VERSION): Remove.
3917         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
3918         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
3919         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
3920         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
3921         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
3922         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
3923         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
3924         * config/s390/linux.h (TARGET_VERSION): Remove.
3925         * config/s390/s390.h (TARGET_VERSION): Remove.
3926         * config/s390/tpf.h (TARGET_VERSION): Remove.
3927         * config/score/score.h (TARGET_VERSION): Remove.
3928         * config/sh/linux.h (TARGET_VERSION): Remove.
3929         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
3930         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
3931         * config/sh/sh.h (TARGET_VERSION): Remove.
3932         * config/sh/sh64.h (TARGET_VERSION): Remove.
3933         * config/sh/superh.h (TARGET_VERSION): Remove.
3934         * config/sh/vxworks.h (TARGET_VERSION): Remove.
3935         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
3936         * config/sparc/linux.h (TARGET_VERSION): Remove.
3937         * config/sparc/linux64.h (TARGET_VERSION): Remove.
3938         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
3939         TARGET_NAME32, TARGET_NAME): Remove.
3940         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
3941         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
3942         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
3943         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
3944         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
3945         * config/spu/spu.h (TARGET_VERSION): Remove.
3946         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
3947         * config/v850/v850.h (TARGET_VERSION): Remove.
3948         * config/vax/linux.h (TARGET_VERSION): Remove.
3949         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
3950         * config/xtensa/elf.h (TARGET_VERSION): Remove.
3951         * config/xtensa/linux.h (TARGET_VERSION): Remove.
3952
3953 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
3954
3955         PR target/48142
3956         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
3957         frame-related from frame-unrelated adjustments to the stack pointer.
3958
3959 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
3960
3961         * common.opt (fdebug-types-section): Move earlier.
3962         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
3963
3964 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
3965
3966         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
3967         var.
3968
3969 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
3970
3971         * tree.h (CASE_CHAIN): Define.
3972         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
3973         (gimple_redirect_edge_and_branch): Likewise.
3974
3975 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
3976
3977         PR middle-end/48367
3978         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
3979         calculation.
3980
3981 2011-03-30  Jeff Law  <law@redhat.com>
3982
3983         * PR bootstrap/48371
3984         * reload1.c (reload): Fix botch in last change.
3985
3986         * reload.h (struct reload): Fix typo introduced in last change.
3987
3988 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
3989
3990         * config/arm/arm.opt (mhard-float, msoft-float): Mark
3991         Undocumented.  Remove help text.
3992         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
3993         -mhard-float.
3994
3995 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
3996
3997         * doc/options.texi (NegativeAlias): Document.
3998         (Alias): Mention NegativeAlias.
3999         * opt-functions.awk: Handle NegativeAlias.
4000         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
4001         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
4002         * opts.h (CL_NEGATIVE_ALIAS): Define.
4003         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
4004         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
4005         OPT_mspe_.
4006         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
4007         Alias entries.
4008         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
4009         mno-spe and mno-isel instead of mspe=no and -misel=no.
4010
4011 2011-03-29  Mark Wielaard  <mjw@redhat.com>
4012
4013         * common.opt (fdebug-types-section): New flag.
4014         * doc/invoke.texi: Document new -fno-debug-types-section flag.
4015         * dwarf2out.c (use_debug_types): New define.
4016         (struct die_struct): Mark die_id with GTY desc use_debug_types.
4017         (print_die): Guard output of type unit signatures using
4018         use_debug_types.
4019         (build_abbrev_table): Replace assert of dwarf_version >= 4
4020         with assert on use_debug_types.
4021         (size_of_die): Likewise.
4022         (unmark_dies): Likewise.
4023         (value_format): Decide AT_ref_external form on use_debug_types.
4024         (output_die): Replace dwarf_version version check guard with
4025         use_debug_types where appropriate.
4026         (modified_type_die): Likewise.
4027         (gen_reference_type_die): Likewise.
4028         (dwarf2out_start_source_file): Likewise.
4029         (dwarf2out_end_source_file): Likewise.
4030         (prune_unused_types_walk_attribs): Likewise.
4031         (dwarf2out_finish): Likewise.
4032
4033 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
4034
4035         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
4036
4037 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
4038
4039         PR rtl-optimization/48332
4040         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
4041         mode of input operand N and modeN to its actual mode.
4042
4043 2011-03-30  Jeff Law  <law@redhat.com>
4044
4045         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
4046         define accessor macro.
4047         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
4048         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
4049         (reg_equiv_init): Likewise.
4050         (reg_equivs_size): New variable.
4051         (reg_equiv_init_size): Remove.
4052         (allocate_initial_values): Move prototype to here from....
4053         * integrate.h (allocate_initial_values): Remove prototype.
4054         * integrate.c: Include reload.h.
4055         (allocate_initial_values): Corresponding changes.
4056         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
4057         (fix_reg_equiv_init, no_equiv): Corresponding changes.
4058         (update_equiv_regs): Corresponding changes.
4059         (ira): Corresponding changes.
4060         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
4061         (push_secondary_reload): Corresponding changes.
4062         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
4063         (make_memloc, find_reloads_address): Corresponding changes.
4064         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
4065         (find_reloads_address_1): Corresponding changes.
4066         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
4067         (refers_to_regno_for_reload_p): Corresponding changes.
4068         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
4069         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
4070         * reload1.c: Include ggc.h.
4071         (grow_reg_equivs): New function.
4072         (replace_pseudos_in, reload): Corresponding changes.
4073         (calculate_needs_all_insns, alter_regs): Corresponding changes.
4074         (eliminate_regs_1, elimination_effects): Corresponding changes.
4075         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
4076         (delete_output_reload): Likewise.
4077         * caller-save.c (mark_referenced_regs): Corresponding changes.
4078         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
4079         * frv/predicates.md (frv_load_operand): Corresponding changes.
4080         * microblaze/microblaze.c (double_memory_operand): Corresponding
4081         changes.
4082         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
4083         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
4084         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
4085         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
4086         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
4087         changes.
4088         * pa/pa.c (emit_move_sequence): Corresponding changes.
4089         * vax/vax.c (nonindexed_address_p): Corresponding changes.
4090
4091 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
4092
4093         PR target/47551
4094         * config/arm/arm.c (coproc_secondary_reload_class): Handle
4095         structure modes.  Don't check neon_vector_mem_operand for
4096         vector or structure modes.
4097
4098 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
4099             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4100
4101         PR target/43590
4102         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
4103         operand 1 and reshuffle the operands to match.
4104         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
4105
4106 2011-03-30  Christian Schüler  <cschueler@gmx.de>
4107
4108         PR driver/48208
4109         * config/c.opt (F): Added 'Driver' to -F option.
4110
4111         PR driver/48260
4112         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
4113           handler function.
4114         * config/darwin.opt: Added '-arch' option.
4115
4116 2011-03-30  Nick Clifton  <nickc@redhat.com>
4117
4118         * config/rx/rx.md: Add peepholes and patterns to combine
4119         extending loads and simple arithmetic instructions.
4120         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
4121         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
4122         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
4123         modes to use pre-decrement and post-increment addressing.
4124         (rx_is_restricted_memory_address): Add range checking of REG+INT
4125         addresses.
4126         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
4127         (rx_memory_move_cost): Adjust cost of stores.
4128         (rx_adjust_insn_length): New function.
4129
4130 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
4131
4132         PR c/48305
4133         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
4134         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
4135         matching arg00/arg01 types.
4136
4137 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
4138
4139         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
4140         last_location to UNKNOWN_LOCATION.
4141
4142 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
4143
4144         PR target/48349
4145         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
4146         FLOAT_SSE_REGS.
4147
4148 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
4149             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4150
4151         PR bootstrap/48337
4152         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
4153         Init(PROCESSOR_V7).
4154         (sparc_cpu): Likewise.
4155         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
4156         PROCESSOR_V7.
4157
4158 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
4159
4160         PR target/48336
4161         PR middle-end/48342
4162         PR rtl-optimization/48345
4163         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
4164         hard regs for given mode from profitable regs when doing secondary
4165         allocation.
4166
4167 2011-03-29  Jeff Law  <law@redhat.com>
4168
4169         PR bootstrap/48327
4170         * tree-ssa-threadupdate.c (struct redirection_data): Remove
4171         do_not_duplicate field.
4172         (lookup_redirection_data): Corresponding changes.
4173         (create_duplicates): Always create a template block.
4174         (redirect_edges): Remove code which reused the original block
4175         when it was going to become unreachable code.
4176         (thread_block): Don't set do_not_duplicate field.
4177
4178 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
4179
4180         * lto-opts.c (register_user_option_p, lto_register_user_option):
4181         Make type argument unsigned.
4182         * lto-streamer.h (lto_register_user_option): Make type argument
4183         unsigned.
4184         * opth-gen.awk: Make CL_* macros unsigned.
4185         * opts-common.c (find_opt): Make lang_mask argument unsigned.
4186         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
4187         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
4188         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
4189         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
4190         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
4191         (find_opt): Make lang_mask argument unsigned.
4192
4193 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
4194
4195         PR rtl-optimization/48331
4196         PR rtl-optimization/48334
4197         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
4198         for any used algorithm.
4199
4200 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
4201
4202         * ira-conflicts.c (build_object_conflicts): Add unused attribute
4203         to parent_max.
4204
4205 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
4206
4207         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
4208         (alpha_option_override): Don't set alpha_sr_alias_set.
4209         (emit_frame_store_1): Use gen_frame_mem rather than calling
4210         set_mem_alias_set.
4211         (alpha_expand_epilogue): Ditto.
4212
4213 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
4214
4215         PR tree-optimization/48290
4216         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
4217         vectorization, check that relevant phis in the basic block after
4218         the inner loop are really inner loop's exit phis.
4219
4220 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
4221
4222         PR debug/48190
4223         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
4224         (cached_dw_loc_list_def): New structure.
4225         (cached_dw_loc_list): New typedef.
4226         (cached_dw_loc_list_table): New variable.
4227         (cached_dw_loc_list_table_hash): New function.
4228         (cached_dw_loc_list_table_eq): Likewise.
4229         (add_location_or_const_value_attribute): Take a bool cache_p.
4230         Cache the list when the parameter is true.
4231         (gen_formal_parameter_die): Update caller.
4232         (gen_variable_die): Likewise.
4233         (dwarf2out_finish): Likewise.
4234         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
4235         while generating debug info for the decl.
4236         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
4237         (dwarf2out_init): Initialize cached_dw_loc_list_table.
4238         (resolve_addr): Cache the result of resolving a chain of
4239         location lists.
4240
4241 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
4242
4243         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
4244         conflict object hard regset nodes have intersecting hard reg sets.
4245
4246         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
4247         after regstat_init_n_sets_and_refs.
4248
4249         * ira.c: Add more comments at the top.
4250         (setup_stack_reg_pressure_class, setup_pressure_classes):
4251         Add comments how we compute the register pressure classes.
4252         (setup_allocno_and_important_classes): Add more comments.
4253         (setup_class_translate_array, reorder_important_classes)
4254         (setup_reg_class_relations): Add comments.
4255
4256         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
4257         start of the file.
4258
4259         * ira-color.c: Add 2011 to the Copyright line.
4260         (assign_hard_reg):  Add more comments.
4261         (improve_allocation): Ditto.
4262
4263         * ira-costs.c: Add 2011 to the Copyright line.
4264         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
4265         comments.
4266         (setup_regno_cost_classes_by_mode): Ditto.
4267
4268         Initial patches from ira-improv branch:
4269
4270         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
4271
4272         * ira-build.c (ira_create_object): Remove initialization of
4273         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
4274         (ira_create_allocno): Remove initialization of
4275         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
4276         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
4277         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
4278         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
4279         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
4280         Initialize ALLOCNO_ADD_DATA.
4281         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
4282         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
4283         ALLOCNO_REG.
4284         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
4285         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
4286
4287         * ira.c (ira_reallocate): Remove.
4288         (setup_pressure_classes): Call
4289         ira_init_register_move_cost_if_necessary.  Use
4290         ira_register_move_cost instead of ira_get_register_move_cost.
4291         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
4292         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
4293
4294         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
4295         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
4296         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
4297         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
4298         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
4299         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
4300         Fix formatting.
4301         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
4302         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4303         (struct allocno_color_data): New.
4304         (allocno_color_data_t): New typedef.
4305         (allocno_color_data): New definition.
4306         (ALLOCNO_COLOR_DATA): New macro.
4307         (struct object_color_data): New.
4308         (object_color_data_t): New typedef.
4309         (object_color_data): New definition.
4310         (OBJECT_COLOR_DATA): New macro.
4311         (update_copy_costs, calculate_allocno_spill_cost): Call
4312         ira_init_register_move_cost_if_necessary.  Use
4313         ira_register_move_cost instead of ira_get_register_move_cost.
4314         (move_spill_restore, update_curr_costs): Ditto.
4315         (allocno_spill_priority): Make it inline.
4316         (color_pass): Allocate and free allocno_color_dat and object_color_data.
4317         (struct coalesce_data, coalesce_data_t): New.
4318         (allocno_coalesce_data): New definition.
4319         (ALLOCNO_COALESCE_DATA): New macro.
4320         (merge_allocnos, coalesced_allocno_conflict_p): Use
4321         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
4322         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
4323         (coalesce_allocnos): Ditto.
4324         (setup_coalesced_allocno_costs_and_nums): Ditto.
4325         (collect_spilled_coalesced_allocnos): Ditto.
4326         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
4327         (setup_slot_coalesced_allocno_live_ranges): Ditto.
4328         (coalesce_spill_slots): Ditto.
4329         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
4330         free allocno_coalesce_data.
4331
4332         * ira-conflicts.c: Fix formatting.
4333         (process_regs_for_copy): Call
4334         ira_init_register_move_cost_if_necessary.  Use
4335         ira_register_move_cost instead of ira_get_register_move_cost.
4336         (build_object_conflicts): Optimize.
4337
4338         * ira-costs.c (record_reg_classes): Optimize.  Call
4339         ira_init_register_move_cost_if_necessary.  Use
4340         ira_register_move_cost, ira_may_move_in_cost, and
4341         ira_may_move_out_cost instead of ira_get_register_move_cost and
4342         ira_get_may_move_cost.
4343         (record_address_regs): Ditto.
4344         (scan_one_insn): Optimize.
4345         (find_costs_and_classes): Optimize.
4346         (process_bb_node_for_hard_reg_moves): Call
4347         ira_init_register_move_cost_if_necessary.  Use
4348         ira_register_move_cost instead of ira_get_register_move_cost.
4349
4350         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
4351         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
4352         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
4353         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
4354         definitions.
4355         (ira_initiate_emit_data, ira_finish_emit_data)
4356         (create_new_allocno): New functions.
4357         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
4358         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
4359         Use ira_register_move_cost instead of ira_get_register_move_cost.
4360
4361         * ira-int.h: Fix some comments.
4362         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
4363         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4364         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
4365         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
4366         add_data.
4367         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
4368         bitfield after mode.  Make hard_regno a short int.  Make
4369         hard_regno short.  Remove first_coalesced_allocno and
4370         next_coalesced_allocno.  Move mem_optimized_dest_p,
4371         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
4372         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
4373         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
4374         temp, colorable_p.  Add new member add_data.
4375         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
4376         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
4377         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
4378         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
4379         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
4380         (ALLOCNO_ADD_DATA): New macro.
4381         (ira_emit_data_t): New typedef.
4382         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
4383         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
4384         from struct ira_allocno.
4385         (ALLOCNO_EMIT_DATA): New macro.
4386         (ira_allocno_emit_data, allocno_emit_reg): New.
4387         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
4388         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
4389         (OBJECT_ADD_DATA): New macro.
4390         (ira_reallocate): Remove.
4391         (ira_initiate_emit_data, ira_finish_emit_data): New.
4392         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
4393         (ira_init_register_move_cost_if_necessary): New.
4394         (ira_object_conflict_iter_next): Merge into
4395         ira_object_conflict_iter_cond.
4396         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
4397
4398         * ira-live.c (process_single_reg_class_operands): Call
4399         ira_init_register_move_cost_if_necessary.  Use
4400         ira_register_move_cost instead of ira_get_register_move_cost.
4401
4402         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
4403
4404         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
4405
4406         * ira-costs.c: Fix formatting.
4407         (cost_classes, cost_classes_num): Remove.
4408         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
4409         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
4410         (cost_classes_del, cost_classes_htab): New.
4411         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
4412         (initiate_regno_cost_classes, setup_cost_classes): New.
4413         (setup_regno_cost_classes_by_aclass): New.
4414         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
4415         (record_reg_classes): Use regno_cost_classes instead of
4416         cost_classes.  Move checking opposite operand up.
4417         (record_address_regs): Use regno_cost_classes
4418         instead of cost_classes.
4419         (scan_one_insn): Ditto.  Use always general register.
4420         (print_allocno_costs): Use regno_cost_classes instead of
4421         cost_classes.
4422         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
4423         (find_costs_and_classes): Set up cost classes for each registers.
4424         Use also their mode for this.  Use regno_cost_classes instead of
4425         cost_classes.
4426         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
4427         cost_classes.
4428         (free_ira_costs, ira_init_costs): Don't use cost_classes.
4429         (ira_costs, ira_set_pseudo_classes): Call
4430         initiate_regno_cost_classes and finish_regno_cost_classes.
4431
4432         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
4433
4434         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
4435
4436         * target.def (ira_cover_classes): Remove.
4437
4438         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
4439
4440         * doc/tm.texi.in: Ditto.
4441
4442         * ira-conflicts.c: Remove mentioning cover classes from the file.
4443         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
4444         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
4445
4446         * targhooks.c (default_ira_cover_classes): Remove.
4447
4448         * targhooks.h (default_ira_cover_classes): Ditto.
4449
4450         * haifa-sched.c: Remove mentioning cover classes from the file.
4451         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
4452         ira_pressure_classes and ira_pressure_classes_num instead of
4453         ira_reg_class_cover_size and ira_reg_class_cover.  Use
4454         sched_regno_pressure_class instead of sched_regno_cover_class.
4455         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
4456         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4457
4458         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
4459         classes from the file.
4460         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
4461         (struct object_hard_regs, struct object_hard_regs_node): New.
4462         (struct ira_object): New members profitable_hard_regs,
4463         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
4464         (struct ira_allocno): Rename cover_class to aclass.  Rename
4465         cover_class_cost and updated_cover_class_cost to class_cost and
4466         updated_class_cost.  Remove splay_removed_p and
4467         left_conflict_size.  Add new members colorable_p.
4468         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
4469         (ALLOCNO_COLORABLE_P): New macro.
4470         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
4471         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
4472         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
4473         (OBJECT_...): Rename parameter C to O.
4474         (OBJECT_PROFITABLE_HARD_REGS): New macro.
4475         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
4476         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
4477         (struct target_ira_int): New members x_ira_max_memory_move_cost,
4478         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
4479         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
4480         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
4481         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
4482         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
4483         x_ira_reg_class_subunion.
4484         (ira_max_memory_move_cost, ira_max_register_move_cost)
4485         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
4486         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
4487         (ira_important_class_nums, ira_reg_class_superunion): New macros.
4488         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
4489         (ira_reg_class_union): Rename to ira_reg_class_subunion.
4490         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
4491         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
4492         (ira_tune_allocno_costs_and_cover_classes): Rename to
4493         ira_tune_allocno_costs.
4494         (ira_debug_hard_regs_forest): New.
4495         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
4496         (ira_object_conflict_iter_next): Fix comments.
4497         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
4498         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
4499         cover_class to aclass.
4500         (ira_allocate_and_accumulate_costs): Ditto.
4501         (ira_allocate_and_set_or_copy_costs): Ditto.
4502
4503         * opts.c (decode_options): Remove ira_cover_class check.
4504
4505         * ira-color.c: Remove mentioning cover classes from the file.  Use
4506         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
4507         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
4508         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
4509         (splay-tree.h): Remove include.
4510         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
4511         before copy_freq_compare_func.
4512         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
4513         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
4514         New definitions.
4515         (hard_regs_roots, hard_regs_node_vec): Ditto.
4516         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
4517         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
4518         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
4519         (create_new_object_hard_regs_node): Ditto.
4520         (add_new_object_hard_regs_node_to_forest): Ditto.
4521         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
4522         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
4523         Ditto.
4524         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
4525         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
4526         (remove_unused_object_hard_regs_nodes): Ditto.
4527         (enumerate_object_hard_regs_nodes): Ditto.
4528         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
4529         (object_hard_regs_subnode_t): Ditto.
4530         (struct object_hard_regs_subnode): Ditto.
4531         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
4532         (setup_object_hard_regs_subnode_index): Ditto.
4533         (get_object_hard_regs_subnodes_num): Ditto.
4534         (form_object_hard_regs_nodes_forest): Ditto.
4535         (finish_object_hard_regs_nodes_tree): Ditto.
4536         (finish_object_hard_regs_nodes_forest): Ditto.
4537         (allocnos_have_intersected_live_ranges_p): Rename to
4538         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
4539         (pseudos_have_intersected_live_ranges_p): Rename to
4540         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
4541         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
4542         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
4543         (update_copy_costs): Remove assert.  Skip cost update if the hard
4544         reg does not belong the class.
4545         (assign_hard_reg): Process only profitable hard regs.
4546         (uncolorable_allocnos_num): Make it scalar.
4547         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
4548         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
4549         and ira_reg_class_max_nregs.
4550         (bucket_allocno_compare_func): Check frequency first.
4551         (sort_bucket): Add compare function as a parameter.
4552         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
4553         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
4554         (push_allocno_to_stack): Rewrite for checking new allocno
4555         colorability.
4556         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
4557         (push_only_colorable): Pass new parameter to sort_bucket.
4558         (push_allocno_to_spill): Remove.
4559         (allocno_spill_priority_compare): Make it inline and rewrite.
4560         (splay_tree_allocate, splay_tree_free): Remove.
4561         (allocno_spill_sort_compare): New function.
4562         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
4563         build and use splay tree.  Choose first allocno in uncolorable
4564         allocno bucket to spill.  Remove setting spill cost.
4565         (all_conflicting_hard_regs): Remove.
4566         (setup_allocno_available_regs_num): Check only profitable hard
4567         regs.  Print info about hard regs nodes.
4568         (setup_allocno_left_conflicts_size): Remove.
4569         (put_allocno_into_bucket): Don't call
4570         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
4571         (improve_allocation): New.
4572         (color_allocnos): Call setup_profitable_hard_regs,
4573         form_object_hard_regs_nodes_forest, improve_allocation,
4574         finish_object_hard_regs_nodes_forest.  Setup spill cost.
4575         (print_loop_title): Use pressure classes.
4576         (color_allocnso): Ditto.
4577         (do_coloring): Remove allocation and freeing splay_tree_node_pool
4578         and allocnos_for_spilling.
4579         (ira_sort_regnos_for_alter_reg): Don't setup members
4580         {first,next}_coalesced_allocno.
4581         (color): Remove allocating and freeing removed_splay_allocno_vec.
4582         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
4583         prohibited_class_mode_regs.
4584
4585         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
4586         formatting.
4587         (update_allocno_pressure_excess_length): Use pressure classes.
4588         (inc_register_pressure, dec_register_pressure): Check for pressure
4589         class.
4590         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
4591         pressure class.  Use ira_reg_class_nregs instead of
4592         ira_reg_class_max_nregs.
4593         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
4594         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
4595         (single_reg_class): Use ira_reg_class_nregs instead of
4596         ira_reg_class_max_nregs.
4597         (process_bb_node_lives): Use pressure classes.
4598
4599         * ira-emit.c: Remove mentioning cover classes from the file.  Use
4600         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
4601         (change_loop): Use pressure classes.
4602         (modify_move_list): Call ira_set_allocno_class instead of
4603         ira_set_allocno_cover_class.
4604
4605         * ira-build.c: Remove mentioning cover classes from the file.  Use
4606         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
4607         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
4608         ALLOCNO_UPDATED_CLASS_COST instead of
4609         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
4610         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
4611         (ira_create_allocno): Remove initialization of
4612         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
4613         ALLOCNO_COLORABLE_P.
4614         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
4615         Update conflict regs for the objects.
4616         (create_cap_allocno): Remove assert.  Don't propagate
4617         ALLOCNO_AVAILABLE_REGS_NUM.
4618         (ira_free_allocno_costs): New function.
4619         (finish_allocno): Change a part of code into call of
4620         ira_free_allocno_costs.
4621         (low_pressure_loop_node_p): Use pressure classes.
4622         (object_range_compare_func): Don't compare classes.
4623         (setup_min_max_conflict_allocno_ids): Ditto.
4624
4625         * loop-invariant.c: Remove mentioning cover classes from the file.
4626         Use ira_pressure_classes and ira_pressure_classes_num instead of
4627         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
4628         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
4629         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4630         Use reg_allocno_class instead of reg_cover_class.
4631         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
4632         STACK_REG_COVER_CLASS.
4633         (get_regno_cover_class): Rename to get_regno_pressure_class.
4634         (move_loop_invariants): Initialize and finalize regstat.
4635
4636         * ira.c: Remove mentioning cover classes from the file.  Add
4637         comments about coloring without cover classes.  Use ALLOCNO_CLASS
4638         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
4639         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
4640         setup_class_subset_and_memory_move_costs.
4641         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
4642         (setup_cover_and_important_classes): Rename to
4643         setup_allocno_and_important_classes.
4644         (setup_class_translate_array): New.
4645         (setup_class_translate): Call it for allocno and pressure classes.
4646         (cover_class_order): Rename to allocno_class_order.
4647         (comp_reg_classes_func): Use ira_allocno_class_translate instead
4648         of ira_class_translate.
4649         (reorder_important_classes): Set up ira_important_class_nums.
4650         (setup_reg_class_relations): Set up ira_reg_class_superunion.
4651         (print_class_cover): Rename to print_classes.  Add parameter.
4652         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
4653         Print pressure classes too.
4654         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
4655         setup_reg_subclasses.
4656         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
4657         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4658         (setup_prohibited_class_mode_regs): Use
4659         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
4660         (clarify_prohibited_class_mode_regs): New function.
4661         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
4662         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
4663         (ira_init_once): Initialize them.
4664         (free_register_move_costs): Process them.
4665         (ira_init): Move calls of find_reg_classes and
4666         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
4667         Call clarify_prohibited_class_mode_regs.
4668         (ira_no_alloc_reg): Remove.
4669         (too_high_register_pressure_p): Use pressure classes.
4670
4671         * sched-deps.c: Remove mentioning cover classes from the file.
4672         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
4673         ira_pressure_classes and ira_pressure_classes_num instead of
4674         ira_reg_class_cover_size and ira_reg_class_cover.
4675         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
4676         sched_regno_pressure_class instead of sched_regno_cover_class.
4677         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
4678         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4679
4680         * ira.h: Add 2010 to Copyright.
4681         (ira_no_alloc_reg): Remove external.
4682         (struct target_ira): Rename x_ira_hard_regno_cover_class,
4683         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
4684         x_ira_class_translate to x_ira_hard_regno_allocno_class,
4685         x_ira_allocno_classes_num, x_ira_allocno_classes, and
4686         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
4687         x_ira_pressure_classes, x_ira_pressure_class_translate, and
4688         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
4689         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
4690         x_ira_no_alloc_regs.
4691         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
4692         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
4693         ira_allocno_classes_num and ira_allocno_classes.
4694         (ira_class_translate): Rename to ira_allocno_class_translate.
4695         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
4696         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
4697         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4698         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
4699         (ira_no_alloc_regs): New.
4700
4701         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
4702         classes from the file.  Use ALLOCNO_CLASS instead of
4703         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
4704         ALLOCNO_COVER_CLASS_COST.
4705         (regno_cover_class): Rename to regno_aclass.
4706         (record_reg_classes): Use ira_reg_class_subunion instead of
4707         ira_reg_class_union.
4708         (record_address_regs): Check overflow.
4709         (scan_one_insn): Ditto.
4710         (print_allocno_costs): Print total mem cost fore regional allocation.
4711         (print_pseudo_costs): Use REG_N_REFS.
4712         (find_costs_and_classes): Use classes intersected with them on the
4713         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
4714         ira_reg_class_union.  Use ira_allocno_class_translate and
4715         regno_aclass instead of ira_class_translate and regno_cover_class.
4716         Modify code for finding regno_aclass.  Setup preferred classes for
4717         the next pass.
4718         (setup_allocno_cover_class_and_costs): Rename to
4719         setup_allocno_class_and_costs.  Use regno_aclass instead of
4720         regno_cover_class.  Use ira_set_allocno_class instead of
4721         ira_set_allocno_cover_class.
4722         (init_costs, finish_costs): Use regno_aclass instead of
4723         regno_cover_class.
4724         (ira_costs): Use setup_allocno_class_and_costs instead of
4725         setup_allocno_cover_class_and_costs.
4726         (ira_tune_allocno_costs_and_cover_classes): Rename to
4727         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
4728         by processing objects.  Use ira_reg_class_max_nregs instead of
4729         ira_reg_class_nregs.
4730
4731         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
4732
4733         * sched-int.h: Remove mentioning cover classes from the file.
4734         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
4735
4736         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
4737         classes from the file.
4738         (struct reg_pref): Rename coverclass into allocnoclass.
4739         (reg_cover_class): Rename to reg_allocno_class.
4740
4741         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
4742
4743         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
4744
4745         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
4746
4747         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
4748
4749         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
4750
4751         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
4752
4753         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
4754
4755         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
4756
4757         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
4758
4759         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
4760
4761         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
4762         (i386_ira_cover_classes): Ditto.
4763
4764         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
4765
4766         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
4767
4768         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
4769
4770         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
4771
4772         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
4773
4774         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
4775
4776         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
4777         (mips_ira_cover_classes): Ditto.
4778
4779         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
4780
4781         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
4782
4783         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
4784
4785         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
4786
4787         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
4788
4789         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
4790         (IRA_COVER_CLASSES_VSX): Ditto.
4791
4792         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
4793         (rs6000_ira_cover_classes): Ditto.
4794
4795         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
4796
4797         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
4798
4799         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
4800
4801         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
4802
4803         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
4804
4805         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
4806
4807         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
4808
4809         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
4810
4811         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
4812
4813         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
4814
4815 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
4816
4817         PR debug/48253
4818         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
4819         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
4820         dw_fde_unlikely_section_end_label, cold_in_std_section,
4821         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
4822         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
4823         fields.
4824         (output_fde): Use dw_fde_second_{begin,end} if second is
4825         true, otherwise dw_fde_{begin,end}.
4826         (output_call_frame_info): Test dw_fde_second_begin != NULL
4827         instead of dw_fde_switched_sections.
4828         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
4829         fields, initialize new fields.  Initialize in_std_section
4830         unconditionally from the first partition.
4831         (dwarf2out_end_epilogue): Don't override dw_fde_end when
4832         dw_fde_second_begin is non-NULL.
4833         (dwarf2out_switch_text_section): Stop initializing removed
4834         dw_fde_struct fields, initialize new fields, initialize
4835         also dw_fde_end here.  Set dw_fde_switch_cfi even when
4836         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
4837         (struct var_loc_list_def): Add last_before_switch field.
4838         (arange_table, arange_table_allocated, arange_table_in_use,
4839         ARANGE_TABLE_INCREMENT, add_arange): Removed.
4840         (size_of_aranges): Count !in_std_section and !second_in_std_section
4841         hunks in fdes, instead of looking at arange_table_in_use.
4842         (output_aranges): Add aranges_length argument, don't call
4843         size_of_aranges here.  Instead of using aranges_table*
4844         emit ranges for fdes when !in_std_section resp.
4845         !second_in_std_section.
4846         (dw_loc_list): Break ranges crossing section switch.
4847         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
4848         use dw_fde_second_end instead of dw_fde_end as end of last range.
4849         (gen_subprogram_die): Don't call add_arange.  Use
4850         dw_fde_{begin,end} for first partition and if switched
4851         section dw_fde_second_{begin,end} for the second.
4852         (var_location_switch_text_section_1,
4853         var_location_switch_text_section): New functions.
4854         (dwarf2out_begin_function): Initialize cold_text_section even
4855         when function_section () isn't text_section.
4856         (prune_unused_types): Don't walk arange_table.
4857         (dwarf2out_finish): Don't needlessly test
4858         flag_reorder_blocks_and_partition when testing cold_text_section_used.
4859         If info_section_emitted, call size_of_aranges and if it indicates
4860         non-empty .debug_aranges, call output_aranges with the computed
4861         size.  Stop using removed dw_fde_struct fields, use
4862         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
4863         for second.
4864
4865         PR debug/48203
4866         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
4867         create ENTRY_VALUE if incoming or address of incoming's MEM
4868         is a hard REG.
4869         * dwarf2out.c (mem_loc_descriptor): Don't emit
4870         DW_OP_GNU_entry_value of DW_OP_fbreg.
4871         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
4872         on ENTRY_VALUE is able to find the canonical parameter VALUE.
4873         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
4874         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
4875         ENTRY_VALUE_EXPs.
4876         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
4877         is a REG_P or MEM_P with REG_P address, compute hash directly
4878         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
4879         (preserve_only_constants): Don't clear VALUES forwaring
4880         ENTRY_VALUE to some other VALUE.
4881
4882 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
4883
4884         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
4885         instead of GEN_INT.
4886
4887 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
4888
4889         * cfgexpand.c (expand_gimple_cond): Always set the source location and
4890         block before expanding the statement.
4891         (expand_gimple_stmt_1): Likewise.  Set them here...
4892         (expand_gimple_stmt): ...and not here.  Tidy.
4893         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
4894         unknown.
4895
4896 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
4897
4898         * Makefile.in: New rule for cprop.o.
4899         * gcse.c: Move constant/copy propagation to cprop.c.
4900         (compute_local_properties): Only handle expression tables.
4901         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
4902         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
4903         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
4904         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
4905         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
4906         compute_cprop_data, find_used_regs, try_replace_reg,
4907         find_avail_set, cprop_jump, constprop_register, cprop_insn,
4908         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
4909         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
4910         find_bypass_set, reg_killed_on_edge, bypass_block,
4911         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
4912         execute_rtl_cprop, pass_rtl_cprop): Move to...
4913         * cprop.c: ...here.  New file, constant/copy propagation for RTL
4914         moved from gcse.c to here with minor cleanups in duplicated code.
4915
4916 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
4917
4918         * config/i386/i386.c (flag_opts): Fix a typo in
4919         -mavx256-split-unaligned-store.
4920
4921 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
4922
4923         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
4924         LIBCALL_VALUE): Remove macros.
4925         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4926         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4927         (h8300_function_value, h8300_libcall_value,
4928         h8300_function_value_regno_p): New functions.
4929
4930 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
4931
4932         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
4933
4934 2011-03-28  Jeff Law  <law@redhat.com>
4935
4936         * tree-ssa-threadupdate.c (redirect_edges): Call
4937         create_edge_and_update_destination_phis as needed.
4938         (create_edge_and_update_destination_phis): Accept new BB argument.
4939         All callers updated.
4940         (thread_block): Do not update the profile when threading around
4941         intermediate blocks.
4942         (thread_single_edge): Likewise.
4943         (determine_bb_domination_status): If BB is not a successor of the
4944         loop header, return NONDOMINATING.
4945         (register_jump_thread): Note when we register a jump thread around
4946         an intermediate block.
4947         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
4948         (thread_across_edge): Use it.
4949
4950 2011-03-28  Tristan Gingold  <gingold@adacore.com>
4951
4952         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
4953         when for_return is 2.
4954
4955 2011-03-28  Jeff Law  <law@redhat.com>
4956
4957         * var-tracking.c (canonicalize_values_mark): Delete unused
4958         lhs assignment.
4959         (canonicalize_values_star, set_variable_part): Likewise.
4960         (clobber_variable_part, delete_variable_part): Likewise.
4961
4962 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
4963
4964         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
4965
4966 2011-03-28  Martin Jambor  <mjambor@suse.cz>
4967
4968         * tree-inline.c (expand_call_inline): Do not check that destination
4969         node is analyzed.
4970         (optimize_inline_calls): Assert that destination node is analyzed.
4971         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
4972         not call tree_lowering_passes.
4973         * cgraph.h (cgraph_analyze_function): Declare.
4974         * cgraphunit.c (cgraph_analyze_function): Make public.
4975
4976 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
4977
4978         * config/sparc/sparc-opts.h: New.
4979         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
4980         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
4981         (sparc_option_override): Store processor_type enumeration rather
4982         than string in cpu_default.  Remove name and enumeration from
4983         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
4984         without using sparc_select.  Use target_flags_explicit instead of
4985         fpu_option_set.
4986         * config/sparc/sparc.h (enum processor_type): Move to
4987         sparc-opts.h.
4988         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
4989         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
4990         HeaderInclude entry.
4991         (mcpu=, mtune=): Use Var and Enum.
4992         (sparc_processor_type): New Enum and EnumValue entries.
4993
4994 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4995             Iain Sandoe  <iains@gcc.gnu.org>
4996
4997         PR target/48245
4998         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
4999
5000 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
5001
5002         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
5003         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
5004         Insert new statements at it in lieu of STMT.
5005         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
5006         * tree-vect-stmts.c (vectorizable_store): Likewise.
5007         (vectorizable_load): Likewise.
5008
5009 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
5010
5011         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
5012         (divtf3): Ditto.
5013         (multf3): Ditto.
5014         (subtf3): Ditto.
5015
5016 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
5017
5018         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
5019         unaligned 256bit load/store.
5020         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
5021         (*avx_movdqu<avxmodesuffix>): Likewise.
5022
5023 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5024
5025         PR target/48288
5026         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
5027         * config/pa/pa.md (iordi3): Use new predicate in expander.
5028         (iorsi3): Likewise.
5029
5030 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
5031
5032         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
5033         FUNCTION_VALUE_REGNO_P): Remove macros.
5034         * config/mips/mips-protos.h (mips_function_value): Remove.
5035         * config/mips/mips.c (mips_function_value): Rename to...
5036         (mips_function_value_1): ... this. Make static.  Handle receiving
5037         the function type in 'fn_decl_or_type' argument.
5038         (mips_function_value, mips_libcall_value,
5039         mips_function_value_regno_p): New function.
5040         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5041         TARGET_FUNCTION_VALUE_REGNO_P): Define.
5042
5043 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
5044
5045         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
5046         and -mavx256-split-unaligned-store.
5047         (ix86_option_override_internal): Split 32-byte AVX unaligned
5048         load/store by default.
5049         (ix86_avx256_split_vector_move_misalign): New.
5050         (ix86_expand_vector_move_misalign): Use it.
5051
5052         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
5053         -mavx256-split-unaligned-store.
5054
5055         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
5056         256bit load/store.  Generate unaligned store on misaligned memory
5057         operand.
5058         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
5059         256bit load/store.
5060         (*avx_movdqu<avxmodesuffix>): Likewise.
5061
5062         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
5063         -mavx256-split-unaligned-store.
5064
5065 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
5066
5067         PR target/38598
5068         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
5069         Update commentary.
5070
5071 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
5072
5073         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
5074         opno arguments with an expand_operand.  Use create_input_operand.
5075         (mips_prepare_builtin_target): Delete.
5076         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
5077         functions.
5078         (mips_expand_builtin_direct): Use create_output_operand and
5079         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
5080         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
5081         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
5082
5083 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
5084
5085         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
5086         function.
5087         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
5088
5089 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
5090
5091         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
5092         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
5093         basic blocks and call commit_edge_insertions directly.
5094         (fixup_abnormal_edges): Move from here to...
5095         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
5096         on the edges and return whether some have actually been inserted.
5097         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
5098         compensation code.
5099
5100 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
5101
5102         PR rtl-optimization/48144
5103         * sel-sched-ir.c (merge_history_vect): Factor out from ...
5104         (merge_expr_data): ... here.
5105         (av_set_intersect): Rename to av_set_code_motion_filter.
5106         Update all callers.  Call merge_history_vect when an expression
5107         is found in both sets.
5108         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
5109
5110 2011-03-26  Alan Modra  <amodra@gmail.com>
5111
5112         * config/rs6000/predicates.md (word_offset_memref_op): Handle
5113         cmodel medium addresses.
5114         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
5115         64-bit gpr loads and stores.
5116         (rs6000_secondary_reload_ppc64): New function.
5117         * config/rs6000/rs6000-protos.h: Declare it.
5118         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
5119
5120 2011-03-26  Alan Modra  <amodra@gmail.com>
5121
5122         PR target/47487
5123         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
5124         GNU Go in traceback table.
5125
5126 2011-03-25  Richard Henderson  <rth@redhat.com>
5127
5128         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
5129         if there are exactly 6 operands.
5130         (set_storage_via_setmem): Similarly.
5131
5132 2011-03-25  Kai Tietz  <ktietz@redhat.com>
5133
5134         * collect2.c (write_c_file_stat): Handle backslash
5135         as right-hand directory separator.
5136         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
5137         checking just for slash.
5138         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
5139         instead of checking for trailing slash.
5140         * gcc.c (record_temp_file): Use filename_cmp instead
5141         of strcmp.
5142         (do_spec_1): Likewise.
5143         (replace_outfile_spec_function): Likewise.
5144         (is_directory): Use filename_ncmp instead of strncmp.
5145         (print_multilib_info): Likewise.
5146         * gcov.c (find_source): Use filename_cmp instead
5147         instead of strcmp.
5148         (make_gcov_file_name): Fix order of slash/backslash
5149         checks.
5150         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
5151         (add_standard_paths): Likewise.
5152         * mips-tfile.c (saber_stop): Handle backslash.
5153         * prefix.c (update_path): Use filename_ncmp instead of
5154         strncmp.
5155         * profile.c (output_location): Use filename_cmp instead
5156         of strcmp.
5157         * read-md.c (handle_toplevel_file): Handle backslash.
5158         * tlink.c (frob_extension):  Likewise.
5159         * tree-cfg.c (same_line_p): Use filename_cmp instead of
5160         strcmp.
5161         * tree-dump.c (dequeue_and_dump): Handle backslash.
5162         * tree.c (get_file_function_name): Likewise.
5163         * gengtype.c (read_input_list): Likewise.
5164         (get_file_realbasename): Likewise.
5165         (get_output_file_with_visibility): Use filename_cmp
5166         instead of strcmp.
5167
5168 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
5169
5170         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
5171         case to VFPv1.
5172
5173 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
5174
5175         * fold-const.c (expr_location_or): New function.
5176         (fold_truth_not_expr): Call it.
5177
5178 2011-03-25  Jeff Law  <law@redhat.com>
5179
5180         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
5181         va_end.
5182         * c-family/c-common.c (def_fn_type): Likewise.
5183         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
5184         * emit-rtl.c (gen_rtvec): Likewise.
5185         * lto/lto-lang.c (def_fn_type): Likewise.
5186
5187 2011-03-25  Richard Guenther  <rguenther@suse.de>
5188
5189         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
5190         also generate copies.
5191         (fini_copy_prop): Handle constant values properly.
5192
5193 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
5194
5195         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
5196         mode size instead of bitsize with DWARF2_ADDR_SIZE.
5197         (hash_loc_operands, compare_loc_operands): Handle
5198         DW_OP_GNU_entry_value.
5199
5200 2011-03-25  Kai Tietz  <ktietz@redhat.com>
5201
5202         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
5203         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
5204         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
5205         comment and use macro TARGET_64BIT_MS_ABI instead.
5206         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
5207         and change default behavior for 32-bit MS_ABI.
5208         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
5209         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
5210         32-bit, too.
5211         (ix86_cfun_abi): Likewise.
5212         (ix86_maybe_switch_abi): Adjust comment.
5213         (init_cumulative_args): Check for bit-ness in MS_ABI case.
5214         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
5215         instead of checking for SYSV_ABI.
5216         (ix86_nsaved_sseregs): Likewise.
5217         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
5218         to 16 bytes.
5219         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
5220         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
5221         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
5222         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
5223         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
5224
5225 2011-03-25  Richard Guenther  <rguenther@suse.de>
5226
5227         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
5228         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
5229         (verify_gimple): Remove.
5230         * tree-cfg.c (verify_gimple_call): Merge verification
5231         from verify_stmts.
5232         (verify_gimple_phi): Merge verification from verify_stmts.
5233         (verify_gimple_label): New function.
5234         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
5235         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
5236         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
5237         (verify_stmts): Rename to verify_gimple_in_cfg.
5238         (verify_gimple_in_cfg): New function.
5239         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
5240         * tree-ssa.c (verify_ssa): Likewise.
5241         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
5242
5243 2011-03-25  Richard Guenther  <rguenther@suse.de>
5244
5245         * passes.c (init_optimization_passes): Add FRE pass after
5246         early SRA.
5247
5248 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
5249             Andrew Stubbs  <ams@codesourcery.com>
5250
5251         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
5252         for Cortex-A8.
5253         (arm_movdi_vfp_cortexa8): New pattern.
5254         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
5255         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
5256         instructions when tuning for Cortex-A8.  Set attribute "arch".
5257         * config/arm/arm.md: Move include arm-tune.md up a bit.
5258         (define_attr "arch"): Add "onlya8" and "nota8" values.
5259         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
5260
5261 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
5262
5263         PR bootstrap/48282
5264         Revert:
5265         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5266
5267         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5268         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
5269         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5270         * passes.c (init_optimization_passes): Move
5271         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5272
5273 2011-03-25  Kai Tietz  <ktietz@redhat.com>
5274
5275         * c-typeck.c (comptypes_internal): Replace target
5276         hook call of comp_type_attributes by version in tree.c file.
5277         * gimple.c (gimple_types_compatible_p_1): Likewise.
5278         * tree-ssa.c (useless_type_conversion_p): Likewise.
5279         * tree.c (build_type_attribute_qual_variant): Likewise.
5280         (attribute_value_equal): New static helper function.
5281         (comp_type_attributes): New function.
5282         (merge_attributes): Use attribute_value_equal for comparison.
5283         (attribute_list_contained): Likewise.
5284         * tree.h (comp_type_attributes): New prototype.
5285
5286 2011-03-25  Richard Guenther  <rguenther@suse.de>
5287
5288         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
5289         of complex types at -O0.
5290         (verify_gimple_assign_binary): Likewise.
5291         (verify_gimple_assign_ternary): Likewise.
5292
5293 2011-03-24  Mark Wielaard  <mjw@redhat.com>
5294
5295         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
5296         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
5297
5298 2011-03-24  Mark Wielaard  <mjw@redhat.com>
5299
5300         PR debug/48041
5301         * dwarf2out.c (output_abbrev_section): Only write table when
5302         abbrev_die_table_in_use > 1.
5303
5304 2011-02-24  Richard Henderson  <rth@redhat.com>
5305
5306         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
5307         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
5308         (alpha_expand_unaligned_load_words): Use extql.
5309         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
5310         (emit_insxl): Handle all modes for consistency.
5311
5312 2011-02-24  Richard Henderson  <rth@redhat.com>
5313
5314         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
5315         (alpha_expand_unaligned_load): Likewise.
5316         (alpha_expand_unaligned_store): Likewise.
5317         (alpha_expand_unaligned_load_words): Likewise.
5318         (alpha_expand_unaligned_store_words): Likewise.
5319         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
5320         (alpha_split_lock_test_and_set_12): Likewise.
5321         (print_operand, alpha_fold_builtin_extxx): Likewise.
5322         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
5323         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
5324         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
5325         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
5326         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
5327         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
5328         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
5329         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
5330         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
5331         (extwl, extll, extql): Similarly.
5332         (inswh, inslh, insqh): Similarly.
5333         (mskbl, mskwl, mskll, mskql): Similarly.
5334         (mskwh, msklh, mskqh): Similarly.
5335
5336 2011-02-24  Richard Henderson  <rth@redhat.com>
5337
5338         * config/alpha/alpha.md (attribute isa): Add er, ner.
5339         (attribute enabled): Handle them.
5340         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
5341
5342 2011-02-24  Richard Henderson  <rth@redhat.com>
5343
5344         * config/alpha/alpha.md (attribute isa): Add vms.
5345         (attribute enabled): Handle it.
5346         (*movsf): Merge *movsf_{nofix,fix,nofp}.
5347         (*movdf): Merge *movdf_{nofix,fix,nofp}.
5348         (*movtf): Rename from *movtf_internal for consistency.
5349         (*movsi): Merge with *movsi_nt_vms.
5350         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
5351         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
5352         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
5353         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
5354
5355 2011-02-24  Richard Henderson  <rth@redhat.com>
5356
5357         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
5358         (extendqisi2, extendhisi2): Likewise.
5359         (extendqidi2): Simplify BWX/non-BWX expansions.
5360         (extendhidi2): Similarly.
5361
5362 2011-02-24  Richard Henderson  <rth@redhat.com>
5363
5364         * config/alpha/alpha.md (attribute isa): New.
5365         (attribute enabled): New.
5366         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
5367         (zero_extendqisi2, zero_extendqidi2): Similarly.
5368         (zero_extendhisi2, zero_extendhidi2): Similarly.
5369         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
5370
5371 2011-02-24  Richard Henderson  <rth@redhat.com>
5372
5373         * config/alpha/predicates.md (input_operand): Revert last change;
5374         update comment to mention 32-bit VMS rather than Windows.
5375
5376 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5377
5378         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5379         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
5380         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5381         * passes.c (init_optimization_passes): Move
5382         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5383
5384 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
5385
5386         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
5387
5388 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
5389
5390         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
5391         correctly.
5392
5393 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
5394
5395         PR debug/48204
5396         * simplify-rtx.c (simplify_const_unary_operation): Call
5397         real_convert when changing mode class with FLOAT_EXTEND.
5398
5399 2011-03-24  Nick Clifton  <nickc@redhat.com>
5400
5401         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
5402         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
5403         * config/rx/rx.c (rx_option_override): Set align_jumps,
5404         align_loops and align_labels if not set by the user.
5405         (rx_align_for_label): New function.
5406         (rx_max_skip_for_label): New function.
5407         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
5408         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
5409         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
5410         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
5411         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
5412
5413 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
5414
5415         PR rtl-optimization/48263
5416         * optabs.c (expand_binop_directly): Reinstate convert_modes code
5417         and original commutative_p handling.  Use maybe_gen_insn.
5418
5419 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5420
5421         * reload.c (find_reloads_subreg_address): Add address_reloaded
5422         parameter and return true there if the full address has been
5423         reloaded.
5424         (find_reloads_toplev): Pass address_reloaded flag.
5425         (find_reloads_address_1): Don't use address_reloaded parameter.
5426
5427 2011-03-24  Jeff Law  <law@redhat.com>
5428
5429         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
5430         unused variable "ann".
5431         (remove_unused_locals): Likewise.
5432
5433         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
5434         statement.
5435
5436         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
5437         after it is freed.
5438
5439 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5440
5441         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
5442         for invalid symbolic addresses.
5443         (s390_secondary_reload): Don't use s390_check_symref_alignment for
5444         larl operands.
5445
5446 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
5447
5448         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
5449         the argument in calls to fold_truth_not_expr.
5450
5451 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5452
5453         * tree.c (record_node_allocation_statistics): New function.
5454         (make_node_stat, copy_node_stat, build_string): Call it.
5455         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
5456         (build1_stat, build_omp_clause): Likewise.
5457
5458 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
5459
5460         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
5461         last commit.
5462
5463 2011-03-24  Richard Guenther  <rguenther@suse.de>
5464
5465         PR tree-optimization/48271
5466         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
5467         blocks that still exist.
5468
5469 2011-03-24  Richard Guenther  <rguenther@suse.de>
5470
5471         PR tree-optimization/48270
5472         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
5473         not free datarefs before ddrs.
5474
5475 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
5476
5477         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
5478         from the address built for a reference with variable offset.
5479
5480 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
5481
5482         PR target/48237
5483         * config/i386/i386.md (*movdf_internal_rex64): Do not split
5484         alternatives that can be handled with movq or movabsq insn.
5485         (*movdf_internal): Disable for !TARGET_64BIT.
5486         (*movdf_internal_nointeger): Ditto.
5487         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
5488
5489 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5490
5491         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
5492         (FUNCTION_ARG_ADVANCE): Likewise.
5493         * tm.texi.in: Change references to them to hook references.
5494         * tm.texi: Regenerate.
5495         * targhooks.c (default_function_arg): Eliminate check for target macro.
5496         (default_function_incoming_arg): Likewise.
5497         (default_function_arg_advance): Likewise.
5498         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
5499         (function_arg_advance): Likewise.
5500         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
5501
5502 2011-03-24  Richard Guenther  <rguenther@suse.de>
5503
5504         PR middle-end/48269
5505         * tree-object-size.c (addr_object_size): Do not double-account
5506         for MEM_REF offsets.
5507
5508 2011-03-24  Diego Novillo  <dnovillo@google.com>
5509
5510         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
5511         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
5512         (lto_input_data_block): Move from lto-opts.c.  Make extern.
5513         Update all users.
5514         (lto_input_string): Rename from input_string.  Make extern.
5515         Update all users.
5516         * lto-streamer-out.c (lto_output_string_with_length): Rename from
5517         output_string_with_length.
5518         Output 0 to indicate a non-NULL string.  Update all callers to
5519         not emit 0.
5520         (lto_output_string): Rename from output_string.  Make extern.
5521         Update all users.
5522         (lto_output_decl_state_streams): Make extern.
5523         (lto_output_decl_state_refs): Make extern.
5524         * lto-streamer.h (lto_input_string): Declare.
5525         (lto_input_data_block): Declare.
5526         (lto_output_string): Declare.
5527         (lto_output_string_with_length): Declare.
5528         (lto_output_decl_state_streams): Declare.
5529         (lto_output_decl_state_refs): Declare.
5530
5531 2011-03-24  Richard Guenther  <rguenther@suse.de>
5532
5533         PR tree-optimization/46562
5534         * tree.c (build_invariant_address): New function.
5535         * tree.h (build_invariant_address): Declare.
5536         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
5537         a renamed function moved ...
5538         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
5539         Take valueization callback parameter.
5540         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
5541         * gimple-fold.h: New file.
5542         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
5543         (ccp_fold, fold_const_aggregate_ref,
5544         fold_ctor_reference, fold_nonarray_ctor_reference,
5545         fold_array_ctor_reference, fold_string_cst_ctor_reference,
5546         get_base_constructor): Move ...
5547         * gimple-fold.c: ... here.
5548         (gimple_fold_stmt_to_constant_1): New function
5549         split out from ccp_fold.  Take a valueization callback parameter.
5550         Valueize all operands.
5551         (gimple_fold_stmt_to_constant): New wrapper function.
5552         (fold_const_aggregate_ref_1): New function split out from
5553         fold_const_aggregate_ref.  Take a valueization callback parameter.
5554         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
5555         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
5556         invariant POINTER_PLUS_EXPRs to invariant form.
5557         (vn_valueize): New function.
5558         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
5559         * tree-vrp.c (vrp_valueize): New function.
5560         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
5561         to fold statements to constants.
5562         * tree-ssa-pre.c (eliminate): Properly guard propagation of
5563         function declarations.
5564         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
5565         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
5566
5567 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
5568
5569         * config/h8300/predicates.md (jump_address_operand): Fix register
5570         mode check.
5571
5572 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
5573
5574         * doc/invoke.texi (max-stores-to-sink): Document.
5575         * params.h (MAX_STORES_TO_SINK): Define.
5576         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
5577         if either vectorization or if-conversion is disabled.
5578         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
5579         tree-vect-data-refs.c vect_equal_offsets.
5580         (dr_equal_offsets_p): New function.
5581         (find_data_references_in_bb): Remove static.
5582         * tree-data-ref.h (find_data_references_in_bb): Declare.
5583         (dr_equal_offsets_p): Likewise.
5584         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
5585         (vect_drs_dependent_in_basic_block): Update calls to
5586         vect_equal_offsets.
5587         (vect_check_interleaving): Likewise.
5588         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
5589         (cond_if_else_store_replacement): Rename to...
5590         (cond_if_else_store_replacement_1): ... this.  Change arguments and
5591         documentation.
5592         (cond_if_else_store_replacement): New function.
5593         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
5594         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
5595
5596 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
5597
5598         PR target/46934
5599         * config/arm/arm.md (casesi): Use the gen_int_mode() function
5600         to subtract lower bound instead of GEN_INT().
5601
5602 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
5603
5604         PR other/48179
5605         PR other/48221
5606         PR other/48234
5607         * doc/extend.texi (Alignment): Move section to match order in TOC.
5608         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
5609         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
5610
5611 2011-03-23  Jeff Law  <law@redhat.com>
5612
5613         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
5614         before removing the edge.
5615
5616         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
5617         it may have been freed by redirect_branch_edge or
5618         redirect_edge_succ_nodup.
5619
5620 2011-03-23  Richard Guenther  <rguenther@suse.de>
5621
5622         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
5623         (check_va_list_escapes): Likewise.
5624         (check_all_va_list_escapes): Likewise.
5625
5626 2011-03-23  Richard Guenther  <rguenther@suse.de>
5627
5628         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
5629         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
5630         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
5631         (alias.o): Likewise.
5632         (ipa-type-escape.o): Remove.
5633         (ipa-struct-reorg.o): Likewise.
5634         (GTFILES): Remove ipa-struct-reorg.c.
5635         * alias.c: Do not include ipa-type-escape.h.
5636         * tree-ssa-alias.c: Likewise.
5637         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
5638         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
5639         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
5640         and ipa-type-escape passes.
5641         * tree-pass.h (pass_ipa_type_escape): Remove.
5642         (pass_ipa_struct_reorg): Likewise.
5643         * ipa-struct-reorg.h: Remove.
5644         * ipa-struct-reorg.c: Likewise.
5645         * ipa-type-escape.h: Likewise.
5646         * ipa-type-escape.c: Likewise.
5647         * doc/invoke.texi (-fipa-struct-reorg): Remove.
5648         (--param struct-reorg-cold-struct-ratio): Likewise.
5649         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
5650         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
5651         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
5652
5653 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5654
5655         * config/s390/2084.md: Enable all insn reservations also for z9_ec
5656         cpu attribute value.
5657         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
5658         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
5659         * config/s390/s390.c (processor_flags_table): New constant array.
5660         (s390_handle_arch_option): Remove.
5661         (s390_handle_option): Remove s390_handle_arch_option invocations
5662         and OPT_mwarn_framesize_ handling.
5663         (s390_option_override): Remove s390_handle_arch_option invocation.
5664         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
5665         warnings.
5666         * config/s390/s390.md (cpu attribute): Add z9_ec value.
5667         * config/s390/s390.opt (s390_tune, s390_arch)
5668         (march=): Replace s390_arch_option enum and values with
5669         processor_type.  Set variable name to s390_arch.  Set
5670         initialization value.
5671         (mtune=): Replace s390_arch_option with processor_type.  Set
5672         variable name to s390_tune.  Set initialization value.
5673
5674 2011-03-23  Julian Brown  <julian@codesourcery.com>
5675
5676         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
5677         accesses which are not naturally aligned.
5678
5679 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
5680
5681         PR target/47553
5682         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
5683
5684 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
5685
5686         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
5687         parameter from "int" to "enum insn_code".
5688         (expand_operand_type): New enum.
5689         (expand_operand): New structure.
5690         (create_expand_operand): New function.
5691         (create_fixed_operand, create_output_operand): Likewise
5692         (create_input_operand, create_convert_operand_to): Likewise.
5693         (create_convert_operand_from, create_address_operand): Likewise.
5694         (create_integer_operand): Likewise.
5695         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
5696         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5697         (expand_insn, expand_jump_insn): Likewise.
5698         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
5699         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
5700         (expand_movstr, expand_builtin___clear_cache): Likewise.
5701         (expand_builtin_lock_release): Likewise.
5702         * explow.c (allocate_dynamic_stack_space): Likewise.
5703         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
5704         and use the default handling in that case.
5705         * expmed.c (check_predicate_volatile_ok): Delete.
5706         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
5707         (emit_cstore): Likewise.
5708         * expr.c (emit_block_move_via_movmem): Likewise.
5709         (set_storage_via_setmem, expand_assignment): Likewise.
5710         (emit_storent_insn, try_casesi): Likewise.
5711         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
5712         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
5713         (expand_vec_shift_expr, expand_binop_directly): Likewise.
5714         (expand_twoval_unop, expand_twoval_binop): Likewise.
5715         (expand_unop_direct, emit_indirect_jump): Likewise.
5716         (emit_conditional_move, vector_compare_rtx): Likewise.
5717         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
5718         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
5719         (expand_sync_lock_test_and_set): Likewise.
5720         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
5721         (emit_unop_insn): Likewise.
5722         (expand_copysign_absneg): Change icode to an insn_code.
5723         (create_convert_operand_from_type): New function.
5724         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
5725         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5726         (expand_insn, expand_jump_insn): Likewise.
5727         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
5728         than const_int_operand for operand 2.
5729
5730 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5731
5732         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
5733         if possible.
5734
5735 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
5736
5737         * emit-rtl.c (emit_pattern_before_noloc): New function.
5738         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
5739         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
5740         (emit_pattern_after_noloc): New function.
5741         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
5742         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
5743
5744 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
5745
5746         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
5747         (__ffsDI2): Likewise.
5748
5749 2011-03-22  Richard Henderson  <rth@redhat.com>
5750
5751         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
5752         of !TARGET_ABI_OPEN_VMS.
5753         (alpha_trampoline_init, alpha_start_function): Likewise.
5754         (alpha_expand_epilogue, alpha_file_start): Likewise.
5755         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
5756         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
5757         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
5758         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
5759         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
5760
5761 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5762
5763         * config/s390/s390-opts.h: New.
5764         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
5765         s390_arch_flags, s390_warn_framesize, s390_stack_size,
5766         s390_stack_guard): Remove.
5767         (s390_handle_arch_option): Return void.  Take enum
5768         s390_arch_option value instead of string and searching array.
5769         (s390_handle_option): Don't assert that global structures are in
5770         use.  Access variables via opts pointer.  Use error_at.  Don't use
5771         sscanf for -mstack-guard= or -mstack-size=.  Update call to
5772         s390_handle_arch_option.
5773         (s390_option_override): Update call to s390_handle_arch_option.
5774         (s390_emit_prologue): Use %d format for s390_stack_size in
5775         diagnostic.  Use %wd for HOST_WIDE_INT.
5776         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
5777         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
5778         * config/s390/s390.opt (config/s390/s390-opts.h): New
5779         HeaderInclude entry.
5780         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
5781         s390_arch_flags, s390_warn_framesize): New Variable entries.
5782         (s390_arch_option): New Enum and EnumValue entries.
5783         (march=): Use Enum instead of Var.
5784         (mstack-guard=, mstack-size=): Use UInteger and Var.
5785         (mtune=): Use Enum.
5786
5787 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5788
5789         * config/score/score.c (score_handle_option): Don't assert that
5790         global structures are in use.  Access target_flags via opts
5791         pointer.  Use value of -march= option to determine target_flags
5792         settings.
5793         * config/score/score.opt (march=): Use Enum.
5794         (score_arch): New Enum and EnumValue entries.
5795
5796 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5797
5798         * config/mep/mep.c (option_mtiny_specified): Remove.
5799         (mep_option_override): Move register handling for -mivc2 from
5800         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
5801         instead of option_mtiny_specified.
5802         (mep_handle_option): Access target_flags via opts pointer.  Don't
5803         assert that global structures are in use.  Defer part of -mivc2
5804         handling and move it to mep_option_override.
5805         * config/mep/mep.opt (IVC2): New Mask entry.
5806         (mivc2): Use Var and Defer instead of Mask.
5807
5808 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5809
5810         * config/v850/v850-opts.h: New.
5811         * config/v850/v850.c (small_memory): Replace with
5812         small_memory_physical_max array.  Make that array static const.
5813         (v850_handle_memory_option): Take integer value of argument.  Take
5814         gcc_options pointer, option text and location.  Return void.
5815         Update for changes to small memory structures.
5816         (v850_handle_option): Access target_flags via opts pointer.  Don't
5817         assert that global structures are in use.  Update calls to
5818         v850_handle_memory_option.
5819         (v850_encode_data_area): Update references to small memory settings.
5820         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
5821         (enum small_memory_type): Move to v850-opts.h.
5822         * config/v850/v850.opt (config/v850/v850-opts.h): New
5823         HeaderInclude entry.
5824         (small_memory_max): New Variable entry.
5825         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
5826         (mtda, mzda): Likewise.
5827
5828 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5829
5830         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
5831         pointer.  Don't assert that global structures are in use.
5832
5833 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5834
5835         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
5836         via opts pointer.  Don't assert that global structures are in use.
5837
5838 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5839
5840         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
5841         (munix=93): Use Var.
5842         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
5843         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
5844         * config/pa/pa-opts.h: New.
5845         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
5846         (pa_handle_option): Don't assert that global structures are in
5847         use.  Access target_flags via opts pointer.  Don't handle
5848         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
5849         OPT_munix_98 here.
5850         (pa_option_override): Handle deferred OPT_mfixed_range_.
5851
5852 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5853
5854         * config/mn10300/mn10300-opts.h: New.
5855         * config/mn10300/mn10300.c (mn10300_processor,
5856         mn10300_tune_string): Remove.
5857         (mn10300_handle_option): Don't assert that global structures are
5858         in use.  Access mn10300_processor via opts pointer.  Don't handle
5859         OPT_mtune_ here.
5860         * config/mn10300/mn10300.h (enum processor_type): Move to
5861         mn10300-opts.h.
5862         (mn10300_processor): Remove.
5863         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
5864         HeaderInclude entry.
5865         (mn10300_processor): New Variable entry.
5866         (mtune=): Use Var.
5867
5868 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5869
5870         * config/microblaze/microblaze.c: Don't include opts.h.
5871         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
5872         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
5873         (mno-clearbss): Use Var and Warn.
5874
5875 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5876
5877         * config/m32r/m32r-opts.h: New.
5878         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
5879         (m32r_handle_option): Don't assert that global structures are in
5880         use.  Access target_flags and m32r_cache_flush_func via opts
5881         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
5882         OPT_mno_flush_trap here.
5883         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
5884         include of m32r-opts.h.
5885         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
5886         HeaderInclude entry.
5887         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
5888         (mmodel=): Use Enum and Var.
5889         (m32r_model): New Enum and EnumValue entries.
5890         (mno-flush-trap): Use Var.
5891         (msdata=): Use Enum and Var.
5892         (m32r_sdata): New Enum and EnumValue entries.
5893
5894 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5895
5896         * config/m32c/m32c.c: Don't include opts.h.
5897         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
5898         m32c_handle_option): Remove.
5899         (m32c_option_override): Check global_options_set.x_target_memregs
5900         instead of target_memregs_set.
5901         * config/m32c/m32c.h (target_memregs): Remove.
5902         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
5903         variable.
5904
5905 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5906
5907         * config/iq2000/iq2000-opts.h: New.
5908         * config/iq2000/iq2000.c: Don't include opts.h.
5909         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
5910         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
5911         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
5912         HeaderInclude entry.
5913         (iq2000_tune): New Variable entry.
5914         (march=): Add comment.  Use Enum.
5915         (iq2000_arch): New Enum and EnumValue entries.
5916         (mcpu=): Use Enum and Var.
5917         (iq2000_tune): New Enum and EnumValue entries.
5918
5919 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5920
5921         * config/ia64/ia64-opts.h: New.
5922         * config/ia64/ia64.c (ia64_tune): Remove.
5923         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
5924         here.  Use error_at.
5925         (ia64_option_override): Handle deferred OPT_mfixed_range_.
5926         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
5927         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
5928         HeaderInclude entry.
5929         (ia64_tune): New Variable entry.
5930         (mfixed-range=): Use Defer and Var.
5931         (mtune=): Use Enum and Var.
5932         (ia64_tune): New Enum and EnumValue entries.
5933
5934 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5935
5936         * config/frv/frv-opts.h: New.
5937         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
5938         frv-opts.h.
5939         (frv_cpu_type): Remove.
5940         * config/frv/frv.c: Don't include opts.h.
5941         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
5942         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
5943         (frv_cpu_type): New Variable entry.
5944         (frv_cpu): New Enum and EnumValue entries.
5945
5946 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5947
5948         * config/cris/cris.c (cris_handle_option): Access target_flags via
5949         opts pointer.  Don't assert that global structures are in use.
5950         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
5951         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
5952
5953 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5954
5955         * config/bfin/bfin-opts.h: New.
5956         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
5957         bfin_si_revision, bfin_workarounds): Remove.
5958         (bfin_cpus): Make static const.
5959         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
5960         not bfin_lib_id_given.
5961         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
5962         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
5963         pointer. Use error_at.  Don't assert that global structures are in use.
5964         * config/bfin/bfin.h: Include bfin-opts.h.
5965         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
5966         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
5967         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
5968         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
5969         entries.
5970
5971 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5972
5973         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
5974         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
5975         or -msoft-float here.
5976         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
5977         -msoft-float and -mhard-float.
5978         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5979         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5980         msoft-float.
5981         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
5982         -msoft-float.
5983         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
5984         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
5985         not mhard-float.
5986         (LIBGCC_SPEC): Don't handle -msoft-float.
5987         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
5988         -mhard-float.
5989         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5990         msoft-float.
5991         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
5992         -mfloat-abi=*, not -msoft-float and -mhard-float.
5993         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
5994         -msoft-float.
5995         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
5996         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
5997         mhard-float and msoft-float.
5998         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
5999         mfloat-abi=soft in comments, not mhard-float and msoft-float.
6000         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6001         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
6002         mhard-float.
6003         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
6004         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
6005         msoft-float.
6006         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
6007         not mhard-float.
6008         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
6009         not msoft-float.
6010
6011 2011-03-22  Richard Henderson  <rth@redhat.com>
6012
6013         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
6014         TARGET_ABI_WINDOWS_NT.
6015         (alpha_output_function_end_prologue): Likewise.
6016         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
6017         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
6018         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
6019         (trap, *movsi_nt_vms): Likewise.
6020         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
6021         (*tablejump_osf_nt_internal): Remove.
6022         * config/alpha/predicates.md (input_operand): Only test Pmode.
6023
6024 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6025
6026         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
6027         via opts pointer.  Use error_at.  Don't assert that global
6028         structures are in use.
6029
6030 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6031
6032         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
6033         (ix86_handle_option): Access ix86_isa_flags and
6034         ix86_isa_flags_explicit via opts pointer.  Don't assert that
6035         global structures are in use.
6036         (ix86_function_specific_save, ix86_function_specific_restore):
6037         Update ix86_isa_flags_explicit field name.
6038         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
6039         (ix86_isa_flags_explicit): Rename TargetSave entry to
6040         x_ix86_isa_flags_explicit.
6041
6042 2011-03-22  Richard Henderson  <rth@redhat.com>
6043
6044         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
6045         (alpha_option_override, direct_return): Likewise.
6046         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
6047         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
6048         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
6049         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
6050         (alpha_expand_epilogue, alpha_end_function): Likewise.
6051         (alpha_init_libfuncs): Likewise.
6052         (struct machine_function): Remove unicosmk members.
6053         (print_operand) ['t']: Remove.
6054         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
6055         unicosmk_output_module_name, unicosmk_output_common,
6056         current_section_align, unicosmk_output_text_section_asm_op,
6057         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
6058         unicosmk_section_type_flags, unicosmk_unique_section,
6059         unicosmk_asm_named_section, unicosmk_insert_attributes,
6060         unicosmk_output_align, unicosmk_defer_case_vector,
6061         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
6062         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
6063         unicosmk_output_ssib, unicosmk_add_call_info_word,
6064         unicosmk_extern_head, unicosmk_output_default_externs,
6065         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
6066         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
6067         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
6068         * config/alpha/alpha-protos.h: Update.
6069         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
6070         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
6071         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
6072         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
6073         (*mulsi_se, mulvsi3): Likewise.
6074         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
6075         (*divmodsi_internal, call, call_value, realign): Likewise.
6076         (moddi3, umoddi3): Likewise; remove duplicate expander.
6077         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
6078         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
6079         (*movdi_nofix): Remove r/U alternative.
6080         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
6081         * config/alpha/constraints.md ("U"): Remove.
6082         * config/alpha/predicates.md (call_operand"): Don't test
6083         TARGET_ABI_UNICOSMK.
6084
6085 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6086
6087         * target.def (handle_option): Take gcc_options and
6088         cl_decoded_option pointers and location_t.
6089         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
6090         * doc/tm.texi: Regenerate.
6091         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
6092         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
6093         * lto-opts.c (lto_reissue_options): Generate option structure for
6094         targetm.handle_option call.
6095         * opts.c (target_handle_option): Update call to
6096         targetm.handle_option.  Remove assertions about values now passed
6097         down to hook.
6098         * targhooks.c (default_target_handle_option): New.
6099         * targhooks.h (default_target_handle_option): Declare.
6100         * config/alpha/alpha.c: Include opts.h.
6101         (alpha_handle_option): Update to new hook interface.
6102         * config/arm/arm.c: Include opts.h.
6103         (arm_handle_option): Update to new hook interface.
6104         * config/arm/t-arm (arm.o): Update dependencies.
6105         * config/bfin/bfin.c: Include opts.h.
6106         (bfin_handle_option): Update to new hook interface.
6107         * config/cris/cris.c: Include opts.h.
6108         (cris_handle_option): Update to new hook interface.
6109         * config/frv/frv.c: Include opts.h.
6110         (frv_handle_option): Update to new hook interface.
6111         * config/i386/i386.c: Include opts.h.
6112         (ix86_handle_option): Update to new hook interface.
6113         (ix86_valid_target_attribute_inner_p): Generate option structure
6114         for call to ix86_handle_option.
6115         * config/i386/t-i386 (i386.o): Update dependencies.
6116         * config/ia64/ia64.c: Include opts.h.
6117         (ia64_handle_option): Update to new hook interface.
6118         * config/ia64/t-ia64 (ia64.o): Update dependencies.
6119         * config/iq2000/iq2000.c: Include opts.h.
6120         (iq2000_handle_option): Update to new hook interface.
6121         * config/m32c/m32c.c: Include opts.h.
6122         (m32c_handle_option): Update to new hook interface.
6123         * config/m32r/m32r.c: Include opts.h.
6124         (m32r_handle_option): Update to new hook interface.
6125         * config/m68k/m68k.c: Include opts.h.
6126         (m68k_handle_option): Update to new hook interface.
6127         * config/mep/mep.c: Include opts.h.
6128         (mep_handle_option): Update to new hook interface.
6129         * config/microblaze/microblaze.c: Include opts.h.
6130         (microblaze_handle_option): Update to new hook interface.
6131         * config/mips/mips.c: Include opts.h.
6132         (mips_handle_option): Update to new hook interface.
6133         * config/mn10300/mn10300.c: Include opts.h.
6134         (mn10300_handle_option): Update to new hook interface.
6135         * config/pa/pa.c: Include opts.h.
6136         (pa_handle_option): Update to new hook interface.
6137         * config/pdp11/pdp11.c: Include opts.h.
6138         (pdp11_handle_option): Update to new hook interface.
6139         * config/rs6000/rs6000.c: Include opts.h.
6140         (rs6000_handle_option): Update to new hook interface.
6141         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
6142         * config/rx/rx.c: Include opts.h.
6143         (rx_handle_option): Update to new hook interface.
6144         * config/s390/s390.c: Include opts.h.
6145         (s390_handle_option): Update to new hook interface.
6146         * config/score/score.c: Include opts.h.
6147         (score_handle_option): Update to new hook interface.
6148         * config/sh/sh.c: Include opts.h.
6149         (sh_handle_option): Update to new hook interface.
6150         * config/sparc/sparc.c: Include opts.h.
6151         (sparc_handle_option): Update to new hook interface.
6152         * config/v850/v850.c: Include opts.h.
6153         (v850_handle_option): Update to new hook interface.
6154
6155 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6156
6157         * gcc.c (driver_unknown_option_callback): Only permit and save
6158         unknown -Wno- options.
6159         (driver_wrong_lang_callback): Save options directly instead of via
6160         driver_unknown_option_callback.
6161
6162 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
6163
6164         * combine.c (simplify_set): Try harder to find the best CC mode when
6165         simplifying a nested COMPARE on the RHS.
6166
6167 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6168
6169         * config/alpha/gnu.h: Remove.
6170         * config/arc: Remove directory.
6171         * config/arm/netbsd.h: Remove.
6172         * config/arm/t-pe: Remove.
6173         * config/crx: Remove directory.
6174         * config/i386/netbsd.h: Remove.
6175         * config/m68hc11: Remove directory.
6176         * config/m68k/uclinux-oldabi.h: Remove.
6177         * config/mcore/mcore-pe.h: Remove.
6178         * config/mcore/t-mcore-pe: Remove.
6179         * config/netbsd-aout.h: Remove.
6180         * config/rs6000/gnu.h: Remove.
6181         * config/sh/sh-symbian.h: Remove.
6182         * config/sh/symbian-base.c: Remove.
6183         * config/sh/symbian-c.c: Remove.
6184         * config/sh/symbian-cxx.c: Remove.
6185         * config/sh/symbian-post.h: Remove.
6186         * config/sh/symbian-pre.h: Remove.
6187         * config/sh/t-symbian: Remove.
6188         * config/svr3.h: Remove.
6189         * config/vax/netbsd.h: Remove.
6190         * config.build: Don't handle i[34567]86-*-pe.
6191         * config.gcc: Remove handling of deprecations for most deprecated
6192         targets.
6193         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
6194         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
6195         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
6196         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
6197         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
6198         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
6199         Remove cases.
6200         * config.host: Don't handle i[34567]86-*-pe.
6201         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
6202         (ASM_SPEC32): Don't handle -mcall-gnu.
6203         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
6204         -mcall-gnu.
6205         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
6206         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
6207         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
6208         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
6209         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
6210         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
6211         conditional on SYMBIAN.
6212         * configure.ac: Don't handle powerpc*-*-gnu*.
6213         * configure: Regenerate.
6214         * doc/extend.texi (interrupt attribute): Don't mention CRX.
6215         * doc/install-old.texi (m6811, m6812): Don't mention.
6216         * doc/install.texi (arc-*-elf*): Don't document multilib option.
6217         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
6218         (m68k-uclinuxoldabi): Don't mention.
6219         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
6220         Remove.
6221         (-mcall-gnu): Remove.
6222         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
6223         families): Remove constraint documentation.
6224
6225 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
6226
6227         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
6228         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
6229         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
6230
6231 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
6232
6233         * config/avr/avr-protos.h (expand_epilogue): Change prototype
6234         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
6235         * config/avr/avr.c (init_cumulative_args)
6236         (avr_function_arg_advance): Use it.
6237         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
6238         sibcall epilogues.
6239         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
6240         (avr_function_ok_for_sibcall): ...this new function.
6241         (avr_lookup_function_attribute1): New static Function.
6242         (avr_naked_function_p, interrupt_function_p)
6243         (signal_function_p, avr_OS_task_function_p)
6244         (avr_OS_main_function_p): Use it.
6245         * config/avr/avr.md ("sibcall", "sibcall_value")
6246         ("sibcall_epilogue"): New expander.
6247         ("*call_insn", "*call_value_insn"): New insn.
6248         ("call_insn", "call_value_insn"): Remove
6249         ("call", "call_value", "epilogue"): Change expander to handle
6250         sibling calls.
6251
6252 2011-03-21  Nick Clifton  <nickc@redhat.com>
6253
6254         * doc/invoke.texi (Overall Options): Move closing brace to end of
6255         options list.
6256         (Optimization Options): Add missing @gol.
6257         (Directory Options): Likewise.
6258         (i386 and x86-64 Options): Likewise.
6259         (RS6000 and PowerPC Options): Likewise.
6260         (i386 and x86-64 Windows Options): Likewise.
6261         (V850 Options): Add text missing from descriptions.
6262
6263 2011-03-22  Richard Henderson  <rth@redhat.com>
6264
6265         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
6266         (avr_incoming_return_addr_rtx): New.
6267         (emit_push_byte): New.
6268         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
6269         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
6270         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
6271         (emit_pop_byte): New.
6272         (expand_epilogue): Use it.  Pop frame pointer by bytes.
6273         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
6274         (INCOMING_RETURN_ADDR_RTX): New.
6275         (INCOMING_FRAME_SP_OFFSET): New.
6276         (ARG_POINTER_CFA_OFFSET): New.
6277         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
6278         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
6279         (pophi): Remove.
6280
6281         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
6282
6283 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
6284
6285         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
6286         (FUNCTION_ARG_ADVANCE): Likewise.
6287         * tm.texi.in: Change references to them to hook references.
6288         * tm.texi: Regenerate.
6289         * targhooks.c (default_function_arg): Eliminate check for target
6290         macro.
6291         (default_function_incoming_arg): Likewise.
6292         (default_function_arg_advance): Likewise.
6293         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
6294         (function_arg_advance): Likewise.
6295         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
6296
6297 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
6298
6299         * tree.c (build_call_1): New function.
6300         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
6301
6302 2011-03-22  Richard Guenther  <rguenther@suse.de>
6303
6304         PR tree-optimization/48228
6305         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
6306         for single-arg PHIs.
6307
6308 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
6309
6310         PR rtl-optimization/48143
6311         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
6312         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
6313         sse2_cvtps2pd): Likewise.
6314
6315 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6316
6317         * recog.c (canonicalize_change_group): Use validate_unshare_change.
6318
6319 2011-03-22  Richard Guenther  <rguenther@suse.de>
6320
6321         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
6322         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
6323         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
6324         and REALIGN_LOAD_EXPR.
6325         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
6326         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
6327         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
6328         DOT_PROD_EXPR case ...
6329         (expand_expr_real_2): ... here.
6330         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
6331         and REALIGN_LOAD_EXPR.
6332         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
6333         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
6334         (vect_create_epilog_for_reduction): Likewise.
6335         (vectorizable_reduction): Likewise.
6336         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
6337         * tree-vect-stmts.c (vectorizable_load): Likewise.
6338
6339 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
6340
6341         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
6342
6343 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6344
6345         * config/s390/s390.c (s390_delegitimize_address): Fix offset
6346         handling for PLTOFF/GOTOFF.
6347
6348 2011-03-22  Nick Clifton  <nickc@redhat.com>
6349
6350         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
6351         trailing backslash from the end of the macro definition.
6352
6353 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6354
6355         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
6356         and PLT unspecs.
6357
6358 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
6359
6360         * expr.h (prepare_operand): Move to...
6361         * optabs.h (prepare_operand): ...here and change the insn code
6362         parameter from "int" to "enum insn_code".
6363         (insn_operand_matches): Declare.
6364         * expr.c (init_expr_target): Use insn_operand_matches.
6365         (compress_float_constant): Likewise.
6366         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
6367         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
6368         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
6369         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
6370         Likewise.
6371         (gen_cond_trap): Likewise.
6372         (prepare_operand): Likewise.  Change icode to an insn_code.
6373         (insn_operand_matches): New function.
6374         * reload.c (find_reloads_address_1): Use insn_operand_matches.
6375         * reload1.c (gen_reload): Likewise.
6376         * targhooks.c (default_secondary_reload): Likewise.
6377
6378 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
6379
6380         * config/alpha/alpha.md (unspec): New define_c_enum.
6381         (unspecv): Ditto.
6382
6383 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
6384
6385         PR debug/48214
6386         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
6387         between a call and its CALL_ARG_LOCATION note.
6388
6389 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
6390
6391         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
6392
6393 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
6394
6395         PR c/42544
6396         PR c/48197
6397         * c-common.c (shorten_compare): If primopN is first sign-extended
6398         to opN and then zero-extended to result type, set primopN to opN.
6399
6400 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
6401
6402         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
6403         for barrier handlers.
6404
6405 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
6406
6407         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
6408         UNSPEC constants to be in the unspec enumeration, and redefine
6409         all UNSPECV constants to be in the unspecv enumeration, so that
6410         dumps print which unspec/unspec_volatile this is.
6411         * config/rs6000/vector.md (UNSPEC_*): Ditto.
6412         * config/rs6000/paired.md (UNSPEC_*): Ditto.
6413         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
6414         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
6415         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
6416
6417         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
6418         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
6419         UNSPECV_LWSYNC, since these are used as unspec_volatile.
6420         * config/rs6000/sync.md (isync, lwsync): Ditto.
6421
6422 2011-03-21  Richard Guenther  <rguenther@suse.de>
6423
6424         * params.def (lto-min-partition): Fix typo.
6425
6426 2011-03-21  Richard Guenther  <rguenther@suse.de>
6427
6428         PR c/47939
6429         * c-decl.c (grokdeclarator): Drop to the main variant only
6430         for array types.  Drop flag_gen_aux_info check.
6431
6432 2011-03-21  Richard Guenther  <rguenther@suse.de>
6433
6434         PR translation/47911
6435         * params.def (lto-partitions): Fix typo.
6436         (lto-min-partition): Fix wording.
6437
6438 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
6439
6440         * config/rs6000/t-freebsd: Remove duplication from file.
6441
6442 2011-03-21  Richard Guenther  <rguenther@suse.de>
6443
6444         PR middle-end/47661
6445         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
6446
6447 2011-03-21  Richard Guenther  <rguenther@suse.de>
6448
6449         PR lto/48210
6450         * params.def (lto-partitions): Require at least 1 partition.
6451
6452 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6453
6454         * gthr-solaris.h: Remove.
6455         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
6456         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
6457         (LIB_SPEC): Likewise.
6458         * config/sol2.opt (threads): Remove.
6459         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
6460         (sparc*-*-solaris2*): Likewise.
6461         * configure.ac (enable_threads): Enable solaris support.
6462         * configure: Regenerate.
6463         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
6464         * doc/install.texi (Configuration, --enable-threads=lib): Remove
6465         solaris.
6466
6467 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6468
6469         * config.gcc: Obsolete *-*-solaris2.8*.
6470         * doc/install.texi (Specific, *-*-solaris2*): Document it.
6471
6472 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6473
6474         PR bootstrap/48135
6475         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
6476         reference.  Solaris 8 perl works.
6477
6478 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6479
6480         PR bootstrap/48135
6481         * doc/install.texi (Prerequisites): Move jar etc. up.
6482         Explain support library version requirements.
6483
6484 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6485
6486         PR bootstrap/48135
6487         * doc/install.texi (Prerequisites): Move Perl to build
6488         requirements.  Always necessary on Solaris 2 with Sun ld.
6489
6490 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6491
6492         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
6493         binutils 2.21.
6494         (Specific, i?86-*-solaris2.[89]): Likewise.
6495         (Specific, i?86-*-solaris2.10): Likewise.
6496         (Specific, mips-sgi-irix6): Likewise.
6497         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
6498         Update for binutils 2.21.
6499
6500 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6501
6502         * configure.ac (gcc_cv_lto_plugin): Fix typo.
6503         Allow -fuse-linker-plugin for non-default plugin linker.
6504         * configure: Regenerate.
6505
6506 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
6507
6508         PR bootstrap/48167
6509         * gengtype.c (files_rules): Added rule for cp/parser.h.
6510
6511 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
6512
6513         PR target/48213
6514         * config/s390/s390.c (s390_delegitimize_address): Don't call
6515         lowpart_subreg if orig_x has BLKmode.
6516
6517 2011-03-21  Kai Tietz  <ktietz@redhat.com>
6518
6519         PR target/12171
6520         * doc/plugins.texi: Adjust documentation for plugin register_callback.
6521         * tree.h (attribute_spec): Add new member affects_type_identity.
6522         * attribs.c (empty_attribute_table): Adjust attribute_spec
6523         initializers.
6524         * config/alpha/alpha.c: Likewise.
6525         * config/arc/arc.c: Likewise.
6526         * config/arm/arm.c: Likewise.
6527         * config/avr/avr.c: Likewise.
6528         * config/bfin/bfin.c: Likewise.
6529         * config/crx/crx.c: Likewise.
6530         * config/darwin.h: Likewise.
6531         * config/h8300/h8300.c: Likewise.
6532         * config/i386/cygming.h: Likewise.
6533         * config/i386/i386.c: Likewise.
6534         * config/ia64/ia64.c: Likewise.
6535         * config/m32c/m32c.c: Likewise.
6536         * config/m32r/m32r.c: Likewise.
6537         * config/m68hc11/m68hc11.c: Likewise.
6538         * config/m68k/m68k.c: Likewise.
6539         * config/mcore/mcore.c: Likewise.
6540         * config/mep/mep.c: Likewise.
6541         * config/microblaze/microblaze.c: Likewise.
6542         * config/mips/mips.c: Likewise.
6543         * config/rs6000/rs6000.c: Likewise.
6544         * config/rx/rx.c: Likewise.
6545         * config/sh/sh.c: Likewise.
6546         * config/sol2.h: Likewise.
6547         * config/sparc/sparc.c: Likewise.
6548         * config/spu/spu.c: Likewise.
6549         * config/stormy16/stormy16.c: Likewise.
6550         * config/v850/v850.c: Likewise.
6551
6552 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
6553
6554         * simplify-rtx.c (simplify_binary_operation_1): Handle
6555         (xor (and A B) C) case when B and C are both constants.
6556
6557 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
6558
6559         * tree-dfa.c (add_referenced_var): Fix typo in comment.
6560
6561 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
6562
6563         PR bootstrap/48168
6564         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
6565
6566 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
6567
6568         PR rtl-optimization/48156
6569         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
6570         assume df and df_lr are not NULL.
6571
6572 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6573
6574         PR debug/48023
6575         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
6576         between a call and its CALL_ARG_LOCATION note.
6577
6578 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
6579
6580         PR debug/48178
6581         * config/sh/sh.c (find_barrier): Don't emit a constant pool
6582         between a call and its corresponding CALL_ARG_LOCATION note.
6583
6584 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
6585
6586         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
6587         instead of loop. Use HARD_REGISTER_NUM_P predicate.
6588         * haifa-sched.c (setup_ref_regs): Ditto.
6589         * caller-save.c (add_used_regs_1): Ditto.
6590         * dse.c (look_for_hardregs): Ditto.
6591         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
6592         * sched-rgn.c (check_live_1): Ditto.
6593
6594 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
6595
6596         * c-decl.c (diagnose_mismatched_decls): Give an error for
6597         redefining a typedef with variably modified type.
6598
6599 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
6600
6601         * c-decl.c (grokfield): Don't allow typedefs for structures or
6602         unions with no tag by default.
6603         * doc/extend.texi (Unnamed Fields): Update.
6604
6605 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
6606
6607         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
6608         Rewrite using indirect functions.
6609         (lwp_slwpcb): Ditto.
6610         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
6611         (avx_vinsertf128<mode>): Ditto.
6612
6613 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6614
6615         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
6616         unspecs.
6617
6618 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6619
6620         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
6621         splitting between a call and its corresponding CALL_ARG_LOCATION note.
6622
6623 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
6624
6625         PR rtl-optimization/48170
6626         * gcse.c (hoist_code): Remove bogus asserts.
6627
6628 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
6629
6630         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
6631         computation for prologue/epilogue.
6632
6633 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6634
6635         * Makefile.in (check-consistency): Remove.
6636
6637 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
6638
6639         PR debug/48176
6640         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
6641         arange_table_in_use is 0, but either text_section_used or
6642         cold_text_section_used is true.  Don't call it if
6643         !info_section_emitted.
6644
6645 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
6646
6647         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
6648         FUNCTION_VALUE_REGNO_P): Remove.
6649         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
6650         Remove.
6651         * config/avr/avr.c (avr_ret_register): Make static inline.
6652         (avr_function_value_regno_p): New function.
6653         (avr_libcall_value): Make static. Add 'func' argument.
6654         (avr_function_value): Make static. Rename 'func' argument to
6655         'fn_decl_or_type', forward it to avr_libcall_value. Call
6656         avr_ret_register function instead of RET_REGISTER macro.
6657         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
6658
6659 2011-03-18  Jason Merrill  <jason@redhat.com>
6660
6661         PR c++/23372
6662         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
6663
6664 2011-03-18  Richard Guenther  <rguenther@suse.de>
6665
6666         * doc/install.texi (--enable-gold): Remove.
6667         (--with-plugin-ld): Document.
6668         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
6669
6670 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
6671
6672         PR middle-end/47790
6673         * expr.c (optimize_bitfield_assignment_op): Revamp to work
6674         again after expansion changes.
6675
6676 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
6677
6678         * combine.c (try_combine): Do simplification only call of
6679         subst() on i2 even when i1 is present. Update comments.
6680
6681 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
6682
6683         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
6684         and UNSPEC_PCREL_SYMOFF.
6685
6686 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6687
6688         * config/s390/s390.md: Use define_c_enum for the unspec constant
6689         definitions.
6690
6691 2011-03-18  Richard Henderson  <rth@redhat.com>
6692             Jakub Jelinek  <jakub@redhat.com>
6693
6694         PR bootstrap/48161
6695         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
6696         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
6697
6698 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6699
6700         PR middle-end/47725
6701         * combine.c (cant_combine_insn_p): Don't check zero/sign
6702         extended hard registers.
6703
6704 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6705
6706         PR middle-end/47725
6707         * combine.c (cant_combine_insn_p): Check zero/sign extended
6708         hard registers.
6709
6710 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
6711
6712         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6713         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
6714         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
6715         Change return type to bool.
6716         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6717
6718 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
6719
6720         PR debug/48163
6721         * var-tracking.c (prepare_call_arguments): If CALL target
6722         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
6723         pc instead of looking it up using cselib_lookup and use
6724         Pmode for it if x has VOIDmode.
6725         * dwarf2out.c (gen_subprogram_die): If also both first and
6726         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
6727
6728         PR debug/48163
6729         * function.c (assign_parms): For data.passed_pointer parms
6730         use MEM of data.entry_parm instead of data.entry_parm itself
6731         as DECL_INCOMING_RTL.
6732         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
6733         also when passed and declared mode is the same, DECL_RTL
6734         is a MEM with pseudo as address and DECL_INCOMING_RTL is
6735         a MEM too.
6736
6737 2011-03-16  Jeff Law  <law@redhat.com>
6738
6739         PR rtl-optimization/37273
6740         * ira-costs.c (scan_one_insn): Detect constants living in memory and
6741         handle them like argument loads from stack slots.  Do not double
6742         count memory for memory constants and argument loads from stack slots.
6743
6744 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6745
6746         PR debug/48160
6747         * var-tracking.c (prepare_call_arguments): Check SUBREG.
6748
6749 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6750
6751         PR target/48171
6752         * config/i386/i386.opt: Add Save to -mavx and -mfma.
6753
6754 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
6755
6756         PR bootstrap/48153
6757         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
6758         if dwarf_strict.
6759         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
6760         Clear call_arg_locations and call_arg_loc_last always.
6761
6762         PR middle-end/48152
6763         * var-tracking.c (prepare_call_arguments): If argument needs to be
6764         passed by reference, adjust argtype and mode.
6765
6766 2011-03-17  Richard Guenther  <rguenther@suse.de>
6767
6768         PR middle-end/48134
6769         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
6770         a value make sure to fold the statement.
6771
6772 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
6773
6774         PR target/43872
6775         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
6776         return condition with !cfun->calls_alloca.
6777
6778 2011-03-17  Richard Guenther  <rguenther@suse.de>
6779
6780         PR bootstrap/48148
6781         * lto-cgraph.c (input_overwrite_node): Clear the abstract
6782         origin for decls in other ltrans units.
6783         (input_varpool_node): Likewise.
6784
6785 2011-03-17  Richard Guenther  <rguenther@suse.de>
6786
6787         PR middle-end/48165
6788         * tree-object-size.c (compute_object_offset): Properly return
6789         the offset operand of MEM_REFs as sizetype.
6790
6791 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
6792
6793         PR rtl-optimization/48141
6794         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
6795         * dse.c: Include params.h.
6796         (active_local_stores_len): New variable.
6797         (add_wild_read, dse_step1): Clear it when setting active_local_stores
6798         to NULL.
6799         (record_store, check_mem_read_rtx): Decrease it when removing
6800         from the chain.
6801         (scan_insn): Likewise.  Increase it when adding to chain, if it
6802         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
6803         set active_local_stores to NULL before the addition.
6804         * Makefile.in (dse.o): Depend on $(PARAMS_H).
6805
6806         PR rtl-optimization/48141
6807         * dse.c (record_store): If no positions are needed in an insn
6808         that cannot be deleted, at least unchain it from active_local_stores.
6809
6810 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
6811
6812         PR debug/47510
6813         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
6814         (lookup_type_die_strip_naming_typedef): ... here.
6815         (get_context_die): Use it.
6816         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
6817         the anonymous struct named by the naming typedef.
6818
6819 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6820
6821         PR target/48154
6822         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
6823         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6824
6825 2011-03-16  Jeff Law  <law@redhat.com>
6826
6827         * tree-vrp.c (identify_jump_threads): Slightly simplify type
6828         check for operands of conditional.  Allow type to be a pointer.
6829
6830 2011-03-16  Richard Guenther  <rguenther@suse.de>
6831
6832         PR tree-optimization/48149
6833         * fold-const.c (fold_binary_loc): Fold
6834         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
6835
6836 2011-03-16  Richard Guenther  <rguenther@suse.de>
6837
6838         PR tree-optimization/26134
6839         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
6840         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
6841         (non_rewritable_mem_ref_base): Handle complex type component
6842         accesses, constrain offsets for vector and complex extracts
6843         more properly.
6844
6845 2011-03-16  Richard Guenther  <rguenther@suse.de>
6846
6847         PR tree-optimization/48146
6848         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
6849         operands avoiding the need for renaming.
6850
6851 2011-03-16  Richard Guenther  <rguenther@suse.de>
6852
6853         * gimple-fold.c (maybe_fold_reference): Open-code relevant
6854         constant folding.  Move MEM_REF canonicalization first.
6855         Rely on fold_const_aggregate_ref for initializer folding.
6856         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
6857
6858 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
6859
6860         PR middle-end/48136
6861         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6862         arg0/arg1 or their arguments are always fold converted to matching
6863         types.
6864
6865         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
6866         to nargs.
6867
6868 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6869
6870         PR lto/46944
6871         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
6872         Handle in-tree gold.
6873         (ld_vers): Extract binutils version for gold.
6874         (gcc_cv_ld_hidden): Handle gold here.
6875         (gcc_cv_lto_plugin): Determine level of linker plugin support.
6876         * configure: Regenerate.
6877         * config.in: Regenerate.
6878         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
6879         -fuse-linker-plugin otherwise.
6880         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
6881         (LINK_COMMAND_SPEC): Use it.
6882         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
6883
6884 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
6885
6886         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
6887         * calls.c: Remove debug.h include.
6888         (emit_call_1): Don't call virtual_call_token debug hook.
6889         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
6890         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
6891         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
6892         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
6893         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
6894         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
6895         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
6896         dwarf2out_virtual_call): Remove.
6897         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
6898         copy_call_info and virtual_call hooks.
6899         (dwarf2out_init): Don't initialize vcall_insn_table,
6900         debug_dcall_section and debug_vcall_section.
6901         (prune_unused_types): Don't mark nodes from dcall_table.
6902         (dwarf2out_finish): Don't output dcall or vcall tables.
6903         * final.c (final_scan_insn): Don't call direct_call or
6904         virtual_call debug hooks.
6905         * debug.h (struct gcc_debug_hooks): Remove direct_call,
6906         virtual_call_token, copy_call_info and virtual_call hooks.
6907         (debug_nothing_uid): Remove prototype.
6908         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
6909         copy_call_info and virtual_call hooks.
6910         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6911         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
6912         * debug.c (do_nothing_debug_hooks): Likewise.
6913         (debug_nothing_uid): Remove.
6914         * doc/invoke.texi (-fenable-icf-debug): Remove.
6915         * common.opt (-fenable-icf-debug): Likewise.
6916
6917         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
6918         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
6919         call's MEM.  Handle functions returning aggregate through a hidden
6920         first pointer.  For virtual calls add clobbered pc to call arguments
6921         chain.
6922         * dwarf2out.c (gen_subprogram_die): Emit
6923         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
6924         can't be emitted.
6925
6926         PR debug/45882
6927         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
6928         * rtl.h (ENTRY_VALUE_EXP): Define.
6929         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
6930         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
6931         * print-rtl.c (print_rtx): Likewise.
6932         * gengtype.c (adjust_field_rtx_def): Likewise.
6933         * var-tracking.c (vt_add_function_parameter): Adjust
6934         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
6935         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
6936         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
6937         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
6938         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
6939
6940         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
6941         Call var_location debug hook even on CALL_INSNs.
6942         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
6943         * rtl.def (ENTRY_VALUE): New.
6944         * dwarf2out.c: Include cfglayout.h.
6945         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
6946         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
6947         (struct call_arg_loc_node): New type.
6948         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
6949         tail_call_site_count): New variables.
6950         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
6951         DW_TAG_GNU_call_site_parameter.
6952         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
6953         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
6954         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
6955         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
6956         and DW_AT_GNU_all_source_call_sites.
6957         (mem_loc_descriptor): Handle ENTRY_VALUE.
6958         (add_src_coords_attributes): Don't add enything if
6959         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
6960         (dwarf2out_abstract_function): Save and clear call_arg_location,
6961         call_site_count and tail_call_site_count around dwarf2out_decl call.
6962         (gen_call_site_die): New function.
6963         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
6964         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
6965         (dwarf2out_function_decl): Clear call_arg_locations,
6966         call_arg_loc_last, set call_site_count and tail_call_site_count
6967         to -1 and free block_map.
6968         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
6969         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
6970         followed by any real instructions.
6971         (dwarf2out_begin_function): Set call_site_count and
6972         tail_call_site_count to 0.
6973         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
6974         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
6975         attempt to force a DIE for it and worst case remove the attribute.
6976         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
6977         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
6978         the decl itself.
6979         * var-tracking.c: Include tm_p.h.
6980         (vt_stack_adjustments): For calls call note_register_arguments.
6981         (argument_reg_set): New variable.
6982         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
6983         ensure the VALUE is resolved.
6984         (call_arguments): New variable.
6985         (prepare_call_arguments): New function.
6986         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
6987         (struct expand_loc_callback_data): Add ignore_cur_loc field.
6988         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
6989         always use the best expression.
6990         (vt_expand_loc): Add ignore_cur_loc argument.
6991         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
6992         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
6993         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
6994         note for all calls.
6995         (vt_add_function_parameter): Use cselib_lookup_from_insn.
6996         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
6997         argument.  Don't call cselib_preserve_only_values and
6998         cselib_reset_table.
6999         (note_register_arguments): New function.
7000         (vt_initialize): Compute argument_reg_set.  Call
7001         vt_add_function_parameters before processing basic blocks instead of
7002         afterwards.  For calls call prepare_call_arguments before calling
7003         cselib_process_insn.
7004         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
7005         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
7006         (var-tracking.o): Depend on $(TM_P_H).
7007         * cfglayout.h (insn_scope): New prototype.
7008         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
7009         * cfglayout.c (insn_scope): No longer static.
7010         * insn-notes.def (CALL_ARG_LOCATION): New.
7011         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
7012         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
7013         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
7014         nothing for DECL_EXTERNAL BLOCK_VARS.
7015
7016 2011-03-16  Alan Modra  <amodra@gmail.com>
7017
7018         PR target/45844
7019         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
7020         create invalid offset address for vsx splat insn.
7021         * config/rs6000/predicates.md (splat_input_operand): New.
7022         * config/rs6000/vsx.md (vsx_splat_*): Use it.
7023
7024 2011-03-15  Xinliang David Li  <davidxl@google.com>
7025
7026         PR c/47837
7027         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
7028         (normalize_preds): New function.
7029         (is_use_properly_guarded): Normalize def predicates.
7030
7031 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7032
7033         PR target/46788
7034         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
7035         in the output template.
7036
7037 2011-03-15  Richard Guenther  <rguenther@suse.de>
7038
7039         PR middle-end/47650
7040         * tree-pretty-print.c (dump_function_declaration): Properly
7041         dump unprototyped and varargs function types.
7042
7043 2011-03-15  Richard Guenther  <rguenther@suse.de>
7044
7045         PR tree-optimization/13954
7046         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
7047         and friends.
7048
7049 2011-03-15  Richard Guenther  <rguenther@suse.de>
7050
7051         PR tree-optimization/48037
7052         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
7053         selects into BIT_FIELD_REFs.
7054         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
7055         vector select.
7056
7057 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
7058
7059         PR tree-optimization/48129
7060         * builtins.c (fold_builtin_snprintf): Convert to type of
7061         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
7062         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
7063
7064 2011-03-15  Richard Guenther  <rguenther@suse.de>
7065
7066         PR tree-optimization/41490
7067         * tree-ssa-dce.c (propagate_necessity): Handle returns without
7068         value but with VUSE.
7069         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
7070         return statements.
7071         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
7072         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
7073         * tree-tailcall.c (find_tail_calls): Ignore returns.
7074
7075 2011-03-15  Richard Guenther  <rguenther@suse.de>
7076
7077         PR middle-end/48031
7078         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
7079         or variable-indexed array accesses when in gimple form.
7080
7081 2011-03-15  Richard Guenther  <rguenther@suse.de>
7082
7083         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
7084
7085 2011-03-15  Alan Modra  <amodra@gmail.com>
7086
7087         PR target/48032
7088         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
7089         presume symbol_refs without a symbol_ref_decl are suitably
7090         aligned, nor other trees we may see here.  Handle anchor symbols.
7091         (legitimate_constant_pool_address_p): Comment.  Add mode param.
7092         Check cmodel=medium addresses.  Adjust all calls.
7093         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
7094         creating cmodel=medium optimized access to locals.
7095         * config/rs6000/constraints.md (R): Pass QImode to
7096         legitimate_constant_pool_address_p.
7097         * config/rs6000/predicates.md (input_operand): Pass mode to
7098         legitimate_constant_pool_address_p.
7099         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
7100         Update prototype.
7101
7102 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
7103
7104         PR target/48053
7105         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
7106         64-bit constants being loaded into registers other than GPRs such
7107         as loading 0 into a VSX register.
7108
7109 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7110
7111         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
7112
7113 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
7114
7115         PR middle-end/47917
7116         * builtins.c (fold_builtin_snprintf): New function.
7117         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
7118         (fold_builtin_4): Likewise.
7119
7120         PR middle-end/38878
7121         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
7122         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
7123         and C - X == X also strip nops from +/-/p+ operand.
7124         When optimizing -X == C, fold C to arg0's type.
7125
7126         PR debug/47946
7127         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
7128         emit it as add_AT_int instead of add_AT_unsigned.
7129
7130 2011-03-14  Tom Tromey  <tromey@redhat.com>
7131
7132         * unwind-dw2.c: Include sys/sdt.h if it exists.
7133         (_Unwind_DebugHook): Use STAP_PROBE2.
7134         * config.in, configure: Rebuild.
7135         * configure.ac: Check for sys/sdt.h.
7136
7137 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
7138
7139         * config/i386/i386.md (ROUND_FLOOR): New constant.
7140         (ROUND_CEIL): Ditto.
7141         (ROUND_TRUNC): Ditto.
7142         (ROUND_MXCSR): Ditto.
7143         (ROUND_NO_EXC): Ditto.
7144         (rint<mode>2): Use new defines instead of numerical constants.
7145         (floor<mode>2): Ditto.
7146         (ceil<mode>2): Ditto.
7147         (btrunc<mode>2): Ditto.
7148         * config/i386/i386-builtin-types.def: Define ROUND function type
7149         aliases.
7150         * config/i386/i386.c (enum ix86_builtins): Add
7151         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
7152         (struct builtin_description): Add
7153         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
7154         (ix86_expand_sse_round): New static function.
7155         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
7156         function types.
7157         (ix86_builtin_vectorized_function): Handle
7158         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
7159
7160 2011-03-14  Tom Tromey  <tromey@redhat.com>
7161
7162         * c-parser.c (c_parser_asm_string_literal): Clear
7163         warn_overlength_strings.
7164
7165 2011-03-14  Tom Tromey  <tromey@redhat.com>
7166
7167         * c-parser.c (disable_extension_diagnostics): Save
7168         warn_overlength_strings.
7169         (restore_extension_diagnostics): Restore warn_overlength_strings.
7170
7171 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
7172
7173         * BASE-VER: Change to 4.7.0.
7174
7175 2011-03-14  Richard Guenther  <rguenther@suse.de>
7176
7177         PR middle-end/48098
7178         * tree.c (build_vector_from_val): Adjust assert to requirements
7179         and reality.
7180
7181 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
7182
7183         PR bootstrap/48102
7184         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
7185
7186 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
7187
7188         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
7189         terms of target_flags_explicit. Adjust copyright year.
7190
7191         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
7192         * config/rs6000/t-freebsd: New file. Add override for
7193         LIB2FUNCS_EXTRA.
7194
7195 2011-03-13  Chris Demetriou  <cgd@google.com>
7196
7197         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
7198         (-fno-diagnostics-show-option): this, to reflect current default.
7199         (-Werror=): Update text about -fno-diagnostics-show-option.
7200
7201 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
7202
7203         PR target/48053
7204         * config/rs6000/predicates.md (easy_vector_constant_add_self,
7205         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
7206         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
7207         mode is not V2DImode or V2DFmode.
7208         (vspltis_constant): Do not handle V2DImode and V2DFmode.
7209         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
7210         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
7211         registers to 0.
7212         (movdi_internal64): Likewise.
7213
7214 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
7215
7216         PR tree-optimization/47127
7217         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
7218         parameter.
7219         (set_cloog_options): Same.
7220         (scop_to_clast): Same.
7221         (print_clast_stmt): Do not call cloog_state_malloc and
7222         cloog_state_free.
7223         (print_generated_program): Same.
7224         (gloog): Same.
7225         * graphite-clast-to-gimple.h (cloog_state): Declared.
7226         (scop_to_clast): Adjust declaration.
7227         * graphite.c (cloog_state): Defined here.
7228         (graphite_initialize): Call cloog_state_malloc.
7229         (graphite_finalize): Call cloog_state_free.
7230
7231 2011-03-11  Jason Merrill  <jason@redhat.com>
7232
7233         * attribs.c (lookup_attribute_spec): Take const_tree.
7234         * tree.h: Adjust.
7235
7236 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
7237
7238         * config/sparc/sparc.c (sparc_option_override): Use
7239         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
7240
7241 2011-03-11  Richard Guenther  <rguenther@suse.de>
7242
7243         PR tree-optimization/48067
7244         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
7245         multiplication result will be only used once on the target
7246         stmt.
7247
7248 2011-03-11  Richard Guenther  <rguenther@suse.de>
7249
7250         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
7251
7252 2011-03-11  Richard Guenther  <rguenther@suse.de>
7253
7254         PR lto/48073
7255         * tree.c (find_decls_types_r): Do not walk types only reachable
7256         from IDENTIFIER_NODEs.
7257
7258 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
7259
7260         PR middle-end/48044
7261         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
7262         all vnode->force_output nodes as needed.
7263
7264 2011-03-11  Jason Merrill  <jason@redhat.com>
7265
7266         PR c++/48069
7267         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
7268         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
7269
7270 2011-03-11  Martin Jambor  <mjambor@suse.cz>
7271
7272         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
7273         cgraph_node.
7274
7275 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
7276
7277         PR tree-optimization/48063
7278         * ipa-inline.c (cgraph_decide_inlining): Don't try to
7279         inline functions called once if !tree_can_inline_p (node->callers).
7280
7281 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
7282
7283         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
7284         extra_objs.
7285         * config/score/score3.c: Delete.
7286         * config/score/score3.h: Delete.
7287         * config/score/mul-div.S: Delete.
7288         * config/score/sfp-machine.h: Add new file.
7289         * config/score/constraints.md: Add new file.
7290         * config/score/t-score-softfp: Add new file.
7291         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
7292         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
7293         (score7_extra_constraint): Delete.
7294         (score7_option_override): Remove unused code.
7295         * config/score/score.c: Remove score3 and score5 define and code.
7296         * config/score/score.h: Remove score3 and score5 define and code.
7297         * config/score/score.md: Remove score3 template and unusual insn.
7298         * config/score/score.opt: Remove score3 and score5 options.
7299
7300 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7301
7302         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
7303         when _HPUX_SOURCE is defined.
7304         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
7305
7306 2011-03-10  Jason Merrill  <jason@redhat.com>
7307
7308         PR c++/48029
7309         * stor-layout.c (layout_type): Don't set structural equality
7310         on arrays of incomplete type.
7311         * tree.c (type_hash_eq): Handle comparing them properly.
7312
7313 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
7314
7315         PR debug/48043
7316         * config/s390/s390.c (s390_delegitimize_address): Make sure the
7317         result mode matches original rtl mode.
7318
7319 2011-03-10  Nick Clifton  <nickc@redhat.com>
7320
7321         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
7322         (andsi3, andsi3_flags): Fix timings for three operand alternative.
7323
7324 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
7325
7326         PR rtl-optimization/47866
7327         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
7328         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
7329         if target wasn't scalar.
7330         * function.c (assign_stack_temp_for_type): Assert that neither
7331         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
7332         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
7333         macro.
7334         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
7335
7336 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7337
7338         * config/s390/s390-protos.h (s390_label_align): New prototype.
7339         * config/s390/s390.c (s390_label_align): New function.
7340         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
7341
7342 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
7343
7344         PR target/47755
7345         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
7346         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
7347         (output_vec_const_move): Ditto.
7348
7349 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
7350
7351         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
7352         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
7353         * config/mips/mips.c (mips_preferred_reload_class): Make static.
7354         Change 'rclass' argument and result type to reg_class_t.
7355         (TARGET_PREFERRED_RELOAD_CLASS): Define.
7356
7357 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
7358
7359         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7360         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
7361         (TARGET_MEMORY_MOVE_COST): Define.
7362         (avr_register_move_cost, avr_memory_move_cost): New Functions.
7363
7364 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
7365
7366         PR debug/47881
7367         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
7368         removed anything.
7369
7370         PR tree-optimization/48022
7371         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
7372         for EQ/NE_EXPR.
7373
7374 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
7375
7376         PR debug/47991
7377         * var-tracking.c (find_use_val): Return NULL for
7378         cui->sets && cui->store_p BLKmode MEMs.
7379
7380 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
7381
7382         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
7383         Remove.
7384         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
7385         xstormy16_print_operand_address): Remove.
7386         * config/stormy16/stormy16.c (xstormy16_print_operand,
7387         xstormy16_print_operand_address): Make static.
7388         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7389
7390 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
7391
7392         PR target/47862
7393         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
7394         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
7395         before definition.
7396
7397 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
7398
7399         PR bootstrap/48000
7400         * cfgloopmanip.c (fix_bb_placements): Return immediately
7401         if FROM is BASE_LOOP's header.
7402
7403 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
7404
7405         * gimplify.c (gimplify_function_tree): Fix building calls
7406         to __builtin_return_address.
7407
7408 2011-03-07  Alan Modra  <amodra@gmail.com>
7409
7410         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
7411         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
7412         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
7413         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
7414         return_mode args.
7415         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
7416         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
7417         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
7418         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
7419         * config/rs6000/rs6000.c
7420         (rs6000_elf_end_indicate_exec_stack): Rename to..
7421         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
7422         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
7423         (rs6000_file_start): ..here.
7424         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
7425         file scope variables.
7426         (call_ABI_of_interest): New function.
7427         (init_cumulative_args): Set above vars when function return value
7428         is a float, vector, or small struct.
7429         (rs6000_function_arg_advance_1): Likewise for function args.
7430         (rs6000_va_start): Set rs6000_passes_float if variable arg function
7431         references float args.
7432
7433 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
7434
7435         * doc/cfg.texi: Remove "See" before @ref.
7436         * doc/invoke.texi: Likewise.
7437
7438 2011-03-05  Jason Merrill  <jason@redhat.com>
7439
7440         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
7441
7442 2011-03-05  Anthony Green  <green@moxielogic.com>
7443
7444         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
7445
7446 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
7447
7448         PR rtl-optimization/47899
7449         * cfgloopmanip.c (fix_bb_placements): Fix first argument
7450         to flow_loop_nested_p when moving the loop upward.
7451
7452 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
7453
7454         PR target/47719
7455         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
7456
7457 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
7458
7459         PR tree-optimization/47967
7460         * ipa-cp.c (build_const_val): Return NULL instead of creating
7461         VIEW_CONVERT_EXPR for mismatching sizes.
7462         (ipcp_create_replace_map): Return NULL if build_const_val failed.
7463         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
7464         give up on versioning.
7465
7466 2011-03-05  Alan Modra  <amodra@gmail.com>
7467
7468         PR target/47986
7469         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7470         full cmodel medium/large lo_sum + high addresses.
7471
7472 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7473
7474         * config/s390/s390.c (s390_decompose_address): Reject non-literal
7475         pool references in UNSPEC_LTREL_OFFSET.
7476
7477 2011-03-04  Jan Hubicka  <jh@suse.cz>
7478
7479         PR lto/47497
7480         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
7481         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
7482         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
7483         Add node pointers.
7484         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
7485         cgraph_add_thunk): Add node pointers.
7486         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
7487         associated to right node.
7488         (input_node): Update use of cgraph_same_body_alias
7489         and cgraph_add_thunk.
7490
7491 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
7492
7493         * config/i386/i386.opt (mprefer-avx128): New flag.
7494         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
7495         modes when the flag -mprefer-avx128 is on.
7496
7497 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
7498
7499         * dwarf2out.c (compare_loc_operands): Fix address handling.
7500
7501 2011-03-04  Alan Modra  <amodra@gmail.com>
7502
7503         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
7504
7505 2011-03-04  Richard Guenther  <rguenther@suse.de>
7506
7507         PR middle-end/47968
7508         * expmed.c (extract_bit_field_1): Prefer vector modes that
7509         vec_extract patterns can handle.
7510
7511 2011-03-04  Richard Guenther  <rguenther@suse.de>
7512
7513         PR middle-end/47975
7514         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
7515
7516 2011-03-04  Richard Henderson  <rth@redhat.com>
7517
7518         * explow.c (emit_stack_save): Remove 'after' parameter.
7519         (emit_stack_restore): Likewise.
7520         * expr.h: Update to match.
7521         * builtins.c, calls.c, stmt.c: Likewise.
7522         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
7523         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
7524         * function.c (expand_function_end): Insert the emit_stack_save
7525         sequence before parm_birth_insn instead of after.
7526
7527 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
7528
7529         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
7530         (ssse3_pmaddubsw128): Ditto.
7531         (ssse3_pmaddubsw): Ditto.
7532
7533 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
7534
7535         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
7536
7537 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
7538
7539         PR c/47963
7540         * gimplify.c (omp_add_variable): Only call omp_notice_variable
7541         on TYPE_SIZE_UNIT if it is a DECL.
7542
7543         PR debug/47283
7544         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
7545         first operand is not is_gimple_mem_ref_addr, try to fold it.
7546         If the operand still isn't is_gimple_mem_ref_addr, clear
7547         MEM_EXPR on op0.
7548
7549 2011-03-03  Richard Guenther  <rguenther@suse.de>
7550
7551         PR middle-end/47283
7552         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
7553         match comment.
7554         (refs_may_alias_p_1): For release branches return true if
7555         we are confused by our input.
7556
7557 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7558
7559         * config/s390/s390.c (s390_function_value): Rename to ...
7560         (s390_function_and_libcall_value): ... this.
7561         (s390_function_value): New function.
7562         (s390_libcall_value): New function.
7563         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
7564         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
7565         target macro definitions.
7566         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
7567
7568 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
7569
7570         * config/i386/freebsd64.h (CC1_SPEC): Define.
7571         * config/i386/linux64.h (CC1_SPEC): Define.
7572         * config/i386/x86-64.h (CC1_SPEC): Don't define.
7573
7574 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
7575
7576         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7577         Remove.
7578         * config/stormy16/stormy16.c: Include reload.h.
7579         (xstormy16_memory_move_cost): New function.
7580         (TARGET_MEMORY_MOVE_COST): Define.
7581
7582 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
7583
7584         PR rtl-optimization/47925
7585         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
7586         with side effects.  Remove the more-specific check for volatile asms.
7587
7588 2011-03-02  Alan Modra  <amodra@gmail.com>
7589
7590         PR target/47935
7591         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
7592         toc relative addresses for valid offsets.
7593
7594 2011-03-01  Richard Guenther  <rguenther@suse.de>
7595
7596         PR tree-optimization/47890
7597         * tree-vect-loop.c (get_initial_def_for_induction): Set
7598         related stmt properly.
7599
7600 2011-03-01  Richard Guenther  <rguenther@suse.de>
7601
7602         PR lto/47924
7603         * lto-streamer.c (lto_record_common_node): Also register
7604         the canonical type.
7605
7606 2011-03-01  Richard Guenther  <rguenther@suse.de>
7607
7608         PR lto/46911
7609         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7610         Do not stream DECL_ABSTRACT_ORIGIN.
7611         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
7612         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
7613         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7614         Do not stream DECL_ABSTRACT_ORIGIN.
7615         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
7616         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
7617
7618 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
7619
7620         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
7621         FUNCTION_VALUE_REGNO_P): Remove.
7622         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
7623         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
7624         Add 'outgoing' argument.
7625         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
7626         function.
7627         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7628         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7629
7630 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
7631
7632         PR debug/28047
7633         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
7634         (lookup_filename): Likewise.
7635         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
7636
7637 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
7638             Jakub Jelinek  <jakub@redhat.com>
7639
7640         PR middle-end/47893
7641         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
7642         (assign_stack_local_1): Change last argument type to int.
7643         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
7644         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
7645         don't record padding space into frame_space_list nor use those areas.
7646         (assign_stack_local): Adjust caller.
7647         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
7648         of assign_stack_local, pass 0 as last argument.
7649         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
7650         callers.
7651
7652 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
7653
7654         PR debug/47283
7655         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
7656         Use target address_mode and pointer_mode hooks instead of hardcoded
7657         Pmode and ptr_mode.  Handle some simple cases of extending if
7658         POINTERS_EXTEND_UNSIGNED < 0.
7659         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
7660         Call convert_debug_memory_address.
7661         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
7662         convert_debug_memory_address.
7663
7664         PR middle-end/46790
7665         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
7666         * configure: Regenerated.
7667         * config.in: Regenerated.
7668         * varasm.c (default_function_section): Return NULL
7669         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
7670
7671 2011-02-28  Martin Jambor  <mjambor@suse.cz>
7672
7673         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
7674         the description to match the printed values.
7675
7676 2011-02-28  Richard Guenther  <rguenther@suse.de>
7677
7678         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
7679         of the copied scope tree.
7680
7681 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7682
7683         * doc/extend.texi (Function Attributes): Avoid deeply (and
7684         wrongly) nested tables.
7685
7686 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
7687
7688         PR middle-end/47903
7689         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
7690         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
7691         r isn't op0 nor op1.
7692
7693 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
7694
7695         * config/avr/avr.md: Remove magic comment for emacs.
7696
7697 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
7698
7699         PR target/45261
7700         * config/avr/avr.c (avr_option_override): Use error on bad options.
7701         (avr_help): New function.
7702         (TARGET_HELP): Define.
7703
7704 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
7705
7706         PR target/42240
7707         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
7708         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
7709
7710 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
7711
7712         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
7713         (ARM Options): Ditto.
7714         (i386 and x86-64 Options): Ditto.
7715         (RX Options): Ditto.
7716         (SPARC Options): Ditto.
7717
7718 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
7719
7720         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
7721         FreeBSD 6 and later.  Generally use cpu generic.
7722
7723 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
7724
7725         * doc/cpp.texi: Update copyright years.
7726
7727 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
7728
7729         PR target/46898
7730         * config/lm32/lm32.md (ashrsi3): Added needed variable.
7731
7732 2011-02-25  Jon Beniston  <jon@beniston.com>
7733
7734         PR target/46898
7735         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
7736         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
7737         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
7738         (lm32_block_move_inline): Add type cast to remove warning.
7739         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
7740         (gen_int_relational): Move declarations to start of function.
7741
7742 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
7743
7744         PR tree-optimization/45470
7745         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
7746         can throw internally only.
7747         * tree-vect-stmts.c (vectorizable_call): Likewise.
7748
7749 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
7750
7751         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
7752         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
7753         * config/stormy16/stormy16-protos.h
7754         (xstormy16_preferred_reload_class): Remove.
7755         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
7756         static. Change 'rclass' argument and return type to reg_class_t.
7757         (TARGET_PREFERRED_RELOAD_CLASS,
7758         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7759
7760 2011-02-24  Richard Guenther  <rguenther@suse.de>
7761
7762         * lto-streamer-in.c (input_bb): Do not find referenced vars
7763         in debug statements.
7764
7765 2011-02-23  Jason Merrill  <jason@redhat.com>
7766
7767         * common.opt (fabi-version): Document v5 and v6.
7768
7769 2011-02-23  Richard Guenther  <rguenther@suse.de>
7770
7771         PR tree-optimization/47849
7772         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
7773
7774 2011-02-23  Jie Zhang  <jie@codesourcery.com>
7775
7776         * opts-common.c (decode_cmdline_option): Print empty string
7777         argument as "" in decoded->orig_option_with_args_text.
7778         * gcc.c (execute): Print empty string argument as ""
7779         in the verbose output.
7780         (do_spec_1): Keep empty string argument.
7781
7782 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
7783
7784         * config.gcc: Declare score-* and crx-* obsolete.
7785
7786 2011-02-23  Jie Zhang  <jie@codesourcery.com>
7787
7788         PR rtl-optimization/47763
7789         * web.c (web_main): Ignore naked clobber when replacing register.
7790
7791 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
7792
7793         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7794         Remove.
7795
7796 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
7797
7798         PR doc/47848
7799         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
7800
7801 2011-02-22  Mike Stump  <mikestump@comcast.net>
7802
7803         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
7804         assembler.
7805         * configure: Regenerate.
7806
7807 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
7808
7809         PR rtl-optimization/46002
7810         * ira-color.c (update_copy_costs): Change class intersection
7811         test to reg_class_contents[] test of 'hard_regno'.
7812
7813 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
7814
7815         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
7816         than Driver option.
7817         * config/hpux11.opt (mt): Likewise.
7818         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
7819         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
7820         * config/vax/elf.opt (mno-asm-pic): Likewise.
7821         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
7822
7823 2011-02-21  Mike Stump  <mikestump@comcast.net>
7824
7825         PR target/47822
7826         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
7827         tree so we can get save the type.
7828         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
7829         for CFString instead of trying to use past the end of the builtins.
7830         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
7831         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
7832         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
7833         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
7834         Rename to darwin_builtin_cfstring.
7835         (darwin_init_cfstring_builtins): Return the built type.
7836
7837 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
7838
7839         PR target/47840
7840         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
7841         (_mm256_insert_epi64): Use _mm_insert_epi64.
7842
7843 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
7844
7845         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7846         * config/stormy16/stormy16-protos.h
7847         (xstormy16_mode_dependent_address_p): Remove.
7848         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
7849         Make static. Change return type to bool. Change argument type to
7850         const_rtx. Remove dead code.
7851         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7852
7853 2011-02-21  Richard Guenther  <rguenther@suse.de>
7854
7855         PR lto/47820
7856         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7857         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7858         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
7859         TUs context.
7860         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7861         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7862
7863 2011-02-20  Richard Guenther  <rguenther@suse.de>
7864
7865         PR lto/47822
7866         * tree.c (free_lang_data_in_decl): Clean builtins from
7867         the TU decl BLOCK_VARS.
7868
7869 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
7870
7871         PR debug/47620
7872         PR debug/47630
7873         * haifa-sched.c (fix_tick_ready): Skip tick computation
7874         for debug insns.
7875
7876 2011-02-19  Richard Guenther  <rguenther@suse.de>
7877
7878         PR lto/47647
7879         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
7880         Remove lazy BLOCK_VARS streaming.
7881         (lto_input_ts_block_tree_pointers): Likewise.
7882         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
7883
7884 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
7885
7886         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
7887
7888 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
7889
7890         * config/i386/biarch32.h, config/i386/mach.h,
7891         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
7892
7893 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
7894
7895         PR target/47800
7896         * config/i386/i386.md (peephole2 for shift and plus): Use
7897         operands[1] original mode in the first insn.
7898
7899 2011-02-18  Mike Stump  <mikestump@comcast.net>
7900
7901         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
7902
7903 2011-02-18  Jan Hubicka  <jh@suse.cz>
7904
7905         PR middle-end/47788
7906         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
7907         to zero when the function is not inlinable at all.
7908
7909 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7910
7911         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
7912         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7913         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
7914         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
7915         * config/pa/t-pa64: Likewise.
7916         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7917
7918 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
7919
7920         PR driver/47787
7921         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
7922
7923 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7924
7925         PR target/47792
7926         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
7927
7928 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
7929
7930         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7931         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
7932         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
7933         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7934         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
7935         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
7936         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
7937         m32r_load_postinc_p, m32r_store_preinc_predec_p,
7938         m32r_legitimate_address_p): New functions.
7939         * config/m32r/constraints.md (constraint "S"): Don't use
7940         STORE_PREINC_PREDEC_P.
7941         (constraint "U"): Don't use LOAD_POSTINC_P.
7942
7943 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
7944
7945         PR rtl-optimization/46178
7946         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
7947         compute ira_hard_regno_cover_class[].
7948
7949 2011-02-18  Richard Guenther  <rguenther@suse.de>
7950
7951         PR lto/47798
7952         * lto-streamer.h (lto_global_var_decls): Declare.
7953         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
7954         statics for global var processing.
7955
7956 2011-02-18  Richard Guenther  <rguenther@suse.de>
7957
7958         PR tree-optimization/47737
7959         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
7960         edge dominance check.
7961
7962 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
7963
7964         PR debug/47780
7965         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
7966         avoid invalid rtx sharing.
7967
7968 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
7969
7970         * doc/cpp.texi (Obsolete Features): Add background on the
7971         origin of assertions.
7972
7973 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
7974
7975         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
7976         objc_abi == 2.
7977         * config/darwin.c (output_objc_section_asm_op): Added support for
7978         ABI v1 and v2.
7979         (is_objc_metadata): New.
7980         (darwin_objc2_section): New.
7981         (darwin_objc1_section): New.
7982         (machopic_select_section): Added support for ABI v1 and v2.
7983         (darwin_emit_objc_zeroed): New.
7984         (darwin_output_aligned_bss): Detect objc metadata and treat it
7985         appropriately.
7986         (darwin_asm_output_aligned_decl_common): Same.
7987         (darwin_asm_output_aligned_decl_local): Same.
7988         * config/darwin-sections.def: Updated for ABI v1 and v2.
7989         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
7990         compiling Objective-C code for the NeXT runtime, default to using
7991         ABI version 0 for 32-bit, and version 2 for 64-bit.
7992
7993 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7994
7995         * common.opt (optimize_fast): New Variable.
7996         * opts.c (default_options_optimization): Use opts->x_optimize_fast
7997         instead of local variable ofast.
7998
7999 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
8000
8001         * doc/invoke.texi (fobjc-abi-version): Documented.
8002         (fobjc-nilcheck): Documented.
8003         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
8004         version.
8005
8006 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
8007
8008         PR driver/47390
8009         * common.opt (export-dynamic): New Driver option.
8010         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
8011
8012 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
8013
8014         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
8015
8016 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
8017             Jan Hubicka  <jh@suse.cz>
8018
8019         PR debug/47106
8020         PR debug/47402
8021         * cfgexpand.c (account_used_vars_for_block): Remove.
8022         (estimated_stack_frame_size): Use referenced vars.
8023         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
8024         that were referenced in the original function.  Test src_fn
8025         rather than cfun.  Drop redundant get_var_ann.
8026         (setup_one_parameter): Drop redundant get_var_ann.
8027         (declare_return_variable): Likewise.
8028         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
8029         (copy_arguments_for_versioning): Drop redundant get_var_ann.
8030         * ipa-inline.c (compute_inline_parameters): Do not compute
8031         disregard_inline_limits here.
8032         (compute_inlinable_for_current, pass_inlinable): New.
8033         (pass_inline_parameters): Require PROP_referenced_vars.
8034         * cgraphunit.c (cgraph_process_new_functions): Don't run
8035         compute_inline_parameters explicitly unless function is in SSA form.
8036         (cgraph_analyze_function): Set .disregard_inline_limits.
8037         * tree-sra.c (convert_callers): Compute inliner parameters
8038         only for functions already in SSA form.
8039
8040 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
8041
8042         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
8043         -mlittle-endian-data.
8044
8045 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
8046
8047         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
8048         -mno-fpu, not -fpu and -no-fpu.
8049         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
8050         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
8051
8052 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
8053
8054         PR target/43653
8055         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
8056         input reload with PLUS RTX.
8057
8058 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8059
8060         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
8061         of InverseVar(MDMX).
8062
8063 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8064
8065         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
8066         --m4-340.
8067
8068 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8069
8070         * config/mn10300/mn10300.opt (mno-crt0): New.
8071
8072 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8073
8074         * config/m68k/uclinux.opt (static-libc): New Driver option.
8075
8076 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8077
8078         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
8079
8080 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8081
8082         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
8083         %{muser-extend-enabled}.
8084
8085 2011-02-16  Richard Guenther  <rguenther@suse.de>
8086
8087         PR tree-optimization/47738
8088         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
8089         the TODO from tree_predictive_commoning.
8090
8091 2011-02-15  Jeff Law  <law@redhat.com>
8092
8093         Revert
8094         2011-01-25  Jeff Law  <law@redhat.com>
8095
8096         PR rtl-optimization/37273
8097         * ira-costs.c (scan_one_insn): Detect constants living in memory and
8098         handle them like argument loads from stack slots.  Do not double
8099         count memory for memory constants and argument loads from stack slots.
8100
8101 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
8102
8103         PR middle-end/47725
8104         * combine.c (cant_combine_insn_p): Revert the last change.
8105
8106 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
8107
8108         PR target/47755
8109         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
8110         mode for vector constants.  Remove code that checks for TImode.
8111
8112 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
8113
8114         PR debug/47106
8115         PR debug/47402
8116         * cgraph.h (compute_inline_parameters): Return void.
8117         * ipa-inline.c (compute_inline_parameters): Adjust.
8118
8119 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
8120
8121         PR debug/47106
8122         PR debug/47402
8123         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
8124         rather than decl.
8125         * cfgexpand.c (estimated_stack_frame_size): Likewise.
8126         * ipa-inline.c (compute_inline_parameters): Adjust.
8127
8128 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
8129
8130         PR debug/47106
8131         PR debug/47402
8132         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
8133         Adjust all users.  Pass FN to...
8134         * tree-flow-inline.h (first_referenced_var): ... this.  Add
8135         fn argument.
8136         * ipa-struct-reorg.c: Adjust.
8137         * tree-dfa.c: Adjust.
8138         * tree-into-ssa.c: Adjust.
8139         * tree-sra.c: Adjust.
8140         * tree-ssa-alias.c: Adjust.
8141         * tree-ssa-live.c: Adjust.
8142         * tree-ssa.c: Adjust.
8143         * tree-ssanames.c: Adjust.
8144         * tree-tailcall.c: Adjust.
8145
8146 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
8147
8148         PR debug/47106
8149         PR debug/47402
8150         * tree-flow.h (referenced_var_lookup): Add fn parameter.
8151         Adjust all callers.
8152         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
8153         * tree-flow-inline.h: Adjust.
8154         * gimple-pretty-print.c: Adjust.
8155         * tree-into-ssa.c: Adjust.
8156         * tree-ssa.c: Adjust.
8157         * cfgexpand.c: Adjust.
8158
8159 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
8160
8161         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
8162         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8163         (EXTRA_CONSTRAINT): Delete.
8164         * config/iq2000/constraints.md: New file.
8165         * config/iq2000/iq2000.md: Include it.
8166         (define_insn ""): Delete.
8167         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
8168         unsupported constraint letters from patterns.
8169         (call_value, call_value_internal1): Likewise.
8170         (call_value_multiple_internal1): Likewise.
8171
8172 2011-02-15  Nick Clifton  <nickc@redhat.com>
8173
8174         * config/mn10300/mn10300.c: Include tm-constrs.h.
8175         (struct liw_data): New data structure describing an LIW candidate
8176         instruction.
8177         (extract_bundle): Use struct liw_data.  Allow small integer
8178         operands for some instructions.
8179         (check_liw_constraints): Use struct liw_data.  Remove swapped
8180         parameter.  Add comments describing the checks.  Fix bug when
8181         assigning the source of liw1 to the source of liw2.
8182         (liw_candidate): Delete.  Code moved into extract_bundle.
8183         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
8184         before swapping.
8185         * config/mn10300/predicates.md (liw_operand): New predicate.
8186         Allows registers and small integer constants.
8187         * config/mn10300/constraints.md (O): New constraint.  Accetps
8188         integers in the range -8 to +7 inclusive.
8189         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
8190         for moving a small integer into a register.  Give this alternative
8191         LIW attributes.
8192         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
8193         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
8194         using the J,K,L and M constraints,
8195         (liw): Remove SI mode on second operands to allow for HI and QI
8196         mode values.
8197         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
8198         instruction.
8199
8200 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
8201
8202         PR middle-end/47725
8203         * combine.c (cant_combine_insn_p): Check zero/sign extended
8204         hard registers.
8205
8206 2011-02-15  Richard Guenther  <rguenther@suse.de>
8207
8208         PR tree-optimization/47743
8209         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
8210         for a non-type-compatible VN lookup bail out.
8211
8212 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
8213
8214         * config/fr30/constraints.md: New file.
8215         * config/fr30/fr30.md: Include it.
8216         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
8217         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8218         (EXTRA_CONSTRAINT): Delete.
8219
8220 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
8221
8222         * config/frv/constraints.md: New file.
8223         * config/frv/predicates.md: Include it.
8224         * config/frv/frv.c (reg_class_from_letter): Delete.
8225         (frv_option_override): Don't initialize it.
8226         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
8227         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
8228         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
8229         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8230         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
8231         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8232         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
8233         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
8234         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
8235         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
8236         (REG_CLASS_FROM_CONSTRAINT): Delete.
8237
8238 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
8239
8240         PR middle-end/47581
8241         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
8242         if frame size is 0 in a leaf function.
8243
8244 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8245
8246         PR pch/14940
8247         * config/alpha/host-osf.c: New file.
8248         * config/alpha/x-osf: New file.
8249         * config.host (alpha*-dec-osf*): Use it.
8250
8251 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
8252
8253         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8254         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
8255         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
8256         (rx_mode_dependent_address_p): ...this. Make static. Change argument
8257         type to const_rtx.
8258         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8259
8260 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
8261
8262         * config/stormy16/constraints.md: New file.
8263         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
8264         Use satisfies_constraint_Q and satisfies_constraint_R.
8265         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
8266         Delete.
8267         (xstormy16_legitiamte_address_p): Declare.
8268         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
8269         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8270         (EXTRA_CONSTRAINT): Delete.
8271         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
8272         Un-staticize.
8273         (xstormy16_extra_constraint_p): Delete.
8274
8275 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
8276
8277         PR tree-optimization/46494
8278         * loop-unroll.c (split_edge_and_insert): Adjust comment.
8279         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
8280         (pass_rtl_loop_done): Add TODO_verify_flow.
8281         * fwprop.c (pass_rtl_fwprop): Likewise.
8282         * modulo-sched.c (pass_sms): Likewise.
8283         * tree-ssa-dom.c (pass_dominator): Likewise.
8284         * tree-ssa-loop-ch.c (pass_ch): Likewise.
8285         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
8286         (pass_tree_loop_done): Likewise.
8287         * tree-ssa-pre.c (execute_pre): Likewise.
8288         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
8289         * tree-ssa-sink.c (pass_sink_code): Likewise.
8290         * tree-vrp.c (pass_vrp): Likewise.
8291
8292 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
8293
8294         * config/v850/constraints.md: New file.
8295         * config/v850/v850.md: Include it.
8296         * config/v850/predicates.md (reg_or_0_operand): Use
8297         satisfies_constraint_G.
8298         (special_symbolref_operand): Use satisfies_constraint_K.
8299         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
8300         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
8301         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
8302         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8303         (EXTRA_CONSTRAINT): Delete.
8304         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
8305         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
8306         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
8307
8308 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
8309
8310         PR target/47696
8311         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
8312         description.
8313
8314 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
8315
8316         * config/mcore/constraints.md: New file.
8317         * config/mcore/mcore.md: Include it.
8318         * config/mcore/mcore.c (reg_class_from_letter): Delete.
8319         * config/mcore/mcore.h (reg_class_from_letter): Delete.
8320         (REG_CLASS_FROM_LETTER): Delete.
8321         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
8322         insn_const_int_ok_for_constraint.
8323         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
8324         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
8325         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8326         (EXTRA_CONSTRAINT): Delete.
8327
8328 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8329
8330         PR ada/41929
8331         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
8332         (IS_SIGHANDLER): Define.
8333         (sparc64_is_sighandler): New function, split off from
8334         sparc64_fallback_frame_state.
8335         (sparc_is_sighandler): New function, split off from
8336         sparc_fallback_frame_state.
8337         (sparc64_fallback_frame_state): Merge with ...
8338         (sparc_fallback_frame_state): ... this into ...
8339         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
8340         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
8341         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
8342         stack instead of hardcoded offsets.
8343
8344 2011-02-14  Andriy Gapon  <avg@freebsd.org>
8345
8346         PR target/45808
8347         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
8348
8349 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8350
8351         * configure: Regenerate.
8352
8353 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
8354
8355         PR driver/45731
8356         * gcc.c (asm_options): Correct spec matching --target-help.
8357
8358 2011-02-12  Martin Jambor  <mjambor@suse.cz>
8359
8360         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
8361         to gimple call error.
8362
8363 2011-02-12  Mike Stump  <mikestump@comcast.net>
8364
8365         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
8366         comments in backslash regions.
8367
8368 2011-02-12  Mike Stump  <mikestump@comcast.net>
8369             Jakub Jelinek  <jakub@redhat.com>
8370             Iain Sandoe  <iains@gcc.gnu.org>
8371
8372         PR target/47324
8373         * dwarf2out.c (output_cfa_loc): When required, apply the
8374         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
8375         (output_loc_sequence): Likewise.
8376         (output_loc_operands_raw): Likewise.
8377         (output_loc_sequence_raw): Likewise.
8378         (output_cfa_loc): Likewise.
8379         (output_loc_list): Suppress register number adjustment when
8380         calling output_loc_sequence()
8381         (output_die): Likewise.
8382
8383 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
8384
8385         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
8386         Remove macros.
8387         * config/xtensa/xtensa.c (xtensa_register_move_cost,
8388         xtensa_memory_move_cost): New functions.
8389         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
8390
8391 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
8392
8393         PR lto/47225
8394         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
8395         in the current directory.
8396         * configure: Rebuilt.
8397
8398 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
8399
8400         * config/darwin.c (darwin_override_options): Add a hunk missed
8401         from the commit of r168571.  Trim comment line lengths and
8402         correct indents of the preceding block.
8403
8404 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
8405
8406         * gcc.c (driver_handle_option): Concatenate the argument to -F with
8407         the switch.
8408
8409 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
8410
8411         * common.opt (nostartfiles): New Driver option.
8412
8413 2011-02-11  Xinliang David Li  <davidxl@google.com>
8414
8415         PR tree-optimization/47707
8416         * tree-chrec.c (convert_affine_scev): Keep type precision.
8417
8418 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
8419
8420         PR tree-optimization/47420
8421         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
8422
8423 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
8424
8425         PR rtl-optimization/47614
8426         * rtl.h (check_for_inc_dec): Declare.
8427         * dse.c (check_for_inc_dec): Externalize...
8428         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
8429         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
8430
8431 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
8432
8433         PR driver/47678
8434         * gcc.c (main): Do not compile inputs if there were errors in
8435         option handling.
8436         * opts-common.c (read_cmdline_option): Check for wrong language
8437         after other error checks.
8438
8439 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
8440
8441         * cgraph.c: Fix comment typos.
8442         * cgraph.h: Likewise.
8443         * cgraphunit.c: Likewise.
8444         * ipa-cp.c: Likewise.
8445         * ipa-inline.c: Likewise.
8446         * ipa-prop.c: Likewise.
8447         * ipa-pure-const.c: Likewise.
8448         * ipa-ref.c: Likewise.
8449         * ipa-reference.c: Likewise.
8450
8451 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
8452
8453         PR debug/47684
8454         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
8455
8456 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8457
8458         PR testsuite/47400
8459         * doc/sourcebuild.texi (Require Support): Document
8460         dg-require-ascii-locale.
8461
8462 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
8463
8464         * doc/lto.texi (Write summary): Fix missing parentheses.
8465
8466 2011-02-10  DJ Delorie  <dj@redhat.com>
8467
8468         * config/m32c/m32c.c (m32c_option_override): Disable
8469         -fcombine-stack-adjustments until flag value tracking and compare
8470         optimization can be rewritten.
8471
8472 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
8473
8474         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
8475         PROCESSOR_POWER7.
8476         (PROCESSOR_DEFAULT64): Likewise.
8477
8478 2011-02-10  Richard Henderson  <rth@redhat.com>
8479
8480         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
8481         change from 2011-02-03.
8482         * config/rx/rx.c (flags_from_code): Likewise.
8483         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
8484         is valid, n/pz otherwise.
8485         (rx_select_cc_mode): Return CCmode if Y is not zero.
8486
8487 2011-02-10  Richard Guenther  <rguenther@suse.de>
8488
8489         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
8490
8491 2011-02-10  Richard Guenther  <rguenther@suse.de>
8492
8493         PR tree-optimization/47677
8494         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
8495
8496 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
8497
8498         PR target/47665
8499         * combine.c (make_compound_operation): Only change shifts into
8500         multiplication for SCALAR_INT_MODE_P.
8501
8502 2011-02-10  Jie Zhang  <jie@codesourcery.com>
8503
8504         PR testsuite/47622
8505         Revert
8506         2011-02-05  Jie Zhang  <jie@codesourcery.com>
8507         PR debug/42631
8508         * web.c (entry_register): Don't clobber the number of the
8509         first uninitialized reference in used[].
8510
8511 2011-02-09  Richard Guenther  <rguenther@suse.de>
8512
8513         PR tree-optimization/47664
8514         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
8515         all edges again.
8516
8517 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
8518
8519         PR target/46481
8520         PR target/47032
8521         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
8522         PROCESSOR_POWER7.
8523         (PROCESSOR_DEFAULT64): Same.
8524         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
8525
8526 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8527
8528         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
8529
8530 2011-02-09  Martin Jambor  <mjambor@suse.cz>
8531
8532         PR middle-end/45505
8533         * tree-sra.c (struct access): New flags grp_scalar_read and
8534         grp_scalar_write.  Changed description of assignment read and write
8535         flags.
8536         (dump_access): Dump new flags, reorder all of them.
8537         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
8538         to detect multiple scalar reads.
8539         (analyze_access_subtree): Use the new scalar read write flags instead
8540         of the old flags.  Adjusted comments.
8541
8542 2011-02-08  DJ Delorie  <dj@redhat.com>
8543
8544         PR target/47548
8545         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
8546         patterns.
8547
8548 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8549
8550         * config/m68k/uclinux.opt: New.
8551         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
8552
8553 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8554
8555         * config/cris/elf.opt (sim): New Driver option.
8556
8557 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8558
8559         * config/xtensa/elf.opt: New.
8560         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
8561
8562 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8563
8564         * config/vax/elf.opt: New.
8565         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
8566
8567 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8568
8569         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
8570
8571 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8572
8573         * config/gnu-user.opt: New.
8574         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
8575         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
8576         *-*-uclinux*): Use gnu-user.opt.
8577
8578 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
8579
8580         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
8581         * config/i386/gnu.h (CPP_SPEC): Likewise.
8582
8583 2011-02-08  Ian Lance Taylor  <iant@google.com>
8584
8585         * common.opt (fcx-limited-range): Add SetByCombined flag.
8586         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
8587         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
8588         (fassociative-math, freciprocal-math): Likewise.
8589         (funsafe-math-optimizations): Likewise.
8590         * opth-gen.awk: Handle SetByCombined.
8591         * optc-gen.awk: Likewise.
8592         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
8593         (set_unsafe_math_optimizations_flags): Likewise.
8594         * doc/options.texi (Option properties): Document SetByCombined.
8595
8596 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8597
8598         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
8599         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
8600         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
8601         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
8602         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
8603
8604 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
8605
8606         PR tree-optimization/46834
8607         PR tree-optimization/46994
8608         PR tree-optimization/46995
8609         * graphite-sese-to-poly.c (used_outside_reduction): New.
8610         (detect_commutative_reduction): Call used_outside_reduction.
8611         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
8612         translate_scalar_reduction_to_array only when at least one
8613         loop-phi/close-phi tuple has been detected.
8614
8615 2011-02-08  Richard Guenther  <rguenther@suse.de>
8616
8617         PR middle-end/47639
8618         * tree-vect-generic.c (expand_vector_operations_1): Update
8619         stmts here ...
8620         (expand_vector_operations): ... not here.  Cleanup EH info
8621         and the CFG if required.
8622
8623 2011-02-08  Richard Guenther  <rguenther@suse.de>
8624
8625         PR tree-optimization/47641
8626         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
8627         require type compatibility.
8628
8629 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8630
8631         * gimple-low.c (lower_function_body): Don't remove the location of
8632         the return statement here.
8633         (lower_gimple_return): Do it here instead but only if the return
8634         statement is actually used twice.
8635
8636 2011-02-08  Richard Guenther  <rguenther@suse.de>
8637
8638         PR tree-optimization/47632
8639         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
8640         unused up_to_stmt parameter, return whether cfg-cleanup is
8641         necessary, remove EH info properly.
8642         (forward_propagate_into_gimple_cond): Adjust caller.
8643         (forward_propagate_into_cond): Likewise.
8644         (forward_propagate_comparison): Likewise.
8645         (tree_ssa_forward_propagate_single_use_vars): Make
8646         forward_propagate_comparison case similar to the two others.
8647
8648 2011-02-08  Nick Clifton  <nickc@redhat.com>
8649
8650         * config/mn10300/mn10300.opt (mliw): New command line option.
8651         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
8652         (liw_bundling): New automaton.
8653         (liw): New attribute.
8654         (liw_op): New attribute.
8655         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
8656         (movsi_internal): Add LIW attributes.
8657         (andsi3): Likewise.
8658         (iorsi3): Likewise.
8659         (xorsi3): Likewise.
8660         (addsi3): Separate register and immediate alternatives.
8661         Add LIW attributes.
8662         (subsi3): Likewise.
8663         (cmpsi): Likewise.
8664         (aslsi3): Likewise.
8665         (lshrsi3): Likewise.
8666         (ashrsi3): Likewise.
8667         (liw): New pattern.
8668         * config/mn10300/mn10300.c (liw_op_names): New
8669         (mn10300_print_operand): Handle 'W' operand descriptor.
8670         (extract_bundle): New function.
8671         (check_liw_constraints): New function.
8672         (liw_candidate): New function.
8673         (mn10300_bundle_liw): New function.
8674         (mn10300_reorg): New function.
8675         (TARGET_MACHINE_DEPENDENT_REORG): Define.
8676         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
8677         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
8678         __LIW__ or __NO_LIW__.
8679         * doc/invoke.texi: Describe the -mliw command line option.
8680
8681 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8682
8683         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
8684         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
8685         pthread_mutex_unlock): Remove.
8686         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
8687         * config/pa/t-pa64: Likewise.
8688         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
8689         shared libc if not linking against libpthread.
8690         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
8691
8692 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
8693
8694         PR target/47558
8695         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
8696         on 10.6 and later to ensure that we always use the unwinder from
8697         the system.  Only add -no_compact_unwind when tarteting darwin
8698         10.6 or later.
8699
8700 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
8701
8702         PR target/46997
8703         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
8704         (vec_interleave_lowv2sf): Ditto.
8705         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
8706         (vec_extract_oddv2sf): Ditto.
8707
8708 2011-02-07  Mike Stump  <mikestump@comcast.net>
8709
8710         PR target/42333
8711         Add __ieee_divdc3 entry point.
8712         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
8713         entry point.
8714         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
8715         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
8716         * config/darwin.c (darwin_rename_builtins): Add.
8717         * config/darwin-protos.h (darwin_rename_builtins): Add.
8718
8719 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
8720
8721         PR target/47636
8722         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
8723         for the condition.
8724
8725 2011-02-07  Mike Stump  <mikestump@comcast.net>
8726
8727         * config/darwin.opt (mmacosx-version-min): Update default OS version.
8728
8729 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
8730
8731         PR target/47534
8732         * config/avr/libgcc.S (exit): Move .endfunc
8733
8734 2011-02-07  Richard Guenther  <rguenther@suse.de>
8735
8736         PR tree-optimization/47615
8737         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
8738         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
8739         (run_scc_vn): Initialize it.
8740         (visit_reference_op_load): Use it.
8741         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
8742
8743 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8744
8745         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
8746         DImode trapping arithmetic libfuncs.
8747
8748 2011-02-07  Richard Guenther  <rguenther@suse.de>
8749
8750         PR tree-optimization/47621
8751         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
8752         two duplicates ...
8753         (execute_update_addresses_taken): ... here.  Make it more
8754         conservative in what we accept.
8755
8756 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
8757
8758         * config/sparc/freebsd.h (ASM_SPEC): Define.
8759         * config/sparc/vxworks.h (ASM_SPEC): Define.
8760
8761 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
8762
8763         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
8764
8765 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
8766
8767         * doc/invoke.texi: Remove reference to compiler internals from
8768         user documentation.
8769
8770         * reg-notes.def: Remove REG_VALUE_PROFILE.
8771         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
8772
8773 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
8774
8775         PR middle-end/47610
8776         * varasm.c (default_section_type_flags): If decl is NULL,
8777         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
8778
8779 2011-02-05  Jie Zhang  <jie@codesourcery.com>
8780
8781         PR debug/42631
8782         * web.c (entry_register): Don't clobber the number of the
8783         first uninitialized reference in used[].
8784
8785 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
8786
8787         PR tree-optimization/46194
8788         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
8789         (build_classic_dist_vector_1): Do not represent classic distance
8790         vectors when the access functions are variating in different loops.
8791
8792 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
8793
8794         * config/mips/iris6.opt: New.
8795         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
8796
8797 2011-02-04  Richard Henderson  <rth@redhat.com>
8798             Steve Ellcey  <sje@cup.hp.com>
8799
8800         PR target/46997
8801         * config/ia64/predicates.md (mux1_brcst_element): New.
8802         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
8803         * config/ia64/ia64.c (ia64_unpack_assemble): New.
8804         (ia64_unpack_sign): New.
8805         (ia64_expand_unpack): Rewrite using new routines.
8806         (ia64_expand_widen_sum): Ditto.
8807         (ia64_expand_dot_prod_v8qi): Ditto.
8808         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
8809         routines, add endian check.
8810         (pmpy2_even): Rename from pmpy2_r, add endian check.
8811         (pmpy2_odd): Rename from pmpy2_l, add endian check.
8812         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
8813         (vec_widen_smult_hi_v4hi): Ditto.
8814         (vec_widen_umult_lo_v4hi): Ditto.
8815         (vec_widen_umult_hi_v4hi): Ditto.
8816         (mulv2si3): Change endian checks.
8817         (sdot_prodv4hi): Rewrite with new calls.
8818         (udot_prodv4hi): New.
8819         (vec_pack_ssat_v4hi): Add endian check.
8820         (vec_pack_usat_v4hi): Ditto.
8821         (vec_pack_ssat_v2si): Ditto.
8822         (max1_even): Rename from max1_r, add endian check.
8823         (max1_odd): Rename from max1_l, add endian check.
8824         (*mux1_rev): Format change.
8825         (*mux1_mix): Ditto.
8826         (*mux1_shuf): Ditto.
8827         (*mux1_alt): Ditto.
8828         (*mux1_brcst_v8qi): Use new predicate.
8829         (vec_extract_evenv8qi): Remove endian check.
8830         (vec_extract_oddv8qi): Ditto.
8831         (vec_interleave_lowv4hi): Format change.
8832         (vec_interleave_highv4hi): Ditto.
8833         (mix2_even): Rename from mix2_r, add endian check.
8834         (mix2_odd): Rename from mux2_l, add endian check.
8835         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
8836         (vec_extract_evenodd_helper): Format change.
8837         (vec_extract_evenv4hi): Remove endian check.
8838         (vec_extract_oddv4hi): Remove endian check.
8839         (vec_interleave_lowv2si): Format change.
8840         (vec_interleave_highv2si): Format change.
8841         (vec_initv2si): Remove endian check.
8842         (vecinit_v2si): Add endian check.
8843         (reduc_splus_v2sf): Add endian check.
8844         (reduc_smax_v2sf): Ditto.
8845         (reduc_smin_v2sf): Ditto.
8846         (vec_initv2sf): Remove endian check.
8847         (fpack): Add endian check.
8848         (fswap): Add endian check.
8849         (vec_interleave_highv2sf): Add endian check.
8850         (vec_interleave_lowv2sf): Add endian check.
8851         (fmix_lr): Add endian check.
8852         (vec_setv2sf): Format change.
8853         (*vec_extractv2sf_0_be): Use shift to extract operand.
8854         (*vec_extractv2sf_1_be): New.
8855         (vec_pack_trunc_v4hi): Add endian check.
8856         (vec_pack_trunc_v2si): Format change.
8857
8858 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
8859
8860         PR inline-asm/23200
8861         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
8862         do bb, locus and block comparison and disallow loads if it is not set.
8863         (stmt_is_replaceable_p): New function.
8864         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
8865         callers.
8866         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
8867         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
8868         SSA_NAME_DEF_STMT.
8869         * tree-flow.h (stmt_is_replaceable_p): New prototype.
8870
8871 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
8872
8873         * config/rs6000/xilinx.opt: New.
8874         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
8875
8876 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
8877
8878         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
8879
8880 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
8881
8882         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
8883         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
8884         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
8885         secondary_reload_info, xtensa_secondary_reload): Remove.
8886         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
8887         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8888         (xtensa_preferred_reload_class): Make static. Change return and
8889         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
8890         Use CONST_DOUBLE_P predicate.
8891         (xtensa_preferred_output_reload_class): New function.
8892         (xtensa_secondary_reload): Make static.
8893
8894 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
8895
8896         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
8897         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
8898         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
8899
8900 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
8901
8902         PR middle-end/31490
8903         * output.h (SECTION_RELRO): Define.
8904         (SECTION_MACH_DEP): Adjust.
8905         (get_variable_section): New prototype.
8906         * varpool.c (varpool_finalize_named_section_flags): New function.
8907         (varpool_assemble_pending_decls): Call it.
8908         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
8909         * cgraphunit.c (cgraph_output_in_order): Call
8910         varpool_finalize_named_section_flags.
8911         * varasm.c (get_section): Allow section flags conflicts between
8912         relro and read-only sections if the section hasn't been declared yet.
8913         Set SECTION_OVERRIDE after diagnosing section type conflict.
8914         (get_variable_section): No longer static.
8915         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
8916         readonly sections that need relocations.
8917         (decl_readonly_section_1): New function.
8918         (decl_readonly_section): Use it.
8919
8920         Revert:
8921         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
8922                     Steve Ellcey  <sje@cup.hp.com>
8923
8924         PR middle-end/31490
8925         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
8926         if section attribute used.
8927
8928 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
8929
8930         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
8931         * config/darwin.c (SECTION_NO_ANCHOR): Define.
8932         (darwin_init_sections): Remove assertion.
8933
8934 2011-02-03  Nick Clifton  <nickc@redhat.com>
8935
8936         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
8937         lt and ge.
8938         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
8939         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
8940         instead of "n" and "pz".
8941         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
8942         CC_FLAG_S.
8943
8944 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
8945
8946         PR target/47312
8947         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
8948         fma, expand FMA_EXPR as fma{,f,l} call.
8949
8950         PR lto/47274
8951         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
8952         copy them into a unsigned char variable and pass address of it to
8953         lto_output_data_stream.
8954
8955         PR target/47564
8956         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
8957         around backend_init_target and lang_dependent_init_target calls.
8958         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
8959         (verify_cgraph_node): Don't call set_cfun here.  Use
8960         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
8961         Set error_found for incorrectly represented calls to thunks.
8962
8963 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
8964
8965         PR debug/43092
8966         PR rtl-optimization/43494
8967         * rtl.h (for_each_inc_dec_fn): New type.
8968         (for_each_inc_dec): Declare.
8969         * rtlanal.c (struct for_each_inc_dec_ops): New type.
8970         (for_each_inc_dec_find_inc_dec): New fn.
8971         (for_each_inc_dec_find_mem): New fn.
8972         (for_each_inc_dec): New fn.
8973         * dse.c (struct insn_size): Remove.
8974         (replace_inc_dec, replace_inc_dec_mem): Remove.
8975         (emit_inc_dec_insn_before): New fn.
8976         (check_for_inc_dec): Use it, along with for_each_inc_dec.
8977         (canon_address): Pass mem modes to cselib_lookup.
8978         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
8979         (cselib_lookup_from_insn): Likewise.
8980         (cselib_subst_to_values): Likewise.
8981         * cselib.c (find_slot_memmode): New var.
8982         (cselib_find_slot): New fn.  Use it instead of
8983         htab_find_slot_with_hash everywhere.
8984         (entry_and_rtx_equal_p): Use find_slot_memmode.
8985         (autoinc_split): New fn.
8986         (rtx_equal_for_cselib_p): Rename and implement in terms of...
8987         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
8988         Deal with autoinc.  Special-case recursion into MEMs.
8989         (cselib_hash_rtx): Likewise.
8990         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
8991         address and MEM modes.
8992         (cselib_subst_to_values): Add memmode, pass it on.
8993         Deal with autoinc.
8994         (cselib_lookup): Add memmode argument, pass it on.
8995         (cselib_lookup_from_insn): Add memmode.
8996         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
8997         (struct cselib_record_autoinc_data): New.
8998         (cselib_record_autoinc_cb): New fn.
8999         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
9000         mode to cselib_lookup.  Reset autoinced REGs here instead of...
9001         (cselib_process_insn): ... here.
9002         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
9003         to cselib_lookup.
9004         (add_uses): Likewise, also to cselib_subst_to_values.
9005         (add_stores): Likewise.
9006         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
9007         cselib_subst_to_values.
9008         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
9009         * gcse.c (do_local_cprop): Adjusted.
9010         * postreload.c (reload_cse_simplify_set): Adjusted.
9011         (reload_cse_simplify_operands): Adjusted.
9012         * sel-sched-dump (debug_mem_addr_value): Pass mode.
9013
9014 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
9015
9016         PR tree-optimization/45122
9017         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
9018         unsafe assumptions when there's more than one loop exit.
9019
9020 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
9021
9022         PR target/47272
9023         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
9024         Document using vector double with the load/store builtins, and
9025         that the load/store builtins always use Altivec instructions.
9026
9027         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
9028         to use altivec memory instructions, even on VSX.
9029         (vector_altivec_store_<mode>): Ditto.
9030
9031         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
9032         function.
9033
9034         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9035         V2DF, V2DI support to load/store overloaded builtins.
9036
9037         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
9038         altivec load/store builtins for V2DF/V2DI types.
9039
9040         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
9041         set avoid indexed addresses on power6 if -maltivec.
9042         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
9043         vector_altivec_load/vector_altivec_store builtins.
9044         (altivec_expand_st_builtin): Ditto.
9045         (altivec_expand_builtin): Add VSX memory builtins.
9046         (rs6000_init_builtins): Add V2DI types to internal types.
9047         (altivec_init_builtins): Add support for V2DF/V2DI altivec
9048         load/store builtins.
9049         (rs6000_address_for_altivec): Insure memory address is appropriate
9050         for Altivec.
9051
9052         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
9053         vec_vsx_ld and vec_vsx_st.
9054         (vsx_store_<mode>): Ditto.
9055
9056         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
9057         variables to hold long long types for VSX vector memory builtins.
9058         (RS6000_BTI_unsigned_long_long): Ditto.
9059         (long_long_integer_type_internal_node): Ditti.
9060         (long_long_unsigned_type_internal_node): Ditti.
9061
9062         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
9063         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
9064         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
9065
9066         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
9067         short cuts.
9068         (vec_vsx_st): Ditto.
9069
9070 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
9071
9072         * config/pa/pa-hpux10.opt: New.
9073         * config/hpux11.opt (pthread): New Driver option.
9074         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
9075         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
9076
9077 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
9078
9079         * config/ia64/vms.opt: New.
9080         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
9081
9082 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
9083
9084         PR target/47580
9085         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
9086         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
9087         generator functions.
9088         (vsx_floatuns<VSi><mode>2): Ditto.
9089         (vsx_fix_trunc<mode><VSi>2): Ditto.
9090         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
9091
9092 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
9093
9094         * config/i386/djgpp.opt (posix): New Driver option.
9095
9096 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
9097
9098         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
9099         Move to the unsupported targets list.
9100
9101 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
9102
9103         PR rtl-optimization/47525
9104         * df-scan.c: Update copyright years.
9105         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
9106         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
9107
9108 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9109
9110         * config/i386/sysv4.h (TARGET_VERSION): Remove.
9111         (SUBTARGET_RETURN_IN_MEMORY): Remove.
9112         (ASM_OUTPUT_ASCII): Remove.
9113         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
9114
9115 2011-02-02  Jeff Law  <law@redhat.com>
9116
9117         PR middle-end/47543
9118         * reload.c (find_reloads_address): Handle reg+d address where both
9119         components are invalid by reloading the entire address.
9120
9121 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
9122             Richard Guenther  <rguenther@suse.de>
9123
9124         PR tree-optimization/40979
9125         PR bootstrap/47044
9126         * passes.c (init_optimization_passes): After LIM call copy_prop
9127         and DCE to clean up.
9128         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
9129
9130 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
9131
9132         PR tree-optimization/47576
9133         PR tree-optimization/47555
9134         * doc/invoke.texi (scev-max-expr-complexity): Documented.
9135         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
9136         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
9137         * tree-scalar-evolution.c (follow_ssa_edge): Use
9138         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
9139
9140 2011-02-02  Richard Guenther  <rguenther@suse.de>
9141
9142         PR tree-optimization/47566
9143         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
9144
9145 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
9146
9147         PR debug/47106
9148         PR debug/47402
9149         * tree-inline.c (declare_return_variable): Remove unused caller
9150         variable.
9151
9152         PR debug/47106
9153         PR debug/47402
9154         * tree-flow-inline.h (clear_is_used, is_used_p): New.
9155         * cfgexpand.c (account_used_vars_for_block): Use them.
9156         * tree-nrv.c (tree_nrv): Likewise.
9157         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
9158         (dump_scope_block): Likewise.
9159         (remove_unused_locals): Likewise.
9160
9161         PR debug/47106
9162         PR debug/47402
9163         * tree-inline.c (declare_return_variable): Add result decl to
9164         local decls only once.
9165         * gimple-low.c (record_vars_into): Mark newly-created variables
9166         as referenced.
9167
9168 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
9169
9170         PR debug/47498
9171         PR debug/47501
9172         PR debug/45136
9173         PR debug/45130
9174         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9175         debug insns.
9176         (no_real_insns_p, schedule_block, set_priorities): Drop special
9177         treatment of boundary debug insns.
9178         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9179         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
9180         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9181         (BOUNDARY_DEBUG_INSN_P): Likewise.
9182         (SCHEDULE_DEBUG_INSN_P): Likewise.
9183         * sched-rgn.c (init_ready_list): Drop special treatment of
9184         boundary debug insns.
9185         * final.c (rest_of_clean_state): Clear notes' BB.
9186
9187 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9188
9189         * config/openbsd.opt (assert=): New Driver option.
9190
9191 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9192
9193         * config/i386/nto.opt: New.
9194         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
9195
9196 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9197
9198         * config/i386/netware.opt: New.
9199         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
9200
9201 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9202
9203         * config/interix.opt (posix): New Driver option.
9204
9205 2011-02-01  DJ Delorie  <dj@redhat.com>
9206
9207         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
9208
9209         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
9210         class for A0/A1.
9211
9212 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
9213
9214         PR tree-optimization/47561
9215         * toplev.c (process_options): Print the Graphite flags.  Add
9216         flag_loop_flatten to the list of options requiring Graphite.
9217
9218 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9219
9220         * config/i386/cygming.opt (posix): New Driver option.
9221
9222 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9223
9224         * config/arm/vxworks.opt: New.
9225         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
9226
9227 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9228
9229         * config/alpha/elf.opt: New.
9230         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
9231         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
9232
9233 2011-02-01  Richard Guenther  <rguenther@suse.de>
9234
9235         PR tree-optimization/47559
9236         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
9237         store-motion on references that can throw.
9238
9239 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
9240
9241         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
9242         * tree-pass.h (TDF_CSELIB): New macro.
9243         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
9244         cselib_lookup): Check for it rather than for TDF_DETAILS.
9245
9246 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
9247
9248         PR driver/47547
9249         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
9250         is HOST_BIT_BUCKET.
9251
9252         * opts.c (finish_options): Don't add x_aux_base_name if it is
9253         HOST_BIT_BUCKET.
9254
9255 2011-02-01  Richard Guenther  <rguenther@suse.de>
9256
9257         PR tree-optimization/47555
9258         Revert
9259         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
9260
9261         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
9262
9263 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
9264
9265         PR gcc/46692
9266         * config/lm32/t-lm32: Add multilib for all CPU options.
9267
9268 2011-02-01  Richard Guenther  <rguenther@suse.de>
9269
9270         PR tree-optimization/47541
9271         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
9272         sure to have a field at offset zero.
9273
9274 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
9275
9276         * config/arc/arc.opt (EB, EL): New Driver options.
9277
9278 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
9279
9280         * config/alpha/osf5.opt: New.
9281         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
9282
9283 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
9284
9285         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
9286
9287 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
9288
9289         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
9290         -floop-interchange.
9291         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
9292         is an alias of -floop-interchange and that it requires the
9293         Graphite infrastructure.
9294         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
9295         flag_loop_interchange based on the value of flag_tree_loop_linear.
9296
9297 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
9298             Richard Guenther  <rguenther@suse.de>
9299
9300         PR tree-optimization/47538
9301         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
9302         type instead of r1type, except for comparisons.  For right
9303         shifts and comparisons punt if there are mismatches in
9304         sizetype vs. non-sizetype types.
9305
9306 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9307
9308         * doc/sourcebuild.texi (Effective-Target Keywords): Document
9309         avx_runtime.
9310
9311 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9312
9313         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
9314         version number.
9315         * configure: Regenerate.
9316
9317 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9318
9319         * configure.ac (gcc_cv_ld_static_option): Define.
9320         (gcc_cv_ld_dynamic_option): Define.
9321         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
9322         instead.
9323         (HAVE_LD_STATIC_DYNAMIC): Update message.
9324         (LD_STATIC_OPTION): Define.
9325         (LD_DYNAMIC_OPTION): Define.
9326         * configure: Regenerate.
9327         * config.in: Regenerate.
9328         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
9329         HAVE_LD_STATIC_DYNAMIC]: Use them.
9330
9331 2011-01-31  Nick Clifton  <nickc@redhat.com>
9332
9333         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
9334         registers inside interrupt handlers if the handler is not a leaf
9335         function.
9336
9337 2011-01-31  Nick Clifton  <nickc@redhat.com>
9338
9339         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
9340         reg_renumber returning an INVALID_REGNUM.
9341
9342 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
9343
9344         PR libgcj/44341
9345         * doc/install.texi: Document host options discarded when cross
9346         configuring target libraries.
9347
9348 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
9349
9350         Reverted:
9351         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
9352         PR debug/45136
9353         PR debug/45130
9354         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9355         debug insns.
9356         (no_real_insns_p, schedule_block, set_priorities): Drop special
9357         treatment of boundary debug insns.
9358         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9359         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9360         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9361         (BOUNDARY_DEBUG_INSN_P): Likewise.
9362         (SCHEDULE_DEBUG_INSN_P): Likewise.
9363         * sched-rgn.c (init_ready_list): Drop special treatment of
9364         boundary debug insns.
9365         * final.c (rest_of_clean-state): Clear notes' BB.
9366
9367 2011-01-31  Alan Modra  <amodra@gmail.com>
9368
9369         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
9370         toc relative expressions as we do in print_operand_address.
9371
9372 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
9373
9374         * doc/extend.texi: Follow spelling conventions.
9375         * doc/invoke.texi: Fix a typo.
9376
9377 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
9378
9379         * config/hpux11.opt: New.
9380         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
9381         ia64*-*-hpux*): Use hpux11.opt.
9382
9383 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
9384
9385         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
9386         to tmake_file.
9387
9388 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
9389
9390         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
9391         support sites.
9392
9393 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
9394
9395         * doc/install.texi (Binaries): Remove outdated reference for
9396         Motorola 68HC11/68HC12 downloads.
9397
9398 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
9399
9400         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
9401         Drepper's paper.
9402
9403 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
9404
9405         PR bootstrap/47147
9406         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
9407         used by NetBSD.
9408
9409 2011-01-28  Ahmad Sharif  <asharif@google.com>
9410
9411         * value-prof.c (check_counter): Corrected error message.
9412
9413 2011-01-29  Jie Zhang  <jie@codesourcery.com>
9414
9415         * config/arm/arm.c (arm_legitimize_reload_address): New.
9416         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
9417         arm_legitimize_reload_address.
9418         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
9419
9420 2011-01-28  Ian Lance Taylor  <iant@google.com>
9421
9422         * godump.c (go_define): Ignore macros whose definitions include
9423         two adjacent operands.
9424
9425 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
9426
9427         PR target/42894
9428         * varasm.c (force_const_mem): Store copy of x in desc->constant
9429         instead of x itself.
9430         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
9431         itself into REG_EQUAL note.
9432
9433 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
9434
9435         * config/freebsd.opt (posix, rdynamic): New Driver options.
9436
9437 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9438
9439         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
9440         -Bstatic/-Bdynamic.
9441         * configure: Regenerate.
9442
9443 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
9444
9445         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
9446         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
9447
9448 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
9449
9450         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
9451         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
9452         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
9453         (s390_preferred_reload_class): Make static. Change return and
9454         'rclass' argument type to reg_class_t.
9455
9456 2011-01-27  Jan Hubicka  <jh@suse.cz>
9457
9458         PR middle-end/46949
9459         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
9460         (process_function_and_variable_attributes): Check defined weakrefs.
9461
9462 2011-01-27  Martin Jambor  <mjambor@suse.cz>
9463
9464         PR tree-optimization/47228
9465         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
9466         build_ref_for_offset.
9467
9468 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9469
9470         * config/spu/spu-elf.h (ASM_SPEC): Remove.
9471
9472 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
9473
9474         PR rtl-optimization/46856
9475         * postreload.c (reload_combine_recognize_const_pattern): Do not
9476         separate cc0 setter and user on cc0 targets.
9477
9478 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
9479
9480         PR c/43082
9481         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
9482         passed a VOID_TYPE expression, immediately emit an error and
9483         return error_mark_node.
9484
9485 2011-01-26  Jeff Law  <law@redhat.com>
9486
9487         PR rtl-optimization/47464
9488         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
9489         rather than may_trap_p as needed.
9490
9491 2011-01-26  DJ Delorie  <dj@redhat.com>
9492
9493         PR rtl-optimization/46878
9494         * combine.c (insn_a_feeds_b): Check for the implicit cc0
9495         setter/user dependency as well.
9496
9497 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
9498
9499         PR rtl-optimization/44469
9500         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
9501         after removing trivially dead basic blocks.
9502
9503 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9504
9505         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
9506         * config/frv/frv.h (LINK_SPEC): Likewise.
9507         * config/i386/netware.h (LINK_SPEC): Likewise.
9508         * config/m68k/linux.h (ASM_SPEC): Likewise.
9509         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
9510         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9511         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9512         * config/sparc/linux.h (ASM_SPEC): Likewise.
9513         * config/sparc/linux64.h (ASM_SPEC): Likewise.
9514         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9515
9516 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9517
9518         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
9519         * config/frv/frv.h (ASM_SPEC): Likewise.
9520         * config/m68k/linux.h (ASM_SPEC): Likewise.
9521         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9522         * config/rs6000/linux64.h (ASM_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 (LINK_SPEC): Remove %{YP,*}.
9531         * config/frv/frv.h (LINK_SPEC): Likewise.
9532         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9533
9534 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9535
9536         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
9537         * config/frv/frv.h (ASM_SPEC): Likewise.
9538         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
9539         * config/m68k/linux.h (ASM_SPEC): Likewise.
9540         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9541         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
9542         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9543         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
9544         * config/sparc/linux.h (ASM_SPEC): Likewise.
9545         * config/sparc/linux64.h (ASM_SPEC): Likewise.
9546         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9547         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
9548
9549 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
9550
9551         PR target/46997
9552         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
9553         (*mux2): Ditto.
9554         (vec_extract_evenodd_help): Ditto.
9555         (vec_extract_evenv4hi): Ditto.
9556         (vec_extract_oddv4hi): Ditto.
9557         (vec_interleave_lowv2si): Ditto.
9558         (vec_interleave_highv2si): Ditto.
9559         (vec_extract_evenv2si): Ditto.
9560         (vec_extract_oddv2si: Ditto.
9561         (vec_pack_trunc_v2si): Ditto.
9562
9563 2011-01-22  Jan Hubicka  <jh@suse.cz>
9564
9565         PR target/47237
9566         * cgraph.h (cgraph_local_info): New field can_change_signature.
9567         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
9568         signature can change.
9569         (ipcp_estimate_growth): Call sequence simplify only if calle signature
9570         can change.
9571         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
9572         (cgraph_function_versioning): We can not change signature of functions
9573         that don't allow that.
9574         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
9575         (lto_input_node): Likewise.
9576         * ipa-inline.c (compute_inline_parameters): Compute
9577         local.can_change_signature.
9578         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
9579         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
9580         functions that can not change signature.
9581         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
9582         init_cumulative_args): Do not use local calling conventions
9583         for functions that can not change signature.
9584
9585 2011-01-22  Jan Hubicka  <jh@suse.cz>
9586
9587         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
9588
9589 2011-01-26  Richard Guenther  <rguenther@suse.de>
9590
9591         PR tree-optimization/47190
9592         * cgraphunit.c (process_common_attributes): New function.
9593         (process_function_and_variable_attributes): Use it.
9594
9595 2011-01-26  Richard Guenther  <rguenther@suse.de>
9596
9597         PR lto/47423
9598         * cgraphbuild.c (record_eh_tables): Record reference to personality
9599         function.
9600
9601 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
9602
9603         PR debug/45454
9604         * sel-sched.c (moveup_expr): Don't let debug insns prevent
9605         non-debug insns from moving up.
9606
9607 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
9608
9609         PR target/40125
9610         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
9611         t-dlldir{,-x} fragment for build and add it to tmake_file.
9612         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
9613         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
9614         * config/i386/t-dlldir: New file.
9615         (SHLIB_DLLDIR): Define.
9616         * config/i386/t-dlldir-x: New file.
9617         (SHLIB_DLLDIR): Define.
9618         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
9619         (SHLIB_INSTALL): Use it.
9620
9621 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
9622
9623         PR target/47246
9624         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
9625         lower bound of the allowed Thumb-2 coprocessor load/store
9626         index range to -256. Add explaining comment.
9627
9628 2011-01-25  Ian Lance Taylor  <iant@google.com>
9629
9630         * godump.c (go_define): Improve lexing of macro expansion to only
9631         accept expressions which match Go spec.
9632
9633 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
9634
9635         PR c++/43601
9636         * tree.c (handle_dll_attribute): Handle it.
9637         * doc/extend.texi (@item dllexport): Mention it.
9638         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
9639
9640 2011-01-25  Ian Lance Taylor  <iant@google.com>
9641
9642         PR tree-optimization/26854
9643         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
9644         (decl_jump_unsafe): Move higher in file, with no other change.
9645         (bind): Set has_jump_unsafe_decl if appropriate.
9646         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
9647         (check_earlier_gotos): Likewise.
9648         (c_check_switch_jump_warnings): Likewise.
9649
9650 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
9651
9652         * doc/invoke.texi (Warning Options): Add missing hyphen.
9653         (-fprofile-dir): Minor grammatical fixes.
9654         (-fbranch-probabilities): Likewise.
9655
9656 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
9657
9658         PR debug/45136
9659         PR debug/45130
9660         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9661         debug insns.
9662         (no_real_insns_p, schedule_block, set_priorities): Drop special
9663         treatment of boundary debug insns.
9664         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9665         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9666         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9667         (BOUNDARY_DEBUG_INSN_P): Likewise.
9668         (SCHEDULE_DEBUG_INSN_P): Likewise.
9669         * sched-rgn.c (init_ready_list): Drop special treatment of
9670         boundary debug insns.
9671         * final.c (rest_of_clean-state): Clear notes' BB.
9672
9673 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9674
9675         * Makefile.in (LAMBDA_H): Removed.
9676         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
9677         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
9678         lambda-trans.o, and tree-loop-linear.o.
9679         (lto-symtab.o): Remove dependence on LAMBDA_H.
9680         (tree-loop-linear.o): Remove rule.
9681         (lambda-mat.o): Same.
9682         (lambda-trans.o): Same.
9683         (lambda-code.o): Same.
9684         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
9685         (tree-vect-slp.o): Same.
9686         * hwint.h (gcd): Moved here.
9687         (least_common_multiple): Same.
9688         * lambda-code.c: Removed.
9689         * lambda-mat.c: Removed.
9690         * lambda-trans.c: Removed.
9691         * lambda.h: Removed.
9692         * tree-loop-linear.c: Removed.
9693         * lto-symtab.c: Do not include lambda.h.
9694         * omega.c (gcd): Removed.
9695         * passes.c (init_optimization_passes): Remove pass_linear_transform.
9696         * tree-data-ref.c (print_lambda_vector): Moved here.
9697         (lambda_vector_copy): Same.
9698         (lambda_matrix_copy): Same.
9699         (lambda_matrix_id): Same.
9700         (lambda_vector_first_nz): Same.
9701         (lambda_matrix_row_add): Same.
9702         (lambda_matrix_row_exchange): Same.
9703         (lambda_vector_mult_const): Same.
9704         (lambda_vector_negate): Same.
9705         (lambda_matrix_row_negate): Same.
9706         (lambda_vector_equal): Same.
9707         (lambda_matrix_right_hermite): Same.
9708         * tree-data-ref.h: Do not include lambda.h.
9709         (lambda_vector): Moved here.
9710         (lambda_matrix): Same.
9711         (dependence_level): Same.
9712         (lambda_transform_legal_p): Removed declaration.
9713         (lambda_collect_parameters): Same.
9714         (lambda_compute_access_matrices): Same.
9715         (lambda_vector_gcd): Same.
9716         (lambda_vector_new): Same.
9717         (lambda_vector_clear): Same.
9718         (lambda_vector_lexico_pos): Same.
9719         (lambda_vector_zerop): Same.
9720         (lambda_matrix_new): Same.
9721         * tree-flow.h (least_common_multiple): Removed declaration.
9722         * tree-parloops.c (lambda_trans_matrix): Moved here.
9723         (LTM_MATRIX): Same.
9724         (LTM_ROWSIZE): Same.
9725         (LTM_COLSIZE): Same.
9726         (LTM_DENOMINATOR): Same.
9727         (lambda_trans_matrix_new): Same.
9728         (lambda_matrix_vector_mult): Same.
9729         (lambda_transform_legal_p): Same.
9730         * tree-pass.h (pass_linear_transform): Removed declaration.
9731         * tree-ssa-loop.c (tree_linear_transform): Removed.
9732         (gate_tree_linear_transform): Removed.
9733         (pass_linear_transform): Removed.
9734         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
9735         flag_loop_interchange.
9736
9737 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
9738
9739         PR tree-optimization/47265
9740         PR tree-optimization/47443
9741         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
9742         if name still has some uses.
9743
9744 2011-01-25  Martin Jambor  <mjambor@suse.cz>
9745
9746         PR tree-optimization/47382
9747         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
9748         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
9749
9750 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
9751
9752         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
9753         sjlj_except_unwind_info.
9754
9755 2011-01-25  Richard Guenther  <rguenther@suse.de>
9756
9757         PR tree-optimization/47426
9758         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
9759         visible functions results escape.
9760
9761 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
9762
9763         PR target/45701
9764         * config/arm/arm.c (any_sibcall_uses_r3): New function.
9765         (arm_get_frame_offsets): Use it.
9766
9767 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9768             Jakub Jelinek  <jakub@redhat.com>
9769
9770         PR tree-optimization/47271
9771         * tree-if-conv.c (bb_postdominates_preds): New.
9772         (if_convertible_bb_p): Call bb_postdominates_preds.
9773         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
9774         (predicate_scalar_phi): Call bb_postdominates_preds.
9775
9776 2011-01-25  Nick Clifton  <nickc@redhat.com>
9777
9778         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
9779         * config/rx/rx.c (rx_function_value): Likewise.
9780         (rx_promote_function_mode): Likewise.
9781         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
9782         in order to make it legitimate.
9783         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
9784         make sure that the first operand is the same as the result register.
9785         (addsi3_unspec): Delete.
9786         (subdi3): Do not accept immediate operands.
9787         (subdi3_internal): Likewise.
9788
9789 2011-01-25  Jeff Law  <law@redhat.com>
9790
9791         PR rtl-optimization/37273
9792         * ira-costs.c (scan_one_insn): Detect constants living in memory and
9793         handle them like argument loads from stack slots.  Do not double
9794         count memory for memory constants and argument loads from stack slots.
9795
9796 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
9797
9798         PR tree-optimization/47427
9799         PR tree-optimization/47428
9800         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
9801         coalesce if the new root var would be TREE_READONLY.
9802
9803 2011-01-25  Richard Guenther  <rguenther@suse.de>
9804
9805         PR middle-end/47414
9806         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
9807         correct type for TBAA.
9808
9809 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9810
9811         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
9812         (close_phi_written_to_memory): Call for_each_index with
9813         dr_indices_valid_in_loop.
9814
9815 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9816
9817         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
9818         when it is initialized.
9819
9820 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9821
9822         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
9823         call to graphite_find_data_references_in_stmt.
9824         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
9825         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
9826         call to graphite_find_data_references_in_stmt.
9827         (analyze_drs_in_stmts): Same.
9828         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
9829         in which the scalar analysis of indices is performed.
9830         (create_data_ref): Same.  Update call to dr_analyze_indices.
9831         (find_data_references_in_stmt): Update call to create_data_ref.
9832         (graphite_find_data_references_in_stmt): Same.
9833         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
9834         declaration.
9835         (create_data_ref): Same.
9836         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
9837         call to create_data_ref.
9838
9839 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9840
9841         * graphite-sese-to-poly.c (build_poly_scop): Move
9842         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
9843
9844 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9845
9846         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
9847         VAR_DECL, PARM_DECL, and RESULT_DECL.
9848
9849 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9850
9851         * graphite-dependences.c (reduction_dr_1): Allow several reductions
9852         in a reduction PBB.
9853         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
9854         that have already been marked as PBB_IS_REDUCTION.
9855
9856 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9857
9858         * graphite-scop-detection.c (same_close_phi_node): New.
9859         (remove_duplicate_close_phi): New.
9860         (make_close_phi_nodes_unique): New.
9861         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
9862
9863 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9864
9865         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
9866         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
9867         of both data references to be the same.
9868
9869 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9870
9871         * graphite-dependences.c (build_lexicographical_constraint): Remove
9872         the gdim parameter.
9873         (build_lexicographical_constraint): Adjust call to
9874         ppl_powerset_is_empty.
9875         (dependence_polyhedron): Same.
9876         (graphite_legal_transform_dr): Same.
9877         (graphite_carried_dependence_level_k): Same.
9878         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
9879         parameter.
9880         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
9881
9882 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9883
9884         * graphite-sese-to-poly.c
9885         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
9886         (close_phi_written_to_memory): New.
9887         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
9888         and unshare_expr.
9889
9890 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9891
9892         * doc/install.texi: Update the expected version number of PPL to 0.11.
9893         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
9894         #if PPL_VERSION_MINOR < 11.
9895
9896 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9897
9898         * graphite-dependences.c: Include graphite-cloog-util.h.
9899         (new_poly_ddr): Inlined into dependence_polyhedron.
9900         (free_poly_ddr): Moved close by new_poly_ddr.
9901         (dependence_polyhedron_1): Renamed dependence_polyhedron.
9902         Early return NULL when ppl_powerset_is_empty returns true.
9903         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
9904         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
9905         (graphite_legal_transform_dr): Call new_poly_ddr.
9906         (graphite_carried_dependence_level_k): Same.
9907         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
9908         (dot_transformed_deps_stmt_1): Removed.
9909         (dot_deps_stmt_1): Call dot_deps_stmt_2.
9910         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
9911         (dot_deps_1): Call dot_deps_2.
9912         * Makefile.in (graphite-dependences.o): Add missing dependence on
9913         graphite-cloog-util.h.
9914
9915 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9916
9917         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
9918         (build_lexicographical_constraint): Same.
9919         (dependence_polyhedron_1): Same.
9920         (graphite_legal_transform_dr): Same.
9921         (graphite_carried_dependence_level_k): Same.
9922         * graphite-ppl.c (ppl_powerset_is_empty): New.
9923         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
9924         * tree-data-ref.c (dump_data_reference): Print the basic block index.
9925
9926 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9927
9928         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
9929         the "a followed by b" relation and document it.
9930
9931 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9932
9933         * graphite-dependences.c (build_lexicographical_constraint): Stop the
9934         iteration when the bag of constraints is empty.
9935
9936 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9937
9938         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
9939
9940 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9941
9942         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
9943         nest and two loop depths as parameters.
9944         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
9945         lst_perfect_nestify.
9946
9947 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9948
9949         * graphite-dependences.c (print_pddr): Call
9950         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
9951
9952 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9953
9954         * graphite-ppl.c (debug_gmp_value): New.
9955         * graphite-ppl.h (debug_gmp_value): Declared.
9956
9957 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
9958
9959         * doc/install.texi: Document availability of cloog-0.16.
9960
9961 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
9962
9963         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
9964         invalid postdominance info.
9965
9966 2011-01-24  Jan Hubicka  <jh@suse.cz>
9967
9968         PR c/21659
9969         * doc/extend.texi (weak pragma): Drop claim that it must
9970         appear before definition.
9971         * varasm.c (merge_weak, declare_weak): Only sanity check
9972         that DECL is not output at a time it is declared weak.
9973
9974 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
9975
9976         * machmode.def: Fixed comments.
9977
9978 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
9979
9980         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
9981
9982 2011-01-24  Paul Koning  <ni1d@arrl.net>
9983
9984         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
9985         WORDS_BIG_ENDIAN.
9986
9987 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
9988
9989         PR target/46519
9990         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
9991         (block_info): Add scanned and prev.
9992         (move_or_delete_vzeroupper_2): Return if the basic block
9993         has been scanned and the upper 128bit state is unchanged
9994         from the last scan.
9995         (move_or_delete_vzeroupper_1): Return true if the exit
9996         state is changed.
9997         (move_or_delete_vzeroupper): Visit basic blocks using the
9998         work-list based algorithm based on vt_find_locations in
9999         var-tracking.c.
10000
10001         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
10002
10003 2011-01-24  Nick Clifton  <nickc@redhat.com>
10004
10005         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
10006         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
10007         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
10008         then define __v850e1__.
10009         * doc/invoke.texi: Document -mv850es.
10010
10011 2011-01-24  Richard Henderson  <rth@redhat.com>
10012
10013         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
10014         compound unordered comparisons.
10015         * config/rx/rx.c (rx_split_fp_compare): Remove.
10016         * config/rx/rx-protos.h: Update.
10017         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
10018         (cbranchsf4): Don't call rx_split_fp_compare.
10019         (*cbranchsf4): Use rx_split_cbranch.
10020         (*cmpsf): Don't accept "i" constraint.
10021         (*conditional_branch): Only valid after reload.
10022         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
10023
10024 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
10025
10026         PR target/47385
10027         * config/rs6000/altivec.md (vector constant splitters): Add
10028         support for creating vector single precision constants if -mvsx is
10029         used and we would create the constant using Altivec primitives.
10030
10031 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
10032             Richard Sandiford  <rdsandiford@googlemail.com>
10033
10034         PR rtl-optimization/47166
10035         * reload1.c (emit_reload_insns): Disable the spill_reg_store
10036         mechanism for PRE_MODIFY and POST_MODIFY.
10037         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
10038         reloadreg.
10039
10040 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
10041
10042         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
10043
10044 2011-01-22  Jan Hubicka  <jh@suse.cz>
10045
10046         PR lto/47333
10047         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
10048
10049 2011-01-22  Jan Hubicka  <jh@suse.cz>
10050
10051         PR tree-optimization/43884
10052         PR lto/44334
10053         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
10054         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
10055
10056 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
10057
10058         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10059         * config/s390/s390.c (s390_register_move_cost,
10060         s390_memory_move_cost): New.
10061         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
10062
10063 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10064
10065         PR middle-end/47401
10066         * except.c (sjlj_assign_call_site_values): Move setting the
10067         crtl->uses_eh_lsda flag to ...
10068         (sjlj_mark_call_sites): ... here.
10069         (sjlj_emit_function_enter): Support NULL dispatch label.
10070         (sjlj_build_landing_pads): In a function with no landing pads
10071         that still has must-not-throw regions, generate code to register
10072         a personality function with empty LSDA.
10073
10074 2011-01-21  Richard Henderson  <rth@redhat.com>
10075
10076         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
10077
10078         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
10079
10080         * compare-elim.c: New file.
10081         * Makefile.in (OBJS-common): Add it.
10082         (compare-elim.o): New.
10083         * common.opt (fcompare-elim): New.
10084         * opts.c (default_options_table): Add OPT_fcompare_elim.
10085         * tree-pass.h (pass_compare_elim_after_reload): New.
10086         * passes.c (init_optimization_passes): Add it.
10087         * recog.h: Protect against re-inclusion.
10088         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
10089         * doc/invoke.texi (-fcompare-elim): Document it.
10090         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
10091         * doc/tm.texi: Rebuild.
10092
10093 2011-01-22  Nick Clifton  <nickc@redhat.com>
10094
10095         * config/rx/rx.md (cstoresf4): Pass comparison operator to
10096         rx_split_fp_compare.
10097
10098 2011-01-22  Nick Clifton  <nickc@redhat.com>
10099
10100         * config/rx/rx.md (UNSPEC_CONST): New.
10101         (deallocate_and_return): Wrap the amount popped off the stack in
10102         an UNSPEC_CONST in order to stop it being rejected by
10103         -mmax-constant-size.
10104         (pop_and_return): Add a "(return)" rtx.
10105         (call): Drop the immediate operand.
10106         (call_internal): Likewise.
10107         (call_value): Likewise.
10108         (call_value_internal): Likewise.
10109         (sibcall_internal): Likewise.
10110         (sibcall_value_internal): Likewise.
10111         (sibcall): Likewise.  Generate an explicit call using
10112         sibcall_internal.
10113         (sibcall_value): Likewise.
10114         (mov<>): FAIL if a constant operand is not legitimate.
10115         (addsi3_unpsec): New pattern.
10116
10117         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
10118         (ok_for_max_constant): New function.
10119         (gen_safe_add): New function.
10120         (rx_expand_prologue): Use gen_safe_add.
10121         (rx_expand_epilogue): Likewise.
10122         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
10123         UNSPEC CONSTs.
10124
10125 2011-01-21  Jeff Law  <law@redhat.com>
10126
10127         PR tree-optimization/47053
10128         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
10129         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
10130         statements are deleted.
10131         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
10132         is nonempty, then purge dead edges and cleanup the CFG.
10133
10134 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
10135
10136         PR debug/47402
10137         Temporarily revert:
10138         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
10139         PR debug/47106
10140         * tree-dfa.c (create_var_ann): Mark variable as used.
10141
10142 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
10143
10144         PR middle-end/45566
10145         * except.c (convert_to_eh_region_ranges): Emit queued no-region
10146         notes from other section in hot/cold partitioning even if
10147         last_action is -3.  Increment call_site_base.
10148
10149         PR rtl-optimization/47366
10150         * fwprop.c (forward_propagate_into): Return bool.  If
10151         any changes are made, -fnon-call-exceptions is used and
10152         REG_EH_REGION note is present, call purge_dead_edges
10153         and return true if it purged anything.
10154         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
10155         any EH edges were purged.
10156
10157 2011-01-21  Jeff Law  <law@redhat.com>
10158
10159         PR rtl-optimization/41619
10160         * caller-save.c (setup_save_areas): Break out code to determine
10161         which hard regs are live across calls by examining the reload chains
10162         so that it is always used.
10163         Eliminate code which checked REG_N_CALLS_CROSSED.
10164
10165 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
10166
10167         PR tree-optimization/47355
10168         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
10169         NOP has non-debug uses beyond PHIs in new_bb.
10170
10171 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
10172
10173         PR debug/47106
10174         * cfgexpand.c (account_used_vars_for_block): Only account vars
10175         that are annotated as used.
10176         (estimated_stack_frame_size): Don't set TREE_USED.
10177         * tree-dfa.c (create_var_ann): Mark variable as used.
10178
10179 2011-01-21  Richard Guenther  <rguenther@suse.de>
10180
10181         PR middle-end/47395
10182         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
10183
10184 2011-01-21  Richard Guenther  <rguenther@suse.de>
10185
10186         PR tree-optimization/47365
10187         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
10188         (vn_reference_lookup_pieces): Adjust.
10189         (vn_reference_lookup): Likewise.
10190         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
10191         (vn_reference_lookup_3): Only look through kills if in
10192         VN_WALKREWRITE mode.
10193         (vn_reference_lookup_pieces): Adjust.
10194         (vn_reference_lookup): Likewise.
10195         (visit_reference_op_load): Likewise.
10196         (visit_reference_op_store): Likewise.
10197         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
10198         (compute_avail): Likewise.
10199         (eliminate): Likewise.
10200
10201 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
10202
10203         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
10204         DECL_IGNORED_P non-reg vars if they are used.
10205
10206         PR tree-optimization/47391
10207         * varpool.c (const_value_known_p): Return false if
10208         decl is volatile.
10209
10210 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
10211
10212         PR bootstrap/47215
10213         * config/i386/i386.c (ix86_local_alignment): Handle
10214         case for va_list_type_node is nil.
10215         (ix86_canonical_va_list_type): Likewise.
10216
10217 2011-01-21  Alan Modra  <amodra@gmail.com>
10218
10219         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
10220         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
10221
10222 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10223
10224         * config/arm/arm.md (define_attr type): Rename f_load
10225         and f_store to f_fpa_load and f_fpa_store. Update.
10226         (write_conflict): Deal with rename fallout.
10227         (*push_fp_multi): Likewise.
10228         * config/arm/fpa.md (f_load): Use f_fpa_load.
10229         (f_store): Use f_fpa_store.
10230         (*movsf_fpa): Likewise.
10231         (*movdf_fpa): Likewise.
10232         (*movxf_fpa): Likewise.
10233         (*thumb2_movsf_fpa): Likewise.
10234         (*thumb2_movdf_fpa): Likewise.
10235         (*thumb2_movxf_fpa): Likewise.
10236         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
10237         f_loadd and f_stored.
10238         (*thumb2_movdi_vfp): Likewise.
10239         (*thumb2_movsf_vfp): Fix attribute to f_loads.
10240         (*thumb2_movsi_vfp): Likewise.
10241         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
10242         Use f_loads instead of f_load.
10243         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
10244
10245 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
10246
10247         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10248         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
10249         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10250         (xtensa_mode_dependent_address_p): New function.
10251         (constantpool_address_p): Make static. Change return type to bool.
10252         Change argument type to const_rtx. Use CONST_INT_P predicate.
10253
10254 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
10255
10256         PR debug/46583
10257         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
10258
10259 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
10260
10261         PR debug/47283
10262         * cfgexpand.c (expand_debug_expr): Instead of generating
10263         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
10264         etc. handling.
10265
10266 2011-01-20  Richard Guenther  <rguenther@suse.de>
10267
10268         PR middle-end/47370
10269         * tree-inline.c (remap_gimple_op_r): Recurse manually for
10270         the pointer operand of MEM_REFs.
10271
10272 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
10273
10274         PR tree-optimization/46130
10275         * ipa-split.c (consider_split): If return_bb contains non-virtual
10276         PHIs other than for retval or if split_function would not adjust it,
10277         refuse to split.
10278
10279 2011-01-20  Richard Guenther  <rguenther@suse.de>
10280
10281         PR tree-optimization/47167
10282         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
10283         Revert previous change, only avoid enumeral type changes.
10284
10285 2011-01-19  Mike Stump  <mikestump@comcast.net>
10286
10287         * doc/tm.texi.in (BRANCH_COST): Englishify.
10288         * doc/tm.texi (BRANCH_COST): Likewise.
10289
10290 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
10291
10292         PR c++/47291
10293         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
10294         (gen_scheduled_generic_parms_dies): New functions.
10295         (gen_struct_or_union_type_die): Schedule template parameters DIEs
10296         generation for the end of CU compilation.
10297         (dwarf2out_finish): Generate template parameters DIEs here.
10298
10299 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
10300
10301         PR debug/46240
10302         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
10303         debug bind stmt on merge edges.
10304
10305 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
10306
10307         PR debug/47079
10308         PR debug/46724
10309         * function.c (instantiate_expr): Instantiate incoming rtl of
10310         implicit arguments, and recurse on VALUE_EXPRs.
10311         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
10312         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
10313
10314 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
10315
10316         * c-parser.c (c_parser_for_statement): Initialize
10317         collection_expression.
10318
10319 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10320
10321         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
10322
10323 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10324
10325         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
10326         (LINK_SHLIB_SPEC): Don't use %(link_path).
10327         (SUBTARGET_EXTRA_SPECS): Remove link_path.
10328
10329 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10330
10331         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
10332         (NO_SHARED_LIB_SUPPORT): Remove.
10333         (LINK_SHLIB_SPEC): Remove one conditional definition.
10334
10335 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10336
10337         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
10338         %{call_shared}.
10339         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
10340         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
10341         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
10342         %{call_shared} and conditionals on these options not being passed.
10343         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
10344         %{call_shared}.
10345
10346 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
10347
10348         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
10349         simplify.
10350
10351         * ipa-split.c: Spelling fixes.
10352
10353 2011-01-19  Richard Henderson  <rth@redhat.com>
10354
10355         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
10356         (*mulsi3): Likewise.
10357
10358         * longlong.h [__mn10300__] (count_leading_zeros): New.
10359         [__mn10300__] (umul_ppmm, smul_ppmm): New.
10360         [__mn10300__] (add_ssaaaa, subddmmss): New.
10361         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
10362         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
10363
10364 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10365
10366         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
10367
10368 2011-01-19  Richard Henderson  <rth@redhat.com>
10369
10370         * config/mn10300/mn10300.md (addsi3_flags): New.
10371         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
10372         (subsi3_flags, subc_internal, subdi3): New.
10373         (subdi3_internal, *subdi3_degenerate): New.
10374         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
10375
10376         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
10377         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
10378         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
10379         * config/mn10300/mn10300-protos.h: Update.
10380         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
10381         (return_ret): Likewise.  Rename from return_internal_regs.
10382         (return_internal): Remove.
10383
10384         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
10385         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
10386         (mn10300_legitimate_constant_p): Likewise.
10387         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
10388         (mn10300_frame_size): New.
10389         (mn10300_expand_prologue): Use it.
10390         (mn10300_expand_epilogue): Likewise.
10391         (mn10300_initial_offset): Likewise.
10392         * config/mn10300/mn10300-protos.h: Update.
10393         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
10394         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
10395         (prologue, epilogue, return_internal): Tidy output code.
10396         (mn10300_store_multiple_operation, return): Likewise.
10397         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
10398         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
10399         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
10400         (load_pic, am33_load_pic): New.
10401         (mn10300_load_pic0, mn10300_load_pic1): New.
10402
10403         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
10404         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
10405         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
10406         (cc_flags_for_mode, cc_flags_for_code): New.
10407         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
10408         overflow flag is not valid.  Validate that the flags we need
10409         for the comparison are valid.
10410         (mn10300_output_cmp): Remove.
10411         (mn10300_output_add): New.
10412         (mn10300_select_cc_mode): Use cc_flags_for_code.
10413         (mn10300_split_cbranch): New.
10414         (mn10300_match_ccmode): New.
10415         (mn10300_split_and_operand_count): New.
10416         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
10417         to the function.
10418         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
10419         (addsi3): ... here.  Use mn10300_output_add.
10420         (*addsi3_flags): New.
10421         (*am33_subsi3, *mn10300_subsi3): Merge...
10422         (subsi3): ... here.  Use attribute isa.
10423         (*subsi3_flags): New.
10424         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
10425         when possible.
10426         (*am33_andsi3, *mn10300_andsi3): Merge...
10427         (andsi3): ... here.
10428         (*andsi3_flags): New.
10429         (andsi3 splitters): New.
10430         (*am33_iorsi3, *mn10300_iorsi3): Merge...
10431         (iorsi3): ... here.
10432         (*iorsi3_flags): New.
10433         (*am33_xorsi3, *mn10300_xorsi3): Merge...
10434         (xorsi3): ... here.
10435         (*xorsi3_flags): New.
10436         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
10437         (one_cmplsi2): ... here.
10438         (*one_cmplsi2_flags): New.
10439         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
10440         instead of "dax" in constraints.  Use mn10300_split_cbranch.
10441         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
10442         use matching constraints to eliminate a self-comparison.
10443         (*integer_conditional_branch): Rename from integer_conditional_branch.
10444         Use int_mode_flags to match CC_REG.
10445         (*cbranchsi4_btst, *btstsi): New.
10446         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
10447         mn10300_split_cbranch.
10448         (*am33_cmpsf): Rename from am33_cmpsf.
10449         (*float_conditional_branch): Rename from float_conditional_branch.
10450         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
10451         (zero_extendqisi2): ... here.
10452         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
10453         (zero_extendhisi2): ... here.
10454         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
10455         (extendqisi2): ... here.
10456         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
10457         (extendhisi2): ... here.
10458         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
10459         (ashlsi3): ... here.
10460         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
10461         (lshrsi3): ... here.
10462         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
10463         (ashrsi3): ... here.
10464         (consecutive add peephole): Remove.
10465         * config/mn10300/predicates.md (label_ref_operand): New.
10466         (int_mode_flags): New.
10467         (CCZN_comparison_operator): New.
10468
10469         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
10470         (throughput_42_latency_43): New reservation.
10471         (mulsidi3, umulsidi3): New expanders.
10472         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
10473         the MDR register to allocation; separately allocate the low and
10474         high parts of the DImode result.
10475         (umulsidi3_internal): Similarly.
10476         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
10477         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
10478         (udivsi3, umodsi3): Remove.
10479         (udivmodsi4, divmodsi4): New expanders.
10480         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
10481         (*divmodsi4): Simiarly.
10482         (ext_internal): New.
10483
10484         * config/mn10300/constraints.md ("z"): New constraint.
10485         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
10486         (FIXED_REGISTERS): Don't fix MDR.
10487         (CALL_USED_REGSITERS): Reformat nicely.
10488         (REG_ALLOC_ORDER): Add MDR.
10489         (enum regclass): Add MDR_REGS.
10490         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
10491         (IRA_COVER_CLASSES): Add MDR_REGS.
10492         (REGNO_REG_CLASS): Handle MDR_REG.
10493         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
10494         (mn10300_register_move_cost): Likewise.
10495         * config/mn10300/mn10300.md (MDR_REG): New.
10496         (*movsi_internal): Handle moves to/from MDR_REGS.
10497
10498         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
10499         POST_MODIFY.
10500         (mn10300_secondary_reload): Tidy combination reload classes.
10501         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
10502         addresses for AM33.  Allow symbolic offsets for reg+imm.
10503         (mn10300_regno_in_class_p): New.
10504         (mn10300_legitimize_reload_address): New.
10505         * config/mn10300/mn10300.h (enum reg_class): Remove
10506         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
10507         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
10508         SP_OR_GENERAL_REGS.
10509         (REG_CLASS_NAMES): Update to match.
10510         (REG_CLASS_CONTENTS): Likewise.
10511         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
10512         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
10513         (REGNO_IN_RANGE_P): Remove.
10514         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
10515         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
10516         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
10517         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
10518         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
10519         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
10520         (REGNO_GENERAL_P): New.
10521         (HAVE_POST_MODIFY_DISP): New.
10522         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
10523         (LEGITIMIZE_RELOAD_ADDRESS): New.
10524         * config/mn10300/mn10300-protos.h: Update.
10525
10526         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
10527         DATA_REGS for AM33 stack-pointer destination.
10528         (mn10300_preferred_output_reload_class): Likewise.
10529         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
10530         into a form appropriate for ...
10531         (TARGET_SECONDARY_RELOAD): New.
10532         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
10533         * config/mn10300/mn10300-protos.h: Update.
10534         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
10535         reload_insi; use the "A" constraint for the scratch; handle AM33
10536         moves of sp to non-address registers.
10537
10538         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
10539         (*movqi_internal): ... here.
10540         (*am33_movhi, *mn10300_movhi): Merge into...
10541         (*movhi_internal): ... here.
10542         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
10543         as the source/destination of moves from/to SP.
10544         (movsf): Only allow for AM33-2.
10545         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
10546         any integer constant constraint.  Only allow for AM33-2.  Tidy
10547         all of the alternative outputs.
10548         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
10549         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
10550         for MN103.
10551         (udivsi3, umodsi3): New patterns for MN103 only.
10552
10553 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
10554
10555         * doc/tm.texi.in: Spell out that a lack of register class unions
10556         can lead to ICEs.
10557         * doc/tm.texi: Regenerate.
10558
10559 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
10560
10561         PR rtl-optimization/47337
10562         * dce.c (check_argument_store): New function.
10563         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
10564
10565         PR tree-optimization/47290
10566         * tree-eh.c (infinite_empty_loop_p): New function.
10567         (cleanup_empty_eh): Use it.
10568
10569 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
10570
10571         PR target/46997
10572         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
10573         (a64_expand_widen_sum): Ditto.
10574         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
10575         (vec_extract_evenodd_help): Ditto.
10576         (vec_extract_evenv4hi): Ditto.
10577         (vec_extract_oddv4hi): Ditto.
10578         (vec_extract_evenv2si): Ditto.
10579         (vec_extract_oddv2si): Ditto.
10580         (vec_extract_evenv2sf): Ditto.
10581         (vec_extract_oddv2sf): Ditto.
10582         (vec_pack_trunc_v4hi: Ditto.
10583         (vec_pack_trunc_v2si): Ditto.
10584         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
10585         (vec_interleave_highv8qi): Ditto.
10586         (mix1_r): Ditto.
10587         (vec_extract_oddv8qi): Ditto.
10588         (vec_interleave_lowv4hi): Ditto.
10589         (vec_interleave_highv4hi): Ditto.
10590         (vec_interleave_lowv2si): Ditto.
10591         (vec_interleave_highv2si): Ditto.
10592
10593 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10594
10595         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
10596         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
10597         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
10598         (pa_c_mode_for_suffix): New.
10599         (TARGET_EXPAND_BUILTIN): Define.
10600         (TARGET_C_MODE_FOR_SUFFIX): Define.
10601         (pa_builtins): Define.
10602         (pa_init_builtins): Register __float128 type and init new support
10603         builtins.
10604         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
10605         * config/pa/quadlib.c (_U_Qfcopysign): New.
10606
10607 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
10608
10609         PR middle-end/46894
10610         * explow.c (allocate_dynamic_stack_space): Do not assume more than
10611         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
10612         are defined.
10613
10614 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10615
10616         PR tree-optimization/47179
10617         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
10618         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
10619
10620 2011-01-18  Richard Guenther  <rguenther@suse.de>
10621
10622         PR rtl-optimization/47216
10623         * emit-rtl.c: Include tree-flow.h.
10624         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
10625         of replicating it with different semantics.
10626         * Makefile.in (emit-rtl.o): Adjust.
10627
10628 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10629
10630         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
10631         (cortex_a9_dp): Handle neon types correctly.
10632
10633 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
10634
10635         PR rtl-optimization/47299
10636         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
10637         subtarget.  Use normal multiplication if both operands are constants.
10638         * expmed.c (expand_widening_mult): Don't try to optimize constant
10639         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
10640         before using it.
10641
10642 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10643
10644         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
10645         spacing after 'e.g.', typos, comma, hyphenation.
10646
10647 2011-01-17  Richard Henderson  <rth@redhat.com>
10648
10649         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
10650         (rx_restricted_mem_operand): New.
10651         (rx_shift_operand): Use register_operand.
10652         (rx_source_operand, rx_compare_operand): Likewise.
10653         * config/rx/rx.md (addsi3_flags): New expander.
10654         (adddi3): Rewrite as expander.
10655         (adc_internal, *adc_flags, adddi3_internal): New patterns.
10656         (subsi3_flags): New expander.
10657         (subdi3): Rewrite as expander.
10658         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
10659
10660         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
10661         (rx_init_builtins): Remove sat builtin.
10662         (rx_expand_builtin): Likewise.
10663         * config/rx/rx.md (ssaddsi3): New.
10664         (*sat): Rename from sat.  Represent the CC_REG input.
10665
10666         * config/rx/predicates.md (rshift_operator): New.
10667         * config/rx/rx.c (rx_expand_insv): Remove.
10668         * config/rx/rx-protos.h: Update.
10669         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
10670         operand to the canonical position.
10671         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
10672         (*bitclr, *bitclr_in_memory): Similarly.
10673         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
10674         (insv): Retain the zero_extract in the expansion.
10675
10676         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
10677         (bswaphi2, bitinvert, revw): Likewise.
10678
10679         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
10680         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
10681         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
10682         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
10683         (bitset, bitset_in_memory): Likewise.
10684         (bitinvert, bitinvert_in_memory): Likewise.
10685         (bitclr, bitclr_in_memory): Likewise.
10686         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
10687         (rx_strend, rx_cmpstrn): Likewise.
10688         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
10689         (bitop peep2 patterns): Remove.
10690
10691         * config/rx/rx.c (rx_match_ccmode): New.
10692         * config/rx/rx-protos.h: Update.
10693         * config/rx/rx.md (abssi2): Clobber, don't set flags.
10694         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
10695         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
10696         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
10697         (fix_truncsfsi2, floatsisf2): Likewise.
10698         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
10699         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
10700         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
10701         (*subsi3_flags, *xorsi3_flags): New.
10702
10703         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
10704
10705         * config/rx/rx.c (rx_print_operand): Remove workaround for
10706         unsplit comparison operations.
10707
10708         * config/rx/rx.md (movsicc): Split after reload.
10709         (*movsicc): Merge *movsieq and *movsine via match_operator.
10710         (*stcc): New pattern.
10711
10712         * config/rx/rx.c (rx_float_compare_mode): Remove.
10713         * config/rx/rx.h (rx_float_compare_mode): Remove.
10714         * config/rx/rx.md (cstoresi4): Split after reload.
10715         (*sccc): New pattern.
10716
10717         * config/rx/predicates.md (label_ref_operand): New.
10718         (rx_z_comparison_operator): New.
10719         (rx_zs_comparison_operator): New.
10720         (rx_fp_comparison_operator): New.
10721         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
10722         Validate that the flags are set properly for the comparison.
10723         (rx_gen_cond_branch_template): Remove.
10724         (rx_cc_modes_compatible): Remove.
10725         (mode_from_flags): New.
10726         (flags_from_code): Rename from flags_needed_for_conditional.
10727         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
10728         (rx_select_cc_mode): Likewise.
10729         (rx_split_fp_compare): New.
10730         (rx_split_cbranch): New.
10731         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
10732         (*cbranchsi4): Use match_operator and rx_split_cbranch.
10733         (*cbranchsf4): Similarly.
10734         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
10735         match_operator and rx_split_cbranch.
10736         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
10737         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
10738         (*cmpsi): Rename from cmpsi.
10739         (*tstsi): Rename from tstsi.
10740         (*cmpsf): Rename from cmpsf; use CC_Fmode.
10741         (*conditional_branch): Rename from conditional_branch.
10742         (*reveresed_conditional_branch): Remove.
10743         (b<code>): Remove expander.
10744         * config/rx/rx-protos.h: Update.
10745
10746         * config/rx/rx.c (rx_compare_redundant): Remove.
10747         * config/rx/rx.md (cmpsi): Don't use it.
10748         * config/rx/rx-protos.h: Update.
10749
10750         * config/rx/rx-modes.def (CC_F): New mode.
10751         * config/rx/rx.c (rx_select_cc_mode): New.
10752         * config/rx/rx.h (SELECT_CC_MODE): Use it.
10753         * config/rx/rx-protos.h: Update.
10754
10755 2011-01-17  Richard Henderson  <rth@redhat.com>
10756
10757         * except.c (dump_eh_tree): Fix stray ; after for statement.
10758
10759 2011-01-17  Richard Guenther  <rguenther@suse.de>
10760
10761         PR tree-optimization/47313
10762         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
10763         handling before copying the body.  Properly deal with
10764         by-reference result in SSA form.
10765
10766 2011-01-17  Ian Lance Taylor  <iant@google.com>
10767
10768         PR target/47219
10769         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
10770         (struct_value_alias_set): Don't define.
10771         (sparc_option_override): Don't set sparc_sr_alias_set and
10772         struct_value_alias_set.
10773         (save_or_restore_regs): Use gen_frame_mem rather than calling
10774         set_mem_alias_set.
10775         (sparc_struct_value_rtx): Likewise.
10776
10777 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
10778
10779         PR target/47318
10780         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
10781         (_mm_maskstore_pd): Likewise.
10782         (_mm_maskload_ps): Likewise.
10783         (_mm_maskstore_ps): Likewise.
10784         (_mm256_maskload_pd): Change mask to __m256i.
10785         (_mm256_maskstore_pd): Likewise.
10786         (_mm256_maskload_ps): Likewise.
10787         (_mm256_maskstore_ps): Likewise.
10788
10789         * config/i386/i386-builtin-types.def: Updated.
10790         (ix86_expand_special_args_builtin): Likewise.
10791
10792         * config/i386/i386.c (bdesc_special_args): Update
10793         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
10794         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
10795         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
10796         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
10797
10798         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
10799         Use <avxpermvecmode> on mask register.
10800         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
10801
10802 2011-01-17  Olivier Hainque  <hainque@adacore.com>
10803             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
10804             Eric Botcazou  <ebotcazou@adacore.com>
10805
10806         PR target/46655
10807         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
10808         if <= USHRT_MAX in 32-bit mode.
10809
10810 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10811
10812         * doc/install.texi (Configuration, Specific): Wrap long
10813         lines in examples.  Allow line wrapping in long options
10814         and URLs where beneficial for PDF output.
10815
10816 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
10817
10818         * config/mips/mips.c (mips_classify_symbol): Don't return
10819         SYMBOL_PC_RELATIVE for nonlocal labels.
10820
10821 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
10822
10823         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
10824
10825 2011-01-15  Jan Hubicka  <jh@suse.cz>
10826
10827         PR tree-optimization/47276
10828         * ipa.c (function_and_variable_visibility): Do not try to mark alias
10829         declarations as needed.
10830
10831 2011-01-15  Martin Jambor  <mjambor@suse.cz>
10832
10833         * common.opt (fdevirtualize): New flag.
10834         * doc/invoke.texi (Option Summary): Document it.
10835         * opts.c (default_options_table): Add devirtualize flag.
10836         * ipa-prop.c (detect_type_change): Return immediately if
10837         devirtualize flag is not set.
10838         (detect_type_change_ssa): Likewise.
10839         (compute_known_type_jump_func): Likewise.
10840         (ipa_analyze_virtual_call_uses): Likewise.
10841
10842 2011-01-14  Martin Jambor  <mjambor@suse.cz>
10843
10844         PR tree-optimization/45934
10845         PR tree-optimization/46302
10846         * ipa-prop.c (type_change_info): New type.
10847         (stmt_may_be_vtbl_ptr_store): New function.
10848         (check_stmt_for_type_change): Likewise.
10849         (detect_type_change): Likewise.
10850         (detect_type_change_ssa): Likewise.
10851         (compute_complex_assign_jump_func): Check for dynamic type change.
10852         (compute_complex_ancestor_jump_func): Likewise.
10853         (compute_known_type_jump_func): Likewise.
10854         (compute_scalar_jump_functions): Likewise.
10855         (ipa_analyze_virtual_call_uses): Likewise.
10856         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
10857
10858 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10859
10860         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
10861         * config/i386/i386.opt (msse5): New Alias.
10862
10863 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10864
10865         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10866         * config/sparc/linux64.h (CC1_SPEC): Likewise.
10867         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10868         * config/sparc/sparc.h (CC1_SPEC): Likewise.
10869
10870 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10871
10872         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
10873         -mcpu options.
10874         * config/sparc/linux64.h (CC1_SPEC): Likewise.
10875         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10876         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
10877         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
10878         Likewise.
10879         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
10880
10881 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10882
10883         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
10884
10885 2011-01-14  Mike Stump  <mikestump@comcast.net>
10886
10887         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
10888         * config/fr30/fr30.md: Likweise
10889         (movsi_push): Likewise.
10890         (movsi_pop): Likewise.
10891         (enter_func): Likewise.
10892         * config/moxie/moxie.md (movsi_push): Likewise.
10893         (movsi_pop): Likewise.
10894
10895 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10896
10897         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
10898         %{no_archive} %{exact_version}.
10899         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
10900         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
10901         %{no_archive} %{exact_version}.
10902         * config/mips/openbsd.h (LINK_SPEC): Likewise.
10903         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
10904         * config/mips/vxworks.h: Likewise.
10905
10906 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10907
10908         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
10909
10910 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10911
10912         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
10913         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
10914
10915 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10916
10917         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
10918         -nodefaultlib.
10919
10920 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10921
10922         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
10923         for mcpu not cpu.
10924         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
10925         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
10926         not cpu.
10927         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
10928         Don't handle -shlib.
10929
10930 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10931
10932         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
10933         (CC1_SPEC): Don't handle -profile.
10934
10935 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10936
10937         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
10938         * config/mips/mips.h (CC1_SPEC): Likewise.
10939
10940 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10941
10942         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
10943         * config/mips/mips.h (CC1_SPEC): Likewise.
10944
10945 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10946
10947         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
10948         * config/m32r/linux.h (LINK_SPEC): Likewise.
10949         * config/mips/linux.h (LINK_SPEC): Likewise.
10950         * config/mips/linux64.h (LINK_SPEC): Likewise.
10951         * config/sparc/linux.h (LINK_SPEC): Likewise.
10952         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
10953         LINK_SPEC): Likewise.
10954         * config/xtensa/linux.h (LINK_SPEC): Likewise.
10955
10956 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10957
10958         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
10959         %{version:-v}.
10960         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
10961
10962 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10963
10964         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
10965         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
10966
10967 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10968
10969         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
10970
10971 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10972
10973         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
10974         supports -Bstatic/-Bdynamic.
10975         * configure: Regenerate.
10976
10977 2011-01-14  Jan Hubicka  <jh@suse.cz>
10978             Jack Howarth  <howarth@bromo.med.uc.edu>
10979
10980         PR target/46037
10981         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
10982         when checking debug_info_level. Test write_symbols instead of
10983         debug_hooks->var_location when setting flag_var_tracking_uninit.
10984
10985 2011-01-14  Richard Guenther  <rguenther@suse.de>
10986
10987         PR tree-optimization/47179
10988         * target.def (ref_may_alias_errno): New target hook.
10989         * targhooks.h (default_ref_may_alias_errno): Declare.
10990         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
10991         (default_ref_may_alias_errno): New function.
10992         * target.h (struct ao_ref_s): Declare.
10993         * tree-ssa-alias.c: Include target.h.
10994         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
10995         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
10996         (targhooks.o): Likewise.
10997         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
10998         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
10999
11000 2011-01-14  Richard Guenther  <rguenther@suse.de>
11001
11002         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
11003
11004 2011-01-14  Richard Guenther  <rguenther@suse.de>
11005
11006         PR tree-optimization/47280
11007         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
11008         return CFG changes.
11009         (tree_ssa_forward_propagate_single_use_vars): Deal with
11010         CFG changes from associate_plusminus.
11011
11012 2011-01-14  Richard Guenther  <rguenther@suse.de>
11013
11014         PR middle-end/47281
11015         Revert
11016         2011-01-11  Richard Guenther  <rguenther@suse.de>
11017
11018         PR tree-optimization/46076
11019         * tree-ssa.c (useless_type_conversion_p): Conversions from
11020         unprototyped to empty argument list function types are useless.
11021
11022 2011-01-14  Richard Guenther  <rguenther@suse.de>
11023
11024         PR tree-optimization/47286
11025         * tree-ssa-structalias.c (new_var_info): Register variables are global.
11026
11027 2011-01-14  Martin Jambor  <mjambor@suse.cz>
11028
11029         PR middle-end/46823
11030         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
11031
11032 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
11033
11034         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
11035         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
11036         * config/xtensa/xtensa.c (xtensa_libcall_value,
11037         xtensa_function_value_regno_p): New functions.
11038         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11039
11040 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
11041
11042         PR c++/47213
11043         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
11044         PE specific hook.
11045         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
11046         New function prototype.
11047         * config/i386/winnt.c (i386_pe_assemble_visibility):
11048         Warn only if attribute was specified by user.
11049
11050 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
11051
11052         PR target/47251
11053         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
11054         floating point.
11055         (floatunsdidf2_fcfidu): Ditto.
11056
11057 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11058
11059         * config/s390/s390.c (print_operand_address): Replace 'error' with
11060         'output_operand_lossage'.
11061         (print_operand): Likewise.
11062
11063 2011-01-13  Jeff Law  <law@redhat.com>
11064
11065         PR rtl-optimization/39077
11066         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
11067         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
11068         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
11069         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
11070         * gcse.c (prune_insertions_deletions): New function.
11071         (compute_pre_data): Use it.
11072
11073 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
11074
11075         PR debug/PR46973
11076         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
11077         static function.
11078         (prune_unused_types_mark): Use it.
11079
11080 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
11081
11082         PR rtl-optimization/45352
11083         * sel-sched.c: Update copyright years.
11084         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
11085         in the advancing loop when we have issued issue_rate insns.
11086
11087 2011-01-12  Richard Henderson  <rth@redhat.com>
11088
11089         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
11090         (TARGET_MD_ASM_CLOBBERS): New.
11091
11092         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
11093         (TARGET_DELEGITIMIZE_ADDRESS): New.
11094
11095         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
11096         (clzsi2, *bsch): New patterns.
11097
11098         * config/mn10300/mn10300.md (INT): New mode iterator.
11099         (*mov<INT>_clr): New pattern, and peep2 to generate it.
11100
11101         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
11102         flag_split_wide_types.
11103
11104         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
11105         (mn10300_trampoline_init): Rewrite without a template, an immediate
11106         load and a direct branch.
11107         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
11108
11109 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
11110
11111         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11112         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
11113         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
11114         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11115
11116 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
11117
11118         PR debug/47209
11119         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
11120         of type.
11121
11122 2011-01-12  Jan Hubicka  <jh@suse.cz>
11123
11124         PR driver/47244
11125         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
11126         (PLUGIN_COND_CLOSE): New macro.
11127         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
11128
11129 2011-01-12  Richard Guenther  <rguenther@suse.de>
11130
11131         PR lto/47259
11132         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
11133         register variables in a MEM_REF.
11134
11135 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
11136
11137         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
11138         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
11139         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
11140         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
11141         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
11142         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
11143         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
11144         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
11145         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
11146         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
11147         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
11148         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
11149         * config/gnu-user.h: New.  Copied from linux.h.
11150         (LINUX_TARGET_STARTFILE_SPEC): Rename to
11151         GNU_USER_TARGET_STARTFILE_SPEC.
11152         (LINUX_TARGET_ENDFILE_SPEC): Rename to
11153         GNU_USER_TARGET_ENDFILE_SPEC.
11154         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
11155         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
11156         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
11157         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
11158         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
11159         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
11160         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
11161         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
11162         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
11163         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
11164         * config/arm/linux-eabi.h (CC1_SPEC): Use
11165         GNU_USER_TARGET_CC1_SPEC.
11166         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
11167         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
11168         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
11169         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
11170         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
11171         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
11172         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
11173         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
11174
11175 2011-01-12  Richard Guenther  <rguenther@suse.de>
11176
11177         PR other/46946
11178         * doc/invoke.texi (ffast-math): Document it is turned on
11179         with -Ofast.
11180
11181 2011-01-12  Jan Hubicka  <jh@suse.cz>
11182
11183         PR tree-optimization/47233
11184         * opts.c (common_handle_option): Disable ipa-reference with profile
11185         feedback.
11186
11187 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
11188
11189         * c-parser.c (c_parser_objc_at_property_declaration): Improved
11190         error message.
11191
11192 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
11193
11194         * c-parser.c (c_lex_one_token): Updated and reindented some
11195         comments.  No changes in code.
11196
11197 2011-01-11  Ian Lance Taylor  <iant@google.com>
11198
11199         * godump.c (go_output_var): Don't output the variable if there is
11200         already a type with the same name.
11201
11202 2011-01-11  Ian Lance Taylor  <iant@google.com>
11203
11204         * godump.c (go_format_type): Don't generate float80.
11205
11206 2011-01-11  Richard Henderson  <rth@redhat.com>
11207
11208         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
11209         declaration.  Rewrite for both speed and size.
11210         (mn10300_address_cost_1): Remove.
11211         (mn10300_register_move_cost): New.
11212         (mn10300_memory_move_cost): New.
11213         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
11214         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
11215         extensions, shifts, BSWAP, CLZ.
11216         (mn10300_wide_const_load_uses_clr): Remove.
11217         (TARGET_REGISTER_MOVE_COST): New.
11218         (TARGET_MEMORY_MOVE_COST): New.
11219         * config/mn10300/mn10300-protos.h: Update.
11220         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
11221
11222         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
11223         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
11224         * config/mn10300/mn10300-protos.h: Update.
11225         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
11226         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
11227         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
11228         (*test_int_bitfield, *test_byte_bitfield): Remove.
11229         (*bit_test, *subreg_bit_test): Remove.
11230         * config/mn10300/predicates.md (const_8bit_operand): Remove.
11231
11232         * config/mn10300/constraints.md ("c"): Rename from "A".
11233         ("A", "D"): New constraint letters.
11234         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
11235         (fmssf4, fnmasf4, fnmssf4): Likewise.
11236
11237         * config/mn10300/mn10300.md (isa): New attribute.
11238         (enabled): New attribute.
11239
11240         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
11241         (abssf2, negsf2): Define only for hardware fp.
11242         (sqrtsf2): Reformat.
11243         (addsf3, subsf3, mulsf3): Merge expander and insn.
11244
11245         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
11246         (DEBUGGER_AUTO_OFFSET): Remove.
11247         (DEBUGGER_ARG_OFFSET): Remove.
11248
11249         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
11250         Emit register stores with the same offsets as the hardware.
11251         (mn10300_store_multiple_operation): Don't check that the register
11252         save offsets are monotonic.
11253         * config/mn10300/mn10300-protos.h: Update.
11254
11255         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
11256
11257         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
11258         in terms of the value on the stack, not the MDR register.
11259
11260 2011-01-11  Jan Hubicka  <jh@suse.cz>
11261
11262         PR lto/45721
11263         PR lto/45375
11264         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
11265         (symbol_alias_set_destroy, symbol_alias_set_contains,
11266         propagate_aliases_backward): Declare.
11267         * lto-streamer-out.c (struct sets): New sturcture.
11268         (trivally_defined_alias): New function.
11269         (output_alias_pair_p): Rewrite.
11270         (output_unreferenced_globals): Fix output of alias pairs.
11271         (produce_symtab): Likewise.
11272         * ipa.c (function_and_variable_visibility): Set weak alias destination
11273         as needed in lto.
11274         * varasm.c (symbol_alias_set_t): Remove.
11275         (symbol_alias_set_destroy): Export.
11276         (propagate_aliases_forward, propagate_aliases_backward): New functions
11277         based on ...
11278         (compute_visible_aliases): ... this one; remove.
11279         (trivially_visible_alias): New
11280         (trivially_defined_alias): New.
11281         (remove_unreachable_alias_pairs): Rewrite.
11282         (finish_aliases_1): Reorganize code checking if alias is defined.
11283         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
11284         in LTO mode.
11285
11286 2011-01-11  Richard Guenther  <rguenther@suse.de>
11287
11288         PR tree-optimization/46076
11289         * tree-ssa.c (useless_type_conversion_p): Conversions from
11290         unprototyped to empty argument list function types are useless.
11291
11292 2011-01-11  Richard Guenther  <rguenther@suse.de>
11293
11294         PR middle-end/45235
11295         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
11296         volatile MEMs as MEM_READONLY_P.
11297
11298 2011-01-11  Richard Guenther  <rguenther@suse.de>
11299
11300         PR tree-optimization/47239
11301         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
11302
11303 2011-01-11  Jeff Law  <law@redhat.com>
11304
11305         PR tree-optimization/47086
11306         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
11307         IVs from statements that might throw.
11308
11309 2011-01-10  Jan Hubicka  <jh@suse.cz>
11310
11311         PR lto/45375
11312         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
11313
11314 2011-01-10  Jan Hubicka  <jh@suse.cz>
11315
11316         PR lto/45375
11317         * profile.c (read_profile_edge_counts): Ignore profile inconistency
11318         when correcting profile.
11319
11320 2011-01-10  Jan Hubicka  <jh@suse.cz>
11321
11322         PR lto/46083
11323         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
11324         DECL_FINI_PRIORITY.
11325         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
11326         Restore DECL_FINI_PRIORITY.
11327
11328 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11329
11330         * doc/gimple.texi: Fix quoting of multi-word return values in
11331         @deftypefn statements.  Ensure presence of return value.  Wrap
11332         overlong @deftypefn lines.
11333         (is_gimple_operand, is_gimple_min_invariant_address): Remove
11334         descriptions of removed functions.
11335         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
11336         of multi-word return value in @deftypefn statement.
11337
11338 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11339
11340         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
11341         (Conditional Expressions, Logical Operators)
11342         (Statement and operand traversals): Do not indent smallexample
11343         code.  Fix duplicate function argument in example.
11344
11345 2011-01-10  Jeff Law  <law@redhat.com>
11346
11347         PR tree-optimization/47141
11348         * ipa-split.c (split_function): Handle case where we are
11349         returning a value and the return block has a virtual operand phi.
11350
11351 2011-01-10  Jan Hubicka  <jh@suse.cz>
11352
11353         PR tree-optimization/47234
11354         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
11355         (pass_feedback_split_functions): Declare.
11356         * passes.c (init_optimization_passes): Add ipa-split as subpass of
11357         tree-profile.
11358         * ipa-split.c (gate_split_functions): Update comments; disable
11359         split-functions for profile_arc_flag and branch_probabilities.
11360         (gate_feedback_split_functions): New function.
11361         (execute_feedback_split_functions): New function.
11362         (pass_feedback_split_functions): New global var.
11363
11364 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
11365
11366         PR lto/46760
11367         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
11368         calling gimple_call_set_cannot_inline.
11369
11370 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
11371
11372         * config/darwin-sections.def: Remove unused section.
11373
11374 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
11375
11376         PR c++/47218
11377         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
11378
11379 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
11380
11381         PR objc/47232
11382         * c-parser.c (c_parser_declaration_or_fndef): Improved
11383         error message.
11384
11385 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
11386
11387         * config/i386/winnt.c (i386_pe_start_function): Make sure
11388         to switch back to function's section.
11389
11390 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
11391
11392         PR gcc/46902
11393         PR testsuite/46912
11394         * plugin.c: Move include of dlfcn.h from here...
11395         * system.h: ... to here.
11396
11397 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11398
11399         * doc/cpp.texi (C++ Named Operators): Fix markup for header
11400         file name.
11401         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
11402         two extra empty pages in PDF output.
11403
11404 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
11405
11406         PR objc/47078
11407         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
11408         for error recovery purposes behave as if it was not specified so
11409         that the default type is usd.
11410
11411 2011-01-07  Jan Hubicka  <jh@suse.cz>
11412
11413         PR tree-optmization/46469
11414         * ipa.c (function_and_variable_visibility): Clear needed flags on
11415         nodes with external decls; handle weakrefs merging correctly.
11416
11417 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
11418
11419         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
11420         not false.
11421
11422 2011-01-07  Jan Hubicka  <jh@suse.cz>
11423
11424         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
11425         and no longer claim that gold is required for linker plugin.
11426         * configure: Regenerate.
11427         * gcc.c (PLUGIN_COND): New macro.
11428         (LINK_COMMAND_SPEC): Use it.
11429         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
11430         * config.in (HAVE_LTO_PLUGIN): New.
11431         * configure.ac (--with-lto-plugin): New parameter; autodetect
11432         HAVE_LTO_PLUGIN.
11433
11434 2011-01-07  Jan Hubicka  <jh@suse.cz>
11435
11436         PR tree-optimization/46367
11437         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
11438         when we can update original.
11439         (cgraph_mark_inline_edge): Sanity check.
11440         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
11441
11442 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11443
11444         * config/spu/spu.h (ASM_COMMENT_START): Define.
11445
11446 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
11447
11448         PR driver/42445
11449         * gcc.c (%>S): New.
11450         (SWITCH_KEEP_FOR_GCC): Likewise.
11451         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
11452         (do_spec_1): Handle "%>".
11453
11454         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
11455
11456 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
11457
11458         PR target/47201
11459         * config/i386/i386.c (ix86_delegitimize_address): If
11460         simplify_gen_subreg fails, return orig_x.
11461
11462         PR bootstrap/47187
11463         * value-prof.c (gimple_stringop_fixed_value): Handle
11464         lhs of the call properly.
11465
11466 2011-01-07  Jan Hubicka  <jh@suse.cz>
11467
11468         PR lto/45375
11469         * lto-opt.c (lto_reissue_options): Set flag_shlib.
11470
11471 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
11472
11473         * target.def (function_switched_text_sections): New hook.
11474         * doc/tm.texi: Regenerated.
11475         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
11476         * final.c (default_function_switched_text_sections): New.
11477         (final_scan_insn): Call function_switched_text_sections when a
11478         mid-function section change occurs.
11479         * output.h (default_function_switched_text_sections): Declare.
11480         * config/darwin-protos.h (darwin_function_switched_text_sections):
11481         Likewise.
11482         * config/darwin.c (darwin_function_switched_text_sections): New.
11483         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
11484
11485 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
11486
11487         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
11488         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
11489         the secondary code fragment when outputting for DWARF == 2.
11490
11491 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
11492
11493         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11494         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
11495         Remove.
11496         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
11497         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11498
11499 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
11500
11501         PR debug/46704
11502         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
11503         when it is not empty.
11504
11505 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
11506
11507         Bobcat Enablement
11508         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
11509         (case ${target}): Add btver1.
11510         * config/i386/driver-i386.c (host_detect_local_cpu): Let
11511         -march=native recognize btver1 processors.
11512         * config/i386/i386-c.c (ix86_target_macros_internal): Add
11513         btver1 def_and_undef
11514         * config/i386/i386.c (struct processor_costs btver1_cost): New
11515         btver1 cost table.
11516         (m_BTVER1): New definition.
11517         (m_AMD_MULTIPLE): Includes m_BTVER1.
11518         (initial_ix86_tune_features): Add btver1 tune.
11519         (processor_target_table): Add btver1 entry.
11520         (static const char *const cpu_names): Add btver1 entry.
11521         (software_prefetching_beneficial_p): Add btver1.
11522         (ix86_option_override_internal): Add btver1 instruction sets.
11523         (ix86_issue_rate): Add btver1.
11524         (ix86_adjust_cost): Add btver1.
11525         * config/i386/i386.h (TARGET_BTVER1): New definition.
11526         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
11527         (enum processor_type): Add PROCESSOR_BTVER1.
11528         * config/i386/i386.md (define_attr "cpu"): Add btver1.
11529
11530 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11531
11532         PR target/43309
11533         * config/i386/i386.c (legitimize_tls_address)
11534         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
11535         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
11536         (tls_initial_exec_64_sun): New pattern.
11537
11538 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
11539
11540         * doc/invoke.texi (Overall Options): Improve wording and markup
11541         of the description of -wrapper.
11542
11543 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
11544
11545         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
11546         rdynamic, threads): New Driver options.
11547
11548 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11549
11550         PR target/38118
11551         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
11552         if coming from .tdata.
11553         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
11554
11555 2011-01-06  Jan Hubicka  <jh@suse.cz>
11556
11557         PR lto/47188
11558         * collect2.c (main): Do not enable LTOmode when plugin is active.
11559
11560 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11561
11562         PR other/45915
11563         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
11564         --version output if supported.
11565         * configure: Regenerate.
11566
11567 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
11568
11569         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
11570         Driver options.
11571
11572 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
11573
11574         PR c/47150
11575         * c-convert.c (convert): When converting a complex expression
11576         other than COMPLEX_EXPR to a different complex type, ensure
11577         c_save_expr is called instead of save_expr, unless in_late_binary_op.
11578         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
11579         when converting COMPLEX_TYPE.
11580
11581 2011-01-06  Ira Rosen  <irar@il.ibm.com>
11582
11583         PR tree-optimization/47139
11584         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
11585         only the last reduction value is used outside the loop.  Update
11586         documentation.
11587
11588 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
11589
11590         * config/rtems.opt: New.
11591         * config.gcc (*-*-rtems*): Use rtems.opt.
11592
11593 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
11594
11595         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
11596         processors do not support 3DNow instructions.
11597
11598 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11599
11600         * config/spu/spu.c (spu_option_override): Set parameter
11601         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
11602
11603 2011-01-05  Jan Hubicka  <jh@suse.cz>
11604
11605         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
11606         at the command line.
11607
11608 2011-01-05  Martin Jambor  <mjambor@suse.cz>
11609
11610         PR lto/47162
11611         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
11612         deltas on streamed outgoing edges.
11613         (output_node_opt_summary): Output info for outgoing edges only when
11614         the node is in new parameter set.
11615         (output_cgraph_opt_summary): New parameter set, passed to the two
11616         aforementioned functions.  Update its forward declaration and its
11617         callee too.
11618
11619 2011-01-05  Tom Tromey  <tromey@redhat.com>
11620
11621         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
11622         operator to c_finish_omp_atomic.
11623         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
11624         (build_unary_op): Update.
11625         (build_modify_expr): Update.
11626         (build_asm_expr): Update.
11627
11628 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11629
11630         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
11631         newly inserted insns.
11632         (pad_bb): Likewise.
11633         (spu_emit_branch_hint): Likewise.
11634         (insert_hbrp_for_ilb_runout): Likewise.
11635         (spu_machine_dependent_reorg): Call df_finish_pass after
11636         schedule_insns returns.
11637
11638 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11639
11640         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
11641
11642 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
11643
11644         PR tree-optimization/47005
11645         * tree-sra.c (struct access): Add 'non_addressable' bit.
11646         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
11647         (decide_one_param_reduction): Return 0 if the parameter is passed by
11648         reference and one of the accesses in the group is non_addressable.
11649
11650 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
11651
11652         PR tree-optimization/47056
11653         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
11654         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
11655         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
11656
11657 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
11658
11659         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
11660         initializer.  Skip view conversions from aggregate types.
11661
11662 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
11663
11664         PR bootstrap/47055
11665         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
11666
11667 2011-01-04  Philipp Thomas  <pth@suse.de>
11668
11669         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
11670         obvious typo.
11671
11672 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11673
11674         * function.c (thread_prologue_and_epilogue_insns): Do not crash
11675         on empty epilogue sequences.
11676
11677 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
11678
11679         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
11680         non-static): New Driver options.
11681
11682 2011-01-04  Jie Zhang  <jie@codesourcery.com>
11683
11684         PR driver/47137
11685         * gcc.c (default_compilers[]): Set combinable field to 0
11686         for all assembly languages.
11687
11688 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
11689
11690         * config/mips/loongson3a.md: New file.
11691         * config/mips/mips.md: Include loongson3a.md.
11692         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
11693         TUNE_LOONGSON_3A.
11694
11695 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
11696
11697         PR middle-end/47017
11698         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
11699         instead of convert_memory_address_addr_space on the base expression.
11700
11701 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11702
11703         * config/spu/spu.c (spu_option_override): Update error text
11704         for bad -march= / -mtune= values.
11705
11706 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11707
11708         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
11709         if branch-hint optimization will be performed.
11710
11711 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
11712
11713         PR tree-optimization/47148
11714         * ipa-split.c (split_function): Convert arguments to
11715         DECL_ARG_TYPE if possible.
11716
11717         PR tree-optimization/47155
11718         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
11719         when computing uns.
11720
11721         PR rtl-optimization/47157
11722         * combine.c (try_combine): If undobuf.other_insn becomes
11723         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
11724         and set *new_direct_jump_p too.
11725
11726 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
11727
11728         PR tree-optimization/47021
11729         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
11730
11731 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
11732
11733         * gcc.c (process_command): Update copyright notice dates.
11734         * gcov.c (print_version): Likewise.
11735         * gcov-dump.c (print_version): Likewise.
11736         * mips-tfile.c (main): Likewise.
11737         * mips-tdump.c (main): Likewise.
11738
11739 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11740
11741         PR tree-optimization/46801
11742         * tree-sra.c (type_internals_preclude_sra_p): Check whether
11743         aggregate fields start at byte boundary instead of the bit-field flag.
11744
11745 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
11746
11747         PR driver/47137
11748         * gcc.c (main): Revert revision 168407.
11749
11750 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11751
11752         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
11753
11754 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11755
11756         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
11757         vector optab to expand vector/scalar shift, update gimple to vector.
11758
11759 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11760
11761         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
11762         a thunk.
11763
11764 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11765
11766         PR tree-optimization/46984
11767         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
11768         HOST_WIDE_INT.
11769         (cgraph_create_indirect_edge): Fixed line length.
11770         (cgraph_indirect_call_info): Declare.
11771         (cgraph_make_edge_direct) Update declaration.
11772         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
11773         (cgraph_create_indirect_edge): Use it.
11774         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
11775         callees.
11776         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
11777         the new thunk_delta representation.
11778         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
11779         HOST_WIDE_INT.
11780         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
11781         (ipa_read_indirect_edge_info): Likewise.
11782         * lto-cgraph.c (output_edge_opt_summary): New function.
11783         (output_node_opt_summary): Call it on all outgoing edges.
11784         (input_edge_opt_summary): New function.
11785         (input_node_opt_summary): Call it on all outgoing edges.
11786
11787 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
11788
11789         PR driver/47137
11790         * gcc.c (main): Don't check have_o when settting combine_inputs.
11791
11792 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
11793
11794         * regrename.c: Add general comment describing the pass.
11795         (struct du_head): Remove 'length' field.
11796         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
11797         (regrename_optimize): Do not sort chains.  Rework comments, add others.
11798         Force renaming to the preferred class (if any) in the first pass and do
11799         not consider registers that belong to it in the second pass.
11800         (create_new_chain): Do not set 'length' field.
11801         (scan_rtx_reg): Likewise.
11802
11803 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
11804
11805         PR tree-optimization/47140
11806         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
11807         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
11808         to bit_value_binop.
11809
11810         PR rtl-optimization/47028
11811         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
11812         parm_birth_insn instead of at the beginning of first bb.
11813
11814 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
11815
11816         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
11817         Remove the word "see" before "@pxref".
11818         * doc/rtl.texi: Remove the word "see" before "@pxref".
11819
11820 2011-01-01  Jan Hubicka  <jh@suse.cz>
11821
11822         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
11823         memory.
11824
11825 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
11826
11827         PR target/38662
11828         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
11829
11830 \f
11831 Copyright (C) 2011 Free Software Foundation, Inc.
11832
11833 Copying and distribution of this file, with or without modification,
11834 are permitted in any medium without royalty provided the copyright
11835 notice and this notice are preserved.