OSDN Git Service

a115d78fddc39ec3e4ee860c3587f58ef54264bf
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
2             Eric Botcazou <ebotcazou@adacore.com>
3
4         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
5         for STORE_FLAG_VALUE==-1 case.
6
7 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
8
9         PR target/43804
10         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
11         LEGITIMATE_PIC_OPERAND_P.
12
13 2011-04-24  Jan Hubicka  <jh@suse.cz>
14
15         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
16         WPA hack.
17         * ipa-prop.h (ipa_get_param, ipa_is_param_used, ipa_param_cannot_devirtualize_p,
18         ipa_param_types_vec_empty, ipa_get_ith_jump_func, ipa_get_lattice):
19         Fortify array bounds.
20         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
21         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
22         Sanity check predicate length.
23         (remap_predicate): Likewise; sanity check jump functions.
24         (inline_read_section, inline_write_summary): Sanity check
25         predicate length.
26
27 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
28
29         PR other/48748
30         * doc/extend.texi (Type Traits): Document __is_standard_layout,
31         __is_literal_type, and __is_trivial; update throughout about
32         possibly cv-qualified void types.
33
34 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
35
36         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
37         testsuite and make it version agnostic.
38
39 2011-04-22  Jan Hubicka  <jh@suse.cz>
40
41         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
42
43 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
44
45         PR c/48685
46         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
47         to VOID_TYPE even around MODIFY_EXPR.
48
49 2011-04-22  Mike Stump  <mikestump@comcast.net>
50
51         * gensupport.c (read_md_rtx): Fix typo in comment.
52         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
53         comment.
54
55 2011-04-22  Jan Hubicka  <jh@suse.cz>
56
57         * gengtype.c (open_base_files): Add ipa-inline.h include.
58         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to ipa-prop.c
59         update all uses.
60         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
61         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to merge
62         summary of inlined function into former caller.
63         * ipa-inline.c (max_benefit): Remove.
64         (edge_badness): Compensate for removal of benefits.
65         (update_caller_keys): Use reset_node_growth_cache/reset_edge_growth_cache.
66         (update_callee_keys): Likewise.
67         (update_all_callee_keys): Likewise.
68         (inline_small_functions): Do not collect max_benefit; do not
69         reset stimated_growth; call free_growth_caches and initialize_growth_caches.
70         * ipa-inline.h (struct condition, type clause_t, struct predicate, struct
71         size_time_entry): New structures.
72         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
73         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit and
74         estimated_growth.
75         (edge_growth_cache_entry): New structure.
76         (node_growth_cache, edge_growth_cache): New global vars.
77         (estimate_growth): Turn into inline.
78         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
79         initialize_growth_caches, free_growth_caches): Declare.
80         (estimate_edge_growth): Rewrite.
81         (estimate_edge_time): Implement as inline cache lookup.
82         (reset_node_growth_cache, reset_edge_growth_cache): New inline functions.
83         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
84         (NUM_CONDITIONS): New constant.
85         (predicate_conditions): New enum.
86         (IS_NOT_CONSTANT): New constant.
87         (edge_removal_hook_holder): New var.
88         (node_growth_cache, edge_growth_cache): New global vars.
89         (true_predicate, single_cond_predicate, false_predicate, not_inlined_predicate,
90         add_condition, add_clause, and_predicates, or_predicates, predicates_equal_p,
91         evaulate_predicate, dump_condition, dump_clause, dump_predicate, account_size_time,
92         evaulate_conditions_for_edge): New functions.
93         (inline_summary_alloc): Move to heap.
94         (inline_node_removal_hook): Clear condition and entry vectors.
95         (inline_edge_removal_hook): New function.
96         (initialize_growth_caches, free_growth_caches): New function.
97         (dump_inline_summary): Update.
98         (edge_execution_predicate): New function.
99         (will_be_nonconstant_predicate): New function.
100         (estimate_function_body_sizes): Compute BB and constantness predicates.
101         (compute_inline_parameters): Do not clear estimated_growth.
102         (estimate_edge_size_and_time): New function.
103         (estimate_calls_size_and_time): New function.
104         (estimate_callee_size_and_time): New function.
105         (remap_predicate): New function.
106         (inline_merge_summary): New function.
107         (do_estimate_edge_time): New function based on...
108         (estimate_edge_time): ... this one.
109         (do_estimate_edge_growth): New function.
110         (do_estimate_growth): New function based on....
111         (estimate_growth): ... this one.
112         (inline_analyze_function): Analyze after deciding on jump functions.
113         (inline_read_section): New function.
114         (inline_read_summary): Use it.
115         (inline_write_summary): Write all the new data.
116         * ipa-prop.c (ipa_get_param_decl_index): Export.
117         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
118         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc): Declare.
119         (ipa_get_lattice): Move hre from ipa-cp.c
120         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
121         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
122         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
123         cgraph_edge_inlinable_p): Remove.
124         * cgraphunit.c: Include ipainline.h
125         (cgraph_process_new_functions): Update call of compute_inline_parameters.
126
127 2011-04-22  Richard Guenther  <rguenther@suse.de>
128
129         * tree.c (build_int_cst): Properly create canonicalized integer
130         constants.
131         (build_int_cst_type): Remove scary comments.
132
133 2011-04-22  Xinliang David Li  <davidxl@google.com>
134
135         * toplev.c (process_options): Enable -Werror=coverage-mismatch
136         by default when -Wno-error is not specified.
137         * opts-global.c (decode_options): Remove call to
138         control_warning_options.
139
140 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
141
142         PR tree-optimization/48717
143         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
144         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
145
146 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
147
148         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
149         definition where used.
150
151 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
152
153         PR c/48716
154         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
155         TREE_STATIC variables declared inside of some OpenMP construct.
156
157 2011-04-22  Martin Jambor  <mjambor@suse.cz>
158
159         PR middle-end/48585
160         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
161
162 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
163
164         PR c/36750
165         * c-typeck.c (pop_init_level): Do not warn about initializing
166         with ` = {0}'.
167
168 2011-04-22  Alan Modra  <amodra@gmail.com>
169
170         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
171         when returning call_cookie.
172         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
173         pointers, to functions with no more vector args than the current
174         function, and some non-local calls for ABI_V4.
175         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
176         sibcall_nonlocal_aix64): Combine to ..
177         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
178         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
179         (sibcall_value_nonlocal_aix<mode>): ..likewise.
180         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
181         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
182         operand.
183         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
184         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
185         sibcall_value_symbolic_64): Delete.
186
187 2011-04-21  Xinliang David Li  <davidxl@google.com>
188
189         * cgraph.h: Remove pid.
190         * cgraph.c: Remove pid.
191         * value-prof.c (init_node_map): New function.
192         (del_node_map): New function.
193         (find_func_by_funcdef_no): New function.
194         (gimple_ic_transform): Call new function.
195         * cgraphunit.c (cgraph_finalize_function): Remove pid.
196         * function.c (get_last_funcdef_no): New function.
197         * function.h (get_last_funcdef_no): New function.
198         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
199         to libgcov function.
200         (tree-profiling): Call node map init and delete function.
201
202 2011-04-21  Ian Lance Taylor  <iant@google.com>
203
204         * godump.c (go_format_type): Use exported Go name for anonymous
205         field name.
206
207 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
208
209         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
210         Call builtin_function_type_list instead of builtin_function_type.
211         (UNARY, BINARY, TRINARY, QUAD): Likewise.
212
213 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
214
215         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
216         build_function_type_list instead of build_function_type.
217         Delete variable `endlink'.
218
219 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
220
221         * config/s390/s390.c (s390_init_builtins): Call
222         build_function_type_list instead of build_function_type.
223
224 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
225
226         * config/ia64/ia64.c (ia64_init_builtins): Call
227         build_function_type_list instead of builtin_function_type.
228
229 2011-04-21  Easwaran Raman  <eraman@google.com>
230
231         * cfgexpand.c (stack_var): Remove OFFSET...
232         (add_stack_var): ...and its reference here...
233         (expand_stack_vars): ...and here.
234         (stack_var_cmp): Sort by descending order of size.
235         (partition_stack_vars): Change heuristic.
236         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
237         (dump_stack_var_partition): Add newline after each partition.
238
239 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
240             Jeff Law  <law@redhat.com>
241
242         * gengtype-state.c (read_a_state_token): Fix argument to
243         obstack_free.
244         * gengtype.c (matching_file_name_substitute): Likewise.
245
246 2011-04-21  Richard Guenther  <rguenther@suse.de>
247
248         PR lto/48703
249         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
250
251 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
252
253         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
254
255 2011-04-21  Richard Guenther  <rguenther@suse.de>
256
257         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
258         file name.
259
260 2011-04-21  Richard Guenther  <rguenther@suse.de>
261
262         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
263         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
264         Use DECL_P, not SSA_VAR_P.
265         (ptr_derefs_may_alias_p): Likewise.
266         (ptr_deref_may_alias_ref_p_1): Likewise.
267         (decl_refs_may_alias_p): Likewise.
268         (refs_may_alias_p_1): Likewise.
269         (ref_maybe_used_by_call_p_1): Likewise.
270         (call_may_clobber_ref_p_1): Likewise.
271         (indirect_ref_may_alias_decl_p): Assume indirect refrences
272         are either MEM_REF or TARGET_MEM_REF.
273         (indirect_refs_may_alias_p): Likewise.
274         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
275         for MEM_EXPR of indirect calls.
276
277 2011-04-21  Tristan Gingold  <gingold@adacore.com>
278
279         * vmsdbgout.c (write_srccorr): Compute file length from the string.
280         (dst_file_info_struct): Remove flen field.
281         (lookup_filename): Remove code that set flen field.
282
283 2011-04-21  Tristan Gingold  <gingold@adacore.com>
284
285         * config/ia64/ia64.c (ia64_start_function): Add a guard.
286
287 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
288
289         PR target/48708
290         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
291         vec_extract and vec_concat for non-SSE4_1 targets.
292
293 2011-04-21  Richard Guenther  <rguenther@suse.de>
294
295         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
296         return statements.
297
298 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
299
300         * config/i386/cygming.h (union tree_node, TREE): Don't define or
301         undefine.
302         (FILE): Don't undefine.
303
304 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
305
306         * config/alpha/alpha.c (struct machine_function): Use rtx, not
307         struct rtx_def *.
308         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
309         struct rtx_def *.
310         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
311         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
312         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
313         rtx_def *.
314         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
315         definitions where used.
316         * config/microblaze/microblaze.h (struct microblaze_args): Use
317         rtx, not struct rtx_def *.
318         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
319         rtx_def *.
320         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
321         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
322         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
323         not struct rtx_def *.
324         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
325         struct rtx_def *.
326         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
327         rtx_def *.
328         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
329
330 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
331
332         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
333         operand_equal_p to compare DR_BASE_ADDRESSes.
334         (vect_check_interleaving): Likewise.
335
336 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
337
338         PR target/46329
339         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
340         for all Neon struct constants.
341
342 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
343
344         * target.def (legitimate_constant_p): New hook.
345         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
346         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
347         * doc/tm.texi: Regenerate.
348         * hooks.h (hook_bool_mode_rtx_true): Declare.
349         * hooks.c (hook_bool_mode_rtx_true): Define.
350         * system.h (LEGITIMATE_CONSTANT_P): Poison.
351         * calls.c (precompute_register_parameters): Replace uses of
352         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
353         (emit_library_call_value_1): Likewise.
354         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
355         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
356         * ira-costs.c (scan_one_insn): Likewise.
357         * recog.c (general_operand, immediate_operand): Likewise.
358         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
359         * reload1.c (init_eliminable_invariants): Likewise.
360
361         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
362         mode argument.
363         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
364         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
365         argument.
366         (TARGET_LEGITIMATE_CONSTANT_P): Define.
367         * config/alpha/predicates.md (input_operand): Update call to
368         alpha_legitimate_constant_p.
369
370         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
371         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
372         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
373         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
374         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
375         (arm_legitimate_constant_p): New functions.
376         (arm_cannot_force_const_mem): Make static.
377
378         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
379
380         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
381         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
382         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
383         instead of bfin_legitimate_constant_p.
384         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
385         (TARGET_LEGITIMATE_CONSTANT_P): Define.
386
387         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
388
389         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
390
391         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
392         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
393         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
394         (frv_legitimate_constant_p): Make static.  Add a mode argument.
395
396         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
397         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
398         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
399
400         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
401         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
402         * config/i386/i386.c (legitimate_constant_p): Rename to...
403         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
404         argument.
405         (ix86_cannot_force_const_mem): Update accordingly.
406         (ix86_legitimate_address_p): Likewise.
407         (TARGET_LEGITIMATE_CONSTANT_P): Define.
408         * config/i386/i386.md: Update commentary.
409
410         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
411         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
412         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
413         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
414
415         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
416
417         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
418         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
419         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
420         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
421
422         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
423         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
424         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
425
426         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
427         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
428         (m32r_legitimate_constant_p): New function.
429
430         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
431         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
432         LEGITIMATE_CONSTANT_P.
433         (LEGITIMATE_CONSTANT_P): Delete.
434         * config/m68k/m68k.c (m68k_expand_prologue): Call
435         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
436         (m68k_legitimate_constant_p): New function.
437         * config/m68k/m68k.md: Update comments.
438
439         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
440         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
441         (mcore_legitimate_constant_p): New function.
442
443         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
444         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
445         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
446         Add a mode argument.
447         (mep_legitimate_address): Update accordingly.
448         (TARGET_LEGITIMATE_CONSTANT_P): Define.
449
450         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
451         Delete.
452         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
453         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
454         static.  Check OP's mode for VOIDmode.
455         (microblaze_legitimate_constant_p): New function.
456         (TARGET_LEGITIMATE_CONSTANT_P): Define.
457
458         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
459         * config/mips/mips.c (mips_legitimate_constant_p): New function.
460         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
461         (TARGET_LEGITIMATE_CONSTANT_P): Define.
462         * config/mips/predicates.md: Update comments.
463
464         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
465         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
466         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
467         (mmix_legitimate_constant_p): Make static, return a bool, and take
468         a mode argument.
469         (mmix_print_operand_address): Update accordingly.
470
471         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
472         Delete.
473         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
474         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
475         static.  Add a mode argument.
476         (TARGET_LEGITIMATE_CONSTANT_P): Define.
477
478         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
479
480         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
481         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
482         (pa_legitimate_constant_p): New function.
483
484         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
485
486         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
487         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
488         (pdp11_legitimate_constant_p): New function.
489
490         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
491         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
492         (rs6000_legitimate_constant_p): New function.
493
494         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
495         (rx_legitimate_constant_p): ...this.
496         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
497         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
498         (rx_legitimate_constant_p): ...this.
499         (TARGET_LEGITIMATE_CONSTANT_P): Define.
500         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
501
502         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
503         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
504         * config/s390/s390.c (legitimate_constant_p): Rename to...
505         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
506         and add a mode argument.
507         (TARGET_LEGITIMATE_CONSTANT_P): Define.
508
509         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
510
511         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
512         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
513         (sh_legitimate_constant_p): New function.
514
515         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
516         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
517         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
518         (legitimate_constant_p): Rename to...
519         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
520         argument.
521         (constant_address_p): Update accordingly.
522
523         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
524         argument and return a bool.
525         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
526         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
527         (spu_legitimate_constant_p): Add a mode argument and return a bool.
528         (spu_rtx_costs): Update accordingly.
529         * config/spu/predicates.md (vec_imm_operand): Likewise.
530
531         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
532
533         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
534         * config/v850/v850.c (v850_legitimate_constant_p): New function.
535         (TARGET_LEGITIMATE_CONSTANT_P): Define.
536
537         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
538         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
539         * config/vax/vax.c (legitimate_constant_p): Likewise.
540
541         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
542         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
543         (xtensa_legitimate_constant_p): New function.
544
545 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
546
547         * target.def (cannot_force_const_mem): Add a mode argument.
548         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
549         * doc/tm.texi: Regenerate.
550         * hooks.h (hook_bool_mode_rtx_false): Declare.
551         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
552         (hook_bool_mode_const_rtx_true): Likewise.
553         (hook_bool_mode_rtx_false): New function.
554         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
555         to be non-VOID.  Update call to cannot_force_const_mem.
556         (find_reloads): Update accordingly.
557         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
558         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
559         argument.
560         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
561         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
562         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
563         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
564         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
565         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
566         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
567         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
568         (m68k_cannot_force_const_mem): ...this new function.
569         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
570         argument.
571         (mips_const_insns, mips_legitimize_const_move): Update calls.
572         (mips_secondary_reload_class): Likewise.
573         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
574         (pa_cannot_force_const_mem): ...this new function.
575         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
576         (rs6000_cannot_force_const_mem): ...this new function.
577         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
578         argument.
579         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
580         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
581         to...
582         (xtensa_cannot_force_const_mem): ...this new function.
583
584 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
585
586         * config/mips/mips.c (mips16_build_function_stub): Call
587         build_function_type_list instead of build_function_type.
588         (mips16_build_call_stub): Likewise.
589
590 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
591
592         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
593         instead of build_function_type.
594
595 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
596
597         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
598         instead of build_function_type.
599
600 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
601
602         PR target/48678
603         * config/i386/i386.md (insv): Change operand 0 constraint to
604         "register_operand".  Change operand 1 and 2 constraint to
605         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
606         * config/i386/sse.md (sse4_1_pinsrb): Export.
607         (sse2_pinsrw): Ditto.
608         (sse4_1_pinsrd): Ditto.
609         (sse4_1_pinsrq): Ditto.
610         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
611         * config/i386/i386.c (ix86_expand_pinsr): New.
612
613 2011-04-20  Easwaran Raman  <eraman@google.com>
614
615         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
616         containing union type only with -fstrict-aliasing.
617
618 2011-04-20  Jim Meyering  <meyering@redhat.com>
619
620         Remove useless if-before-free tests.
621         * calls.c (expand_call, save_area): Likewise.
622         * cfgcleanup.c (try_forward_edges): Likewise.
623         * collect2.c (collect_execute): Likewise.
624         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
625         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
626         * coverage.c (coverage_checksum_string): Likewise.
627         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
628         * cselib.c (cselib_init): Likewise.
629         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
630         (df_set_clean_cfg): Likewise.
631         * function.c (free_after_compilation): Likewise.
632         * gcc.c (do_spec_1, main): Likewise.
633         * gcov.c (create_file_names): Likewise.
634         * gensupport.c (identify_predicable_attribute): Likewise.
635         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
636         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
637         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
638         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
639         * ipa-pure-const.c (local_pure_const): Likewise.
640         * ipa-reference.c (propagate): Likewise.
641         * ira-costs.c (free_ira_costs): Likewise.
642         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
643         * matrix-reorg.c (mat_free): Likewise.
644         * prefix.c (get_key_value): Likewise.
645         * profile.c (compute_value_histograms): Likewise.
646         * reload1.c (free_reg_equiv): Likewise.
647         * sched-deps.c (free_deps): Likewise.
648         * sel-sched-ir.c (fence_clear): Likewise.
649         * sese.c (set_rename, if_region_set_false_region): Likewise.
650         * tree-data-ref.c (free_rdg): Likewise.
651         * tree-eh.c (lower_try_finally): Likewise.
652         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
653         * tree-ssa-live.c (delete_var_map): Likewise.
654         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
655         * tree-ssa-pre.c (phi_trans_add): Likewise.
656
657 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
658
659         PR tree-optimization/48611
660         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
661         beyond ERT_MUST_NOT_THROW region.
662
663 2011-04-20  Catherine Moore  <clm@codesourcery.com>
664
665         * config/mips/mips.opt (mfix-24k): New.
666         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
667         * config/mips/mips.md (length): Increase by 4 for stores if
668         fixing 24K errata.
669         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
670         all noreorder if fixing 24K errata.
671         * doc/invoke.texi: Document mfix-24k.
672
673 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
674
675         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
676         quad-word modes, reduce to 9-bit index range when above 1016 limit.
677
678 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
679
680         * config/arm/arm.c (arm_gen_constant): Move movw support ....
681         (const_ok_for_op): ... to here.
682
683 2011-04-20  Kai Tietz  <ktietz@redhat.com>
684
685         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
686         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
687
688 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
689
690         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
691
692 2011-04-20  Richard Guenther  <rguenther@suse.de>
693
694         PR tree-optimization/47892
695         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
696         are if-convertible.
697
698 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
699
700         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
701
702 2011-04-20  Tristan Gingold  <gingold@adacore.com>
703
704         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
705
706 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
707
708         PR target/18145
709
710         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
711         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
712         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
713         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
714         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
715
716         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
717         New prototype.
718
719         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
720         (avr_asm_named_section, avr_asm_output_aligned_common,
721         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
722         New functions to update...
723         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
724         (avr_asm_init_sections): Overwrite section callbacks for
725         data_section, bss_section.
726         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
727         from here to...
728         (avr_file_end): ...here.
729
730 2011-04-20  Richard Guenther  <rguenther@suse.de>
731
732         PR middle-end/48695
733         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
734         objects and types here.  Adjust for their offset before comparing.
735
736 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
737
738         * tree-vect-stmts.c (vectorizable_store): Only chain one related
739         statement per copy.
740
741 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
742
743         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
744         (GIMPLE_H): Include $(INTERNAL_FN_H).
745         (OBJS-common): Add internal-fn.o.
746         (internal-fn.o): New rule.
747         * internal-fn.def: New file.
748         * internal-fn.h: Likewise.
749         * internal-fn.c: Likewise.
750         * gimple.h: Include internal-fn.h.
751         (GF_CALL_INTERNAL): New gf_mask.
752         (gimple_statement_call): Put fntype into a union with a new
753         internal_fn field.
754         (gimple_build_call_internal): Declare.
755         (gimple_build_call_internal_vec): Likewise.
756         (gimple_call_same_target_p): Likewise.
757         (gimple_call_internal_p): New function.
758         (gimple_call_internal_fn): Likewise.
759         (gimple_call_fntype): Return null for internal calls.
760         (gimple_call_set_fntype): Assert that the function is not internal.
761         (gimple_call_set_fn): Likewise.
762         (gimple_call_set_fndecl): Likewise.
763         (gimple_call_set_internal_fn): New function.
764         (gimple_call_addr_fndecl): Handle null functions.
765         (gimple_call_return_type): Likewise null types.
766         * gimple.c (gimple_build_call_internal_1): New function.
767         (gimple_build_call_internal): Likewise.
768         (gimple_build_call_internal_vec): Likewise.
769         (gimple_call_same_target_p): Likewise.
770         (gimple_call_flags): Handle calls to internal functions.
771         (gimple_call_fnspec): New function.
772         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
773         (gimple_has_side_effects): Handle null functions.
774         (gimple_rhs_has_side_effects): Likewise.
775         (gimple_call_copy_skip_args): Handle calls to internal functions.
776         * cfgexpand.c (expand_call_stmt): Likewise.
777         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
778         * gimple-fold.c (gimple_fold_call): Handle null functions.
779         (gimple_fold_stmt_to_constant_1): Don't fold
780         calls to internal functions.
781         * gimple-low.c (gimple_check_call_args): Handle calls to internal
782         functions.
783         * gimple-pretty-print.c (dump_gimple_call): Likewise.
784         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
785         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
786         (do_warn_unused_result): Likewise.
787         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
788         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
789         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
790         the target of a call.
791         (initialize_hash_element): Update accordingly.
792         (hashable_expr_equal_p): Use gimple_call_same_target_p.
793         (iterative_hash_hashable_expr): Handle calls to internal functions.
794         (print_expr_hash_elt): Likewise.
795         * tree-ssa-pre.c (can_value_number_call): Likewise.
796         (eliminate): Handle null functions.
797         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
798         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
799         (find_func_aliases): Likewise.
800         * value-prof.c (gimple_ic_transform): Likewise.
801         (gimple_indirect_call_to_profile): Likewise.
802         * lto-streamer-in.c (input_gimple_stmt): Likewise.
803         * lto-streamer-out.c (output_gimple_stmt): Likewise.
804
805 2011-04-19  Jan Hubicka  <jh@suse.cz>
806
807         * ipa-inline-transform.c (save_inline_function_body): Add comments.
808         * ipa-inline.c (inline_small_functions): Compute summaries first,
809         populate heap later.
810
811 2011-04-19  Jan Hubicka  <jh@suse.cz>
812
813         * cgraph.h (save_inline_function_body): Remove.
814         * ipa-inline-transform.c: New file, broke out of...
815         * ipa-inline.c: ... this one; Update toplevel comment.
816         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
817         make global.
818         (update_noncloned_frequencies): Move to ipa-inline-transform.c
819         (cgraph_mark_inline_edge): Rename to inline_call; move to
820         ipa-inline-transform.c.
821         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
822         move to ipa-inline-transform.c
823         (recursive_inlining, inline_small_functions, flatten_function,
824         ipa_inline, inline_always_inline_functions,
825         early_inline_small_functions): Update.
826         (inline_transform): Move to ipa-inline-transform.c.
827         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
828         Declare.
829         * Makefile.in (ipa-inline-transform.o): New file.
830         * cgraphunit.c (save_inline_function_body): Move to
831         ipa-inline-transform.c
832
833 2011-04-19  DJ Delorie  <dj@redhat.com>
834
835         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
836         registers if we already know there aren't any.
837         (m32c_emit_epilogue): Don't emit a barrier here.
838         (m32c_emit_eh_epilogue): Likewise.
839         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
840         operands at expand time.
841         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
842         int" wchar type.
843         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
844         duplicates.  Provide aliases instead.
845         * config/m32c/prologue.md (eh_return): Emit a barrier here.
846         (eh_epilogue): Add a "(return)" here as a hint to other parts of
847         the compiler.
848
849 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
850
851         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
852         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
853         (general_or_i64_p, sparc_register_move_cost): New function.
854
855 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
856
857         * doc/install.texi (Configuration, --enable-threads): Remove mach.
858         Add lynx, mipssde.  Sort table.
859
860 2011-04-19  Xinliang David Li  <davidxl@google.com>
861
862         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
863         not negative.
864
865 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
866
867         PR target/48678
868         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
869         is a SUBREG with non-MODE_INT mode inside of it.
870
871 2011-04-19  Martin Jambor  <mjambor@suse.cz>
872
873         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
874         also according to actual contants.
875         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
876         (gimple_fold_call): Use it.
877         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
878
879 2011-04-19  Martin Jambor  <mjambor@suse.cz>
880
881         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
882         non-pointer assignments.
883
884 2011-04-19  Martin Jambor  <mjambor@suse.cz>
885
886         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
887         account anc_offset and otr_type from the indirect edge info.
888         * ipa-prop.c (get_ancestor_addr_info): New function.
889         (compute_complex_ancestor_jump_func): Assignment analysis moved to
890         get_ancestor_addr_info, call it.
891         (ipa_note_param_call): Do not initialize information about polymorphic
892         calls, return the indirect call graph edge.  Remove the last
893         parameter, adjust all callers.
894         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
895         parameters.  Initialize polymorphic information in the indirect edge.
896
897 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
898
899         PR lto/48148
900         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
901         the types if they have different enumeration identifiers.
902
903 2011-04-19  Jan Hubicka  <jh@suse.cz>
904
905         * cgraph.h (cgraph_optimize_for_size_p): Declare.
906         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
907         * predict.c (cgraph_optimize_for_size_p): Break out from ...
908         (optimize_function_for_size_p) ... here.
909
910 2011-04-19  Richard Guenther  <rguenther@suse.de>
911
912         PR lto/48207
913         * tree.c (free_lang_data): Do not reset the decl-assembler-name
914         langhook.
915
916 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
917
918         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
919         if DECL_NO_INLINE_WARNING_P is set on the function.
920
921 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
922
923         PR fortran/47976
924         * reload1.c (inc_for_reload): Return void. All callers changed.
925         (emit_input_reload_insns): Don't try to delete previous output
926         reloads to a register, or record spill_reg_store for autoincs.
927
928 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
929
930         * gengtype.h: Updated copyright year.
931         (struct input_file_st): Add inpisplugin field.
932         (type_fileloc): New function.
933         * gengtype.c
934         (write_typed_struct_alloc_def): Add gcc_assert.
935         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
936         (write_typed_alloc_defns): Don't output for plugin files.
937         (input_file_by_name): Clear inpisplugin field.
938         (main): Set inpisplugin field for plugin files.
939
940 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
941
942         * gengtype-state.c (string_eq): New.
943         (read_state): Use string_eq instead of strcmp when creating the
944         state_ident_tab.
945
946 2011-04-19  Wei Guozhi  <carrot@google.com>
947
948         PR target/47855
949         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
950         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
951         linkage.
952         * config/arm/constraints.md (Uu): New constraint.
953         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
954
955 2011-04-19  Tristan Gingold  <gingold@adacore.com>
956
957         * config.gcc (-*-*-*vms): Added.
958         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
959         definitions moved.
960         * config/vms/vms-ld.c: New file.
961         * config/vms/vms-ar.c: New file.
962         * config/vms/t-vmsnative: New file.
963
964 2011-04-18  Xinliang David Li  <davidxl@google.com>
965
966         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
967
968 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
969
970         PR middle-end/48661
971         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
972         if TREE_TYPE (v) is non-NULL.
973
974         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
975         gimple_get_virt_mehtod_for_binfo.
976         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
977         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
978         callers.
979         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
980
981 2011-04-18  Michael Matz  <matz@suse.de>
982             Steve Ellcey  <sje@cup.hp.com>
983
984         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
985         use its mode as source mode if it isn't VOIDmode.
986
987 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
988
989         * doc/passes.texi: Fill crossref nodes.
990
991 2011-04-18  Jim Meyering  <meyering@redhat.com>
992
993         Fix doubled-word typos in comments and strings
994         * config/alpha/vms-unwind.h: s/for for/for/
995         * config/arm/unwind-arm.h: Likewise.
996         * config/microblaze/microblaze.c: Likewise.
997         * config/sh/constraints.md: s/in in/in/
998         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
999
1000 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
1001
1002         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
1003         (AVX_FLOAT_MODE_P): Ditto.
1004         (AVX128_VEC_FLOAT_MODE_P): Ditto.
1005         (AVX256_VEC_FLOAT_MODE_P): Ditto.
1006         (AVX_VEC_FLOAT_MODE_P): Ditto.
1007         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
1008         (UNSPEC_MASKSTORE): Ditto.
1009         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
1010         Merge from <sse>_movmsk<ssemodesuffix> and
1011         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
1012         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
1013         iterator.
1014         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
1015         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
1016         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
1017
1018 2011-04-18  Jan Hubicka  <jh@suse.cz>
1019
1020         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
1021
1022         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
1023         (want_inline_function_called_once_p): Break out the logic from
1024         ipa_inline.
1025         (edge_badness): Ensure that profile is not misupdated.
1026         (lookup_recursive_calls): Prioritize by call frequencies.
1027         (inline_small_functions): Move program size estimates here;
1028         actually process whole queue even when unit growth has been
1029         met. (to properly compute inline_failed reasons and for the
1030         case unit size decrease.) Revisit comments on recursive inlining.
1031         (ipa_inline): Remove unit summary code; first inline hot calls
1032         of functions called once, cold calls next.
1033         (order, nnodes): Remove unused variables.
1034         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
1035         (GTFILES): Remove ipa-inline.c
1036         * sel-sched.c (fill_insns): Silence uninitialized var warning.
1037
1038 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
1039
1040         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
1041
1042 2011-04-18  Jie Zhang  <jie@codesourcery.com>
1043             Richard Earnshaw  <rearnsha@arm.com>
1044
1045         * arm.c (neon_builtin_type_bits): Remove.
1046         (typedef enum neon_builtin_mode): New.
1047         (T_MAX): Don't define.
1048         (typedef enum neon_builtin_datum): Remove bits, codes[],
1049         num_vars and base_fcode.  Add mode, code and fcode.
1050         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
1051         VAR10): Change accordingly.
1052         (neon_builtin_data[]): Change accordingly
1053         (arm_init_neon_builtins): Change accordingly.
1054         (neon_builtin_compare): Remove.
1055         (locate_neon_builtin_icode): Remove.
1056         (arm_expand_neon_builtin): Change accordingly.
1057
1058         * arm.h (enum arm_builtins): Move to ...
1059         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
1060
1061         * arm.c (arm_builtin_decl): Declare.
1062         (TARGET_BUILTIN_DECL): Define.
1063         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
1064         (arm_builtin_decls[]): New.
1065         (arm_init_neon_builtins): Store builtin declarations in
1066         arm_builtin_decls[].
1067         (arm_init_tls_builtins): Likewise.
1068         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
1069         (arm_builtin_decl): New.
1070
1071 2011-04-18  Richard Guenther  <rguenther@suse.de>
1072
1073         * tree.c (upper_bound_in_type): Build properly canonicalized
1074         INTEGER_CSTs.
1075         (lower_bound_in_type): Likewise.
1076
1077 2011-04-18  Richard Guenther  <rguenther@suse.de>
1078
1079         * gimple.h (gimple_call_addr_fndecl): New function.
1080         (gimple_call_fndecl): Use it.
1081         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
1082         for direct calls.
1083         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
1084         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
1085
1086 2011-04-18  Richard Guenther  <rguenther@suse.de>
1087
1088         PR middle-end/48650
1089         * tree.c (build_string): STRING_CST is now derived from tree_typed.
1090
1091 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
1092
1093         PR lto/48492
1094         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
1095         DECL_IN_CONSTANT_POOL without RTL.
1096
1097 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
1098             Ira Rosen  <ira.rosen@linaro.org>
1099
1100         PR target/48252
1101         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
1102         to match neon_vzip/vuzp/vtrn_internal.
1103         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
1104         outputs explicitly dependent on both inputs.
1105         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
1106
1107 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
1108
1109         PR tree-optimization/48616
1110         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
1111         whether the shift is by scalar or vector based on whether all SLP
1112         scalar stmts have the same rhs.
1113
1114 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
1115
1116         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
1117         memory operands.
1118
1119 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
1120
1121         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
1122         registers.
1123
1124 2011-04-17  Jan Hubicka  <jh@suse.cz>
1125
1126         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
1127         * cgrpahunit.c (cgraph_finalize_function): Do not set
1128         finalized_by_frontend.
1129         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
1130         finalized_by_frontend.
1131
1132 2011-04-17  Jan Hubicka  <jh@suse.cz>
1133
1134         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
1135         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
1136         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
1137         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
1138         method.
1139         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
1140         gimple-fold.c
1141         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
1142
1143 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
1144
1145         PR lto/48538
1146         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
1147         is non-null before accessing it.
1148         (input_cgraph): Remove trailing spaces.
1149
1150 2011-04-17  Revital Eres  <revital.eres@linaro.org>
1151
1152         * params.def (sms-min-sc): New param flag.
1153         * modulo-sched.c (sms_schedule): Use it.
1154         * doc/invoke.texi (sms-min-sc): Document it.
1155
1156 2011-04-17  Jan Hubicka  <jh@suse.cz>
1157
1158         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
1159         present, also set gimple_call_set_cannot_inline.
1160         * ipa-inline.c: Update toplevel comment.
1161         (MAX_TIME): Remove.
1162         (cgraph_clone_inlined_nodes): Fix linebreaks.
1163         (cgraph_check_inline_limits): Restructure to ...
1164         (caller_growth_limits): ... this one; be more tolerant
1165         on growth in nested inline chains; add explanatory comment;
1166         fix stack accounting thinko introduced by previous patch.
1167         (cgraph_default_inline_p): Remove.
1168         (report_inline_failed_reason): New function.
1169         (can_inline_edge_p): New function.
1170         (can_early_inline_edge_p): New function.
1171         (leaf_node_p): Move upwards in file.
1172         (want_early_inline_function_p): New function.
1173         (want_inline_small_function_p): New function.
1174         (want_inline_self_recursive_call_p): New function.
1175         (cgraph_edge_badness): Rename to ...
1176         (edge_badness) ... this one; fix linebreaks.
1177         (update_edge_key): Update call of edge_baddness; add
1178         detailed dump about queue updates.
1179         (update_caller_keys): Use can_inline_edge_p and
1180         want_inline_small_function_p.
1181         (cgraph_decide_recursive_inlining): Rename to...
1182         (recursive_inlining): Use can_inline_edge_p and
1183         want_inline_self_recursive_call_p; simplify and remove no longer
1184         valid FIXME.
1185         (cgraph_set_inline_failed): Remove.
1186         (add_new_edges_to_heap): Use can_inline_edge_p and
1187         want_inline_small_function_p.
1188         (cgraph_decide_inlining_of_small_functions): Rename to ...
1189         (inline_small_functions): ... this one; cleanup; use
1190         can/want predicates; cleanup debug ouput; work edges till fibheap
1191         is exhausted and do not stop once unit growth is reached; remove
1192         later loop processing remaining edges.
1193         (cgraph_flatten): Rename to ...
1194         (flatten_function): ... this one; use can_inline_edge_p
1195         and can_early_inline_edge_p predicates.
1196         (cgraph_decide_inlining): Rename to ...
1197         (ipa_inline): ... this one; remove unreachable nodes before
1198         inlining functions called once; simplify the pass.
1199         (cgraph_perform_always_inlining): Rename to ...
1200         (inline_always_inline_functions): ... this one; use
1201         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
1202         (cgraph_decide_inlining_incrementally): Rename to ...
1203         (early_inline_small_functions): ... this one; simplify
1204         using new predicates; cleanup; make dumps prettier.
1205         (cgraph_early_inlining): Rename to ...
1206         (early_inliner): newer inline regular functions into always-inlines;
1207         fix updating of call stmt summaries.
1208         (pass_early_inline): Update for new names.
1209         (inline_transform): Fix formating.
1210         (gate_cgraph_decide_inlining): Rename to ...
1211         (pass_ipa_inline): ... this one.
1212         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
1213         * ipa-inline-analysis.c (dump_inline_summary): Update.
1214         (compute_inline_parameters): Do not compute disregard_inline_limits;
1215         look for mismatching arguments.
1216         (estimate_growth): Fix handlig of non-trivial self recursion.
1217         (inline_read_summary): Do not read info->disregard_inline_limits.
1218         (inline_write_summary): Do not write info->disregard_inline_limits.
1219         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
1220         and move all checks into can_inline_edge_p predicate; re-enable code
1221         comparing optimization levels.
1222         (expand_call_inline): Do not test inline_forbidden_into_p.
1223         * Makefile.in (ipa-inline.o): Update arguments.
1224
1225 2011-04-17  Revital Eres  <revital.eres@linaro.org>
1226
1227         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
1228
1229 2011-04-17  Revital Eres  <revital.eres@linaro.org>
1230
1231         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
1232
1233 2011-04-17  Michael Matz  <matz@suse.de>
1234
1235         PR tree-optimization/48622
1236         PR lto/48645
1237         * ipa-inline-analysis.c (inline_read_summary): Read size/time
1238         in same order as they're written.
1239
1240 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1241
1242         * config/pa/predicates.md: Reorganize and simplify predicates.
1243         Eliminate duplicate code checks.
1244         (arith_operand): Rename to arith14_operand
1245         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
1246         * config/pa/pa.md: Use renamed operands.
1247         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
1248         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
1249         arith11_operand, adddi3_operand, indexed_memory_operand,
1250         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
1251         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
1252         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
1253         move_dest_operand, move_src_operand, prefetch_cc_operand,
1254         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
1255         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
1256         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
1257         div_operand, int5_operand, movb_comparison_operator,
1258         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
1259         arith_double_operand, ireg_operand, lhs_lshift_operand,
1260         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
1261         integer_store_memory_operand): Likewise.
1262         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
1263         (integer_store_memory_operand, read_only_operand,
1264         function_label_operand, borx_reg_operand,
1265         non_hard_reg_operand): Likewise.
1266         (eq_neq_comparison_operator): Delete unused operator.
1267         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
1268         function_label_operand.
1269         (emit_move_sequence): Likewise.
1270
1271 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
1272
1273         * config/i386/sse.md (sseunpackmode): New mode attribute.
1274         (ssepackmode): Ditto.
1275         (vec_pack_trunc_<mode>): Macroize expander from
1276         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
1277         (vec_unpacks_lo_<mode>): Macroize expander from
1278         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1279         (vec_unpacks_hi_<mode>): Macroize expander from
1280         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1281         (vec_unpacku_lo_<mode>): Macroize expander from
1282         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1283         (vec_unpacku_hi_<mode>): Macroize expander from
1284         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1285         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
1286         ix86_expand_sse4_unpack.
1287         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
1288
1289 2011-04-16  Jan Hubicka  <jh@suse.cz>
1290
1291         * cgraphbuild.c: Include ipa-inline.h.
1292         (reset_inline_failed): Use initialize_inline_failed.
1293         * cgraph.c: Include ipa-inline.h.
1294         (cgraph_create_node_1): Do not initialize estimated_growth.
1295         (initialize_inline_failed): More to ipa-inline-analysis.c
1296         (dump_cgraph_node): Do not dump inline flags.
1297         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
1298         and disregard_inline_limits flags.
1299         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
1300         time, size, estimated_growth.
1301         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
1302         Update.
1303         * cgraphunit.c (cgraph_decide_is_function_needed): Use
1304         DECL_DISREGARD_INLINE_LIMITS.
1305         (cgraph_analyze_function): Do not initialize
1306         node->local.disregard_inline_limits.
1307         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
1308         inlinable, versionable and disregard_inline_limits.
1309         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
1310         cgraph_check_inline_limits, cgraph_default_inline_p,
1311         cgraph_edge_badness, update_caller_keys, update_callee_keys,
1312         add_new_edges_to_heap): Update.
1313         (cgraph_decide_inlining_of_small_function): Update; set
1314         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
1315         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
1316         cgraph_decide_inlining_incrementally): Update.
1317         * ipa-inline.h (inline_summary): Add inlinable, versionable,
1318         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
1319         time, size and estimated_growth parameters.
1320         (estimate_edge_growth): Update.
1321         (initialize_inline_failed): Declare.
1322         * ipa-split.c: Include ipa-inline.h
1323         (execute_split_functions): Update.
1324         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
1325         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
1326         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
1327         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
1328         estimated_growth to INT_MIN.
1329         (inline_node_duplication_hook): Likewise.
1330         (dump_inline_summary): Dump new fields.
1331         (compute_inline_parameters): Update.
1332         (estimate_edge_time, estimate_time_after_inlining,
1333         estimate_size_after_inlining, estimate_growth, inline_read_summary,
1334         inline_write_summary):
1335         (initialize_inline_failed): Move here from cgraph.c.
1336         * tree-sra.c: Include ipa-inline.h.
1337         (ipa_sra_preliminary_function_checks): Update.
1338         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
1339         ipa-inline.h.
1340
1341 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
1342
1343         * config/i386/sse.md (V16): New mode iterator.
1344         (VI1, VI8): Ditto.
1345         (AVXMODEQI, AVXMODEDI): Remove.
1346         (sse2, sse3): New mode attribute.
1347         (mov<mode>): Use V16 mode iterator.
1348         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
1349         (push<mode>1): Use V16 mode iterator.
1350         (movmisalign<mode>): Ditto.
1351         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1352         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
1353         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1354         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
1355         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
1356         avx_movdqu<avxmodesuffix>.
1357         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
1358         *avx_movdqu<avxmodesuffix>.
1359         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
1360         avx_lddqu<avxmodesuffix>.
1361         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
1362         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
1363         avx_movnt<AVXMODEDI:mode>.
1364         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
1365         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
1366
1367 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
1368
1369         PR target/48629
1370         * haifa-sched.c (prune_ready_list, schedule_block): Use
1371         sched_pressure_p rather than flag_sched_pressure.
1372
1373 2011-04-15  Pat Haugen <pthaugen@us.ibm.com>
1374
1375         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1376         cgraph_get_node instead of cgraph_get_create_node.
1377
1378 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
1379
1380         * cfgexpand.c (expand_debug_expr): Use
1381         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
1382
1383 2011-04-15  Michael Matz  <matz@suse.de>
1384
1385         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
1386         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
1387         * function.c (gimplify_parameters): Ditto.
1388         * gimplify.c (gimplify_vla_decl): Ditto.
1389
1390         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
1391         (gimple_call_set_alloca_for_var): New inline function.
1392         (gimple_call_alloca_for_var_p): Ditto.
1393         * gimple.c (gimple_build_call_from_tree): Remember
1394         CALL_ALLOCA_FOR_VAR_P state.
1395         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
1396
1397         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
1398         calls if they were for VLA objects.
1399
1400 2011-04-15  Martin Jambor  <mjambor@suse.cz>
1401
1402         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
1403         of ADR_EXPRs.
1404
1405 2011-04-15  Martin Jambor  <mjambor@suse.cz>
1406
1407         PR middle-end/48601
1408         * tree-emutls.c (lower_emutls_function_body): Call
1409         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
1410         result is non-NULL.
1411
1412 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
1413
1414         * c-decl.c (detect_field_duplicates): Call
1415         objc_detect_field_duplicates instead of objc_get_interface_ivars.
1416
1417 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
1418
1419         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
1420         * gimple.c (gimple_asm_clobbers_memory_p): Define.
1421         * ipa-pure-const.c (check_stmt): Call it.
1422         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
1423
1424 2011-04-15  Richard Guenther  <rguenther@suse.de>
1425
1426         PR tree-optimization/48290
1427         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
1428         Properly decide inhibiting propagation based on the valueized
1429         operand.  Do loop-closed SSA form preserving here ...
1430         (init_copy_prop): ... not here.
1431
1432 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
1433
1434         PR target/48612
1435         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
1436         (*ieee_smax<mode>3): Likewise.
1437
1438 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1439
1440         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
1441         Replace match_operand with match_dup for the third operand in
1442         these expanders.
1443
1444 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
1445
1446         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
1447         to track processing of conditionals.  Update all callers.
1448         (try_combine, simplify_if_then_else): Update.
1449
1450 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
1451
1452         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
1453         -fsched-pressure.
1454
1455 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
1456
1457         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
1458         instead of match_operand for operand 3.
1459
1460 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
1461
1462         * recog.h (insn_operand_data): Add an "allows_mem" field.
1463         * genoutput.c (output_operand_data): Initialize it.
1464         * optabs.c (maybe_legitimize_operand_same_code): New function.
1465         (maybe_legitimize_operand): Use it when matching the original
1466         op->value.
1467
1468 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
1469
1470         * gimplify.c: Fix issues in comments throughout.
1471         (voidify_wrapper_expr): Fix long line.
1472         (build_stack_save_restore): Likewise.
1473         (gimplify_loop_expr): Likewise.
1474         (gimplify_compound_lval): Likewise.
1475         (gimplify_init_ctor_eval): Likewise.
1476         (gimplify_modify_expr_rhs): Likewise.
1477         (omp_notice_threadprivate_variable): Likewise.
1478
1479 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
1480
1481         * cfgexpand.c (expand_call_stmt): Convert the function type to the
1482         original one if this is not a builtin function.
1483
1484 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
1485
1486         PR target/48605
1487         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
1488         offset it as needed based on top 2 bits in operands[3], change
1489         MEM mode to SFmode and mask those 2 bits away from operands[3].
1490
1491 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
1492
1493         * c-parser.c (c_parser_objc_protocol_definition): Updated for
1494         change from objc_declare_protocols() to objc_declare_protocol().
1495
1496 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
1497
1498         * config/i386/sse.md (sse4_1): New mode attribute.
1499         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
1500         avx_blend<ssemodesuffix><avxmodesuffix> and
1501         sse4_1_blend<ssemodesuffix> using VF mode iterator.
1502         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
1503         avx_blendv<ssemodesuffix><avxmodesuffix> and
1504         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
1505         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
1506         avx_dp<ssemodesuffix><avxmodesuffix> and
1507         sse4_1_dp<ssemodesuffix> using VF mode iterator.
1508         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
1509         (sse4_1_packusdw): Merge with *avx_packusdw.
1510         (sse4_1_pblendvb): Merge with *avx_pblendvb.
1511         (sse4_1_pblendw): Merge with *avx_pblendw.
1512         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
1513         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
1514         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
1515         VF mode iterator.
1516         (sse4_1_round<ssescalarmodesuffix>): Merge with
1517         *avx_round<ssescalarmodesuffix>.
1518         (aesenc): Merge with *avx_aesenc.
1519         (aesenclast): Merge with *avx_aesenclast.
1520         (aesdec): Merge with *avx_aesdec.
1521         (aesdeclast): Merge with *avx_aesdeclast.
1522         (pclmulqdq): Merge with *pclmulqdq.
1523         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
1524         New predicate.
1525         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
1526
1527 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
1528
1529         PR middle-end/48608
1530         * cfgexpand.c (get_decl_align_unit): Renamed to ...
1531         (align_local_variable): This.  Update DECL_ALIGN.
1532         (add_stack_var): Updated.
1533         (expand_one_stack_var): Likewise.
1534
1535 2011-04-14  Richard Guenther  <rguenther@suse.de>
1536
1537         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
1538         Remove.
1539         (dse_initialize_block_local_data, dse_leave_block,
1540         record_voperand_set, get_stmt_uid): Likewise.
1541         (dse_possible_dead_store_p): Allow any kind of killing stmt.
1542         (dse_optimize_stmt): Remove voperand set handling code.
1543         Simplify and improve to handle any kind of killing stmt.
1544         (dse_record_phi): Remove.
1545         (dse_enter_block): Simplify.
1546         (tree_ssa_dse): Likewise.
1547         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
1548
1549 2011-04-14  Jan Hubicka  <jh@suse.cz>
1550
1551         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
1552         * cgraph.h (struct inline_summary): Move to ipa-inline.h
1553         (cgraph_local_info): Remove inline_summary.
1554         * ipa-cp.c: Include ipa-inline.h.
1555         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
1556         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
1557         accesor.
1558         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
1559         (input_overwrite_node): Do not set inline summary.
1560         (input_node): Do not stream inline summary.
1561         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
1562         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
1563         growth; we do not have inline parameters computed for that anyway.
1564         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
1565         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
1566         (inline_summary_t): New type and VECtor.
1567         (debug_inline_summary, dump_inline_summaries): Declare.
1568         (inline_summary): Use VOCtor.
1569         (estimate_edge_growth): Kill hack computing call stmt size directly.
1570         * lto-section-in.c (lto_section_name): Add inline section.
1571         * ipa-inline-analysis.c: Include lto-streamer.h
1572         (node_removal_hook_holder, node_duplication_hook_holder): New holders
1573         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
1574         (inline_summary_vec): Define.
1575         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
1576         dump_inline_summaries): New functions.
1577         (estimate_function_body_sizes): Properly compute size/time of outgoing
1578         calls.
1579         (compute_inline_parameters): Alloc inline_summary; do not compute
1580         size/time of incomming calls.
1581         (estimate_edge_time): Avoid missing time summary hack.
1582         (inline_read_summary): Read inline summary info.
1583         (inline_write_summary): Write inline summary info.
1584         (inline_free_summary): Free all hooks and inline summary vector.
1585         * lto-streamer.h: Add LTO_section_inline_summary section.
1586         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
1587         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
1588
1589 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1590
1591         * tree-vectorizer.h (vect_strided_store_supported): Add a
1592         HOST_WIDE_INT argument.
1593         (vect_strided_load_supported): Likewise.
1594         (vect_permute_store_chain): Return void.
1595         (vect_transform_strided_load): Likewise.
1596         (vect_permute_load_chain): Delete.
1597         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
1598         count argument.  Check that the count is a power of two.
1599         (vect_strided_load_supported): Likewise.
1600         (vect_permute_store_chain): Return void.  Update after above changes.
1601         Assert that the access is supported.
1602         (vect_permute_load_chain): Likewise.
1603         (vect_transform_strided_load): Return void.
1604         * tree-vect-stmts.c (vectorizable_store): Update calls after
1605         above interface changes.
1606         (vectorizable_load): Likewise.
1607         (vect_analyze_stmt): Don't check for strided powers of two here.
1608
1609 2011-04-14  Richard Guenther  <rguenther@suse.de>
1610
1611         PR tree-optimization/48590
1612         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
1613         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1614         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
1615         BUILT_IN_STACK_SAVE.
1616         * tree-ssa-dce.c (propagate_necessity): Handle
1617         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1618
1619 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
1620
1621         * c-parser.c (c_parser_objc_class_declaration): Updated call to
1622         objc_declare_class.
1623
1624 2011-04-14  Richard Guenther  <rguenther@suse.de>
1625
1626         * tree.h (get_object_alignment_1): Declare.
1627         * builtins.c (get_object_alignment_1): Split out worker from ...
1628         (get_object_alignment): ... here.
1629         * fold-const.c (get_pointer_modulus_and_residue): Use
1630         get_object_alignment_1.
1631
1632 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1633
1634         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
1635         type parameter.
1636         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
1637         parameter.  Generalise code to handle arrays as well as vectors.
1638         (vect_setup_realignment): Update accordingly.
1639         * tree-vect-stmts.c (vectorizable_store): Likewise.
1640         (vectorizable_load): Likewise.
1641
1642 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1643
1644         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
1645         within the per-copy loop.
1646
1647 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1648
1649         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
1650         in the dump file.
1651
1652 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1653
1654         * doc/options.texi (Negative): Explicitly mention that the
1655         Negative chain must be circular.
1656
1657 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
1658
1659         * function.h (block_chainon): Declare.
1660         * function.c (block_chainon): Define.
1661
1662 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
1663             Eric Weddington  <eric.weddington@atmel.com>
1664             Georg-Johann Lay <avr@gjlay.de>
1665
1666         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
1667         New Includes
1668         (avr_init_builtins, avr_expand_builtin,
1669         avr_expand_delay_cycles, avr_expand_unop_builtin,
1670         avr_expand_binop_builtin ): New functions.
1671         (avr_builtin_id): New enum
1672         (struct avr_builtin_description): New struct
1673         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
1674         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
1675
1676         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
1677         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
1678         UNSPECV_DELAY_CYCLES): new enumeration values
1679         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
1680         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
1681         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
1682         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
1683         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
1684         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
1685         "fmulsu"): New insns
1686
1687         * config/avr/avr-c.c: fix line endings
1688         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
1689         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
1690         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
1691         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
1692         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
1693
1694         * doc/extend.texi (AVR Built-in Functions): New node
1695         (Target Builtins): Add documentation of AVR
1696         built-in functions.
1697
1698 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
1699
1700         PR target/44643
1701         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
1702         alone. Error if non-const data has attribute progmem.
1703
1704 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1705
1706         * tree.h (struct tree_constructor): Include tree_typed instead of
1707         tree_common.
1708         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
1709         TS_TYPED instead of TS_COMMON.
1710
1711 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
1712
1713         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
1714         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
1715         (sse2_psadbw): Merge with *avx_psadbw.
1716         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
1717         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
1718         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
1719         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
1720         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
1721         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
1722         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
1723         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
1724         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
1725         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
1726         (ssse3_palignrti): Merge with *avx_palignrti.
1727
1728 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1729
1730         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
1731         * tree-ssanames.c (fini_ssanames): VEC_free it.
1732         (make_ssa_name_fn): Update for VECness of free_ssanames.
1733         (release_ssa_name, release_dead_ssa_names): Likewise.
1734         * tree.h (struct tree_ssa_name): Include tree_typed instead of
1735         tree_common.
1736         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
1737         TS_TYPED instead of TS_COMMON.
1738
1739 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1740
1741         * postreload-gcse.c (gcse_after_reload_main): Add calls to
1742         statistics_counter_event.
1743         * tree-ssa-copyrename.c (stats): Define.
1744         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
1745         statistics_counter_event.
1746         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
1747         (bswap_stats, widen_mul_stats): Define.
1748         (insert_reciprocals): Increment rdivs_inserted.
1749         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
1750         rfuncs_inserted.  Add calls to statistics_counter_event.
1751         (execute_cse_sincos_1): Increment inserted.
1752         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
1753         statistics_counter_event.
1754         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
1755         of bswap_stats.  Add calls to statistics_counter_event.
1756         (convert_mult_to_widen): Increment widen_mults_inserted.
1757         (convert_plusminus_to_widen): Increment maccs_inserted.
1758         (convert_mult_to_fma): Increment fmas_inserted.
1759         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
1760         calls to statistics_counter_event.
1761
1762 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
1763
1764         PR rtl-optimization/48455
1765         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
1766         `temp_costs->mem_cost'.
1767
1768 2011-04-13  Jan Hubicka  <jh@suse.cz>
1769
1770         * ipa-inline.h: New file.
1771         * ipa-inline-analysis.c: New file. Broken out of ...
1772         * ipa-inline.c: ... this file; update toplevel comment;
1773         include ipa-inline.h
1774         (inline_summary): Move to ipa-inline.h
1775         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
1776         ipa-inline-analysis.c.
1777         (cgraph_estimate_time_after_inlining): Rename to
1778         estiamte_time_after_inlining; move to ipa-inline-analysis.c
1779         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
1780         to estimate_edge_growth.
1781         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
1782         rename to estimate_size_after_inlining.
1783         (cgraph_mark_inline_edge): Update for new naming convention.
1784         (cgraph_check_inline_limits): Likewise.
1785         (cgraph_edge_badness): Likewise.
1786         (cgraph_decide_recursive_inlining): Likewise.
1787         (cgraph_decide_inlining_of_small_functions): Likewise.
1788         (cgraph_decide_inlining_incrementally): Likewise.
1789         (cgraph_estimate_growth): Rename to estimate_growth; move to
1790         ipa-inline-analysis.c.
1791         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
1792         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
1793         (compute_inline_parameters): Likewise.
1794         (compute_inline_parameters_for_current): Likewise.
1795         (pass_inline_parameters): Likewise.
1796         (inline_indirect_intraprocedural_analysis): Likewise.
1797         (analyze_function): Rename to inline_analyze_function; likewise.
1798         (add_new_function): Move to ipa-inline-analysis.c.
1799         (inline_generate_summary): Likewise.
1800         (inline_read_summary): Likewise.
1801         (inline_write_summary): Likewise.
1802         * Makefile.in (ipa-inline-analysis.c): New file.
1803
1804 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1805
1806         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
1807         * configure: Regenerate.
1808
1809 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1810
1811         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
1812         instead of tree_common.
1813         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
1814         Likewise.
1815         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
1816         TS_TYPED rather than TS_COMMON.
1817         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
1818
1819 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
1820
1821         PR target/45263
1822         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
1823         r20 around calls of __tablejump_elpm__
1824
1825 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
1826
1827         PR middle-end/48591
1828         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
1829         NULL.
1830         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
1831
1832 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
1833
1834         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
1835         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
1836         (cfi_vec): New typedef.
1837         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
1838         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
1839         (cie_cfi_vec): New static variable.
1840         (cie_cfi_head): Delete.
1841         (add_cfi): Accept a cfi_vec * as first argument. All callers and
1842         declaration changed. Use vector rather than list operations.
1843         (new_cfi): Don't initialize the dw_cfi_next field.
1844         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
1845         rather than list operations.
1846         (lookup_cfa): Use vector rather than list operations.
1847         (output_cfis): New argument upto. Accept a cfi_vec rather than
1848         a dw_cfi_ref list head as argument. All callers changed.
1849         Iterate over the vector using upto as a maximum index.
1850         (output_all_cfis): New static function.
1851         (output_fde): Use vector rather than list operations. Use the
1852         new upto argument for output_cfis rather than manipulating a
1853         list.
1854         (dwarf2out_begin_prologue): Change initializations to match
1855         new struct members.
1856         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
1857         from the vector length rather than searching for the end of a list.
1858         Use output_all_cfis.
1859         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
1860
1861 2011-04-13  Nick Clifton  <nickc@redhat.com>
1862
1863         * config/rx/rx.md (movmemsi): Do not use this pattern when
1864         volatile pointers are involved.
1865
1866 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
1867
1868         * config/i386/sse.md (pinsrbits): Remove.
1869         (sse2_packsswb): Merge with *avx_packsswb.
1870         (sse2_packssdw): Merge with *avx_packssdw.
1871         (sse2_packuswb): Merge with *avx_packuswb.
1872         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
1873         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
1874         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
1875         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
1876         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
1877         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
1878         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
1879         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
1880         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
1881         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
1882         (sse2_loadld): Merge with *avx_loadld.
1883         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
1884         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
1885         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
1886         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
1887         (vec_concatv2di): Merge with *vec_concatv2di_avx.
1888
1889 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
1890
1891         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
1892         calling TREE_CHAIN.
1893         * print-tree.c (print_node): Likewise.
1894         * tree-inline.c (copy_tree_r): Likewise.
1895         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
1896         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
1897         instead of TS_COMMON.
1898         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
1899         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
1900         (copy_node_stat): Zero TREE_CHAIN only if necessary.
1901         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
1902         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
1903         ...and these...
1904         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
1905         * tree.h: ...here.
1906         (TREE_CHAIN): Check for a TS_COMMON structure.
1907         (TREE_TYPE): Check for a TS_TYPED structure.
1908
1909 2011-04-12  Pat Haugen <pthaugen@us.ibm.com>
1910
1911         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1912         cgraph_get_create_node instead of cgraph_node.
1913
1914 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1915
1916         * c-parser.c (c_parser_initelt): Updated call to
1917         objc_build_message_expr.
1918         (c_parser_postfix_expression): Likewise.
1919
1920 2011-04-12  Kai Tietz  <ktietz@redhat.com>
1921
1922         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
1923         MASK_MS_BITFIELD_LAYOUT bit.
1924
1925 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
1926
1927         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
1928         assert it is always true.
1929         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
1930         moves.
1931
1932 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1933
1934         * c-parser.c (c_lex_one_token): Rewritten conditional used when
1935         compiling Objective-C to be more efficient.
1936
1937 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
1938
1939         * opts-common.c (decode_cmdline_options_to_array): Remove variable
1940         argv_copied.
1941
1942 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1943
1944         * recog.h, genoutput.c, optabs.c: Revert last patch.
1945
1946 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1947
1948         PR target/48090
1949         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
1950
1951 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1952
1953         * recog.h (insn_operand_data): Add an "allows_mem" field.
1954         * genoutput.c (output_operand_data): Initialize it.
1955         * optabs.c (maybe_legitimize_operand_same_code): New function.
1956         (maybe_legitimize_operand): Use it when matching the original
1957         op->value.
1958
1959 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1960
1961         * genpreds.c (process_define_predicate): Move most processing
1962         to gensupport.c.  Continue to validate the expression.
1963         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
1964         (process_define_predicate): Move processing to gensupport.c.
1965         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
1966         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
1967         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
1968         argument.
1969         (valid_predicate_name_p): New function, split out from old
1970         genpreds.c:process_define_predicate.
1971         (process_define_predicate): New function, combining code from
1972         old genpreds.c and genrecog.c functions.
1973         (process_rtx): Call it for DEFINE_PREDICATE and
1974         DEFINE_SPECIAL_PREDICATE.
1975
1976 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1977
1978         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
1979         size of a '%A' memory reference.
1980         (T_DREG, T_QREG): New neon_builtin_type_bits.
1981         (arm_init_neon_builtins): Assert that the load and store operands
1982         are neon_struct_operands.
1983         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
1984         (NEON_ARG_MEMORY): New builtin_arg.
1985         (neon_dereference_pointer): New function.
1986         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
1987         Handle NEON_ARG_MEMORY.
1988         (arm_expand_neon_builtin): Update after above interface changes.
1989         Use NEON_ARG_MEMORY for loads and stores.
1990         * config/arm/predicates.md (neon_struct_operand): New predicate.
1991         * config/arm/iterators.md (V_two_elem): Tweak formatting.
1992         (V_three_elem): Use BLKmode for accesses that have no associated mode.
1993         (V_four_elem): Tweak formatting.
1994         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
1995         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
1996         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
1997         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
1998         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
1999         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
2000         (neon_vst4<mode>): Replace pointer operand with a memory operand.
2001         Use %A in the output template.
2002         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
2003         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
2004         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
2005         the width of the memory access.  Remove post-increment.
2006         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
2007
2008 2011-04-12  Nick Clifton  <nickc@redhat.com>
2009
2010         * config/v850/v850.c (expand_prologue): Do not use the CALLT
2011         instruction for interrupt handlers if the target is the basic V850
2012         architecture.
2013         (expand_epilogue): Likewise.
2014
2015 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
2016
2017         PR rtl-optimization/48549
2018         * combine.c (propagate_for_debug): Also stop after BB_END of
2019         this_basic_block.  Process LAST and just stop processing after it.
2020         (combine_instructions): If last_combined_insn has been deleted,
2021         set last_combined_insn to its PREV_INSN.
2022
2023 2011-04-12  Richard Guenther  <rguenther@suse.de>
2024
2025         PR tree-optimization/46076
2026         * gimple.h (struct gimple_statement_call): Add fntype field.
2027         (gimple_call_fntype): Adjust.
2028         (gimple_call_set_fntype): New function.
2029         * gimple.c (gimple_build_call_1): Set the call function type.
2030         * gimplify.c (gimplify_call_expr): Preserve the function
2031         type the frontend used for the call.
2032         (gimplify_modify_expr): Likewise.
2033         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
2034         function type.
2035         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
2036         function type.
2037         * tree-ssa.c (useless_type_conversion_p): Function pointer
2038         conversions are useless.
2039
2040 2011-04-12  Martin Jambor  <mjambor@suse.cz>
2041
2042         * cgraph.h (cgraph_node): Remove function declaration.
2043         (cgraph_create_node): Declare.
2044         (cgraph_get_create_node): Likewise.
2045         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
2046         Updated all callers.
2047         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
2048         the decl does not already exist.  Call cgraph_get_create_node instead
2049         of cgraph_node.
2050         (cgraph_get_create_node): New function.
2051         (cgraph_same_body_alias): Update comment.
2052         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
2053         assert it does not return NULL.
2054         (cgraph_update_edges_for_call_stmt): Likewise.
2055         (cgraph_clone_edge): Likewise.
2056         (cgraph_create_virtual_clone): Likewise.
2057         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
2058         instead of cgraph_node.
2059         (cgraph_add_new_function): Call cgraph_create_node or
2060         cgraph_get_create_node instead of cgraph_node.
2061         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
2062         instead of cgraph_node.
2063         (record_eh_tables): Likewise.
2064         (mark_address): Likewise.
2065         (mark_load): Likewise.
2066         (build_cgraph_edges): Call cgraph_get_create_node instead
2067         of cgraph_node.
2068         (rebuild_cgraph_edges): Likewise.
2069         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
2070         instead of cgraph_node.
2071         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
2072         cgraph_node.
2073         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
2074         cgraph_create_node instead of cgraph_node.
2075         * c-decl.c (finish_function): Call cgraph_get_create_node instead
2076         of cgraph_node.
2077         * lto-cgraph.c (input_node): Likewise.
2078         * lto-streamer-in.c (input_function): Likewise.
2079         * varasm.c (mark_decl_referenced): Likewise.
2080         (assemble_alias): Likewise.
2081
2082 2011-04-12  Martin Jambor  <mjambor@suse.cz>
2083
2084         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
2085         instead of cgraph_node and assert it does not return NULL.
2086         * lto-streamer-in.c (lto_read_body): Likewise.
2087         * omp-low.c (new_omp_context): Likewise.
2088         (create_task_copyfn): Likewise.
2089         * tree-emutls.c (lower_emutls_function_body): Likewise.
2090         * matrix-reorg.c (transform_allocation_sites): Likewise.
2091
2092 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
2093
2094         PR c/48552
2095         * c-typeck.c (build_asm_expr): Error out on attempts to use
2096         void type outputs or inputs for constraints that allow reg or
2097         don't allow memory.
2098
2099 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
2100             Richard Earnshaw  <rearnsha@arm.com>
2101
2102         PR target/48250
2103         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
2104         to use sign-magnitude offsets. Reject unsupported unaligned
2105         cases. Add detailed description in comments.
2106         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
2107         condition from TARGET_32BIT to TARGET_ARM.
2108
2109 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
2110
2111         * tree.h (struct typed_tree): New.
2112         (struct tree_common): Include it instead of tree_base.
2113         (TREE_TYPE): Update for new location of type field.
2114         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
2115         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
2116         (union tree_node): Add typed field.
2117         * treestruct.def (TS_TYPED): New.
2118         * lto-streamer.c (check_handled_ts_structures): Handle it.
2119         * tree.c (MARK_TS_TYPED): New macro.
2120         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
2121
2122 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
2123
2124         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
2125         (force_nonfallthru): Do not alter the loop nest if no basic block
2126         was created.
2127
2128 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
2129
2130         * config/i386/sse.md (VI): New mode iterator.
2131         (SSEMODEI): Remove.
2132         (AVX256MODEI): Ditto.
2133         (AVXMODEF4P): Ditto.
2134         (avxvecpsmode): Ditto.
2135         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
2136         (sse2_andnot<mode>3): New expander.
2137         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
2138         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
2139         (<any_logic:code><mode>3): Use VI mode iterator.
2140         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
2141         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
2142         (*andnottf3): Handle AVX three-operand constraints.
2143         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
2144
2145 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2146             Robert Millan  <rmh@gnu.org>
2147
2148         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
2149         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
2150         GNU_USER_DYNAMIC_LINKER64): Define.
2151         (REG_NAME): Don't undefine.
2152         (MD_UNWIND_SUPPORT): Undefine.
2153         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
2154         (REG_NAME): Don't undefine.
2155         (MD_UNWIND_SUPPORT): Undefine.
2156         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
2157
2158 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2159
2160         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
2161         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
2162
2163 2011-04-11  Xinliang David Li  <davidxl@google.com>
2164
2165         * value-profile.c (check_ic_target): New function.
2166         (gimple_ic_transform): Sanity check indirect call target.
2167         * gimple-low.c (gimple_check_call_args): Interface change.
2168         (gimple_check_call_matching_types): New function.
2169         * tree-inline.c (tree_can_inline_p): Call new function.
2170
2171 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
2172
2173         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
2174         tree-pretty-print.h & realmpfr.h.
2175
2176 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
2177
2178         PR middle-end/48464
2179         * ira.c (setup_pressure_classes): Fix typo in loop condition.
2180         (setup_allocno_and_important_classes): Ditto.
2181
2182 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2183
2184         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
2185         GNU_USER_DYNAMIC_LINKER.
2186         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
2187         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2188         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
2189         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2190         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2191         GNU_USER_TARGET_OS_CPP_BUILTINS.
2192         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
2193         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2194         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2195         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2196         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
2197         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2198         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2199         GNU_USER_TARGET_OS_CPP_BUILTINS.
2200         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2201         GNU_USER_DYNAMIC_LINKER.
2202         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2203         GNU_USER_TARGET_OS_CPP_BUILTINS.
2204         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
2205         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2206         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
2207         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2208         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
2209         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
2210         GNU_USER_DYNAMIC_LINKER64): Remove.
2211         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
2212         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2213         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2214         GNU_USER_DYNAMIC_LINKER.
2215         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2216         GNU_USER_TARGET_OS_CPP_BUILTINS.
2217         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2218         GNU_USER_TARGET_OS_CPP_BUILTINS.
2219         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
2220         to GNU_USER_TARGET_OS_CPP_BUILTINS.
2221         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2222         GNU_USER_TARGET_OS_CPP_BUILTINS.
2223         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
2224         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
2225         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
2226         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
2227         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2228         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2229         GNU_USER_DYNAMIC_LINKER.
2230         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2231         GNU_USER_TARGET_OS_CPP_BUILTINS.
2232         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
2233         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2234         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2235         GNU_USER_DYNAMIC_LINKER.
2236         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2237         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2238         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
2239         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2240         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2241         GNU_USER_DYNAMIC_LINKER.
2242         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
2243         GNU_USER_DYNAMIC_LINKERN32.
2244         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
2245         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
2246         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
2247         GNU_USER_DYNAMIC_LINKER32.
2248         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
2249         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2250         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2251         GNU_USER_DYNAMIC_LINKER.
2252         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2253         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2254         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
2255         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2256         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2257         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
2258         GNU_USER_DYNAMIC_LINKER32.
2259         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
2260         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
2261         GNU_USER_DYNAMIC_LINKER.
2262         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
2263         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2264         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
2265         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
2266         GNU_USER_DYNAMIC_LINKER64.
2267         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
2268         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2269         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2270         GNU_USER_DYNAMIC_LINKER.
2271         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
2272         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2273         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2274         GNU_USER_DYNAMIC_LINKER.
2275         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
2276         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2277         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
2278         GNU_USER_DYNAMIC_LINKER32.
2279         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
2280         GNU_USER_DYNAMIC_LINKER64.
2281         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
2282         GNU_USER_DYNAMIC_LINKER64.
2283         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
2284         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2285         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
2286         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2287         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2288
2289 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2290
2291         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
2292         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
2293         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
2294         GNU_USER_DYNAMIC_LINKER.
2295         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
2296         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
2297         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
2298         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
2299         GNU_USER_DYNAMIC_LINKER64.
2300         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
2301         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
2302         GNU_USER_LINK_EMULATION.
2303         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
2304         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
2305         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
2306         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
2307         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
2308         CPP_SPEC, CC1_SPEC): Remove.
2309         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
2310         (GNU_USER_DYNAMIC_LINKER): Define.
2311         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
2312         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
2313         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
2314         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
2315         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
2316         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
2317         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
2318         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
2319         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
2320         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
2321         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
2322         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
2323         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
2324         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
2325         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
2326         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
2327         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2328         GNU_USER_DYNAMIC_LINKER.
2329         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2330         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
2331         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2332         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
2333         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2334         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
2335         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
2336         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
2337         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
2338         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
2339
2340 2011-04-11  Kai Tietz  <ktietz@redhat.com>
2341
2342         PR target/9601
2343         PR target/11772
2344         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
2345         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
2346         comment.
2347         (ix86_is_msabi_thiscall): Removed.
2348         (ix86_is_type_thiscall): Likewise.
2349         (ix86_get_callcvt): New function.
2350         (ix86_comp_type_attributes): Simplify check.
2351         (ix86_function_regparm): Use ix86_get_callcvt for calling
2352         convention attribute checks.
2353         (ix86_return_pops_args): Likewise.
2354         (ix86_static_chain): Likewise.
2355         (x86_this_parameter): Likewise.
2356         (x86_output_mi_thunk): Likewise.
2357         (ix86_function_type_abi): Optimize check for types without attributes.
2358         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
2359         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
2360         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
2361         by flag-values.
2362         (IX86_BASE_CALLCVT): Helper macro.
2363         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2364         Use ix86_get_callcvt for calling convention attribute checks and avoid
2365         symbol-decoration for stdcall in TARGET_RTD case.
2366         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
2367         Likewise.
2368         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
2369         for declaration.
2370
2371 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
2372
2373         * config/i386/sse.md (VI_128): New mode iterator.
2374         (VI12_128): Rename from SSEMODE12.
2375         (VI14_128): Rename from SSEMODE14.
2376         (VI124_128): New mode iterator.
2377         (VI24_128): Rename from SSEMODE248.
2378         (VI248_128): Rename from SSEMODE248.
2379         (SSEMODE124C8): Remove.
2380         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2381         (*sse2_<plusminus_insn><mode>3): Merge with
2382         *avx_<plusminus_insn><mode>3.
2383         (*mulv8hi3): Merge with *avx_mulv8hi3.
2384         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
2385         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
2386         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
2387         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
2388         (ashr<mode>3): Merge with *avx_ashr<mode>3.
2389         (lshr<mode>3): Merge with *avx_lshr<mode>3.
2390         (ashl<mode>3): Merge with *avx_ashl<mode>3.
2391         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
2392         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
2393         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2394         (*<smaxmin:code>v8hi3): Ditto.
2395         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
2396         (*<smaxmin:code>v16qi3): Ditto.
2397         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
2398         (*sse2_eq<mode>3): Ditto.
2399         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
2400         (*sse2_gt<mode>3): Ditto.
2401         (vcondv2di): Split out of vcond<mode>.
2402         (vconduv2di): Split out of vcondu<mode>.
2403
2404 2011-04-11  Richard Guenther  <rguenther@suse.de>
2405
2406         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
2407         before calling tree_low_cst.
2408
2409 2011-04-11  Richard Guenther  <rguenther@suse.de>
2410
2411         * stor-layout.c (layout_type): Compute all array index size operations
2412         in the original type.
2413         (initialize_sizetypes): Add comment.
2414         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
2415
2416 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2417
2418         * common.opt (Tbss=, Tdata=, Ttext=): New options.
2419
2420 2011-04-11  Martin Jambor  <mjambor@suse.cz>
2421
2422         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
2423         of cgraph_node, handle NULL return value.
2424         (cgraph_global_info): Likewise.
2425         (cgraph_rtl_info): Likewise.
2426         * tree-inline.c (estimate_num_insns): Likewise.
2427         * gimplify.c (unshare_body): Likewise.
2428         (unvisit_body): Likewise.
2429         (gimplify_body): Likewise.
2430         * predict.c (optimize_function_for_size_p): Likewise.
2431         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
2432         (call_may_clobber_ref_p_1): Likewise.
2433         * varasm.c (function_section_1): Likewise.
2434         (assemble_start_function): Likewise.
2435
2436 2011-04-11  Martin Jambor  <mjambor@suse.cz>
2437
2438         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
2439         of cgraph_node.
2440         * final.c (rest_of_clean_state): Likewise.
2441         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
2442         * passes.c (pass_init_dump_file): Likewise.
2443         (execute_all_ipa_transforms): Likewise.
2444         (function_called_by_processed_nodes_p): Likewise.
2445         * predict.c (maybe_hot_frequency_p): Likewise.
2446         (probably_never_executed_bb_p): Likewise.
2447         (compute_function_frequency): Likewise.
2448         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
2449         (unnest_nesting_tree_1): Likewise.
2450         (lower_nested_functions): Likewise.
2451         * tree-optimize.c (execute_fixup_cfg): Likewise.
2452         (tree_rest_of_compilation): Likewise.
2453         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
2454         * tree-sra.c (ipa_early_sra): Likewise.
2455         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
2456         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
2457         * ipa.c (record_cdtor_fn): Likewise.
2458         * ipa-inline.c (cgraph_early_inlining): Likewise.
2459         (compute_inline_parameters_for_current): Likewise.
2460         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
2461         * ipa-pure-const.c (local_pure_const): Likewise.
2462         * ipa-split.c (split_function): Likewise.
2463         (execute_split_functions): Likewise.
2464         * cgraphbuild.c (build_cgraph_edges): Likewise.
2465         (rebuild_cgraph_edges): Likewise.
2466         (cgraph_rebuild_references): Likewise.
2467         (remove_cgraph_callee_edges): Likewise.
2468         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
2469         (verify_cgraph_node): Likewise.
2470         (cgraph_analyze_functions): Likewise.
2471         (cgraph_preserve_function_body_p): Likewise.
2472         (save_inline_function_body): Likewise.
2473         (save_inline_function_body): Likewise.
2474         * tree-inline.c (copy_bb): Likewise.
2475         (optimize_inline_calls): Likewise.
2476
2477 2011-04-11  Martin Jambor  <mjambor@suse.cz>
2478
2479         PR tree-optimization/48195
2480         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
2481         ipa_check_create_edge_args.
2482         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
2483         ipa_check_create_edge_args.
2484         * ipa-inline.c (inline_generate_summary): Do not call
2485         ipa_check_create_node_params and ipa_check_create_edge_args.
2486         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
2487         ipa_check_create_edge_args.
2488
2489 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
2490
2491         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
2492         instead of loop.
2493         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2494         * function.c (record_hard_reg_sets): Likewise.
2495         * ira.c (compute_regs_asm_clobbered): Likewise.
2496         * sched-deps.c (sched_analyze_1): Likewise.
2497         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
2498
2499 2011-04-09  Xinliang David Li  <davidxl@google.com>
2500
2501         PR tree-optimization/PR48484
2502         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
2503         has_valid_pred lazily
2504
2505 2011-04-09  Duncan Sands  <baldrick@free.fr>
2506
2507         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
2508
2509 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
2510
2511         * combine.c (combine_validate_cost): Adjust comments.  Set registered
2512         cost of I0 to zero at the end, if any.
2513
2514 2011-04-08  Xinliang David Li  <davidxl@google.com>
2515
2516         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
2517         to insane profile data.
2518
2519 2011-04-08  Xinliang David Li  <davidxl@google.com>
2520
2521         * ipa-cp.c (ipcp_update_profiling): Correct
2522          negative scale factor due to insane profile data.
2523
2524 2011-04-08  Xinliang David Li  <davidxl@google.com>
2525
2526         * final.c (dump_basic_block_info): New function.
2527         (final): Dump basic block.
2528         (final_scan_insn): Remove old dump.
2529
2530 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
2531
2532         PR target/47829
2533         * config.gcc (i386-*-freebsd): Disable unwind table generation for
2534         crtbegin/crtend.
2535
2536 2011-04-08  Michael Matz  <matz@suse.de>
2537
2538         PR middle-end/48389
2539         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
2540         functions.
2541         (rebuild_jump_labels): Call rebuild_jump_labels_1.
2542         * rtl.h (rebuild_jump_labels_chain): Declare.
2543         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
2544         insns inserted on edges.
2545
2546 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
2547
2548         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
2549         * config/arm/arm-arches.def: New.
2550         * config/arm/arm-opts.h: New.
2551         * config/arm/genopt.sh: New.
2552         * config/arm/arm-tables.opt: New (generated).
2553         * config/arm/arm.c (arm_handle_option, arm_target_help,
2554         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
2555         (all_architectures): Get most table contents from arm-arches.def.
2556         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
2557         arm_selected_tune here.
2558         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
2559         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
2560         (march=, mcpu=, mtune=): Use Enum and Var.
2561         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
2562         (arm.o): Update dependencies.
2563
2564 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
2565
2566         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
2567         of header_file.
2568         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
2569         (write_typed_alloc_defns): Likewise.
2570         (main): Calls write_typed_alloc_defns with output_header.
2571
2572 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
2573
2574         PR inline-asm/48435
2575         * ira-color.c (setup_profitable_hard_regs): Add comments.
2576         Don't take prohibited hard regs into account.
2577         (setup_conflict_profitable_regs): Rename to
2578         get_conflict_profitable_regs.
2579         (check_hard_reg_p): Check prohibited hard regs.
2580
2581 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
2582
2583         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
2584         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
2585         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
2586
2587 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2588
2589         PR target/48366
2590         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
2591         move from floating point to shift amount register.
2592         (emit_move_sequence): Remove secondary reload support for floating
2593         point to shift amount amount register copies.
2594         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
2595         amount register copies.
2596         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
2597         register, return false if mode isn't a scalar integer mode.
2598         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
2599
2600 2011-04-08  Richard Guenther  <rguenther@suse.de>
2601
2602         * gimple.c (gimple_call_flags): Remove kludge.
2603
2604 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2605
2606         * sel-sched.c (sel_region_init): Move call to
2607         sel_setup_region_sched_flags after setup_current_loop_nest.
2608
2609 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
2610
2611         PR rtl-optimization/48272
2612         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
2613         init_insn_reg_pressure_info.  Adjust a caller.
2614         * sched-int.h (init_insn_reg_pressure_info): Declare.
2615         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
2616         when sched-pressure is enabled.
2617
2618 2011-04-08  Richard Guenther  <rguenther@suse.de>
2619
2620         * gimple.c (gimple_set_modified): Do not queue calls to
2621         MODIFIED_NORETURN_CALLS here ...
2622         * tree-ssa-operands.c (update_stmt_operands): ... but here.
2623
2624 2011-04-08  Richard Guenther  <rguenther@suse.de>
2625
2626         PR lto/48467
2627         * toplev.c (lang_dependent_init): Do not open asm_out_file
2628         in WPA mode, nor perform debug machinery initialization.
2629         (finalize): Do not unlink asm_out_file in WPA mode.
2630
2631 2011-04-08  Richard Guenther  <rguenther@suse.de>
2632
2633         * gimple.h (gimple_call_fntype): New function.
2634         (gimple_call_return_type): Use it.
2635         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
2636         * gimple-low.c (gimple_check_call_args): Likewise.
2637         * gimple.c (gimple_call_flags): Likewise.
2638         (gimple_call_arg_flags): Likewise.
2639         (gimple_call_return_flags): Likewise.
2640         * tree-cfg.c (verify_gimple_call): Likewise.
2641         (do_warn_unused_result): Likewise.
2642         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
2643         * value-prof.c (gimple_ic_transform): Fix fndecl check.
2644
2645 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
2646
2647         PR rtl-optimization/48235
2648         * sel-sched.c (code_motion_process_successors): Recompute the last
2649         insn in basic block if control flow changed.
2650         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
2651         Update condition for ilist_remove.
2652
2653 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2654
2655         PR rtl-optimization/48302
2656         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
2657         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
2658         it to record added preheader blocks.
2659         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
2660         on to sel_add_loop_preheaders.
2661         (sel_region_init): Move call to setup_current_loop_nest after
2662         sel_init_bbs.
2663
2664 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2665
2666         PR target/48273
2667         * cfgloop.h (loop_has_exit_edges): New helper.
2668         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
2669         non-clonable.
2670         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
2671         that have no exit edges.
2672
2673 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2674
2675         PR rtl-optimization/48442
2676         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
2677         all callers.  Adjust assert.
2678
2679 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
2680
2681         PR tree-optimization/48377
2682         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
2683         is_packed to true even for types with smaller TYPE_ALIGN than
2684         TYPE_SIZE.
2685
2686 2011-04-08  Richard Guenther  <rguenther@suse.de>
2687
2688         PR bootstrap/48513
2689         * doc/tm.texi: Re-generate.
2690
2691 2011-04-08  Wei Guozhi  <carrot@google.com>
2692
2693         PR target/47855
2694         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
2695         * config/arm/arm.c (arm_attr_length_push_multi): New function.
2696         * config/arm/arm.md (*push_multi): Change the length computation to
2697         call a C function.
2698
2699 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
2700
2701         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
2702         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
2703         * doc/tm.texi: Regenerate.
2704         * system.h (ASM_OUTPUT_BSS): Poison.
2705         * varasm.c (asm_output_bss): Remove function.
2706         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
2707
2708         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
2709         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
2710         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
2711         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2712         Likewise.
2713         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2714         Likewise.
2715         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2716         Likewise.
2717         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2718
2719 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
2720
2721         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
2722         EnumValue lines.
2723
2724 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
2725
2726         * config/m68k/m68k.c (m68k_handle_option): Don't handle
2727         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
2728         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
2729         OPT_mcpu32.
2730         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2731         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
2732         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
2733         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
2734         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
2735         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
2736         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2737         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
2738         options.  Don't map other m68k options manually.  Don't handle
2739         old-style options as canonical.
2740         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2741         * doc/install.texi (m68k-*-*): Document binutils version requirement.
2742
2743 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
2744
2745         * basic-block.h (force_nonfallthru): Move to...
2746         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
2747         (force_nonfallthru): ...here.
2748         * cfghooks.c (force_nonfallthru): New function.
2749         * cfgrtl.c (force_nonfallthru): Rename into...
2750         (rtl_force_nonfallthru): ...this.
2751         (commit_one_edge_insertion): Do not set AUX field.
2752         (commit_edge_insertions): Do not discover new basic blocks.
2753         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
2754         (cfg_layout_rtl_cfg_hooks): Likewise.
2755         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
2756         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
2757         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
2758
2759 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
2760
2761         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
2762         Remove macros.
2763
2764 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
2765
2766         * config/i386/sse.md: Update copyright year.
2767         (avxcvtvecmode): Remove.
2768         (sse_movhlps): Merge with *avx_movhlps.
2769         (sse_movlhps): Merge with *avx_movlhps.
2770         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
2771         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
2772         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
2773         (sse_loadhps): Merge with *avx_loadhps.
2774         (sse_storelps): Merge with *avx_storelps.
2775         (sse_loadlps): Merge with *avx_loadlps.
2776         (sse_movss): Merge with *avx_movss.
2777         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
2778         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
2779         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
2780         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
2781         (vec_set<mode>_0): Ditto.
2782         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
2783         (sse4_1_insertps): Merge with *avx_insertps.
2784         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
2785         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
2786         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
2787         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
2788         (sse2_storehpd): Merge with *avx_storehpd.
2789         (sse2_loadhpd): Merge with *avx_loadhpd.
2790         (sse2_loadlpd): Merge with *avx_loadlpd.
2791         (sse2_movsd): Merge with *avx_movsd.
2792         (*vec_concatv2df): Merge with *vec_concatv2df.
2793
2794 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
2795
2796         PR debug/48343
2797         * combine.c (combine_instructions): Add last_combined_insn,
2798         update it if insn is after it, pass it to all try_combine calls.
2799         (try_combine): Add last_combined_insn parameter, pass it instead of
2800         i3 to propagate_for_debug.
2801
2802 2011-04-07  Nick Clifton  <nickc@redhat.com>
2803
2804         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
2805         to handle MDR <-> data register transfers.
2806         (movhi_internal): Likewise.
2807
2808 2011-04-07  Alan Modra  <amodra@gmail.com>
2809
2810         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
2811         previous stack info.
2812
2813 2011-04-07  Tom de Vries  <tom@codesourcery.com>
2814
2815         PR target/43920
2816         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
2817         flow_find_cross_jump.  Swap variables to implement backward replacement.
2818         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
2819
2820 2011-04-07  Tom de Vries  <tom@codesourcery.com>
2821
2822         PR target/43920
2823         * cfgcleanup.c (walk_to_nondebug_insn): New function.
2824         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
2825         and bb2.
2826         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
2827         src1 or src2.  Redirect edges to the last basic block.  Update
2828         frequency and count on multiple basic blocks in case of fallthru.
2829
2830 2011-04-07  Tom de Vries  <tom@codesourcery.com>
2831
2832         PR target/43920
2833         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
2834         function.
2835         (old_insns_match_p): Change return type.  Replace return false/true
2836         with return dir_none/dir_both.  Use can_replace_by.
2837         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
2838         direction from dir_p.  Register replacement direction in dir, last_dir
2839         and afterlast_dir.  Handle new return type of old_insns_match_p using
2840         merge_dir.  Return replacement direction in dir_p.
2841         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
2842         return type of old_insns_match_p.
2843         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
2844         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
2845         flow_find_cross_jump.
2846         * basic-block.h (enum replace_direction): New type.
2847         (flow_find_cross_jump): Add parameter to declaration.
2848
2849 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
2850
2851         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
2852         (AVXMODEDCVTPS2DQ): Ditto.
2853         (VEC_FLOAT_MODE): Ditto.
2854         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
2855         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2856         (<any_logic:code><mode>3): Use VF mode iterator.
2857         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
2858         Use VF mode iterator.
2859         (copysign<mode>3): Use VF mode iterator.
2860         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
2861         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2862         (*<any_logic:code><MODEF:mode>3): Merge with
2863         *avx_<any_logic:code><MODEF:mode>3.
2864         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
2865         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
2866         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
2867         (avx_cvtdq2ps<avxmodesuffix>): Remove.
2868         (sse2_cvtdq2ps): Use %v modifier.
2869         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
2870         (avx_cvtps2dq<avxmodesuffix>): Remove.
2871         (sse2_cvtps2dq): Use %v modifier.
2872         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
2873         (avx_cvttps2dq<avxmodesuffix>): Remove.
2874         (sse2_cvttps2dq): Use %v modifier.
2875         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
2876         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
2877         (sse2_cvtsd2siq): Fix insn template.
2878         (sse2_cvtsd2siq_2): Ditto.
2879         (sse2_cvttsd2siq): Ditto.
2880         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
2881         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
2882
2883 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
2884
2885         * gcov-io.c: Use GCC Runtime Library Exception.
2886
2887 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
2888
2889         PR debug/48466
2890         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
2891         as base_reg whatever register reg has been eliminated to, instead
2892         of hardcoding STACK_POINTER_REGNUM.
2893
2894 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
2895
2896         * doc/tm.texi.in: Document C target hooks as separate from general
2897         target hooks.
2898         * doc/tm.texi: Regenerate.
2899         * genhooks.c (struct hook_desc): Add docname field.
2900         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
2901         docname field.
2902         (hook_array): Include c-target.def.
2903         (emit_documentation): Use docname field in output.
2904         (emit_init_macros): Take docname argument.  Only emit definitions
2905         for hooks matching docname.
2906         (main): Expect additional arguments in all cases.  Pass argument
2907         to emit_init_macros.
2908         * target.def: Move initial macro definitions and comments to
2909         target-hooks-macros.h.
2910         (gcc_targetcm): Move to c-family/c-target.def.
2911         * target.h (targetcm): Move declaration to c-family/c-target.h.
2912         * targhooks.c (default_handle_c_option): Move to
2913         c-family/c-opts.c.
2914         * targhooks.h (default_handle_c_option): Move declaration to
2915         c-family/c-common.h.
2916         * target-hooks-macros.h: New file.
2917         * config.gcc (target_has_targetcm): Define and use to add to
2918         c_target_objs and cxx_target_objs.
2919         * config/default-c.c: New file.
2920         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
2921         of target.h and target-def.h.
2922         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
2923         (darwin_objc_construct_string, darwin_cfstring_ref_p,
2924         darwin_check_cfstring_format_arg): Make static.
2925         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2926         TARGET_STRING_OBJECT_REF_TYPE_P,
2927         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
2928         * config/darwin-protos.h (darwin_objc_construct_string,
2929         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
2930         declare.
2931         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2932         TARGET_STRING_OBJECT_REF_TYPE_P,
2933         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
2934         * config/t-darwin (darwin-c.o): Update dependencies.
2935         * system.h (TARGET_HAS_TARGETCM): Poison.
2936         * Makefile.in (TARGET_H): Update.
2937         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
2938         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
2939         (default-c.o): New target.
2940         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
2941         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
2942         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
2943         c-target.def.
2944         (build/genhooks.o): Update dependencies.
2945
2946 2011-04-06  Richard Guenther  <rguenther@suse.de>
2947
2948         * ipa-inline.c (enum inlining_mode): Remove.
2949         (cgraph_flatten): Use some other token.
2950         (cgraph_edge_early_inlinable_p): New function, split out from ...
2951         (cgraph_perform_always_inlining): New function, split out from ...
2952         (cgraph_decide_inlining_incrementally): ... here.
2953         (cgraph_mark_inline_edge): Adjust.
2954         (cgraph_early_inlining): Re-structure.
2955         (pass_early_inline): Require SSA form.
2956
2957 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
2958             Julian Brown  <julian@codesourcery.com>
2959             Mark Shinwell  <shinwell@codesourcery.com>
2960
2961         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
2962         LO_REGS only for Thumb-1.
2963         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
2964         be used in short instructions when optimising for size on Thumb-2.
2965
2966 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
2967
2968         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
2969         associated with user returns to be preserved.
2970
2971 2011-04-06  Tristan Gingold  <gingold@adacore.com>
2972
2973         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
2974         symbol_queue_size, DBXOUT_DECR_NESTING,
2975         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
2976         if XCOFF_DEBUGGING_INFO.
2977
2978 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
2979
2980         * config/i386/i386.md (attribute isa): New.
2981         (attribute enabled): New.
2982         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
2983         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
2984         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
2985         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
2986         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
2987         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2988         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
2989         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
2990
2991         * config/i386/sse.md (VF): New mode iterator.
2992         (VF1): Ditto.
2993         (VF2): Ditto.
2994         (VF_128): Ditto.
2995         (SSEMODEF4): Remove.
2996         (attribute sse): Handle V8SF and V4DF modes.
2997         (<absneg:code><mode>2): Use VF mode iterator.
2998         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
2999         mode iterator.
3000         (<plusminus_insn><mode>3): Use VF mode iterator.
3001         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
3002         Use VF mode iterator.
3003         (<sse>_vm<plusminus_insn><mode>3): Merge with
3004         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
3005         (mul<mode>3): Use VF mode iterator.
3006         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
3007         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
3008         mode iterator.
3009         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
3010         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
3011         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
3012         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
3013         mode iterator.
3014         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
3015         Use VF1 mode iterator.
3016         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
3017         (sqrt<VF2:mode>2): New expander.
3018         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
3019         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
3020         and sqrtv2df2.  Use VF mode iterator.
3021         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
3022         mode iterator.
3023         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
3024         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
3025         Use VF1 mode iterator.
3026         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
3027         (<smaxmin:code><mode>3): Use VF mode iterator.
3028         (*<smaxmin:code><mode>3_finite): Merge with
3029         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
3030         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
3031         (<sse>_vm<smaxmin:code><mode>2): Merge with
3032         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
3033         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
3034         mode iterator.
3035         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
3036         mode iterator.
3037         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
3038         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
3039         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
3040         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
3041         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
3042         VF mode iterator.
3043         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
3044         Use VF_128 mode iterator.
3045         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
3046         mode iterator.
3047         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
3048         VF_128 mode iterator.
3049         (vcond<mode>): Use VF mode iterator.
3050         * config/i386/predicates.md (sse_comparison_operator): Merge with
3051         avx_comparison_float_operator.  Do not declare as special_predicate.
3052         * config/i386/i386.c (struct builtin_description): Update for renamed
3053         compare patterns.
3054         (ix86_expand_args_builtin): Ditto.
3055         (ix86_expand_sse_compare_mask): Ditto.
3056
3057 2011-04-06  Richard Guenther  <rguenther@suse.de>
3058
3059         * tree-inline.c (estimate_num_insns): For calls simply account
3060         for all passed arguments and a used return value.
3061
3062 2011-04-06  Richard Guenther  <rguenther@suse.de>
3063
3064         PR tree-optimization/47663
3065         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
3066         call_stmt_time fields.
3067         (cgraph_edge_inlinable_p): Declare.
3068         (cgraph_edge_recursive_p): New inline function.
3069         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
3070         (cgraph_clone_edge): Copy it.
3071         * ipa-inline.c (cgraph_estimate_edge_time): New function.
3072         Account for call stmt time.
3073         (cgraph_estimate_time_after_inlining): Take edge argument.
3074         (cgraph_estimate_edge_growth): Account call stmt size.
3075         (cgraph_estimate_size_after_inlining): Take edge argument.
3076         (cgraph_mark_inline_edge): Adjust.
3077         (cgraph_check_inline_limits): Likewise.
3078         (cgraph_recursive_inlining_p): Remove.
3079         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
3080         (cgraph_decide_recursive_inlining): Take edge argument and
3081         adjust.
3082         (cgraph_decide_inlining_of_small_functions): Do not avoid
3083         diags for recursive inlining here.
3084         (cgraph_flatten): Adjust.
3085         (cgraph_decide_inlining_incrementally): Likewise.
3086         (estimate_function_body_sizes): Remove call cost handling.
3087         (compute_inline_parameters): Initialize caller edge call costs.
3088         (cgraph_estimate_edge_growth): New function.
3089         (cgraph_estimate_growth): Use it.
3090         (cgraph_edge_badness): Likewise.
3091         (cgraph_check_inline_limits): Take an edge argument.
3092         (cgraph_decide_inlining_of_small_functions): Adjust.
3093         (cgraph_decide_inlining): Likewise.
3094         * tree-inline.c (estimate_num_insns): Only account for call
3095         return value if it is used.
3096         (expand_call_inline): Avoid diagnostics on recursive inline
3097         functions here.
3098         * lto-cgraph.c (lto_output_edge): Output edge call costs.
3099         (input_edge): Input edge call costs.
3100
3101 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3102
3103         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
3104
3105 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
3106
3107         * doc/invoke.texi (Spec Files): Fix typo.
3108
3109 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
3110
3111         * profile.c (branch_prob): Move declaration of local variable.  Remove
3112         obsolete ??? comment.  Expand the location explicitly instead of using
3113         the LOCATION_FILE and LOCATION_LINE macros.
3114
3115 2011-04-06  Wei Guozhi  <carrot@google.com>
3116
3117         PR target/47855
3118         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
3119         (arm_cond_branch): Likewise.
3120         (arm_cond_branch_reversed): Likewise.
3121         (arm_jump): Likewise.
3122         (push_multi): Likewise.
3123         * config/arm/constraints.md (Py): New constraint.
3124
3125 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3126
3127         PR bootstrap/48471
3128         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
3129         Move these...
3130         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
3131         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
3132         #ifdef DBX_DEBUGGING_INFO.
3133
3134 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
3135
3136         PR bootstrap/48403
3137         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
3138         if old and new states differ.
3139
3140 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
3141
3142         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
3143         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
3144         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
3145         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
3146         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
3147         mcfv4e): Use Alias.
3148         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
3149         ColdFire options to -mcpu= options.
3150
3151 2011-04-05  Jeff Law  <law@redhat.com>
3152
3153         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
3154         check if BB is a successor of LOOP->header and return
3155         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
3156
3157 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
3158
3159         * cprop.c (struct reg_use): Remove.
3160         (reg_use_table): Make an array of RTX.
3161         (find_used_regs, constprop_register, local_cprop_pass,
3162         bypass_block): Simplify users of reg_use_table.
3163         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
3164         on one of the uses found by find_used_regs.
3165
3166 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3167
3168         PR bootstrap/48469
3169         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
3170         declaration.
3171
3172 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3173
3174         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
3175         as an rtx.
3176         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
3177
3178 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
3179
3180         PR middle-end/48441
3181         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
3182
3183 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3184
3185         * combine.c: Include obstack.h.
3186         (struct insn_link): Define.
3187         (uid_log_links): Adjust type.
3188         (FOR_EACH_LOG_LINK): New macro.
3189         (insn_link_obstack): Declare.
3190         (alloc_insn_link): Define.
3191         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
3192         type of link variables.
3193         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
3194         (try_combine, record_promoted_values, distribute_notes): Likewise.
3195         (distribute_links): Likewise.  Tweak prototype.
3196         (clear_log_links): Delete.
3197         (adjust_for_new_dest): Call alloc_insn_link.
3198         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
3199
3200 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3201
3202         * gcse.c (modify_mem_list): Convert to an array of VECs.
3203         (canon_modify_mem_list, compute_transp): Tweak formatting.
3204         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
3205         (load_killed_in_block_p): Likewise.
3206         (record_last_mem_set_info): Likewise.
3207         (clear_modify_mem_tables): Likewise.
3208
3209 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3210
3211         PR middle-end/48461
3212         * function.c (emit_use_return_register_into_block): Only define if
3213         HAVE_return.
3214
3215 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
3216
3217         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
3218
3219 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
3220
3221         * config/rx/rx-opts.h: New.
3222         * config/rx/rx.c (rx_cpu_type): Remove.
3223         (rx_handle_option): Don't assert that global structures are in
3224         use.  Access variables via opts pointer.  Defer most handling of
3225         OPT_mint_register_.  Use error_at.
3226         (rx_option_override): Handle deferred OPT_mint_register_ here.
3227         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
3228         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
3229         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
3230         (rx_cpu_types): New Enum and EnumValue entries.
3231         (mint-register=): Use Defer and use Var accordingly.
3232
3233 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3234
3235         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
3236         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
3237         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
3238         Move these...
3239         (debug_free_queue, debug_nesting, symbol_queue_index):
3240         ...and these...
3241         * dbxout.c: ...to here.  Make static.
3242
3243 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3244
3245         * gcse.c (modify_pair): Define.  Define a VEC of it.
3246         (canon_modify_mem_list): Convert to an array of VECs.
3247         (free_insn_expr_list_list): Delete.
3248         (clear_modify_mem_tables): Call VEC_free instead.
3249         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
3250         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
3251         (canon_list_insert, compute_transp): Likewise.
3252
3253 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3254
3255         PR target/43920
3256         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
3257         for size.
3258
3259 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3260
3261         PR target/43920
3262         * function.c (emit_use_return_register_into_block): New function.
3263         (thread_prologue_and_epilogue_insns): Use
3264         emit_use_return_register_into_block.
3265
3266 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3267
3268         PR target/43920
3269         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
3270         insn.
3271
3272 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3273
3274         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
3275
3276 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
3277
3278         * config/arm/arm.md (define_constants for unspec): Replace with
3279         define_c_enum.
3280         (define_constants for unspecv): Replace with define_c_enum.
3281         * config/arm/neon.md (define_constants for unspec): Replace with
3282         define_c_enum.
3283
3284 2011-04-04  Richard Henderson  <rth@redhat.com>
3285
3286         PR bootstrap/48400
3287         * dwarf2out.c (output_line_info): Always emit line info from
3288         at least one section.
3289         (dwarf2out_init): Create text_section_line_info here ...
3290         (set_cur_line_info_table): ... not here.
3291
3292 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
3293
3294         PR target/48380
3295         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
3296         not called.
3297
3298         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
3299
3300 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
3301
3302         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
3303         (expr_equiv_p): Remove.
3304         (insert_set_in_table): Look at <dest, src> pair instead of expr.
3305         (hash_scan_set): Update call to insert_set_in_table.
3306         (dump_hash_table): Dump <dest, src> pair.
3307         (lookup_set): Simplify.  Lookup <dest, src> pair.
3308         (compute_transp): Remove, fold heavily simplified code into...
3309         (compute_local_properties): ...here.  Expect COMP and TRANSP
3310         unconditionally.
3311         (find_avail_set): Take set directly from struct expr.
3312         (find_bypass-set): Likewise.
3313         (bypass_block): Likewise.
3314         (cprop_insn): Likewise.  Remove redundant INSN_P test.
3315
3316         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
3317         checks on form of COND from find_implicit_sets to here.
3318         (find_implicit_sets): Cleanup control flow. Split critical edges
3319         if it exposes implicit sets.  Allocate/resize implicit_sets as
3320         necessary.
3321         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
3322         changed something.  Run df_analyze after find_implicit_sets if any
3323         edges were split.  Do not allocate implicit_sets here.
3324
3325         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
3326         (gcse_obstack): Renamed to cprop_obstack.
3327         (GNEW, GNEWVEC, GNEWVAR): Remove.
3328         (gmalloc): Remove.
3329         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
3330         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
3331         (gcse_alloc): Likewise, and rename to cprop_alloc.
3332         (alloc_gcse_men, free_gcse_mem): Remove.
3333         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
3334         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
3335         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
3336
3337         * cprop.c (oprs_not_set_p): Remove.
3338         (mark_set, mark_clobber): Remove.
3339         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
3340         (reg_not_set_p): New function.
3341         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
3342         (cprop_insn): Likewise.
3343         (cprop_jump): Use FOR_EACH_EDGE.
3344
3345 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
3346
3347         PR bootstrap/48403
3348         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
3349         (rank_for_schedule): Use scheduled_insns vector instead of
3350         last_scheduled_insn.
3351         (ok_for_early_queue_removal): Likewise.
3352         (queue_to_ready): Search forward in nonscheduled_insns_begin if
3353         we have a dbg_cnt.
3354         (choose_ready): Likewise.
3355         (commit_schedule): Use VEC_iterate.
3356         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
3357         a dbg_cnt, use it and ensure the first insn is in the ready list.
3358         (haifa_sched_init): Allocate scheduled_insns.
3359         (sched_extend_ready_list): Don't allocate it; reserve space.
3360         (haifa_sched_finish): Free it.
3361
3362 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
3363
3364         * optc-gen.awk: Always remove type from Variable entry before
3365         recording in var_seen.
3366
3367 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
3368
3369         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
3370         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
3371         call to tidy_fallthru_edges.
3372
3373 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
3374
3375         * doc/options.texi (ToLower): Document.
3376         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
3377         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
3378         * opts.h (cl_option): Add cl_tolower field.
3379         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
3380         arguments with lowercase strings.
3381         * config/rx/rx.opt (mcpu=): Add ToLower.
3382         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
3383         argument.
3384
3385 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
3386
3387         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
3388
3389 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
3390
3391         * config/vax/vax.c: Include reload.h.
3392
3393 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
3394
3395         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
3396         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
3397         (sparc_preferred_reload_class): New function.
3398
3399 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
3400
3401         PR debug/48401
3402         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3403         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
3404
3405 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
3406
3407         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
3408         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
3409
3410 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
3411
3412         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
3413         (ASM_OUTPUT_ALIGNED_BSS): Define.
3414
3415 2011-04-03  Michael Matz  <matz@suse.de>
3416
3417         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
3418         and next_slot members.
3419         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
3420         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
3421         (lto_streamer_cache_append): Declare.
3422         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
3423         unsigned index, remove offset parameter, ensure that we append
3424         or update existing entries.
3425         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
3426         parameter, update next_slot for append.
3427         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
3428         parameter.
3429         (lto_streamer_cache_insert_at): Likewise.
3430         (lto_streamer_cache_append): New function.
3431         (lto_streamer_cache_lookup): Use unsigned index.
3432         (lto_streamer_cache_get): Likewise.
3433         (lto_record_common_node): Don't test tree_node_can_be_shared.
3434         (preload_common_node): Adjust call to lto_streamer_cache_insert.
3435         (lto_streamer_cache_delete): Don't free offsets member.
3436         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
3437         (lto_output_string_with_length): Use lto_output_data_stream.
3438         (lto_output_tree_header): Remove ix parameter, don't write it.
3439         (lto_output_builtin_tree): Likewise.
3440         (lto_write_tree): Adjust callers to above, don't track and write
3441         offset, write unsigned index.
3442         (output_unreferenced_globals): Don't emit all global vars.
3443         (write_global_references): Use unsigned indices.
3444         (lto_output_decl_state_refs): Likewise.
3445         (write_symbol): Likewise.
3446         * lto-streamer-in.c (lto_input_chain): Move earlier.
3447         (input_function): Use unsigned index.
3448         (input_alias_pairs): Don't read and then ignore all global vars.
3449         (lto_materialize_tree): Remove ix_p parameter, don't read index,
3450         don't pass it back, use lto_streamer_cache_append.
3451         (lto_register_var_decl_in_symtab): Use unsigned index.
3452         (lto_register_function_decl_in_symtab): Likewise.
3453         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
3454         index.
3455         (lto_get_builtin_tree): Don't read index, use
3456         lto_streamer_cache_append.
3457         (lto_read_tree): Adjust call to lto_materialize_tree.
3458
3459         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
3460         don't use function calls in arguments to MIN.
3461
3462         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
3463         twice.
3464
3465         * gimple.c (gimple_type_leader_entry): Mark deletable.
3466
3467 2011-04-03  Alan Modra  <amodra@gmail.com>
3468
3469         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
3470
3471 2011-04-03  Michael Matz  <matz@suse.de>
3472
3473         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
3474         an integer.
3475         * tree.h (tree_decl_non_common.vindex): Adjust comment.
3476
3477 2011-04-03  Michael Matz  <matz@suse.de>
3478
3479         * cgraphbuild.c (record_reference): Canonicalize constructor values.
3480         * gimple-fold.c (canonicalize_constructor_val): Accept being called
3481         without function context.
3482         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
3483         current_function_decl and cfun.
3484
3485 2011-04-03  Michael Matz  <matz@suse.de>
3486
3487         * tree.c (decl_init_priority_insert): Don't create entry for
3488         default priority.
3489         (decl_fini_priority_insert): Ditto.
3490         (fields_compatible_p, find_compatible_field): Remove.
3491         * tree.h (fields_compatible_p, find_compatible_field): Remove.
3492         * gimple.c (gimple_compare_field_offset): Adjust block comment.
3493
3494 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
3495
3496         * combine.c (try_combine): Remove useless local variable.
3497
3498 2011-04-03  Richard Guenther  <rguenther@suse.de>
3499             Ira Rosen  <ira.rosen@linaro.org>
3500
3501         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
3502         non-variable offsets and compare the remaining bases of the two
3503         accesses instead of looking for exact same data-ref.
3504
3505 2011-04-02  Kai Tietz  <ktietz@redhat.com>
3506
3507         PR target/48416
3508         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
3509
3510         * i386.c (ix86_is_msabi_thiscall): New helper function.
3511         (ix86_is_type_thiscall): New helper function.
3512         (ix86_comp_type_attributes): Handle thiscall for method-functions
3513         special.
3514         (init_cumulative_args): Likewise.
3515         (find_drap_reg): Likewise.
3516         (ix86_static_chain): Likewise.
3517         (x86_this_parameter): Likewise.
3518         (x86_output_mi_thunk): Likewise.
3519
3520 2011-04-01  Olivier Hainque  <hainque@adacore.com>
3521             Nicolas Setton  <setton@adacore.com>
3522             Eric Botcazou  <ebotcazou@adacore.com>
3523
3524         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
3525         (add_gnat_descriptive_type_attribute): New function.
3526         (gen_array_type_die): Call it.
3527         (gen_enumeration_type_die): Likewise.
3528         (gen_struct_or_union_type_die): Likewise.
3529         (modified_type_die): Likewise.
3530         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
3531         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
3532         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
3533
3534 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
3535
3536         PR bootstrap/48148
3537         * dwarf2out.c (resolve_addr): Don't call force_decl_die
3538         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
3539
3540         Revert:
3541         2011-03-17  Richard Guenther  <rguenther@suse.de>
3542
3543         PR bootstrap/48148
3544         * lto-cgraph.c (input_overwrite_node): Clear the abstract
3545         origin for decls in other ltrans units.
3546         (input_varpool_node): Likewise.
3547
3548 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
3549
3550         PR middle-end/48335
3551         * expr.c (expand_assignment): Handle all possibilities
3552         if TO_RTX is CONCAT.
3553         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
3554         (store_split_bit_field): If SUBREG_REG (op0) or
3555         op0 itself has smaller mode than word, return it
3556         for offset 0 and const0_rtx for out-of-bounds stores.
3557         If word is const0_rtx, skip it.
3558
3559 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
3560
3561         * config/h8300/h8300.c (print_operand_address): Rename to...
3562         (h8300_print_operand_address): ...this. Make static. Adjust comments.
3563         Call h8300_print_operand and h8300_print_operand_address instead of
3564         print_operand and print_operand_address. Declare.
3565         (print_operand): Renake to...
3566         (h8300_print_operand): ...this. Make static. Adjust comments.
3567         Call h8300_print_operand instead of print_operand. Declare.
3568         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
3569         (h8300_register_move_cost): Likewise.
3570         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
3571         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
3572         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
3573         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
3574         * config/h8300/h8300-protos.h (print_operand): Delete.
3575         (print_operand_address): Delete.
3576
3577 2011-04-01  Richard Henderson  <rth@redhat.com>
3578
3579         PR 48400
3580         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
3581         in strict mode before dwarf4.  Re-order tests to early out
3582         before switching sections.
3583
3584 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
3585
3586         * config/h8300/constraints.md: New file.
3587         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
3588         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
3589         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
3590         * config/h8300/predicates.md (bit_operand): Likewise.
3591         (incdec_operand): Use satisfies_constraint_M and
3592         satisfies_constraint_O.  Don't use C code block.
3593         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
3594         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
3595         (compute_mov_length): Use satisfies_constraint_G.
3596         (fix_bit_operand): Use satisfies_constraint_U.
3597         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
3598         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
3599         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
3600         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
3601         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
3602         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
3603         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3604         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
3605         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
3606         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
3607         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
3608         (EXTRA_MEMORY_CONSTRAINT): Delete.
3609
3610 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
3611             Michael Meissner  <meissner@linux.vnet.ibm.com>
3612
3613         PR target/48262
3614         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
3615         operands, as per the specifications.
3616
3617         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
3618         (vec_extract_evenv4sf): Ditto.
3619         (vec_extract_evenv8hi): Ditto.
3620         (vec_extract_evenv16qi): Ditto.
3621         (vec_extract_oddv4si): Ditto.
3622
3623 2011-03-31  Mark Wielaard  <mjw@redhat.com>
3624
3625         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
3626         high_pc attribute if the CU has no associated code. Only output
3627         DW_AT_entry_pc for CU if not generating strict dwarf and
3628         dwarf_version < 4.
3629
3630 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
3631
3632         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
3633         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
3634         out of ...
3635         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
3636         * final.c (final_start_function): Call the new function rather
3637         than using a NULL argument for dwarf2out_frame_debug.
3638
3639         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
3640         that contains the prologue.
3641
3642         * haifa-sched.c (queue_insn): New arg REASON.  All callers
3643         changed.  Print it in debugging output.
3644
3645         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
3646
3647         * sched-ebb.c (begin_schedule_ready): Remove second argument.
3648         Split most of the code into...
3649         (begin_move_insn): ... here.  New function.
3650         (ebb_sched_info): Add a pointer to it.
3651         * haifa-sched.c (scheduled_insns): New static variable.
3652         (sched_extend_ready_list): Allocate it.
3653         (schedule_block): Use it to record the order of scheduled insns.
3654         Perform RTL changes to move insns only after all scheduling
3655         decisions have been made.
3656         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
3657         begin_move_insn field.
3658         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
3659         * sched-int.h (struct haifa_sched_info): Remove second argument
3660         from begin_schedule_ready hook.  Add new member begin_move_insn.
3661         * sched-rgn.c (begin_schedule_ready): Remove second argument.
3662         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
3663
3664         * haifa-sched.c (prune_ready_list): New function, broken out of
3665         schedule_block.
3666         (schedule_block): Use it.
3667
3668 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3669
3670         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
3671
3672 2011-04-01  Kai Tietz  <ktietz@redhat.com>
3673
3674         * config.gcc (*-*-mingw*): Allow as option the
3675         posix threading model.
3676         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
3677         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
3678         definition.
3679         (CPP_SPEC): Add pthread/no-pthread handling.
3680         (LIB_SPEC): Likewise.
3681         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
3682         (LIB_SPEC): Likewise.
3683         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
3684         flag to pass -pthread option for shared libgcc build.
3685         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
3686         for shared libgcc build.
3687         * config/i386/t-mingw-pthread: New file.
3688         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
3689         New define to enable use of library pthread by default.
3690         * config/i386/mingw.opt (pthread): New driver option.
3691         (no-pthread): New driver option.
3692         * config/i386/cygming.opt: Make sure trailing empty line is retained.
3693         * config/i386/mingw-w64.opt: Likewise.
3694
3695 2011-04-01  Gary Funck <gary@intrepid.com>
3696
3697         * c-decl.c (grokdeclarator): Fix formatting.
3698
3699 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
3700
3701         * expr.c (emit_block_move_via_movmem): Use n_generator_args
3702         instead of n_operands.
3703         (set_storage_via_setmem): Likewise.
3704         * optabs.c (maybe_gen_insn): Likewise.
3705         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
3706         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
3707         (mips_expand_builtin_direct): Likewise.
3708         * config/spu/spu.c (expand_builtin_args): Likewise.
3709
3710 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
3711
3712         * recog.h (insn_data_d): Add n_generator_args.
3713         * genoutput.c (data): Likewise.
3714         (output_insn_data): Print it.
3715         (max_opno, num_dups): Delete.
3716         (scan_operands): Just fill in "d->operand[...]".
3717         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
3718
3719 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
3720
3721         * gensupport.h (pattern_stats): New structure.
3722         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
3723         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
3724         (max_operand_1, max_operand_vec): Delete.
3725         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
3726
3727 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
3728
3729         * emit-rtl.c (emit_pattern_after_setloc): New function.
3730         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
3731         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
3732         (emit_pattern_after): New function.
3733         (emit_insn_after, emit_jump_insn_after): Call it.
3734         (emit_call_insn_after, emit_debug_insn_after): Likewise.
3735         (emit_pattern_before_setloc): New function.
3736         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
3737         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
3738         Likewise.
3739         (emit_pattern_before): New function.
3740         (emit_insn_before, emit_jump_insn_before): Call it.
3741         (emit_call_insn_before, emit_debug_insn_before): Likewise.
3742
3743 2011-03-31  Richard Henderson  <rth@redhat.com>
3744
3745         * dwarf2out.c (dw_separate_line_info_ref): Remove.
3746         (dw_separate_line_info_entry): Remove.
3747         (enum dw_line_info_opcode): New.
3748         (dw_line_info_entry): Use it.
3749         (dw_line_info_table, dw_line_info_table_p): New.
3750         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
3751         (line_info_table, line_info_label_num): Remove.
3752         (line_info_table_in_use): Remove.
3753         (separate_line_info_table): Remove.
3754         (separate_line_info_table_allocated): Remove.
3755         (separate_line_info_table_in_use): Remove.
3756         (LINE_INFO_TABLE_INCREMENT): Remove.
3757         (line_info_label_num): New.
3758         (cur_line_info_table): New.
3759         (text_section_line_info, cold_text_section_line_info): New.
3760         (separate_line_info): New.
3761         (SEPARATE_LINE_CODE_LABEL): Remove.
3762         (print_dwarf_line_table): Remove.
3763         (debug_dwarf): Don't dump it.
3764         (output_one_line_info_table): New.
3765         (output_line_info): Use it.
3766         (new_line_info_table): New.
3767         (set_cur_line_info_table): New.
3768         (dwarf2out_switch_text_section): Use it.
3769         (dwarf2out_begin_function): Likewise.
3770         (push_dw_line_info_entry): New.
3771         (dwarf2out_source_line): Rewrite for new line info tables.
3772         (dwarf2out_init): Remove dead initailizations.
3773
3774 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
3775
3776         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
3777         various flags.
3778         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
3779         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
3780         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
3781         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
3782         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
3783         * opt-functions.awk (flag_init, switch_bit_fields): New.
3784         (switch_flags): Don't handle flags moved to bit-fields.  Don't
3785         generate CL_MISSING_OK or CL_SAVE.
3786         * optc-gen.awk: Update to generate bit-field output as well as
3787         flags field.
3788         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
3789         bit-field instead of CL_REJECT_DRIVER flag.
3790         * opts-common.c (generate_canonical_option,
3791         decode_cmdline_option): Use bit-fields instead of CL_* flags.
3792         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
3793         instead of CL_REJECT_NEGATIVE flag.
3794         * toplev.c (print_switch_values): Use cl_report bit-field instead
3795         of CL_REPORT flag.
3796
3797 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
3798
3799         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
3800         a zero minimum index only if it is redundant.
3801
3802 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
3803
3804         PR rtl-optimization/48381
3805         * ira-color.c (assign_hard_reg): Use hard reg set intersection
3806         instead of ira_class_hard_reg_index for calculating conflicting
3807         hard registers.
3808
3809 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
3810
3811         * cprop.c: Clean up hash table building.
3812         (reg_avail_info): Remove.
3813         (oprs_available_p): Remove.
3814         (record_last_reg_set_info): Remove.
3815         (record_last_set_info): Remove.
3816         (reg_available_p): New function.
3817         (gcse_constant_p): Do not treat unfolded conditions as constants.
3818         (make_set_regs_unavailable): New function.
3819         (hash_scan_set): Simplify with new reg_available_p.
3820         (compute_hash_table_work): Traverse insns stream only once.
3821         Do not compute reg_avail_info. Traverse insns in reverse order.
3822         Record implicit sets after recording explicit sets from the block.
3823
3824 2011-03-31  Michael Matz  <matz@suse.de>
3825
3826         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
3827
3828 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
3829
3830         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
3831         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
3832         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3833         (h8300_mode_dependent_address_p): New function.
3834         (h8300_get_index): Make static.
3835
3836 2011-03-31  Jeff Law  <law@redhat.com>
3837
3838         * reload1.c (elimination_effects): Fix typo in recent change.
3839
3840         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
3841         typo potentially leading to null pointer dereference.
3842
3843         * caller-save.c (new_saved_hard_reg): Eliminate return value.
3844         (setup_save_areas): Corresponding changes to avoid useless
3845         assignments.
3846
3847         * jump.c (reversed_comparison_code_parts): Avoid successive return
3848         statements when REVERSE_CONDITION is defined.
3849
3850         * expr.c (expand_assignment): Avoid useless assignments.
3851         (expand_expr_real_1): Likewise.
3852         (expand_expr_real_2): Avoid useless statements.
3853
3854         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
3855
3856         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3857
3858         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
3859         statements.
3860
3861         * stmt.c (expand_expr_stmt): Avoid useless assignment.
3862
3863 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
3864
3865         PR target/47109
3866         * doc/tm.texi.in (TARGET_VERSION): Remove.
3867         * doc/tm.texi: Regenerate.
3868         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
3869         * collect2.c (main): Don't use TARGET_VERSION.
3870         * mips-tdump.c (main): Don't use TARGET_VERSION.
3871         * mips-tfile.c (main): Don't use TARGET_VERSION.
3872         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
3873         * config/rs6000/vxworksae.h: Remove.
3874         * config/alpha/alpha.h (TARGET_VERSION): Remove.
3875         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
3876         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
3877         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
3878         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3879         * config/arm/arm.h (TARGET_VERSION): Remove.
3880         * config/arm/coff.h (TARGET_VERSION): Remove.
3881         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
3882         * config/arm/elf.h (TARGET_VERSION): Remove.
3883         * config/arm/freebsd.h (TARGET_VERSION): Remove.
3884         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
3885         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
3886         * config/arm/pe.h (TARGET_VERSION): Remove.
3887         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
3888         * config/arm/semi.h (TARGET_VERSION): Remove.
3889         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
3890         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
3891         * config/arm/vxworks.h (TARGET_VERSION): Remove.
3892         * config/avr/avr.h (TARGET_VERSION): Remove.
3893         * config/bfin/bfin.h (TARGET_VERSION): Remove.
3894         * config/fr30/fr30.h (TARGET_VERSION): Remove.
3895         * config/frv/frv.h (TARGET_VERSION): Remove.
3896         * config/h8300/h8300.h (TARGET_VERSION): Remove.
3897         * config/i386/cygwin.h (TARGET_VERSION): Remove.
3898         * config/i386/darwin.h (TARGET_VERSION): Remove.
3899         * config/i386/darwin64.h (TARGET_VERSION): Remove.
3900         * config/i386/djgpp.h (TARGET_VERSION): Remove.
3901         * config/i386/freebsd.h (TARGET_VERSION): Remove.
3902         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
3903         * config/i386/gnu.h (TARGET_VERSION): Remove.
3904         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
3905         * config/i386/i386elf.h (TARGET_VERSION): Remove.
3906         * config/i386/linux.h (TARGET_VERSION): Remove.
3907         * config/i386/linux64.h (TARGET_VERSION): Remove.
3908         * config/i386/lynx.h (TARGET_VERSION): Remove.
3909         * config/i386/mingw32.h (TARGET_VERSION): Remove.
3910         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
3911         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
3912         * config/i386/netware.h (TARGET_VERSION): Remove.
3913         * config/i386/nto.h (TARGET_VERSION): Remove.
3914         * config/i386/openbsd.h (TARGET_VERSION): Remove.
3915         * config/i386/vxworks.h (TARGET_VERSION): Remove.
3916         * config/ia64/elf.h (TARGET_VERSION): Remove.
3917         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
3918         * config/ia64/hpux.h (TARGET_VERSION): Remove.
3919         * config/ia64/linux.h (TARGET_VERSION): Remove.
3920         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3921         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
3922         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3923         * config/lm32/lm32.h (TARGET_VERSION): Remove.
3924         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
3925         * config/m32c/m32c.h (TARGET_VERSION): Remove.
3926         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
3927         * config/m32r/m32r.h (TARGET_VERSION): Remove.
3928         * config/m68k/linux.h (TARGET_VERSION): Remove.
3929         * config/m68k/m68k.h (TARGET_VERSION): Remove.
3930         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
3931         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
3932         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
3933         * config/mep/mep.h (TARGET_VERSION): Remove.
3934         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
3935         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3936         * config/mips/iris6.h (MACHINE_TYPE): Remove.
3937         * config/mips/linux.h (TARGET_VERSION): Remove.
3938         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
3939         * config/mips/vxworks.h (TARGET_VERSION): Remove.
3940         * config/mmix/mmix.h (TARGET_VERSION): Remove.
3941         * config/mn10300/linux.h (TARGET_VERSION): Remove.
3942         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
3943         * config/pa/pa.h (TARGET_VERSION): Remove.
3944         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
3945         * config/picochip/picochip.h (TARGET_VERSION): Remove.
3946         * config/rs6000/aix.h (TARGET_VERSION): Remove.
3947         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
3948         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
3949         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
3950         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
3951         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
3952         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
3953         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
3954         * config/rs6000/linux.h (TARGET_VERSION): Remove.
3955         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
3956         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
3957         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
3958         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
3959         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
3960         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
3961         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
3962         * config/s390/linux.h (TARGET_VERSION): Remove.
3963         * config/s390/s390.h (TARGET_VERSION): Remove.
3964         * config/s390/tpf.h (TARGET_VERSION): Remove.
3965         * config/score/score.h (TARGET_VERSION): Remove.
3966         * config/sh/linux.h (TARGET_VERSION): Remove.
3967         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
3968         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
3969         * config/sh/sh.h (TARGET_VERSION): Remove.
3970         * config/sh/sh64.h (TARGET_VERSION): Remove.
3971         * config/sh/superh.h (TARGET_VERSION): Remove.
3972         * config/sh/vxworks.h (TARGET_VERSION): Remove.
3973         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
3974         * config/sparc/linux.h (TARGET_VERSION): Remove.
3975         * config/sparc/linux64.h (TARGET_VERSION): Remove.
3976         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
3977         TARGET_NAME32, TARGET_NAME): Remove.
3978         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
3979         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
3980         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
3981         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
3982         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
3983         * config/spu/spu.h (TARGET_VERSION): Remove.
3984         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
3985         * config/v850/v850.h (TARGET_VERSION): Remove.
3986         * config/vax/linux.h (TARGET_VERSION): Remove.
3987         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
3988         * config/xtensa/elf.h (TARGET_VERSION): Remove.
3989         * config/xtensa/linux.h (TARGET_VERSION): Remove.
3990
3991 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
3992
3993         PR target/48142
3994         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
3995         frame-related from frame-unrelated adjustments to the stack pointer.
3996
3997 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
3998
3999         * common.opt (fdebug-types-section): Move earlier.
4000         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
4001
4002 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
4003
4004         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
4005         var.
4006
4007 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
4008
4009         * tree.h (CASE_CHAIN): Define.
4010         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
4011         (gimple_redirect_edge_and_branch): Likewise.
4012
4013 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
4014
4015         PR middle-end/48367
4016         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
4017         calculation.
4018
4019 2011-03-30  Jeff Law  <law@redhat.com>
4020
4021         * PR bootstrap/48371
4022         * reload1.c (reload): Fix botch in last change.
4023
4024         * reload.h (struct reload): Fix typo introduced in last change.
4025
4026 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
4027
4028         * config/arm/arm.opt (mhard-float, msoft-float): Mark
4029         Undocumented.  Remove help text.
4030         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
4031         -mhard-float.
4032
4033 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
4034
4035         * doc/options.texi (NegativeAlias): Document.
4036         (Alias): Mention NegativeAlias.
4037         * opt-functions.awk: Handle NegativeAlias.
4038         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
4039         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
4040         * opts.h (CL_NEGATIVE_ALIAS): Define.
4041         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
4042         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
4043         OPT_mspe_.
4044         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
4045         Alias entries.
4046         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
4047         mno-spe and mno-isel instead of mspe=no and -misel=no.
4048
4049 2011-03-29  Mark Wielaard  <mjw@redhat.com>
4050
4051         * common.opt (fdebug-types-section): New flag.
4052         * doc/invoke.texi: Document new -fno-debug-types-section flag.
4053         * dwarf2out.c (use_debug_types): New define.
4054         (struct die_struct): Mark die_id with GTY desc use_debug_types.
4055         (print_die): Guard output of type unit signatures using
4056         use_debug_types.
4057         (build_abbrev_table): Replace assert of dwarf_version >= 4
4058         with assert on use_debug_types.
4059         (size_of_die): Likewise.
4060         (unmark_dies): Likewise.
4061         (value_format): Decide AT_ref_external form on use_debug_types.
4062         (output_die): Replace dwarf_version version check guard with
4063         use_debug_types where appropriate.
4064         (modified_type_die): Likewise.
4065         (gen_reference_type_die): Likewise.
4066         (dwarf2out_start_source_file): Likewise.
4067         (dwarf2out_end_source_file): Likewise.
4068         (prune_unused_types_walk_attribs): Likewise.
4069         (dwarf2out_finish): Likewise.
4070
4071 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
4072
4073         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
4074
4075 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
4076
4077         PR rtl-optimization/48332
4078         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
4079         mode of input operand N and modeN to its actual mode.
4080
4081 2011-03-30  Jeff Law  <law@redhat.com>
4082
4083         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
4084         define accessor macro.
4085         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
4086         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
4087         (reg_equiv_init): Likewise.
4088         (reg_equivs_size): New variable.
4089         (reg_equiv_init_size): Remove.
4090         (allocate_initial_values): Move prototype to here from....
4091         * integrate.h (allocate_initial_values): Remove prototype.
4092         * integrate.c: Include reload.h.
4093         (allocate_initial_values): Corresponding changes.
4094         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
4095         (fix_reg_equiv_init, no_equiv): Corresponding changes.
4096         (update_equiv_regs): Corresponding changes.
4097         (ira): Corresponding changes.
4098         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
4099         (push_secondary_reload): Corresponding changes.
4100         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
4101         (make_memloc, find_reloads_address): Corresponding changes.
4102         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
4103         (find_reloads_address_1): Corresponding changes.
4104         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
4105         (refers_to_regno_for_reload_p): Corresponding changes.
4106         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
4107         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
4108         * reload1.c: Include ggc.h.
4109         (grow_reg_equivs): New function.
4110         (replace_pseudos_in, reload): Corresponding changes.
4111         (calculate_needs_all_insns, alter_regs): Corresponding changes.
4112         (eliminate_regs_1, elimination_effects): Corresponding changes.
4113         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
4114         (delete_output_reload): Likewise.
4115         * caller-save.c (mark_referenced_regs): Corresponding changes.
4116         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
4117         * frv/predicates.md (frv_load_operand): Corresponding changes.
4118         * microblaze/microblaze.c (double_memory_operand): Corresponding
4119         changes.
4120         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
4121         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
4122         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
4123         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
4124         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
4125         changes.
4126         * pa/pa.c (emit_move_sequence): Corresponding changes.
4127         * vax/vax.c (nonindexed_address_p): Corresponding changes.
4128
4129 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
4130
4131         PR target/47551
4132         * config/arm/arm.c (coproc_secondary_reload_class): Handle
4133         structure modes.  Don't check neon_vector_mem_operand for
4134         vector or structure modes.
4135
4136 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
4137             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4138
4139         PR target/43590
4140         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
4141         operand 1 and reshuffle the operands to match.
4142         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
4143
4144 2011-03-30  Christian Schüler  <cschueler@gmx.de>
4145
4146         PR driver/48208
4147         * config/c.opt (F): Added 'Driver' to -F option.
4148
4149         PR driver/48260
4150         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
4151           handler function.
4152         * config/darwin.opt: Added '-arch' option.
4153
4154 2011-03-30  Nick Clifton  <nickc@redhat.com>
4155
4156         * config/rx/rx.md: Add peepholes and patterns to combine
4157         extending loads and simple arithmetic instructions.
4158         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
4159         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
4160         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
4161         modes to use pre-decrement and post-increment addressing.
4162         (rx_is_restricted_memory_address): Add range checking of REG+INT
4163         addresses.
4164         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
4165         (rx_memory_move_cost): Adjust cost of stores.
4166         (rx_adjust_insn_length): New function.
4167
4168 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
4169
4170         PR c/48305
4171         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
4172         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
4173         matching arg00/arg01 types.
4174
4175 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
4176
4177         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
4178         last_location to UNKNOWN_LOCATION.
4179
4180 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
4181
4182         PR target/48349
4183         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
4184         FLOAT_SSE_REGS.
4185
4186 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
4187             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4188
4189         PR bootstrap/48337
4190         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
4191         Init(PROCESSOR_V7).
4192         (sparc_cpu): Likewise.
4193         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
4194         PROCESSOR_V7.
4195
4196 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
4197
4198         PR target/48336
4199         PR middle-end/48342
4200         PR rtl-optimization/48345
4201         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
4202         hard regs for given mode from profitable regs when doing secondary
4203         allocation.
4204
4205 2011-03-29  Jeff Law  <law@redhat.com>
4206
4207         PR bootstrap/48327
4208         * tree-ssa-threadupdate.c (struct redirection_data): Remove
4209         do_not_duplicate field.
4210         (lookup_redirection_data): Corresponding changes.
4211         (create_duplicates): Always create a template block.
4212         (redirect_edges): Remove code which reused the original block
4213         when it was going to become unreachable code.
4214         (thread_block): Don't set do_not_duplicate field.
4215
4216 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
4217
4218         * lto-opts.c (register_user_option_p, lto_register_user_option):
4219         Make type argument unsigned.
4220         * lto-streamer.h (lto_register_user_option): Make type argument
4221         unsigned.
4222         * opth-gen.awk: Make CL_* macros unsigned.
4223         * opts-common.c (find_opt): Make lang_mask argument unsigned.
4224         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
4225         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
4226         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
4227         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
4228         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
4229         (find_opt): Make lang_mask argument unsigned.
4230
4231 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
4232
4233         PR rtl-optimization/48331
4234         PR rtl-optimization/48334
4235         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
4236         for any used algorithm.
4237
4238 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
4239
4240         * ira-conflicts.c (build_object_conflicts): Add unused attribute
4241         to parent_max.
4242
4243 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
4244
4245         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
4246         (alpha_option_override): Don't set alpha_sr_alias_set.
4247         (emit_frame_store_1): Use gen_frame_mem rather than calling
4248         set_mem_alias_set.
4249         (alpha_expand_epilogue): Ditto.
4250
4251 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
4252
4253         PR tree-optimization/48290
4254         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
4255         vectorization, check that relevant phis in the basic block after
4256         the inner loop are really inner loop's exit phis.
4257
4258 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
4259
4260         PR debug/48190
4261         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
4262         (cached_dw_loc_list_def): New structure.
4263         (cached_dw_loc_list): New typedef.
4264         (cached_dw_loc_list_table): New variable.
4265         (cached_dw_loc_list_table_hash): New function.
4266         (cached_dw_loc_list_table_eq): Likewise.
4267         (add_location_or_const_value_attribute): Take a bool cache_p.
4268         Cache the list when the parameter is true.
4269         (gen_formal_parameter_die): Update caller.
4270         (gen_variable_die): Likewise.
4271         (dwarf2out_finish): Likewise.
4272         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
4273         while generating debug info for the decl.
4274         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
4275         (dwarf2out_init): Initialize cached_dw_loc_list_table.
4276         (resolve_addr): Cache the result of resolving a chain of
4277         location lists.
4278
4279 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
4280
4281         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
4282         conflict object hard regset nodes have intersecting hard reg sets.
4283
4284         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
4285         after regstat_init_n_sets_and_refs.
4286
4287         * ira.c: Add more comments at the top.
4288         (setup_stack_reg_pressure_class, setup_pressure_classes):
4289         Add comments how we compute the register pressure classes.
4290         (setup_allocno_and_important_classes): Add more comments.
4291         (setup_class_translate_array, reorder_important_classes)
4292         (setup_reg_class_relations): Add comments.
4293
4294         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
4295         start of the file.
4296
4297         * ira-color.c: Add 2011 to the Copyright line.
4298         (assign_hard_reg):  Add more comments.
4299         (improve_allocation): Ditto.
4300
4301         * ira-costs.c: Add 2011 to the Copyright line.
4302         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
4303         comments.
4304         (setup_regno_cost_classes_by_mode): Ditto.
4305
4306         Initial patches from ira-improv branch:
4307
4308         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
4309
4310         * ira-build.c (ira_create_object): Remove initialization of
4311         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
4312         (ira_create_allocno): Remove initialization of
4313         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
4314         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
4315         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
4316         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
4317         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
4318         Initialize ALLOCNO_ADD_DATA.
4319         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
4320         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
4321         ALLOCNO_REG.
4322         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
4323         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
4324
4325         * ira.c (ira_reallocate): Remove.
4326         (setup_pressure_classes): Call
4327         ira_init_register_move_cost_if_necessary.  Use
4328         ira_register_move_cost instead of ira_get_register_move_cost.
4329         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
4330         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
4331
4332         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
4333         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
4334         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
4335         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
4336         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
4337         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
4338         Fix formatting.
4339         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
4340         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4341         (struct allocno_color_data): New.
4342         (allocno_color_data_t): New typedef.
4343         (allocno_color_data): New definition.
4344         (ALLOCNO_COLOR_DATA): New macro.
4345         (struct object_color_data): New.
4346         (object_color_data_t): New typedef.
4347         (object_color_data): New definition.
4348         (OBJECT_COLOR_DATA): New macro.
4349         (update_copy_costs, calculate_allocno_spill_cost): Call
4350         ira_init_register_move_cost_if_necessary.  Use
4351         ira_register_move_cost instead of ira_get_register_move_cost.
4352         (move_spill_restore, update_curr_costs): Ditto.
4353         (allocno_spill_priority): Make it inline.
4354         (color_pass): Allocate and free allocno_color_dat and object_color_data.
4355         (struct coalesce_data, coalesce_data_t): New.
4356         (allocno_coalesce_data): New definition.
4357         (ALLOCNO_COALESCE_DATA): New macro.
4358         (merge_allocnos, coalesced_allocno_conflict_p): Use
4359         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
4360         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
4361         (coalesce_allocnos): Ditto.
4362         (setup_coalesced_allocno_costs_and_nums): Ditto.
4363         (collect_spilled_coalesced_allocnos): Ditto.
4364         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
4365         (setup_slot_coalesced_allocno_live_ranges): Ditto.
4366         (coalesce_spill_slots): Ditto.
4367         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
4368         free allocno_coalesce_data.
4369
4370         * ira-conflicts.c: Fix formatting.
4371         (process_regs_for_copy): Call
4372         ira_init_register_move_cost_if_necessary.  Use
4373         ira_register_move_cost instead of ira_get_register_move_cost.
4374         (build_object_conflicts): Optimize.
4375
4376         * ira-costs.c (record_reg_classes): Optimize.  Call
4377         ira_init_register_move_cost_if_necessary.  Use
4378         ira_register_move_cost, ira_may_move_in_cost, and
4379         ira_may_move_out_cost instead of ira_get_register_move_cost and
4380         ira_get_may_move_cost.
4381         (record_address_regs): Ditto.
4382         (scan_one_insn): Optimize.
4383         (find_costs_and_classes): Optimize.
4384         (process_bb_node_for_hard_reg_moves): Call
4385         ira_init_register_move_cost_if_necessary.  Use
4386         ira_register_move_cost instead of ira_get_register_move_cost.
4387
4388         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
4389         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
4390         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
4391         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
4392         definitions.
4393         (ira_initiate_emit_data, ira_finish_emit_data)
4394         (create_new_allocno): New functions.
4395         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
4396         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
4397         Use ira_register_move_cost instead of ira_get_register_move_cost.
4398
4399         * ira-int.h: Fix some comments.
4400         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
4401         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4402         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
4403         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
4404         add_data.
4405         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
4406         bitfield after mode.  Make hard_regno a short int.  Make
4407         hard_regno short.  Remove first_coalesced_allocno and
4408         next_coalesced_allocno.  Move mem_optimized_dest_p,
4409         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
4410         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
4411         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
4412         temp, colorable_p.  Add new member add_data.
4413         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
4414         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
4415         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
4416         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
4417         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
4418         (ALLOCNO_ADD_DATA): New macro.
4419         (ira_emit_data_t): New typedef.
4420         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
4421         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
4422         from struct ira_allocno.
4423         (ALLOCNO_EMIT_DATA): New macro.
4424         (ira_allocno_emit_data, allocno_emit_reg): New.
4425         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
4426         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
4427         (OBJECT_ADD_DATA): New macro.
4428         (ira_reallocate): Remove.
4429         (ira_initiate_emit_data, ira_finish_emit_data): New.
4430         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
4431         (ira_init_register_move_cost_if_necessary): New.
4432         (ira_object_conflict_iter_next): Merge into
4433         ira_object_conflict_iter_cond.
4434         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
4435
4436         * ira-live.c (process_single_reg_class_operands): Call
4437         ira_init_register_move_cost_if_necessary.  Use
4438         ira_register_move_cost instead of ira_get_register_move_cost.
4439
4440         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
4441
4442         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
4443
4444         * ira-costs.c: Fix formatting.
4445         (cost_classes, cost_classes_num): Remove.
4446         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
4447         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
4448         (cost_classes_del, cost_classes_htab): New.
4449         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
4450         (initiate_regno_cost_classes, setup_cost_classes): New.
4451         (setup_regno_cost_classes_by_aclass): New.
4452         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
4453         (record_reg_classes): Use regno_cost_classes instead of
4454         cost_classes.  Move checking opposite operand up.
4455         (record_address_regs): Use regno_cost_classes
4456         instead of cost_classes.
4457         (scan_one_insn): Ditto.  Use always general register.
4458         (print_allocno_costs): Use regno_cost_classes instead of
4459         cost_classes.
4460         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
4461         (find_costs_and_classes): Set up cost classes for each registers.
4462         Use also their mode for this.  Use regno_cost_classes instead of
4463         cost_classes.
4464         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
4465         cost_classes.
4466         (free_ira_costs, ira_init_costs): Don't use cost_classes.
4467         (ira_costs, ira_set_pseudo_classes): Call
4468         initiate_regno_cost_classes and finish_regno_cost_classes.
4469
4470         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
4471
4472         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
4473
4474         * target.def (ira_cover_classes): Remove.
4475
4476         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
4477
4478         * doc/tm.texi.in: Ditto.
4479
4480         * ira-conflicts.c: Remove mentioning cover classes from the file.
4481         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
4482         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
4483
4484         * targhooks.c (default_ira_cover_classes): Remove.
4485
4486         * targhooks.h (default_ira_cover_classes): Ditto.
4487
4488         * haifa-sched.c: Remove mentioning cover classes from the file.
4489         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
4490         ira_pressure_classes and ira_pressure_classes_num instead of
4491         ira_reg_class_cover_size and ira_reg_class_cover.  Use
4492         sched_regno_pressure_class instead of sched_regno_cover_class.
4493         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
4494         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4495
4496         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
4497         classes from the file.
4498         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
4499         (struct object_hard_regs, struct object_hard_regs_node): New.
4500         (struct ira_object): New members profitable_hard_regs,
4501         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
4502         (struct ira_allocno): Rename cover_class to aclass.  Rename
4503         cover_class_cost and updated_cover_class_cost to class_cost and
4504         updated_class_cost.  Remove splay_removed_p and
4505         left_conflict_size.  Add new members colorable_p.
4506         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
4507         (ALLOCNO_COLORABLE_P): New macro.
4508         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
4509         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
4510         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
4511         (OBJECT_...): Rename parameter C to O.
4512         (OBJECT_PROFITABLE_HARD_REGS): New macro.
4513         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
4514         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
4515         (struct target_ira_int): New members x_ira_max_memory_move_cost,
4516         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
4517         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
4518         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
4519         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
4520         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
4521         x_ira_reg_class_subunion.
4522         (ira_max_memory_move_cost, ira_max_register_move_cost)
4523         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
4524         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
4525         (ira_important_class_nums, ira_reg_class_superunion): New macros.
4526         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
4527         (ira_reg_class_union): Rename to ira_reg_class_subunion.
4528         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
4529         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
4530         (ira_tune_allocno_costs_and_cover_classes): Rename to
4531         ira_tune_allocno_costs.
4532         (ira_debug_hard_regs_forest): New.
4533         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
4534         (ira_object_conflict_iter_next): Fix comments.
4535         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
4536         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
4537         cover_class to aclass.
4538         (ira_allocate_and_accumulate_costs): Ditto.
4539         (ira_allocate_and_set_or_copy_costs): Ditto.
4540
4541         * opts.c (decode_options): Remove ira_cover_class check.
4542
4543         * ira-color.c: Remove mentioning cover classes from the file.  Use
4544         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
4545         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
4546         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
4547         (splay-tree.h): Remove include.
4548         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
4549         before copy_freq_compare_func.
4550         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
4551         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
4552         New definitions.
4553         (hard_regs_roots, hard_regs_node_vec): Ditto.
4554         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
4555         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
4556         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
4557         (create_new_object_hard_regs_node): Ditto.
4558         (add_new_object_hard_regs_node_to_forest): Ditto.
4559         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
4560         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
4561         Ditto.
4562         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
4563         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
4564         (remove_unused_object_hard_regs_nodes): Ditto.
4565         (enumerate_object_hard_regs_nodes): Ditto.
4566         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
4567         (object_hard_regs_subnode_t): Ditto.
4568         (struct object_hard_regs_subnode): Ditto.
4569         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
4570         (setup_object_hard_regs_subnode_index): Ditto.
4571         (get_object_hard_regs_subnodes_num): Ditto.
4572         (form_object_hard_regs_nodes_forest): Ditto.
4573         (finish_object_hard_regs_nodes_tree): Ditto.
4574         (finish_object_hard_regs_nodes_forest): Ditto.
4575         (allocnos_have_intersected_live_ranges_p): Rename to
4576         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
4577         (pseudos_have_intersected_live_ranges_p): Rename to
4578         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
4579         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
4580         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
4581         (update_copy_costs): Remove assert.  Skip cost update if the hard
4582         reg does not belong the class.
4583         (assign_hard_reg): Process only profitable hard regs.
4584         (uncolorable_allocnos_num): Make it scalar.
4585         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
4586         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
4587         and ira_reg_class_max_nregs.
4588         (bucket_allocno_compare_func): Check frequency first.
4589         (sort_bucket): Add compare function as a parameter.
4590         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
4591         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
4592         (push_allocno_to_stack): Rewrite for checking new allocno
4593         colorability.
4594         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
4595         (push_only_colorable): Pass new parameter to sort_bucket.
4596         (push_allocno_to_spill): Remove.
4597         (allocno_spill_priority_compare): Make it inline and rewrite.
4598         (splay_tree_allocate, splay_tree_free): Remove.
4599         (allocno_spill_sort_compare): New function.
4600         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
4601         build and use splay tree.  Choose first allocno in uncolorable
4602         allocno bucket to spill.  Remove setting spill cost.
4603         (all_conflicting_hard_regs): Remove.
4604         (setup_allocno_available_regs_num): Check only profitable hard
4605         regs.  Print info about hard regs nodes.
4606         (setup_allocno_left_conflicts_size): Remove.
4607         (put_allocno_into_bucket): Don't call
4608         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
4609         (improve_allocation): New.
4610         (color_allocnos): Call setup_profitable_hard_regs,
4611         form_object_hard_regs_nodes_forest, improve_allocation,
4612         finish_object_hard_regs_nodes_forest.  Setup spill cost.
4613         (print_loop_title): Use pressure classes.
4614         (color_allocnso): Ditto.
4615         (do_coloring): Remove allocation and freeing splay_tree_node_pool
4616         and allocnos_for_spilling.
4617         (ira_sort_regnos_for_alter_reg): Don't setup members
4618         {first,next}_coalesced_allocno.
4619         (color): Remove allocating and freeing removed_splay_allocno_vec.
4620         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
4621         prohibited_class_mode_regs.
4622
4623         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
4624         formatting.
4625         (update_allocno_pressure_excess_length): Use pressure classes.
4626         (inc_register_pressure, dec_register_pressure): Check for pressure
4627         class.
4628         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
4629         pressure class.  Use ira_reg_class_nregs instead of
4630         ira_reg_class_max_nregs.
4631         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
4632         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
4633         (single_reg_class): Use ira_reg_class_nregs instead of
4634         ira_reg_class_max_nregs.
4635         (process_bb_node_lives): Use pressure classes.
4636
4637         * ira-emit.c: Remove mentioning cover classes from the file.  Use
4638         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
4639         (change_loop): Use pressure classes.
4640         (modify_move_list): Call ira_set_allocno_class instead of
4641         ira_set_allocno_cover_class.
4642
4643         * ira-build.c: Remove mentioning cover classes from the file.  Use
4644         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
4645         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
4646         ALLOCNO_UPDATED_CLASS_COST instead of
4647         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
4648         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
4649         (ira_create_allocno): Remove initialization of
4650         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
4651         ALLOCNO_COLORABLE_P.
4652         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
4653         Update conflict regs for the objects.
4654         (create_cap_allocno): Remove assert.  Don't propagate
4655         ALLOCNO_AVAILABLE_REGS_NUM.
4656         (ira_free_allocno_costs): New function.
4657         (finish_allocno): Change a part of code into call of
4658         ira_free_allocno_costs.
4659         (low_pressure_loop_node_p): Use pressure classes.
4660         (object_range_compare_func): Don't compare classes.
4661         (setup_min_max_conflict_allocno_ids): Ditto.
4662
4663         * loop-invariant.c: Remove mentioning cover classes from the file.
4664         Use ira_pressure_classes and ira_pressure_classes_num instead of
4665         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
4666         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
4667         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4668         Use reg_allocno_class instead of reg_cover_class.
4669         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
4670         STACK_REG_COVER_CLASS.
4671         (get_regno_cover_class): Rename to get_regno_pressure_class.
4672         (move_loop_invariants): Initialize and finalize regstat.
4673
4674         * ira.c: Remove mentioning cover classes from the file.  Add
4675         comments about coloring without cover classes.  Use ALLOCNO_CLASS
4676         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
4677         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
4678         setup_class_subset_and_memory_move_costs.
4679         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
4680         (setup_cover_and_important_classes): Rename to
4681         setup_allocno_and_important_classes.
4682         (setup_class_translate_array): New.
4683         (setup_class_translate): Call it for allocno and pressure classes.
4684         (cover_class_order): Rename to allocno_class_order.
4685         (comp_reg_classes_func): Use ira_allocno_class_translate instead
4686         of ira_class_translate.
4687         (reorder_important_classes): Set up ira_important_class_nums.
4688         (setup_reg_class_relations): Set up ira_reg_class_superunion.
4689         (print_class_cover): Rename to print_classes.  Add parameter.
4690         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
4691         Print pressure classes too.
4692         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
4693         setup_reg_subclasses.
4694         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
4695         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4696         (setup_prohibited_class_mode_regs): Use
4697         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
4698         (clarify_prohibited_class_mode_regs): New function.
4699         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
4700         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
4701         (ira_init_once): Initialize them.
4702         (free_register_move_costs): Process them.
4703         (ira_init): Move calls of find_reg_classes and
4704         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
4705         Call clarify_prohibited_class_mode_regs.
4706         (ira_no_alloc_reg): Remove.
4707         (too_high_register_pressure_p): Use pressure classes.
4708
4709         * sched-deps.c: Remove mentioning cover classes from the file.
4710         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
4711         ira_pressure_classes and ira_pressure_classes_num instead of
4712         ira_reg_class_cover_size and ira_reg_class_cover.
4713         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
4714         sched_regno_pressure_class instead of sched_regno_cover_class.
4715         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
4716         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4717
4718         * ira.h: Add 2010 to Copyright.
4719         (ira_no_alloc_reg): Remove external.
4720         (struct target_ira): Rename x_ira_hard_regno_cover_class,
4721         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
4722         x_ira_class_translate to x_ira_hard_regno_allocno_class,
4723         x_ira_allocno_classes_num, x_ira_allocno_classes, and
4724         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
4725         x_ira_pressure_classes, x_ira_pressure_class_translate, and
4726         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
4727         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
4728         x_ira_no_alloc_regs.
4729         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
4730         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
4731         ira_allocno_classes_num and ira_allocno_classes.
4732         (ira_class_translate): Rename to ira_allocno_class_translate.
4733         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
4734         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
4735         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4736         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
4737         (ira_no_alloc_regs): New.
4738
4739         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
4740         classes from the file.  Use ALLOCNO_CLASS instead of
4741         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
4742         ALLOCNO_COVER_CLASS_COST.
4743         (regno_cover_class): Rename to regno_aclass.
4744         (record_reg_classes): Use ira_reg_class_subunion instead of
4745         ira_reg_class_union.
4746         (record_address_regs): Check overflow.
4747         (scan_one_insn): Ditto.
4748         (print_allocno_costs): Print total mem cost fore regional allocation.
4749         (print_pseudo_costs): Use REG_N_REFS.
4750         (find_costs_and_classes): Use classes intersected with them on the
4751         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
4752         ira_reg_class_union.  Use ira_allocno_class_translate and
4753         regno_aclass instead of ira_class_translate and regno_cover_class.
4754         Modify code for finding regno_aclass.  Setup preferred classes for
4755         the next pass.
4756         (setup_allocno_cover_class_and_costs): Rename to
4757         setup_allocno_class_and_costs.  Use regno_aclass instead of
4758         regno_cover_class.  Use ira_set_allocno_class instead of
4759         ira_set_allocno_cover_class.
4760         (init_costs, finish_costs): Use regno_aclass instead of
4761         regno_cover_class.
4762         (ira_costs): Use setup_allocno_class_and_costs instead of
4763         setup_allocno_cover_class_and_costs.
4764         (ira_tune_allocno_costs_and_cover_classes): Rename to
4765         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
4766         by processing objects.  Use ira_reg_class_max_nregs instead of
4767         ira_reg_class_nregs.
4768
4769         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
4770
4771         * sched-int.h: Remove mentioning cover classes from the file.
4772         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
4773
4774         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
4775         classes from the file.
4776         (struct reg_pref): Rename coverclass into allocnoclass.
4777         (reg_cover_class): Rename to reg_allocno_class.
4778
4779         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
4780
4781         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
4782
4783         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
4784
4785         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
4786
4787         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
4788
4789         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
4790
4791         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
4792
4793         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
4794
4795         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
4796
4797         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
4798
4799         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
4800         (i386_ira_cover_classes): Ditto.
4801
4802         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
4803
4804         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
4805
4806         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
4807
4808         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
4809
4810         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
4811
4812         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
4813
4814         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
4815         (mips_ira_cover_classes): Ditto.
4816
4817         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
4818
4819         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
4820
4821         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
4822
4823         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
4824
4825         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
4826
4827         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
4828         (IRA_COVER_CLASSES_VSX): Ditto.
4829
4830         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
4831         (rs6000_ira_cover_classes): Ditto.
4832
4833         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
4834
4835         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
4836
4837         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
4838
4839         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
4840
4841         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
4842
4843         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
4844
4845         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
4846
4847         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
4848
4849         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
4850
4851         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
4852
4853 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
4854
4855         PR debug/48253
4856         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
4857         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
4858         dw_fde_unlikely_section_end_label, cold_in_std_section,
4859         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
4860         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
4861         fields.
4862         (output_fde): Use dw_fde_second_{begin,end} if second is
4863         true, otherwise dw_fde_{begin,end}.
4864         (output_call_frame_info): Test dw_fde_second_begin != NULL
4865         instead of dw_fde_switched_sections.
4866         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
4867         fields, initialize new fields.  Initialize in_std_section
4868         unconditionally from the first partition.
4869         (dwarf2out_end_epilogue): Don't override dw_fde_end when
4870         dw_fde_second_begin is non-NULL.
4871         (dwarf2out_switch_text_section): Stop initializing removed
4872         dw_fde_struct fields, initialize new fields, initialize
4873         also dw_fde_end here.  Set dw_fde_switch_cfi even when
4874         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
4875         (struct var_loc_list_def): Add last_before_switch field.
4876         (arange_table, arange_table_allocated, arange_table_in_use,
4877         ARANGE_TABLE_INCREMENT, add_arange): Removed.
4878         (size_of_aranges): Count !in_std_section and !second_in_std_section
4879         hunks in fdes, instead of looking at arange_table_in_use.
4880         (output_aranges): Add aranges_length argument, don't call
4881         size_of_aranges here.  Instead of using aranges_table*
4882         emit ranges for fdes when !in_std_section resp.
4883         !second_in_std_section.
4884         (dw_loc_list): Break ranges crossing section switch.
4885         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
4886         use dw_fde_second_end instead of dw_fde_end as end of last range.
4887         (gen_subprogram_die): Don't call add_arange.  Use
4888         dw_fde_{begin,end} for first partition and if switched
4889         section dw_fde_second_{begin,end} for the second.
4890         (var_location_switch_text_section_1,
4891         var_location_switch_text_section): New functions.
4892         (dwarf2out_begin_function): Initialize cold_text_section even
4893         when function_section () isn't text_section.
4894         (prune_unused_types): Don't walk arange_table.
4895         (dwarf2out_finish): Don't needlessly test
4896         flag_reorder_blocks_and_partition when testing cold_text_section_used.
4897         If info_section_emitted, call size_of_aranges and if it indicates
4898         non-empty .debug_aranges, call output_aranges with the computed
4899         size.  Stop using removed dw_fde_struct fields, use
4900         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
4901         for second.
4902
4903         PR debug/48203
4904         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
4905         create ENTRY_VALUE if incoming or address of incoming's MEM
4906         is a hard REG.
4907         * dwarf2out.c (mem_loc_descriptor): Don't emit
4908         DW_OP_GNU_entry_value of DW_OP_fbreg.
4909         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
4910         on ENTRY_VALUE is able to find the canonical parameter VALUE.
4911         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
4912         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
4913         ENTRY_VALUE_EXPs.
4914         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
4915         is a REG_P or MEM_P with REG_P address, compute hash directly
4916         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
4917         (preserve_only_constants): Don't clear VALUES forwaring
4918         ENTRY_VALUE to some other VALUE.
4919
4920 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
4921
4922         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
4923         instead of GEN_INT.
4924
4925 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
4926
4927         * cfgexpand.c (expand_gimple_cond): Always set the source location and
4928         block before expanding the statement.
4929         (expand_gimple_stmt_1): Likewise.  Set them here...
4930         (expand_gimple_stmt): ...and not here.  Tidy.
4931         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
4932         unknown.
4933
4934 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
4935
4936         * Makefile.in: New rule for cprop.o.
4937         * gcse.c: Move constant/copy propagation to cprop.c.
4938         (compute_local_properties): Only handle expression tables.
4939         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
4940         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
4941         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
4942         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
4943         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
4944         compute_cprop_data, find_used_regs, try_replace_reg,
4945         find_avail_set, cprop_jump, constprop_register, cprop_insn,
4946         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
4947         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
4948         find_bypass_set, reg_killed_on_edge, bypass_block,
4949         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
4950         execute_rtl_cprop, pass_rtl_cprop): Move to...
4951         * cprop.c: ...here.  New file, constant/copy propagation for RTL
4952         moved from gcse.c to here with minor cleanups in duplicated code.
4953
4954 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
4955
4956         * config/i386/i386.c (flag_opts): Fix a typo in
4957         -mavx256-split-unaligned-store.
4958
4959 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
4960
4961         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
4962         LIBCALL_VALUE): Remove macros.
4963         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4964         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4965         (h8300_function_value, h8300_libcall_value,
4966         h8300_function_value_regno_p): New functions.
4967
4968 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
4969
4970         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
4971
4972 2011-03-28  Jeff Law  <law@redhat.com>
4973
4974         * tree-ssa-threadupdate.c (redirect_edges): Call
4975         create_edge_and_update_destination_phis as needed.
4976         (create_edge_and_update_destination_phis): Accept new BB argument.
4977         All callers updated.
4978         (thread_block): Do not update the profile when threading around
4979         intermediate blocks.
4980         (thread_single_edge): Likewise.
4981         (determine_bb_domination_status): If BB is not a successor of the
4982         loop header, return NONDOMINATING.
4983         (register_jump_thread): Note when we register a jump thread around
4984         an intermediate block.
4985         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
4986         (thread_across_edge): Use it.
4987
4988 2011-03-28  Tristan Gingold  <gingold@adacore.com>
4989
4990         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
4991         when for_return is 2.
4992
4993 2011-03-28  Jeff Law  <law@redhat.com>
4994
4995         * var-tracking.c (canonicalize_values_mark): Delete unused
4996         lhs assignment.
4997         (canonicalize_values_star, set_variable_part): Likewise.
4998         (clobber_variable_part, delete_variable_part): Likewise.
4999
5000 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
5001
5002         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
5003
5004 2011-03-28  Martin Jambor  <mjambor@suse.cz>
5005
5006         * tree-inline.c (expand_call_inline): Do not check that destination
5007         node is analyzed.
5008         (optimize_inline_calls): Assert that destination node is analyzed.
5009         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
5010         not call tree_lowering_passes.
5011         * cgraph.h (cgraph_analyze_function): Declare.
5012         * cgraphunit.c (cgraph_analyze_function): Make public.
5013
5014 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
5015
5016         * config/sparc/sparc-opts.h: New.
5017         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
5018         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
5019         (sparc_option_override): Store processor_type enumeration rather
5020         than string in cpu_default.  Remove name and enumeration from
5021         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
5022         without using sparc_select.  Use target_flags_explicit instead of
5023         fpu_option_set.
5024         * config/sparc/sparc.h (enum processor_type): Move to
5025         sparc-opts.h.
5026         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
5027         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
5028         HeaderInclude entry.
5029         (mcpu=, mtune=): Use Var and Enum.
5030         (sparc_processor_type): New Enum and EnumValue entries.
5031
5032 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5033             Iain Sandoe  <iains@gcc.gnu.org>
5034
5035         PR target/48245
5036         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
5037
5038 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
5039
5040         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
5041         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
5042         Insert new statements at it in lieu of STMT.
5043         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
5044         * tree-vect-stmts.c (vectorizable_store): Likewise.
5045         (vectorizable_load): Likewise.
5046
5047 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
5048
5049         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
5050         (divtf3): Ditto.
5051         (multf3): Ditto.
5052         (subtf3): Ditto.
5053
5054 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
5055
5056         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
5057         unaligned 256bit load/store.
5058         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
5059         (*avx_movdqu<avxmodesuffix>): Likewise.
5060
5061 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5062
5063         PR target/48288
5064         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
5065         * config/pa/pa.md (iordi3): Use new predicate in expander.
5066         (iorsi3): Likewise.
5067
5068 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
5069
5070         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
5071         FUNCTION_VALUE_REGNO_P): Remove macros.
5072         * config/mips/mips-protos.h (mips_function_value): Remove.
5073         * config/mips/mips.c (mips_function_value): Rename to...
5074         (mips_function_value_1): ... this. Make static.  Handle receiving
5075         the function type in 'fn_decl_or_type' argument.
5076         (mips_function_value, mips_libcall_value,
5077         mips_function_value_regno_p): New function.
5078         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5079         TARGET_FUNCTION_VALUE_REGNO_P): Define.
5080
5081 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
5082
5083         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
5084         and -mavx256-split-unaligned-store.
5085         (ix86_option_override_internal): Split 32-byte AVX unaligned
5086         load/store by default.
5087         (ix86_avx256_split_vector_move_misalign): New.
5088         (ix86_expand_vector_move_misalign): Use it.
5089
5090         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
5091         -mavx256-split-unaligned-store.
5092
5093         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
5094         256bit load/store.  Generate unaligned store on misaligned memory
5095         operand.
5096         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
5097         256bit load/store.
5098         (*avx_movdqu<avxmodesuffix>): Likewise.
5099
5100         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
5101         -mavx256-split-unaligned-store.
5102
5103 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
5104
5105         PR target/38598
5106         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
5107         Update commentary.
5108
5109 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
5110
5111         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
5112         opno arguments with an expand_operand.  Use create_input_operand.
5113         (mips_prepare_builtin_target): Delete.
5114         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
5115         functions.
5116         (mips_expand_builtin_direct): Use create_output_operand and
5117         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
5118         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
5119         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
5120
5121 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
5122
5123         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
5124         function.
5125         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
5126
5127 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
5128
5129         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
5130         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
5131         basic blocks and call commit_edge_insertions directly.
5132         (fixup_abnormal_edges): Move from here to...
5133         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
5134         on the edges and return whether some have actually been inserted.
5135         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
5136         compensation code.
5137
5138 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
5139
5140         PR rtl-optimization/48144
5141         * sel-sched-ir.c (merge_history_vect): Factor out from ...
5142         (merge_expr_data): ... here.
5143         (av_set_intersect): Rename to av_set_code_motion_filter.
5144         Update all callers.  Call merge_history_vect when an expression
5145         is found in both sets.
5146         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
5147
5148 2011-03-26  Alan Modra  <amodra@gmail.com>
5149
5150         * config/rs6000/predicates.md (word_offset_memref_op): Handle
5151         cmodel medium addresses.
5152         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
5153         64-bit gpr loads and stores.
5154         (rs6000_secondary_reload_ppc64): New function.
5155         * config/rs6000/rs6000-protos.h: Declare it.
5156         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
5157
5158 2011-03-26  Alan Modra  <amodra@gmail.com>
5159
5160         PR target/47487
5161         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
5162         GNU Go in traceback table.
5163
5164 2011-03-25  Richard Henderson  <rth@redhat.com>
5165
5166         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
5167         if there are exactly 6 operands.
5168         (set_storage_via_setmem): Similarly.
5169
5170 2011-03-25  Kai Tietz  <ktietz@redhat.com>
5171
5172         * collect2.c (write_c_file_stat): Handle backslash
5173         as right-hand directory separator.
5174         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
5175         checking just for slash.
5176         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
5177         instead of checking for trailing slash.
5178         * gcc.c (record_temp_file): Use filename_cmp instead
5179         of strcmp.
5180         (do_spec_1): Likewise.
5181         (replace_outfile_spec_function): Likewise.
5182         (is_directory): Use filename_ncmp instead of strncmp.
5183         (print_multilib_info): Likewise.
5184         * gcov.c (find_source): Use filename_cmp instead
5185         instead of strcmp.
5186         (make_gcov_file_name): Fix order of slash/backslash
5187         checks.
5188         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
5189         (add_standard_paths): Likewise.
5190         * mips-tfile.c (saber_stop): Handle backslash.
5191         * prefix.c (update_path): Use filename_ncmp instead of
5192         strncmp.
5193         * profile.c (output_location): Use filename_cmp instead
5194         of strcmp.
5195         * read-md.c (handle_toplevel_file): Handle backslash.
5196         * tlink.c (frob_extension):  Likewise.
5197         * tree-cfg.c (same_line_p): Use filename_cmp instead of
5198         strcmp.
5199         * tree-dump.c (dequeue_and_dump): Handle backslash.
5200         * tree.c (get_file_function_name): Likewise.
5201         * gengtype.c (read_input_list): Likewise.
5202         (get_file_realbasename): Likewise.
5203         (get_output_file_with_visibility): Use filename_cmp
5204         instead of strcmp.
5205
5206 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
5207
5208         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
5209         case to VFPv1.
5210
5211 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
5212
5213         * fold-const.c (expr_location_or): New function.
5214         (fold_truth_not_expr): Call it.
5215
5216 2011-03-25  Jeff Law  <law@redhat.com>
5217
5218         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
5219         va_end.
5220         * c-family/c-common.c (def_fn_type): Likewise.
5221         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
5222         * emit-rtl.c (gen_rtvec): Likewise.
5223         * lto/lto-lang.c (def_fn_type): Likewise.
5224
5225 2011-03-25  Richard Guenther  <rguenther@suse.de>
5226
5227         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
5228         also generate copies.
5229         (fini_copy_prop): Handle constant values properly.
5230
5231 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
5232
5233         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
5234         mode size instead of bitsize with DWARF2_ADDR_SIZE.
5235         (hash_loc_operands, compare_loc_operands): Handle
5236         DW_OP_GNU_entry_value.
5237
5238 2011-03-25  Kai Tietz  <ktietz@redhat.com>
5239
5240         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
5241         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
5242         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
5243         comment and use macro TARGET_64BIT_MS_ABI instead.
5244         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
5245         and change default behavior for 32-bit MS_ABI.
5246         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
5247         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
5248         32-bit, too.
5249         (ix86_cfun_abi): Likewise.
5250         (ix86_maybe_switch_abi): Adjust comment.
5251         (init_cumulative_args): Check for bit-ness in MS_ABI case.
5252         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
5253         instead of checking for SYSV_ABI.
5254         (ix86_nsaved_sseregs): Likewise.
5255         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
5256         to 16 bytes.
5257         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
5258         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
5259         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
5260         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
5261         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
5262
5263 2011-03-25  Richard Guenther  <rguenther@suse.de>
5264
5265         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
5266         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
5267         (verify_gimple): Remove.
5268         * tree-cfg.c (verify_gimple_call): Merge verification
5269         from verify_stmts.
5270         (verify_gimple_phi): Merge verification from verify_stmts.
5271         (verify_gimple_label): New function.
5272         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
5273         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
5274         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
5275         (verify_stmts): Rename to verify_gimple_in_cfg.
5276         (verify_gimple_in_cfg): New function.
5277         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
5278         * tree-ssa.c (verify_ssa): Likewise.
5279         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
5280
5281 2011-03-25  Richard Guenther  <rguenther@suse.de>
5282
5283         * passes.c (init_optimization_passes): Add FRE pass after
5284         early SRA.
5285
5286 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
5287             Andrew Stubbs  <ams@codesourcery.com>
5288
5289         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
5290         for Cortex-A8.
5291         (arm_movdi_vfp_cortexa8): New pattern.
5292         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
5293         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
5294         instructions when tuning for Cortex-A8.  Set attribute "arch".
5295         * config/arm/arm.md: Move include arm-tune.md up a bit.
5296         (define_attr "arch"): Add "onlya8" and "nota8" values.
5297         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
5298
5299 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
5300
5301         PR bootstrap/48282
5302         Revert:
5303         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5304
5305         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5306         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
5307         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5308         * passes.c (init_optimization_passes): Move
5309         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5310
5311 2011-03-25  Kai Tietz  <ktietz@redhat.com>
5312
5313         * c-typeck.c (comptypes_internal): Replace target
5314         hook call of comp_type_attributes by version in tree.c file.
5315         * gimple.c (gimple_types_compatible_p_1): Likewise.
5316         * tree-ssa.c (useless_type_conversion_p): Likewise.
5317         * tree.c (build_type_attribute_qual_variant): Likewise.
5318         (attribute_value_equal): New static helper function.
5319         (comp_type_attributes): New function.
5320         (merge_attributes): Use attribute_value_equal for comparison.
5321         (attribute_list_contained): Likewise.
5322         * tree.h (comp_type_attributes): New prototype.
5323
5324 2011-03-25  Richard Guenther  <rguenther@suse.de>
5325
5326         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
5327         of complex types at -O0.
5328         (verify_gimple_assign_binary): Likewise.
5329         (verify_gimple_assign_ternary): Likewise.
5330
5331 2011-03-24  Mark Wielaard  <mjw@redhat.com>
5332
5333         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
5334         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
5335
5336 2011-03-24  Mark Wielaard  <mjw@redhat.com>
5337
5338         PR debug/48041
5339         * dwarf2out.c (output_abbrev_section): Only write table when
5340         abbrev_die_table_in_use > 1.
5341
5342 2011-02-24  Richard Henderson  <rth@redhat.com>
5343
5344         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
5345         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
5346         (alpha_expand_unaligned_load_words): Use extql.
5347         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
5348         (emit_insxl): Handle all modes for consistency.
5349
5350 2011-02-24  Richard Henderson  <rth@redhat.com>
5351
5352         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
5353         (alpha_expand_unaligned_load): Likewise.
5354         (alpha_expand_unaligned_store): Likewise.
5355         (alpha_expand_unaligned_load_words): Likewise.
5356         (alpha_expand_unaligned_store_words): Likewise.
5357         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
5358         (alpha_split_lock_test_and_set_12): Likewise.
5359         (print_operand, alpha_fold_builtin_extxx): Likewise.
5360         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
5361         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
5362         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
5363         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
5364         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
5365         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
5366         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
5367         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
5368         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
5369         (extwl, extll, extql): Similarly.
5370         (inswh, inslh, insqh): Similarly.
5371         (mskbl, mskwl, mskll, mskql): Similarly.
5372         (mskwh, msklh, mskqh): Similarly.
5373
5374 2011-02-24  Richard Henderson  <rth@redhat.com>
5375
5376         * config/alpha/alpha.md (attribute isa): Add er, ner.
5377         (attribute enabled): Handle them.
5378         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
5379
5380 2011-02-24  Richard Henderson  <rth@redhat.com>
5381
5382         * config/alpha/alpha.md (attribute isa): Add vms.
5383         (attribute enabled): Handle it.
5384         (*movsf): Merge *movsf_{nofix,fix,nofp}.
5385         (*movdf): Merge *movdf_{nofix,fix,nofp}.
5386         (*movtf): Rename from *movtf_internal for consistency.
5387         (*movsi): Merge with *movsi_nt_vms.
5388         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
5389         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
5390         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
5391         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
5392
5393 2011-02-24  Richard Henderson  <rth@redhat.com>
5394
5395         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
5396         (extendqisi2, extendhisi2): Likewise.
5397         (extendqidi2): Simplify BWX/non-BWX expansions.
5398         (extendhidi2): Similarly.
5399
5400 2011-02-24  Richard Henderson  <rth@redhat.com>
5401
5402         * config/alpha/alpha.md (attribute isa): New.
5403         (attribute enabled): New.
5404         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
5405         (zero_extendqisi2, zero_extendqidi2): Similarly.
5406         (zero_extendhisi2, zero_extendhidi2): Similarly.
5407         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
5408
5409 2011-02-24  Richard Henderson  <rth@redhat.com>
5410
5411         * config/alpha/predicates.md (input_operand): Revert last change;
5412         update comment to mention 32-bit VMS rather than Windows.
5413
5414 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5415
5416         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5417         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
5418         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5419         * passes.c (init_optimization_passes): Move
5420         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5421
5422 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
5423
5424         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
5425
5426 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
5427
5428         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
5429         correctly.
5430
5431 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
5432
5433         PR debug/48204
5434         * simplify-rtx.c (simplify_const_unary_operation): Call
5435         real_convert when changing mode class with FLOAT_EXTEND.
5436
5437 2011-03-24  Nick Clifton  <nickc@redhat.com>
5438
5439         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
5440         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
5441         * config/rx/rx.c (rx_option_override): Set align_jumps,
5442         align_loops and align_labels if not set by the user.
5443         (rx_align_for_label): New function.
5444         (rx_max_skip_for_label): New function.
5445         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
5446         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
5447         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
5448         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
5449         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
5450
5451 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
5452
5453         PR rtl-optimization/48263
5454         * optabs.c (expand_binop_directly): Reinstate convert_modes code
5455         and original commutative_p handling.  Use maybe_gen_insn.
5456
5457 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5458
5459         * reload.c (find_reloads_subreg_address): Add address_reloaded
5460         parameter and return true there if the full address has been
5461         reloaded.
5462         (find_reloads_toplev): Pass address_reloaded flag.
5463         (find_reloads_address_1): Don't use address_reloaded parameter.
5464
5465 2011-03-24  Jeff Law  <law@redhat.com>
5466
5467         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
5468         unused variable "ann".
5469         (remove_unused_locals): Likewise.
5470
5471         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
5472         statement.
5473
5474         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
5475         after it is freed.
5476
5477 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5478
5479         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
5480         for invalid symbolic addresses.
5481         (s390_secondary_reload): Don't use s390_check_symref_alignment for
5482         larl operands.
5483
5484 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
5485
5486         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
5487         the argument in calls to fold_truth_not_expr.
5488
5489 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5490
5491         * tree.c (record_node_allocation_statistics): New function.
5492         (make_node_stat, copy_node_stat, build_string): Call it.
5493         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
5494         (build1_stat, build_omp_clause): Likewise.
5495
5496 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
5497
5498         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
5499         last commit.
5500
5501 2011-03-24  Richard Guenther  <rguenther@suse.de>
5502
5503         PR tree-optimization/48271
5504         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
5505         blocks that still exist.
5506
5507 2011-03-24  Richard Guenther  <rguenther@suse.de>
5508
5509         PR tree-optimization/48270
5510         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
5511         not free datarefs before ddrs.
5512
5513 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
5514
5515         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
5516         from the address built for a reference with variable offset.
5517
5518 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
5519
5520         PR target/48237
5521         * config/i386/i386.md (*movdf_internal_rex64): Do not split
5522         alternatives that can be handled with movq or movabsq insn.
5523         (*movdf_internal): Disable for !TARGET_64BIT.
5524         (*movdf_internal_nointeger): Ditto.
5525         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
5526
5527 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5528
5529         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
5530         (FUNCTION_ARG_ADVANCE): Likewise.
5531         * tm.texi.in: Change references to them to hook references.
5532         * tm.texi: Regenerate.
5533         * targhooks.c (default_function_arg): Eliminate check for target macro.
5534         (default_function_incoming_arg): Likewise.
5535         (default_function_arg_advance): Likewise.
5536         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
5537         (function_arg_advance): Likewise.
5538         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
5539
5540 2011-03-24  Richard Guenther  <rguenther@suse.de>
5541
5542         PR middle-end/48269
5543         * tree-object-size.c (addr_object_size): Do not double-account
5544         for MEM_REF offsets.
5545
5546 2011-03-24  Diego Novillo  <dnovillo@google.com>
5547
5548         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
5549         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
5550         (lto_input_data_block): Move from lto-opts.c.  Make extern.
5551         Update all users.
5552         (lto_input_string): Rename from input_string.  Make extern.
5553         Update all users.
5554         * lto-streamer-out.c (lto_output_string_with_length): Rename from
5555         output_string_with_length.
5556         Output 0 to indicate a non-NULL string.  Update all callers to
5557         not emit 0.
5558         (lto_output_string): Rename from output_string.  Make extern.
5559         Update all users.
5560         (lto_output_decl_state_streams): Make extern.
5561         (lto_output_decl_state_refs): Make extern.
5562         * lto-streamer.h (lto_input_string): Declare.
5563         (lto_input_data_block): Declare.
5564         (lto_output_string): Declare.
5565         (lto_output_string_with_length): Declare.
5566         (lto_output_decl_state_streams): Declare.
5567         (lto_output_decl_state_refs): Declare.
5568
5569 2011-03-24  Richard Guenther  <rguenther@suse.de>
5570
5571         PR tree-optimization/46562
5572         * tree.c (build_invariant_address): New function.
5573         * tree.h (build_invariant_address): Declare.
5574         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
5575         a renamed function moved ...
5576         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
5577         Take valueization callback parameter.
5578         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
5579         * gimple-fold.h: New file.
5580         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
5581         (ccp_fold, fold_const_aggregate_ref,
5582         fold_ctor_reference, fold_nonarray_ctor_reference,
5583         fold_array_ctor_reference, fold_string_cst_ctor_reference,
5584         get_base_constructor): Move ...
5585         * gimple-fold.c: ... here.
5586         (gimple_fold_stmt_to_constant_1): New function
5587         split out from ccp_fold.  Take a valueization callback parameter.
5588         Valueize all operands.
5589         (gimple_fold_stmt_to_constant): New wrapper function.
5590         (fold_const_aggregate_ref_1): New function split out from
5591         fold_const_aggregate_ref.  Take a valueization callback parameter.
5592         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
5593         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
5594         invariant POINTER_PLUS_EXPRs to invariant form.
5595         (vn_valueize): New function.
5596         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
5597         * tree-vrp.c (vrp_valueize): New function.
5598         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
5599         to fold statements to constants.
5600         * tree-ssa-pre.c (eliminate): Properly guard propagation of
5601         function declarations.
5602         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
5603         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
5604
5605 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
5606
5607         * config/h8300/predicates.md (jump_address_operand): Fix register
5608         mode check.
5609
5610 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
5611
5612         * doc/invoke.texi (max-stores-to-sink): Document.
5613         * params.h (MAX_STORES_TO_SINK): Define.
5614         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
5615         if either vectorization or if-conversion is disabled.
5616         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
5617         tree-vect-data-refs.c vect_equal_offsets.
5618         (dr_equal_offsets_p): New function.
5619         (find_data_references_in_bb): Remove static.
5620         * tree-data-ref.h (find_data_references_in_bb): Declare.
5621         (dr_equal_offsets_p): Likewise.
5622         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
5623         (vect_drs_dependent_in_basic_block): Update calls to
5624         vect_equal_offsets.
5625         (vect_check_interleaving): Likewise.
5626         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
5627         (cond_if_else_store_replacement): Rename to...
5628         (cond_if_else_store_replacement_1): ... this.  Change arguments and
5629         documentation.
5630         (cond_if_else_store_replacement): New function.
5631         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
5632         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
5633
5634 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
5635
5636         PR target/46934
5637         * config/arm/arm.md (casesi): Use the gen_int_mode() function
5638         to subtract lower bound instead of GEN_INT().
5639
5640 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
5641
5642         PR other/48179
5643         PR other/48221
5644         PR other/48234
5645         * doc/extend.texi (Alignment): Move section to match order in TOC.
5646         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
5647         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
5648
5649 2011-03-23  Jeff Law  <law@redhat.com>
5650
5651         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
5652         before removing the edge.
5653
5654         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
5655         it may have been freed by redirect_branch_edge or
5656         redirect_edge_succ_nodup.
5657
5658 2011-03-23  Richard Guenther  <rguenther@suse.de>
5659
5660         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
5661         (check_va_list_escapes): Likewise.
5662         (check_all_va_list_escapes): Likewise.
5663
5664 2011-03-23  Richard Guenther  <rguenther@suse.de>
5665
5666         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
5667         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
5668         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
5669         (alias.o): Likewise.
5670         (ipa-type-escape.o): Remove.
5671         (ipa-struct-reorg.o): Likewise.
5672         (GTFILES): Remove ipa-struct-reorg.c.
5673         * alias.c: Do not include ipa-type-escape.h.
5674         * tree-ssa-alias.c: Likewise.
5675         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
5676         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
5677         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
5678         and ipa-type-escape passes.
5679         * tree-pass.h (pass_ipa_type_escape): Remove.
5680         (pass_ipa_struct_reorg): Likewise.
5681         * ipa-struct-reorg.h: Remove.
5682         * ipa-struct-reorg.c: Likewise.
5683         * ipa-type-escape.h: Likewise.
5684         * ipa-type-escape.c: Likewise.
5685         * doc/invoke.texi (-fipa-struct-reorg): Remove.
5686         (--param struct-reorg-cold-struct-ratio): Likewise.
5687         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
5688         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
5689         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
5690
5691 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5692
5693         * config/s390/2084.md: Enable all insn reservations also for z9_ec
5694         cpu attribute value.
5695         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
5696         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
5697         * config/s390/s390.c (processor_flags_table): New constant array.
5698         (s390_handle_arch_option): Remove.
5699         (s390_handle_option): Remove s390_handle_arch_option invocations
5700         and OPT_mwarn_framesize_ handling.
5701         (s390_option_override): Remove s390_handle_arch_option invocation.
5702         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
5703         warnings.
5704         * config/s390/s390.md (cpu attribute): Add z9_ec value.
5705         * config/s390/s390.opt (s390_tune, s390_arch)
5706         (march=): Replace s390_arch_option enum and values with
5707         processor_type.  Set variable name to s390_arch.  Set
5708         initialization value.
5709         (mtune=): Replace s390_arch_option with processor_type.  Set
5710         variable name to s390_tune.  Set initialization value.
5711
5712 2011-03-23  Julian Brown  <julian@codesourcery.com>
5713
5714         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
5715         accesses which are not naturally aligned.
5716
5717 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
5718
5719         PR target/47553
5720         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
5721
5722 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
5723
5724         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
5725         parameter from "int" to "enum insn_code".
5726         (expand_operand_type): New enum.
5727         (expand_operand): New structure.
5728         (create_expand_operand): New function.
5729         (create_fixed_operand, create_output_operand): Likewise
5730         (create_input_operand, create_convert_operand_to): Likewise.
5731         (create_convert_operand_from, create_address_operand): Likewise.
5732         (create_integer_operand): Likewise.
5733         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
5734         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5735         (expand_insn, expand_jump_insn): Likewise.
5736         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
5737         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
5738         (expand_movstr, expand_builtin___clear_cache): Likewise.
5739         (expand_builtin_lock_release): Likewise.
5740         * explow.c (allocate_dynamic_stack_space): Likewise.
5741         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
5742         and use the default handling in that case.
5743         * expmed.c (check_predicate_volatile_ok): Delete.
5744         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
5745         (emit_cstore): Likewise.
5746         * expr.c (emit_block_move_via_movmem): Likewise.
5747         (set_storage_via_setmem, expand_assignment): Likewise.
5748         (emit_storent_insn, try_casesi): Likewise.
5749         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
5750         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
5751         (expand_vec_shift_expr, expand_binop_directly): Likewise.
5752         (expand_twoval_unop, expand_twoval_binop): Likewise.
5753         (expand_unop_direct, emit_indirect_jump): Likewise.
5754         (emit_conditional_move, vector_compare_rtx): Likewise.
5755         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
5756         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
5757         (expand_sync_lock_test_and_set): Likewise.
5758         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
5759         (emit_unop_insn): Likewise.
5760         (expand_copysign_absneg): Change icode to an insn_code.
5761         (create_convert_operand_from_type): New function.
5762         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
5763         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5764         (expand_insn, expand_jump_insn): Likewise.
5765         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
5766         than const_int_operand for operand 2.
5767
5768 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5769
5770         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
5771         if possible.
5772
5773 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
5774
5775         * emit-rtl.c (emit_pattern_before_noloc): New function.
5776         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
5777         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
5778         (emit_pattern_after_noloc): New function.
5779         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
5780         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
5781
5782 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
5783
5784         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
5785         (__ffsDI2): Likewise.
5786
5787 2011-03-22  Richard Henderson  <rth@redhat.com>
5788
5789         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
5790         of !TARGET_ABI_OPEN_VMS.
5791         (alpha_trampoline_init, alpha_start_function): Likewise.
5792         (alpha_expand_epilogue, alpha_file_start): Likewise.
5793         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
5794         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
5795         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
5796         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
5797         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
5798
5799 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5800
5801         * config/s390/s390-opts.h: New.
5802         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
5803         s390_arch_flags, s390_warn_framesize, s390_stack_size,
5804         s390_stack_guard): Remove.
5805         (s390_handle_arch_option): Return void.  Take enum
5806         s390_arch_option value instead of string and searching array.
5807         (s390_handle_option): Don't assert that global structures are in
5808         use.  Access variables via opts pointer.  Use error_at.  Don't use
5809         sscanf for -mstack-guard= or -mstack-size=.  Update call to
5810         s390_handle_arch_option.
5811         (s390_option_override): Update call to s390_handle_arch_option.
5812         (s390_emit_prologue): Use %d format for s390_stack_size in
5813         diagnostic.  Use %wd for HOST_WIDE_INT.
5814         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
5815         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
5816         * config/s390/s390.opt (config/s390/s390-opts.h): New
5817         HeaderInclude entry.
5818         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
5819         s390_arch_flags, s390_warn_framesize): New Variable entries.
5820         (s390_arch_option): New Enum and EnumValue entries.
5821         (march=): Use Enum instead of Var.
5822         (mstack-guard=, mstack-size=): Use UInteger and Var.
5823         (mtune=): Use Enum.
5824
5825 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5826
5827         * config/score/score.c (score_handle_option): Don't assert that
5828         global structures are in use.  Access target_flags via opts
5829         pointer.  Use value of -march= option to determine target_flags
5830         settings.
5831         * config/score/score.opt (march=): Use Enum.
5832         (score_arch): New Enum and EnumValue entries.
5833
5834 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5835
5836         * config/mep/mep.c (option_mtiny_specified): Remove.
5837         (mep_option_override): Move register handling for -mivc2 from
5838         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
5839         instead of option_mtiny_specified.
5840         (mep_handle_option): Access target_flags via opts pointer.  Don't
5841         assert that global structures are in use.  Defer part of -mivc2
5842         handling and move it to mep_option_override.
5843         * config/mep/mep.opt (IVC2): New Mask entry.
5844         (mivc2): Use Var and Defer instead of Mask.
5845
5846 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5847
5848         * config/v850/v850-opts.h: New.
5849         * config/v850/v850.c (small_memory): Replace with
5850         small_memory_physical_max array.  Make that array static const.
5851         (v850_handle_memory_option): Take integer value of argument.  Take
5852         gcc_options pointer, option text and location.  Return void.
5853         Update for changes to small memory structures.
5854         (v850_handle_option): Access target_flags via opts pointer.  Don't
5855         assert that global structures are in use.  Update calls to
5856         v850_handle_memory_option.
5857         (v850_encode_data_area): Update references to small memory settings.
5858         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
5859         (enum small_memory_type): Move to v850-opts.h.
5860         * config/v850/v850.opt (config/v850/v850-opts.h): New
5861         HeaderInclude entry.
5862         (small_memory_max): New Variable entry.
5863         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
5864         (mtda, mzda): Likewise.
5865
5866 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5867
5868         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
5869         pointer.  Don't assert that global structures are in use.
5870
5871 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5872
5873         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
5874         via opts pointer.  Don't assert that global structures are in use.
5875
5876 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5877
5878         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
5879         (munix=93): Use Var.
5880         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
5881         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
5882         * config/pa/pa-opts.h: New.
5883         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
5884         (pa_handle_option): Don't assert that global structures are in
5885         use.  Access target_flags via opts pointer.  Don't handle
5886         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
5887         OPT_munix_98 here.
5888         (pa_option_override): Handle deferred OPT_mfixed_range_.
5889
5890 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5891
5892         * config/mn10300/mn10300-opts.h: New.
5893         * config/mn10300/mn10300.c (mn10300_processor,
5894         mn10300_tune_string): Remove.
5895         (mn10300_handle_option): Don't assert that global structures are
5896         in use.  Access mn10300_processor via opts pointer.  Don't handle
5897         OPT_mtune_ here.
5898         * config/mn10300/mn10300.h (enum processor_type): Move to
5899         mn10300-opts.h.
5900         (mn10300_processor): Remove.
5901         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
5902         HeaderInclude entry.
5903         (mn10300_processor): New Variable entry.
5904         (mtune=): Use Var.
5905
5906 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5907
5908         * config/microblaze/microblaze.c: Don't include opts.h.
5909         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
5910         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
5911         (mno-clearbss): Use Var and Warn.
5912
5913 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5914
5915         * config/m32r/m32r-opts.h: New.
5916         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
5917         (m32r_handle_option): Don't assert that global structures are in
5918         use.  Access target_flags and m32r_cache_flush_func via opts
5919         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
5920         OPT_mno_flush_trap here.
5921         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
5922         include of m32r-opts.h.
5923         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
5924         HeaderInclude entry.
5925         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
5926         (mmodel=): Use Enum and Var.
5927         (m32r_model): New Enum and EnumValue entries.
5928         (mno-flush-trap): Use Var.
5929         (msdata=): Use Enum and Var.
5930         (m32r_sdata): New Enum and EnumValue entries.
5931
5932 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5933
5934         * config/m32c/m32c.c: Don't include opts.h.
5935         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
5936         m32c_handle_option): Remove.
5937         (m32c_option_override): Check global_options_set.x_target_memregs
5938         instead of target_memregs_set.
5939         * config/m32c/m32c.h (target_memregs): Remove.
5940         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
5941         variable.
5942
5943 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5944
5945         * config/iq2000/iq2000-opts.h: New.
5946         * config/iq2000/iq2000.c: Don't include opts.h.
5947         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
5948         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
5949         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
5950         HeaderInclude entry.
5951         (iq2000_tune): New Variable entry.
5952         (march=): Add comment.  Use Enum.
5953         (iq2000_arch): New Enum and EnumValue entries.
5954         (mcpu=): Use Enum and Var.
5955         (iq2000_tune): New Enum and EnumValue entries.
5956
5957 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5958
5959         * config/ia64/ia64-opts.h: New.
5960         * config/ia64/ia64.c (ia64_tune): Remove.
5961         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
5962         here.  Use error_at.
5963         (ia64_option_override): Handle deferred OPT_mfixed_range_.
5964         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
5965         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
5966         HeaderInclude entry.
5967         (ia64_tune): New Variable entry.
5968         (mfixed-range=): Use Defer and Var.
5969         (mtune=): Use Enum and Var.
5970         (ia64_tune): New Enum and EnumValue entries.
5971
5972 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5973
5974         * config/frv/frv-opts.h: New.
5975         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
5976         frv-opts.h.
5977         (frv_cpu_type): Remove.
5978         * config/frv/frv.c: Don't include opts.h.
5979         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
5980         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
5981         (frv_cpu_type): New Variable entry.
5982         (frv_cpu): New Enum and EnumValue entries.
5983
5984 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5985
5986         * config/cris/cris.c (cris_handle_option): Access target_flags via
5987         opts pointer.  Don't assert that global structures are in use.
5988         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
5989         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
5990
5991 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5992
5993         * config/bfin/bfin-opts.h: New.
5994         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
5995         bfin_si_revision, bfin_workarounds): Remove.
5996         (bfin_cpus): Make static const.
5997         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
5998         not bfin_lib_id_given.
5999         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
6000         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
6001         pointer. Use error_at.  Don't assert that global structures are in use.
6002         * config/bfin/bfin.h: Include bfin-opts.h.
6003         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
6004         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
6005         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
6006         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
6007         entries.
6008
6009 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6010
6011         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
6012         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
6013         or -msoft-float here.
6014         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
6015         -msoft-float and -mhard-float.
6016         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
6017         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
6018         msoft-float.
6019         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
6020         -msoft-float.
6021         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
6022         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
6023         not mhard-float.
6024         (LIBGCC_SPEC): Don't handle -msoft-float.
6025         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
6026         -mhard-float.
6027         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
6028         msoft-float.
6029         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
6030         -mfloat-abi=*, not -msoft-float and -mhard-float.
6031         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
6032         -msoft-float.
6033         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
6034         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
6035         mhard-float and msoft-float.
6036         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
6037         mfloat-abi=soft in comments, not mhard-float and msoft-float.
6038         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6039         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
6040         mhard-float.
6041         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
6042         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
6043         msoft-float.
6044         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
6045         not mhard-float.
6046         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
6047         not msoft-float.
6048
6049 2011-03-22  Richard Henderson  <rth@redhat.com>
6050
6051         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
6052         TARGET_ABI_WINDOWS_NT.
6053         (alpha_output_function_end_prologue): Likewise.
6054         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
6055         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
6056         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
6057         (trap, *movsi_nt_vms): Likewise.
6058         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
6059         (*tablejump_osf_nt_internal): Remove.
6060         * config/alpha/predicates.md (input_operand): Only test Pmode.
6061
6062 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6063
6064         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
6065         via opts pointer.  Use error_at.  Don't assert that global
6066         structures are in use.
6067
6068 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6069
6070         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
6071         (ix86_handle_option): Access ix86_isa_flags and
6072         ix86_isa_flags_explicit via opts pointer.  Don't assert that
6073         global structures are in use.
6074         (ix86_function_specific_save, ix86_function_specific_restore):
6075         Update ix86_isa_flags_explicit field name.
6076         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
6077         (ix86_isa_flags_explicit): Rename TargetSave entry to
6078         x_ix86_isa_flags_explicit.
6079
6080 2011-03-22  Richard Henderson  <rth@redhat.com>
6081
6082         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
6083         (alpha_option_override, direct_return): Likewise.
6084         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
6085         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
6086         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
6087         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
6088         (alpha_expand_epilogue, alpha_end_function): Likewise.
6089         (alpha_init_libfuncs): Likewise.
6090         (struct machine_function): Remove unicosmk members.
6091         (print_operand) ['t']: Remove.
6092         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
6093         unicosmk_output_module_name, unicosmk_output_common,
6094         current_section_align, unicosmk_output_text_section_asm_op,
6095         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
6096         unicosmk_section_type_flags, unicosmk_unique_section,
6097         unicosmk_asm_named_section, unicosmk_insert_attributes,
6098         unicosmk_output_align, unicosmk_defer_case_vector,
6099         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
6100         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
6101         unicosmk_output_ssib, unicosmk_add_call_info_word,
6102         unicosmk_extern_head, unicosmk_output_default_externs,
6103         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
6104         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
6105         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
6106         * config/alpha/alpha-protos.h: Update.
6107         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
6108         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
6109         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
6110         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
6111         (*mulsi_se, mulvsi3): Likewise.
6112         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
6113         (*divmodsi_internal, call, call_value, realign): Likewise.
6114         (moddi3, umoddi3): Likewise; remove duplicate expander.
6115         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
6116         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
6117         (*movdi_nofix): Remove r/U alternative.
6118         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
6119         * config/alpha/constraints.md ("U"): Remove.
6120         * config/alpha/predicates.md (call_operand"): Don't test
6121         TARGET_ABI_UNICOSMK.
6122
6123 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6124
6125         * target.def (handle_option): Take gcc_options and
6126         cl_decoded_option pointers and location_t.
6127         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
6128         * doc/tm.texi: Regenerate.
6129         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
6130         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
6131         * lto-opts.c (lto_reissue_options): Generate option structure for
6132         targetm.handle_option call.
6133         * opts.c (target_handle_option): Update call to
6134         targetm.handle_option.  Remove assertions about values now passed
6135         down to hook.
6136         * targhooks.c (default_target_handle_option): New.
6137         * targhooks.h (default_target_handle_option): Declare.
6138         * config/alpha/alpha.c: Include opts.h.
6139         (alpha_handle_option): Update to new hook interface.
6140         * config/arm/arm.c: Include opts.h.
6141         (arm_handle_option): Update to new hook interface.
6142         * config/arm/t-arm (arm.o): Update dependencies.
6143         * config/bfin/bfin.c: Include opts.h.
6144         (bfin_handle_option): Update to new hook interface.
6145         * config/cris/cris.c: Include opts.h.
6146         (cris_handle_option): Update to new hook interface.
6147         * config/frv/frv.c: Include opts.h.
6148         (frv_handle_option): Update to new hook interface.
6149         * config/i386/i386.c: Include opts.h.
6150         (ix86_handle_option): Update to new hook interface.
6151         (ix86_valid_target_attribute_inner_p): Generate option structure
6152         for call to ix86_handle_option.
6153         * config/i386/t-i386 (i386.o): Update dependencies.
6154         * config/ia64/ia64.c: Include opts.h.
6155         (ia64_handle_option): Update to new hook interface.
6156         * config/ia64/t-ia64 (ia64.o): Update dependencies.
6157         * config/iq2000/iq2000.c: Include opts.h.
6158         (iq2000_handle_option): Update to new hook interface.
6159         * config/m32c/m32c.c: Include opts.h.
6160         (m32c_handle_option): Update to new hook interface.
6161         * config/m32r/m32r.c: Include opts.h.
6162         (m32r_handle_option): Update to new hook interface.
6163         * config/m68k/m68k.c: Include opts.h.
6164         (m68k_handle_option): Update to new hook interface.
6165         * config/mep/mep.c: Include opts.h.
6166         (mep_handle_option): Update to new hook interface.
6167         * config/microblaze/microblaze.c: Include opts.h.
6168         (microblaze_handle_option): Update to new hook interface.
6169         * config/mips/mips.c: Include opts.h.
6170         (mips_handle_option): Update to new hook interface.
6171         * config/mn10300/mn10300.c: Include opts.h.
6172         (mn10300_handle_option): Update to new hook interface.
6173         * config/pa/pa.c: Include opts.h.
6174         (pa_handle_option): Update to new hook interface.
6175         * config/pdp11/pdp11.c: Include opts.h.
6176         (pdp11_handle_option): Update to new hook interface.
6177         * config/rs6000/rs6000.c: Include opts.h.
6178         (rs6000_handle_option): Update to new hook interface.
6179         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
6180         * config/rx/rx.c: Include opts.h.
6181         (rx_handle_option): Update to new hook interface.
6182         * config/s390/s390.c: Include opts.h.
6183         (s390_handle_option): Update to new hook interface.
6184         * config/score/score.c: Include opts.h.
6185         (score_handle_option): Update to new hook interface.
6186         * config/sh/sh.c: Include opts.h.
6187         (sh_handle_option): Update to new hook interface.
6188         * config/sparc/sparc.c: Include opts.h.
6189         (sparc_handle_option): Update to new hook interface.
6190         * config/v850/v850.c: Include opts.h.
6191         (v850_handle_option): Update to new hook interface.
6192
6193 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6194
6195         * gcc.c (driver_unknown_option_callback): Only permit and save
6196         unknown -Wno- options.
6197         (driver_wrong_lang_callback): Save options directly instead of via
6198         driver_unknown_option_callback.
6199
6200 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
6201
6202         * combine.c (simplify_set): Try harder to find the best CC mode when
6203         simplifying a nested COMPARE on the RHS.
6204
6205 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6206
6207         * config/alpha/gnu.h: Remove.
6208         * config/arc: Remove directory.
6209         * config/arm/netbsd.h: Remove.
6210         * config/arm/t-pe: Remove.
6211         * config/crx: Remove directory.
6212         * config/i386/netbsd.h: Remove.
6213         * config/m68hc11: Remove directory.
6214         * config/m68k/uclinux-oldabi.h: Remove.
6215         * config/mcore/mcore-pe.h: Remove.
6216         * config/mcore/t-mcore-pe: Remove.
6217         * config/netbsd-aout.h: Remove.
6218         * config/rs6000/gnu.h: Remove.
6219         * config/sh/sh-symbian.h: Remove.
6220         * config/sh/symbian-base.c: Remove.
6221         * config/sh/symbian-c.c: Remove.
6222         * config/sh/symbian-cxx.c: Remove.
6223         * config/sh/symbian-post.h: Remove.
6224         * config/sh/symbian-pre.h: Remove.
6225         * config/sh/t-symbian: Remove.
6226         * config/svr3.h: Remove.
6227         * config/vax/netbsd.h: Remove.
6228         * config.build: Don't handle i[34567]86-*-pe.
6229         * config.gcc: Remove handling of deprecations for most deprecated
6230         targets.
6231         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
6232         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
6233         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
6234         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
6235         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
6236         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
6237         Remove cases.
6238         * config.host: Don't handle i[34567]86-*-pe.
6239         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
6240         (ASM_SPEC32): Don't handle -mcall-gnu.
6241         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
6242         -mcall-gnu.
6243         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
6244         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
6245         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
6246         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
6247         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
6248         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
6249         conditional on SYMBIAN.
6250         * configure.ac: Don't handle powerpc*-*-gnu*.
6251         * configure: Regenerate.
6252         * doc/extend.texi (interrupt attribute): Don't mention CRX.
6253         * doc/install-old.texi (m6811, m6812): Don't mention.
6254         * doc/install.texi (arc-*-elf*): Don't document multilib option.
6255         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
6256         (m68k-uclinuxoldabi): Don't mention.
6257         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
6258         Remove.
6259         (-mcall-gnu): Remove.
6260         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
6261         families): Remove constraint documentation.
6262
6263 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
6264
6265         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
6266         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
6267         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
6268
6269 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
6270
6271         * config/avr/avr-protos.h (expand_epilogue): Change prototype
6272         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
6273         * config/avr/avr.c (init_cumulative_args)
6274         (avr_function_arg_advance): Use it.
6275         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
6276         sibcall epilogues.
6277         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
6278         (avr_function_ok_for_sibcall): ...this new function.
6279         (avr_lookup_function_attribute1): New static Function.
6280         (avr_naked_function_p, interrupt_function_p)
6281         (signal_function_p, avr_OS_task_function_p)
6282         (avr_OS_main_function_p): Use it.
6283         * config/avr/avr.md ("sibcall", "sibcall_value")
6284         ("sibcall_epilogue"): New expander.
6285         ("*call_insn", "*call_value_insn"): New insn.
6286         ("call_insn", "call_value_insn"): Remove
6287         ("call", "call_value", "epilogue"): Change expander to handle
6288         sibling calls.
6289
6290 2011-03-21  Nick Clifton  <nickc@redhat.com>
6291
6292         * doc/invoke.texi (Overall Options): Move closing brace to end of
6293         options list.
6294         (Optimization Options): Add missing @gol.
6295         (Directory Options): Likewise.
6296         (i386 and x86-64 Options): Likewise.
6297         (RS6000 and PowerPC Options): Likewise.
6298         (i386 and x86-64 Windows Options): Likewise.
6299         (V850 Options): Add text missing from descriptions.
6300
6301 2011-03-22  Richard Henderson  <rth@redhat.com>
6302
6303         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
6304         (avr_incoming_return_addr_rtx): New.
6305         (emit_push_byte): New.
6306         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
6307         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
6308         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
6309         (emit_pop_byte): New.
6310         (expand_epilogue): Use it.  Pop frame pointer by bytes.
6311         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
6312         (INCOMING_RETURN_ADDR_RTX): New.
6313         (INCOMING_FRAME_SP_OFFSET): New.
6314         (ARG_POINTER_CFA_OFFSET): New.
6315         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
6316         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
6317         (pophi): Remove.
6318
6319         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
6320
6321 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
6322
6323         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
6324         (FUNCTION_ARG_ADVANCE): Likewise.
6325         * tm.texi.in: Change references to them to hook references.
6326         * tm.texi: Regenerate.
6327         * targhooks.c (default_function_arg): Eliminate check for target
6328         macro.
6329         (default_function_incoming_arg): Likewise.
6330         (default_function_arg_advance): Likewise.
6331         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
6332         (function_arg_advance): Likewise.
6333         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
6334
6335 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
6336
6337         * tree.c (build_call_1): New function.
6338         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
6339
6340 2011-03-22  Richard Guenther  <rguenther@suse.de>
6341
6342         PR tree-optimization/48228
6343         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
6344         for single-arg PHIs.
6345
6346 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
6347
6348         PR rtl-optimization/48143
6349         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
6350         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
6351         sse2_cvtps2pd): Likewise.
6352
6353 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6354
6355         * recog.c (canonicalize_change_group): Use validate_unshare_change.
6356
6357 2011-03-22  Richard Guenther  <rguenther@suse.de>
6358
6359         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
6360         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
6361         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
6362         and REALIGN_LOAD_EXPR.
6363         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
6364         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
6365         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
6366         DOT_PROD_EXPR case ...
6367         (expand_expr_real_2): ... here.
6368         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
6369         and REALIGN_LOAD_EXPR.
6370         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
6371         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
6372         (vect_create_epilog_for_reduction): Likewise.
6373         (vectorizable_reduction): Likewise.
6374         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
6375         * tree-vect-stmts.c (vectorizable_load): Likewise.
6376
6377 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
6378
6379         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
6380
6381 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6382
6383         * config/s390/s390.c (s390_delegitimize_address): Fix offset
6384         handling for PLTOFF/GOTOFF.
6385
6386 2011-03-22  Nick Clifton  <nickc@redhat.com>
6387
6388         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
6389         trailing backslash from the end of the macro definition.
6390
6391 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6392
6393         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
6394         and PLT unspecs.
6395
6396 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
6397
6398         * expr.h (prepare_operand): Move to...
6399         * optabs.h (prepare_operand): ...here and change the insn code
6400         parameter from "int" to "enum insn_code".
6401         (insn_operand_matches): Declare.
6402         * expr.c (init_expr_target): Use insn_operand_matches.
6403         (compress_float_constant): Likewise.
6404         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
6405         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
6406         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
6407         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
6408         Likewise.
6409         (gen_cond_trap): Likewise.
6410         (prepare_operand): Likewise.  Change icode to an insn_code.
6411         (insn_operand_matches): New function.
6412         * reload.c (find_reloads_address_1): Use insn_operand_matches.
6413         * reload1.c (gen_reload): Likewise.
6414         * targhooks.c (default_secondary_reload): Likewise.
6415
6416 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
6417
6418         * config/alpha/alpha.md (unspec): New define_c_enum.
6419         (unspecv): Ditto.
6420
6421 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
6422
6423         PR debug/48214
6424         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
6425         between a call and its CALL_ARG_LOCATION note.
6426
6427 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
6428
6429         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
6430
6431 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
6432
6433         PR c/42544
6434         PR c/48197
6435         * c-common.c (shorten_compare): If primopN is first sign-extended
6436         to opN and then zero-extended to result type, set primopN to opN.
6437
6438 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
6439
6440         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
6441         for barrier handlers.
6442
6443 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
6444
6445         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
6446         UNSPEC constants to be in the unspec enumeration, and redefine
6447         all UNSPECV constants to be in the unspecv enumeration, so that
6448         dumps print which unspec/unspec_volatile this is.
6449         * config/rs6000/vector.md (UNSPEC_*): Ditto.
6450         * config/rs6000/paired.md (UNSPEC_*): Ditto.
6451         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
6452         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
6453         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
6454
6455         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
6456         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
6457         UNSPECV_LWSYNC, since these are used as unspec_volatile.
6458         * config/rs6000/sync.md (isync, lwsync): Ditto.
6459
6460 2011-03-21  Richard Guenther  <rguenther@suse.de>
6461
6462         * params.def (lto-min-partition): Fix typo.
6463
6464 2011-03-21  Richard Guenther  <rguenther@suse.de>
6465
6466         PR c/47939
6467         * c-decl.c (grokdeclarator): Drop to the main variant only
6468         for array types.  Drop flag_gen_aux_info check.
6469
6470 2011-03-21  Richard Guenther  <rguenther@suse.de>
6471
6472         PR translation/47911
6473         * params.def (lto-partitions): Fix typo.
6474         (lto-min-partition): Fix wording.
6475
6476 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
6477
6478         * config/rs6000/t-freebsd: Remove duplication from file.
6479
6480 2011-03-21  Richard Guenther  <rguenther@suse.de>
6481
6482         PR middle-end/47661
6483         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
6484
6485 2011-03-21  Richard Guenther  <rguenther@suse.de>
6486
6487         PR lto/48210
6488         * params.def (lto-partitions): Require at least 1 partition.
6489
6490 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6491
6492         * gthr-solaris.h: Remove.
6493         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
6494         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
6495         (LIB_SPEC): Likewise.
6496         * config/sol2.opt (threads): Remove.
6497         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
6498         (sparc*-*-solaris2*): Likewise.
6499         * configure.ac (enable_threads): Enable solaris support.
6500         * configure: Regenerate.
6501         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
6502         * doc/install.texi (Configuration, --enable-threads=lib): Remove
6503         solaris.
6504
6505 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6506
6507         * config.gcc: Obsolete *-*-solaris2.8*.
6508         * doc/install.texi (Specific, *-*-solaris2*): Document it.
6509
6510 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6511
6512         PR bootstrap/48135
6513         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
6514         reference.  Solaris 8 perl works.
6515
6516 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6517
6518         PR bootstrap/48135
6519         * doc/install.texi (Prerequisites): Move jar etc. up.
6520         Explain support library version requirements.
6521
6522 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6523
6524         PR bootstrap/48135
6525         * doc/install.texi (Prerequisites): Move Perl to build
6526         requirements.  Always necessary on Solaris 2 with Sun ld.
6527
6528 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6529
6530         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
6531         binutils 2.21.
6532         (Specific, i?86-*-solaris2.[89]): Likewise.
6533         (Specific, i?86-*-solaris2.10): Likewise.
6534         (Specific, mips-sgi-irix6): Likewise.
6535         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
6536         Update for binutils 2.21.
6537
6538 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6539
6540         * configure.ac (gcc_cv_lto_plugin): Fix typo.
6541         Allow -fuse-linker-plugin for non-default plugin linker.
6542         * configure: Regenerate.
6543
6544 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
6545
6546         PR bootstrap/48167
6547         * gengtype.c (files_rules): Added rule for cp/parser.h.
6548
6549 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
6550
6551         PR target/48213
6552         * config/s390/s390.c (s390_delegitimize_address): Don't call
6553         lowpart_subreg if orig_x has BLKmode.
6554
6555 2011-03-21  Kai Tietz  <ktietz@redhat.com>
6556
6557         PR target/12171
6558         * doc/plugins.texi: Adjust documentation for plugin register_callback.
6559         * tree.h (attribute_spec): Add new member affects_type_identity.
6560         * attribs.c (empty_attribute_table): Adjust attribute_spec
6561         initializers.
6562         * config/alpha/alpha.c: Likewise.
6563         * config/arc/arc.c: Likewise.
6564         * config/arm/arm.c: Likewise.
6565         * config/avr/avr.c: Likewise.
6566         * config/bfin/bfin.c: Likewise.
6567         * config/crx/crx.c: Likewise.
6568         * config/darwin.h: Likewise.
6569         * config/h8300/h8300.c: Likewise.
6570         * config/i386/cygming.h: Likewise.
6571         * config/i386/i386.c: Likewise.
6572         * config/ia64/ia64.c: Likewise.
6573         * config/m32c/m32c.c: Likewise.
6574         * config/m32r/m32r.c: Likewise.
6575         * config/m68hc11/m68hc11.c: Likewise.
6576         * config/m68k/m68k.c: Likewise.
6577         * config/mcore/mcore.c: Likewise.
6578         * config/mep/mep.c: Likewise.
6579         * config/microblaze/microblaze.c: Likewise.
6580         * config/mips/mips.c: Likewise.
6581         * config/rs6000/rs6000.c: Likewise.
6582         * config/rx/rx.c: Likewise.
6583         * config/sh/sh.c: Likewise.
6584         * config/sol2.h: Likewise.
6585         * config/sparc/sparc.c: Likewise.
6586         * config/spu/spu.c: Likewise.
6587         * config/stormy16/stormy16.c: Likewise.
6588         * config/v850/v850.c: Likewise.
6589
6590 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
6591
6592         * simplify-rtx.c (simplify_binary_operation_1): Handle
6593         (xor (and A B) C) case when B and C are both constants.
6594
6595 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
6596
6597         * tree-dfa.c (add_referenced_var): Fix typo in comment.
6598
6599 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
6600
6601         PR bootstrap/48168
6602         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
6603
6604 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
6605
6606         PR rtl-optimization/48156
6607         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
6608         assume df and df_lr are not NULL.
6609
6610 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6611
6612         PR debug/48023
6613         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
6614         between a call and its CALL_ARG_LOCATION note.
6615
6616 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
6617
6618         PR debug/48178
6619         * config/sh/sh.c (find_barrier): Don't emit a constant pool
6620         between a call and its corresponding CALL_ARG_LOCATION note.
6621
6622 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
6623
6624         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
6625         instead of loop. Use HARD_REGISTER_NUM_P predicate.
6626         * haifa-sched.c (setup_ref_regs): Ditto.
6627         * caller-save.c (add_used_regs_1): Ditto.
6628         * dse.c (look_for_hardregs): Ditto.
6629         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
6630         * sched-rgn.c (check_live_1): Ditto.
6631
6632 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
6633
6634         * c-decl.c (diagnose_mismatched_decls): Give an error for
6635         redefining a typedef with variably modified type.
6636
6637 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
6638
6639         * c-decl.c (grokfield): Don't allow typedefs for structures or
6640         unions with no tag by default.
6641         * doc/extend.texi (Unnamed Fields): Update.
6642
6643 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
6644
6645         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
6646         Rewrite using indirect functions.
6647         (lwp_slwpcb): Ditto.
6648         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
6649         (avx_vinsertf128<mode>): Ditto.
6650
6651 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6652
6653         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
6654         unspecs.
6655
6656 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6657
6658         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
6659         splitting between a call and its corresponding CALL_ARG_LOCATION note.
6660
6661 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
6662
6663         PR rtl-optimization/48170
6664         * gcse.c (hoist_code): Remove bogus asserts.
6665
6666 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
6667
6668         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
6669         computation for prologue/epilogue.
6670
6671 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6672
6673         * Makefile.in (check-consistency): Remove.
6674
6675 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
6676
6677         PR debug/48176
6678         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
6679         arange_table_in_use is 0, but either text_section_used or
6680         cold_text_section_used is true.  Don't call it if
6681         !info_section_emitted.
6682
6683 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
6684
6685         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
6686         FUNCTION_VALUE_REGNO_P): Remove.
6687         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
6688         Remove.
6689         * config/avr/avr.c (avr_ret_register): Make static inline.
6690         (avr_function_value_regno_p): New function.
6691         (avr_libcall_value): Make static. Add 'func' argument.
6692         (avr_function_value): Make static. Rename 'func' argument to
6693         'fn_decl_or_type', forward it to avr_libcall_value. Call
6694         avr_ret_register function instead of RET_REGISTER macro.
6695         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
6696
6697 2011-03-18  Jason Merrill  <jason@redhat.com>
6698
6699         PR c++/23372
6700         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
6701
6702 2011-03-18  Richard Guenther  <rguenther@suse.de>
6703
6704         * doc/install.texi (--enable-gold): Remove.
6705         (--with-plugin-ld): Document.
6706         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
6707
6708 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
6709
6710         PR middle-end/47790
6711         * expr.c (optimize_bitfield_assignment_op): Revamp to work
6712         again after expansion changes.
6713
6714 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
6715
6716         * combine.c (try_combine): Do simplification only call of
6717         subst() on i2 even when i1 is present. Update comments.
6718
6719 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
6720
6721         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
6722         and UNSPEC_PCREL_SYMOFF.
6723
6724 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6725
6726         * config/s390/s390.md: Use define_c_enum for the unspec constant
6727         definitions.
6728
6729 2011-03-18  Richard Henderson  <rth@redhat.com>
6730             Jakub Jelinek  <jakub@redhat.com>
6731
6732         PR bootstrap/48161
6733         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
6734         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
6735
6736 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6737
6738         PR middle-end/47725
6739         * combine.c (cant_combine_insn_p): Don't check zero/sign
6740         extended hard registers.
6741
6742 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6743
6744         PR middle-end/47725
6745         * combine.c (cant_combine_insn_p): Check zero/sign extended
6746         hard registers.
6747
6748 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
6749
6750         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6751         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
6752         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
6753         Change return type to bool.
6754         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6755
6756 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
6757
6758         PR debug/48163
6759         * var-tracking.c (prepare_call_arguments): If CALL target
6760         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
6761         pc instead of looking it up using cselib_lookup and use
6762         Pmode for it if x has VOIDmode.
6763         * dwarf2out.c (gen_subprogram_die): If also both first and
6764         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
6765
6766         PR debug/48163
6767         * function.c (assign_parms): For data.passed_pointer parms
6768         use MEM of data.entry_parm instead of data.entry_parm itself
6769         as DECL_INCOMING_RTL.
6770         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
6771         also when passed and declared mode is the same, DECL_RTL
6772         is a MEM with pseudo as address and DECL_INCOMING_RTL is
6773         a MEM too.
6774
6775 2011-03-16  Jeff Law  <law@redhat.com>
6776
6777         PR rtl-optimization/37273
6778         * ira-costs.c (scan_one_insn): Detect constants living in memory and
6779         handle them like argument loads from stack slots.  Do not double
6780         count memory for memory constants and argument loads from stack slots.
6781
6782 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6783
6784         PR debug/48160
6785         * var-tracking.c (prepare_call_arguments): Check SUBREG.
6786
6787 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6788
6789         PR target/48171
6790         * config/i386/i386.opt: Add Save to -mavx and -mfma.
6791
6792 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
6793
6794         PR bootstrap/48153
6795         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
6796         if dwarf_strict.
6797         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
6798         Clear call_arg_locations and call_arg_loc_last always.
6799
6800         PR middle-end/48152
6801         * var-tracking.c (prepare_call_arguments): If argument needs to be
6802         passed by reference, adjust argtype and mode.
6803
6804 2011-03-17  Richard Guenther  <rguenther@suse.de>
6805
6806         PR middle-end/48134
6807         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
6808         a value make sure to fold the statement.
6809
6810 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
6811
6812         PR target/43872
6813         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
6814         return condition with !cfun->calls_alloca.
6815
6816 2011-03-17  Richard Guenther  <rguenther@suse.de>
6817
6818         PR bootstrap/48148
6819         * lto-cgraph.c (input_overwrite_node): Clear the abstract
6820         origin for decls in other ltrans units.
6821         (input_varpool_node): Likewise.
6822
6823 2011-03-17  Richard Guenther  <rguenther@suse.de>
6824
6825         PR middle-end/48165
6826         * tree-object-size.c (compute_object_offset): Properly return
6827         the offset operand of MEM_REFs as sizetype.
6828
6829 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
6830
6831         PR rtl-optimization/48141
6832         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
6833         * dse.c: Include params.h.
6834         (active_local_stores_len): New variable.
6835         (add_wild_read, dse_step1): Clear it when setting active_local_stores
6836         to NULL.
6837         (record_store, check_mem_read_rtx): Decrease it when removing
6838         from the chain.
6839         (scan_insn): Likewise.  Increase it when adding to chain, if it
6840         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
6841         set active_local_stores to NULL before the addition.
6842         * Makefile.in (dse.o): Depend on $(PARAMS_H).
6843
6844         PR rtl-optimization/48141
6845         * dse.c (record_store): If no positions are needed in an insn
6846         that cannot be deleted, at least unchain it from active_local_stores.
6847
6848 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
6849
6850         PR debug/47510
6851         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
6852         (lookup_type_die_strip_naming_typedef): ... here.
6853         (get_context_die): Use it.
6854         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
6855         the anonymous struct named by the naming typedef.
6856
6857 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6858
6859         PR target/48154
6860         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
6861         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6862
6863 2011-03-16  Jeff Law  <law@redhat.com>
6864
6865         * tree-vrp.c (identify_jump_threads): Slightly simplify type
6866         check for operands of conditional.  Allow type to be a pointer.
6867
6868 2011-03-16  Richard Guenther  <rguenther@suse.de>
6869
6870         PR tree-optimization/48149
6871         * fold-const.c (fold_binary_loc): Fold
6872         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
6873
6874 2011-03-16  Richard Guenther  <rguenther@suse.de>
6875
6876         PR tree-optimization/26134
6877         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
6878         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
6879         (non_rewritable_mem_ref_base): Handle complex type component
6880         accesses, constrain offsets for vector and complex extracts
6881         more properly.
6882
6883 2011-03-16  Richard Guenther  <rguenther@suse.de>
6884
6885         PR tree-optimization/48146
6886         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
6887         operands avoiding the need for renaming.
6888
6889 2011-03-16  Richard Guenther  <rguenther@suse.de>
6890
6891         * gimple-fold.c (maybe_fold_reference): Open-code relevant
6892         constant folding.  Move MEM_REF canonicalization first.
6893         Rely on fold_const_aggregate_ref for initializer folding.
6894         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
6895
6896 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
6897
6898         PR middle-end/48136
6899         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6900         arg0/arg1 or their arguments are always fold converted to matching
6901         types.
6902
6903         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
6904         to nargs.
6905
6906 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6907
6908         PR lto/46944
6909         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
6910         Handle in-tree gold.
6911         (ld_vers): Extract binutils version for gold.
6912         (gcc_cv_ld_hidden): Handle gold here.
6913         (gcc_cv_lto_plugin): Determine level of linker plugin support.
6914         * configure: Regenerate.
6915         * config.in: Regenerate.
6916         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
6917         -fuse-linker-plugin otherwise.
6918         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
6919         (LINK_COMMAND_SPEC): Use it.
6920         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
6921
6922 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
6923
6924         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
6925         * calls.c: Remove debug.h include.
6926         (emit_call_1): Don't call virtual_call_token debug hook.
6927         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
6928         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
6929         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
6930         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
6931         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
6932         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
6933         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
6934         dwarf2out_virtual_call): Remove.
6935         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
6936         copy_call_info and virtual_call hooks.
6937         (dwarf2out_init): Don't initialize vcall_insn_table,
6938         debug_dcall_section and debug_vcall_section.
6939         (prune_unused_types): Don't mark nodes from dcall_table.
6940         (dwarf2out_finish): Don't output dcall or vcall tables.
6941         * final.c (final_scan_insn): Don't call direct_call or
6942         virtual_call debug hooks.
6943         * debug.h (struct gcc_debug_hooks): Remove direct_call,
6944         virtual_call_token, copy_call_info and virtual_call hooks.
6945         (debug_nothing_uid): Remove prototype.
6946         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
6947         copy_call_info and virtual_call hooks.
6948         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6949         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
6950         * debug.c (do_nothing_debug_hooks): Likewise.
6951         (debug_nothing_uid): Remove.
6952         * doc/invoke.texi (-fenable-icf-debug): Remove.
6953         * common.opt (-fenable-icf-debug): Likewise.
6954
6955         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
6956         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
6957         call's MEM.  Handle functions returning aggregate through a hidden
6958         first pointer.  For virtual calls add clobbered pc to call arguments
6959         chain.
6960         * dwarf2out.c (gen_subprogram_die): Emit
6961         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
6962         can't be emitted.
6963
6964         PR debug/45882
6965         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
6966         * rtl.h (ENTRY_VALUE_EXP): Define.
6967         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
6968         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
6969         * print-rtl.c (print_rtx): Likewise.
6970         * gengtype.c (adjust_field_rtx_def): Likewise.
6971         * var-tracking.c (vt_add_function_parameter): Adjust
6972         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
6973         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
6974         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
6975         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
6976         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
6977
6978         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
6979         Call var_location debug hook even on CALL_INSNs.
6980         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
6981         * rtl.def (ENTRY_VALUE): New.
6982         * dwarf2out.c: Include cfglayout.h.
6983         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
6984         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
6985         (struct call_arg_loc_node): New type.
6986         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
6987         tail_call_site_count): New variables.
6988         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
6989         DW_TAG_GNU_call_site_parameter.
6990         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
6991         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
6992         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
6993         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
6994         and DW_AT_GNU_all_source_call_sites.
6995         (mem_loc_descriptor): Handle ENTRY_VALUE.
6996         (add_src_coords_attributes): Don't add enything if
6997         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
6998         (dwarf2out_abstract_function): Save and clear call_arg_location,
6999         call_site_count and tail_call_site_count around dwarf2out_decl call.
7000         (gen_call_site_die): New function.
7001         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
7002         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
7003         (dwarf2out_function_decl): Clear call_arg_locations,
7004         call_arg_loc_last, set call_site_count and tail_call_site_count
7005         to -1 and free block_map.
7006         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
7007         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
7008         followed by any real instructions.
7009         (dwarf2out_begin_function): Set call_site_count and
7010         tail_call_site_count to 0.
7011         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
7012         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
7013         attempt to force a DIE for it and worst case remove the attribute.
7014         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
7015         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
7016         the decl itself.
7017         * var-tracking.c: Include tm_p.h.
7018         (vt_stack_adjustments): For calls call note_register_arguments.
7019         (argument_reg_set): New variable.
7020         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
7021         ensure the VALUE is resolved.
7022         (call_arguments): New variable.
7023         (prepare_call_arguments): New function.
7024         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
7025         (struct expand_loc_callback_data): Add ignore_cur_loc field.
7026         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
7027         always use the best expression.
7028         (vt_expand_loc): Add ignore_cur_loc argument.
7029         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
7030         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
7031         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
7032         note for all calls.
7033         (vt_add_function_parameter): Use cselib_lookup_from_insn.
7034         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
7035         argument.  Don't call cselib_preserve_only_values and
7036         cselib_reset_table.
7037         (note_register_arguments): New function.
7038         (vt_initialize): Compute argument_reg_set.  Call
7039         vt_add_function_parameters before processing basic blocks instead of
7040         afterwards.  For calls call prepare_call_arguments before calling
7041         cselib_process_insn.
7042         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
7043         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
7044         (var-tracking.o): Depend on $(TM_P_H).
7045         * cfglayout.h (insn_scope): New prototype.
7046         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
7047         * cfglayout.c (insn_scope): No longer static.
7048         * insn-notes.def (CALL_ARG_LOCATION): New.
7049         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
7050         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
7051         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
7052         nothing for DECL_EXTERNAL BLOCK_VARS.
7053
7054 2011-03-16  Alan Modra  <amodra@gmail.com>
7055
7056         PR target/45844
7057         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
7058         create invalid offset address for vsx splat insn.
7059         * config/rs6000/predicates.md (splat_input_operand): New.
7060         * config/rs6000/vsx.md (vsx_splat_*): Use it.
7061
7062 2011-03-15  Xinliang David Li  <davidxl@google.com>
7063
7064         PR c/47837
7065         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
7066         (normalize_preds): New function.
7067         (is_use_properly_guarded): Normalize def predicates.
7068
7069 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7070
7071         PR target/46788
7072         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
7073         in the output template.
7074
7075 2011-03-15  Richard Guenther  <rguenther@suse.de>
7076
7077         PR middle-end/47650
7078         * tree-pretty-print.c (dump_function_declaration): Properly
7079         dump unprototyped and varargs function types.
7080
7081 2011-03-15  Richard Guenther  <rguenther@suse.de>
7082
7083         PR tree-optimization/13954
7084         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
7085         and friends.
7086
7087 2011-03-15  Richard Guenther  <rguenther@suse.de>
7088
7089         PR tree-optimization/48037
7090         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
7091         selects into BIT_FIELD_REFs.
7092         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
7093         vector select.
7094
7095 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
7096
7097         PR tree-optimization/48129
7098         * builtins.c (fold_builtin_snprintf): Convert to type of
7099         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
7100         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
7101
7102 2011-03-15  Richard Guenther  <rguenther@suse.de>
7103
7104         PR tree-optimization/41490
7105         * tree-ssa-dce.c (propagate_necessity): Handle returns without
7106         value but with VUSE.
7107         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
7108         return statements.
7109         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
7110         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
7111         * tree-tailcall.c (find_tail_calls): Ignore returns.
7112
7113 2011-03-15  Richard Guenther  <rguenther@suse.de>
7114
7115         PR middle-end/48031
7116         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
7117         or variable-indexed array accesses when in gimple form.
7118
7119 2011-03-15  Richard Guenther  <rguenther@suse.de>
7120
7121         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
7122
7123 2011-03-15  Alan Modra  <amodra@gmail.com>
7124
7125         PR target/48032
7126         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
7127         presume symbol_refs without a symbol_ref_decl are suitably
7128         aligned, nor other trees we may see here.  Handle anchor symbols.
7129         (legitimate_constant_pool_address_p): Comment.  Add mode param.
7130         Check cmodel=medium addresses.  Adjust all calls.
7131         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
7132         creating cmodel=medium optimized access to locals.
7133         * config/rs6000/constraints.md (R): Pass QImode to
7134         legitimate_constant_pool_address_p.
7135         * config/rs6000/predicates.md (input_operand): Pass mode to
7136         legitimate_constant_pool_address_p.
7137         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
7138         Update prototype.
7139
7140 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
7141
7142         PR target/48053
7143         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
7144         64-bit constants being loaded into registers other than GPRs such
7145         as loading 0 into a VSX register.
7146
7147 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7148
7149         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
7150
7151 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
7152
7153         PR middle-end/47917
7154         * builtins.c (fold_builtin_snprintf): New function.
7155         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
7156         (fold_builtin_4): Likewise.
7157
7158         PR middle-end/38878
7159         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
7160         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
7161         and C - X == X also strip nops from +/-/p+ operand.
7162         When optimizing -X == C, fold C to arg0's type.
7163
7164         PR debug/47946
7165         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
7166         emit it as add_AT_int instead of add_AT_unsigned.
7167
7168 2011-03-14  Tom Tromey  <tromey@redhat.com>
7169
7170         * unwind-dw2.c: Include sys/sdt.h if it exists.
7171         (_Unwind_DebugHook): Use STAP_PROBE2.
7172         * config.in, configure: Rebuild.
7173         * configure.ac: Check for sys/sdt.h.
7174
7175 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
7176
7177         * config/i386/i386.md (ROUND_FLOOR): New constant.
7178         (ROUND_CEIL): Ditto.
7179         (ROUND_TRUNC): Ditto.
7180         (ROUND_MXCSR): Ditto.
7181         (ROUND_NO_EXC): Ditto.
7182         (rint<mode>2): Use new defines instead of numerical constants.
7183         (floor<mode>2): Ditto.
7184         (ceil<mode>2): Ditto.
7185         (btrunc<mode>2): Ditto.
7186         * config/i386/i386-builtin-types.def: Define ROUND function type
7187         aliases.
7188         * config/i386/i386.c (enum ix86_builtins): Add
7189         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
7190         (struct builtin_description): Add
7191         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
7192         (ix86_expand_sse_round): New static function.
7193         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
7194         function types.
7195         (ix86_builtin_vectorized_function): Handle
7196         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
7197
7198 2011-03-14  Tom Tromey  <tromey@redhat.com>
7199
7200         * c-parser.c (c_parser_asm_string_literal): Clear
7201         warn_overlength_strings.
7202
7203 2011-03-14  Tom Tromey  <tromey@redhat.com>
7204
7205         * c-parser.c (disable_extension_diagnostics): Save
7206         warn_overlength_strings.
7207         (restore_extension_diagnostics): Restore warn_overlength_strings.
7208
7209 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
7210
7211         * BASE-VER: Change to 4.7.0.
7212
7213 2011-03-14  Richard Guenther  <rguenther@suse.de>
7214
7215         PR middle-end/48098
7216         * tree.c (build_vector_from_val): Adjust assert to requirements
7217         and reality.
7218
7219 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
7220
7221         PR bootstrap/48102
7222         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
7223
7224 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
7225
7226         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
7227         terms of target_flags_explicit. Adjust copyright year.
7228
7229         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
7230         * config/rs6000/t-freebsd: New file. Add override for
7231         LIB2FUNCS_EXTRA.
7232
7233 2011-03-13  Chris Demetriou  <cgd@google.com>
7234
7235         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
7236         (-fno-diagnostics-show-option): this, to reflect current default.
7237         (-Werror=): Update text about -fno-diagnostics-show-option.
7238
7239 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
7240
7241         PR target/48053
7242         * config/rs6000/predicates.md (easy_vector_constant_add_self,
7243         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
7244         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
7245         mode is not V2DImode or V2DFmode.
7246         (vspltis_constant): Do not handle V2DImode and V2DFmode.
7247         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
7248         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
7249         registers to 0.
7250         (movdi_internal64): Likewise.
7251
7252 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
7253
7254         PR tree-optimization/47127
7255         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
7256         parameter.
7257         (set_cloog_options): Same.
7258         (scop_to_clast): Same.
7259         (print_clast_stmt): Do not call cloog_state_malloc and
7260         cloog_state_free.
7261         (print_generated_program): Same.
7262         (gloog): Same.
7263         * graphite-clast-to-gimple.h (cloog_state): Declared.
7264         (scop_to_clast): Adjust declaration.
7265         * graphite.c (cloog_state): Defined here.
7266         (graphite_initialize): Call cloog_state_malloc.
7267         (graphite_finalize): Call cloog_state_free.
7268
7269 2011-03-11  Jason Merrill  <jason@redhat.com>
7270
7271         * attribs.c (lookup_attribute_spec): Take const_tree.
7272         * tree.h: Adjust.
7273
7274 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
7275
7276         * config/sparc/sparc.c (sparc_option_override): Use
7277         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
7278
7279 2011-03-11  Richard Guenther  <rguenther@suse.de>
7280
7281         PR tree-optimization/48067
7282         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
7283         multiplication result will be only used once on the target
7284         stmt.
7285
7286 2011-03-11  Richard Guenther  <rguenther@suse.de>
7287
7288         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
7289
7290 2011-03-11  Richard Guenther  <rguenther@suse.de>
7291
7292         PR lto/48073
7293         * tree.c (find_decls_types_r): Do not walk types only reachable
7294         from IDENTIFIER_NODEs.
7295
7296 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
7297
7298         PR middle-end/48044
7299         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
7300         all vnode->force_output nodes as needed.
7301
7302 2011-03-11  Jason Merrill  <jason@redhat.com>
7303
7304         PR c++/48069
7305         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
7306         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
7307
7308 2011-03-11  Martin Jambor  <mjambor@suse.cz>
7309
7310         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
7311         cgraph_node.
7312
7313 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
7314
7315         PR tree-optimization/48063
7316         * ipa-inline.c (cgraph_decide_inlining): Don't try to
7317         inline functions called once if !tree_can_inline_p (node->callers).
7318
7319 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
7320
7321         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
7322         extra_objs.
7323         * config/score/score3.c: Delete.
7324         * config/score/score3.h: Delete.
7325         * config/score/mul-div.S: Delete.
7326         * config/score/sfp-machine.h: Add new file.
7327         * config/score/constraints.md: Add new file.
7328         * config/score/t-score-softfp: Add new file.
7329         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
7330         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
7331         (score7_extra_constraint): Delete.
7332         (score7_option_override): Remove unused code.
7333         * config/score/score.c: Remove score3 and score5 define and code.
7334         * config/score/score.h: Remove score3 and score5 define and code.
7335         * config/score/score.md: Remove score3 template and unusual insn.
7336         * config/score/score.opt: Remove score3 and score5 options.
7337
7338 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7339
7340         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
7341         when _HPUX_SOURCE is defined.
7342         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
7343
7344 2011-03-10  Jason Merrill  <jason@redhat.com>
7345
7346         PR c++/48029
7347         * stor-layout.c (layout_type): Don't set structural equality
7348         on arrays of incomplete type.
7349         * tree.c (type_hash_eq): Handle comparing them properly.
7350
7351 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
7352
7353         PR debug/48043
7354         * config/s390/s390.c (s390_delegitimize_address): Make sure the
7355         result mode matches original rtl mode.
7356
7357 2011-03-10  Nick Clifton  <nickc@redhat.com>
7358
7359         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
7360         (andsi3, andsi3_flags): Fix timings for three operand alternative.
7361
7362 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
7363
7364         PR rtl-optimization/47866
7365         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
7366         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
7367         if target wasn't scalar.
7368         * function.c (assign_stack_temp_for_type): Assert that neither
7369         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
7370         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
7371         macro.
7372         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
7373
7374 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7375
7376         * config/s390/s390-protos.h (s390_label_align): New prototype.
7377         * config/s390/s390.c (s390_label_align): New function.
7378         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
7379
7380 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
7381
7382         PR target/47755
7383         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
7384         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
7385         (output_vec_const_move): Ditto.
7386
7387 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
7388
7389         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
7390         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
7391         * config/mips/mips.c (mips_preferred_reload_class): Make static.
7392         Change 'rclass' argument and result type to reg_class_t.
7393         (TARGET_PREFERRED_RELOAD_CLASS): Define.
7394
7395 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
7396
7397         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7398         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
7399         (TARGET_MEMORY_MOVE_COST): Define.
7400         (avr_register_move_cost, avr_memory_move_cost): New Functions.
7401
7402 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
7403
7404         PR debug/47881
7405         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
7406         removed anything.
7407
7408         PR tree-optimization/48022
7409         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
7410         for EQ/NE_EXPR.
7411
7412 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
7413
7414         PR debug/47991
7415         * var-tracking.c (find_use_val): Return NULL for
7416         cui->sets && cui->store_p BLKmode MEMs.
7417
7418 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
7419
7420         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
7421         Remove.
7422         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
7423         xstormy16_print_operand_address): Remove.
7424         * config/stormy16/stormy16.c (xstormy16_print_operand,
7425         xstormy16_print_operand_address): Make static.
7426         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7427
7428 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
7429
7430         PR target/47862
7431         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
7432         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
7433         before definition.
7434
7435 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
7436
7437         PR bootstrap/48000
7438         * cfgloopmanip.c (fix_bb_placements): Return immediately
7439         if FROM is BASE_LOOP's header.
7440
7441 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
7442
7443         * gimplify.c (gimplify_function_tree): Fix building calls
7444         to __builtin_return_address.
7445
7446 2011-03-07  Alan Modra  <amodra@gmail.com>
7447
7448         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
7449         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
7450         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
7451         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
7452         return_mode args.
7453         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
7454         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
7455         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
7456         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
7457         * config/rs6000/rs6000.c
7458         (rs6000_elf_end_indicate_exec_stack): Rename to..
7459         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
7460         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
7461         (rs6000_file_start): ..here.
7462         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
7463         file scope variables.
7464         (call_ABI_of_interest): New function.
7465         (init_cumulative_args): Set above vars when function return value
7466         is a float, vector, or small struct.
7467         (rs6000_function_arg_advance_1): Likewise for function args.
7468         (rs6000_va_start): Set rs6000_passes_float if variable arg function
7469         references float args.
7470
7471 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
7472
7473         * doc/cfg.texi: Remove "See" before @ref.
7474         * doc/invoke.texi: Likewise.
7475
7476 2011-03-05  Jason Merrill  <jason@redhat.com>
7477
7478         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
7479
7480 2011-03-05  Anthony Green  <green@moxielogic.com>
7481
7482         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
7483
7484 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
7485
7486         PR rtl-optimization/47899
7487         * cfgloopmanip.c (fix_bb_placements): Fix first argument
7488         to flow_loop_nested_p when moving the loop upward.
7489
7490 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
7491
7492         PR target/47719
7493         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
7494
7495 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
7496
7497         PR tree-optimization/47967
7498         * ipa-cp.c (build_const_val): Return NULL instead of creating
7499         VIEW_CONVERT_EXPR for mismatching sizes.
7500         (ipcp_create_replace_map): Return NULL if build_const_val failed.
7501         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
7502         give up on versioning.
7503
7504 2011-03-05  Alan Modra  <amodra@gmail.com>
7505
7506         PR target/47986
7507         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7508         full cmodel medium/large lo_sum + high addresses.
7509
7510 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7511
7512         * config/s390/s390.c (s390_decompose_address): Reject non-literal
7513         pool references in UNSPEC_LTREL_OFFSET.
7514
7515 2011-03-04  Jan Hubicka  <jh@suse.cz>
7516
7517         PR lto/47497
7518         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
7519         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
7520         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
7521         Add node pointers.
7522         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
7523         cgraph_add_thunk): Add node pointers.
7524         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
7525         associated to right node.
7526         (input_node): Update use of cgraph_same_body_alias
7527         and cgraph_add_thunk.
7528
7529 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
7530
7531         * config/i386/i386.opt (mprefer-avx128): New flag.
7532         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
7533         modes when the flag -mprefer-avx128 is on.
7534
7535 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
7536
7537         * dwarf2out.c (compare_loc_operands): Fix address handling.
7538
7539 2011-03-04  Alan Modra  <amodra@gmail.com>
7540
7541         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
7542
7543 2011-03-04  Richard Guenther  <rguenther@suse.de>
7544
7545         PR middle-end/47968
7546         * expmed.c (extract_bit_field_1): Prefer vector modes that
7547         vec_extract patterns can handle.
7548
7549 2011-03-04  Richard Guenther  <rguenther@suse.de>
7550
7551         PR middle-end/47975
7552         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
7553
7554 2011-03-04  Richard Henderson  <rth@redhat.com>
7555
7556         * explow.c (emit_stack_save): Remove 'after' parameter.
7557         (emit_stack_restore): Likewise.
7558         * expr.h: Update to match.
7559         * builtins.c, calls.c, stmt.c: Likewise.
7560         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
7561         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
7562         * function.c (expand_function_end): Insert the emit_stack_save
7563         sequence before parm_birth_insn instead of after.
7564
7565 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
7566
7567         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
7568         (ssse3_pmaddubsw128): Ditto.
7569         (ssse3_pmaddubsw): Ditto.
7570
7571 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
7572
7573         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
7574
7575 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
7576
7577         PR c/47963
7578         * gimplify.c (omp_add_variable): Only call omp_notice_variable
7579         on TYPE_SIZE_UNIT if it is a DECL.
7580
7581         PR debug/47283
7582         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
7583         first operand is not is_gimple_mem_ref_addr, try to fold it.
7584         If the operand still isn't is_gimple_mem_ref_addr, clear
7585         MEM_EXPR on op0.
7586
7587 2011-03-03  Richard Guenther  <rguenther@suse.de>
7588
7589         PR middle-end/47283
7590         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
7591         match comment.
7592         (refs_may_alias_p_1): For release branches return true if
7593         we are confused by our input.
7594
7595 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7596
7597         * config/s390/s390.c (s390_function_value): Rename to ...
7598         (s390_function_and_libcall_value): ... this.
7599         (s390_function_value): New function.
7600         (s390_libcall_value): New function.
7601         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
7602         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
7603         target macro definitions.
7604         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
7605
7606 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
7607
7608         * config/i386/freebsd64.h (CC1_SPEC): Define.
7609         * config/i386/linux64.h (CC1_SPEC): Define.
7610         * config/i386/x86-64.h (CC1_SPEC): Don't define.
7611
7612 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
7613
7614         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7615         Remove.
7616         * config/stormy16/stormy16.c: Include reload.h.
7617         (xstormy16_memory_move_cost): New function.
7618         (TARGET_MEMORY_MOVE_COST): Define.
7619
7620 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
7621
7622         PR rtl-optimization/47925
7623         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
7624         with side effects.  Remove the more-specific check for volatile asms.
7625
7626 2011-03-02  Alan Modra  <amodra@gmail.com>
7627
7628         PR target/47935
7629         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
7630         toc relative addresses for valid offsets.
7631
7632 2011-03-01  Richard Guenther  <rguenther@suse.de>
7633
7634         PR tree-optimization/47890
7635         * tree-vect-loop.c (get_initial_def_for_induction): Set
7636         related stmt properly.
7637
7638 2011-03-01  Richard Guenther  <rguenther@suse.de>
7639
7640         PR lto/47924
7641         * lto-streamer.c (lto_record_common_node): Also register
7642         the canonical type.
7643
7644 2011-03-01  Richard Guenther  <rguenther@suse.de>
7645
7646         PR lto/46911
7647         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7648         Do not stream DECL_ABSTRACT_ORIGIN.
7649         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
7650         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
7651         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7652         Do not stream DECL_ABSTRACT_ORIGIN.
7653         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
7654         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
7655
7656 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
7657
7658         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
7659         FUNCTION_VALUE_REGNO_P): Remove.
7660         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
7661         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
7662         Add 'outgoing' argument.
7663         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
7664         function.
7665         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7666         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7667
7668 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
7669
7670         PR debug/28047
7671         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
7672         (lookup_filename): Likewise.
7673         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
7674
7675 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
7676             Jakub Jelinek  <jakub@redhat.com>
7677
7678         PR middle-end/47893
7679         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
7680         (assign_stack_local_1): Change last argument type to int.
7681         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
7682         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
7683         don't record padding space into frame_space_list nor use those areas.
7684         (assign_stack_local): Adjust caller.
7685         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
7686         of assign_stack_local, pass 0 as last argument.
7687         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
7688         callers.
7689
7690 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
7691
7692         PR debug/47283
7693         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
7694         Use target address_mode and pointer_mode hooks instead of hardcoded
7695         Pmode and ptr_mode.  Handle some simple cases of extending if
7696         POINTERS_EXTEND_UNSIGNED < 0.
7697         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
7698         Call convert_debug_memory_address.
7699         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
7700         convert_debug_memory_address.
7701
7702         PR middle-end/46790
7703         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
7704         * configure: Regenerated.
7705         * config.in: Regenerated.
7706         * varasm.c (default_function_section): Return NULL
7707         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
7708
7709 2011-02-28  Martin Jambor  <mjambor@suse.cz>
7710
7711         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
7712         the description to match the printed values.
7713
7714 2011-02-28  Richard Guenther  <rguenther@suse.de>
7715
7716         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
7717         of the copied scope tree.
7718
7719 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7720
7721         * doc/extend.texi (Function Attributes): Avoid deeply (and
7722         wrongly) nested tables.
7723
7724 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
7725
7726         PR middle-end/47903
7727         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
7728         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
7729         r isn't op0 nor op1.
7730
7731 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
7732
7733         * config/avr/avr.md: Remove magic comment for emacs.
7734
7735 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
7736
7737         PR target/45261
7738         * config/avr/avr.c (avr_option_override): Use error on bad options.
7739         (avr_help): New function.
7740         (TARGET_HELP): Define.
7741
7742 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
7743
7744         PR target/42240
7745         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
7746         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
7747
7748 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
7749
7750         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
7751         (ARM Options): Ditto.
7752         (i386 and x86-64 Options): Ditto.
7753         (RX Options): Ditto.
7754         (SPARC Options): Ditto.
7755
7756 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
7757
7758         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
7759         FreeBSD 6 and later.  Generally use cpu generic.
7760
7761 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
7762
7763         * doc/cpp.texi: Update copyright years.
7764
7765 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
7766
7767         PR target/46898
7768         * config/lm32/lm32.md (ashrsi3): Added needed variable.
7769
7770 2011-02-25  Jon Beniston  <jon@beniston.com>
7771
7772         PR target/46898
7773         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
7774         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
7775         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
7776         (lm32_block_move_inline): Add type cast to remove warning.
7777         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
7778         (gen_int_relational): Move declarations to start of function.
7779
7780 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
7781
7782         PR tree-optimization/45470
7783         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
7784         can throw internally only.
7785         * tree-vect-stmts.c (vectorizable_call): Likewise.
7786
7787 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
7788
7789         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
7790         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
7791         * config/stormy16/stormy16-protos.h
7792         (xstormy16_preferred_reload_class): Remove.
7793         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
7794         static. Change 'rclass' argument and return type to reg_class_t.
7795         (TARGET_PREFERRED_RELOAD_CLASS,
7796         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7797
7798 2011-02-24  Richard Guenther  <rguenther@suse.de>
7799
7800         * lto-streamer-in.c (input_bb): Do not find referenced vars
7801         in debug statements.
7802
7803 2011-02-23  Jason Merrill  <jason@redhat.com>
7804
7805         * common.opt (fabi-version): Document v5 and v6.
7806
7807 2011-02-23  Richard Guenther  <rguenther@suse.de>
7808
7809         PR tree-optimization/47849
7810         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
7811
7812 2011-02-23  Jie Zhang  <jie@codesourcery.com>
7813
7814         * opts-common.c (decode_cmdline_option): Print empty string
7815         argument as "" in decoded->orig_option_with_args_text.
7816         * gcc.c (execute): Print empty string argument as ""
7817         in the verbose output.
7818         (do_spec_1): Keep empty string argument.
7819
7820 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
7821
7822         * config.gcc: Declare score-* and crx-* obsolete.
7823
7824 2011-02-23  Jie Zhang  <jie@codesourcery.com>
7825
7826         PR rtl-optimization/47763
7827         * web.c (web_main): Ignore naked clobber when replacing register.
7828
7829 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
7830
7831         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7832         Remove.
7833
7834 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
7835
7836         PR doc/47848
7837         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
7838
7839 2011-02-22  Mike Stump  <mikestump@comcast.net>
7840
7841         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
7842         assembler.
7843         * configure: Regenerate.
7844
7845 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
7846
7847         PR rtl-optimization/46002
7848         * ira-color.c (update_copy_costs): Change class intersection
7849         test to reg_class_contents[] test of 'hard_regno'.
7850
7851 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
7852
7853         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
7854         than Driver option.
7855         * config/hpux11.opt (mt): Likewise.
7856         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
7857         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
7858         * config/vax/elf.opt (mno-asm-pic): Likewise.
7859         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
7860
7861 2011-02-21  Mike Stump  <mikestump@comcast.net>
7862
7863         PR target/47822
7864         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
7865         tree so we can get save the type.
7866         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
7867         for CFString instead of trying to use past the end of the builtins.
7868         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
7869         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
7870         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
7871         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
7872         Rename to darwin_builtin_cfstring.
7873         (darwin_init_cfstring_builtins): Return the built type.
7874
7875 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
7876
7877         PR target/47840
7878         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
7879         (_mm256_insert_epi64): Use _mm_insert_epi64.
7880
7881 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
7882
7883         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7884         * config/stormy16/stormy16-protos.h
7885         (xstormy16_mode_dependent_address_p): Remove.
7886         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
7887         Make static. Change return type to bool. Change argument type to
7888         const_rtx. Remove dead code.
7889         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7890
7891 2011-02-21  Richard Guenther  <rguenther@suse.de>
7892
7893         PR lto/47820
7894         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7895         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7896         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
7897         TUs context.
7898         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7899         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7900
7901 2011-02-20  Richard Guenther  <rguenther@suse.de>
7902
7903         PR lto/47822
7904         * tree.c (free_lang_data_in_decl): Clean builtins from
7905         the TU decl BLOCK_VARS.
7906
7907 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
7908
7909         PR debug/47620
7910         PR debug/47630
7911         * haifa-sched.c (fix_tick_ready): Skip tick computation
7912         for debug insns.
7913
7914 2011-02-19  Richard Guenther  <rguenther@suse.de>
7915
7916         PR lto/47647
7917         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
7918         Remove lazy BLOCK_VARS streaming.
7919         (lto_input_ts_block_tree_pointers): Likewise.
7920         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
7921
7922 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
7923
7924         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
7925
7926 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
7927
7928         * config/i386/biarch32.h, config/i386/mach.h,
7929         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
7930
7931 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
7932
7933         PR target/47800
7934         * config/i386/i386.md (peephole2 for shift and plus): Use
7935         operands[1] original mode in the first insn.
7936
7937 2011-02-18  Mike Stump  <mikestump@comcast.net>
7938
7939         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
7940
7941 2011-02-18  Jan Hubicka  <jh@suse.cz>
7942
7943         PR middle-end/47788
7944         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
7945         to zero when the function is not inlinable at all.
7946
7947 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7948
7949         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
7950         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7951         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
7952         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
7953         * config/pa/t-pa64: Likewise.
7954         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7955
7956 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
7957
7958         PR driver/47787
7959         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
7960
7961 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7962
7963         PR target/47792
7964         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
7965
7966 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
7967
7968         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7969         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
7970         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
7971         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7972         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
7973         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
7974         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
7975         m32r_load_postinc_p, m32r_store_preinc_predec_p,
7976         m32r_legitimate_address_p): New functions.
7977         * config/m32r/constraints.md (constraint "S"): Don't use
7978         STORE_PREINC_PREDEC_P.
7979         (constraint "U"): Don't use LOAD_POSTINC_P.
7980
7981 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
7982
7983         PR rtl-optimization/46178
7984         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
7985         compute ira_hard_regno_cover_class[].
7986
7987 2011-02-18  Richard Guenther  <rguenther@suse.de>
7988
7989         PR lto/47798
7990         * lto-streamer.h (lto_global_var_decls): Declare.
7991         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
7992         statics for global var processing.
7993
7994 2011-02-18  Richard Guenther  <rguenther@suse.de>
7995
7996         PR tree-optimization/47737
7997         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
7998         edge dominance check.
7999
8000 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
8001
8002         PR debug/47780
8003         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
8004         avoid invalid rtx sharing.
8005
8006 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
8007
8008         * doc/cpp.texi (Obsolete Features): Add background on the
8009         origin of assertions.
8010
8011 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
8012
8013         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
8014         objc_abi == 2.
8015         * config/darwin.c (output_objc_section_asm_op): Added support for
8016         ABI v1 and v2.
8017         (is_objc_metadata): New.
8018         (darwin_objc2_section): New.
8019         (darwin_objc1_section): New.
8020         (machopic_select_section): Added support for ABI v1 and v2.
8021         (darwin_emit_objc_zeroed): New.
8022         (darwin_output_aligned_bss): Detect objc metadata and treat it
8023         appropriately.
8024         (darwin_asm_output_aligned_decl_common): Same.
8025         (darwin_asm_output_aligned_decl_local): Same.
8026         * config/darwin-sections.def: Updated for ABI v1 and v2.
8027         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
8028         compiling Objective-C code for the NeXT runtime, default to using
8029         ABI version 0 for 32-bit, and version 2 for 64-bit.
8030
8031 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
8032
8033         * common.opt (optimize_fast): New Variable.
8034         * opts.c (default_options_optimization): Use opts->x_optimize_fast
8035         instead of local variable ofast.
8036
8037 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
8038
8039         * doc/invoke.texi (fobjc-abi-version): Documented.
8040         (fobjc-nilcheck): Documented.
8041         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
8042         version.
8043
8044 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
8045
8046         PR driver/47390
8047         * common.opt (export-dynamic): New Driver option.
8048         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
8049
8050 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
8051
8052         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
8053
8054 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
8055             Jan Hubicka  <jh@suse.cz>
8056
8057         PR debug/47106
8058         PR debug/47402
8059         * cfgexpand.c (account_used_vars_for_block): Remove.
8060         (estimated_stack_frame_size): Use referenced vars.
8061         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
8062         that were referenced in the original function.  Test src_fn
8063         rather than cfun.  Drop redundant get_var_ann.
8064         (setup_one_parameter): Drop redundant get_var_ann.
8065         (declare_return_variable): Likewise.
8066         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
8067         (copy_arguments_for_versioning): Drop redundant get_var_ann.
8068         * ipa-inline.c (compute_inline_parameters): Do not compute
8069         disregard_inline_limits here.
8070         (compute_inlinable_for_current, pass_inlinable): New.
8071         (pass_inline_parameters): Require PROP_referenced_vars.
8072         * cgraphunit.c (cgraph_process_new_functions): Don't run
8073         compute_inline_parameters explicitly unless function is in SSA form.
8074         (cgraph_analyze_function): Set .disregard_inline_limits.
8075         * tree-sra.c (convert_callers): Compute inliner parameters
8076         only for functions already in SSA form.
8077
8078 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
8079
8080         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
8081         -mlittle-endian-data.
8082
8083 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
8084
8085         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
8086         -mno-fpu, not -fpu and -no-fpu.
8087         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
8088         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
8089
8090 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
8091
8092         PR target/43653
8093         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
8094         input reload with PLUS RTX.
8095
8096 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8097
8098         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
8099         of InverseVar(MDMX).
8100
8101 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8102
8103         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
8104         --m4-340.
8105
8106 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8107
8108         * config/mn10300/mn10300.opt (mno-crt0): New.
8109
8110 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8111
8112         * config/m68k/uclinux.opt (static-libc): New Driver option.
8113
8114 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8115
8116         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
8117
8118 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
8119
8120         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
8121         %{muser-extend-enabled}.
8122
8123 2011-02-16  Richard Guenther  <rguenther@suse.de>
8124
8125         PR tree-optimization/47738
8126         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
8127         the TODO from tree_predictive_commoning.
8128
8129 2011-02-15  Jeff Law  <law@redhat.com>
8130
8131         Revert
8132         2011-01-25  Jeff Law  <law@redhat.com>
8133
8134         PR rtl-optimization/37273
8135         * ira-costs.c (scan_one_insn): Detect constants living in memory and
8136         handle them like argument loads from stack slots.  Do not double
8137         count memory for memory constants and argument loads from stack slots.
8138
8139 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
8140
8141         PR middle-end/47725
8142         * combine.c (cant_combine_insn_p): Revert the last change.
8143
8144 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
8145
8146         PR target/47755
8147         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
8148         mode for vector constants.  Remove code that checks for TImode.
8149
8150 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
8151
8152         PR debug/47106
8153         PR debug/47402
8154         * cgraph.h (compute_inline_parameters): Return void.
8155         * ipa-inline.c (compute_inline_parameters): Adjust.
8156
8157 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
8158
8159         PR debug/47106
8160         PR debug/47402
8161         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
8162         rather than decl.
8163         * cfgexpand.c (estimated_stack_frame_size): Likewise.
8164         * ipa-inline.c (compute_inline_parameters): Adjust.
8165
8166 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
8167
8168         PR debug/47106
8169         PR debug/47402
8170         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
8171         Adjust all users.  Pass FN to...
8172         * tree-flow-inline.h (first_referenced_var): ... this.  Add
8173         fn argument.
8174         * ipa-struct-reorg.c: Adjust.
8175         * tree-dfa.c: Adjust.
8176         * tree-into-ssa.c: Adjust.
8177         * tree-sra.c: Adjust.
8178         * tree-ssa-alias.c: Adjust.
8179         * tree-ssa-live.c: Adjust.
8180         * tree-ssa.c: Adjust.
8181         * tree-ssanames.c: Adjust.
8182         * tree-tailcall.c: Adjust.
8183
8184 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
8185
8186         PR debug/47106
8187         PR debug/47402
8188         * tree-flow.h (referenced_var_lookup): Add fn parameter.
8189         Adjust all callers.
8190         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
8191         * tree-flow-inline.h: Adjust.
8192         * gimple-pretty-print.c: Adjust.
8193         * tree-into-ssa.c: Adjust.
8194         * tree-ssa.c: Adjust.
8195         * cfgexpand.c: Adjust.
8196
8197 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
8198
8199         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
8200         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8201         (EXTRA_CONSTRAINT): Delete.
8202         * config/iq2000/constraints.md: New file.
8203         * config/iq2000/iq2000.md: Include it.
8204         (define_insn ""): Delete.
8205         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
8206         unsupported constraint letters from patterns.
8207         (call_value, call_value_internal1): Likewise.
8208         (call_value_multiple_internal1): Likewise.
8209
8210 2011-02-15  Nick Clifton  <nickc@redhat.com>
8211
8212         * config/mn10300/mn10300.c: Include tm-constrs.h.
8213         (struct liw_data): New data structure describing an LIW candidate
8214         instruction.
8215         (extract_bundle): Use struct liw_data.  Allow small integer
8216         operands for some instructions.
8217         (check_liw_constraints): Use struct liw_data.  Remove swapped
8218         parameter.  Add comments describing the checks.  Fix bug when
8219         assigning the source of liw1 to the source of liw2.
8220         (liw_candidate): Delete.  Code moved into extract_bundle.
8221         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
8222         before swapping.
8223         * config/mn10300/predicates.md (liw_operand): New predicate.
8224         Allows registers and small integer constants.
8225         * config/mn10300/constraints.md (O): New constraint.  Accetps
8226         integers in the range -8 to +7 inclusive.
8227         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
8228         for moving a small integer into a register.  Give this alternative
8229         LIW attributes.
8230         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
8231         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
8232         using the J,K,L and M constraints,
8233         (liw): Remove SI mode on second operands to allow for HI and QI
8234         mode values.
8235         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
8236         instruction.
8237
8238 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
8239
8240         PR middle-end/47725
8241         * combine.c (cant_combine_insn_p): Check zero/sign extended
8242         hard registers.
8243
8244 2011-02-15  Richard Guenther  <rguenther@suse.de>
8245
8246         PR tree-optimization/47743
8247         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
8248         for a non-type-compatible VN lookup bail out.
8249
8250 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
8251
8252         * config/fr30/constraints.md: New file.
8253         * config/fr30/fr30.md: Include it.
8254         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
8255         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8256         (EXTRA_CONSTRAINT): Delete.
8257
8258 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
8259
8260         * config/frv/constraints.md: New file.
8261         * config/frv/predicates.md: Include it.
8262         * config/frv/frv.c (reg_class_from_letter): Delete.
8263         (frv_option_override): Don't initialize it.
8264         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
8265         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
8266         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
8267         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8268         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
8269         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8270         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
8271         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
8272         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
8273         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
8274         (REG_CLASS_FROM_CONSTRAINT): Delete.
8275
8276 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
8277
8278         PR middle-end/47581
8279         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
8280         if frame size is 0 in a leaf function.
8281
8282 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8283
8284         PR pch/14940
8285         * config/alpha/host-osf.c: New file.
8286         * config/alpha/x-osf: New file.
8287         * config.host (alpha*-dec-osf*): Use it.
8288
8289 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
8290
8291         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8292         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
8293         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
8294         (rx_mode_dependent_address_p): ...this. Make static. Change argument
8295         type to const_rtx.
8296         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8297
8298 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
8299
8300         * config/stormy16/constraints.md: New file.
8301         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
8302         Use satisfies_constraint_Q and satisfies_constraint_R.
8303         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
8304         Delete.
8305         (xstormy16_legitiamte_address_p): Declare.
8306         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
8307         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8308         (EXTRA_CONSTRAINT): Delete.
8309         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
8310         Un-staticize.
8311         (xstormy16_extra_constraint_p): Delete.
8312
8313 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
8314
8315         PR tree-optimization/46494
8316         * loop-unroll.c (split_edge_and_insert): Adjust comment.
8317         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
8318         (pass_rtl_loop_done): Add TODO_verify_flow.
8319         * fwprop.c (pass_rtl_fwprop): Likewise.
8320         * modulo-sched.c (pass_sms): Likewise.
8321         * tree-ssa-dom.c (pass_dominator): Likewise.
8322         * tree-ssa-loop-ch.c (pass_ch): Likewise.
8323         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
8324         (pass_tree_loop_done): Likewise.
8325         * tree-ssa-pre.c (execute_pre): Likewise.
8326         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
8327         * tree-ssa-sink.c (pass_sink_code): Likewise.
8328         * tree-vrp.c (pass_vrp): Likewise.
8329
8330 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
8331
8332         * config/v850/constraints.md: New file.
8333         * config/v850/v850.md: Include it.
8334         * config/v850/predicates.md (reg_or_0_operand): Use
8335         satisfies_constraint_G.
8336         (special_symbolref_operand): Use satisfies_constraint_K.
8337         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
8338         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
8339         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
8340         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8341         (EXTRA_CONSTRAINT): Delete.
8342         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
8343         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
8344         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
8345
8346 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
8347
8348         PR target/47696
8349         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
8350         description.
8351
8352 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
8353
8354         * config/mcore/constraints.md: New file.
8355         * config/mcore/mcore.md: Include it.
8356         * config/mcore/mcore.c (reg_class_from_letter): Delete.
8357         * config/mcore/mcore.h (reg_class_from_letter): Delete.
8358         (REG_CLASS_FROM_LETTER): Delete.
8359         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
8360         insn_const_int_ok_for_constraint.
8361         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
8362         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
8363         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8364         (EXTRA_CONSTRAINT): Delete.
8365
8366 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8367
8368         PR ada/41929
8369         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
8370         (IS_SIGHANDLER): Define.
8371         (sparc64_is_sighandler): New function, split off from
8372         sparc64_fallback_frame_state.
8373         (sparc_is_sighandler): New function, split off from
8374         sparc_fallback_frame_state.
8375         (sparc64_fallback_frame_state): Merge with ...
8376         (sparc_fallback_frame_state): ... this into ...
8377         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
8378         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
8379         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
8380         stack instead of hardcoded offsets.
8381
8382 2011-02-14  Andriy Gapon  <avg@freebsd.org>
8383
8384         PR target/45808
8385         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
8386
8387 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8388
8389         * configure: Regenerate.
8390
8391 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
8392
8393         PR driver/45731
8394         * gcc.c (asm_options): Correct spec matching --target-help.
8395
8396 2011-02-12  Martin Jambor  <mjambor@suse.cz>
8397
8398         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
8399         to gimple call error.
8400
8401 2011-02-12  Mike Stump  <mikestump@comcast.net>
8402
8403         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
8404         comments in backslash regions.
8405
8406 2011-02-12  Mike Stump  <mikestump@comcast.net>
8407             Jakub Jelinek  <jakub@redhat.com>
8408             Iain Sandoe  <iains@gcc.gnu.org>
8409
8410         PR target/47324
8411         * dwarf2out.c (output_cfa_loc): When required, apply the
8412         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
8413         (output_loc_sequence): Likewise.
8414         (output_loc_operands_raw): Likewise.
8415         (output_loc_sequence_raw): Likewise.
8416         (output_cfa_loc): Likewise.
8417         (output_loc_list): Suppress register number adjustment when
8418         calling output_loc_sequence()
8419         (output_die): Likewise.
8420
8421 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
8422
8423         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
8424         Remove macros.
8425         * config/xtensa/xtensa.c (xtensa_register_move_cost,
8426         xtensa_memory_move_cost): New functions.
8427         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
8428
8429 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
8430
8431         PR lto/47225
8432         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
8433         in the current directory.
8434         * configure: Rebuilt.
8435
8436 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
8437
8438         * config/darwin.c (darwin_override_options): Add a hunk missed
8439         from the commit of r168571.  Trim comment line lengths and
8440         correct indents of the preceding block.
8441
8442 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
8443
8444         * gcc.c (driver_handle_option): Concatenate the argument to -F with
8445         the switch.
8446
8447 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
8448
8449         * common.opt (nostartfiles): New Driver option.
8450
8451 2011-02-11  Xinliang David Li  <davidxl@google.com>
8452
8453         PR tree-optimization/47707
8454         * tree-chrec.c (convert_affine_scev): Keep type precision.
8455
8456 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
8457
8458         PR tree-optimization/47420
8459         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
8460
8461 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
8462
8463         PR rtl-optimization/47614
8464         * rtl.h (check_for_inc_dec): Declare.
8465         * dse.c (check_for_inc_dec): Externalize...
8466         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
8467         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
8468
8469 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
8470
8471         PR driver/47678
8472         * gcc.c (main): Do not compile inputs if there were errors in
8473         option handling.
8474         * opts-common.c (read_cmdline_option): Check for wrong language
8475         after other error checks.
8476
8477 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
8478
8479         * cgraph.c: Fix comment typos.
8480         * cgraph.h: Likewise.
8481         * cgraphunit.c: Likewise.
8482         * ipa-cp.c: Likewise.
8483         * ipa-inline.c: Likewise.
8484         * ipa-prop.c: Likewise.
8485         * ipa-pure-const.c: Likewise.
8486         * ipa-ref.c: Likewise.
8487         * ipa-reference.c: Likewise.
8488
8489 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
8490
8491         PR debug/47684
8492         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
8493
8494 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8495
8496         PR testsuite/47400
8497         * doc/sourcebuild.texi (Require Support): Document
8498         dg-require-ascii-locale.
8499
8500 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
8501
8502         * doc/lto.texi (Write summary): Fix missing parentheses.
8503
8504 2011-02-10  DJ Delorie  <dj@redhat.com>
8505
8506         * config/m32c/m32c.c (m32c_option_override): Disable
8507         -fcombine-stack-adjustments until flag value tracking and compare
8508         optimization can be rewritten.
8509
8510 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
8511
8512         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
8513         PROCESSOR_POWER7.
8514         (PROCESSOR_DEFAULT64): Likewise.
8515
8516 2011-02-10  Richard Henderson  <rth@redhat.com>
8517
8518         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
8519         change from 2011-02-03.
8520         * config/rx/rx.c (flags_from_code): Likewise.
8521         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
8522         is valid, n/pz otherwise.
8523         (rx_select_cc_mode): Return CCmode if Y is not zero.
8524
8525 2011-02-10  Richard Guenther  <rguenther@suse.de>
8526
8527         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
8528
8529 2011-02-10  Richard Guenther  <rguenther@suse.de>
8530
8531         PR tree-optimization/47677
8532         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
8533
8534 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
8535
8536         PR target/47665
8537         * combine.c (make_compound_operation): Only change shifts into
8538         multiplication for SCALAR_INT_MODE_P.
8539
8540 2011-02-10  Jie Zhang  <jie@codesourcery.com>
8541
8542         PR testsuite/47622
8543         Revert
8544         2011-02-05  Jie Zhang  <jie@codesourcery.com>
8545         PR debug/42631
8546         * web.c (entry_register): Don't clobber the number of the
8547         first uninitialized reference in used[].
8548
8549 2011-02-09  Richard Guenther  <rguenther@suse.de>
8550
8551         PR tree-optimization/47664
8552         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
8553         all edges again.
8554
8555 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
8556
8557         PR target/46481
8558         PR target/47032
8559         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
8560         PROCESSOR_POWER7.
8561         (PROCESSOR_DEFAULT64): Same.
8562         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
8563
8564 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8565
8566         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
8567
8568 2011-02-09  Martin Jambor  <mjambor@suse.cz>
8569
8570         PR middle-end/45505
8571         * tree-sra.c (struct access): New flags grp_scalar_read and
8572         grp_scalar_write.  Changed description of assignment read and write
8573         flags.
8574         (dump_access): Dump new flags, reorder all of them.
8575         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
8576         to detect multiple scalar reads.
8577         (analyze_access_subtree): Use the new scalar read write flags instead
8578         of the old flags.  Adjusted comments.
8579
8580 2011-02-08  DJ Delorie  <dj@redhat.com>
8581
8582         PR target/47548
8583         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
8584         patterns.
8585
8586 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8587
8588         * config/m68k/uclinux.opt: New.
8589         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
8590
8591 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8592
8593         * config/cris/elf.opt (sim): New Driver option.
8594
8595 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8596
8597         * config/xtensa/elf.opt: New.
8598         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
8599
8600 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8601
8602         * config/vax/elf.opt: New.
8603         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
8604
8605 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8606
8607         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
8608
8609 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8610
8611         * config/gnu-user.opt: New.
8612         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
8613         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
8614         *-*-uclinux*): Use gnu-user.opt.
8615
8616 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
8617
8618         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
8619         * config/i386/gnu.h (CPP_SPEC): Likewise.
8620
8621 2011-02-08  Ian Lance Taylor  <iant@google.com>
8622
8623         * common.opt (fcx-limited-range): Add SetByCombined flag.
8624         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
8625         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
8626         (fassociative-math, freciprocal-math): Likewise.
8627         (funsafe-math-optimizations): Likewise.
8628         * opth-gen.awk: Handle SetByCombined.
8629         * optc-gen.awk: Likewise.
8630         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
8631         (set_unsafe_math_optimizations_flags): Likewise.
8632         * doc/options.texi (Option properties): Document SetByCombined.
8633
8634 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8635
8636         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
8637         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
8638         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
8639         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
8640         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
8641
8642 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
8643
8644         PR tree-optimization/46834
8645         PR tree-optimization/46994
8646         PR tree-optimization/46995
8647         * graphite-sese-to-poly.c (used_outside_reduction): New.
8648         (detect_commutative_reduction): Call used_outside_reduction.
8649         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
8650         translate_scalar_reduction_to_array only when at least one
8651         loop-phi/close-phi tuple has been detected.
8652
8653 2011-02-08  Richard Guenther  <rguenther@suse.de>
8654
8655         PR middle-end/47639
8656         * tree-vect-generic.c (expand_vector_operations_1): Update
8657         stmts here ...
8658         (expand_vector_operations): ... not here.  Cleanup EH info
8659         and the CFG if required.
8660
8661 2011-02-08  Richard Guenther  <rguenther@suse.de>
8662
8663         PR tree-optimization/47641
8664         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
8665         require type compatibility.
8666
8667 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8668
8669         * gimple-low.c (lower_function_body): Don't remove the location of
8670         the return statement here.
8671         (lower_gimple_return): Do it here instead but only if the return
8672         statement is actually used twice.
8673
8674 2011-02-08  Richard Guenther  <rguenther@suse.de>
8675
8676         PR tree-optimization/47632
8677         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
8678         unused up_to_stmt parameter, return whether cfg-cleanup is
8679         necessary, remove EH info properly.
8680         (forward_propagate_into_gimple_cond): Adjust caller.
8681         (forward_propagate_into_cond): Likewise.
8682         (forward_propagate_comparison): Likewise.
8683         (tree_ssa_forward_propagate_single_use_vars): Make
8684         forward_propagate_comparison case similar to the two others.
8685
8686 2011-02-08  Nick Clifton  <nickc@redhat.com>
8687
8688         * config/mn10300/mn10300.opt (mliw): New command line option.
8689         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
8690         (liw_bundling): New automaton.
8691         (liw): New attribute.
8692         (liw_op): New attribute.
8693         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
8694         (movsi_internal): Add LIW attributes.
8695         (andsi3): Likewise.
8696         (iorsi3): Likewise.
8697         (xorsi3): Likewise.
8698         (addsi3): Separate register and immediate alternatives.
8699         Add LIW attributes.
8700         (subsi3): Likewise.
8701         (cmpsi): Likewise.
8702         (aslsi3): Likewise.
8703         (lshrsi3): Likewise.
8704         (ashrsi3): Likewise.
8705         (liw): New pattern.
8706         * config/mn10300/mn10300.c (liw_op_names): New
8707         (mn10300_print_operand): Handle 'W' operand descriptor.
8708         (extract_bundle): New function.
8709         (check_liw_constraints): New function.
8710         (liw_candidate): New function.
8711         (mn10300_bundle_liw): New function.
8712         (mn10300_reorg): New function.
8713         (TARGET_MACHINE_DEPENDENT_REORG): Define.
8714         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
8715         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
8716         __LIW__ or __NO_LIW__.
8717         * doc/invoke.texi: Describe the -mliw command line option.
8718
8719 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8720
8721         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
8722         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
8723         pthread_mutex_unlock): Remove.
8724         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
8725         * config/pa/t-pa64: Likewise.
8726         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
8727         shared libc if not linking against libpthread.
8728         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
8729
8730 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
8731
8732         PR target/47558
8733         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
8734         on 10.6 and later to ensure that we always use the unwinder from
8735         the system.  Only add -no_compact_unwind when tarteting darwin
8736         10.6 or later.
8737
8738 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
8739
8740         PR target/46997
8741         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
8742         (vec_interleave_lowv2sf): Ditto.
8743         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
8744         (vec_extract_oddv2sf): Ditto.
8745
8746 2011-02-07  Mike Stump  <mikestump@comcast.net>
8747
8748         PR target/42333
8749         Add __ieee_divdc3 entry point.
8750         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
8751         entry point.
8752         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
8753         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
8754         * config/darwin.c (darwin_rename_builtins): Add.
8755         * config/darwin-protos.h (darwin_rename_builtins): Add.
8756
8757 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
8758
8759         PR target/47636
8760         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
8761         for the condition.
8762
8763 2011-02-07  Mike Stump  <mikestump@comcast.net>
8764
8765         * config/darwin.opt (mmacosx-version-min): Update default OS version.
8766
8767 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
8768
8769         PR target/47534
8770         * config/avr/libgcc.S (exit): Move .endfunc
8771
8772 2011-02-07  Richard Guenther  <rguenther@suse.de>
8773
8774         PR tree-optimization/47615
8775         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
8776         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
8777         (run_scc_vn): Initialize it.
8778         (visit_reference_op_load): Use it.
8779         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
8780
8781 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8782
8783         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
8784         DImode trapping arithmetic libfuncs.
8785
8786 2011-02-07  Richard Guenther  <rguenther@suse.de>
8787
8788         PR tree-optimization/47621
8789         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
8790         two duplicates ...
8791         (execute_update_addresses_taken): ... here.  Make it more
8792         conservative in what we accept.
8793
8794 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
8795
8796         * config/sparc/freebsd.h (ASM_SPEC): Define.
8797         * config/sparc/vxworks.h (ASM_SPEC): Define.
8798
8799 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
8800
8801         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
8802
8803 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
8804
8805         * doc/invoke.texi: Remove reference to compiler internals from
8806         user documentation.
8807
8808         * reg-notes.def: Remove REG_VALUE_PROFILE.
8809         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
8810
8811 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
8812
8813         PR middle-end/47610
8814         * varasm.c (default_section_type_flags): If decl is NULL,
8815         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
8816
8817 2011-02-05  Jie Zhang  <jie@codesourcery.com>
8818
8819         PR debug/42631
8820         * web.c (entry_register): Don't clobber the number of the
8821         first uninitialized reference in used[].
8822
8823 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
8824
8825         PR tree-optimization/46194
8826         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
8827         (build_classic_dist_vector_1): Do not represent classic distance
8828         vectors when the access functions are variating in different loops.
8829
8830 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
8831
8832         * config/mips/iris6.opt: New.
8833         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
8834
8835 2011-02-04  Richard Henderson  <rth@redhat.com>
8836             Steve Ellcey  <sje@cup.hp.com>
8837
8838         PR target/46997
8839         * config/ia64/predicates.md (mux1_brcst_element): New.
8840         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
8841         * config/ia64/ia64.c (ia64_unpack_assemble): New.
8842         (ia64_unpack_sign): New.
8843         (ia64_expand_unpack): Rewrite using new routines.
8844         (ia64_expand_widen_sum): Ditto.
8845         (ia64_expand_dot_prod_v8qi): Ditto.
8846         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
8847         routines, add endian check.
8848         (pmpy2_even): Rename from pmpy2_r, add endian check.
8849         (pmpy2_odd): Rename from pmpy2_l, add endian check.
8850         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
8851         (vec_widen_smult_hi_v4hi): Ditto.
8852         (vec_widen_umult_lo_v4hi): Ditto.
8853         (vec_widen_umult_hi_v4hi): Ditto.
8854         (mulv2si3): Change endian checks.
8855         (sdot_prodv4hi): Rewrite with new calls.
8856         (udot_prodv4hi): New.
8857         (vec_pack_ssat_v4hi): Add endian check.
8858         (vec_pack_usat_v4hi): Ditto.
8859         (vec_pack_ssat_v2si): Ditto.
8860         (max1_even): Rename from max1_r, add endian check.
8861         (max1_odd): Rename from max1_l, add endian check.
8862         (*mux1_rev): Format change.
8863         (*mux1_mix): Ditto.
8864         (*mux1_shuf): Ditto.
8865         (*mux1_alt): Ditto.
8866         (*mux1_brcst_v8qi): Use new predicate.
8867         (vec_extract_evenv8qi): Remove endian check.
8868         (vec_extract_oddv8qi): Ditto.
8869         (vec_interleave_lowv4hi): Format change.
8870         (vec_interleave_highv4hi): Ditto.
8871         (mix2_even): Rename from mix2_r, add endian check.
8872         (mix2_odd): Rename from mux2_l, add endian check.
8873         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
8874         (vec_extract_evenodd_helper): Format change.
8875         (vec_extract_evenv4hi): Remove endian check.
8876         (vec_extract_oddv4hi): Remove endian check.
8877         (vec_interleave_lowv2si): Format change.
8878         (vec_interleave_highv2si): Format change.
8879         (vec_initv2si): Remove endian check.
8880         (vecinit_v2si): Add endian check.
8881         (reduc_splus_v2sf): Add endian check.
8882         (reduc_smax_v2sf): Ditto.
8883         (reduc_smin_v2sf): Ditto.
8884         (vec_initv2sf): Remove endian check.
8885         (fpack): Add endian check.
8886         (fswap): Add endian check.
8887         (vec_interleave_highv2sf): Add endian check.
8888         (vec_interleave_lowv2sf): Add endian check.
8889         (fmix_lr): Add endian check.
8890         (vec_setv2sf): Format change.
8891         (*vec_extractv2sf_0_be): Use shift to extract operand.
8892         (*vec_extractv2sf_1_be): New.
8893         (vec_pack_trunc_v4hi): Add endian check.
8894         (vec_pack_trunc_v2si): Format change.
8895
8896 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
8897
8898         PR inline-asm/23200
8899         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
8900         do bb, locus and block comparison and disallow loads if it is not set.
8901         (stmt_is_replaceable_p): New function.
8902         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
8903         callers.
8904         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
8905         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
8906         SSA_NAME_DEF_STMT.
8907         * tree-flow.h (stmt_is_replaceable_p): New prototype.
8908
8909 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
8910
8911         * config/rs6000/xilinx.opt: New.
8912         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
8913
8914 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
8915
8916         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
8917
8918 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
8919
8920         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
8921         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
8922         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
8923         secondary_reload_info, xtensa_secondary_reload): Remove.
8924         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
8925         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8926         (xtensa_preferred_reload_class): Make static. Change return and
8927         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
8928         Use CONST_DOUBLE_P predicate.
8929         (xtensa_preferred_output_reload_class): New function.
8930         (xtensa_secondary_reload): Make static.
8931
8932 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
8933
8934         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
8935         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
8936         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
8937
8938 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
8939
8940         PR middle-end/31490
8941         * output.h (SECTION_RELRO): Define.
8942         (SECTION_MACH_DEP): Adjust.
8943         (get_variable_section): New prototype.
8944         * varpool.c (varpool_finalize_named_section_flags): New function.
8945         (varpool_assemble_pending_decls): Call it.
8946         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
8947         * cgraphunit.c (cgraph_output_in_order): Call
8948         varpool_finalize_named_section_flags.
8949         * varasm.c (get_section): Allow section flags conflicts between
8950         relro and read-only sections if the section hasn't been declared yet.
8951         Set SECTION_OVERRIDE after diagnosing section type conflict.
8952         (get_variable_section): No longer static.
8953         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
8954         readonly sections that need relocations.
8955         (decl_readonly_section_1): New function.
8956         (decl_readonly_section): Use it.
8957
8958         Revert:
8959         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
8960                     Steve Ellcey  <sje@cup.hp.com>
8961
8962         PR middle-end/31490
8963         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
8964         if section attribute used.
8965
8966 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
8967
8968         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
8969         * config/darwin.c (SECTION_NO_ANCHOR): Define.
8970         (darwin_init_sections): Remove assertion.
8971
8972 2011-02-03  Nick Clifton  <nickc@redhat.com>
8973
8974         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
8975         lt and ge.
8976         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
8977         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
8978         instead of "n" and "pz".
8979         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
8980         CC_FLAG_S.
8981
8982 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
8983
8984         PR target/47312
8985         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
8986         fma, expand FMA_EXPR as fma{,f,l} call.
8987
8988         PR lto/47274
8989         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
8990         copy them into a unsigned char variable and pass address of it to
8991         lto_output_data_stream.
8992
8993         PR target/47564
8994         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
8995         around backend_init_target and lang_dependent_init_target calls.
8996         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
8997         (verify_cgraph_node): Don't call set_cfun here.  Use
8998         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
8999         Set error_found for incorrectly represented calls to thunks.
9000
9001 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
9002
9003         PR debug/43092
9004         PR rtl-optimization/43494
9005         * rtl.h (for_each_inc_dec_fn): New type.
9006         (for_each_inc_dec): Declare.
9007         * rtlanal.c (struct for_each_inc_dec_ops): New type.
9008         (for_each_inc_dec_find_inc_dec): New fn.
9009         (for_each_inc_dec_find_mem): New fn.
9010         (for_each_inc_dec): New fn.
9011         * dse.c (struct insn_size): Remove.
9012         (replace_inc_dec, replace_inc_dec_mem): Remove.
9013         (emit_inc_dec_insn_before): New fn.
9014         (check_for_inc_dec): Use it, along with for_each_inc_dec.
9015         (canon_address): Pass mem modes to cselib_lookup.
9016         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
9017         (cselib_lookup_from_insn): Likewise.
9018         (cselib_subst_to_values): Likewise.
9019         * cselib.c (find_slot_memmode): New var.
9020         (cselib_find_slot): New fn.  Use it instead of
9021         htab_find_slot_with_hash everywhere.
9022         (entry_and_rtx_equal_p): Use find_slot_memmode.
9023         (autoinc_split): New fn.
9024         (rtx_equal_for_cselib_p): Rename and implement in terms of...
9025         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
9026         Deal with autoinc.  Special-case recursion into MEMs.
9027         (cselib_hash_rtx): Likewise.
9028         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
9029         address and MEM modes.
9030         (cselib_subst_to_values): Add memmode, pass it on.
9031         Deal with autoinc.
9032         (cselib_lookup): Add memmode argument, pass it on.
9033         (cselib_lookup_from_insn): Add memmode.
9034         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
9035         (struct cselib_record_autoinc_data): New.
9036         (cselib_record_autoinc_cb): New fn.
9037         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
9038         mode to cselib_lookup.  Reset autoinced REGs here instead of...
9039         (cselib_process_insn): ... here.
9040         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
9041         to cselib_lookup.
9042         (add_uses): Likewise, also to cselib_subst_to_values.
9043         (add_stores): Likewise.
9044         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
9045         cselib_subst_to_values.
9046         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
9047         * gcse.c (do_local_cprop): Adjusted.
9048         * postreload.c (reload_cse_simplify_set): Adjusted.
9049         (reload_cse_simplify_operands): Adjusted.
9050         * sel-sched-dump (debug_mem_addr_value): Pass mode.
9051
9052 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
9053
9054         PR tree-optimization/45122
9055         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
9056         unsafe assumptions when there's more than one loop exit.
9057
9058 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
9059
9060         PR target/47272
9061         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
9062         Document using vector double with the load/store builtins, and
9063         that the load/store builtins always use Altivec instructions.
9064
9065         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
9066         to use altivec memory instructions, even on VSX.
9067         (vector_altivec_store_<mode>): Ditto.
9068
9069         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
9070         function.
9071
9072         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9073         V2DF, V2DI support to load/store overloaded builtins.
9074
9075         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
9076         altivec load/store builtins for V2DF/V2DI types.
9077
9078         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
9079         set avoid indexed addresses on power6 if -maltivec.
9080         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
9081         vector_altivec_load/vector_altivec_store builtins.
9082         (altivec_expand_st_builtin): Ditto.
9083         (altivec_expand_builtin): Add VSX memory builtins.
9084         (rs6000_init_builtins): Add V2DI types to internal types.
9085         (altivec_init_builtins): Add support for V2DF/V2DI altivec
9086         load/store builtins.
9087         (rs6000_address_for_altivec): Insure memory address is appropriate
9088         for Altivec.
9089
9090         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
9091         vec_vsx_ld and vec_vsx_st.
9092         (vsx_store_<mode>): Ditto.
9093
9094         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
9095         variables to hold long long types for VSX vector memory builtins.
9096         (RS6000_BTI_unsigned_long_long): Ditto.
9097         (long_long_integer_type_internal_node): Ditti.
9098         (long_long_unsigned_type_internal_node): Ditti.
9099
9100         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
9101         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
9102         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
9103
9104         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
9105         short cuts.
9106         (vec_vsx_st): Ditto.
9107
9108 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
9109
9110         * config/pa/pa-hpux10.opt: New.
9111         * config/hpux11.opt (pthread): New Driver option.
9112         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
9113         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
9114
9115 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
9116
9117         * config/ia64/vms.opt: New.
9118         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
9119
9120 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
9121
9122         PR target/47580
9123         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
9124         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
9125         generator functions.
9126         (vsx_floatuns<VSi><mode>2): Ditto.
9127         (vsx_fix_trunc<mode><VSi>2): Ditto.
9128         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
9129
9130 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
9131
9132         * config/i386/djgpp.opt (posix): New Driver option.
9133
9134 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
9135
9136         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
9137         Move to the unsupported targets list.
9138
9139 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
9140
9141         PR rtl-optimization/47525
9142         * df-scan.c: Update copyright years.
9143         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
9144         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
9145
9146 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9147
9148         * config/i386/sysv4.h (TARGET_VERSION): Remove.
9149         (SUBTARGET_RETURN_IN_MEMORY): Remove.
9150         (ASM_OUTPUT_ASCII): Remove.
9151         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
9152
9153 2011-02-02  Jeff Law  <law@redhat.com>
9154
9155         PR middle-end/47543
9156         * reload.c (find_reloads_address): Handle reg+d address where both
9157         components are invalid by reloading the entire address.
9158
9159 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
9160             Richard Guenther  <rguenther@suse.de>
9161
9162         PR tree-optimization/40979
9163         PR bootstrap/47044
9164         * passes.c (init_optimization_passes): After LIM call copy_prop
9165         and DCE to clean up.
9166         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
9167
9168 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
9169
9170         PR tree-optimization/47576
9171         PR tree-optimization/47555
9172         * doc/invoke.texi (scev-max-expr-complexity): Documented.
9173         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
9174         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
9175         * tree-scalar-evolution.c (follow_ssa_edge): Use
9176         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
9177
9178 2011-02-02  Richard Guenther  <rguenther@suse.de>
9179
9180         PR tree-optimization/47566
9181         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
9182
9183 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
9184
9185         PR debug/47106
9186         PR debug/47402
9187         * tree-inline.c (declare_return_variable): Remove unused caller
9188         variable.
9189
9190         PR debug/47106
9191         PR debug/47402
9192         * tree-flow-inline.h (clear_is_used, is_used_p): New.
9193         * cfgexpand.c (account_used_vars_for_block): Use them.
9194         * tree-nrv.c (tree_nrv): Likewise.
9195         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
9196         (dump_scope_block): Likewise.
9197         (remove_unused_locals): Likewise.
9198
9199         PR debug/47106
9200         PR debug/47402
9201         * tree-inline.c (declare_return_variable): Add result decl to
9202         local decls only once.
9203         * gimple-low.c (record_vars_into): Mark newly-created variables
9204         as referenced.
9205
9206 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
9207
9208         PR debug/47498
9209         PR debug/47501
9210         PR debug/45136
9211         PR debug/45130
9212         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9213         debug insns.
9214         (no_real_insns_p, schedule_block, set_priorities): Drop special
9215         treatment of boundary debug insns.
9216         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9217         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
9218         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9219         (BOUNDARY_DEBUG_INSN_P): Likewise.
9220         (SCHEDULE_DEBUG_INSN_P): Likewise.
9221         * sched-rgn.c (init_ready_list): Drop special treatment of
9222         boundary debug insns.
9223         * final.c (rest_of_clean_state): Clear notes' BB.
9224
9225 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9226
9227         * config/openbsd.opt (assert=): New Driver option.
9228
9229 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9230
9231         * config/i386/nto.opt: New.
9232         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
9233
9234 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9235
9236         * config/i386/netware.opt: New.
9237         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
9238
9239 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9240
9241         * config/interix.opt (posix): New Driver option.
9242
9243 2011-02-01  DJ Delorie  <dj@redhat.com>
9244
9245         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
9246
9247         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
9248         class for A0/A1.
9249
9250 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
9251
9252         PR tree-optimization/47561
9253         * toplev.c (process_options): Print the Graphite flags.  Add
9254         flag_loop_flatten to the list of options requiring Graphite.
9255
9256 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9257
9258         * config/i386/cygming.opt (posix): New Driver option.
9259
9260 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9261
9262         * config/arm/vxworks.opt: New.
9263         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
9264
9265 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9266
9267         * config/alpha/elf.opt: New.
9268         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
9269         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
9270
9271 2011-02-01  Richard Guenther  <rguenther@suse.de>
9272
9273         PR tree-optimization/47559
9274         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
9275         store-motion on references that can throw.
9276
9277 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
9278
9279         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
9280         * tree-pass.h (TDF_CSELIB): New macro.
9281         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
9282         cselib_lookup): Check for it rather than for TDF_DETAILS.
9283
9284 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
9285
9286         PR driver/47547
9287         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
9288         is HOST_BIT_BUCKET.
9289
9290         * opts.c (finish_options): Don't add x_aux_base_name if it is
9291         HOST_BIT_BUCKET.
9292
9293 2011-02-01  Richard Guenther  <rguenther@suse.de>
9294
9295         PR tree-optimization/47555
9296         Revert
9297         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
9298
9299         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
9300
9301 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
9302
9303         PR gcc/46692
9304         * config/lm32/t-lm32: Add multilib for all CPU options.
9305
9306 2011-02-01  Richard Guenther  <rguenther@suse.de>
9307
9308         PR tree-optimization/47541
9309         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
9310         sure to have a field at offset zero.
9311
9312 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
9313
9314         * config/arc/arc.opt (EB, EL): New Driver options.
9315
9316 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
9317
9318         * config/alpha/osf5.opt: New.
9319         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
9320
9321 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
9322
9323         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
9324
9325 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
9326
9327         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
9328         -floop-interchange.
9329         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
9330         is an alias of -floop-interchange and that it requires the
9331         Graphite infrastructure.
9332         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
9333         flag_loop_interchange based on the value of flag_tree_loop_linear.
9334
9335 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
9336             Richard Guenther  <rguenther@suse.de>
9337
9338         PR tree-optimization/47538
9339         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
9340         type instead of r1type, except for comparisons.  For right
9341         shifts and comparisons punt if there are mismatches in
9342         sizetype vs. non-sizetype types.
9343
9344 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9345
9346         * doc/sourcebuild.texi (Effective-Target Keywords): Document
9347         avx_runtime.
9348
9349 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9350
9351         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
9352         version number.
9353         * configure: Regenerate.
9354
9355 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9356
9357         * configure.ac (gcc_cv_ld_static_option): Define.
9358         (gcc_cv_ld_dynamic_option): Define.
9359         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
9360         instead.
9361         (HAVE_LD_STATIC_DYNAMIC): Update message.
9362         (LD_STATIC_OPTION): Define.
9363         (LD_DYNAMIC_OPTION): Define.
9364         * configure: Regenerate.
9365         * config.in: Regenerate.
9366         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
9367         HAVE_LD_STATIC_DYNAMIC]: Use them.
9368
9369 2011-01-31  Nick Clifton  <nickc@redhat.com>
9370
9371         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
9372         registers inside interrupt handlers if the handler is not a leaf
9373         function.
9374
9375 2011-01-31  Nick Clifton  <nickc@redhat.com>
9376
9377         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
9378         reg_renumber returning an INVALID_REGNUM.
9379
9380 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
9381
9382         PR libgcj/44341
9383         * doc/install.texi: Document host options discarded when cross
9384         configuring target libraries.
9385
9386 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
9387
9388         Reverted:
9389         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
9390         PR debug/45136
9391         PR debug/45130
9392         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9393         debug insns.
9394         (no_real_insns_p, schedule_block, set_priorities): Drop special
9395         treatment of boundary debug insns.
9396         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9397         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9398         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9399         (BOUNDARY_DEBUG_INSN_P): Likewise.
9400         (SCHEDULE_DEBUG_INSN_P): Likewise.
9401         * sched-rgn.c (init_ready_list): Drop special treatment of
9402         boundary debug insns.
9403         * final.c (rest_of_clean-state): Clear notes' BB.
9404
9405 2011-01-31  Alan Modra  <amodra@gmail.com>
9406
9407         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
9408         toc relative expressions as we do in print_operand_address.
9409
9410 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
9411
9412         * doc/extend.texi: Follow spelling conventions.
9413         * doc/invoke.texi: Fix a typo.
9414
9415 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
9416
9417         * config/hpux11.opt: New.
9418         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
9419         ia64*-*-hpux*): Use hpux11.opt.
9420
9421 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
9422
9423         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
9424         to tmake_file.
9425
9426 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
9427
9428         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
9429         support sites.
9430
9431 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
9432
9433         * doc/install.texi (Binaries): Remove outdated reference for
9434         Motorola 68HC11/68HC12 downloads.
9435
9436 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
9437
9438         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
9439         Drepper's paper.
9440
9441 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
9442
9443         PR bootstrap/47147
9444         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
9445         used by NetBSD.
9446
9447 2011-01-28  Ahmad Sharif  <asharif@google.com>
9448
9449         * value-prof.c (check_counter): Corrected error message.
9450
9451 2011-01-29  Jie Zhang  <jie@codesourcery.com>
9452
9453         * config/arm/arm.c (arm_legitimize_reload_address): New.
9454         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
9455         arm_legitimize_reload_address.
9456         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
9457
9458 2011-01-28  Ian Lance Taylor  <iant@google.com>
9459
9460         * godump.c (go_define): Ignore macros whose definitions include
9461         two adjacent operands.
9462
9463 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
9464
9465         PR target/42894
9466         * varasm.c (force_const_mem): Store copy of x in desc->constant
9467         instead of x itself.
9468         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
9469         itself into REG_EQUAL note.
9470
9471 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
9472
9473         * config/freebsd.opt (posix, rdynamic): New Driver options.
9474
9475 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9476
9477         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
9478         -Bstatic/-Bdynamic.
9479         * configure: Regenerate.
9480
9481 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
9482
9483         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
9484         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
9485
9486 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
9487
9488         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
9489         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
9490         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
9491         (s390_preferred_reload_class): Make static. Change return and
9492         'rclass' argument type to reg_class_t.
9493
9494 2011-01-27  Jan Hubicka  <jh@suse.cz>
9495
9496         PR middle-end/46949
9497         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
9498         (process_function_and_variable_attributes): Check defined weakrefs.
9499
9500 2011-01-27  Martin Jambor  <mjambor@suse.cz>
9501
9502         PR tree-optimization/47228
9503         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
9504         build_ref_for_offset.
9505
9506 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9507
9508         * config/spu/spu-elf.h (ASM_SPEC): Remove.
9509
9510 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
9511
9512         PR rtl-optimization/46856
9513         * postreload.c (reload_combine_recognize_const_pattern): Do not
9514         separate cc0 setter and user on cc0 targets.
9515
9516 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
9517
9518         PR c/43082
9519         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
9520         passed a VOID_TYPE expression, immediately emit an error and
9521         return error_mark_node.
9522
9523 2011-01-26  Jeff Law  <law@redhat.com>
9524
9525         PR rtl-optimization/47464
9526         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
9527         rather than may_trap_p as needed.
9528
9529 2011-01-26  DJ Delorie  <dj@redhat.com>
9530
9531         PR rtl-optimization/46878
9532         * combine.c (insn_a_feeds_b): Check for the implicit cc0
9533         setter/user dependency as well.
9534
9535 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
9536
9537         PR rtl-optimization/44469
9538         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
9539         after removing trivially dead basic blocks.
9540
9541 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9542
9543         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
9544         * config/frv/frv.h (LINK_SPEC): Likewise.
9545         * config/i386/netware.h (LINK_SPEC): Likewise.
9546         * config/m68k/linux.h (ASM_SPEC): Likewise.
9547         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
9548         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9549         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9550         * config/sparc/linux.h (ASM_SPEC): Likewise.
9551         * config/sparc/linux64.h (ASM_SPEC): Likewise.
9552         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9553
9554 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9555
9556         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
9557         * config/frv/frv.h (ASM_SPEC): Likewise.
9558         * config/m68k/linux.h (ASM_SPEC): Likewise.
9559         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9560         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
9561         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9562         * config/sparc/linux.h (ASM_SPEC): Likewise.
9563         * config/sparc/linux64.h (ASM_SPEC): Likewise.
9564         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9565
9566 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9567
9568         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
9569         * config/frv/frv.h (LINK_SPEC): Likewise.
9570         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9571
9572 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9573
9574         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
9575         * config/frv/frv.h (ASM_SPEC): Likewise.
9576         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
9577         * config/m68k/linux.h (ASM_SPEC): Likewise.
9578         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9579         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
9580         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9581         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
9582         * config/sparc/linux.h (ASM_SPEC): Likewise.
9583         * config/sparc/linux64.h (ASM_SPEC): Likewise.
9584         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9585         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
9586
9587 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
9588
9589         PR target/46997
9590         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
9591         (*mux2): Ditto.
9592         (vec_extract_evenodd_help): Ditto.
9593         (vec_extract_evenv4hi): Ditto.
9594         (vec_extract_oddv4hi): Ditto.
9595         (vec_interleave_lowv2si): Ditto.
9596         (vec_interleave_highv2si): Ditto.
9597         (vec_extract_evenv2si): Ditto.
9598         (vec_extract_oddv2si: Ditto.
9599         (vec_pack_trunc_v2si): Ditto.
9600
9601 2011-01-22  Jan Hubicka  <jh@suse.cz>
9602
9603         PR target/47237
9604         * cgraph.h (cgraph_local_info): New field can_change_signature.
9605         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
9606         signature can change.
9607         (ipcp_estimate_growth): Call sequence simplify only if calle signature
9608         can change.
9609         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
9610         (cgraph_function_versioning): We can not change signature of functions
9611         that don't allow that.
9612         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
9613         (lto_input_node): Likewise.
9614         * ipa-inline.c (compute_inline_parameters): Compute
9615         local.can_change_signature.
9616         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
9617         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
9618         functions that can not change signature.
9619         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
9620         init_cumulative_args): Do not use local calling conventions
9621         for functions that can not change signature.
9622
9623 2011-01-22  Jan Hubicka  <jh@suse.cz>
9624
9625         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
9626
9627 2011-01-26  Richard Guenther  <rguenther@suse.de>
9628
9629         PR tree-optimization/47190
9630         * cgraphunit.c (process_common_attributes): New function.
9631         (process_function_and_variable_attributes): Use it.
9632
9633 2011-01-26  Richard Guenther  <rguenther@suse.de>
9634
9635         PR lto/47423
9636         * cgraphbuild.c (record_eh_tables): Record reference to personality
9637         function.
9638
9639 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
9640
9641         PR debug/45454
9642         * sel-sched.c (moveup_expr): Don't let debug insns prevent
9643         non-debug insns from moving up.
9644
9645 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
9646
9647         PR target/40125
9648         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
9649         t-dlldir{,-x} fragment for build and add it to tmake_file.
9650         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
9651         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
9652         * config/i386/t-dlldir: New file.
9653         (SHLIB_DLLDIR): Define.
9654         * config/i386/t-dlldir-x: New file.
9655         (SHLIB_DLLDIR): Define.
9656         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
9657         (SHLIB_INSTALL): Use it.
9658
9659 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
9660
9661         PR target/47246
9662         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
9663         lower bound of the allowed Thumb-2 coprocessor load/store
9664         index range to -256. Add explaining comment.
9665
9666 2011-01-25  Ian Lance Taylor  <iant@google.com>
9667
9668         * godump.c (go_define): Improve lexing of macro expansion to only
9669         accept expressions which match Go spec.
9670
9671 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
9672
9673         PR c++/43601
9674         * tree.c (handle_dll_attribute): Handle it.
9675         * doc/extend.texi (@item dllexport): Mention it.
9676         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
9677
9678 2011-01-25  Ian Lance Taylor  <iant@google.com>
9679
9680         PR tree-optimization/26854
9681         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
9682         (decl_jump_unsafe): Move higher in file, with no other change.
9683         (bind): Set has_jump_unsafe_decl if appropriate.
9684         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
9685         (check_earlier_gotos): Likewise.
9686         (c_check_switch_jump_warnings): Likewise.
9687
9688 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
9689
9690         * doc/invoke.texi (Warning Options): Add missing hyphen.
9691         (-fprofile-dir): Minor grammatical fixes.
9692         (-fbranch-probabilities): Likewise.
9693
9694 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
9695
9696         PR debug/45136
9697         PR debug/45130
9698         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9699         debug insns.
9700         (no_real_insns_p, schedule_block, set_priorities): Drop special
9701         treatment of boundary debug insns.
9702         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9703         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9704         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9705         (BOUNDARY_DEBUG_INSN_P): Likewise.
9706         (SCHEDULE_DEBUG_INSN_P): Likewise.
9707         * sched-rgn.c (init_ready_list): Drop special treatment of
9708         boundary debug insns.
9709         * final.c (rest_of_clean-state): Clear notes' BB.
9710
9711 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9712
9713         * Makefile.in (LAMBDA_H): Removed.
9714         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
9715         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
9716         lambda-trans.o, and tree-loop-linear.o.
9717         (lto-symtab.o): Remove dependence on LAMBDA_H.
9718         (tree-loop-linear.o): Remove rule.
9719         (lambda-mat.o): Same.
9720         (lambda-trans.o): Same.
9721         (lambda-code.o): Same.
9722         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
9723         (tree-vect-slp.o): Same.
9724         * hwint.h (gcd): Moved here.
9725         (least_common_multiple): Same.
9726         * lambda-code.c: Removed.
9727         * lambda-mat.c: Removed.
9728         * lambda-trans.c: Removed.
9729         * lambda.h: Removed.
9730         * tree-loop-linear.c: Removed.
9731         * lto-symtab.c: Do not include lambda.h.
9732         * omega.c (gcd): Removed.
9733         * passes.c (init_optimization_passes): Remove pass_linear_transform.
9734         * tree-data-ref.c (print_lambda_vector): Moved here.
9735         (lambda_vector_copy): Same.
9736         (lambda_matrix_copy): Same.
9737         (lambda_matrix_id): Same.
9738         (lambda_vector_first_nz): Same.
9739         (lambda_matrix_row_add): Same.
9740         (lambda_matrix_row_exchange): Same.
9741         (lambda_vector_mult_const): Same.
9742         (lambda_vector_negate): Same.
9743         (lambda_matrix_row_negate): Same.
9744         (lambda_vector_equal): Same.
9745         (lambda_matrix_right_hermite): Same.
9746         * tree-data-ref.h: Do not include lambda.h.
9747         (lambda_vector): Moved here.
9748         (lambda_matrix): Same.
9749         (dependence_level): Same.
9750         (lambda_transform_legal_p): Removed declaration.
9751         (lambda_collect_parameters): Same.
9752         (lambda_compute_access_matrices): Same.
9753         (lambda_vector_gcd): Same.
9754         (lambda_vector_new): Same.
9755         (lambda_vector_clear): Same.
9756         (lambda_vector_lexico_pos): Same.
9757         (lambda_vector_zerop): Same.
9758         (lambda_matrix_new): Same.
9759         * tree-flow.h (least_common_multiple): Removed declaration.
9760         * tree-parloops.c (lambda_trans_matrix): Moved here.
9761         (LTM_MATRIX): Same.
9762         (LTM_ROWSIZE): Same.
9763         (LTM_COLSIZE): Same.
9764         (LTM_DENOMINATOR): Same.
9765         (lambda_trans_matrix_new): Same.
9766         (lambda_matrix_vector_mult): Same.
9767         (lambda_transform_legal_p): Same.
9768         * tree-pass.h (pass_linear_transform): Removed declaration.
9769         * tree-ssa-loop.c (tree_linear_transform): Removed.
9770         (gate_tree_linear_transform): Removed.
9771         (pass_linear_transform): Removed.
9772         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
9773         flag_loop_interchange.
9774
9775 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
9776
9777         PR tree-optimization/47265
9778         PR tree-optimization/47443
9779         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
9780         if name still has some uses.
9781
9782 2011-01-25  Martin Jambor  <mjambor@suse.cz>
9783
9784         PR tree-optimization/47382
9785         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
9786         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
9787
9788 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
9789
9790         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
9791         sjlj_except_unwind_info.
9792
9793 2011-01-25  Richard Guenther  <rguenther@suse.de>
9794
9795         PR tree-optimization/47426
9796         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
9797         visible functions results escape.
9798
9799 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
9800
9801         PR target/45701
9802         * config/arm/arm.c (any_sibcall_uses_r3): New function.
9803         (arm_get_frame_offsets): Use it.
9804
9805 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9806             Jakub Jelinek  <jakub@redhat.com>
9807
9808         PR tree-optimization/47271
9809         * tree-if-conv.c (bb_postdominates_preds): New.
9810         (if_convertible_bb_p): Call bb_postdominates_preds.
9811         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
9812         (predicate_scalar_phi): Call bb_postdominates_preds.
9813
9814 2011-01-25  Nick Clifton  <nickc@redhat.com>
9815
9816         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
9817         * config/rx/rx.c (rx_function_value): Likewise.
9818         (rx_promote_function_mode): Likewise.
9819         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
9820         in order to make it legitimate.
9821         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
9822         make sure that the first operand is the same as the result register.
9823         (addsi3_unspec): Delete.
9824         (subdi3): Do not accept immediate operands.
9825         (subdi3_internal): Likewise.
9826
9827 2011-01-25  Jeff Law  <law@redhat.com>
9828
9829         PR rtl-optimization/37273
9830         * ira-costs.c (scan_one_insn): Detect constants living in memory and
9831         handle them like argument loads from stack slots.  Do not double
9832         count memory for memory constants and argument loads from stack slots.
9833
9834 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
9835
9836         PR tree-optimization/47427
9837         PR tree-optimization/47428
9838         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
9839         coalesce if the new root var would be TREE_READONLY.
9840
9841 2011-01-25  Richard Guenther  <rguenther@suse.de>
9842
9843         PR middle-end/47414
9844         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
9845         correct type for TBAA.
9846
9847 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9848
9849         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
9850         (close_phi_written_to_memory): Call for_each_index with
9851         dr_indices_valid_in_loop.
9852
9853 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9854
9855         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
9856         when it is initialized.
9857
9858 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9859
9860         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
9861         call to graphite_find_data_references_in_stmt.
9862         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
9863         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
9864         call to graphite_find_data_references_in_stmt.
9865         (analyze_drs_in_stmts): Same.
9866         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
9867         in which the scalar analysis of indices is performed.
9868         (create_data_ref): Same.  Update call to dr_analyze_indices.
9869         (find_data_references_in_stmt): Update call to create_data_ref.
9870         (graphite_find_data_references_in_stmt): Same.
9871         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
9872         declaration.
9873         (create_data_ref): Same.
9874         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
9875         call to create_data_ref.
9876
9877 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9878
9879         * graphite-sese-to-poly.c (build_poly_scop): Move
9880         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
9881
9882 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9883
9884         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
9885         VAR_DECL, PARM_DECL, and RESULT_DECL.
9886
9887 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9888
9889         * graphite-dependences.c (reduction_dr_1): Allow several reductions
9890         in a reduction PBB.
9891         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
9892         that have already been marked as PBB_IS_REDUCTION.
9893
9894 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9895
9896         * graphite-scop-detection.c (same_close_phi_node): New.
9897         (remove_duplicate_close_phi): New.
9898         (make_close_phi_nodes_unique): New.
9899         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
9900
9901 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9902
9903         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
9904         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
9905         of both data references to be the same.
9906
9907 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9908
9909         * graphite-dependences.c (build_lexicographical_constraint): Remove
9910         the gdim parameter.
9911         (build_lexicographical_constraint): Adjust call to
9912         ppl_powerset_is_empty.
9913         (dependence_polyhedron): Same.
9914         (graphite_legal_transform_dr): Same.
9915         (graphite_carried_dependence_level_k): Same.
9916         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
9917         parameter.
9918         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
9919
9920 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9921
9922         * graphite-sese-to-poly.c
9923         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
9924         (close_phi_written_to_memory): New.
9925         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
9926         and unshare_expr.
9927
9928 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9929
9930         * doc/install.texi: Update the expected version number of PPL to 0.11.
9931         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
9932         #if PPL_VERSION_MINOR < 11.
9933
9934 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9935
9936         * graphite-dependences.c: Include graphite-cloog-util.h.
9937         (new_poly_ddr): Inlined into dependence_polyhedron.
9938         (free_poly_ddr): Moved close by new_poly_ddr.
9939         (dependence_polyhedron_1): Renamed dependence_polyhedron.
9940         Early return NULL when ppl_powerset_is_empty returns true.
9941         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
9942         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
9943         (graphite_legal_transform_dr): Call new_poly_ddr.
9944         (graphite_carried_dependence_level_k): Same.
9945         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
9946         (dot_transformed_deps_stmt_1): Removed.
9947         (dot_deps_stmt_1): Call dot_deps_stmt_2.
9948         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
9949         (dot_deps_1): Call dot_deps_2.
9950         * Makefile.in (graphite-dependences.o): Add missing dependence on
9951         graphite-cloog-util.h.
9952
9953 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9954
9955         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
9956         (build_lexicographical_constraint): Same.
9957         (dependence_polyhedron_1): Same.
9958         (graphite_legal_transform_dr): Same.
9959         (graphite_carried_dependence_level_k): Same.
9960         * graphite-ppl.c (ppl_powerset_is_empty): New.
9961         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
9962         * tree-data-ref.c (dump_data_reference): Print the basic block index.
9963
9964 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9965
9966         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
9967         the "a followed by b" relation and document it.
9968
9969 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9970
9971         * graphite-dependences.c (build_lexicographical_constraint): Stop the
9972         iteration when the bag of constraints is empty.
9973
9974 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9975
9976         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
9977
9978 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9979
9980         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
9981         nest and two loop depths as parameters.
9982         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
9983         lst_perfect_nestify.
9984
9985 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9986
9987         * graphite-dependences.c (print_pddr): Call
9988         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
9989
9990 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9991
9992         * graphite-ppl.c (debug_gmp_value): New.
9993         * graphite-ppl.h (debug_gmp_value): Declared.
9994
9995 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
9996
9997         * doc/install.texi: Document availability of cloog-0.16.
9998
9999 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
10000
10001         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
10002         invalid postdominance info.
10003
10004 2011-01-24  Jan Hubicka  <jh@suse.cz>
10005
10006         PR c/21659
10007         * doc/extend.texi (weak pragma): Drop claim that it must
10008         appear before definition.
10009         * varasm.c (merge_weak, declare_weak): Only sanity check
10010         that DECL is not output at a time it is declared weak.
10011
10012 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
10013
10014         * machmode.def: Fixed comments.
10015
10016 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
10017
10018         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
10019
10020 2011-01-24  Paul Koning  <ni1d@arrl.net>
10021
10022         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
10023         WORDS_BIG_ENDIAN.
10024
10025 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
10026
10027         PR target/46519
10028         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
10029         (block_info): Add scanned and prev.
10030         (move_or_delete_vzeroupper_2): Return if the basic block
10031         has been scanned and the upper 128bit state is unchanged
10032         from the last scan.
10033         (move_or_delete_vzeroupper_1): Return true if the exit
10034         state is changed.
10035         (move_or_delete_vzeroupper): Visit basic blocks using the
10036         work-list based algorithm based on vt_find_locations in
10037         var-tracking.c.
10038
10039         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
10040
10041 2011-01-24  Nick Clifton  <nickc@redhat.com>
10042
10043         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
10044         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
10045         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
10046         then define __v850e1__.
10047         * doc/invoke.texi: Document -mv850es.
10048
10049 2011-01-24  Richard Henderson  <rth@redhat.com>
10050
10051         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
10052         compound unordered comparisons.
10053         * config/rx/rx.c (rx_split_fp_compare): Remove.
10054         * config/rx/rx-protos.h: Update.
10055         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
10056         (cbranchsf4): Don't call rx_split_fp_compare.
10057         (*cbranchsf4): Use rx_split_cbranch.
10058         (*cmpsf): Don't accept "i" constraint.
10059         (*conditional_branch): Only valid after reload.
10060         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
10061
10062 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
10063
10064         PR target/47385
10065         * config/rs6000/altivec.md (vector constant splitters): Add
10066         support for creating vector single precision constants if -mvsx is
10067         used and we would create the constant using Altivec primitives.
10068
10069 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
10070             Richard Sandiford  <rdsandiford@googlemail.com>
10071
10072         PR rtl-optimization/47166
10073         * reload1.c (emit_reload_insns): Disable the spill_reg_store
10074         mechanism for PRE_MODIFY and POST_MODIFY.
10075         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
10076         reloadreg.
10077
10078 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
10079
10080         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
10081
10082 2011-01-22  Jan Hubicka  <jh@suse.cz>
10083
10084         PR lto/47333
10085         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
10086
10087 2011-01-22  Jan Hubicka  <jh@suse.cz>
10088
10089         PR tree-optimization/43884
10090         PR lto/44334
10091         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
10092         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
10093
10094 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
10095
10096         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10097         * config/s390/s390.c (s390_register_move_cost,
10098         s390_memory_move_cost): New.
10099         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
10100
10101 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10102
10103         PR middle-end/47401
10104         * except.c (sjlj_assign_call_site_values): Move setting the
10105         crtl->uses_eh_lsda flag to ...
10106         (sjlj_mark_call_sites): ... here.
10107         (sjlj_emit_function_enter): Support NULL dispatch label.
10108         (sjlj_build_landing_pads): In a function with no landing pads
10109         that still has must-not-throw regions, generate code to register
10110         a personality function with empty LSDA.
10111
10112 2011-01-21  Richard Henderson  <rth@redhat.com>
10113
10114         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
10115
10116         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
10117
10118         * compare-elim.c: New file.
10119         * Makefile.in (OBJS-common): Add it.
10120         (compare-elim.o): New.
10121         * common.opt (fcompare-elim): New.
10122         * opts.c (default_options_table): Add OPT_fcompare_elim.
10123         * tree-pass.h (pass_compare_elim_after_reload): New.
10124         * passes.c (init_optimization_passes): Add it.
10125         * recog.h: Protect against re-inclusion.
10126         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
10127         * doc/invoke.texi (-fcompare-elim): Document it.
10128         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
10129         * doc/tm.texi: Rebuild.
10130
10131 2011-01-22  Nick Clifton  <nickc@redhat.com>
10132
10133         * config/rx/rx.md (cstoresf4): Pass comparison operator to
10134         rx_split_fp_compare.
10135
10136 2011-01-22  Nick Clifton  <nickc@redhat.com>
10137
10138         * config/rx/rx.md (UNSPEC_CONST): New.
10139         (deallocate_and_return): Wrap the amount popped off the stack in
10140         an UNSPEC_CONST in order to stop it being rejected by
10141         -mmax-constant-size.
10142         (pop_and_return): Add a "(return)" rtx.
10143         (call): Drop the immediate operand.
10144         (call_internal): Likewise.
10145         (call_value): Likewise.
10146         (call_value_internal): Likewise.
10147         (sibcall_internal): Likewise.
10148         (sibcall_value_internal): Likewise.
10149         (sibcall): Likewise.  Generate an explicit call using
10150         sibcall_internal.
10151         (sibcall_value): Likewise.
10152         (mov<>): FAIL if a constant operand is not legitimate.
10153         (addsi3_unpsec): New pattern.
10154
10155         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
10156         (ok_for_max_constant): New function.
10157         (gen_safe_add): New function.
10158         (rx_expand_prologue): Use gen_safe_add.
10159         (rx_expand_epilogue): Likewise.
10160         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
10161         UNSPEC CONSTs.
10162
10163 2011-01-21  Jeff Law  <law@redhat.com>
10164
10165         PR tree-optimization/47053
10166         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
10167         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
10168         statements are deleted.
10169         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
10170         is nonempty, then purge dead edges and cleanup the CFG.
10171
10172 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
10173
10174         PR debug/47402
10175         Temporarily revert:
10176         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
10177         PR debug/47106
10178         * tree-dfa.c (create_var_ann): Mark variable as used.
10179
10180 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
10181
10182         PR middle-end/45566
10183         * except.c (convert_to_eh_region_ranges): Emit queued no-region
10184         notes from other section in hot/cold partitioning even if
10185         last_action is -3.  Increment call_site_base.
10186
10187         PR rtl-optimization/47366
10188         * fwprop.c (forward_propagate_into): Return bool.  If
10189         any changes are made, -fnon-call-exceptions is used and
10190         REG_EH_REGION note is present, call purge_dead_edges
10191         and return true if it purged anything.
10192         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
10193         any EH edges were purged.
10194
10195 2011-01-21  Jeff Law  <law@redhat.com>
10196
10197         PR rtl-optimization/41619
10198         * caller-save.c (setup_save_areas): Break out code to determine
10199         which hard regs are live across calls by examining the reload chains
10200         so that it is always used.
10201         Eliminate code which checked REG_N_CALLS_CROSSED.
10202
10203 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
10204
10205         PR tree-optimization/47355
10206         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
10207         NOP has non-debug uses beyond PHIs in new_bb.
10208
10209 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
10210
10211         PR debug/47106
10212         * cfgexpand.c (account_used_vars_for_block): Only account vars
10213         that are annotated as used.
10214         (estimated_stack_frame_size): Don't set TREE_USED.
10215         * tree-dfa.c (create_var_ann): Mark variable as used.
10216
10217 2011-01-21  Richard Guenther  <rguenther@suse.de>
10218
10219         PR middle-end/47395
10220         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
10221
10222 2011-01-21  Richard Guenther  <rguenther@suse.de>
10223
10224         PR tree-optimization/47365
10225         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
10226         (vn_reference_lookup_pieces): Adjust.
10227         (vn_reference_lookup): Likewise.
10228         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
10229         (vn_reference_lookup_3): Only look through kills if in
10230         VN_WALKREWRITE mode.
10231         (vn_reference_lookup_pieces): Adjust.
10232         (vn_reference_lookup): Likewise.
10233         (visit_reference_op_load): Likewise.
10234         (visit_reference_op_store): Likewise.
10235         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
10236         (compute_avail): Likewise.
10237         (eliminate): Likewise.
10238
10239 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
10240
10241         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
10242         DECL_IGNORED_P non-reg vars if they are used.
10243
10244         PR tree-optimization/47391
10245         * varpool.c (const_value_known_p): Return false if
10246         decl is volatile.
10247
10248 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
10249
10250         PR bootstrap/47215
10251         * config/i386/i386.c (ix86_local_alignment): Handle
10252         case for va_list_type_node is nil.
10253         (ix86_canonical_va_list_type): Likewise.
10254
10255 2011-01-21  Alan Modra  <amodra@gmail.com>
10256
10257         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
10258         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
10259
10260 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10261
10262         * config/arm/arm.md (define_attr type): Rename f_load
10263         and f_store to f_fpa_load and f_fpa_store. Update.
10264         (write_conflict): Deal with rename fallout.
10265         (*push_fp_multi): Likewise.
10266         * config/arm/fpa.md (f_load): Use f_fpa_load.
10267         (f_store): Use f_fpa_store.
10268         (*movsf_fpa): Likewise.
10269         (*movdf_fpa): Likewise.
10270         (*movxf_fpa): Likewise.
10271         (*thumb2_movsf_fpa): Likewise.
10272         (*thumb2_movdf_fpa): Likewise.
10273         (*thumb2_movxf_fpa): Likewise.
10274         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
10275         f_loadd and f_stored.
10276         (*thumb2_movdi_vfp): Likewise.
10277         (*thumb2_movsf_vfp): Fix attribute to f_loads.
10278         (*thumb2_movsi_vfp): Likewise.
10279         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
10280         Use f_loads instead of f_load.
10281         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
10282
10283 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
10284
10285         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10286         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
10287         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10288         (xtensa_mode_dependent_address_p): New function.
10289         (constantpool_address_p): Make static. Change return type to bool.
10290         Change argument type to const_rtx. Use CONST_INT_P predicate.
10291
10292 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
10293
10294         PR debug/46583
10295         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
10296
10297 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
10298
10299         PR debug/47283
10300         * cfgexpand.c (expand_debug_expr): Instead of generating
10301         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
10302         etc. handling.
10303
10304 2011-01-20  Richard Guenther  <rguenther@suse.de>
10305
10306         PR middle-end/47370
10307         * tree-inline.c (remap_gimple_op_r): Recurse manually for
10308         the pointer operand of MEM_REFs.
10309
10310 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
10311
10312         PR tree-optimization/46130
10313         * ipa-split.c (consider_split): If return_bb contains non-virtual
10314         PHIs other than for retval or if split_function would not adjust it,
10315         refuse to split.
10316
10317 2011-01-20  Richard Guenther  <rguenther@suse.de>
10318
10319         PR tree-optimization/47167
10320         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
10321         Revert previous change, only avoid enumeral type changes.
10322
10323 2011-01-19  Mike Stump  <mikestump@comcast.net>
10324
10325         * doc/tm.texi.in (BRANCH_COST): Englishify.
10326         * doc/tm.texi (BRANCH_COST): Likewise.
10327
10328 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
10329
10330         PR c++/47291
10331         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
10332         (gen_scheduled_generic_parms_dies): New functions.
10333         (gen_struct_or_union_type_die): Schedule template parameters DIEs
10334         generation for the end of CU compilation.
10335         (dwarf2out_finish): Generate template parameters DIEs here.
10336
10337 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
10338
10339         PR debug/46240
10340         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
10341         debug bind stmt on merge edges.
10342
10343 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
10344
10345         PR debug/47079
10346         PR debug/46724
10347         * function.c (instantiate_expr): Instantiate incoming rtl of
10348         implicit arguments, and recurse on VALUE_EXPRs.
10349         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
10350         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
10351
10352 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
10353
10354         * c-parser.c (c_parser_for_statement): Initialize
10355         collection_expression.
10356
10357 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10358
10359         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
10360
10361 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10362
10363         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
10364         (LINK_SHLIB_SPEC): Don't use %(link_path).
10365         (SUBTARGET_EXTRA_SPECS): Remove link_path.
10366
10367 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10368
10369         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
10370         (NO_SHARED_LIB_SUPPORT): Remove.
10371         (LINK_SHLIB_SPEC): Remove one conditional definition.
10372
10373 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10374
10375         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
10376         %{call_shared}.
10377         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
10378         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
10379         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
10380         %{call_shared} and conditionals on these options not being passed.
10381         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
10382         %{call_shared}.
10383
10384 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
10385
10386         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
10387         simplify.
10388
10389         * ipa-split.c: Spelling fixes.
10390
10391 2011-01-19  Richard Henderson  <rth@redhat.com>
10392
10393         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
10394         (*mulsi3): Likewise.
10395
10396         * longlong.h [__mn10300__] (count_leading_zeros): New.
10397         [__mn10300__] (umul_ppmm, smul_ppmm): New.
10398         [__mn10300__] (add_ssaaaa, subddmmss): New.
10399         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
10400         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
10401
10402 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10403
10404         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
10405
10406 2011-01-19  Richard Henderson  <rth@redhat.com>
10407
10408         * config/mn10300/mn10300.md (addsi3_flags): New.
10409         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
10410         (subsi3_flags, subc_internal, subdi3): New.
10411         (subdi3_internal, *subdi3_degenerate): New.
10412         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
10413
10414         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
10415         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
10416         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
10417         * config/mn10300/mn10300-protos.h: Update.
10418         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
10419         (return_ret): Likewise.  Rename from return_internal_regs.
10420         (return_internal): Remove.
10421
10422         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
10423         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
10424         (mn10300_legitimate_constant_p): Likewise.
10425         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
10426         (mn10300_frame_size): New.
10427         (mn10300_expand_prologue): Use it.
10428         (mn10300_expand_epilogue): Likewise.
10429         (mn10300_initial_offset): Likewise.
10430         * config/mn10300/mn10300-protos.h: Update.
10431         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
10432         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
10433         (prologue, epilogue, return_internal): Tidy output code.
10434         (mn10300_store_multiple_operation, return): Likewise.
10435         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
10436         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
10437         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
10438         (load_pic, am33_load_pic): New.
10439         (mn10300_load_pic0, mn10300_load_pic1): New.
10440
10441         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
10442         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
10443         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
10444         (cc_flags_for_mode, cc_flags_for_code): New.
10445         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
10446         overflow flag is not valid.  Validate that the flags we need
10447         for the comparison are valid.
10448         (mn10300_output_cmp): Remove.
10449         (mn10300_output_add): New.
10450         (mn10300_select_cc_mode): Use cc_flags_for_code.
10451         (mn10300_split_cbranch): New.
10452         (mn10300_match_ccmode): New.
10453         (mn10300_split_and_operand_count): New.
10454         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
10455         to the function.
10456         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
10457         (addsi3): ... here.  Use mn10300_output_add.
10458         (*addsi3_flags): New.
10459         (*am33_subsi3, *mn10300_subsi3): Merge...
10460         (subsi3): ... here.  Use attribute isa.
10461         (*subsi3_flags): New.
10462         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
10463         when possible.
10464         (*am33_andsi3, *mn10300_andsi3): Merge...
10465         (andsi3): ... here.
10466         (*andsi3_flags): New.
10467         (andsi3 splitters): New.
10468         (*am33_iorsi3, *mn10300_iorsi3): Merge...
10469         (iorsi3): ... here.
10470         (*iorsi3_flags): New.
10471         (*am33_xorsi3, *mn10300_xorsi3): Merge...
10472         (xorsi3): ... here.
10473         (*xorsi3_flags): New.
10474         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
10475         (one_cmplsi2): ... here.
10476         (*one_cmplsi2_flags): New.
10477         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
10478         instead of "dax" in constraints.  Use mn10300_split_cbranch.
10479         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
10480         use matching constraints to eliminate a self-comparison.
10481         (*integer_conditional_branch): Rename from integer_conditional_branch.
10482         Use int_mode_flags to match CC_REG.
10483         (*cbranchsi4_btst, *btstsi): New.
10484         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
10485         mn10300_split_cbranch.
10486         (*am33_cmpsf): Rename from am33_cmpsf.
10487         (*float_conditional_branch): Rename from float_conditional_branch.
10488         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
10489         (zero_extendqisi2): ... here.
10490         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
10491         (zero_extendhisi2): ... here.
10492         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
10493         (extendqisi2): ... here.
10494         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
10495         (extendhisi2): ... here.
10496         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
10497         (ashlsi3): ... here.
10498         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
10499         (lshrsi3): ... here.
10500         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
10501         (ashrsi3): ... here.
10502         (consecutive add peephole): Remove.
10503         * config/mn10300/predicates.md (label_ref_operand): New.
10504         (int_mode_flags): New.
10505         (CCZN_comparison_operator): New.
10506
10507         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
10508         (throughput_42_latency_43): New reservation.
10509         (mulsidi3, umulsidi3): New expanders.
10510         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
10511         the MDR register to allocation; separately allocate the low and
10512         high parts of the DImode result.
10513         (umulsidi3_internal): Similarly.
10514         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
10515         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
10516         (udivsi3, umodsi3): Remove.
10517         (udivmodsi4, divmodsi4): New expanders.
10518         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
10519         (*divmodsi4): Simiarly.
10520         (ext_internal): New.
10521
10522         * config/mn10300/constraints.md ("z"): New constraint.
10523         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
10524         (FIXED_REGISTERS): Don't fix MDR.
10525         (CALL_USED_REGSITERS): Reformat nicely.
10526         (REG_ALLOC_ORDER): Add MDR.
10527         (enum regclass): Add MDR_REGS.
10528         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
10529         (IRA_COVER_CLASSES): Add MDR_REGS.
10530         (REGNO_REG_CLASS): Handle MDR_REG.
10531         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
10532         (mn10300_register_move_cost): Likewise.
10533         * config/mn10300/mn10300.md (MDR_REG): New.
10534         (*movsi_internal): Handle moves to/from MDR_REGS.
10535
10536         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
10537         POST_MODIFY.
10538         (mn10300_secondary_reload): Tidy combination reload classes.
10539         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
10540         addresses for AM33.  Allow symbolic offsets for reg+imm.
10541         (mn10300_regno_in_class_p): New.
10542         (mn10300_legitimize_reload_address): New.
10543         * config/mn10300/mn10300.h (enum reg_class): Remove
10544         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
10545         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
10546         SP_OR_GENERAL_REGS.
10547         (REG_CLASS_NAMES): Update to match.
10548         (REG_CLASS_CONTENTS): Likewise.
10549         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
10550         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
10551         (REGNO_IN_RANGE_P): Remove.
10552         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
10553         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
10554         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
10555         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
10556         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
10557         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
10558         (REGNO_GENERAL_P): New.
10559         (HAVE_POST_MODIFY_DISP): New.
10560         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
10561         (LEGITIMIZE_RELOAD_ADDRESS): New.
10562         * config/mn10300/mn10300-protos.h: Update.
10563
10564         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
10565         DATA_REGS for AM33 stack-pointer destination.
10566         (mn10300_preferred_output_reload_class): Likewise.
10567         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
10568         into a form appropriate for ...
10569         (TARGET_SECONDARY_RELOAD): New.
10570         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
10571         * config/mn10300/mn10300-protos.h: Update.
10572         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
10573         reload_insi; use the "A" constraint for the scratch; handle AM33
10574         moves of sp to non-address registers.
10575
10576         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
10577         (*movqi_internal): ... here.
10578         (*am33_movhi, *mn10300_movhi): Merge into...
10579         (*movhi_internal): ... here.
10580         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
10581         as the source/destination of moves from/to SP.
10582         (movsf): Only allow for AM33-2.
10583         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
10584         any integer constant constraint.  Only allow for AM33-2.  Tidy
10585         all of the alternative outputs.
10586         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
10587         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
10588         for MN103.
10589         (udivsi3, umodsi3): New patterns for MN103 only.
10590
10591 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
10592
10593         * doc/tm.texi.in: Spell out that a lack of register class unions
10594         can lead to ICEs.
10595         * doc/tm.texi: Regenerate.
10596
10597 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
10598
10599         PR rtl-optimization/47337
10600         * dce.c (check_argument_store): New function.
10601         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
10602
10603         PR tree-optimization/47290
10604         * tree-eh.c (infinite_empty_loop_p): New function.
10605         (cleanup_empty_eh): Use it.
10606
10607 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
10608
10609         PR target/46997
10610         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
10611         (a64_expand_widen_sum): Ditto.
10612         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
10613         (vec_extract_evenodd_help): Ditto.
10614         (vec_extract_evenv4hi): Ditto.
10615         (vec_extract_oddv4hi): Ditto.
10616         (vec_extract_evenv2si): Ditto.
10617         (vec_extract_oddv2si): Ditto.
10618         (vec_extract_evenv2sf): Ditto.
10619         (vec_extract_oddv2sf): Ditto.
10620         (vec_pack_trunc_v4hi: Ditto.
10621         (vec_pack_trunc_v2si): Ditto.
10622         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
10623         (vec_interleave_highv8qi): Ditto.
10624         (mix1_r): Ditto.
10625         (vec_extract_oddv8qi): Ditto.
10626         (vec_interleave_lowv4hi): Ditto.
10627         (vec_interleave_highv4hi): Ditto.
10628         (vec_interleave_lowv2si): Ditto.
10629         (vec_interleave_highv2si): Ditto.
10630
10631 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10632
10633         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
10634         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
10635         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
10636         (pa_c_mode_for_suffix): New.
10637         (TARGET_EXPAND_BUILTIN): Define.
10638         (TARGET_C_MODE_FOR_SUFFIX): Define.
10639         (pa_builtins): Define.
10640         (pa_init_builtins): Register __float128 type and init new support
10641         builtins.
10642         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
10643         * config/pa/quadlib.c (_U_Qfcopysign): New.
10644
10645 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
10646
10647         PR middle-end/46894
10648         * explow.c (allocate_dynamic_stack_space): Do not assume more than
10649         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
10650         are defined.
10651
10652 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10653
10654         PR tree-optimization/47179
10655         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
10656         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
10657
10658 2011-01-18  Richard Guenther  <rguenther@suse.de>
10659
10660         PR rtl-optimization/47216
10661         * emit-rtl.c: Include tree-flow.h.
10662         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
10663         of replicating it with different semantics.
10664         * Makefile.in (emit-rtl.o): Adjust.
10665
10666 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10667
10668         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
10669         (cortex_a9_dp): Handle neon types correctly.
10670
10671 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
10672
10673         PR rtl-optimization/47299
10674         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
10675         subtarget.  Use normal multiplication if both operands are constants.
10676         * expmed.c (expand_widening_mult): Don't try to optimize constant
10677         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
10678         before using it.
10679
10680 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10681
10682         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
10683         spacing after 'e.g.', typos, comma, hyphenation.
10684
10685 2011-01-17  Richard Henderson  <rth@redhat.com>
10686
10687         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
10688         (rx_restricted_mem_operand): New.
10689         (rx_shift_operand): Use register_operand.
10690         (rx_source_operand, rx_compare_operand): Likewise.
10691         * config/rx/rx.md (addsi3_flags): New expander.
10692         (adddi3): Rewrite as expander.
10693         (adc_internal, *adc_flags, adddi3_internal): New patterns.
10694         (subsi3_flags): New expander.
10695         (subdi3): Rewrite as expander.
10696         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
10697
10698         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
10699         (rx_init_builtins): Remove sat builtin.
10700         (rx_expand_builtin): Likewise.
10701         * config/rx/rx.md (ssaddsi3): New.
10702         (*sat): Rename from sat.  Represent the CC_REG input.
10703
10704         * config/rx/predicates.md (rshift_operator): New.
10705         * config/rx/rx.c (rx_expand_insv): Remove.
10706         * config/rx/rx-protos.h: Update.
10707         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
10708         operand to the canonical position.
10709         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
10710         (*bitclr, *bitclr_in_memory): Similarly.
10711         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
10712         (insv): Retain the zero_extract in the expansion.
10713
10714         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
10715         (bswaphi2, bitinvert, revw): Likewise.
10716
10717         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
10718         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
10719         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
10720         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
10721         (bitset, bitset_in_memory): Likewise.
10722         (bitinvert, bitinvert_in_memory): Likewise.
10723         (bitclr, bitclr_in_memory): Likewise.
10724         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
10725         (rx_strend, rx_cmpstrn): Likewise.
10726         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
10727         (bitop peep2 patterns): Remove.
10728
10729         * config/rx/rx.c (rx_match_ccmode): New.
10730         * config/rx/rx-protos.h: Update.
10731         * config/rx/rx.md (abssi2): Clobber, don't set flags.
10732         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
10733         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
10734         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
10735         (fix_truncsfsi2, floatsisf2): Likewise.
10736         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
10737         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
10738         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
10739         (*subsi3_flags, *xorsi3_flags): New.
10740
10741         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
10742
10743         * config/rx/rx.c (rx_print_operand): Remove workaround for
10744         unsplit comparison operations.
10745
10746         * config/rx/rx.md (movsicc): Split after reload.
10747         (*movsicc): Merge *movsieq and *movsine via match_operator.
10748         (*stcc): New pattern.
10749
10750         * config/rx/rx.c (rx_float_compare_mode): Remove.
10751         * config/rx/rx.h (rx_float_compare_mode): Remove.
10752         * config/rx/rx.md (cstoresi4): Split after reload.
10753         (*sccc): New pattern.
10754
10755         * config/rx/predicates.md (label_ref_operand): New.
10756         (rx_z_comparison_operator): New.
10757         (rx_zs_comparison_operator): New.
10758         (rx_fp_comparison_operator): New.
10759         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
10760         Validate that the flags are set properly for the comparison.
10761         (rx_gen_cond_branch_template): Remove.
10762         (rx_cc_modes_compatible): Remove.
10763         (mode_from_flags): New.
10764         (flags_from_code): Rename from flags_needed_for_conditional.
10765         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
10766         (rx_select_cc_mode): Likewise.
10767         (rx_split_fp_compare): New.
10768         (rx_split_cbranch): New.
10769         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
10770         (*cbranchsi4): Use match_operator and rx_split_cbranch.
10771         (*cbranchsf4): Similarly.
10772         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
10773         match_operator and rx_split_cbranch.
10774         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
10775         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
10776         (*cmpsi): Rename from cmpsi.
10777         (*tstsi): Rename from tstsi.
10778         (*cmpsf): Rename from cmpsf; use CC_Fmode.
10779         (*conditional_branch): Rename from conditional_branch.
10780         (*reveresed_conditional_branch): Remove.
10781         (b<code>): Remove expander.
10782         * config/rx/rx-protos.h: Update.
10783
10784         * config/rx/rx.c (rx_compare_redundant): Remove.
10785         * config/rx/rx.md (cmpsi): Don't use it.
10786         * config/rx/rx-protos.h: Update.
10787
10788         * config/rx/rx-modes.def (CC_F): New mode.
10789         * config/rx/rx.c (rx_select_cc_mode): New.
10790         * config/rx/rx.h (SELECT_CC_MODE): Use it.
10791         * config/rx/rx-protos.h: Update.
10792
10793 2011-01-17  Richard Henderson  <rth@redhat.com>
10794
10795         * except.c (dump_eh_tree): Fix stray ; after for statement.
10796
10797 2011-01-17  Richard Guenther  <rguenther@suse.de>
10798
10799         PR tree-optimization/47313
10800         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
10801         handling before copying the body.  Properly deal with
10802         by-reference result in SSA form.
10803
10804 2011-01-17  Ian Lance Taylor  <iant@google.com>
10805
10806         PR target/47219
10807         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
10808         (struct_value_alias_set): Don't define.
10809         (sparc_option_override): Don't set sparc_sr_alias_set and
10810         struct_value_alias_set.
10811         (save_or_restore_regs): Use gen_frame_mem rather than calling
10812         set_mem_alias_set.
10813         (sparc_struct_value_rtx): Likewise.
10814
10815 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
10816
10817         PR target/47318
10818         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
10819         (_mm_maskstore_pd): Likewise.
10820         (_mm_maskload_ps): Likewise.
10821         (_mm_maskstore_ps): Likewise.
10822         (_mm256_maskload_pd): Change mask to __m256i.
10823         (_mm256_maskstore_pd): Likewise.
10824         (_mm256_maskload_ps): Likewise.
10825         (_mm256_maskstore_ps): Likewise.
10826
10827         * config/i386/i386-builtin-types.def: Updated.
10828         (ix86_expand_special_args_builtin): Likewise.
10829
10830         * config/i386/i386.c (bdesc_special_args): Update
10831         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
10832         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
10833         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
10834         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
10835
10836         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
10837         Use <avxpermvecmode> on mask register.
10838         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
10839
10840 2011-01-17  Olivier Hainque  <hainque@adacore.com>
10841             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
10842             Eric Botcazou  <ebotcazou@adacore.com>
10843
10844         PR target/46655
10845         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
10846         if <= USHRT_MAX in 32-bit mode.
10847
10848 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10849
10850         * doc/install.texi (Configuration, Specific): Wrap long
10851         lines in examples.  Allow line wrapping in long options
10852         and URLs where beneficial for PDF output.
10853
10854 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
10855
10856         * config/mips/mips.c (mips_classify_symbol): Don't return
10857         SYMBOL_PC_RELATIVE for nonlocal labels.
10858
10859 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
10860
10861         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
10862
10863 2011-01-15  Jan Hubicka  <jh@suse.cz>
10864
10865         PR tree-optimization/47276
10866         * ipa.c (function_and_variable_visibility): Do not try to mark alias
10867         declarations as needed.
10868
10869 2011-01-15  Martin Jambor  <mjambor@suse.cz>
10870
10871         * common.opt (fdevirtualize): New flag.
10872         * doc/invoke.texi (Option Summary): Document it.
10873         * opts.c (default_options_table): Add devirtualize flag.
10874         * ipa-prop.c (detect_type_change): Return immediately if
10875         devirtualize flag is not set.
10876         (detect_type_change_ssa): Likewise.
10877         (compute_known_type_jump_func): Likewise.
10878         (ipa_analyze_virtual_call_uses): Likewise.
10879
10880 2011-01-14  Martin Jambor  <mjambor@suse.cz>
10881
10882         PR tree-optimization/45934
10883         PR tree-optimization/46302
10884         * ipa-prop.c (type_change_info): New type.
10885         (stmt_may_be_vtbl_ptr_store): New function.
10886         (check_stmt_for_type_change): Likewise.
10887         (detect_type_change): Likewise.
10888         (detect_type_change_ssa): Likewise.
10889         (compute_complex_assign_jump_func): Check for dynamic type change.
10890         (compute_complex_ancestor_jump_func): Likewise.
10891         (compute_known_type_jump_func): Likewise.
10892         (compute_scalar_jump_functions): Likewise.
10893         (ipa_analyze_virtual_call_uses): Likewise.
10894         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
10895
10896 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10897
10898         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
10899         * config/i386/i386.opt (msse5): New Alias.
10900
10901 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10902
10903         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10904         * config/sparc/linux64.h (CC1_SPEC): Likewise.
10905         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10906         * config/sparc/sparc.h (CC1_SPEC): Likewise.
10907
10908 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10909
10910         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
10911         -mcpu options.
10912         * config/sparc/linux64.h (CC1_SPEC): Likewise.
10913         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10914         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
10915         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
10916         Likewise.
10917         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
10918
10919 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10920
10921         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
10922
10923 2011-01-14  Mike Stump  <mikestump@comcast.net>
10924
10925         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
10926         * config/fr30/fr30.md: Likweise
10927         (movsi_push): Likewise.
10928         (movsi_pop): Likewise.
10929         (enter_func): Likewise.
10930         * config/moxie/moxie.md (movsi_push): Likewise.
10931         (movsi_pop): Likewise.
10932
10933 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10934
10935         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
10936         %{no_archive} %{exact_version}.
10937         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
10938         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
10939         %{no_archive} %{exact_version}.
10940         * config/mips/openbsd.h (LINK_SPEC): Likewise.
10941         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
10942         * config/mips/vxworks.h: Likewise.
10943
10944 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10945
10946         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
10947
10948 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10949
10950         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
10951         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
10952
10953 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10954
10955         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
10956         -nodefaultlib.
10957
10958 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10959
10960         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
10961         for mcpu not cpu.
10962         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
10963         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
10964         not cpu.
10965         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
10966         Don't handle -shlib.
10967
10968 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10969
10970         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
10971         (CC1_SPEC): Don't handle -profile.
10972
10973 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10974
10975         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
10976         * config/mips/mips.h (CC1_SPEC): Likewise.
10977
10978 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10979
10980         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
10981         * config/mips/mips.h (CC1_SPEC): Likewise.
10982
10983 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10984
10985         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
10986         * config/m32r/linux.h (LINK_SPEC): Likewise.
10987         * config/mips/linux.h (LINK_SPEC): Likewise.
10988         * config/mips/linux64.h (LINK_SPEC): Likewise.
10989         * config/sparc/linux.h (LINK_SPEC): Likewise.
10990         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
10991         LINK_SPEC): Likewise.
10992         * config/xtensa/linux.h (LINK_SPEC): Likewise.
10993
10994 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10995
10996         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
10997         %{version:-v}.
10998         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
10999
11000 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11001
11002         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
11003         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
11004
11005 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
11006
11007         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
11008
11009 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11010
11011         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
11012         supports -Bstatic/-Bdynamic.
11013         * configure: Regenerate.
11014
11015 2011-01-14  Jan Hubicka  <jh@suse.cz>
11016             Jack Howarth  <howarth@bromo.med.uc.edu>
11017
11018         PR target/46037
11019         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
11020         when checking debug_info_level. Test write_symbols instead of
11021         debug_hooks->var_location when setting flag_var_tracking_uninit.
11022
11023 2011-01-14  Richard Guenther  <rguenther@suse.de>
11024
11025         PR tree-optimization/47179
11026         * target.def (ref_may_alias_errno): New target hook.
11027         * targhooks.h (default_ref_may_alias_errno): Declare.
11028         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
11029         (default_ref_may_alias_errno): New function.
11030         * target.h (struct ao_ref_s): Declare.
11031         * tree-ssa-alias.c: Include target.h.
11032         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
11033         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
11034         (targhooks.o): Likewise.
11035         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
11036         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
11037
11038 2011-01-14  Richard Guenther  <rguenther@suse.de>
11039
11040         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
11041
11042 2011-01-14  Richard Guenther  <rguenther@suse.de>
11043
11044         PR tree-optimization/47280
11045         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
11046         return CFG changes.
11047         (tree_ssa_forward_propagate_single_use_vars): Deal with
11048         CFG changes from associate_plusminus.
11049
11050 2011-01-14  Richard Guenther  <rguenther@suse.de>
11051
11052         PR middle-end/47281
11053         Revert
11054         2011-01-11  Richard Guenther  <rguenther@suse.de>
11055
11056         PR tree-optimization/46076
11057         * tree-ssa.c (useless_type_conversion_p): Conversions from
11058         unprototyped to empty argument list function types are useless.
11059
11060 2011-01-14  Richard Guenther  <rguenther@suse.de>
11061
11062         PR tree-optimization/47286
11063         * tree-ssa-structalias.c (new_var_info): Register variables are global.
11064
11065 2011-01-14  Martin Jambor  <mjambor@suse.cz>
11066
11067         PR middle-end/46823
11068         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
11069
11070 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
11071
11072         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
11073         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
11074         * config/xtensa/xtensa.c (xtensa_libcall_value,
11075         xtensa_function_value_regno_p): New functions.
11076         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11077
11078 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
11079
11080         PR c++/47213
11081         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
11082         PE specific hook.
11083         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
11084         New function prototype.
11085         * config/i386/winnt.c (i386_pe_assemble_visibility):
11086         Warn only if attribute was specified by user.
11087
11088 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
11089
11090         PR target/47251
11091         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
11092         floating point.
11093         (floatunsdidf2_fcfidu): Ditto.
11094
11095 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11096
11097         * config/s390/s390.c (print_operand_address): Replace 'error' with
11098         'output_operand_lossage'.
11099         (print_operand): Likewise.
11100
11101 2011-01-13  Jeff Law  <law@redhat.com>
11102
11103         PR rtl-optimization/39077
11104         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
11105         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
11106         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
11107         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
11108         * gcse.c (prune_insertions_deletions): New function.
11109         (compute_pre_data): Use it.
11110
11111 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
11112
11113         PR debug/PR46973
11114         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
11115         static function.
11116         (prune_unused_types_mark): Use it.
11117
11118 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
11119
11120         PR rtl-optimization/45352
11121         * sel-sched.c: Update copyright years.
11122         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
11123         in the advancing loop when we have issued issue_rate insns.
11124
11125 2011-01-12  Richard Henderson  <rth@redhat.com>
11126
11127         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
11128         (TARGET_MD_ASM_CLOBBERS): New.
11129
11130         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
11131         (TARGET_DELEGITIMIZE_ADDRESS): New.
11132
11133         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
11134         (clzsi2, *bsch): New patterns.
11135
11136         * config/mn10300/mn10300.md (INT): New mode iterator.
11137         (*mov<INT>_clr): New pattern, and peep2 to generate it.
11138
11139         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
11140         flag_split_wide_types.
11141
11142         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
11143         (mn10300_trampoline_init): Rewrite without a template, an immediate
11144         load and a direct branch.
11145         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
11146
11147 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
11148
11149         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11150         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
11151         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
11152         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11153
11154 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
11155
11156         PR debug/47209
11157         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
11158         of type.
11159
11160 2011-01-12  Jan Hubicka  <jh@suse.cz>
11161
11162         PR driver/47244
11163         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
11164         (PLUGIN_COND_CLOSE): New macro.
11165         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
11166
11167 2011-01-12  Richard Guenther  <rguenther@suse.de>
11168
11169         PR lto/47259
11170         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
11171         register variables in a MEM_REF.
11172
11173 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
11174
11175         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
11176         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
11177         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
11178         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
11179         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
11180         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
11181         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
11182         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
11183         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
11184         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
11185         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
11186         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
11187         * config/gnu-user.h: New.  Copied from linux.h.
11188         (LINUX_TARGET_STARTFILE_SPEC): Rename to
11189         GNU_USER_TARGET_STARTFILE_SPEC.
11190         (LINUX_TARGET_ENDFILE_SPEC): Rename to
11191         GNU_USER_TARGET_ENDFILE_SPEC.
11192         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
11193         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
11194         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
11195         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
11196         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
11197         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
11198         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
11199         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
11200         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
11201         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
11202         * config/arm/linux-eabi.h (CC1_SPEC): Use
11203         GNU_USER_TARGET_CC1_SPEC.
11204         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
11205         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
11206         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
11207         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
11208         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
11209         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
11210         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
11211         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
11212
11213 2011-01-12  Richard Guenther  <rguenther@suse.de>
11214
11215         PR other/46946
11216         * doc/invoke.texi (ffast-math): Document it is turned on
11217         with -Ofast.
11218
11219 2011-01-12  Jan Hubicka  <jh@suse.cz>
11220
11221         PR tree-optimization/47233
11222         * opts.c (common_handle_option): Disable ipa-reference with profile
11223         feedback.
11224
11225 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
11226
11227         * c-parser.c (c_parser_objc_at_property_declaration): Improved
11228         error message.
11229
11230 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
11231
11232         * c-parser.c (c_lex_one_token): Updated and reindented some
11233         comments.  No changes in code.
11234
11235 2011-01-11  Ian Lance Taylor  <iant@google.com>
11236
11237         * godump.c (go_output_var): Don't output the variable if there is
11238         already a type with the same name.
11239
11240 2011-01-11  Ian Lance Taylor  <iant@google.com>
11241
11242         * godump.c (go_format_type): Don't generate float80.
11243
11244 2011-01-11  Richard Henderson  <rth@redhat.com>
11245
11246         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
11247         declaration.  Rewrite for both speed and size.
11248         (mn10300_address_cost_1): Remove.
11249         (mn10300_register_move_cost): New.
11250         (mn10300_memory_move_cost): New.
11251         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
11252         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
11253         extensions, shifts, BSWAP, CLZ.
11254         (mn10300_wide_const_load_uses_clr): Remove.
11255         (TARGET_REGISTER_MOVE_COST): New.
11256         (TARGET_MEMORY_MOVE_COST): New.
11257         * config/mn10300/mn10300-protos.h: Update.
11258         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
11259
11260         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
11261         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
11262         * config/mn10300/mn10300-protos.h: Update.
11263         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
11264         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
11265         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
11266         (*test_int_bitfield, *test_byte_bitfield): Remove.
11267         (*bit_test, *subreg_bit_test): Remove.
11268         * config/mn10300/predicates.md (const_8bit_operand): Remove.
11269
11270         * config/mn10300/constraints.md ("c"): Rename from "A".
11271         ("A", "D"): New constraint letters.
11272         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
11273         (fmssf4, fnmasf4, fnmssf4): Likewise.
11274
11275         * config/mn10300/mn10300.md (isa): New attribute.
11276         (enabled): New attribute.
11277
11278         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
11279         (abssf2, negsf2): Define only for hardware fp.
11280         (sqrtsf2): Reformat.
11281         (addsf3, subsf3, mulsf3): Merge expander and insn.
11282
11283         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
11284         (DEBUGGER_AUTO_OFFSET): Remove.
11285         (DEBUGGER_ARG_OFFSET): Remove.
11286
11287         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
11288         Emit register stores with the same offsets as the hardware.
11289         (mn10300_store_multiple_operation): Don't check that the register
11290         save offsets are monotonic.
11291         * config/mn10300/mn10300-protos.h: Update.
11292
11293         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
11294
11295         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
11296         in terms of the value on the stack, not the MDR register.
11297
11298 2011-01-11  Jan Hubicka  <jh@suse.cz>
11299
11300         PR lto/45721
11301         PR lto/45375
11302         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
11303         (symbol_alias_set_destroy, symbol_alias_set_contains,
11304         propagate_aliases_backward): Declare.
11305         * lto-streamer-out.c (struct sets): New sturcture.
11306         (trivally_defined_alias): New function.
11307         (output_alias_pair_p): Rewrite.
11308         (output_unreferenced_globals): Fix output of alias pairs.
11309         (produce_symtab): Likewise.
11310         * ipa.c (function_and_variable_visibility): Set weak alias destination
11311         as needed in lto.
11312         * varasm.c (symbol_alias_set_t): Remove.
11313         (symbol_alias_set_destroy): Export.
11314         (propagate_aliases_forward, propagate_aliases_backward): New functions
11315         based on ...
11316         (compute_visible_aliases): ... this one; remove.
11317         (trivially_visible_alias): New
11318         (trivially_defined_alias): New.
11319         (remove_unreachable_alias_pairs): Rewrite.
11320         (finish_aliases_1): Reorganize code checking if alias is defined.
11321         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
11322         in LTO mode.
11323
11324 2011-01-11  Richard Guenther  <rguenther@suse.de>
11325
11326         PR tree-optimization/46076
11327         * tree-ssa.c (useless_type_conversion_p): Conversions from
11328         unprototyped to empty argument list function types are useless.
11329
11330 2011-01-11  Richard Guenther  <rguenther@suse.de>
11331
11332         PR middle-end/45235
11333         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
11334         volatile MEMs as MEM_READONLY_P.
11335
11336 2011-01-11  Richard Guenther  <rguenther@suse.de>
11337
11338         PR tree-optimization/47239
11339         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
11340
11341 2011-01-11  Jeff Law  <law@redhat.com>
11342
11343         PR tree-optimization/47086
11344         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
11345         IVs from statements that might throw.
11346
11347 2011-01-10  Jan Hubicka  <jh@suse.cz>
11348
11349         PR lto/45375
11350         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
11351
11352 2011-01-10  Jan Hubicka  <jh@suse.cz>
11353
11354         PR lto/45375
11355         * profile.c (read_profile_edge_counts): Ignore profile inconistency
11356         when correcting profile.
11357
11358 2011-01-10  Jan Hubicka  <jh@suse.cz>
11359
11360         PR lto/46083
11361         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
11362         DECL_FINI_PRIORITY.
11363         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
11364         Restore DECL_FINI_PRIORITY.
11365
11366 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11367
11368         * doc/gimple.texi: Fix quoting of multi-word return values in
11369         @deftypefn statements.  Ensure presence of return value.  Wrap
11370         overlong @deftypefn lines.
11371         (is_gimple_operand, is_gimple_min_invariant_address): Remove
11372         descriptions of removed functions.
11373         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
11374         of multi-word return value in @deftypefn statement.
11375
11376 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11377
11378         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
11379         (Conditional Expressions, Logical Operators)
11380         (Statement and operand traversals): Do not indent smallexample
11381         code.  Fix duplicate function argument in example.
11382
11383 2011-01-10  Jeff Law  <law@redhat.com>
11384
11385         PR tree-optimization/47141
11386         * ipa-split.c (split_function): Handle case where we are
11387         returning a value and the return block has a virtual operand phi.
11388
11389 2011-01-10  Jan Hubicka  <jh@suse.cz>
11390
11391         PR tree-optimization/47234
11392         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
11393         (pass_feedback_split_functions): Declare.
11394         * passes.c (init_optimization_passes): Add ipa-split as subpass of
11395         tree-profile.
11396         * ipa-split.c (gate_split_functions): Update comments; disable
11397         split-functions for profile_arc_flag and branch_probabilities.
11398         (gate_feedback_split_functions): New function.
11399         (execute_feedback_split_functions): New function.
11400         (pass_feedback_split_functions): New global var.
11401
11402 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
11403
11404         PR lto/46760
11405         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
11406         calling gimple_call_set_cannot_inline.
11407
11408 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
11409
11410         * config/darwin-sections.def: Remove unused section.
11411
11412 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
11413
11414         PR c++/47218
11415         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
11416
11417 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
11418
11419         PR objc/47232
11420         * c-parser.c (c_parser_declaration_or_fndef): Improved
11421         error message.
11422
11423 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
11424
11425         * config/i386/winnt.c (i386_pe_start_function): Make sure
11426         to switch back to function's section.
11427
11428 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
11429
11430         PR gcc/46902
11431         PR testsuite/46912
11432         * plugin.c: Move include of dlfcn.h from here...
11433         * system.h: ... to here.
11434
11435 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11436
11437         * doc/cpp.texi (C++ Named Operators): Fix markup for header
11438         file name.
11439         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
11440         two extra empty pages in PDF output.
11441
11442 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
11443
11444         PR objc/47078
11445         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
11446         for error recovery purposes behave as if it was not specified so
11447         that the default type is usd.
11448
11449 2011-01-07  Jan Hubicka  <jh@suse.cz>
11450
11451         PR tree-optmization/46469
11452         * ipa.c (function_and_variable_visibility): Clear needed flags on
11453         nodes with external decls; handle weakrefs merging correctly.
11454
11455 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
11456
11457         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
11458         not false.
11459
11460 2011-01-07  Jan Hubicka  <jh@suse.cz>
11461
11462         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
11463         and no longer claim that gold is required for linker plugin.
11464         * configure: Regenerate.
11465         * gcc.c (PLUGIN_COND): New macro.
11466         (LINK_COMMAND_SPEC): Use it.
11467         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
11468         * config.in (HAVE_LTO_PLUGIN): New.
11469         * configure.ac (--with-lto-plugin): New parameter; autodetect
11470         HAVE_LTO_PLUGIN.
11471
11472 2011-01-07  Jan Hubicka  <jh@suse.cz>
11473
11474         PR tree-optimization/46367
11475         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
11476         when we can update original.
11477         (cgraph_mark_inline_edge): Sanity check.
11478         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
11479
11480 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11481
11482         * config/spu/spu.h (ASM_COMMENT_START): Define.
11483
11484 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
11485
11486         PR driver/42445
11487         * gcc.c (%>S): New.
11488         (SWITCH_KEEP_FOR_GCC): Likewise.
11489         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
11490         (do_spec_1): Handle "%>".
11491
11492         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
11493
11494 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
11495
11496         PR target/47201
11497         * config/i386/i386.c (ix86_delegitimize_address): If
11498         simplify_gen_subreg fails, return orig_x.
11499
11500         PR bootstrap/47187
11501         * value-prof.c (gimple_stringop_fixed_value): Handle
11502         lhs of the call properly.
11503
11504 2011-01-07  Jan Hubicka  <jh@suse.cz>
11505
11506         PR lto/45375
11507         * lto-opt.c (lto_reissue_options): Set flag_shlib.
11508
11509 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
11510
11511         * target.def (function_switched_text_sections): New hook.
11512         * doc/tm.texi: Regenerated.
11513         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
11514         * final.c (default_function_switched_text_sections): New.
11515         (final_scan_insn): Call function_switched_text_sections when a
11516         mid-function section change occurs.
11517         * output.h (default_function_switched_text_sections): Declare.
11518         * config/darwin-protos.h (darwin_function_switched_text_sections):
11519         Likewise.
11520         * config/darwin.c (darwin_function_switched_text_sections): New.
11521         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
11522
11523 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
11524
11525         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
11526         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
11527         the secondary code fragment when outputting for DWARF == 2.
11528
11529 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
11530
11531         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11532         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
11533         Remove.
11534         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
11535         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11536
11537 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
11538
11539         PR debug/46704
11540         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
11541         when it is not empty.
11542
11543 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
11544
11545         Bobcat Enablement
11546         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
11547         (case ${target}): Add btver1.
11548         * config/i386/driver-i386.c (host_detect_local_cpu): Let
11549         -march=native recognize btver1 processors.
11550         * config/i386/i386-c.c (ix86_target_macros_internal): Add
11551         btver1 def_and_undef
11552         * config/i386/i386.c (struct processor_costs btver1_cost): New
11553         btver1 cost table.
11554         (m_BTVER1): New definition.
11555         (m_AMD_MULTIPLE): Includes m_BTVER1.
11556         (initial_ix86_tune_features): Add btver1 tune.
11557         (processor_target_table): Add btver1 entry.
11558         (static const char *const cpu_names): Add btver1 entry.
11559         (software_prefetching_beneficial_p): Add btver1.
11560         (ix86_option_override_internal): Add btver1 instruction sets.
11561         (ix86_issue_rate): Add btver1.
11562         (ix86_adjust_cost): Add btver1.
11563         * config/i386/i386.h (TARGET_BTVER1): New definition.
11564         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
11565         (enum processor_type): Add PROCESSOR_BTVER1.
11566         * config/i386/i386.md (define_attr "cpu"): Add btver1.
11567
11568 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11569
11570         PR target/43309
11571         * config/i386/i386.c (legitimize_tls_address)
11572         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
11573         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
11574         (tls_initial_exec_64_sun): New pattern.
11575
11576 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
11577
11578         * doc/invoke.texi (Overall Options): Improve wording and markup
11579         of the description of -wrapper.
11580
11581 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
11582
11583         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
11584         rdynamic, threads): New Driver options.
11585
11586 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11587
11588         PR target/38118
11589         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
11590         if coming from .tdata.
11591         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
11592
11593 2011-01-06  Jan Hubicka  <jh@suse.cz>
11594
11595         PR lto/47188
11596         * collect2.c (main): Do not enable LTOmode when plugin is active.
11597
11598 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11599
11600         PR other/45915
11601         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
11602         --version output if supported.
11603         * configure: Regenerate.
11604
11605 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
11606
11607         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
11608         Driver options.
11609
11610 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
11611
11612         PR c/47150
11613         * c-convert.c (convert): When converting a complex expression
11614         other than COMPLEX_EXPR to a different complex type, ensure
11615         c_save_expr is called instead of save_expr, unless in_late_binary_op.
11616         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
11617         when converting COMPLEX_TYPE.
11618
11619 2011-01-06  Ira Rosen  <irar@il.ibm.com>
11620
11621         PR tree-optimization/47139
11622         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
11623         only the last reduction value is used outside the loop.  Update
11624         documentation.
11625
11626 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
11627
11628         * config/rtems.opt: New.
11629         * config.gcc (*-*-rtems*): Use rtems.opt.
11630
11631 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
11632
11633         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
11634         processors do not support 3DNow instructions.
11635
11636 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11637
11638         * config/spu/spu.c (spu_option_override): Set parameter
11639         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
11640
11641 2011-01-05  Jan Hubicka  <jh@suse.cz>
11642
11643         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
11644         at the command line.
11645
11646 2011-01-05  Martin Jambor  <mjambor@suse.cz>
11647
11648         PR lto/47162
11649         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
11650         deltas on streamed outgoing edges.
11651         (output_node_opt_summary): Output info for outgoing edges only when
11652         the node is in new parameter set.
11653         (output_cgraph_opt_summary): New parameter set, passed to the two
11654         aforementioned functions.  Update its forward declaration and its
11655         callee too.
11656
11657 2011-01-05  Tom Tromey  <tromey@redhat.com>
11658
11659         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
11660         operator to c_finish_omp_atomic.
11661         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
11662         (build_unary_op): Update.
11663         (build_modify_expr): Update.
11664         (build_asm_expr): Update.
11665
11666 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11667
11668         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
11669         newly inserted insns.
11670         (pad_bb): Likewise.
11671         (spu_emit_branch_hint): Likewise.
11672         (insert_hbrp_for_ilb_runout): Likewise.
11673         (spu_machine_dependent_reorg): Call df_finish_pass after
11674         schedule_insns returns.
11675
11676 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11677
11678         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
11679
11680 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
11681
11682         PR tree-optimization/47005
11683         * tree-sra.c (struct access): Add 'non_addressable' bit.
11684         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
11685         (decide_one_param_reduction): Return 0 if the parameter is passed by
11686         reference and one of the accesses in the group is non_addressable.
11687
11688 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
11689
11690         PR tree-optimization/47056
11691         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
11692         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
11693         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
11694
11695 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
11696
11697         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
11698         initializer.  Skip view conversions from aggregate types.
11699
11700 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
11701
11702         PR bootstrap/47055
11703         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
11704
11705 2011-01-04  Philipp Thomas  <pth@suse.de>
11706
11707         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
11708         obvious typo.
11709
11710 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11711
11712         * function.c (thread_prologue_and_epilogue_insns): Do not crash
11713         on empty epilogue sequences.
11714
11715 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
11716
11717         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
11718         non-static): New Driver options.
11719
11720 2011-01-04  Jie Zhang  <jie@codesourcery.com>
11721
11722         PR driver/47137
11723         * gcc.c (default_compilers[]): Set combinable field to 0
11724         for all assembly languages.
11725
11726 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
11727
11728         * config/mips/loongson3a.md: New file.
11729         * config/mips/mips.md: Include loongson3a.md.
11730         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
11731         TUNE_LOONGSON_3A.
11732
11733 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
11734
11735         PR middle-end/47017
11736         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
11737         instead of convert_memory_address_addr_space on the base expression.
11738
11739 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11740
11741         * config/spu/spu.c (spu_option_override): Update error text
11742         for bad -march= / -mtune= values.
11743
11744 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11745
11746         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
11747         if branch-hint optimization will be performed.
11748
11749 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
11750
11751         PR tree-optimization/47148
11752         * ipa-split.c (split_function): Convert arguments to
11753         DECL_ARG_TYPE if possible.
11754
11755         PR tree-optimization/47155
11756         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
11757         when computing uns.
11758
11759         PR rtl-optimization/47157
11760         * combine.c (try_combine): If undobuf.other_insn becomes
11761         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
11762         and set *new_direct_jump_p too.
11763
11764 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
11765
11766         PR tree-optimization/47021
11767         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
11768
11769 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
11770
11771         * gcc.c (process_command): Update copyright notice dates.
11772         * gcov.c (print_version): Likewise.
11773         * gcov-dump.c (print_version): Likewise.
11774         * mips-tfile.c (main): Likewise.
11775         * mips-tdump.c (main): Likewise.
11776
11777 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11778
11779         PR tree-optimization/46801
11780         * tree-sra.c (type_internals_preclude_sra_p): Check whether
11781         aggregate fields start at byte boundary instead of the bit-field flag.
11782
11783 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
11784
11785         PR driver/47137
11786         * gcc.c (main): Revert revision 168407.
11787
11788 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11789
11790         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
11791
11792 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11793
11794         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
11795         vector optab to expand vector/scalar shift, update gimple to vector.
11796
11797 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11798
11799         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
11800         a thunk.
11801
11802 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11803
11804         PR tree-optimization/46984
11805         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
11806         HOST_WIDE_INT.
11807         (cgraph_create_indirect_edge): Fixed line length.
11808         (cgraph_indirect_call_info): Declare.
11809         (cgraph_make_edge_direct) Update declaration.
11810         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
11811         (cgraph_create_indirect_edge): Use it.
11812         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
11813         callees.
11814         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
11815         the new thunk_delta representation.
11816         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
11817         HOST_WIDE_INT.
11818         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
11819         (ipa_read_indirect_edge_info): Likewise.
11820         * lto-cgraph.c (output_edge_opt_summary): New function.
11821         (output_node_opt_summary): Call it on all outgoing edges.
11822         (input_edge_opt_summary): New function.
11823         (input_node_opt_summary): Call it on all outgoing edges.
11824
11825 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
11826
11827         PR driver/47137
11828         * gcc.c (main): Don't check have_o when settting combine_inputs.
11829
11830 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
11831
11832         * regrename.c: Add general comment describing the pass.
11833         (struct du_head): Remove 'length' field.
11834         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
11835         (regrename_optimize): Do not sort chains.  Rework comments, add others.
11836         Force renaming to the preferred class (if any) in the first pass and do
11837         not consider registers that belong to it in the second pass.
11838         (create_new_chain): Do not set 'length' field.
11839         (scan_rtx_reg): Likewise.
11840
11841 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
11842
11843         PR tree-optimization/47140
11844         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
11845         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
11846         to bit_value_binop.
11847
11848         PR rtl-optimization/47028
11849         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
11850         parm_birth_insn instead of at the beginning of first bb.
11851
11852 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
11853
11854         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
11855         Remove the word "see" before "@pxref".
11856         * doc/rtl.texi: Remove the word "see" before "@pxref".
11857
11858 2011-01-01  Jan Hubicka  <jh@suse.cz>
11859
11860         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
11861         memory.
11862
11863 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
11864
11865         PR target/38662
11866         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
11867
11868 \f
11869 Copyright (C) 2011 Free Software Foundation, Inc.
11870
11871 Copying and distribution of this file, with or without modification,
11872 are permitted in any medium without royalty provided the copyright
11873 notice and this notice are preserved.